Skip to content

Commit

Permalink
fix(InputFileRegular): rename rounded classes to match props
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Feb 21, 2024
1 parent 596986b commit c93c454
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/plugins/components/input-file-regular/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,25 +154,25 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:sm
'&.nui-input-rounded': {
'&.nui-input-rounded-sm': {
'.nui-input-file-inner': {
[`@apply ${config.rounded.sm}`]: {},
},
},
//Rounded:md
'&.nui-input-smooth': {
'&.nui-input-rounded-md': {
'.nui-input-file-inner': {
[`@apply ${config.rounded.md}`]: {},
},
},
//Rounded:lg
'&.nui-input-curved': {
'&.nui-input-rounded-lg': {
'.nui-input-file-inner': {
[`@apply ${config.rounded.lg}`]: {},
},
},
//Rounded:full
'&.nui-input-full': {
'&.nui-input-rounded-full': {
'.nui-input-file-inner': {
[`@apply ${config.rounded.full}`]: {},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { InputFileRegularVariant } from './input-file-regular.types'

export const rounded = {
none: '',
sm: 'nui-input-rounded',
md: 'nui-input-smooth',
lg: 'nui-input-curved',
full: 'nui-input-full',
sm: 'nui-input-rounded-sm',
md: 'nui-input-rounded-md',
lg: 'nui-input-rounded-lg',
full: 'nui-input-rounded-full',
} as const satisfies InputFileRegularVariant<'rounded'>

export const size = {
Expand Down

0 comments on commit c93c454

Please sign in to comment.