@strapi/design-system 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button/utils.cjs +1 -1
- package/dist/Button/utils.js +1 -1
- package/package.json +3 -3
package/dist/Button/utils.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("../Typography/Typography.cjs"),l=require("./constants.cjs"),s=o=>o===l.SUCCESS_LIGHT||o===l.DANGER_LIGHT?`${o.substring(0,o.lastIndexOf("-"))}
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("../Typography/Typography.cjs"),l=require("./constants.cjs"),s=o=>o===l.SUCCESS_LIGHT||o===l.DANGER_LIGHT?`${o.substring(0,o.lastIndexOf("-"))}`:o===l.TERTIARY?"neutral":o===l.DEFAULT||o===l.SECONDARY||l.VARIANTS.every(r=>r!==o)?"primary":`${o}`,u=({theme:o})=>`
|
|
2
2
|
border: 1px solid ${o.colors.neutral200};
|
|
3
3
|
background: ${o.colors.neutral150};
|
|
4
4
|
${c.Typography} {
|
package/dist/Button/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Typography as c } from "../Typography/Typography.js";
|
|
2
2
|
import { SUCCESS_LIGHT as $, DANGER_LIGHT as n, TERTIARY as s, DEFAULT as d, SECONDARY as u, VARIANTS as p, LIGHT_VARIANTS as g, GHOST as b, DANGER as t, SUCCESS as e } from "./constants.js";
|
|
3
|
-
const l = (o) => o === $ || o === n ? `${o.substring(0, o.lastIndexOf("-"))}
|
|
3
|
+
const l = (o) => o === $ || o === n ? `${o.substring(0, o.lastIndexOf("-"))}` : o === s ? "neutral" : o === d || o === u || p.every((r) => r !== o) ? "primary" : `${o}`, k = ({ theme: o }) => `
|
|
4
4
|
border: 1px solid ${o.colors.neutral200};
|
|
5
5
|
background: ${o.colors.neutral150};
|
|
6
6
|
${c} {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/design-system",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@juggle/resize-observer": "^3.4.0",
|
|
31
31
|
"@playwright/test": "1.27.1",
|
|
32
|
-
"@strapi/icons": "^1.6.
|
|
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",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"@types/react": "17.0.2",
|
|
75
75
|
"@types/react-dom": "17.0.2"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "d4148c932fc2b03cd2db769859f6b51b2d0738a4"
|
|
78
78
|
}
|