Skip to content

Commit

Permalink
fix(InputFile): 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 ba68edf commit 596986b
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/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:sm
'&.nui-input-file-rounded': {
'&.nui-input-file-rounded-sm': {
'&.nui-input-file-drop, &.nui-input-file-button': {
[`@apply ${config.rounded.sm}`]: {},
},
Expand All @@ -304,7 +304,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:md
'&.nui-input-file-smooth': {
'&.nui-input-file-rounded-md': {
'&.nui-input-file-drop, &.nui-input-file-button': {
[`@apply ${config.rounded.md}`]: {},
},
Expand All @@ -316,7 +316,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:lg
'&.nui-input-file-curved': {
'&.nui-input-file-rounded-lg': {
'&.nui-input-file-drop, &.nui-input-file-button': {
[`@apply ${config.rounded.lg}`]: {},
},
Expand All @@ -328,7 +328,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:full
'&.nui-input-file-full': {
'&.nui-input-file-rounded-full': {
'&.nui-input-file-drop, &.nui-input-file-button': {
[`@apply ${config.rounded.full}`]: {},
},
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/input-file/input-file.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { InputFileVariant } from './input-file.types'

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

export const color = {
Expand Down

0 comments on commit 596986b

Please sign in to comment.