@okshaun/components 2.0.2 → 4.0.0
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/icon-metadata.json +385 -41
- package/dist/index.js +13414 -5259
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +1245 -263
- package/dist/{preset-DAmO4B54.js → preset-BOFHjPdQ.js} +2265 -1727
- package/dist/preset-BOFHjPdQ.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/specs/conditions.json +75 -51
- package/dist/specs/keyframes.json +33 -0
- package/dist/specs/recipes.json +359 -103
- package/dist/specs/semantic-tokens.json +152 -44
- package/dist/specs/tokens.json +21 -36
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +499 -43
- package/dist/styles.css +18229 -7568
- package/dist/svgs/barcode-off.svg +1 -0
- package/dist/svgs/cheese.svg +1 -0
- package/dist/svgs/collapse-vertical.svg +1 -0
- package/dist/svgs/expand-vertical.svg +1 -0
- package/dist/svgs/magnet.svg +1 -0
- package/dist/svgs/spinner.svg +1 -0
- package/dist/svgs/to-date-backward.svg +1 -0
- package/dist/svgs/to-date-forward.svg +1 -0
- package/dist/types/index.d.ts +2804 -296
- package/package.json +4 -2
- package/src/recipes/autocomplete.ts +266 -0
- package/src/recipes/avatar.ts +1 -1
- package/src/recipes/badge.ts +31 -43
- package/src/recipes/breakpointIndicator.ts +11 -0
- package/src/recipes/button.ts +172 -223
- package/src/recipes/calendar.ts +91 -0
- package/src/recipes/card.ts +4 -70
- package/src/recipes/chip.ts +213 -142
- package/src/recipes/dateMenus.ts +40 -0
- package/src/recipes/dateTimeMenus.ts +43 -0
- package/src/recipes/icon.ts +25 -6
- package/src/recipes/kbd.ts +56 -0
- package/src/recipes/list.ts +17 -1
- package/src/recipes/listDensity.ts +66 -0
- package/src/recipes/listItem.ts +29 -161
- package/src/recipes/listItemGroup.ts +17 -39
- package/src/recipes/menu.ts +17 -3
- package/src/recipes/modal.ts +70 -39
- package/src/recipes/radio.ts +6 -6
- package/src/recipes/recipes-regular.ts +2 -0
- package/src/recipes/recipes-slot.ts +8 -2
- package/src/recipes/segmentedFields.ts +192 -0
- package/src/recipes/segmentedInputs.ts +109 -0
- package/src/recipes/select.ts +8 -1
- package/src/recipes/skeleton.ts +72 -0
- package/src/recipes/spinner.ts +27 -24
- package/src/recipes/tag.ts +218 -210
- package/src/recipes/text.ts +37 -19
- package/src/recipes/textInput.ts +106 -117
- package/src/recipes/themeSwitcher.ts +3 -3
- package/src/recipes/timeMenus.ts +110 -0
- package/src/recipes/toggle.ts +3 -1
- package/src/styles/primitives/animations.ts +3 -0
- package/src/styles/primitives/shadows.ts +26 -60
- package/src/styles/primitives/zIndex.ts +1 -0
- package/src/styles/semantics/colors.ts +43 -0
- package/src/styles/semantics/shadows.ts +4 -30
- package/src/styles/semantics/zIndex.ts +2 -0
- package/src/styles/utilities/conditions.ts +61 -51
- package/src/styles/utilities/dropShadows.ts +51 -0
- package/src/styles/utilities/filters.ts +22 -7
- package/src/styles/utilities/globalStyle.ts +5 -2
- package/src/styles/utilities/index.ts +3 -0
- package/src/styles/utilities/keyframes.ts +31 -4
- package/src/styles/utilities/recipeGlobalStyles.ts +22 -0
- package/src/styles/utilities/shadowDefinitions.ts +112 -0
- package/src/utils/dsChain.ts +113 -0
- package/src/utils/dsComponent.ts +44 -0
- package/src/utils/dsPart.ts +41 -0
- package/src/utils/mergeAriaDescribedBy.ts +7 -0
- package/dist/preset-DAmO4B54.js.map +0 -1
- package/src/recipes/datePicker.ts +0 -212
- package/src/recipes/timePicker.ts +0 -199
|
@@ -18,22 +18,23 @@ const conditions$1 = {
|
|
|
18
18
|
focus: "&:is(:focus, [data-focus=true])",
|
|
19
19
|
focusWithin: "&:focus-within",
|
|
20
20
|
focusVisible: "&:is(:focus-visible, [data-focus-visible=true])",
|
|
21
|
-
disabled: "&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",
|
|
21
|
+
disabled: "&:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true])",
|
|
22
22
|
deleted: "&:is(:deleted, [deleted], [data-deleted=true])",
|
|
23
23
|
active: "&:is(:active, [data-active=true])",
|
|
24
24
|
visited: "&:visited",
|
|
25
25
|
target: "&:target",
|
|
26
|
-
readOnly: "&:is(:read-only, [data-read-only], [aria-readonly=true])",
|
|
26
|
+
readOnly: "&:is(:read-only, [readonly], [data-read-only=true], [aria-readonly=true])",
|
|
27
27
|
readWrite: "&:read-write",
|
|
28
|
-
empty: "&:is(:empty, [data-empty])",
|
|
29
|
-
checked: '&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])',
|
|
28
|
+
empty: "&:is(:empty, [data-empty=true])",
|
|
29
|
+
checked: '&:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"])',
|
|
30
30
|
enabled: "&:enabled",
|
|
31
|
-
expanded: '&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])',
|
|
32
|
-
collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
|
|
33
|
-
highlighted: "&[data-highlighted]",
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
expanded: '&:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"])',
|
|
32
|
+
collapsed: '&:is([aria-collapsed=true], [data-collapsed=true], [data-state="collapsed"])',
|
|
33
|
+
highlighted: "&[data-highlighted=true]",
|
|
34
|
+
new: "&[data-new=true]",
|
|
35
|
+
complete: "&[data-complete=true]",
|
|
36
|
+
incomplete: "&[data-incomplete=true]",
|
|
37
|
+
dragging: "&[data-dragging=true]",
|
|
37
38
|
utility: "&[data-utility=true]",
|
|
38
39
|
before: "&::before",
|
|
39
40
|
after: "&::after",
|
|
@@ -51,65 +52,66 @@ const conditions$1 = {
|
|
|
51
52
|
firstOfType: "&:first-of-type",
|
|
52
53
|
lastOfType: "&:last-of-type",
|
|
53
54
|
onlyOfType: "&:only-of-type",
|
|
54
|
-
peerFocus: ".peer:is(:focus, [data-focus]) ~ &",
|
|
55
|
-
peerHover: ".peer:is(:hover, [data-hover]) ~ &",
|
|
56
|
-
peerActive: ".peer:is(:active, [data-active]) ~ &",
|
|
55
|
+
peerFocus: ".peer:is(:focus, [data-focus=true]) ~ &",
|
|
56
|
+
peerHover: ".peer:is(:hover, [data-hover=true]) ~ &",
|
|
57
|
+
peerActive: ".peer:is(:active, [data-active=true]) ~ &",
|
|
57
58
|
peerFocusWithin: ".peer:focus-within ~ &",
|
|
58
59
|
peerFocusVisible: ".peer:is(:focus-visible, [data-focus-visible]) ~ &",
|
|
59
|
-
peerDisabled: ".peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &",
|
|
60
|
-
peerChecked: '.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &',
|
|
61
|
-
peerInvalid: ".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",
|
|
62
|
-
peerExpanded: '.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &',
|
|
60
|
+
peerDisabled: ".peer:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) ~ &",
|
|
61
|
+
peerChecked: '.peer:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) ~ &',
|
|
62
|
+
peerInvalid: ".peer:is(:invalid, [data-invalid=true], [aria-invalid=true]) ~ &",
|
|
63
|
+
peerExpanded: '.peer:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) ~ &',
|
|
63
64
|
peerPlaceholderShown: ".peer:placeholder-shown ~ &",
|
|
64
|
-
groupFocus: ".group:is(:focus, [data-focus]) &",
|
|
65
|
-
groupHover: ".group:is(:hover, [data-hover]) &",
|
|
66
|
-
groupActive: ".group:is(:active, [data-active]) &",
|
|
65
|
+
groupFocus: ".group:is(:focus, [data-focus=true]) &",
|
|
66
|
+
groupHover: ".group:is(:hover, [data-hover=true]) &",
|
|
67
|
+
groupActive: ".group:is(:active, [data-active=true]) &",
|
|
67
68
|
groupFocusWithin: ".group:focus-within &",
|
|
68
|
-
groupFocusVisible: ".group:is(:focus-visible, [data-focus-visible]) &",
|
|
69
|
-
groupDisabled: ".group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &",
|
|
70
|
-
groupChecked: '.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &',
|
|
71
|
-
groupExpanded: '.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &',
|
|
72
|
-
groupInvalid: ".group:is(:invalid, [data-invalid], [aria-invalid=true]) &",
|
|
73
|
-
indeterminate: '&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])',
|
|
74
|
-
required: "&:is(:required, [data-required], [aria-required=true])",
|
|
75
|
-
valid: "&:is(:valid, [data-valid])",
|
|
69
|
+
groupFocusVisible: ".group:is(:focus-visible, [data-focus-visible=true]) &",
|
|
70
|
+
groupDisabled: ".group:is(:disabled, [disabled], [data-disabled=true], [aria-disabled=true]) &",
|
|
71
|
+
groupChecked: '.group:is(:checked, [data-checked=true], [aria-checked=true], [data-state="checked"]) &',
|
|
72
|
+
groupExpanded: '.group:is([aria-expanded=true], [data-expanded=true], [data-state="expanded"]) &',
|
|
73
|
+
groupInvalid: ".group:is(:invalid, [data-invalid=true], [aria-invalid=true]) &",
|
|
74
|
+
indeterminate: '&:is(:indeterminate, [data-indeterminate=true], [aria-checked=mixed], [data-state="indeterminate"])',
|
|
75
|
+
required: "&:is(:required, [data-required=true], [aria-required=true])",
|
|
76
|
+
valid: "&:is(:valid, [data-valid=true])",
|
|
76
77
|
invalid: "&:is(:invalid, [data-invalid=true], [aria-invalid=true])",
|
|
77
78
|
error: "&:is([data-error=true])",
|
|
79
|
+
success: "&:is([data-success=true])",
|
|
78
80
|
autofill: "&:autofill",
|
|
79
|
-
inRange: "&:is(:in-range, [data-in-range])",
|
|
80
|
-
outOfRange: "&:is(:out-of-range, [data-outside-range])",
|
|
81
|
-
placeholder: "&::placeholder, &[data-placeholder]",
|
|
82
|
-
placeholderShown: "&:is(:placeholder-shown, [data-placeholder-shown])",
|
|
83
|
-
pressed: "&:is([aria-pressed=true], [data-pressed])",
|
|
81
|
+
inRange: "&:is(:in-range, [data-in-range=true])",
|
|
82
|
+
outOfRange: "&:is(:out-of-range, [data-outside-range=true])",
|
|
83
|
+
placeholder: "&::placeholder, &[data-placeholder=true]",
|
|
84
|
+
placeholderShown: "&:is(:placeholder-shown, [data-placeholder-shown=true])",
|
|
85
|
+
pressed: "&:is([aria-pressed=true], [data-pressed=true])",
|
|
84
86
|
selected: "&:is([aria-selected=true], [data-selected=true])",
|
|
85
|
-
grabbed: "&:is([aria-grabbed=true], [data-grabbed])",
|
|
86
|
-
underValue:
|
|
87
|
-
overValue:
|
|
88
|
-
atValue:
|
|
87
|
+
grabbed: "&:is([aria-grabbed=true], [data-grabbed=true])",
|
|
88
|
+
underValue: '&[data-state="under-value"]',
|
|
89
|
+
overValue: '&[data-state="over-value"]',
|
|
90
|
+
atValue: '&[data-state="at-value"]',
|
|
89
91
|
default: "&:default",
|
|
90
92
|
optional: "&:optional",
|
|
91
|
-
open: '&:is([open], [data-open], [data-state="open"], :popover-open)',
|
|
92
|
-
closed: '&:is([closed], [data-closed], [data-state="closed"])',
|
|
93
|
-
fullscreen: "&:is(:fullscreen, [data-fullscreen])",
|
|
94
|
-
loading: "&:is([data-loading], [aria-busy=true])",
|
|
95
|
-
hidden: "&:is([hidden], [data-hidden])",
|
|
96
|
-
current: "&:is([aria-current=true], [data-current])",
|
|
93
|
+
open: '&:is([open], [data-open=true], [data-state="open"], :popover-open)',
|
|
94
|
+
closed: '&:is([closed], [data-closed=true], [data-state="closed"])',
|
|
95
|
+
fullscreen: "&:is(:fullscreen, [data-fullscreen=true])",
|
|
96
|
+
loading: "&:is([data-loading=true], [aria-busy=true])",
|
|
97
|
+
hidden: "&:is([hidden], [data-hidden=true])",
|
|
98
|
+
current: "&:is([aria-current=true], [data-current=true])",
|
|
97
99
|
currentPage: "&[aria-current=page]",
|
|
98
100
|
currentStep: "&[aria-current=step]",
|
|
99
|
-
today: "&:is([data-today])",
|
|
100
|
-
unavailable: "&[data-unavailable]",
|
|
101
|
-
rangeStart: "&[data-range-start]",
|
|
102
|
-
rangeEnd: "&[data-range-end]",
|
|
103
|
-
now: "&[data-now]",
|
|
104
|
-
topmost: "&[data-topmost]",
|
|
101
|
+
today: "&:is([data-today=true])",
|
|
102
|
+
unavailable: "&[data-unavailable=true]",
|
|
103
|
+
rangeStart: "&[data-range-start=true]",
|
|
104
|
+
rangeEnd: "&[data-range-end=true]",
|
|
105
|
+
now: "&[data-now=true]",
|
|
106
|
+
topmost: "&[data-topmost=true]",
|
|
105
107
|
motionReduce: "@media (prefers-reduced-motion: reduce)",
|
|
106
108
|
motionSafe: "@media (prefers-reduced-motion: no-preference)",
|
|
107
109
|
paused: "&:is([data-paused=true])",
|
|
108
110
|
print: "@media print",
|
|
109
111
|
landscape: "@media (orientation: landscape)",
|
|
110
112
|
portrait: "@media (orientation: portrait)",
|
|
111
|
-
dark:
|
|
112
|
-
light:
|
|
113
|
+
dark: '.dark &, &:is([data-color-mode="dark"] *), [data-color-mode="dark"] &',
|
|
114
|
+
light: '.light &, &:is([data-color-mode="light"] *), [data-color-mode="light"] &',
|
|
113
115
|
osDark: "@media (prefers-color-scheme: dark)",
|
|
114
116
|
osLight: "@media (prefers-color-scheme: light)",
|
|
115
117
|
highContrast: "@media (forced-colors: active)",
|
|
@@ -155,9 +157,85 @@ const containerSizes = {
|
|
|
155
157
|
"8xl": "90rem"
|
|
156
158
|
// 1440px
|
|
157
159
|
};
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
const filterAutoValue = "var(--blur, ) var(--brightness, ) var(--contrast, ) var(--grayscale, ) var(--hue-rotate, ) var(--invert, ) var(--saturate, ) var(--sepia, ) var(--drop-shadow, )";
|
|
161
|
+
const filterValues = {
|
|
162
|
+
auto: filterAutoValue,
|
|
163
|
+
invert: "invert(1)",
|
|
164
|
+
blur: "blur(8px)",
|
|
165
|
+
none: "none"
|
|
166
|
+
};
|
|
167
|
+
const filterProperty = defineUtility({
|
|
168
|
+
className: "filter",
|
|
169
|
+
group: "Effect",
|
|
170
|
+
values: filterValues
|
|
171
|
+
});
|
|
172
|
+
const elevationShadowDefinitions = {
|
|
173
|
+
zero: [
|
|
174
|
+
{ x: "0", y: "0", blur: "0", color: "transparent" },
|
|
175
|
+
{ x: "0", y: "0", blur: "0", color: "transparent" }
|
|
176
|
+
],
|
|
177
|
+
raised: [
|
|
178
|
+
{ x: "0", y: "1", blur: "1", color: "shadow.raised.1" },
|
|
179
|
+
{ x: "0", y: "0", blur: "1", color: "shadow.raised.2" }
|
|
180
|
+
],
|
|
181
|
+
elevated: [
|
|
182
|
+
{ x: "0", y: "0", blur: "0", color: "shadow.elevated.1" },
|
|
183
|
+
{ x: "0", y: "4", blur: "7", color: "shadow.elevated.2" },
|
|
184
|
+
{ x: "0", y: "0", blur: "1", color: "shadow.elevated.3" }
|
|
185
|
+
],
|
|
186
|
+
overlay: [
|
|
187
|
+
{ x: "0", y: "0", blur: "0", color: "shadow.overlay.1" },
|
|
188
|
+
{ x: "0", y: "8", blur: "12", color: "shadow.overlay.2" },
|
|
189
|
+
{ x: "0", y: "0", blur: "1", color: "shadow.overlay.3" }
|
|
190
|
+
],
|
|
191
|
+
overflow: [
|
|
192
|
+
{ x: "0", y: "0", blur: "8", color: "shadow.overflow.1" },
|
|
193
|
+
{ x: "0", y: "0", blur: "1", color: "shadow.overflow.2" }
|
|
194
|
+
]
|
|
195
|
+
};
|
|
196
|
+
const darkElevationShadowDefinitions = {
|
|
197
|
+
overflow: [
|
|
198
|
+
{ x: "0", y: "0", blur: "12", color: "shadow.overflow.1" },
|
|
199
|
+
{ x: "0", y: "0", blur: "1", color: "shadow.overflow.2" }
|
|
200
|
+
]
|
|
201
|
+
};
|
|
202
|
+
const boxShadowColor = (color, mode) => color === "transparent" ? "{colors.transparent}" : `{colors.${color}.${mode}}`;
|
|
203
|
+
const dropShadowColorToken = (color) => color === "transparent" ? "colors.transparent" : `colors.${color}`;
|
|
204
|
+
const formatBoxShadowLayer = (layer, mode) => [
|
|
205
|
+
`{sizes.${layer.x}}`,
|
|
206
|
+
`{sizes.${layer.y}}`,
|
|
207
|
+
`{sizes.${layer.blur}}`,
|
|
208
|
+
layer.spread ? `{sizes.${layer.spread}}` : void 0,
|
|
209
|
+
boxShadowColor(layer.color, mode)
|
|
210
|
+
].filter(Boolean).join(" ");
|
|
211
|
+
const getBoxShadowPrimitive = (name, mode) => elevationShadowDefinitions[name].map((layer) => formatBoxShadowLayer(layer, mode)).join(", ");
|
|
212
|
+
const getDarkBoxShadowPrimitive = (name) => darkElevationShadowDefinitions[name].map((layer) => formatBoxShadowLayer(layer, "dark")).join(", ");
|
|
213
|
+
const dropShadowValues = {
|
|
214
|
+
zero: "zero",
|
|
215
|
+
raised: "raised",
|
|
216
|
+
elevated: "elevated",
|
|
217
|
+
overlay: "overlay"
|
|
218
|
+
};
|
|
219
|
+
const resolveDropShadowValue = (value, token) => elevationShadowDefinitions[value].map((layer) => {
|
|
220
|
+
const x = token(`sizes.${layer.x}`);
|
|
221
|
+
const y = token(`sizes.${layer.y}`);
|
|
222
|
+
const blur = token(`sizes.${layer.blur}`);
|
|
223
|
+
const color = token(dropShadowColorToken(layer.color));
|
|
224
|
+
if (!x || !y || !blur || !color) {
|
|
225
|
+
throw new Error(`Unable to resolve dropShadow token for ${value}`);
|
|
226
|
+
}
|
|
227
|
+
return `drop-shadow(${x} ${y} ${blur} ${color})`;
|
|
228
|
+
}).join(" ");
|
|
229
|
+
const dropShadowProperty = defineUtility({
|
|
230
|
+
className: "drop-shadow",
|
|
231
|
+
group: "Effect",
|
|
232
|
+
values: dropShadowValues,
|
|
233
|
+
transform(value, ctx) {
|
|
234
|
+
return {
|
|
235
|
+
filter: filterAutoValue,
|
|
236
|
+
"--drop-shadow": resolveDropShadowValue(value, ctx.token)
|
|
237
|
+
};
|
|
238
|
+
}
|
|
161
239
|
});
|
|
162
240
|
const globalCss$1 = defineGlobalStyles({
|
|
163
241
|
"*, *::before, *::after": {
|
|
@@ -207,12 +285,15 @@ const globalCss$1 = defineGlobalStyles({
|
|
|
207
285
|
u: {
|
|
208
286
|
textDecoration: "underline"
|
|
209
287
|
},
|
|
210
|
-
|
|
288
|
+
// `kbd` is deliberately excluded: the Kbd recipe owns its own type scale, and
|
|
289
|
+
// this element-selector rule sits in the `base` layer where it was beating
|
|
290
|
+
// the recipe's font-size. Cetec has no equivalent global rule.
|
|
291
|
+
"code, samp, pre": {
|
|
211
292
|
fontFamily: "mono",
|
|
212
293
|
fontSize: "1em"
|
|
213
294
|
},
|
|
214
295
|
table: {
|
|
215
|
-
borderColor: "border.subtle"
|
|
296
|
+
borderColor: "token(colors.border.subtle)"
|
|
216
297
|
},
|
|
217
298
|
"button, input, optgroup, select, textarea": {
|
|
218
299
|
fontFamily: "body",
|
|
@@ -304,6 +385,10 @@ const keyframes = defineKeyframes({
|
|
|
304
385
|
"0%": { transform: "translateX(-100%)", opacity: "0" },
|
|
305
386
|
"100%": { transform: "translateX(0)", opacity: "1" }
|
|
306
387
|
},
|
|
388
|
+
skeletonWave: {
|
|
389
|
+
"0%": { transform: "translateX(-100%)" },
|
|
390
|
+
"100%": { transform: "translateX(100%)" }
|
|
391
|
+
},
|
|
307
392
|
// Modal animations
|
|
308
393
|
modalFadeIn: {
|
|
309
394
|
"0%": { opacity: "0" },
|
|
@@ -313,24 +398,47 @@ const keyframes = defineKeyframes({
|
|
|
313
398
|
"0%": { opacity: "1" },
|
|
314
399
|
"100%": { opacity: "0" }
|
|
315
400
|
},
|
|
401
|
+
// The dialog is centred by `place-content` on the position wrapper, so these
|
|
402
|
+
// carry no translate(-50%, -50%). The old absolutely-positioned modal needed
|
|
403
|
+
// one; keeping it shifted the panel up and left by half its size.
|
|
316
404
|
modalScaleIn: {
|
|
317
405
|
"0%": {
|
|
318
406
|
opacity: "0",
|
|
319
|
-
transform: "
|
|
407
|
+
transform: "scale(0.95) translateY(20px)"
|
|
320
408
|
},
|
|
321
409
|
"100%": {
|
|
322
410
|
opacity: "1",
|
|
323
|
-
transform: "
|
|
411
|
+
transform: "scale(1) translateY(0)"
|
|
324
412
|
}
|
|
325
413
|
},
|
|
326
414
|
modalScaleOut: {
|
|
327
415
|
"0%": {
|
|
328
416
|
opacity: "1",
|
|
329
|
-
transform: "
|
|
417
|
+
transform: "scale(1) translateY(0)"
|
|
418
|
+
},
|
|
419
|
+
"100%": {
|
|
420
|
+
opacity: "0",
|
|
421
|
+
transform: "scale(0.95) translateY(20px)"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
modalScaleInTop: {
|
|
425
|
+
"0%": {
|
|
426
|
+
opacity: "0",
|
|
427
|
+
transform: "scale(0.97) translateY(-40px)"
|
|
428
|
+
},
|
|
429
|
+
"100%": {
|
|
430
|
+
opacity: "1",
|
|
431
|
+
transform: "scale(1) translateY(0)"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
modalScaleOutTop: {
|
|
435
|
+
"0%": {
|
|
436
|
+
opacity: "1",
|
|
437
|
+
transform: "scale(1) translateY(0)"
|
|
330
438
|
},
|
|
331
439
|
"100%": {
|
|
332
440
|
opacity: "0",
|
|
333
|
-
transform: "
|
|
441
|
+
transform: "scale(0.97) translateY(-40px)"
|
|
334
442
|
}
|
|
335
443
|
}
|
|
336
444
|
});
|
|
@@ -350,6 +458,15 @@ const layerStyles = defineLayerStyles({
|
|
|
350
458
|
}
|
|
351
459
|
}
|
|
352
460
|
});
|
|
461
|
+
const globalBaseStyles = {
|
|
462
|
+
boxSizing: "border-box",
|
|
463
|
+
margin: 0,
|
|
464
|
+
padding: 0,
|
|
465
|
+
fontFamily: "sans",
|
|
466
|
+
fontWeight: "normal",
|
|
467
|
+
lineHeight: "default",
|
|
468
|
+
color: "text.subtlest"
|
|
469
|
+
};
|
|
353
470
|
const baseHeadingStyles = defineStyles({
|
|
354
471
|
value: {
|
|
355
472
|
fontFamily: "sans",
|
|
@@ -558,6 +675,9 @@ const animations = defineTokens.animations({
|
|
|
558
675
|
pulse: {
|
|
559
676
|
value: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"
|
|
560
677
|
},
|
|
678
|
+
skeletonWave: {
|
|
679
|
+
value: "skeletonWave 1.6s linear infinite"
|
|
680
|
+
},
|
|
561
681
|
bounce: {
|
|
562
682
|
value: "bounce 1s infinite"
|
|
563
683
|
}
|
|
@@ -1143,51 +1263,17 @@ const radii = defineTokens.radii({
|
|
|
1143
1263
|
"999": { value: "999px" }
|
|
1144
1264
|
});
|
|
1145
1265
|
const shadows$1 = defineTokens.shadows({
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
},
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
},
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
},
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
},
|
|
1158
|
-
raisedDarkUp: {
|
|
1159
|
-
value: "{sizes.0} [-1] {sizes.1} {colors.shadow.raised.1.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.raised.2.dark}"
|
|
1160
|
-
},
|
|
1161
|
-
elevatedLight: {
|
|
1162
|
-
value: "{sizes.0} {sizes.0} {sizes.0} {colors.shadow.elevated.1.light}, {sizes.0} {sizes.4} {sizes.7} {colors.shadow.elevated.2.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.elevated.3.light}"
|
|
1163
|
-
},
|
|
1164
|
-
elevatedLightUp: {
|
|
1165
|
-
value: "{sizes.0} {sizes.0} {sizes.0} {colors.shadow.elevated.1.light}, {sizes.0} [-4] {sizes.7} {colors.shadow.elevated.2.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.elevated.3.light}"
|
|
1166
|
-
},
|
|
1167
|
-
elevatedDark: {
|
|
1168
|
-
value: "{sizes.0} {sizes.0} {sizes.0} {colors.shadow.elevated.1.dark}, {sizes.0} {sizes.4} {sizes.7} {colors.shadow.elevated.2.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.elevated.3.dark}"
|
|
1169
|
-
},
|
|
1170
|
-
elevatedDarkUp: {
|
|
1171
|
-
value: "{sizes.0} {sizes.0} {sizes.0} {colors.shadow.elevated.1.dark}, {sizes.0} [-4] {sizes.7} {colors.shadow.elevated.2.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.elevated.3.dark}"
|
|
1172
|
-
},
|
|
1173
|
-
overlayLight: {
|
|
1174
|
-
value: "{sizes.0} {sizes.0} {sizes.0} {colors.shadow.overlay.1.light}, {sizes.0} {sizes.8} {sizes.12} {colors.shadow.overlay.2.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overlay.3.light}"
|
|
1175
|
-
},
|
|
1176
|
-
overlayLightUp: {
|
|
1177
|
-
value: "{sizes.0} {sizes.0} {sizes.0} {colors.shadow.overlay.1.light}, {sizes.0} [-8] {sizes.12} {colors.shadow.overlay.2.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overlay.3.light}"
|
|
1178
|
-
},
|
|
1179
|
-
overlayDark: {
|
|
1180
|
-
value: "{sizes.0} {sizes.0} {sizes.0} {colors.shadow.overlay.1.dark}, {sizes.0} {sizes.8} {sizes.12} {colors.shadow.overlay.2.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overlay.3.dark}"
|
|
1181
|
-
},
|
|
1182
|
-
overlayDarkUp: {
|
|
1183
|
-
value: "{sizes.0} {sizes.0} {sizes.0} {colors.shadow.overlay.1.dark}, {sizes.0} [-8] {sizes.12} {colors.shadow.overlay.2.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overlay.3.dark}"
|
|
1184
|
-
},
|
|
1185
|
-
overflowLight: {
|
|
1186
|
-
value: "{sizes.0} {sizes.0} {sizes.8} {colors.shadow.overflow.1.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overflow.2.light}"
|
|
1187
|
-
},
|
|
1188
|
-
overflowDark: {
|
|
1189
|
-
value: "{sizes.0} {sizes.0} {sizes.12} {colors.shadow.overflow.1.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overflow.2.dark}"
|
|
1190
|
-
}
|
|
1266
|
+
zeroLight: { value: getBoxShadowPrimitive("zero", "light") },
|
|
1267
|
+
zeroDark: { value: getBoxShadowPrimitive("zero", "dark") },
|
|
1268
|
+
raisedLight: { value: getBoxShadowPrimitive("raised", "light") },
|
|
1269
|
+
raisedDark: { value: getBoxShadowPrimitive("raised", "dark") },
|
|
1270
|
+
elevatedLight: { value: getBoxShadowPrimitive("elevated", "light") },
|
|
1271
|
+
elevatedDark: { value: getBoxShadowPrimitive("elevated", "dark") },
|
|
1272
|
+
overlayLight: { value: getBoxShadowPrimitive("overlay", "light") },
|
|
1273
|
+
overlayDark: { value: getBoxShadowPrimitive("overlay", "dark") },
|
|
1274
|
+
overflowLight: { value: getBoxShadowPrimitive("overflow", "light") },
|
|
1275
|
+
// Dark mode is the one place where the geometry differs, not just the colour.
|
|
1276
|
+
overflowDark: { value: getDarkBoxShadowPrimitive("overflow") }
|
|
1191
1277
|
});
|
|
1192
1278
|
const spacing$1 = defineTokens.spacing({
|
|
1193
1279
|
...numericSizes,
|
|
@@ -1205,6 +1291,7 @@ const zIndex$1 = defineTokens.zIndex({
|
|
|
1205
1291
|
"1000": { value: 1e3 },
|
|
1206
1292
|
"1100": { value: 1100 },
|
|
1207
1293
|
"1101": { value: 1101 },
|
|
1294
|
+
"1102": { value: 1102 },
|
|
1208
1295
|
"1200": { value: 1200 }
|
|
1209
1296
|
});
|
|
1210
1297
|
const tokens = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4573,9 +4660,19 @@ const boxRecipe = defineRecipe({
|
|
|
4573
4660
|
jsx: ["Box"],
|
|
4574
4661
|
base: {}
|
|
4575
4662
|
});
|
|
4663
|
+
const breakpointIndicatorRecipe = defineRecipe({
|
|
4664
|
+
className: "breakpointIndicator",
|
|
4665
|
+
jsx: ["BreakpointIndicator"],
|
|
4666
|
+
base: {
|
|
4667
|
+
display: "inline-flex",
|
|
4668
|
+
alignItems: "center",
|
|
4669
|
+
justifyContent: "center"
|
|
4670
|
+
}
|
|
4671
|
+
});
|
|
4576
4672
|
const interactiveHoverStyles = {
|
|
4577
4673
|
cursor: "pointer",
|
|
4578
4674
|
transition: "all",
|
|
4675
|
+
textDecoration: "none",
|
|
4579
4676
|
_hover: {
|
|
4580
4677
|
bg: "surface",
|
|
4581
4678
|
boxShadow: "elevated"
|
|
@@ -4586,10 +4683,6 @@ const interactiveHoverStyles = {
|
|
|
4586
4683
|
borderWidth: "1",
|
|
4587
4684
|
outlineColor: "border.focused",
|
|
4588
4685
|
borderColor: "border.focused"
|
|
4589
|
-
},
|
|
4590
|
-
_disabled: {
|
|
4591
|
-
opacity: "0.4",
|
|
4592
|
-
cursor: "not-allowed"
|
|
4593
4686
|
}
|
|
4594
4687
|
};
|
|
4595
4688
|
const cardRecipe = defineRecipe({
|
|
@@ -4645,79 +4738,16 @@ const cardRecipe = defineRecipe({
|
|
|
4645
4738
|
},
|
|
4646
4739
|
interactive: {
|
|
4647
4740
|
true: {
|
|
4648
|
-
cursor: "pointer"
|
|
4649
|
-
},
|
|
4650
|
-
false: {
|
|
4651
|
-
cursor: "default"
|
|
4652
|
-
}
|
|
4653
|
-
}
|
|
4654
|
-
},
|
|
4655
|
-
compoundVariants: [
|
|
4656
|
-
// Default + interactive
|
|
4657
|
-
{
|
|
4658
|
-
variant: "default",
|
|
4659
|
-
interactive: true,
|
|
4660
|
-
css: {
|
|
4661
|
-
...interactiveHoverStyles,
|
|
4662
|
-
_disabled: {
|
|
4663
|
-
_hover: {
|
|
4664
|
-
boxShadow: "raised"
|
|
4665
|
-
}
|
|
4666
|
-
}
|
|
4667
|
-
}
|
|
4668
|
-
},
|
|
4669
|
-
// Flat + interactive
|
|
4670
|
-
{
|
|
4671
|
-
variant: "flat",
|
|
4672
|
-
interactive: true,
|
|
4673
|
-
css: {
|
|
4674
|
-
...interactiveHoverStyles,
|
|
4675
|
-
_disabled: {
|
|
4676
|
-
_hover: {
|
|
4677
|
-
boxShadow: "none"
|
|
4678
|
-
}
|
|
4679
|
-
}
|
|
4680
|
-
}
|
|
4681
|
-
},
|
|
4682
|
-
// Sunken + interactive
|
|
4683
|
-
{
|
|
4684
|
-
variant: "sunken",
|
|
4685
|
-
interactive: true,
|
|
4686
|
-
css: {
|
|
4687
|
-
...interactiveHoverStyles,
|
|
4688
|
-
_disabled: {
|
|
4689
|
-
_hover: {
|
|
4690
|
-
boxShadow: "none"
|
|
4691
|
-
}
|
|
4692
|
-
}
|
|
4693
|
-
}
|
|
4694
|
-
},
|
|
4695
|
-
// Ghost + interactive
|
|
4696
|
-
{
|
|
4697
|
-
variant: "ghost",
|
|
4698
|
-
interactive: true,
|
|
4699
|
-
css: {
|
|
4700
4741
|
...interactiveHoverStyles,
|
|
4742
|
+
cursor: "pointer",
|
|
4701
4743
|
_disabled: {
|
|
4702
4744
|
_hover: {
|
|
4703
|
-
boxShadow: "
|
|
4704
|
-
}
|
|
4705
|
-
}
|
|
4706
|
-
}
|
|
4707
|
-
},
|
|
4708
|
-
// Overlay + interactive
|
|
4709
|
-
{
|
|
4710
|
-
variant: "overlay",
|
|
4711
|
-
interactive: true,
|
|
4712
|
-
css: {
|
|
4713
|
-
_disabled: {
|
|
4714
|
-
_hover: {
|
|
4715
|
-
boxShadow: "raised"
|
|
4745
|
+
boxShadow: "initial"
|
|
4716
4746
|
}
|
|
4717
4747
|
}
|
|
4718
4748
|
}
|
|
4719
4749
|
}
|
|
4720
|
-
|
|
4750
|
+
},
|
|
4721
4751
|
defaultVariants: {
|
|
4722
4752
|
variant: "default"
|
|
4723
4753
|
}
|
|
@@ -4833,27 +4863,104 @@ const highlightTextRecipe = defineRecipe({
|
|
|
4833
4863
|
},
|
|
4834
4864
|
variants: {}
|
|
4835
4865
|
});
|
|
4836
|
-
const
|
|
4837
|
-
w:
|
|
4838
|
-
|
|
4839
|
-
fill: "icon.decorative"
|
|
4840
|
-
};
|
|
4866
|
+
const sizeVariants = Object.fromEntries(
|
|
4867
|
+
Object.keys(numericSizes).map((key) => [key, { w: key }])
|
|
4868
|
+
);
|
|
4841
4869
|
const iconRecipe = defineRecipe({
|
|
4842
4870
|
className: "icon",
|
|
4843
4871
|
jsx: ["Icon"],
|
|
4844
|
-
base:
|
|
4872
|
+
base: {
|
|
4873
|
+
aspectRatio: "square",
|
|
4874
|
+
fill: "icon.decorative",
|
|
4875
|
+
flexShrink: 0,
|
|
4876
|
+
// Default size. Does not affect variant class names, so it is safe here.
|
|
4877
|
+
w: "24"
|
|
4878
|
+
},
|
|
4879
|
+
variants: {
|
|
4880
|
+
size: {
|
|
4881
|
+
...sizeVariants,
|
|
4882
|
+
sm: { w: "16" },
|
|
4883
|
+
md: { w: "20" },
|
|
4884
|
+
lg: { w: "24" },
|
|
4885
|
+
xl: { w: "28" }
|
|
4886
|
+
}
|
|
4887
|
+
},
|
|
4888
|
+
// No default size variant: a default here would be hard to override in
|
|
4889
|
+
// other recipes.
|
|
4890
|
+
defaultVariants: {}
|
|
4845
4891
|
});
|
|
4892
|
+
const listDensityVars = {
|
|
4893
|
+
compact: {
|
|
4894
|
+
"--list-item-slot-margin": "token(sizes.5)",
|
|
4895
|
+
"--list-item-padding-y": "token(sizes.3)",
|
|
4896
|
+
"--list-item-padding-x": "token(sizes.10)",
|
|
4897
|
+
"--list-item-icon-size": "token(sizes.24)",
|
|
4898
|
+
"--list-item-label-size": "token(sizes.16)",
|
|
4899
|
+
"--list-item-description-size": "token(sizes.12)",
|
|
4900
|
+
"--list-group-label-padding-x": "token(sizes.10)",
|
|
4901
|
+
"--list-group-label-padding-top": "token(sizes.8)",
|
|
4902
|
+
"--list-group-label-padding-bottom": "token(sizes.2)",
|
|
4903
|
+
"--list-group-label-size": "token(sizes.12)",
|
|
4904
|
+
"--list-group-divider-margin-y": "token(sizes.4)",
|
|
4905
|
+
"--list-group-divider-margin-x": "token(sizes.10)"
|
|
4906
|
+
},
|
|
4907
|
+
comfortable: {
|
|
4908
|
+
"--list-item-slot-margin": "token(sizes.7)",
|
|
4909
|
+
"--list-item-padding-y": "token(sizes.7)",
|
|
4910
|
+
"--list-item-padding-x": "token(sizes.12)",
|
|
4911
|
+
"--list-item-icon-size": "token(sizes.24)",
|
|
4912
|
+
"--list-item-label-size": "token(sizes.16)",
|
|
4913
|
+
"--list-item-description-size": "token(sizes.12)",
|
|
4914
|
+
"--list-group-label-padding-x": "token(sizes.12)",
|
|
4915
|
+
"--list-group-label-padding-top": "token(sizes.12)",
|
|
4916
|
+
"--list-group-label-padding-bottom": "token(sizes.4)",
|
|
4917
|
+
"--list-group-label-size": "token(sizes.14)",
|
|
4918
|
+
"--list-group-divider-margin-y": "token(sizes.6)",
|
|
4919
|
+
"--list-group-divider-margin-x": "token(sizes.12)"
|
|
4920
|
+
},
|
|
4921
|
+
spacious: {
|
|
4922
|
+
"--list-item-slot-margin": "token(sizes.9)",
|
|
4923
|
+
"--list-item-padding-y": "token(sizes.9)",
|
|
4924
|
+
"--list-item-padding-x": "token(sizes.16)",
|
|
4925
|
+
"--list-item-icon-size": "token(sizes.28)",
|
|
4926
|
+
"--list-item-label-size": "token(sizes.20)",
|
|
4927
|
+
"--list-item-description-size": "token(sizes.14)",
|
|
4928
|
+
"--list-group-label-padding-x": "token(sizes.16)",
|
|
4929
|
+
"--list-group-label-padding-top": "token(sizes.16)",
|
|
4930
|
+
"--list-group-label-padding-bottom": "token(sizes.6)",
|
|
4931
|
+
"--list-group-label-size": "token(sizes.16)",
|
|
4932
|
+
"--list-group-divider-margin-y": "token(sizes.8)",
|
|
4933
|
+
"--list-group-divider-margin-x": "token(sizes.16)"
|
|
4934
|
+
}
|
|
4935
|
+
};
|
|
4936
|
+
const listDensityWrapperVars = {
|
|
4937
|
+
compact: {
|
|
4938
|
+
wrapper: listDensityVars.compact
|
|
4939
|
+
},
|
|
4940
|
+
comfortable: {
|
|
4941
|
+
wrapper: listDensityVars.comfortable
|
|
4942
|
+
},
|
|
4943
|
+
spacious: {
|
|
4944
|
+
wrapper: listDensityVars.spacious
|
|
4945
|
+
}
|
|
4946
|
+
};
|
|
4846
4947
|
const listRecipe = defineRecipe({
|
|
4847
4948
|
className: "list",
|
|
4848
4949
|
jsx: ["List"],
|
|
4849
4950
|
base: {
|
|
4951
|
+
...globalBaseStyles,
|
|
4850
4952
|
display: "flex",
|
|
4851
4953
|
flexDirection: "column",
|
|
4852
4954
|
alignItems: "start",
|
|
4853
4955
|
justifyContent: "start",
|
|
4854
4956
|
gap: "0"
|
|
4855
4957
|
},
|
|
4856
|
-
variants: {
|
|
4958
|
+
variants: {
|
|
4959
|
+
density: listDensityVars
|
|
4960
|
+
},
|
|
4961
|
+
defaultVariants: {
|
|
4962
|
+
density: "compact"
|
|
4963
|
+
}
|
|
4857
4964
|
});
|
|
4858
4965
|
const radioInputBase = {
|
|
4859
4966
|
display: "flex",
|
|
@@ -4878,6 +4985,75 @@ const radioInputRecipe = defineRecipe({
|
|
|
4878
4985
|
base: radioInputBase,
|
|
4879
4986
|
variants: {}
|
|
4880
4987
|
});
|
|
4988
|
+
const skeletonBase = {
|
|
4989
|
+
position: "relative",
|
|
4990
|
+
display: "inline-flex",
|
|
4991
|
+
overflow: "hidden",
|
|
4992
|
+
verticalAlign: "middle",
|
|
4993
|
+
pointerEvents: "none",
|
|
4994
|
+
userSelect: "none",
|
|
4995
|
+
color: "transparent",
|
|
4996
|
+
bg: "bg.neutral",
|
|
4997
|
+
"&::after": {
|
|
4998
|
+
content: '""',
|
|
4999
|
+
position: "absolute",
|
|
5000
|
+
inset: "0",
|
|
5001
|
+
transform: "translateX(-100%)",
|
|
5002
|
+
bg: "bg.neutral.hovered",
|
|
5003
|
+
opacity: "0.45",
|
|
5004
|
+
pointerEvents: "none"
|
|
5005
|
+
},
|
|
5006
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
5007
|
+
animation: "none",
|
|
5008
|
+
"&::after": {
|
|
5009
|
+
animation: "none"
|
|
5010
|
+
}
|
|
5011
|
+
}
|
|
5012
|
+
};
|
|
5013
|
+
const skeletonRecipe = defineRecipe({
|
|
5014
|
+
className: "skeleton",
|
|
5015
|
+
jsx: ["Skeleton"],
|
|
5016
|
+
base: skeletonBase,
|
|
5017
|
+
variants: {
|
|
5018
|
+
variant: {
|
|
5019
|
+
text: {
|
|
5020
|
+
h: "4",
|
|
5021
|
+
w: "full",
|
|
5022
|
+
borderRadius: "full"
|
|
5023
|
+
},
|
|
5024
|
+
circular: {
|
|
5025
|
+
borderRadius: "full",
|
|
5026
|
+
aspectRatio: "square"
|
|
5027
|
+
},
|
|
5028
|
+
rounded: {
|
|
5029
|
+
borderRadius: "8"
|
|
5030
|
+
},
|
|
5031
|
+
rectangular: {
|
|
5032
|
+
borderRadius: "2"
|
|
5033
|
+
}
|
|
5034
|
+
},
|
|
5035
|
+
animation: {
|
|
5036
|
+
pulse: {
|
|
5037
|
+
animation: "pulse"
|
|
5038
|
+
},
|
|
5039
|
+
wave: {
|
|
5040
|
+
"&::after": {
|
|
5041
|
+
animation: "skeletonWave"
|
|
5042
|
+
}
|
|
5043
|
+
},
|
|
5044
|
+
false: {
|
|
5045
|
+
animation: "none",
|
|
5046
|
+
"&::after": {
|
|
5047
|
+
display: "none"
|
|
5048
|
+
}
|
|
5049
|
+
}
|
|
5050
|
+
}
|
|
5051
|
+
},
|
|
5052
|
+
defaultVariants: {
|
|
5053
|
+
variant: "text",
|
|
5054
|
+
animation: "pulse"
|
|
5055
|
+
}
|
|
5056
|
+
});
|
|
4881
5057
|
const tagRecipe = defineRecipe({
|
|
4882
5058
|
className: "tag",
|
|
4883
5059
|
jsx: ["Tag"],
|
|
@@ -4896,239 +5072,247 @@ const tagRecipe = defineRecipe({
|
|
|
4896
5072
|
whiteSpace: "nowrap"
|
|
4897
5073
|
},
|
|
4898
5074
|
variants: {
|
|
4899
|
-
variant
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
5075
|
+
// Each hue publishes both colour pairs; `variant` picks one. This replaces
|
|
5076
|
+
// 24 compoundVariants, which Panda emitted no CSS for at all: the variant
|
|
5077
|
+
// bodies were empty, so every Tag rendered as the uncoloured base. Doing it
|
|
5078
|
+
// through custom properties also makes `hue` and `variant` responsive.
|
|
4903
5079
|
hue: {
|
|
4904
|
-
gray: {
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
green: {},
|
|
4910
|
-
teal: {},
|
|
4911
|
-
blue: {},
|
|
4912
|
-
indigo: {},
|
|
4913
|
-
purple: {},
|
|
4914
|
-
magenta: {},
|
|
4915
|
-
tan: {}
|
|
4916
|
-
},
|
|
4917
|
-
iconBefore: {
|
|
4918
|
-
true: {
|
|
4919
|
-
gap: "1",
|
|
4920
|
-
pl: "1"
|
|
5080
|
+
gray: {
|
|
5081
|
+
"--tag-fg": "token(colors.text.subtle)",
|
|
5082
|
+
"--tag-bg": "token(colors.bg.neutral)",
|
|
5083
|
+
"--tag-fg-bold": "token(colors.text.inverse)",
|
|
5084
|
+
"--tag-bg-bold": "token(colors.bg.neutral.boldest)"
|
|
4921
5085
|
},
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
5086
|
+
red: {
|
|
5087
|
+
"--tag-fg": {
|
|
5088
|
+
base: "token(colors.red.70)",
|
|
5089
|
+
_dark: "token(colors.red.20)"
|
|
5090
|
+
},
|
|
5091
|
+
"--tag-bg": {
|
|
5092
|
+
base: "token(colors.red.20)",
|
|
5093
|
+
_dark: "token(colors.red.100)"
|
|
5094
|
+
},
|
|
5095
|
+
"--tag-fg-bold": {
|
|
5096
|
+
base: "token(colors.red.10)",
|
|
5097
|
+
_dark: "token(colors.red.100)"
|
|
5098
|
+
},
|
|
5099
|
+
"--tag-bg-bold": {
|
|
5100
|
+
base: "token(colors.red.60)",
|
|
5101
|
+
_dark: "token(colors.red.40)"
|
|
5102
|
+
}
|
|
4928
5103
|
},
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
bg:
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
bg: {
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
bg: {
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
bg: {
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
bg: {
|
|
5104
|
+
orange: {
|
|
5105
|
+
"--tag-fg": {
|
|
5106
|
+
base: "token(colors.orange.70)",
|
|
5107
|
+
_dark: "token(colors.orange.20)"
|
|
5108
|
+
},
|
|
5109
|
+
"--tag-bg": {
|
|
5110
|
+
base: "token(colors.orange.20)",
|
|
5111
|
+
_dark: "token(colors.orange.100)"
|
|
5112
|
+
},
|
|
5113
|
+
"--tag-fg-bold": {
|
|
5114
|
+
base: "token(colors.orange.10)",
|
|
5115
|
+
_dark: "token(colors.orange.100)"
|
|
5116
|
+
},
|
|
5117
|
+
"--tag-bg-bold": {
|
|
5118
|
+
base: "token(colors.orange.60)",
|
|
5119
|
+
_dark: "token(colors.orange.50)"
|
|
5120
|
+
}
|
|
5121
|
+
},
|
|
5122
|
+
yellow: {
|
|
5123
|
+
"--tag-fg": {
|
|
5124
|
+
base: "token(colors.yellow.80)",
|
|
5125
|
+
_dark: "token(colors.yellow.50)"
|
|
5126
|
+
},
|
|
5127
|
+
"--tag-bg": {
|
|
5128
|
+
base: "token(colors.yellow.20)",
|
|
5129
|
+
_dark: "token(colors.yellow.90)"
|
|
5130
|
+
},
|
|
5131
|
+
"--tag-fg-bold": {
|
|
5132
|
+
base: "token(colors.yellow.100)",
|
|
5133
|
+
_dark: "token(colors.yellow.100)"
|
|
5134
|
+
},
|
|
5135
|
+
"--tag-bg-bold": {
|
|
5136
|
+
base: "token(colors.yellow.40)",
|
|
5137
|
+
_dark: "token(colors.yellow.60)"
|
|
5138
|
+
}
|
|
5139
|
+
},
|
|
5140
|
+
lime: {
|
|
5141
|
+
"--tag-fg": {
|
|
5142
|
+
base: "token(colors.lime.70)",
|
|
5143
|
+
_dark: "token(colors.lime.20)"
|
|
5144
|
+
},
|
|
5145
|
+
"--tag-bg": {
|
|
5146
|
+
base: "token(colors.lime.20)",
|
|
5147
|
+
_dark: "token(colors.lime.90)"
|
|
5148
|
+
},
|
|
5149
|
+
"--tag-fg-bold": {
|
|
5150
|
+
base: "token(colors.lime.10)",
|
|
5151
|
+
_dark: "token(colors.lime.100)"
|
|
5152
|
+
},
|
|
5153
|
+
"--tag-bg-bold": {
|
|
5154
|
+
base: "token(colors.lime.60)",
|
|
5155
|
+
_dark: "token(colors.lime.40)"
|
|
5156
|
+
}
|
|
5157
|
+
},
|
|
5158
|
+
green: {
|
|
5159
|
+
"--tag-fg": {
|
|
5160
|
+
base: "token(colors.green.70)",
|
|
5161
|
+
_dark: "token(colors.green.20)"
|
|
5162
|
+
},
|
|
5163
|
+
"--tag-bg": {
|
|
5164
|
+
base: "token(colors.green.20)",
|
|
5165
|
+
_dark: "token(colors.green.90)"
|
|
5166
|
+
},
|
|
5167
|
+
"--tag-fg-bold": {
|
|
5168
|
+
base: "token(colors.gray.10)",
|
|
5169
|
+
_dark: "token(colors.green.100)"
|
|
5170
|
+
},
|
|
5171
|
+
"--tag-bg-bold": {
|
|
5172
|
+
base: "token(colors.green.70)",
|
|
5173
|
+
_dark: "token(colors.green.40)"
|
|
5174
|
+
}
|
|
5175
|
+
},
|
|
5176
|
+
teal: {
|
|
5177
|
+
"--tag-fg": {
|
|
5178
|
+
base: "token(colors.teal.80)",
|
|
5179
|
+
_dark: "token(colors.teal.20)"
|
|
5180
|
+
},
|
|
5181
|
+
"--tag-bg": {
|
|
5182
|
+
base: "token(colors.teal.20)",
|
|
5183
|
+
_dark: "token(colors.teal.90)"
|
|
5184
|
+
},
|
|
5185
|
+
"--tag-fg-bold": {
|
|
5186
|
+
base: "token(colors.teal.10)",
|
|
5187
|
+
_dark: "token(colors.teal.100)"
|
|
5188
|
+
},
|
|
5189
|
+
"--tag-bg-bold": {
|
|
5190
|
+
base: "token(colors.teal.60)",
|
|
5191
|
+
_dark: "token(colors.teal.50)"
|
|
5192
|
+
}
|
|
5193
|
+
},
|
|
5194
|
+
blue: {
|
|
5195
|
+
"--tag-fg": {
|
|
5196
|
+
base: "token(colors.blue.70)",
|
|
5197
|
+
_dark: "token(colors.blue.20)"
|
|
5198
|
+
},
|
|
5199
|
+
"--tag-bg": {
|
|
5200
|
+
base: "token(colors.blue.20)",
|
|
5201
|
+
_dark: "token(colors.blue.90)"
|
|
5202
|
+
},
|
|
5203
|
+
"--tag-fg-bold": {
|
|
5204
|
+
base: "token(colors.blue.10)",
|
|
5205
|
+
_dark: "token(colors.blue.10)"
|
|
5206
|
+
},
|
|
5207
|
+
"--tag-bg-bold": {
|
|
5208
|
+
base: "token(colors.blue.50)",
|
|
5209
|
+
_dark: "token(colors.blue.70)"
|
|
5210
|
+
}
|
|
5211
|
+
},
|
|
5212
|
+
indigo: {
|
|
5213
|
+
"--tag-fg": {
|
|
5214
|
+
base: "token(colors.indigo.70)",
|
|
5215
|
+
_dark: "token(colors.indigo.20)"
|
|
5216
|
+
},
|
|
5217
|
+
"--tag-bg": {
|
|
5218
|
+
base: "token(colors.indigo.20)",
|
|
5219
|
+
_dark: "token(colors.indigo.90)"
|
|
5220
|
+
},
|
|
5221
|
+
"--tag-fg-bold": {
|
|
5222
|
+
base: "token(colors.indigo.10)",
|
|
5223
|
+
_dark: "token(colors.indigo.10)"
|
|
5224
|
+
},
|
|
5225
|
+
"--tag-bg-bold": {
|
|
5226
|
+
base: "token(colors.indigo.60)",
|
|
5227
|
+
_dark: "token(colors.indigo.70)"
|
|
5228
|
+
}
|
|
5229
|
+
},
|
|
5230
|
+
purple: {
|
|
5231
|
+
"--tag-fg": {
|
|
5232
|
+
base: "token(colors.purple.70)",
|
|
5233
|
+
_dark: "token(colors.purple.20)"
|
|
5234
|
+
},
|
|
5235
|
+
"--tag-bg": {
|
|
5236
|
+
base: "token(colors.purple.20)",
|
|
5237
|
+
_dark: "token(colors.purple.90)"
|
|
5238
|
+
},
|
|
5239
|
+
"--tag-fg-bold": {
|
|
5240
|
+
base: "token(colors.purple.10)",
|
|
5241
|
+
_dark: "token(colors.purple.10)"
|
|
5242
|
+
},
|
|
5243
|
+
"--tag-bg-bold": {
|
|
5244
|
+
base: "token(colors.purple.60)",
|
|
5245
|
+
_dark: "token(colors.purple.80)"
|
|
5246
|
+
}
|
|
5247
|
+
},
|
|
5248
|
+
magenta: {
|
|
5249
|
+
"--tag-fg": {
|
|
5250
|
+
base: "token(colors.magenta.80)",
|
|
5251
|
+
_dark: "token(colors.magenta.20)"
|
|
5252
|
+
},
|
|
5253
|
+
"--tag-bg": {
|
|
5254
|
+
base: "token(colors.magenta.20)",
|
|
5255
|
+
_dark: "token(colors.magenta.90)"
|
|
5256
|
+
},
|
|
5257
|
+
"--tag-fg-bold": {
|
|
5258
|
+
base: "token(colors.magenta.10)",
|
|
5259
|
+
_dark: "token(colors.magenta.10)"
|
|
5260
|
+
},
|
|
5261
|
+
"--tag-bg-bold": {
|
|
5262
|
+
base: "token(colors.magenta.70)",
|
|
5263
|
+
_dark: "token(colors.magenta.70)"
|
|
5264
|
+
}
|
|
5265
|
+
},
|
|
5266
|
+
tan: {
|
|
5267
|
+
"--tag-fg": {
|
|
5268
|
+
base: "token(colors.tan.70)",
|
|
5269
|
+
_dark: "token(colors.tan.20)"
|
|
5270
|
+
},
|
|
5271
|
+
"--tag-bg": {
|
|
5272
|
+
base: "token(colors.tan.20)",
|
|
5273
|
+
_dark: "token(colors.tan.80)"
|
|
5274
|
+
},
|
|
5275
|
+
"--tag-fg-bold": {
|
|
5276
|
+
base: "token(colors.gray.10)",
|
|
5277
|
+
_dark: "token(colors.tan.90)"
|
|
5278
|
+
},
|
|
5279
|
+
"--tag-bg-bold": {
|
|
5280
|
+
base: "token(colors.tan.60)",
|
|
5281
|
+
_dark: "token(colors.tan.40)"
|
|
5282
|
+
}
|
|
5097
5283
|
}
|
|
5098
5284
|
},
|
|
5099
|
-
{
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5285
|
+
variant: {
|
|
5286
|
+
default: {
|
|
5287
|
+
color: "var(--tag-fg)",
|
|
5288
|
+
bg: "var(--tag-bg)"
|
|
5289
|
+
},
|
|
5290
|
+
bold: {
|
|
5291
|
+
color: "var(--tag-fg-bold)",
|
|
5292
|
+
bg: "var(--tag-bg-bold)"
|
|
5105
5293
|
}
|
|
5106
5294
|
},
|
|
5107
|
-
{
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
}
|
|
5295
|
+
iconBefore: {
|
|
5296
|
+
true: {
|
|
5297
|
+
gap: "1",
|
|
5298
|
+
pl: "1"
|
|
5299
|
+
},
|
|
5300
|
+
false: {}
|
|
5114
5301
|
},
|
|
5115
|
-
{
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
}
|
|
5302
|
+
iconAfter: {
|
|
5303
|
+
true: {
|
|
5304
|
+
gap: "1",
|
|
5305
|
+
pr: "1"
|
|
5306
|
+
},
|
|
5307
|
+
false: {}
|
|
5122
5308
|
},
|
|
5123
|
-
{
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
color: { base: "gray.10", _dark: "tan.90" },
|
|
5128
|
-
bg: { base: "tan.60", _dark: "tan.40" }
|
|
5309
|
+
hasIcon: {
|
|
5310
|
+
true: {},
|
|
5311
|
+
false: {
|
|
5312
|
+
px: "4"
|
|
5129
5313
|
}
|
|
5130
5314
|
}
|
|
5131
|
-
|
|
5315
|
+
},
|
|
5132
5316
|
defaultVariants: {
|
|
5133
5317
|
variant: "default",
|
|
5134
5318
|
hue: "gray"
|
|
@@ -5179,7 +5363,19 @@ const textVariants = {
|
|
|
5179
5363
|
},
|
|
5180
5364
|
underline: {
|
|
5181
5365
|
true: {
|
|
5182
|
-
textDecoration: "underline"
|
|
5366
|
+
textDecoration: "underline",
|
|
5367
|
+
textDecorationThickness: "[0.0625em]",
|
|
5368
|
+
textUnderlineOffset: "[0.15625em]",
|
|
5369
|
+
textDecorationSkipInk: "all"
|
|
5370
|
+
}
|
|
5371
|
+
},
|
|
5372
|
+
dashedUnderline: {
|
|
5373
|
+
true: {
|
|
5374
|
+
textDecoration: "underline",
|
|
5375
|
+
textDecorationStyle: "dashed",
|
|
5376
|
+
textDecorationThickness: "[0.0625em]",
|
|
5377
|
+
textUnderlineOffset: "[0.15625em]",
|
|
5378
|
+
textDecorationSkipInk: "all"
|
|
5183
5379
|
}
|
|
5184
5380
|
},
|
|
5185
5381
|
truncate: {
|
|
@@ -5227,39 +5423,45 @@ const linkBase = {
|
|
|
5227
5423
|
fontWeight: "medium",
|
|
5228
5424
|
gap: "1",
|
|
5229
5425
|
color: "link",
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5426
|
+
// A real text-decoration replaces the former linear-gradient background,
|
|
5427
|
+
// so the underline follows descenders and respects skip-ink.
|
|
5428
|
+
textDecoration: "underline",
|
|
5429
|
+
textDecorationThickness: "[0.0625em]",
|
|
5430
|
+
textUnderlineOffset: "[0.15625em]",
|
|
5431
|
+
textDecorationSkipInk: "all",
|
|
5432
|
+
textDecorationColor: "[color-mix(in srgb, currentColor 30%, transparent)]",
|
|
5235
5433
|
outlineWidth: "2",
|
|
5236
5434
|
outlineStyle: "solid",
|
|
5237
5435
|
outlineColor: "transparent",
|
|
5238
5436
|
outlineOffset: "1",
|
|
5239
5437
|
width: "fit-content",
|
|
5240
5438
|
cursor: "pointer",
|
|
5439
|
+
transitionProperty: "all",
|
|
5440
|
+
transitionDuration: "fast",
|
|
5441
|
+
transitionTimingFunction: "default",
|
|
5241
5442
|
_hover: {
|
|
5242
|
-
color: "link",
|
|
5243
|
-
|
|
5443
|
+
color: "link.pressed",
|
|
5444
|
+
textDecorationColor: "current",
|
|
5445
|
+
textDecorationThickness: "[0.125em]"
|
|
5244
5446
|
},
|
|
5245
5447
|
_focusVisible: {
|
|
5246
5448
|
borderRadius: "{sizes.4}",
|
|
5247
5449
|
outlineColor: "border.focused"
|
|
5248
5450
|
},
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5451
|
+
// Link never passed a `_disabled` variant to the recipe, so the disabled
|
|
5452
|
+
// styles below never rendered. As a base condition they match the real
|
|
5453
|
+
// disabled state, including the aria-disabled Link already sets.
|
|
5454
|
+
//
|
|
5455
|
+
// Deliberately no colour change. globalStyle already fades anything disabled
|
|
5456
|
+
// to 0.4 opacity, and text.disabled is itself a 29% alpha: together they
|
|
5457
|
+
// render the label at roughly 1.2:1 against the page, which is invisible.
|
|
5458
|
+
// The opacity alone carries the state, as it does in the Cetec DS.
|
|
5255
5459
|
_disabled: {
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
color: "text.disabled",
|
|
5259
|
-
pointerEvents: "none"
|
|
5260
|
-
}
|
|
5460
|
+
cursor: "not-allowed",
|
|
5461
|
+
pointerEvents: "none"
|
|
5261
5462
|
}
|
|
5262
5463
|
};
|
|
5464
|
+
const linkVariants = { ...textVariants };
|
|
5263
5465
|
const labelBase = {
|
|
5264
5466
|
fontSize: "{sizes.16}",
|
|
5265
5467
|
fontWeight: "normal",
|
|
@@ -5421,18 +5623,18 @@ const themeSwitcherRecipe = defineRecipe({
|
|
|
5421
5623
|
opacity: "revert-layer",
|
|
5422
5624
|
display: "block",
|
|
5423
5625
|
borderRadius: "100",
|
|
5424
|
-
bg: "bg.neutral.inverse
|
|
5626
|
+
bg: "bg.neutral.inverse",
|
|
5425
5627
|
transition: "all",
|
|
5426
5628
|
transitionTimingFunction: "default",
|
|
5427
5629
|
transitionDuration: "normal"
|
|
5428
5630
|
},
|
|
5429
5631
|
_hover: {
|
|
5430
5632
|
cursor: "pointer",
|
|
5431
|
-
bg: "bg.neutral.inverse
|
|
5633
|
+
bg: "bg.neutral.inverse",
|
|
5432
5634
|
borderColor: "bg.neutral.bold",
|
|
5433
5635
|
"&:before": {
|
|
5434
5636
|
inset: "-8",
|
|
5435
|
-
bg: "bg.neutral.inverse
|
|
5637
|
+
bg: "bg.neutral.inverse",
|
|
5436
5638
|
opacity: "[0.25]"
|
|
5437
5639
|
}
|
|
5438
5640
|
}
|
|
@@ -5465,6 +5667,7 @@ const toggleInputRecipe = defineRecipe({
|
|
|
5465
5667
|
const regularRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5466
5668
|
__proto__: null,
|
|
5467
5669
|
boxRecipe,
|
|
5670
|
+
breakpointIndicatorRecipe,
|
|
5468
5671
|
cardRecipe,
|
|
5469
5672
|
checkboxInputRecipe,
|
|
5470
5673
|
codeRecipe,
|
|
@@ -5477,79 +5680,339 @@ const regularRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
5477
5680
|
listRecipe,
|
|
5478
5681
|
preRecipe,
|
|
5479
5682
|
radioInputRecipe,
|
|
5683
|
+
skeletonRecipe,
|
|
5480
5684
|
tagRecipe,
|
|
5481
5685
|
textRecipe,
|
|
5482
5686
|
textareaRecipe,
|
|
5483
5687
|
themeSwitcherRecipe,
|
|
5484
5688
|
toggleInputRecipe
|
|
5485
5689
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5486
|
-
const
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5690
|
+
const validationStyles = {
|
|
5691
|
+
danger: {
|
|
5692
|
+
borderColor: "border.danger",
|
|
5693
|
+
outlineColor: "border.danger"
|
|
5694
|
+
},
|
|
5695
|
+
success: {
|
|
5696
|
+
borderColor: "border.success",
|
|
5697
|
+
outlineColor: "border.success"
|
|
5698
|
+
}
|
|
5699
|
+
};
|
|
5700
|
+
const autocompleteBase = {
|
|
5701
|
+
root: {
|
|
5702
|
+
...globalBaseStyles,
|
|
5703
|
+
"--control-py": "token(sizes.3)",
|
|
5704
|
+
"--control-px": "token(sizes.10)",
|
|
5705
|
+
"--control-fs": "token(sizes.16)",
|
|
5706
|
+
"--control-min-height": "token(sizes.32)",
|
|
5707
|
+
"--value-gap": "token(sizes.4)",
|
|
5708
|
+
"--input-min-width": "token(sizes.80)",
|
|
5709
|
+
"--loading-size": "token(sizes.20)",
|
|
5710
|
+
position: "relative",
|
|
5711
|
+
display: "inline-flex",
|
|
5712
|
+
flexDirection: "column",
|
|
5713
|
+
width: "full",
|
|
5714
|
+
minWidth: "0",
|
|
5715
|
+
maxWidth: "full",
|
|
5716
|
+
fontFamily: "sans",
|
|
5717
|
+
lineHeight: "default",
|
|
5718
|
+
_disabled: {
|
|
5719
|
+
opacity: 0.4,
|
|
5720
|
+
cursor: "not-allowed"
|
|
5508
5721
|
},
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5722
|
+
_groupDisabled: {
|
|
5723
|
+
opacity: 1
|
|
5724
|
+
}
|
|
5725
|
+
},
|
|
5726
|
+
control: {
|
|
5727
|
+
position: "relative",
|
|
5728
|
+
display: "flex",
|
|
5729
|
+
alignItems: "center",
|
|
5730
|
+
width: "full",
|
|
5731
|
+
minWidth: "0",
|
|
5732
|
+
minHeight: "var(--control-min-height)",
|
|
5733
|
+
py: "var(--control-py)",
|
|
5734
|
+
ps: "var(--control-px)",
|
|
5735
|
+
pe: "var(--control-px)",
|
|
5736
|
+
bg: "surface",
|
|
5737
|
+
color: "text",
|
|
5738
|
+
borderWidth: "1",
|
|
5739
|
+
borderStyle: "solid",
|
|
5740
|
+
borderColor: "border.input",
|
|
5741
|
+
borderRadius: "4",
|
|
5742
|
+
outlineWidth: "1",
|
|
5743
|
+
outlineStyle: "solid",
|
|
5744
|
+
outlineColor: "transparent",
|
|
5745
|
+
cursor: "text",
|
|
5746
|
+
transitionDuration: "fast",
|
|
5747
|
+
transitionProperty: "background, border-color, outline-color",
|
|
5748
|
+
transitionTimingFunction: "default",
|
|
5749
|
+
_focusWithin: {
|
|
5750
|
+
borderColor: "border.focused",
|
|
5751
|
+
outlineColor: "border.focused"
|
|
5514
5752
|
},
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
justifyContent: "center",
|
|
5519
|
-
w: "full",
|
|
5520
|
-
h: "full",
|
|
5521
|
-
fontFamily: "sans",
|
|
5522
|
-
fontWeight: "medium",
|
|
5523
|
-
textTransform: "uppercase",
|
|
5524
|
-
color: "text.subtle"
|
|
5753
|
+
_open: {
|
|
5754
|
+
borderColor: "border.focused",
|
|
5755
|
+
outlineColor: "border.focused"
|
|
5525
5756
|
},
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5757
|
+
_error: validationStyles.danger,
|
|
5758
|
+
_invalid: validationStyles.danger,
|
|
5759
|
+
_valid: validationStyles.success,
|
|
5760
|
+
_disabled: {
|
|
5761
|
+
bg: "bg.disabled",
|
|
5762
|
+
borderColor: "border.disabled",
|
|
5763
|
+
color: "text.disabled",
|
|
5764
|
+
cursor: "not-allowed",
|
|
5765
|
+
pointerEvents: "none",
|
|
5766
|
+
_focusWithin: {
|
|
5767
|
+
borderColor: "border.disabled",
|
|
5768
|
+
outlineColor: "transparent"
|
|
5769
|
+
}
|
|
5770
|
+
}
|
|
5771
|
+
},
|
|
5772
|
+
valueContainer: {
|
|
5773
|
+
display: "flex",
|
|
5774
|
+
alignItems: "center",
|
|
5775
|
+
alignContent: "center",
|
|
5776
|
+
flex: "1",
|
|
5777
|
+
flexWrap: "wrap",
|
|
5778
|
+
minWidth: "0",
|
|
5779
|
+
gap: "var(--value-gap)"
|
|
5780
|
+
},
|
|
5781
|
+
input: {
|
|
5782
|
+
flexGrow: "1",
|
|
5783
|
+
flexShrink: "0",
|
|
5784
|
+
flexBasis: "var(--input-min-width)",
|
|
5785
|
+
minWidth: "var(--input-min-width)",
|
|
5786
|
+
maxWidth: "full",
|
|
5787
|
+
p: "0",
|
|
5788
|
+
marginBlock: "-3",
|
|
5789
|
+
bg: "transparent",
|
|
5790
|
+
color: "text",
|
|
5791
|
+
fontFamily: "sans",
|
|
5792
|
+
fontSize: "var(--control-fs)",
|
|
5793
|
+
lineHeight: "default",
|
|
5794
|
+
border: "none",
|
|
5795
|
+
outline: "none",
|
|
5796
|
+
_placeholder: {
|
|
5797
|
+
color: "text.placeholder"
|
|
5535
5798
|
},
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
right: "0",
|
|
5540
|
-
display: "flex",
|
|
5541
|
-
alignItems: "center",
|
|
5542
|
-
justifyContent: "center",
|
|
5543
|
-
borderRadius: "999",
|
|
5544
|
-
borderWidth: "2",
|
|
5545
|
-
borderStyle: "solid",
|
|
5546
|
-
borderColor: "bg",
|
|
5547
|
-
zIndex: "raised"
|
|
5799
|
+
_disabled: {
|
|
5800
|
+
color: "text.disabled",
|
|
5801
|
+
cursor: "not-allowed"
|
|
5548
5802
|
}
|
|
5549
5803
|
},
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5804
|
+
token: {
|
|
5805
|
+
minWidth: "0",
|
|
5806
|
+
maxWidth: "full",
|
|
5807
|
+
flex: "0 1 auto",
|
|
5808
|
+
_new: {
|
|
5809
|
+
bg: "transparent",
|
|
5810
|
+
outlineWidth: "1",
|
|
5811
|
+
outlineStyle: "dashed",
|
|
5812
|
+
outlineColor: "border.warning"
|
|
5813
|
+
}
|
|
5814
|
+
},
|
|
5815
|
+
overflowIndicator: {
|
|
5816
|
+
display: "inline-flex",
|
|
5817
|
+
alignItems: "center",
|
|
5818
|
+
flexShrink: "0",
|
|
5819
|
+
minHeight: "var(--loading-size)",
|
|
5820
|
+
px: "6",
|
|
5821
|
+
bg: "bg.neutral",
|
|
5822
|
+
color: "text.subtle",
|
|
5823
|
+
borderRadius: "999",
|
|
5824
|
+
fontSize: "14",
|
|
5825
|
+
fontWeight: "medium",
|
|
5826
|
+
lineHeight: "default",
|
|
5827
|
+
whiteSpace: "nowrap"
|
|
5828
|
+
},
|
|
5829
|
+
loadingIndicator: {
|
|
5830
|
+
display: "inline-flex",
|
|
5831
|
+
alignItems: "center",
|
|
5832
|
+
alignSelf: "center",
|
|
5833
|
+
flexShrink: "0",
|
|
5834
|
+
ms: "var(--control-py)",
|
|
5835
|
+
width: "var(--loading-size)",
|
|
5836
|
+
height: "var(--loading-size)",
|
|
5837
|
+
_icon: {
|
|
5838
|
+
width: "var(--loading-size)",
|
|
5839
|
+
height: "var(--loading-size)"
|
|
5840
|
+
}
|
|
5841
|
+
},
|
|
5842
|
+
listbox: {
|
|
5843
|
+
...globalBaseStyles,
|
|
5844
|
+
width: "full",
|
|
5845
|
+
maxHeight: "192",
|
|
5846
|
+
overflowY: "auto",
|
|
5847
|
+
bg: "surface",
|
|
5848
|
+
borderRadius: "4",
|
|
5849
|
+
boxShadow: "overlay",
|
|
5850
|
+
outline: "none"
|
|
5851
|
+
},
|
|
5852
|
+
status: {
|
|
5853
|
+
display: "flex",
|
|
5854
|
+
alignItems: "center",
|
|
5855
|
+
width: "full",
|
|
5856
|
+
minHeight: "40",
|
|
5857
|
+
px: "12",
|
|
5858
|
+
py: "8",
|
|
5859
|
+
color: "text.subtle",
|
|
5860
|
+
fontSize: "14",
|
|
5861
|
+
lineHeight: "default"
|
|
5862
|
+
},
|
|
5863
|
+
liveRegion: {
|
|
5864
|
+
srOnly: true
|
|
5865
|
+
}
|
|
5866
|
+
};
|
|
5867
|
+
const autocompleteVariants = {
|
|
5868
|
+
layer: {
|
|
5869
|
+
elevated: {
|
|
5870
|
+
listbox: {
|
|
5871
|
+
zIndex: "elevated"
|
|
5872
|
+
}
|
|
5873
|
+
},
|
|
5874
|
+
modalFloating: {
|
|
5875
|
+
listbox: {
|
|
5876
|
+
zIndex: "modalFloating"
|
|
5877
|
+
}
|
|
5878
|
+
}
|
|
5879
|
+
},
|
|
5880
|
+
size: {
|
|
5881
|
+
sm: {
|
|
5882
|
+
root: {
|
|
5883
|
+
"--control-py": "token(sizes.0)",
|
|
5884
|
+
"--control-px": "token(sizes.8)",
|
|
5885
|
+
"--control-fs": "token(sizes.14)",
|
|
5886
|
+
"--control-min-height": "token(sizes.24)",
|
|
5887
|
+
"--value-gap": "token(sizes.3)",
|
|
5888
|
+
"--input-min-width": "token(sizes.64)",
|
|
5889
|
+
"--loading-size": "token(sizes.16)"
|
|
5890
|
+
}
|
|
5891
|
+
},
|
|
5892
|
+
md: {
|
|
5893
|
+
root: {
|
|
5894
|
+
"--control-py": "token(sizes.3)",
|
|
5895
|
+
"--control-px": "token(sizes.10)",
|
|
5896
|
+
"--control-fs": "token(sizes.16)",
|
|
5897
|
+
"--control-min-height": "token(sizes.32)",
|
|
5898
|
+
"--value-gap": "token(sizes.4)",
|
|
5899
|
+
"--input-min-width": "token(sizes.80)",
|
|
5900
|
+
"--loading-size": "token(sizes.20)"
|
|
5901
|
+
}
|
|
5902
|
+
},
|
|
5903
|
+
lg: {
|
|
5904
|
+
root: {
|
|
5905
|
+
"--control-py": "token(sizes.7)",
|
|
5906
|
+
"--control-px": "token(sizes.12)",
|
|
5907
|
+
"--control-fs": "token(sizes.16)",
|
|
5908
|
+
"--control-min-height": "token(sizes.40)",
|
|
5909
|
+
"--value-gap": "token(sizes.5)",
|
|
5910
|
+
"--input-min-width": "token(sizes.96)",
|
|
5911
|
+
"--loading-size": "token(sizes.20)"
|
|
5912
|
+
}
|
|
5913
|
+
},
|
|
5914
|
+
xl: {
|
|
5915
|
+
root: {
|
|
5916
|
+
"--control-py": "token(sizes.9)",
|
|
5917
|
+
"--control-px": "token(sizes.16)",
|
|
5918
|
+
"--control-fs": "token(sizes.20)",
|
|
5919
|
+
"--control-min-height": "token(sizes.48)",
|
|
5920
|
+
"--value-gap": "token(sizes.6)",
|
|
5921
|
+
"--input-min-width": "token(sizes.112)",
|
|
5922
|
+
"--loading-size": "token(sizes.24)"
|
|
5923
|
+
}
|
|
5924
|
+
}
|
|
5925
|
+
}
|
|
5926
|
+
};
|
|
5927
|
+
const autocompleteRecipe = defineSlotRecipe({
|
|
5928
|
+
className: "autocomplete",
|
|
5929
|
+
jsx: ["Autocomplete"],
|
|
5930
|
+
slots: [
|
|
5931
|
+
"root",
|
|
5932
|
+
"control",
|
|
5933
|
+
"valueContainer",
|
|
5934
|
+
"input",
|
|
5935
|
+
"token",
|
|
5936
|
+
"overflowIndicator",
|
|
5937
|
+
"loadingIndicator",
|
|
5938
|
+
"listbox",
|
|
5939
|
+
"status",
|
|
5940
|
+
"liveRegion"
|
|
5941
|
+
],
|
|
5942
|
+
base: autocompleteBase,
|
|
5943
|
+
variants: autocompleteVariants,
|
|
5944
|
+
defaultVariants: {
|
|
5945
|
+
size: "md",
|
|
5946
|
+
layer: "elevated"
|
|
5947
|
+
}
|
|
5948
|
+
});
|
|
5949
|
+
const avatarRecipe = defineSlotRecipe({
|
|
5950
|
+
className: "avatar",
|
|
5951
|
+
jsx: ["Avatar"],
|
|
5952
|
+
slots: ["root", "image", "fallback", "presence", "status"],
|
|
5953
|
+
staticCss: [
|
|
5954
|
+
{
|
|
5955
|
+
size: ["xs", "sm", "md", "lg", "xl", "2xl"],
|
|
5956
|
+
shape: ["circle", "square", "hexagon"]
|
|
5957
|
+
}
|
|
5958
|
+
],
|
|
5959
|
+
base: {
|
|
5960
|
+
root: {
|
|
5961
|
+
display: "inline-flex",
|
|
5962
|
+
position: "relative",
|
|
5963
|
+
alignItems: "center",
|
|
5964
|
+
justifyContent: "center",
|
|
5965
|
+
verticalAlign: "middle",
|
|
5966
|
+
flexShrink: 0,
|
|
5967
|
+
color: "text",
|
|
5968
|
+
bg: "bg.neutral",
|
|
5969
|
+
userSelect: "none",
|
|
5970
|
+
aspectRatio: "square"
|
|
5971
|
+
},
|
|
5972
|
+
image: {
|
|
5973
|
+
w: "full",
|
|
5974
|
+
h: "full",
|
|
5975
|
+
objectFit: "cover",
|
|
5976
|
+
overflow: "hidden"
|
|
5977
|
+
},
|
|
5978
|
+
fallback: {
|
|
5979
|
+
display: "flex",
|
|
5980
|
+
alignItems: "center",
|
|
5981
|
+
justifyContent: "center",
|
|
5982
|
+
w: "full",
|
|
5983
|
+
h: "full",
|
|
5984
|
+
fontFamily: "sans",
|
|
5985
|
+
fontWeight: "medium",
|
|
5986
|
+
textTransform: "uppercase",
|
|
5987
|
+
color: "text.subtle"
|
|
5988
|
+
},
|
|
5989
|
+
presence: {
|
|
5990
|
+
position: "absolute",
|
|
5991
|
+
bottom: "0",
|
|
5992
|
+
right: "0",
|
|
5993
|
+
borderRadius: "999",
|
|
5994
|
+
borderWidth: "2",
|
|
5995
|
+
borderStyle: "solid",
|
|
5996
|
+
borderColor: "bg",
|
|
5997
|
+
zIndex: "raised"
|
|
5998
|
+
},
|
|
5999
|
+
status: {
|
|
6000
|
+
position: "absolute",
|
|
6001
|
+
top: "0",
|
|
6002
|
+
right: "0",
|
|
6003
|
+
display: "flex",
|
|
6004
|
+
alignItems: "center",
|
|
6005
|
+
justifyContent: "center",
|
|
6006
|
+
borderRadius: "999",
|
|
6007
|
+
borderWidth: "2",
|
|
6008
|
+
borderStyle: "solid",
|
|
6009
|
+
borderColor: "bg",
|
|
6010
|
+
zIndex: "raised"
|
|
6011
|
+
}
|
|
6012
|
+
},
|
|
6013
|
+
variants: {
|
|
6014
|
+
size: {
|
|
6015
|
+
xs: {
|
|
5553
6016
|
root: {
|
|
5554
6017
|
w: "16",
|
|
5555
6018
|
h: "16"
|
|
@@ -5690,45 +6153,62 @@ const badgeRecipe = defineSlotRecipe({
|
|
|
5690
6153
|
slots: ["root", "indicator"],
|
|
5691
6154
|
base: {
|
|
5692
6155
|
root: {
|
|
6156
|
+
...globalBaseStyles,
|
|
6157
|
+
"--indicator-min-width": "token(sizes.16)",
|
|
5693
6158
|
display: "inline-flex",
|
|
5694
6159
|
position: "relative",
|
|
5695
|
-
verticalAlign: "middle"
|
|
6160
|
+
verticalAlign: "middle",
|
|
6161
|
+
w: "fit",
|
|
6162
|
+
h: "fit",
|
|
6163
|
+
flex: "0"
|
|
5696
6164
|
},
|
|
5697
6165
|
indicator: {
|
|
5698
6166
|
display: "inline-flex",
|
|
5699
6167
|
alignItems: "center",
|
|
5700
6168
|
justifyContent: "center",
|
|
6169
|
+
h: "fit",
|
|
5701
6170
|
borderRadius: "999",
|
|
5702
6171
|
fontWeight: "medium",
|
|
5703
6172
|
fontFamily: "sans",
|
|
5704
6173
|
lineHeight: "none",
|
|
5705
6174
|
whiteSpace: "nowrap",
|
|
5706
6175
|
userSelect: "none",
|
|
5707
|
-
zIndex: "
|
|
6176
|
+
zIndex: "1"
|
|
5708
6177
|
}
|
|
5709
6178
|
},
|
|
5710
6179
|
variants: {
|
|
5711
6180
|
size: {
|
|
5712
6181
|
sm: {
|
|
5713
6182
|
indicator: {
|
|
5714
|
-
|
|
6183
|
+
"--indicator-min-width": "token(sizes.16)",
|
|
6184
|
+
minH: "6",
|
|
5715
6185
|
fontSize: "10",
|
|
5716
6186
|
p: "3"
|
|
5717
6187
|
}
|
|
5718
6188
|
},
|
|
5719
6189
|
md: {
|
|
5720
6190
|
indicator: {
|
|
5721
|
-
|
|
6191
|
+
"--indicator-min-width": "token(sizes.20)",
|
|
6192
|
+
minH: "8",
|
|
5722
6193
|
fontSize: "12",
|
|
5723
6194
|
p: "4"
|
|
5724
6195
|
}
|
|
5725
6196
|
},
|
|
5726
6197
|
lg: {
|
|
5727
6198
|
indicator: {
|
|
5728
|
-
|
|
6199
|
+
"--indicator-min-width": "token(sizes.24)",
|
|
6200
|
+
minH: "10",
|
|
5729
6201
|
fontSize: "14",
|
|
5730
6202
|
p: "5"
|
|
5731
6203
|
}
|
|
6204
|
+
},
|
|
6205
|
+
xl: {
|
|
6206
|
+
indicator: {
|
|
6207
|
+
"--indicator-min-width": "token(sizes.28)",
|
|
6208
|
+
minH: "12",
|
|
6209
|
+
fontSize: "16",
|
|
6210
|
+
p: "6"
|
|
6211
|
+
}
|
|
5732
6212
|
}
|
|
5733
6213
|
},
|
|
5734
6214
|
// When standalone (no children), don't use absolute positioning
|
|
@@ -5739,7 +6219,8 @@ const badgeRecipe = defineSlotRecipe({
|
|
|
5739
6219
|
},
|
|
5740
6220
|
indicator: {
|
|
5741
6221
|
position: "static",
|
|
5742
|
-
transform: "none"
|
|
6222
|
+
transform: "none",
|
|
6223
|
+
h: "fit"
|
|
5743
6224
|
}
|
|
5744
6225
|
},
|
|
5745
6226
|
false: {
|
|
@@ -5752,20 +6233,18 @@ const badgeRecipe = defineSlotRecipe({
|
|
|
5752
6233
|
position: "absolute",
|
|
5753
6234
|
top: "0",
|
|
5754
6235
|
right: "0",
|
|
5755
|
-
transform: "translate(50%, -50%)"
|
|
6236
|
+
transform: "translate(50%, -50%)",
|
|
6237
|
+
h: "fit"
|
|
5756
6238
|
}
|
|
5757
6239
|
}
|
|
5758
6240
|
},
|
|
5759
6241
|
// Dot mode: smaller, no text
|
|
5760
6242
|
dot: {
|
|
5761
|
-
true: {
|
|
5762
|
-
indicator: {
|
|
5763
|
-
// Dot mode styles handled by base + size variants
|
|
5764
|
-
}
|
|
5765
|
-
},
|
|
6243
|
+
true: {},
|
|
5766
6244
|
false: {
|
|
5767
6245
|
indicator: {
|
|
5768
|
-
|
|
6246
|
+
h: "fit",
|
|
6247
|
+
minW: "var(--indicator-min-width)"
|
|
5769
6248
|
}
|
|
5770
6249
|
}
|
|
5771
6250
|
},
|
|
@@ -5821,39 +6300,6 @@ const badgeRecipe = defineSlotRecipe({
|
|
|
5821
6300
|
}
|
|
5822
6301
|
}
|
|
5823
6302
|
},
|
|
5824
|
-
compoundVariants: [
|
|
5825
|
-
// Count mode sizes (smaller than count mode)
|
|
5826
|
-
{
|
|
5827
|
-
dot: false,
|
|
5828
|
-
size: "sm",
|
|
5829
|
-
css: {
|
|
5830
|
-
indicator: {
|
|
5831
|
-
minW: "16",
|
|
5832
|
-
h: "fit"
|
|
5833
|
-
}
|
|
5834
|
-
}
|
|
5835
|
-
},
|
|
5836
|
-
{
|
|
5837
|
-
dot: false,
|
|
5838
|
-
size: "md",
|
|
5839
|
-
css: {
|
|
5840
|
-
indicator: {
|
|
5841
|
-
minW: "20",
|
|
5842
|
-
h: "fit"
|
|
5843
|
-
}
|
|
5844
|
-
}
|
|
5845
|
-
},
|
|
5846
|
-
{
|
|
5847
|
-
dot: false,
|
|
5848
|
-
size: "lg",
|
|
5849
|
-
css: {
|
|
5850
|
-
indicator: {
|
|
5851
|
-
minW: "24",
|
|
5852
|
-
h: "fit"
|
|
5853
|
-
}
|
|
5854
|
-
}
|
|
5855
|
-
}
|
|
5856
|
-
],
|
|
5857
6303
|
defaultVariants: {
|
|
5858
6304
|
size: "md",
|
|
5859
6305
|
variant: "danger"
|
|
@@ -5903,20 +6349,15 @@ const breadcrumbsRecipe = defineSlotRecipe({
|
|
|
5903
6349
|
}
|
|
5904
6350
|
}
|
|
5905
6351
|
});
|
|
5906
|
-
const
|
|
5907
|
-
fill: "icon.decorative",
|
|
5908
|
-
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
5909
|
-
_groupHover: { fill: "current" },
|
|
5910
|
-
_groupActive: { fill: "current" }
|
|
5911
|
-
};
|
|
5912
|
-
const iconInverseStyles = {
|
|
5913
|
-
fill: "icon.decorative.inverse",
|
|
5914
|
-
mixBlendMode: { base: "screen", _dark: "multiply" },
|
|
5915
|
-
_groupHover: { fill: "icon.decorative.inverse" },
|
|
5916
|
-
_groupActive: { fill: "icon.decorative.inverse" }
|
|
5917
|
-
};
|
|
5918
|
-
const baseButtonStyles = {
|
|
6352
|
+
const buttonBaseStyles = {
|
|
5919
6353
|
container: {
|
|
6354
|
+
...globalBaseStyles,
|
|
6355
|
+
"--main-py": "token(sizes.3)",
|
|
6356
|
+
"--main-px": "token(sizes.10)",
|
|
6357
|
+
"--main-slot-side-padding": "token(sizes.0)",
|
|
6358
|
+
"--main-fs": "token(sizes.16)",
|
|
6359
|
+
"--slot-size": "token(sizes.20)",
|
|
6360
|
+
"--slot-px": "token(sizes.6)",
|
|
5920
6361
|
position: "relative",
|
|
5921
6362
|
appearance: "none",
|
|
5922
6363
|
display: "flex",
|
|
@@ -5925,14 +6366,13 @@ const baseButtonStyles = {
|
|
|
5925
6366
|
minWidth: "0",
|
|
5926
6367
|
width: "fit",
|
|
5927
6368
|
height: "fit",
|
|
6369
|
+
flexShrink: 0,
|
|
5928
6370
|
transitionDuration: "fast",
|
|
5929
6371
|
transitionProperty: "background, border-color, color, box-shadow",
|
|
5930
6372
|
transitionTimingFunction: "default",
|
|
5931
6373
|
userSelect: "none",
|
|
5932
6374
|
verticalAlign: "middle",
|
|
5933
|
-
fontFamily: "sans",
|
|
5934
6375
|
fontWeight: "medium",
|
|
5935
|
-
fontSize: "16",
|
|
5936
6376
|
lineHeight: "default",
|
|
5937
6377
|
borderWidth: "1",
|
|
5938
6378
|
borderStyle: "solid",
|
|
@@ -5941,6 +6381,7 @@ const baseButtonStyles = {
|
|
|
5941
6381
|
outlineWidth: "2",
|
|
5942
6382
|
outlineStyle: "solid",
|
|
5943
6383
|
outlineColor: "transparent",
|
|
6384
|
+
outlineOffset: "1",
|
|
5944
6385
|
textDecoration: "none",
|
|
5945
6386
|
whiteSpace: "nowrap",
|
|
5946
6387
|
cursor: "pointer",
|
|
@@ -5956,19 +6397,31 @@ const baseButtonStyles = {
|
|
|
5956
6397
|
outlineColor: "border.focused"
|
|
5957
6398
|
}
|
|
5958
6399
|
},
|
|
5959
|
-
|
|
5960
|
-
|
|
6400
|
+
mainContent: {
|
|
6401
|
+
display: "flex",
|
|
6402
|
+
alignItems: "center",
|
|
6403
|
+
width: "fit",
|
|
6404
|
+
height: "fit",
|
|
6405
|
+
py: "var(--main-py)",
|
|
6406
|
+
px: "var(--main-px)",
|
|
6407
|
+
fontSize: "var(--main-fs)"
|
|
6408
|
+
},
|
|
6409
|
+
slot: {
|
|
6410
|
+
display: "inline-flex",
|
|
6411
|
+
alignItems: "center",
|
|
5961
6412
|
transitionDuration: "fast",
|
|
5962
|
-
transitionProperty: "
|
|
5963
|
-
transitionTimingFunction: "default"
|
|
6413
|
+
transitionProperty: "all",
|
|
6414
|
+
transitionTimingFunction: "default",
|
|
6415
|
+
flex: "0 0 var(--slot-size)",
|
|
6416
|
+
px: "var(--slot-px)"
|
|
5964
6417
|
}
|
|
5965
6418
|
};
|
|
5966
6419
|
const buttonVariants = {
|
|
5967
6420
|
variant: {
|
|
5968
|
-
|
|
6421
|
+
standard: {
|
|
5969
6422
|
container: {
|
|
5970
6423
|
bg: "bg.neutral",
|
|
5971
|
-
|
|
6424
|
+
borderColor: "transparent",
|
|
5972
6425
|
_hover: {
|
|
5973
6426
|
bg: "bg.neutral.hovered"
|
|
5974
6427
|
},
|
|
@@ -5976,78 +6429,86 @@ const buttonVariants = {
|
|
|
5976
6429
|
bg: "bg.neutral.pressed"
|
|
5977
6430
|
}
|
|
5978
6431
|
},
|
|
5979
|
-
|
|
6432
|
+
mainContent: {
|
|
6433
|
+
color: "text"
|
|
6434
|
+
},
|
|
6435
|
+
slot: {
|
|
6436
|
+
fill: "icon.decorative",
|
|
6437
|
+
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
6438
|
+
_groupHover: { fill: "current" },
|
|
6439
|
+
_groupActive: { fill: "current" }
|
|
6440
|
+
}
|
|
5980
6441
|
},
|
|
5981
6442
|
primary: {
|
|
5982
6443
|
container: {
|
|
5983
|
-
bg: "bg.
|
|
5984
|
-
|
|
6444
|
+
bg: "bg.neutral.boldest",
|
|
6445
|
+
borderColor: "transparent",
|
|
5985
6446
|
_hover: {
|
|
5986
|
-
bg: "bg.
|
|
6447
|
+
bg: "bg.neutral.bold.hovered"
|
|
5987
6448
|
},
|
|
5988
6449
|
_active: {
|
|
5989
|
-
bg: "bg.
|
|
6450
|
+
bg: "bg.neutral.bold.pressed"
|
|
5990
6451
|
}
|
|
5991
6452
|
},
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
6453
|
+
mainContent: {
|
|
6454
|
+
color: "text.inverse"
|
|
6455
|
+
},
|
|
6456
|
+
slot: {
|
|
6457
|
+
fill: "icon.decorative.inverse",
|
|
6458
|
+
mixBlendMode: { base: "screen", _dark: "multiply" },
|
|
6459
|
+
_groupHover: { fill: "icon.decorative.inverse.hovered" },
|
|
6460
|
+
_groupActive: { fill: "icon.decorative.inverse.hovered" },
|
|
5995
6461
|
_groupDisabled: {
|
|
5996
|
-
fill: "icon.decorative.inverse
|
|
6462
|
+
fill: "icon.decorative.inverse"
|
|
5997
6463
|
}
|
|
5998
6464
|
}
|
|
5999
6465
|
},
|
|
6000
|
-
|
|
6466
|
+
hollow: {
|
|
6001
6467
|
container: {
|
|
6002
6468
|
bg: "bg.neutral.subtle",
|
|
6003
|
-
|
|
6469
|
+
borderColor: "border",
|
|
6004
6470
|
_hover: {
|
|
6005
|
-
bg: "bg.neutral.subtle.hovered"
|
|
6006
|
-
color: "text"
|
|
6471
|
+
bg: "bg.neutral.subtle.hovered"
|
|
6007
6472
|
},
|
|
6008
6473
|
_active: {
|
|
6009
|
-
bg: "bg.neutral.subtle.pressed"
|
|
6010
|
-
color: "text"
|
|
6474
|
+
bg: "bg.neutral.subtle.pressed"
|
|
6011
6475
|
}
|
|
6012
6476
|
},
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
subtle: {
|
|
6016
|
-
container: {
|
|
6017
|
-
bg: "bg.neutral.subtle",
|
|
6018
|
-
color: "text.subtle",
|
|
6019
|
-
_hover: {
|
|
6020
|
-
bg: "bg.neutral.subtle.hovered",
|
|
6021
|
-
color: "text"
|
|
6022
|
-
},
|
|
6023
|
-
_active: {
|
|
6024
|
-
bg: "bg.neutral.subtle.pressed",
|
|
6025
|
-
color: "text"
|
|
6026
|
-
}
|
|
6477
|
+
mainContent: {
|
|
6478
|
+
color: "text"
|
|
6027
6479
|
},
|
|
6028
|
-
|
|
6480
|
+
slot: {
|
|
6481
|
+
fill: "icon.decorative",
|
|
6482
|
+
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
6483
|
+
_groupHover: { fill: "current" },
|
|
6484
|
+
_groupActive: { fill: "current" }
|
|
6485
|
+
}
|
|
6029
6486
|
},
|
|
6030
|
-
|
|
6487
|
+
ghost: {
|
|
6031
6488
|
container: {
|
|
6032
6489
|
bg: "bg.neutral.subtle",
|
|
6033
|
-
borderColor: "
|
|
6034
|
-
color: "text",
|
|
6490
|
+
borderColor: "transparent",
|
|
6035
6491
|
_hover: {
|
|
6036
6492
|
bg: "bg.neutral.subtle.hovered"
|
|
6037
6493
|
},
|
|
6038
6494
|
_active: {
|
|
6039
6495
|
bg: "bg.neutral.subtle.pressed"
|
|
6040
|
-
},
|
|
6041
|
-
_disabled: {
|
|
6042
|
-
borderColor: "border.disabled"
|
|
6043
6496
|
}
|
|
6044
6497
|
},
|
|
6045
|
-
|
|
6498
|
+
mainContent: {
|
|
6499
|
+
color: "text"
|
|
6500
|
+
},
|
|
6501
|
+
slot: {
|
|
6502
|
+
fill: "icon.decorative",
|
|
6503
|
+
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
6504
|
+
_groupHover: { fill: "current" },
|
|
6505
|
+
_groupActive: { fill: "current" }
|
|
6506
|
+
}
|
|
6046
6507
|
},
|
|
6047
6508
|
danger: {
|
|
6048
6509
|
container: {
|
|
6049
6510
|
bg: "red.50",
|
|
6050
|
-
|
|
6511
|
+
borderColor: "transparent",
|
|
6051
6512
|
_hover: {
|
|
6052
6513
|
bg: "red.40"
|
|
6053
6514
|
},
|
|
@@ -6055,8 +6516,14 @@ const buttonVariants = {
|
|
|
6055
6516
|
bg: "red.60"
|
|
6056
6517
|
}
|
|
6057
6518
|
},
|
|
6058
|
-
|
|
6059
|
-
|
|
6519
|
+
mainContent: {
|
|
6520
|
+
color: "neutral.0"
|
|
6521
|
+
},
|
|
6522
|
+
slot: {
|
|
6523
|
+
fill: "icon.decorative.inverse",
|
|
6524
|
+
mixBlendMode: "screen",
|
|
6525
|
+
_groupHover: { fill: "icon.decorative.inverse.hovered" },
|
|
6526
|
+
_groupActive: { fill: "icon.decorative.inverse.hovered" },
|
|
6060
6527
|
_groupDisabled: {
|
|
6061
6528
|
fill: "icon.decorative.inverse"
|
|
6062
6529
|
}
|
|
@@ -6065,17 +6532,20 @@ const buttonVariants = {
|
|
|
6065
6532
|
selected: {
|
|
6066
6533
|
container: {
|
|
6067
6534
|
bg: "bg.selected",
|
|
6068
|
-
|
|
6535
|
+
borderColor: "transparent",
|
|
6069
6536
|
_hover: {
|
|
6070
6537
|
bg: "bg.selected.hovered",
|
|
6071
|
-
color: "text.selected
|
|
6538
|
+
color: "text.selected"
|
|
6072
6539
|
},
|
|
6073
6540
|
_active: {
|
|
6074
6541
|
bg: "bg.selected.pressed",
|
|
6075
6542
|
color: "text.selected"
|
|
6076
6543
|
}
|
|
6077
6544
|
},
|
|
6078
|
-
|
|
6545
|
+
mainContent: {
|
|
6546
|
+
color: "text.selected"
|
|
6547
|
+
},
|
|
6548
|
+
slot: {
|
|
6079
6549
|
fill: "icon.selected",
|
|
6080
6550
|
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
6081
6551
|
_groupHover: { fill: "icon.selected" },
|
|
@@ -6088,7 +6558,7 @@ const buttonVariants = {
|
|
|
6088
6558
|
selectedBold: {
|
|
6089
6559
|
container: {
|
|
6090
6560
|
bg: "bg.selected.bold",
|
|
6091
|
-
|
|
6561
|
+
borderColor: "transparent",
|
|
6092
6562
|
_hover: {
|
|
6093
6563
|
bg: "bg.selected.bold.hovered"
|
|
6094
6564
|
},
|
|
@@ -6096,220 +6566,227 @@ const buttonVariants = {
|
|
|
6096
6566
|
bg: "bg.selected.bold.pressed"
|
|
6097
6567
|
}
|
|
6098
6568
|
},
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
mixBlendMode: { base: "screen", _dark: "multiply" },
|
|
6102
|
-
_groupHover: { fill: "icon.inverse" },
|
|
6103
|
-
_groupActive: { fill: "icon.inverse" },
|
|
6104
|
-
_groupDisabled: {
|
|
6105
|
-
fill: "icon.inverse"
|
|
6106
|
-
}
|
|
6107
|
-
}
|
|
6108
|
-
},
|
|
6109
|
-
selectedSubtle: {
|
|
6110
|
-
container: {
|
|
6111
|
-
bg: "bg.selected",
|
|
6112
|
-
color: "text.selected",
|
|
6113
|
-
_hover: {
|
|
6114
|
-
bg: "bg.selected.hovered",
|
|
6115
|
-
color: "text.selected.hovered"
|
|
6116
|
-
},
|
|
6117
|
-
_active: {
|
|
6118
|
-
bg: "bg.selected.pressed",
|
|
6119
|
-
color: "text.selected"
|
|
6120
|
-
}
|
|
6569
|
+
mainContent: {
|
|
6570
|
+
color: "text.inverse"
|
|
6121
6571
|
},
|
|
6122
|
-
|
|
6123
|
-
fill: "icon.
|
|
6124
|
-
mixBlendMode: { base: "
|
|
6125
|
-
_groupHover: { fill: "icon.
|
|
6126
|
-
_groupActive: { fill: "icon.
|
|
6572
|
+
slot: {
|
|
6573
|
+
fill: "icon.decorative.inverse",
|
|
6574
|
+
mixBlendMode: { base: "screen", _dark: "multiply" },
|
|
6575
|
+
_groupHover: { fill: "icon.decorative.inverse.hovered" },
|
|
6576
|
+
_groupActive: { fill: "icon.decorative.inverse.hovered" },
|
|
6127
6577
|
_groupDisabled: {
|
|
6128
|
-
fill: "icon.
|
|
6578
|
+
fill: "icon.decorative.inverse"
|
|
6129
6579
|
}
|
|
6130
6580
|
}
|
|
6131
6581
|
}
|
|
6132
6582
|
}
|
|
6133
6583
|
};
|
|
6134
|
-
const buttonSizes = {
|
|
6135
|
-
sm: {
|
|
6136
|
-
container: {
|
|
6137
|
-
fontSize: "14",
|
|
6138
|
-
py: "1",
|
|
6139
|
-
px: "8"
|
|
6140
|
-
},
|
|
6141
|
-
icon: {
|
|
6142
|
-
w: "22",
|
|
6143
|
-
h: "22"
|
|
6144
|
-
}
|
|
6145
|
-
},
|
|
6146
|
-
md: {
|
|
6147
|
-
container: {
|
|
6148
|
-
fontSize: "16",
|
|
6149
|
-
py: "3",
|
|
6150
|
-
px: "12"
|
|
6151
|
-
},
|
|
6152
|
-
icon: {
|
|
6153
|
-
w: "24",
|
|
6154
|
-
h: "24"
|
|
6155
|
-
}
|
|
6156
|
-
},
|
|
6157
|
-
lg: {
|
|
6158
|
-
container: {
|
|
6159
|
-
fontSize: "16",
|
|
6160
|
-
py: "7",
|
|
6161
|
-
px: "14"
|
|
6162
|
-
},
|
|
6163
|
-
icon: {
|
|
6164
|
-
w: "24",
|
|
6165
|
-
h: "24"
|
|
6166
|
-
}
|
|
6167
|
-
},
|
|
6168
|
-
xl: {
|
|
6169
|
-
container: {
|
|
6170
|
-
fontSize: "20",
|
|
6171
|
-
py: "9",
|
|
6172
|
-
px: "16"
|
|
6173
|
-
},
|
|
6174
|
-
icon: {
|
|
6175
|
-
w: "28",
|
|
6176
|
-
h: "28"
|
|
6177
|
-
}
|
|
6178
|
-
}
|
|
6179
|
-
};
|
|
6180
6584
|
const buttonRecipe = defineSlotRecipe({
|
|
6181
6585
|
className: "button",
|
|
6182
6586
|
jsx: ["Button"],
|
|
6183
|
-
slots: ["container", "
|
|
6184
|
-
base:
|
|
6587
|
+
slots: ["container", "mainContent", "slot"],
|
|
6588
|
+
base: buttonBaseStyles,
|
|
6185
6589
|
variants: {
|
|
6186
6590
|
...buttonVariants,
|
|
6187
|
-
size:
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
css: {
|
|
6228
|
-
container: { ps: "5" }
|
|
6229
|
-
}
|
|
6230
|
-
},
|
|
6231
|
-
{
|
|
6232
|
-
size: "lg",
|
|
6233
|
-
iconAfter: true,
|
|
6234
|
-
css: {
|
|
6235
|
-
container: { pe: "5" }
|
|
6591
|
+
size: {
|
|
6592
|
+
sm: {
|
|
6593
|
+
container: {
|
|
6594
|
+
"--main-py": "token(sizes.0)",
|
|
6595
|
+
"--main-px": "token(sizes.8)",
|
|
6596
|
+
"--main-slot-side-padding": "token(sizes.0)",
|
|
6597
|
+
"--main-fs": "token(sizes.14)",
|
|
6598
|
+
"--slot-size": "token(sizes.16)",
|
|
6599
|
+
"--slot-px": "token(sizes.4)"
|
|
6600
|
+
}
|
|
6601
|
+
},
|
|
6602
|
+
md: {
|
|
6603
|
+
container: {
|
|
6604
|
+
"--main-py": "token(sizes.3)",
|
|
6605
|
+
"--main-px": "token(sizes.10)",
|
|
6606
|
+
"--main-slot-side-padding": "token(sizes.0)",
|
|
6607
|
+
"--main-fs": "token(sizes.16)",
|
|
6608
|
+
"--slot-size": "token(sizes.20)",
|
|
6609
|
+
"--slot-px": "token(sizes.6)"
|
|
6610
|
+
}
|
|
6611
|
+
},
|
|
6612
|
+
lg: {
|
|
6613
|
+
container: {
|
|
6614
|
+
"--main-py": "token(sizes.7)",
|
|
6615
|
+
"--main-px": "token(sizes.12)",
|
|
6616
|
+
"--main-slot-side-padding": "token(sizes.0)",
|
|
6617
|
+
"--main-fs": "token(sizes.16)",
|
|
6618
|
+
"--slot-size": "token(sizes.24)",
|
|
6619
|
+
"--slot-px": "token(sizes.8)"
|
|
6620
|
+
}
|
|
6621
|
+
},
|
|
6622
|
+
xl: {
|
|
6623
|
+
container: {
|
|
6624
|
+
"--main-py": "token(sizes.9)",
|
|
6625
|
+
"--main-px": "token(sizes.16)",
|
|
6626
|
+
"--main-slot-side-padding": "token(sizes.0)",
|
|
6627
|
+
"--main-fs": "token(sizes.20)",
|
|
6628
|
+
"--slot-size": "token(sizes.28)",
|
|
6629
|
+
"--slot-px": "token(sizes.10)"
|
|
6630
|
+
}
|
|
6236
6631
|
}
|
|
6237
6632
|
},
|
|
6238
|
-
{
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6633
|
+
before: {
|
|
6634
|
+
true: {
|
|
6635
|
+
mainContent: {
|
|
6636
|
+
ps: "0"
|
|
6637
|
+
}
|
|
6243
6638
|
}
|
|
6244
6639
|
},
|
|
6245
|
-
{
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6640
|
+
after: {
|
|
6641
|
+
true: {
|
|
6642
|
+
mainContent: {
|
|
6643
|
+
pe: "0"
|
|
6644
|
+
}
|
|
6250
6645
|
}
|
|
6251
6646
|
}
|
|
6252
|
-
|
|
6647
|
+
},
|
|
6253
6648
|
defaultVariants: {
|
|
6254
|
-
variant: "
|
|
6649
|
+
variant: "standard",
|
|
6255
6650
|
size: "md"
|
|
6256
6651
|
}
|
|
6257
6652
|
});
|
|
6258
6653
|
const iconButtonRecipe = defineSlotRecipe({
|
|
6259
6654
|
className: "iconButton",
|
|
6260
6655
|
jsx: ["IconButton"],
|
|
6261
|
-
slots: ["container", "
|
|
6262
|
-
base:
|
|
6656
|
+
slots: ["container", "mainContent", "slot"],
|
|
6657
|
+
base: {
|
|
6658
|
+
...buttonBaseStyles,
|
|
6659
|
+
mainContent: {
|
|
6660
|
+
w: "calc(var(--slot-size) + (var(--slot-px) * 2))",
|
|
6661
|
+
h: "calc(var(--slot-size) + (var(--slot-px) * 2))",
|
|
6662
|
+
p: "var(--slot-px)"
|
|
6663
|
+
},
|
|
6664
|
+
slot: {
|
|
6665
|
+
w: "var(--slot-size)",
|
|
6666
|
+
h: "var(--slot-size)"
|
|
6667
|
+
}
|
|
6668
|
+
},
|
|
6263
6669
|
variants: {
|
|
6264
6670
|
...buttonVariants,
|
|
6265
6671
|
size: {
|
|
6266
6672
|
sm: {
|
|
6267
6673
|
container: {
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
},
|
|
6271
|
-
icon: {
|
|
6272
|
-
w: "22",
|
|
6273
|
-
h: "22"
|
|
6674
|
+
"--slot-size": "token(sizes.16)",
|
|
6675
|
+
"--slot-px": "token(sizes.3)"
|
|
6274
6676
|
}
|
|
6275
6677
|
},
|
|
6276
6678
|
md: {
|
|
6277
6679
|
container: {
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
},
|
|
6281
|
-
icon: {
|
|
6282
|
-
w: "24",
|
|
6283
|
-
h: "24"
|
|
6680
|
+
"--slot-size": "token(sizes.20)",
|
|
6681
|
+
"--slot-px": "token(sizes.5)"
|
|
6284
6682
|
}
|
|
6285
6683
|
},
|
|
6286
6684
|
lg: {
|
|
6287
6685
|
container: {
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
},
|
|
6291
|
-
icon: {
|
|
6292
|
-
w: "24",
|
|
6293
|
-
h: "24"
|
|
6686
|
+
"--slot-size": "token(sizes.24)",
|
|
6687
|
+
"--slot-px": "token(sizes.7)"
|
|
6294
6688
|
}
|
|
6295
6689
|
},
|
|
6296
6690
|
xl: {
|
|
6297
6691
|
container: {
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
},
|
|
6301
|
-
icon: {
|
|
6302
|
-
w: "28",
|
|
6303
|
-
h: "28"
|
|
6692
|
+
"--slot-size": "token(sizes.28)",
|
|
6693
|
+
"--slot-px": "token(sizes.9)"
|
|
6304
6694
|
}
|
|
6305
6695
|
}
|
|
6306
6696
|
}
|
|
6307
6697
|
},
|
|
6308
6698
|
defaultVariants: {
|
|
6309
|
-
variant: "
|
|
6699
|
+
variant: "standard",
|
|
6310
6700
|
size: "md"
|
|
6311
6701
|
}
|
|
6312
6702
|
});
|
|
6703
|
+
const calendarRecipe = defineSlotRecipe({
|
|
6704
|
+
className: "calendar",
|
|
6705
|
+
jsx: ["Calendar"],
|
|
6706
|
+
slots: ["root", "header", "grid", "weekdayLabel", "day", "monthYearGrid"],
|
|
6707
|
+
base: {
|
|
6708
|
+
root: {
|
|
6709
|
+
...globalBaseStyles,
|
|
6710
|
+
display: "flex",
|
|
6711
|
+
flexDirection: "column",
|
|
6712
|
+
alignItems: "flex-start",
|
|
6713
|
+
bg: "surface",
|
|
6714
|
+
width: "278"
|
|
6715
|
+
},
|
|
6716
|
+
header: {
|
|
6717
|
+
display: "flex",
|
|
6718
|
+
alignItems: "center",
|
|
6719
|
+
justifyContent: "space-between",
|
|
6720
|
+
gap: "4",
|
|
6721
|
+
width: "full",
|
|
6722
|
+
p: "8",
|
|
6723
|
+
borderBottom: "default",
|
|
6724
|
+
fontFamily: "mono"
|
|
6725
|
+
},
|
|
6726
|
+
grid: {
|
|
6727
|
+
display: "grid",
|
|
6728
|
+
gridTemplateColumns: "repeat(7, minmax(0, 1fr))",
|
|
6729
|
+
gap: "4",
|
|
6730
|
+
width: "fit",
|
|
6731
|
+
p: "8",
|
|
6732
|
+
mx: "auto"
|
|
6733
|
+
},
|
|
6734
|
+
weekdayLabel: {
|
|
6735
|
+
display: "flex",
|
|
6736
|
+
alignItems: "center",
|
|
6737
|
+
justifyContent: "center",
|
|
6738
|
+
userSelect: "none"
|
|
6739
|
+
},
|
|
6740
|
+
day: {
|
|
6741
|
+
position: "relative",
|
|
6742
|
+
alignItems: "center",
|
|
6743
|
+
justifyContent: "center",
|
|
6744
|
+
fontFamily: "mono",
|
|
6745
|
+
width: "32",
|
|
6746
|
+
height: "32",
|
|
6747
|
+
minWidth: "32",
|
|
6748
|
+
_today: {
|
|
6749
|
+
outline: "1px solid {colors.border.focused}",
|
|
6750
|
+
outlineOffset: "1"
|
|
6751
|
+
},
|
|
6752
|
+
_unavailable: {
|
|
6753
|
+
color: "text.disabled",
|
|
6754
|
+
cursor: "not-allowed",
|
|
6755
|
+
pointerEvents: "none",
|
|
6756
|
+
_hover: {
|
|
6757
|
+
bg: "transparent"
|
|
6758
|
+
}
|
|
6759
|
+
}
|
|
6760
|
+
},
|
|
6761
|
+
monthYearGrid: {
|
|
6762
|
+
display: "grid",
|
|
6763
|
+
gridTemplateColumns: "repeat(3, minmax(0, 1fr))",
|
|
6764
|
+
gap: "4",
|
|
6765
|
+
width: "full",
|
|
6766
|
+
p: "8"
|
|
6767
|
+
}
|
|
6768
|
+
},
|
|
6769
|
+
variants: {
|
|
6770
|
+
type: {
|
|
6771
|
+
days: {},
|
|
6772
|
+
months: {
|
|
6773
|
+
day: {
|
|
6774
|
+
width: "auto",
|
|
6775
|
+
px: "8"
|
|
6776
|
+
}
|
|
6777
|
+
},
|
|
6778
|
+
years: {
|
|
6779
|
+
day: {
|
|
6780
|
+
width: "auto",
|
|
6781
|
+
px: "8"
|
|
6782
|
+
}
|
|
6783
|
+
}
|
|
6784
|
+
}
|
|
6785
|
+
},
|
|
6786
|
+
defaultVariants: {
|
|
6787
|
+
type: "days"
|
|
6788
|
+
}
|
|
6789
|
+
});
|
|
6313
6790
|
const checkboxRecipe = defineSlotRecipe({
|
|
6314
6791
|
className: "checkbox",
|
|
6315
6792
|
jsx: ["Checkbox"],
|
|
@@ -6394,397 +6871,319 @@ const checkboxRecipe = defineSlotRecipe({
|
|
|
6394
6871
|
}
|
|
6395
6872
|
}
|
|
6396
6873
|
});
|
|
6397
|
-
const
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
fontFamily: "sans",
|
|
6406
|
-
lineHeight: "default",
|
|
6407
|
-
fontWeight: "medium",
|
|
6408
|
-
whiteSpace: "nowrap",
|
|
6409
|
-
verticalAlign: "middle",
|
|
6410
|
-
cursor: "pointer",
|
|
6411
|
-
transitionDuration: "fast",
|
|
6412
|
-
transitionProperty: "background, color",
|
|
6413
|
-
transitionTimingFunction: "default",
|
|
6414
|
-
userSelect: "none",
|
|
6415
|
-
border: "none",
|
|
6416
|
-
outlineWidth: "2",
|
|
6417
|
-
outlineStyle: "solid",
|
|
6418
|
-
outlineColor: "transparent",
|
|
6419
|
-
bg: "bg.neutral",
|
|
6420
|
-
color: "text",
|
|
6421
|
-
_hover: {
|
|
6422
|
-
bg: "bg.neutral.hovered"
|
|
6423
|
-
},
|
|
6424
|
-
_active: {
|
|
6425
|
-
bg: "bg.neutral.pressed"
|
|
6426
|
-
},
|
|
6427
|
-
_focusVisible: {
|
|
6428
|
-
outlineColor: "border.focused"
|
|
6429
|
-
},
|
|
6430
|
-
_loading: {
|
|
6431
|
-
cursor: "wait",
|
|
6432
|
-
animation: "pulse"
|
|
6433
|
-
},
|
|
6434
|
-
_deleted: {
|
|
6435
|
-
textDecoration: "line-through",
|
|
6436
|
-
cursor: "not-allowed",
|
|
6437
|
-
opacity: "[0.6]"
|
|
6438
|
-
},
|
|
6439
|
-
_disabled: {
|
|
6440
|
-
cursor: "not-allowed",
|
|
6441
|
-
bg: "bg.disabled",
|
|
6442
|
-
color: "text.disabled",
|
|
6443
|
-
borderColor: "border.disabled",
|
|
6444
|
-
_hover: {
|
|
6445
|
-
bg: "bg.disabled",
|
|
6446
|
-
color: "text.disabled",
|
|
6447
|
-
borderColor: "border.disabled"
|
|
6448
|
-
}
|
|
6449
|
-
},
|
|
6450
|
-
_selected: {
|
|
6451
|
-
bg: "bg.neutral.boldest",
|
|
6452
|
-
color: "text.inverse",
|
|
6453
|
-
_hover: {
|
|
6454
|
-
bg: "bg.neutral.bold.hovered"
|
|
6455
|
-
},
|
|
6456
|
-
_active: {
|
|
6457
|
-
bg: "bg.neutral.bold.pressed"
|
|
6458
|
-
}
|
|
6459
|
-
}
|
|
6460
|
-
},
|
|
6461
|
-
chipIcon: {
|
|
6462
|
-
fill: "icon.decorative",
|
|
6463
|
-
aspectRatio: "square",
|
|
6464
|
-
transitionDuration: "fast",
|
|
6465
|
-
transitionProperty: "fill",
|
|
6466
|
-
transitionTimingFunction: "default",
|
|
6467
|
-
_groupHover: { fill: "icon.decorative.hovered" },
|
|
6468
|
-
_groupActive: { fill: "icon.decorative.hovered" },
|
|
6469
|
-
_groupDisabled: { fill: "icon.decorative" },
|
|
6470
|
-
"[data-selected=true] &": {
|
|
6471
|
-
fill: "icon.decorative.inverse"
|
|
6472
|
-
},
|
|
6473
|
-
".group:is(:hover, [data-hover])[data-selected=true] &": {
|
|
6474
|
-
fill: "icon.decorative.inverse.hovered"
|
|
6475
|
-
}
|
|
6476
|
-
}
|
|
6477
|
-
};
|
|
6478
|
-
const chipRecipe = defineSlotRecipe({
|
|
6479
|
-
className: "chip",
|
|
6480
|
-
jsx: ["Chip"],
|
|
6481
|
-
slots: ["container", "chipIcon"],
|
|
6482
|
-
base: chipBase,
|
|
6483
|
-
variants: {
|
|
6484
|
-
size: {
|
|
6485
|
-
sm: {
|
|
6486
|
-
container: {
|
|
6487
|
-
gap: "2",
|
|
6488
|
-
h: "20",
|
|
6489
|
-
px: "6",
|
|
6490
|
-
py: "0",
|
|
6491
|
-
fontSize: "14"
|
|
6492
|
-
},
|
|
6493
|
-
chipIcon: {
|
|
6494
|
-
w: "20",
|
|
6495
|
-
h: "20"
|
|
6496
|
-
}
|
|
6497
|
-
},
|
|
6498
|
-
md: {
|
|
6499
|
-
container: {
|
|
6500
|
-
gap: "4",
|
|
6501
|
-
h: "24",
|
|
6502
|
-
px: "8",
|
|
6503
|
-
py: "1",
|
|
6504
|
-
fontSize: "14"
|
|
6505
|
-
},
|
|
6506
|
-
chipIcon: {
|
|
6507
|
-
w: "20",
|
|
6508
|
-
h: "20"
|
|
6509
|
-
}
|
|
6510
|
-
},
|
|
6511
|
-
lg: {
|
|
6512
|
-
container: {
|
|
6513
|
-
gap: "4",
|
|
6514
|
-
h: "32",
|
|
6515
|
-
px: "10",
|
|
6516
|
-
py: "4",
|
|
6517
|
-
fontSize: "16"
|
|
6518
|
-
},
|
|
6519
|
-
chipIcon: {
|
|
6520
|
-
w: "24",
|
|
6521
|
-
h: "24"
|
|
6522
|
-
}
|
|
6523
|
-
}
|
|
6524
|
-
},
|
|
6525
|
-
before: {
|
|
6526
|
-
true: { container: {} }
|
|
6527
|
-
},
|
|
6528
|
-
after: {
|
|
6529
|
-
true: { container: {} }
|
|
6530
|
-
}
|
|
6874
|
+
const buttonStyles = {
|
|
6875
|
+
appearance: "none",
|
|
6876
|
+
cursor: "pointer",
|
|
6877
|
+
transitionDuration: "fast",
|
|
6878
|
+
transitionProperty: "background, color",
|
|
6879
|
+
transitionTimingFunction: "default",
|
|
6880
|
+
_icon: {
|
|
6881
|
+
fill: "icon.decorative"
|
|
6531
6882
|
},
|
|
6532
|
-
|
|
6533
|
-
{
|
|
6534
|
-
|
|
6535
|
-
before: true,
|
|
6536
|
-
css: {
|
|
6537
|
-
container: { ps: "2" }
|
|
6538
|
-
}
|
|
6539
|
-
},
|
|
6540
|
-
{
|
|
6541
|
-
size: "sm",
|
|
6542
|
-
after: true,
|
|
6543
|
-
css: {
|
|
6544
|
-
container: { pe: "2" }
|
|
6545
|
-
}
|
|
6546
|
-
},
|
|
6547
|
-
{
|
|
6548
|
-
size: "md",
|
|
6549
|
-
before: true,
|
|
6550
|
-
css: {
|
|
6551
|
-
container: { ps: "2" }
|
|
6552
|
-
}
|
|
6553
|
-
},
|
|
6554
|
-
{
|
|
6555
|
-
size: "md",
|
|
6556
|
-
after: true,
|
|
6557
|
-
css: {
|
|
6558
|
-
container: { pe: "2" }
|
|
6559
|
-
}
|
|
6560
|
-
},
|
|
6561
|
-
{
|
|
6562
|
-
size: "lg",
|
|
6563
|
-
before: true,
|
|
6564
|
-
css: {
|
|
6565
|
-
container: { ps: "4" }
|
|
6566
|
-
}
|
|
6567
|
-
},
|
|
6568
|
-
{
|
|
6569
|
-
size: "lg",
|
|
6570
|
-
after: true,
|
|
6571
|
-
css: {
|
|
6572
|
-
container: { pe: "4" }
|
|
6573
|
-
}
|
|
6883
|
+
_hover: {
|
|
6884
|
+
_icon: {
|
|
6885
|
+
fill: "icon"
|
|
6574
6886
|
}
|
|
6575
|
-
],
|
|
6576
|
-
defaultVariants: {
|
|
6577
|
-
size: "md"
|
|
6578
|
-
}
|
|
6579
|
-
});
|
|
6580
|
-
const datePickerBase = {
|
|
6581
|
-
root: {
|
|
6582
|
-
display: "inline-flex",
|
|
6583
|
-
flexDirection: "column",
|
|
6584
|
-
position: "relative"
|
|
6585
6887
|
},
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
gap: "2",
|
|
6590
|
-
width: "full",
|
|
6591
|
-
borderWidth: "1",
|
|
6592
|
-
borderStyle: "solid",
|
|
6593
|
-
borderColor: "border.input",
|
|
6594
|
-
borderRadius: "4",
|
|
6595
|
-
outlineWidth: "2",
|
|
6596
|
-
outlineOffset: "-1",
|
|
6597
|
-
outlineStyle: "solid",
|
|
6598
|
-
outlineColor: "transparent",
|
|
6599
|
-
bg: "bg.input",
|
|
6600
|
-
color: "text",
|
|
6601
|
-
fontFamily: "mono",
|
|
6602
|
-
lineHeight: "default",
|
|
6603
|
-
cursor: "text",
|
|
6604
|
-
userSelect: "none",
|
|
6605
|
-
transitionDuration: "fast",
|
|
6606
|
-
transitionProperty: "background, border-color, outline-color",
|
|
6607
|
-
transitionTimingFunction: "default",
|
|
6608
|
-
_focusWithin: {
|
|
6609
|
-
bg: "bg.input.pressed",
|
|
6610
|
-
borderColor: "border.focused",
|
|
6611
|
-
outlineColor: "border.focused"
|
|
6612
|
-
},
|
|
6613
|
-
_open: {
|
|
6614
|
-
bg: "bg.input.pressed",
|
|
6615
|
-
borderColor: "border.focused",
|
|
6616
|
-
outlineColor: "border.focused"
|
|
6617
|
-
},
|
|
6618
|
-
_disabled: {
|
|
6619
|
-
bg: "bg.disabled",
|
|
6620
|
-
borderColor: "border.disabled",
|
|
6621
|
-
color: "text.disabled",
|
|
6622
|
-
cursor: "not-allowed",
|
|
6623
|
-
pointerEvents: "none"
|
|
6624
|
-
},
|
|
6625
|
-
_error: {
|
|
6626
|
-
bg: "bg.danger",
|
|
6627
|
-
borderColor: "border.danger",
|
|
6628
|
-
color: "text.danger",
|
|
6629
|
-
_hover: {
|
|
6630
|
-
bg: "bg.danger.hovered",
|
|
6631
|
-
borderColor: "border.danger"
|
|
6632
|
-
},
|
|
6633
|
-
_focusWithin: {
|
|
6634
|
-
bg: "bg.danger",
|
|
6635
|
-
borderColor: "border.danger",
|
|
6636
|
-
outlineColor: "border.danger"
|
|
6637
|
-
},
|
|
6638
|
-
_open: {
|
|
6639
|
-
bg: "bg.danger",
|
|
6640
|
-
borderColor: "border.danger",
|
|
6641
|
-
outlineColor: "border.danger"
|
|
6642
|
-
}
|
|
6888
|
+
_active: {
|
|
6889
|
+
_icon: {
|
|
6890
|
+
fill: "icon"
|
|
6643
6891
|
}
|
|
6644
6892
|
},
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
alignItems: "center",
|
|
6648
|
-
justifyContent: "center",
|
|
6649
|
-
outline: "none",
|
|
6650
|
-
borderRadius: "{sizes.2}",
|
|
6651
|
-
cursor: "default",
|
|
6652
|
-
userSelect: "none",
|
|
6653
|
-
fontFamily: "mono",
|
|
6654
|
-
fontVariantsProperty: "mono",
|
|
6655
|
-
fontVariantNumeric: "tabular-nums",
|
|
6656
|
-
minWidth: "{sizes.24}",
|
|
6657
|
-
textAlign: "center",
|
|
6658
|
-
color: "text",
|
|
6659
|
-
_focusVisible: {
|
|
6660
|
-
bg: "bg.neutral.hovered"
|
|
6661
|
-
},
|
|
6662
|
-
_groupDisabled: {
|
|
6663
|
-
color: "text.disabled"
|
|
6664
|
-
}
|
|
6893
|
+
_focusVisible: {
|
|
6894
|
+
outlineColor: "border.focused"
|
|
6665
6895
|
},
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
userSelect: "none",
|
|
6669
|
-
display: "inline-flex",
|
|
6670
|
-
alignItems: "center"
|
|
6896
|
+
_disabled: {
|
|
6897
|
+
cursor: "not-allowed"
|
|
6671
6898
|
},
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
flexDirection: "column",
|
|
6675
|
-
bg: "surface.overlay",
|
|
6676
|
-
borderWidth: "1",
|
|
6677
|
-
borderStyle: "solid",
|
|
6678
|
-
borderColor: "border",
|
|
6679
|
-
borderRadius: "8",
|
|
6680
|
-
boxShadow: "overlay",
|
|
6681
|
-
zIndex: "1000",
|
|
6682
|
-
width: "280",
|
|
6683
|
-
overflow: "hidden",
|
|
6684
|
-
outline: "none"
|
|
6899
|
+
"&:has([data-disabled=true])": {
|
|
6900
|
+
cursor: "not-allowed"
|
|
6685
6901
|
},
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
alignItems: "center",
|
|
6690
|
-
justifyContent: "space-between",
|
|
6691
|
-
px: "8",
|
|
6692
|
-
py: "8",
|
|
6693
|
-
borderBottom: "default",
|
|
6694
|
-
gap: "4"
|
|
6902
|
+
"&:has([data-deleted=true])": {
|
|
6903
|
+
textDecoration: "line-through",
|
|
6904
|
+
opacity: "[0.6]"
|
|
6695
6905
|
},
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
py: "4",
|
|
6702
|
-
pb: "8"
|
|
6906
|
+
"&:has([data-selected=true])": {
|
|
6907
|
+
bg: "bg.neutral.boldest",
|
|
6908
|
+
_icon: {
|
|
6909
|
+
fill: "icon.decorative.inverse"
|
|
6910
|
+
}
|
|
6703
6911
|
},
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
userSelect: "none"
|
|
6912
|
+
"&:has([data-selected=true]):is(:hover, [data-hover])": {
|
|
6913
|
+
_icon: {
|
|
6914
|
+
fill: "icon.decorative.inverse.hovered"
|
|
6915
|
+
}
|
|
6709
6916
|
},
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6917
|
+
"&:has([data-selected=true]):is(:active, [data-active])": {
|
|
6918
|
+
_icon: {
|
|
6919
|
+
fill: "icon.decorative.inverse.hovered"
|
|
6920
|
+
}
|
|
6921
|
+
}
|
|
6922
|
+
};
|
|
6923
|
+
const chipRecipe = defineSlotRecipe({
|
|
6924
|
+
className: "chip",
|
|
6925
|
+
jsx: ["Chip"],
|
|
6926
|
+
slots: ["container", "body", "mainContent", "dismissButton", "slot"],
|
|
6927
|
+
base: {
|
|
6928
|
+
container: {
|
|
6929
|
+
...globalBaseStyles,
|
|
6930
|
+
"--chip-h": "token(sizes.24)",
|
|
6931
|
+
"--main-px": "token(sizes.8)",
|
|
6932
|
+
"--main-fs": "token(sizes.14)",
|
|
6933
|
+
"--main-slot-side-padding": "token(sizes.4)",
|
|
6934
|
+
"--slot-size": "token(sizes.20)",
|
|
6935
|
+
"--slot-px": "token(sizes.2)",
|
|
6936
|
+
position: "relative",
|
|
6937
|
+
display: "inline-flex",
|
|
6938
|
+
alignItems: "center",
|
|
6939
|
+
width: "fit",
|
|
6940
|
+
height: "var(--chip-h)",
|
|
6941
|
+
borderRadius: "999",
|
|
6942
|
+
fontFamily: "sans",
|
|
6943
|
+
lineHeight: "default",
|
|
6944
|
+
fontWeight: "medium",
|
|
6945
|
+
whiteSpace: "nowrap",
|
|
6946
|
+
verticalAlign: "middle",
|
|
6947
|
+
transitionDuration: "fast",
|
|
6948
|
+
transitionProperty: "all",
|
|
6949
|
+
transitionTimingFunction: "default",
|
|
6950
|
+
userSelect: "none",
|
|
6951
|
+
bg: "bg.neutral",
|
|
6952
|
+
// Deviation from Cetec: hover and active live here, not on the body.
|
|
6953
|
+
// okshaun's bg.neutral tokens are semi-transparent, so a body-painted
|
|
6954
|
+
// hover would composite over this base rather than replace it, and it
|
|
6955
|
+
// would leave the dismiss area of a dismissable chip unhighlighted.
|
|
6956
|
+
// Cetec's opaque equivalents do not have this problem.
|
|
6724
6957
|
_hover: {
|
|
6725
|
-
bg: "bg.
|
|
6958
|
+
bg: "bg.neutral.hovered"
|
|
6726
6959
|
},
|
|
6727
|
-
|
|
6728
|
-
bg: "bg.
|
|
6960
|
+
_active: {
|
|
6961
|
+
bg: "bg.neutral.pressed"
|
|
6962
|
+
},
|
|
6963
|
+
_loading: {
|
|
6964
|
+
animation: "pulse"
|
|
6965
|
+
},
|
|
6966
|
+
"&:has([data-selected=true])": {
|
|
6967
|
+
bg: "bg.neutral.boldest",
|
|
6968
|
+
color: "text.inverse",
|
|
6969
|
+
_hover: {
|
|
6970
|
+
bg: "bg.neutral.bold.hovered"
|
|
6971
|
+
},
|
|
6972
|
+
_active: {
|
|
6973
|
+
bg: "bg.neutral.bold.pressed"
|
|
6974
|
+
}
|
|
6975
|
+
},
|
|
6976
|
+
"&:has([data-disabled=true])": {
|
|
6977
|
+
cursor: "not-allowed",
|
|
6978
|
+
bg: "bg.disabled",
|
|
6979
|
+
color: "text.disabled",
|
|
6980
|
+
opacity: "[0.3]",
|
|
6981
|
+
_hover: {
|
|
6982
|
+
bg: "bg.disabled"
|
|
6983
|
+
}
|
|
6984
|
+
}
|
|
6985
|
+
},
|
|
6986
|
+
body: {
|
|
6987
|
+
...globalBaseStyles,
|
|
6988
|
+
position: "relative",
|
|
6989
|
+
display: "inline-flex",
|
|
6990
|
+
alignItems: "center",
|
|
6991
|
+
minW: "0",
|
|
6992
|
+
height: "var(--chip-h)",
|
|
6993
|
+
flexShrink: "0",
|
|
6994
|
+
bg: "transparent",
|
|
6995
|
+
border: "none",
|
|
6996
|
+
borderRadius: "999",
|
|
6997
|
+
outlineWidth: "2",
|
|
6998
|
+
outlineStyle: "solid",
|
|
6999
|
+
outlineColor: "transparent",
|
|
7000
|
+
outlineOffset: "calc(token(sizes.2) * -1)",
|
|
7001
|
+
"button&": {
|
|
7002
|
+
...buttonStyles
|
|
7003
|
+
}
|
|
7004
|
+
},
|
|
7005
|
+
mainContent: {
|
|
7006
|
+
display: "inline-flex",
|
|
7007
|
+
alignItems: "center",
|
|
7008
|
+
minW: "0",
|
|
7009
|
+
px: "var(--main-px)",
|
|
7010
|
+
fontSize: "var(--main-fs)",
|
|
7011
|
+
color: "text",
|
|
7012
|
+
"[data-selected=true] > &": {
|
|
6729
7013
|
color: "text.inverse"
|
|
6730
7014
|
}
|
|
6731
7015
|
},
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
7016
|
+
dismissButton: {
|
|
7017
|
+
...globalBaseStyles,
|
|
7018
|
+
position: "relative",
|
|
7019
|
+
display: "inline-flex",
|
|
7020
|
+
alignItems: "center",
|
|
7021
|
+
justifyContent: "center",
|
|
7022
|
+
minW: "0",
|
|
7023
|
+
flexShrink: "0",
|
|
7024
|
+
bg: "transparent",
|
|
7025
|
+
border: "none",
|
|
7026
|
+
borderRadius: "999",
|
|
7027
|
+
outlineWidth: "2",
|
|
7028
|
+
outlineStyle: "solid",
|
|
7029
|
+
outlineColor: "transparent",
|
|
7030
|
+
outlineOffset: "calc(token(sizes.2) * -1)",
|
|
7031
|
+
aspectRatio: "square",
|
|
7032
|
+
...buttonStyles,
|
|
7033
|
+
// Deviation from Cetec: no hover background here. okshaun's bg.neutral
|
|
7034
|
+
// tokens are semi-transparent, so painting hovered over the pill
|
|
7035
|
+
// composites to roughly 26% rather than the 14% the token specifies.
|
|
6736
7036
|
_hover: {
|
|
6737
|
-
bg: "transparent"
|
|
7037
|
+
bg: "transparent",
|
|
7038
|
+
_icon: { fill: "icon" }
|
|
7039
|
+
},
|
|
7040
|
+
_active: {
|
|
7041
|
+
bg: "transparent",
|
|
7042
|
+
_icon: { fill: "icon" }
|
|
7043
|
+
},
|
|
7044
|
+
w: "calc(var(--slot-size) + (var(--slot-px) * 2))",
|
|
7045
|
+
h: "calc(var(--slot-size) + (var(--slot-px) * 2))",
|
|
7046
|
+
_icon: {
|
|
7047
|
+
fill: "icon.decorative",
|
|
7048
|
+
width: "var(--slot-size)",
|
|
7049
|
+
height: "var(--slot-size)"
|
|
6738
7050
|
}
|
|
7051
|
+
},
|
|
7052
|
+
slot: {
|
|
7053
|
+
display: "inline-flex",
|
|
7054
|
+
alignItems: "center",
|
|
7055
|
+
px: "var(--slot-px)"
|
|
6739
7056
|
}
|
|
6740
|
-
}
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
7057
|
+
},
|
|
7058
|
+
variants: {
|
|
7059
|
+
size: {
|
|
7060
|
+
sm: {
|
|
7061
|
+
container: {
|
|
7062
|
+
"--chip-h": "token(sizes.18)",
|
|
7063
|
+
"--main-px": "token(sizes.6)",
|
|
7064
|
+
"--main-fs": "token(sizes.12)",
|
|
7065
|
+
"--main-slot-side-padding": "token(sizes.4)",
|
|
7066
|
+
"--slot-size": "token(sizes.16)",
|
|
7067
|
+
"--slot-px": "token(sizes.1)"
|
|
7068
|
+
}
|
|
7069
|
+
},
|
|
7070
|
+
md: {
|
|
7071
|
+
container: {
|
|
7072
|
+
"--chip-h": "token(sizes.24)",
|
|
7073
|
+
"--main-px": "token(sizes.8)",
|
|
7074
|
+
"--main-fs": "token(sizes.14)",
|
|
7075
|
+
"--main-slot-side-padding": "token(sizes.4)",
|
|
7076
|
+
"--slot-size": "token(sizes.20)",
|
|
7077
|
+
"--slot-px": "token(sizes.2)"
|
|
7078
|
+
}
|
|
7079
|
+
},
|
|
7080
|
+
lg: {
|
|
7081
|
+
container: {
|
|
7082
|
+
"--chip-h": "token(sizes.28)",
|
|
7083
|
+
"--main-px": "token(sizes.10)",
|
|
7084
|
+
"--main-fs": "token(sizes.16)",
|
|
7085
|
+
"--main-slot-side-padding": "token(sizes.4)",
|
|
7086
|
+
"--slot-size": "token(sizes.24)",
|
|
7087
|
+
"--slot-px": "token(sizes.2)"
|
|
7088
|
+
}
|
|
7089
|
+
},
|
|
7090
|
+
xl: {
|
|
7091
|
+
container: {
|
|
7092
|
+
"--chip-h": "token(sizes.32)",
|
|
7093
|
+
"--main-px": "token(sizes.12)",
|
|
7094
|
+
"--main-fs": "token(sizes.20)",
|
|
7095
|
+
"--main-slot-side-padding": "token(sizes.4)",
|
|
7096
|
+
"--slot-size": "token(sizes.28)",
|
|
7097
|
+
"--slot-px": "token(sizes.2)"
|
|
7098
|
+
}
|
|
6749
7099
|
}
|
|
6750
7100
|
},
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
7101
|
+
before: {
|
|
7102
|
+
true: {
|
|
7103
|
+
mainContent: {
|
|
7104
|
+
ps: "var(--main-slot-side-padding)"
|
|
7105
|
+
}
|
|
6756
7106
|
}
|
|
6757
7107
|
},
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
7108
|
+
after: {
|
|
7109
|
+
true: {
|
|
7110
|
+
mainContent: {
|
|
7111
|
+
pe: "var(--main-slot-side-padding)"
|
|
7112
|
+
}
|
|
6763
7113
|
}
|
|
7114
|
+
},
|
|
7115
|
+
dismissable: {
|
|
7116
|
+
true: {}
|
|
6764
7117
|
}
|
|
6765
|
-
}
|
|
6766
|
-
};
|
|
6767
|
-
const datePickerRecipe = defineSlotRecipe({
|
|
6768
|
-
className: "datePicker",
|
|
6769
|
-
jsx: ["DatePicker", "DateRangePicker"],
|
|
6770
|
-
slots: [
|
|
6771
|
-
"root",
|
|
6772
|
-
"input",
|
|
6773
|
-
"segment",
|
|
6774
|
-
"separator",
|
|
6775
|
-
"popover",
|
|
6776
|
-
"calendarHeader",
|
|
6777
|
-
"navButton",
|
|
6778
|
-
"calendarGrid",
|
|
6779
|
-
"weekdayLabel",
|
|
6780
|
-
"day"
|
|
6781
|
-
],
|
|
6782
|
-
base: datePickerBase,
|
|
6783
|
-
variants: datePickerVariants,
|
|
7118
|
+
},
|
|
6784
7119
|
defaultVariants: {
|
|
6785
7120
|
size: "md"
|
|
6786
7121
|
}
|
|
6787
7122
|
});
|
|
7123
|
+
const dateMenusBase = {
|
|
7124
|
+
// Row wrapper for DateRangeMenu's two Calendar instances.
|
|
7125
|
+
calendars: {
|
|
7126
|
+
display: "flex",
|
|
7127
|
+
alignItems: "stretch"
|
|
7128
|
+
},
|
|
7129
|
+
// Vertical rule between the two calendars.
|
|
7130
|
+
calendarsDivider: {
|
|
7131
|
+
width: "1",
|
|
7132
|
+
alignSelf: "stretch",
|
|
7133
|
+
bg: "border"
|
|
7134
|
+
},
|
|
7135
|
+
// Right-aligned Cancel/Apply pair for the pending range selection.
|
|
7136
|
+
footer: {
|
|
7137
|
+
display: "flex",
|
|
7138
|
+
justifyContent: "flex-end",
|
|
7139
|
+
alignItems: "center",
|
|
7140
|
+
gap: "8",
|
|
7141
|
+
borderTopWidth: "1",
|
|
7142
|
+
borderTopStyle: "solid",
|
|
7143
|
+
borderColor: "border",
|
|
7144
|
+
px: "16",
|
|
7145
|
+
py: "8"
|
|
7146
|
+
}
|
|
7147
|
+
};
|
|
7148
|
+
const dateMenusRecipe = defineSlotRecipe({
|
|
7149
|
+
className: "dateMenus",
|
|
7150
|
+
jsx: ["DateMenus", "DateMenu", "DateRangeMenu"],
|
|
7151
|
+
slots: ["calendars", "calendarsDivider", "footer"],
|
|
7152
|
+
base: dateMenusBase
|
|
7153
|
+
});
|
|
7154
|
+
const dateTimeMenusBase = {
|
|
7155
|
+
// Row holding the Calendar + divider + time columns, above the footer.
|
|
7156
|
+
content: {
|
|
7157
|
+
display: "flex",
|
|
7158
|
+
alignItems: "stretch"
|
|
7159
|
+
},
|
|
7160
|
+
// 4px-wide vertical divider between the Calendar and the time columns.
|
|
7161
|
+
divider: {
|
|
7162
|
+
width: "4",
|
|
7163
|
+
alignSelf: "stretch",
|
|
7164
|
+
bg: "border"
|
|
7165
|
+
},
|
|
7166
|
+
// Right-aligned Cancel/Apply pair — always present per the Figma spec,
|
|
7167
|
+
// even though DateTimeMenu isn't itself a range variant.
|
|
7168
|
+
footer: {
|
|
7169
|
+
display: "flex",
|
|
7170
|
+
justifyContent: "flex-end",
|
|
7171
|
+
alignItems: "center",
|
|
7172
|
+
w: "full",
|
|
7173
|
+
gap: "8",
|
|
7174
|
+
borderTopWidth: "1",
|
|
7175
|
+
borderTopStyle: "solid",
|
|
7176
|
+
borderColor: "border",
|
|
7177
|
+
px: "16",
|
|
7178
|
+
py: "8"
|
|
7179
|
+
}
|
|
7180
|
+
};
|
|
7181
|
+
const dateTimeMenusRecipe = defineSlotRecipe({
|
|
7182
|
+
className: "dateTimeMenus",
|
|
7183
|
+
jsx: ["DateTimeMenus", "DateTimeMenu"],
|
|
7184
|
+
slots: ["content", "divider", "footer"],
|
|
7185
|
+
base: dateTimeMenusBase
|
|
7186
|
+
});
|
|
6788
7187
|
const formFieldBase = {
|
|
6789
7188
|
container: {
|
|
6790
7189
|
_disabled: {
|
|
@@ -6859,12 +7258,64 @@ const formFieldRecipe = defineSlotRecipe({
|
|
|
6859
7258
|
size: "md"
|
|
6860
7259
|
}
|
|
6861
7260
|
});
|
|
7261
|
+
const kbdRecipe = defineSlotRecipe({
|
|
7262
|
+
className: "kbd",
|
|
7263
|
+
jsx: ["Kbd"],
|
|
7264
|
+
slots: ["kbdGroup", "key"],
|
|
7265
|
+
base: {
|
|
7266
|
+
kbdGroup: {
|
|
7267
|
+
display: "inline-flex",
|
|
7268
|
+
alignItems: "center",
|
|
7269
|
+
gap: "2",
|
|
7270
|
+
verticalAlign: "middle"
|
|
7271
|
+
},
|
|
7272
|
+
key: {
|
|
7273
|
+
display: "inline-flex",
|
|
7274
|
+
alignItems: "center",
|
|
7275
|
+
justifyContent: "center",
|
|
7276
|
+
gap: "1",
|
|
7277
|
+
h: "16",
|
|
7278
|
+
w: "fit",
|
|
7279
|
+
minW: "16",
|
|
7280
|
+
rounded: "6",
|
|
7281
|
+
bg: "bg.neutral",
|
|
7282
|
+
px: "4",
|
|
7283
|
+
fontFamily: "mono",
|
|
7284
|
+
lineHeight: "tight",
|
|
7285
|
+
fontWeight: "bold",
|
|
7286
|
+
textTransform: "uppercase",
|
|
7287
|
+
color: "text.subtle",
|
|
7288
|
+
userSelect: "none",
|
|
7289
|
+
pointerEvents: "none",
|
|
7290
|
+
fontSize: "10"
|
|
7291
|
+
}
|
|
7292
|
+
},
|
|
7293
|
+
variants: {
|
|
7294
|
+
variant: {
|
|
7295
|
+
default: {
|
|
7296
|
+
key: {
|
|
7297
|
+
fontSize: "10"
|
|
7298
|
+
}
|
|
7299
|
+
},
|
|
7300
|
+
symbol: {
|
|
7301
|
+
key: {
|
|
7302
|
+
fontSize: "12"
|
|
7303
|
+
}
|
|
7304
|
+
}
|
|
7305
|
+
}
|
|
7306
|
+
},
|
|
7307
|
+
defaultVariants: {
|
|
7308
|
+
variant: "default"
|
|
7309
|
+
}
|
|
7310
|
+
});
|
|
6862
7311
|
const listItemRecipe = defineSlotRecipe({
|
|
6863
7312
|
className: "listItem",
|
|
6864
7313
|
jsx: ["ListItem"],
|
|
6865
7314
|
slots: [
|
|
6866
7315
|
"wrapper",
|
|
6867
7316
|
"icon",
|
|
7317
|
+
"beforeSlot",
|
|
7318
|
+
"afterSlot",
|
|
6868
7319
|
"itemMain",
|
|
6869
7320
|
"itemLabel",
|
|
6870
7321
|
"itemDescription",
|
|
@@ -6872,11 +7323,14 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
6872
7323
|
],
|
|
6873
7324
|
base: {
|
|
6874
7325
|
wrapper: {
|
|
7326
|
+
...globalBaseStyles,
|
|
6875
7327
|
display: "flex",
|
|
6876
7328
|
alignItems: "start",
|
|
6877
7329
|
justifyContent: "start",
|
|
6878
7330
|
gap: "4",
|
|
6879
7331
|
width: "full",
|
|
7332
|
+
py: "var(--list-item-padding-y)",
|
|
7333
|
+
px: "var(--list-item-padding-x)",
|
|
6880
7334
|
textAlign: "left",
|
|
6881
7335
|
borderWidth: "1",
|
|
6882
7336
|
borderStyle: "solid",
|
|
@@ -6899,24 +7353,20 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
6899
7353
|
_focus: {
|
|
6900
7354
|
bg: "bg.neutral.hovered"
|
|
6901
7355
|
},
|
|
6902
|
-
'&[data-active="true"]': {
|
|
6903
|
-
bg: "bg.neutral.hovered"
|
|
6904
|
-
},
|
|
6905
7356
|
_disabled: {
|
|
6906
7357
|
opacity: "0.4",
|
|
6907
7358
|
cursor: "not-allowed",
|
|
6908
7359
|
pointerEvents: "none"
|
|
6909
7360
|
}
|
|
6910
7361
|
},
|
|
6911
|
-
divider: {
|
|
6912
|
-
width: "full"
|
|
6913
|
-
},
|
|
6914
7362
|
icon: {
|
|
6915
7363
|
aspectRatio: "square",
|
|
6916
7364
|
transitionDuration: "fast",
|
|
6917
7365
|
transitionProperty: "fill",
|
|
6918
7366
|
transitionTimingFunction: "default",
|
|
6919
|
-
flexShrink: "0"
|
|
7367
|
+
flexShrink: "0",
|
|
7368
|
+
w: "var(--list-item-icon-size)",
|
|
7369
|
+
h: "var(--list-item-icon-size)"
|
|
6920
7370
|
},
|
|
6921
7371
|
itemMain: {
|
|
6922
7372
|
display: "flex",
|
|
@@ -6925,11 +7375,24 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
6925
7375
|
minWidth: "0"
|
|
6926
7376
|
},
|
|
6927
7377
|
itemLabel: {
|
|
6928
|
-
color: "text"
|
|
7378
|
+
color: "text",
|
|
7379
|
+
fontSize: "var(--list-item-label-size)"
|
|
6929
7380
|
},
|
|
6930
7381
|
itemDescription: {
|
|
6931
7382
|
color: "text.subtlest",
|
|
7383
|
+
fontSize: "var(--list-item-description-size)",
|
|
6932
7384
|
lineHeight: "tight"
|
|
7385
|
+
},
|
|
7386
|
+
beforeSlot: {
|
|
7387
|
+
ms: "calc(var(--list-item-slot-margin) * -1)"
|
|
7388
|
+
},
|
|
7389
|
+
afterSlot: {
|
|
7390
|
+
me: "calc(var(--list-item-slot-margin) * -1)"
|
|
7391
|
+
},
|
|
7392
|
+
divider: {
|
|
7393
|
+
width: "full",
|
|
7394
|
+
py: "var(--list-item-padding-y)",
|
|
7395
|
+
px: "var(--list-item-padding-x)"
|
|
6933
7396
|
}
|
|
6934
7397
|
},
|
|
6935
7398
|
variants: {
|
|
@@ -6981,81 +7444,11 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
6981
7444
|
},
|
|
6982
7445
|
divider: {}
|
|
6983
7446
|
},
|
|
6984
|
-
density:
|
|
6985
|
-
compact: {
|
|
6986
|
-
wrapper: {
|
|
6987
|
-
py: "3",
|
|
6988
|
-
px: "10"
|
|
6989
|
-
},
|
|
6990
|
-
itemLabel: {
|
|
6991
|
-
textStyle: "sans.md",
|
|
6992
|
-
color: "text"
|
|
6993
|
-
},
|
|
6994
|
-
itemDescription: {
|
|
6995
|
-
textStyle: "sans.xs",
|
|
6996
|
-
lineHeight: "tight"
|
|
6997
|
-
},
|
|
6998
|
-
icon: {
|
|
6999
|
-
w: "24",
|
|
7000
|
-
h: "24"
|
|
7001
|
-
},
|
|
7002
|
-
divider: {
|
|
7003
|
-
py: "3",
|
|
7004
|
-
px: "10"
|
|
7005
|
-
}
|
|
7006
|
-
},
|
|
7007
|
-
comfortable: {
|
|
7008
|
-
wrapper: {
|
|
7009
|
-
py: "7",
|
|
7010
|
-
px: "12"
|
|
7011
|
-
},
|
|
7012
|
-
itemLabel: {
|
|
7013
|
-
textStyle: "sans.md",
|
|
7014
|
-
color: "text"
|
|
7015
|
-
},
|
|
7016
|
-
itemDescription: {
|
|
7017
|
-
textStyle: "sans.xs",
|
|
7018
|
-
lineHeight: "tight"
|
|
7019
|
-
},
|
|
7020
|
-
icon: {
|
|
7021
|
-
w: "24",
|
|
7022
|
-
h: "24"
|
|
7023
|
-
},
|
|
7024
|
-
divider: {
|
|
7025
|
-
py: "7",
|
|
7026
|
-
px: "12"
|
|
7027
|
-
}
|
|
7028
|
-
},
|
|
7029
|
-
spacious: {
|
|
7030
|
-
wrapper: {
|
|
7031
|
-
py: "9",
|
|
7032
|
-
px: "16"
|
|
7033
|
-
},
|
|
7034
|
-
itemLabel: {
|
|
7035
|
-
textStyle: "sans.lg",
|
|
7036
|
-
color: "text"
|
|
7037
|
-
},
|
|
7038
|
-
itemDescription: {
|
|
7039
|
-
textStyle: "sans.sm",
|
|
7040
|
-
lineHeight: "tight"
|
|
7041
|
-
},
|
|
7042
|
-
icon: {
|
|
7043
|
-
w: "28",
|
|
7044
|
-
h: "28"
|
|
7045
|
-
},
|
|
7046
|
-
divider: {
|
|
7047
|
-
py: "9",
|
|
7048
|
-
px: "16"
|
|
7049
|
-
}
|
|
7050
|
-
}
|
|
7051
|
-
},
|
|
7447
|
+
density: listDensityWrapperVars,
|
|
7052
7448
|
selected: {
|
|
7053
7449
|
true: {
|
|
7054
7450
|
wrapper: {
|
|
7055
7451
|
bg: "surface.selected",
|
|
7056
|
-
'&[data-active="true"]': {
|
|
7057
|
-
bg: "surface.selected.hovered"
|
|
7058
|
-
},
|
|
7059
7452
|
_hover: {
|
|
7060
7453
|
bg: "surface.selected.hovered"
|
|
7061
7454
|
},
|
|
@@ -7074,97 +7467,13 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
7074
7467
|
false: {}
|
|
7075
7468
|
},
|
|
7076
7469
|
iconAfter: {
|
|
7077
|
-
true: {},
|
|
7078
|
-
false: {}
|
|
7079
|
-
}
|
|
7080
|
-
},
|
|
7081
|
-
compoundVariants: [
|
|
7082
|
-
{
|
|
7083
|
-
density: "compact",
|
|
7084
|
-
iconBefore: true,
|
|
7085
|
-
css: {
|
|
7086
|
-
wrapper: {
|
|
7087
|
-
ps: "5"
|
|
7088
|
-
}
|
|
7089
|
-
}
|
|
7090
|
-
},
|
|
7091
|
-
{
|
|
7092
|
-
density: "compact",
|
|
7093
|
-
iconAfter: true,
|
|
7094
|
-
css: {
|
|
7095
|
-
wrapper: {
|
|
7096
|
-
pe: "5"
|
|
7097
|
-
}
|
|
7098
|
-
}
|
|
7099
|
-
},
|
|
7100
|
-
{
|
|
7101
|
-
density: "compact",
|
|
7102
|
-
variant: "checkbox",
|
|
7103
|
-
css: {
|
|
7104
|
-
wrapper: {
|
|
7105
|
-
ps: "5"
|
|
7106
|
-
}
|
|
7107
|
-
}
|
|
7108
|
-
},
|
|
7109
|
-
{
|
|
7110
|
-
density: "comfortable",
|
|
7111
|
-
iconBefore: true,
|
|
7112
|
-
css: {
|
|
7113
|
-
wrapper: {
|
|
7114
|
-
ps: "7"
|
|
7115
|
-
}
|
|
7116
|
-
}
|
|
7117
|
-
},
|
|
7118
|
-
{
|
|
7119
|
-
density: "comfortable",
|
|
7120
|
-
iconAfter: true,
|
|
7121
|
-
css: {
|
|
7122
|
-
wrapper: {
|
|
7123
|
-
pe: "7"
|
|
7124
|
-
}
|
|
7125
|
-
}
|
|
7126
|
-
},
|
|
7127
|
-
{
|
|
7128
|
-
density: "comfortable",
|
|
7129
|
-
variant: "checkbox",
|
|
7130
|
-
css: {
|
|
7131
|
-
wrapper: {
|
|
7132
|
-
ps: "7"
|
|
7133
|
-
}
|
|
7134
|
-
}
|
|
7135
|
-
},
|
|
7136
|
-
{
|
|
7137
|
-
density: "spacious",
|
|
7138
|
-
iconBefore: true,
|
|
7139
|
-
css: {
|
|
7140
|
-
wrapper: {
|
|
7141
|
-
ps: "9"
|
|
7142
|
-
}
|
|
7143
|
-
}
|
|
7144
|
-
},
|
|
7145
|
-
{
|
|
7146
|
-
density: "spacious",
|
|
7147
|
-
iconAfter: true,
|
|
7148
|
-
css: {
|
|
7149
|
-
wrapper: {
|
|
7150
|
-
pe: "9"
|
|
7151
|
-
}
|
|
7152
|
-
}
|
|
7153
|
-
},
|
|
7154
|
-
{
|
|
7155
|
-
density: "spacious",
|
|
7156
|
-
variant: "checkbox",
|
|
7157
|
-
css: {
|
|
7158
|
-
wrapper: {
|
|
7159
|
-
ps: "9"
|
|
7160
|
-
}
|
|
7161
|
-
}
|
|
7470
|
+
true: {},
|
|
7471
|
+
false: {}
|
|
7162
7472
|
}
|
|
7163
|
-
|
|
7473
|
+
},
|
|
7164
7474
|
defaultVariants: {
|
|
7165
7475
|
variant: "default",
|
|
7166
|
-
density: "compact"
|
|
7167
|
-
selected: false
|
|
7476
|
+
density: "compact"
|
|
7168
7477
|
}
|
|
7169
7478
|
});
|
|
7170
7479
|
const listItemGroupRecipe = defineSlotRecipe({
|
|
@@ -7176,52 +7485,23 @@ const listItemGroupRecipe = defineSlotRecipe({
|
|
|
7176
7485
|
width: "full"
|
|
7177
7486
|
},
|
|
7178
7487
|
groupLabel: {
|
|
7488
|
+
...globalBaseStyles,
|
|
7179
7489
|
color: "text.subtlest",
|
|
7490
|
+
px: "var(--list-group-label-padding-x)",
|
|
7491
|
+
pt: "var(--list-group-label-padding-top)",
|
|
7492
|
+
pb: "var(--list-group-label-padding-bottom)",
|
|
7493
|
+
fontSize: "var(--list-group-label-size)",
|
|
7180
7494
|
borderStyle: "solid",
|
|
7181
7495
|
borderWidth: "1",
|
|
7182
7496
|
borderColor: "transparent"
|
|
7183
7497
|
},
|
|
7184
|
-
divider: {
|
|
7498
|
+
divider: {
|
|
7499
|
+
my: "var(--list-group-divider-margin-y)",
|
|
7500
|
+
mx: "var(--list-group-divider-margin-x)"
|
|
7501
|
+
}
|
|
7185
7502
|
},
|
|
7186
7503
|
variants: {
|
|
7187
|
-
density:
|
|
7188
|
-
compact: {
|
|
7189
|
-
groupLabel: {
|
|
7190
|
-
px: "10",
|
|
7191
|
-
pt: "8",
|
|
7192
|
-
pb: "2",
|
|
7193
|
-
fontSize: "12"
|
|
7194
|
-
},
|
|
7195
|
-
divider: {
|
|
7196
|
-
my: "4",
|
|
7197
|
-
mx: "10"
|
|
7198
|
-
}
|
|
7199
|
-
},
|
|
7200
|
-
comfortable: {
|
|
7201
|
-
groupLabel: {
|
|
7202
|
-
px: "12",
|
|
7203
|
-
pt: "12",
|
|
7204
|
-
pb: "4",
|
|
7205
|
-
fontSize: "14"
|
|
7206
|
-
},
|
|
7207
|
-
divider: {
|
|
7208
|
-
my: "6",
|
|
7209
|
-
mx: "12"
|
|
7210
|
-
}
|
|
7211
|
-
},
|
|
7212
|
-
spacious: {
|
|
7213
|
-
groupLabel: {
|
|
7214
|
-
px: "16",
|
|
7215
|
-
pt: "16",
|
|
7216
|
-
pb: "6",
|
|
7217
|
-
fontSize: "16"
|
|
7218
|
-
},
|
|
7219
|
-
divider: {
|
|
7220
|
-
my: "8",
|
|
7221
|
-
mx: "16"
|
|
7222
|
-
}
|
|
7223
|
-
}
|
|
7224
|
-
}
|
|
7504
|
+
density: listDensityWrapperVars
|
|
7225
7505
|
},
|
|
7226
7506
|
defaultVariants: {
|
|
7227
7507
|
density: "compact"
|
|
@@ -7234,7 +7514,6 @@ const menuBase = {
|
|
|
7234
7514
|
borderRadius: "4",
|
|
7235
7515
|
boxShadow: "overlay",
|
|
7236
7516
|
overflow: "hidden",
|
|
7237
|
-
zIndex: "100",
|
|
7238
7517
|
transitionProperty: "width, height",
|
|
7239
7518
|
transitionDuration: "normal",
|
|
7240
7519
|
transitionTimingFunction: "default",
|
|
@@ -7249,13 +7528,13 @@ const menuBase = {
|
|
|
7249
7528
|
borderWidth: "0",
|
|
7250
7529
|
borderBlockWidth: "3",
|
|
7251
7530
|
borderColor: "transparent",
|
|
7252
|
-
bg: { base: "tan.
|
|
7531
|
+
bg: { base: "tan.10", _dark: "tan.60" },
|
|
7253
7532
|
width: "full",
|
|
7254
7533
|
textAlign: "left",
|
|
7255
7534
|
cursor: "pointer",
|
|
7256
7535
|
color: "text",
|
|
7257
7536
|
_hover: {
|
|
7258
|
-
bg: { base: "tan.
|
|
7537
|
+
bg: { base: "tan.20", _dark: "tan.50" }
|
|
7259
7538
|
},
|
|
7260
7539
|
_active: {
|
|
7261
7540
|
bg: { base: "tan.20", _dark: "tan.70" }
|
|
@@ -7295,6 +7574,20 @@ const menuBase = {
|
|
|
7295
7574
|
}
|
|
7296
7575
|
};
|
|
7297
7576
|
const menuVariants = {
|
|
7577
|
+
// Floating content inherits its layer from FloatingLayerContext, so a menu
|
|
7578
|
+
// opened inside a modal stacks above the dialog instead of behind it.
|
|
7579
|
+
layer: {
|
|
7580
|
+
elevated: {
|
|
7581
|
+
wrapper: {
|
|
7582
|
+
zIndex: "elevated"
|
|
7583
|
+
}
|
|
7584
|
+
},
|
|
7585
|
+
modalFloating: {
|
|
7586
|
+
wrapper: {
|
|
7587
|
+
zIndex: "modalFloating"
|
|
7588
|
+
}
|
|
7589
|
+
}
|
|
7590
|
+
},
|
|
7298
7591
|
density: {
|
|
7299
7592
|
compact: {
|
|
7300
7593
|
backHeader: {
|
|
@@ -7352,15 +7645,31 @@ const menuRecipe = defineSlotRecipe({
|
|
|
7352
7645
|
base: menuBase,
|
|
7353
7646
|
variants: menuVariants,
|
|
7354
7647
|
defaultVariants: {
|
|
7355
|
-
density: "compact"
|
|
7648
|
+
density: "compact",
|
|
7649
|
+
layer: "elevated"
|
|
7356
7650
|
}
|
|
7357
7651
|
});
|
|
7358
7652
|
const modalBase = {
|
|
7653
|
+
positionWrapper: {
|
|
7654
|
+
"--wrapper-p": {
|
|
7655
|
+
base: "token(sizes.0)",
|
|
7656
|
+
xs: "token(sizes.12)",
|
|
7657
|
+
sm: "token(sizes.32)",
|
|
7658
|
+
md: "token(sizes.56)"
|
|
7659
|
+
},
|
|
7660
|
+
position: "fixed",
|
|
7661
|
+
inset: "0",
|
|
7662
|
+
display: "grid",
|
|
7663
|
+
p: "var(--wrapper-p)",
|
|
7664
|
+
w: "100vw",
|
|
7665
|
+
h: "100vh",
|
|
7666
|
+
zIndex: 1100
|
|
7667
|
+
},
|
|
7359
7668
|
overlay: {
|
|
7360
7669
|
position: "fixed",
|
|
7361
7670
|
inset: "0",
|
|
7362
7671
|
bg: "blanket",
|
|
7363
|
-
zIndex:
|
|
7672
|
+
zIndex: 1100,
|
|
7364
7673
|
// Initial state matches animation start
|
|
7365
7674
|
opacity: "0",
|
|
7366
7675
|
// Animation handled via data-state
|
|
@@ -7370,26 +7679,16 @@ const modalBase = {
|
|
|
7370
7679
|
}
|
|
7371
7680
|
},
|
|
7372
7681
|
container: {
|
|
7373
|
-
|
|
7374
|
-
top: "50%",
|
|
7375
|
-
left: "50%",
|
|
7682
|
+
...globalBaseStyles,
|
|
7376
7683
|
display: "flex",
|
|
7377
7684
|
flexDirection: "column",
|
|
7378
|
-
|
|
7379
|
-
|
|
7685
|
+
maxW: "calc(100vw - (2 * var(--wrapper-p)))",
|
|
7686
|
+
maxH: "calc(100vh - (2 * var(--wrapper-p)))",
|
|
7380
7687
|
bg: "surface.overlay",
|
|
7381
7688
|
borderRadius: "12",
|
|
7382
7689
|
boxShadow: "overlay",
|
|
7383
7690
|
outline: "none",
|
|
7384
|
-
zIndex:
|
|
7385
|
-
// Initial state matches animation start
|
|
7386
|
-
opacity: "0",
|
|
7387
|
-
transform: "[translate(-50%, -50%) scale(0.95) translateY(-10px)]",
|
|
7388
|
-
// Animation handled via data-state
|
|
7389
|
-
animation: "modalScaleIn 150ms ease-out forwards",
|
|
7390
|
-
'&[data-state="closing"]': {
|
|
7391
|
-
animation: "modalScaleOut 150ms ease-out forwards"
|
|
7392
|
-
}
|
|
7691
|
+
zIndex: 1101
|
|
7393
7692
|
},
|
|
7394
7693
|
header: {
|
|
7395
7694
|
display: "flex",
|
|
@@ -7427,68 +7726,91 @@ const modalBase = {
|
|
|
7427
7726
|
borderTop: "default"
|
|
7428
7727
|
}
|
|
7429
7728
|
};
|
|
7729
|
+
const mobile = {
|
|
7730
|
+
xsDown: {
|
|
7731
|
+
width: "100vw",
|
|
7732
|
+
height: "100vh",
|
|
7733
|
+
maxWidth: "100vw",
|
|
7734
|
+
maxHeight: "100vh",
|
|
7735
|
+
borderRadius: "0"
|
|
7736
|
+
}
|
|
7737
|
+
};
|
|
7430
7738
|
const modalVariants = {
|
|
7431
7739
|
size: {
|
|
7432
7740
|
sm: {
|
|
7433
7741
|
container: {
|
|
7434
|
-
|
|
7742
|
+
w: "md",
|
|
7743
|
+
...mobile
|
|
7435
7744
|
}
|
|
7436
7745
|
},
|
|
7437
7746
|
md: {
|
|
7438
7747
|
container: {
|
|
7439
|
-
|
|
7748
|
+
w: "xl",
|
|
7749
|
+
...mobile
|
|
7440
7750
|
}
|
|
7441
7751
|
},
|
|
7442
7752
|
lg: {
|
|
7443
7753
|
container: {
|
|
7444
|
-
|
|
7754
|
+
w: "3xl",
|
|
7755
|
+
...mobile
|
|
7445
7756
|
}
|
|
7446
7757
|
},
|
|
7447
7758
|
xl: {
|
|
7448
7759
|
container: {
|
|
7449
|
-
|
|
7760
|
+
w: "5xl",
|
|
7761
|
+
...mobile
|
|
7450
7762
|
}
|
|
7451
7763
|
},
|
|
7452
7764
|
full: {
|
|
7453
7765
|
container: {
|
|
7454
|
-
|
|
7766
|
+
w: "95vw",
|
|
7767
|
+
...mobile
|
|
7455
7768
|
}
|
|
7456
7769
|
},
|
|
7457
|
-
|
|
7770
|
+
fullPage: {
|
|
7771
|
+
positionWrapper: {
|
|
7772
|
+
"--wrapper-p": "token(sizes.0)"
|
|
7773
|
+
},
|
|
7458
7774
|
container: {
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
borderRadius: "0"
|
|
7775
|
+
w: "100vw",
|
|
7776
|
+
h: "100vh",
|
|
7777
|
+
maxW: "100vw",
|
|
7778
|
+
maxH: "100vh",
|
|
7779
|
+
borderRadius: "0",
|
|
7780
|
+
...mobile
|
|
7464
7781
|
}
|
|
7465
7782
|
}
|
|
7466
7783
|
},
|
|
7467
|
-
|
|
7468
|
-
|
|
7784
|
+
position: {
|
|
7785
|
+
centered: {
|
|
7786
|
+
positionWrapper: {
|
|
7787
|
+
placeContent: "center"
|
|
7788
|
+
},
|
|
7469
7789
|
container: {
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
maxWidth: "[100vw]",
|
|
7474
|
-
maxHeight: "[100vh]",
|
|
7475
|
-
borderRadius: "0"
|
|
7790
|
+
animation: "modalScaleIn 150ms ease-out forwards",
|
|
7791
|
+
'&[data-state="closing"]': {
|
|
7792
|
+
animation: "modalScaleOut 150ms ease-out forwards"
|
|
7476
7793
|
}
|
|
7477
7794
|
}
|
|
7478
7795
|
},
|
|
7479
|
-
|
|
7796
|
+
top: {
|
|
7797
|
+
positionWrapper: {
|
|
7798
|
+
placeContent: "start center"
|
|
7799
|
+
},
|
|
7480
7800
|
container: {
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7801
|
+
animation: "modalScaleInTop 150ms ease-out forwards",
|
|
7802
|
+
'&[data-state="closing"]': {
|
|
7803
|
+
animation: "modalScaleOutTop 150ms ease-out forwards"
|
|
7804
|
+
}
|
|
7484
7805
|
}
|
|
7485
7806
|
}
|
|
7486
7807
|
}
|
|
7487
7808
|
};
|
|
7488
7809
|
const modalRecipe = defineSlotRecipe({
|
|
7489
7810
|
className: "modal",
|
|
7490
|
-
jsx: ["
|
|
7811
|
+
jsx: ["ModalWrapper", "ModalHeader", "ModalBody", "ModalFooter", "Modal"],
|
|
7491
7812
|
slots: [
|
|
7813
|
+
"positionWrapper",
|
|
7492
7814
|
"overlay",
|
|
7493
7815
|
"container",
|
|
7494
7816
|
"header",
|
|
@@ -7500,8 +7822,8 @@ const modalRecipe = defineSlotRecipe({
|
|
|
7500
7822
|
base: modalBase,
|
|
7501
7823
|
variants: modalVariants,
|
|
7502
7824
|
defaultVariants: {
|
|
7503
|
-
|
|
7504
|
-
|
|
7825
|
+
size: "md",
|
|
7826
|
+
position: "centered"
|
|
7505
7827
|
}
|
|
7506
7828
|
});
|
|
7507
7829
|
const radioRecipe = defineSlotRecipe({
|
|
@@ -7531,13 +7853,13 @@ const radioRecipe = defineSlotRecipe({
|
|
|
7531
7853
|
cursor: "inherit",
|
|
7532
7854
|
"& ~ [name='radio']": {
|
|
7533
7855
|
display: "inline-grid",
|
|
7534
|
-
zIndex: "
|
|
7856
|
+
zIndex: "3"
|
|
7535
7857
|
},
|
|
7536
7858
|
_checked: {
|
|
7537
7859
|
"& ~ [name='radio-checked']": {
|
|
7538
7860
|
display: "inline-grid",
|
|
7539
7861
|
fill: "icon",
|
|
7540
|
-
zIndex: "
|
|
7862
|
+
zIndex: "2"
|
|
7541
7863
|
},
|
|
7542
7864
|
"& ~ [name='radio']": {
|
|
7543
7865
|
display: "none"
|
|
@@ -7547,7 +7869,7 @@ const radioRecipe = defineSlotRecipe({
|
|
|
7547
7869
|
display: "inline-grid",
|
|
7548
7870
|
'& ~ svg:not([name="circle"])': {
|
|
7549
7871
|
fill: "red.50",
|
|
7550
|
-
zIndex: "
|
|
7872
|
+
zIndex: "3"
|
|
7551
7873
|
}
|
|
7552
7874
|
},
|
|
7553
7875
|
_focusVisible: {
|
|
@@ -7555,7 +7877,7 @@ const radioRecipe = defineSlotRecipe({
|
|
|
7555
7877
|
display: "inline-grid",
|
|
7556
7878
|
position: "absolute",
|
|
7557
7879
|
fill: "border.focused",
|
|
7558
|
-
zIndex: "
|
|
7880
|
+
zIndex: "2"
|
|
7559
7881
|
}
|
|
7560
7882
|
}
|
|
7561
7883
|
},
|
|
@@ -7565,10 +7887,10 @@ const radioRecipe = defineSlotRecipe({
|
|
|
7565
7887
|
inset: "0",
|
|
7566
7888
|
width: "24",
|
|
7567
7889
|
height: "24",
|
|
7568
|
-
zIndex: "
|
|
7890
|
+
zIndex: "3",
|
|
7569
7891
|
"&:is([name='radio'])": {
|
|
7570
7892
|
fill: "icon.subtlest",
|
|
7571
|
-
zIndex: "
|
|
7893
|
+
zIndex: "3"
|
|
7572
7894
|
}
|
|
7573
7895
|
},
|
|
7574
7896
|
radioBg: {
|
|
@@ -7582,6 +7904,289 @@ const radioRecipe = defineSlotRecipe({
|
|
|
7582
7904
|
}
|
|
7583
7905
|
}
|
|
7584
7906
|
});
|
|
7907
|
+
const segmentedFieldsBase = {
|
|
7908
|
+
container: {
|
|
7909
|
+
...globalBaseStyles,
|
|
7910
|
+
"--input-py": "token(sizes.3)",
|
|
7911
|
+
"--input-px": "token(sizes.10)",
|
|
7912
|
+
"--slot-size": "token(sizes.20)",
|
|
7913
|
+
"--slot-px": "token(sizes.6)",
|
|
7914
|
+
position: "relative",
|
|
7915
|
+
display: "flex",
|
|
7916
|
+
alignItems: "center",
|
|
7917
|
+
width: "full",
|
|
7918
|
+
py: "var(--input-py)",
|
|
7919
|
+
px: "var(--input-px)",
|
|
7920
|
+
bg: "bg.input",
|
|
7921
|
+
borderWidth: "1",
|
|
7922
|
+
borderStyle: "solid",
|
|
7923
|
+
borderColor: "border.input",
|
|
7924
|
+
borderRadius: "4",
|
|
7925
|
+
outlineWidth: "2",
|
|
7926
|
+
outlineOffset: "-1",
|
|
7927
|
+
outlineStyle: "solid",
|
|
7928
|
+
outlineColor: "transparent",
|
|
7929
|
+
transitionDuration: "fast",
|
|
7930
|
+
transitionProperty: "background, border-color, outline-color",
|
|
7931
|
+
transitionTimingFunction: "default",
|
|
7932
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
7933
|
+
bg: "bg.input.pressed",
|
|
7934
|
+
borderColor: "border.focused",
|
|
7935
|
+
outlineColor: "border.focused"
|
|
7936
|
+
},
|
|
7937
|
+
_open: {
|
|
7938
|
+
bg: "bg.input.pressed",
|
|
7939
|
+
borderColor: "border.focused",
|
|
7940
|
+
outlineColor: "border.focused"
|
|
7941
|
+
},
|
|
7942
|
+
_disabled: {
|
|
7943
|
+
bg: "bg.disabled",
|
|
7944
|
+
borderColor: "border.disabled",
|
|
7945
|
+
cursor: "not-allowed",
|
|
7946
|
+
pointerEvents: "none"
|
|
7947
|
+
},
|
|
7948
|
+
_error: {
|
|
7949
|
+
borderColor: "border.danger",
|
|
7950
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
7951
|
+
borderColor: "border.danger",
|
|
7952
|
+
outlineColor: "border.danger"
|
|
7953
|
+
}
|
|
7954
|
+
},
|
|
7955
|
+
_invalid: {
|
|
7956
|
+
borderColor: "border.danger",
|
|
7957
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
7958
|
+
borderColor: "border.danger",
|
|
7959
|
+
outlineColor: "border.danger"
|
|
7960
|
+
}
|
|
7961
|
+
}
|
|
7962
|
+
},
|
|
7963
|
+
slot: {
|
|
7964
|
+
display: "inline-flex",
|
|
7965
|
+
alignItems: "center",
|
|
7966
|
+
transitionDuration: "fast",
|
|
7967
|
+
transitionProperty: "all",
|
|
7968
|
+
transitionTimingFunction: "default",
|
|
7969
|
+
flex: "0 0 var(--slot-size)",
|
|
7970
|
+
px: "var(--slot-px)",
|
|
7971
|
+
fill: "icon.decorative",
|
|
7972
|
+
pointerEvents: "none",
|
|
7973
|
+
zIndex: 1
|
|
7974
|
+
},
|
|
7975
|
+
buttonSlot: {
|
|
7976
|
+
display: "inline-flex",
|
|
7977
|
+
alignItems: "center",
|
|
7978
|
+
flex: "0 0 var(--slot-size)",
|
|
7979
|
+
px: "0",
|
|
7980
|
+
zIndex: 1,
|
|
7981
|
+
m: "-1"
|
|
7982
|
+
}
|
|
7983
|
+
};
|
|
7984
|
+
const segmentedFieldsVariants = {
|
|
7985
|
+
size: {
|
|
7986
|
+
sm: {
|
|
7987
|
+
container: {
|
|
7988
|
+
"--input-py": "token(sizes.0)",
|
|
7989
|
+
"--input-px": "token(sizes.8)",
|
|
7990
|
+
"--slot-size": "token(sizes.16)",
|
|
7991
|
+
"--slot-px": "token(sizes.4)"
|
|
7992
|
+
}
|
|
7993
|
+
},
|
|
7994
|
+
md: {
|
|
7995
|
+
container: {
|
|
7996
|
+
"--input-py": "token(sizes.3)",
|
|
7997
|
+
"--input-px": "token(sizes.10)",
|
|
7998
|
+
"--slot-size": "token(sizes.20)",
|
|
7999
|
+
"--slot-px": "token(sizes.6)"
|
|
8000
|
+
}
|
|
8001
|
+
},
|
|
8002
|
+
lg: {
|
|
8003
|
+
container: {
|
|
8004
|
+
"--input-py": "token(sizes.7)",
|
|
8005
|
+
"--input-px": "token(sizes.12)",
|
|
8006
|
+
"--slot-size": "token(sizes.24)",
|
|
8007
|
+
"--slot-px": "token(sizes.8)"
|
|
8008
|
+
}
|
|
8009
|
+
},
|
|
8010
|
+
xl: {
|
|
8011
|
+
container: {
|
|
8012
|
+
"--input-py": "token(sizes.9)",
|
|
8013
|
+
"--input-px": "token(sizes.16)",
|
|
8014
|
+
"--slot-size": "token(sizes.28)",
|
|
8015
|
+
"--slot-px": "token(sizes.10)"
|
|
8016
|
+
}
|
|
8017
|
+
}
|
|
8018
|
+
},
|
|
8019
|
+
field: {
|
|
8020
|
+
date: {
|
|
8021
|
+
container: {
|
|
8022
|
+
minW: "128"
|
|
8023
|
+
}
|
|
8024
|
+
},
|
|
8025
|
+
time: {
|
|
8026
|
+
container: {
|
|
8027
|
+
minW: "104"
|
|
8028
|
+
}
|
|
8029
|
+
},
|
|
8030
|
+
dateTime: {
|
|
8031
|
+
container: {
|
|
8032
|
+
minW: "216"
|
|
8033
|
+
}
|
|
8034
|
+
}
|
|
8035
|
+
},
|
|
8036
|
+
range: {
|
|
8037
|
+
date: {
|
|
8038
|
+
container: {
|
|
8039
|
+
minW: "248"
|
|
8040
|
+
}
|
|
8041
|
+
},
|
|
8042
|
+
time: {
|
|
8043
|
+
container: {
|
|
8044
|
+
minW: "200"
|
|
8045
|
+
}
|
|
8046
|
+
}
|
|
8047
|
+
},
|
|
8048
|
+
before: {
|
|
8049
|
+
true: {
|
|
8050
|
+
container: {
|
|
8051
|
+
ps: "0"
|
|
8052
|
+
},
|
|
8053
|
+
buttonSlot: {
|
|
8054
|
+
"& button": {
|
|
8055
|
+
borderTopRightRadius: "0",
|
|
8056
|
+
borderBottomRightRadius: "0"
|
|
8057
|
+
}
|
|
8058
|
+
}
|
|
8059
|
+
}
|
|
8060
|
+
},
|
|
8061
|
+
after: {
|
|
8062
|
+
true: {
|
|
8063
|
+
container: {
|
|
8064
|
+
pe: "0"
|
|
8065
|
+
},
|
|
8066
|
+
buttonSlot: {
|
|
8067
|
+
"& button": {
|
|
8068
|
+
borderTopLeftRadius: "0",
|
|
8069
|
+
borderBottomLeftRadius: "0"
|
|
8070
|
+
}
|
|
8071
|
+
}
|
|
8072
|
+
}
|
|
8073
|
+
}
|
|
8074
|
+
};
|
|
8075
|
+
const segmentedFieldsRecipe = defineSlotRecipe({
|
|
8076
|
+
className: "segmentedFields",
|
|
8077
|
+
jsx: [
|
|
8078
|
+
"SegmentedFields",
|
|
8079
|
+
"DateInput",
|
|
8080
|
+
"DateRangeInput",
|
|
8081
|
+
"TimeInput",
|
|
8082
|
+
"TimeRangeInput",
|
|
8083
|
+
"DateTimeInput"
|
|
8084
|
+
],
|
|
8085
|
+
slots: ["container", "slot", "buttonSlot"],
|
|
8086
|
+
base: segmentedFieldsBase,
|
|
8087
|
+
variants: segmentedFieldsVariants,
|
|
8088
|
+
defaultVariants: {
|
|
8089
|
+
size: "md"
|
|
8090
|
+
}
|
|
8091
|
+
});
|
|
8092
|
+
const segmentedInputsBase = {
|
|
8093
|
+
root: {
|
|
8094
|
+
...globalBaseStyles,
|
|
8095
|
+
display: "inline-flex",
|
|
8096
|
+
alignItems: "center",
|
|
8097
|
+
gap: "0",
|
|
8098
|
+
width: "fit",
|
|
8099
|
+
color: "text",
|
|
8100
|
+
fontFamily: "mono",
|
|
8101
|
+
lineHeight: "default",
|
|
8102
|
+
cursor: "text",
|
|
8103
|
+
userSelect: "none",
|
|
8104
|
+
flexGrow: "0",
|
|
8105
|
+
flexShrink: "0",
|
|
8106
|
+
flexBasis: "fit",
|
|
8107
|
+
minW: "0",
|
|
8108
|
+
_disabled: {
|
|
8109
|
+
color: "text.disabled",
|
|
8110
|
+
cursor: "not-allowed",
|
|
8111
|
+
pointerEvents: "none"
|
|
8112
|
+
}
|
|
8113
|
+
},
|
|
8114
|
+
// Individual focusable segment span (MM, DD, YYYY, HH, AM/PM, ...)
|
|
8115
|
+
segment: {
|
|
8116
|
+
display: "inline-flex",
|
|
8117
|
+
alignItems: "center",
|
|
8118
|
+
justifyContent: "center",
|
|
8119
|
+
outline: "none",
|
|
8120
|
+
borderRadius: "2",
|
|
8121
|
+
cursor: "default",
|
|
8122
|
+
userSelect: "none",
|
|
8123
|
+
fontFamily: "mono",
|
|
8124
|
+
fontVariantNumeric: "tabular-nums",
|
|
8125
|
+
textAlign: "center",
|
|
8126
|
+
color: "text",
|
|
8127
|
+
_focus: {
|
|
8128
|
+
// Cetec highlights a focused segment with bg.accent.gold.subtlest.
|
|
8129
|
+
// okshaun has no gold palette, so that emitted as literal text, the
|
|
8130
|
+
// color-mix was invalid and the segment had no focus highlight at all.
|
|
8131
|
+
// bg.selected is okshaun's equivalent subtle selection background.
|
|
8132
|
+
bg: "bg.selected"
|
|
8133
|
+
},
|
|
8134
|
+
_groupDisabled: {
|
|
8135
|
+
color: "text.disabled"
|
|
8136
|
+
}
|
|
8137
|
+
},
|
|
8138
|
+
// The "/" or ":" or " " literal between segments. `minWidth: '0.75em'`
|
|
8139
|
+
// is a deliberate floor, not decoration — the " " separators (minute/AM-PM,
|
|
8140
|
+
// and the gap between a DateTimeInput's date/time halves) render at 0
|
|
8141
|
+
// layout width in the Recursive Variable font at this size/axis regardless
|
|
8142
|
+
// of `whiteSpace: 'pre'` (confirmed: real space character, zero measured
|
|
8143
|
+
// width) — a font-rendering quirk, not a whitespace-collapsing bug. The
|
|
8144
|
+
// floor keeps the visual gap independent of what the glyph itself measures.
|
|
8145
|
+
separator: {
|
|
8146
|
+
color: "text.placeholder",
|
|
8147
|
+
textAlign: "center",
|
|
8148
|
+
userSelect: "none",
|
|
8149
|
+
whiteSpace: "pre",
|
|
8150
|
+
minWidth: "0.75em",
|
|
8151
|
+
display: "inline-flex",
|
|
8152
|
+
alignItems: "center",
|
|
8153
|
+
justifyContent: "center",
|
|
8154
|
+
"&[data-gap=none]": {
|
|
8155
|
+
minWidth: "0",
|
|
8156
|
+
px: "0"
|
|
8157
|
+
},
|
|
8158
|
+
"&[data-gap=tight]": {
|
|
8159
|
+
minWidth: "0.5em",
|
|
8160
|
+
px: "1"
|
|
8161
|
+
},
|
|
8162
|
+
"&[data-gap=normal]": {
|
|
8163
|
+
minWidth: "0.75em",
|
|
8164
|
+
px: "1"
|
|
8165
|
+
},
|
|
8166
|
+
"&[data-gap=loose]": {
|
|
8167
|
+
minWidth: "1.25em",
|
|
8168
|
+
px: "2"
|
|
8169
|
+
}
|
|
8170
|
+
}
|
|
8171
|
+
};
|
|
8172
|
+
const segmentedInputsVariants = {
|
|
8173
|
+
size: {
|
|
8174
|
+
sm: { root: { fontSize: "14" } },
|
|
8175
|
+
md: { root: { fontSize: "16" } },
|
|
8176
|
+
lg: { root: { fontSize: "16" } },
|
|
8177
|
+
xl: { root: { fontSize: "20" } }
|
|
8178
|
+
}
|
|
8179
|
+
};
|
|
8180
|
+
const segmentedInputsRecipe = defineSlotRecipe({
|
|
8181
|
+
className: "segmentedInputs",
|
|
8182
|
+
jsx: ["SegmentedInputs", "SegmentedInput", "SegmentedDate", "SegmentedTime"],
|
|
8183
|
+
slots: ["root", "segment", "separator"],
|
|
8184
|
+
base: segmentedInputsBase,
|
|
8185
|
+
variants: segmentedInputsVariants,
|
|
8186
|
+
defaultVariants: {
|
|
8187
|
+
size: "md"
|
|
8188
|
+
}
|
|
8189
|
+
});
|
|
7585
8190
|
const selectBase = {
|
|
7586
8191
|
// The trigger button container
|
|
7587
8192
|
trigger: {
|
|
@@ -7645,6 +8250,12 @@ const selectBase = {
|
|
|
7645
8250
|
placeholder: {
|
|
7646
8251
|
color: "text.subtlest"
|
|
7647
8252
|
},
|
|
8253
|
+
chips: {
|
|
8254
|
+
flex: 1,
|
|
8255
|
+
minWidth: "0",
|
|
8256
|
+
alignItems: "center",
|
|
8257
|
+
color: "text"
|
|
8258
|
+
},
|
|
7648
8259
|
// The chevron/arrow icon
|
|
7649
8260
|
icon: {
|
|
7650
8261
|
display: "flex",
|
|
@@ -7710,7 +8321,7 @@ const selectVariants = {
|
|
|
7710
8321
|
const selectRecipe = defineSlotRecipe({
|
|
7711
8322
|
className: "select",
|
|
7712
8323
|
jsx: ["Select", "SelectTrigger"],
|
|
7713
|
-
slots: ["trigger", "value", "placeholder", "icon"],
|
|
8324
|
+
slots: ["trigger", "value", "placeholder", "chips", "icon"],
|
|
7714
8325
|
base: selectBase,
|
|
7715
8326
|
variants: selectVariants,
|
|
7716
8327
|
defaultVariants: {
|
|
@@ -7718,52 +8329,58 @@ const selectRecipe = defineSlotRecipe({
|
|
|
7718
8329
|
}
|
|
7719
8330
|
});
|
|
7720
8331
|
const spinnerBase = {
|
|
7721
|
-
|
|
8332
|
+
container: {
|
|
8333
|
+
position: "relative",
|
|
8334
|
+
display: "grid",
|
|
8335
|
+
placeContent: "center",
|
|
8336
|
+
zIndex: "100",
|
|
8337
|
+
w: "fit",
|
|
8338
|
+
h: "fit",
|
|
8339
|
+
flex: "0"
|
|
8340
|
+
},
|
|
8341
|
+
spinnerSvg: {
|
|
7722
8342
|
aspectRatio: "square",
|
|
7723
|
-
rounded: "100",
|
|
7724
|
-
borderWidth: "3",
|
|
7725
|
-
borderStyle: "solid",
|
|
7726
|
-
borderColor: "transparent",
|
|
7727
|
-
borderTopColor: "icon",
|
|
7728
|
-
borderBottomColor: "icon",
|
|
7729
8343
|
animation: "spin",
|
|
7730
|
-
|
|
8344
|
+
fill: "icon",
|
|
8345
|
+
isolation: "isolate",
|
|
8346
|
+
flex: "0"
|
|
7731
8347
|
}
|
|
7732
8348
|
};
|
|
7733
8349
|
const spinnerVariants = {
|
|
7734
8350
|
size: {
|
|
7735
8351
|
xs: {
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
8352
|
+
spinnerSvg: {
|
|
8353
|
+
h: "16",
|
|
8354
|
+
w: "16",
|
|
8355
|
+
minHeight: "16"
|
|
7740
8356
|
}
|
|
7741
8357
|
},
|
|
7742
8358
|
sm: {
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
8359
|
+
spinnerSvg: {
|
|
8360
|
+
h: "20",
|
|
8361
|
+
w: "20",
|
|
8362
|
+
minHeight: "20"
|
|
7747
8363
|
}
|
|
7748
8364
|
},
|
|
7749
8365
|
md: {
|
|
7750
|
-
|
|
7751
|
-
|
|
8366
|
+
spinnerSvg: {
|
|
8367
|
+
h: "24",
|
|
8368
|
+
w: "24",
|
|
7752
8369
|
minHeight: "24"
|
|
7753
8370
|
}
|
|
7754
8371
|
},
|
|
7755
8372
|
lg: {
|
|
7756
|
-
|
|
7757
|
-
|
|
8373
|
+
spinnerSvg: {
|
|
8374
|
+
h: "32",
|
|
8375
|
+
w: "32",
|
|
7758
8376
|
minHeight: "32"
|
|
7759
8377
|
}
|
|
7760
8378
|
}
|
|
7761
8379
|
},
|
|
7762
8380
|
inverse: {
|
|
7763
8381
|
true: {
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
borderBottomColor: "icon.inverse"
|
|
8382
|
+
spinnerSvg: {
|
|
8383
|
+
fill: "icon.inverse"
|
|
7767
8384
|
}
|
|
7768
8385
|
}
|
|
7769
8386
|
},
|
|
@@ -7772,11 +8389,8 @@ const spinnerVariants = {
|
|
|
7772
8389
|
container: {
|
|
7773
8390
|
position: "absolute",
|
|
7774
8391
|
inset: "0",
|
|
7775
|
-
display: "grid",
|
|
7776
|
-
placeContent: "center",
|
|
7777
8392
|
width: "full",
|
|
7778
|
-
height: "full"
|
|
7779
|
-
zIndex: "100"
|
|
8393
|
+
height: "full"
|
|
7780
8394
|
}
|
|
7781
8395
|
}
|
|
7782
8396
|
}
|
|
@@ -7784,7 +8398,7 @@ const spinnerVariants = {
|
|
|
7784
8398
|
const spinnerRecipe = defineSlotRecipe({
|
|
7785
8399
|
className: "spinner",
|
|
7786
8400
|
jsx: ["Spinner"],
|
|
7787
|
-
slots: ["container", "
|
|
8401
|
+
slots: ["container", "spinnerSvg"],
|
|
7788
8402
|
base: spinnerBase,
|
|
7789
8403
|
variants: spinnerVariants,
|
|
7790
8404
|
defaultVariants: {
|
|
@@ -7793,33 +8407,54 @@ const spinnerRecipe = defineSlotRecipe({
|
|
|
7793
8407
|
});
|
|
7794
8408
|
const textInputBase = {
|
|
7795
8409
|
container: {
|
|
8410
|
+
...globalBaseStyles,
|
|
8411
|
+
"--input-py": "token(sizes.3)",
|
|
8412
|
+
"--input-px": "token(sizes.10)",
|
|
8413
|
+
"--input-slot-side-padding": "token(sizes.0)",
|
|
8414
|
+
"--input-fs": "token(sizes.16)",
|
|
8415
|
+
"--slot-size": "token(sizes.20)",
|
|
8416
|
+
"--slot-px": "token(sizes.6)",
|
|
7796
8417
|
position: "relative",
|
|
8418
|
+
display: "flex",
|
|
8419
|
+
alignItems: "center",
|
|
7797
8420
|
width: "full",
|
|
7798
8421
|
bg: "surface",
|
|
7799
|
-
borderWidth: "
|
|
8422
|
+
borderWidth: "1",
|
|
7800
8423
|
borderStyle: "solid",
|
|
7801
8424
|
borderColor: "border.input",
|
|
7802
|
-
borderRadius: "
|
|
7803
|
-
outlineWidth: "
|
|
8425
|
+
borderRadius: "4",
|
|
8426
|
+
outlineWidth: "1",
|
|
7804
8427
|
outlineStyle: "solid",
|
|
7805
|
-
outlineColor: "transparent",
|
|
7806
|
-
|
|
7807
|
-
lineHeight: "none",
|
|
7808
|
-
_focusWithin: {
|
|
8428
|
+
outlineColor: "transparent",
|
|
8429
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
7809
8430
|
outlineColor: "border.focused",
|
|
7810
8431
|
borderColor: "border.focused"
|
|
7811
8432
|
},
|
|
7812
8433
|
_error: {
|
|
7813
8434
|
borderColor: "border.danger",
|
|
7814
|
-
|
|
8435
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
8436
|
+
borderColor: "border.danger",
|
|
8437
|
+
outlineColor: "border.danger"
|
|
8438
|
+
}
|
|
8439
|
+
},
|
|
8440
|
+
_invalid: {
|
|
8441
|
+
borderColor: "border.danger",
|
|
8442
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
7815
8443
|
borderColor: "border.danger",
|
|
7816
8444
|
outlineColor: "border.danger"
|
|
7817
8445
|
}
|
|
7818
8446
|
},
|
|
8447
|
+
_valid: {
|
|
8448
|
+
borderColor: "border.success",
|
|
8449
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
8450
|
+
borderColor: "border.success",
|
|
8451
|
+
outlineColor: "border.success"
|
|
8452
|
+
}
|
|
8453
|
+
},
|
|
7819
8454
|
_disabled: {
|
|
7820
|
-
opacity:
|
|
8455
|
+
opacity: 0.4,
|
|
7821
8456
|
cursor: "not-allowed",
|
|
7822
|
-
|
|
8457
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
7823
8458
|
outlineColor: "transparent",
|
|
7824
8459
|
borderColor: "border.input"
|
|
7825
8460
|
}
|
|
@@ -7832,6 +8467,10 @@ const textInputBase = {
|
|
|
7832
8467
|
input: {
|
|
7833
8468
|
width: "full",
|
|
7834
8469
|
bg: "surface",
|
|
8470
|
+
py: "var(--input-py)",
|
|
8471
|
+
px: "var(--input-px)",
|
|
8472
|
+
fontSize: "var(--input-fs)",
|
|
8473
|
+
borderRadius: "3",
|
|
7835
8474
|
color: "text",
|
|
7836
8475
|
lineHeight: "default",
|
|
7837
8476
|
fontFamily: "sans",
|
|
@@ -7841,74 +8480,93 @@ const textInputBase = {
|
|
|
7841
8480
|
color: "text.placeholder"
|
|
7842
8481
|
}
|
|
7843
8482
|
},
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
8483
|
+
slot: {
|
|
8484
|
+
display: "inline-flex",
|
|
8485
|
+
alignItems: "center",
|
|
8486
|
+
transitionDuration: "fast",
|
|
8487
|
+
transitionProperty: "all",
|
|
8488
|
+
transitionTimingFunction: "default",
|
|
8489
|
+
flex: "0 0 var(--slot-size)",
|
|
8490
|
+
px: "var(--slot-px)",
|
|
8491
|
+
fill: "icon.decorative",
|
|
7850
8492
|
pointerEvents: "none",
|
|
7851
8493
|
zIndex: 1
|
|
8494
|
+
},
|
|
8495
|
+
buttonSlot: {
|
|
8496
|
+
display: "inline-flex",
|
|
8497
|
+
alignItems: "center",
|
|
8498
|
+
flex: "0 0 var(--slot-size)",
|
|
8499
|
+
px: "0",
|
|
8500
|
+
zIndex: 1,
|
|
8501
|
+
m: "-1"
|
|
7852
8502
|
}
|
|
7853
8503
|
};
|
|
7854
8504
|
const textInputVariants = {
|
|
7855
8505
|
size: {
|
|
7856
8506
|
sm: {
|
|
7857
|
-
|
|
7858
|
-
py: "0",
|
|
7859
|
-
px: "
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
w: "{sizes.22}"
|
|
8507
|
+
container: {
|
|
8508
|
+
"--input-py": "token(sizes.0)",
|
|
8509
|
+
"--input-px": "token(sizes.8)",
|
|
8510
|
+
"--input-slot-side-padding": "token(sizes.0)",
|
|
8511
|
+
"--input-fs": "token(sizes.14)",
|
|
8512
|
+
"--slot-size": "token(sizes.16)",
|
|
8513
|
+
"--slot-px": "token(sizes.4)"
|
|
7865
8514
|
}
|
|
7866
8515
|
},
|
|
7867
8516
|
md: {
|
|
7868
|
-
|
|
7869
|
-
py: "3",
|
|
7870
|
-
px: "
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
w: "{sizes.24}"
|
|
8517
|
+
container: {
|
|
8518
|
+
"--input-py": "token(sizes.3)",
|
|
8519
|
+
"--input-px": "token(sizes.10)",
|
|
8520
|
+
"--input-slot-side-padding": "token(sizes.0)",
|
|
8521
|
+
"--input-fs": "token(sizes.16)",
|
|
8522
|
+
"--slot-size": "token(sizes.20)",
|
|
8523
|
+
"--slot-px": "token(sizes.6)"
|
|
7876
8524
|
}
|
|
7877
8525
|
},
|
|
7878
8526
|
lg: {
|
|
7879
|
-
|
|
7880
|
-
py: "7",
|
|
7881
|
-
px: "
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
w: "{sizes.24}"
|
|
8527
|
+
container: {
|
|
8528
|
+
"--input-py": "token(sizes.7)",
|
|
8529
|
+
"--input-px": "token(sizes.12)",
|
|
8530
|
+
"--input-slot-side-padding": "token(sizes.0)",
|
|
8531
|
+
"--input-fs": "token(sizes.16)",
|
|
8532
|
+
"--slot-size": "token(sizes.24)",
|
|
8533
|
+
"--slot-px": "token(sizes.8)"
|
|
7887
8534
|
}
|
|
7888
8535
|
},
|
|
7889
8536
|
xl: {
|
|
7890
|
-
|
|
7891
|
-
py: "9",
|
|
7892
|
-
px: "
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
w: "{sizes.28}"
|
|
8537
|
+
container: {
|
|
8538
|
+
"--input-py": "token(sizes.9)",
|
|
8539
|
+
"--input-px": "token(sizes.16)",
|
|
8540
|
+
"--input-slot-side-padding": "token(sizes.0)",
|
|
8541
|
+
"--input-fs": "token(sizes.20)",
|
|
8542
|
+
"--slot-size": "token(sizes.28)",
|
|
8543
|
+
"--slot-px": "token(sizes.10)"
|
|
7898
8544
|
}
|
|
7899
8545
|
}
|
|
7900
8546
|
},
|
|
7901
|
-
|
|
8547
|
+
before: {
|
|
7902
8548
|
true: {
|
|
7903
|
-
|
|
7904
|
-
|
|
8549
|
+
input: {
|
|
8550
|
+
ps: "0"
|
|
8551
|
+
},
|
|
8552
|
+
buttonSlot: {
|
|
8553
|
+
"& button": {
|
|
8554
|
+
borderTopRightRadius: "0",
|
|
8555
|
+
borderBottomRightRadius: "0"
|
|
8556
|
+
}
|
|
7905
8557
|
}
|
|
7906
8558
|
}
|
|
7907
8559
|
},
|
|
7908
|
-
|
|
8560
|
+
after: {
|
|
7909
8561
|
true: {
|
|
7910
|
-
|
|
7911
|
-
|
|
8562
|
+
input: {
|
|
8563
|
+
pe: "0"
|
|
8564
|
+
},
|
|
8565
|
+
buttonSlot: {
|
|
8566
|
+
"& button": {
|
|
8567
|
+
borderTopLeftRadius: "0",
|
|
8568
|
+
borderBottomLeftRadius: "0"
|
|
8569
|
+
}
|
|
7912
8570
|
}
|
|
7913
8571
|
}
|
|
7914
8572
|
},
|
|
@@ -7921,263 +8579,111 @@ const textInputVariants = {
|
|
|
7921
8579
|
}
|
|
7922
8580
|
}
|
|
7923
8581
|
};
|
|
7924
|
-
const textInputCompoundVariants = [
|
|
7925
|
-
{
|
|
7926
|
-
size: "sm",
|
|
7927
|
-
iconBefore: true,
|
|
7928
|
-
css: {
|
|
7929
|
-
input: { ps: "[calc({sizes.24} + {sizes.2})]" }
|
|
7930
|
-
}
|
|
7931
|
-
},
|
|
7932
|
-
{
|
|
7933
|
-
size: "sm",
|
|
7934
|
-
iconAfter: true,
|
|
7935
|
-
css: {
|
|
7936
|
-
input: { pe: "[calc({sizes.24} + {sizes.2})]" }
|
|
7937
|
-
}
|
|
7938
|
-
},
|
|
7939
|
-
{
|
|
7940
|
-
size: "md",
|
|
7941
|
-
iconBefore: true,
|
|
7942
|
-
css: {
|
|
7943
|
-
input: { ps: "[calc({sizes.24} + {sizes.7})]" }
|
|
7944
|
-
}
|
|
7945
|
-
},
|
|
7946
|
-
{
|
|
7947
|
-
size: "md",
|
|
7948
|
-
iconAfter: true,
|
|
7949
|
-
css: {
|
|
7950
|
-
input: { pe: "[calc({sizes.24} + {sizes.7})]" }
|
|
7951
|
-
}
|
|
7952
|
-
},
|
|
7953
|
-
{
|
|
7954
|
-
size: "lg",
|
|
7955
|
-
iconBefore: true,
|
|
7956
|
-
css: {
|
|
7957
|
-
input: { ps: "[calc({sizes.24} + {sizes.10})]" }
|
|
7958
|
-
}
|
|
7959
|
-
},
|
|
7960
|
-
{
|
|
7961
|
-
size: "lg",
|
|
7962
|
-
iconAfter: true,
|
|
7963
|
-
css: {
|
|
7964
|
-
input: { pe: "[calc({sizes.24} + {sizes.10})]" }
|
|
7965
|
-
}
|
|
7966
|
-
},
|
|
7967
|
-
{
|
|
7968
|
-
size: "xl",
|
|
7969
|
-
iconBefore: true,
|
|
7970
|
-
css: {
|
|
7971
|
-
input: { ps: "[calc({sizes.32} + {sizes.10})]" }
|
|
7972
|
-
}
|
|
7973
|
-
},
|
|
7974
|
-
{
|
|
7975
|
-
size: "xl",
|
|
7976
|
-
iconAfter: true,
|
|
7977
|
-
css: {
|
|
7978
|
-
input: { pe: "[calc({sizes.32} + {sizes.10})]" }
|
|
7979
|
-
}
|
|
7980
|
-
}
|
|
7981
|
-
];
|
|
7982
8582
|
const textInputRecipe = defineSlotRecipe({
|
|
7983
8583
|
className: "textInput",
|
|
7984
|
-
jsx: ["TextInput"
|
|
7985
|
-
slots: ["container", "input", "
|
|
8584
|
+
jsx: ["TextInput"],
|
|
8585
|
+
slots: ["container", "input", "slot", "buttonSlot", "before", "after"],
|
|
7986
8586
|
base: textInputBase,
|
|
7987
8587
|
variants: textInputVariants,
|
|
7988
|
-
compoundVariants: textInputCompoundVariants,
|
|
7989
8588
|
defaultVariants: {
|
|
7990
8589
|
size: "md"
|
|
7991
8590
|
}
|
|
7992
8591
|
});
|
|
7993
|
-
const
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
input: {
|
|
8001
|
-
display: "inline-flex",
|
|
8002
|
-
alignItems: "center",
|
|
8003
|
-
gap: "2",
|
|
8004
|
-
width: "full",
|
|
8005
|
-
borderWidth: "1",
|
|
8006
|
-
borderStyle: "solid",
|
|
8007
|
-
borderColor: "border.input",
|
|
8008
|
-
borderRadius: "4",
|
|
8009
|
-
outlineWidth: "2",
|
|
8010
|
-
outlineOffset: "-1",
|
|
8011
|
-
outlineStyle: "solid",
|
|
8012
|
-
outlineColor: "transparent",
|
|
8013
|
-
bg: "bg.input",
|
|
8014
|
-
color: "text",
|
|
8015
|
-
fontFamily: "mono",
|
|
8016
|
-
lineHeight: "default",
|
|
8017
|
-
cursor: "text",
|
|
8018
|
-
userSelect: "none",
|
|
8019
|
-
transitionDuration: "fast",
|
|
8020
|
-
transitionProperty: "background, border-color, outline-color",
|
|
8021
|
-
transitionTimingFunction: "default",
|
|
8022
|
-
_focusWithin: {
|
|
8023
|
-
bg: "bg.input.pressed",
|
|
8024
|
-
borderColor: "border.focused",
|
|
8025
|
-
outlineColor: "border.focused"
|
|
8026
|
-
},
|
|
8027
|
-
_open: {
|
|
8028
|
-
bg: "bg.input.pressed",
|
|
8029
|
-
borderColor: "border.focused",
|
|
8030
|
-
outlineColor: "border.focused"
|
|
8031
|
-
},
|
|
8032
|
-
_disabled: {
|
|
8033
|
-
bg: "bg.disabled",
|
|
8034
|
-
borderColor: "border.disabled",
|
|
8035
|
-
color: "text.disabled",
|
|
8036
|
-
cursor: "not-allowed",
|
|
8037
|
-
pointerEvents: "none"
|
|
8038
|
-
},
|
|
8039
|
-
_error: {
|
|
8040
|
-
borderColor: "border.danger",
|
|
8041
|
-
_hover: {
|
|
8042
|
-
borderColor: "border.danger"
|
|
8043
|
-
},
|
|
8044
|
-
_focusWithin: {
|
|
8045
|
-
borderColor: "border.danger",
|
|
8046
|
-
outlineColor: "border.danger"
|
|
8047
|
-
},
|
|
8048
|
-
_open: {
|
|
8049
|
-
borderColor: "border.danger",
|
|
8050
|
-
outlineColor: "border.danger"
|
|
8051
|
-
}
|
|
8052
|
-
}
|
|
8053
|
-
},
|
|
8054
|
-
// Individual focusable segment span (HH, MM, AM/PM)
|
|
8055
|
-
segment: {
|
|
8056
|
-
display: "inline-flex",
|
|
8057
|
-
alignItems: "center",
|
|
8058
|
-
justifyContent: "center",
|
|
8059
|
-
outline: "none",
|
|
8060
|
-
borderRadius: "{sizes.2}",
|
|
8061
|
-
cursor: "default",
|
|
8062
|
-
userSelect: "none",
|
|
8063
|
-
fontFamily: "mono",
|
|
8064
|
-
fontVariantsProperty: "mono",
|
|
8065
|
-
fontVariantNumeric: "tabular-nums",
|
|
8066
|
-
minWidth: "{sizes.24}",
|
|
8067
|
-
textAlign: "center",
|
|
8068
|
-
color: "text",
|
|
8069
|
-
_focusVisible: {
|
|
8070
|
-
bg: "bg.neutral.hovered"
|
|
8071
|
-
},
|
|
8072
|
-
_groupDisabled: {
|
|
8073
|
-
color: "text.disabled"
|
|
8074
|
-
}
|
|
8075
|
-
},
|
|
8076
|
-
// The ":" separator between time segments
|
|
8077
|
-
separator: {
|
|
8078
|
-
color: "text.placeholder",
|
|
8079
|
-
userSelect: "none",
|
|
8080
|
-
display: "inline-flex",
|
|
8081
|
-
alignItems: "center"
|
|
8082
|
-
},
|
|
8083
|
-
// The floating time list container
|
|
8084
|
-
popover: {
|
|
8592
|
+
const timeMenusBase = {
|
|
8593
|
+
// Row of columns (HR | MIN | AM-PM), doubled with its own divider for range.
|
|
8594
|
+
// minH: '0' overrides the flexbox default of min-height:auto on a flex
|
|
8595
|
+
// item, which otherwise floors this box at its content's natural height
|
|
8596
|
+
// and defeats stretching it down to match a shorter sibling (DateTimeMenu's
|
|
8597
|
+
// Calendar) — see the `column` slot below for the full explanation.
|
|
8598
|
+
columns: {
|
|
8085
8599
|
display: "flex",
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
w: "fit"
|
|
8097
|
-
},
|
|
8098
|
-
// A single scrollable column (hours, minutes, or AM/PM)
|
|
8600
|
+
alignItems: "stretch",
|
|
8601
|
+
minH: "0"
|
|
8602
|
+
},
|
|
8603
|
+
// A single scrollable HR/MIN/AM-PM column. `maxHeight` (not `h: 'full'`)
|
|
8604
|
+
// matters here — Menu's own internal wrapper chain (levelsViewport >
|
|
8605
|
+
// levelsTrack > level > list) doesn't propagate a concrete height down to
|
|
8606
|
+
// this element, so `h: 'full'` resolves to "as tall as my content" and
|
|
8607
|
+
// `overflowY: auto` never actually engages; an explicit cap makes the
|
|
8608
|
+
// column bound itself regardless of what any ancestor does. `200` keeps
|
|
8609
|
+
// the existing picker column cap exactly.
|
|
8099
8610
|
column: {
|
|
8100
8611
|
display: "flex",
|
|
8101
8612
|
flexDirection: "column",
|
|
8102
|
-
|
|
8103
|
-
flex: 1,
|
|
8104
|
-
maxHeight: "200",
|
|
8105
|
-
scrollSnapType: "y mandatory",
|
|
8106
|
-
borderRight: "default",
|
|
8613
|
+
flex: "1",
|
|
8107
8614
|
minW: "56",
|
|
8615
|
+
// minH: '0' is the load-bearing part, not maxHeight — a flex item's
|
|
8616
|
+
// default min-height:auto floors it at its content's natural height no
|
|
8617
|
+
// matter what cross-axis stretch or maxHeight say, which silently
|
|
8618
|
+
// defeats overflowY:auto (nothing to scroll if the box just grows to
|
|
8619
|
+
// fit everything). Zeroing it lets maxHeight (standalone) or the
|
|
8620
|
+
// stretch variant's parent-driven height (DateTimeMenu) actually apply.
|
|
8621
|
+
minH: "0",
|
|
8622
|
+
maxHeight: "200",
|
|
8623
|
+
overflowY: "auto",
|
|
8108
8624
|
textAlign: "center",
|
|
8625
|
+
borderRightWidth: "1",
|
|
8626
|
+
borderRightStyle: "solid",
|
|
8627
|
+
borderColor: "border",
|
|
8109
8628
|
_last: {
|
|
8110
8629
|
borderRight: "none"
|
|
8111
8630
|
},
|
|
8112
|
-
// Hide scrollbar visually but keep
|
|
8631
|
+
// Hide the scrollbar visually but keep it functional — matches legacy.
|
|
8113
8632
|
"&::-webkit-scrollbar": {
|
|
8114
8633
|
display: "none"
|
|
8115
8634
|
},
|
|
8116
|
-
scrollbarWidth: "none"
|
|
8117
|
-
msOverflowStyle: "none"
|
|
8635
|
+
scrollbarWidth: "none"
|
|
8118
8636
|
},
|
|
8119
|
-
//
|
|
8120
|
-
|
|
8121
|
-
display: "flex",
|
|
8122
|
-
alignItems: "center",
|
|
8123
|
-
justifyContent: "center",
|
|
8124
|
-
py: "4",
|
|
8125
|
-
px: "8",
|
|
8126
|
-
fontSize: "11",
|
|
8127
|
-
fontWeight: "medium",
|
|
8128
|
-
color: "text.subtlest",
|
|
8129
|
-
textTransform: "uppercase",
|
|
8130
|
-
letterSpacing: "widest",
|
|
8131
|
-
borderBottom: "default",
|
|
8637
|
+
// "HR" / "MIN" / "AM/PM" column label.
|
|
8638
|
+
columnHeader: {
|
|
8132
8639
|
position: "sticky",
|
|
8133
8640
|
top: "0",
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8641
|
+
textAlign: "center",
|
|
8642
|
+
fontSize: "12",
|
|
8643
|
+
fontWeight: "semibold",
|
|
8644
|
+
color: "text.subtlest",
|
|
8645
|
+
bg: "surface",
|
|
8646
|
+
py: "4",
|
|
8647
|
+
borderBottomWidth: "1",
|
|
8648
|
+
borderBottomStyle: "solid",
|
|
8649
|
+
borderColor: "border",
|
|
8650
|
+
zIndex: "1"
|
|
8651
|
+
},
|
|
8652
|
+
// Right-aligned Cancel/Apply pair — TimeRangeMenu only (TimeMenu commits
|
|
8653
|
+
// immediately per value, same as DateMenu's non-range case).
|
|
8654
|
+
footer: {
|
|
8655
|
+
display: "flex",
|
|
8656
|
+
justifyContent: "flex-end",
|
|
8657
|
+
alignItems: "center",
|
|
8658
|
+
gap: "8",
|
|
8659
|
+
borderTopWidth: "1",
|
|
8660
|
+
borderTopStyle: "solid",
|
|
8661
|
+
borderColor: "border",
|
|
8662
|
+
px: "16",
|
|
8663
|
+
py: "8"
|
|
8137
8664
|
}
|
|
8138
8665
|
};
|
|
8139
|
-
const
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
py: "3",
|
|
8151
|
-
px: "10",
|
|
8152
|
-
fontSize: "16"
|
|
8153
|
-
}
|
|
8154
|
-
},
|
|
8155
|
-
lg: {
|
|
8156
|
-
input: {
|
|
8157
|
-
py: "7",
|
|
8158
|
-
px: "12",
|
|
8159
|
-
fontSize: "16"
|
|
8666
|
+
const timeMenusVariants = {
|
|
8667
|
+
// DateTimeMenu pairs the columns with a Calendar sibling inside a
|
|
8668
|
+
// stretch-aligned flex row, so the columns can size to match the
|
|
8669
|
+
// Calendar's real rendered height instead of the standalone 200px cap —
|
|
8670
|
+
// without this, the columns clip well short of the taller Calendar next to
|
|
8671
|
+
// them. TimeMenu/TimeRangeMenu have no such sibling to stretch against, so
|
|
8672
|
+
// they keep the fixed cap as their own default.
|
|
8673
|
+
stretch: {
|
|
8674
|
+
true: {
|
|
8675
|
+
column: {
|
|
8676
|
+
maxHeight: "none"
|
|
8160
8677
|
}
|
|
8161
8678
|
}
|
|
8162
8679
|
}
|
|
8163
8680
|
};
|
|
8164
|
-
const
|
|
8165
|
-
className: "
|
|
8166
|
-
jsx: ["
|
|
8167
|
-
slots: [
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
"segment",
|
|
8171
|
-
"separator",
|
|
8172
|
-
"popover",
|
|
8173
|
-
"column",
|
|
8174
|
-
"columnLabel"
|
|
8175
|
-
],
|
|
8176
|
-
base: timePickerBase,
|
|
8177
|
-
variants: timePickerVariants,
|
|
8178
|
-
defaultVariants: {
|
|
8179
|
-
size: "md"
|
|
8180
|
-
}
|
|
8681
|
+
const timeMenusRecipe = defineSlotRecipe({
|
|
8682
|
+
className: "timeMenus",
|
|
8683
|
+
jsx: ["TimeMenus", "TimeMenu", "TimeRangeMenu"],
|
|
8684
|
+
slots: ["columns", "column", "columnHeader", "footer"],
|
|
8685
|
+
base: timeMenusBase,
|
|
8686
|
+
variants: timeMenusVariants
|
|
8181
8687
|
});
|
|
8182
8688
|
const toggleRecipe = defineSlotRecipe({
|
|
8183
8689
|
className: "toggle",
|
|
@@ -8250,7 +8756,9 @@ const toggleRecipe = defineSlotRecipe({
|
|
|
8250
8756
|
"&:is([name='circle-check'])": {
|
|
8251
8757
|
display: "inline-grid",
|
|
8252
8758
|
position: "absolute",
|
|
8253
|
-
|
|
8759
|
+
// Hidden until checked. This read `inherit`, which took the parent's
|
|
8760
|
+
// opacity of 1 and left the check mark visible on an off toggle.
|
|
8761
|
+
opacity: "[0]",
|
|
8254
8762
|
transform: "[translateX(0)]",
|
|
8255
8763
|
fill: "icon.inverse",
|
|
8256
8764
|
"input:checked ~ &": {
|
|
@@ -8325,24 +8833,30 @@ const tooltipRecipe = defineSlotRecipe({
|
|
|
8325
8833
|
});
|
|
8326
8834
|
const slotRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8327
8835
|
__proto__: null,
|
|
8836
|
+
autocompleteRecipe,
|
|
8328
8837
|
avatarRecipe,
|
|
8329
8838
|
badgeRecipe,
|
|
8330
8839
|
breadcrumbsRecipe,
|
|
8331
8840
|
buttonRecipe,
|
|
8841
|
+
calendarRecipe,
|
|
8332
8842
|
checkboxRecipe,
|
|
8333
8843
|
chipRecipe,
|
|
8334
|
-
|
|
8844
|
+
dateMenusRecipe,
|
|
8845
|
+
dateTimeMenusRecipe,
|
|
8335
8846
|
formFieldRecipe,
|
|
8336
8847
|
iconButtonRecipe,
|
|
8848
|
+
kbdRecipe,
|
|
8337
8849
|
listItemGroupRecipe,
|
|
8338
8850
|
listItemRecipe,
|
|
8339
8851
|
menuRecipe,
|
|
8340
8852
|
modalRecipe,
|
|
8341
8853
|
radioRecipe,
|
|
8854
|
+
segmentedFieldsRecipe,
|
|
8855
|
+
segmentedInputsRecipe,
|
|
8342
8856
|
selectRecipe,
|
|
8343
8857
|
spinnerRecipe,
|
|
8344
8858
|
textInputRecipe,
|
|
8345
|
-
|
|
8859
|
+
timeMenusRecipe,
|
|
8346
8860
|
toggleRecipe,
|
|
8347
8861
|
tooltipRecipe
|
|
8348
8862
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -8922,6 +9436,49 @@ const colors = defineSemanticTokens.colors({
|
|
|
8922
9436
|
DEFAULT: { value: { base: "{colors.blue.50}", _dark: "{colors.blue.40}" } },
|
|
8923
9437
|
pressed: { value: { base: "{colors.blue.60}", _dark: "{colors.blue.50}" } }
|
|
8924
9438
|
},
|
|
9439
|
+
// Shadow layer colors. These were primitives holding explicit `.light` and
|
|
9440
|
+
// `.dark` leaves, which forced every shadow to exist twice. As semantic
|
|
9441
|
+
// tokens they resolve per mode on their own, so one geometry serves both.
|
|
9442
|
+
shadow: {
|
|
9443
|
+
raised: {
|
|
9444
|
+
1: {
|
|
9445
|
+
value: { base: "rgba(30, 31, 33, 0.25)", _dark: "rgba(1, 4, 4, 0.5)" }
|
|
9446
|
+
},
|
|
9447
|
+
2: {
|
|
9448
|
+
value: { base: "rgba(30, 31, 33, 0.31)", _dark: "rgba(1, 4, 4, 0.5)" }
|
|
9449
|
+
}
|
|
9450
|
+
},
|
|
9451
|
+
elevated: {
|
|
9452
|
+
1: {
|
|
9453
|
+
value: { base: "rgba(0, 0, 0, 0)", _dark: "rgba(95, 95, 95, 0.06)" }
|
|
9454
|
+
},
|
|
9455
|
+
2: {
|
|
9456
|
+
value: { base: "rgba(30, 31, 33, 0.2)", _dark: "rgba(1, 4, 4, 0.43)" }
|
|
9457
|
+
},
|
|
9458
|
+
3: {
|
|
9459
|
+
value: { base: "rgba(30, 31, 33, 0.31)", _dark: "rgba(1, 4, 4, 0.5)" }
|
|
9460
|
+
}
|
|
9461
|
+
},
|
|
9462
|
+
overlay: {
|
|
9463
|
+
1: {
|
|
9464
|
+
value: { base: "rgba(0, 0, 0, 0)", _dark: "rgba(189, 189, 189, 0.12)" }
|
|
9465
|
+
},
|
|
9466
|
+
2: {
|
|
9467
|
+
value: { base: "rgba(30, 31, 33, 0.15)", _dark: "rgba(1, 4, 4, 0.36)" }
|
|
9468
|
+
},
|
|
9469
|
+
3: {
|
|
9470
|
+
value: { base: "rgba(30, 31, 33, 0.31)", _dark: "rgba(1, 4, 4, 0.5)" }
|
|
9471
|
+
}
|
|
9472
|
+
},
|
|
9473
|
+
overflow: {
|
|
9474
|
+
1: {
|
|
9475
|
+
value: { base: "rgba(30, 31, 33, 0.16)", _dark: "rgba(1, 4, 4, 0.56)" }
|
|
9476
|
+
},
|
|
9477
|
+
2: {
|
|
9478
|
+
value: { base: "rgba(30, 31, 33, 0.12)", _dark: "rgba(1, 4, 4, 0.5)" }
|
|
9479
|
+
}
|
|
9480
|
+
}
|
|
9481
|
+
},
|
|
8925
9482
|
surface: {
|
|
8926
9483
|
DEFAULT: {
|
|
8927
9484
|
value: { base: "{colors.neutral.0}", _dark: "{colors.darkNeutral.10}" }
|
|
@@ -9164,41 +9721,15 @@ const colors = defineSemanticTokens.colors({
|
|
|
9164
9721
|
}
|
|
9165
9722
|
});
|
|
9166
9723
|
const shadows = defineSemanticTokens.shadows({
|
|
9167
|
-
zero: {
|
|
9168
|
-
value: { base: "{shadows.zeroShadow}", _dark: "{shadows.zeroShadow}" }
|
|
9169
|
-
},
|
|
9724
|
+
zero: { value: { base: "{shadows.zeroLight}", _dark: "{shadows.zeroDark}" } },
|
|
9170
9725
|
raised: {
|
|
9171
|
-
|
|
9172
|
-
value: { base: "{shadows.raisedLight}", _dark: "{shadows.raisedDark}" }
|
|
9173
|
-
},
|
|
9174
|
-
up: {
|
|
9175
|
-
value: {
|
|
9176
|
-
base: "{shadows.raisedLightUp}",
|
|
9177
|
-
_dark: "{shadows.raisedDarkUp}"
|
|
9178
|
-
}
|
|
9179
|
-
}
|
|
9726
|
+
value: { base: "{shadows.raisedLight}", _dark: "{shadows.raisedDark}" }
|
|
9180
9727
|
},
|
|
9181
9728
|
elevated: {
|
|
9182
|
-
|
|
9183
|
-
value: {
|
|
9184
|
-
base: "{shadows.elevatedLight}",
|
|
9185
|
-
_dark: "{shadows.elevatedDark}"
|
|
9186
|
-
}
|
|
9187
|
-
},
|
|
9188
|
-
up: {
|
|
9189
|
-
value: {
|
|
9190
|
-
base: "{shadows.elevatedLightUp}",
|
|
9191
|
-
_dark: "{shadows.elevatedDarkUp}"
|
|
9192
|
-
}
|
|
9193
|
-
}
|
|
9729
|
+
value: { base: "{shadows.elevatedLight}", _dark: "{shadows.elevatedDark}" }
|
|
9194
9730
|
},
|
|
9195
9731
|
overlay: {
|
|
9196
|
-
|
|
9197
|
-
value: { base: "{shadows.overlayLight}", _dark: "{shadows.overlayDark}" }
|
|
9198
|
-
},
|
|
9199
|
-
dark: {
|
|
9200
|
-
value: { base: "{shadows.overlayDark}", _dark: "{shadows.overlayLight}" }
|
|
9201
|
-
}
|
|
9732
|
+
value: { base: "{shadows.overlayLight}", _dark: "{shadows.overlayDark}" }
|
|
9202
9733
|
},
|
|
9203
9734
|
overflow: {
|
|
9204
9735
|
value: { base: "{shadows.overflowLight}", _dark: "{shadows.overflowDark}" }
|
|
@@ -9210,6 +9741,7 @@ const zIndex = defineSemanticTokens.zIndex({
|
|
|
9210
9741
|
elevated: { value: "{zIndex.1000}" },
|
|
9211
9742
|
overlay: { value: "{zIndex.1100}" },
|
|
9212
9743
|
modal: { value: "{zIndex.1101}" },
|
|
9744
|
+
modalFloating: { value: "{zIndex.1102}" },
|
|
9213
9745
|
tooltip: { value: "{zIndex.1200}" }
|
|
9214
9746
|
});
|
|
9215
9747
|
const presetRecipes = Object.fromEntries(
|
|
@@ -9300,8 +9832,14 @@ const okshaunPreset = definePreset$1({
|
|
|
9300
9832
|
},
|
|
9301
9833
|
utilities: {
|
|
9302
9834
|
...pandaBasePresetUtilities,
|
|
9835
|
+
// Replaces (not extends) Panda's built-in dropShadow so drop shadows and
|
|
9836
|
+
// box shadows are generated from the same layer definitions.
|
|
9837
|
+
dropShadow: dropShadowProperty,
|
|
9838
|
+
// Extends Panda's base `filter`, which ships `auto` alone. This was
|
|
9839
|
+
// registered as `filtersProperty`, which is not a CSS property, so it
|
|
9840
|
+
// generated an inert style prop and emitted nothing.
|
|
9841
|
+
filter: filterProperty,
|
|
9303
9842
|
// Custom utility for transitionProperty that uses our transition tokens
|
|
9304
|
-
filtersProperty,
|
|
9305
9843
|
transitionProperty
|
|
9306
9844
|
},
|
|
9307
9845
|
// Global styles
|
|
@@ -9320,4 +9858,4 @@ export {
|
|
|
9320
9858
|
containerSizes as c,
|
|
9321
9859
|
okshaunPreset as o
|
|
9322
9860
|
};
|
|
9323
|
-
//# sourceMappingURL=preset-
|
|
9861
|
+
//# sourceMappingURL=preset-BOFHjPdQ.js.map
|