Skip to content

Commit

Permalink
fix(Progress): 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 ec5b3fd commit b105b75
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
28 changes: 16 additions & 12 deletions src/plugins/components/progress/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,22 @@ export default plugin(({ addComponents, theme }) => {
[`@apply h-${config.size.xl}`]: {},
},
//Rounded
'&.nui-progress-rounded, &.nui-progress-rounded .nui-progress-bar': {
[`@apply ${config.rounded.sm}`]: {},
},
'&.nui-progress-smooth, &.nui-progress-smooth .nui-progress-bar': {
[`@apply ${config.rounded.md}`]: {},
},
'&.nui-progress-curved, &.nui-progress-curved .nui-progress-bar': {
[`@apply ${config.rounded.lg}`]: {},
},
'&.nui-progress-full, &.nui-progress-full .nui-progress-bar': {
[`@apply ${config.rounded.full}`]: {},
},
'&.nui-progress-rounded-sm, &.nui-progress-rounded-sm .nui-progress-bar':
{
[`@apply ${config.rounded.sm}`]: {},
},
'&.nui-progress-rounded-md, &.nui-progress-rounded-md .nui-progress-bar':
{
[`@apply ${config.rounded.md}`]: {},
},
'&.nui-progress-rounded-lg, &.nui-progress-rounded-lg .nui-progress-bar':
{
[`@apply ${config.rounded.lg}`]: {},
},
'&.nui-progress-rounded-full, &.nui-progress-rounded-full .nui-progress-bar':
{
[`@apply ${config.rounded.full}`]: {},
},
'&.nui-progress-indeterminate .nui-progress-bar': {
'@apply w-full': {},
},
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/progress/progress.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export const contrast = {

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

export const size = {
Expand Down

0 comments on commit b105b75

Please sign in to comment.