Skip to content

Commit

Permalink
fix(InputNumber): 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 c93c454 commit 229f0fb
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-number/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default plugin(({ addComponents, theme }) => {
{},
},
//Rounded:sm
'&.nui-input-number-rounded': {
'&.nui-input-number-rounded-sm': {
'.nui-input-number, .nui-input-number-outer': {
[`@apply ${config.rounded.sm}`]: {},
},
Expand All @@ -133,7 +133,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:md
'&.nui-input-number-smooth': {
'&.nui-input-number-rounded-md': {
'.nui-input-number, .nui-input-number-outer': {
[`@apply ${config.rounded.md}`]: {},
},
Expand All @@ -143,7 +143,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:lg
'&.nui-input-number-curved': {
'&.nui-input-number-rounded-lg': {
'.nui-input-number, .nui-input-number-outer': {
[`@apply ${config.rounded.lg}`]: {},
},
Expand All @@ -153,7 +153,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:full
'&.nui-input-number-full': {
'&.nui-input-number-rounded-full': {
'.nui-input-number, .nui-input-number-outer': {
[`@apply ${config.rounded.full}`]: {},
},
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/input-number/input-number.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { InputVariant } from './input-number.types'

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

export const size = {
Expand Down

0 comments on commit 229f0fb

Please sign in to comment.