cetec-design-system 0.0.15 → 0.0.17
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/cetec-design-system.es.js +23 -23
- package/package.json +9 -4
- package/panda-preset.ts +178 -0
- package/panda.config.ts +18 -0
- package/src/recipes/box.ts +16 -0
- package/src/recipes/button.ts +220 -0
- package/src/recipes/checkbox.ts +81 -0
- package/src/recipes/code.ts +37 -0
- package/src/recipes/divider.ts +40 -0
- package/src/recipes/index.ts +12 -0
- package/src/recipes/input.ts +56 -0
- package/src/recipes/radio.ts +71 -0
- package/src/recipes/spinner.ts +42 -0
- package/src/recipes/text.ts +193 -0
- package/src/recipes/textarea.ts +78 -0
- package/src/recipes/textinput.ts +76 -0
- package/src/styles/conditions.ts +108 -0
- package/src/styles/font-imports.css +35 -0
- package/src/styles/globalStyle.ts +90 -0
- package/src/styles/index.css +3 -0
- package/src/styles/semanticTokens.ts +110 -0
- package/src/styles/tokens.ts +580 -0
- package/styled-system/css/conditions.js +36 -0
- package/styled-system/css/conditions.mjs +36 -0
- package/styled-system/css/css.d.ts +22 -0
- package/styled-system/css/css.js +45 -0
- package/styled-system/css/css.mjs +45 -0
- package/styled-system/css/cva.d.ts +6 -0
- package/styled-system/css/cva.js +87 -0
- package/styled-system/css/cva.mjs +87 -0
- package/styled-system/css/cx.d.ts +5 -0
- package/styled-system/css/cx.js +15 -0
- package/styled-system/css/cx.mjs +15 -0
- package/styled-system/css/index.d.ts +5 -0
- package/styled-system/css/index.js +4 -0
- package/styled-system/css/index.mjs +4 -0
- package/styled-system/css/sva.d.ts +4 -0
- package/styled-system/css/sva.js +41 -0
- package/styled-system/css/sva.mjs +41 -0
- package/styled-system/debug/config.json +8379 -0
- package/styled-system/debug/src__App.ast.json +1291 -0
- package/styled-system/debug/src__App.css +830 -0
- package/styled-system/debug/src__components__Button__Button.stories.ast.json +244 -0
- package/styled-system/debug/src__components__Button__Button.stories.css +372 -0
- package/styled-system/debug/src__components__Code__Code.ast.json +32 -0
- package/styled-system/debug/src__components__Code__Code.css +25 -0
- package/styled-system/debug/src__components__Code__Pre.ast.json +53 -0
- package/styled-system/debug/src__components__Code__Pre.css +45 -0
- package/styled-system/debug/src__components__Code__copy-to-clipboard-button.ast.json +68 -0
- package/styled-system/debug/src__components__Code__copy-to-clipboard-button.css +167 -0
- package/styled-system/debug/src__components__Heading__Heading.ast.json +59 -0
- package/styled-system/debug/src__components__Heading__Heading.css +25 -0
- package/styled-system/debug/src__components__Icon__Icon.ast.json +28 -0
- package/styled-system/debug/src__components__Icon__Icon.css +9 -0
- package/styled-system/debug/src__components__Icon__iconStyle.ast.json +27 -0
- package/styled-system/debug/src__components__Icon__iconStyle.css +5 -0
- package/styled-system/debug/src__components__Input__Input.ast.json +50 -0
- package/styled-system/debug/src__components__Input__Input.css +79 -0
- package/styled-system/debug/src__components__Label__Label.ast.json +45 -0
- package/styled-system/debug/src__components__Label__Label.css +40 -0
- package/styled-system/debug/src__components__Link__Link.ast.json +72 -0
- package/styled-system/debug/src__components__Link__Link.css +39 -0
- package/styled-system/debug/src__components__Link__linkStyles.ast.json +59 -0
- package/styled-system/debug/src__components__Link__linkStyles.css +77 -0
- package/styled-system/debug/src__components__Spinner__spinnerStyles.ast.json +56 -0
- package/styled-system/debug/src__components__Spinner__spinnerStyles.css +69 -0
- package/styled-system/debug/src__components__Text__Text.ast.json +57 -0
- package/styled-system/debug/src__components__Text__Text.css +22 -0
- package/styled-system/debug/src__components__Text__Text.stories.ast.json +60 -0
- package/styled-system/debug/src__components__Text__Text.stories.css +40 -0
- package/styled-system/debug/src__components__Textarea__Textarea.ast.json +50 -0
- package/styled-system/debug/src__components__Textarea__Textarea.css +92 -0
- package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.ast.json +42 -0
- package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.css +101 -0
- package/styled-system/helpers.js +336 -0
- package/styled-system/helpers.mjs +336 -0
- package/styled-system/jsx/aspect-ratio.d.ts +10 -0
- package/styled-system/jsx/aspect-ratio.js +14 -0
- package/styled-system/jsx/aspect-ratio.mjs +14 -0
- package/styled-system/jsx/bleed.d.ts +10 -0
- package/styled-system/jsx/bleed.js +14 -0
- package/styled-system/jsx/bleed.mjs +14 -0
- package/styled-system/jsx/box.d.ts +10 -0
- package/styled-system/jsx/box.mjs +14 -0
- package/styled-system/jsx/center.d.ts +10 -0
- package/styled-system/jsx/center.js +14 -0
- package/styled-system/jsx/center.mjs +14 -0
- package/styled-system/jsx/circle.d.ts +10 -0
- package/styled-system/jsx/circle.js +14 -0
- package/styled-system/jsx/circle.mjs +14 -0
- package/styled-system/jsx/container.d.ts +10 -0
- package/styled-system/jsx/container.js +14 -0
- package/styled-system/jsx/container.mjs +14 -0
- package/styled-system/jsx/cq.d.ts +10 -0
- package/styled-system/jsx/cq.js +14 -0
- package/styled-system/jsx/cq.mjs +14 -0
- package/styled-system/jsx/divider.d.ts +10 -0
- package/styled-system/jsx/divider.mjs +14 -0
- package/styled-system/jsx/factory-helper.js +22 -0
- package/styled-system/jsx/factory-helper.mjs +22 -0
- package/styled-system/jsx/factory.d.ts +3 -0
- package/styled-system/jsx/factory.js +80 -0
- package/styled-system/jsx/factory.mjs +80 -0
- package/styled-system/jsx/flex.d.ts +10 -0
- package/styled-system/jsx/flex.js +14 -0
- package/styled-system/jsx/flex.mjs +14 -0
- package/styled-system/jsx/float.d.ts +10 -0
- package/styled-system/jsx/float.js +14 -0
- package/styled-system/jsx/float.mjs +14 -0
- package/styled-system/jsx/grid-item.d.ts +10 -0
- package/styled-system/jsx/grid-item.js +14 -0
- package/styled-system/jsx/grid-item.mjs +14 -0
- package/styled-system/jsx/grid.d.ts +10 -0
- package/styled-system/jsx/grid.js +14 -0
- package/styled-system/jsx/grid.mjs +14 -0
- package/styled-system/jsx/hstack.d.ts +10 -0
- package/styled-system/jsx/hstack.js +14 -0
- package/styled-system/jsx/hstack.mjs +14 -0
- package/styled-system/jsx/icon.d.ts +10 -0
- package/styled-system/jsx/icon.js +14 -0
- package/styled-system/jsx/icon.mjs +14 -0
- package/styled-system/jsx/index.d.ts +23 -0
- package/styled-system/jsx/index.js +21 -0
- package/styled-system/jsx/index.mjs +21 -0
- package/styled-system/jsx/is-valid-prop.d.ts +11 -0
- package/styled-system/jsx/is-valid-prop.js +17 -0
- package/styled-system/jsx/is-valid-prop.mjs +17 -0
- package/styled-system/jsx/link-overlay.d.ts +10 -0
- package/styled-system/jsx/link-overlay.js +14 -0
- package/styled-system/jsx/link-overlay.mjs +14 -0
- package/styled-system/jsx/spacer.d.ts +10 -0
- package/styled-system/jsx/spacer.js +14 -0
- package/styled-system/jsx/spacer.mjs +14 -0
- package/styled-system/jsx/square.d.ts +10 -0
- package/styled-system/jsx/square.js +14 -0
- package/styled-system/jsx/square.mjs +14 -0
- package/styled-system/jsx/stack.d.ts +10 -0
- package/styled-system/jsx/stack.js +14 -0
- package/styled-system/jsx/stack.mjs +14 -0
- package/styled-system/jsx/visually-hidden.d.ts +10 -0
- package/styled-system/jsx/visually-hidden.js +14 -0
- package/styled-system/jsx/visually-hidden.mjs +14 -0
- package/styled-system/jsx/vstack.d.ts +10 -0
- package/styled-system/jsx/vstack.js +14 -0
- package/styled-system/jsx/vstack.mjs +14 -0
- package/styled-system/jsx/wrap.d.ts +10 -0
- package/styled-system/jsx/wrap.js +14 -0
- package/styled-system/jsx/wrap.mjs +14 -0
- package/styled-system/patterns/aspect-ratio.d.ts +21 -0
- package/styled-system/patterns/aspect-ratio.js +38 -0
- package/styled-system/patterns/aspect-ratio.mjs +38 -0
- package/styled-system/patterns/bleed.d.ts +22 -0
- package/styled-system/patterns/bleed.js +24 -0
- package/styled-system/patterns/bleed.mjs +24 -0
- package/styled-system/patterns/box.d.ts +21 -0
- package/styled-system/patterns/box.mjs +15 -0
- package/styled-system/patterns/center.d.ts +21 -0
- package/styled-system/patterns/center.js +21 -0
- package/styled-system/patterns/center.mjs +21 -0
- package/styled-system/patterns/circle.d.ts +21 -0
- package/styled-system/patterns/circle.js +25 -0
- package/styled-system/patterns/circle.mjs +25 -0
- package/styled-system/patterns/container.d.ts +21 -0
- package/styled-system/patterns/container.js +24 -0
- package/styled-system/patterns/container.mjs +24 -0
- package/styled-system/patterns/cq.d.ts +22 -0
- package/styled-system/patterns/cq.js +21 -0
- package/styled-system/patterns/cq.mjs +21 -0
- package/styled-system/patterns/divider.d.ts +23 -0
- package/styled-system/patterns/divider.mjs +25 -0
- package/styled-system/patterns/flex.d.ts +27 -0
- package/styled-system/patterns/flex.js +26 -0
- package/styled-system/patterns/flex.mjs +26 -0
- package/styled-system/patterns/float.d.ts +24 -0
- package/styled-system/patterns/float.js +52 -0
- package/styled-system/patterns/float.mjs +52 -0
- package/styled-system/patterns/grid-item.d.ts +26 -0
- package/styled-system/patterns/grid-item.js +25 -0
- package/styled-system/patterns/grid-item.mjs +25 -0
- package/styled-system/patterns/grid.d.ts +25 -0
- package/styled-system/patterns/grid.js +27 -0
- package/styled-system/patterns/grid.mjs +27 -0
- package/styled-system/patterns/hstack.d.ts +22 -0
- package/styled-system/patterns/hstack.js +24 -0
- package/styled-system/patterns/hstack.mjs +24 -0
- package/styled-system/patterns/icon.d.ts +21 -0
- package/styled-system/patterns/icon.js +20 -0
- package/styled-system/patterns/icon.mjs +20 -0
- package/styled-system/patterns/index.d.ts +20 -0
- package/styled-system/patterns/index.js +19 -0
- package/styled-system/patterns/index.mjs +19 -0
- package/styled-system/patterns/link-overlay.d.ts +21 -0
- package/styled-system/patterns/link-overlay.js +24 -0
- package/styled-system/patterns/link-overlay.mjs +24 -0
- package/styled-system/patterns/spacer.d.ts +21 -0
- package/styled-system/patterns/spacer.js +21 -0
- package/styled-system/patterns/spacer.mjs +21 -0
- package/styled-system/patterns/square.d.ts +21 -0
- package/styled-system/patterns/square.js +24 -0
- package/styled-system/patterns/square.mjs +24 -0
- package/styled-system/patterns/stack.d.ts +24 -0
- package/styled-system/patterns/stack.js +24 -0
- package/styled-system/patterns/stack.mjs +24 -0
- package/styled-system/patterns/visually-hidden.d.ts +21 -0
- package/styled-system/patterns/visually-hidden.js +18 -0
- package/styled-system/patterns/visually-hidden.mjs +18 -0
- package/styled-system/patterns/vstack.d.ts +22 -0
- package/styled-system/patterns/vstack.js +24 -0
- package/styled-system/patterns/vstack.mjs +24 -0
- package/styled-system/patterns/wrap.d.ts +25 -0
- package/styled-system/patterns/wrap.js +25 -0
- package/styled-system/patterns/wrap.mjs +25 -0
- package/styled-system/recipes/box.d.ts +28 -0
- package/styled-system/recipes/box.js +24 -0
- package/styled-system/recipes/box.mjs +24 -0
- package/styled-system/recipes/button.d.ts +35 -0
- package/styled-system/recipes/button.js +41 -0
- package/styled-system/recipes/button.mjs +41 -0
- package/styled-system/recipes/checkbox.d.ts +28 -0
- package/styled-system/recipes/checkbox.js +40 -0
- package/styled-system/recipes/checkbox.mjs +40 -0
- package/styled-system/recipes/code.d.ts +28 -0
- package/styled-system/recipes/code.js +24 -0
- package/styled-system/recipes/code.mjs +24 -0
- package/styled-system/recipes/create-recipe.js +82 -0
- package/styled-system/recipes/create-recipe.mjs +82 -0
- package/styled-system/recipes/divider.d.ts +35 -0
- package/styled-system/recipes/divider.js +38 -0
- package/styled-system/recipes/divider.mjs +38 -0
- package/styled-system/recipes/heading.d.ts +31 -0
- package/styled-system/recipes/heading.js +33 -0
- package/styled-system/recipes/heading.mjs +33 -0
- package/styled-system/recipes/icon-button.d.ts +35 -0
- package/styled-system/recipes/icon-button.js +41 -0
- package/styled-system/recipes/icon-button.mjs +41 -0
- package/styled-system/recipes/index.d.ts +17 -0
- package/styled-system/recipes/index.js +15 -0
- package/styled-system/recipes/index.mjs +16 -0
- package/styled-system/recipes/input.d.ts +31 -0
- package/styled-system/recipes/input.js +31 -0
- package/styled-system/recipes/input.mjs +31 -0
- package/styled-system/recipes/label.d.ts +38 -0
- package/styled-system/recipes/label.js +83 -0
- package/styled-system/recipes/label.mjs +83 -0
- package/styled-system/recipes/link.d.ts +38 -0
- package/styled-system/recipes/link.js +83 -0
- package/styled-system/recipes/link.mjs +83 -0
- package/styled-system/recipes/pre.d.ts +28 -0
- package/styled-system/recipes/pre.js +24 -0
- package/styled-system/recipes/pre.mjs +24 -0
- package/styled-system/recipes/radio-input.d.ts +28 -0
- package/styled-system/recipes/radio-input.mjs +24 -0
- package/styled-system/recipes/radio.d.ts +28 -0
- package/styled-system/recipes/radio.js +40 -0
- package/styled-system/recipes/radio.mjs +40 -0
- package/styled-system/recipes/spinner.d.ts +31 -0
- package/styled-system/recipes/spinner.js +32 -0
- package/styled-system/recipes/spinner.mjs +32 -0
- package/styled-system/recipes/switchbox.d.ts +28 -0
- package/styled-system/recipes/switchbox.mjs +44 -0
- package/styled-system/recipes/text.d.ts +37 -0
- package/styled-system/recipes/text.js +80 -0
- package/styled-system/recipes/text.mjs +80 -0
- package/styled-system/recipes/textarea.d.ts +32 -0
- package/styled-system/recipes/textarea.js +32 -0
- package/styled-system/recipes/textarea.mjs +35 -0
- package/styled-system/recipes/textinput.d.ts +32 -0
- package/styled-system/recipes/textinput.mjs +35 -0
- package/styled-system/styles.css +703 -0
- package/styled-system/tokens/index.d.ts +9 -0
- package/styled-system/tokens/index.js +1480 -0
- package/styled-system/tokens/index.mjs +1580 -0
- package/styled-system/tokens/tokens.d.ts +63 -0
- package/styled-system/types/composition.d.ts +164 -0
- package/styled-system/types/conditions.d.ts +306 -0
- package/styled-system/types/csstype.d.ts +21298 -0
- package/styled-system/types/global.d.ts +20 -0
- package/styled-system/types/index.d.ts +8 -0
- package/styled-system/types/jsx.d.ts +52 -0
- package/styled-system/types/parts.d.ts +8 -0
- package/styled-system/types/pattern.d.ts +78 -0
- package/styled-system/types/prop-type.d.ts +235 -0
- package/styled-system/types/recipe.d.ts +181 -0
- package/styled-system/types/selectors.d.ts +59 -0
- package/styled-system/types/static-css.d.ts +56 -0
- package/styled-system/types/style-props.d.ts +7468 -0
- package/styled-system/types/system-types.d.ts +109 -0
|
@@ -210,7 +210,7 @@ const be = (e) => Ye.get(e) || e, Ke = {
|
|
|
210
210
|
}
|
|
211
211
|
}, or = Fe(Ke), T = (...e) => or(B(...e));
|
|
212
212
|
T.raw = (...e) => B(...e);
|
|
213
|
-
const { mergeCss: B
|
|
213
|
+
const { mergeCss: B } = Lt(Ke), he = (e) => ({
|
|
214
214
|
base: {},
|
|
215
215
|
variants: {},
|
|
216
216
|
defaultVariants: {},
|
|
@@ -970,7 +970,7 @@ const Me = {
|
|
|
970
970
|
children: /* @__PURE__ */ p(Gr, {})
|
|
971
971
|
}
|
|
972
972
|
)
|
|
973
|
-
] }),
|
|
973
|
+
] }), eo = ({
|
|
974
974
|
variant: e,
|
|
975
975
|
size: t,
|
|
976
976
|
href: r,
|
|
@@ -1038,7 +1038,7 @@ const Me = {
|
|
|
1038
1038
|
children: /* @__PURE__ */ p("use", { xlinkHref: `/sprite.svg#${e}` })
|
|
1039
1039
|
}
|
|
1040
1040
|
);
|
|
1041
|
-
},
|
|
1041
|
+
}, to = {
|
|
1042
1042
|
"aa-placeholder": "aa-placeholder",
|
|
1043
1043
|
alarm: "alarm",
|
|
1044
1044
|
apps: "apps",
|
|
@@ -1275,7 +1275,7 @@ const Me = {
|
|
|
1275
1275
|
children: /* @__PURE__ */ p(pt, { color: "slate.0", children: t })
|
|
1276
1276
|
}
|
|
1277
1277
|
);
|
|
1278
|
-
},
|
|
1278
|
+
}, ro = ({
|
|
1279
1279
|
children: e,
|
|
1280
1280
|
lang: t,
|
|
1281
1281
|
...r
|
|
@@ -1299,7 +1299,7 @@ function $r() {
|
|
|
1299
1299
|
return e || (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
1300
1300
|
}
|
|
1301
1301
|
const gt = St(void 0);
|
|
1302
|
-
function
|
|
1302
|
+
function oo({ children: e }) {
|
|
1303
1303
|
const [t, r] = xt(() => $r()), o = (n) => {
|
|
1304
1304
|
r(n), localStorage.setItem(te, n);
|
|
1305
1305
|
};
|
|
@@ -1318,7 +1318,7 @@ function Ur() {
|
|
|
1318
1318
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
1319
1319
|
return e;
|
|
1320
1320
|
}
|
|
1321
|
-
const
|
|
1321
|
+
const no = ({}) => {
|
|
1322
1322
|
const { theme: e, setTheme: t } = Ur();
|
|
1323
1323
|
return /* @__PURE__ */ p(
|
|
1324
1324
|
Hr,
|
|
@@ -1331,7 +1331,7 @@ const ao = ({}) => {
|
|
|
1331
1331
|
children: /* @__PURE__ */ p(C, { name: e === "light" ? "moon" : "sun" })
|
|
1332
1332
|
}
|
|
1333
1333
|
);
|
|
1334
|
-
},
|
|
1334
|
+
}, ao = ({
|
|
1335
1335
|
level: e = "h2",
|
|
1336
1336
|
children: t,
|
|
1337
1337
|
...r
|
|
@@ -1349,7 +1349,7 @@ const ao = ({}) => {
|
|
|
1349
1349
|
children: t
|
|
1350
1350
|
}
|
|
1351
1351
|
);
|
|
1352
|
-
},
|
|
1352
|
+
}, io = ({
|
|
1353
1353
|
href: e,
|
|
1354
1354
|
external: t,
|
|
1355
1355
|
disabled: r,
|
|
@@ -1381,7 +1381,7 @@ const ao = ({}) => {
|
|
|
1381
1381
|
]
|
|
1382
1382
|
}
|
|
1383
1383
|
);
|
|
1384
|
-
},
|
|
1384
|
+
}, so = ({
|
|
1385
1385
|
direction: e,
|
|
1386
1386
|
weight: t,
|
|
1387
1387
|
...r
|
|
@@ -1414,7 +1414,7 @@ const ao = ({}) => {
|
|
|
1414
1414
|
children: t
|
|
1415
1415
|
}
|
|
1416
1416
|
);
|
|
1417
|
-
},
|
|
1417
|
+
}, lo = ({
|
|
1418
1418
|
indeterminate: e,
|
|
1419
1419
|
error: t,
|
|
1420
1420
|
...r
|
|
@@ -1437,7 +1437,7 @@ const ao = ({}) => {
|
|
|
1437
1437
|
/* @__PURE__ */ p(C, { className: a, name: "checkbox-indeterminate" }),
|
|
1438
1438
|
/* @__PURE__ */ p(C, { className: a, name: "checkbox-focus" })
|
|
1439
1439
|
] });
|
|
1440
|
-
},
|
|
1440
|
+
}, co = ({ error: e, ...t }) => {
|
|
1441
1441
|
const { container: r, input: o, indicator: n } = Vr({});
|
|
1442
1442
|
return /* @__PURE__ */ M(ut, { className: r, children: [
|
|
1443
1443
|
/* @__PURE__ */ p(
|
|
@@ -1454,7 +1454,7 @@ const ao = ({}) => {
|
|
|
1454
1454
|
/* @__PURE__ */ p(C, { className: n, name: "radio-checked" }),
|
|
1455
1455
|
/* @__PURE__ */ p(C, { className: n, name: "radio-focus" })
|
|
1456
1456
|
] });
|
|
1457
|
-
},
|
|
1457
|
+
}, po = ({
|
|
1458
1458
|
size: e,
|
|
1459
1459
|
error: t,
|
|
1460
1460
|
autoSize: r = !1,
|
|
@@ -1496,20 +1496,20 @@ const ao = ({}) => {
|
|
|
1496
1496
|
Zr.displayName = "Textarea";
|
|
1497
1497
|
export {
|
|
1498
1498
|
y as Box,
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1499
|
+
eo as Button,
|
|
1500
|
+
lo as CheckBox,
|
|
1501
|
+
so as Divider,
|
|
1502
|
+
ao as Heading,
|
|
1503
1503
|
C as Icon,
|
|
1504
1504
|
Hr as IconButton,
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1505
|
+
to as IconNames,
|
|
1506
|
+
io as Link,
|
|
1507
|
+
ro as Pre,
|
|
1508
|
+
co as Radio,
|
|
1509
1509
|
Gr as Spinner,
|
|
1510
1510
|
pt as Text,
|
|
1511
|
-
|
|
1511
|
+
po as TextInput,
|
|
1512
1512
|
Zr as Textarea,
|
|
1513
|
-
|
|
1514
|
-
|
|
1513
|
+
oo as ThemeProvider,
|
|
1514
|
+
no as ThemeSwitcher
|
|
1515
1515
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cetec-design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"cssgen": "npx panda cssgen 'src/**/*.css'",
|
|
6
6
|
"prepare": "npx panda codegen",
|
|
@@ -20,11 +20,16 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
22
|
"import": "./dist/cetec-design-system.es.js"
|
|
23
|
-
}
|
|
24
|
-
"./style.css": "./dist/cetec-design-system.css"
|
|
23
|
+
}
|
|
25
24
|
},
|
|
26
25
|
"files": [
|
|
27
|
-
"./dist/"
|
|
26
|
+
"./dist/",
|
|
27
|
+
"./panda-preset.ts",
|
|
28
|
+
"./panda.config.ts",
|
|
29
|
+
"./styled-system",
|
|
30
|
+
"./src/styles/*",
|
|
31
|
+
"./src/recipes/*",
|
|
32
|
+
"./src/tokens/*"
|
|
28
33
|
],
|
|
29
34
|
"dependencies": {
|
|
30
35
|
"@fontsource-variable/recursive": "^5.1.1",
|
package/panda-preset.ts
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineConfig,
|
|
3
|
+
defineTokens,
|
|
4
|
+
defineSemanticTokens,
|
|
5
|
+
definePreset,
|
|
6
|
+
} from '@pandacss/dev';
|
|
7
|
+
import pandaBasePreset from '@pandacss/preset-base';
|
|
8
|
+
import * as tokens from './src/styles/tokens';
|
|
9
|
+
import * as semanticTokens from './src/styles/semanticTokens';
|
|
10
|
+
import { globalCss } from './src/styles/globalStyle';
|
|
11
|
+
import { conditions } from './src/styles/conditions';
|
|
12
|
+
import {
|
|
13
|
+
buttonRecipe,
|
|
14
|
+
iconButtonRecipe,
|
|
15
|
+
inputRecipe,
|
|
16
|
+
textareaRecipe,
|
|
17
|
+
headingRecipe,
|
|
18
|
+
linkRecipe,
|
|
19
|
+
labelRecipe,
|
|
20
|
+
textRecipe,
|
|
21
|
+
checkBoxRecipe,
|
|
22
|
+
spinnerRecipe,
|
|
23
|
+
dividerRecipe,
|
|
24
|
+
preRecipe,
|
|
25
|
+
codeRecipe,
|
|
26
|
+
boxRecipe,
|
|
27
|
+
radioRecipe,
|
|
28
|
+
textinputRecipe,
|
|
29
|
+
} from './src/recipes/index';
|
|
30
|
+
|
|
31
|
+
// https://panda-css.com/docs/concepts/extend#removing-something-from-the-base-presets
|
|
32
|
+
// omit default patterns here
|
|
33
|
+
const { box, divider, ...pandaBasePresetPatterns } = pandaBasePreset.patterns;
|
|
34
|
+
const pandaBasePresetConditions = pandaBasePreset.conditions;
|
|
35
|
+
const pandaBasePresetUtilities = pandaBasePreset.utilities;
|
|
36
|
+
const pandaBasePresetGlobalCss = pandaBasePreset.globalCss;
|
|
37
|
+
|
|
38
|
+
const theme = {
|
|
39
|
+
tokens: defineTokens({
|
|
40
|
+
aspectRatios: tokens.aspectRatios,
|
|
41
|
+
borders: tokens.borders,
|
|
42
|
+
shadows: tokens.shadows,
|
|
43
|
+
easings: tokens.easings,
|
|
44
|
+
durations: tokens.durations,
|
|
45
|
+
letterSpacings: tokens.letterSpacings,
|
|
46
|
+
lineHeights: tokens.lineHeights,
|
|
47
|
+
blurs: tokens.blurs,
|
|
48
|
+
animations: tokens.animations,
|
|
49
|
+
colors: tokens.colors,
|
|
50
|
+
fonts: tokens.fonts,
|
|
51
|
+
fontSizes: tokens.fontSizes,
|
|
52
|
+
fontWeights: tokens.fontWeights,
|
|
53
|
+
sizes: tokens.sizes,
|
|
54
|
+
numericSizes: tokens.numericSizes,
|
|
55
|
+
spacing: tokens.sizes,
|
|
56
|
+
radii: tokens.radii,
|
|
57
|
+
keyframes: tokens.keyframes,
|
|
58
|
+
containerSizes: tokens.containerSizes,
|
|
59
|
+
breakpoints: tokens.breakpoints,
|
|
60
|
+
}),
|
|
61
|
+
semanticTokens: defineSemanticTokens({
|
|
62
|
+
colors: semanticTokens.colors,
|
|
63
|
+
}),
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default definePreset({
|
|
67
|
+
theme: {
|
|
68
|
+
containerSizes: tokens.containerSizes,
|
|
69
|
+
keyframes: tokens.keyframes,
|
|
70
|
+
tokens: {
|
|
71
|
+
aspectRatios: theme.tokens.aspectRatios,
|
|
72
|
+
borders: theme.tokens.borders,
|
|
73
|
+
shadows: theme.tokens.shadows,
|
|
74
|
+
easings: theme.tokens.easings,
|
|
75
|
+
durations: theme.tokens.durations,
|
|
76
|
+
letterSpacings: theme.tokens.letterSpacings,
|
|
77
|
+
lineHeights: theme.tokens.lineHeights,
|
|
78
|
+
blurs: theme.tokens.blurs,
|
|
79
|
+
animations: theme.tokens.animations,
|
|
80
|
+
colors: theme.tokens.colors,
|
|
81
|
+
fonts: theme.tokens.fonts,
|
|
82
|
+
fontSizes: theme.tokens.fontSizes,
|
|
83
|
+
fontWeights: theme.tokens.fontWeights,
|
|
84
|
+
sizes: theme.tokens.sizes,
|
|
85
|
+
numericSizes: theme.tokens.numericSizes,
|
|
86
|
+
spacing: theme.tokens.sizes,
|
|
87
|
+
radii: theme.tokens.radii,
|
|
88
|
+
},
|
|
89
|
+
semanticTokens: {
|
|
90
|
+
colors: theme.semanticTokens.colors,
|
|
91
|
+
},
|
|
92
|
+
extend: {
|
|
93
|
+
breakpoints: theme.tokens.breakpoints,
|
|
94
|
+
textStyles: tokens.textStyles,
|
|
95
|
+
recipes: {
|
|
96
|
+
text: textRecipe,
|
|
97
|
+
heading: headingRecipe,
|
|
98
|
+
link: linkRecipe,
|
|
99
|
+
label: labelRecipe,
|
|
100
|
+
button: buttonRecipe,
|
|
101
|
+
iconButton: iconButtonRecipe,
|
|
102
|
+
input: inputRecipe,
|
|
103
|
+
textinput: textinputRecipe,
|
|
104
|
+
textarea: textareaRecipe,
|
|
105
|
+
code: codeRecipe,
|
|
106
|
+
pre: preRecipe,
|
|
107
|
+
spinner: spinnerRecipe,
|
|
108
|
+
divider: dividerRecipe,
|
|
109
|
+
box: boxRecipe,
|
|
110
|
+
},
|
|
111
|
+
slotRecipes: {
|
|
112
|
+
checkbox: checkBoxRecipe,
|
|
113
|
+
radio: radioRecipe,
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
utilities: {
|
|
118
|
+
...pandaBasePresetUtilities,
|
|
119
|
+
},
|
|
120
|
+
patterns: {
|
|
121
|
+
icon: {
|
|
122
|
+
properties: {
|
|
123
|
+
size: {
|
|
124
|
+
type: 'enum',
|
|
125
|
+
value: Object.keys(tokens.sizes),
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
transform(props) {
|
|
129
|
+
const { size, ...rest } = props;
|
|
130
|
+
return {
|
|
131
|
+
width: size,
|
|
132
|
+
height: size,
|
|
133
|
+
...rest,
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
extend: {
|
|
138
|
+
...pandaBasePresetPatterns,
|
|
139
|
+
container: {
|
|
140
|
+
transform(props) {
|
|
141
|
+
return Object.assign(
|
|
142
|
+
{
|
|
143
|
+
position: 'relative',
|
|
144
|
+
width: '100%',
|
|
145
|
+
maxWidth: '7xl',
|
|
146
|
+
mx: 'auto',
|
|
147
|
+
px: { base: '24', md: '20', sm: '16' },
|
|
148
|
+
},
|
|
149
|
+
props,
|
|
150
|
+
);
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
globalCss: {
|
|
156
|
+
...pandaBasePresetGlobalCss,
|
|
157
|
+
...globalCss,
|
|
158
|
+
html: {
|
|
159
|
+
'--global-font-heading': 'fonts.heading',
|
|
160
|
+
'--global-font-body': 'fonts.body',
|
|
161
|
+
'--global-font-mono': 'fonts.mono',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
conditions: {
|
|
165
|
+
...pandaBasePresetConditions,
|
|
166
|
+
...conditions,
|
|
167
|
+
indeterminate:
|
|
168
|
+
'&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])',
|
|
169
|
+
hidden: '&:is([hidden])',
|
|
170
|
+
current: '&:is([data-current])',
|
|
171
|
+
today: '&:is([data-today])',
|
|
172
|
+
collapsed:
|
|
173
|
+
'&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
|
|
174
|
+
containerSmall: '@container (max-width: 560px)',
|
|
175
|
+
containerMedium: '@container (min-width: 561px) and (max-width: 999px)',
|
|
176
|
+
containerLarge: '@container (min-width: 1000px)',
|
|
177
|
+
},
|
|
178
|
+
});
|
package/panda.config.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineConfig } from '@pandacss/dev';
|
|
2
|
+
import CetecPreset from './panda-preset.js';
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
presets: ['@pandacss/dev/presets', CetecPreset],
|
|
6
|
+
eject: true,
|
|
7
|
+
gitignore: true,
|
|
8
|
+
jsxFramework: 'react',
|
|
9
|
+
jsxStyleProps: 'all',
|
|
10
|
+
jsxFactory: 'styled',
|
|
11
|
+
watch: true,
|
|
12
|
+
include: ['./src/**/*.{js,jsx,ts,tsx}'],
|
|
13
|
+
preflight: true,
|
|
14
|
+
exclude: [],
|
|
15
|
+
strictTokens: true,
|
|
16
|
+
importMap: '@styled-system',
|
|
17
|
+
outdir: 'styled-system',
|
|
18
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
const boxBase = {
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
const boxVariants = {
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const boxRecipe = defineRecipe({
|
|
10
|
+
className: 'box',
|
|
11
|
+
jsx: ['Box'],
|
|
12
|
+
base: boxBase,
|
|
13
|
+
variants: boxVariants,
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
},
|
|
16
|
+
});
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
const buttonBase = {
|
|
4
|
+
position: 'relative',
|
|
5
|
+
appearance: 'none',
|
|
6
|
+
minWidth: '0',
|
|
7
|
+
transitionDuration: 'fast',
|
|
8
|
+
transitionProperty: 'background, border-color, color, box-shadow',
|
|
9
|
+
transitionTimingFunction: 'default',
|
|
10
|
+
userSelect: 'none',
|
|
11
|
+
verticalAlign: 'middle',
|
|
12
|
+
display: 'flex',
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
gap: '4',
|
|
15
|
+
fontFamily: 'body',
|
|
16
|
+
fontSize: '16',
|
|
17
|
+
fontWeight: 'medium',
|
|
18
|
+
lineHeight: 'default',
|
|
19
|
+
borderWidth: '1',
|
|
20
|
+
borderStyle: 'solid',
|
|
21
|
+
borderColor: 'transparent',
|
|
22
|
+
borderRadius: '4',
|
|
23
|
+
outlineWidth: '2',
|
|
24
|
+
outlineStyle: 'solid',
|
|
25
|
+
outlineColor: 'transparent',
|
|
26
|
+
outlineOffset: '1',
|
|
27
|
+
textDecoration: 'none',
|
|
28
|
+
whiteSpace: 'nowrap',
|
|
29
|
+
cursor: 'pointer',
|
|
30
|
+
_disabled: {
|
|
31
|
+
opacity: 0.4,
|
|
32
|
+
cursor: 'not-allowed',
|
|
33
|
+
},
|
|
34
|
+
_focusVisible: {
|
|
35
|
+
outlineColor: { base: 'slate.80', _dark: 'slate.5' },
|
|
36
|
+
},
|
|
37
|
+
'& svg': {
|
|
38
|
+
fill: 'current',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const buttonVariants = {
|
|
43
|
+
variant: {
|
|
44
|
+
primary: {
|
|
45
|
+
bg: { base: 'slate.90', _dark: 'slate.5' },
|
|
46
|
+
color: { base: 'slate.0', _dark: 'slate.90' },
|
|
47
|
+
_hover: {
|
|
48
|
+
bg: { base: 'slate.70', _dark: 'slate.10' },
|
|
49
|
+
},
|
|
50
|
+
_active: {
|
|
51
|
+
bg: { base: 'slate.100', _dark: 'slate.20' },
|
|
52
|
+
},
|
|
53
|
+
_disabled: {
|
|
54
|
+
_hover: {
|
|
55
|
+
bg: { base: 'slate.90', _dark: 'slate.5' },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
_selected: {
|
|
59
|
+
bg: { base: 'slate.5', _dark: 'slate.90' },
|
|
60
|
+
color: { base: 'slate.90', _dark: 'slate.0' },
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
standard: {
|
|
64
|
+
bg: { base: 'slate.5', _dark: 'slate.70' },
|
|
65
|
+
color: { base: 'slate.90', _dark: 'slate.0' },
|
|
66
|
+
_hover: {
|
|
67
|
+
bg: { base: 'slate.10', _dark: 'slate.60' },
|
|
68
|
+
},
|
|
69
|
+
_active: {
|
|
70
|
+
bg: { base: 'slate.20', _dark: 'slate.80' },
|
|
71
|
+
},
|
|
72
|
+
_disabled: {
|
|
73
|
+
_hover: {
|
|
74
|
+
bg: { base: 'slate.5', _dark: 'slate.70' },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
_selected: {
|
|
78
|
+
bg: { base: 'slate.90', _dark: 'slate.5' },
|
|
79
|
+
color: { base: 'slate.0', _dark: 'slate.90' },
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
hollow: {
|
|
83
|
+
bg: 'transparent',
|
|
84
|
+
borderColor: { base: 'slate.30', _dark: 'slate.60' },
|
|
85
|
+
color: { base: 'slate.90', _dark: 'slate.0' },
|
|
86
|
+
_hover: {
|
|
87
|
+
bg: { base: 'slate.10', _dark: 'slate.60' },
|
|
88
|
+
borderColor: { base: 'slate.10', _dark: 'slate.60' },
|
|
89
|
+
},
|
|
90
|
+
_active: {
|
|
91
|
+
bg: { base: 'slate.20', _dark: 'slate.80' },
|
|
92
|
+
borderColor: { base: 'slate.20', _dark: 'slate.80' },
|
|
93
|
+
},
|
|
94
|
+
_disabled: {
|
|
95
|
+
_hover: {
|
|
96
|
+
bg: 'transparent',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
_selected: {
|
|
100
|
+
bg: { base: 'slate.90', _dark: 'slate.5' },
|
|
101
|
+
color: { base: 'slate.0', _dark: 'slate.90' },
|
|
102
|
+
borderColor: 'transparent',
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
ghost: {
|
|
106
|
+
bg: 'transparent',
|
|
107
|
+
color: { base: 'slate.90', _dark: 'slate.0' },
|
|
108
|
+
_hover: {
|
|
109
|
+
bg: { base: 'slate.10', _dark: 'slate.60' },
|
|
110
|
+
},
|
|
111
|
+
_active: {
|
|
112
|
+
bg: { base: 'slate.20', _dark: 'slate.70' },
|
|
113
|
+
},
|
|
114
|
+
_disabled: {
|
|
115
|
+
_hover: {
|
|
116
|
+
bg: 'transparent',
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
_selected: {
|
|
120
|
+
bg: { base: 'slate.90', _dark: 'slate.5' },
|
|
121
|
+
color: { base: 'slate.0', _dark: 'slate.90' },
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
cta: {
|
|
125
|
+
bg: { base: 'gold.20', _dark: 'gold.30' },
|
|
126
|
+
color: 'slate.90',
|
|
127
|
+
_hover: {
|
|
128
|
+
bg: { base: 'gold.10', _dark: 'gold.20' },
|
|
129
|
+
},
|
|
130
|
+
_active: {
|
|
131
|
+
bg: { base: 'gold.30', _dark: 'gold.40' },
|
|
132
|
+
},
|
|
133
|
+
_disabled: {
|
|
134
|
+
_hover: {
|
|
135
|
+
bg: { base: 'gold.20', _dark: 'gold.30' },
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
danger: {
|
|
140
|
+
bg: 'red.50',
|
|
141
|
+
color: 'slate.0',
|
|
142
|
+
_hover: {
|
|
143
|
+
bg: 'red.40',
|
|
144
|
+
},
|
|
145
|
+
_active: {
|
|
146
|
+
bg: 'red.60',
|
|
147
|
+
},
|
|
148
|
+
_disabled: {
|
|
149
|
+
_hover: {
|
|
150
|
+
bg: 'red.50',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export const buttonRecipe = defineRecipe({
|
|
158
|
+
className: 'button',
|
|
159
|
+
jsx: ['Button'],
|
|
160
|
+
base: buttonBase,
|
|
161
|
+
variants: {
|
|
162
|
+
...buttonVariants,
|
|
163
|
+
size: {
|
|
164
|
+
medium: {
|
|
165
|
+
fontSize: '16',
|
|
166
|
+
py: '3',
|
|
167
|
+
px: '10',
|
|
168
|
+
},
|
|
169
|
+
large: {
|
|
170
|
+
fontSize: '16',
|
|
171
|
+
py: '7',
|
|
172
|
+
px: '12',
|
|
173
|
+
},
|
|
174
|
+
small: {
|
|
175
|
+
fontSize: '14',
|
|
176
|
+
py: '0',
|
|
177
|
+
px: '8',
|
|
178
|
+
'& svg': {
|
|
179
|
+
mt: '-1',
|
|
180
|
+
mb: '-1',
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
defaultVariants: {
|
|
186
|
+
variant: 'standard',
|
|
187
|
+
size: 'medium',
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
export const iconButtonRecipe = defineRecipe({
|
|
192
|
+
className: 'icon-button',
|
|
193
|
+
jsx: ['IconButton'],
|
|
194
|
+
base: buttonBase,
|
|
195
|
+
variants: {
|
|
196
|
+
...buttonVariants,
|
|
197
|
+
size: {
|
|
198
|
+
medium: {
|
|
199
|
+
fontSize: '16',
|
|
200
|
+
p: '3',
|
|
201
|
+
},
|
|
202
|
+
large: {
|
|
203
|
+
fontSize: '16',
|
|
204
|
+
p: '7',
|
|
205
|
+
},
|
|
206
|
+
small: {
|
|
207
|
+
fontSize: '14',
|
|
208
|
+
p: '0',
|
|
209
|
+
'& svg': {
|
|
210
|
+
mt: '-1',
|
|
211
|
+
mb: '-1',
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
defaultVariants: {
|
|
217
|
+
variant: 'standard',
|
|
218
|
+
size: 'medium',
|
|
219
|
+
},
|
|
220
|
+
});
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
export const checkBoxRecipe = defineSlotRecipe({
|
|
4
|
+
className: 'checkbox',
|
|
5
|
+
jsx: ['CheckBox'],
|
|
6
|
+
slots: ['container', 'input', 'indicator'],
|
|
7
|
+
base: {
|
|
8
|
+
container: {
|
|
9
|
+
position: 'relative',
|
|
10
|
+
display: 'inline-grid',
|
|
11
|
+
gridTemplateColumns: 'auto 1fr',
|
|
12
|
+
gap: 4,
|
|
13
|
+
alignItems: 'start',
|
|
14
|
+
cursor: 'pointer',
|
|
15
|
+
userSelect: 'none',
|
|
16
|
+
},
|
|
17
|
+
input: {
|
|
18
|
+
position: 'absolute',
|
|
19
|
+
opacity: 0,
|
|
20
|
+
width: 'full',
|
|
21
|
+
height: 'full',
|
|
22
|
+
margin: '0',
|
|
23
|
+
padding: '0',
|
|
24
|
+
zIndex: 1,
|
|
25
|
+
cursor: 'inherit',
|
|
26
|
+
"& ~ [name='checkbox']": {
|
|
27
|
+
display: 'inline-grid',
|
|
28
|
+
},
|
|
29
|
+
_checked: {
|
|
30
|
+
"& ~ [name='checkbox-checked']": {
|
|
31
|
+
display: 'inline-grid',
|
|
32
|
+
fill: { base: 'slate.90', _dark: 'slate.0' },
|
|
33
|
+
},
|
|
34
|
+
"& ~ [name='checkbox']": {
|
|
35
|
+
display: 'none',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
_indeterminate: {
|
|
39
|
+
"& ~ [name='checkbox-indeterminate']": {
|
|
40
|
+
display: 'inline-grid',
|
|
41
|
+
fill: { base: 'slate.90', _dark: 'slate.0' },
|
|
42
|
+
_disabled: {},
|
|
43
|
+
},
|
|
44
|
+
"& ~ [name='checkbox']": {
|
|
45
|
+
display: 'none',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
_disabled: {
|
|
49
|
+
'& ~ svg': {
|
|
50
|
+
opacity: 0.4,
|
|
51
|
+
pointerEvents: 'none',
|
|
52
|
+
cursor: 'none',
|
|
53
|
+
},
|
|
54
|
+
display: 'inline-grid',
|
|
55
|
+
},
|
|
56
|
+
_error: {
|
|
57
|
+
display: 'inline-grid',
|
|
58
|
+
'& ~ svg': {
|
|
59
|
+
fill: 'error.default',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
_focusVisible: {
|
|
63
|
+
"& ~ [name='checkbox-focus']": {
|
|
64
|
+
display: 'inline-grid',
|
|
65
|
+
position: 'absolute',
|
|
66
|
+
fill: { base: 'slate.90', _dark: 'slate.1' },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
indicator: {
|
|
71
|
+
placeContent: 'center',
|
|
72
|
+
display: 'none',
|
|
73
|
+
width: 24,
|
|
74
|
+
height: 24,
|
|
75
|
+
"&:is([name='checkbox'])": {
|
|
76
|
+
display: 'inline-grid',
|
|
77
|
+
fill: { base: 'slate.30', _dark: 'slate.20' },
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
});
|