File tree 6 files changed +10
-10
lines changed
6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @strapi/design-system-docs" ,
3
- "version" : " 1.6.0 " ,
3
+ "version" : " 1.6.1 " ,
4
4
"license" : " MIT" ,
5
5
"private" : true ,
6
6
"dependencies" : {
10
10
"@storybook/builder-webpack5" : " ^6.5.15" ,
11
11
"@storybook/manager-webpack5" : " ^6.5.15" ,
12
12
"@storybook/react" : " ^6.5.15" ,
13
- "@strapi/design-system" : " ^1.6.0 " ,
14
- "@strapi/icons" : " ^1.6.0 " ,
13
+ "@strapi/design-system" : " ^1.6.1 " ,
14
+ "@strapi/icons" : " ^1.6.1 " ,
15
15
"qs" : " ^6.11.0" ,
16
16
"react" : " 17" ,
17
17
"react-copy-to-clipboard" : " ^5.1.0" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"packages" : [" packages/*" , " docs" ],
3
- "version" : " 1.6.0 " ,
3
+ "version" : " 1.6.1 " ,
4
4
"npmClient" : " yarn"
5
5
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @strapi/design-system" ,
3
- "version" : " 1.6.0 " ,
3
+ "version" : " 1.6.1 " ,
4
4
"license" : " MIT" ,
5
5
"type" : " module" ,
6
6
"sideEffects" : false ,
29
29
"devDependencies" : {
30
30
"@juggle/resize-observer" : " ^3.4.0" ,
31
31
"@playwright/test" : " 1.27.1" ,
32
- "@strapi/icons" : " ^1.6.0 " ,
32
+ "@strapi/icons" : " ^1.6.1 " ,
33
33
"@swc/core" : " ^1.3.11" ,
34
34
"@swc/jest" : " ^0.2.23" ,
35
35
"@testing-library/jest-dom" : " 5.16.5" ,
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ describe('utils', () => {
8
8
} ) ;
9
9
10
10
it ( 'should return the right color name for light variants' , ( ) => {
11
- expect ( getVariantColorName ( 'success-light' ) ) . toEqual ( 'success600 ' ) ;
12
- expect ( getVariantColorName ( 'danger-light' ) ) . toEqual ( 'danger600 ' ) ;
11
+ expect ( getVariantColorName ( 'success-light' ) ) . toEqual ( 'success ' ) ;
12
+ expect ( getVariantColorName ( 'danger-light' ) ) . toEqual ( 'danger ' ) ;
13
13
} ) ;
14
14
15
15
it ( 'should return primary by default' , ( ) => {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
16
16
17
17
export const getVariantColorName = ( variant : Variant ) : 'success' | 'danger' | 'neutral' | 'primary' => {
18
18
if ( variant === SUCCESS_LIGHT || variant === DANGER_LIGHT ) {
19
- return `${ variant . substring ( 0 , variant . lastIndexOf ( '-' ) ) } 600 ` as 'success' | 'danger' ;
19
+ return `${ variant . substring ( 0 , variant . lastIndexOf ( '-' ) ) } ` as 'success' | 'danger' ;
20
20
} else if ( variant === TERTIARY ) {
21
21
return 'neutral' ;
22
22
} else if ( variant === DEFAULT || variant === SECONDARY || VARIANTS . every ( ( vari ) => vari !== variant ) ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @strapi/icons" ,
3
- "version" : " 1.6.0 " ,
3
+ "version" : " 1.6.1 " ,
4
4
"license" : " MIT" ,
5
5
"type" : " module" ,
6
6
"main" : " ./dist/index.cjs" ,
You can’t perform that action at this time.
0 commit comments