@sanity/ui 3.0.0-static.10 → 3.0.0-static.3
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/_chunks-cjs/_visual-editing.js +105 -143
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-cjs/buildCommand.js +1 -1
- package/dist/_chunks-cjs/buildCommand.js.map +1 -1
- package/dist/_chunks-cjs/v3_v2.js +251 -0
- package/dist/_chunks-cjs/v3_v2.js.map +1 -0
- package/dist/_chunks-es/_visual-editing.mjs +106 -144
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_chunks-es/v3_v2.mjs +252 -0
- package/dist/_chunks-es/v3_v2.mjs.map +1 -0
- package/dist/_visual-editing.d.mts +11 -14
- package/dist/_visual-editing.d.ts +11 -14
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +1006 -282
- package/dist/css.d.ts +1006 -282
- package/dist/css.js +743 -852
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +743 -852
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +11 -14
- package/dist/index.d.ts +11 -14
- package/dist/index.js +31 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -19
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-palette.css +9 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +1023 -1448
- package/dist/theme.d.mts +119 -85
- package/dist/theme.d.ts +119 -85
- package/dist/theme.js +219 -432
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +202 -413
- package/dist/theme.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cli/buildCommand.ts +2 -2
- package/src/css/_comp.ts +0 -1
- package/src/css/aspects/flex/flexJustify.style.ts +3 -3
- package/src/css/aspects/grid/types.ts +2 -2
- package/src/css/aspects/index.ts +0 -1
- package/src/css/aspects/textOverflow/textOverflow.ts +2 -2
- package/src/css/compile/compilePalette.ts +41 -8
- package/src/css/compile/compileRule.ts +0 -1
- package/src/css/compile/compileStyle.ts +1 -1
- package/src/css/compile/compileTheme_v3.ts +55 -46
- package/src/css/index.ts +2 -2
- package/src/css/primitives/_input/__workshop__/index.ts +1 -1
- package/src/css/primitives/_selectable/_contants.ts +1 -1
- package/src/css/primitives/badge/badge.style.ts +1 -1
- package/src/css/primitives/box/box.style.ts +1 -1
- package/src/css/primitives/box/box.ts +0 -2
- package/src/css/primitives/box/types.ts +0 -2
- package/src/css/primitives/button/_constants.ts +1 -1
- package/src/css/primitives/button/button.style.ts +13 -32
- package/src/css/primitives/card/_constants.ts +2 -2
- package/src/css/primitives/card/card.style.ts +44 -116
- package/src/css/primitives/card/card.ts +1 -1
- package/src/css/primitives/card/rules.ts +473 -0
- package/src/css/primitives/card/types.ts +1 -0
- package/src/css/primitives/kbd/kbd.style.ts +1 -1
- package/src/css/primitives/popover/popover.ts +0 -4
- package/src/css/primitives/switch/switch.style.ts +83 -8
- package/src/css/primitives/text/text.style.ts +3 -11
- package/src/css/system.style.ts +0 -4
- package/src/css/types.ts +188 -202
- package/src/css/varNames.ts +76 -110
- package/src/css/vars.ts +76 -109
- package/src/theme/defaults/config.ts +2 -2
- package/src/theme/defaults/fonts.ts +4 -4
- package/src/theme/palette/constants.ts +3 -1
- package/src/theme/palette/types.ts +12 -0
- package/src/theme/v3/buildTheme_v3.ts +2 -1
- package/src/theme/v3/color/buildColor_v3.ts +38 -43
- package/src/theme/v3/color/card.ts +38 -43
- package/src/theme/v3/color/color.ts +38 -42
- package/src/theme/v3/defaults.ts +72 -69
- package/src/theme/v3/resolveTokens.ts +38 -43
- package/src/theme/v3/types.ts +3 -0
- package/src/theme/versioning/themeColor_v3_v2.ts +1 -1
- package/src/ui/StyleTags.tsx +1 -1
- package/src/ui/components/autocomplete/__workshop__/async.tsx +1 -0
- package/src/ui/components/autocomplete/__workshop__/index.ts +1 -1
- package/src/ui/components/autocomplete/autocomplete.tsx +11 -2
- package/src/ui/components/dialog/dialog.tsx +4 -3
- package/src/ui/constants.ts +0 -6
- package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +2 -0
- package/src/ui/primitives/box/box.tsx +2 -9
- package/src/ui/primitives/button/button.tsx +11 -12
- package/src/ui/primitives/card/card.tsx +5 -4
- package/src/ui/primitives/code/code.tsx +1 -1
- package/src/ui/primitives/heading/heading.tsx +1 -1
- package/src/ui/primitives/kbd/kbd.tsx +2 -2
- package/src/ui/primitives/popover/popover.tsx +75 -5
- package/src/ui/primitives/popover/popoverCard.tsx +39 -45
- package/src/ui/primitives/select/select.tsx +3 -3
- package/src/ui/primitives/stack/stack.tsx +5 -10
- package/src/ui/primitives/text/text.tsx +1 -1
- package/src/ui/primitives/textInput/textInput.tsx +1 -1
- package/src/ui/primitives/tooltip/tooltip.tsx +3 -2
- package/src/css/aspects/minWidth/index.ts +0 -2
- package/src/css/aspects/minWidth/minWidth.style.ts +0 -13
- package/src/css/aspects/minWidth/minWidth.ts +0 -6
- package/src/css/aspects/minWidth/types.ts +0 -7
- package/src/css/primitives/stack/index.ts +0 -1
- package/src/css/primitives/stack/stack.style.ts +0 -9
- package/src/css/primitives/stack/stack.ts +0 -6
package/dist/css.js
CHANGED
|
@@ -1,94 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
3
|
-
var
|
|
4
|
-
function _resp(prefix, prop) {
|
|
5
|
-
if (!(prop === void 0 || prop === !1))
|
|
6
|
-
return Array.isArray(prop) ? prop.map((value, index) => {
|
|
7
|
-
if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
|
|
8
|
-
const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
|
|
9
|
-
return index === 0 ? className : `${index}:${className}`;
|
|
10
|
-
}).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
|
|
11
|
-
}
|
|
12
|
-
function getClassNames(...classNames) {
|
|
13
|
-
return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
|
|
14
|
-
}
|
|
15
|
-
function composeClassNames(...classNames) {
|
|
16
|
-
return unique(getClassNames(...classNames)).join(" ") || void 0;
|
|
17
|
-
}
|
|
18
|
-
function unique(array) {
|
|
19
|
-
return Array.from(new Set(array));
|
|
20
|
-
}
|
|
21
|
-
function border(props) {
|
|
22
|
-
return composeClassNames(_resp("border", props.border), _resp("border-t", props.borderTop), _resp("border-r", props.borderRight), _resp("border-b", props.borderBottom), _resp("border-l", props.borderLeft));
|
|
23
|
-
}
|
|
24
|
-
function display(props) {
|
|
25
|
-
return composeClassNames(_resp(void 0, props.display));
|
|
26
|
-
}
|
|
27
|
-
function flex(props) {
|
|
28
|
-
return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
|
|
29
|
-
}
|
|
30
|
-
function flexItem(props) {
|
|
31
|
-
return composeClassNames(_resp("f", props.flex));
|
|
32
|
-
}
|
|
33
|
-
function font(props) {
|
|
34
|
-
return composeClassNames("font", props.weight && `font-${props.weight}`, _resp("text-align", props.align));
|
|
35
|
-
}
|
|
36
|
-
function gap(props) {
|
|
37
|
-
return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
|
|
38
|
-
}
|
|
39
|
-
function grid(props) {
|
|
40
|
-
return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-flow", props.autoFlow), _resp("auto-rows", props.autoRows), _resp("cols", props.columns), _resp("rows", props.rows));
|
|
41
|
-
}
|
|
42
|
-
function gridItem(props) {
|
|
43
|
-
return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
|
|
44
|
-
}
|
|
45
|
-
function height(props) {
|
|
46
|
-
return composeClassNames(_resp("h", props.height));
|
|
47
|
-
}
|
|
48
|
-
function inset(props) {
|
|
49
|
-
return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
|
|
50
|
-
}
|
|
51
|
-
function margin(props) {
|
|
52
|
-
return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
|
|
53
|
-
}
|
|
54
|
-
function maxWidth(props) {
|
|
55
|
-
return _resp("max-w", props.maxWidth) ?? "";
|
|
56
|
-
}
|
|
57
|
-
function minWidth(props) {
|
|
58
|
-
return _resp("min-w", props.minWidth) ?? "";
|
|
59
|
-
}
|
|
60
|
-
function overflow(props) {
|
|
61
|
-
return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
|
|
62
|
-
}
|
|
63
|
-
function padding(props) {
|
|
64
|
-
return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
|
|
65
|
-
}
|
|
66
|
-
function pointerEvents(props) {
|
|
67
|
-
return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
|
|
68
|
-
}
|
|
69
|
-
function position(props) {
|
|
70
|
-
return composeClassNames(_resp("position", props.position));
|
|
71
|
-
}
|
|
72
|
-
function radius(props) {
|
|
73
|
-
return composeClassNames(_resp("r", props.radius));
|
|
74
|
-
}
|
|
75
|
-
function shadow(props) {
|
|
76
|
-
return composeClassNames(_resp("shadow", props.shadow));
|
|
77
|
-
}
|
|
3
|
+
var v3_v2 = require("./_chunks-cjs/v3_v2.js"), theme = require("@sanity/ui/theme");
|
|
78
4
|
const PREFIX = "s-";
|
|
79
|
-
function scopeClassName(className) {
|
|
80
|
-
if (className !== void 0)
|
|
81
|
-
return `${PREFIX}${className.trim()}`;
|
|
82
|
-
}
|
|
83
|
-
function _comp(...classNames) {
|
|
84
|
-
return getClassNames(...classNames).filter(Boolean).map(scopeClassName).join(" ") || void 0;
|
|
85
|
-
}
|
|
86
|
-
function textOverflow(props) {
|
|
87
|
-
return _comp(props.textOverflow && `text-overflow-${props.textOverflow}`);
|
|
88
|
-
}
|
|
89
|
-
function width(props) {
|
|
90
|
-
return _resp("w", props.width) ?? "";
|
|
91
|
-
}
|
|
92
5
|
function compileRule(selector, props, context) {
|
|
93
6
|
let css = compileProperties$1(selector, props);
|
|
94
7
|
if (props["@nest"] && (css += compileNestedRules(selector, props["@nest"], context)), props["@keyframes"])
|
|
@@ -120,22 +33,44 @@ function compileNestedRules(selector, props, context) {
|
|
|
120
33
|
function toSnakeCase$1(value) {
|
|
121
34
|
return value.replace(/[A-Z]/g, (match) => "-" + match.toLowerCase());
|
|
122
35
|
}
|
|
123
|
-
function compilePalette() {
|
|
36
|
+
function compilePalette(config) {
|
|
124
37
|
const props = {
|
|
125
|
-
|
|
126
|
-
"--
|
|
127
|
-
"--
|
|
38
|
+
"--l-min": `${config.luminosity.min * 100}%`,
|
|
39
|
+
"--l-max": `${config.luminosity.max * 100}%`,
|
|
40
|
+
"--l-range": "calc(var(--l-max) - var(--l-min))",
|
|
41
|
+
"--c-min": `${config.chroma.min}`,
|
|
42
|
+
"--c-max": `${config.chroma.max}`,
|
|
43
|
+
"--c-range": "calc(var(--c-max) - var(--c-min))",
|
|
44
|
+
...compileHues(config.hues),
|
|
45
|
+
"--black": `oklch(
|
|
46
|
+
calc(var(--l-min) + 0.0 * var(--l-range))
|
|
47
|
+
calc(var(--c-min) + 0.0 * var(--gray-c-range))
|
|
48
|
+
var(--gray-h)
|
|
49
|
+
)`,
|
|
50
|
+
"--white": `oklch(
|
|
51
|
+
calc(var(--l-min) + 1.0 * var(--l-range))
|
|
52
|
+
calc(var(--c-min) + 0.0 * var(--gray-c-range))
|
|
53
|
+
var(--gray-h)
|
|
54
|
+
)`
|
|
128
55
|
};
|
|
129
56
|
return compileRule(":root", props, {
|
|
130
57
|
keyframes: {},
|
|
131
58
|
media: {}
|
|
132
59
|
});
|
|
133
60
|
}
|
|
134
|
-
function compileHues() {
|
|
61
|
+
function compileHues(hues) {
|
|
135
62
|
const rules2 = {};
|
|
136
|
-
for (const hue of theme.HUES)
|
|
137
|
-
|
|
138
|
-
|
|
63
|
+
for (const hue of theme.HUES) {
|
|
64
|
+
const {
|
|
65
|
+
c,
|
|
66
|
+
h
|
|
67
|
+
} = hues[hue];
|
|
68
|
+
rules2[`--${hue}-h`] = `${h}`, rules2[`--${hue}-c`] = `${c}`, rules2[`--${hue}-c-max`] = `min(var(--c-max), var(--${hue}-c))`, rules2[`--${hue}-c-range`] = `calc(var(--${hue}-c-max) - var(--c-min))`;
|
|
69
|
+
for (const tint of theme.TINTS) {
|
|
70
|
+
const l_offset = parseFloat((1 - tint / 1e3).toFixed(2)), c_offset_tmp = tint / 500, c_offset = parseFloat((c_offset_tmp < 1 ? c_offset_tmp : 2 - c_offset_tmp).toFixed(1));
|
|
71
|
+
rules2[`--${hue}-${tint}`] = ["oklch(", `calc(var(--l-min) + ${l_offset} * var(--l-range)) `, `calc(var(--c-min) + ${c_offset} * var(--${hue}-c-range)) `, `var(--${hue}-h)`, ")"].join("");
|
|
72
|
+
}
|
|
73
|
+
}
|
|
139
74
|
return rules2;
|
|
140
75
|
}
|
|
141
76
|
function _mergeStyles(styles) {
|
|
@@ -245,48 +180,6 @@ const varNames = {
|
|
|
245
180
|
backdrop: "--color-backdrop",
|
|
246
181
|
bg: "--color-bg",
|
|
247
182
|
border: "--color-border",
|
|
248
|
-
code: {
|
|
249
|
-
bg: "--color-code-bg",
|
|
250
|
-
fg: "--color-code-fg",
|
|
251
|
-
token: {
|
|
252
|
-
atrule: "--color-code-token-atrule",
|
|
253
|
-
attrName: "--color-code-token-attr-name",
|
|
254
|
-
attrValue: "--color-code-token-attr-value",
|
|
255
|
-
attribute: "--color-code-token-attribute",
|
|
256
|
-
boolean: "--color-code-token-boolean",
|
|
257
|
-
builtin: "--color-code-token-builtin",
|
|
258
|
-
cdata: "--color-code-token-cdata",
|
|
259
|
-
char: "--color-code-token-char",
|
|
260
|
-
class: "--color-code-token-class",
|
|
261
|
-
className: "--color-code-token-class-name",
|
|
262
|
-
comment: "--color-code-token-comment",
|
|
263
|
-
constant: "--color-code-token-constant",
|
|
264
|
-
deleted: "--color-code-token-deleted",
|
|
265
|
-
doctype: "--color-code-token-doctype",
|
|
266
|
-
entity: "--color-code-token-entity",
|
|
267
|
-
function: "--color-code-token-function",
|
|
268
|
-
hexcode: "--color-code-token-hexcode",
|
|
269
|
-
id: "--color-code-token-id",
|
|
270
|
-
important: "--color-code-token-important",
|
|
271
|
-
inserted: "--color-code-token-inserted",
|
|
272
|
-
keyword: "--color-code-token-keyword",
|
|
273
|
-
number: "--color-code-token-number",
|
|
274
|
-
operator: "--color-code-token-operator",
|
|
275
|
-
prolog: "--color-code-token-prolog",
|
|
276
|
-
property: "--color-code-token-property",
|
|
277
|
-
pseudoClass: "--color-code-token-pseudo-class",
|
|
278
|
-
pseudoElement: "--color-code-token-pseudo-element",
|
|
279
|
-
punctuation: "--color-code-token-punctuation",
|
|
280
|
-
regex: "--color-code-token-regex",
|
|
281
|
-
selector: "--color-code-token-selector",
|
|
282
|
-
string: "--color-code-token-string",
|
|
283
|
-
symbol: "--color-code-token-symbol",
|
|
284
|
-
tag: "--color-code-token-tag",
|
|
285
|
-
unit: "--color-code-token-unit",
|
|
286
|
-
url: "--color-code-token-url",
|
|
287
|
-
variable: "--color-code-token-variable"
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
183
|
fg: "--color-fg",
|
|
291
184
|
focusRing: "--color-focus-ring",
|
|
292
185
|
input: {
|
|
@@ -312,6 +205,44 @@ const varNames = {
|
|
|
312
205
|
from: "--color-skeleton-from",
|
|
313
206
|
to: "--color-skeleton-to"
|
|
314
207
|
},
|
|
208
|
+
token: {
|
|
209
|
+
atrule: "--color-token-atrule",
|
|
210
|
+
attrName: "--color-token-attr-name",
|
|
211
|
+
attrValue: "--color-token-attr-value",
|
|
212
|
+
attribute: "--color-token-attribute",
|
|
213
|
+
boolean: "--color-token-boolean",
|
|
214
|
+
builtin: "--color-token-builtin",
|
|
215
|
+
cdata: "--color-token-cdata",
|
|
216
|
+
char: "--color-token-char",
|
|
217
|
+
class: "--color-token-class",
|
|
218
|
+
className: "--color-token-class-name",
|
|
219
|
+
comment: "--color-token-comment",
|
|
220
|
+
constant: "--color-token-constant",
|
|
221
|
+
deleted: "--color-token-deleted",
|
|
222
|
+
doctype: "--color-token-doctype",
|
|
223
|
+
entity: "--color-token-entity",
|
|
224
|
+
function: "--color-token-function",
|
|
225
|
+
hexcode: "--color-token-hexcode",
|
|
226
|
+
id: "--color-token-id",
|
|
227
|
+
important: "--color-token-important",
|
|
228
|
+
inserted: "--color-token-inserted",
|
|
229
|
+
keyword: "--color-token-keyword",
|
|
230
|
+
number: "--color-token-number",
|
|
231
|
+
operator: "--color-token-operator",
|
|
232
|
+
prolog: "--color-token-prolog",
|
|
233
|
+
property: "--color-token-property",
|
|
234
|
+
pseudoClass: "--color-token-pseudo-class",
|
|
235
|
+
pseudoElement: "--color-token-pseudo-element",
|
|
236
|
+
punctuation: "--color-token-punctuation",
|
|
237
|
+
regex: "--color-token-regex",
|
|
238
|
+
selector: "--color-token-selector",
|
|
239
|
+
string: "--color-token-string",
|
|
240
|
+
symbol: "--color-token-symbol",
|
|
241
|
+
tag: "--color-token-tag",
|
|
242
|
+
unit: "--color-token-unit",
|
|
243
|
+
url: "--color-token-url",
|
|
244
|
+
variable: "--color-token-variable"
|
|
245
|
+
},
|
|
315
246
|
solid: buildColorVariantVarNames({
|
|
316
247
|
variant: "solid"
|
|
317
248
|
}),
|
|
@@ -434,13 +365,7 @@ const varNames = {
|
|
|
434
365
|
letterSpacing: `--font-code-${size}-letter-spacing`,
|
|
435
366
|
iconSize: `--font-code-${size}-icon-size`
|
|
436
367
|
}
|
|
437
|
-
}), {})
|
|
438
|
-
weight: {
|
|
439
|
-
regular: "--font-code-weight-regular",
|
|
440
|
-
medium: "--font-code-weight-medium",
|
|
441
|
-
semibold: "--font-code-weight-semibold",
|
|
442
|
-
bold: "--font-code-weight-bold"
|
|
443
|
-
}
|
|
368
|
+
}), {})
|
|
444
369
|
},
|
|
445
370
|
heading: {
|
|
446
371
|
family: "--font-heading-family",
|
|
@@ -454,13 +379,7 @@ const varNames = {
|
|
|
454
379
|
letterSpacing: `--font-heading-${size}-letter-spacing`,
|
|
455
380
|
iconSize: `--font-heading-${size}-icon-size`
|
|
456
381
|
}
|
|
457
|
-
}), {})
|
|
458
|
-
weight: {
|
|
459
|
-
regular: "--font-heading-weight-regular",
|
|
460
|
-
medium: "--font-heading-weight-medium",
|
|
461
|
-
semibold: "--font-heading-weight-semibold",
|
|
462
|
-
bold: "--font-heading-weight-bold"
|
|
463
|
-
}
|
|
382
|
+
}), {})
|
|
464
383
|
},
|
|
465
384
|
label: {
|
|
466
385
|
family: "--font-label-family",
|
|
@@ -474,13 +393,7 @@ const varNames = {
|
|
|
474
393
|
letterSpacing: `--font-label-${size}-letter-spacing`,
|
|
475
394
|
iconSize: `--font-label-${size}-icon-size`
|
|
476
395
|
}
|
|
477
|
-
}), {})
|
|
478
|
-
weight: {
|
|
479
|
-
regular: "--font-label-weight-regular",
|
|
480
|
-
medium: "--font-label-weight-medium",
|
|
481
|
-
semibold: "--font-label-weight-semibold",
|
|
482
|
-
bold: "--font-label-weight-bold"
|
|
483
|
-
}
|
|
396
|
+
}), {})
|
|
484
397
|
},
|
|
485
398
|
text: {
|
|
486
399
|
family: "--font-text-family",
|
|
@@ -494,13 +407,7 @@ const varNames = {
|
|
|
494
407
|
letterSpacing: `--font-text-${size}-letter-spacing`,
|
|
495
408
|
iconSize: `--font-text-${size}-icon-size`
|
|
496
409
|
}
|
|
497
|
-
}), {})
|
|
498
|
-
weight: {
|
|
499
|
-
regular: "--font-text-weight-regular",
|
|
500
|
-
medium: "--font-text-weight-medium",
|
|
501
|
-
semibold: "--font-text-weight-semibold",
|
|
502
|
-
bold: "--font-text-weight-bold"
|
|
503
|
-
}
|
|
410
|
+
}), {})
|
|
504
411
|
}
|
|
505
412
|
},
|
|
506
413
|
input: {
|
|
@@ -564,48 +471,6 @@ function buildColorCardVarNames(props) {
|
|
|
564
471
|
}
|
|
565
472
|
},
|
|
566
473
|
backdrop: `${sourcePrefix}-backdrop`,
|
|
567
|
-
code: {
|
|
568
|
-
bg: `${sourcePrefix}-code-bg`,
|
|
569
|
-
fg: `${sourcePrefix}-code-fg`,
|
|
570
|
-
token: {
|
|
571
|
-
atrule: `${sourcePrefix}-code-token-atrule`,
|
|
572
|
-
attrName: `${sourcePrefix}-code-token-attr-name`,
|
|
573
|
-
attrValue: `${sourcePrefix}-code-token-attr-value`,
|
|
574
|
-
attribute: `${sourcePrefix}-code-token-attribute`,
|
|
575
|
-
boolean: `${sourcePrefix}-code-token-boolean`,
|
|
576
|
-
builtin: `${sourcePrefix}-code-token-builtin`,
|
|
577
|
-
cdata: `${sourcePrefix}-code-token-cdata`,
|
|
578
|
-
char: `${sourcePrefix}-code-token-char`,
|
|
579
|
-
class: `${sourcePrefix}-code-token-class`,
|
|
580
|
-
className: `${sourcePrefix}-code-token-class-name`,
|
|
581
|
-
comment: `${sourcePrefix}-code-token-comment`,
|
|
582
|
-
constant: `${sourcePrefix}-code-token-constant`,
|
|
583
|
-
deleted: `${sourcePrefix}-code-token-deleted`,
|
|
584
|
-
doctype: `${sourcePrefix}-code-token-doctype`,
|
|
585
|
-
entity: `${sourcePrefix}-code-token-entity`,
|
|
586
|
-
function: `${sourcePrefix}-code-token-function`,
|
|
587
|
-
hexcode: `${sourcePrefix}-code-token-hexcode`,
|
|
588
|
-
id: `${sourcePrefix}-code-token-id`,
|
|
589
|
-
important: `${sourcePrefix}-code-token-important`,
|
|
590
|
-
inserted: `${sourcePrefix}-code-token-inserted`,
|
|
591
|
-
keyword: `${sourcePrefix}-code-token-keyword`,
|
|
592
|
-
number: `${sourcePrefix}-code-token-number`,
|
|
593
|
-
operator: `${sourcePrefix}-code-token-operator`,
|
|
594
|
-
prolog: `${sourcePrefix}-code-token-prolog`,
|
|
595
|
-
property: `${sourcePrefix}-code-token-property`,
|
|
596
|
-
pseudoClass: `${sourcePrefix}-code-token-pseudo-class`,
|
|
597
|
-
pseudoElement: `${sourcePrefix}-code-token-pseudo-element`,
|
|
598
|
-
punctuation: `${sourcePrefix}-code-token-punctuation`,
|
|
599
|
-
regex: `${sourcePrefix}-code-token-regex`,
|
|
600
|
-
selector: `${sourcePrefix}-code-token-selector`,
|
|
601
|
-
string: `${sourcePrefix}-code-token-string`,
|
|
602
|
-
symbol: `${sourcePrefix}-code-token-symbol`,
|
|
603
|
-
tag: `${sourcePrefix}-code-token-tag`,
|
|
604
|
-
unit: `${sourcePrefix}-code-token-unit`,
|
|
605
|
-
url: `${sourcePrefix}-code-token-url`,
|
|
606
|
-
variable: `${sourcePrefix}-code-token-variable`
|
|
607
|
-
}
|
|
608
|
-
},
|
|
609
474
|
focusRing: `${sourcePrefix}-focus-ring`,
|
|
610
475
|
link: {
|
|
611
476
|
fg: `${sourcePrefix}-link-fg`
|
|
@@ -624,6 +489,44 @@ function buildColorCardVarNames(props) {
|
|
|
624
489
|
from: `${sourcePrefix}-skeleton-from`,
|
|
625
490
|
to: `${sourcePrefix}-skeleton-to`
|
|
626
491
|
},
|
|
492
|
+
token: {
|
|
493
|
+
atrule: `${sourcePrefix}-token-atrule`,
|
|
494
|
+
attrName: `${sourcePrefix}-token-attr-name`,
|
|
495
|
+
attrValue: `${sourcePrefix}-token-attr-value`,
|
|
496
|
+
attribute: `${sourcePrefix}-token-attribute`,
|
|
497
|
+
boolean: `${sourcePrefix}-token-boolean`,
|
|
498
|
+
builtin: `${sourcePrefix}-token-builtin`,
|
|
499
|
+
cdata: `${sourcePrefix}-token-cdata`,
|
|
500
|
+
char: `${sourcePrefix}-token-char`,
|
|
501
|
+
class: `${sourcePrefix}-token-class`,
|
|
502
|
+
className: `${sourcePrefix}-token-class-name`,
|
|
503
|
+
comment: `${sourcePrefix}-token-comment`,
|
|
504
|
+
constant: `${sourcePrefix}-token-constant`,
|
|
505
|
+
deleted: `${sourcePrefix}-token-deleted`,
|
|
506
|
+
doctype: `${sourcePrefix}-token-doctype`,
|
|
507
|
+
entity: `${sourcePrefix}-token-entity`,
|
|
508
|
+
function: `${sourcePrefix}-token-function`,
|
|
509
|
+
hexcode: `${sourcePrefix}-token-hexcode`,
|
|
510
|
+
id: `${sourcePrefix}-token-id`,
|
|
511
|
+
important: `${sourcePrefix}-token-important`,
|
|
512
|
+
inserted: `${sourcePrefix}-token-inserted`,
|
|
513
|
+
keyword: `${sourcePrefix}-token-keyword`,
|
|
514
|
+
number: `${sourcePrefix}-token-number`,
|
|
515
|
+
operator: `${sourcePrefix}-token-operator`,
|
|
516
|
+
prolog: `${sourcePrefix}-token-prolog`,
|
|
517
|
+
property: `${sourcePrefix}-token-property`,
|
|
518
|
+
pseudoClass: `${sourcePrefix}-token-pseudo-class`,
|
|
519
|
+
pseudoElement: `${sourcePrefix}-token-pseudo-element`,
|
|
520
|
+
punctuation: `${sourcePrefix}-token-punctuation`,
|
|
521
|
+
regex: `${sourcePrefix}-token-regex`,
|
|
522
|
+
selector: `${sourcePrefix}-token-selector`,
|
|
523
|
+
string: `${sourcePrefix}-token-string`,
|
|
524
|
+
symbol: `${sourcePrefix}-token-symbol`,
|
|
525
|
+
tag: `${sourcePrefix}-token-tag`,
|
|
526
|
+
unit: `${sourcePrefix}-token-unit`,
|
|
527
|
+
url: `${sourcePrefix}-token-url`,
|
|
528
|
+
variable: `${sourcePrefix}-token-variable`
|
|
529
|
+
},
|
|
627
530
|
solid: buildColorVariantVarNames({
|
|
628
531
|
scheme,
|
|
629
532
|
tone,
|
|
@@ -751,48 +654,6 @@ const colorVars = {
|
|
|
751
654
|
backdrop: `var(${varNames.color.backdrop})`,
|
|
752
655
|
bg: `var(${varNames.color.bg})`,
|
|
753
656
|
border: `var(${varNames.color.border})`,
|
|
754
|
-
code: {
|
|
755
|
-
bg: `var(${varNames.color.code.bg})`,
|
|
756
|
-
fg: `var(${varNames.color.code.fg})`,
|
|
757
|
-
token: {
|
|
758
|
-
atrule: `var(${varNames.color.code.token.atrule})`,
|
|
759
|
-
attrName: `var(${varNames.color.code.token.attrName})`,
|
|
760
|
-
attrValue: `var(${varNames.color.code.token.attrValue})`,
|
|
761
|
-
attribute: `var(${varNames.color.code.token.attribute})`,
|
|
762
|
-
boolean: `var(${varNames.color.code.token.boolean})`,
|
|
763
|
-
builtin: `var(${varNames.color.code.token.builtin})`,
|
|
764
|
-
cdata: `var(${varNames.color.code.token.cdata})`,
|
|
765
|
-
char: `var(${varNames.color.code.token.char})`,
|
|
766
|
-
class: `var(${varNames.color.code.token.class})`,
|
|
767
|
-
className: `var(${varNames.color.code.token.className})`,
|
|
768
|
-
comment: `var(${varNames.color.code.token.comment})`,
|
|
769
|
-
constant: `var(${varNames.color.code.token.constant})`,
|
|
770
|
-
deleted: `var(${varNames.color.code.token.deleted})`,
|
|
771
|
-
doctype: `var(${varNames.color.code.token.doctype})`,
|
|
772
|
-
entity: `var(${varNames.color.code.token.entity})`,
|
|
773
|
-
function: `var(${varNames.color.code.token.function})`,
|
|
774
|
-
hexcode: `var(${varNames.color.code.token.hexcode})`,
|
|
775
|
-
id: `var(${varNames.color.code.token.id})`,
|
|
776
|
-
important: `var(${varNames.color.code.token.important})`,
|
|
777
|
-
inserted: `var(${varNames.color.code.token.inserted})`,
|
|
778
|
-
keyword: `var(${varNames.color.code.token.keyword})`,
|
|
779
|
-
number: `var(${varNames.color.code.token.number})`,
|
|
780
|
-
operator: `var(${varNames.color.code.token.operator})`,
|
|
781
|
-
prolog: `var(${varNames.color.code.token.prolog})`,
|
|
782
|
-
property: `var(${varNames.color.code.token.property})`,
|
|
783
|
-
pseudoClass: `var(${varNames.color.code.token.pseudoClass})`,
|
|
784
|
-
pseudoElement: `var(${varNames.color.code.token.pseudoElement})`,
|
|
785
|
-
punctuation: `var(${varNames.color.code.token.punctuation})`,
|
|
786
|
-
regex: `var(${varNames.color.code.token.regex})`,
|
|
787
|
-
selector: `var(${varNames.color.code.token.selector})`,
|
|
788
|
-
string: `var(${varNames.color.code.token.string})`,
|
|
789
|
-
symbol: `var(${varNames.color.code.token.symbol})`,
|
|
790
|
-
tag: `var(${varNames.color.code.token.tag})`,
|
|
791
|
-
unit: `var(${varNames.color.code.token.unit})`,
|
|
792
|
-
url: `var(${varNames.color.code.token.url})`,
|
|
793
|
-
variable: `var(${varNames.color.code.token.variable})`
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
657
|
fg: `var(${varNames.color.fg})`,
|
|
797
658
|
focusRing: `var(${varNames.color.focusRing})`,
|
|
798
659
|
input: {
|
|
@@ -818,6 +679,44 @@ const colorVars = {
|
|
|
818
679
|
from: `var(${varNames.color.skeleton.from})`,
|
|
819
680
|
to: `var(${varNames.color.skeleton.to})`
|
|
820
681
|
},
|
|
682
|
+
token: {
|
|
683
|
+
atrule: `var(${varNames.color.token.atrule})`,
|
|
684
|
+
attrName: `var(${varNames.color.token.attrName})`,
|
|
685
|
+
attrValue: `var(${varNames.color.token.attrValue})`,
|
|
686
|
+
attribute: `var(${varNames.color.token.attribute})`,
|
|
687
|
+
boolean: `var(${varNames.color.token.boolean})`,
|
|
688
|
+
builtin: `var(${varNames.color.token.builtin})`,
|
|
689
|
+
cdata: `var(${varNames.color.token.cdata})`,
|
|
690
|
+
char: `var(${varNames.color.token.char})`,
|
|
691
|
+
class: `var(${varNames.color.token.class})`,
|
|
692
|
+
className: `var(${varNames.color.token.className})`,
|
|
693
|
+
comment: `var(${varNames.color.token.comment})`,
|
|
694
|
+
constant: `var(${varNames.color.token.constant})`,
|
|
695
|
+
deleted: `var(${varNames.color.token.deleted})`,
|
|
696
|
+
doctype: `var(${varNames.color.token.doctype})`,
|
|
697
|
+
entity: `var(${varNames.color.token.entity})`,
|
|
698
|
+
function: `var(${varNames.color.token.function})`,
|
|
699
|
+
hexcode: `var(${varNames.color.token.hexcode})`,
|
|
700
|
+
id: `var(${varNames.color.token.id})`,
|
|
701
|
+
important: `var(${varNames.color.token.important})`,
|
|
702
|
+
inserted: `var(${varNames.color.token.inserted})`,
|
|
703
|
+
keyword: `var(${varNames.color.token.keyword})`,
|
|
704
|
+
number: `var(${varNames.color.token.number})`,
|
|
705
|
+
operator: `var(${varNames.color.token.operator})`,
|
|
706
|
+
prolog: `var(${varNames.color.token.prolog})`,
|
|
707
|
+
property: `var(${varNames.color.token.property})`,
|
|
708
|
+
pseudoClass: `var(${varNames.color.token.pseudoClass})`,
|
|
709
|
+
pseudoElement: `var(${varNames.color.token.pseudoElement})`,
|
|
710
|
+
punctuation: `var(${varNames.color.token.punctuation})`,
|
|
711
|
+
regex: `var(${varNames.color.token.regex})`,
|
|
712
|
+
selector: `var(${varNames.color.token.selector})`,
|
|
713
|
+
string: `var(${varNames.color.token.string})`,
|
|
714
|
+
symbol: `var(${varNames.color.token.symbol})`,
|
|
715
|
+
tag: `var(${varNames.color.token.tag})`,
|
|
716
|
+
unit: `var(${varNames.color.token.unit})`,
|
|
717
|
+
url: `var(${varNames.color.token.url})`,
|
|
718
|
+
variable: `var(${varNames.color.token.variable})`
|
|
719
|
+
},
|
|
821
720
|
solid: buildColorVariantVars({
|
|
822
721
|
variant: "solid"
|
|
823
722
|
}),
|
|
@@ -866,13 +765,7 @@ const colorVars = {
|
|
|
866
765
|
letterSpacing: `var(${varNames.font.code.sizes[size].letterSpacing})`,
|
|
867
766
|
iconSize: `var(${varNames.font.code.sizes[size].iconSize})`
|
|
868
767
|
}
|
|
869
|
-
}), {})
|
|
870
|
-
weight: {
|
|
871
|
-
regular: `var(${varNames.font.code.weight.regular})`,
|
|
872
|
-
medium: `var(${varNames.font.code.weight.medium})`,
|
|
873
|
-
semibold: `var(${varNames.font.code.weight.semibold})`,
|
|
874
|
-
bold: `var(${varNames.font.code.weight.bold})`
|
|
875
|
-
}
|
|
768
|
+
}), {})
|
|
876
769
|
},
|
|
877
770
|
heading: {
|
|
878
771
|
family: `var(${varNames.font.heading.family})`,
|
|
@@ -886,13 +779,7 @@ const colorVars = {
|
|
|
886
779
|
letterSpacing: `var(${varNames.font.heading.sizes[size].letterSpacing})`,
|
|
887
780
|
iconSize: `var(${varNames.font.heading.sizes[size].iconSize})`
|
|
888
781
|
}
|
|
889
|
-
}), {})
|
|
890
|
-
weight: {
|
|
891
|
-
regular: `var(${varNames.font.heading.weight.regular})`,
|
|
892
|
-
medium: `var(${varNames.font.heading.weight.medium})`,
|
|
893
|
-
semibold: `var(${varNames.font.heading.weight.semibold})`,
|
|
894
|
-
bold: `var(${varNames.font.heading.weight.bold})`
|
|
895
|
-
}
|
|
782
|
+
}), {})
|
|
896
783
|
},
|
|
897
784
|
label: {
|
|
898
785
|
family: `var(${varNames.font.label.family})`,
|
|
@@ -906,13 +793,7 @@ const colorVars = {
|
|
|
906
793
|
letterSpacing: `var(${varNames.font.label.sizes[size].letterSpacing})`,
|
|
907
794
|
iconSize: `var(${varNames.font.label.sizes[size].iconSize})`
|
|
908
795
|
}
|
|
909
|
-
}), {})
|
|
910
|
-
weight: {
|
|
911
|
-
regular: `var(${varNames.font.label.weight.regular})`,
|
|
912
|
-
medium: `var(${varNames.font.label.weight.medium})`,
|
|
913
|
-
semibold: `var(${varNames.font.label.weight.semibold})`,
|
|
914
|
-
bold: `var(${varNames.font.label.weight.bold})`
|
|
915
|
-
}
|
|
796
|
+
}), {})
|
|
916
797
|
},
|
|
917
798
|
text: {
|
|
918
799
|
family: `var(${varNames.font.text.family})`,
|
|
@@ -926,13 +807,7 @@ const colorVars = {
|
|
|
926
807
|
letterSpacing: `var(${varNames.font.text.sizes[size].letterSpacing})`,
|
|
927
808
|
iconSize: `var(${varNames.font.text.sizes[size].iconSize})`
|
|
928
809
|
}
|
|
929
|
-
}), {})
|
|
930
|
-
weight: {
|
|
931
|
-
regular: `var(${varNames.font.text.weight.regular})`,
|
|
932
|
-
medium: `var(${varNames.font.text.weight.medium})`,
|
|
933
|
-
semibold: `var(${varNames.font.text.weight.semibold})`,
|
|
934
|
-
bold: `var(${varNames.font.text.weight.bold})`
|
|
935
|
-
}
|
|
810
|
+
}), {})
|
|
936
811
|
}
|
|
937
812
|
},
|
|
938
813
|
input: {
|
|
@@ -964,57 +839,15 @@ function buildColorCardVars(props) {
|
|
|
964
839
|
fg: `var(${prefix.accent.fg})`
|
|
965
840
|
},
|
|
966
841
|
avatar: {
|
|
967
|
-
...theme.THEME_COLOR_AVATAR_COLORS.reduce((acc,
|
|
842
|
+
...theme.THEME_COLOR_AVATAR_COLORS.reduce((acc, color) => ({
|
|
968
843
|
...acc,
|
|
969
|
-
[
|
|
970
|
-
bg: `var(${prefix.avatar[
|
|
971
|
-
fg: `var(${prefix.avatar[
|
|
844
|
+
[color]: {
|
|
845
|
+
bg: `var(${prefix.avatar[color].bg})`,
|
|
846
|
+
fg: `var(${prefix.avatar[color].fg})`
|
|
972
847
|
}
|
|
973
848
|
}), {})
|
|
974
849
|
},
|
|
975
850
|
backdrop: `var(${prefix.backdrop})`,
|
|
976
|
-
code: {
|
|
977
|
-
bg: `var(${prefix.code.bg})`,
|
|
978
|
-
fg: `var(${prefix.code.fg})`,
|
|
979
|
-
token: {
|
|
980
|
-
atrule: `var(${prefix.code.token.atrule})`,
|
|
981
|
-
attrName: `var(${prefix.code.token.attrName})`,
|
|
982
|
-
attrValue: `var(${prefix.code.token.attrValue})`,
|
|
983
|
-
attribute: `var(${prefix.code.token.attribute})`,
|
|
984
|
-
boolean: `var(${prefix.code.token.boolean})`,
|
|
985
|
-
builtin: `var(${prefix.code.token.builtin})`,
|
|
986
|
-
cdata: `var(${prefix.code.token.cdata})`,
|
|
987
|
-
char: `var(${prefix.code.token.char})`,
|
|
988
|
-
class: `var(${prefix.code.token.class})`,
|
|
989
|
-
className: `var(${prefix.code.token.className})`,
|
|
990
|
-
comment: `var(${prefix.code.token.comment})`,
|
|
991
|
-
constant: `var(${prefix.code.token.constant})`,
|
|
992
|
-
deleted: `var(${prefix.code.token.deleted})`,
|
|
993
|
-
doctype: `var(${prefix.code.token.doctype})`,
|
|
994
|
-
entity: `var(${prefix.code.token.entity})`,
|
|
995
|
-
function: `var(${prefix.code.token.function})`,
|
|
996
|
-
hexcode: `var(${prefix.code.token.hexcode})`,
|
|
997
|
-
id: `var(${prefix.code.token.id})`,
|
|
998
|
-
important: `var(${prefix.code.token.important})`,
|
|
999
|
-
inserted: `var(${prefix.code.token.inserted})`,
|
|
1000
|
-
keyword: `var(${prefix.code.token.keyword})`,
|
|
1001
|
-
number: `var(${prefix.code.token.number})`,
|
|
1002
|
-
operator: `var(${prefix.code.token.operator})`,
|
|
1003
|
-
prolog: `var(${prefix.code.token.prolog})`,
|
|
1004
|
-
property: `var(${prefix.code.token.property})`,
|
|
1005
|
-
pseudoClass: `var(${prefix.code.token.pseudoClass})`,
|
|
1006
|
-
pseudoElement: `var(${prefix.code.token.pseudoElement})`,
|
|
1007
|
-
punctuation: `var(${prefix.code.token.punctuation})`,
|
|
1008
|
-
regex: `var(${prefix.code.token.regex})`,
|
|
1009
|
-
selector: `var(${prefix.code.token.selector})`,
|
|
1010
|
-
string: `var(${prefix.code.token.string})`,
|
|
1011
|
-
symbol: `var(${prefix.code.token.symbol})`,
|
|
1012
|
-
tag: `var(${prefix.code.token.tag})`,
|
|
1013
|
-
unit: `var(${prefix.code.token.unit})`,
|
|
1014
|
-
url: `var(${prefix.code.token.url})`,
|
|
1015
|
-
variable: `var(${prefix.code.token.variable})`
|
|
1016
|
-
}
|
|
1017
|
-
},
|
|
1018
851
|
focusRing: `var(${prefix.focusRing})`,
|
|
1019
852
|
link: {
|
|
1020
853
|
fg: `var(${prefix.link.fg})`
|
|
@@ -1033,6 +866,44 @@ function buildColorCardVars(props) {
|
|
|
1033
866
|
from: `var(${prefix.skeleton.from})`,
|
|
1034
867
|
to: `var(${prefix.skeleton.to})`
|
|
1035
868
|
},
|
|
869
|
+
token: {
|
|
870
|
+
atrule: `var(${prefix.token.atrule})`,
|
|
871
|
+
attrName: `var(${prefix.token.attrName})`,
|
|
872
|
+
attrValue: `var(${prefix.token.attrValue})`,
|
|
873
|
+
attribute: `var(${prefix.token.attribute})`,
|
|
874
|
+
boolean: `var(${prefix.token.boolean})`,
|
|
875
|
+
builtin: `var(${prefix.token.builtin})`,
|
|
876
|
+
cdata: `var(${prefix.token.cdata})`,
|
|
877
|
+
char: `var(${prefix.token.char})`,
|
|
878
|
+
class: `var(${prefix.token.class})`,
|
|
879
|
+
className: `var(${prefix.token.className})`,
|
|
880
|
+
comment: `var(${prefix.token.comment})`,
|
|
881
|
+
constant: `var(${prefix.token.constant})`,
|
|
882
|
+
deleted: `var(${prefix.token.deleted})`,
|
|
883
|
+
doctype: `var(${prefix.token.doctype})`,
|
|
884
|
+
entity: `var(${prefix.token.entity})`,
|
|
885
|
+
function: `var(${prefix.token.function})`,
|
|
886
|
+
hexcode: `var(${prefix.token.hexcode})`,
|
|
887
|
+
id: `var(${prefix.token.id})`,
|
|
888
|
+
important: `var(${prefix.token.important})`,
|
|
889
|
+
inserted: `var(${prefix.token.inserted})`,
|
|
890
|
+
keyword: `var(${prefix.token.keyword})`,
|
|
891
|
+
number: `var(${prefix.token.number})`,
|
|
892
|
+
operator: `var(${prefix.token.operator})`,
|
|
893
|
+
prolog: `var(${prefix.token.prolog})`,
|
|
894
|
+
property: `var(${prefix.token.property})`,
|
|
895
|
+
pseudoClass: `var(${prefix.token.pseudoClass})`,
|
|
896
|
+
pseudoElement: `var(${prefix.token.pseudoElement})`,
|
|
897
|
+
punctuation: `var(${prefix.token.punctuation})`,
|
|
898
|
+
regex: `var(${prefix.token.regex})`,
|
|
899
|
+
selector: `var(${prefix.token.selector})`,
|
|
900
|
+
string: `var(${prefix.token.string})`,
|
|
901
|
+
symbol: `var(${prefix.token.symbol})`,
|
|
902
|
+
tag: `var(${prefix.token.tag})`,
|
|
903
|
+
unit: `var(${prefix.token.unit})`,
|
|
904
|
+
url: `var(${prefix.token.url})`,
|
|
905
|
+
variable: `var(${prefix.token.variable})`
|
|
906
|
+
},
|
|
1036
907
|
solid: buildColorVariantVars({
|
|
1037
908
|
scheme,
|
|
1038
909
|
tone,
|
|
@@ -1101,70 +972,70 @@ function buildColorVariantVars(options) {
|
|
|
1101
972
|
}
|
|
1102
973
|
return vars2;
|
|
1103
974
|
}
|
|
1104
|
-
const util$
|
|
1105
|
-
_responsiveRule(util$
|
|
975
|
+
const util$s = {};
|
|
976
|
+
_responsiveRule(util$s, "border", {
|
|
1106
977
|
border: `1px solid ${vars.color.border}`
|
|
1107
978
|
});
|
|
1108
|
-
_responsiveRule(util$
|
|
979
|
+
_responsiveRule(util$s, "border-t", {
|
|
1109
980
|
borderTop: `1px solid ${vars.color.border}`
|
|
1110
981
|
});
|
|
1111
|
-
_responsiveRule(util$
|
|
982
|
+
_responsiveRule(util$s, "border-r", {
|
|
1112
983
|
borderRight: `1px solid ${vars.color.border}`
|
|
1113
984
|
});
|
|
1114
|
-
_responsiveRule(util$
|
|
985
|
+
_responsiveRule(util$s, "border-b", {
|
|
1115
986
|
borderBottom: `1px solid ${vars.color.border}`
|
|
1116
987
|
});
|
|
1117
|
-
_responsiveRule(util$
|
|
988
|
+
_responsiveRule(util$s, "border-l", {
|
|
1118
989
|
borderLeft: `1px solid ${vars.color.border}`
|
|
1119
990
|
});
|
|
1120
991
|
const borderStyle = {
|
|
1121
992
|
layers: {
|
|
1122
|
-
util: util$
|
|
993
|
+
util: util$s
|
|
1123
994
|
}
|
|
1124
|
-
}, util$
|
|
1125
|
-
_responsiveRule(util$
|
|
995
|
+
}, util$r = {};
|
|
996
|
+
_responsiveRule(util$r, "block", {
|
|
1126
997
|
"@nest": {
|
|
1127
998
|
"&:not([hidden])": {
|
|
1128
999
|
display: "block"
|
|
1129
1000
|
}
|
|
1130
1001
|
}
|
|
1131
1002
|
});
|
|
1132
|
-
_responsiveRule(util$
|
|
1003
|
+
_responsiveRule(util$r, "flex", {
|
|
1133
1004
|
"@nest": {
|
|
1134
1005
|
"&:not([hidden])": {
|
|
1135
1006
|
display: "flex"
|
|
1136
1007
|
}
|
|
1137
1008
|
}
|
|
1138
1009
|
});
|
|
1139
|
-
_responsiveRule(util$
|
|
1010
|
+
_responsiveRule(util$r, "grid", {
|
|
1140
1011
|
"@nest": {
|
|
1141
1012
|
"&:not([hidden])": {
|
|
1142
1013
|
display: "grid"
|
|
1143
1014
|
}
|
|
1144
1015
|
}
|
|
1145
1016
|
});
|
|
1146
|
-
_responsiveRule(util$
|
|
1017
|
+
_responsiveRule(util$r, "inline-block", {
|
|
1147
1018
|
"@nest": {
|
|
1148
1019
|
"&:not([hidden])": {
|
|
1149
1020
|
display: "inline-block"
|
|
1150
1021
|
}
|
|
1151
1022
|
}
|
|
1152
1023
|
});
|
|
1153
|
-
_responsiveRule(util$
|
|
1024
|
+
_responsiveRule(util$r, "inline-flex", {
|
|
1154
1025
|
"@nest": {
|
|
1155
1026
|
"&:not([hidden])": {
|
|
1156
1027
|
display: "inline-flex"
|
|
1157
1028
|
}
|
|
1158
1029
|
}
|
|
1159
1030
|
});
|
|
1160
|
-
_responsiveRule(util$
|
|
1031
|
+
_responsiveRule(util$r, "inline-grid", {
|
|
1161
1032
|
"@nest": {
|
|
1162
1033
|
"&:not([hidden])": {
|
|
1163
1034
|
display: "inline-grid"
|
|
1164
1035
|
}
|
|
1165
1036
|
}
|
|
1166
1037
|
});
|
|
1167
|
-
_responsiveRule(util$
|
|
1038
|
+
_responsiveRule(util$r, "none", {
|
|
1168
1039
|
"@nest": {
|
|
1169
1040
|
"&:not([hidden])": {
|
|
1170
1041
|
display: "none"
|
|
@@ -1173,125 +1044,125 @@ _responsiveRule(util$s, "none", {
|
|
|
1173
1044
|
});
|
|
1174
1045
|
const displayStyle = {
|
|
1175
1046
|
layers: {
|
|
1176
|
-
util: util$
|
|
1047
|
+
util: util$r
|
|
1177
1048
|
}
|
|
1178
|
-
}, util$
|
|
1179
|
-
_responsiveRule(util$
|
|
1049
|
+
}, util$q = {};
|
|
1050
|
+
_responsiveRule(util$q, "flex-align-flex-start", {
|
|
1180
1051
|
alignItems: "flex-start"
|
|
1181
1052
|
});
|
|
1182
|
-
_responsiveRule(util$
|
|
1053
|
+
_responsiveRule(util$q, "flex-align-flex-end", {
|
|
1183
1054
|
alignItems: "flex-end"
|
|
1184
1055
|
});
|
|
1185
|
-
_responsiveRule(util$
|
|
1056
|
+
_responsiveRule(util$q, "flex-align-center", {
|
|
1186
1057
|
alignItems: "center"
|
|
1187
1058
|
});
|
|
1188
|
-
_responsiveRule(util$
|
|
1059
|
+
_responsiveRule(util$q, "flex-align-stretch", {
|
|
1189
1060
|
alignItems: "stretch"
|
|
1190
1061
|
});
|
|
1191
|
-
_responsiveRule(util$
|
|
1062
|
+
_responsiveRule(util$q, "flex-align-baseline", {
|
|
1192
1063
|
alignItems: "baseline"
|
|
1193
1064
|
});
|
|
1194
1065
|
const flexAlignStyle = {
|
|
1195
1066
|
layers: {
|
|
1196
|
-
util: util$
|
|
1067
|
+
util: util$q
|
|
1197
1068
|
}
|
|
1198
|
-
}, util$
|
|
1199
|
-
_responsiveRule(util$
|
|
1069
|
+
}, util$p = {};
|
|
1070
|
+
_responsiveRule(util$p, "f-row", {
|
|
1200
1071
|
flexDirection: "row"
|
|
1201
1072
|
});
|
|
1202
|
-
_responsiveRule(util$
|
|
1073
|
+
_responsiveRule(util$p, "f-column", {
|
|
1203
1074
|
flexDirection: "column"
|
|
1204
1075
|
});
|
|
1205
1076
|
const flexDirectionStyle = {
|
|
1206
1077
|
layers: {
|
|
1207
|
-
util: util$
|
|
1078
|
+
util: util$p
|
|
1208
1079
|
}
|
|
1209
|
-
}, util$
|
|
1210
|
-
_responsiveRule(util$
|
|
1080
|
+
}, util$o = {};
|
|
1081
|
+
_responsiveRule(util$o, "flex-justify-flex-start", {
|
|
1211
1082
|
justifyContent: "flex-start"
|
|
1212
1083
|
});
|
|
1213
|
-
_responsiveRule(util$
|
|
1084
|
+
_responsiveRule(util$o, "flex-justify-flex-end", {
|
|
1214
1085
|
justifyContent: "flex-end"
|
|
1215
1086
|
});
|
|
1216
|
-
_responsiveRule(util$
|
|
1087
|
+
_responsiveRule(util$o, "flex-justify-center", {
|
|
1217
1088
|
justifyContent: "center"
|
|
1218
1089
|
});
|
|
1219
|
-
_responsiveRule(util$
|
|
1090
|
+
_responsiveRule(util$o, "flex-justify-between", {
|
|
1220
1091
|
justifyContent: "space-between"
|
|
1221
1092
|
});
|
|
1222
|
-
_responsiveRule(util$
|
|
1093
|
+
_responsiveRule(util$o, "flex-justify-around", {
|
|
1223
1094
|
justifyContent: "space-around"
|
|
1224
1095
|
});
|
|
1225
|
-
_responsiveRule(util$
|
|
1096
|
+
_responsiveRule(util$o, "flex-justify-evenly", {
|
|
1226
1097
|
justifyContent: "space-evenly"
|
|
1227
1098
|
});
|
|
1228
1099
|
const flexJustifyStyle = {
|
|
1229
1100
|
layers: {
|
|
1230
|
-
util: util$
|
|
1101
|
+
util: util$o
|
|
1231
1102
|
}
|
|
1232
|
-
}, util$
|
|
1233
|
-
_responsiveRule(util$
|
|
1103
|
+
}, util$n = {};
|
|
1104
|
+
_responsiveRule(util$n, "flex-nowrap", {
|
|
1234
1105
|
flexWrap: "nowrap"
|
|
1235
1106
|
});
|
|
1236
|
-
_responsiveRule(util$
|
|
1107
|
+
_responsiveRule(util$n, "flex-wrap", {
|
|
1237
1108
|
flexWrap: "wrap"
|
|
1238
1109
|
});
|
|
1239
|
-
_responsiveRule(util$
|
|
1110
|
+
_responsiveRule(util$n, "flex-wrap-reverse", {
|
|
1240
1111
|
flexWrap: "wrap-reverse"
|
|
1241
1112
|
});
|
|
1242
1113
|
const flexWrapStyle = {
|
|
1243
1114
|
layers: {
|
|
1244
|
-
util: util$
|
|
1115
|
+
util: util$n
|
|
1245
1116
|
}
|
|
1246
|
-
}, util$
|
|
1247
|
-
_responsiveRule(util$
|
|
1117
|
+
}, util$m = {};
|
|
1118
|
+
_responsiveRule(util$m, "f-none", {
|
|
1248
1119
|
flex: "none"
|
|
1249
1120
|
});
|
|
1250
|
-
_responsiveRule(util$
|
|
1121
|
+
_responsiveRule(util$m, "f-auto", {
|
|
1251
1122
|
flex: "auto"
|
|
1252
1123
|
});
|
|
1253
|
-
_responsiveRule(util$
|
|
1124
|
+
_responsiveRule(util$m, "f-initial", {
|
|
1254
1125
|
flex: "initial"
|
|
1255
1126
|
});
|
|
1256
|
-
_responsiveRule(util$
|
|
1127
|
+
_responsiveRule(util$m, "f-1", {
|
|
1257
1128
|
flex: 1
|
|
1258
1129
|
});
|
|
1259
|
-
_responsiveRule(util$
|
|
1130
|
+
_responsiveRule(util$m, "f-2", {
|
|
1260
1131
|
flex: 2
|
|
1261
1132
|
});
|
|
1262
|
-
_responsiveRule(util$
|
|
1133
|
+
_responsiveRule(util$m, "f-3", {
|
|
1263
1134
|
flex: 3
|
|
1264
1135
|
});
|
|
1265
|
-
_responsiveRule(util$
|
|
1136
|
+
_responsiveRule(util$m, "f-4", {
|
|
1266
1137
|
flex: 4
|
|
1267
1138
|
});
|
|
1268
|
-
_responsiveRule(util$
|
|
1139
|
+
_responsiveRule(util$m, "f-5", {
|
|
1269
1140
|
flex: 5
|
|
1270
1141
|
});
|
|
1271
|
-
_responsiveRule(util$
|
|
1142
|
+
_responsiveRule(util$m, "f-6", {
|
|
1272
1143
|
flex: 6
|
|
1273
1144
|
});
|
|
1274
|
-
_responsiveRule(util$
|
|
1145
|
+
_responsiveRule(util$m, "f-7", {
|
|
1275
1146
|
flex: 7
|
|
1276
1147
|
});
|
|
1277
|
-
_responsiveRule(util$
|
|
1148
|
+
_responsiveRule(util$m, "f-8", {
|
|
1278
1149
|
flex: 8
|
|
1279
1150
|
});
|
|
1280
|
-
_responsiveRule(util$
|
|
1151
|
+
_responsiveRule(util$m, "f-9", {
|
|
1281
1152
|
flex: 9
|
|
1282
1153
|
});
|
|
1283
|
-
_responsiveRule(util$
|
|
1154
|
+
_responsiveRule(util$m, "f-10", {
|
|
1284
1155
|
flex: 10
|
|
1285
1156
|
});
|
|
1286
|
-
_responsiveRule(util$
|
|
1157
|
+
_responsiveRule(util$m, "f-11", {
|
|
1287
1158
|
flex: 11
|
|
1288
1159
|
});
|
|
1289
|
-
_responsiveRule(util$
|
|
1160
|
+
_responsiveRule(util$m, "f-12", {
|
|
1290
1161
|
flex: 12
|
|
1291
1162
|
});
|
|
1292
1163
|
const flexStyle = {
|
|
1293
1164
|
layers: {
|
|
1294
|
-
util: util$
|
|
1165
|
+
util: util$m
|
|
1295
1166
|
}
|
|
1296
1167
|
}, rules$3 = {
|
|
1297
1168
|
".font": {
|
|
@@ -1369,532 +1240,509 @@ const fontStyle = {
|
|
|
1369
1240
|
layers: {
|
|
1370
1241
|
primitive: rules$3
|
|
1371
1242
|
}
|
|
1372
|
-
}, util$
|
|
1243
|
+
}, util$l = {};
|
|
1373
1244
|
for (const space of theme.SPACE)
|
|
1374
|
-
_responsiveRule(util$
|
|
1245
|
+
_responsiveRule(util$l, `g-${space}`, {
|
|
1375
1246
|
gap: vars.space[space]
|
|
1376
1247
|
});
|
|
1377
1248
|
for (const space of theme.SPACE)
|
|
1378
|
-
_responsiveRule(util$
|
|
1249
|
+
_responsiveRule(util$l, `gx-${space}`, {
|
|
1379
1250
|
columnGap: vars.space[space]
|
|
1380
1251
|
});
|
|
1381
1252
|
for (const space of theme.SPACE)
|
|
1382
|
-
_responsiveRule(util$
|
|
1253
|
+
_responsiveRule(util$l, `gy-${space}`, {
|
|
1383
1254
|
rowGap: vars.space[space]
|
|
1384
1255
|
});
|
|
1385
1256
|
const gapStyle = {
|
|
1386
1257
|
layers: {
|
|
1387
|
-
util: util$
|
|
1258
|
+
util: util$l
|
|
1388
1259
|
}
|
|
1389
|
-
}, util$
|
|
1390
|
-
_responsiveRule(util$
|
|
1260
|
+
}, util$k = {};
|
|
1261
|
+
_responsiveRule(util$k, "auto-cols-auto", {
|
|
1391
1262
|
gridAutoColumns: "auto"
|
|
1392
1263
|
});
|
|
1393
|
-
_responsiveRule(util$
|
|
1264
|
+
_responsiveRule(util$k, "auto-cols-min", {
|
|
1394
1265
|
gridAutoColumns: "min-content"
|
|
1395
1266
|
});
|
|
1396
|
-
_responsiveRule(util$
|
|
1267
|
+
_responsiveRule(util$k, "auto-cols-max", {
|
|
1397
1268
|
gridAutoColumns: "max-content"
|
|
1398
1269
|
});
|
|
1399
|
-
_responsiveRule(util$
|
|
1270
|
+
_responsiveRule(util$k, "auto-cols-fr", {
|
|
1400
1271
|
gridAutoColumns: "minmax(0, 1fr)"
|
|
1401
1272
|
});
|
|
1402
1273
|
const gridAutoColumnsStyle = {
|
|
1403
1274
|
layers: {
|
|
1404
|
-
util: util$
|
|
1275
|
+
util: util$k
|
|
1405
1276
|
}
|
|
1406
|
-
}, util$
|
|
1407
|
-
_responsiveRule(util$
|
|
1277
|
+
}, util$j = {};
|
|
1278
|
+
_responsiveRule(util$j, "auto-flow-row", {
|
|
1408
1279
|
gridAutoFlow: "row"
|
|
1409
1280
|
});
|
|
1410
|
-
_responsiveRule(util$
|
|
1281
|
+
_responsiveRule(util$j, "auto-flow-column", {
|
|
1411
1282
|
gridAutoFlow: "column"
|
|
1412
1283
|
});
|
|
1413
|
-
_responsiveRule(util$
|
|
1284
|
+
_responsiveRule(util$j, "auto-flow-row-dense", {
|
|
1414
1285
|
gridAutoFlow: "row dense"
|
|
1415
1286
|
});
|
|
1416
|
-
_responsiveRule(util$
|
|
1287
|
+
_responsiveRule(util$j, "auto-flow-column-dense", {
|
|
1417
1288
|
gridAutoFlow: "column dense"
|
|
1418
1289
|
});
|
|
1419
1290
|
const gridAutoFlowStyle = {
|
|
1420
1291
|
layers: {
|
|
1421
|
-
util: util$
|
|
1292
|
+
util: util$j
|
|
1422
1293
|
}
|
|
1423
|
-
}, util$
|
|
1424
|
-
_responsiveRule(util$
|
|
1294
|
+
}, util$i = {};
|
|
1295
|
+
_responsiveRule(util$i, "auto-rows-auto", {
|
|
1425
1296
|
gridAutoRows: "auto"
|
|
1426
1297
|
});
|
|
1427
|
-
_responsiveRule(util$
|
|
1298
|
+
_responsiveRule(util$i, "auto-rows-min", {
|
|
1428
1299
|
gridAutoRows: "min-content"
|
|
1429
1300
|
});
|
|
1430
|
-
_responsiveRule(util$
|
|
1301
|
+
_responsiveRule(util$i, "auto-rows-max", {
|
|
1431
1302
|
gridAutoRows: "max-content"
|
|
1432
1303
|
});
|
|
1433
|
-
_responsiveRule(util$
|
|
1304
|
+
_responsiveRule(util$i, "auto-rows-fr", {
|
|
1434
1305
|
gridAutoRows: "minmax(0, 1fr)"
|
|
1435
1306
|
});
|
|
1436
1307
|
const gridAutoRowsStyle = {
|
|
1437
1308
|
layers: {
|
|
1438
|
-
util: util$
|
|
1309
|
+
util: util$i
|
|
1439
1310
|
}
|
|
1440
|
-
}, util$
|
|
1441
|
-
_responsiveRule(util$
|
|
1311
|
+
}, util$h = {};
|
|
1312
|
+
_responsiveRule(util$h, "cols-1", {
|
|
1442
1313
|
gridTemplateColumns: "repeat(1, 1fr)"
|
|
1443
1314
|
});
|
|
1444
|
-
_responsiveRule(util$
|
|
1315
|
+
_responsiveRule(util$h, "cols-2", {
|
|
1445
1316
|
gridTemplateColumns: "repeat(2, 1fr)"
|
|
1446
1317
|
});
|
|
1447
|
-
_responsiveRule(util$
|
|
1318
|
+
_responsiveRule(util$h, "cols-3", {
|
|
1448
1319
|
gridTemplateColumns: "repeat(3, 1fr)"
|
|
1449
1320
|
});
|
|
1450
|
-
_responsiveRule(util$
|
|
1321
|
+
_responsiveRule(util$h, "cols-4", {
|
|
1451
1322
|
gridTemplateColumns: "repeat(4, 1fr)"
|
|
1452
1323
|
});
|
|
1453
|
-
_responsiveRule(util$
|
|
1324
|
+
_responsiveRule(util$h, "cols-5", {
|
|
1454
1325
|
gridTemplateColumns: "repeat(5, 1fr)"
|
|
1455
1326
|
});
|
|
1456
|
-
_responsiveRule(util$
|
|
1327
|
+
_responsiveRule(util$h, "cols-6", {
|
|
1457
1328
|
gridTemplateColumns: "repeat(6, 1fr)"
|
|
1458
1329
|
});
|
|
1459
|
-
_responsiveRule(util$
|
|
1330
|
+
_responsiveRule(util$h, "cols-7", {
|
|
1460
1331
|
gridTemplateColumns: "repeat(7, 1fr)"
|
|
1461
1332
|
});
|
|
1462
|
-
_responsiveRule(util$
|
|
1333
|
+
_responsiveRule(util$h, "cols-8", {
|
|
1463
1334
|
gridTemplateColumns: "repeat(8, 1fr)"
|
|
1464
1335
|
});
|
|
1465
|
-
_responsiveRule(util$
|
|
1336
|
+
_responsiveRule(util$h, "cols-9", {
|
|
1466
1337
|
gridTemplateColumns: "repeat(9, 1fr)"
|
|
1467
1338
|
});
|
|
1468
|
-
_responsiveRule(util$
|
|
1339
|
+
_responsiveRule(util$h, "cols-10", {
|
|
1469
1340
|
gridTemplateColumns: "repeat(10, 1fr)"
|
|
1470
1341
|
});
|
|
1471
|
-
_responsiveRule(util$
|
|
1342
|
+
_responsiveRule(util$h, "cols-12", {
|
|
1472
1343
|
gridTemplateColumns: "repeat(12, 1fr)"
|
|
1473
1344
|
});
|
|
1474
1345
|
const gridColumnsStyle = {
|
|
1475
1346
|
layers: {
|
|
1476
|
-
util: util$
|
|
1347
|
+
util: util$h
|
|
1477
1348
|
}
|
|
1478
|
-
}, util$
|
|
1479
|
-
_responsiveRule(util$
|
|
1349
|
+
}, util$g = {};
|
|
1350
|
+
_responsiveRule(util$g, "rows-1", {
|
|
1480
1351
|
gridTemplateRows: "repeat(1, 1fr)"
|
|
1481
1352
|
});
|
|
1482
|
-
_responsiveRule(util$
|
|
1353
|
+
_responsiveRule(util$g, "rows-2", {
|
|
1483
1354
|
gridTemplateRows: "repeat(2, 1fr)"
|
|
1484
1355
|
});
|
|
1485
|
-
_responsiveRule(util$
|
|
1356
|
+
_responsiveRule(util$g, "rows-3", {
|
|
1486
1357
|
gridTemplateRows: "repeat(3, 1fr)"
|
|
1487
1358
|
});
|
|
1488
|
-
_responsiveRule(util$
|
|
1359
|
+
_responsiveRule(util$g, "rows-4", {
|
|
1489
1360
|
gridTemplateRows: "repeat(4, 1fr)"
|
|
1490
1361
|
});
|
|
1491
|
-
_responsiveRule(util$
|
|
1362
|
+
_responsiveRule(util$g, "rows-5", {
|
|
1492
1363
|
gridTemplateRows: "repeat(5, 1fr)"
|
|
1493
1364
|
});
|
|
1494
|
-
_responsiveRule(util$
|
|
1365
|
+
_responsiveRule(util$g, "rows-6", {
|
|
1495
1366
|
gridTemplateRows: "repeat(6, 1fr)"
|
|
1496
1367
|
});
|
|
1497
|
-
_responsiveRule(util$
|
|
1368
|
+
_responsiveRule(util$g, "rows-7", {
|
|
1498
1369
|
gridTemplateRows: "repeat(7, 1fr)"
|
|
1499
1370
|
});
|
|
1500
|
-
_responsiveRule(util$
|
|
1371
|
+
_responsiveRule(util$g, "rows-8", {
|
|
1501
1372
|
gridTemplateRows: "repeat(8, 1fr)"
|
|
1502
1373
|
});
|
|
1503
|
-
_responsiveRule(util$
|
|
1374
|
+
_responsiveRule(util$g, "rows-9", {
|
|
1504
1375
|
gridTemplateRows: "repeat(9, 1fr)"
|
|
1505
1376
|
});
|
|
1506
|
-
_responsiveRule(util$
|
|
1377
|
+
_responsiveRule(util$g, "rows-10", {
|
|
1507
1378
|
gridTemplateRows: "repeat(10, 1fr)"
|
|
1508
1379
|
});
|
|
1509
|
-
_responsiveRule(util$
|
|
1380
|
+
_responsiveRule(util$g, "rows-12", {
|
|
1510
1381
|
gridTemplateRows: "repeat(12, 1fr)"
|
|
1511
1382
|
});
|
|
1512
1383
|
const gridRowsStyle = {
|
|
1513
1384
|
layers: {
|
|
1514
|
-
util: util$
|
|
1385
|
+
util: util$g
|
|
1515
1386
|
}
|
|
1516
|
-
}, util$
|
|
1517
|
-
_responsiveRule(util$
|
|
1387
|
+
}, util$f = {};
|
|
1388
|
+
_responsiveRule(util$f, "col-auto", {
|
|
1518
1389
|
gridColumn: "auto"
|
|
1519
1390
|
});
|
|
1520
|
-
_responsiveRule(util$
|
|
1391
|
+
_responsiveRule(util$f, "col-full", {
|
|
1521
1392
|
gridColumn: "1 / -1"
|
|
1522
1393
|
});
|
|
1523
|
-
_responsiveRule(util$
|
|
1394
|
+
_responsiveRule(util$f, "col-1", {
|
|
1524
1395
|
gridColumn: "span 1 / span 1"
|
|
1525
1396
|
});
|
|
1526
|
-
_responsiveRule(util$
|
|
1397
|
+
_responsiveRule(util$f, "col-2", {
|
|
1527
1398
|
gridColumn: "span 2 / span 2"
|
|
1528
1399
|
});
|
|
1529
|
-
_responsiveRule(util$
|
|
1400
|
+
_responsiveRule(util$f, "col-3", {
|
|
1530
1401
|
gridColumn: "span 3 / span 3"
|
|
1531
1402
|
});
|
|
1532
|
-
_responsiveRule(util$
|
|
1403
|
+
_responsiveRule(util$f, "col-4", {
|
|
1533
1404
|
gridColumn: "span 4 / span 4"
|
|
1534
1405
|
});
|
|
1535
|
-
_responsiveRule(util$
|
|
1406
|
+
_responsiveRule(util$f, "col-5", {
|
|
1536
1407
|
gridColumn: "span 5 / span 5"
|
|
1537
1408
|
});
|
|
1538
|
-
_responsiveRule(util$
|
|
1409
|
+
_responsiveRule(util$f, "col-6", {
|
|
1539
1410
|
gridColumn: "span 6 / span 6"
|
|
1540
1411
|
});
|
|
1541
|
-
_responsiveRule(util$
|
|
1412
|
+
_responsiveRule(util$f, "col-7", {
|
|
1542
1413
|
gridColumn: "span 7 / span 7"
|
|
1543
1414
|
});
|
|
1544
|
-
_responsiveRule(util$
|
|
1415
|
+
_responsiveRule(util$f, "col-8", {
|
|
1545
1416
|
gridColumn: "span 8 / span 8"
|
|
1546
1417
|
});
|
|
1547
|
-
_responsiveRule(util$
|
|
1418
|
+
_responsiveRule(util$f, "col-9", {
|
|
1548
1419
|
gridColumn: "span 9 / span 9"
|
|
1549
1420
|
});
|
|
1550
|
-
_responsiveRule(util$
|
|
1421
|
+
_responsiveRule(util$f, "col-10", {
|
|
1551
1422
|
gridColumn: "span 10 / span 10"
|
|
1552
1423
|
});
|
|
1553
|
-
_responsiveRule(util$
|
|
1424
|
+
_responsiveRule(util$f, "col-12", {
|
|
1554
1425
|
gridColumn: "span 12 / span 12"
|
|
1555
1426
|
});
|
|
1556
1427
|
const gridColumnStyle = {
|
|
1557
1428
|
layers: {
|
|
1558
|
-
util: util$
|
|
1429
|
+
util: util$f
|
|
1559
1430
|
}
|
|
1560
|
-
}, util$
|
|
1561
|
-
_responsiveRule(util$
|
|
1431
|
+
}, util$e = {};
|
|
1432
|
+
_responsiveRule(util$e, "col-end-auto", {
|
|
1562
1433
|
gridColumnEnd: "auto"
|
|
1563
1434
|
});
|
|
1564
|
-
_responsiveRule(util$
|
|
1435
|
+
_responsiveRule(util$e, "col-end-1", {
|
|
1565
1436
|
gridColumnEnd: "1"
|
|
1566
1437
|
});
|
|
1567
|
-
_responsiveRule(util$
|
|
1438
|
+
_responsiveRule(util$e, "col-end-2", {
|
|
1568
1439
|
gridColumnEnd: "2"
|
|
1569
1440
|
});
|
|
1570
|
-
_responsiveRule(util$
|
|
1441
|
+
_responsiveRule(util$e, "col-end-3", {
|
|
1571
1442
|
gridColumnEnd: "3"
|
|
1572
1443
|
});
|
|
1573
|
-
_responsiveRule(util$
|
|
1444
|
+
_responsiveRule(util$e, "col-end-4", {
|
|
1574
1445
|
gridColumnEnd: "4"
|
|
1575
1446
|
});
|
|
1576
|
-
_responsiveRule(util$
|
|
1447
|
+
_responsiveRule(util$e, "col-end-5", {
|
|
1577
1448
|
gridColumnEnd: "5"
|
|
1578
1449
|
});
|
|
1579
|
-
_responsiveRule(util$
|
|
1450
|
+
_responsiveRule(util$e, "col-end-6", {
|
|
1580
1451
|
gridColumnEnd: "6"
|
|
1581
1452
|
});
|
|
1582
|
-
_responsiveRule(util$
|
|
1453
|
+
_responsiveRule(util$e, "col-end-7", {
|
|
1583
1454
|
gridColumnEnd: "7"
|
|
1584
1455
|
});
|
|
1585
|
-
_responsiveRule(util$
|
|
1456
|
+
_responsiveRule(util$e, "col-end-8", {
|
|
1586
1457
|
gridColumnEnd: "8"
|
|
1587
1458
|
});
|
|
1588
|
-
_responsiveRule(util$
|
|
1459
|
+
_responsiveRule(util$e, "col-end-9", {
|
|
1589
1460
|
gridColumnEnd: "9"
|
|
1590
1461
|
});
|
|
1591
|
-
_responsiveRule(util$
|
|
1462
|
+
_responsiveRule(util$e, "col-end-10", {
|
|
1592
1463
|
gridColumnEnd: "10"
|
|
1593
1464
|
});
|
|
1594
|
-
_responsiveRule(util$
|
|
1465
|
+
_responsiveRule(util$e, "col-end-11", {
|
|
1595
1466
|
gridColumnEnd: "11"
|
|
1596
1467
|
});
|
|
1597
|
-
_responsiveRule(util$
|
|
1468
|
+
_responsiveRule(util$e, "col-end-12", {
|
|
1598
1469
|
gridColumnEnd: "12"
|
|
1599
1470
|
});
|
|
1600
1471
|
const gridColumnEndStyle = {
|
|
1601
1472
|
layers: {
|
|
1602
|
-
util: util$
|
|
1473
|
+
util: util$e
|
|
1603
1474
|
}
|
|
1604
|
-
}, util$
|
|
1605
|
-
_responsiveRule(util$
|
|
1475
|
+
}, util$d = {};
|
|
1476
|
+
_responsiveRule(util$d, "col-start-auto", {
|
|
1606
1477
|
gridColumnStart: "auto"
|
|
1607
1478
|
});
|
|
1608
|
-
_responsiveRule(util$
|
|
1479
|
+
_responsiveRule(util$d, "col-start-1", {
|
|
1609
1480
|
gridColumnStart: "1"
|
|
1610
1481
|
});
|
|
1611
|
-
_responsiveRule(util$
|
|
1482
|
+
_responsiveRule(util$d, "col-start-2", {
|
|
1612
1483
|
gridColumnStart: "2"
|
|
1613
1484
|
});
|
|
1614
|
-
_responsiveRule(util$
|
|
1485
|
+
_responsiveRule(util$d, "col-start-3", {
|
|
1615
1486
|
gridColumnStart: "3"
|
|
1616
1487
|
});
|
|
1617
|
-
_responsiveRule(util$
|
|
1488
|
+
_responsiveRule(util$d, "col-start-4", {
|
|
1618
1489
|
gridColumnStart: "4"
|
|
1619
1490
|
});
|
|
1620
|
-
_responsiveRule(util$
|
|
1491
|
+
_responsiveRule(util$d, "col-start-5", {
|
|
1621
1492
|
gridColumnStart: "5"
|
|
1622
1493
|
});
|
|
1623
|
-
_responsiveRule(util$
|
|
1494
|
+
_responsiveRule(util$d, "col-start-6", {
|
|
1624
1495
|
gridColumnStart: "6"
|
|
1625
1496
|
});
|
|
1626
|
-
_responsiveRule(util$
|
|
1497
|
+
_responsiveRule(util$d, "col-start-7", {
|
|
1627
1498
|
gridColumnStart: "7"
|
|
1628
1499
|
});
|
|
1629
|
-
_responsiveRule(util$
|
|
1500
|
+
_responsiveRule(util$d, "col-start-8", {
|
|
1630
1501
|
gridColumnStart: "8"
|
|
1631
1502
|
});
|
|
1632
|
-
_responsiveRule(util$
|
|
1503
|
+
_responsiveRule(util$d, "col-start-9", {
|
|
1633
1504
|
gridColumnStart: "9"
|
|
1634
1505
|
});
|
|
1635
|
-
_responsiveRule(util$
|
|
1506
|
+
_responsiveRule(util$d, "col-start-10", {
|
|
1636
1507
|
gridColumnStart: "10"
|
|
1637
1508
|
});
|
|
1638
|
-
_responsiveRule(util$
|
|
1509
|
+
_responsiveRule(util$d, "col-start-11", {
|
|
1639
1510
|
gridColumnStart: "11"
|
|
1640
1511
|
});
|
|
1641
|
-
_responsiveRule(util$
|
|
1512
|
+
_responsiveRule(util$d, "col-start-12", {
|
|
1642
1513
|
gridColumnStart: "12"
|
|
1643
1514
|
});
|
|
1644
1515
|
const gridColumnStartStyle = {
|
|
1645
1516
|
layers: {
|
|
1646
|
-
util: util$
|
|
1517
|
+
util: util$d
|
|
1647
1518
|
}
|
|
1648
|
-
}, util$
|
|
1649
|
-
_responsiveRule(util$
|
|
1519
|
+
}, util$c = {};
|
|
1520
|
+
_responsiveRule(util$c, "row-auto", {
|
|
1650
1521
|
gridRow: "auto"
|
|
1651
1522
|
});
|
|
1652
|
-
_responsiveRule(util$
|
|
1523
|
+
_responsiveRule(util$c, "row-full", {
|
|
1653
1524
|
gridRow: "1 / -1"
|
|
1654
1525
|
});
|
|
1655
|
-
_responsiveRule(util$
|
|
1526
|
+
_responsiveRule(util$c, "row-1", {
|
|
1656
1527
|
gridRow: "span 1 / span 1"
|
|
1657
1528
|
});
|
|
1658
|
-
_responsiveRule(util$
|
|
1529
|
+
_responsiveRule(util$c, "row-2", {
|
|
1659
1530
|
gridRow: "span 2 / span 2"
|
|
1660
1531
|
});
|
|
1661
|
-
_responsiveRule(util$
|
|
1532
|
+
_responsiveRule(util$c, "row-3", {
|
|
1662
1533
|
gridRow: "span 3 / span 3"
|
|
1663
1534
|
});
|
|
1664
|
-
_responsiveRule(util$
|
|
1535
|
+
_responsiveRule(util$c, "row-4", {
|
|
1665
1536
|
gridRow: "span 4 / span 4"
|
|
1666
1537
|
});
|
|
1667
|
-
_responsiveRule(util$
|
|
1538
|
+
_responsiveRule(util$c, "row-5", {
|
|
1668
1539
|
gridRow: "span 5 / span 5"
|
|
1669
1540
|
});
|
|
1670
|
-
_responsiveRule(util$
|
|
1541
|
+
_responsiveRule(util$c, "row-6", {
|
|
1671
1542
|
gridRow: "span 6 / span 6"
|
|
1672
1543
|
});
|
|
1673
|
-
_responsiveRule(util$
|
|
1544
|
+
_responsiveRule(util$c, "row-7", {
|
|
1674
1545
|
gridRow: "span 7 / span 7"
|
|
1675
1546
|
});
|
|
1676
|
-
_responsiveRule(util$
|
|
1547
|
+
_responsiveRule(util$c, "row-8", {
|
|
1677
1548
|
gridRow: "span 8 / span 8"
|
|
1678
1549
|
});
|
|
1679
|
-
_responsiveRule(util$
|
|
1550
|
+
_responsiveRule(util$c, "row-9", {
|
|
1680
1551
|
gridRow: "span 9 / span 9"
|
|
1681
1552
|
});
|
|
1682
|
-
_responsiveRule(util$
|
|
1553
|
+
_responsiveRule(util$c, "row-10", {
|
|
1683
1554
|
gridRow: "span 10 / span 10"
|
|
1684
1555
|
});
|
|
1685
|
-
_responsiveRule(util$
|
|
1556
|
+
_responsiveRule(util$c, "row-12", {
|
|
1686
1557
|
gridRow: "span 12 / span 12"
|
|
1687
1558
|
});
|
|
1688
1559
|
const gridRowStyle = {
|
|
1689
1560
|
layers: {
|
|
1690
|
-
util: util$
|
|
1561
|
+
util: util$c
|
|
1691
1562
|
}
|
|
1692
|
-
}, util$
|
|
1693
|
-
_responsiveRule(util$
|
|
1563
|
+
}, util$b = {};
|
|
1564
|
+
_responsiveRule(util$b, "row-end-auto", {
|
|
1694
1565
|
gridRowEnd: "auto"
|
|
1695
1566
|
});
|
|
1696
|
-
_responsiveRule(util$
|
|
1567
|
+
_responsiveRule(util$b, "row-end-1", {
|
|
1697
1568
|
gridRowEnd: "1"
|
|
1698
1569
|
});
|
|
1699
|
-
_responsiveRule(util$
|
|
1570
|
+
_responsiveRule(util$b, "row-end-2", {
|
|
1700
1571
|
gridRowEnd: "2"
|
|
1701
1572
|
});
|
|
1702
|
-
_responsiveRule(util$
|
|
1573
|
+
_responsiveRule(util$b, "row-end-3", {
|
|
1703
1574
|
gridRowEnd: "3"
|
|
1704
1575
|
});
|
|
1705
|
-
_responsiveRule(util$
|
|
1576
|
+
_responsiveRule(util$b, "row-end-4", {
|
|
1706
1577
|
gridRowEnd: "4"
|
|
1707
1578
|
});
|
|
1708
|
-
_responsiveRule(util$
|
|
1579
|
+
_responsiveRule(util$b, "row-end-5", {
|
|
1709
1580
|
gridRowEnd: "5"
|
|
1710
1581
|
});
|
|
1711
|
-
_responsiveRule(util$
|
|
1582
|
+
_responsiveRule(util$b, "row-end-6", {
|
|
1712
1583
|
gridRowEnd: "6"
|
|
1713
1584
|
});
|
|
1714
|
-
_responsiveRule(util$
|
|
1585
|
+
_responsiveRule(util$b, "row-end-7", {
|
|
1715
1586
|
gridRowEnd: "7"
|
|
1716
1587
|
});
|
|
1717
|
-
_responsiveRule(util$
|
|
1588
|
+
_responsiveRule(util$b, "row-end-8", {
|
|
1718
1589
|
gridRowEnd: "8"
|
|
1719
1590
|
});
|
|
1720
|
-
_responsiveRule(util$
|
|
1591
|
+
_responsiveRule(util$b, "row-end-9", {
|
|
1721
1592
|
gridRowEnd: "9"
|
|
1722
1593
|
});
|
|
1723
|
-
_responsiveRule(util$
|
|
1594
|
+
_responsiveRule(util$b, "row-end-10", {
|
|
1724
1595
|
gridRowEnd: "10"
|
|
1725
1596
|
});
|
|
1726
|
-
_responsiveRule(util$
|
|
1597
|
+
_responsiveRule(util$b, "row-end-11", {
|
|
1727
1598
|
gridRowEnd: "11"
|
|
1728
1599
|
});
|
|
1729
|
-
_responsiveRule(util$
|
|
1600
|
+
_responsiveRule(util$b, "row-end-12", {
|
|
1730
1601
|
gridRowEnd: "12"
|
|
1731
1602
|
});
|
|
1732
1603
|
const gridRowEndStyle = {
|
|
1733
1604
|
layers: {
|
|
1734
|
-
util: util$
|
|
1605
|
+
util: util$b
|
|
1735
1606
|
}
|
|
1736
|
-
}, util$
|
|
1737
|
-
_responsiveRule(util$
|
|
1607
|
+
}, util$a = {};
|
|
1608
|
+
_responsiveRule(util$a, "row-start-auto", {
|
|
1738
1609
|
gridRowStart: "auto"
|
|
1739
1610
|
});
|
|
1740
|
-
_responsiveRule(util$
|
|
1611
|
+
_responsiveRule(util$a, "row-start-1", {
|
|
1741
1612
|
gridRowStart: "1"
|
|
1742
1613
|
});
|
|
1743
|
-
_responsiveRule(util$
|
|
1614
|
+
_responsiveRule(util$a, "row-start-2", {
|
|
1744
1615
|
gridRowStart: "2"
|
|
1745
1616
|
});
|
|
1746
|
-
_responsiveRule(util$
|
|
1617
|
+
_responsiveRule(util$a, "row-start-3", {
|
|
1747
1618
|
gridRowStart: "3"
|
|
1748
1619
|
});
|
|
1749
|
-
_responsiveRule(util$
|
|
1620
|
+
_responsiveRule(util$a, "row-start-4", {
|
|
1750
1621
|
gridRowStart: "4"
|
|
1751
1622
|
});
|
|
1752
|
-
_responsiveRule(util$
|
|
1623
|
+
_responsiveRule(util$a, "row-start-5", {
|
|
1753
1624
|
gridRowStart: "5"
|
|
1754
1625
|
});
|
|
1755
|
-
_responsiveRule(util$
|
|
1626
|
+
_responsiveRule(util$a, "row-start-6", {
|
|
1756
1627
|
gridRowStart: "6"
|
|
1757
1628
|
});
|
|
1758
|
-
_responsiveRule(util$
|
|
1629
|
+
_responsiveRule(util$a, "row-start-7", {
|
|
1759
1630
|
gridRowStart: "7"
|
|
1760
1631
|
});
|
|
1761
|
-
_responsiveRule(util$
|
|
1632
|
+
_responsiveRule(util$a, "row-start-8", {
|
|
1762
1633
|
gridRowStart: "8"
|
|
1763
1634
|
});
|
|
1764
|
-
_responsiveRule(util$
|
|
1635
|
+
_responsiveRule(util$a, "row-start-9", {
|
|
1765
1636
|
gridRowStart: "9"
|
|
1766
1637
|
});
|
|
1767
|
-
_responsiveRule(util$
|
|
1638
|
+
_responsiveRule(util$a, "row-start-10", {
|
|
1768
1639
|
gridRowStart: "10"
|
|
1769
1640
|
});
|
|
1770
|
-
_responsiveRule(util$
|
|
1641
|
+
_responsiveRule(util$a, "row-start-11", {
|
|
1771
1642
|
gridRowStart: "11"
|
|
1772
1643
|
});
|
|
1773
|
-
_responsiveRule(util$
|
|
1644
|
+
_responsiveRule(util$a, "row-start-12", {
|
|
1774
1645
|
gridRowStart: "12"
|
|
1775
1646
|
});
|
|
1776
1647
|
const gridRowStartStyle = {
|
|
1777
1648
|
layers: {
|
|
1778
|
-
util: util$
|
|
1649
|
+
util: util$a
|
|
1779
1650
|
}
|
|
1780
|
-
}, util$
|
|
1781
|
-
_responsiveRule(util$
|
|
1651
|
+
}, util$9 = {};
|
|
1652
|
+
_responsiveRule(util$9, "h-fill", {
|
|
1782
1653
|
height: "100%"
|
|
1783
1654
|
});
|
|
1784
|
-
_responsiveRule(util$
|
|
1655
|
+
_responsiveRule(util$9, "h-stretch", {
|
|
1785
1656
|
height: "stretch"
|
|
1786
1657
|
});
|
|
1787
1658
|
const heightStyle = {
|
|
1788
1659
|
layers: {
|
|
1789
|
-
util: util$
|
|
1660
|
+
util: util$9
|
|
1790
1661
|
}
|
|
1791
|
-
}, util$
|
|
1792
|
-
_responsiveRule(util$
|
|
1662
|
+
}, util$8 = {};
|
|
1663
|
+
_responsiveRule(util$8, "inset-0", {
|
|
1793
1664
|
top: 0,
|
|
1794
1665
|
left: 0,
|
|
1795
1666
|
right: 0,
|
|
1796
1667
|
bottom: 0
|
|
1797
1668
|
});
|
|
1798
|
-
_responsiveRule(util$
|
|
1669
|
+
_responsiveRule(util$8, "top-0", {
|
|
1799
1670
|
top: 0
|
|
1800
1671
|
});
|
|
1801
|
-
_responsiveRule(util$
|
|
1672
|
+
_responsiveRule(util$8, "right-0", {
|
|
1802
1673
|
right: 0
|
|
1803
1674
|
});
|
|
1804
|
-
_responsiveRule(util$
|
|
1675
|
+
_responsiveRule(util$8, "bottom-0", {
|
|
1805
1676
|
bottom: 0
|
|
1806
1677
|
});
|
|
1807
|
-
_responsiveRule(util$
|
|
1678
|
+
_responsiveRule(util$8, "left-0", {
|
|
1808
1679
|
left: 0
|
|
1809
1680
|
});
|
|
1810
1681
|
const insetStyle = {
|
|
1811
1682
|
layers: {
|
|
1812
|
-
util: util$
|
|
1683
|
+
util: util$8
|
|
1813
1684
|
}
|
|
1814
|
-
}, util$
|
|
1685
|
+
}, util$7 = {};
|
|
1815
1686
|
for (const space of theme.SPACE)
|
|
1816
|
-
_responsiveRule(util$
|
|
1687
|
+
_responsiveRule(util$7, `m-${space}`, {
|
|
1817
1688
|
margin: vars.space[space]
|
|
1818
1689
|
});
|
|
1819
1690
|
for (const space of theme.SPACE)
|
|
1820
|
-
_responsiveRule(util$
|
|
1691
|
+
_responsiveRule(util$7, `mx-${space}`, {
|
|
1821
1692
|
marginLeft: vars.space[space],
|
|
1822
1693
|
marginRight: vars.space[space]
|
|
1823
1694
|
});
|
|
1824
1695
|
for (const space of theme.SPACE)
|
|
1825
|
-
_responsiveRule(util$
|
|
1696
|
+
_responsiveRule(util$7, `my-${space}`, {
|
|
1826
1697
|
marginTop: vars.space[space],
|
|
1827
1698
|
marginBottom: vars.space[space]
|
|
1828
1699
|
});
|
|
1829
1700
|
for (const space of theme.SPACE)
|
|
1830
|
-
_responsiveRule(util$
|
|
1701
|
+
_responsiveRule(util$7, `mt-${space}`, {
|
|
1831
1702
|
marginTop: vars.space[space]
|
|
1832
1703
|
});
|
|
1833
1704
|
for (const space of theme.SPACE)
|
|
1834
|
-
_responsiveRule(util$
|
|
1705
|
+
_responsiveRule(util$7, `mr-${space}`, {
|
|
1835
1706
|
marginRight: vars.space[space]
|
|
1836
1707
|
});
|
|
1837
1708
|
for (const space of theme.SPACE)
|
|
1838
|
-
_responsiveRule(util$
|
|
1709
|
+
_responsiveRule(util$7, `mb-${space}`, {
|
|
1839
1710
|
marginBottom: vars.space[space]
|
|
1840
1711
|
});
|
|
1841
1712
|
for (const space of theme.SPACE)
|
|
1842
|
-
_responsiveRule(util$
|
|
1713
|
+
_responsiveRule(util$7, `ml-${space}`, {
|
|
1843
1714
|
marginLeft: vars.space[space]
|
|
1844
1715
|
});
|
|
1845
1716
|
const marginStyle = {
|
|
1846
1717
|
layers: {
|
|
1847
|
-
util: util$
|
|
1718
|
+
util: util$7
|
|
1848
1719
|
}
|
|
1849
|
-
}, util$
|
|
1850
|
-
_responsiveRule(util$
|
|
1720
|
+
}, util$6 = {};
|
|
1721
|
+
_responsiveRule(util$6, "max-w-0", {
|
|
1851
1722
|
maxWidth: vars.container[0]
|
|
1852
1723
|
});
|
|
1853
|
-
_responsiveRule(util$
|
|
1724
|
+
_responsiveRule(util$6, "max-w-1", {
|
|
1854
1725
|
maxWidth: vars.container[1]
|
|
1855
1726
|
});
|
|
1856
|
-
_responsiveRule(util$
|
|
1727
|
+
_responsiveRule(util$6, "max-w-2", {
|
|
1857
1728
|
maxWidth: vars.container[2]
|
|
1858
1729
|
});
|
|
1859
|
-
_responsiveRule(util$
|
|
1730
|
+
_responsiveRule(util$6, "max-w-3", {
|
|
1860
1731
|
maxWidth: vars.container[3]
|
|
1861
1732
|
});
|
|
1862
|
-
_responsiveRule(util$
|
|
1733
|
+
_responsiveRule(util$6, "max-w-4", {
|
|
1863
1734
|
maxWidth: vars.container[4]
|
|
1864
1735
|
});
|
|
1865
|
-
_responsiveRule(util$
|
|
1736
|
+
_responsiveRule(util$6, "max-w-5", {
|
|
1866
1737
|
maxWidth: vars.container[5]
|
|
1867
1738
|
});
|
|
1868
|
-
_responsiveRule(util$
|
|
1739
|
+
_responsiveRule(util$6, "max-w-auto", {
|
|
1869
1740
|
maxWidth: "none"
|
|
1870
1741
|
});
|
|
1871
|
-
_responsiveRule(util$
|
|
1742
|
+
_responsiveRule(util$6, "max-w-fill", {
|
|
1872
1743
|
maxWidth: "100%"
|
|
1873
1744
|
});
|
|
1874
1745
|
const maxWidthStyle = {
|
|
1875
|
-
layers: {
|
|
1876
|
-
util: util$7
|
|
1877
|
-
}
|
|
1878
|
-
}, util$6 = {};
|
|
1879
|
-
_responsiveRule(util$6, "min-w-0", {
|
|
1880
|
-
minWidth: "0"
|
|
1881
|
-
});
|
|
1882
|
-
_responsiveRule(util$6, "min-w-auto", {
|
|
1883
|
-
minWidth: "auto"
|
|
1884
|
-
});
|
|
1885
|
-
_responsiveRule(util$6, "min-w-full", {
|
|
1886
|
-
minWidth: "100%"
|
|
1887
|
-
});
|
|
1888
|
-
_responsiveRule(util$6, "min-w-min", {
|
|
1889
|
-
minWidth: "min-content"
|
|
1890
|
-
});
|
|
1891
|
-
_responsiveRule(util$6, "min-w-max", {
|
|
1892
|
-
minWidth: "max-content"
|
|
1893
|
-
});
|
|
1894
|
-
_responsiveRule(util$6, "min-w-fit", {
|
|
1895
|
-
minWidth: "fit-content"
|
|
1896
|
-
});
|
|
1897
|
-
const minWidthStyle = {
|
|
1898
1746
|
layers: {
|
|
1899
1747
|
util: util$6
|
|
1900
1748
|
}
|
|
@@ -2291,7 +2139,7 @@ const skeletonStyle = {
|
|
|
2291
2139
|
layers: {
|
|
2292
2140
|
component
|
|
2293
2141
|
}
|
|
2294
|
-
}, primitive$
|
|
2142
|
+
}, primitive$o = {
|
|
2295
2143
|
".arrow": {
|
|
2296
2144
|
position: "absolute",
|
|
2297
2145
|
// todo: replace with vars?
|
|
@@ -2343,9 +2191,9 @@ const skeletonStyle = {
|
|
|
2343
2191
|
}
|
|
2344
2192
|
}, _arrowStyle = {
|
|
2345
2193
|
layers: {
|
|
2346
|
-
primitive: primitive$
|
|
2194
|
+
primitive: primitive$o
|
|
2347
2195
|
}
|
|
2348
|
-
}, primitive$
|
|
2196
|
+
}, primitive$n = {
|
|
2349
2197
|
".input": {
|
|
2350
2198
|
position: "relative"
|
|
2351
2199
|
},
|
|
@@ -2449,7 +2297,7 @@ const skeletonStyle = {
|
|
|
2449
2297
|
};
|
|
2450
2298
|
for (const textSize of theme.FONT_TEXT_SIZE) {
|
|
2451
2299
|
const source = vars.font.text.sizes[textSize];
|
|
2452
|
-
primitive$
|
|
2300
|
+
primitive$n[`.input-${textSize}`] = {
|
|
2453
2301
|
[varNames.input.fontSize]: source.fontSize,
|
|
2454
2302
|
[varNames.input.lineHeight]: source.lineHeight,
|
|
2455
2303
|
[varNames.input.letterSpacing]: source.letterSpacing,
|
|
@@ -2458,26 +2306,26 @@ for (const textSize of theme.FONT_TEXT_SIZE) {
|
|
|
2458
2306
|
};
|
|
2459
2307
|
}
|
|
2460
2308
|
for (const space of theme.SPACE)
|
|
2461
|
-
primitive$
|
|
2309
|
+
primitive$n[`.input-p-${space}`] = {
|
|
2462
2310
|
[varNames.input.padding]: vars.space[space]
|
|
2463
2311
|
};
|
|
2464
2312
|
for (const space of theme.SPACE)
|
|
2465
|
-
primitive$
|
|
2313
|
+
primitive$n[`.input-g-${space}`] = {
|
|
2466
2314
|
[varNames.input.gap]: vars.space[space]
|
|
2467
2315
|
};
|
|
2468
2316
|
const _inputStyle = {
|
|
2469
2317
|
layers: {
|
|
2470
|
-
primitive: primitive$
|
|
2318
|
+
primitive: primitive$n
|
|
2471
2319
|
}
|
|
2472
2320
|
}, toneMap$2 = {
|
|
2473
|
-
default: "
|
|
2321
|
+
default: "surface",
|
|
2474
2322
|
neutral: "neutral",
|
|
2475
2323
|
suggest: "suggest",
|
|
2476
2324
|
primary: "accent",
|
|
2477
2325
|
positive: "positive",
|
|
2478
2326
|
caution: "caution",
|
|
2479
2327
|
critical: "critical"
|
|
2480
|
-
}, primitive$
|
|
2328
|
+
}, primitive$m = {
|
|
2481
2329
|
".selectable": {
|
|
2482
2330
|
backgroundColor: vars.color.bg,
|
|
2483
2331
|
color: vars.color.fg,
|
|
@@ -2542,7 +2390,7 @@ const _inputStyle = {
|
|
|
2542
2390
|
}
|
|
2543
2391
|
}, _selectableStyle = {
|
|
2544
2392
|
layers: {
|
|
2545
|
-
primitive: primitive$
|
|
2393
|
+
primitive: primitive$m
|
|
2546
2394
|
}
|
|
2547
2395
|
};
|
|
2548
2396
|
function buildSelectableTones() {
|
|
@@ -2584,7 +2432,7 @@ function buildSelectableTones() {
|
|
|
2584
2432
|
}
|
|
2585
2433
|
return rules2;
|
|
2586
2434
|
}
|
|
2587
|
-
const primitive$
|
|
2435
|
+
const primitive$l = {
|
|
2588
2436
|
".avatar": {
|
|
2589
2437
|
backgroundColor: vars.color.avatar.bg,
|
|
2590
2438
|
position: "relative",
|
|
@@ -2621,11 +2469,11 @@ const primitive$m = {
|
|
|
2621
2469
|
[varNames.color.avatar.bg]: vars.color.border,
|
|
2622
2470
|
[varNames.color.avatar.fg]: vars.color.bg
|
|
2623
2471
|
},
|
|
2624
|
-
...theme.THEME_COLOR_AVATAR_COLORS.reduce((acc,
|
|
2472
|
+
...theme.THEME_COLOR_AVATAR_COLORS.reduce((acc, color) => ({
|
|
2625
2473
|
...acc,
|
|
2626
|
-
[`&.${
|
|
2627
|
-
[varNames.color.avatar.bg]: vars.color.avatar[
|
|
2628
|
-
[varNames.color.avatar.fg]: vars.color.avatar[
|
|
2474
|
+
[`&.${color}`]: {
|
|
2475
|
+
[varNames.color.avatar.bg]: vars.color.avatar[color].bg,
|
|
2476
|
+
[varNames.color.avatar.fg]: vars.color.avatar[color].fg
|
|
2629
2477
|
}
|
|
2630
2478
|
}), {})
|
|
2631
2479
|
}
|
|
@@ -2716,15 +2564,15 @@ const primitive$m = {
|
|
|
2716
2564
|
}
|
|
2717
2565
|
};
|
|
2718
2566
|
for (const size of theme.AVATAR_SIZE)
|
|
2719
|
-
_responsiveRule(primitive$
|
|
2567
|
+
_responsiveRule(primitive$l, `avatar-${size}`, {
|
|
2720
2568
|
[varNames.avatar.distance]: vars.avatar.sizes[size].distance,
|
|
2721
2569
|
[varNames.avatar.size]: vars.avatar.sizes[size].size
|
|
2722
2570
|
});
|
|
2723
2571
|
const avatarStyle = {
|
|
2724
2572
|
layers: {
|
|
2725
|
-
primitive: primitive$
|
|
2573
|
+
primitive: primitive$l
|
|
2726
2574
|
}
|
|
2727
|
-
}, primitive$
|
|
2575
|
+
}, primitive$k = {
|
|
2728
2576
|
".badge": {
|
|
2729
2577
|
backgroundColor: vars.color.bg,
|
|
2730
2578
|
color: vars.color.fg,
|
|
@@ -2732,17 +2580,17 @@ const avatarStyle = {
|
|
|
2732
2580
|
}
|
|
2733
2581
|
};
|
|
2734
2582
|
for (const tone of theme.THEME_COLOR_STATE_TONES)
|
|
2735
|
-
primitive$
|
|
2583
|
+
primitive$k[`.badge-${tone}`] = {
|
|
2736
2584
|
[varNames.color.bg]: vars.color.tinted[tone].bg[4],
|
|
2737
|
-
[varNames.color.fg]: vars.color.tinted[tone].fg[
|
|
2585
|
+
[varNames.color.fg]: vars.color.tinted[tone].fg[1]
|
|
2738
2586
|
};
|
|
2739
2587
|
const badgeStyle = {
|
|
2740
2588
|
layers: {
|
|
2741
|
-
primitive: primitive$
|
|
2589
|
+
primitive: primitive$k
|
|
2742
2590
|
}
|
|
2743
|
-
}, primitive$
|
|
2591
|
+
}, primitive$j = {
|
|
2744
2592
|
".box": {
|
|
2745
|
-
|
|
2593
|
+
minWidth: 0,
|
|
2746
2594
|
minHeight: 0,
|
|
2747
2595
|
"@nest": {
|
|
2748
2596
|
"&:is(ul), &:is(ol)": {
|
|
@@ -2762,10 +2610,10 @@ const badgeStyle = {
|
|
|
2762
2610
|
}
|
|
2763
2611
|
}, boxStyle = {
|
|
2764
2612
|
layers: {
|
|
2765
|
-
primitive: primitive$
|
|
2613
|
+
primitive: primitive$j
|
|
2766
2614
|
}
|
|
2767
2615
|
}, toneMap$1 = {
|
|
2768
|
-
default: "
|
|
2616
|
+
default: "surface",
|
|
2769
2617
|
neutral: "neutral",
|
|
2770
2618
|
suggest: "suggest",
|
|
2771
2619
|
primary: "accent",
|
|
@@ -2776,7 +2624,7 @@ const badgeStyle = {
|
|
|
2776
2624
|
default: "solid",
|
|
2777
2625
|
ghost: "ghost",
|
|
2778
2626
|
bleed: "tinted"
|
|
2779
|
-
}, primitive$
|
|
2627
|
+
}, primitive$i = {
|
|
2780
2628
|
".button": {
|
|
2781
2629
|
WebkitFontSmoothing: "inherit",
|
|
2782
2630
|
appearance: "none",
|
|
@@ -2795,8 +2643,6 @@ const badgeStyle = {
|
|
|
2795
2643
|
backgroundColor: vars.color.bg,
|
|
2796
2644
|
color: vars.color.fg,
|
|
2797
2645
|
boxShadow: "var(--button-box-shadow)",
|
|
2798
|
-
alignItems: "center",
|
|
2799
|
-
// 'justifyContent': 'center',
|
|
2800
2646
|
"@nest": {
|
|
2801
2647
|
"&::-moz-focus-inner": {
|
|
2802
2648
|
border: 0,
|
|
@@ -2825,11 +2671,10 @@ const badgeStyle = {
|
|
|
2825
2671
|
};
|
|
2826
2672
|
for (const tone of theme.THEME_COLOR_STATE_TONES) {
|
|
2827
2673
|
const solid = vars.color.solid[tone], tinted = vars.color.tinted[tone];
|
|
2828
|
-
primitive$
|
|
2674
|
+
primitive$i[`.button.${variantMap.default}.${toneMap$1[tone]}`] = {
|
|
2829
2675
|
[varNames.color.bg]: solid.bg[0],
|
|
2830
2676
|
[varNames.color.border]: solid.border[1],
|
|
2831
2677
|
[varNames.color.fg]: solid.fg[0],
|
|
2832
|
-
[varNames.color.muted.bg]: solid.bg[1],
|
|
2833
2678
|
[varNames.color.muted.fg]: solid.fg[4],
|
|
2834
2679
|
"--button-box-shadow": "none",
|
|
2835
2680
|
"@nest": {
|
|
@@ -2837,77 +2682,62 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
|
|
|
2837
2682
|
[varNames.color.bg]: solid.bg[1],
|
|
2838
2683
|
[varNames.color.border]: solid.border[2],
|
|
2839
2684
|
[varNames.color.fg]: solid.fg[0],
|
|
2840
|
-
[varNames.color.muted.bg]: solid.bg[2],
|
|
2841
2685
|
[varNames.color.muted.fg]: solid.fg[4]
|
|
2842
2686
|
},
|
|
2843
2687
|
"&:not([data-disabled]):active": {
|
|
2844
2688
|
[varNames.color.bg]: solid.bg[2],
|
|
2845
2689
|
[varNames.color.border]: solid.border[3],
|
|
2846
2690
|
[varNames.color.fg]: solid.fg[0],
|
|
2847
|
-
[varNames.color.muted.bg]: solid.bg[3],
|
|
2848
2691
|
[varNames.color.muted.fg]: solid.fg[4]
|
|
2849
2692
|
},
|
|
2850
2693
|
"&:not([data-disabled])[data-selected]": {
|
|
2851
2694
|
[varNames.color.bg]: solid.bg[2],
|
|
2852
2695
|
[varNames.color.border]: solid.border[3],
|
|
2853
2696
|
[varNames.color.fg]: solid.fg[0],
|
|
2854
|
-
[varNames.color.muted.bg]: solid.bg[3],
|
|
2855
2697
|
[varNames.color.muted.fg]: solid.fg[4]
|
|
2856
2698
|
},
|
|
2857
2699
|
"&[data-disabled]": {
|
|
2858
2700
|
[varNames.color.bg]: vars.color.default.tinted.bg[1],
|
|
2859
2701
|
[varNames.color.border]: vars.color.default.tinted.border[0],
|
|
2860
2702
|
[varNames.color.fg]: vars.color.default.tinted.fg[2],
|
|
2861
|
-
[varNames.color.muted.bg]: vars.color.default.tinted.bg[2],
|
|
2862
2703
|
[varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
|
|
2863
2704
|
}
|
|
2864
2705
|
}
|
|
2865
|
-
}, primitive$
|
|
2866
|
-
[varNames.color.bg]: tinted.bg[
|
|
2867
|
-
[varNames.color.border]: tinted.border[
|
|
2706
|
+
}, primitive$i[`.button.${variantMap.ghost}.${toneMap$1[tone]}`] = {
|
|
2707
|
+
[varNames.color.bg]: tinted.bg[0],
|
|
2708
|
+
[varNames.color.border]: tinted.border[1],
|
|
2868
2709
|
[varNames.color.fg]: tinted.fg[2],
|
|
2869
|
-
[
|
|
2870
|
-
[varNames.color.muted.fg]: tinted.fg[4],
|
|
2871
|
-
"--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)",
|
|
2710
|
+
"--button-box-shadow": ["inset 0 0 0 var(--button-border-width) var(--color-border)", "inset 0 -1.5px 0 0.5px var(--color-shadow-umbra)"].join(","),
|
|
2872
2711
|
"@nest": {
|
|
2873
2712
|
"&:not([data-disabled]):hover": {
|
|
2874
|
-
[varNames.color.bg]: tinted.bg[
|
|
2875
|
-
[varNames.color.border]: tinted.border[
|
|
2876
|
-
[varNames.color.fg]: tinted.fg[1]
|
|
2877
|
-
[varNames.color.muted.bg]: tinted.bg[3],
|
|
2878
|
-
[varNames.color.muted.fg]: tinted.fg[3]
|
|
2713
|
+
[varNames.color.bg]: tinted.bg[1],
|
|
2714
|
+
[varNames.color.border]: tinted.border[2],
|
|
2715
|
+
[varNames.color.fg]: tinted.fg[1]
|
|
2879
2716
|
// '--button-box-shadow': `inset 0 0 0 var(--button-border-width) var(--color-border)`,
|
|
2880
2717
|
},
|
|
2881
2718
|
"&:not([data-disabled]):active": {
|
|
2882
|
-
[varNames.color.bg]: tinted.bg[
|
|
2883
|
-
[varNames.color.border]: tinted.border[
|
|
2719
|
+
[varNames.color.bg]: tinted.bg[2],
|
|
2720
|
+
[varNames.color.border]: tinted.border[3],
|
|
2884
2721
|
[varNames.color.fg]: tinted.fg[1],
|
|
2885
|
-
[varNames.color.muted.bg]: tinted.bg[4],
|
|
2886
|
-
[varNames.color.muted.fg]: tinted.fg[3],
|
|
2887
2722
|
"--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)"
|
|
2888
2723
|
},
|
|
2889
2724
|
"&:not([data-disabled])[data-selected]": {
|
|
2890
|
-
[varNames.color.bg]: tinted.bg[
|
|
2891
|
-
[varNames.color.border]: tinted.border[
|
|
2725
|
+
[varNames.color.bg]: tinted.bg[2],
|
|
2726
|
+
[varNames.color.border]: tinted.border[3],
|
|
2892
2727
|
[varNames.color.fg]: tinted.fg[1],
|
|
2893
|
-
[varNames.color.muted.bg]: tinted.bg[4],
|
|
2894
|
-
[varNames.color.muted.fg]: tinted.fg[3],
|
|
2895
2728
|
"--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)"
|
|
2896
2729
|
},
|
|
2897
2730
|
"&[data-disabled]": {
|
|
2898
|
-
[varNames.color.bg]: vars.color.default.tinted.bg[
|
|
2731
|
+
[varNames.color.bg]: vars.color.default.tinted.bg[0],
|
|
2899
2732
|
[varNames.color.border]: vars.color.default.tinted.border[0],
|
|
2900
|
-
[varNames.color.fg]: vars.color.default.tinted.fg[2]
|
|
2901
|
-
[varNames.color.muted.bg]: vars.color.default.tinted.bg[2],
|
|
2902
|
-
[varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
|
|
2733
|
+
[varNames.color.fg]: vars.color.default.tinted.fg[2]
|
|
2903
2734
|
}
|
|
2904
2735
|
}
|
|
2905
|
-
}, primitive$
|
|
2736
|
+
}, primitive$i[`.button.${variantMap.bleed}.${toneMap$1[tone]}`] = {
|
|
2906
2737
|
boxShadow: "none",
|
|
2907
2738
|
[varNames.color.bg]: tinted.bg[0],
|
|
2908
2739
|
[varNames.color.border]: tinted.border[1],
|
|
2909
2740
|
[varNames.color.fg]: tinted.fg[2],
|
|
2910
|
-
[varNames.color.muted.bg]: tinted.bg[1],
|
|
2911
2741
|
[varNames.color.muted.fg]: tinted.fg[4],
|
|
2912
2742
|
"--button-box-shadow": "none",
|
|
2913
2743
|
"@nest": {
|
|
@@ -2915,28 +2745,24 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
|
|
|
2915
2745
|
[varNames.color.bg]: tinted.bg[1],
|
|
2916
2746
|
[varNames.color.border]: tinted.border[2],
|
|
2917
2747
|
[varNames.color.fg]: tinted.fg[1],
|
|
2918
|
-
[varNames.color.muted.bg]: tinted.bg[2],
|
|
2919
2748
|
[varNames.color.muted.fg]: tinted.fg[3]
|
|
2920
2749
|
},
|
|
2921
2750
|
"&:not([data-disabled]):active": {
|
|
2922
2751
|
[varNames.color.bg]: tinted.bg[2],
|
|
2923
2752
|
[varNames.color.border]: tinted.border[3],
|
|
2924
2753
|
[varNames.color.fg]: tinted.fg[1],
|
|
2925
|
-
[varNames.color.muted.bg]: tinted.bg[3],
|
|
2926
2754
|
[varNames.color.muted.fg]: tinted.fg[3]
|
|
2927
2755
|
},
|
|
2928
2756
|
"&:not([data-disabled])[data-selected]": {
|
|
2929
2757
|
[varNames.color.bg]: tinted.bg[2],
|
|
2930
2758
|
[varNames.color.border]: tinted.border[3],
|
|
2931
2759
|
[varNames.color.fg]: tinted.fg[1],
|
|
2932
|
-
[varNames.color.muted.bg]: tinted.bg[3],
|
|
2933
2760
|
[varNames.color.muted.fg]: tinted.fg[3]
|
|
2934
2761
|
},
|
|
2935
2762
|
"&[data-disabled]": {
|
|
2936
2763
|
[varNames.color.bg]: vars.color.default.tinted.bg[0],
|
|
2937
2764
|
[varNames.color.border]: vars.color.default.tinted.border[0],
|
|
2938
2765
|
[varNames.color.fg]: vars.color.default.tinted.fg[2],
|
|
2939
|
-
[varNames.color.muted.bg]: vars.color.default.tinted.bg[1],
|
|
2940
2766
|
[varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
|
|
2941
2767
|
}
|
|
2942
2768
|
}
|
|
@@ -2944,11 +2770,11 @@ for (const tone of theme.THEME_COLOR_STATE_TONES) {
|
|
|
2944
2770
|
}
|
|
2945
2771
|
const buttonStyle = {
|
|
2946
2772
|
layers: {
|
|
2947
|
-
primitive: primitive$
|
|
2773
|
+
primitive: primitive$i
|
|
2948
2774
|
}
|
|
2949
2775
|
}, toneMap = {
|
|
2950
|
-
transparent: "
|
|
2951
|
-
default: "
|
|
2776
|
+
transparent: "canvas",
|
|
2777
|
+
default: "surface",
|
|
2952
2778
|
neutral: "neutral",
|
|
2953
2779
|
suggest: "suggest",
|
|
2954
2780
|
primary: "accent",
|
|
@@ -2956,19 +2782,17 @@ const buttonStyle = {
|
|
|
2956
2782
|
caution: "caution",
|
|
2957
2783
|
critical: "critical",
|
|
2958
2784
|
inherit: void 0
|
|
2959
|
-
}, primitive$
|
|
2785
|
+
}, primitive$h = {
|
|
2960
2786
|
".card": {
|
|
2961
2787
|
backgroundColor: vars.color.bg,
|
|
2962
2788
|
color: vars.color.fg,
|
|
2963
2789
|
[varNames.color.bg]: vars.color.tinted.default.bg[0],
|
|
2964
2790
|
[varNames.color.border]: vars.color.tinted.default.border[1],
|
|
2965
|
-
[varNames.color.code.bg]: vars.color.code.bg,
|
|
2966
|
-
[varNames.color.code.fg]: vars.color.code.fg,
|
|
2967
2791
|
[varNames.color.fg]: vars.color.tinted.default.fg[0],
|
|
2968
2792
|
[varNames.color.muted.bg]: vars.color.tinted.default.bg[1],
|
|
2969
2793
|
[varNames.color.muted.fg]: vars.color.tinted.default.fg[4],
|
|
2970
2794
|
"@nest": {
|
|
2971
|
-
"button
|
|
2795
|
+
"&:is(button)": {
|
|
2972
2796
|
WebkitFontSmoothing: "inherit",
|
|
2973
2797
|
appearance: "none",
|
|
2974
2798
|
outline: "none",
|
|
@@ -2978,72 +2802,14 @@ const buttonStyle = {
|
|
|
2978
2802
|
// @ts-expect-error - TODO: fix
|
|
2979
2803
|
width: ["-moz-available", "-webkit-fill-available", "fill-available"]
|
|
2980
2804
|
},
|
|
2981
|
-
"a
|
|
2982
|
-
// border: 'none',
|
|
2805
|
+
"&:is(a)": {
|
|
2983
2806
|
outline: "none",
|
|
2984
2807
|
textDecoration: "none"
|
|
2985
2808
|
},
|
|
2986
|
-
"pre
|
|
2809
|
+
"&:is(pre)": {
|
|
2987
2810
|
font: "inherit",
|
|
2988
2811
|
whiteSpace: "inherit"
|
|
2989
|
-
},
|
|
2990
|
-
"a&:not([data-disabled]):hover, button&:not([data-disabled]):hover": {
|
|
2991
|
-
[varNames.color.bg]: vars.color.tinted.default.bg[1],
|
|
2992
|
-
[varNames.color.border]: vars.color.tinted.default.border[3],
|
|
2993
|
-
[varNames.color.fg]: vars.color.tinted.default.fg[1],
|
|
2994
|
-
[varNames.color.muted.bg]: vars.color.tinted.default.bg[2],
|
|
2995
|
-
[varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
|
|
2996
|
-
},
|
|
2997
|
-
"a&:not([data-disabled]):active, button&:not([data-disabled]):active": {
|
|
2998
|
-
[varNames.color.bg]: vars.color.tinted.default.bg[2],
|
|
2999
|
-
[varNames.color.border]: vars.color.tinted.default.border[4],
|
|
3000
|
-
[varNames.color.fg]: vars.color.tinted.default.fg[0],
|
|
3001
|
-
[varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
|
|
3002
|
-
[varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
|
|
3003
|
-
},
|
|
3004
|
-
// toggle button
|
|
3005
|
-
'a&:not([data-disabled])[aria-pressed="true"], button&:not([data-disabled])[aria-pressed="true"]': {
|
|
3006
|
-
[varNames.color.bg]: vars.color.tinted.default.bg[2],
|
|
3007
|
-
[varNames.color.border]: vars.color.tinted.default.border[4],
|
|
3008
|
-
[varNames.color.fg]: vars.color.tinted.default.fg[0],
|
|
3009
|
-
[varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
|
|
3010
|
-
[varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
|
|
3011
|
-
},
|
|
3012
|
-
"a&:not([data-disabled])[data-pressed], button&:not([data-disabled])[data-pressed]": {
|
|
3013
|
-
[varNames.color.bg]: vars.color.tinted.default.bg[2],
|
|
3014
|
-
[varNames.color.border]: vars.color.tinted.default.border[4],
|
|
3015
|
-
[varNames.color.fg]: vars.color.tinted.default.fg[0],
|
|
3016
|
-
[varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
|
|
3017
|
-
[varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
|
|
3018
|
-
},
|
|
3019
|
-
"a&:not([data-disabled])[data-selected], button&:not([data-disabled])[data-selected]": {
|
|
3020
|
-
[varNames.color.bg]: vars.color.solid.primary.bg[0],
|
|
3021
|
-
[varNames.color.border]: vars.color.solid.primary.border[1],
|
|
3022
|
-
[varNames.color.fg]: vars.color.solid.primary.fg[0],
|
|
3023
|
-
[varNames.color.muted.bg]: vars.color.solid.primary.bg[1],
|
|
3024
|
-
[varNames.color.muted.fg]: vars.color.solid.primary.fg[3]
|
|
3025
|
-
},
|
|
3026
|
-
// '&:not([data-disabled]):focus': {
|
|
3027
|
-
// '--color-bg': vars.color.solid.bg[0],
|
|
3028
|
-
// '--color-border': vars.color.solid.border[1],
|
|
3029
|
-
// '--color-fg': vars.color.solid.fg[1],
|
|
3030
|
-
// '--color-muted-bg': vars.color.solid.bg[1],
|
|
3031
|
-
// '--color-muted-fg': vars.color.solid.fg[3],
|
|
3032
|
-
// },
|
|
3033
|
-
"a&[data-disabled]), button&[data-disabled]": {
|
|
3034
|
-
[varNames.color.bg]: vars.color.tinted.default.bg[2],
|
|
3035
|
-
[varNames.color.border]: vars.color.tinted.default.border[4],
|
|
3036
|
-
[varNames.color.fg]: vars.color.tinted.default.fg[0],
|
|
3037
|
-
[varNames.color.muted.bg]: vars.color.tinted.default.bg[3],
|
|
3038
|
-
[varNames.color.muted.fg]: vars.color.tinted.default.fg[4]
|
|
3039
2812
|
}
|
|
3040
|
-
// '&[data-disabled]': {
|
|
3041
|
-
// '--color-bg': vars.color.tinted.bg[0],
|
|
3042
|
-
// '--color-border': vars.color.tinted.border[1],
|
|
3043
|
-
// '--color-fg': vars.color.tinted.border[4],
|
|
3044
|
-
// '--color-muted-bg': vars.color.tinted.bg[1],
|
|
3045
|
-
// '--color-muted-fg': vars.color.tinted.border[4],
|
|
3046
|
-
// },
|
|
3047
2813
|
}
|
|
3048
2814
|
}
|
|
3049
2815
|
};
|
|
@@ -3055,7 +2821,7 @@ for (const scheme of theme.THEME_COLOR_SCHEMES) {
|
|
|
3055
2821
|
const _varNames = varNames.color[tone], _vars = vars.color[scheme][tone];
|
|
3056
2822
|
_assignToneProps(schemeProps, _varNames, _vars);
|
|
3057
2823
|
}
|
|
3058
|
-
primitive$
|
|
2824
|
+
primitive$h[`.card.${scheme}`] = schemeProps;
|
|
3059
2825
|
}
|
|
3060
2826
|
for (const tone of theme.THEME_COLOR_CARD_TONES) {
|
|
3061
2827
|
const _varNames = varNames.color, _vars = vars.color[tone], toneProps = {};
|
|
@@ -3063,12 +2829,10 @@ for (const tone of theme.THEME_COLOR_CARD_TONES) {
|
|
|
3063
2829
|
"--card-bg-color": vars.color.bg,
|
|
3064
2830
|
"--card-bg2-color": vars.color.muted.bg,
|
|
3065
2831
|
"--card-border-color": vars.color.border,
|
|
3066
|
-
"--card-code-bg-color": vars.color.
|
|
3067
|
-
"--card-code-fg-color": vars.color.
|
|
2832
|
+
"--card-code-bg-color": vars.color.muted.bg,
|
|
2833
|
+
"--card-code-fg-color": vars.color.tinted.default.fg[4],
|
|
3068
2834
|
"--card-fg-color": vars.color.fg,
|
|
3069
2835
|
"--card-focus-ring-color": vars.color.focusRing,
|
|
3070
|
-
"--card-hairline-soft-color": vars.color.tinted.default.border[1],
|
|
3071
|
-
"--card-hairline-hard-color": vars.color.tinted.default.border[2],
|
|
3072
2836
|
"--card-icon-color": vars.color.fg,
|
|
3073
2837
|
"--card-kbd-bg-color": vars.color.muted.bg,
|
|
3074
2838
|
"--card-kbd-border-color": vars.color.tinted.default.border[1],
|
|
@@ -3080,14 +2844,16 @@ for (const tone of theme.THEME_COLOR_CARD_TONES) {
|
|
|
3080
2844
|
"--card-shadow-outline-color": vars.color.shadow.outline,
|
|
3081
2845
|
"--card-shadow-umbra-color": vars.color.shadow.umbra,
|
|
3082
2846
|
"--card-shadow-penumbra-color": vars.color.shadow.penumbra,
|
|
3083
|
-
"--card-shadow-ambient-color": vars.color.shadow.ambient
|
|
2847
|
+
"--card-shadow-ambient-color": vars.color.shadow.ambient,
|
|
3084
2848
|
// '--card-skeleton-from-color': 'var(--color-skeleton-from)',
|
|
3085
2849
|
// '--card-skeleton-to-color': 'var(--color-skeleton-to)',
|
|
3086
|
-
|
|
2850
|
+
"--card-hairline-soft-color": vars.color.tinted.default.border[1],
|
|
2851
|
+
"--card-hairline-hard-color": vars.color.tinted.default.border[2]
|
|
2852
|
+
}), primitive$h[`.card.${toneMap[tone]}`] = toneProps;
|
|
3087
2853
|
}
|
|
3088
2854
|
const cardStyle = {
|
|
3089
2855
|
layers: {
|
|
3090
|
-
primitive: primitive$
|
|
2856
|
+
primitive: primitive$h
|
|
3091
2857
|
}
|
|
3092
2858
|
};
|
|
3093
2859
|
function _assignToneProps(toneProps, _varNames, _vars) {
|
|
@@ -3098,50 +2864,48 @@ function _assignToneProps(toneProps, _varNames, _vars) {
|
|
|
3098
2864
|
toneProps[`${_varNames.avatar[hue].bg}`] = _vars.avatar[hue].bg, toneProps[`${_varNames.avatar[hue].fg}`] = _vars.avatar[hue].fg;
|
|
3099
2865
|
Object.assign(toneProps, {
|
|
3100
2866
|
[_varNames.backdrop]: _vars.backdrop,
|
|
3101
|
-
[_varNames.code.fg]: _vars.code.fg,
|
|
3102
|
-
[_varNames.code.bg]: _vars.code.bg,
|
|
3103
|
-
[_varNames.code.token.atrule]: _vars.code.token.atrule,
|
|
3104
|
-
[_varNames.code.token.attrName]: _vars.code.token.attrName,
|
|
3105
|
-
[_varNames.code.token.attrValue]: _vars.code.token.attrValue,
|
|
3106
|
-
[_varNames.code.token.attribute]: _vars.code.token.attribute,
|
|
3107
|
-
[_varNames.code.token.boolean]: _vars.code.token.boolean,
|
|
3108
|
-
[_varNames.code.token.builtin]: _vars.code.token.builtin,
|
|
3109
|
-
[_varNames.code.token.cdata]: _vars.code.token.cdata,
|
|
3110
|
-
[_varNames.code.token.char]: _vars.code.token.char,
|
|
3111
|
-
[_varNames.code.token.class]: _vars.code.token.class,
|
|
3112
|
-
[_varNames.code.token.className]: _vars.code.token.className,
|
|
3113
|
-
[_varNames.code.token.comment]: _vars.code.token.comment,
|
|
3114
|
-
[_varNames.code.token.constant]: _vars.code.token.constant,
|
|
3115
|
-
[_varNames.code.token.deleted]: _vars.code.token.deleted,
|
|
3116
|
-
[_varNames.code.token.doctype]: _vars.code.token.doctype,
|
|
3117
|
-
[_varNames.code.token.entity]: _vars.code.token.entity,
|
|
3118
|
-
[_varNames.code.token.function]: _vars.code.token.function,
|
|
3119
|
-
[_varNames.code.token.hexcode]: _vars.code.token.hexcode,
|
|
3120
|
-
[_varNames.code.token.id]: _vars.code.token.id,
|
|
3121
|
-
[_varNames.code.token.important]: _vars.code.token.important,
|
|
3122
|
-
[_varNames.code.token.inserted]: _vars.code.token.inserted,
|
|
3123
|
-
[_varNames.code.token.keyword]: _vars.code.token.keyword,
|
|
3124
|
-
[_varNames.code.token.number]: _vars.code.token.number,
|
|
3125
|
-
[_varNames.code.token.operator]: _vars.code.token.operator,
|
|
3126
|
-
[_varNames.code.token.prolog]: _vars.code.token.prolog,
|
|
3127
|
-
[_varNames.code.token.property]: _vars.code.token.property,
|
|
3128
|
-
[_varNames.code.token.pseudoClass]: _vars.code.token.pseudoClass,
|
|
3129
|
-
[_varNames.code.token.pseudoElement]: _vars.code.token.pseudoElement,
|
|
3130
|
-
[_varNames.code.token.punctuation]: _vars.code.token.punctuation,
|
|
3131
|
-
[_varNames.code.token.regex]: _vars.code.token.regex,
|
|
3132
|
-
[_varNames.code.token.selector]: _vars.code.token.selector,
|
|
3133
|
-
[_varNames.code.token.string]: _vars.code.token.string,
|
|
3134
|
-
[_varNames.code.token.symbol]: _vars.code.token.symbol,
|
|
3135
|
-
[_varNames.code.token.tag]: _vars.code.token.tag,
|
|
3136
|
-
[_varNames.code.token.unit]: _vars.code.token.unit,
|
|
3137
|
-
[_varNames.code.token.url]: _vars.code.token.url,
|
|
3138
|
-
[_varNames.code.token.variable]: _vars.code.token.variable,
|
|
3139
2867
|
[_varNames.focusRing]: _vars.focusRing,
|
|
3140
2868
|
[_varNames.link.fg]: _vars.link.fg,
|
|
3141
2869
|
[_varNames.shadow.outline]: _vars.shadow.outline,
|
|
3142
2870
|
[_varNames.shadow.umbra]: _vars.shadow.umbra,
|
|
3143
2871
|
[_varNames.shadow.penumbra]: _vars.shadow.penumbra,
|
|
3144
|
-
[_varNames.shadow.ambient]: _vars.shadow.ambient
|
|
2872
|
+
[_varNames.shadow.ambient]: _vars.shadow.ambient,
|
|
2873
|
+
[_varNames.token.atrule]: _vars.token.atrule,
|
|
2874
|
+
[_varNames.token.attrName]: _vars.token.attrName,
|
|
2875
|
+
[_varNames.token.attrValue]: _vars.token.attrValue,
|
|
2876
|
+
[_varNames.token.attribute]: _vars.token.attribute,
|
|
2877
|
+
[_varNames.token.boolean]: _vars.token.boolean,
|
|
2878
|
+
[_varNames.token.builtin]: _vars.token.builtin,
|
|
2879
|
+
[_varNames.token.cdata]: _vars.token.cdata,
|
|
2880
|
+
[_varNames.token.char]: _vars.token.char,
|
|
2881
|
+
[_varNames.token.class]: _vars.token.class,
|
|
2882
|
+
[_varNames.token.className]: _vars.token.className,
|
|
2883
|
+
[_varNames.token.comment]: _vars.token.comment,
|
|
2884
|
+
[_varNames.token.constant]: _vars.token.constant,
|
|
2885
|
+
[_varNames.token.deleted]: _vars.token.deleted,
|
|
2886
|
+
[_varNames.token.doctype]: _vars.token.doctype,
|
|
2887
|
+
[_varNames.token.entity]: _vars.token.entity,
|
|
2888
|
+
[_varNames.token.function]: _vars.token.function,
|
|
2889
|
+
[_varNames.token.hexcode]: _vars.token.hexcode,
|
|
2890
|
+
[_varNames.token.id]: _vars.token.id,
|
|
2891
|
+
[_varNames.token.important]: _vars.token.important,
|
|
2892
|
+
[_varNames.token.inserted]: _vars.token.inserted,
|
|
2893
|
+
[_varNames.token.keyword]: _vars.token.keyword,
|
|
2894
|
+
[_varNames.token.number]: _vars.token.number,
|
|
2895
|
+
[_varNames.token.operator]: _vars.token.operator,
|
|
2896
|
+
[_varNames.token.prolog]: _vars.token.prolog,
|
|
2897
|
+
[_varNames.token.property]: _vars.token.property,
|
|
2898
|
+
[_varNames.token.pseudoClass]: _vars.token.pseudoClass,
|
|
2899
|
+
[_varNames.token.pseudoElement]: _vars.token.pseudoElement,
|
|
2900
|
+
[_varNames.token.punctuation]: _vars.token.punctuation,
|
|
2901
|
+
[_varNames.token.regex]: _vars.token.regex,
|
|
2902
|
+
[_varNames.token.selector]: _vars.token.selector,
|
|
2903
|
+
[_varNames.token.string]: _vars.token.string,
|
|
2904
|
+
[_varNames.token.symbol]: _vars.token.symbol,
|
|
2905
|
+
[_varNames.token.tag]: _vars.token.tag,
|
|
2906
|
+
[_varNames.token.unit]: _vars.token.unit,
|
|
2907
|
+
[_varNames.token.url]: _vars.token.url,
|
|
2908
|
+
[_varNames.token.variable]: _vars.token.variable
|
|
3145
2909
|
});
|
|
3146
2910
|
for (const variant of ["solid", "tinted"])
|
|
3147
2911
|
for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
|
|
@@ -3165,7 +2929,7 @@ function _assignToneProps(toneProps, _varNames, _vars) {
|
|
|
3165
2929
|
});
|
|
3166
2930
|
}
|
|
3167
2931
|
}
|
|
3168
|
-
const primitive$
|
|
2932
|
+
const primitive$g = {
|
|
3169
2933
|
".checkbox": {
|
|
3170
2934
|
position: "relative",
|
|
3171
2935
|
display: "inline-block"
|
|
@@ -3295,9 +3059,9 @@ const primitive$h = {
|
|
|
3295
3059
|
}
|
|
3296
3060
|
}, checkboxStyle = {
|
|
3297
3061
|
layers: {
|
|
3298
|
-
primitive: primitive$
|
|
3062
|
+
primitive: primitive$g
|
|
3299
3063
|
}
|
|
3300
|
-
}, primitive$
|
|
3064
|
+
}, primitive$f = {
|
|
3301
3065
|
".code": {
|
|
3302
3066
|
"--font-weight-regular": "var(--font-code-weight-regular)",
|
|
3303
3067
|
"--font-weight-medium": "var(--font-code-weight-medium)",
|
|
@@ -3333,7 +3097,7 @@ const primitive$h = {
|
|
|
3333
3097
|
}
|
|
3334
3098
|
};
|
|
3335
3099
|
for (const size of theme.FONT_CODE_SIZE)
|
|
3336
|
-
_responsiveRule(primitive$
|
|
3100
|
+
_responsiveRule(primitive$f, `code-${size}`, {
|
|
3337
3101
|
"--font-size": `var(--font-code-${size}-size)`,
|
|
3338
3102
|
"--font-line-height": `var(--font-code-${size}-line-height)`,
|
|
3339
3103
|
"--font-letter-spacing": `var(--font-code-${size}-letter-spacing)`,
|
|
@@ -3344,18 +3108,18 @@ for (const size of theme.FONT_CODE_SIZE)
|
|
|
3344
3108
|
});
|
|
3345
3109
|
const codeStyle = {
|
|
3346
3110
|
layers: {
|
|
3347
|
-
primitive: primitive$
|
|
3111
|
+
primitive: primitive$f
|
|
3348
3112
|
}
|
|
3349
|
-
}, primitive$
|
|
3113
|
+
}, primitive$e = {
|
|
3350
3114
|
".container": {
|
|
3351
3115
|
margin: "0 auto",
|
|
3352
3116
|
width: "100%"
|
|
3353
3117
|
}
|
|
3354
3118
|
}, containerStyle = {
|
|
3355
3119
|
layers: {
|
|
3356
|
-
primitive: primitive$
|
|
3120
|
+
primitive: primitive$e
|
|
3357
3121
|
}
|
|
3358
|
-
}, primitive$
|
|
3122
|
+
}, primitive$d = {
|
|
3359
3123
|
".heading": {
|
|
3360
3124
|
"--font-weight-regular": "var(--font-heading-weight-regular)",
|
|
3361
3125
|
"--font-weight-medium": "var(--font-heading-weight-medium)",
|
|
@@ -3379,7 +3143,7 @@ const codeStyle = {
|
|
|
3379
3143
|
}
|
|
3380
3144
|
};
|
|
3381
3145
|
for (const size of theme.FONT_HEADING_SIZE)
|
|
3382
|
-
_responsiveRule(primitive$
|
|
3146
|
+
_responsiveRule(primitive$d, `heading-${size}`, {
|
|
3383
3147
|
"--font-size": `var(--font-heading-${size}-size)`,
|
|
3384
3148
|
"--font-line-height": `var(--font-heading-${size}-line-height)`,
|
|
3385
3149
|
"--font-letter-spacing": `var(--font-heading-${size}-letter-spacing)`,
|
|
@@ -3390,14 +3154,14 @@ for (const size of theme.FONT_HEADING_SIZE)
|
|
|
3390
3154
|
});
|
|
3391
3155
|
const headingStyle = {
|
|
3392
3156
|
layers: {
|
|
3393
|
-
primitive: primitive$
|
|
3157
|
+
primitive: primitive$d
|
|
3394
3158
|
}
|
|
3395
|
-
}, primitive$
|
|
3159
|
+
}, primitive$c = {
|
|
3396
3160
|
".kbd": {
|
|
3397
3161
|
// '--color-bg': 'var(--color-tinted-default-bg-1)',
|
|
3398
3162
|
// '--color-border': 'var(--color-tinted-default-border-2)',
|
|
3399
3163
|
// '--color-fg': 'var(--color-tinted-default-fg-3)',
|
|
3400
|
-
boxShadow: "inset 0 0 0 0.5px var(--color-
|
|
3164
|
+
boxShadow: "inset 0 0 0 0.5px var(--color-border)",
|
|
3401
3165
|
background: "var(--color-muted-bg)",
|
|
3402
3166
|
font: "inherit",
|
|
3403
3167
|
verticalAlign: "top",
|
|
@@ -3409,9 +3173,9 @@ const headingStyle = {
|
|
|
3409
3173
|
}
|
|
3410
3174
|
}, kbdStyle = {
|
|
3411
3175
|
layers: {
|
|
3412
|
-
primitive: primitive$
|
|
3176
|
+
primitive: primitive$c
|
|
3413
3177
|
}
|
|
3414
|
-
}, primitive$
|
|
3178
|
+
}, primitive$b = {
|
|
3415
3179
|
".label": {
|
|
3416
3180
|
"--font-weight-regular": "var(--font-label-weight-regular)",
|
|
3417
3181
|
"--font-weight-medium": "var(--font-label-weight-medium)",
|
|
@@ -3436,7 +3200,7 @@ const headingStyle = {
|
|
|
3436
3200
|
}
|
|
3437
3201
|
};
|
|
3438
3202
|
for (const size of theme.FONT_LABEL_SIZE)
|
|
3439
|
-
_responsiveRule(primitive$
|
|
3203
|
+
_responsiveRule(primitive$b, `label-${size}`, {
|
|
3440
3204
|
"--font-size": `var(--font-label-${size}-size)`,
|
|
3441
3205
|
"--font-line-height": `var(--font-label-${size}-line-height)`,
|
|
3442
3206
|
"--font-letter-spacing": `var(--font-label-${size}-letter-spacing)`,
|
|
@@ -3447,13 +3211,13 @@ for (const size of theme.FONT_LABEL_SIZE)
|
|
|
3447
3211
|
});
|
|
3448
3212
|
const labelStyle = {
|
|
3449
3213
|
layers: {
|
|
3450
|
-
primitive: primitive$
|
|
3214
|
+
primitive: primitive$b
|
|
3451
3215
|
}
|
|
3452
|
-
}, primitive$
|
|
3216
|
+
}, primitive$a = {}, popoverStyle = {
|
|
3453
3217
|
layers: {
|
|
3454
|
-
primitive: primitive$
|
|
3218
|
+
primitive: primitive$a
|
|
3455
3219
|
}
|
|
3456
|
-
}, primitive$
|
|
3220
|
+
}, primitive$9 = {
|
|
3457
3221
|
".radio": {
|
|
3458
3222
|
position: "relative",
|
|
3459
3223
|
"@nest": {
|
|
@@ -3559,9 +3323,9 @@ const labelStyle = {
|
|
|
3559
3323
|
}
|
|
3560
3324
|
}, radioStyle = {
|
|
3561
3325
|
layers: {
|
|
3562
|
-
primitive: primitive$
|
|
3326
|
+
primitive: primitive$9
|
|
3563
3327
|
}
|
|
3564
|
-
}, primitive$
|
|
3328
|
+
}, primitive$8 = {
|
|
3565
3329
|
".select": {
|
|
3566
3330
|
"@nest": {
|
|
3567
3331
|
"& > select:disabled": {
|
|
@@ -3581,7 +3345,7 @@ const labelStyle = {
|
|
|
3581
3345
|
}
|
|
3582
3346
|
}, selectStyle = {
|
|
3583
3347
|
layers: {
|
|
3584
|
-
primitive: primitive$
|
|
3348
|
+
primitive: primitive$8
|
|
3585
3349
|
}
|
|
3586
3350
|
}, keyframes = {
|
|
3587
3351
|
"spinner-rotate": {
|
|
@@ -3592,21 +3356,13 @@ const labelStyle = {
|
|
|
3592
3356
|
transform: "rotate(360deg)"
|
|
3593
3357
|
}
|
|
3594
3358
|
}
|
|
3595
|
-
}, primitive$
|
|
3359
|
+
}, primitive$7 = {
|
|
3596
3360
|
".spinner": {},
|
|
3597
3361
|
".animated-spinner-icon": {
|
|
3598
3362
|
animation: "spinner-rotate 500ms linear infinite"
|
|
3599
3363
|
}
|
|
3600
3364
|
}, spinnerStyle = {
|
|
3601
3365
|
keyframes,
|
|
3602
|
-
layers: {
|
|
3603
|
-
primitive: primitive$8
|
|
3604
|
-
}
|
|
3605
|
-
}, primitive$7 = {
|
|
3606
|
-
".stack": {
|
|
3607
|
-
gridTemplateColumns: "minmax(0, 1fr)"
|
|
3608
|
-
}
|
|
3609
|
-
}, stackStyle = {
|
|
3610
3366
|
layers: {
|
|
3611
3367
|
primitive: primitive$7
|
|
3612
3368
|
}
|
|
@@ -3624,15 +3380,21 @@ const labelStyle = {
|
|
|
3624
3380
|
outline: "none",
|
|
3625
3381
|
padding: 0,
|
|
3626
3382
|
margin: 0,
|
|
3627
|
-
|
|
3383
|
+
/* Place the input element above the representation element */
|
|
3628
3384
|
zIndex: 1
|
|
3629
3385
|
},
|
|
3630
3386
|
".switch-presentation": {
|
|
3631
3387
|
"--switch-bg-color": "var(--color-tinted-default-border-2)",
|
|
3388
|
+
// '--switch-border-color': 'var(--color-tinted-default-border-1)',
|
|
3632
3389
|
"--switch-fg-color": "var(--color-tinted-default-bg-0)",
|
|
3390
|
+
// --switch-bg-color: ${color.input.default.enabled.border};
|
|
3391
|
+
// --switch-fg-color: ${color.input.default.enabled.bg};
|
|
3633
3392
|
"--switch-thumb-offset": "0",
|
|
3634
3393
|
"--switch-thumb-size": "calc(var(--input-switch-height) - var(--input-switch-padding) * 2)",
|
|
3635
3394
|
display: "block",
|
|
3395
|
+
// &:not([hidden]) {
|
|
3396
|
+
// display: block;
|
|
3397
|
+
// }
|
|
3636
3398
|
position: "relative",
|
|
3637
3399
|
width: "var(--input-switch-width)",
|
|
3638
3400
|
height: "var(--input-switch-height)",
|
|
@@ -3641,7 +3403,20 @@ const labelStyle = {
|
|
|
3641
3403
|
// Make sure it’s not possible to interact with the presentation element
|
|
3642
3404
|
pointerEvents: "none",
|
|
3643
3405
|
"@nest": {
|
|
3406
|
+
// '&::after': {
|
|
3407
|
+
// content: '""',
|
|
3408
|
+
// display: 'block',
|
|
3409
|
+
// position: 'absolute',
|
|
3410
|
+
// top: 0,
|
|
3411
|
+
// left: 0,
|
|
3412
|
+
// right: 0,
|
|
3413
|
+
// bottom: 0,
|
|
3414
|
+
// zIndex: 1,
|
|
3415
|
+
// // boxShadow: 'var(--switch-box-shadow)',
|
|
3416
|
+
// borderRadius: 'inherit',
|
|
3417
|
+
// },
|
|
3644
3418
|
".switch-element:focus + &": {
|
|
3419
|
+
// --switch-box-shadow: ${focusRingStyle({focusRing: input.switch.focusRing})};
|
|
3645
3420
|
outline: "var(--input-switch-focus-ring-width) solid var(--color-focus-ring)"
|
|
3646
3421
|
},
|
|
3647
3422
|
"input:focus:not(:focus-visible) + &": {
|
|
@@ -3649,15 +3424,35 @@ const labelStyle = {
|
|
|
3649
3424
|
},
|
|
3650
3425
|
"input:checked + &": {
|
|
3651
3426
|
"--switch-bg-color": "var(--color-solid-default-bg-0)",
|
|
3427
|
+
// '--switch-border-color': 'var(--color-solid-default-bg-0)',
|
|
3652
3428
|
"--switch-fg-color": "var(--color-solid-default-fg-0)"
|
|
3653
3429
|
},
|
|
3430
|
+
// input:not([data-read-only]):disabled + && {
|
|
3431
|
+
// --switch-bg-color: ${color.input.default.disabled.border};
|
|
3432
|
+
// --switch-fg-color: ${color.input.default.disabled.bg};
|
|
3433
|
+
// }
|
|
3434
|
+
// input[data-read-only]:disabled + && {
|
|
3435
|
+
// --switch-bg-color: ${color.input.default.readOnly.border};
|
|
3436
|
+
// --switch-fg-color: ${color.input.default.readOnly.bg};
|
|
3437
|
+
// }
|
|
3438
|
+
// input:checked[data-read-only]:disabled + && {
|
|
3439
|
+
// --switch-bg-color: ${color.input.default.readOnly.fg};
|
|
3440
|
+
// --switch-fg-color: ${color.input.default.readOnly.bg};
|
|
3441
|
+
// }
|
|
3654
3442
|
".switch-element:checked + &": {
|
|
3655
3443
|
"--switch-thumb-offset": "calc(var(--input-switch-width) - (var(--input-switch-padding) * 2) - var(--switch-thumb-size))"
|
|
3656
|
-
},
|
|
3657
|
-
"[data-indeterminate] > .switch-element + &": {
|
|
3658
|
-
"--switch-thumb-offset": "calc(var(--input-switch-width) / 2 - var(--switch-thumb-size) / 2 - var(--input-switch-padding))"
|
|
3659
3444
|
}
|
|
3660
3445
|
}
|
|
3446
|
+
// @media (hover: hover) {
|
|
3447
|
+
// input:not(:disabled):hover + && {
|
|
3448
|
+
// --switch-bg-color: ${color.input.default.hovered.border};
|
|
3449
|
+
// --switch-fg-color: ${color.input.default.hovered.bg};
|
|
3450
|
+
// }
|
|
3451
|
+
// input:not(:disabled):checked:hover + && {
|
|
3452
|
+
// --switch-bg-color: ${color.input.default.enabled.fg};
|
|
3453
|
+
// --switch-fg-color: ${color.input.default.enabled.bg};
|
|
3454
|
+
// }
|
|
3455
|
+
// }
|
|
3661
3456
|
},
|
|
3662
3457
|
".switch-track": {
|
|
3663
3458
|
display: "block",
|
|
@@ -3668,9 +3463,11 @@ const labelStyle = {
|
|
|
3668
3463
|
right: 0,
|
|
3669
3464
|
bottom: 0,
|
|
3670
3465
|
borderRadius: "inherit",
|
|
3466
|
+
// boxShadow: 'inset 0 0 0 1px var(--switch-border-color)',
|
|
3671
3467
|
transition: "box-shadow, background-color var(--input-switch-transition-duration-ms) var(--input-switch-transition-timing-function)"
|
|
3672
3468
|
},
|
|
3673
3469
|
".switch-thumb": {
|
|
3470
|
+
// '--switch-thumb-offset': '0',
|
|
3674
3471
|
display: "block",
|
|
3675
3472
|
position: "absolute",
|
|
3676
3473
|
left: "var(--input-switch-padding)",
|
|
@@ -3682,6 +3479,40 @@ const labelStyle = {
|
|
|
3682
3479
|
boxShadow: "0 0 0 0.5px var(--color-shadow-umbra), 0 0.5px 2px 0.5px var(--color-shadow-umbra)",
|
|
3683
3480
|
transform: "translate3d(var(--switch-thumb-offset), 0, 0)",
|
|
3684
3481
|
transition: "transform var(--input-switch-transition-duration-ms) var(--input-switch-transition-timing-function)"
|
|
3482
|
+
// transition-property: transform;
|
|
3483
|
+
// transition-duration: ${input.switch.transitionDurationMs}ms;
|
|
3484
|
+
// transition-timing-function: ${input.switch.transitionTimingFunction};
|
|
3485
|
+
// const {$indeterminate} = props
|
|
3486
|
+
// const {input} = getTheme_v2(props.theme)
|
|
3487
|
+
// const trackWidth = input.switch.width
|
|
3488
|
+
// const trackHeight = input.switch.height
|
|
3489
|
+
// const trackPadding = input.switch.padding
|
|
3490
|
+
// const size = trackHeight - input.switch.padding * 2
|
|
3491
|
+
// const checkedOffset = trackWidth - trackPadding * 2 - size
|
|
3492
|
+
// const indeterminateOffset = trackWidth / 2 - size / 2 - trackPadding
|
|
3493
|
+
// const checked = $indeterminate !== true && props.$checked === true
|
|
3494
|
+
// return css`
|
|
3495
|
+
// position: absolute;
|
|
3496
|
+
// left: ${rem(trackPadding)};
|
|
3497
|
+
// top: ${rem(trackPadding)};
|
|
3498
|
+
// height: ${rem(size)};
|
|
3499
|
+
// width: ${rem(size)};
|
|
3500
|
+
// border-radius: ${rem(size / 2)};
|
|
3501
|
+
// transition-property: transform;
|
|
3502
|
+
// transition-duration: ${input.switch.transitionDurationMs}ms;
|
|
3503
|
+
// transition-timing-function: ${input.switch.transitionTimingFunction};
|
|
3504
|
+
// background: var(--switch-fg-color);
|
|
3505
|
+
// transform: translate3d(0, 0, 0);
|
|
3506
|
+
// box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05);
|
|
3507
|
+
// ${checked &&
|
|
3508
|
+
// css`
|
|
3509
|
+
// transform: translate3d(${checkedOffset}px, 0, 0);
|
|
3510
|
+
// `}
|
|
3511
|
+
// ${$indeterminate &&
|
|
3512
|
+
// css`
|
|
3513
|
+
// transform: translate3d(${indeterminateOffset}px, 0, 0);
|
|
3514
|
+
// `}
|
|
3515
|
+
// `
|
|
3685
3516
|
}
|
|
3686
3517
|
}, switchStyle = {
|
|
3687
3518
|
layers: {
|
|
@@ -3703,16 +3534,10 @@ const labelStyle = {
|
|
|
3703
3534
|
},
|
|
3704
3535
|
"& a:hover": {
|
|
3705
3536
|
color: "var(--color-fg)"
|
|
3706
|
-
},
|
|
3707
|
-
"& code": {
|
|
3708
|
-
fontFamily: vars.font.code.family,
|
|
3709
|
-
color: "var(--color-code-fg)",
|
|
3710
|
-
backgroundColor: "var(--color-muted-bg)",
|
|
3711
|
-
borderRadius: vars.radius[2]
|
|
3712
|
-
},
|
|
3713
|
-
"& svg": {
|
|
3714
|
-
color: "var(--color-muted-fg)"
|
|
3715
3537
|
}
|
|
3538
|
+
// '& svg': {
|
|
3539
|
+
// color: 'var(--color-icon)',
|
|
3540
|
+
// },
|
|
3716
3541
|
}
|
|
3717
3542
|
},
|
|
3718
3543
|
// 'text-accent': {
|
|
@@ -4092,7 +3917,6 @@ const textStyle = {
|
|
|
4092
3917
|
insetStyle,
|
|
4093
3918
|
marginStyle,
|
|
4094
3919
|
maxWidthStyle,
|
|
4095
|
-
minWidthStyle,
|
|
4096
3920
|
outlineStyle,
|
|
4097
3921
|
overflowStyle,
|
|
4098
3922
|
paddingStyle,
|
|
@@ -4124,7 +3948,6 @@ const textStyle = {
|
|
|
4124
3948
|
radioStyle,
|
|
4125
3949
|
selectStyle,
|
|
4126
3950
|
spinnerStyle,
|
|
4127
|
-
stackStyle,
|
|
4128
3951
|
switchStyle,
|
|
4129
3952
|
textAreaStyle,
|
|
4130
3953
|
textInputStyle,
|
|
@@ -4218,7 +4041,7 @@ function compileStyleRule(_selector, properties) {
|
|
|
4218
4041
|
`), nestedProps)
|
|
4219
4042
|
for (const [_nestedSelector, nestedProperties] of Object.entries(nestedProps)) {
|
|
4220
4043
|
const nestedSelector = _prefix && (nestedProperties._prefix ?? !0) ? _nestedSelector.replace(/\./g, `.${PREFIX}`) : _nestedSelector;
|
|
4221
|
-
css += `${nestedSelector.replace(
|
|
4044
|
+
css += `${nestedSelector.replace("&", selector)} {
|
|
4222
4045
|
`, css += compileProperties(nestedProperties), css += `}
|
|
4223
4046
|
|
|
4224
4047
|
`;
|
|
@@ -4264,6 +4087,7 @@ function compileThemeProperties(theme2) {
|
|
|
4264
4087
|
...buildRadiusThemeProperties(theme2),
|
|
4265
4088
|
...buildShadowThemeProperties(theme2),
|
|
4266
4089
|
...buildSpaceThemeProperties(theme2),
|
|
4090
|
+
// ...buildColorPaletteProperties(palette),
|
|
4267
4091
|
...buildColorThemeProperties(theme2)
|
|
4268
4092
|
};
|
|
4269
4093
|
}
|
|
@@ -4491,57 +4315,49 @@ function buildColorCardThemeProperties(theme$1, options) {
|
|
|
4491
4315
|
scheme
|
|
4492
4316
|
};
|
|
4493
4317
|
return {
|
|
4494
|
-
// backdrop
|
|
4495
4318
|
[`${prefix}-backdrop`]: theme.renderColor(tokens.backdrop, context),
|
|
4496
|
-
// code
|
|
4497
|
-
[`${prefix}-code-bg`]: theme.renderColor(tokens.code.bg, context),
|
|
4498
|
-
[`${prefix}-code-fg`]: theme.renderColor(tokens.code.fg, context),
|
|
4499
|
-
// code / token
|
|
4500
|
-
[`${prefix}-code-token-atrule`]: theme.renderColor(tokens.code.token.atrule, context),
|
|
4501
|
-
[`${prefix}-code-token-attr-name`]: theme.renderColor(tokens.code.token.attrName, context),
|
|
4502
|
-
[`${prefix}-code-token-attr-value`]: theme.renderColor(tokens.code.token.attrValue, context),
|
|
4503
|
-
[`${prefix}-code-token-attribute`]: theme.renderColor(tokens.code.token.attribute, context),
|
|
4504
|
-
[`${prefix}-code-token-boolean`]: theme.renderColor(tokens.code.token.boolean, context),
|
|
4505
|
-
[`${prefix}-code-token-builtin`]: theme.renderColor(tokens.code.token.builtin, context),
|
|
4506
|
-
[`${prefix}-code-token-cdata`]: theme.renderColor(tokens.code.token.cdata, context),
|
|
4507
|
-
[`${prefix}-code-token-char`]: theme.renderColor(tokens.code.token.char, context),
|
|
4508
|
-
[`${prefix}-code-token-class-name`]: theme.renderColor(tokens.code.token.className, context),
|
|
4509
|
-
[`${prefix}-code-token-class`]: theme.renderColor(tokens.code.token.class, context),
|
|
4510
|
-
[`${prefix}-code-token-comment`]: theme.renderColor(tokens.code.token.comment, context),
|
|
4511
|
-
[`${prefix}-code-token-constant`]: theme.renderColor(tokens.code.token.constant, context),
|
|
4512
|
-
[`${prefix}-code-token-deleted`]: theme.renderColor(tokens.code.token.deleted, context),
|
|
4513
|
-
[`${prefix}-code-token-doctype`]: theme.renderColor(tokens.code.token.doctype, context),
|
|
4514
|
-
[`${prefix}-code-token-entity`]: theme.renderColor(tokens.code.token.entity, context),
|
|
4515
|
-
[`${prefix}-code-token-function`]: theme.renderColor(tokens.code.token.function, context),
|
|
4516
|
-
[`${prefix}-code-token-hexcode`]: theme.renderColor(tokens.code.token.hexcode, context),
|
|
4517
|
-
[`${prefix}-code-token-id`]: theme.renderColor(tokens.code.token.id, context),
|
|
4518
|
-
[`${prefix}-code-token-important`]: theme.renderColor(tokens.code.token.important, context),
|
|
4519
|
-
[`${prefix}-code-token-inserted`]: theme.renderColor(tokens.code.token.inserted, context),
|
|
4520
|
-
[`${prefix}-code-token-keyword`]: theme.renderColor(tokens.code.token.keyword, context),
|
|
4521
|
-
[`${prefix}-code-token-number`]: theme.renderColor(tokens.code.token.number, context),
|
|
4522
|
-
[`${prefix}-code-token-operator`]: theme.renderColor(tokens.code.token.operator, context),
|
|
4523
|
-
[`${prefix}-code-token-prolog`]: theme.renderColor(tokens.code.token.prolog, context),
|
|
4524
|
-
[`${prefix}-code-token-property`]: theme.renderColor(tokens.code.token.property, context),
|
|
4525
|
-
[`${prefix}-code-token-pseudo-class`]: theme.renderColor(tokens.code.token.pseudoClass, context),
|
|
4526
|
-
[`${prefix}-code-token-pseudo-eelement`]: theme.renderColor(tokens.code.token.pseudoElement, context),
|
|
4527
|
-
[`${prefix}-code-token-punctuation`]: theme.renderColor(tokens.code.token.punctuation, context),
|
|
4528
|
-
[`${prefix}-code-token-regex`]: theme.renderColor(tokens.code.token.regex, context),
|
|
4529
|
-
[`${prefix}-code-token-selector`]: theme.renderColor(tokens.code.token.selector, context),
|
|
4530
|
-
[`${prefix}-code-token-string`]: theme.renderColor(tokens.code.token.string, context),
|
|
4531
|
-
[`${prefix}-code-token-symbol`]: theme.renderColor(tokens.code.token.symbol, context),
|
|
4532
|
-
[`${prefix}-code-token-tag`]: theme.renderColor(tokens.code.token.tag, context),
|
|
4533
|
-
[`${prefix}-code-token-unit`]: theme.renderColor(tokens.code.token.unit, context),
|
|
4534
|
-
[`${prefix}-code-token-url`]: theme.renderColor(tokens.code.token.url, context),
|
|
4535
|
-
[`${prefix}-code-token-variable`]: theme.renderColor(tokens.code.token.variable, context),
|
|
4536
|
-
// focus ring
|
|
4537
4319
|
[`${prefix}-focus-ring`]: theme.renderColor(tokens.focusRing, context),
|
|
4538
|
-
// link
|
|
4539
4320
|
[`${prefix}-link-fg`]: theme.renderColor(tokens.link.fg, context),
|
|
4540
|
-
// shadow
|
|
4541
4321
|
[`${prefix}-shadow-outline`]: theme.renderColor(tokens.shadow.outline, context),
|
|
4542
4322
|
[`${prefix}-shadow-umbra`]: theme.renderColor(tokens.shadow.umbra, context),
|
|
4543
4323
|
[`${prefix}-shadow-penumbra`]: theme.renderColor(tokens.shadow.penumbra, context),
|
|
4544
|
-
[`${prefix}-shadow-ambient`]: theme.renderColor(tokens.shadow.ambient, context)
|
|
4324
|
+
[`${prefix}-shadow-ambient`]: theme.renderColor(tokens.shadow.ambient, context),
|
|
4325
|
+
[`${prefix}-token-atrule`]: theme.renderColor(tokens.token.atrule, context),
|
|
4326
|
+
[`${prefix}-token-attr-name`]: theme.renderColor(tokens.token.attrName, context),
|
|
4327
|
+
[`${prefix}-token-attr-value`]: theme.renderColor(tokens.token.attrValue, context),
|
|
4328
|
+
[`${prefix}-token-attribute`]: theme.renderColor(tokens.token.attribute, context),
|
|
4329
|
+
[`${prefix}-token-boolean`]: theme.renderColor(tokens.token.boolean, context),
|
|
4330
|
+
[`${prefix}-token-builtin`]: theme.renderColor(tokens.token.builtin, context),
|
|
4331
|
+
[`${prefix}-token-cdata`]: theme.renderColor(tokens.token.cdata, context),
|
|
4332
|
+
[`${prefix}-token-char`]: theme.renderColor(tokens.token.char, context),
|
|
4333
|
+
[`${prefix}-token-class-name`]: theme.renderColor(tokens.token.className, context),
|
|
4334
|
+
[`${prefix}-token-class`]: theme.renderColor(tokens.token.class, context),
|
|
4335
|
+
[`${prefix}-token-comment`]: theme.renderColor(tokens.token.comment, context),
|
|
4336
|
+
[`${prefix}-token-constant`]: theme.renderColor(tokens.token.constant, context),
|
|
4337
|
+
[`${prefix}-token-deleted`]: theme.renderColor(tokens.token.deleted, context),
|
|
4338
|
+
[`${prefix}-token-doctype`]: theme.renderColor(tokens.token.doctype, context),
|
|
4339
|
+
[`${prefix}-token-entity`]: theme.renderColor(tokens.token.entity, context),
|
|
4340
|
+
[`${prefix}-token-function`]: theme.renderColor(tokens.token.function, context),
|
|
4341
|
+
[`${prefix}-token-hexcode`]: theme.renderColor(tokens.token.hexcode, context),
|
|
4342
|
+
[`${prefix}-token-id`]: theme.renderColor(tokens.token.id, context),
|
|
4343
|
+
[`${prefix}-token-important`]: theme.renderColor(tokens.token.important, context),
|
|
4344
|
+
[`${prefix}-token-inserted`]: theme.renderColor(tokens.token.inserted, context),
|
|
4345
|
+
[`${prefix}-token-keyword`]: theme.renderColor(tokens.token.keyword, context),
|
|
4346
|
+
[`${prefix}-token-number`]: theme.renderColor(tokens.token.number, context),
|
|
4347
|
+
[`${prefix}-token-operator`]: theme.renderColor(tokens.token.operator, context),
|
|
4348
|
+
[`${prefix}-token-prolog`]: theme.renderColor(tokens.token.prolog, context),
|
|
4349
|
+
[`${prefix}-token-property`]: theme.renderColor(tokens.token.property, context),
|
|
4350
|
+
[`${prefix}-token-pseudo-class`]: theme.renderColor(tokens.token.pseudoClass, context),
|
|
4351
|
+
[`${prefix}-token-pseudo-eelement`]: theme.renderColor(tokens.token.pseudoElement, context),
|
|
4352
|
+
[`${prefix}-token-punctuation`]: theme.renderColor(tokens.token.punctuation, context),
|
|
4353
|
+
[`${prefix}-token-regex`]: theme.renderColor(tokens.token.regex, context),
|
|
4354
|
+
[`${prefix}-token-selector`]: theme.renderColor(tokens.token.selector, context),
|
|
4355
|
+
[`${prefix}-token-string`]: theme.renderColor(tokens.token.string, context),
|
|
4356
|
+
[`${prefix}-token-symbol`]: theme.renderColor(tokens.token.symbol, context),
|
|
4357
|
+
[`${prefix}-token-tag`]: theme.renderColor(tokens.token.tag, context),
|
|
4358
|
+
[`${prefix}-token-unit`]: theme.renderColor(tokens.token.unit, context),
|
|
4359
|
+
[`${prefix}-token-url`]: theme.renderColor(tokens.token.url, context),
|
|
4360
|
+
[`${prefix}-token-variable`]: theme.renderColor(tokens.token.variable, context)
|
|
4545
4361
|
};
|
|
4546
4362
|
}
|
|
4547
4363
|
function compileTheme(theme2) {
|
|
@@ -4549,9 +4365,93 @@ function compileTheme(theme2) {
|
|
|
4549
4365
|
` : `/* v0 - not supported */
|
|
4550
4366
|
`;
|
|
4551
4367
|
}
|
|
4368
|
+
function getClassNames(...classNames) {
|
|
4369
|
+
return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
|
|
4370
|
+
}
|
|
4371
|
+
function composeClassNames(...classNames) {
|
|
4372
|
+
return unique(getClassNames(...classNames)).join(" ") || void 0;
|
|
4373
|
+
}
|
|
4374
|
+
function unique(array) {
|
|
4375
|
+
return Array.from(new Set(array));
|
|
4376
|
+
}
|
|
4377
|
+
function scopeClassName(className) {
|
|
4378
|
+
if (className !== void 0)
|
|
4379
|
+
return `${PREFIX}${className.trim()}`;
|
|
4380
|
+
}
|
|
4381
|
+
function _comp(...classNames) {
|
|
4382
|
+
return getClassNames(...classNames).map(scopeClassName).join(" ") || void 0;
|
|
4383
|
+
}
|
|
4552
4384
|
function breadcrumbs() {
|
|
4553
4385
|
return _comp("breadcrumbs");
|
|
4554
4386
|
}
|
|
4387
|
+
function _resp(prefix, prop) {
|
|
4388
|
+
if (!(prop === void 0 || prop === !1))
|
|
4389
|
+
return Array.isArray(prop) ? prop.map((value, index) => {
|
|
4390
|
+
if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
|
|
4391
|
+
const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
|
|
4392
|
+
return index === 0 ? className : `${index}:${className}`;
|
|
4393
|
+
}).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
|
|
4394
|
+
}
|
|
4395
|
+
function border(props) {
|
|
4396
|
+
return composeClassNames(_resp("border", props.border), _resp("border-t", props.borderTop), _resp("border-r", props.borderRight), _resp("border-b", props.borderBottom), _resp("border-l", props.borderLeft));
|
|
4397
|
+
}
|
|
4398
|
+
function display(props) {
|
|
4399
|
+
return composeClassNames(_resp(void 0, props.display));
|
|
4400
|
+
}
|
|
4401
|
+
function flex(props) {
|
|
4402
|
+
return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
|
|
4403
|
+
}
|
|
4404
|
+
function flexItem(props) {
|
|
4405
|
+
return composeClassNames(_resp("f", props.flex));
|
|
4406
|
+
}
|
|
4407
|
+
function font(props) {
|
|
4408
|
+
return composeClassNames("font", props.weight && `font-${props.weight}`, _resp("text-align", props.align));
|
|
4409
|
+
}
|
|
4410
|
+
function gap(props) {
|
|
4411
|
+
return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
|
|
4412
|
+
}
|
|
4413
|
+
function grid(props) {
|
|
4414
|
+
return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-flow", props.autoFlow), _resp("auto-rows", props.autoRows), _resp("cols", props.columns), _resp("rows", props.rows));
|
|
4415
|
+
}
|
|
4416
|
+
function gridItem(props) {
|
|
4417
|
+
return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
|
|
4418
|
+
}
|
|
4419
|
+
function height(props) {
|
|
4420
|
+
return composeClassNames(_resp("h", props.height));
|
|
4421
|
+
}
|
|
4422
|
+
function inset(props) {
|
|
4423
|
+
return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
|
|
4424
|
+
}
|
|
4425
|
+
function margin(props) {
|
|
4426
|
+
return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
|
|
4427
|
+
}
|
|
4428
|
+
function maxWidth(props) {
|
|
4429
|
+
return _resp("max-w", props.maxWidth) ?? "";
|
|
4430
|
+
}
|
|
4431
|
+
function overflow(props) {
|
|
4432
|
+
return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
|
|
4433
|
+
}
|
|
4434
|
+
function padding(props) {
|
|
4435
|
+
return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
|
|
4436
|
+
}
|
|
4437
|
+
function pointerEvents(props) {
|
|
4438
|
+
return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
|
|
4439
|
+
}
|
|
4440
|
+
function position(props) {
|
|
4441
|
+
return composeClassNames(_resp("position", props.position));
|
|
4442
|
+
}
|
|
4443
|
+
function radius(props) {
|
|
4444
|
+
return composeClassNames(_resp("r", props.radius));
|
|
4445
|
+
}
|
|
4446
|
+
function shadow(props) {
|
|
4447
|
+
return composeClassNames(_resp("shadow", props.shadow));
|
|
4448
|
+
}
|
|
4449
|
+
function textOverflow(props) {
|
|
4450
|
+
return composeClassNames(props.textOverflow && `text-overflow-${props.textOverflow}`);
|
|
4451
|
+
}
|
|
4452
|
+
function width(props) {
|
|
4453
|
+
return _resp("w", props.width) ?? "";
|
|
4454
|
+
}
|
|
4555
4455
|
function dialog() {
|
|
4556
4456
|
return _comp("dialog", inset({
|
|
4557
4457
|
inset: 0
|
|
@@ -4673,7 +4573,6 @@ function box(props) {
|
|
|
4673
4573
|
inset(props),
|
|
4674
4574
|
margin(props),
|
|
4675
4575
|
maxWidth(props),
|
|
4676
|
-
minWidth(props),
|
|
4677
4576
|
props.outline && `outline-${props.outline}`,
|
|
4678
4577
|
overflow(props),
|
|
4679
4578
|
padding(props),
|
|
@@ -4694,7 +4593,7 @@ function buttonLoadingBox() {
|
|
|
4694
4593
|
return "button-loading-box";
|
|
4695
4594
|
}
|
|
4696
4595
|
function card(props) {
|
|
4697
|
-
return _comp(props.scheme, toneMap[props.tone ?? "
|
|
4596
|
+
return _comp(props.scheme, toneMap[props.tone ?? "inherit"], "card", props.checkered && "card-checkered", shadow(props));
|
|
4698
4597
|
}
|
|
4699
4598
|
function checkbox() {
|
|
4700
4599
|
return _comp("checkbox");
|
|
@@ -4722,9 +4621,6 @@ function label(props) {
|
|
|
4722
4621
|
function popover() {
|
|
4723
4622
|
return _comp("popover");
|
|
4724
4623
|
}
|
|
4725
|
-
function popoverCard() {
|
|
4726
|
-
return _comp("popover-card");
|
|
4727
|
-
}
|
|
4728
4624
|
function radio() {
|
|
4729
4625
|
return _comp("radio");
|
|
4730
4626
|
}
|
|
@@ -4740,9 +4636,6 @@ function spinner() {
|
|
|
4740
4636
|
function animatedSpinnerIcon() {
|
|
4741
4637
|
return _comp("animated-spinner-icon");
|
|
4742
4638
|
}
|
|
4743
|
-
function stack() {
|
|
4744
|
-
return _comp("stack");
|
|
4745
|
-
}
|
|
4746
4639
|
function _switch() {
|
|
4747
4640
|
return _comp("switch");
|
|
4748
4641
|
}
|
|
@@ -4776,6 +4669,7 @@ function tooltipCard() {
|
|
|
4776
4669
|
function srOnly() {
|
|
4777
4670
|
return composeClassNames("sr-only");
|
|
4778
4671
|
}
|
|
4672
|
+
exports.v3_v2 = v3_v2.v3_v2;
|
|
4779
4673
|
exports._arrow = _arrow;
|
|
4780
4674
|
exports._arrowShape = _arrowShape;
|
|
4781
4675
|
exports._arrowStroke = _arrowStroke;
|
|
@@ -4839,12 +4733,10 @@ exports.margin = margin;
|
|
|
4839
4733
|
exports.maxWidth = maxWidth;
|
|
4840
4734
|
exports.menu = menu;
|
|
4841
4735
|
exports.menuDivider = menuDivider;
|
|
4842
|
-
exports.minWidth = minWidth;
|
|
4843
4736
|
exports.overflow = overflow;
|
|
4844
4737
|
exports.padding = padding;
|
|
4845
4738
|
exports.pointerEvents = pointerEvents;
|
|
4846
4739
|
exports.popover = popover;
|
|
4847
|
-
exports.popoverCard = popoverCard;
|
|
4848
4740
|
exports.position = position;
|
|
4849
4741
|
exports.px = px;
|
|
4850
4742
|
exports.radio = radio;
|
|
@@ -4857,7 +4749,6 @@ exports.shadow = shadow;
|
|
|
4857
4749
|
exports.skeleton = skeleton;
|
|
4858
4750
|
exports.spinner = spinner;
|
|
4859
4751
|
exports.srOnly = srOnly;
|
|
4860
|
-
exports.stack = stack;
|
|
4861
4752
|
exports.text = text;
|
|
4862
4753
|
exports.textArea = textArea;
|
|
4863
4754
|
exports.textInput = textInput;
|