Skip to content

Commit d4148c9

Browse files
authored
Merge pull request #857 from strapi/release/1.6.1
2 parents 766fe3d + 8c1f8bd commit d4148c9

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@strapi/design-system-docs",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"license": "MIT",
55
"private": true,
66
"dependencies": {
@@ -10,8 +10,8 @@
1010
"@storybook/builder-webpack5": "^6.5.15",
1111
"@storybook/manager-webpack5": "^6.5.15",
1212
"@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",
1515
"qs": "^6.11.0",
1616
"react": "17",
1717
"react-copy-to-clipboard": "^5.1.0",

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"packages": ["packages/*", "docs"],
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"npmClient": "yarn"
55
}

packages/strapi-design-system/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@strapi/design-system",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"license": "MIT",
55
"type": "module",
66
"sideEffects": false,
@@ -29,7 +29,7 @@
2929
"devDependencies": {
3030
"@juggle/resize-observer": "^3.4.0",
3131
"@playwright/test": "1.27.1",
32-
"@strapi/icons": "^1.6.0",
32+
"@strapi/icons": "^1.6.1",
3333
"@swc/core": "^1.3.11",
3434
"@swc/jest": "^0.2.23",
3535
"@testing-library/jest-dom": "5.16.5",

packages/strapi-design-system/src/Button/__tests__/utils.spec.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ describe('utils', () => {
88
});
99

1010
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');
1313
});
1414

1515
it('should return primary by default', () => {

packages/strapi-design-system/src/Button/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616

1717
export const getVariantColorName = (variant: Variant): 'success' | 'danger' | 'neutral' | 'primary' => {
1818
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';
2020
} else if (variant === TERTIARY) {
2121
return 'neutral';
2222
} else if (variant === DEFAULT || variant === SECONDARY || VARIANTS.every((vari) => vari !== variant)) {

packages/strapi-icons/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@strapi/icons",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"license": "MIT",
55
"type": "module",
66
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)