@okshaun/components 3.0.0 → 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 +359 -42
- package/dist/index.js +12890 -5844
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +523 -501
- package/dist/{preset-BAn5LBiW.js → preset-BOFHjPdQ.js} +1986 -2045
- 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 +22 -0
- package/dist/specs/recipes.json +222 -106
- package/dist/specs/semantic-tokens.json +152 -44
- package/dist/specs/tokens.json +16 -36
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +445 -44
- package/dist/styles.css +11268 -13251
- 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/to-date-backward.svg +1 -0
- package/dist/svgs/to-date-forward.svg +1 -0
- package/dist/types/index.d.ts +2815 -288
- package/package.json +4 -2
- package/src/recipes/autocomplete.ts +266 -0
- package/src/recipes/badge.ts +25 -54
- package/src/recipes/button.ts +155 -316
- package/src/recipes/calendar.ts +91 -0
- package/src/recipes/card.ts +4 -70
- package/src/recipes/chip.ts +212 -266
- package/src/recipes/dateMenus.ts +40 -0
- package/src/recipes/dateTimeMenus.ts +43 -0
- package/src/recipes/kbd.ts +42 -39
- package/src/recipes/list.ts +11 -85
- package/src/recipes/listDensity.ts +66 -0
- package/src/recipes/listItem.ts +27 -166
- package/src/recipes/listItemGroup.ts +16 -16
- package/src/recipes/menu.ts +17 -3
- package/src/recipes/modal.ts +65 -65
- package/src/recipes/radio.ts +6 -6
- package/src/recipes/recipes-slot.ts +7 -2
- package/src/recipes/segmentedFields.ts +192 -0
- package/src/recipes/segmentedInputs.ts +109 -0
- package/src/recipes/tag.ts +218 -210
- package/src/recipes/text.ts +37 -19
- package/src/recipes/textInput.ts +103 -155
- 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/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 +27 -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/dist/preset-BAn5LBiW.js.map +0 -1
- package/src/recipes/datePicker.ts +0 -234
- package/src/recipes/timePicker.ts +0 -216
|
@@ -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",
|
|
@@ -317,24 +398,47 @@ const keyframes = defineKeyframes({
|
|
|
317
398
|
"0%": { opacity: "1" },
|
|
318
399
|
"100%": { opacity: "0" }
|
|
319
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.
|
|
320
404
|
modalScaleIn: {
|
|
321
405
|
"0%": {
|
|
322
406
|
opacity: "0",
|
|
323
|
-
transform: "
|
|
407
|
+
transform: "scale(0.95) translateY(20px)"
|
|
324
408
|
},
|
|
325
409
|
"100%": {
|
|
326
410
|
opacity: "1",
|
|
327
|
-
transform: "
|
|
411
|
+
transform: "scale(1) translateY(0)"
|
|
328
412
|
}
|
|
329
413
|
},
|
|
330
414
|
modalScaleOut: {
|
|
331
415
|
"0%": {
|
|
332
416
|
opacity: "1",
|
|
333
|
-
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)"
|
|
334
438
|
},
|
|
335
439
|
"100%": {
|
|
336
440
|
opacity: "0",
|
|
337
|
-
transform: "
|
|
441
|
+
transform: "scale(0.97) translateY(-40px)"
|
|
338
442
|
}
|
|
339
443
|
}
|
|
340
444
|
});
|
|
@@ -354,6 +458,15 @@ const layerStyles = defineLayerStyles({
|
|
|
354
458
|
}
|
|
355
459
|
}
|
|
356
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
|
+
};
|
|
357
470
|
const baseHeadingStyles = defineStyles({
|
|
358
471
|
value: {
|
|
359
472
|
fontFamily: "sans",
|
|
@@ -1150,51 +1263,17 @@ const radii = defineTokens.radii({
|
|
|
1150
1263
|
"999": { value: "999px" }
|
|
1151
1264
|
});
|
|
1152
1265
|
const shadows$1 = defineTokens.shadows({
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
},
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
},
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
},
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
},
|
|
1165
|
-
raisedDarkUp: {
|
|
1166
|
-
value: "{sizes.0} [-1] {sizes.1} {colors.shadow.raised.1.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.raised.2.dark}"
|
|
1167
|
-
},
|
|
1168
|
-
elevatedLight: {
|
|
1169
|
-
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}"
|
|
1170
|
-
},
|
|
1171
|
-
elevatedLightUp: {
|
|
1172
|
-
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}"
|
|
1173
|
-
},
|
|
1174
|
-
elevatedDark: {
|
|
1175
|
-
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}"
|
|
1176
|
-
},
|
|
1177
|
-
elevatedDarkUp: {
|
|
1178
|
-
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}"
|
|
1179
|
-
},
|
|
1180
|
-
overlayLight: {
|
|
1181
|
-
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}"
|
|
1182
|
-
},
|
|
1183
|
-
overlayLightUp: {
|
|
1184
|
-
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}"
|
|
1185
|
-
},
|
|
1186
|
-
overlayDark: {
|
|
1187
|
-
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}"
|
|
1188
|
-
},
|
|
1189
|
-
overlayDarkUp: {
|
|
1190
|
-
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}"
|
|
1191
|
-
},
|
|
1192
|
-
overflowLight: {
|
|
1193
|
-
value: "{sizes.0} {sizes.0} {sizes.8} {colors.shadow.overflow.1.light}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overflow.2.light}"
|
|
1194
|
-
},
|
|
1195
|
-
overflowDark: {
|
|
1196
|
-
value: "{sizes.0} {sizes.0} {sizes.12} {colors.shadow.overflow.1.dark}, {sizes.0} {sizes.0} {sizes.1} {colors.shadow.overflow.2.dark}"
|
|
1197
|
-
}
|
|
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") }
|
|
1198
1277
|
});
|
|
1199
1278
|
const spacing$1 = defineTokens.spacing({
|
|
1200
1279
|
...numericSizes,
|
|
@@ -1212,6 +1291,7 @@ const zIndex$1 = defineTokens.zIndex({
|
|
|
1212
1291
|
"1000": { value: 1e3 },
|
|
1213
1292
|
"1100": { value: 1100 },
|
|
1214
1293
|
"1101": { value: 1101 },
|
|
1294
|
+
"1102": { value: 1102 },
|
|
1215
1295
|
"1200": { value: 1200 }
|
|
1216
1296
|
});
|
|
1217
1297
|
const tokens = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4592,6 +4672,7 @@ const breakpointIndicatorRecipe = defineRecipe({
|
|
|
4592
4672
|
const interactiveHoverStyles = {
|
|
4593
4673
|
cursor: "pointer",
|
|
4594
4674
|
transition: "all",
|
|
4675
|
+
textDecoration: "none",
|
|
4595
4676
|
_hover: {
|
|
4596
4677
|
bg: "surface",
|
|
4597
4678
|
boxShadow: "elevated"
|
|
@@ -4602,10 +4683,6 @@ const interactiveHoverStyles = {
|
|
|
4602
4683
|
borderWidth: "1",
|
|
4603
4684
|
outlineColor: "border.focused",
|
|
4604
4685
|
borderColor: "border.focused"
|
|
4605
|
-
},
|
|
4606
|
-
_disabled: {
|
|
4607
|
-
opacity: "0.4",
|
|
4608
|
-
cursor: "not-allowed"
|
|
4609
4686
|
}
|
|
4610
4687
|
};
|
|
4611
4688
|
const cardRecipe = defineRecipe({
|
|
@@ -4661,79 +4738,16 @@ const cardRecipe = defineRecipe({
|
|
|
4661
4738
|
},
|
|
4662
4739
|
interactive: {
|
|
4663
4740
|
true: {
|
|
4664
|
-
cursor: "pointer"
|
|
4665
|
-
},
|
|
4666
|
-
false: {
|
|
4667
|
-
cursor: "default"
|
|
4668
|
-
}
|
|
4669
|
-
}
|
|
4670
|
-
},
|
|
4671
|
-
compoundVariants: [
|
|
4672
|
-
// Default + interactive
|
|
4673
|
-
{
|
|
4674
|
-
variant: "default",
|
|
4675
|
-
interactive: true,
|
|
4676
|
-
css: {
|
|
4677
|
-
...interactiveHoverStyles,
|
|
4678
|
-
_disabled: {
|
|
4679
|
-
_hover: {
|
|
4680
|
-
boxShadow: "raised"
|
|
4681
|
-
}
|
|
4682
|
-
}
|
|
4683
|
-
}
|
|
4684
|
-
},
|
|
4685
|
-
// Flat + interactive
|
|
4686
|
-
{
|
|
4687
|
-
variant: "flat",
|
|
4688
|
-
interactive: true,
|
|
4689
|
-
css: {
|
|
4690
|
-
...interactiveHoverStyles,
|
|
4691
|
-
_disabled: {
|
|
4692
|
-
_hover: {
|
|
4693
|
-
boxShadow: "none"
|
|
4694
|
-
}
|
|
4695
|
-
}
|
|
4696
|
-
}
|
|
4697
|
-
},
|
|
4698
|
-
// Sunken + interactive
|
|
4699
|
-
{
|
|
4700
|
-
variant: "sunken",
|
|
4701
|
-
interactive: true,
|
|
4702
|
-
css: {
|
|
4703
|
-
...interactiveHoverStyles,
|
|
4704
|
-
_disabled: {
|
|
4705
|
-
_hover: {
|
|
4706
|
-
boxShadow: "none"
|
|
4707
|
-
}
|
|
4708
|
-
}
|
|
4709
|
-
}
|
|
4710
|
-
},
|
|
4711
|
-
// Ghost + interactive
|
|
4712
|
-
{
|
|
4713
|
-
variant: "ghost",
|
|
4714
|
-
interactive: true,
|
|
4715
|
-
css: {
|
|
4716
4741
|
...interactiveHoverStyles,
|
|
4742
|
+
cursor: "pointer",
|
|
4717
4743
|
_disabled: {
|
|
4718
4744
|
_hover: {
|
|
4719
|
-
boxShadow: "
|
|
4720
|
-
}
|
|
4721
|
-
}
|
|
4722
|
-
}
|
|
4723
|
-
},
|
|
4724
|
-
// Overlay + interactive
|
|
4725
|
-
{
|
|
4726
|
-
variant: "overlay",
|
|
4727
|
-
interactive: true,
|
|
4728
|
-
css: {
|
|
4729
|
-
_disabled: {
|
|
4730
|
-
_hover: {
|
|
4731
|
-
boxShadow: "raised"
|
|
4745
|
+
boxShadow: "initial"
|
|
4732
4746
|
}
|
|
4733
4747
|
}
|
|
4734
4748
|
}
|
|
4735
4749
|
}
|
|
4736
|
-
|
|
4750
|
+
},
|
|
4737
4751
|
defaultVariants: {
|
|
4738
4752
|
variant: "default"
|
|
4739
4753
|
}
|
|
@@ -4875,90 +4889,66 @@ const iconRecipe = defineRecipe({
|
|
|
4875
4889
|
// other recipes.
|
|
4876
4890
|
defaultVariants: {}
|
|
4877
4891
|
});
|
|
4878
|
-
const
|
|
4892
|
+
const listDensityVars = {
|
|
4879
4893
|
compact: {
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
px: "10"
|
|
4893
|
-
},
|
|
4894
|
-
icon: {
|
|
4895
|
-
w: "24",
|
|
4896
|
-
h: "24"
|
|
4897
|
-
},
|
|
4898
|
-
beforeSlot: {
|
|
4899
|
-
mr: "3"
|
|
4900
|
-
},
|
|
4901
|
-
afterSlot: {
|
|
4902
|
-
ml: "3"
|
|
4903
|
-
}
|
|
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)"
|
|
4904
4906
|
},
|
|
4905
4907
|
comfortable: {
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
px: "12"
|
|
4919
|
-
},
|
|
4920
|
-
icon: {
|
|
4921
|
-
w: "24",
|
|
4922
|
-
h: "24"
|
|
4923
|
-
},
|
|
4924
|
-
beforeSlot: {
|
|
4925
|
-
mr: "3"
|
|
4926
|
-
},
|
|
4927
|
-
afterSlot: {
|
|
4928
|
-
ml: "3"
|
|
4929
|
-
}
|
|
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)"
|
|
4930
4920
|
},
|
|
4931
4921
|
spacious: {
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
}
|
|
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
|
|
4956
4945
|
}
|
|
4957
4946
|
};
|
|
4958
4947
|
const listRecipe = defineRecipe({
|
|
4959
4948
|
className: "list",
|
|
4960
4949
|
jsx: ["List"],
|
|
4961
4950
|
base: {
|
|
4951
|
+
...globalBaseStyles,
|
|
4962
4952
|
display: "flex",
|
|
4963
4953
|
flexDirection: "column",
|
|
4964
4954
|
alignItems: "start",
|
|
@@ -4966,11 +4956,7 @@ const listRecipe = defineRecipe({
|
|
|
4966
4956
|
gap: "0"
|
|
4967
4957
|
},
|
|
4968
4958
|
variants: {
|
|
4969
|
-
density:
|
|
4970
|
-
compact: {},
|
|
4971
|
-
comfortable: {},
|
|
4972
|
-
spacious: {}
|
|
4973
|
-
}
|
|
4959
|
+
density: listDensityVars
|
|
4974
4960
|
},
|
|
4975
4961
|
defaultVariants: {
|
|
4976
4962
|
density: "compact"
|
|
@@ -5086,23 +5072,225 @@ const tagRecipe = defineRecipe({
|
|
|
5086
5072
|
whiteSpace: "nowrap"
|
|
5087
5073
|
},
|
|
5088
5074
|
variants: {
|
|
5089
|
-
variant
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
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.
|
|
5093
5079
|
hue: {
|
|
5094
|
-
gray: {
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
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)"
|
|
5085
|
+
},
|
|
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
|
+
}
|
|
5103
|
+
},
|
|
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
|
+
}
|
|
5283
|
+
}
|
|
5284
|
+
},
|
|
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)"
|
|
5293
|
+
}
|
|
5106
5294
|
},
|
|
5107
5295
|
iconBefore: {
|
|
5108
5296
|
true: {
|
|
@@ -5125,200 +5313,6 @@ const tagRecipe = defineRecipe({
|
|
|
5125
5313
|
}
|
|
5126
5314
|
}
|
|
5127
5315
|
},
|
|
5128
|
-
compoundVariants: [
|
|
5129
|
-
{
|
|
5130
|
-
hue: "gray",
|
|
5131
|
-
variant: "default",
|
|
5132
|
-
css: {
|
|
5133
|
-
color: "text.subtle",
|
|
5134
|
-
bg: "bg.neutral"
|
|
5135
|
-
}
|
|
5136
|
-
},
|
|
5137
|
-
{
|
|
5138
|
-
hue: "gray",
|
|
5139
|
-
variant: "bold",
|
|
5140
|
-
css: {
|
|
5141
|
-
color: "text.inverse",
|
|
5142
|
-
bg: "bg.neutral.boldest"
|
|
5143
|
-
}
|
|
5144
|
-
},
|
|
5145
|
-
{
|
|
5146
|
-
hue: "red",
|
|
5147
|
-
variant: "default",
|
|
5148
|
-
css: {
|
|
5149
|
-
color: { base: "red.70", _dark: "red.20" },
|
|
5150
|
-
bg: { base: "red.20", _dark: "red.100" }
|
|
5151
|
-
}
|
|
5152
|
-
},
|
|
5153
|
-
{
|
|
5154
|
-
hue: "red",
|
|
5155
|
-
variant: "bold",
|
|
5156
|
-
css: {
|
|
5157
|
-
color: { base: "red.10", _dark: "red.100" },
|
|
5158
|
-
bg: { base: "red.60", _dark: "red.40" }
|
|
5159
|
-
}
|
|
5160
|
-
},
|
|
5161
|
-
{
|
|
5162
|
-
hue: "orange",
|
|
5163
|
-
variant: "default",
|
|
5164
|
-
css: {
|
|
5165
|
-
color: { base: "orange.70", _dark: "orange.20" },
|
|
5166
|
-
bg: { base: "orange.20", _dark: "orange.100" }
|
|
5167
|
-
}
|
|
5168
|
-
},
|
|
5169
|
-
{
|
|
5170
|
-
hue: "orange",
|
|
5171
|
-
variant: "bold",
|
|
5172
|
-
css: {
|
|
5173
|
-
color: { base: "orange.10", _dark: "orange.100" },
|
|
5174
|
-
bg: { base: "orange.60", _dark: "orange.50" }
|
|
5175
|
-
}
|
|
5176
|
-
},
|
|
5177
|
-
{
|
|
5178
|
-
hue: "yellow",
|
|
5179
|
-
variant: "default",
|
|
5180
|
-
css: {
|
|
5181
|
-
color: { base: "yellow.80", _dark: "yellow.50" },
|
|
5182
|
-
bg: { base: "yellow.20", _dark: "yellow.90" }
|
|
5183
|
-
}
|
|
5184
|
-
},
|
|
5185
|
-
{
|
|
5186
|
-
hue: "yellow",
|
|
5187
|
-
variant: "bold",
|
|
5188
|
-
css: {
|
|
5189
|
-
color: { base: "yellow.100", _dark: "yellow.100" },
|
|
5190
|
-
bg: { base: "yellow.40", _dark: "yellow.60" }
|
|
5191
|
-
}
|
|
5192
|
-
},
|
|
5193
|
-
{
|
|
5194
|
-
hue: "lime",
|
|
5195
|
-
variant: "default",
|
|
5196
|
-
css: {
|
|
5197
|
-
color: { base: "lime.70", _dark: "lime.20" },
|
|
5198
|
-
bg: { base: "lime.20", _dark: "lime.90" }
|
|
5199
|
-
}
|
|
5200
|
-
},
|
|
5201
|
-
{
|
|
5202
|
-
hue: "lime",
|
|
5203
|
-
variant: "bold",
|
|
5204
|
-
css: {
|
|
5205
|
-
color: { base: "lime.10", _dark: "lime.100" },
|
|
5206
|
-
bg: { base: "lime.60", _dark: "lime.40" }
|
|
5207
|
-
}
|
|
5208
|
-
},
|
|
5209
|
-
{
|
|
5210
|
-
hue: "green",
|
|
5211
|
-
variant: "default",
|
|
5212
|
-
css: {
|
|
5213
|
-
color: { base: "green.70", _dark: "green.20" },
|
|
5214
|
-
bg: { base: "green.20", _dark: "green.90" }
|
|
5215
|
-
}
|
|
5216
|
-
},
|
|
5217
|
-
{
|
|
5218
|
-
hue: "green",
|
|
5219
|
-
variant: "bold",
|
|
5220
|
-
css: {
|
|
5221
|
-
color: { base: "gray.10", _dark: "green.100" },
|
|
5222
|
-
bg: { base: "green.70", _dark: "green.40" }
|
|
5223
|
-
}
|
|
5224
|
-
},
|
|
5225
|
-
{
|
|
5226
|
-
hue: "teal",
|
|
5227
|
-
variant: "default",
|
|
5228
|
-
css: {
|
|
5229
|
-
color: { base: "teal.80", _dark: "teal.20" },
|
|
5230
|
-
bg: { base: "teal.20", _dark: "teal.90" }
|
|
5231
|
-
}
|
|
5232
|
-
},
|
|
5233
|
-
{
|
|
5234
|
-
hue: "teal",
|
|
5235
|
-
variant: "bold",
|
|
5236
|
-
css: {
|
|
5237
|
-
color: { base: "teal.10", _dark: "teal.100" },
|
|
5238
|
-
bg: { base: "teal.60", _dark: "teal.50" }
|
|
5239
|
-
}
|
|
5240
|
-
},
|
|
5241
|
-
{
|
|
5242
|
-
hue: "blue",
|
|
5243
|
-
variant: "default",
|
|
5244
|
-
css: {
|
|
5245
|
-
color: { base: "blue.70", _dark: "blue.20" },
|
|
5246
|
-
bg: { base: "blue.20", _dark: "blue.90" }
|
|
5247
|
-
}
|
|
5248
|
-
},
|
|
5249
|
-
{
|
|
5250
|
-
hue: "blue",
|
|
5251
|
-
variant: "bold",
|
|
5252
|
-
css: {
|
|
5253
|
-
color: { base: "blue.10", _dark: "blue.10" },
|
|
5254
|
-
bg: { base: "blue.50", _dark: "blue.70" }
|
|
5255
|
-
}
|
|
5256
|
-
},
|
|
5257
|
-
{
|
|
5258
|
-
hue: "indigo",
|
|
5259
|
-
variant: "default",
|
|
5260
|
-
css: {
|
|
5261
|
-
color: { base: "indigo.70", _dark: "indigo.20" },
|
|
5262
|
-
bg: { base: "indigo.20", _dark: "indigo.90" }
|
|
5263
|
-
}
|
|
5264
|
-
},
|
|
5265
|
-
{
|
|
5266
|
-
hue: "indigo",
|
|
5267
|
-
variant: "bold",
|
|
5268
|
-
css: {
|
|
5269
|
-
color: { base: "indigo.10", _dark: "indigo.10" },
|
|
5270
|
-
bg: { base: "indigo.60", _dark: "indigo.70" }
|
|
5271
|
-
}
|
|
5272
|
-
},
|
|
5273
|
-
{
|
|
5274
|
-
hue: "purple",
|
|
5275
|
-
variant: "default",
|
|
5276
|
-
css: {
|
|
5277
|
-
color: { base: "purple.70", _dark: "purple.20" },
|
|
5278
|
-
bg: { base: "purple.20", _dark: "purple.90" }
|
|
5279
|
-
}
|
|
5280
|
-
},
|
|
5281
|
-
{
|
|
5282
|
-
hue: "purple",
|
|
5283
|
-
variant: "bold",
|
|
5284
|
-
css: {
|
|
5285
|
-
color: { base: "purple.10", _dark: "purple.10" },
|
|
5286
|
-
bg: { base: "purple.60", _dark: "purple.80" }
|
|
5287
|
-
}
|
|
5288
|
-
},
|
|
5289
|
-
{
|
|
5290
|
-
hue: "magenta",
|
|
5291
|
-
variant: "default",
|
|
5292
|
-
css: {
|
|
5293
|
-
color: { base: "magenta.80", _dark: "magenta.20" },
|
|
5294
|
-
bg: { base: "magenta.20", _dark: "magenta.90" }
|
|
5295
|
-
}
|
|
5296
|
-
},
|
|
5297
|
-
{
|
|
5298
|
-
hue: "magenta",
|
|
5299
|
-
variant: "bold",
|
|
5300
|
-
css: {
|
|
5301
|
-
color: { base: "magenta.10", _dark: "magenta.10" },
|
|
5302
|
-
bg: { base: "magenta.70", _dark: "magenta.70" }
|
|
5303
|
-
}
|
|
5304
|
-
},
|
|
5305
|
-
{
|
|
5306
|
-
hue: "tan",
|
|
5307
|
-
variant: "default",
|
|
5308
|
-
css: {
|
|
5309
|
-
color: { base: "tan.70", _dark: "tan.20" },
|
|
5310
|
-
bg: { base: "tan.20", _dark: "tan.80" }
|
|
5311
|
-
}
|
|
5312
|
-
},
|
|
5313
|
-
{
|
|
5314
|
-
hue: "tan",
|
|
5315
|
-
variant: "bold",
|
|
5316
|
-
css: {
|
|
5317
|
-
color: { base: "gray.10", _dark: "tan.90" },
|
|
5318
|
-
bg: { base: "tan.60", _dark: "tan.40" }
|
|
5319
|
-
}
|
|
5320
|
-
}
|
|
5321
|
-
],
|
|
5322
5316
|
defaultVariants: {
|
|
5323
5317
|
variant: "default",
|
|
5324
5318
|
hue: "gray"
|
|
@@ -5369,7 +5363,19 @@ const textVariants = {
|
|
|
5369
5363
|
},
|
|
5370
5364
|
underline: {
|
|
5371
5365
|
true: {
|
|
5372
|
-
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"
|
|
5373
5379
|
}
|
|
5374
5380
|
},
|
|
5375
5381
|
truncate: {
|
|
@@ -5417,39 +5423,45 @@ const linkBase = {
|
|
|
5417
5423
|
fontWeight: "medium",
|
|
5418
5424
|
gap: "1",
|
|
5419
5425
|
color: "link",
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
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)]",
|
|
5425
5433
|
outlineWidth: "2",
|
|
5426
5434
|
outlineStyle: "solid",
|
|
5427
5435
|
outlineColor: "transparent",
|
|
5428
5436
|
outlineOffset: "1",
|
|
5429
5437
|
width: "fit-content",
|
|
5430
5438
|
cursor: "pointer",
|
|
5439
|
+
transitionProperty: "all",
|
|
5440
|
+
transitionDuration: "fast",
|
|
5441
|
+
transitionTimingFunction: "default",
|
|
5431
5442
|
_hover: {
|
|
5432
|
-
color: "link",
|
|
5433
|
-
|
|
5443
|
+
color: "link.pressed",
|
|
5444
|
+
textDecorationColor: "current",
|
|
5445
|
+
textDecorationThickness: "[0.125em]"
|
|
5434
5446
|
},
|
|
5435
5447
|
_focusVisible: {
|
|
5436
5448
|
borderRadius: "{sizes.4}",
|
|
5437
5449
|
outlineColor: "border.focused"
|
|
5438
5450
|
},
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
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.
|
|
5445
5459
|
_disabled: {
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
color: "text.disabled",
|
|
5449
|
-
pointerEvents: "none"
|
|
5450
|
-
}
|
|
5460
|
+
cursor: "not-allowed",
|
|
5461
|
+
pointerEvents: "none"
|
|
5451
5462
|
}
|
|
5452
5463
|
};
|
|
5464
|
+
const linkVariants = { ...textVariants };
|
|
5453
5465
|
const labelBase = {
|
|
5454
5466
|
fontSize: "{sizes.16}",
|
|
5455
5467
|
fontWeight: "normal",
|
|
@@ -5611,18 +5623,18 @@ const themeSwitcherRecipe = defineRecipe({
|
|
|
5611
5623
|
opacity: "revert-layer",
|
|
5612
5624
|
display: "block",
|
|
5613
5625
|
borderRadius: "100",
|
|
5614
|
-
bg: "bg.neutral.inverse
|
|
5626
|
+
bg: "bg.neutral.inverse",
|
|
5615
5627
|
transition: "all",
|
|
5616
5628
|
transitionTimingFunction: "default",
|
|
5617
5629
|
transitionDuration: "normal"
|
|
5618
5630
|
},
|
|
5619
5631
|
_hover: {
|
|
5620
5632
|
cursor: "pointer",
|
|
5621
|
-
bg: "bg.neutral.inverse
|
|
5633
|
+
bg: "bg.neutral.inverse",
|
|
5622
5634
|
borderColor: "bg.neutral.bold",
|
|
5623
5635
|
"&:before": {
|
|
5624
5636
|
inset: "-8",
|
|
5625
|
-
bg: "bg.neutral.inverse
|
|
5637
|
+
bg: "bg.neutral.inverse",
|
|
5626
5638
|
opacity: "[0.25]"
|
|
5627
5639
|
}
|
|
5628
5640
|
}
|
|
@@ -5675,6 +5687,265 @@ const regularRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
5675
5687
|
themeSwitcherRecipe,
|
|
5676
5688
|
toggleInputRecipe
|
|
5677
5689
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
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"
|
|
5721
|
+
},
|
|
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"
|
|
5752
|
+
},
|
|
5753
|
+
_open: {
|
|
5754
|
+
borderColor: "border.focused",
|
|
5755
|
+
outlineColor: "border.focused"
|
|
5756
|
+
},
|
|
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"
|
|
5798
|
+
},
|
|
5799
|
+
_disabled: {
|
|
5800
|
+
color: "text.disabled",
|
|
5801
|
+
cursor: "not-allowed"
|
|
5802
|
+
}
|
|
5803
|
+
},
|
|
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
|
+
});
|
|
5678
5949
|
const avatarRecipe = defineSlotRecipe({
|
|
5679
5950
|
className: "avatar",
|
|
5680
5951
|
jsx: ["Avatar"],
|
|
@@ -5882,49 +6153,59 @@ const badgeRecipe = defineSlotRecipe({
|
|
|
5882
6153
|
slots: ["root", "indicator"],
|
|
5883
6154
|
base: {
|
|
5884
6155
|
root: {
|
|
6156
|
+
...globalBaseStyles,
|
|
6157
|
+
"--indicator-min-width": "token(sizes.16)",
|
|
5885
6158
|
display: "inline-flex",
|
|
5886
6159
|
position: "relative",
|
|
5887
|
-
verticalAlign: "middle"
|
|
6160
|
+
verticalAlign: "middle",
|
|
6161
|
+
w: "fit",
|
|
6162
|
+
h: "fit",
|
|
6163
|
+
flex: "0"
|
|
5888
6164
|
},
|
|
5889
6165
|
indicator: {
|
|
5890
6166
|
display: "inline-flex",
|
|
5891
6167
|
alignItems: "center",
|
|
5892
6168
|
justifyContent: "center",
|
|
6169
|
+
h: "fit",
|
|
5893
6170
|
borderRadius: "999",
|
|
5894
6171
|
fontWeight: "medium",
|
|
5895
6172
|
fontFamily: "sans",
|
|
5896
6173
|
lineHeight: "none",
|
|
5897
6174
|
whiteSpace: "nowrap",
|
|
5898
6175
|
userSelect: "none",
|
|
5899
|
-
zIndex: "
|
|
6176
|
+
zIndex: "1"
|
|
5900
6177
|
}
|
|
5901
6178
|
},
|
|
5902
6179
|
variants: {
|
|
5903
6180
|
size: {
|
|
5904
6181
|
sm: {
|
|
5905
6182
|
indicator: {
|
|
5906
|
-
|
|
6183
|
+
"--indicator-min-width": "token(sizes.16)",
|
|
6184
|
+
minH: "6",
|
|
5907
6185
|
fontSize: "10",
|
|
5908
6186
|
p: "3"
|
|
5909
6187
|
}
|
|
5910
6188
|
},
|
|
5911
6189
|
md: {
|
|
5912
6190
|
indicator: {
|
|
5913
|
-
|
|
6191
|
+
"--indicator-min-width": "token(sizes.20)",
|
|
6192
|
+
minH: "8",
|
|
5914
6193
|
fontSize: "12",
|
|
5915
6194
|
p: "4"
|
|
5916
6195
|
}
|
|
5917
6196
|
},
|
|
5918
6197
|
lg: {
|
|
5919
6198
|
indicator: {
|
|
5920
|
-
|
|
6199
|
+
"--indicator-min-width": "token(sizes.24)",
|
|
6200
|
+
minH: "10",
|
|
5921
6201
|
fontSize: "14",
|
|
5922
6202
|
p: "5"
|
|
5923
6203
|
}
|
|
5924
6204
|
},
|
|
5925
6205
|
xl: {
|
|
5926
6206
|
indicator: {
|
|
5927
|
-
|
|
6207
|
+
"--indicator-min-width": "token(sizes.28)",
|
|
6208
|
+
minH: "12",
|
|
5928
6209
|
fontSize: "16",
|
|
5929
6210
|
p: "6"
|
|
5930
6211
|
}
|
|
@@ -5938,7 +6219,8 @@ const badgeRecipe = defineSlotRecipe({
|
|
|
5938
6219
|
},
|
|
5939
6220
|
indicator: {
|
|
5940
6221
|
position: "static",
|
|
5941
|
-
transform: "none"
|
|
6222
|
+
transform: "none",
|
|
6223
|
+
h: "fit"
|
|
5942
6224
|
}
|
|
5943
6225
|
},
|
|
5944
6226
|
false: {
|
|
@@ -5951,20 +6233,18 @@ const badgeRecipe = defineSlotRecipe({
|
|
|
5951
6233
|
position: "absolute",
|
|
5952
6234
|
top: "0",
|
|
5953
6235
|
right: "0",
|
|
5954
|
-
transform: "translate(50%, -50%)"
|
|
6236
|
+
transform: "translate(50%, -50%)",
|
|
6237
|
+
h: "fit"
|
|
5955
6238
|
}
|
|
5956
6239
|
}
|
|
5957
6240
|
},
|
|
5958
6241
|
// Dot mode: smaller, no text
|
|
5959
6242
|
dot: {
|
|
5960
|
-
true: {
|
|
5961
|
-
indicator: {
|
|
5962
|
-
// Dot mode styles handled by base + size variants
|
|
5963
|
-
}
|
|
5964
|
-
},
|
|
6243
|
+
true: {},
|
|
5965
6244
|
false: {
|
|
5966
6245
|
indicator: {
|
|
5967
|
-
|
|
6246
|
+
h: "fit",
|
|
6247
|
+
minW: "var(--indicator-min-width)"
|
|
5968
6248
|
}
|
|
5969
6249
|
}
|
|
5970
6250
|
},
|
|
@@ -6020,49 +6300,6 @@ const badgeRecipe = defineSlotRecipe({
|
|
|
6020
6300
|
}
|
|
6021
6301
|
}
|
|
6022
6302
|
},
|
|
6023
|
-
compoundVariants: [
|
|
6024
|
-
// Count mode sizes (smaller than count mode)
|
|
6025
|
-
{
|
|
6026
|
-
dot: false,
|
|
6027
|
-
size: "sm",
|
|
6028
|
-
css: {
|
|
6029
|
-
indicator: {
|
|
6030
|
-
minW: "16",
|
|
6031
|
-
h: "fit"
|
|
6032
|
-
}
|
|
6033
|
-
}
|
|
6034
|
-
},
|
|
6035
|
-
{
|
|
6036
|
-
dot: false,
|
|
6037
|
-
size: "md",
|
|
6038
|
-
css: {
|
|
6039
|
-
indicator: {
|
|
6040
|
-
minW: "20",
|
|
6041
|
-
h: "fit"
|
|
6042
|
-
}
|
|
6043
|
-
}
|
|
6044
|
-
},
|
|
6045
|
-
{
|
|
6046
|
-
dot: false,
|
|
6047
|
-
size: "lg",
|
|
6048
|
-
css: {
|
|
6049
|
-
indicator: {
|
|
6050
|
-
minW: "24",
|
|
6051
|
-
h: "fit"
|
|
6052
|
-
}
|
|
6053
|
-
}
|
|
6054
|
-
},
|
|
6055
|
-
{
|
|
6056
|
-
dot: false,
|
|
6057
|
-
size: "xl",
|
|
6058
|
-
css: {
|
|
6059
|
-
indicator: {
|
|
6060
|
-
minW: "28",
|
|
6061
|
-
h: "fit"
|
|
6062
|
-
}
|
|
6063
|
-
}
|
|
6064
|
-
}
|
|
6065
|
-
],
|
|
6066
6303
|
defaultVariants: {
|
|
6067
6304
|
size: "md",
|
|
6068
6305
|
variant: "danger"
|
|
@@ -6112,20 +6349,15 @@ const breadcrumbsRecipe = defineSlotRecipe({
|
|
|
6112
6349
|
}
|
|
6113
6350
|
}
|
|
6114
6351
|
});
|
|
6115
|
-
const
|
|
6116
|
-
fill: "icon.decorative",
|
|
6117
|
-
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
6118
|
-
_groupHover: { fill: "current" },
|
|
6119
|
-
_groupActive: { fill: "current" }
|
|
6120
|
-
};
|
|
6121
|
-
const iconInverseStyles = {
|
|
6122
|
-
fill: "icon.decorative.inverse",
|
|
6123
|
-
mixBlendMode: { base: "screen", _dark: "multiply" },
|
|
6124
|
-
_groupHover: { fill: "icon.decorative.inverse" },
|
|
6125
|
-
_groupActive: { fill: "icon.decorative.inverse" }
|
|
6126
|
-
};
|
|
6127
|
-
const baseButtonStyles = {
|
|
6352
|
+
const buttonBaseStyles = {
|
|
6128
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)",
|
|
6129
6361
|
position: "relative",
|
|
6130
6362
|
appearance: "none",
|
|
6131
6363
|
display: "flex",
|
|
@@ -6134,14 +6366,13 @@ const baseButtonStyles = {
|
|
|
6134
6366
|
minWidth: "0",
|
|
6135
6367
|
width: "fit",
|
|
6136
6368
|
height: "fit",
|
|
6369
|
+
flexShrink: 0,
|
|
6137
6370
|
transitionDuration: "fast",
|
|
6138
6371
|
transitionProperty: "background, border-color, color, box-shadow",
|
|
6139
6372
|
transitionTimingFunction: "default",
|
|
6140
6373
|
userSelect: "none",
|
|
6141
6374
|
verticalAlign: "middle",
|
|
6142
|
-
fontFamily: "sans",
|
|
6143
6375
|
fontWeight: "medium",
|
|
6144
|
-
fontSize: "16",
|
|
6145
6376
|
lineHeight: "default",
|
|
6146
6377
|
borderWidth: "1",
|
|
6147
6378
|
borderStyle: "solid",
|
|
@@ -6150,6 +6381,7 @@ const baseButtonStyles = {
|
|
|
6150
6381
|
outlineWidth: "2",
|
|
6151
6382
|
outlineStyle: "solid",
|
|
6152
6383
|
outlineColor: "transparent",
|
|
6384
|
+
outlineOffset: "1",
|
|
6153
6385
|
textDecoration: "none",
|
|
6154
6386
|
whiteSpace: "nowrap",
|
|
6155
6387
|
cursor: "pointer",
|
|
@@ -6169,29 +6401,27 @@ const baseButtonStyles = {
|
|
|
6169
6401
|
display: "flex",
|
|
6170
6402
|
alignItems: "center",
|
|
6171
6403
|
width: "fit",
|
|
6172
|
-
height: "fit"
|
|
6404
|
+
height: "fit",
|
|
6405
|
+
py: "var(--main-py)",
|
|
6406
|
+
px: "var(--main-px)",
|
|
6407
|
+
fontSize: "var(--main-fs)"
|
|
6173
6408
|
},
|
|
6174
6409
|
slot: {
|
|
6175
6410
|
display: "inline-flex",
|
|
6176
6411
|
alignItems: "center",
|
|
6177
6412
|
transitionDuration: "fast",
|
|
6178
|
-
transitionProperty: "
|
|
6413
|
+
transitionProperty: "all",
|
|
6179
6414
|
transitionTimingFunction: "default",
|
|
6180
|
-
flex: "0 0
|
|
6181
|
-
|
|
6182
|
-
icon: {
|
|
6183
|
-
aspectRatio: "square",
|
|
6184
|
-
transitionDuration: "fast",
|
|
6185
|
-
transitionProperty: "fill",
|
|
6186
|
-
transitionTimingFunction: "default"
|
|
6415
|
+
flex: "0 0 var(--slot-size)",
|
|
6416
|
+
px: "var(--slot-px)"
|
|
6187
6417
|
}
|
|
6188
6418
|
};
|
|
6189
6419
|
const buttonVariants = {
|
|
6190
6420
|
variant: {
|
|
6191
|
-
|
|
6421
|
+
standard: {
|
|
6192
6422
|
container: {
|
|
6193
6423
|
bg: "bg.neutral",
|
|
6194
|
-
|
|
6424
|
+
borderColor: "transparent",
|
|
6195
6425
|
_hover: {
|
|
6196
6426
|
bg: "bg.neutral.hovered"
|
|
6197
6427
|
},
|
|
@@ -6199,89 +6429,86 @@ const buttonVariants = {
|
|
|
6199
6429
|
bg: "bg.neutral.pressed"
|
|
6200
6430
|
}
|
|
6201
6431
|
},
|
|
6202
|
-
|
|
6203
|
-
|
|
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
|
+
}
|
|
6204
6441
|
},
|
|
6205
6442
|
primary: {
|
|
6206
6443
|
container: {
|
|
6207
|
-
bg: "bg.
|
|
6208
|
-
|
|
6444
|
+
bg: "bg.neutral.boldest",
|
|
6445
|
+
borderColor: "transparent",
|
|
6209
6446
|
_hover: {
|
|
6210
|
-
bg: "bg.
|
|
6447
|
+
bg: "bg.neutral.bold.hovered"
|
|
6211
6448
|
},
|
|
6212
6449
|
_active: {
|
|
6213
|
-
bg: "bg.
|
|
6450
|
+
bg: "bg.neutral.bold.pressed"
|
|
6214
6451
|
}
|
|
6215
6452
|
},
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
fill: "icon.decorative.inverse.subtle",
|
|
6219
|
-
_groupDisabled: {
|
|
6220
|
-
fill: "icon.decorative.inverse.subtle"
|
|
6221
|
-
}
|
|
6453
|
+
mainContent: {
|
|
6454
|
+
color: "text.inverse"
|
|
6222
6455
|
},
|
|
6223
6456
|
slot: {
|
|
6224
|
-
|
|
6225
|
-
|
|
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" },
|
|
6226
6461
|
_groupDisabled: {
|
|
6227
|
-
fill: "icon.decorative.inverse
|
|
6462
|
+
fill: "icon.decorative.inverse"
|
|
6228
6463
|
}
|
|
6229
6464
|
}
|
|
6230
6465
|
},
|
|
6231
|
-
|
|
6466
|
+
hollow: {
|
|
6232
6467
|
container: {
|
|
6233
6468
|
bg: "bg.neutral.subtle",
|
|
6234
|
-
|
|
6469
|
+
borderColor: "border",
|
|
6235
6470
|
_hover: {
|
|
6236
|
-
bg: "bg.neutral.subtle.hovered"
|
|
6237
|
-
color: "text"
|
|
6471
|
+
bg: "bg.neutral.subtle.hovered"
|
|
6238
6472
|
},
|
|
6239
6473
|
_active: {
|
|
6240
|
-
bg: "bg.neutral.subtle.pressed"
|
|
6241
|
-
color: "text"
|
|
6474
|
+
bg: "bg.neutral.subtle.pressed"
|
|
6242
6475
|
}
|
|
6243
6476
|
},
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
},
|
|
6247
|
-
subtle: {
|
|
6248
|
-
container: {
|
|
6249
|
-
bg: "bg.neutral.subtle",
|
|
6250
|
-
color: "text.subtle",
|
|
6251
|
-
_hover: {
|
|
6252
|
-
bg: "bg.neutral.subtle.hovered",
|
|
6253
|
-
color: "text"
|
|
6254
|
-
},
|
|
6255
|
-
_active: {
|
|
6256
|
-
bg: "bg.neutral.subtle.pressed",
|
|
6257
|
-
color: "text"
|
|
6258
|
-
}
|
|
6477
|
+
mainContent: {
|
|
6478
|
+
color: "text"
|
|
6259
6479
|
},
|
|
6260
|
-
|
|
6261
|
-
|
|
6480
|
+
slot: {
|
|
6481
|
+
fill: "icon.decorative",
|
|
6482
|
+
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
6483
|
+
_groupHover: { fill: "current" },
|
|
6484
|
+
_groupActive: { fill: "current" }
|
|
6485
|
+
}
|
|
6262
6486
|
},
|
|
6263
|
-
|
|
6487
|
+
ghost: {
|
|
6264
6488
|
container: {
|
|
6265
6489
|
bg: "bg.neutral.subtle",
|
|
6266
|
-
borderColor: "
|
|
6267
|
-
color: "text",
|
|
6490
|
+
borderColor: "transparent",
|
|
6268
6491
|
_hover: {
|
|
6269
6492
|
bg: "bg.neutral.subtle.hovered"
|
|
6270
6493
|
},
|
|
6271
6494
|
_active: {
|
|
6272
6495
|
bg: "bg.neutral.subtle.pressed"
|
|
6273
|
-
},
|
|
6274
|
-
_disabled: {
|
|
6275
|
-
borderColor: "border.disabled"
|
|
6276
6496
|
}
|
|
6277
6497
|
},
|
|
6278
|
-
|
|
6279
|
-
|
|
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
|
+
}
|
|
6280
6507
|
},
|
|
6281
6508
|
danger: {
|
|
6282
6509
|
container: {
|
|
6283
6510
|
bg: "red.50",
|
|
6284
|
-
|
|
6511
|
+
borderColor: "transparent",
|
|
6285
6512
|
_hover: {
|
|
6286
6513
|
bg: "red.40"
|
|
6287
6514
|
},
|
|
@@ -6289,14 +6516,14 @@ const buttonVariants = {
|
|
|
6289
6516
|
bg: "red.60"
|
|
6290
6517
|
}
|
|
6291
6518
|
},
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
_groupDisabled: {
|
|
6295
|
-
fill: "icon.decorative.inverse"
|
|
6296
|
-
}
|
|
6519
|
+
mainContent: {
|
|
6520
|
+
color: "neutral.0"
|
|
6297
6521
|
},
|
|
6298
6522
|
slot: {
|
|
6299
|
-
|
|
6523
|
+
fill: "icon.decorative.inverse",
|
|
6524
|
+
mixBlendMode: "screen",
|
|
6525
|
+
_groupHover: { fill: "icon.decorative.inverse.hovered" },
|
|
6526
|
+
_groupActive: { fill: "icon.decorative.inverse.hovered" },
|
|
6300
6527
|
_groupDisabled: {
|
|
6301
6528
|
fill: "icon.decorative.inverse"
|
|
6302
6529
|
}
|
|
@@ -6305,24 +6532,18 @@ const buttonVariants = {
|
|
|
6305
6532
|
selected: {
|
|
6306
6533
|
container: {
|
|
6307
6534
|
bg: "bg.selected",
|
|
6308
|
-
|
|
6535
|
+
borderColor: "transparent",
|
|
6309
6536
|
_hover: {
|
|
6310
6537
|
bg: "bg.selected.hovered",
|
|
6311
|
-
color: "text.selected
|
|
6538
|
+
color: "text.selected"
|
|
6312
6539
|
},
|
|
6313
6540
|
_active: {
|
|
6314
6541
|
bg: "bg.selected.pressed",
|
|
6315
6542
|
color: "text.selected"
|
|
6316
6543
|
}
|
|
6317
6544
|
},
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
6321
|
-
_groupHover: { fill: "icon.selected" },
|
|
6322
|
-
_groupActive: { fill: "icon.selected" },
|
|
6323
|
-
_groupDisabled: {
|
|
6324
|
-
fill: "icon.selected"
|
|
6325
|
-
}
|
|
6545
|
+
mainContent: {
|
|
6546
|
+
color: "text.selected"
|
|
6326
6547
|
},
|
|
6327
6548
|
slot: {
|
|
6328
6549
|
fill: "icon.selected",
|
|
@@ -6337,7 +6558,7 @@ const buttonVariants = {
|
|
|
6337
6558
|
selectedBold: {
|
|
6338
6559
|
container: {
|
|
6339
6560
|
bg: "bg.selected.bold",
|
|
6340
|
-
|
|
6561
|
+
borderColor: "transparent",
|
|
6341
6562
|
_hover: {
|
|
6342
6563
|
bg: "bg.selected.bold.hovered"
|
|
6343
6564
|
},
|
|
@@ -6345,310 +6566,247 @@ const buttonVariants = {
|
|
|
6345
6566
|
bg: "bg.selected.bold.pressed"
|
|
6346
6567
|
}
|
|
6347
6568
|
},
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
mixBlendMode: { base: "screen", _dark: "multiply" },
|
|
6351
|
-
_groupHover: { fill: "icon.inverse" },
|
|
6352
|
-
_groupActive: { fill: "icon.inverse" },
|
|
6353
|
-
_groupDisabled: {
|
|
6354
|
-
fill: "icon.inverse"
|
|
6355
|
-
}
|
|
6569
|
+
mainContent: {
|
|
6570
|
+
color: "text.inverse"
|
|
6356
6571
|
},
|
|
6357
6572
|
slot: {
|
|
6358
|
-
fill: "icon.inverse",
|
|
6573
|
+
fill: "icon.decorative.inverse",
|
|
6359
6574
|
mixBlendMode: { base: "screen", _dark: "multiply" },
|
|
6360
|
-
_groupHover: { fill: "icon.inverse" },
|
|
6361
|
-
_groupActive: { fill: "icon.inverse" },
|
|
6362
|
-
_groupDisabled: {
|
|
6363
|
-
fill: "icon.inverse"
|
|
6364
|
-
}
|
|
6365
|
-
}
|
|
6366
|
-
},
|
|
6367
|
-
selectedSubtle: {
|
|
6368
|
-
container: {
|
|
6369
|
-
bg: "bg.selected",
|
|
6370
|
-
color: "text.selected",
|
|
6371
|
-
_hover: {
|
|
6372
|
-
bg: "bg.selected.hovered",
|
|
6373
|
-
color: "text.selected.hovered"
|
|
6374
|
-
},
|
|
6375
|
-
_active: {
|
|
6376
|
-
bg: "bg.selected.pressed",
|
|
6377
|
-
color: "text.selected"
|
|
6378
|
-
}
|
|
6379
|
-
},
|
|
6380
|
-
icon: {
|
|
6381
|
-
fill: "icon.selected",
|
|
6382
|
-
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
6383
|
-
_groupHover: { fill: "icon.selected" },
|
|
6384
|
-
_groupActive: { fill: "icon.selected" },
|
|
6575
|
+
_groupHover: { fill: "icon.decorative.inverse.hovered" },
|
|
6576
|
+
_groupActive: { fill: "icon.decorative.inverse.hovered" },
|
|
6385
6577
|
_groupDisabled: {
|
|
6386
|
-
fill: "icon.
|
|
6387
|
-
}
|
|
6388
|
-
},
|
|
6389
|
-
slot: {
|
|
6390
|
-
fill: "icon.selected",
|
|
6391
|
-
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
6392
|
-
_groupHover: { fill: "icon.selected" },
|
|
6393
|
-
_groupActive: { fill: "icon.selected" },
|
|
6394
|
-
_groupDisabled: {
|
|
6395
|
-
fill: "icon.selected"
|
|
6578
|
+
fill: "icon.decorative.inverse"
|
|
6396
6579
|
}
|
|
6397
6580
|
}
|
|
6398
6581
|
}
|
|
6399
6582
|
}
|
|
6400
6583
|
};
|
|
6401
|
-
const buttonSizes = {
|
|
6402
|
-
sm: {
|
|
6403
|
-
container: {
|
|
6404
|
-
fontSize: "14",
|
|
6405
|
-
py: "1",
|
|
6406
|
-
px: "8"
|
|
6407
|
-
},
|
|
6408
|
-
slot: {
|
|
6409
|
-
w: "16",
|
|
6410
|
-
h: "16",
|
|
6411
|
-
px: "4"
|
|
6412
|
-
},
|
|
6413
|
-
icon: {
|
|
6414
|
-
w: "22",
|
|
6415
|
-
h: "22"
|
|
6416
|
-
}
|
|
6417
|
-
},
|
|
6418
|
-
md: {
|
|
6419
|
-
container: {
|
|
6420
|
-
fontSize: "16",
|
|
6421
|
-
py: "3",
|
|
6422
|
-
px: "12"
|
|
6423
|
-
},
|
|
6424
|
-
slot: {
|
|
6425
|
-
w: "20",
|
|
6426
|
-
h: "20",
|
|
6427
|
-
px: "6"
|
|
6428
|
-
},
|
|
6429
|
-
icon: {
|
|
6430
|
-
w: "24",
|
|
6431
|
-
h: "24"
|
|
6432
|
-
}
|
|
6433
|
-
},
|
|
6434
|
-
lg: {
|
|
6435
|
-
container: {
|
|
6436
|
-
fontSize: "16",
|
|
6437
|
-
py: "7",
|
|
6438
|
-
px: "14"
|
|
6439
|
-
},
|
|
6440
|
-
slot: {
|
|
6441
|
-
w: "24",
|
|
6442
|
-
h: "24",
|
|
6443
|
-
px: "8"
|
|
6444
|
-
},
|
|
6445
|
-
icon: {
|
|
6446
|
-
w: "24",
|
|
6447
|
-
h: "24"
|
|
6448
|
-
}
|
|
6449
|
-
},
|
|
6450
|
-
xl: {
|
|
6451
|
-
container: {
|
|
6452
|
-
fontSize: "20",
|
|
6453
|
-
py: "9",
|
|
6454
|
-
px: "16"
|
|
6455
|
-
},
|
|
6456
|
-
slot: {
|
|
6457
|
-
w: "28",
|
|
6458
|
-
h: "28",
|
|
6459
|
-
px: "10"
|
|
6460
|
-
},
|
|
6461
|
-
icon: {
|
|
6462
|
-
w: "28",
|
|
6463
|
-
h: "28"
|
|
6464
|
-
}
|
|
6465
|
-
}
|
|
6466
|
-
};
|
|
6467
6584
|
const buttonRecipe = defineSlotRecipe({
|
|
6468
6585
|
className: "button",
|
|
6469
6586
|
jsx: ["Button"],
|
|
6470
|
-
slots: ["container", "mainContent", "slot"
|
|
6471
|
-
base:
|
|
6587
|
+
slots: ["container", "mainContent", "slot"],
|
|
6588
|
+
base: buttonBaseStyles,
|
|
6472
6589
|
variants: {
|
|
6473
6590
|
...buttonVariants,
|
|
6474
|
-
size:
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
css: {
|
|
6515
|
-
container: { ps: "5" }
|
|
6516
|
-
}
|
|
6517
|
-
},
|
|
6518
|
-
{
|
|
6519
|
-
size: "lg",
|
|
6520
|
-
iconAfter: true,
|
|
6521
|
-
css: {
|
|
6522
|
-
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
|
+
}
|
|
6523
6631
|
}
|
|
6524
6632
|
},
|
|
6525
|
-
{
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6633
|
+
before: {
|
|
6634
|
+
true: {
|
|
6635
|
+
mainContent: {
|
|
6636
|
+
ps: "0"
|
|
6637
|
+
}
|
|
6530
6638
|
}
|
|
6531
6639
|
},
|
|
6532
|
-
{
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6640
|
+
after: {
|
|
6641
|
+
true: {
|
|
6642
|
+
mainContent: {
|
|
6643
|
+
pe: "0"
|
|
6644
|
+
}
|
|
6537
6645
|
}
|
|
6538
6646
|
}
|
|
6539
|
-
|
|
6647
|
+
},
|
|
6540
6648
|
defaultVariants: {
|
|
6541
|
-
variant: "
|
|
6649
|
+
variant: "standard",
|
|
6542
6650
|
size: "md"
|
|
6543
6651
|
}
|
|
6544
6652
|
});
|
|
6545
6653
|
const iconButtonRecipe = defineSlotRecipe({
|
|
6546
6654
|
className: "iconButton",
|
|
6547
6655
|
jsx: ["IconButton"],
|
|
6548
|
-
slots: ["container", "mainContent", "slot"
|
|
6549
|
-
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
|
+
},
|
|
6550
6669
|
variants: {
|
|
6551
6670
|
...buttonVariants,
|
|
6552
6671
|
size: {
|
|
6553
6672
|
sm: {
|
|
6554
6673
|
container: {
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
},
|
|
6558
|
-
slot: {
|
|
6559
|
-
w: "22",
|
|
6560
|
-
h: "22"
|
|
6561
|
-
},
|
|
6562
|
-
mainContent: {
|
|
6563
|
-
width: "fit",
|
|
6564
|
-
height: "fit"
|
|
6565
|
-
},
|
|
6566
|
-
icon: {
|
|
6567
|
-
w: "22",
|
|
6568
|
-
h: "22"
|
|
6674
|
+
"--slot-size": "token(sizes.16)",
|
|
6675
|
+
"--slot-px": "token(sizes.3)"
|
|
6569
6676
|
}
|
|
6570
6677
|
},
|
|
6571
6678
|
md: {
|
|
6572
6679
|
container: {
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
},
|
|
6576
|
-
slot: {
|
|
6577
|
-
w: "24",
|
|
6578
|
-
h: "24"
|
|
6579
|
-
},
|
|
6580
|
-
mainContent: {
|
|
6581
|
-
width: "fit",
|
|
6582
|
-
height: "fit"
|
|
6583
|
-
},
|
|
6584
|
-
icon: {
|
|
6585
|
-
w: "24",
|
|
6586
|
-
h: "24"
|
|
6680
|
+
"--slot-size": "token(sizes.20)",
|
|
6681
|
+
"--slot-px": "token(sizes.5)"
|
|
6587
6682
|
}
|
|
6588
6683
|
},
|
|
6589
6684
|
lg: {
|
|
6590
6685
|
container: {
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
},
|
|
6594
|
-
slot: {
|
|
6595
|
-
w: "24",
|
|
6596
|
-
h: "24"
|
|
6597
|
-
},
|
|
6598
|
-
mainContent: {
|
|
6599
|
-
width: "fit",
|
|
6600
|
-
height: "fit"
|
|
6601
|
-
},
|
|
6602
|
-
icon: {
|
|
6603
|
-
w: "24",
|
|
6604
|
-
h: "24"
|
|
6686
|
+
"--slot-size": "token(sizes.24)",
|
|
6687
|
+
"--slot-px": "token(sizes.7)"
|
|
6605
6688
|
}
|
|
6606
6689
|
},
|
|
6607
6690
|
xl: {
|
|
6608
6691
|
container: {
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
},
|
|
6612
|
-
slot: {
|
|
6613
|
-
w: "28",
|
|
6614
|
-
h: "28"
|
|
6615
|
-
},
|
|
6616
|
-
mainContent: {
|
|
6617
|
-
width: "fit",
|
|
6618
|
-
height: "fit"
|
|
6619
|
-
},
|
|
6620
|
-
icon: {
|
|
6621
|
-
w: "28",
|
|
6622
|
-
h: "28"
|
|
6692
|
+
"--slot-size": "token(sizes.28)",
|
|
6693
|
+
"--slot-px": "token(sizes.9)"
|
|
6623
6694
|
}
|
|
6624
6695
|
}
|
|
6625
6696
|
}
|
|
6626
6697
|
},
|
|
6627
6698
|
defaultVariants: {
|
|
6628
|
-
variant: "
|
|
6699
|
+
variant: "standard",
|
|
6629
6700
|
size: "md"
|
|
6630
6701
|
}
|
|
6631
6702
|
});
|
|
6632
|
-
const
|
|
6633
|
-
className: "
|
|
6634
|
-
jsx: ["
|
|
6635
|
-
slots: ["
|
|
6703
|
+
const calendarRecipe = defineSlotRecipe({
|
|
6704
|
+
className: "calendar",
|
|
6705
|
+
jsx: ["Calendar"],
|
|
6706
|
+
slots: ["root", "header", "grid", "weekdayLabel", "day", "monthYearGrid"],
|
|
6636
6707
|
base: {
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
display: "
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
userSelect: "none"
|
|
6708
|
+
root: {
|
|
6709
|
+
...globalBaseStyles,
|
|
6710
|
+
display: "flex",
|
|
6711
|
+
flexDirection: "column",
|
|
6712
|
+
alignItems: "flex-start",
|
|
6713
|
+
bg: "surface",
|
|
6714
|
+
width: "278"
|
|
6645
6715
|
},
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6716
|
+
header: {
|
|
6717
|
+
display: "flex",
|
|
6718
|
+
alignItems: "center",
|
|
6719
|
+
justifyContent: "space-between",
|
|
6720
|
+
gap: "4",
|
|
6649
6721
|
width: "full",
|
|
6650
|
-
|
|
6651
|
-
|
|
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
|
+
});
|
|
6790
|
+
const checkboxRecipe = defineSlotRecipe({
|
|
6791
|
+
className: "checkbox",
|
|
6792
|
+
jsx: ["Checkbox"],
|
|
6793
|
+
slots: ["container", "input", "indicator", "checkBg"],
|
|
6794
|
+
base: {
|
|
6795
|
+
container: {
|
|
6796
|
+
position: "relative",
|
|
6797
|
+
display: "inline-grid",
|
|
6798
|
+
placeContent: "center",
|
|
6799
|
+
gridTemplateColumns: "auto 1fr",
|
|
6800
|
+
alignItems: "start",
|
|
6801
|
+
cursor: "pointer",
|
|
6802
|
+
userSelect: "none"
|
|
6803
|
+
},
|
|
6804
|
+
input: {
|
|
6805
|
+
position: "absolute",
|
|
6806
|
+
opacity: 0,
|
|
6807
|
+
width: "full",
|
|
6808
|
+
height: "full",
|
|
6809
|
+
margin: "0",
|
|
6652
6810
|
padding: "0",
|
|
6653
6811
|
zIndex: "raised",
|
|
6654
6812
|
cursor: "inherit",
|
|
@@ -6713,132 +6871,51 @@ const checkboxRecipe = defineSlotRecipe({
|
|
|
6713
6871
|
}
|
|
6714
6872
|
}
|
|
6715
6873
|
});
|
|
6716
|
-
const
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
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"
|
|
6724
6882
|
},
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
appearance: "none",
|
|
6729
|
-
border: "none",
|
|
6730
|
-
borderRadius: "999",
|
|
6731
|
-
fontFamily: "sans",
|
|
6732
|
-
lineHeight: "default",
|
|
6733
|
-
fontWeight: "medium",
|
|
6734
|
-
whiteSpace: "nowrap",
|
|
6735
|
-
cursor: "pointer",
|
|
6736
|
-
transitionDuration: "fast",
|
|
6737
|
-
transitionProperty: "background, color, border-color, box-shadow",
|
|
6738
|
-
transitionTimingFunction: "default",
|
|
6739
|
-
userSelect: "none",
|
|
6740
|
-
outlineWidth: "2",
|
|
6741
|
-
outlineStyle: "solid",
|
|
6742
|
-
outlineColor: "transparent",
|
|
6743
|
-
bg: "bg.neutral",
|
|
6744
|
-
color: "text",
|
|
6745
|
-
_hover: {
|
|
6746
|
-
bg: "bg.neutral.hovered"
|
|
6747
|
-
},
|
|
6748
|
-
_active: {
|
|
6749
|
-
bg: "bg.neutral.pressed"
|
|
6750
|
-
},
|
|
6751
|
-
_focusVisible: {
|
|
6752
|
-
outlineColor: "border.focused"
|
|
6753
|
-
},
|
|
6754
|
-
_loading: {
|
|
6755
|
-
cursor: "wait",
|
|
6756
|
-
animation: "pulse"
|
|
6757
|
-
},
|
|
6758
|
-
_deleted: {
|
|
6759
|
-
textDecoration: "line-through",
|
|
6760
|
-
cursor: "not-allowed",
|
|
6761
|
-
opacity: "[0.6]"
|
|
6762
|
-
},
|
|
6763
|
-
_disabled: {
|
|
6764
|
-
cursor: "not-allowed",
|
|
6765
|
-
bg: "bg.disabled",
|
|
6766
|
-
color: "text.disabled",
|
|
6767
|
-
borderColor: "border.disabled",
|
|
6768
|
-
_hover: {
|
|
6769
|
-
bg: "bg.disabled",
|
|
6770
|
-
color: "text.disabled",
|
|
6771
|
-
borderColor: "border.disabled"
|
|
6772
|
-
}
|
|
6773
|
-
},
|
|
6774
|
-
_selected: {
|
|
6775
|
-
bg: "bg.neutral.boldest",
|
|
6776
|
-
color: "text.inverse",
|
|
6777
|
-
_hover: {
|
|
6778
|
-
bg: "bg.neutral.bold.hovered"
|
|
6779
|
-
},
|
|
6780
|
-
_active: {
|
|
6781
|
-
bg: "bg.neutral.bold.pressed"
|
|
6782
|
-
}
|
|
6883
|
+
_hover: {
|
|
6884
|
+
_icon: {
|
|
6885
|
+
fill: "icon"
|
|
6783
6886
|
}
|
|
6784
6887
|
},
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
minW: 0
|
|
6888
|
+
_active: {
|
|
6889
|
+
_icon: {
|
|
6890
|
+
fill: "icon"
|
|
6891
|
+
}
|
|
6790
6892
|
},
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
alignItems: "center",
|
|
6794
|
-
justifyContent: "center",
|
|
6795
|
-
flexShrink: 0
|
|
6893
|
+
_focusVisible: {
|
|
6894
|
+
outlineColor: "border.focused"
|
|
6796
6895
|
},
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
alignItems: "center",
|
|
6800
|
-
justifyContent: "center",
|
|
6801
|
-
border: "none",
|
|
6802
|
-
borderRadius: "full",
|
|
6803
|
-
bg: "transparent",
|
|
6804
|
-
color: "inherit",
|
|
6805
|
-
cursor: "pointer",
|
|
6806
|
-
transitionDuration: "fast",
|
|
6807
|
-
transitionProperty: "background, color",
|
|
6808
|
-
transitionTimingFunction: "default",
|
|
6809
|
-
outlineWidth: "2",
|
|
6810
|
-
outlineStyle: "solid",
|
|
6811
|
-
outlineColor: "transparent",
|
|
6812
|
-
_hover: {
|
|
6813
|
-
bg: "bg.neutral.hovered"
|
|
6814
|
-
},
|
|
6815
|
-
_active: {
|
|
6816
|
-
bg: "bg.neutral.pressed"
|
|
6817
|
-
},
|
|
6818
|
-
_focusVisible: {
|
|
6819
|
-
outlineColor: "border.focused"
|
|
6820
|
-
},
|
|
6821
|
-
_disabled: {
|
|
6822
|
-
cursor: "not-allowed",
|
|
6823
|
-
color: "text.disabled"
|
|
6824
|
-
},
|
|
6825
|
-
"[data-selected=true] &": {
|
|
6826
|
-
color: "text.inverse"
|
|
6827
|
-
}
|
|
6896
|
+
_disabled: {
|
|
6897
|
+
cursor: "not-allowed"
|
|
6828
6898
|
},
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6899
|
+
"&:has([data-disabled=true])": {
|
|
6900
|
+
cursor: "not-allowed"
|
|
6901
|
+
},
|
|
6902
|
+
"&:has([data-deleted=true])": {
|
|
6903
|
+
textDecoration: "line-through",
|
|
6904
|
+
opacity: "[0.6]"
|
|
6905
|
+
},
|
|
6906
|
+
"&:has([data-selected=true])": {
|
|
6907
|
+
bg: "bg.neutral.boldest",
|
|
6908
|
+
_icon: {
|
|
6839
6909
|
fill: "icon.decorative.inverse"
|
|
6840
|
-
}
|
|
6841
|
-
|
|
6910
|
+
}
|
|
6911
|
+
},
|
|
6912
|
+
"&:has([data-selected=true]):is(:hover, [data-hover])": {
|
|
6913
|
+
_icon: {
|
|
6914
|
+
fill: "icon.decorative.inverse.hovered"
|
|
6915
|
+
}
|
|
6916
|
+
},
|
|
6917
|
+
"&:has([data-selected=true]):is(:active, [data-active])": {
|
|
6918
|
+
_icon: {
|
|
6842
6919
|
fill: "icon.decorative.inverse.hovered"
|
|
6843
6920
|
}
|
|
6844
6921
|
}
|
|
@@ -6846,412 +6923,267 @@ const chipBase = {
|
|
|
6846
6923
|
const chipRecipe = defineSlotRecipe({
|
|
6847
6924
|
className: "chip",
|
|
6848
6925
|
jsx: ["Chip"],
|
|
6849
|
-
slots: [
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
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.
|
|
6957
|
+
_hover: {
|
|
6958
|
+
bg: "bg.neutral.hovered"
|
|
6882
6959
|
},
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
gap: "4",
|
|
6886
|
-
h: "24",
|
|
6887
|
-
px: "8",
|
|
6888
|
-
py: "1",
|
|
6889
|
-
fontSize: "14"
|
|
6890
|
-
},
|
|
6891
|
-
mainContent: {
|
|
6892
|
-
gap: "4"
|
|
6893
|
-
},
|
|
6894
|
-
slot: {
|
|
6895
|
-
gap: "4"
|
|
6896
|
-
},
|
|
6897
|
-
chipIcon: {
|
|
6898
|
-
w: "20",
|
|
6899
|
-
h: "20"
|
|
6900
|
-
},
|
|
6901
|
-
dismissButton: {
|
|
6902
|
-
w: "24",
|
|
6903
|
-
h: "24"
|
|
6904
|
-
}
|
|
6960
|
+
_active: {
|
|
6961
|
+
bg: "bg.neutral.pressed"
|
|
6905
6962
|
},
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
mainContent: {
|
|
6915
|
-
gap: "4"
|
|
6916
|
-
},
|
|
6917
|
-
slot: {
|
|
6918
|
-
gap: "4"
|
|
6919
|
-
},
|
|
6920
|
-
chipIcon: {
|
|
6921
|
-
w: "24",
|
|
6922
|
-
h: "24"
|
|
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"
|
|
6923
6971
|
},
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
h: "32"
|
|
6972
|
+
_active: {
|
|
6973
|
+
bg: "bg.neutral.bold.pressed"
|
|
6927
6974
|
}
|
|
6928
6975
|
},
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
},
|
|
6937
|
-
mainContent: {
|
|
6938
|
-
gap: "4"
|
|
6939
|
-
},
|
|
6940
|
-
slot: {
|
|
6941
|
-
gap: "4"
|
|
6942
|
-
},
|
|
6943
|
-
chipIcon: {
|
|
6944
|
-
w: "24",
|
|
6945
|
-
h: "24"
|
|
6946
|
-
},
|
|
6947
|
-
dismissButton: {
|
|
6948
|
-
w: "40",
|
|
6949
|
-
h: "40"
|
|
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"
|
|
6950
6983
|
}
|
|
6951
6984
|
}
|
|
6952
6985
|
},
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
},
|
|
6971
|
-
{
|
|
6972
|
-
size: "sm",
|
|
6973
|
-
after: true,
|
|
6974
|
-
css: {
|
|
6975
|
-
body: { pe: "2" }
|
|
6976
|
-
}
|
|
6977
|
-
},
|
|
6978
|
-
{
|
|
6979
|
-
size: "md",
|
|
6980
|
-
before: true,
|
|
6981
|
-
css: {
|
|
6982
|
-
body: { ps: "2" }
|
|
6983
|
-
}
|
|
6984
|
-
},
|
|
6985
|
-
{
|
|
6986
|
-
size: "md",
|
|
6987
|
-
after: true,
|
|
6988
|
-
css: {
|
|
6989
|
-
body: { pe: "2" }
|
|
6990
|
-
}
|
|
6991
|
-
},
|
|
6992
|
-
{
|
|
6993
|
-
size: "lg",
|
|
6994
|
-
before: true,
|
|
6995
|
-
css: {
|
|
6996
|
-
body: { ps: "4" }
|
|
6997
|
-
}
|
|
6998
|
-
},
|
|
6999
|
-
{
|
|
7000
|
-
size: "lg",
|
|
7001
|
-
after: true,
|
|
7002
|
-
css: {
|
|
7003
|
-
body: { pe: "4" }
|
|
7004
|
-
}
|
|
7005
|
-
},
|
|
7006
|
-
{
|
|
7007
|
-
size: "xl",
|
|
7008
|
-
before: true,
|
|
7009
|
-
css: {
|
|
7010
|
-
body: { ps: "4" }
|
|
7011
|
-
}
|
|
7012
|
-
},
|
|
7013
|
-
{
|
|
7014
|
-
size: "xl",
|
|
7015
|
-
after: true,
|
|
7016
|
-
css: {
|
|
7017
|
-
body: { pe: "4" }
|
|
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
|
|
7018
7003
|
}
|
|
7019
|
-
}
|
|
7020
|
-
],
|
|
7021
|
-
defaultVariants: {
|
|
7022
|
-
size: "md"
|
|
7023
|
-
}
|
|
7024
|
-
});
|
|
7025
|
-
const datePickerBase = {
|
|
7026
|
-
root: {
|
|
7027
|
-
display: "inline-flex",
|
|
7028
|
-
flexDirection: "column",
|
|
7029
|
-
position: "relative"
|
|
7030
|
-
},
|
|
7031
|
-
input: {
|
|
7032
|
-
display: "inline-flex",
|
|
7033
|
-
alignItems: "center",
|
|
7034
|
-
gap: "2",
|
|
7035
|
-
width: "full",
|
|
7036
|
-
borderWidth: "1",
|
|
7037
|
-
borderStyle: "solid",
|
|
7038
|
-
borderColor: "border.input",
|
|
7039
|
-
borderRadius: "4",
|
|
7040
|
-
outlineWidth: "2",
|
|
7041
|
-
outlineOffset: "-1",
|
|
7042
|
-
outlineStyle: "solid",
|
|
7043
|
-
outlineColor: "transparent",
|
|
7044
|
-
bg: "bg.input",
|
|
7045
|
-
color: "text",
|
|
7046
|
-
fontFamily: "mono",
|
|
7047
|
-
lineHeight: "default",
|
|
7048
|
-
cursor: "text",
|
|
7049
|
-
userSelect: "none",
|
|
7050
|
-
transitionDuration: "fast",
|
|
7051
|
-
transitionProperty: "background, border-color, outline-color",
|
|
7052
|
-
transitionTimingFunction: "default",
|
|
7053
|
-
_focusWithin: {
|
|
7054
|
-
bg: "bg.input.pressed",
|
|
7055
|
-
borderColor: "border.focused",
|
|
7056
|
-
outlineColor: "border.focused"
|
|
7057
|
-
},
|
|
7058
|
-
_open: {
|
|
7059
|
-
bg: "bg.input.pressed",
|
|
7060
|
-
borderColor: "border.focused",
|
|
7061
|
-
outlineColor: "border.focused"
|
|
7062
7004
|
},
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
borderColor: "border.danger",
|
|
7073
|
-
color: "text.danger",
|
|
7074
|
-
_hover: {
|
|
7075
|
-
bg: "bg.danger.hovered",
|
|
7076
|
-
borderColor: "border.danger"
|
|
7077
|
-
},
|
|
7078
|
-
_focusWithin: {
|
|
7079
|
-
bg: "bg.danger",
|
|
7080
|
-
borderColor: "border.danger",
|
|
7081
|
-
outlineColor: "border.danger"
|
|
7082
|
-
},
|
|
7083
|
-
_open: {
|
|
7084
|
-
bg: "bg.danger",
|
|
7085
|
-
borderColor: "border.danger",
|
|
7086
|
-
outlineColor: "border.danger"
|
|
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] > &": {
|
|
7013
|
+
color: "text.inverse"
|
|
7087
7014
|
}
|
|
7088
7015
|
},
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
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.
|
|
7093
7036
|
_hover: {
|
|
7094
|
-
bg: "
|
|
7095
|
-
|
|
7037
|
+
bg: "transparent",
|
|
7038
|
+
_icon: { fill: "icon" }
|
|
7096
7039
|
},
|
|
7097
|
-
|
|
7098
|
-
bg: "
|
|
7099
|
-
|
|
7100
|
-
outlineColor: "border.danger"
|
|
7040
|
+
_active: {
|
|
7041
|
+
bg: "transparent",
|
|
7042
|
+
_icon: { fill: "icon" }
|
|
7101
7043
|
},
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
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)"
|
|
7106
7050
|
}
|
|
7107
|
-
}
|
|
7108
|
-
},
|
|
7109
|
-
segment: {
|
|
7110
|
-
display: "inline-flex",
|
|
7111
|
-
alignItems: "center",
|
|
7112
|
-
justifyContent: "center",
|
|
7113
|
-
outline: "none",
|
|
7114
|
-
borderRadius: "{sizes.2}",
|
|
7115
|
-
cursor: "default",
|
|
7116
|
-
userSelect: "none",
|
|
7117
|
-
fontFamily: "mono",
|
|
7118
|
-
fontVariantsProperty: "mono",
|
|
7119
|
-
fontVariantNumeric: "tabular-nums",
|
|
7120
|
-
minWidth: "{sizes.24}",
|
|
7121
|
-
textAlign: "center",
|
|
7122
|
-
color: "text",
|
|
7123
|
-
_focusVisible: {
|
|
7124
|
-
bg: "bg.neutral.hovered"
|
|
7125
|
-
},
|
|
7126
|
-
_groupDisabled: {
|
|
7127
|
-
color: "text.disabled"
|
|
7128
7051
|
},
|
|
7129
|
-
|
|
7130
|
-
|
|
7052
|
+
slot: {
|
|
7053
|
+
display: "inline-flex",
|
|
7054
|
+
alignItems: "center",
|
|
7055
|
+
px: "var(--slot-px)"
|
|
7131
7056
|
}
|
|
7132
7057
|
},
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
display: "grid",
|
|
7165
|
-
gridTemplateColumns: "repeat(7, 1fr)",
|
|
7166
|
-
gap: "2",
|
|
7167
|
-
px: "8",
|
|
7168
|
-
py: "4",
|
|
7169
|
-
pb: "8"
|
|
7170
|
-
},
|
|
7171
|
-
weekdayLabel: {
|
|
7172
|
-
display: "flex",
|
|
7173
|
-
alignItems: "center",
|
|
7174
|
-
justifyContent: "center",
|
|
7175
|
-
userSelect: "none"
|
|
7176
|
-
},
|
|
7177
|
-
day: {
|
|
7178
|
-
alignItems: "center",
|
|
7179
|
-
justifyContent: "center",
|
|
7180
|
-
fontFamily: "mono",
|
|
7181
|
-
width: "32",
|
|
7182
|
-
height: "32",
|
|
7183
|
-
_today: {
|
|
7184
|
-
fontWeight: "bold",
|
|
7185
|
-
color: "text.selected",
|
|
7186
|
-
bg: "bg.selected"
|
|
7187
|
-
},
|
|
7188
|
-
_selected: {
|
|
7189
|
-
bg: "bg.selected.bold",
|
|
7190
|
-
color: "text.inverse",
|
|
7191
|
-
_hover: {
|
|
7192
|
-
bg: "bg.selected.bold.hovered"
|
|
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
|
+
}
|
|
7193
7089
|
},
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
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
|
+
}
|
|
7197
7099
|
}
|
|
7198
7100
|
},
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
bg: "transparent"
|
|
7205
|
-
}
|
|
7206
|
-
}
|
|
7207
|
-
}
|
|
7208
|
-
};
|
|
7209
|
-
const datePickerVariants = {
|
|
7210
|
-
size: {
|
|
7211
|
-
sm: {
|
|
7212
|
-
input: {
|
|
7213
|
-
py: "0",
|
|
7214
|
-
px: "8",
|
|
7215
|
-
fontSize: "14"
|
|
7101
|
+
before: {
|
|
7102
|
+
true: {
|
|
7103
|
+
mainContent: {
|
|
7104
|
+
ps: "var(--main-slot-side-padding)"
|
|
7105
|
+
}
|
|
7216
7106
|
}
|
|
7217
7107
|
},
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7108
|
+
after: {
|
|
7109
|
+
true: {
|
|
7110
|
+
mainContent: {
|
|
7111
|
+
pe: "var(--main-slot-side-padding)"
|
|
7112
|
+
}
|
|
7223
7113
|
}
|
|
7224
7114
|
},
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
py: "7",
|
|
7228
|
-
px: "12",
|
|
7229
|
-
fontSize: "16"
|
|
7230
|
-
}
|
|
7115
|
+
dismissable: {
|
|
7116
|
+
true: {}
|
|
7231
7117
|
}
|
|
7232
|
-
}
|
|
7233
|
-
};
|
|
7234
|
-
const datePickerRecipe = defineSlotRecipe({
|
|
7235
|
-
className: "datePicker",
|
|
7236
|
-
jsx: ["DatePicker", "DateRangePicker"],
|
|
7237
|
-
slots: [
|
|
7238
|
-
"root",
|
|
7239
|
-
"input",
|
|
7240
|
-
"segment",
|
|
7241
|
-
"separator",
|
|
7242
|
-
"popover",
|
|
7243
|
-
"calendarHeader",
|
|
7244
|
-
"navButton",
|
|
7245
|
-
"calendarGrid",
|
|
7246
|
-
"weekdayLabel",
|
|
7247
|
-
"day"
|
|
7248
|
-
],
|
|
7249
|
-
base: datePickerBase,
|
|
7250
|
-
variants: datePickerVariants,
|
|
7118
|
+
},
|
|
7251
7119
|
defaultVariants: {
|
|
7252
7120
|
size: "md"
|
|
7253
7121
|
}
|
|
7254
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
|
+
});
|
|
7255
7187
|
const formFieldBase = {
|
|
7256
7188
|
container: {
|
|
7257
7189
|
_disabled: {
|
|
@@ -7326,54 +7258,54 @@ const formFieldRecipe = defineSlotRecipe({
|
|
|
7326
7258
|
size: "md"
|
|
7327
7259
|
}
|
|
7328
7260
|
});
|
|
7329
|
-
const kbdBase = {
|
|
7330
|
-
container: {
|
|
7331
|
-
display: "inline-flex",
|
|
7332
|
-
alignItems: "center",
|
|
7333
|
-
gap: "1",
|
|
7334
|
-
verticalAlign: "middle"
|
|
7335
|
-
},
|
|
7336
|
-
key: {
|
|
7337
|
-
display: "inline-flex",
|
|
7338
|
-
alignItems: "center",
|
|
7339
|
-
justifyContent: "center",
|
|
7340
|
-
minH: "6",
|
|
7341
|
-
minW: "6",
|
|
7342
|
-
px: "2",
|
|
7343
|
-
borderWidth: "1",
|
|
7344
|
-
borderStyle: "solid",
|
|
7345
|
-
borderColor: "border.subtle",
|
|
7346
|
-
borderRadius: "6",
|
|
7347
|
-
bg: "bg.neutral",
|
|
7348
|
-
color: "text",
|
|
7349
|
-
fontFamily: "mono",
|
|
7350
|
-
fontSize: "12",
|
|
7351
|
-
lineHeight: "none",
|
|
7352
|
-
fontWeight: "medium",
|
|
7353
|
-
letterSpacing: "wide",
|
|
7354
|
-
whiteSpace: "nowrap",
|
|
7355
|
-
boxShadow: "sm"
|
|
7356
|
-
}
|
|
7357
|
-
};
|
|
7358
7261
|
const kbdRecipe = defineSlotRecipe({
|
|
7359
7262
|
className: "kbd",
|
|
7360
7263
|
jsx: ["Kbd"],
|
|
7361
|
-
slots: ["
|
|
7362
|
-
base:
|
|
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
|
+
},
|
|
7363
7293
|
variants: {
|
|
7364
|
-
|
|
7365
|
-
|
|
7294
|
+
variant: {
|
|
7295
|
+
default: {
|
|
7366
7296
|
key: {
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7297
|
+
fontSize: "10"
|
|
7298
|
+
}
|
|
7299
|
+
},
|
|
7300
|
+
symbol: {
|
|
7301
|
+
key: {
|
|
7302
|
+
fontSize: "12"
|
|
7371
7303
|
}
|
|
7372
7304
|
}
|
|
7373
7305
|
}
|
|
7374
7306
|
},
|
|
7375
7307
|
defaultVariants: {
|
|
7376
|
-
|
|
7308
|
+
variant: "default"
|
|
7377
7309
|
}
|
|
7378
7310
|
});
|
|
7379
7311
|
const listItemRecipe = defineSlotRecipe({
|
|
@@ -7381,9 +7313,9 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
7381
7313
|
jsx: ["ListItem"],
|
|
7382
7314
|
slots: [
|
|
7383
7315
|
"wrapper",
|
|
7316
|
+
"icon",
|
|
7384
7317
|
"beforeSlot",
|
|
7385
7318
|
"afterSlot",
|
|
7386
|
-
"icon",
|
|
7387
7319
|
"itemMain",
|
|
7388
7320
|
"itemLabel",
|
|
7389
7321
|
"itemDescription",
|
|
@@ -7391,11 +7323,14 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
7391
7323
|
],
|
|
7392
7324
|
base: {
|
|
7393
7325
|
wrapper: {
|
|
7326
|
+
...globalBaseStyles,
|
|
7394
7327
|
display: "flex",
|
|
7395
7328
|
alignItems: "start",
|
|
7396
7329
|
justifyContent: "start",
|
|
7397
7330
|
gap: "4",
|
|
7398
7331
|
width: "full",
|
|
7332
|
+
py: "var(--list-item-padding-y)",
|
|
7333
|
+
px: "var(--list-item-padding-x)",
|
|
7399
7334
|
textAlign: "left",
|
|
7400
7335
|
borderWidth: "1",
|
|
7401
7336
|
borderStyle: "solid",
|
|
@@ -7418,39 +7353,20 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
7418
7353
|
_focus: {
|
|
7419
7354
|
bg: "bg.neutral.hovered"
|
|
7420
7355
|
},
|
|
7421
|
-
'&[data-active="true"]': {
|
|
7422
|
-
bg: "bg.neutral.hovered"
|
|
7423
|
-
},
|
|
7424
|
-
'&[data-disabled="true"]': {
|
|
7425
|
-
opacity: "0.4",
|
|
7426
|
-
cursor: "not-allowed",
|
|
7427
|
-
pointerEvents: "none"
|
|
7428
|
-
},
|
|
7429
7356
|
_disabled: {
|
|
7430
7357
|
opacity: "0.4",
|
|
7431
7358
|
cursor: "not-allowed",
|
|
7432
7359
|
pointerEvents: "none"
|
|
7433
7360
|
}
|
|
7434
7361
|
},
|
|
7435
|
-
beforeSlot: {
|
|
7436
|
-
display: "flex",
|
|
7437
|
-
alignItems: "center",
|
|
7438
|
-
flexShrink: "0"
|
|
7439
|
-
},
|
|
7440
|
-
afterSlot: {
|
|
7441
|
-
display: "flex",
|
|
7442
|
-
alignItems: "center",
|
|
7443
|
-
flexShrink: "0"
|
|
7444
|
-
},
|
|
7445
|
-
divider: {
|
|
7446
|
-
width: "full"
|
|
7447
|
-
},
|
|
7448
7362
|
icon: {
|
|
7449
7363
|
aspectRatio: "square",
|
|
7450
7364
|
transitionDuration: "fast",
|
|
7451
7365
|
transitionProperty: "fill",
|
|
7452
7366
|
transitionTimingFunction: "default",
|
|
7453
|
-
flexShrink: "0"
|
|
7367
|
+
flexShrink: "0",
|
|
7368
|
+
w: "var(--list-item-icon-size)",
|
|
7369
|
+
h: "var(--list-item-icon-size)"
|
|
7454
7370
|
},
|
|
7455
7371
|
itemMain: {
|
|
7456
7372
|
display: "flex",
|
|
@@ -7459,11 +7375,24 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
7459
7375
|
minWidth: "0"
|
|
7460
7376
|
},
|
|
7461
7377
|
itemLabel: {
|
|
7462
|
-
color: "text"
|
|
7378
|
+
color: "text",
|
|
7379
|
+
fontSize: "var(--list-item-label-size)"
|
|
7463
7380
|
},
|
|
7464
7381
|
itemDescription: {
|
|
7465
7382
|
color: "text.subtlest",
|
|
7383
|
+
fontSize: "var(--list-item-description-size)",
|
|
7466
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)"
|
|
7467
7396
|
}
|
|
7468
7397
|
},
|
|
7469
7398
|
variants: {
|
|
@@ -7515,60 +7444,11 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
7515
7444
|
},
|
|
7516
7445
|
divider: {}
|
|
7517
7446
|
},
|
|
7518
|
-
density:
|
|
7519
|
-
compact: {
|
|
7520
|
-
wrapper: listDensity.compact.row,
|
|
7521
|
-
itemLabel: {
|
|
7522
|
-
textStyle: "sans.md",
|
|
7523
|
-
color: "text"
|
|
7524
|
-
},
|
|
7525
|
-
itemDescription: {
|
|
7526
|
-
textStyle: "sans.xs",
|
|
7527
|
-
lineHeight: "tight"
|
|
7528
|
-
},
|
|
7529
|
-
icon: listDensity.compact.icon,
|
|
7530
|
-
beforeSlot: listDensity.compact.beforeSlot,
|
|
7531
|
-
afterSlot: listDensity.compact.afterSlot,
|
|
7532
|
-
divider: listDensity.compact.divider
|
|
7533
|
-
},
|
|
7534
|
-
comfortable: {
|
|
7535
|
-
wrapper: listDensity.comfortable.row,
|
|
7536
|
-
itemLabel: {
|
|
7537
|
-
textStyle: "sans.md",
|
|
7538
|
-
color: "text"
|
|
7539
|
-
},
|
|
7540
|
-
itemDescription: {
|
|
7541
|
-
textStyle: "sans.xs",
|
|
7542
|
-
lineHeight: "tight"
|
|
7543
|
-
},
|
|
7544
|
-
icon: listDensity.comfortable.icon,
|
|
7545
|
-
beforeSlot: listDensity.comfortable.beforeSlot,
|
|
7546
|
-
afterSlot: listDensity.comfortable.afterSlot,
|
|
7547
|
-
divider: listDensity.comfortable.divider
|
|
7548
|
-
},
|
|
7549
|
-
spacious: {
|
|
7550
|
-
wrapper: listDensity.spacious.row,
|
|
7551
|
-
itemLabel: {
|
|
7552
|
-
textStyle: "sans.lg",
|
|
7553
|
-
color: "text"
|
|
7554
|
-
},
|
|
7555
|
-
itemDescription: {
|
|
7556
|
-
textStyle: "sans.sm",
|
|
7557
|
-
lineHeight: "tight"
|
|
7558
|
-
},
|
|
7559
|
-
icon: listDensity.spacious.icon,
|
|
7560
|
-
beforeSlot: listDensity.spacious.beforeSlot,
|
|
7561
|
-
afterSlot: listDensity.spacious.afterSlot,
|
|
7562
|
-
divider: listDensity.spacious.divider
|
|
7563
|
-
}
|
|
7564
|
-
},
|
|
7447
|
+
density: listDensityWrapperVars,
|
|
7565
7448
|
selected: {
|
|
7566
7449
|
true: {
|
|
7567
7450
|
wrapper: {
|
|
7568
7451
|
bg: "surface.selected",
|
|
7569
|
-
'&[data-active="true"]': {
|
|
7570
|
-
bg: "surface.selected.hovered"
|
|
7571
|
-
},
|
|
7572
7452
|
_hover: {
|
|
7573
7453
|
bg: "surface.selected.hovered"
|
|
7574
7454
|
},
|
|
@@ -7591,102 +7471,9 @@ const listItemRecipe = defineSlotRecipe({
|
|
|
7591
7471
|
false: {}
|
|
7592
7472
|
}
|
|
7593
7473
|
},
|
|
7594
|
-
compoundVariants: [
|
|
7595
|
-
{
|
|
7596
|
-
density: "compact",
|
|
7597
|
-
iconBefore: true,
|
|
7598
|
-
css: {
|
|
7599
|
-
wrapper: {
|
|
7600
|
-
ps: "5"
|
|
7601
|
-
},
|
|
7602
|
-
beforeSlot: listDensity.compact.beforeSlot
|
|
7603
|
-
}
|
|
7604
|
-
},
|
|
7605
|
-
{
|
|
7606
|
-
density: "compact",
|
|
7607
|
-
iconAfter: true,
|
|
7608
|
-
css: {
|
|
7609
|
-
wrapper: {
|
|
7610
|
-
pe: "5"
|
|
7611
|
-
},
|
|
7612
|
-
afterSlot: listDensity.compact.afterSlot
|
|
7613
|
-
}
|
|
7614
|
-
},
|
|
7615
|
-
{
|
|
7616
|
-
density: "compact",
|
|
7617
|
-
variant: "checkbox",
|
|
7618
|
-
css: {
|
|
7619
|
-
wrapper: {
|
|
7620
|
-
ps: "5"
|
|
7621
|
-
},
|
|
7622
|
-
beforeSlot: listDensity.compact.beforeSlot
|
|
7623
|
-
}
|
|
7624
|
-
},
|
|
7625
|
-
{
|
|
7626
|
-
density: "comfortable",
|
|
7627
|
-
iconBefore: true,
|
|
7628
|
-
css: {
|
|
7629
|
-
wrapper: {
|
|
7630
|
-
ps: "7"
|
|
7631
|
-
},
|
|
7632
|
-
beforeSlot: listDensity.comfortable.beforeSlot
|
|
7633
|
-
}
|
|
7634
|
-
},
|
|
7635
|
-
{
|
|
7636
|
-
density: "comfortable",
|
|
7637
|
-
iconAfter: true,
|
|
7638
|
-
css: {
|
|
7639
|
-
wrapper: {
|
|
7640
|
-
pe: "7"
|
|
7641
|
-
},
|
|
7642
|
-
afterSlot: listDensity.comfortable.afterSlot
|
|
7643
|
-
}
|
|
7644
|
-
},
|
|
7645
|
-
{
|
|
7646
|
-
density: "comfortable",
|
|
7647
|
-
variant: "checkbox",
|
|
7648
|
-
css: {
|
|
7649
|
-
wrapper: {
|
|
7650
|
-
ps: "7"
|
|
7651
|
-
},
|
|
7652
|
-
beforeSlot: listDensity.comfortable.beforeSlot
|
|
7653
|
-
}
|
|
7654
|
-
},
|
|
7655
|
-
{
|
|
7656
|
-
density: "spacious",
|
|
7657
|
-
iconBefore: true,
|
|
7658
|
-
css: {
|
|
7659
|
-
wrapper: {
|
|
7660
|
-
ps: "9"
|
|
7661
|
-
},
|
|
7662
|
-
beforeSlot: listDensity.spacious.beforeSlot
|
|
7663
|
-
}
|
|
7664
|
-
},
|
|
7665
|
-
{
|
|
7666
|
-
density: "spacious",
|
|
7667
|
-
iconAfter: true,
|
|
7668
|
-
css: {
|
|
7669
|
-
wrapper: {
|
|
7670
|
-
pe: "9"
|
|
7671
|
-
},
|
|
7672
|
-
afterSlot: listDensity.spacious.afterSlot
|
|
7673
|
-
}
|
|
7674
|
-
},
|
|
7675
|
-
{
|
|
7676
|
-
density: "spacious",
|
|
7677
|
-
variant: "checkbox",
|
|
7678
|
-
css: {
|
|
7679
|
-
wrapper: {
|
|
7680
|
-
ps: "9"
|
|
7681
|
-
},
|
|
7682
|
-
beforeSlot: listDensity.spacious.beforeSlot
|
|
7683
|
-
}
|
|
7684
|
-
}
|
|
7685
|
-
],
|
|
7686
7474
|
defaultVariants: {
|
|
7687
7475
|
variant: "default",
|
|
7688
|
-
density: "compact"
|
|
7689
|
-
selected: false
|
|
7476
|
+
density: "compact"
|
|
7690
7477
|
}
|
|
7691
7478
|
});
|
|
7692
7479
|
const listItemGroupRecipe = defineSlotRecipe({
|
|
@@ -7698,28 +7485,23 @@ const listItemGroupRecipe = defineSlotRecipe({
|
|
|
7698
7485
|
width: "full"
|
|
7699
7486
|
},
|
|
7700
7487
|
groupLabel: {
|
|
7488
|
+
...globalBaseStyles,
|
|
7701
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)",
|
|
7702
7494
|
borderStyle: "solid",
|
|
7703
7495
|
borderWidth: "1",
|
|
7704
7496
|
borderColor: "transparent"
|
|
7705
7497
|
},
|
|
7706
|
-
divider: {
|
|
7498
|
+
divider: {
|
|
7499
|
+
my: "var(--list-group-divider-margin-y)",
|
|
7500
|
+
mx: "var(--list-group-divider-margin-x)"
|
|
7501
|
+
}
|
|
7707
7502
|
},
|
|
7708
7503
|
variants: {
|
|
7709
|
-
density:
|
|
7710
|
-
compact: {
|
|
7711
|
-
groupLabel: listDensity.compact.groupLabel,
|
|
7712
|
-
divider: listDensity.compact.divider
|
|
7713
|
-
},
|
|
7714
|
-
comfortable: {
|
|
7715
|
-
groupLabel: listDensity.comfortable.groupLabel,
|
|
7716
|
-
divider: listDensity.comfortable.divider
|
|
7717
|
-
},
|
|
7718
|
-
spacious: {
|
|
7719
|
-
groupLabel: listDensity.spacious.groupLabel,
|
|
7720
|
-
divider: listDensity.spacious.divider
|
|
7721
|
-
}
|
|
7722
|
-
}
|
|
7504
|
+
density: listDensityWrapperVars
|
|
7723
7505
|
},
|
|
7724
7506
|
defaultVariants: {
|
|
7725
7507
|
density: "compact"
|
|
@@ -7732,7 +7514,6 @@ const menuBase = {
|
|
|
7732
7514
|
borderRadius: "4",
|
|
7733
7515
|
boxShadow: "overlay",
|
|
7734
7516
|
overflow: "hidden",
|
|
7735
|
-
zIndex: "100",
|
|
7736
7517
|
transitionProperty: "width, height",
|
|
7737
7518
|
transitionDuration: "normal",
|
|
7738
7519
|
transitionTimingFunction: "default",
|
|
@@ -7747,13 +7528,13 @@ const menuBase = {
|
|
|
7747
7528
|
borderWidth: "0",
|
|
7748
7529
|
borderBlockWidth: "3",
|
|
7749
7530
|
borderColor: "transparent",
|
|
7750
|
-
bg: { base: "tan.
|
|
7531
|
+
bg: { base: "tan.10", _dark: "tan.60" },
|
|
7751
7532
|
width: "full",
|
|
7752
7533
|
textAlign: "left",
|
|
7753
7534
|
cursor: "pointer",
|
|
7754
7535
|
color: "text",
|
|
7755
7536
|
_hover: {
|
|
7756
|
-
bg: { base: "tan.
|
|
7537
|
+
bg: { base: "tan.20", _dark: "tan.50" }
|
|
7757
7538
|
},
|
|
7758
7539
|
_active: {
|
|
7759
7540
|
bg: { base: "tan.20", _dark: "tan.70" }
|
|
@@ -7793,6 +7574,20 @@ const menuBase = {
|
|
|
7793
7574
|
}
|
|
7794
7575
|
};
|
|
7795
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
|
+
},
|
|
7796
7591
|
density: {
|
|
7797
7592
|
compact: {
|
|
7798
7593
|
backHeader: {
|
|
@@ -7850,26 +7645,31 @@ const menuRecipe = defineSlotRecipe({
|
|
|
7850
7645
|
base: menuBase,
|
|
7851
7646
|
variants: menuVariants,
|
|
7852
7647
|
defaultVariants: {
|
|
7853
|
-
density: "compact"
|
|
7648
|
+
density: "compact",
|
|
7649
|
+
layer: "elevated"
|
|
7854
7650
|
}
|
|
7855
7651
|
});
|
|
7856
7652
|
const modalBase = {
|
|
7857
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
|
+
},
|
|
7858
7660
|
position: "fixed",
|
|
7859
7661
|
inset: "0",
|
|
7860
|
-
display: "
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
padding: "16",
|
|
7866
|
-
zIndex: "1101"
|
|
7662
|
+
display: "grid",
|
|
7663
|
+
p: "var(--wrapper-p)",
|
|
7664
|
+
w: "100vw",
|
|
7665
|
+
h: "100vh",
|
|
7666
|
+
zIndex: 1100
|
|
7867
7667
|
},
|
|
7868
7668
|
overlay: {
|
|
7869
7669
|
position: "fixed",
|
|
7870
7670
|
inset: "0",
|
|
7871
7671
|
bg: "blanket",
|
|
7872
|
-
zIndex:
|
|
7672
|
+
zIndex: 1100,
|
|
7873
7673
|
// Initial state matches animation start
|
|
7874
7674
|
opacity: "0",
|
|
7875
7675
|
// Animation handled via data-state
|
|
@@ -7879,24 +7679,16 @@ const modalBase = {
|
|
|
7879
7679
|
}
|
|
7880
7680
|
},
|
|
7881
7681
|
container: {
|
|
7882
|
-
|
|
7682
|
+
...globalBaseStyles,
|
|
7883
7683
|
display: "flex",
|
|
7884
7684
|
flexDirection: "column",
|
|
7885
|
-
|
|
7886
|
-
|
|
7685
|
+
maxW: "calc(100vw - (2 * var(--wrapper-p)))",
|
|
7686
|
+
maxH: "calc(100vh - (2 * var(--wrapper-p)))",
|
|
7887
7687
|
bg: "surface.overlay",
|
|
7888
7688
|
borderRadius: "12",
|
|
7889
7689
|
boxShadow: "overlay",
|
|
7890
7690
|
outline: "none",
|
|
7891
|
-
|
|
7892
|
-
// Initial state matches animation start
|
|
7893
|
-
opacity: "0",
|
|
7894
|
-
transform: "[scale(0.95) translateY(-10px)]",
|
|
7895
|
-
// Animation handled via data-state
|
|
7896
|
-
animation: "modalScaleIn 150ms ease-out forwards",
|
|
7897
|
-
'&[data-state="closing"]': {
|
|
7898
|
-
animation: "modalScaleOut 150ms ease-out forwards"
|
|
7899
|
-
}
|
|
7691
|
+
zIndex: 1101
|
|
7900
7692
|
},
|
|
7901
7693
|
header: {
|
|
7902
7694
|
display: "flex",
|
|
@@ -7934,87 +7726,89 @@ const modalBase = {
|
|
|
7934
7726
|
borderTop: "default"
|
|
7935
7727
|
}
|
|
7936
7728
|
};
|
|
7937
|
-
const
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
alignItems: "flex-start",
|
|
7948
|
-
justifyContent: "center"
|
|
7949
|
-
}
|
|
7950
|
-
},
|
|
7951
|
-
bottom: {
|
|
7952
|
-
positionWrapper: {
|
|
7953
|
-
alignItems: "flex-end",
|
|
7954
|
-
justifyContent: "center"
|
|
7955
|
-
}
|
|
7956
|
-
}
|
|
7957
|
-
},
|
|
7729
|
+
const mobile = {
|
|
7730
|
+
xsDown: {
|
|
7731
|
+
width: "100vw",
|
|
7732
|
+
height: "100vh",
|
|
7733
|
+
maxWidth: "100vw",
|
|
7734
|
+
maxHeight: "100vh",
|
|
7735
|
+
borderRadius: "0"
|
|
7736
|
+
}
|
|
7737
|
+
};
|
|
7738
|
+
const modalVariants = {
|
|
7958
7739
|
size: {
|
|
7959
7740
|
sm: {
|
|
7960
7741
|
container: {
|
|
7961
|
-
|
|
7742
|
+
w: "md",
|
|
7743
|
+
...mobile
|
|
7962
7744
|
}
|
|
7963
7745
|
},
|
|
7964
7746
|
md: {
|
|
7965
7747
|
container: {
|
|
7966
|
-
|
|
7748
|
+
w: "xl",
|
|
7749
|
+
...mobile
|
|
7967
7750
|
}
|
|
7968
7751
|
},
|
|
7969
7752
|
lg: {
|
|
7970
7753
|
container: {
|
|
7971
|
-
|
|
7754
|
+
w: "3xl",
|
|
7755
|
+
...mobile
|
|
7972
7756
|
}
|
|
7973
7757
|
},
|
|
7974
7758
|
xl: {
|
|
7975
7759
|
container: {
|
|
7976
|
-
|
|
7760
|
+
w: "5xl",
|
|
7761
|
+
...mobile
|
|
7977
7762
|
}
|
|
7978
7763
|
},
|
|
7979
7764
|
full: {
|
|
7980
7765
|
container: {
|
|
7981
|
-
|
|
7766
|
+
w: "95vw",
|
|
7767
|
+
...mobile
|
|
7982
7768
|
}
|
|
7983
7769
|
},
|
|
7984
|
-
|
|
7770
|
+
fullPage: {
|
|
7771
|
+
positionWrapper: {
|
|
7772
|
+
"--wrapper-p": "token(sizes.0)"
|
|
7773
|
+
},
|
|
7985
7774
|
container: {
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
borderRadius: "0"
|
|
7775
|
+
w: "100vw",
|
|
7776
|
+
h: "100vh",
|
|
7777
|
+
maxW: "100vw",
|
|
7778
|
+
maxH: "100vh",
|
|
7779
|
+
borderRadius: "0",
|
|
7780
|
+
...mobile
|
|
7991
7781
|
}
|
|
7992
7782
|
}
|
|
7993
7783
|
},
|
|
7994
|
-
|
|
7995
|
-
|
|
7784
|
+
position: {
|
|
7785
|
+
centered: {
|
|
7786
|
+
positionWrapper: {
|
|
7787
|
+
placeContent: "center"
|
|
7788
|
+
},
|
|
7996
7789
|
container: {
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
maxWidth: "[100vw]",
|
|
8001
|
-
maxHeight: "[100vh]",
|
|
8002
|
-
borderRadius: "0"
|
|
7790
|
+
animation: "modalScaleIn 150ms ease-out forwards",
|
|
7791
|
+
'&[data-state="closing"]': {
|
|
7792
|
+
animation: "modalScaleOut 150ms ease-out forwards"
|
|
8003
7793
|
}
|
|
8004
7794
|
}
|
|
8005
7795
|
},
|
|
8006
|
-
|
|
7796
|
+
top: {
|
|
7797
|
+
positionWrapper: {
|
|
7798
|
+
placeContent: "start center"
|
|
7799
|
+
},
|
|
8007
7800
|
container: {
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
7801
|
+
animation: "modalScaleInTop 150ms ease-out forwards",
|
|
7802
|
+
'&[data-state="closing"]': {
|
|
7803
|
+
animation: "modalScaleOutTop 150ms ease-out forwards"
|
|
7804
|
+
}
|
|
8011
7805
|
}
|
|
8012
7806
|
}
|
|
8013
7807
|
}
|
|
8014
7808
|
};
|
|
8015
7809
|
const modalRecipe = defineSlotRecipe({
|
|
8016
7810
|
className: "modal",
|
|
8017
|
-
jsx: ["
|
|
7811
|
+
jsx: ["ModalWrapper", "ModalHeader", "ModalBody", "ModalFooter", "Modal"],
|
|
8018
7812
|
slots: [
|
|
8019
7813
|
"positionWrapper",
|
|
8020
7814
|
"overlay",
|
|
@@ -8028,9 +7822,8 @@ const modalRecipe = defineSlotRecipe({
|
|
|
8028
7822
|
base: modalBase,
|
|
8029
7823
|
variants: modalVariants,
|
|
8030
7824
|
defaultVariants: {
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
size: "md"
|
|
7825
|
+
size: "md",
|
|
7826
|
+
position: "centered"
|
|
8034
7827
|
}
|
|
8035
7828
|
});
|
|
8036
7829
|
const radioRecipe = defineSlotRecipe({
|
|
@@ -8060,13 +7853,13 @@ const radioRecipe = defineSlotRecipe({
|
|
|
8060
7853
|
cursor: "inherit",
|
|
8061
7854
|
"& ~ [name='radio']": {
|
|
8062
7855
|
display: "inline-grid",
|
|
8063
|
-
zIndex: "
|
|
7856
|
+
zIndex: "3"
|
|
8064
7857
|
},
|
|
8065
7858
|
_checked: {
|
|
8066
7859
|
"& ~ [name='radio-checked']": {
|
|
8067
7860
|
display: "inline-grid",
|
|
8068
7861
|
fill: "icon",
|
|
8069
|
-
zIndex: "
|
|
7862
|
+
zIndex: "2"
|
|
8070
7863
|
},
|
|
8071
7864
|
"& ~ [name='radio']": {
|
|
8072
7865
|
display: "none"
|
|
@@ -8076,7 +7869,7 @@ const radioRecipe = defineSlotRecipe({
|
|
|
8076
7869
|
display: "inline-grid",
|
|
8077
7870
|
'& ~ svg:not([name="circle"])': {
|
|
8078
7871
|
fill: "red.50",
|
|
8079
|
-
zIndex: "
|
|
7872
|
+
zIndex: "3"
|
|
8080
7873
|
}
|
|
8081
7874
|
},
|
|
8082
7875
|
_focusVisible: {
|
|
@@ -8084,7 +7877,7 @@ const radioRecipe = defineSlotRecipe({
|
|
|
8084
7877
|
display: "inline-grid",
|
|
8085
7878
|
position: "absolute",
|
|
8086
7879
|
fill: "border.focused",
|
|
8087
|
-
zIndex: "
|
|
7880
|
+
zIndex: "2"
|
|
8088
7881
|
}
|
|
8089
7882
|
}
|
|
8090
7883
|
},
|
|
@@ -8094,10 +7887,10 @@ const radioRecipe = defineSlotRecipe({
|
|
|
8094
7887
|
inset: "0",
|
|
8095
7888
|
width: "24",
|
|
8096
7889
|
height: "24",
|
|
8097
|
-
zIndex: "
|
|
7890
|
+
zIndex: "3",
|
|
8098
7891
|
"&:is([name='radio'])": {
|
|
8099
7892
|
fill: "icon.subtlest",
|
|
8100
|
-
zIndex: "
|
|
7893
|
+
zIndex: "3"
|
|
8101
7894
|
}
|
|
8102
7895
|
},
|
|
8103
7896
|
radioBg: {
|
|
@@ -8111,6 +7904,289 @@ const radioRecipe = defineSlotRecipe({
|
|
|
8111
7904
|
}
|
|
8112
7905
|
}
|
|
8113
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
|
+
});
|
|
8114
8190
|
const selectBase = {
|
|
8115
8191
|
// The trigger button container
|
|
8116
8192
|
trigger: {
|
|
@@ -8331,35 +8407,54 @@ const spinnerRecipe = defineSlotRecipe({
|
|
|
8331
8407
|
});
|
|
8332
8408
|
const textInputBase = {
|
|
8333
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)",
|
|
8334
8417
|
position: "relative",
|
|
8335
8418
|
display: "flex",
|
|
8336
8419
|
alignItems: "center",
|
|
8337
8420
|
width: "full",
|
|
8338
8421
|
bg: "surface",
|
|
8339
|
-
borderWidth: "
|
|
8422
|
+
borderWidth: "1",
|
|
8340
8423
|
borderStyle: "solid",
|
|
8341
8424
|
borderColor: "border.input",
|
|
8342
|
-
borderRadius: "
|
|
8343
|
-
outlineWidth: "
|
|
8425
|
+
borderRadius: "4",
|
|
8426
|
+
outlineWidth: "1",
|
|
8344
8427
|
outlineStyle: "solid",
|
|
8345
8428
|
outlineColor: "transparent",
|
|
8346
|
-
|
|
8347
|
-
lineHeight: "none",
|
|
8348
|
-
_focusWithin: {
|
|
8429
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
8349
8430
|
outlineColor: "border.focused",
|
|
8350
8431
|
borderColor: "border.focused"
|
|
8351
8432
|
},
|
|
8352
8433
|
_error: {
|
|
8353
8434
|
borderColor: "border.danger",
|
|
8354
|
-
|
|
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))": {
|
|
8355
8443
|
borderColor: "border.danger",
|
|
8356
8444
|
outlineColor: "border.danger"
|
|
8357
8445
|
}
|
|
8358
8446
|
},
|
|
8447
|
+
_valid: {
|
|
8448
|
+
borderColor: "border.success",
|
|
8449
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
8450
|
+
borderColor: "border.success",
|
|
8451
|
+
outlineColor: "border.success"
|
|
8452
|
+
}
|
|
8453
|
+
},
|
|
8359
8454
|
_disabled: {
|
|
8360
|
-
opacity:
|
|
8455
|
+
opacity: 0.4,
|
|
8361
8456
|
cursor: "not-allowed",
|
|
8362
|
-
|
|
8457
|
+
"&:focus-within:not(:has(button:focus))": {
|
|
8363
8458
|
outlineColor: "transparent",
|
|
8364
8459
|
borderColor: "border.input"
|
|
8365
8460
|
}
|
|
@@ -8369,125 +8464,109 @@ const textInputBase = {
|
|
|
8369
8464
|
// let FormField handle disabled state opacity
|
|
8370
8465
|
}
|
|
8371
8466
|
},
|
|
8467
|
+
input: {
|
|
8468
|
+
width: "full",
|
|
8469
|
+
bg: "surface",
|
|
8470
|
+
py: "var(--input-py)",
|
|
8471
|
+
px: "var(--input-px)",
|
|
8472
|
+
fontSize: "var(--input-fs)",
|
|
8473
|
+
borderRadius: "3",
|
|
8474
|
+
color: "text",
|
|
8475
|
+
lineHeight: "default",
|
|
8476
|
+
fontFamily: "sans",
|
|
8477
|
+
border: "none",
|
|
8478
|
+
outline: "none",
|
|
8479
|
+
_placeholder: {
|
|
8480
|
+
color: "text.placeholder"
|
|
8481
|
+
}
|
|
8482
|
+
},
|
|
8372
8483
|
slot: {
|
|
8373
8484
|
display: "inline-flex",
|
|
8374
8485
|
alignItems: "center",
|
|
8375
8486
|
transitionDuration: "fast",
|
|
8376
8487
|
transitionProperty: "all",
|
|
8377
8488
|
transitionTimingFunction: "default",
|
|
8378
|
-
flex: "0 0
|
|
8379
|
-
|
|
8489
|
+
flex: "0 0 var(--slot-size)",
|
|
8490
|
+
px: "var(--slot-px)",
|
|
8491
|
+
fill: "icon.decorative",
|
|
8380
8492
|
pointerEvents: "none",
|
|
8381
8493
|
zIndex: 1
|
|
8382
8494
|
},
|
|
8383
8495
|
buttonSlot: {
|
|
8384
8496
|
display: "inline-flex",
|
|
8385
8497
|
alignItems: "center",
|
|
8386
|
-
flex: "0 0
|
|
8498
|
+
flex: "0 0 var(--slot-size)",
|
|
8387
8499
|
px: "0",
|
|
8388
8500
|
zIndex: 1,
|
|
8389
8501
|
m: "-1"
|
|
8390
|
-
},
|
|
8391
|
-
input: {
|
|
8392
|
-
width: "full",
|
|
8393
|
-
bg: "surface",
|
|
8394
|
-
color: "text",
|
|
8395
|
-
lineHeight: "default",
|
|
8396
|
-
fontFamily: "sans",
|
|
8397
|
-
border: "none",
|
|
8398
|
-
outline: "none",
|
|
8399
|
-
_placeholder: {
|
|
8400
|
-
color: "text.placeholder"
|
|
8401
|
-
}
|
|
8402
|
-
},
|
|
8403
|
-
icon: {
|
|
8404
|
-
position: "absolute",
|
|
8405
|
-
top: "50%",
|
|
8406
|
-
transform: "translateY(-50%)",
|
|
8407
|
-
fill: "icon.decorative.subtle",
|
|
8408
|
-
mixBlendMode: { base: "multiply", _dark: "screen" },
|
|
8409
|
-
pointerEvents: "none",
|
|
8410
|
-
zIndex: 1
|
|
8411
8502
|
}
|
|
8412
8503
|
};
|
|
8413
8504
|
const textInputVariants = {
|
|
8414
8505
|
size: {
|
|
8415
8506
|
sm: {
|
|
8416
|
-
|
|
8417
|
-
py: "0",
|
|
8418
|
-
px: "
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
h: "16",
|
|
8424
|
-
px: "4"
|
|
8425
|
-
},
|
|
8426
|
-
icon: {
|
|
8427
|
-
mx: "2",
|
|
8428
|
-
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)"
|
|
8429
8514
|
}
|
|
8430
8515
|
},
|
|
8431
8516
|
md: {
|
|
8432
|
-
|
|
8433
|
-
py: "3",
|
|
8434
|
-
px: "
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
h: "20",
|
|
8440
|
-
px: "6"
|
|
8441
|
-
},
|
|
8442
|
-
icon: {
|
|
8443
|
-
mx: "3",
|
|
8444
|
-
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)"
|
|
8445
8524
|
}
|
|
8446
8525
|
},
|
|
8447
8526
|
lg: {
|
|
8448
|
-
|
|
8449
|
-
py: "7",
|
|
8450
|
-
px: "
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
h: "24",
|
|
8456
|
-
px: "8"
|
|
8457
|
-
},
|
|
8458
|
-
icon: {
|
|
8459
|
-
mx: "5",
|
|
8460
|
-
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)"
|
|
8461
8534
|
}
|
|
8462
8535
|
},
|
|
8463
8536
|
xl: {
|
|
8464
|
-
|
|
8465
|
-
py: "9",
|
|
8466
|
-
px: "
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
h: "28",
|
|
8472
|
-
px: "10"
|
|
8473
|
-
},
|
|
8474
|
-
icon: {
|
|
8475
|
-
mx: "7",
|
|
8476
|
-
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)"
|
|
8477
8544
|
}
|
|
8478
8545
|
}
|
|
8479
8546
|
},
|
|
8480
|
-
|
|
8547
|
+
before: {
|
|
8481
8548
|
true: {
|
|
8482
|
-
|
|
8483
|
-
|
|
8549
|
+
input: {
|
|
8550
|
+
ps: "0"
|
|
8551
|
+
},
|
|
8552
|
+
buttonSlot: {
|
|
8553
|
+
"& button": {
|
|
8554
|
+
borderTopRightRadius: "0",
|
|
8555
|
+
borderBottomRightRadius: "0"
|
|
8556
|
+
}
|
|
8484
8557
|
}
|
|
8485
8558
|
}
|
|
8486
8559
|
},
|
|
8487
|
-
|
|
8560
|
+
after: {
|
|
8488
8561
|
true: {
|
|
8489
|
-
|
|
8490
|
-
|
|
8562
|
+
input: {
|
|
8563
|
+
pe: "0"
|
|
8564
|
+
},
|
|
8565
|
+
buttonSlot: {
|
|
8566
|
+
"& button": {
|
|
8567
|
+
borderTopLeftRadius: "0",
|
|
8568
|
+
borderBottomLeftRadius: "0"
|
|
8569
|
+
}
|
|
8491
8570
|
}
|
|
8492
8571
|
}
|
|
8493
8572
|
},
|
|
@@ -8500,280 +8579,111 @@ const textInputVariants = {
|
|
|
8500
8579
|
}
|
|
8501
8580
|
}
|
|
8502
8581
|
};
|
|
8503
|
-
const textInputCompoundVariants = [
|
|
8504
|
-
{
|
|
8505
|
-
size: "sm",
|
|
8506
|
-
iconBefore: true,
|
|
8507
|
-
css: {
|
|
8508
|
-
input: { ps: "[calc({sizes.24} + {sizes.2})]" }
|
|
8509
|
-
}
|
|
8510
|
-
},
|
|
8511
|
-
{
|
|
8512
|
-
size: "sm",
|
|
8513
|
-
iconAfter: true,
|
|
8514
|
-
css: {
|
|
8515
|
-
input: { pe: "[calc({sizes.24} + {sizes.2})]" }
|
|
8516
|
-
}
|
|
8517
|
-
},
|
|
8518
|
-
{
|
|
8519
|
-
size: "md",
|
|
8520
|
-
iconBefore: true,
|
|
8521
|
-
css: {
|
|
8522
|
-
input: { ps: "[calc({sizes.24} + {sizes.7})]" }
|
|
8523
|
-
}
|
|
8524
|
-
},
|
|
8525
|
-
{
|
|
8526
|
-
size: "md",
|
|
8527
|
-
iconAfter: true,
|
|
8528
|
-
css: {
|
|
8529
|
-
input: { pe: "[calc({sizes.24} + {sizes.7})]" }
|
|
8530
|
-
}
|
|
8531
|
-
},
|
|
8532
|
-
{
|
|
8533
|
-
size: "lg",
|
|
8534
|
-
iconBefore: true,
|
|
8535
|
-
css: {
|
|
8536
|
-
input: { ps: "[calc({sizes.24} + {sizes.10})]" }
|
|
8537
|
-
}
|
|
8538
|
-
},
|
|
8539
|
-
{
|
|
8540
|
-
size: "lg",
|
|
8541
|
-
iconAfter: true,
|
|
8542
|
-
css: {
|
|
8543
|
-
input: { pe: "[calc({sizes.24} + {sizes.10})]" }
|
|
8544
|
-
}
|
|
8545
|
-
},
|
|
8546
|
-
{
|
|
8547
|
-
size: "xl",
|
|
8548
|
-
iconBefore: true,
|
|
8549
|
-
css: {
|
|
8550
|
-
input: { ps: "[calc({sizes.32} + {sizes.10})]" }
|
|
8551
|
-
}
|
|
8552
|
-
},
|
|
8553
|
-
{
|
|
8554
|
-
size: "xl",
|
|
8555
|
-
iconAfter: true,
|
|
8556
|
-
css: {
|
|
8557
|
-
input: { pe: "[calc({sizes.32} + {sizes.10})]" }
|
|
8558
|
-
}
|
|
8559
|
-
}
|
|
8560
|
-
];
|
|
8561
8582
|
const textInputRecipe = defineSlotRecipe({
|
|
8562
8583
|
className: "textInput",
|
|
8563
|
-
jsx: ["TextInput"
|
|
8564
|
-
slots: ["container", "input", "slot", "buttonSlot", "
|
|
8584
|
+
jsx: ["TextInput"],
|
|
8585
|
+
slots: ["container", "input", "slot", "buttonSlot", "before", "after"],
|
|
8565
8586
|
base: textInputBase,
|
|
8566
8587
|
variants: textInputVariants,
|
|
8567
|
-
compoundVariants: textInputCompoundVariants,
|
|
8568
8588
|
defaultVariants: {
|
|
8569
8589
|
size: "md"
|
|
8570
8590
|
}
|
|
8571
8591
|
});
|
|
8572
|
-
const
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
input: {
|
|
8580
|
-
display: "inline-flex",
|
|
8581
|
-
alignItems: "center",
|
|
8582
|
-
gap: "2",
|
|
8583
|
-
width: "full",
|
|
8584
|
-
borderWidth: "1",
|
|
8585
|
-
borderStyle: "solid",
|
|
8586
|
-
borderColor: "border.input",
|
|
8587
|
-
borderRadius: "4",
|
|
8588
|
-
outlineWidth: "2",
|
|
8589
|
-
outlineOffset: "-1",
|
|
8590
|
-
outlineStyle: "solid",
|
|
8591
|
-
outlineColor: "transparent",
|
|
8592
|
-
bg: "bg.input",
|
|
8593
|
-
color: "text",
|
|
8594
|
-
fontFamily: "mono",
|
|
8595
|
-
lineHeight: "default",
|
|
8596
|
-
cursor: "text",
|
|
8597
|
-
userSelect: "none",
|
|
8598
|
-
transitionDuration: "fast",
|
|
8599
|
-
transitionProperty: "background, border-color, outline-color",
|
|
8600
|
-
transitionTimingFunction: "default",
|
|
8601
|
-
_focusWithin: {
|
|
8602
|
-
bg: "bg.input.pressed",
|
|
8603
|
-
borderColor: "border.focused",
|
|
8604
|
-
outlineColor: "border.focused"
|
|
8605
|
-
},
|
|
8606
|
-
_open: {
|
|
8607
|
-
bg: "bg.input.pressed",
|
|
8608
|
-
borderColor: "border.focused",
|
|
8609
|
-
outlineColor: "border.focused"
|
|
8610
|
-
},
|
|
8611
|
-
_disabled: {
|
|
8612
|
-
bg: "bg.disabled",
|
|
8613
|
-
borderColor: "border.disabled",
|
|
8614
|
-
color: "text.disabled",
|
|
8615
|
-
cursor: "not-allowed",
|
|
8616
|
-
pointerEvents: "none"
|
|
8617
|
-
},
|
|
8618
|
-
_error: {
|
|
8619
|
-
borderColor: "border.danger",
|
|
8620
|
-
_hover: {
|
|
8621
|
-
borderColor: "border.danger"
|
|
8622
|
-
},
|
|
8623
|
-
_focusWithin: {
|
|
8624
|
-
borderColor: "border.danger",
|
|
8625
|
-
outlineColor: "border.danger"
|
|
8626
|
-
},
|
|
8627
|
-
_open: {
|
|
8628
|
-
borderColor: "border.danger",
|
|
8629
|
-
outlineColor: "border.danger"
|
|
8630
|
-
}
|
|
8631
|
-
},
|
|
8632
|
-
_invalid: {
|
|
8633
|
-
borderColor: "border.danger",
|
|
8634
|
-
_hover: {
|
|
8635
|
-
borderColor: "border.danger"
|
|
8636
|
-
},
|
|
8637
|
-
_focusWithin: {
|
|
8638
|
-
borderColor: "border.danger",
|
|
8639
|
-
outlineColor: "border.danger"
|
|
8640
|
-
},
|
|
8641
|
-
_open: {
|
|
8642
|
-
borderColor: "border.danger",
|
|
8643
|
-
outlineColor: "border.danger"
|
|
8644
|
-
}
|
|
8645
|
-
}
|
|
8646
|
-
},
|
|
8647
|
-
// Individual focusable segment span (HH, MM, AM/PM)
|
|
8648
|
-
segment: {
|
|
8649
|
-
display: "inline-flex",
|
|
8650
|
-
alignItems: "center",
|
|
8651
|
-
justifyContent: "center",
|
|
8652
|
-
outline: "none",
|
|
8653
|
-
borderRadius: "{sizes.2}",
|
|
8654
|
-
cursor: "default",
|
|
8655
|
-
userSelect: "none",
|
|
8656
|
-
fontFamily: "mono",
|
|
8657
|
-
fontVariantsProperty: "mono",
|
|
8658
|
-
fontVariantNumeric: "tabular-nums",
|
|
8659
|
-
minWidth: "{sizes.24}",
|
|
8660
|
-
textAlign: "center",
|
|
8661
|
-
color: "text",
|
|
8662
|
-
_focusVisible: {
|
|
8663
|
-
bg: "bg.neutral.hovered"
|
|
8664
|
-
},
|
|
8665
|
-
_groupDisabled: {
|
|
8666
|
-
color: "text.disabled"
|
|
8667
|
-
},
|
|
8668
|
-
_invalid: {
|
|
8669
|
-
color: "text.danger"
|
|
8670
|
-
}
|
|
8671
|
-
},
|
|
8672
|
-
// The ":" separator between time segments
|
|
8673
|
-
separator: {
|
|
8674
|
-
color: "text.placeholder",
|
|
8675
|
-
userSelect: "none",
|
|
8676
|
-
display: "inline-flex",
|
|
8677
|
-
alignItems: "center"
|
|
8678
|
-
},
|
|
8679
|
-
// The floating time list container
|
|
8680
|
-
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: {
|
|
8681
8599
|
display: "flex",
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
w: "fit"
|
|
8693
|
-
},
|
|
8694
|
-
// 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.
|
|
8695
8610
|
column: {
|
|
8696
8611
|
display: "flex",
|
|
8697
8612
|
flexDirection: "column",
|
|
8698
|
-
|
|
8699
|
-
flex: 1,
|
|
8700
|
-
maxHeight: "200",
|
|
8701
|
-
scrollSnapType: "y mandatory",
|
|
8702
|
-
borderRight: "default",
|
|
8613
|
+
flex: "1",
|
|
8703
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",
|
|
8704
8624
|
textAlign: "center",
|
|
8625
|
+
borderRightWidth: "1",
|
|
8626
|
+
borderRightStyle: "solid",
|
|
8627
|
+
borderColor: "border",
|
|
8705
8628
|
_last: {
|
|
8706
8629
|
borderRight: "none"
|
|
8707
8630
|
},
|
|
8708
|
-
// Hide scrollbar visually but keep
|
|
8631
|
+
// Hide the scrollbar visually but keep it functional — matches legacy.
|
|
8709
8632
|
"&::-webkit-scrollbar": {
|
|
8710
8633
|
display: "none"
|
|
8711
8634
|
},
|
|
8712
|
-
scrollbarWidth: "none"
|
|
8713
|
-
msOverflowStyle: "none"
|
|
8635
|
+
scrollbarWidth: "none"
|
|
8714
8636
|
},
|
|
8715
|
-
//
|
|
8716
|
-
|
|
8717
|
-
display: "flex",
|
|
8718
|
-
alignItems: "center",
|
|
8719
|
-
justifyContent: "center",
|
|
8720
|
-
py: "4",
|
|
8721
|
-
px: "8",
|
|
8722
|
-
fontSize: "11",
|
|
8723
|
-
fontWeight: "medium",
|
|
8724
|
-
color: "text.subtlest",
|
|
8725
|
-
textTransform: "uppercase",
|
|
8726
|
-
letterSpacing: "widest",
|
|
8727
|
-
borderBottom: "default",
|
|
8637
|
+
// "HR" / "MIN" / "AM/PM" column label.
|
|
8638
|
+
columnHeader: {
|
|
8728
8639
|
position: "sticky",
|
|
8729
8640
|
top: "0",
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
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"
|
|
8733
8664
|
}
|
|
8734
8665
|
};
|
|
8735
|
-
const
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
py: "3",
|
|
8747
|
-
px: "10",
|
|
8748
|
-
fontSize: "16"
|
|
8749
|
-
}
|
|
8750
|
-
},
|
|
8751
|
-
lg: {
|
|
8752
|
-
input: {
|
|
8753
|
-
py: "7",
|
|
8754
|
-
px: "12",
|
|
8755
|
-
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"
|
|
8756
8677
|
}
|
|
8757
8678
|
}
|
|
8758
8679
|
}
|
|
8759
8680
|
};
|
|
8760
|
-
const
|
|
8761
|
-
className: "
|
|
8762
|
-
jsx: ["
|
|
8763
|
-
slots: [
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
"segment",
|
|
8767
|
-
"separator",
|
|
8768
|
-
"popover",
|
|
8769
|
-
"column",
|
|
8770
|
-
"columnLabel"
|
|
8771
|
-
],
|
|
8772
|
-
base: timePickerBase,
|
|
8773
|
-
variants: timePickerVariants,
|
|
8774
|
-
defaultVariants: {
|
|
8775
|
-
size: "md"
|
|
8776
|
-
}
|
|
8681
|
+
const timeMenusRecipe = defineSlotRecipe({
|
|
8682
|
+
className: "timeMenus",
|
|
8683
|
+
jsx: ["TimeMenus", "TimeMenu", "TimeRangeMenu"],
|
|
8684
|
+
slots: ["columns", "column", "columnHeader", "footer"],
|
|
8685
|
+
base: timeMenusBase,
|
|
8686
|
+
variants: timeMenusVariants
|
|
8777
8687
|
});
|
|
8778
8688
|
const toggleRecipe = defineSlotRecipe({
|
|
8779
8689
|
className: "toggle",
|
|
@@ -8846,7 +8756,9 @@ const toggleRecipe = defineSlotRecipe({
|
|
|
8846
8756
|
"&:is([name='circle-check'])": {
|
|
8847
8757
|
display: "inline-grid",
|
|
8848
8758
|
position: "absolute",
|
|
8849
|
-
|
|
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]",
|
|
8850
8762
|
transform: "[translateX(0)]",
|
|
8851
8763
|
fill: "icon.inverse",
|
|
8852
8764
|
"input:checked ~ &": {
|
|
@@ -8921,13 +8833,16 @@ const tooltipRecipe = defineSlotRecipe({
|
|
|
8921
8833
|
});
|
|
8922
8834
|
const slotRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8923
8835
|
__proto__: null,
|
|
8836
|
+
autocompleteRecipe,
|
|
8924
8837
|
avatarRecipe,
|
|
8925
8838
|
badgeRecipe,
|
|
8926
8839
|
breadcrumbsRecipe,
|
|
8927
8840
|
buttonRecipe,
|
|
8841
|
+
calendarRecipe,
|
|
8928
8842
|
checkboxRecipe,
|
|
8929
8843
|
chipRecipe,
|
|
8930
|
-
|
|
8844
|
+
dateMenusRecipe,
|
|
8845
|
+
dateTimeMenusRecipe,
|
|
8931
8846
|
formFieldRecipe,
|
|
8932
8847
|
iconButtonRecipe,
|
|
8933
8848
|
kbdRecipe,
|
|
@@ -8936,10 +8851,12 @@ const slotRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8936
8851
|
menuRecipe,
|
|
8937
8852
|
modalRecipe,
|
|
8938
8853
|
radioRecipe,
|
|
8854
|
+
segmentedFieldsRecipe,
|
|
8855
|
+
segmentedInputsRecipe,
|
|
8939
8856
|
selectRecipe,
|
|
8940
8857
|
spinnerRecipe,
|
|
8941
8858
|
textInputRecipe,
|
|
8942
|
-
|
|
8859
|
+
timeMenusRecipe,
|
|
8943
8860
|
toggleRecipe,
|
|
8944
8861
|
tooltipRecipe
|
|
8945
8862
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9519,6 +9436,49 @@ const colors = defineSemanticTokens.colors({
|
|
|
9519
9436
|
DEFAULT: { value: { base: "{colors.blue.50}", _dark: "{colors.blue.40}" } },
|
|
9520
9437
|
pressed: { value: { base: "{colors.blue.60}", _dark: "{colors.blue.50}" } }
|
|
9521
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
|
+
},
|
|
9522
9482
|
surface: {
|
|
9523
9483
|
DEFAULT: {
|
|
9524
9484
|
value: { base: "{colors.neutral.0}", _dark: "{colors.darkNeutral.10}" }
|
|
@@ -9761,41 +9721,15 @@ const colors = defineSemanticTokens.colors({
|
|
|
9761
9721
|
}
|
|
9762
9722
|
});
|
|
9763
9723
|
const shadows = defineSemanticTokens.shadows({
|
|
9764
|
-
zero: {
|
|
9765
|
-
value: { base: "{shadows.zeroShadow}", _dark: "{shadows.zeroShadow}" }
|
|
9766
|
-
},
|
|
9724
|
+
zero: { value: { base: "{shadows.zeroLight}", _dark: "{shadows.zeroDark}" } },
|
|
9767
9725
|
raised: {
|
|
9768
|
-
|
|
9769
|
-
value: { base: "{shadows.raisedLight}", _dark: "{shadows.raisedDark}" }
|
|
9770
|
-
},
|
|
9771
|
-
up: {
|
|
9772
|
-
value: {
|
|
9773
|
-
base: "{shadows.raisedLightUp}",
|
|
9774
|
-
_dark: "{shadows.raisedDarkUp}"
|
|
9775
|
-
}
|
|
9776
|
-
}
|
|
9726
|
+
value: { base: "{shadows.raisedLight}", _dark: "{shadows.raisedDark}" }
|
|
9777
9727
|
},
|
|
9778
9728
|
elevated: {
|
|
9779
|
-
|
|
9780
|
-
value: {
|
|
9781
|
-
base: "{shadows.elevatedLight}",
|
|
9782
|
-
_dark: "{shadows.elevatedDark}"
|
|
9783
|
-
}
|
|
9784
|
-
},
|
|
9785
|
-
up: {
|
|
9786
|
-
value: {
|
|
9787
|
-
base: "{shadows.elevatedLightUp}",
|
|
9788
|
-
_dark: "{shadows.elevatedDarkUp}"
|
|
9789
|
-
}
|
|
9790
|
-
}
|
|
9729
|
+
value: { base: "{shadows.elevatedLight}", _dark: "{shadows.elevatedDark}" }
|
|
9791
9730
|
},
|
|
9792
9731
|
overlay: {
|
|
9793
|
-
|
|
9794
|
-
value: { base: "{shadows.overlayLight}", _dark: "{shadows.overlayDark}" }
|
|
9795
|
-
},
|
|
9796
|
-
dark: {
|
|
9797
|
-
value: { base: "{shadows.overlayDark}", _dark: "{shadows.overlayLight}" }
|
|
9798
|
-
}
|
|
9732
|
+
value: { base: "{shadows.overlayLight}", _dark: "{shadows.overlayDark}" }
|
|
9799
9733
|
},
|
|
9800
9734
|
overflow: {
|
|
9801
9735
|
value: { base: "{shadows.overflowLight}", _dark: "{shadows.overflowDark}" }
|
|
@@ -9807,6 +9741,7 @@ const zIndex = defineSemanticTokens.zIndex({
|
|
|
9807
9741
|
elevated: { value: "{zIndex.1000}" },
|
|
9808
9742
|
overlay: { value: "{zIndex.1100}" },
|
|
9809
9743
|
modal: { value: "{zIndex.1101}" },
|
|
9744
|
+
modalFloating: { value: "{zIndex.1102}" },
|
|
9810
9745
|
tooltip: { value: "{zIndex.1200}" }
|
|
9811
9746
|
});
|
|
9812
9747
|
const presetRecipes = Object.fromEntries(
|
|
@@ -9897,8 +9832,14 @@ const okshaunPreset = definePreset$1({
|
|
|
9897
9832
|
},
|
|
9898
9833
|
utilities: {
|
|
9899
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,
|
|
9900
9842
|
// Custom utility for transitionProperty that uses our transition tokens
|
|
9901
|
-
filtersProperty,
|
|
9902
9843
|
transitionProperty
|
|
9903
9844
|
},
|
|
9904
9845
|
// Global styles
|
|
@@ -9917,4 +9858,4 @@ export {
|
|
|
9917
9858
|
containerSizes as c,
|
|
9918
9859
|
okshaunPreset as o
|
|
9919
9860
|
};
|
|
9920
|
-
//# sourceMappingURL=preset-
|
|
9861
|
+
//# sourceMappingURL=preset-BOFHjPdQ.js.map
|