2024-02-21 18:38:16 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
const theme = ({ dt }) => `
|
|
|
|
.p-inputotp {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputotp-input {
|
|
|
|
text-align: center;
|
|
|
|
width: 2.5rem;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2024-02-21 18:38:16 +00:00
|
|
|
const classes = {
|
2024-02-22 08:52:39 +00:00
|
|
|
root: 'p-inputotp p-component',
|
2024-02-21 18:38:16 +00:00
|
|
|
input: 'p-inputotp-input'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'inputotp',
|
2024-05-01 08:26:48 +00:00
|
|
|
theme,
|
2024-02-21 18:38:16 +00:00
|
|
|
classes
|
|
|
|
});
|