@common-origin/design-system 2.17.0 → 2.19.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/client.esm.js +967 -606
- package/dist/client.esm.js.map +1 -1
- package/dist/client.js +967 -606
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.d.ts +7 -2
- package/dist/components/atoms/Chip/shared/types.d.ts +3 -1
- package/dist/components/atoms/Chip/shared/utils.d.ts +2 -3
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/atoms/Tag/Tag.d.ts +4 -1
- package/dist/data.esm.js +271 -16
- package/dist/data.esm.js.map +1 -1
- package/dist/data.js +271 -16
- package/dist/data.js.map +1 -1
- package/dist/lib/cssTokens.d.ts +14 -0
- package/dist/lib/cssVariables.d.ts +15 -0
- package/dist/lib/styleUtils.d.ts +23 -0
- package/dist/lib/tokenAliases.d.ts +13 -0
- package/dist/styles/tokens.d.ts +3174 -0
- package/dist/styles/tokens.json +267 -14
- package/dist/tokens/index.esm.js +271 -16
- package/dist/tokens/index.esm.js.map +1 -1
- package/dist/tokens/index.js +271 -16
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/styles/tokens.d.ts +3174 -0
- package/dist/tokens/types/tokens.d.ts +3 -1196
- package/dist/tokens.css +720 -432
- package/dist/types/tokens.d.ts +3 -1196
- package/package.json +4 -2
package/dist/client.js
CHANGED
|
@@ -110,13 +110,57 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
110
110
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
+
// Components read tokens as CSS variables, with the resolved value as the fallback (decision 0041).
|
|
114
|
+
// A product that loads tokens.css can change a token for a region (a density or motion mode, a
|
|
115
|
+
// theme); one that doesn't renders exactly the resolved values.
|
|
116
|
+
/**
|
|
117
|
+
* The CSS variable tokens.css declares for a token path: Style Dictionary's `name/kebab` with the
|
|
118
|
+
* `co` prefix. `semantic.color.text.default` is `--co-semantic-color-text-default`, and
|
|
119
|
+
* `semantic.border.focusOffset` is `--co-semantic-border-focus-offset`.
|
|
120
|
+
*/
|
|
121
|
+
function cssVariableName(path) {
|
|
122
|
+
return "--".concat(__spreadArray(['co'], path, true).join('-').replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase());
|
|
123
|
+
}
|
|
124
|
+
/** Breakpoints stay values: a CSS variable can't be used in a media query */
|
|
125
|
+
var keepsValue = function keepsValue(path) {
|
|
126
|
+
return path[1] === 'breakpoint';
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* A copy of a token tree with the same shape, where every value reads its CSS variable and falls
|
|
130
|
+
* back to the resolved value: `var(--co-semantic-color-text-default, #212529)`.
|
|
131
|
+
*/
|
|
132
|
+
function withCssVariables(tree, path) {
|
|
133
|
+
if (path === void 0) {
|
|
134
|
+
path = [];
|
|
135
|
+
}
|
|
136
|
+
return Object.fromEntries(Object.entries(tree).map(function (_a) {
|
|
137
|
+
var key = _a[0],
|
|
138
|
+
value = _a[1];
|
|
139
|
+
var at = __spreadArray(__spreadArray([], path, true), [key], false);
|
|
140
|
+
if (typeof value !== 'string') return [key, withCssVariables(value, at)];
|
|
141
|
+
return [key, keepsValue(at) ? value : "var(".concat(cssVariableName(at), ", ").concat(value, ")")];
|
|
142
|
+
}));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The tokens as components read them (decision 0041): the same shape and type as `tokens.json`,
|
|
147
|
+
* with every value a CSS variable that falls back to the resolved value, so a region can change a
|
|
148
|
+
* token through tokens.css. Breakpoints stay values.
|
|
149
|
+
*
|
|
150
|
+
* Use the resolved values from `tokens.json` instead where a value is read as data rather than
|
|
151
|
+
* CSS, such as a duration parsed for a timer.
|
|
152
|
+
*
|
|
153
|
+
* Jest maps this module to `tokens.json` (jest.config.js), so unit tests assert resolved values;
|
|
154
|
+
* the browser specs check the variables.
|
|
155
|
+
*/
|
|
156
|
+
var tokens = withCssVariables(data.tokensJson);
|
|
157
|
+
|
|
113
158
|
// Destructure tokens
|
|
114
|
-
var semantic$
|
|
115
|
-
var initials =
|
|
116
|
-
var color$b = semantic$
|
|
117
|
-
size$
|
|
118
|
-
|
|
119
|
-
var radius$5 = border$b.radius;
|
|
159
|
+
var semantic$l = tokens.semantic;
|
|
160
|
+
var initials = tokens.component.avatar.initials;
|
|
161
|
+
var color$b = semantic$l.color,
|
|
162
|
+
size$3 = semantic$l.size;
|
|
163
|
+
var radius$6 = semantic$l.radius;
|
|
120
164
|
var AvatarContainer = styled__default.default.div.withConfig({
|
|
121
165
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
122
166
|
return !prop.startsWith('$');
|
|
@@ -125,25 +169,25 @@ var AvatarContainer = styled__default.default.div.withConfig({
|
|
|
125
169
|
componentId: "sc-ezn4ax-0"
|
|
126
170
|
})(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n flex-shrink: 0;\n"], ["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n flex-shrink: 0;\n"])), function (_a) {
|
|
127
171
|
var $size = _a.$size;
|
|
128
|
-
return size$
|
|
172
|
+
return size$3.avatar[$size];
|
|
129
173
|
}, function (_a) {
|
|
130
174
|
var $size = _a.$size;
|
|
131
|
-
return size$
|
|
132
|
-
}, radius$
|
|
175
|
+
return size$3.avatar[$size];
|
|
176
|
+
}, radius$6.full, color$b.fill.muted);
|
|
133
177
|
var AvatarImage = styled__default.default.img.withConfig({
|
|
134
178
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
135
179
|
return !prop.startsWith('$');
|
|
136
180
|
},
|
|
137
181
|
displayName: "Avatar__AvatarImage",
|
|
138
182
|
componentId: "sc-ezn4ax-1"
|
|
139
|
-
})(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: ", ";\n /* Remove the img role since the container already has role=\"img\" */\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: ", ";\n /* Remove the img role since the container already has role=\"img\" */\n"])), radius$
|
|
183
|
+
})(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: ", ";\n /* Remove the img role since the container already has role=\"img\" */\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: ", ";\n /* Remove the img role since the container already has role=\"img\" */\n"])), radius$6.full);
|
|
140
184
|
var AvatarInitials = styled__default.default.span.withConfig({
|
|
141
185
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
142
186
|
return !prop.startsWith('$');
|
|
143
187
|
},
|
|
144
188
|
displayName: "Avatar__AvatarInitials",
|
|
145
189
|
componentId: "sc-ezn4ax-2"
|
|
146
|
-
})(templateObject_3$
|
|
190
|
+
})(templateObject_3$w || (templateObject_3$w = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: ", ";\n text-transform: uppercase;\n user-select: none;\n"], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: ", ";\n text-transform: uppercase;\n user-select: none;\n"
|
|
147
191
|
// Helper function to get initials from name
|
|
148
192
|
])), initials.fontFamily, initials.fontWeight, function (_a) {
|
|
149
193
|
var $size = _a.$size;
|
|
@@ -202,16 +246,16 @@ var Avatar = function Avatar(_a) {
|
|
|
202
246
|
})
|
|
203
247
|
}));
|
|
204
248
|
};
|
|
205
|
-
var templateObject_1$M, templateObject_2$y, templateObject_3$
|
|
249
|
+
var templateObject_1$M, templateObject_2$y, templateObject_3$w;
|
|
206
250
|
|
|
207
251
|
// Breakpoints from the semantic tokens (decision 0014)
|
|
208
252
|
var breakpoints$1 = {
|
|
209
|
-
xs:
|
|
210
|
-
sm:
|
|
211
|
-
md:
|
|
212
|
-
lg:
|
|
213
|
-
xl:
|
|
214
|
-
'2xl':
|
|
253
|
+
xs: tokens.semantic.breakpoint.xs,
|
|
254
|
+
sm: tokens.semantic.breakpoint.sm,
|
|
255
|
+
md: tokens.semantic.breakpoint.md,
|
|
256
|
+
lg: tokens.semantic.breakpoint.lg,
|
|
257
|
+
xl: tokens.semantic.breakpoint.xl,
|
|
258
|
+
'2xl': tokens.semantic.breakpoint['2xl']
|
|
215
259
|
};
|
|
216
260
|
// Media query helpers
|
|
217
261
|
var media$1 = {
|
|
@@ -222,6 +266,16 @@ var media$1 = {
|
|
|
222
266
|
xl: "@media (min-width: ".concat(breakpoints$1.xl, ")"),
|
|
223
267
|
'2xl': "@media (min-width: ".concat(breakpoints$1['2xl'], ")")
|
|
224
268
|
};
|
|
269
|
+
// Windows Contrast Themes and other forced-colours modes (decision 0038). The browser swaps in
|
|
270
|
+
// the user's system colours, drops background colours and box-shadows, and keeps borders and
|
|
271
|
+
// outlines. Inside this query, give a control that shows its edge with a fill alone a border,
|
|
272
|
+
// and draw selected and checked states with system colours: ButtonText for control edges,
|
|
273
|
+
// Highlight and HighlightText for selected and checked, GrayText for disabled, CanvasText for
|
|
274
|
+
// content. Use forced-color-adjust: none only on a fill that carries state.
|
|
275
|
+
var forcedColors = '@media (forced-colors: active)';
|
|
276
|
+
/** A control's edge in forced colours, for a control that shows its edge with a fill alone. The
|
|
277
|
+
* border follows the text colour the browser picks: ButtonText, LinkText, or GrayText when disabled. */
|
|
278
|
+
var forcedColorsEdge = "".concat(forcedColors, " {\n border: ").concat(tokens.semantic.border.width.thin, " solid currentColor;\n}");
|
|
225
279
|
// Wrap fallbacks for people who ask for less motion (decision 0005): movement becomes
|
|
226
280
|
// an instant change or a simple fade. Colour and opacity transitions need no fallback.
|
|
227
281
|
var reducedMotion = '@media (prefers-reduced-motion: reduce)';
|
|
@@ -233,25 +287,124 @@ var fadeOut$1 = styled.keyframes(templateObject_1$L || (templateObject_1$L = __m
|
|
|
233
287
|
// so it isn't restarted, and the fade runs on top of it. A fade is already the
|
|
234
288
|
// reduced-motion form, so it needs no fallback of its own. While it fades, the backdrop
|
|
235
289
|
// still catches clicks (so they can't reach the page behind it) and the panel is inert.
|
|
290
|
+
// Exits accelerate: things leaving speed up as they go (decision 0037).
|
|
236
291
|
])));
|
|
237
292
|
// Exit for overlays that unmount (use with usePresence). Append `exitAnimation` to each of
|
|
238
293
|
// the element's `animation` declarations while it exits: the entrance stays in the list,
|
|
239
294
|
// so it isn't restarted, and the fade runs on top of it. A fade is already the
|
|
240
295
|
// reduced-motion form, so it needs no fallback of its own. While it fades, the backdrop
|
|
241
296
|
// still catches clicks (so they can't reach the page behind it) and the panel is inert.
|
|
297
|
+
// Exits accelerate: things leaving speed up as they go (decision 0037).
|
|
242
298
|
var exitAnimation = styled.css(templateObject_2$x || (templateObject_2$x = __makeTemplateObject([", ", " ", " ", " forwards"], [", ", " ", " ", " forwards"
|
|
243
299
|
// Content for screen readers only. The 1px size and -1px margin are part of the standard
|
|
244
300
|
// visually-hidden technique, not design values, so they aren't tokens.
|
|
245
|
-
])), fadeOut$1,
|
|
301
|
+
])), fadeOut$1, tokens.semantic.motion.duration.fast, tokens.semantic.motion.easing.accelerate);
|
|
246
302
|
// Content for screen readers only. The 1px size and -1px margin are part of the standard
|
|
247
303
|
// visually-hidden technique, not design values, so they aren't tokens.
|
|
248
|
-
var visuallyHidden = styled.css(templateObject_3$
|
|
249
|
-
|
|
304
|
+
var visuallyHidden = styled.css(templateObject_3$v || (templateObject_3$v = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"
|
|
305
|
+
// One interaction pattern for rows and items: list items, menu and listbox options, sidebars
|
|
306
|
+
// (decision 0030). Unselected rows follow the naked Button's ladder; selected rows follow the
|
|
307
|
+
// light-blue selected ladder, with the text darkening with its fill (decision 0016). Unselected
|
|
308
|
+
// rows leave their text colour to the component, so a destructive row can stay red.
|
|
309
|
+
])));
|
|
310
|
+
// One interaction pattern for rows and items: list items, menu and listbox options, sidebars
|
|
311
|
+
// (decision 0030). Unselected rows follow the naked Button's ladder; selected rows follow the
|
|
312
|
+
// light-blue selected ladder, with the text darkening with its fill (decision 0016). Unselected
|
|
313
|
+
// rows leave their text colour to the component, so a destructive row can stay red.
|
|
314
|
+
var _a$b = tokens.semantic.color,
|
|
315
|
+
rowFill = _a$b.fill,
|
|
316
|
+
rowText = _a$b.text;
|
|
317
|
+
var rowStates = {
|
|
318
|
+
unselected: {
|
|
319
|
+
rest: {
|
|
320
|
+
background: 'transparent'
|
|
321
|
+
},
|
|
322
|
+
hover: {
|
|
323
|
+
background: rowFill.muted
|
|
324
|
+
},
|
|
325
|
+
pressed: {
|
|
326
|
+
background: rowFill["default"]
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
selected: {
|
|
330
|
+
rest: {
|
|
331
|
+
background: rowFill['accent-muted'],
|
|
332
|
+
text: rowText.accent
|
|
333
|
+
},
|
|
334
|
+
hover: {
|
|
335
|
+
background: rowFill['accent-muted-hover'],
|
|
336
|
+
text: rowText['accent-hover']
|
|
337
|
+
},
|
|
338
|
+
pressed: {
|
|
339
|
+
background: rowFill['accent-muted-pressed'],
|
|
340
|
+
text: rowText['accent-pressed']
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
var rowDeclarations = function rowDeclarations(_a, textSelector) {
|
|
345
|
+
var background = _a.background,
|
|
346
|
+
text = _a.text;
|
|
347
|
+
if (!text) return "background-color: ".concat(background, ";");
|
|
348
|
+
return textSelector ? "background-color: ".concat(background, ";\n ").concat(textSelector, " { color: ").concat(text, "; }") : "background-color: ".concat(background, ";\n color: ").concat(text, ";");
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* The background (and, when selected, text) of an interactive row in every state.
|
|
352
|
+
* - `focused`: keyboard focus that isn't DOM focus, such as a listbox option under
|
|
353
|
+
* aria-activedescendant. It shows the hover state.
|
|
354
|
+
* - `disabled`: shows the resting state, with no hover or press.
|
|
355
|
+
* - `textSelector`: a descendant to colour when the row's text isn't the row itself, for example
|
|
356
|
+
* text set by Typography. Pass it without `&`.
|
|
357
|
+
*/
|
|
358
|
+
var interactiveRow = function interactiveRow(_a) {
|
|
359
|
+
var _b = _a === void 0 ? {} : _a,
|
|
360
|
+
_c = _b.selected,
|
|
361
|
+
selected = _c === void 0 ? false : _c,
|
|
362
|
+
_d = _b.focused,
|
|
363
|
+
focused = _d === void 0 ? false : _d,
|
|
364
|
+
_e = _b.disabled,
|
|
365
|
+
disabled = _e === void 0 ? false : _e,
|
|
366
|
+
textSelector = _b.textSelector;
|
|
367
|
+
var states = selected ? rowStates.selected : rowStates.unselected;
|
|
368
|
+
if (disabled) return "".concat(rowDeclarations(states.rest, textSelector), "\n").concat(rowForcedColors({
|
|
369
|
+
selected: selected,
|
|
370
|
+
focused: focused,
|
|
371
|
+
disabled: disabled,
|
|
372
|
+
textSelector: textSelector
|
|
373
|
+
}));
|
|
374
|
+
return "\n ".concat(rowDeclarations(focused ? states.hover : states.rest, textSelector), "\n\n &:hover {\n ").concat(rowDeclarations(states.hover, textSelector), "\n }\n\n &:active {\n ").concat(rowDeclarations(states.pressed, textSelector), "\n }\n\n ").concat(rowForcedColors({
|
|
375
|
+
selected: selected,
|
|
376
|
+
focused: focused,
|
|
377
|
+
disabled: disabled,
|
|
378
|
+
textSelector: textSelector
|
|
379
|
+
}), "\n");
|
|
380
|
+
};
|
|
381
|
+
// Rows in forced colours (decision 0038): fills are dropped, so a selected row takes the system
|
|
382
|
+
// selection colours, and a hovered or keyboard-active row is outlined in Highlight.
|
|
383
|
+
var rowForcedColors = function rowForcedColors(_a) {
|
|
384
|
+
var selected = _a.selected,
|
|
385
|
+
focused = _a.focused,
|
|
386
|
+
disabled = _a.disabled,
|
|
387
|
+
textSelector = _a.textSelector;
|
|
388
|
+
var text = function text(color) {
|
|
389
|
+
return textSelector ? "color: ".concat(color, ";\n ").concat(textSelector, " { color: ").concat(color, "; }") : "color: ".concat(color, ";");
|
|
390
|
+
};
|
|
391
|
+
var hover = "outline: ".concat(tokens.semantic.border.width.thin, " solid Highlight;\n outline-offset: calc(-1 * ").concat(tokens.semantic.border.width.thin, ");");
|
|
392
|
+
// A row that doesn't respond (disabled, or not interactive at all) keeps its selection but has
|
|
393
|
+
// no hover outline. Disabled text is the component's to colour: callers also pass this for
|
|
394
|
+
// static rows, which must stay CanvasText.
|
|
395
|
+
// A selected row keeps forced-color-adjust: auto: the browser keeps system colours an author
|
|
396
|
+
// sets, so the row stays Highlight with HighlightText. Its descendants' own colours would be
|
|
397
|
+
// forced to CanvasText, so they inherit HighlightText, and anything drawn with a fill inside
|
|
398
|
+
// (a chip or tag as the row's badge) drops it and keeps its edge. The doubled class outranks
|
|
399
|
+
// the descendants' own rules.
|
|
400
|
+
return "".concat(forcedColors, " {\n ").concat(selected ? "background-color: Highlight;\n ".concat(text('HighlightText'), "\n && * {\n color: inherit;\n background-color: transparent;\n }") : '', "\n ").concat(!disabled && focused ? hover : '', "\n ").concat(disabled ? '' : "&:hover {\n ".concat(hover, "\n }"), "\n }");
|
|
401
|
+
};
|
|
402
|
+
var templateObject_1$L, templateObject_2$x, templateObject_3$v;
|
|
250
403
|
|
|
251
|
-
var _a$
|
|
252
|
-
typography$2 = _a$
|
|
253
|
-
color$a = _a$
|
|
254
|
-
letterSpacing = _a$
|
|
404
|
+
var _a$a = tokens.semantic,
|
|
405
|
+
typography$2 = _a$a.typography,
|
|
406
|
+
color$a = _a$a.color,
|
|
407
|
+
letterSpacing = _a$a.letterSpacing;
|
|
255
408
|
var getTypographyStyles = function getTypographyStyles(variant) {
|
|
256
409
|
var styles = {
|
|
257
410
|
display: "font: ".concat(typography$2.display, "; letter-spacing: ").concat(letterSpacing.tighter, ";"),
|
|
@@ -266,9 +419,9 @@ var getTypographyStyles = function getTypographyStyles(variant) {
|
|
|
266
419
|
small: "font: ".concat(typography$2.small, ";"),
|
|
267
420
|
overline: "font: ".concat(typography$2.overline, ";"),
|
|
268
421
|
caption: "font: ".concat(typography$2.caption, "; text-transform: uppercase;"),
|
|
269
|
-
button1: "font: ".concat(
|
|
270
|
-
button2: "font: ".concat(
|
|
271
|
-
button3: "font: ".concat(
|
|
422
|
+
button1: "font: ".concat(tokens.component.button.sizes.large.font, ";"),
|
|
423
|
+
button2: "font: ".concat(tokens.component.button.sizes.medium.font, ";"),
|
|
424
|
+
button3: "font: ".concat(tokens.component.button.sizes.small.font, ";"),
|
|
272
425
|
label: "font: ".concat(typography$2.label, ";")
|
|
273
426
|
};
|
|
274
427
|
return styles[variant] || styles.body;
|
|
@@ -277,11 +430,11 @@ var getTextColor = function getTextColor(colorVariant) {
|
|
|
277
430
|
var colorMap = {
|
|
278
431
|
"default": color$a.text["default"],
|
|
279
432
|
emphasis: color$a.text.emphasis,
|
|
280
|
-
subdued: color$a.text.
|
|
433
|
+
subdued: color$a.text.muted,
|
|
281
434
|
inverse: color$a.text.inverse,
|
|
282
435
|
disabled: color$a.text.disabled,
|
|
283
|
-
interactive: color$a.text.
|
|
284
|
-
error: color$a.text.
|
|
436
|
+
interactive: color$a.text.accent,
|
|
437
|
+
error: color$a.text.danger,
|
|
285
438
|
success: color$a.text.success,
|
|
286
439
|
warning: color$a.text.warning
|
|
287
440
|
};
|
|
@@ -378,14 +531,13 @@ var Typography = function Typography(_a) {
|
|
|
378
531
|
};
|
|
379
532
|
var templateObject_1$K;
|
|
380
533
|
|
|
381
|
-
var semantic$
|
|
382
|
-
var color$9 = semantic$
|
|
383
|
-
|
|
384
|
-
var
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
ring = _a$a.ring;
|
|
534
|
+
var semantic$k = tokens.semantic;
|
|
535
|
+
var color$9 = semantic$k.color;
|
|
536
|
+
var radius$5 = semantic$k.radius;
|
|
537
|
+
var _a$9 = tokens.component.badge,
|
|
538
|
+
dot = _a$9.dot,
|
|
539
|
+
count = _a$9.count,
|
|
540
|
+
ring = _a$9.ring;
|
|
389
541
|
var scaleIn$2 = styled.keyframes(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n from {\n transform: scale(0.8);\n opacity: 0;\n }\n to {\n transform: scale(1);\n opacity: 1;\n }\n"], ["\n from {\n transform: scale(0.8);\n opacity: 0;\n }\n to {\n transform: scale(1);\n opacity: 1;\n }\n"])));
|
|
390
542
|
var BadgeWrapper = styled__default.default.span.withConfig({
|
|
391
543
|
displayName: "Badge__BadgeWrapper",
|
|
@@ -397,26 +549,30 @@ var BadgeIndicator = styled__default.default.span.withConfig({
|
|
|
397
549
|
},
|
|
398
550
|
displayName: "Badge__BadgeIndicator",
|
|
399
551
|
componentId: "sc-tjz4pp-1"
|
|
400
|
-
})(templateObject_3$
|
|
552
|
+
})(templateObject_3$u || (templateObject_3$u = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n display: ", ";\n align-items: center;\n justify-content: center;\n min-width: ", ";\n height: ", ";\n padding: ", ";\n border-radius: ", ";\n line-height: ", ";\n white-space: nowrap;\n box-shadow: 0 0 0 ", " ", ";\n animation: ", " ", " ", ";\n\n ", " {\n animation: none;\n }\n\n /* Forced colours drop fills (decision 0038): a dot is only a fill, so it keeps one in the\n text colour; a count gets an edge around its number */\n ", "\n \n ", "\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n display: ", ";\n align-items: center;\n justify-content: center;\n min-width: ", ";\n height: ", ";\n padding: ", ";\n border-radius: ", ";\n line-height: ", ";\n white-space: nowrap;\n box-shadow: 0 0 0 ", " ", ";\n animation: ", " ", " ", ";\n\n ", " {\n animation: none;\n }\n\n /* Forced colours drop fills (decision 0038): a dot is only a fill, so it keeps one in the\n text colour; a count gets an edge around its number */\n ", "\n \n ", "\n"])), function (props) {
|
|
401
553
|
return props.$isVisible ? 'flex' : 'none';
|
|
402
554
|
}, function (props) {
|
|
403
555
|
return props.$isDot ? dot.size : count.minWidth;
|
|
404
556
|
}, function (props) {
|
|
405
557
|
return props.$isDot ? dot.size : count.height;
|
|
406
558
|
}, function (props) {
|
|
407
|
-
return props.$isDot ? '0' : "0 ".concat(semantic$
|
|
408
|
-
}, radius$
|
|
559
|
+
return props.$isDot ? '0' : "0 ".concat(semantic$k.space.inset.xs);
|
|
560
|
+
}, radius$5.full, count.lineHeight, ring.width, semantic$k.surface.base, scaleIn$2, semantic$k.motion.duration.moderate, semantic$k.motion.easing.decelerate, reducedMotion, function (props) {
|
|
561
|
+
return props.$isDot ? "".concat(forcedColors, " { forced-color-adjust: none; background-color: CanvasText; }") : "".concat(forcedColors, " { border: ").concat(semantic$k.border.width.thin, " solid currentColor; }");
|
|
562
|
+
}, function (props) {
|
|
409
563
|
switch (props.$variant) {
|
|
564
|
+
case 'accent':
|
|
410
565
|
case 'primary':
|
|
411
|
-
|
|
566
|
+
// Deprecated alias for 'accent', removed in 3.0 (#169)
|
|
567
|
+
return "\n background-color: ".concat(color$9.fill.accent, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
412
568
|
case 'error':
|
|
413
|
-
return "\n background-color: ".concat(color$9.
|
|
569
|
+
return "\n background-color: ".concat(color$9.fill.danger, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
414
570
|
case 'warning':
|
|
415
|
-
return "\n background-color: ".concat(color$9.
|
|
571
|
+
return "\n background-color: ".concat(color$9.fill.warning, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
416
572
|
case 'success':
|
|
417
|
-
return "\n background-color: ".concat(color$9.
|
|
573
|
+
return "\n background-color: ".concat(color$9.fill.success, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
418
574
|
default:
|
|
419
|
-
return "\n background-color: ".concat(color$9.
|
|
575
|
+
return "\n background-color: ".concat(color$9.fill.emphasis, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
420
576
|
}
|
|
421
577
|
});
|
|
422
578
|
var ScreenReaderOnly$1 = styled__default.default.span.withConfig({
|
|
@@ -460,7 +616,123 @@ var Badge = function Badge(_a) {
|
|
|
460
616
|
})]
|
|
461
617
|
});
|
|
462
618
|
};
|
|
463
|
-
var templateObject_1$J, templateObject_2$w, templateObject_3$
|
|
619
|
+
var templateObject_1$J, templateObject_2$w, templateObject_3$u, templateObject_4$n;
|
|
620
|
+
|
|
621
|
+
// Props whose values are token keys keep their published vocabulary in 2.x (P7), but read the
|
|
622
|
+
// semantic grammar's names (decision 0031, #189). Each map covers every key the prop type allows,
|
|
623
|
+
// so TypeScript fails here if a key is added without a mapping.
|
|
624
|
+
var semantic$j = tokens.semantic;
|
|
625
|
+
var color$8 = semantic$j.color,
|
|
626
|
+
space$e = semantic$j.space,
|
|
627
|
+
radius$4 = semantic$j.radius,
|
|
628
|
+
surface = semantic$j.surface;
|
|
629
|
+
/** Box's spacing props (`p`, `m`, `gap`…): the old layout scale's keys, read from `space`. */
|
|
630
|
+
var spaceByLayoutKey = {
|
|
631
|
+
none: space$e[0],
|
|
632
|
+
xs: space$e[100],
|
|
633
|
+
sm: space$e[200],
|
|
634
|
+
md: space$e[300],
|
|
635
|
+
lg: space$e[400],
|
|
636
|
+
xl: space$e[500],
|
|
637
|
+
'2xl': space$e[600],
|
|
638
|
+
'3xl': space$e[700],
|
|
639
|
+
'4xl': space$e[800],
|
|
640
|
+
'5xl': space$e[900],
|
|
641
|
+
'6xl': space$e[1000],
|
|
642
|
+
'7xl': space$e[1200],
|
|
643
|
+
'8xl': space$e[1400],
|
|
644
|
+
'9xl': space$e[1600],
|
|
645
|
+
'10xl': space$e[2000],
|
|
646
|
+
'11xl': space$e[2400],
|
|
647
|
+
// A keyword, not a step: it stays until the keyword question is settled (0031)
|
|
648
|
+
auto: semantic$j.spacing.layout.auto
|
|
649
|
+
};
|
|
650
|
+
/** Box's `borderRadius` prop: the old radius keys, read from `radius`. */
|
|
651
|
+
var radiusByKey = {
|
|
652
|
+
none: radius$4.none,
|
|
653
|
+
xs: radius$4.xs,
|
|
654
|
+
sm: radius$4.sm,
|
|
655
|
+
md: radius$4.md,
|
|
656
|
+
lg: radius$4.lg,
|
|
657
|
+
xl: radius$4.xl,
|
|
658
|
+
'2xl': radius$4['2xl'],
|
|
659
|
+
'3xl': radius$4['3xl'],
|
|
660
|
+
circle: radius$4.full
|
|
661
|
+
};
|
|
662
|
+
/** Box's `bg` prop: the old background keys, read from `surface` and `color.fill`. */
|
|
663
|
+
var backgroundByKey = {
|
|
664
|
+
"default": surface.base,
|
|
665
|
+
page: surface.base,
|
|
666
|
+
subtle: surface.raised,
|
|
667
|
+
overlay: surface.scrim,
|
|
668
|
+
emphasis: color$8.fill.emphasis,
|
|
669
|
+
'emphasis-hover': color$8.fill['emphasis-hover'],
|
|
670
|
+
'emphasis-active': color$8.fill['emphasis-pressed'],
|
|
671
|
+
surface: color$8.fill.muted,
|
|
672
|
+
inverse: color$8.fill.inverse,
|
|
673
|
+
interactive: color$8.fill.accent,
|
|
674
|
+
'interactive-hover': color$8.fill['accent-hover'],
|
|
675
|
+
'interactive-active': color$8.fill['accent-pressed'],
|
|
676
|
+
'interactive-subtle': color$8.fill['accent-muted'],
|
|
677
|
+
'interactive-subtle-hover': color$8.fill['accent-muted-hover'],
|
|
678
|
+
'interactive-subtle-active': color$8.fill['accent-muted-pressed'],
|
|
679
|
+
error: color$8.fill.danger,
|
|
680
|
+
'error-hover': color$8.fill['danger-hover'],
|
|
681
|
+
'error-active': color$8.fill['danger-pressed'],
|
|
682
|
+
'error-subtle': color$8.fill['danger-muted'],
|
|
683
|
+
success: color$8.fill.success,
|
|
684
|
+
'success-subtle': color$8.fill['success-muted'],
|
|
685
|
+
warning: color$8.fill.warning,
|
|
686
|
+
'warning-subtle': color$8.fill['warning-muted'],
|
|
687
|
+
disabled: color$8.fill.disabled,
|
|
688
|
+
neutral: color$8.fill["default"],
|
|
689
|
+
'neutral-hover': color$8.fill['default-hover'],
|
|
690
|
+
'neutral-active': color$8.fill['default-pressed'],
|
|
691
|
+
transparent: color$8.fill.none,
|
|
692
|
+
'hover-overlay': color$8.fill['none-hover'],
|
|
693
|
+
'active-overlay': color$8.fill['none-pressed'],
|
|
694
|
+
'inverse-overlay': color$8.fill['inverse-none-hover'],
|
|
695
|
+
// Moved to the component tier (decision 0031 §6)
|
|
696
|
+
progressTrack: tokens.component.track.background
|
|
697
|
+
};
|
|
698
|
+
/** Box's `color` prop: text colours, old and new keys. */
|
|
699
|
+
var textColorByKey = {
|
|
700
|
+
"default": color$8.text["default"],
|
|
701
|
+
emphasis: color$8.text.emphasis,
|
|
702
|
+
inverse: color$8.text.inverse,
|
|
703
|
+
disabled: color$8.text.disabled,
|
|
704
|
+
success: color$8.text.success,
|
|
705
|
+
warning: color$8.text.warning,
|
|
706
|
+
muted: color$8.text.muted,
|
|
707
|
+
accent: color$8.text.accent,
|
|
708
|
+
'accent-hover': color$8.text['accent-hover'],
|
|
709
|
+
'accent-pressed': color$8.text['accent-pressed'],
|
|
710
|
+
danger: color$8.text.danger,
|
|
711
|
+
subdued: color$8.text.muted,
|
|
712
|
+
interactive: color$8.text.accent,
|
|
713
|
+
'interactive-hover': color$8.text['accent-hover'],
|
|
714
|
+
'interactive-active': color$8.text['accent-pressed'],
|
|
715
|
+
error: color$8.text.danger
|
|
716
|
+
};
|
|
717
|
+
/** Box's border props: border colours, old and new keys. */
|
|
718
|
+
var borderColorByKey = {
|
|
719
|
+
"default": color$8.border["default"],
|
|
720
|
+
success: color$8.border.success,
|
|
721
|
+
warning: color$8.border.warning,
|
|
722
|
+
none: color$8.border.none,
|
|
723
|
+
emphasis: color$8.border.emphasis,
|
|
724
|
+
input: color$8.border.input,
|
|
725
|
+
'input-hover': color$8.border['input-hover'],
|
|
726
|
+
focus: color$8.border.focus,
|
|
727
|
+
accent: color$8.border.accent,
|
|
728
|
+
danger: color$8.border.danger,
|
|
729
|
+
subtle: color$8.border.emphasis,
|
|
730
|
+
control: color$8.border.input,
|
|
731
|
+
// `strong` split by use (0031); as a generic firm outline it is the hovered-input border
|
|
732
|
+
strong: color$8.border['input-hover'],
|
|
733
|
+
interactive: color$8.border.accent,
|
|
734
|
+
error: color$8.border.danger
|
|
735
|
+
};
|
|
464
736
|
|
|
465
737
|
var StyledBox = styled__default.default.div.withConfig({
|
|
466
738
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -468,48 +740,48 @@ var StyledBox = styled__default.default.div.withConfig({
|
|
|
468
740
|
},
|
|
469
741
|
displayName: "Box__StyledBox",
|
|
470
742
|
componentId: "sc-aj0jhd-0"
|
|
471
|
-
})(
|
|
743
|
+
})(templateObject_51 || (templateObject_51 = __makeTemplateObject(["\n ", "\n \n // Flexbox\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Margin\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Padding\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Size\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Position\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Borders\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Background & Color\n ", "\n ", "\n \n // Elevation (shadow)\n ", "\n \n // Cursor\n ", "\n \n // Transition\n ", "\n \n // Hover states\n ", "\n \n // Overflow\n ", "\n ", "\n ", "\n"], ["\n ", "\n \n // Flexbox\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Margin\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Padding\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Size\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Position\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Borders\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Background & Color\n ", "\n ", "\n \n // Elevation (shadow)\n ", "\n \n // Cursor\n ", "\n \n // Transition\n ", "\n \n // Hover states\n ", "\n \n // Overflow\n ", "\n ", "\n ", "\n"
|
|
472
744
|
// Transform component that maps clean props to $-prefixed props for styled-components
|
|
473
745
|
])), function (props) {
|
|
474
746
|
return props.$display && styled.css(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
|
|
475
747
|
}, function (props) {
|
|
476
748
|
return props.$flexDirection && styled.css(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
|
|
477
749
|
}, function (props) {
|
|
478
|
-
return props.$justifyContent && styled.css(templateObject_3$
|
|
750
|
+
return props.$justifyContent && styled.css(templateObject_3$t || (templateObject_3$t = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
|
|
479
751
|
}, function (props) {
|
|
480
752
|
return props.$alignItems && styled.css(templateObject_4$m || (templateObject_4$m = __makeTemplateObject(["align-items: ", ";"], ["align-items: ", ";"])), props.$alignItems);
|
|
481
753
|
}, function (props) {
|
|
482
|
-
return props.$flexWrap && styled.css(templateObject_5$
|
|
754
|
+
return props.$flexWrap && styled.css(templateObject_5$i || (templateObject_5$i = __makeTemplateObject(["flex-wrap: ", ";"], ["flex-wrap: ", ";"])), props.$flexWrap);
|
|
483
755
|
}, function (props) {
|
|
484
|
-
return props.$gap && styled.css(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])),
|
|
756
|
+
return props.$gap && styled.css(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), spaceByLayoutKey[props.$gap]);
|
|
485
757
|
}, function (props) {
|
|
486
|
-
return props.$m && styled.css(templateObject_7$b || (templateObject_7$b = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])),
|
|
758
|
+
return props.$m && styled.css(templateObject_7$b || (templateObject_7$b = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), spaceByLayoutKey[props.$m]);
|
|
487
759
|
}, function (props) {
|
|
488
|
-
return props.$mt && styled.css(templateObject_8$8 || (templateObject_8$8 = __makeTemplateObject(["margin-top: ", ";"], ["margin-top: ", ";"])),
|
|
760
|
+
return props.$mt && styled.css(templateObject_8$8 || (templateObject_8$8 = __makeTemplateObject(["margin-top: ", ";"], ["margin-top: ", ";"])), spaceByLayoutKey[props.$mt]);
|
|
489
761
|
}, function (props) {
|
|
490
|
-
return props.$mr && styled.css(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["margin-right: ", ";"], ["margin-right: ", ";"])),
|
|
762
|
+
return props.$mr && styled.css(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["margin-right: ", ";"], ["margin-right: ", ";"])), spaceByLayoutKey[props.$mr]);
|
|
491
763
|
}, function (props) {
|
|
492
|
-
return props.$mb && styled.css(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject(["margin-bottom: ", ";"], ["margin-bottom: ", ";"])),
|
|
764
|
+
return props.$mb && styled.css(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject(["margin-bottom: ", ";"], ["margin-bottom: ", ";"])), spaceByLayoutKey[props.$mb]);
|
|
493
765
|
}, function (props) {
|
|
494
|
-
return props.$ml && styled.css(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["margin-left: ", ";"], ["margin-left: ", ";"])),
|
|
766
|
+
return props.$ml && styled.css(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["margin-left: ", ";"], ["margin-left: ", ";"])), spaceByLayoutKey[props.$ml]);
|
|
495
767
|
}, function (props) {
|
|
496
|
-
return props.$mx && styled.css(templateObject_12$4 || (templateObject_12$4 = __makeTemplateObject(["\n margin-left: ", ";\n margin-right: ", ";\n "], ["\n margin-left: ", ";\n margin-right: ", ";\n "])),
|
|
768
|
+
return props.$mx && styled.css(templateObject_12$4 || (templateObject_12$4 = __makeTemplateObject(["\n margin-left: ", ";\n margin-right: ", ";\n "], ["\n margin-left: ", ";\n margin-right: ", ";\n "])), spaceByLayoutKey[props.$mx], spaceByLayoutKey[props.$mx]);
|
|
497
769
|
}, function (props) {
|
|
498
|
-
return props.$my && styled.css(templateObject_13$4 || (templateObject_13$4 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n margin-top: ", ";\n margin-bottom: ", ";\n "])),
|
|
770
|
+
return props.$my && styled.css(templateObject_13$4 || (templateObject_13$4 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n margin-top: ", ";\n margin-bottom: ", ";\n "])), spaceByLayoutKey[props.$my], spaceByLayoutKey[props.$my]);
|
|
499
771
|
}, function (props) {
|
|
500
|
-
return props.$p && styled.css(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["padding: ", ";"], ["padding: ", ";"])),
|
|
772
|
+
return props.$p && styled.css(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["padding: ", ";"], ["padding: ", ";"])), spaceByLayoutKey[props.$p]);
|
|
501
773
|
}, function (props) {
|
|
502
|
-
return props.$pt && styled.css(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject(["padding-top: ", ";"], ["padding-top: ", ";"])),
|
|
774
|
+
return props.$pt && styled.css(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject(["padding-top: ", ";"], ["padding-top: ", ";"])), spaceByLayoutKey[props.$pt]);
|
|
503
775
|
}, function (props) {
|
|
504
|
-
return props.$pr && styled.css(templateObject_16$2 || (templateObject_16$2 = __makeTemplateObject(["padding-right: ", ";"], ["padding-right: ", ";"])),
|
|
776
|
+
return props.$pr && styled.css(templateObject_16$2 || (templateObject_16$2 = __makeTemplateObject(["padding-right: ", ";"], ["padding-right: ", ";"])), spaceByLayoutKey[props.$pr]);
|
|
505
777
|
}, function (props) {
|
|
506
|
-
return props.$pb && styled.css(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["padding-bottom: ", ";"], ["padding-bottom: ", ";"])),
|
|
778
|
+
return props.$pb && styled.css(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["padding-bottom: ", ";"], ["padding-bottom: ", ";"])), spaceByLayoutKey[props.$pb]);
|
|
507
779
|
}, function (props) {
|
|
508
|
-
return props.$pl && styled.css(templateObject_18$2 || (templateObject_18$2 = __makeTemplateObject(["padding-left: ", ";"], ["padding-left: ", ";"])),
|
|
780
|
+
return props.$pl && styled.css(templateObject_18$2 || (templateObject_18$2 = __makeTemplateObject(["padding-left: ", ";"], ["padding-left: ", ";"])), spaceByLayoutKey[props.$pl]);
|
|
509
781
|
}, function (props) {
|
|
510
|
-
return props.$px && styled.css(templateObject_19$1 || (templateObject_19$1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n "], ["\n padding-left: ", ";\n padding-right: ", ";\n "])),
|
|
782
|
+
return props.$px && styled.css(templateObject_19$1 || (templateObject_19$1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n "], ["\n padding-left: ", ";\n padding-right: ", ";\n "])), spaceByLayoutKey[props.$px], spaceByLayoutKey[props.$px]);
|
|
511
783
|
}, function (props) {
|
|
512
|
-
return props.$py && styled.css(templateObject_20$1 || (templateObject_20$1 = __makeTemplateObject(["\n padding-top: ", ";\n padding-bottom: ", ";\n "], ["\n padding-top: ", ";\n padding-bottom: ", ";\n "])),
|
|
784
|
+
return props.$py && styled.css(templateObject_20$1 || (templateObject_20$1 = __makeTemplateObject(["\n padding-top: ", ";\n padding-bottom: ", ";\n "], ["\n padding-top: ", ";\n padding-bottom: ", ";\n "])), spaceByLayoutKey[props.$py], spaceByLayoutKey[props.$py]);
|
|
513
785
|
}, function (props) {
|
|
514
786
|
return props.$width && styled.css(templateObject_21$1 || (templateObject_21$1 = __makeTemplateObject(["width: ", ";"], ["width: ", ";"])), props.$width);
|
|
515
787
|
}, function (props) {
|
|
@@ -533,35 +805,35 @@ var StyledBox = styled__default.default.div.withConfig({
|
|
|
533
805
|
}, function (props) {
|
|
534
806
|
return props.$left && styled.css(templateObject_31$1 || (templateObject_31$1 = __makeTemplateObject(["left: ", ";"], ["left: ", ";"])), props.$left);
|
|
535
807
|
}, function (props) {
|
|
536
|
-
return props.$borderRadius && styled.css(templateObject_32$1 || (templateObject_32$1 = __makeTemplateObject(["border-radius: ", ";"], ["border-radius: ", ";"])),
|
|
808
|
+
return props.$borderRadius && styled.css(templateObject_32$1 || (templateObject_32$1 = __makeTemplateObject(["border-radius: ", ";"], ["border-radius: ", ";"])), radiusByKey[props.$borderRadius]);
|
|
537
809
|
}, function (props) {
|
|
538
|
-
return props.$border && styled.css(templateObject_33$1 || (templateObject_33$1 = __makeTemplateObject(["border: ", " solid ", ";"], ["border: ", " solid ", ";"])),
|
|
810
|
+
return props.$border && styled.css(templateObject_33$1 || (templateObject_33$1 = __makeTemplateObject(["border: ", " solid ", ";"], ["border: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$border]);
|
|
539
811
|
}, function (props) {
|
|
540
|
-
return props.$borderTop && styled.css(templateObject_34$1 || (templateObject_34$1 = __makeTemplateObject(["border-top: ", " solid ", ";"], ["border-top: ", " solid ", ";"])),
|
|
812
|
+
return props.$borderTop && styled.css(templateObject_34$1 || (templateObject_34$1 = __makeTemplateObject(["border-top: ", " solid ", ";"], ["border-top: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderTop]);
|
|
541
813
|
}, function (props) {
|
|
542
|
-
return props.$borderRight && styled.css(templateObject_35$1 || (templateObject_35$1 = __makeTemplateObject(["border-right: ", " solid ", ";"], ["border-right: ", " solid ", ";"])),
|
|
814
|
+
return props.$borderRight && styled.css(templateObject_35$1 || (templateObject_35$1 = __makeTemplateObject(["border-right: ", " solid ", ";"], ["border-right: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderRight]);
|
|
543
815
|
}, function (props) {
|
|
544
|
-
return props.$borderBottom && styled.css(templateObject_36 || (templateObject_36 = __makeTemplateObject(["border-bottom: ", " solid ", ";"], ["border-bottom: ", " solid ", ";"])),
|
|
816
|
+
return props.$borderBottom && styled.css(templateObject_36 || (templateObject_36 = __makeTemplateObject(["border-bottom: ", " solid ", ";"], ["border-bottom: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderBottom]);
|
|
545
817
|
}, function (props) {
|
|
546
|
-
return props.$borderLeft && styled.css(templateObject_37 || (templateObject_37 = __makeTemplateObject(["border-left: ", " solid ", ";"], ["border-left: ", " solid ", ";"])),
|
|
818
|
+
return props.$borderLeft && styled.css(templateObject_37 || (templateObject_37 = __makeTemplateObject(["border-left: ", " solid ", ";"], ["border-left: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderLeft]);
|
|
547
819
|
}, function (props) {
|
|
548
|
-
return props.$bg && styled.css(templateObject_38 || (templateObject_38 = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])),
|
|
820
|
+
return props.$bg && styled.css(templateObject_38 || (templateObject_38 = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundByKey[props.$bg]);
|
|
549
821
|
}, function (props) {
|
|
550
|
-
return props.$color && styled.css(templateObject_39 || (templateObject_39 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])),
|
|
822
|
+
return props.$color && styled.css(templateObject_39 || (templateObject_39 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])), textColorByKey[props.$color]);
|
|
551
823
|
}, function (props) {
|
|
552
|
-
return props.$shadow && styled.css(templateObject_40 || (templateObject_40 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])),
|
|
824
|
+
return props.$shadow && styled.css(templateObject_40 || (templateObject_40 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), tokens.semantic.elevation[props.$shadow]);
|
|
553
825
|
}, function (props) {
|
|
554
826
|
return props.$cursor && styled.css(templateObject_41 || (templateObject_41 = __makeTemplateObject(["cursor: ", ";"], ["cursor: ", ";"])), props.$cursor);
|
|
555
827
|
}, function (props) {
|
|
556
828
|
return props.$transition && styled.css(templateObject_42 || (templateObject_42 = __makeTemplateObject(["transition: ", ";"], ["transition: ", ";"])), props.$transition);
|
|
557
829
|
}, function (props) {
|
|
558
|
-
return (props.$hoverShadow || props.$hoverTransform) && styled.css(
|
|
830
|
+
return (props.$hoverShadow || props.$hoverTransform) && styled.css(templateObject_47 || (templateObject_47 = __makeTemplateObject(["\n &:hover {\n ", "\n ", "\n }\n \n /* Pressed settles back: the shadow drops to raised and any lift returns (issue 185). Pressing a\n control inside the card (an action button) presses that control, not the card. */\n &:active {\n transform: translateY(0);\n }\n\n ", "\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n\n /* Reduced motion keeps the state change and drops the movement (decision 0015) */\n ", "\n "], ["\n &:hover {\n ", "\n ", "\n }\n \n /* Pressed settles back: the shadow drops to raised and any lift returns (issue 185). Pressing a\n control inside the card (an action button) presses that control, not the card. */\n &:active {\n transform: translateY(0);\n }\n\n ", "\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n\n /* Reduced motion keeps the state change and drops the movement (decision 0015) */\n ", "\n "])), props.$hoverShadow && styled.css(templateObject_43 || (templateObject_43 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), tokens.semantic.elevation[props.$hoverShadow]), props.$hoverTransform && styled.css(templateObject_44 || (templateObject_44 = __makeTemplateObject(["transform: ", ";"], ["transform: ", ";"])), props.$hoverTransform), props.$hoverShadow && styled.css(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n &:active:not(:has(:is(button, a, [role=\"button\"]):active)) {\n box-shadow: ", ";\n }\n "], ["\n &:active:not(:has(:is(button, a, [role=\"button\"]):active)) {\n box-shadow: ", ";\n }\n "])), tokens.semantic.elevation.raised), tokens.semantic.border.focus, tokens.semantic.border.focusOffset, props.$hoverTransform && styled.css(templateObject_46 || (templateObject_46 = __makeTemplateObject(["\n ", " {\n &:hover {\n transform: none;\n }\n }\n "], ["\n ", " {\n &:hover {\n transform: none;\n }\n }\n "])), reducedMotion));
|
|
559
831
|
}, function (props) {
|
|
560
|
-
return props.$overflow && styled.css(
|
|
832
|
+
return props.$overflow && styled.css(templateObject_48 || (templateObject_48 = __makeTemplateObject(["overflow: ", ";"], ["overflow: ", ";"])), props.$overflow);
|
|
561
833
|
}, function (props) {
|
|
562
|
-
return props.$overflowX && styled.css(
|
|
834
|
+
return props.$overflowX && styled.css(templateObject_49 || (templateObject_49 = __makeTemplateObject(["overflow-x: ", ";"], ["overflow-x: ", ";"])), props.$overflowX);
|
|
563
835
|
}, function (props) {
|
|
564
|
-
return props.$overflowY && styled.css(
|
|
836
|
+
return props.$overflowY && styled.css(templateObject_50 || (templateObject_50 = __makeTemplateObject(["overflow-y: ", ";"], ["overflow-y: ", ";"])), props.$overflowY);
|
|
565
837
|
});
|
|
566
838
|
// Transform component that maps clean props to $-prefixed props for styled-components
|
|
567
839
|
var BoxTransform = function BoxTransform(props) {
|
|
@@ -695,7 +967,7 @@ var BoxTransform = function BoxTransform(props) {
|
|
|
695
967
|
}));
|
|
696
968
|
};
|
|
697
969
|
var Box = BoxTransform;
|
|
698
|
-
var templateObject_1$I, templateObject_2$v, templateObject_3$
|
|
970
|
+
var templateObject_1$I, templateObject_2$v, templateObject_3$t, templateObject_4$m, templateObject_5$i, templateObject_6$d, templateObject_7$b, templateObject_8$8, templateObject_9$6, templateObject_10$4, templateObject_11$4, templateObject_12$4, templateObject_13$4, templateObject_14$2, templateObject_15$2, templateObject_16$2, templateObject_17$2, templateObject_18$2, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24$1, templateObject_25$1, templateObject_26$1, templateObject_27$1, templateObject_28$1, templateObject_29$1, templateObject_30$1, templateObject_31$1, templateObject_32$1, templateObject_33$1, templateObject_34$1, templateObject_35$1, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50, templateObject_51;
|
|
699
971
|
|
|
700
972
|
var IconStyled = styled__default.default.span.withConfig({
|
|
701
973
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -705,35 +977,35 @@ var IconStyled = styled__default.default.span.withConfig({
|
|
|
705
977
|
componentId: "sc-1105czq-0"
|
|
706
978
|
})(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n \n svg {\n width: 100%;\n height: 100%;\n display: block;\n }\n \n /* Use semantic icon colors */\n color: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n \n svg {\n width: 100%;\n height: 100%;\n display: block;\n }\n \n /* Use semantic icon colors */\n color: ", ";\n"])), function (_a) {
|
|
707
979
|
var $size = _a.$size;
|
|
708
|
-
return
|
|
980
|
+
return tokens.semantic.size.icon[$size];
|
|
709
981
|
}, function (_a) {
|
|
710
982
|
var $size = _a.$size;
|
|
711
|
-
return
|
|
983
|
+
return tokens.semantic.size.icon[$size];
|
|
712
984
|
}, function (_a) {
|
|
713
985
|
var $iconColor = _a.$iconColor;
|
|
714
986
|
switch ($iconColor) {
|
|
715
987
|
case 'default':
|
|
716
|
-
return
|
|
988
|
+
return tokens.semantic.color.icon["default"];
|
|
717
989
|
case 'emphasis':
|
|
718
|
-
return
|
|
990
|
+
return tokens.semantic.color.icon.emphasis;
|
|
719
991
|
case 'subdued':
|
|
720
|
-
return
|
|
992
|
+
return tokens.semantic.color.icon.muted;
|
|
721
993
|
case 'disabled':
|
|
722
|
-
return
|
|
994
|
+
return tokens.semantic.color.icon.disabled;
|
|
723
995
|
case 'inverse':
|
|
724
|
-
return
|
|
996
|
+
return tokens.semantic.color.icon.inverse;
|
|
725
997
|
case 'interactive':
|
|
726
|
-
return
|
|
998
|
+
return tokens.semantic.color.icon.accent;
|
|
727
999
|
case 'error':
|
|
728
|
-
return
|
|
1000
|
+
return tokens.semantic.color.icon.danger;
|
|
729
1001
|
case 'success':
|
|
730
|
-
return
|
|
1002
|
+
return tokens.semantic.color.icon.success;
|
|
731
1003
|
case 'warning':
|
|
732
|
-
return
|
|
1004
|
+
return tokens.semantic.color.icon.warning;
|
|
733
1005
|
case 'inherit':
|
|
734
1006
|
return 'currentColor';
|
|
735
1007
|
default:
|
|
736
|
-
return
|
|
1008
|
+
return tokens.semantic.color.icon["default"];
|
|
737
1009
|
}
|
|
738
1010
|
});
|
|
739
1011
|
var Icon = function Icon(_a) {
|
|
@@ -782,12 +1054,15 @@ var Icon = function Icon(_a) {
|
|
|
782
1054
|
};
|
|
783
1055
|
var templateObject_1$H;
|
|
784
1056
|
|
|
785
|
-
var button$1 =
|
|
786
|
-
semantic$
|
|
787
|
-
//
|
|
788
|
-
|
|
1057
|
+
var button$1 = tokens.component.button,
|
|
1058
|
+
semantic$i = tokens.semantic;
|
|
1059
|
+
// Height comes from size.control as a minimum and the content is centred, so there is no
|
|
1060
|
+
// vertical padding (decision 0034). Horizontal padding comes from the semantic spacing scale:
|
|
1061
|
+
// no component spacing tokens (decision 0022)
|
|
1062
|
+
var inset = semantic$i.space.inset;
|
|
1063
|
+
var control$1 = semantic$i.size.control;
|
|
789
1064
|
// Base styles shared between button and link
|
|
790
|
-
var baseButtonStyles = "\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ".concat(
|
|
1065
|
+
var baseButtonStyles = "\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ".concat(tokens.semantic.space[100], ";\n height: max-content;\n cursor: pointer;\n border: none;\n text-decoration: none;\n transition: ").concat(semantic$i.motion.transition.feedback, ";\n white-space: nowrap;\n user-select: none;\n \n &:focus {\n outline: ").concat(button$1.focus.outline, ";\n outline-offset: ").concat(semantic$i.border.focusOffset, ";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ").concat(forcedColorsEdge, "\n");
|
|
791
1066
|
// Dynamic variant styles using component tokens
|
|
792
1067
|
var getVariantStyles$1 = function getVariantStyles(_a) {
|
|
793
1068
|
var $variant = _a.$variant;
|
|
@@ -845,18 +1120,17 @@ var getVariantStyles$1 = function getVariantStyles(_a) {
|
|
|
845
1120
|
var config = variantConfig[$variant];
|
|
846
1121
|
return "\n background-color: ".concat(config.bg, ";\n color: ").concat(config.text, ";\n \n &:hover:not(:disabled) {\n background-color: ").concat(config.hoverBg, ";\n }\n\n &:active:not(:disabled) {\n background-color: ").concat(config.activeBg, ";\n }\n\n &:disabled {\n background-color: ").concat(config.disabledBg, ";\n color: ").concat(config.disabledText, ";\n }\n ");
|
|
847
1122
|
};
|
|
848
|
-
// Dynamic size styles
|
|
849
|
-
var getSizeStyles
|
|
1123
|
+
// Dynamic size styles: font from component tokens, height from size.control (decision 0034)
|
|
1124
|
+
var getSizeStyles = function getSizeStyles(_a) {
|
|
850
1125
|
var $size = _a.$size;
|
|
851
1126
|
switch ($size) {
|
|
852
1127
|
case 'small':
|
|
853
|
-
return "\n font: ".concat(button$1.sizes.small.font, ";\n
|
|
1128
|
+
return "\n font: ".concat(button$1.sizes.small.font, ";\n min-height: ").concat(control$1.sm, ";\n padding: 0 ").concat(inset.md, ";\n ");
|
|
854
1129
|
case 'medium':
|
|
855
|
-
return "\n font: ".concat(button$1.sizes.medium.font, ";\n
|
|
1130
|
+
return "\n font: ".concat(button$1.sizes.medium.font, ";\n min-height: ").concat(control$1.md, ";\n padding: 0 ").concat(inset.lg, ";\n ");
|
|
856
1131
|
case 'large':
|
|
857
|
-
return "\n font: ".concat(button$1.sizes.large.font, ";\n padding: ").concat(spacing$a.md, " ").concat(spacing$a.lg, ";\n ");
|
|
858
1132
|
default:
|
|
859
|
-
return "\n font: ".concat(button$1.sizes.large.font, ";\n
|
|
1133
|
+
return "\n font: ".concat(button$1.sizes.large.font, ";\n min-height: ").concat(control$1.lg, ";\n padding: 0 ").concat(inset.lg, ";\n ");
|
|
860
1134
|
}
|
|
861
1135
|
};
|
|
862
1136
|
var StyledButton = styled__default.default.button.withConfig({
|
|
@@ -865,7 +1139,7 @@ var StyledButton = styled__default.default.button.withConfig({
|
|
|
865
1139
|
},
|
|
866
1140
|
displayName: "Button__StyledButton",
|
|
867
1141
|
componentId: "sc-1eiuum9-0"
|
|
868
|
-
})(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"])), baseButtonStyles, button$1.primary.borderRadius, getVariantStyles$1, getSizeStyles
|
|
1142
|
+
})(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"])), baseButtonStyles, button$1.primary.borderRadius, getVariantStyles$1, getSizeStyles);
|
|
869
1143
|
var StyledLink = styled__default.default.a.withConfig({
|
|
870
1144
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
871
1145
|
return !prop.startsWith('$');
|
|
@@ -874,7 +1148,7 @@ var StyledLink = styled__default.default.a.withConfig({
|
|
|
874
1148
|
componentId: "sc-1eiuum9-1"
|
|
875
1149
|
})(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"
|
|
876
1150
|
// Helper function to get icon size based on button size
|
|
877
|
-
])), baseButtonStyles, button$1.primary.borderRadius, getVariantStyles$1, getSizeStyles
|
|
1151
|
+
])), baseButtonStyles, button$1.primary.borderRadius, getVariantStyles$1, getSizeStyles);
|
|
878
1152
|
// Helper function to get icon size based on button size
|
|
879
1153
|
var getIconSize = function getIconSize(buttonSize) {
|
|
880
1154
|
switch (buttonSize) {
|
|
@@ -977,15 +1251,13 @@ var Button = function Button(_a) {
|
|
|
977
1251
|
};
|
|
978
1252
|
var templateObject_1$G, templateObject_2$u;
|
|
979
1253
|
|
|
980
|
-
var semantic$
|
|
981
|
-
var color$
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
var
|
|
985
|
-
var
|
|
986
|
-
var
|
|
987
|
-
var layout$4 = spacing$9.layout;
|
|
988
|
-
var labelHeight$1 = semantic$g.size.label;
|
|
1254
|
+
var semantic$h = tokens.semantic;
|
|
1255
|
+
var color$7 = semantic$h.color;
|
|
1256
|
+
var label$2 = tokens.component.badge.label;
|
|
1257
|
+
var category = color$7.category;
|
|
1258
|
+
var radius$3 = semantic$h.radius;
|
|
1259
|
+
var space$d = semantic$h.space;
|
|
1260
|
+
var labelHeight$1 = semantic$h.size.label;
|
|
989
1261
|
// Text on white or the -subtle fill (outlined and minimal), at least 4.5:1 (#115)
|
|
990
1262
|
var categoryText = {
|
|
991
1263
|
blue: category['blue-text'],
|
|
@@ -1006,31 +1278,31 @@ var StyledCategoryLabel = styled__default.default.span.withConfig({
|
|
|
1006
1278
|
})(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n box-sizing: border-box; /* the height includes padding and border, without relying on a global reset */\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n white-space: nowrap;\n user-select: none;\n border-style: solid;\n border-width: ", ";\n \n /* Size styles */\n height: ", ";\n padding: ", ";\n font: ", ";\n /* After the font shorthand, which would otherwise reset it */\n font-weight: ", ";\n gap: ", ";\n \n /* Variant + Color styles */\n background-color: ", ";\n \n /* Outlined and minimal text uses the AA text token, not the base colour (issue 115) */\n color: ", ";\n \n border-color: ", ";\n"], ["\n box-sizing: border-box; /* the height includes padding and border, without relying on a global reset */\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n white-space: nowrap;\n user-select: none;\n border-style: solid;\n border-width: ", ";\n \n /* Size styles */\n height: ", ";\n padding: ", ";\n font: ", ";\n /* After the font shorthand, which would otherwise reset it */\n font-weight: ", ";\n gap: ", ";\n \n /* Variant + Color styles */\n background-color: ", ";\n \n /* Outlined and minimal text uses the AA text token, not the base colour (issue 115) */\n color: ", ";\n \n border-color: ", ";\n"
|
|
1007
1279
|
// The visible content, hidden from assistive technology when an aria-label replaces it.
|
|
1008
1280
|
// display: contents keeps the root's flex layout and gap.
|
|
1009
|
-
])), radius$3.
|
|
1281
|
+
])), radius$3.full, semantic$h.border.width.thin, function (_a) {
|
|
1010
1282
|
var $size = _a.$size;
|
|
1011
1283
|
return labelHeight$1[$size];
|
|
1012
1284
|
}, function (_a) {
|
|
1013
1285
|
var $size = _a.$size;
|
|
1014
|
-
return $size === 'medium' ? "".concat(
|
|
1286
|
+
return $size === 'medium' ? "".concat(space$d[100], " ").concat(space$d[200]) : "".concat(space$d[200], " ").concat(space$d[300]);
|
|
1015
1287
|
}, function (_a) {
|
|
1016
1288
|
var $size = _a.$size;
|
|
1017
1289
|
return $size === 'medium' ? label$2.typography.small : label$2.typography.medium;
|
|
1018
|
-
}, label$2.fontWeight,
|
|
1290
|
+
}, label$2.fontWeight, space$d[100], function (_a) {
|
|
1019
1291
|
var $color = _a.$color,
|
|
1020
1292
|
$variant = _a.$variant;
|
|
1021
1293
|
if ($variant === 'filled') {
|
|
1022
|
-
return category["".concat($color, "-
|
|
1294
|
+
return category["".concat($color, "-strong")];
|
|
1023
1295
|
}
|
|
1024
1296
|
if ($variant === 'outlined') {
|
|
1025
1297
|
return 'transparent';
|
|
1026
1298
|
}
|
|
1027
1299
|
// minimal
|
|
1028
|
-
return category["".concat($color, "-
|
|
1300
|
+
return category["".concat($color, "-muted")];
|
|
1029
1301
|
}, function (_a) {
|
|
1030
1302
|
var $color = _a.$color,
|
|
1031
1303
|
$variant = _a.$variant;
|
|
1032
1304
|
if ($variant === 'filled') {
|
|
1033
|
-
return color$
|
|
1305
|
+
return color$7.text.inverse;
|
|
1034
1306
|
}
|
|
1035
1307
|
return categoryText[$color];
|
|
1036
1308
|
}, function (_a) {
|
|
@@ -1050,7 +1322,7 @@ var VisibleContent$1 = styled__default.default.span.withConfig({
|
|
|
1050
1322
|
var HiddenLabel = styled__default.default.span.withConfig({
|
|
1051
1323
|
displayName: "CategoryLabel__HiddenLabel",
|
|
1052
1324
|
componentId: "sc-1jx7bjo-2"
|
|
1053
|
-
})(templateObject_3$
|
|
1325
|
+
})(templateObject_3$s || (templateObject_3$s = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"
|
|
1054
1326
|
/**
|
|
1055
1327
|
* CategoryLabel colour-codes an item's category, such as a transaction's (decision 0018).
|
|
1056
1328
|
*
|
|
@@ -1117,7 +1389,7 @@ var CategoryLabel = function CategoryLabel(_a) {
|
|
|
1117
1389
|
});
|
|
1118
1390
|
};
|
|
1119
1391
|
CategoryLabel.displayName = 'CategoryLabel';
|
|
1120
|
-
var templateObject_1$F, templateObject_2$t, templateObject_3$
|
|
1392
|
+
var templateObject_1$F, templateObject_2$t, templateObject_3$s;
|
|
1121
1393
|
|
|
1122
1394
|
// CategoryBadge sizes on the decision 0018 scale
|
|
1123
1395
|
var toLabelSize = {
|
|
@@ -1141,7 +1413,8 @@ var CategoryBadge = function CategoryBadge(_a) {
|
|
|
1141
1413
|
};
|
|
1142
1414
|
CategoryBadge.displayName = 'CategoryBadge';
|
|
1143
1415
|
|
|
1144
|
-
var chip$1 =
|
|
1416
|
+
var chip$1 = tokens.component.chip,
|
|
1417
|
+
semantic$g = tokens.semantic;
|
|
1145
1418
|
// Helper function to get variant styles matching Button's approach
|
|
1146
1419
|
var getVariantStyles = function getVariantStyles(_a) {
|
|
1147
1420
|
var $variant = _a.$variant,
|
|
@@ -1157,11 +1430,11 @@ var getVariantStyles = function getVariantStyles(_a) {
|
|
|
1157
1430
|
var disabled = chip$1.variants.subtle.disabled;
|
|
1158
1431
|
return "\n background-color: ".concat(disabled.backgroundColor, ";\n color: ").concat(disabled.textColor, ";\n ");
|
|
1159
1432
|
}
|
|
1160
|
-
var _b =
|
|
1161
|
-
|
|
1433
|
+
var _b = tokens.semantic.color,
|
|
1434
|
+
fill = _b.fill,
|
|
1162
1435
|
text = _b.text;
|
|
1163
1436
|
var interactiveStates = $clickable;
|
|
1164
|
-
return "\n background-color: ".concat(
|
|
1437
|
+
return "\n background-color: ".concat(fill['accent-muted'], ";\n color: ").concat(text.accent, ";\n \n &:hover {\n background-color: ").concat(interactiveStates ? fill['accent-muted-hover'] : fill['accent-muted'], ";\n color: ").concat(interactiveStates ? text['accent-hover'] : text.accent, ";\n }\n \n &:active {\n background-color: ").concat(interactiveStates ? fill['accent-muted-pressed'] : fill['accent-muted'], ";\n color: ").concat(interactiveStates ? text['accent-pressed'] : text.accent, ";\n }\n\n /* Forced colours drop the fill, so a selected chip takes the system selection colours\n (decision 0038); its checkmark follows the text colour */\n ").concat(forcedColors, " {\n forced-color-adjust: none;\n background-color: Highlight;\n border-color: Highlight;\n color: HighlightText;\n }\n ");
|
|
1165
1438
|
}
|
|
1166
1439
|
switch ($variant) {
|
|
1167
1440
|
case 'emphasis':
|
|
@@ -1175,20 +1448,13 @@ var getVariantStyles = function getVariantStyles(_a) {
|
|
|
1175
1448
|
return "\n background-color: ".concat(chip$1["default"].backgroundColor, ";\n color: ").concat(chip$1["default"].textColor, ";\n \n &:hover {\n background-color: ").concat($disabled ? chip$1.disabled.backgroundColor : $clickable ? chip$1.hover.backgroundColor : chip$1["default"].backgroundColor, ";\n }\n \n &:active {\n background-color: ").concat($disabled ? chip$1.disabled.backgroundColor : $clickable ? chip$1.active.backgroundColor : chip$1["default"].backgroundColor, ";\n }\n \n ").concat($disabled ? "\n background-color: ".concat(chip$1.disabled.backgroundColor, ";\n color: ").concat(chip$1.disabled.textColor, ";\n ") : '', "\n ");
|
|
1176
1449
|
}
|
|
1177
1450
|
};
|
|
1178
|
-
//
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
case 'small':
|
|
1183
|
-
return "\n font: ".concat(chip$1.sizes.small.font, ";\n // Off-grid 2px: keeps the deprecated token until #129 (decision 0022)\n padding: ").concat(chip$1.sizes.small.padding, ";\n ");
|
|
1184
|
-
case 'medium':
|
|
1185
|
-
default:
|
|
1186
|
-
return "\n font: ".concat(chip$1.sizes.medium.font, ";\n padding: ").concat(chip$1.sizes.medium.padding, ";\n ");
|
|
1187
|
-
}
|
|
1188
|
-
};
|
|
1451
|
+
// Chips have one size: 24px from the label scale as a minimum, with the content centred
|
|
1452
|
+
// and no vertical padding (decisions 0034 and 0035). Horizontal padding comes from the
|
|
1453
|
+
// semantic spacing scale (decision 0022).
|
|
1454
|
+
var sizeStyles = "\n font: ".concat(chip$1.sizes.medium.font, ";\n min-height: ").concat(semantic$g.size.label.medium, ";\n padding: 0 ").concat(semantic$g.space.inset.sm, ";\n");
|
|
1189
1455
|
|
|
1190
|
-
var chip =
|
|
1191
|
-
semantic$f =
|
|
1456
|
+
var chip = tokens.component.chip,
|
|
1457
|
+
semantic$f = tokens.semantic;
|
|
1192
1458
|
// Base styled component using direct prop interpolation like Button
|
|
1193
1459
|
var StyledChip = styled__default.default.span.withConfig({
|
|
1194
1460
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -1196,18 +1462,20 @@ var StyledChip = styled__default.default.span.withConfig({
|
|
|
1196
1462
|
},
|
|
1197
1463
|
displayName: "ChipBase__StyledChip",
|
|
1198
1464
|
componentId: "sc-moa6zc-0"
|
|
1199
|
-
})(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: ", ";\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: ", ";\n cursor: ", ";\n \n ", "\n ", "\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: ", ";\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: ", ";\n cursor: ", ";\n \n ", "\n ", "\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"
|
|
1465
|
+
})(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: ", ";\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: ", ";\n cursor: ", ";\n \n /* Forced colours: an edge, and GrayText when disabled, since a span gets no system disabled\n colour (decision 0038). Before the variant styles, so a selected chip's Highlight border wins. */\n ", "\n ", "\n\n ", "\n ", "\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: ", ";\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: ", ";\n cursor: ", ";\n \n /* Forced colours: an edge, and GrayText when disabled, since a span gets no system disabled\n colour (decision 0038). Before the variant styles, so a selected chip's Highlight border wins. */\n ", "\n ", "\n\n ", "\n ", "\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n\n"
|
|
1200
1466
|
// Icon container for selected indicator or leading icons
|
|
1201
|
-
])), chip["default"].borderRadius, semantic$f.motion.
|
|
1467
|
+
])), chip["default"].borderRadius, semantic$f.motion.transition.feedback, function (props) {
|
|
1202
1468
|
return props.$disabled ? 'not-allowed' : props.$clickable ? 'pointer' : 'default';
|
|
1203
|
-
},
|
|
1469
|
+
}, forcedColorsEdge, function (props) {
|
|
1470
|
+
return props.$disabled ? "".concat(forcedColors, " { color: GrayText; }") : '';
|
|
1471
|
+
}, getVariantStyles, sizeStyles, chip.focus.outline, semantic$f.border.focusOffset);
|
|
1204
1472
|
// Icon container for selected indicator or leading icons
|
|
1205
1473
|
var IconContainer = styled__default.default.span.withConfig({
|
|
1206
1474
|
displayName: "ChipBase__IconContainer",
|
|
1207
1475
|
componentId: "sc-moa6zc-1"
|
|
1208
1476
|
})(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n margin-right: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n margin-right: ", ";\n"
|
|
1209
1477
|
// Close button for dismissible chips
|
|
1210
|
-
])),
|
|
1478
|
+
])), tokens.semantic.space[100]);
|
|
1211
1479
|
// Close button for dismissible chips
|
|
1212
1480
|
var CloseButton = styled__default.default.button.withConfig({
|
|
1213
1481
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -1215,10 +1483,10 @@ var CloseButton = styled__default.default.button.withConfig({
|
|
|
1215
1483
|
},
|
|
1216
1484
|
displayName: "ChipBase__CloseButton",
|
|
1217
1485
|
componentId: "sc-moa6zc-2"
|
|
1218
|
-
})(templateObject_3$
|
|
1486
|
+
})(templateObject_3$r || (templateObject_3$r = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n position: relative;\n width: ", ";\n height: ", ";\n padding: ", ";\n\n /* The pointer target is at least 24 \xD7 24px (WCAG 2.5.8, decision 0039): an invisible hit area\n as tall as the chip, centred on the 20px button. It stays inside the chip and its padding, so\n it can't overlap another target. */\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: ", ";\n height: ", ";\n transform: translate(-50%, -50%);\n }\n border-radius: ", ";\n cursor: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n background-color: ", ";\n }\n \n &:active:not(:disabled) {\n background-color: ", ";\n }\n \n &:disabled {\n color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n border-radius: ", ";\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n position: relative;\n width: ", ";\n height: ", ";\n padding: ", ";\n\n /* The pointer target is at least 24 \xD7 24px (WCAG 2.5.8, decision 0039): an invisible hit area\n as tall as the chip, centred on the 20px button. It stays inside the chip and its padding, so\n it can't overlap another target. */\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: ", ";\n height: ", ";\n transform: translate(-50%, -50%);\n }\n border-radius: ", ";\n cursor: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n background-color: ", ";\n }\n \n &:active:not(:disabled) {\n background-color: ", ";\n }\n \n &:disabled {\n color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n border-radius: ", ";\n }\n"])), tokens.semantic.space[200], chip.closeButton.size, chip.closeButton.size, tokens.semantic.space[0], semantic$f.size.label.medium, semantic$f.size.label.medium, tokens.semantic.radius.xs, function (props) {
|
|
1219
1487
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
1220
|
-
}, semantic$f.motion.
|
|
1221
|
-
var templateObject_1$E, templateObject_2$s, templateObject_3$
|
|
1488
|
+
}, semantic$f.motion.transition.feedback, tokens.semantic.color.fill['none-hover'], tokens.semantic.color.fill['none-pressed'], tokens.semantic.color.text.disabled, chip.focus.outline, semantic$f.border.focusOffset, chip["default"].borderRadius);
|
|
1489
|
+
var templateObject_1$E, templateObject_2$s, templateObject_3$r;
|
|
1222
1490
|
|
|
1223
1491
|
/**
|
|
1224
1492
|
* Chip - a static, non-interactive label for tags, categories and metadata.
|
|
@@ -1234,12 +1502,12 @@ var templateObject_1$E, templateObject_2$s, templateObject_3$q;
|
|
|
1234
1502
|
var Chip = function Chip(_a) {
|
|
1235
1503
|
var children = _a.children,
|
|
1236
1504
|
_b = _a.variant,
|
|
1237
|
-
variant = _b === void 0 ? 'default' : _b
|
|
1238
|
-
|
|
1239
|
-
size
|
|
1240
|
-
onClick = _a.onClick,
|
|
1241
|
-
|
|
1242
|
-
disabled =
|
|
1505
|
+
variant = _b === void 0 ? 'default' : _b;
|
|
1506
|
+
// Deprecated and ignored: chips have one size (decision 0035)
|
|
1507
|
+
_a.size;
|
|
1508
|
+
var onClick = _a.onClick,
|
|
1509
|
+
_c = _a.disabled,
|
|
1510
|
+
disabled = _c === void 0 ? false : _c,
|
|
1243
1511
|
dataTestId = _a["data-testid"],
|
|
1244
1512
|
ariaLabel = _a["aria-label"],
|
|
1245
1513
|
ariaDescribedBy = _a["aria-describedby"],
|
|
@@ -1264,7 +1532,6 @@ var Chip = function Chip(_a) {
|
|
|
1264
1532
|
};
|
|
1265
1533
|
return jsxRuntime.jsx(StyledChip, __assign({
|
|
1266
1534
|
"$variant": normalizedVariant,
|
|
1267
|
-
"$size": size,
|
|
1268
1535
|
"$disabled": disabled || undefined,
|
|
1269
1536
|
"$clickable": isClickable || undefined,
|
|
1270
1537
|
onClick: isClickable ? handleClick : undefined,
|
|
@@ -1310,11 +1577,11 @@ var InputChip = function InputChip(_a) {
|
|
|
1310
1577
|
var children = _a.children,
|
|
1311
1578
|
_b = _a.selected,
|
|
1312
1579
|
selected = _b === void 0 ? false : _b,
|
|
1313
|
-
onDismiss = _a.onDismiss
|
|
1314
|
-
|
|
1315
|
-
size
|
|
1316
|
-
|
|
1317
|
-
disabled =
|
|
1580
|
+
onDismiss = _a.onDismiss;
|
|
1581
|
+
// Deprecated and ignored: chips have one size (decision 0035)
|
|
1582
|
+
_a.size;
|
|
1583
|
+
var _c = _a.disabled,
|
|
1584
|
+
disabled = _c === void 0 ? false : _c,
|
|
1318
1585
|
dataTestId = _a["data-testid"],
|
|
1319
1586
|
ariaLabel = _a["aria-label"],
|
|
1320
1587
|
ariaDescribedBy = _a["aria-describedby"],
|
|
@@ -1344,7 +1611,6 @@ var InputChip = function InputChip(_a) {
|
|
|
1344
1611
|
var closeButtonLabel = typeof children === 'string' ? "Remove ".concat(children) : 'Remove filter';
|
|
1345
1612
|
return jsxRuntime.jsxs(StyledChip, __assign({
|
|
1346
1613
|
"$variant": "subtle",
|
|
1347
|
-
"$size": size,
|
|
1348
1614
|
"$disabled": disabled || undefined,
|
|
1349
1615
|
"$clickable": false,
|
|
1350
1616
|
"$selected": selected,
|
|
@@ -1410,11 +1676,11 @@ var FilterChip = InputChip;
|
|
|
1410
1676
|
var BooleanChip = function BooleanChip(_a) {
|
|
1411
1677
|
var children = _a.children,
|
|
1412
1678
|
selected = _a.selected,
|
|
1413
|
-
onClick = _a.onClick
|
|
1414
|
-
|
|
1415
|
-
size
|
|
1416
|
-
|
|
1417
|
-
disabled =
|
|
1679
|
+
onClick = _a.onClick;
|
|
1680
|
+
// Deprecated and ignored: chips have one size (decision 0035)
|
|
1681
|
+
_a.size;
|
|
1682
|
+
var _b = _a.disabled,
|
|
1683
|
+
disabled = _b === void 0 ? false : _b,
|
|
1418
1684
|
dataTestId = _a["data-testid"],
|
|
1419
1685
|
ariaLabel = _a["aria-label"],
|
|
1420
1686
|
ariaDescribedBy = _a["aria-describedby"],
|
|
@@ -1433,7 +1699,6 @@ var BooleanChip = function BooleanChip(_a) {
|
|
|
1433
1699
|
};
|
|
1434
1700
|
return jsxRuntime.jsxs(StyledChip, __assign({
|
|
1435
1701
|
"$variant": "subtle",
|
|
1436
|
-
"$size": size,
|
|
1437
1702
|
"$disabled": disabled || undefined,
|
|
1438
1703
|
"$clickable": !disabled,
|
|
1439
1704
|
"$selected": selected,
|
|
@@ -1458,11 +1723,11 @@ var BooleanChip = function BooleanChip(_a) {
|
|
|
1458
1723
|
}));
|
|
1459
1724
|
};
|
|
1460
1725
|
|
|
1461
|
-
var
|
|
1726
|
+
var space$c = tokens.semantic.space;
|
|
1462
1727
|
var StyledContainer$2 = styled__default.default.div.withConfig({
|
|
1463
1728
|
displayName: "Container__StyledContainer",
|
|
1464
1729
|
componentId: "sc-17dbj6n-0"
|
|
1465
|
-
})(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n width: 100%;\n margin-left: auto;\n margin-right: auto;\n padding-left: ", ";\n padding-right: ", ";\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n"], ["\n width: 100%;\n margin-left: auto;\n margin-right: auto;\n padding-left: ", ";\n padding-right: ", ";\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n"])),
|
|
1730
|
+
})(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n width: 100%;\n margin-left: auto;\n margin-right: auto;\n padding-left: ", ";\n padding-right: ", ";\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n"], ["\n width: 100%;\n margin-left: auto;\n margin-right: auto;\n padding-left: ", ";\n padding-right: ", ";\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n"])), space$c[600], space$c[600], media$1.sm, breakpoints$1.sm, media$1.md, breakpoints$1.md, media$1.lg, breakpoints$1.lg, media$1.xl, breakpoints$1.xl, media$1['2xl'], breakpoints$1['2xl']);
|
|
1466
1731
|
var Container$1 = function Container(_a) {
|
|
1467
1732
|
var children = _a.children,
|
|
1468
1733
|
props = __rest(_a, ["children"]);
|
|
@@ -1475,19 +1740,27 @@ var templateObject_1$D;
|
|
|
1475
1740
|
var PictureWrapper = styled__default.default.div.withConfig({
|
|
1476
1741
|
displayName: "Picture__PictureWrapper",
|
|
1477
1742
|
componentId: "sc-11d9tei-0"
|
|
1478
|
-
})(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n margin: 0 auto;\n \n ", " {\n margin-left: 0;\n margin-right: 0;\n }\n"], ["\n margin: 0 auto;\n \n ", " {\n margin-left: 0;\n margin-right: 0;\n }\n"
|
|
1743
|
+
})(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n margin: 0 auto;\n \n ", " {\n margin-left: 0;\n margin-right: 0;\n }\n"], ["\n margin: 0 auto;\n \n ", " {\n margin-left: 0;\n margin-right: 0;\n }\n"
|
|
1744
|
+
// A clickable image answers input on the image itself (decision 0029, #185): it fades on hover and
|
|
1745
|
+
// one step further while pressed, and draws the system focus ring around the image, following its
|
|
1746
|
+
// rounded corners. Fading isn't movement, so it stays under reduced motion.
|
|
1747
|
+
])), media$1.sm);
|
|
1748
|
+
// A clickable image answers input on the image itself (decision 0029, #185): it fades on hover and
|
|
1749
|
+
// one step further while pressed, and draws the system focus ring around the image, following its
|
|
1750
|
+
// rounded corners. Fading isn't movement, so it stays under reduced motion.
|
|
1751
|
+
var clickableImage = styled.css(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n display: block;\n cursor: pointer;\n\n img {\n transition: ", ";\n }\n\n &:hover img {\n opacity: ", ";\n }\n\n &:active img {\n opacity: ", ";\n }\n\n &:focus-visible {\n outline: none;\n }\n\n &:focus-visible img {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: block;\n cursor: pointer;\n\n img {\n transition: ", ";\n }\n\n &:hover img {\n opacity: ", ";\n }\n\n &:active img {\n opacity: ", ";\n }\n\n &:focus-visible {\n outline: none;\n }\n\n &:focus-visible img {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), tokens.semantic.motion.transition.press, tokens.semantic.opacity.hover, tokens.semantic.opacity.pressed, tokens.semantic.border.focus, tokens.semantic.border.focusOffset);
|
|
1479
1752
|
var ImageLink = styled__default.default.a.withConfig({
|
|
1480
1753
|
displayName: "Picture__ImageLink",
|
|
1481
1754
|
componentId: "sc-11d9tei-1"
|
|
1482
|
-
})(
|
|
1755
|
+
})(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), clickableImage);
|
|
1483
1756
|
var ImageButton = styled__default.default.button.withConfig({
|
|
1484
1757
|
displayName: "Picture__ImageButton",
|
|
1485
1758
|
componentId: "sc-11d9tei-2"
|
|
1486
|
-
})(
|
|
1759
|
+
})(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["\n border: none;\n background: none;\n padding: 0;\n width: 100%;\n ", "\n"], ["\n border: none;\n background: none;\n padding: 0;\n width: 100%;\n ", "\n"])), clickableImage);
|
|
1487
1760
|
var StyledImage = styled__default.default.img.withConfig({
|
|
1488
1761
|
displayName: "Picture__StyledImage",
|
|
1489
1762
|
componentId: "sc-11d9tei-3"
|
|
1490
|
-
})(
|
|
1763
|
+
})(templateObject_5$h || (templateObject_5$h = __makeTemplateObject(["\n width: 100%;\n height: auto;\n border-radius: ", ";\n display: block;\n"], ["\n width: 100%;\n height: auto;\n border-radius: ", ";\n display: block;\n"])), tokens.semantic.radius.sm);
|
|
1491
1764
|
var Picture = function Picture(_a) {
|
|
1492
1765
|
var title = _a.title,
|
|
1493
1766
|
src = _a.src,
|
|
@@ -1517,18 +1790,18 @@ var Picture = function Picture(_a) {
|
|
|
1517
1790
|
}) : image
|
|
1518
1791
|
});
|
|
1519
1792
|
};
|
|
1520
|
-
var templateObject_1$C, templateObject_2$r, templateObject_3$
|
|
1793
|
+
var templateObject_1$C, templateObject_2$r, templateObject_3$q, templateObject_4$l, templateObject_5$h;
|
|
1521
1794
|
|
|
1522
|
-
var _a$
|
|
1523
|
-
typography$1 = _a$
|
|
1524
|
-
color$
|
|
1795
|
+
var _a$8 = tokens.semantic,
|
|
1796
|
+
typography$1 = _a$8.typography,
|
|
1797
|
+
color$6 = _a$8.color;
|
|
1525
1798
|
var TimeStyled = styled__default.default.time.withConfig({
|
|
1526
1799
|
displayName: "DateFormatter__TimeStyled",
|
|
1527
1800
|
componentId: "sc-5464cc-0"
|
|
1528
1801
|
})(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
|
|
1529
1802
|
/**
|
|
1530
1803
|
* Formats a date with smart relative/absolute logic
|
|
1531
|
-
*/])), typography$1.label, color$
|
|
1804
|
+
*/])), typography$1.label, color$6.text.muted);
|
|
1532
1805
|
/**
|
|
1533
1806
|
* Formats a date with smart relative/absolute logic
|
|
1534
1807
|
*/
|
|
@@ -1573,18 +1846,25 @@ var DateFormatter = function DateFormatter(_a) {
|
|
|
1573
1846
|
};
|
|
1574
1847
|
var templateObject_1$B;
|
|
1575
1848
|
|
|
1576
|
-
var _a$
|
|
1577
|
-
motion$5 = _a$
|
|
1578
|
-
border$
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1849
|
+
var _a$7 = tokens.semantic,
|
|
1850
|
+
motion$5 = _a$7.motion,
|
|
1851
|
+
border$3 = _a$7.border,
|
|
1852
|
+
space$b = _a$7.space,
|
|
1853
|
+
size$2 = _a$7.size,
|
|
1854
|
+
_b$2 = tokens.component,
|
|
1855
|
+
iconButton = _b$2.iconButton,
|
|
1856
|
+
button = _b$2.button;
|
|
1857
|
+
// Height and width come from size.control as a minimum (decision 0034)
|
|
1858
|
+
var control = {
|
|
1859
|
+
small: size$2.control.sm,
|
|
1860
|
+
medium: size$2.control.md,
|
|
1861
|
+
large: size$2.control.lg
|
|
1862
|
+
};
|
|
1583
1863
|
// Padding comes from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
1584
1864
|
var padding = {
|
|
1585
|
-
small:
|
|
1586
|
-
medium:
|
|
1587
|
-
large:
|
|
1865
|
+
small: space$b.inset.xs,
|
|
1866
|
+
medium: space$b.inset.sm,
|
|
1867
|
+
large: space$b.inset.md
|
|
1588
1868
|
};
|
|
1589
1869
|
// Colours and motion come from Button's tokens, so IconButton's variants look and behave exactly like
|
|
1590
1870
|
// Button's in every state (#130). Only the size and the icon differ
|
|
@@ -1625,18 +1905,18 @@ var IconButtonStyled = styled__default.default.button.withConfig({
|
|
|
1625
1905
|
},
|
|
1626
1906
|
displayName: "IconButton__IconButtonStyled",
|
|
1627
1907
|
componentId: "sc-k8b14t-0"
|
|
1628
|
-
})(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n border: none;\n border-radius: ", ";\n transition: ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n height: max-content;\n cursor: pointer;\n position: relative;\n\n
|
|
1908
|
+
})(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n border: none;\n border-radius: ", ";\n transition: ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n height: max-content;\n cursor: pointer;\n position: relative;\n\n min-width: ", ";\n min-height: ", ";\n padding: ", ";\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n }\n\n &:focus {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n ", "\n"], ["\n background-color: ", ";\n color: ", ";\n border: none;\n border-radius: ", ";\n transition: ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n height: max-content;\n cursor: pointer;\n position: relative;\n\n min-width: ", ";\n min-height: ", ";\n padding: ", ";\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n }\n\n &:focus {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n ", "\n"])), function (_a) {
|
|
1629
1909
|
var $variant = _a.$variant;
|
|
1630
1910
|
return colours($variant).bg;
|
|
1631
1911
|
}, function (_a) {
|
|
1632
1912
|
var $variant = _a.$variant;
|
|
1633
1913
|
return colours($variant).text;
|
|
1634
|
-
}, iconButton.primary.borderRadius, motion$5.
|
|
1914
|
+
}, iconButton.primary.borderRadius, motion$5.transition.feedback, function (_a) {
|
|
1635
1915
|
var $size = _a.$size;
|
|
1636
|
-
return
|
|
1916
|
+
return control[$size];
|
|
1637
1917
|
}, function (_a) {
|
|
1638
1918
|
var $size = _a.$size;
|
|
1639
|
-
return
|
|
1919
|
+
return control[$size];
|
|
1640
1920
|
}, function (_a) {
|
|
1641
1921
|
var $size = _a.$size;
|
|
1642
1922
|
return padding[$size];
|
|
@@ -1646,13 +1926,13 @@ var IconButtonStyled = styled__default.default.button.withConfig({
|
|
|
1646
1926
|
}, function (_a) {
|
|
1647
1927
|
var $variant = _a.$variant;
|
|
1648
1928
|
return colours($variant).activeBg;
|
|
1649
|
-
}, iconButton.focus.outline, border$
|
|
1929
|
+
}, iconButton.focus.outline, border$3.focusOffset, function (_a) {
|
|
1650
1930
|
var $variant = _a.$variant;
|
|
1651
1931
|
return colours($variant).disabledBg;
|
|
1652
1932
|
}, function (_a) {
|
|
1653
1933
|
var $variant = _a.$variant;
|
|
1654
1934
|
return colours($variant).disabledText;
|
|
1655
|
-
});
|
|
1935
|
+
}, forcedColorsEdge);
|
|
1656
1936
|
var IconButton = function IconButton(_a) {
|
|
1657
1937
|
var variant = _a.variant,
|
|
1658
1938
|
_b = _a.size,
|
|
@@ -1718,7 +1998,7 @@ var StyledWrapper = styled__default.default.span.withConfig({
|
|
|
1718
1998
|
return $align;
|
|
1719
1999
|
}, function (_a) {
|
|
1720
2000
|
var $weight = _a.$weight;
|
|
1721
|
-
return
|
|
2001
|
+
return tokens.semantic.fontWeight[$weight];
|
|
1722
2002
|
});
|
|
1723
2003
|
// Map size to Typography variant
|
|
1724
2004
|
var sizeToTypographyVariant = {
|
|
@@ -1821,22 +2101,21 @@ var MoneyDisplay = function MoneyDisplay(_a) {
|
|
|
1821
2101
|
var templateObject_1$z;
|
|
1822
2102
|
|
|
1823
2103
|
// Destructure tokens
|
|
1824
|
-
var semantic$e =
|
|
1825
|
-
var _a$
|
|
1826
|
-
component:
|
|
2104
|
+
var semantic$e = tokens.semantic;
|
|
2105
|
+
var _a$6 = __assign(__assign({}, semantic$e), {
|
|
2106
|
+
component: tokens.component
|
|
1827
2107
|
}),
|
|
1828
|
-
color$
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
component$2 = _a$
|
|
1832
|
-
var radius$2 = border$7.radius;
|
|
2108
|
+
color$5 = _a$6.color,
|
|
2109
|
+
motion$4 = _a$6.motion,
|
|
2110
|
+
radius$2 = _a$6.radius,
|
|
2111
|
+
component$2 = _a$6.component;
|
|
1833
2112
|
var ProgressBarContainer = styled__default.default.div.withConfig({
|
|
1834
2113
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1835
2114
|
return !prop.startsWith('$');
|
|
1836
2115
|
},
|
|
1837
2116
|
displayName: "ProgressBar__ProgressBarContainer",
|
|
1838
2117
|
componentId: "sc-1nco33q-0"
|
|
1839
|
-
})(templateObject_3$
|
|
2118
|
+
})(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n /* Forced colours drop the track's fill, so the track gets an edge (decision 0038) */\n ", "\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n /* Forced colours drop the track's fill, so the track gets an edge (decision 0038) */\n ", "\n\n ", "\n\n ", "\n"])), tokens.component.track.background, radius$2.xs, forcedColorsEdge, function (props) {
|
|
1840
2119
|
return props.$variant === 'horizontal' && styled.css(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n "], ["\n width: 100%;\n height: ", ";\n "])), props.$height ? component$2.progressBar.sizes[props.$height].height : component$2.progressBar.sizes.md.height);
|
|
1841
2120
|
}, function (props) {
|
|
1842
2121
|
return props.$variant === 'vertical' && styled.css(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n "], ["\n width: ", ";\n height: 100%;\n "])), props.$width ? component$2.progressBar.sizes[props.$width].height : component$2.progressBar.sizes.md.height);
|
|
@@ -1847,18 +2126,19 @@ var ProgressBarFill = styled__default.default.div.withConfig({
|
|
|
1847
2126
|
},
|
|
1848
2127
|
displayName: "ProgressBar__ProgressBarFill",
|
|
1849
2128
|
componentId: "sc-1nco33q-1"
|
|
1850
|
-
})(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["\n height: 100%;\n transition: ", ";\n\n ", " {\n transition: none;\n }\n\n ", "\n\n ", "\n\n ", "\n"], ["\n height: 100%;\n transition: ", ";\n\n ", " {\n transition: none;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), motion$4.
|
|
2129
|
+
})(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["\n height: 100%;\n transition: width ", " ", ",\n height ", " ", ",\n background-color ", " ", ";\n\n ", " {\n transition: none;\n }\n\n /* The fill is the value, so it keeps a fill in forced colours, in the system selection colour (decision 0038) */\n ", " {\n forced-color-adjust: none;\n background-color: Highlight;\n }\n\n ", "\n\n ", "\n\n ", "\n"], ["\n height: 100%;\n transition: width ", " ", ",\n height ", " ", ",\n background-color ", " ", ";\n\n ", " {\n transition: none;\n }\n\n /* The fill is the value, so it keeps a fill in forced colours, in the system selection colour (decision 0038) */\n ", " {\n forced-color-adjust: none;\n background-color: Highlight;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), motion$4.duration.moderate, motion$4.easing.standard, motion$4.duration.moderate, motion$4.easing.standard, motion$4.duration.moderate, motion$4.easing.standard, reducedMotion, forcedColors, function (props) {
|
|
1851
2130
|
var backgroundColor;
|
|
1852
2131
|
switch (props.$color) {
|
|
1853
2132
|
case 'success':
|
|
1854
|
-
backgroundColor = color$
|
|
2133
|
+
backgroundColor = color$5.fill.success;
|
|
1855
2134
|
break;
|
|
1856
2135
|
case 'error':
|
|
1857
|
-
backgroundColor = color$
|
|
2136
|
+
backgroundColor = color$5.fill.danger;
|
|
1858
2137
|
break;
|
|
1859
2138
|
case 'default':
|
|
1860
2139
|
default:
|
|
1861
|
-
|
|
2140
|
+
// Near-black, like Slider's fill (decision 0029)
|
|
2141
|
+
backgroundColor = color$5.fill.emphasis;
|
|
1862
2142
|
break;
|
|
1863
2143
|
}
|
|
1864
2144
|
return styled.css(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundColor);
|
|
@@ -1899,12 +2179,12 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
1899
2179
|
})
|
|
1900
2180
|
});
|
|
1901
2181
|
};
|
|
1902
|
-
var templateObject_1$y, templateObject_2$q, templateObject_3$
|
|
2182
|
+
var templateObject_1$y, templateObject_2$q, templateObject_3$p, templateObject_4$k, templateObject_5$g, templateObject_6$c, templateObject_7$a;
|
|
1903
2183
|
|
|
1904
2184
|
// Destructure tokens for cleaner access
|
|
1905
|
-
var separatorTokens =
|
|
2185
|
+
var separatorTokens = tokens.component.separator;
|
|
1906
2186
|
// Margins come from the semantic separator spacing: no component spacing tokens (decision 0022)
|
|
1907
|
-
var
|
|
2187
|
+
var space$a = tokens.semantic.space;
|
|
1908
2188
|
var StyledDivider = styled__default.default.div.withConfig({
|
|
1909
2189
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1910
2190
|
return !prop.startsWith('$');
|
|
@@ -1933,9 +2213,9 @@ var StyledDivider = styled__default.default.div.withConfig({
|
|
|
1933
2213
|
var _b = _a.$orientation,
|
|
1934
2214
|
$orientation = _b === void 0 ? 'horizontal' : _b;
|
|
1935
2215
|
if ($orientation === 'vertical') {
|
|
1936
|
-
return "\n display: inline-block;\n height: auto;\n align-self: stretch;\n border-left: ".concat(
|
|
2216
|
+
return "\n display: inline-block;\n height: auto;\n align-self: stretch;\n border-left: ".concat(tokens.semantic.border.width.thin, " solid;\n border-top: none;\n ");
|
|
1937
2217
|
}
|
|
1938
|
-
return "border-top: ".concat(
|
|
2218
|
+
return "border-top: ".concat(tokens.semantic.border.width.thin, " solid;");
|
|
1939
2219
|
}, function (_a) {
|
|
1940
2220
|
var _b = _a.$variant,
|
|
1941
2221
|
$variant = _b === void 0 ? 'default' : _b,
|
|
@@ -1960,33 +2240,33 @@ var StyledDivider = styled__default.default.div.withConfig({
|
|
|
1960
2240
|
$orientation = _d === void 0 ? 'horizontal' : _d;
|
|
1961
2241
|
if ($variant === 'minimal' && $orientation === 'horizontal') {
|
|
1962
2242
|
// Minimal variant always uses its predefined spacing for horizontal
|
|
1963
|
-
return "margin: ".concat(
|
|
2243
|
+
return "margin: ".concat(space$a[600], " 0;");
|
|
1964
2244
|
}
|
|
1965
2245
|
if ($orientation === 'vertical') {
|
|
1966
2246
|
// Vertical orientation uses horizontal margins (left/right)
|
|
1967
2247
|
switch ($size) {
|
|
1968
2248
|
case 'small':
|
|
1969
|
-
return "margin: 0 ".concat(
|
|
2249
|
+
return "margin: 0 ".concat(space$a[400], ";");
|
|
1970
2250
|
case 'medium':
|
|
1971
|
-
return "margin: 0 ".concat(
|
|
2251
|
+
return "margin: 0 ".concat(space$a[600], ";");
|
|
1972
2252
|
case 'xlarge':
|
|
1973
|
-
return "margin: 0 ".concat(
|
|
2253
|
+
return "margin: 0 ".concat(space$a[1200], ";");
|
|
1974
2254
|
case 'large':
|
|
1975
2255
|
default:
|
|
1976
|
-
return "margin: 0 ".concat(
|
|
2256
|
+
return "margin: 0 ".concat(space$a[800], ";");
|
|
1977
2257
|
}
|
|
1978
2258
|
}
|
|
1979
2259
|
// Horizontal orientation uses vertical margins (top/bottom)
|
|
1980
2260
|
switch ($size) {
|
|
1981
2261
|
case 'small':
|
|
1982
|
-
return "margin: ".concat(
|
|
2262
|
+
return "margin: ".concat(space$a[400], " 0;");
|
|
1983
2263
|
case 'medium':
|
|
1984
|
-
return "margin: ".concat(
|
|
2264
|
+
return "margin: ".concat(space$a[600], " 0;");
|
|
1985
2265
|
case 'xlarge':
|
|
1986
|
-
return "margin: ".concat(
|
|
2266
|
+
return "margin: ".concat(space$a[1200], " 0;");
|
|
1987
2267
|
case 'large':
|
|
1988
2268
|
default:
|
|
1989
|
-
return "margin: ".concat(
|
|
2269
|
+
return "margin: ".concat(space$a[800], " 0;");
|
|
1990
2270
|
}
|
|
1991
2271
|
});
|
|
1992
2272
|
/**
|
|
@@ -2033,17 +2313,32 @@ var StyledStack = styled__default.default.div.withConfig({
|
|
|
2033
2313
|
displayName: "Stack__StyledStack",
|
|
2034
2314
|
componentId: "sc-1ehkxgy-0"
|
|
2035
2315
|
})(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n display: flex;\n flex-direction: var(--stack-direction);\n align-items: var(--stack-align-items);\n justify-content: var(--stack-justify-content);\n gap: var(--stack-gap);\n flex-wrap: var(--stack-wrap);\n"], ["\n display: flex;\n flex-direction: var(--stack-direction);\n align-items: var(--stack-align-items);\n justify-content: var(--stack-justify-content);\n gap: var(--stack-gap);\n flex-wrap: var(--stack-wrap);\n"
|
|
2036
|
-
//
|
|
2316
|
+
// Each gap name maps to the space step that replaced its old spacing.layout token (decision 0031),
|
|
2317
|
+
// so every gap keeps its value
|
|
2037
2318
|
])));
|
|
2319
|
+
// Each gap name maps to the space step that replaced its old spacing.layout token (decision 0031),
|
|
2320
|
+
// so every gap keeps its value
|
|
2321
|
+
var GAP_SPACE = {
|
|
2322
|
+
none: '0',
|
|
2323
|
+
xs: '100',
|
|
2324
|
+
sm: '200',
|
|
2325
|
+
md: '300',
|
|
2326
|
+
lg: '400',
|
|
2327
|
+
xl: '500',
|
|
2328
|
+
'2xl': '600',
|
|
2329
|
+
'3xl': '700',
|
|
2330
|
+
'4xl': '800',
|
|
2331
|
+
'5xl': '900',
|
|
2332
|
+
'6xl': '1000'
|
|
2333
|
+
};
|
|
2038
2334
|
// Helper function to convert gap prop to CSS value
|
|
2039
2335
|
var getGapValue = function getGapValue(gap) {
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
return semanticSpacing[gap];
|
|
2336
|
+
var step = GAP_SPACE[gap];
|
|
2337
|
+
if (step) {
|
|
2338
|
+
return tokens.semantic.space[step];
|
|
2044
2339
|
}
|
|
2045
|
-
// Fallback to medium
|
|
2046
|
-
return
|
|
2340
|
+
// Fallback to medium spacing for an unknown gap (from untyped JavaScript)
|
|
2341
|
+
return tokens.semantic.space[300];
|
|
2047
2342
|
};
|
|
2048
2343
|
var Stack = function Stack(_a) {
|
|
2049
2344
|
var children = _a.children,
|
|
@@ -2074,52 +2369,53 @@ var Stack = function Stack(_a) {
|
|
|
2074
2369
|
var templateObject_1$w;
|
|
2075
2370
|
|
|
2076
2371
|
// Destructure tokens for cleaner access
|
|
2077
|
-
var statusColors =
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
var
|
|
2372
|
+
var statusColors = tokens.component.status;
|
|
2373
|
+
var _a$5 = tokens.semantic,
|
|
2374
|
+
space$9 = _a$5.space,
|
|
2375
|
+
radius$1 = _a$5.radius;
|
|
2376
|
+
var _b$1 = tokens.semantic.motion,
|
|
2377
|
+
transition = _b$1.transition,
|
|
2378
|
+
duration$3 = _b$1.duration,
|
|
2379
|
+
easing$3 = _b$1.easing;
|
|
2380
|
+
var labelHeight = tokens.semantic.size.label;
|
|
2381
|
+
var label$1 = tokens.component.badge.label;
|
|
2086
2382
|
var scaleIn$1 = styled.keyframes(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n from {\n opacity: 0;\n transform: scale(0.8);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"], ["\n from {\n opacity: 0;\n transform: scale(0.8);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"])));
|
|
2087
2383
|
var getStatusConfig = function getStatusConfig(status) {
|
|
2088
2384
|
var configs = {
|
|
2089
2385
|
pending: {
|
|
2090
|
-
color: statusColors.pending,
|
|
2091
|
-
bgColor: statusColors
|
|
2386
|
+
color: statusColors.pending.text,
|
|
2387
|
+
bgColor: statusColors.pending.background,
|
|
2092
2388
|
icon: 'refresh',
|
|
2093
2389
|
// Fallback until 'clock' icon is added
|
|
2094
2390
|
label: 'Pending'
|
|
2095
2391
|
},
|
|
2096
2392
|
completed: {
|
|
2097
|
-
color: statusColors.completed,
|
|
2098
|
-
bgColor: statusColors
|
|
2393
|
+
color: statusColors.completed.text,
|
|
2394
|
+
bgColor: statusColors.completed.background,
|
|
2099
2395
|
icon: 'check',
|
|
2100
2396
|
label: 'Completed'
|
|
2101
2397
|
},
|
|
2102
2398
|
failed: {
|
|
2103
|
-
color: statusColors.failed,
|
|
2104
|
-
bgColor: statusColors
|
|
2399
|
+
color: statusColors.failed.text,
|
|
2400
|
+
bgColor: statusColors.failed.background,
|
|
2105
2401
|
icon: 'close',
|
|
2106
2402
|
label: 'Failed'
|
|
2107
2403
|
},
|
|
2108
2404
|
cancelled: {
|
|
2109
|
-
color: statusColors.cancelled,
|
|
2110
|
-
bgColor: statusColors
|
|
2405
|
+
color: statusColors.cancelled.text,
|
|
2406
|
+
bgColor: statusColors.cancelled.background,
|
|
2111
2407
|
icon: 'cancel',
|
|
2112
2408
|
label: 'Cancelled'
|
|
2113
2409
|
},
|
|
2114
2410
|
processing: {
|
|
2115
|
-
color: statusColors.processing,
|
|
2116
|
-
bgColor: statusColors
|
|
2411
|
+
color: statusColors.processing.text,
|
|
2412
|
+
bgColor: statusColors.processing.background,
|
|
2117
2413
|
icon: 'refresh',
|
|
2118
2414
|
label: 'Processing'
|
|
2119
2415
|
},
|
|
2120
2416
|
scheduled: {
|
|
2121
|
-
color: statusColors.scheduled,
|
|
2122
|
-
bgColor: statusColors
|
|
2417
|
+
color: statusColors.scheduled.text,
|
|
2418
|
+
bgColor: statusColors.scheduled.background,
|
|
2123
2419
|
icon: 'bell',
|
|
2124
2420
|
// Fallback until 'calendar' icon is added
|
|
2125
2421
|
label: 'Scheduled'
|
|
@@ -2131,16 +2427,16 @@ var getStatusConfig = function getStatusConfig(status) {
|
|
|
2131
2427
|
var sizeConfig$1 = {
|
|
2132
2428
|
small: {
|
|
2133
2429
|
height: labelHeight.small,
|
|
2134
|
-
padding: "".concat(
|
|
2430
|
+
padding: "".concat(space$9[100], " ").concat(space$9[200]),
|
|
2135
2431
|
font: label$1.typography.small,
|
|
2136
|
-
gap:
|
|
2432
|
+
gap: space$9[100],
|
|
2137
2433
|
iconSize: 'xs'
|
|
2138
2434
|
},
|
|
2139
2435
|
medium: {
|
|
2140
2436
|
height: labelHeight.medium,
|
|
2141
|
-
padding: "".concat(
|
|
2437
|
+
padding: "".concat(space$9[100], " ").concat(space$9[200]),
|
|
2142
2438
|
font: label$1.typography.medium,
|
|
2143
|
-
gap:
|
|
2439
|
+
gap: space$9[100],
|
|
2144
2440
|
iconSize: 'sm'
|
|
2145
2441
|
}
|
|
2146
2442
|
};
|
|
@@ -2150,7 +2446,7 @@ var StyledStatusLabel = styled__default.default.span.withConfig({
|
|
|
2150
2446
|
},
|
|
2151
2447
|
displayName: "StatusLabelBase__StyledStatusLabel",
|
|
2152
2448
|
componentId: "sc-1ye9xz5-0"
|
|
2153
|
-
})(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n box-sizing: border-box; /* the height includes padding, without relying on a global reset */\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n white-space: nowrap;\n user-select: none;\n animation: ", " ", " ", ";\n transition: ", ";\n\n /*
|
|
2449
|
+
})(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n box-sizing: border-box; /* the height includes padding, without relying on a global reset */\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n white-space: nowrap;\n user-select: none;\n animation: ", " ", " ", ";\n transition: ", ";\n\n /* Under reduced motion the label appears without scaling in, and colours change at once */\n ", " {\n animation: none;\n transition: none;\n }\n\n /* Forced colours drop the fill, so the label keeps its shape with an edge (decision 0038) */\n ", "\n \n /* Size styles */\n ", "\n \n /* Status color styles */\n ", "\n"], ["\n box-sizing: border-box; /* the height includes padding, without relying on a global reset */\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n white-space: nowrap;\n user-select: none;\n animation: ", " ", " ", ";\n transition: ", ";\n\n /* Under reduced motion the label appears without scaling in, and colours change at once */\n ", " {\n animation: none;\n transition: none;\n }\n\n /* Forced colours drop the fill, so the label keeps its shape with an edge (decision 0038) */\n ", "\n \n /* Size styles */\n ", "\n \n /* Status color styles */\n ", "\n"])), radius$1.full, scaleIn$1, duration$3.moderate, easing$3.decelerate, transition.feedback, reducedMotion, forcedColorsEdge, function (_a) {
|
|
2154
2450
|
var $size = _a.$size;
|
|
2155
2451
|
var size = sizeConfig$1[$size];
|
|
2156
2452
|
return "\n height: ".concat(size.height, ";\n padding: ").concat(size.padding, ";\n font: ").concat(size.font, ";\n font-weight: ").concat(label$1.fontWeight, ";\n gap: ").concat(size.gap, ";\n ");
|
|
@@ -2162,7 +2458,7 @@ var StyledStatusLabel = styled__default.default.span.withConfig({
|
|
|
2162
2458
|
var ScreenReaderOnly = styled__default.default.span.withConfig({
|
|
2163
2459
|
displayName: "StatusLabelBase__ScreenReaderOnly",
|
|
2164
2460
|
componentId: "sc-1ye9xz5-1"
|
|
2165
|
-
})(templateObject_3$
|
|
2461
|
+
})(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"
|
|
2166
2462
|
// The visible content, hidden from assistive technology when an aria-label replaces it.
|
|
2167
2463
|
// display: contents keeps the root's flex layout and gap.
|
|
2168
2464
|
])), visuallyHidden);
|
|
@@ -2220,7 +2516,7 @@ var StatusLabelBase = function StatusLabelBase(_a) {
|
|
|
2220
2516
|
})]
|
|
2221
2517
|
});
|
|
2222
2518
|
};
|
|
2223
|
-
var templateObject_1$v, templateObject_2$p, templateObject_3$
|
|
2519
|
+
var templateObject_1$v, templateObject_2$p, templateObject_3$o, templateObject_4$j;
|
|
2224
2520
|
|
|
2225
2521
|
/**
|
|
2226
2522
|
* StatusBadge displays a transaction or task status.
|
|
@@ -2254,14 +2550,12 @@ var StatusLabel = function StatusLabel(props) {
|
|
|
2254
2550
|
};
|
|
2255
2551
|
StatusLabel.displayName = 'StatusLabel';
|
|
2256
2552
|
|
|
2257
|
-
var semantic$d =
|
|
2258
|
-
var color$
|
|
2259
|
-
spacing$5 = semantic$d.spacing,
|
|
2260
|
-
border$6 = semantic$d.border,
|
|
2553
|
+
var semantic$d = tokens.semantic;
|
|
2554
|
+
var color$4 = semantic$d.color,
|
|
2261
2555
|
size$1 = semantic$d.size;
|
|
2262
|
-
var label =
|
|
2263
|
-
var
|
|
2264
|
-
var radius =
|
|
2556
|
+
var label = tokens.component.badge.label;
|
|
2557
|
+
var space$8 = semantic$d.space;
|
|
2558
|
+
var radius = semantic$d.radius;
|
|
2265
2559
|
var StyledTag = styled__default.default.span.withConfig({
|
|
2266
2560
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2267
2561
|
return !prop.startsWith('$');
|
|
@@ -2279,38 +2573,38 @@ var StyledTag = styled__default.default.span.withConfig({
|
|
|
2279
2573
|
return size$1.label[$size];
|
|
2280
2574
|
}, function (_a) {
|
|
2281
2575
|
var $size = _a.$size;
|
|
2282
|
-
return $size === 'small' ? "0 ".concat(
|
|
2576
|
+
return $size === 'small' ? "0 ".concat(space$8[200]) : "".concat(space$8[100], " ").concat(space$8[200]);
|
|
2283
2577
|
}, label.typography.small, label.fontWeight, function (_a) {
|
|
2284
2578
|
var $variant = _a.$variant;
|
|
2285
2579
|
switch ($variant) {
|
|
2286
2580
|
case 'interactive':
|
|
2287
|
-
return color$
|
|
2581
|
+
return color$4.fill['accent-muted'];
|
|
2288
2582
|
case 'success':
|
|
2289
|
-
return color$
|
|
2583
|
+
return color$4.fill['success-muted'];
|
|
2290
2584
|
case 'warning':
|
|
2291
|
-
return color$
|
|
2585
|
+
return color$4.fill['warning-muted'];
|
|
2292
2586
|
case 'error':
|
|
2293
|
-
return color$
|
|
2587
|
+
return color$4.fill['danger-muted'];
|
|
2294
2588
|
case 'emphasis':
|
|
2295
|
-
return color$
|
|
2589
|
+
return color$4.fill.emphasis;
|
|
2296
2590
|
default:
|
|
2297
|
-
return color$
|
|
2591
|
+
return color$4.fill.muted;
|
|
2298
2592
|
}
|
|
2299
2593
|
}, function (_a) {
|
|
2300
2594
|
var $variant = _a.$variant;
|
|
2301
2595
|
switch ($variant) {
|
|
2302
2596
|
case 'interactive':
|
|
2303
|
-
return color$
|
|
2597
|
+
return color$4.text.accent;
|
|
2304
2598
|
case 'success':
|
|
2305
|
-
return color$
|
|
2599
|
+
return color$4.text.success;
|
|
2306
2600
|
case 'warning':
|
|
2307
|
-
return color$
|
|
2601
|
+
return color$4.text.warning;
|
|
2308
2602
|
case 'error':
|
|
2309
|
-
return color$
|
|
2603
|
+
return color$4.text.danger;
|
|
2310
2604
|
case 'emphasis':
|
|
2311
|
-
return color$
|
|
2605
|
+
return color$4.text.inverse;
|
|
2312
2606
|
default:
|
|
2313
|
-
return color$
|
|
2607
|
+
return color$4.text["default"];
|
|
2314
2608
|
}
|
|
2315
2609
|
}, function (_a) {
|
|
2316
2610
|
var $variant = _a.$variant,
|
|
@@ -2318,17 +2612,17 @@ var StyledTag = styled__default.default.span.withConfig({
|
|
|
2318
2612
|
if (!$border) return 'none';
|
|
2319
2613
|
switch ($variant) {
|
|
2320
2614
|
case 'interactive':
|
|
2321
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2615
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border.accent);
|
|
2322
2616
|
case 'success':
|
|
2323
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2617
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border.success);
|
|
2324
2618
|
case 'warning':
|
|
2325
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2619
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border.warning);
|
|
2326
2620
|
case 'error':
|
|
2327
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2621
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border.danger);
|
|
2328
2622
|
case 'emphasis':
|
|
2329
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2623
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.fill.emphasis);
|
|
2330
2624
|
default:
|
|
2331
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2625
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border["default"]);
|
|
2332
2626
|
}
|
|
2333
2627
|
});
|
|
2334
2628
|
/**
|
|
@@ -2363,21 +2657,20 @@ var Tag = function Tag(_a) {
|
|
|
2363
2657
|
var templateObject_1$u;
|
|
2364
2658
|
|
|
2365
2659
|
// Destructure tokens for cleaner access
|
|
2366
|
-
var semantic$c =
|
|
2367
|
-
var
|
|
2368
|
-
var layout$2 = spacing$4.layout;
|
|
2660
|
+
var semantic$c = tokens.semantic;
|
|
2661
|
+
var space$7 = semantic$c.space;
|
|
2369
2662
|
var StyledBalanceSection = styled__default.default.div.withConfig({
|
|
2370
2663
|
displayName: "AccountCard__StyledBalanceSection",
|
|
2371
2664
|
componentId: "sc-1erp7zn-0"
|
|
2372
|
-
})(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])),
|
|
2665
|
+
})(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), space$7[400]);
|
|
2373
2666
|
var StyledTrendSection = styled__default.default.div.withConfig({
|
|
2374
2667
|
displayName: "AccountCard__StyledTrendSection",
|
|
2375
2668
|
componentId: "sc-1erp7zn-1"
|
|
2376
|
-
})(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])),
|
|
2669
|
+
})(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])), space$7[100]);
|
|
2377
2670
|
styled__default.default.div.withConfig({
|
|
2378
2671
|
displayName: "AccountCard__StyledActions",
|
|
2379
2672
|
componentId: "sc-1erp7zn-2"
|
|
2380
|
-
})(templateObject_3$
|
|
2673
|
+
})(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"], ["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"])), space$7[200]);
|
|
2381
2674
|
var StyledStackWrapper = styled__default.default.div.withConfig({
|
|
2382
2675
|
displayName: "AccountCard__StyledStackWrapper",
|
|
2383
2676
|
componentId: "sc-1erp7zn-3"
|
|
@@ -2385,9 +2678,9 @@ var StyledStackWrapper = styled__default.default.div.withConfig({
|
|
|
2385
2678
|
var StyledHeaderWrapper = styled__default.default.div.withConfig({
|
|
2386
2679
|
displayName: "AccountCard__StyledHeaderWrapper",
|
|
2387
2680
|
componentId: "sc-1erp7zn-4"
|
|
2388
|
-
})(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n min-height: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ", ";\n\n & > span {\n margin-top: -", ";\n }\n"], ["\n min-height: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ", ";\n\n & > span {\n margin-top: -", ";\n }\n"
|
|
2681
|
+
})(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n min-height: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ", ";\n\n & > span {\n margin-top: calc(-1 * ", ");\n }\n"], ["\n min-height: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ", ";\n\n & > span {\n margin-top: calc(-1 * ", ");\n }\n"
|
|
2389
2682
|
// Map trend direction to icon and color
|
|
2390
|
-
])),
|
|
2683
|
+
])), tokens.component.accountCard.header.minHeight, space$7[0], space$7[100]);
|
|
2391
2684
|
// Map trend direction to icon and color
|
|
2392
2685
|
var trendToIcon = {
|
|
2393
2686
|
up: 'arrowUp',
|
|
@@ -2436,12 +2729,12 @@ var AccountCard = function AccountCard(_a) {
|
|
|
2436
2729
|
}
|
|
2437
2730
|
};
|
|
2438
2731
|
return jsxRuntime.jsx(Box, {
|
|
2439
|
-
minWidth:
|
|
2732
|
+
minWidth: tokens.component.accountCard.minWidth,
|
|
2440
2733
|
p: "lg",
|
|
2441
2734
|
bg: "subtle",
|
|
2442
2735
|
border: "default",
|
|
2443
2736
|
borderRadius: "xl",
|
|
2444
|
-
transition: "box-shadow ".concat(semantic$c.motion.duration.
|
|
2737
|
+
transition: "box-shadow ".concat(semantic$c.motion.duration.moderate, " ").concat(semantic$c.motion.easing.decelerate),
|
|
2445
2738
|
cursor: isClickable ? 'pointer' : 'default',
|
|
2446
2739
|
hoverShadow: isClickable ? 'floating' : undefined,
|
|
2447
2740
|
onClick: handleClick,
|
|
@@ -2536,7 +2829,7 @@ var AccountCard = function AccountCard(_a) {
|
|
|
2536
2829
|
})
|
|
2537
2830
|
});
|
|
2538
2831
|
};
|
|
2539
|
-
var templateObject_1$t, templateObject_2$o, templateObject_3$
|
|
2832
|
+
var templateObject_1$t, templateObject_2$o, templateObject_3$n, templateObject_4$i, templateObject_5$f;
|
|
2540
2833
|
|
|
2541
2834
|
/**
|
|
2542
2835
|
* The spacing a List gives its items (#77). A ListItem without its own `spacing` uses it; outside
|
|
@@ -2544,10 +2837,10 @@ var templateObject_1$t, templateObject_2$o, templateObject_3$m, templateObject_4
|
|
|
2544
2837
|
*/
|
|
2545
2838
|
var ListSpacingContext = /*#__PURE__*/React.createContext('comfortable');
|
|
2546
2839
|
|
|
2547
|
-
var semantic$b =
|
|
2548
|
-
var _a$
|
|
2549
|
-
duration$2 = _a$
|
|
2550
|
-
easing$2 = _a$
|
|
2840
|
+
var semantic$b = tokens.semantic;
|
|
2841
|
+
var _a$4 = semantic$b.motion,
|
|
2842
|
+
duration$2 = _a$4.duration,
|
|
2843
|
+
easing$2 = _a$4.easing;
|
|
2551
2844
|
var StyledListItem = styled__default.default.li.withConfig({
|
|
2552
2845
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2553
2846
|
return !prop.startsWith('$');
|
|
@@ -2563,7 +2856,7 @@ var StyledListItem = styled__default.default.li.withConfig({
|
|
|
2563
2856
|
}, function (_a) {
|
|
2564
2857
|
var $destructive = _a.$destructive,
|
|
2565
2858
|
$disabled = _a.$disabled;
|
|
2566
|
-
return $destructive && !$disabled && "\n color: ".concat(semantic$b.color.text.
|
|
2859
|
+
return $destructive && !$disabled && "\n color: ".concat(semantic$b.color.text.danger, ";\n ");
|
|
2567
2860
|
});
|
|
2568
2861
|
var StyledItemContent = styled__default.default.div.withConfig({
|
|
2569
2862
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -2571,13 +2864,10 @@ var StyledItemContent = styled__default.default.div.withConfig({
|
|
|
2571
2864
|
},
|
|
2572
2865
|
displayName: "ListItem__StyledItemContent",
|
|
2573
2866
|
componentId: "sc-1wzzt21-1"
|
|
2574
|
-
})(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n background-color
|
|
2867
|
+
})(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n transition: background-color ", " ", ", color ", " ", ";\n cursor: ", ";\n \n /* The shared row states (decision 0030). Only interactive, enabled rows respond to hover and\n press; the primary text is Typography, so the row colours it through a selector */\n ", "\n \n /* Focus visible */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n transition: background-color ", " ", ", color ", " ", ";\n cursor: ", ";\n \n /* The shared row states (decision 0030). Only interactive, enabled rows respond to hover and\n press; the primary text is Typography, so the row colours it through a selector */\n ", "\n \n /* Focus visible */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), semantic$b.space[300], function (_a) {
|
|
2575
2868
|
var $spacing = _a.$spacing;
|
|
2576
|
-
return $spacing === 'compact' ? "".concat(semantic$b.
|
|
2577
|
-
}, semantic$b.
|
|
2578
|
-
var $selected = _a.$selected;
|
|
2579
|
-
return $selected ? semantic$b.color.background['interactive-subtle'] : 'transparent';
|
|
2580
|
-
}, duration$2.fast, easing$2.easeOut, function (_a) {
|
|
2869
|
+
return $spacing === 'compact' ? "".concat(semantic$b.space[200], " ").concat(semantic$b.space[300]) : "".concat(semantic$b.space[300], " ").concat(semantic$b.space[400]);
|
|
2870
|
+
}, semantic$b.radius.sm, duration$2.fast, easing$2.decelerate, duration$2.fast, easing$2.decelerate, function (_a) {
|
|
2581
2871
|
var $interactive = _a.$interactive,
|
|
2582
2872
|
$disabled = _a.$disabled;
|
|
2583
2873
|
if ($disabled) return 'not-allowed';
|
|
@@ -2587,27 +2877,31 @@ var StyledItemContent = styled__default.default.div.withConfig({
|
|
|
2587
2877
|
var $interactive = _a.$interactive,
|
|
2588
2878
|
$disabled = _a.$disabled,
|
|
2589
2879
|
$selected = _a.$selected;
|
|
2590
|
-
return
|
|
2591
|
-
|
|
2880
|
+
return interactiveRow({
|
|
2881
|
+
selected: $selected,
|
|
2882
|
+
disabled: $disabled || !$interactive,
|
|
2883
|
+
textSelector: "".concat(StyledTextContent, " > :first-child")
|
|
2884
|
+
});
|
|
2885
|
+
}, semantic$b.border.focus, semantic$b.border.focusOffset);
|
|
2592
2886
|
var StyledIconContainer$1 = styled__default.default.div.withConfig({
|
|
2593
2887
|
displayName: "ListItem__StyledIconContainer",
|
|
2594
2888
|
componentId: "sc-1wzzt21-2"
|
|
2595
|
-
})(templateObject_3$
|
|
2889
|
+
})(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n width: ", ";\n height: ", ";\n"], ["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n width: ", ";\n height: ", ";\n"])), semantic$b.size.icon.lg, semantic$b.size.icon.lg);
|
|
2596
2890
|
var StyledTextContent = styled__default.default.div.withConfig({
|
|
2597
2891
|
displayName: "ListItem__StyledTextContent",
|
|
2598
2892
|
componentId: "sc-1wzzt21-3"
|
|
2599
|
-
})(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text truncation */\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text truncation */\n"])), semantic$b.
|
|
2893
|
+
})(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text truncation */\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text truncation */\n"])), semantic$b.space[100]);
|
|
2600
2894
|
var StyledRightContent = styled__default.default.div.withConfig({
|
|
2601
2895
|
displayName: "ListItem__StyledRightContent",
|
|
2602
2896
|
componentId: "sc-1wzzt21-4"
|
|
2603
|
-
})(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"])), semantic$b.
|
|
2897
|
+
})(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"])), semantic$b.space[200]);
|
|
2604
2898
|
var StyledChevronIcon = styled__default.default.div.withConfig({
|
|
2605
2899
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2606
2900
|
return !prop.startsWith('$');
|
|
2607
2901
|
},
|
|
2608
2902
|
displayName: "ListItem__StyledChevronIcon",
|
|
2609
2903
|
componentId: "sc-1wzzt21-5"
|
|
2610
|
-
})(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n color: ", ";\n transition: transform ", " ", ";\n transform: rotate(", ");\n pointer-events: none;\n\n ", " {\n transition: none;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n color: ", ";\n transition: transform ", " ", ";\n transform: rotate(", ");\n pointer-events: none;\n\n ", " {\n transition: none;\n }\n"])), semantic$b.size.icon.lg, semantic$b.size.icon.lg, semantic$b.color.icon.
|
|
2904
|
+
})(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n color: ", ";\n transition: transform ", " ", ";\n transform: rotate(", ");\n pointer-events: none;\n\n ", " {\n transition: none;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n color: ", ";\n transition: transform ", " ", ";\n transform: rotate(", ");\n pointer-events: none;\n\n ", " {\n transition: none;\n }\n"])), semantic$b.size.icon.lg, semantic$b.size.icon.lg, semantic$b.color.icon.muted, duration$2.fast, easing$2.decelerate, function (_a) {
|
|
2611
2905
|
var $expanded = _a.$expanded;
|
|
2612
2906
|
return $expanded ? '180deg' : '0deg';
|
|
2613
2907
|
}, reducedMotion);
|
|
@@ -2617,7 +2911,7 @@ var StyledExpandedContent = styled__default.default.div.withConfig({
|
|
|
2617
2911
|
},
|
|
2618
2912
|
displayName: "ListItem__StyledExpandedContent",
|
|
2619
2913
|
componentId: "sc-1wzzt21-6"
|
|
2620
|
-
})(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n overflow: hidden;\n /* Padding collapses with the height, and visibility hides the content from\n keyboard and screen readers once the collapse finishes. */\n transition: max-height ", " ", ",\n padding ", " ", ",\n opacity ", " ", ",\n visibility ", " ", ";\n max-height: ", ";\n opacity: ", ";\n visibility: ", ";\n\n ", " {\n transition: opacity ", " ", ",\n visibility ", " ", ";\n }\n \n ", "\n"], ["\n overflow: hidden;\n /* Padding collapses with the height, and visibility hides the content from\n keyboard and screen readers once the collapse finishes. */\n transition: max-height ", " ", ",\n padding ", " ", ",\n opacity ", " ", ",\n visibility ", " ", ";\n max-height: ", ";\n opacity: ", ";\n visibility: ", ";\n\n ", " {\n transition: opacity ", " ", ",\n visibility ", " ", ";\n }\n \n ", "\n"])), duration$2.
|
|
2914
|
+
})(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n overflow: hidden;\n /* Padding collapses with the height, and visibility hides the content from\n keyboard and screen readers once the collapse finishes. */\n transition: max-height ", " ", ",\n padding ", " ", ",\n opacity ", " ", ",\n visibility ", " ", ";\n max-height: ", ";\n opacity: ", ";\n visibility: ", ";\n\n ", " {\n transition: opacity ", " ", ",\n visibility ", " ", ";\n }\n \n ", "\n"], ["\n overflow: hidden;\n /* Padding collapses with the height, and visibility hides the content from\n keyboard and screen readers once the collapse finishes. */\n transition: max-height ", " ", ",\n padding ", " ", ",\n opacity ", " ", ",\n visibility ", " ", ";\n max-height: ", ";\n opacity: ", ";\n visibility: ", ";\n\n ", " {\n transition: opacity ", " ", ",\n visibility ", " ", ";\n }\n \n ", "\n"])), duration$2.moderate, easing$2.decelerate, duration$2.moderate, easing$2.decelerate, duration$2.moderate, easing$2.decelerate, duration$2.moderate, easing$2.decelerate, function (_a) {
|
|
2621
2915
|
var $expanded = _a.$expanded;
|
|
2622
2916
|
return $expanded ? '1000px' : '0';
|
|
2623
2917
|
}, function (_a) {
|
|
@@ -2626,10 +2920,10 @@ var StyledExpandedContent = styled__default.default.div.withConfig({
|
|
|
2626
2920
|
}, function (_a) {
|
|
2627
2921
|
var $expanded = _a.$expanded;
|
|
2628
2922
|
return $expanded ? 'visible' : 'hidden';
|
|
2629
|
-
}, reducedMotion, duration$2.
|
|
2923
|
+
}, reducedMotion, duration$2.moderate, easing$2.decelerate, duration$2.moderate, easing$2.decelerate, function (_a) {
|
|
2630
2924
|
var $expanded = _a.$expanded,
|
|
2631
2925
|
$spacing = _a.$spacing;
|
|
2632
|
-
return $expanded && "\n padding: ".concat($spacing === 'compact' ? "".concat(semantic$b.
|
|
2926
|
+
return $expanded && "\n padding: ".concat($spacing === 'compact' ? "".concat(semantic$b.space[200], " ").concat(semantic$b.space[300], " ").concat(semantic$b.space[200], " ").concat(tokens.component.listItem.expandedIndent.compact) : "".concat(semantic$b.space[200], " ").concat(semantic$b.space[400], " ").concat(semantic$b.space[300], " ").concat(tokens.component.listItem.expandedIndent.comfortable), ";\n background-color: ").concat(semantic$b.surface.raised, ";\n border-radius: ").concat(semantic$b.radius.sm, ";\n margin: 0 ").concat($spacing === 'compact' ? semantic$b.space[300] : semantic$b.space[400], " ").concat($spacing === 'compact' ? semantic$b.space[200] : semantic$b.space[300], ";\n ");
|
|
2633
2927
|
});
|
|
2634
2928
|
var ListItem = function ListItem(_a) {
|
|
2635
2929
|
var primary = _a.primary,
|
|
@@ -2751,9 +3045,10 @@ var ListItem = function ListItem(_a) {
|
|
|
2751
3045
|
);
|
|
2752
3046
|
};
|
|
2753
3047
|
ListItem.displayName = 'ListItem';
|
|
2754
|
-
var templateObject_1$s, templateObject_2$n, templateObject_3$
|
|
3048
|
+
var templateObject_1$s, templateObject_2$n, templateObject_3$m, templateObject_4$h, templateObject_5$e, templateObject_6$b, templateObject_7$9;
|
|
2755
3049
|
|
|
2756
|
-
// How long an exiting element stays mounted: the duration of `exitAnimation` in styleUtils.
|
|
3050
|
+
// How long an exiting element stays mounted: the duration of `exitAnimation` in styleUtils. A timer
|
|
3051
|
+
// needs the resolved value, not the CSS variable (decision 0041).
|
|
2757
3052
|
var EXIT_DURATION_MS = parseInt(data.tokensJson.semantic.motion.duration.fast, 10);
|
|
2758
3053
|
/**
|
|
2759
3054
|
* Keeps an element mounted for `exitMs` after `isOpen` turns false, so its exit
|
|
@@ -2796,35 +3091,35 @@ function useInert(ref, isInert) {
|
|
|
2796
3091
|
}, [ref, isInert]);
|
|
2797
3092
|
}
|
|
2798
3093
|
|
|
2799
|
-
var _a$
|
|
2800
|
-
color$
|
|
2801
|
-
border$
|
|
2802
|
-
|
|
2803
|
-
motion$3 = _a$
|
|
2804
|
-
elevation$2 = _a$
|
|
3094
|
+
var _a$3 = tokens.semantic,
|
|
3095
|
+
color$3 = _a$3.color,
|
|
3096
|
+
border$2 = _a$3.border,
|
|
3097
|
+
space$6 = _a$3.space,
|
|
3098
|
+
motion$3 = _a$3.motion,
|
|
3099
|
+
elevation$2 = _a$3.elevation;
|
|
2805
3100
|
var slideUp = styled.keyframes(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n"], ["\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n"])));
|
|
2806
3101
|
var fadeIn$2 = styled.keyframes(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"], ["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"])));
|
|
2807
3102
|
var StyledOverlay$2 = styled__default.default.div.withConfig({
|
|
2808
3103
|
displayName: "ActionSheet__StyledOverlay",
|
|
2809
3104
|
componentId: "sc-regbol-0"
|
|
2810
|
-
})(templateObject_3$
|
|
3105
|
+
})(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n position: fixed;\n inset: 0;\n background-color: ", ";\n z-index: ", ";\n animation: ", " ", " ", "", ";\n"], ["\n position: fixed;\n inset: 0;\n background-color: ", ";\n z-index: ", ";\n animation: ", " ", " ", "", ";\n"])), tokens.semantic.surface.scrim, tokens.semantic.layer.modal, fadeIn$2, motion$3.duration.moderate, motion$3.easing.decelerate, function (_a) {
|
|
2811
3106
|
var $isExiting = _a.$isExiting;
|
|
2812
3107
|
return $isExiting && exitAnimation;
|
|
2813
3108
|
});
|
|
2814
3109
|
var StyledActionSheet = styled__default.default.div.withConfig({
|
|
2815
3110
|
displayName: "ActionSheet__StyledActionSheet",
|
|
2816
3111
|
componentId: "sc-regbol-1"
|
|
2817
|
-
})(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n box-shadow: ", ";\n max-height: 90vh;\n overflow-y: auto;\n z-index: ", ";\n animation: ", " ", " ", "", ";\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n\n"], ["\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n box-shadow: ", ";\n max-height: 90vh;\n overflow-y: auto;\n z-index: ", ";\n animation: ", " ", " ", "", ";\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n\n"])),
|
|
3112
|
+
})(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n box-shadow: ", ";\n max-height: 90vh;\n overflow-y: auto;\n z-index: ", ";\n animation: ", " ", " ", "", ";\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n\n"], ["\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n box-shadow: ", ";\n max-height: 90vh;\n overflow-y: auto;\n z-index: ", ";\n animation: ", " ", " ", "", ";\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n\n"])), tokens.semantic.surface.raised, tokens.semantic.radius.lg, tokens.semantic.radius.lg, elevation$2.overlay, tokens.semantic.layer.modal, slideUp, motion$3.duration.slow, motion$3.easing.decelerate, function (_a) {
|
|
2818
3113
|
var $isExiting = _a.$isExiting;
|
|
2819
3114
|
return $isExiting && exitAnimation;
|
|
2820
|
-
}, reducedMotion, fadeIn$2, motion$3.duration.slow, motion$3.easing.
|
|
3115
|
+
}, reducedMotion, fadeIn$2, motion$3.duration.slow, motion$3.easing.decelerate, function (_a) {
|
|
2821
3116
|
var $isExiting = _a.$isExiting;
|
|
2822
3117
|
return $isExiting && exitAnimation;
|
|
2823
3118
|
});
|
|
2824
3119
|
var StyledHeader$2 = styled__default.default.div.withConfig({
|
|
2825
3120
|
displayName: "ActionSheet__StyledHeader",
|
|
2826
3121
|
componentId: "sc-regbol-2"
|
|
2827
|
-
})(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n padding: ", " ", " ", ";\n border-bottom: ", ";\n"], ["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n padding: ", " ", " ", ";\n border-bottom: ", ";\n"])),
|
|
3122
|
+
})(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n padding: ", " ", " ", ";\n border-bottom: ", ";\n"], ["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n padding: ", " ", " ", ";\n border-bottom: ", ";\n"])), space$6[400], space$6[400], space$6[300], border$2["default"]);
|
|
2828
3123
|
var StyledHeaderContent = styled__default.default.div.withConfig({
|
|
2829
3124
|
displayName: "ActionSheet__StyledHeaderContent",
|
|
2830
3125
|
componentId: "sc-regbol-3"
|
|
@@ -2832,7 +3127,7 @@ var StyledHeaderContent = styled__default.default.div.withConfig({
|
|
|
2832
3127
|
var StyledCloseButton = styled__default.default.button.withConfig({
|
|
2833
3128
|
displayName: "ActionSheet__StyledCloseButton",
|
|
2834
3129
|
componentId: "sc-regbol-4"
|
|
2835
|
-
})(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])),
|
|
3130
|
+
})(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), space$6[200], color$3.icon.muted, tokens.semantic.radius.sm, motion$3.transition.feedback, space$6[200], color$3.icon["default"], color$3.fill.muted, border$2.focus, border$2.focusOffset);
|
|
2836
3131
|
var StyledActionsList = styled__default.default.ul.withConfig({
|
|
2837
3132
|
displayName: "ActionSheet__StyledActionsList",
|
|
2838
3133
|
componentId: "sc-regbol-5"
|
|
@@ -2869,7 +3164,7 @@ var StyledActionsList = styled__default.default.ul.withConfig({
|
|
|
2869
3164
|
* ]}
|
|
2870
3165
|
* />
|
|
2871
3166
|
* ```
|
|
2872
|
-
*/])),
|
|
3167
|
+
*/])), space$6[200], space$6[300]);
|
|
2873
3168
|
/**
|
|
2874
3169
|
* ActionSheet component for bottom sheet modals
|
|
2875
3170
|
*
|
|
@@ -3059,7 +3354,7 @@ var ActionSheet = function ActionSheet(_a) {
|
|
|
3059
3354
|
})]
|
|
3060
3355
|
}), document.body);
|
|
3061
3356
|
};
|
|
3062
|
-
var templateObject_1$r, templateObject_2$m, templateObject_3$
|
|
3357
|
+
var templateObject_1$r, templateObject_2$m, templateObject_3$l, templateObject_4$g, templateObject_5$d, templateObject_6$a, templateObject_7$8, templateObject_8$7;
|
|
3063
3358
|
|
|
3064
3359
|
function detectSpeechRecognitionConstructor(targetWindow) {
|
|
3065
3360
|
if (!targetWindow) return null;
|
|
@@ -3159,8 +3454,8 @@ function agentInputStateTransition(currentState, event) {
|
|
|
3159
3454
|
}
|
|
3160
3455
|
}
|
|
3161
3456
|
|
|
3162
|
-
var semantic$a =
|
|
3163
|
-
component$1 =
|
|
3457
|
+
var semantic$a = tokens.semantic,
|
|
3458
|
+
component$1 = tokens.component;
|
|
3164
3459
|
var DEFAULT_IDLE_HELPER = 'Ask about transactions, spending, or transfers';
|
|
3165
3460
|
var DEFAULT_LISTENING_MESSAGE = 'Listening… speak now';
|
|
3166
3461
|
var DEFAULT_PROCESSING_MESSAGE = 'Finishing voice input…';
|
|
@@ -3168,27 +3463,27 @@ var rotateRing = styled.keyframes(templateObject_1$q || (templateObject_1$q = __
|
|
|
3168
3463
|
var Container = styled__default.default.div.withConfig({
|
|
3169
3464
|
displayName: "AgentInput__Container",
|
|
3170
3465
|
componentId: "sc-fhl996-0"
|
|
3171
|
-
})(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])), semantic$a.
|
|
3466
|
+
})(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])), semantic$a.space[200]);
|
|
3172
3467
|
var ControlsRow = styled__default.default.div.withConfig({
|
|
3173
3468
|
displayName: "AgentInput__ControlsRow",
|
|
3174
3469
|
componentId: "sc-fhl996-1"
|
|
3175
|
-
})(templateObject_3$
|
|
3470
|
+
})(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
3176
3471
|
var InputShell = styled__default.default.div.withConfig({
|
|
3177
3472
|
displayName: "AgentInput__InputShell",
|
|
3178
3473
|
componentId: "sc-fhl996-2"
|
|
3179
|
-
})(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n width: 100%;\n padding: ", " ", " ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n transition: border-color ", " ", ", outline ", " ", ";\n\n &:focus-within {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n\n &[data-disabled='true'] {\n background-color: ", ";\n border-color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n width: 100%;\n padding: ", " ", " ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n transition: border-color ", " ", ", outline ", " ", ";\n\n &:focus-within {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n\n &[data-disabled='true'] {\n background-color: ", ";\n border-color: ", ";\n }\n"])), semantic$a.
|
|
3474
|
+
})(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n width: 100%;\n padding: ", " ", " ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n transition: border-color ", " ", ", outline ", " ", ";\n\n &:focus-within {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n\n &[data-disabled='true'] {\n background-color: ", ";\n border-color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n width: 100%;\n padding: ", " ", " ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n transition: border-color ", " ", ", outline ", " ", ";\n\n &:focus-within {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n\n &[data-disabled='true'] {\n background-color: ", ";\n border-color: ", ";\n }\n"])), semantic$a.space[200], semantic$a.space[100], semantic$a.space[200], semantic$a.space[100], semantic$a.space.inset.lg, component$1.input["default"].backgroundColor, component$1.input["default"].borderWidth, component$1.input["default"].borderColor, semantic$a.radius['3xl'], semantic$a.elevation.raised, semantic$a.motion.duration.moderate, semantic$a.motion.easing.standard, semantic$a.motion.duration.moderate, semantic$a.motion.easing.standard, component$1.input.focus.borderColor, component$1.input.focus.outline, semantic$a.border.focusOffset, component$1.input.disabled.backgroundColor, component$1.input.disabled.borderColor);
|
|
3180
3475
|
var Input = styled__default.default.input.withConfig({
|
|
3181
3476
|
displayName: "AgentInput__Input",
|
|
3182
3477
|
componentId: "sc-fhl996-3"
|
|
3183
|
-
})(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n min-height: ", ";\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n outline: none;\n\n &::placeholder {\n color: ", ";\n /* Firefox fades placeholders to 0.54 by default, which would undo the 4.5:1 contrast */\n opacity: 1;\n }\n\n &:disabled {\n color: ", ";\n cursor: not-allowed;\n }\n"], ["\n flex: 1;\n min-width: 0;\n min-height: ", ";\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n outline: none;\n\n &::placeholder {\n color: ", ";\n /* Firefox fades placeholders to 0.54 by default, which would undo the 4.5:1 contrast */\n opacity: 1;\n }\n\n &:disabled {\n color: ", ";\n cursor: not-allowed;\n }\n"])), semantic$a.
|
|
3478
|
+
})(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n min-height: ", ";\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n outline: none;\n\n &::placeholder {\n color: ", ";\n /* Firefox fades placeholders to 0.54 by default, which would undo the 4.5:1 contrast */\n opacity: 1;\n }\n\n &:disabled {\n color: ", ";\n cursor: not-allowed;\n }\n"], ["\n flex: 1;\n min-width: 0;\n min-height: ", ";\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n outline: none;\n\n &::placeholder {\n color: ", ";\n /* Firefox fades placeholders to 0.54 by default, which would undo the 4.5:1 contrast */\n opacity: 1;\n }\n\n &:disabled {\n color: ", ";\n cursor: not-allowed;\n }\n"])), semantic$a.size.control.lg, semantic$a.typography.body, semantic$a.color.text["default"], component$1.input.placeholder.textColor, semantic$a.color.text.disabled);
|
|
3184
3479
|
var InputActions = styled__default.default.div.withConfig({
|
|
3185
3480
|
displayName: "AgentInput__InputActions",
|
|
3186
3481
|
componentId: "sc-fhl996-4"
|
|
3187
|
-
})(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"])), semantic$a.
|
|
3482
|
+
})(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"])), semantic$a.space[200]);
|
|
3188
3483
|
var CircularActionIconButton = styled__default.default(IconButton).withConfig({
|
|
3189
3484
|
displayName: "AgentInput__CircularActionIconButton",
|
|
3190
3485
|
componentId: "sc-fhl996-5"
|
|
3191
|
-
})(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), semantic$a.
|
|
3486
|
+
})(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), semantic$a.radius.full);
|
|
3192
3487
|
var InputWrapper = styled__default.default.div.withConfig({
|
|
3193
3488
|
displayName: "AgentInput__InputWrapper",
|
|
3194
3489
|
componentId: "sc-fhl996-6"
|
|
@@ -3202,7 +3497,7 @@ var MicButtonWrapper = styled__default.default.div.withConfig({
|
|
|
3202
3497
|
})(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n border-radius: ", ";\n\n & > button {\n position: relative;\n z-index: 1;\n }\n"], ["\n position: relative;\n display: inline-flex;\n border-radius: ", ";\n\n & > button {\n position: relative;\n z-index: 1;\n }\n"
|
|
3203
3498
|
// Masks read only alpha, so the opaque stop is a mask value, not a colour (decision 0010).
|
|
3204
3499
|
// eslint-disable-next-line no-restricted-syntax
|
|
3205
|
-
])), semantic$a.
|
|
3500
|
+
])), semantic$a.radius.full);
|
|
3206
3501
|
// Masks read only alpha, so the opaque stop is a mask value, not a colour (decision 0010).
|
|
3207
3502
|
// eslint-disable-next-line no-restricted-syntax
|
|
3208
3503
|
var ringMask = styled.css(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["radial-gradient(farthest-side, transparent calc(100% - var(--ring-thickness)), #000 calc(100% - var(--ring-thickness)))"], ["radial-gradient(farthest-side, transparent calc(100% - var(--ring-thickness)), #000 calc(100% - var(--ring-thickness)))"])));
|
|
@@ -3212,21 +3507,21 @@ var MicListeningRing = styled__default.default.span.withConfig({
|
|
|
3212
3507
|
},
|
|
3213
3508
|
displayName: "AgentInput__MicListeningRing",
|
|
3214
3509
|
componentId: "sc-fhl996-8"
|
|
3215
|
-
})(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\n --ring-thickness: ", ";\n position: absolute;\n inset: calc(-", " - ", ");\n border-radius: ", ";\n pointer-events: none;\n z-index: 0;\n background: conic-gradient(\n from 0deg,\n ", " 0deg,\n ", " 110deg,\n ", " 210deg,\n ", " 300deg,\n ", " 360deg\n );\n mask: ", ";\n -webkit-mask: ", ";\n\n ", "\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n"], ["\n --ring-thickness: ", ";\n position: absolute;\n inset: calc(-", " - ", ");\n border-radius: ", ";\n pointer-events: none;\n z-index: 0;\n background: conic-gradient(\n from 0deg,\n ", " 0deg,\n ", " 110deg,\n ", " 210deg,\n ", " 300deg,\n ", " 360deg\n );\n mask: ", ";\n -webkit-mask: ", ";\n\n ", "\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n"])), semantic$a.border.width.thick, semantic$a.
|
|
3510
|
+
})(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\n --ring-thickness: ", ";\n position: absolute;\n inset: calc(-1 * ", " - ", ");\n border-radius: ", ";\n pointer-events: none;\n z-index: 0;\n background: conic-gradient(\n from 0deg,\n ", " 0deg,\n ", " 110deg,\n ", " 210deg,\n ", " 300deg,\n ", " 360deg\n );\n mask: ", ";\n -webkit-mask: ", ";\n\n ", "\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n"], ["\n --ring-thickness: ", ";\n position: absolute;\n inset: calc(-1 * ", " - ", ");\n border-radius: ", ";\n pointer-events: none;\n z-index: 0;\n background: conic-gradient(\n from 0deg,\n ", " 0deg,\n ", " 110deg,\n ", " 210deg,\n ", " 300deg,\n ", " 360deg\n );\n mask: ", ";\n -webkit-mask: ", ";\n\n ", "\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n"])), semantic$a.border.width.thick, semantic$a.space[100], semantic$a.border.focusOffset, semantic$a.radius.full, semantic$a.color.fill['accent-muted'], semantic$a.color.fill.accent, semantic$a.color.fill['accent-hover'], semantic$a.color.fill.accent, semantic$a.color.fill['accent-muted'], ringMask, ringMask, function (_a) {
|
|
3216
3511
|
var $reducedMotion = _a.$reducedMotion;
|
|
3217
3512
|
return !$reducedMotion && styled.css(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n animation: ", " 1300ms linear infinite;\n "], ["\n animation: ", " 1300ms linear infinite;\n "])), rotateRing);
|
|
3218
3513
|
});
|
|
3219
3514
|
var StatusRow = styled__default.default.div.withConfig({
|
|
3220
3515
|
displayName: "AgentInput__StatusRow",
|
|
3221
3516
|
componentId: "sc-fhl996-9"
|
|
3222
|
-
})(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n min-height: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n min-height: ", ";\n"])), semantic$a.
|
|
3517
|
+
})(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n min-height: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n min-height: ", ";\n"])), semantic$a.space[300], semantic$a.space[600]);
|
|
3223
3518
|
var StatusText = styled__default.default.div.withConfig({
|
|
3224
3519
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
3225
3520
|
return !prop.startsWith('$');
|
|
3226
3521
|
},
|
|
3227
3522
|
displayName: "AgentInput__StatusText",
|
|
3228
3523
|
componentId: "sc-fhl996-10"
|
|
3229
|
-
})(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$a.
|
|
3524
|
+
})(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$a.space[500]);
|
|
3230
3525
|
var StatusAnnouncement = styled__default.default.div.withConfig({
|
|
3231
3526
|
displayName: "AgentInput__StatusAnnouncement",
|
|
3232
3527
|
componentId: "sc-fhl996-11"
|
|
@@ -3234,17 +3529,17 @@ var StatusAnnouncement = styled__default.default.div.withConfig({
|
|
|
3234
3529
|
var MeterContainer = styled__default.default.div.withConfig({
|
|
3235
3530
|
displayName: "AgentInput__MeterContainer",
|
|
3236
3531
|
componentId: "sc-fhl996-12"
|
|
3237
|
-
})(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\n display: inline-flex;\n align-items: flex-end;\n gap: ", ";\n height: ", ";\n"], ["\n display: inline-flex;\n align-items: flex-end;\n gap: ", ";\n height: ", ";\n"])), semantic$a.
|
|
3532
|
+
})(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\n display: inline-flex;\n align-items: flex-end;\n gap: ", ";\n height: ", ";\n"], ["\n display: inline-flex;\n align-items: flex-end;\n gap: ", ";\n height: ", ";\n"])), semantic$a.space[100], semantic$a.space[400]);
|
|
3238
3533
|
var MeterBar = styled__default.default.div.withConfig({
|
|
3239
3534
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
3240
3535
|
return !prop.startsWith('$');
|
|
3241
3536
|
},
|
|
3242
3537
|
displayName: "AgentInput__MeterBar",
|
|
3243
3538
|
componentId: "sc-fhl996-13"
|
|
3244
|
-
})(templateObject_17$1 || (templateObject_17$1 = __makeTemplateObject(["\n width: ", ";\n border-radius: ", ";\n background-color: ", ";\n height: ", ";\n transition: height ", " ", ";\n"], ["\n width: ", ";\n border-radius: ", ";\n background-color: ", ";\n height: ", ";\n transition: height ", " ", ";\n"])), semantic$a.
|
|
3539
|
+
})(templateObject_17$1 || (templateObject_17$1 = __makeTemplateObject(["\n width: ", ";\n border-radius: ", ";\n background-color: ", ";\n height: ", ";\n transition: height ", " ", ";\n"], ["\n width: ", ";\n border-radius: ", ";\n background-color: ", ";\n height: ", ";\n transition: height ", " ", ";\n"])), semantic$a.space[100], semantic$a.radius.xs, semantic$a.color.fill.accent, function (_a) {
|
|
3245
3540
|
var $height = _a.$height;
|
|
3246
3541
|
return "".concat($height * 100, "%");
|
|
3247
|
-
}, semantic$a.motion.duration.fast, semantic$a.motion.easing.
|
|
3542
|
+
}, semantic$a.motion.duration.fast, semantic$a.motion.easing.decelerate);
|
|
3248
3543
|
var VisuallyHiddenLabel = styled__default.default.label.withConfig({
|
|
3249
3544
|
displayName: "AgentInput__VisuallyHiddenLabel",
|
|
3250
3545
|
componentId: "sc-fhl996-14"
|
|
@@ -3877,16 +4172,17 @@ var AgentInput = function AgentInput(_a) {
|
|
|
3877
4172
|
})]
|
|
3878
4173
|
});
|
|
3879
4174
|
};
|
|
3880
|
-
var templateObject_1$q, templateObject_2$l, templateObject_3$
|
|
4175
|
+
var templateObject_1$q, templateObject_2$l, templateObject_3$k, templateObject_4$f, templateObject_5$c, templateObject_6$9, templateObject_7$7, templateObject_8$6, templateObject_9$5, templateObject_10$3, templateObject_11$3, templateObject_12$3, templateObject_13$3, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1;
|
|
3881
4176
|
|
|
3882
|
-
var semantic$9 =
|
|
3883
|
-
var alert =
|
|
3884
|
-
var _a$
|
|
3885
|
-
duration$1 = _a$
|
|
3886
|
-
easing$1 = _a$
|
|
4177
|
+
var semantic$9 = tokens.semantic;
|
|
4178
|
+
var alert = tokens.component.alert;
|
|
4179
|
+
var _a$2 = semantic$9.motion,
|
|
4180
|
+
duration$1 = _a$2.duration,
|
|
4181
|
+
easing$1 = _a$2.easing;
|
|
3887
4182
|
// Dismissing fades the alert out, then collapses the space it took (Ollie's call, #35).
|
|
3888
|
-
// Each half takes duration.fast, so the whole exit stays within the 300ms maximum (P6).
|
|
3889
|
-
|
|
4183
|
+
// Each half takes duration.fast, so the whole exit stays within the 300ms maximum (P6). The timer
|
|
4184
|
+
// needs the resolved value, not the CSS variable (decision 0041).
|
|
4185
|
+
var FADE_MS = parseInt(data.tokensJson.semantic.motion.duration.fast, 10);
|
|
3890
4186
|
var EXIT_MS = FADE_MS * 2;
|
|
3891
4187
|
// The --alert-exit-* properties are the alert's height and vertical padding, measured
|
|
3892
4188
|
// when it's dismissed, so nothing moves until the fade has finished
|
|
@@ -3931,11 +4227,11 @@ var StyledAlert = styled__default.default.div.withConfig({
|
|
|
3931
4227
|
componentId: "sc-18tq5d-0"
|
|
3932
4228
|
})(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n display: flex;\n /* Items start at the top, so the icon and dismiss button line up with the first line */\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n border: ", " solid;\n position: relative;\n width: 100%;\n \n /* Severity \xD7 appearance colours from Alert's component tokens (decision 0019). Borderless\n keeps a transparent border, so both appearances take the same space. */\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n \n /* Responsive adjustments */\n @media (min-width: ", ") {\n padding: ", ";\n }\n\n /* The exit is chosen once, when dismissed (not by a media query), so a reduced-motion\n preference that changes mid-exit can't swap animations and flash the faded alert back.\n Reduced motion: fade only; the space closes instantly afterwards. */\n ", "\n"], ["\n display: flex;\n /* Items start at the top, so the icon and dismiss button line up with the first line */\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n border: ", " solid;\n position: relative;\n width: 100%;\n \n /* Severity \xD7 appearance colours from Alert's component tokens (decision 0019). Borderless\n keeps a transparent border, so both appearances take the same space. */\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n \n /* Responsive adjustments */\n @media (min-width: ", ") {\n padding: ", ";\n }\n\n /* The exit is chosen once, when dismissed (not by a media query), so a reduced-motion\n preference that changes mid-exit can't swap animations and flash the faded alert back.\n Reduced motion: fade only; the space closes instantly afterwards. */\n ", "\n"])), function (_a) {
|
|
3933
4229
|
var $inline = _a.$inline;
|
|
3934
|
-
return $inline ? semantic$9.
|
|
4230
|
+
return $inline ? semantic$9.space[200] : semantic$9.space[300];
|
|
3935
4231
|
}, function (_a) {
|
|
3936
4232
|
var $inline = _a.$inline;
|
|
3937
|
-
return $inline ? semantic$9.
|
|
3938
|
-
}, semantic$9.
|
|
4233
|
+
return $inline ? semantic$9.space[200] : semantic$9.space[300];
|
|
4234
|
+
}, semantic$9.radius.sm, semantic$9.border.width.thin, function (_a) {
|
|
3939
4235
|
var _b = _a.$variant,
|
|
3940
4236
|
$variant = _b === void 0 ? 'info' : _b;
|
|
3941
4237
|
return alert.severity[$variant].background;
|
|
@@ -3950,11 +4246,11 @@ var StyledAlert = styled__default.default.div.withConfig({
|
|
|
3950
4246
|
return alert.appearance[$appearance].borderColor[$variant];
|
|
3951
4247
|
}, semantic$9.breakpoint.md, function (_a) {
|
|
3952
4248
|
var $inline = _a.$inline;
|
|
3953
|
-
return $inline ? semantic$9.
|
|
4249
|
+
return $inline ? semantic$9.space[200] : semantic$9.space[400];
|
|
3954
4250
|
}, function (_a) {
|
|
3955
4251
|
var $isExiting = _a.$isExiting,
|
|
3956
4252
|
$reducedExit = _a.$reducedExit;
|
|
3957
|
-
return $isExiting && styled.css(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n overflow: hidden;\n pointer-events: none;\n animation: ", ";\n "], ["\n overflow: hidden;\n pointer-events: none;\n animation: ", ";\n "])), $reducedExit ? styled.css(templateObject_3$
|
|
4253
|
+
return $isExiting && styled.css(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n overflow: hidden;\n pointer-events: none;\n animation: ", ";\n "], ["\n overflow: hidden;\n pointer-events: none;\n animation: ", ";\n "])), $reducedExit ? styled.css(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["", " ", " ", " forwards"], ["", " ", " ", " forwards"])), fadeOut, duration$1.fast, easing$1.accelerate) : styled.css(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["", " ", "ms ", " forwards"], ["", " ", "ms ", " forwards"])), fadeThenCollapse, EXIT_MS, easing$1.accelerate));
|
|
3958
4254
|
});
|
|
3959
4255
|
var StyledIconContainer = styled__default.default.div.withConfig({
|
|
3960
4256
|
displayName: "Alert__StyledIconContainer",
|
|
@@ -3963,7 +4259,7 @@ var StyledIconContainer = styled__default.default.div.withConfig({
|
|
|
3963
4259
|
var StyledContent$1 = styled__default.default.div.withConfig({
|
|
3964
4260
|
displayName: "Alert__StyledContent",
|
|
3965
4261
|
componentId: "sc-18tq5d-2"
|
|
3966
|
-
})(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"])), semantic$9.
|
|
4262
|
+
})(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"])), semantic$9.space[100]);
|
|
3967
4263
|
var StyledTitle = styled__default.default.span.withConfig({
|
|
3968
4264
|
displayName: "Alert__StyledTitle",
|
|
3969
4265
|
componentId: "sc-18tq5d-3"
|
|
@@ -3985,7 +4281,7 @@ var StyledActions = styled__default.default.div.withConfig({
|
|
|
3985
4281
|
// message when there's no title (decision 0019). The slot is as tall as that line and the
|
|
3986
4282
|
// button is centred in it, overflowing evenly into the padding, so it stays aligned at every
|
|
3987
4283
|
// padding and line height. Being in the row, it also keeps text and actions from running under it.
|
|
3988
|
-
])), semantic$9.
|
|
4284
|
+
])), semantic$9.space[200], semantic$9.space[300], semantic$9.space[100]);
|
|
3989
4285
|
// The dismiss button's centre lines up with the first line of content: the title, or the
|
|
3990
4286
|
// message when there's no title (decision 0019). The slot is as tall as that line and the
|
|
3991
4287
|
// button is centred in it, overflowing evenly into the padding, so it stays aligned at every
|
|
@@ -4010,7 +4306,7 @@ var StyledDismissButton = styled__default.default(IconButton).withConfig({
|
|
|
4010
4306
|
componentId: "sc-18tq5d-7"
|
|
4011
4307
|
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
4012
4308
|
var $inline = _a.$inline;
|
|
4013
|
-
return $inline ? 0 : "calc((".concat(
|
|
4309
|
+
return $inline ? 0 : "calc((".concat(semantic$9.size.control.sm, " - ").concat(semantic$9.size.icon.sm, ") / -2)");
|
|
4014
4310
|
});
|
|
4015
4311
|
var Alert = function Alert(_a) {
|
|
4016
4312
|
var _b = _a.variant,
|
|
@@ -4146,12 +4442,11 @@ var Alert = function Alert(_a) {
|
|
|
4146
4442
|
}));
|
|
4147
4443
|
};
|
|
4148
4444
|
Alert.displayName = 'Alert';
|
|
4149
|
-
var templateObject_1$p, templateObject_2$k, templateObject_3$
|
|
4445
|
+
var templateObject_1$p, templateObject_2$k, templateObject_3$j, templateObject_4$e, templateObject_5$b, templateObject_6$8, templateObject_7$6, templateObject_8$5, templateObject_9$4, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2;
|
|
4150
4446
|
|
|
4151
|
-
var semantic$8 =
|
|
4152
|
-
var color$
|
|
4447
|
+
var semantic$8 = tokens.semantic;
|
|
4448
|
+
var color$2 = semantic$8.color,
|
|
4153
4449
|
typography = semantic$8.typography,
|
|
4154
|
-
spacing$3 = semantic$8.spacing,
|
|
4155
4450
|
size = semantic$8.size;
|
|
4156
4451
|
var variantIcons = {
|
|
4157
4452
|
error: 'crossCircle',
|
|
@@ -4160,20 +4455,20 @@ var variantIcons = {
|
|
|
4160
4455
|
success: 'checkRing'
|
|
4161
4456
|
};
|
|
4162
4457
|
var variantTextColors = {
|
|
4163
|
-
error: color$
|
|
4164
|
-
warning: color$
|
|
4165
|
-
info: color$
|
|
4166
|
-
success: color$
|
|
4458
|
+
error: color$2.text.danger,
|
|
4459
|
+
warning: color$2.text.warning,
|
|
4460
|
+
info: color$2.text.accent,
|
|
4461
|
+
success: color$2.text.success
|
|
4167
4462
|
};
|
|
4168
4463
|
var sizeConfig = {
|
|
4169
4464
|
small: {
|
|
4170
4465
|
font: typography.caption,
|
|
4171
|
-
gap:
|
|
4466
|
+
gap: semantic$8.space[100],
|
|
4172
4467
|
icon: 'xs'
|
|
4173
4468
|
},
|
|
4174
4469
|
medium: {
|
|
4175
4470
|
font: typography.small,
|
|
4176
|
-
gap:
|
|
4471
|
+
gap: semantic$8.space[200],
|
|
4177
4472
|
icon: 'sm'
|
|
4178
4473
|
}
|
|
4179
4474
|
};
|
|
@@ -4209,7 +4504,7 @@ var StyledIconLine = styled__default.default.span.withConfig({
|
|
|
4209
4504
|
var StyledMessage = styled__default.default.span.withConfig({
|
|
4210
4505
|
displayName: "InlineAlert__StyledMessage",
|
|
4211
4506
|
componentId: "sc-eervmb-2"
|
|
4212
|
-
})(templateObject_3$
|
|
4507
|
+
})(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n min-width: 0;\n"], ["\n min-width: 0;\n"
|
|
4213
4508
|
/**
|
|
4214
4509
|
* InlineAlert is a short, local message that sits next to what it's about: between paragraphs,
|
|
4215
4510
|
* below a field or in a table cell (decision 0019). A severity icon and text in the severity
|
|
@@ -4277,20 +4572,20 @@ var InlineAlert = function InlineAlert(_a) {
|
|
|
4277
4572
|
});
|
|
4278
4573
|
};
|
|
4279
4574
|
InlineAlert.displayName = 'InlineAlert';
|
|
4280
|
-
var templateObject_1$o, templateObject_2$j, templateObject_3$
|
|
4575
|
+
var templateObject_1$o, templateObject_2$j, templateObject_3$i;
|
|
4281
4576
|
|
|
4282
4577
|
var BreadcrumbNavStyled = styled__default.default.nav.withConfig({
|
|
4283
4578
|
displayName: "Breadcrumbs__BreadcrumbNavStyled",
|
|
4284
4579
|
componentId: "sc-7ouzg5-0"
|
|
4285
|
-
})(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"], ["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"])),
|
|
4580
|
+
})(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"], ["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"])), tokens.semantic.border["default"]);
|
|
4286
4581
|
var BreadcrumbStyled = styled__default.default.li.withConfig({
|
|
4287
4582
|
displayName: "Breadcrumbs__BreadcrumbStyled",
|
|
4288
4583
|
componentId: "sc-7ouzg5-1"
|
|
4289
|
-
})(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n text-transform: uppercase;\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", ";\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: ", ";\n }\n\n > a {\n display: inline-flex;\n align-items: center;\n text-decoration: underline;\n color: ", ";\n }\n"], ["\n text-transform: uppercase;\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", ";\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: ", ";\n }\n\n > a {\n display: inline-flex;\n align-items: center;\n text-decoration: underline;\n color: ", ";\n }\n"])),
|
|
4584
|
+
})(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n text-transform: uppercase;\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", ";\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: ", ";\n }\n\n > a {\n display: inline-flex;\n align-items: center;\n text-decoration: underline;\n color: ", ";\n }\n"], ["\n text-transform: uppercase;\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", ";\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: ", ";\n }\n\n > a {\n display: inline-flex;\n align-items: center;\n text-decoration: underline;\n color: ", ";\n }\n"])), tokens.semantic.space[200], tokens.semantic.space[200], tokens.semantic.color.text.muted, tokens.component.breadcrumbs.item.maxWidth, tokens.semantic.color.text["default"]);
|
|
4290
4585
|
var BreadcrumbSeparator = styled__default.default.span.withConfig({
|
|
4291
4586
|
displayName: "Breadcrumbs__BreadcrumbSeparator",
|
|
4292
4587
|
componentId: "sc-7ouzg5-2"
|
|
4293
|
-
})(templateObject_3$
|
|
4588
|
+
})(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n opacity: 0.5;\n"], ["\n display: inline-flex;\n align-items: center;\n opacity: 0.5;\n"])));
|
|
4294
4589
|
var isInternalUrl = function isInternalUrl(url) {
|
|
4295
4590
|
return url.startsWith('/') && !url.startsWith('http');
|
|
4296
4591
|
};
|
|
@@ -4338,12 +4633,14 @@ var Breadcrumbs = function Breadcrumbs(_a) {
|
|
|
4338
4633
|
})
|
|
4339
4634
|
});
|
|
4340
4635
|
};
|
|
4341
|
-
var templateObject_1$n, templateObject_2$i, templateObject_3$
|
|
4636
|
+
var templateObject_1$n, templateObject_2$i, templateObject_3$h;
|
|
4342
4637
|
|
|
4638
|
+
// The whole card is one link (#185): hovering anywhere fades its image, pressing fades it one step
|
|
4639
|
+
// further, and keyboard focus draws the system focus ring around the card (decision 0029)
|
|
4343
4640
|
var CardSmallStyled = styled__default.default.div.withConfig({
|
|
4344
4641
|
displayName: "CardSmall__CardSmallStyled",
|
|
4345
4642
|
componentId: "sc-jpcqvd-0"
|
|
4346
|
-
})(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n a {\n text-decoration: none;\n }\n\n img {\n border-radius: ", ";\n transition:
|
|
4643
|
+
})(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n a {\n display: block;\n text-decoration: none;\n border-radius: ", ";\n }\n\n img {\n border-radius: ", ";\n transition: ", ";\n width: 100%;\n height: auto;\n display: block;\n }\n\n a:hover img {\n opacity: ", ";\n }\n\n a:active img {\n opacity: ", ";\n }\n\n a:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n a {\n display: block;\n text-decoration: none;\n border-radius: ", ";\n }\n\n img {\n border-radius: ", ";\n transition: ", ";\n width: 100%;\n height: auto;\n display: block;\n }\n\n a:hover img {\n opacity: ", ";\n }\n\n a:active img {\n opacity: ", ";\n }\n\n a:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), tokens.semantic.radius.sm, tokens.semantic.radius.sm, tokens.semantic.motion.transition.press, tokens.semantic.opacity.hover, tokens.semantic.opacity.pressed, tokens.semantic.border.focus, tokens.semantic.border.focusOffset);
|
|
4347
4644
|
var CardSmall = function CardSmall(_a) {
|
|
4348
4645
|
var title = _a.title,
|
|
4349
4646
|
picture = _a.picture,
|
|
@@ -4399,11 +4696,10 @@ var CardSmall = function CardSmall(_a) {
|
|
|
4399
4696
|
};
|
|
4400
4697
|
var templateObject_1$m;
|
|
4401
4698
|
|
|
4402
|
-
var border$4 = data.tokensJson.semantic.border;
|
|
4403
4699
|
var CardLargeStyled = styled__default.default.div.withConfig({
|
|
4404
4700
|
displayName: "CardLarge__CardLargeStyled",
|
|
4405
4701
|
componentId: "sc-1rfgdzl-0"
|
|
4406
|
-
})(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n max-width: ", ";\n\n a {\n text-decoration: none;\n }\n\n
|
|
4702
|
+
})(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n max-width: ", ";\n\n a {\n text-decoration: none;\n }\n\n /* The image answers hover and press through Picture, and only when it's clickable (issue 185) */\n img {\n border-radius: ", ";\n width: 100%;\n }\n"], ["\n max-width: ", ";\n\n a {\n text-decoration: none;\n }\n\n /* The image answers hover and press through Picture, and only when it's clickable (issue 185) */\n img {\n border-radius: ", ";\n width: 100%;\n }\n"])), tokens.component.cardLarge.maxWidth, tokens.semantic.radius['2xl']);
|
|
4407
4703
|
var CardLarge = function CardLarge(_a) {
|
|
4408
4704
|
var title = _a.title,
|
|
4409
4705
|
excerpt = _a.excerpt,
|
|
@@ -4487,29 +4783,37 @@ var StyledCheckbox = styled__default.default.span.withConfig({
|
|
|
4487
4783
|
},
|
|
4488
4784
|
displayName: "SelectableInputBase__StyledCheckbox",
|
|
4489
4785
|
componentId: "sc-1ddpctx-1"
|
|
4490
|
-
})(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n min-width: ", ";\n min-height: ", ";\n border-radius: ", ";\n border: ", " solid;\n background-color: ", ";\n border-color: ", ";\n cursor: ", ";\n transition:
|
|
4786
|
+
})(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n min-width: ", ";\n min-height: ", ";\n border-radius: ", ";\n border: ", " solid;\n background-color: ", ";\n border-color: ", ";\n cursor: ", ";\n transition: background-color ", " ", ",\n border-color ", " ", ",\n ", ";\n flex-shrink: 0;\n\n /* Hover state */\n ", ":not(:disabled):hover + & {\n border-color: ", ";\n }\n\n /* Focus state */\n ", ":focus-visible + & {\n outline: ", ";\n outline-offset: ", ";\n border-color: ", ";\n }\n\n /* Disabled state */\n ", "\n\n /* Checkmark icon */\n &::after {\n content: '';\n position: absolute;\n display: ", ";\n left: 6px;\n top: 3px;\n width: 4px;\n height: 8px;\n border: solid ", ";\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n }\n\n /* Indeterminate icon (horizontal line) */\n &::before {\n content: '';\n position: absolute;\n display: ", ";\n left: 4px;\n top: 8px;\n width: 10px;\n height: 2px;\n background-color: ", ";\n }\n\n /* Forced colours drop fills (decision 0038): a checked or indeterminate box takes the system\n selection colour, or GrayText when disabled, and its mark the matching text colour. The\n indeterminate dash is a fill, so it needs the same treatment. */\n ", "\n"], ["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n min-width: ", ";\n min-height: ", ";\n border-radius: ", ";\n border: ", " solid;\n background-color: ", ";\n border-color: ", ";\n cursor: ", ";\n transition: background-color ", " ", ",\n border-color ", " ", ",\n ", ";\n flex-shrink: 0;\n\n /* Hover state */\n ", ":not(:disabled):hover + & {\n border-color: ", ";\n }\n\n /* Focus state */\n ", ":focus-visible + & {\n outline: ", ";\n outline-offset: ", ";\n border-color: ", ";\n }\n\n /* Disabled state */\n ", "\n\n /* Checkmark icon */\n &::after {\n content: '';\n position: absolute;\n display: ", ";\n left: 6px;\n top: 3px;\n width: 4px;\n height: 8px;\n border: solid ", ";\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n }\n\n /* Indeterminate icon (horizontal line) */\n &::before {\n content: '';\n position: absolute;\n display: ", ";\n left: 4px;\n top: 8px;\n width: 10px;\n height: 2px;\n background-color: ", ";\n }\n\n /* Forced colours drop fills (decision 0038): a checked or indeterminate box takes the system\n selection colour, or GrayText when disabled, and its mark the matching text colour. The\n indeterminate dash is a fill, so it needs the same treatment. */\n ", "\n"
|
|
4491
4787
|
/**
|
|
4492
4788
|
* Container for checkbox with proper spacing and alignment
|
|
4493
4789
|
* 48px min-height for touch target (8px grid aligned)
|
|
4494
|
-
*/])),
|
|
4495
|
-
return props.$checked || props.$indeterminate ?
|
|
4790
|
+
*/])), tokens.component.checkbox.box.size, tokens.component.checkbox.box.size, tokens.component.checkbox.box.size, tokens.component.checkbox.box.size, tokens.component.input["default"].borderRadius, tokens.component.input["default"].borderWidth, function (props) {
|
|
4791
|
+
return props.$checked || props.$indeterminate ? tokens.semantic.color.fill.inverse : tokens.component.input["default"].backgroundColor;
|
|
4496
4792
|
}, function (props) {
|
|
4497
|
-
if (props.$state === 'error') return
|
|
4498
|
-
|
|
4499
|
-
return
|
|
4793
|
+
if (props.$state === 'error') return tokens.component.input.error.borderColor;
|
|
4794
|
+
// A checked box's border matches its fill, so the box reads as solid
|
|
4795
|
+
if (props.$checked || props.$indeterminate) return tokens.semantic.color.fill.inverse;
|
|
4796
|
+
return tokens.component.input["default"].borderColor;
|
|
4500
4797
|
}, function (props) {
|
|
4501
4798
|
return props.$state === 'disabled' ? 'not-allowed' : 'pointer';
|
|
4502
|
-
},
|
|
4503
|
-
return props.$state === 'error' ?
|
|
4504
|
-
}, HiddenCheckboxInput,
|
|
4505
|
-
return props.$state === 'error' ?
|
|
4799
|
+
}, tokens.semantic.motion.duration.fast, tokens.semantic.motion.easing.decelerate, tokens.semantic.motion.duration.fast, tokens.semantic.motion.easing.decelerate, tokens.semantic.motion.transition.focus, HiddenCheckboxInput, function (props) {
|
|
4800
|
+
return props.$state === 'error' ? tokens.component.input.error.hover.borderColor : props.$checked || props.$indeterminate ? tokens.semantic.color.fill.inverse : tokens.component.input.hover.borderColor;
|
|
4801
|
+
}, HiddenCheckboxInput, tokens.component.input.focus.outline, tokens.semantic.border.focusOffset, function (props) {
|
|
4802
|
+
return props.$state === 'error' ? tokens.component.input.error.focus.borderColor : tokens.component.input.focus.borderColor;
|
|
4506
4803
|
}, function (props) {
|
|
4507
|
-
return props.$state === 'disabled' && "\n background-color: ".concat(
|
|
4804
|
+
return props.$state === 'disabled' && "\n background-color: ".concat(tokens.component.input.disabled.backgroundColor, ";\n border-color: ").concat(tokens.component.input.disabled.borderColor, ";\n ");
|
|
4508
4805
|
}, function (props) {
|
|
4509
4806
|
return props.$checked ? 'block' : 'none';
|
|
4510
|
-
},
|
|
4807
|
+
}, tokens.semantic.color.text.inverse, function (props) {
|
|
4511
4808
|
return props.$indeterminate ? 'block' : 'none';
|
|
4512
|
-
},
|
|
4809
|
+
}, tokens.semantic.color.text.inverse, function (props) {
|
|
4810
|
+
var on = props.$checked || props.$indeterminate;
|
|
4811
|
+
var disabled = props.$state === 'disabled';
|
|
4812
|
+
if (!on) return disabled ? "".concat(forcedColors, " { border-color: GrayText; }") : '';
|
|
4813
|
+
var fill = disabled ? 'GrayText' : 'Highlight';
|
|
4814
|
+
var mark = disabled ? 'Canvas' : 'HighlightText';
|
|
4815
|
+
return "".concat(forcedColors, " {\n forced-color-adjust: none;\n background-color: ").concat(fill, ";\n border-color: ").concat(fill, ";\n &::after { border-color: ").concat(mark, "; }\n &::before { background-color: ").concat(mark, "; }\n }");
|
|
4816
|
+
});
|
|
4513
4817
|
/**
|
|
4514
4818
|
* Container for checkbox with proper spacing and alignment
|
|
4515
4819
|
* 48px min-height for touch target (8px grid aligned)
|
|
@@ -4520,12 +4824,12 @@ var StyledCheckboxContainer = styled__default.default.label.withConfig({
|
|
|
4520
4824
|
},
|
|
4521
4825
|
displayName: "SelectableInputBase__StyledCheckboxContainer",
|
|
4522
4826
|
componentId: "sc-1ddpctx-2"
|
|
4523
|
-
})(templateObject_3$
|
|
4827
|
+
})(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n cursor: ", ";\n min-height: ", ";\n flex-direction: ", ";\n user-select: none;\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n cursor: ", ";\n min-height: ", ";\n flex-direction: ", ";\n user-select: none;\n"
|
|
4524
4828
|
/**
|
|
4525
4829
|
* Label text with proper typography
|
|
4526
|
-
*/])),
|
|
4830
|
+
*/])), tokens.semantic.space[300], function (props) {
|
|
4527
4831
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
4528
|
-
},
|
|
4832
|
+
}, tokens.component.checkbox.row.minHeight, function (props) {
|
|
4529
4833
|
return props.$labelPosition === 'left' ? 'row-reverse' : 'row';
|
|
4530
4834
|
});
|
|
4531
4835
|
/**
|
|
@@ -4537,15 +4841,15 @@ var StyledCheckboxLabel = styled__default.default.span.withConfig({
|
|
|
4537
4841
|
},
|
|
4538
4842
|
displayName: "SelectableInputBase__StyledCheckboxLabel",
|
|
4539
4843
|
componentId: "sc-1ddpctx-3"
|
|
4540
|
-
})(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])),
|
|
4541
|
-
return props.$disabled ?
|
|
4844
|
+
})(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), tokens.component.input["default"].font, function (props) {
|
|
4845
|
+
return props.$disabled ? tokens.component.input.disabled.textColor : tokens.component.input["default"].textColor;
|
|
4542
4846
|
});
|
|
4543
|
-
var templateObject_1$k, templateObject_2$h, templateObject_3$
|
|
4847
|
+
var templateObject_1$k, templateObject_2$h, templateObject_3$g, templateObject_4$d;
|
|
4544
4848
|
|
|
4545
4849
|
var StyledFieldContainer$3 = styled__default.default.div.withConfig({
|
|
4546
4850
|
displayName: "Checkbox__StyledFieldContainer",
|
|
4547
4851
|
componentId: "sc-vquz3v-0"
|
|
4548
|
-
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n display: inline-flex;\n flex-direction: column;\n gap: ", ";\n"], ["\n display: inline-flex;\n flex-direction: column;\n gap: ", ";\n"])),
|
|
4852
|
+
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n display: inline-flex;\n flex-direction: column;\n gap: ", ";\n"], ["\n display: inline-flex;\n flex-direction: column;\n gap: ", ";\n"])), tokens.semantic.space[100]);
|
|
4549
4853
|
var StyledHelperText$4 = styled__default.default.span.withConfig({
|
|
4550
4854
|
displayName: "Checkbox__StyledHelperText",
|
|
4551
4855
|
componentId: "sc-vquz3v-1"
|
|
@@ -4571,9 +4875,9 @@ var StyledHelperText$4 = styled__default.default.span.withConfig({
|
|
|
4571
4875
|
* required
|
|
4572
4876
|
* />
|
|
4573
4877
|
* ```
|
|
4574
|
-
*/])),
|
|
4575
|
-
return props.$error ?
|
|
4576
|
-
},
|
|
4878
|
+
*/])), tokens.component.field.helperText.typography, function (props) {
|
|
4879
|
+
return props.$error ? tokens.component.field.helperText.colorError : tokens.component.field.helperText.color;
|
|
4880
|
+
}, tokens.semantic.space[900]);
|
|
4577
4881
|
/**
|
|
4578
4882
|
* Checkbox component for binary selection with WCAG 2.2 AA compliance
|
|
4579
4883
|
*
|
|
@@ -4695,19 +4999,18 @@ var ChipGroup = function ChipGroup(_a) {
|
|
|
4695
4999
|
};
|
|
4696
5000
|
var templateObject_1$i;
|
|
4697
5001
|
|
|
4698
|
-
var _a$
|
|
4699
|
-
color$
|
|
4700
|
-
border$
|
|
4701
|
-
|
|
4702
|
-
motion$2 = _a$2.motion;
|
|
5002
|
+
var _a$1 = tokens.semantic,
|
|
5003
|
+
color$1 = _a$1.color,
|
|
5004
|
+
border$1 = _a$1.border,
|
|
5005
|
+
motion$2 = _a$1.motion;
|
|
4703
5006
|
var StyledCodeBlock = styled__default.default.pre.withConfig({
|
|
4704
5007
|
displayName: "CodeBlock__StyledCodeBlock",
|
|
4705
5008
|
componentId: "sc-1p1t0kp-0"
|
|
4706
|
-
})(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n"], ["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n"])),
|
|
5009
|
+
})(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n\n /* The block is focusable so keyboard users can scroll it; it shows the system focus ring\n (decision 0029) */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n\n /* The block is focusable so keyboard users can scroll it; it shows the system focus ring\n (decision 0029) */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), tokens.semantic.surface.raised, border$1.emphasis, tokens.semantic.radius.sm, tokens.semantic.space[300], tokens.component.codeBlock.fontFamily, tokens.component.codeBlock.fontSize, tokens.component.codeBlock.lineHeight, color$1.text["default"], function (_a) {
|
|
4707
5010
|
var $isExpanded = _a.$isExpanded,
|
|
4708
5011
|
$needsExpansion = _a.$needsExpansion;
|
|
4709
5012
|
return $needsExpansion && !$isExpanded ? 'hidden' : 'auto';
|
|
4710
|
-
},
|
|
5013
|
+
}, tokens.semantic.space[200], motion$2.duration.slow, motion$2.easing.standard, reducedMotion, function (_a) {
|
|
4711
5014
|
var $maxHeight = _a.$maxHeight,
|
|
4712
5015
|
$isExpanded = _a.$isExpanded,
|
|
4713
5016
|
$needsExpansion = _a.$needsExpansion;
|
|
@@ -4715,7 +5018,7 @@ var StyledCodeBlock = styled__default.default.pre.withConfig({
|
|
|
4715
5018
|
// Use a large value when expanded to allow smooth transition
|
|
4716
5019
|
// 10000px is effectively "no limit" for most code blocks
|
|
4717
5020
|
return $isExpanded ? 'max-height: 10000px;' : "max-height: ".concat($maxHeight, "px;");
|
|
4718
|
-
});
|
|
5021
|
+
}, border$1.focus, border$1.focusOffset);
|
|
4719
5022
|
var CodeBlockWrapper = styled__default.default.div.withConfig({
|
|
4720
5023
|
displayName: "CodeBlock__CodeBlockWrapper",
|
|
4721
5024
|
componentId: "sc-1p1t0kp-1"
|
|
@@ -4723,13 +5026,13 @@ var CodeBlockWrapper = styled__default.default.div.withConfig({
|
|
|
4723
5026
|
var CopyButtonWrapper = styled__default.default.div.withConfig({
|
|
4724
5027
|
displayName: "CodeBlock__CopyButtonWrapper",
|
|
4725
5028
|
componentId: "sc-1p1t0kp-2"
|
|
4726
|
-
})(templateObject_3$
|
|
5029
|
+
})(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n position: absolute;\n bottom: ", ";\n right: ", ";\n"], ["\n position: absolute;\n bottom: ", ";\n right: ", ";\n"])), tokens.semantic.space[400], tokens.semantic.space[200]);
|
|
4727
5030
|
var ExpandButtonWrapper = styled__default.default.div.withConfig({
|
|
4728
5031
|
displayName: "CodeBlock__ExpandButtonWrapper",
|
|
4729
5032
|
componentId: "sc-1p1t0kp-3"
|
|
4730
|
-
})(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n padding: ", " 0;\n position: absolute;\n bottom: ", ";\n left: ", ";\n right: ", ";\n width: calc(100% - 2 * ", ");\n margin-bottom: ", ";\n border-radius: ", ";\n transition: opacity ", " ", ", background ", " ", ";\n \n ", "\n"], ["\n display: flex;\n justify-content: center;\n padding: ", " 0;\n position: absolute;\n bottom: ", ";\n left: ", ";\n right: ", ";\n width: calc(100% - 2 * ", ");\n margin-bottom: ", ";\n border-radius: ", ";\n transition: opacity ", " ", ", background ", " ", ";\n \n ", "\n"])),
|
|
5033
|
+
})(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n padding: ", " 0;\n position: absolute;\n bottom: ", ";\n left: ", ";\n right: ", ";\n width: calc(100% - 2 * ", ");\n margin-bottom: ", ";\n border-radius: ", ";\n transition: opacity ", " ", ", background ", " ", ";\n \n ", "\n"], ["\n display: flex;\n justify-content: center;\n padding: ", " 0;\n position: absolute;\n bottom: ", ";\n left: ", ";\n right: ", ";\n width: calc(100% - 2 * ", ");\n margin-bottom: ", ";\n border-radius: ", ";\n transition: opacity ", " ", ", background ", " ", ";\n \n ", "\n"])), tokens.semantic.space[200], tokens.semantic.border.width.thin, tokens.semantic.border.width.thin, tokens.semantic.border.width.thin, tokens.semantic.border.width.thin, tokens.semantic.space[200], tokens.semantic.radius.sm, motion$2.duration.slow, motion$2.easing.standard, motion$2.duration.slow, motion$2.easing.standard, function (_a) {
|
|
4731
5034
|
var $hasGradient = _a.$hasGradient;
|
|
4732
|
-
return $hasGradient ? "\n margin-top: -".concat(
|
|
5035
|
+
return $hasGradient ? "\n margin-top: calc(-1 * ".concat(tokens.semantic.space[800], ");\n padding-top: ").concat(tokens.semantic.space[800], ";\n background: linear-gradient(\n to bottom,\n transparent 0%,\n ").concat(tokens.semantic.surface.raised, " 60%\n );\n ") : "\n background: transparent;\n ";
|
|
4733
5036
|
});
|
|
4734
5037
|
var CopyButton = function CopyButton(_a) {
|
|
4735
5038
|
var text = _a.text,
|
|
@@ -4913,23 +5216,23 @@ var CodeBlock = function CodeBlock(_a) {
|
|
|
4913
5216
|
})]
|
|
4914
5217
|
});
|
|
4915
5218
|
};
|
|
4916
|
-
var templateObject_1$h, templateObject_2$f, templateObject_3$
|
|
5219
|
+
var templateObject_1$h, templateObject_2$f, templateObject_3$f, templateObject_4$c, templateObject_5$a;
|
|
4917
5220
|
|
|
4918
5221
|
var StyledHeader$1 = styled__default.default.div.withConfig({
|
|
4919
5222
|
displayName: "DateGroup__StyledHeader",
|
|
4920
5223
|
componentId: "sc-9nfm1f-0"
|
|
4921
|
-
})(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n \n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n \n ", "\n"])),
|
|
5224
|
+
})(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n \n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n \n ", "\n"])), tokens.semantic.space[300], tokens.semantic.space[200], tokens.semantic.surface.base, tokens.semantic.border.width.thin, tokens.semantic.color.border["default"], function (_a) {
|
|
4922
5225
|
var $sticky = _a.$sticky;
|
|
4923
|
-
return $sticky && "\n position: sticky;\n top: 0;\n z-index: ".concat(
|
|
5226
|
+
return $sticky && "\n position: sticky;\n top: 0;\n z-index: ".concat(tokens.semantic.layer.sticky, ";\n box-shadow: ").concat(tokens.semantic.elevation.sticky, ";\n ");
|
|
4924
5227
|
});
|
|
4925
5228
|
var StyledLeftSection = styled__default.default.div.withConfig({
|
|
4926
5229
|
displayName: "DateGroup__StyledLeftSection",
|
|
4927
5230
|
componentId: "sc-9nfm1f-1"
|
|
4928
|
-
})(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])),
|
|
5231
|
+
})(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])), tokens.semantic.space[200]);
|
|
4929
5232
|
var StyledRightSection = styled__default.default.div.withConfig({
|
|
4930
5233
|
displayName: "DateGroup__StyledRightSection",
|
|
4931
5234
|
componentId: "sc-9nfm1f-2"
|
|
4932
|
-
})(templateObject_3$
|
|
5235
|
+
})(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])), tokens.semantic.space[300]);
|
|
4933
5236
|
var StyledContent = styled__default.default.div.withConfig({
|
|
4934
5237
|
displayName: "DateGroup__StyledContent",
|
|
4935
5238
|
componentId: "sc-9nfm1f-3"
|
|
@@ -5005,18 +5308,18 @@ var DateGroup = function DateGroup(_a) {
|
|
|
5005
5308
|
})]
|
|
5006
5309
|
});
|
|
5007
5310
|
};
|
|
5008
|
-
var templateObject_1$g, templateObject_2$e, templateObject_3$
|
|
5311
|
+
var templateObject_1$g, templateObject_2$e, templateObject_3$e, templateObject_4$b;
|
|
5009
5312
|
|
|
5010
|
-
var semantic$7 =
|
|
5313
|
+
var semantic$7 = tokens.semantic;
|
|
5011
5314
|
var StyledContainer$1 = styled__default.default.div.withConfig({
|
|
5012
5315
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5013
5316
|
return !prop.startsWith('$');
|
|
5014
5317
|
},
|
|
5015
5318
|
displayName: "EmptyState__StyledContainer",
|
|
5016
5319
|
componentId: "sc-1u5hxh-0"
|
|
5017
|
-
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n max-width: ", ";\n margin: 0 auto;\n padding: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n max-width: ", ";\n margin: 0 auto;\n padding: ", ";\n"])),
|
|
5320
|
+
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n max-width: ", ";\n margin: 0 auto;\n padding: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n max-width: ", ";\n margin: 0 auto;\n padding: ", ";\n"])), tokens.component.emptyState.maxWidth, function (_a) {
|
|
5018
5321
|
var $size = _a.$size;
|
|
5019
|
-
return $size === 'small' ? semantic$7.
|
|
5322
|
+
return $size === 'small' ? semantic$7.space[800] : $size === 'large' ? semantic$7.space[1400] : semantic$7.space[1000];
|
|
5020
5323
|
});
|
|
5021
5324
|
var StyledIllustration = styled__default.default.div.withConfig({
|
|
5022
5325
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -5026,20 +5329,20 @@ var StyledIllustration = styled__default.default.div.withConfig({
|
|
|
5026
5329
|
componentId: "sc-1u5hxh-1"
|
|
5027
5330
|
})(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: ", ";\n color: ", ";\n"], ["\n width: ", ";\n height: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: ", ";\n color: ", ";\n"])), function (_a) {
|
|
5028
5331
|
var $size = _a.$size;
|
|
5029
|
-
return $size === 'small' ?
|
|
5332
|
+
return $size === 'small' ? tokens.component.emptyState.illustration.small : $size === 'large' ? tokens.component.emptyState.illustration.large : tokens.component.emptyState.illustration.medium;
|
|
5030
5333
|
}, function (_a) {
|
|
5031
5334
|
var $size = _a.$size;
|
|
5032
|
-
return $size === 'small' ?
|
|
5033
|
-
}, semantic$7.
|
|
5335
|
+
return $size === 'small' ? tokens.component.emptyState.illustration.small : $size === 'large' ? tokens.component.emptyState.illustration.large : tokens.component.emptyState.illustration.medium;
|
|
5336
|
+
}, semantic$7.space[600], function (_a) {
|
|
5034
5337
|
var $variant = _a.$variant;
|
|
5035
|
-
return $variant === 'error' ? semantic$7.color.icon.
|
|
5338
|
+
return $variant === 'error' ? semantic$7.color.icon.danger : $variant === 'success' ? semantic$7.color.icon.success : semantic$7.color.icon.muted;
|
|
5036
5339
|
});
|
|
5037
5340
|
var StyledTextContainer = styled__default.default.div.withConfig({
|
|
5038
5341
|
displayName: "EmptyState__StyledTextContainer",
|
|
5039
5342
|
componentId: "sc-1u5hxh-2"
|
|
5040
|
-
})(templateObject_3$
|
|
5343
|
+
})(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n max-width: ", ";\n margin-bottom: ", ";\n"], ["\n max-width: ", ";\n margin-bottom: ", ";\n"
|
|
5041
5344
|
// Map illustration type to icon name
|
|
5042
|
-
])),
|
|
5345
|
+
])), tokens.component.emptyState.text.maxWidth, semantic$7.space[600]);
|
|
5043
5346
|
// Map illustration type to icon name
|
|
5044
5347
|
var illustrationToIcon = {
|
|
5045
5348
|
search: 'search',
|
|
@@ -5094,7 +5397,7 @@ var EmptyState = function EmptyState(_a) {
|
|
|
5094
5397
|
children: title
|
|
5095
5398
|
}), jsxRuntime.jsx("div", {
|
|
5096
5399
|
style: {
|
|
5097
|
-
marginTop: semantic$7.
|
|
5400
|
+
marginTop: semantic$7.space[300]
|
|
5098
5401
|
},
|
|
5099
5402
|
children: jsxRuntime.jsx(Typography, {
|
|
5100
5403
|
variant: "body",
|
|
@@ -5104,7 +5407,7 @@ var EmptyState = function EmptyState(_a) {
|
|
|
5104
5407
|
})]
|
|
5105
5408
|
}), (action || secondaryAction) && jsxRuntime.jsx(Box, {
|
|
5106
5409
|
width: "100%",
|
|
5107
|
-
maxWidth:
|
|
5410
|
+
maxWidth: tokens.component.emptyState.actions.maxWidth,
|
|
5108
5411
|
children: jsxRuntime.jsxs(Stack, {
|
|
5109
5412
|
direction: "column",
|
|
5110
5413
|
gap: "sm",
|
|
@@ -5124,27 +5427,25 @@ var EmptyState = function EmptyState(_a) {
|
|
|
5124
5427
|
})]
|
|
5125
5428
|
});
|
|
5126
5429
|
};
|
|
5127
|
-
var templateObject_1$f, templateObject_2$d, templateObject_3$
|
|
5430
|
+
var templateObject_1$f, templateObject_2$d, templateObject_3$d;
|
|
5128
5431
|
|
|
5129
|
-
var
|
|
5130
|
-
spacing$1 = _a$1.spacing.layout,
|
|
5131
|
-
border$2 = _a$1.border;
|
|
5432
|
+
var space$5 = tokens.semantic.space;
|
|
5132
5433
|
var FeatureBlockStyled = styled__default.default.div.withConfig({
|
|
5133
5434
|
displayName: "FeatureBlock__FeatureBlockStyled",
|
|
5134
5435
|
componentId: "sc-1mi4lso-0"
|
|
5135
|
-
})(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n
|
|
5436
|
+
})(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n /* The image isn't clickable, so it doesn't answer hover (issue 185, P5) */\n img {\n border-radius: ", ";\n }\n\n a {\n text-decoration: none;\n }\n"], ["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n /* The image isn't clickable, so it doesn't answer hover (issue 185, P5) */\n img {\n border-radius: ", ";\n }\n\n a {\n text-decoration: none;\n }\n"])), tokens.semantic.breakpoint.md, tokens.semantic.breakpoint.lg, space$5[1200], tokens.semantic.radius['2xl']);
|
|
5136
5437
|
var ImageWrapper = styled__default.default.div.withConfig({
|
|
5137
5438
|
displayName: "FeatureBlock__ImageWrapper",
|
|
5138
5439
|
componentId: "sc-1mi4lso-1"
|
|
5139
|
-
})(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n grid-column: span 12;\n\n @media (min-width: ", ") {\n grid-column: span 6;\n }\n"], ["\n grid-column: span 12;\n\n @media (min-width: ", ") {\n grid-column: span 6;\n }\n"])),
|
|
5440
|
+
})(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n grid-column: span 12;\n\n @media (min-width: ", ") {\n grid-column: span 6;\n }\n"], ["\n grid-column: span 12;\n\n @media (min-width: ", ") {\n grid-column: span 6;\n }\n"])), tokens.semantic.breakpoint.lg);
|
|
5140
5441
|
var ContentSection = styled__default.default.div.withConfig({
|
|
5141
5442
|
displayName: "FeatureBlock__ContentSection",
|
|
5142
5443
|
componentId: "sc-1mi4lso-2"
|
|
5143
|
-
})(templateObject_3$
|
|
5444
|
+
})(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n grid-column: span 12;\n margin-top: ", ";\n\n @media (min-width: ", ") {\n grid-column: span 6;\n margin-top: 0;\n padding-right: ", ";\n }\n\n @media (min-width: ", ") {\n padding-right: ", ";\n }\n"], ["\n grid-column: span 12;\n margin-top: ", ";\n\n @media (min-width: ", ") {\n grid-column: span 6;\n margin-top: 0;\n padding-right: ", ";\n }\n\n @media (min-width: ", ") {\n padding-right: ", ";\n }\n"])), space$5[600], tokens.semantic.breakpoint.lg, space$5[800], tokens.semantic.breakpoint.xl, space$5[2400]);
|
|
5144
5445
|
var ButtonWrapper = styled__default.default.div.withConfig({
|
|
5145
5446
|
displayName: "FeatureBlock__ButtonWrapper",
|
|
5146
5447
|
componentId: "sc-1mi4lso-3"
|
|
5147
|
-
})(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n button {\n margin-top: ", ";\n }\n"], ["\n button {\n margin-top: ", ";\n }\n"])),
|
|
5448
|
+
})(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n button {\n margin-top: ", ";\n }\n"], ["\n button {\n margin-top: ", ";\n }\n"])), space$5[400]);
|
|
5148
5449
|
var ContentWrapper = styled__default.default.div.withConfig({
|
|
5149
5450
|
displayName: "FeatureBlock__ContentWrapper",
|
|
5150
5451
|
componentId: "sc-1mi4lso-4"
|
|
@@ -5207,21 +5508,23 @@ var FeatureBlock = function FeatureBlock(_a) {
|
|
|
5207
5508
|
}), jsxRuntime.jsx(Divider, {})]
|
|
5208
5509
|
});
|
|
5209
5510
|
};
|
|
5210
|
-
var templateObject_1$e, templateObject_2$c, templateObject_3$
|
|
5511
|
+
var templateObject_1$e, templateObject_2$c, templateObject_3$c, templateObject_4$a, templateObject_5$9;
|
|
5211
5512
|
|
|
5212
|
-
var _a =
|
|
5213
|
-
|
|
5214
|
-
border$1 = _a.border,
|
|
5215
|
-
zIndex = _a.zIndex,
|
|
5513
|
+
var _a = tokens.semantic,
|
|
5514
|
+
border = _a.border,
|
|
5216
5515
|
elevation$1 = _a.elevation,
|
|
5217
5516
|
motion$1 = _a.motion,
|
|
5218
|
-
|
|
5219
|
-
_b =
|
|
5517
|
+
space$4 = _a.space,
|
|
5518
|
+
_b = tokens.component,
|
|
5220
5519
|
input$1 = _b.input,
|
|
5221
5520
|
field$3 = _b.field;
|
|
5222
5521
|
// Spacing comes from the semantic scales: no component spacing tokens (decision 0022).
|
|
5223
|
-
// The
|
|
5224
|
-
|
|
5522
|
+
// The trigger and options take their height from size.control.lg as a minimum and centre
|
|
5523
|
+
// their content (decision 0034). The small vertical padding only matters when a long
|
|
5524
|
+
// label wraps; a single line is shorter than the minimum.
|
|
5525
|
+
var controlPaddingX = tokens.semantic.space.inset.lg;
|
|
5526
|
+
var controlPaddingY = space$4[200];
|
|
5527
|
+
var controlHeight = tokens.semantic.size.control.lg;
|
|
5225
5528
|
var duration = motion$1.duration,
|
|
5226
5529
|
easing = motion$1.easing;
|
|
5227
5530
|
var DropdownContainer = styled__default.default.div.withConfig({
|
|
@@ -5234,16 +5537,16 @@ var DropdownTrigger = styled__default.default.button.withConfig({
|
|
|
5234
5537
|
},
|
|
5235
5538
|
displayName: "Dropdown__DropdownTrigger",
|
|
5236
5539
|
componentId: "sc-kz07c4-1"
|
|
5237
|
-
})(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n font: ", ";\n color: ", ";\n cursor: pointer;\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n cursor: not-allowed;\n }\n \n ", "\n"], ["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n font: ", ";\n color: ", ";\n cursor: pointer;\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n cursor: not-allowed;\n }\n \n ", "\n"])),
|
|
5540
|
+
})(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box; /* the min-height includes the border, without relying on a global reset */\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n font: ", ";\n color: ", ";\n cursor: pointer;\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n cursor: not-allowed;\n }\n \n ", "\n"], ["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box; /* the min-height includes the border, without relying on a global reset */\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n font: ", ";\n color: ", ";\n cursor: pointer;\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n cursor: not-allowed;\n }\n \n ", "\n"])), controlHeight, controlPaddingY, controlPaddingX, input$1["default"].backgroundColor, input$1["default"].borderWidth, function (_a) {
|
|
5238
5541
|
var $hasError = _a.$hasError;
|
|
5239
5542
|
return $hasError ? input$1.error.borderColor : input$1["default"].borderColor;
|
|
5240
|
-
}, input$1["default"].borderRadius, input$1["default"].font, input$1["default"].textColor, duration.
|
|
5543
|
+
}, input$1["default"].borderRadius, input$1["default"].font, input$1["default"].textColor, duration.moderate, easing.standard, duration.moderate, easing.standard, function (_a) {
|
|
5241
5544
|
var $hasError = _a.$hasError;
|
|
5242
5545
|
return $hasError ? input$1.error.hover.borderColor : input$1.hover.borderColor;
|
|
5243
5546
|
}, function (_a) {
|
|
5244
5547
|
var $hasError = _a.$hasError;
|
|
5245
5548
|
return $hasError ? input$1.error.focus.borderColor : input$1.focus.borderColor;
|
|
5246
|
-
}, input$1.focus.outline, border
|
|
5549
|
+
}, input$1.focus.outline, border.focusOffset, input$1.disabled.backgroundColor, input$1.disabled.textColor, input$1.disabled.borderColor, function (_a) {
|
|
5247
5550
|
var $isOpen = _a.$isOpen,
|
|
5248
5551
|
$hasError = _a.$hasError;
|
|
5249
5552
|
return $isOpen && "\n border-color: ".concat($hasError ? input$1.error.focus.borderColor : input$1.focus.borderColor, ";\n ");
|
|
@@ -5254,7 +5557,7 @@ var DropdownIcon = styled__default.default.div.withConfig({
|
|
|
5254
5557
|
},
|
|
5255
5558
|
displayName: "Dropdown__DropdownIcon",
|
|
5256
5559
|
componentId: "sc-kz07c4-2"
|
|
5257
|
-
})(templateObject_3$
|
|
5560
|
+
})(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-left: ", ";\n transition: transform ", " ", ";\n \n ", "\n\n ", " {\n transition: none;\n }\n"], ["\n display: flex;\n align-items: center;\n margin-left: ", ";\n transition: transform ", " ", ";\n \n ", "\n\n ", " {\n transition: none;\n }\n"])), space$4[200], duration.fast, easing.decelerate, function (_a) {
|
|
5258
5561
|
var $isOpen = _a.$isOpen;
|
|
5259
5562
|
return $isOpen && "\n transform: rotate(180deg);\n ";
|
|
5260
5563
|
}, reducedMotion);
|
|
@@ -5264,7 +5567,7 @@ var DropdownMenu = styled__default.default.div.withConfig({
|
|
|
5264
5567
|
},
|
|
5265
5568
|
displayName: "Dropdown__DropdownMenu",
|
|
5266
5569
|
componentId: "sc-kz07c4-3"
|
|
5267
|
-
})(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n z-index: ", ";\n background-color: ", ";\n /* A decorative outline: elevation separates the menu, and only the trigger is a control edge (decision 0025) */\n border: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n margin-top: ", ";\n overflow: hidden;\n opacity: ", ";\n visibility: ", ";\n transform: ", ";\n transition:
|
|
5570
|
+
})(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n z-index: ", ";\n background-color: ", ";\n /* A decorative outline: elevation separates the menu, and only the trigger is a control edge (decision 0025) */\n border: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n margin-top: ", ";\n overflow: hidden;\n opacity: ", ";\n visibility: ", ";\n transform: ", ";\n transition: opacity ", " ", ",\n visibility ", " ", ",\n transform ", " ", ";\n max-height: ", ";\n overflow-y: auto;\n\n ", " {\n transform: none;\n }\n"], ["\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n z-index: ", ";\n background-color: ", ";\n /* A decorative outline: elevation separates the menu, and only the trigger is a control edge (decision 0025) */\n border: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n margin-top: ", ";\n overflow: hidden;\n opacity: ", ";\n visibility: ", ";\n transform: ", ";\n transition: opacity ", " ", ",\n visibility ", " ", ",\n transform ", " ", ";\n max-height: ", ";\n overflow-y: auto;\n\n ", " {\n transform: none;\n }\n"])), tokens.semantic.layer.dropdown, input$1["default"].backgroundColor, border.emphasis, input$1["default"].borderRadius, elevation$1.floating, space$4[100], function (_a) {
|
|
5268
5571
|
var $isOpen = _a.$isOpen;
|
|
5269
5572
|
return $isOpen ? 1 : 0;
|
|
5270
5573
|
}, function (_a) {
|
|
@@ -5272,28 +5575,29 @@ var DropdownMenu = styled__default.default.div.withConfig({
|
|
|
5272
5575
|
return $isOpen ? 'visible' : 'hidden';
|
|
5273
5576
|
}, function (_a) {
|
|
5274
5577
|
var $isOpen = _a.$isOpen;
|
|
5275
|
-
return $isOpen ? 'translateY(0)' : "translateY(-".concat(
|
|
5276
|
-
}, duration.fast, easing.
|
|
5578
|
+
return $isOpen ? 'translateY(0)' : "translateY(calc(-1 * ".concat(tokens.semantic.motion.distance.sm, "))");
|
|
5579
|
+
}, duration.fast, easing.decelerate, duration.fast, easing.decelerate, duration.fast, easing.decelerate, tokens.semantic.size.menu.maxHeight, reducedMotion);
|
|
5277
5580
|
var DropdownOption = styled__default.default.button.withConfig({
|
|
5278
5581
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5279
5582
|
return !prop.startsWith('$');
|
|
5280
5583
|
},
|
|
5281
5584
|
displayName: "Dropdown__DropdownOption",
|
|
5282
5585
|
componentId: "sc-kz07c4-4"
|
|
5283
|
-
})(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n width: 100%;\n display:
|
|
5586
|
+
})(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n box-sizing: border-box; /* the min-height includes the border, without relying on a global reset */\n min-height: ", ";\n padding: ", " ", ";\n border: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ", color ", " ", ";\n\n /* The shared row states (decisions 0029, 0030): focus shows the hover state in grey; only the\n selected option is light blue, with its text darkening with the fill */\n ", "\n \n &:focus {\n outline: none;\n }\n \n &:not(:last-child) {\n border-bottom: ", ";\n }\n"], ["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n box-sizing: border-box; /* the min-height includes the border, without relying on a global reset */\n min-height: ", ";\n padding: ", " ", ";\n border: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ", color ", " ", ";\n\n /* The shared row states (decisions 0029, 0030): focus shows the hover state in grey; only the\n selected option is light blue, with its text darkening with the fill */\n ", "\n \n &:focus {\n outline: none;\n }\n \n &:not(:last-child) {\n border-bottom: ", ";\n }\n"])), space$4[200], controlHeight, controlPaddingY, controlPaddingX, input$1["default"].font, input$1["default"].textColor, duration.fast, easing.decelerate, duration.fast, easing.decelerate, function (_a) {
|
|
5284
5587
|
var $isSelected = _a.$isSelected,
|
|
5285
5588
|
$isFocused = _a.$isFocused;
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
}
|
|
5589
|
+
return interactiveRow({
|
|
5590
|
+
selected: $isSelected,
|
|
5591
|
+
focused: $isFocused
|
|
5592
|
+
});
|
|
5593
|
+
}, border.emphasis);
|
|
5290
5594
|
var StyledHelperText$3 = styled__default.default.div.withConfig({
|
|
5291
5595
|
displayName: "Dropdown__StyledHelperText",
|
|
5292
5596
|
componentId: "sc-kz07c4-5"
|
|
5293
5597
|
})(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"], ["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"])), field$3.helperText.typography, function (_a) {
|
|
5294
5598
|
var $hasError = _a.$hasError;
|
|
5295
5599
|
return $hasError ? field$3.helperText.colorError : field$3.helperText.color;
|
|
5296
|
-
},
|
|
5600
|
+
}, space$4[200]);
|
|
5297
5601
|
var Dropdown = function Dropdown(_a) {
|
|
5298
5602
|
var options = _a.options,
|
|
5299
5603
|
value = _a.value,
|
|
@@ -5416,7 +5720,7 @@ var Dropdown = function Dropdown(_a) {
|
|
|
5416
5720
|
htmlFor: dropdownId,
|
|
5417
5721
|
style: {
|
|
5418
5722
|
display: 'block',
|
|
5419
|
-
marginBottom:
|
|
5723
|
+
marginBottom: space$4[200]
|
|
5420
5724
|
},
|
|
5421
5725
|
children: jsxRuntime.jsx(Typography, {
|
|
5422
5726
|
variant: "label",
|
|
@@ -5446,7 +5750,7 @@ var Dropdown = function Dropdown(_a) {
|
|
|
5446
5750
|
role: "listbox",
|
|
5447
5751
|
"aria-labelledby": dropdownId,
|
|
5448
5752
|
children: options.map(function (option, index) {
|
|
5449
|
-
return jsxRuntime.
|
|
5753
|
+
return jsxRuntime.jsxs(DropdownOption, {
|
|
5450
5754
|
"$isSelected": option.id === value,
|
|
5451
5755
|
"$isFocused": index === focusedIndex,
|
|
5452
5756
|
onClick: function onClick() {
|
|
@@ -5454,7 +5758,11 @@ var Dropdown = function Dropdown(_a) {
|
|
|
5454
5758
|
},
|
|
5455
5759
|
role: "option",
|
|
5456
5760
|
"aria-selected": option.id === value,
|
|
5457
|
-
children: option.label
|
|
5761
|
+
children: [option.label, option.id === value && jsxRuntime.jsx(Icon, {
|
|
5762
|
+
name: "check",
|
|
5763
|
+
size: "sm",
|
|
5764
|
+
iconColor: "inherit"
|
|
5765
|
+
})]
|
|
5458
5766
|
}, option.id);
|
|
5459
5767
|
})
|
|
5460
5768
|
}), error && jsxRuntime.jsx(StyledHelperText$3, {
|
|
@@ -5469,9 +5777,9 @@ var Dropdown = function Dropdown(_a) {
|
|
|
5469
5777
|
})]
|
|
5470
5778
|
});
|
|
5471
5779
|
};
|
|
5472
|
-
var templateObject_1$d, templateObject_2$b, templateObject_3$
|
|
5780
|
+
var templateObject_1$d, templateObject_2$b, templateObject_3$b, templateObject_4$9, templateObject_5$8, templateObject_6$7;
|
|
5473
5781
|
|
|
5474
|
-
var semantic$6 =
|
|
5782
|
+
var semantic$6 = tokens.semantic;
|
|
5475
5783
|
var StyledList = styled__default.default.ul.withConfig({
|
|
5476
5784
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5477
5785
|
return !prop.startsWith('$');
|
|
@@ -5506,19 +5814,18 @@ var List = function List(_a) {
|
|
|
5506
5814
|
List.displayName = 'List';
|
|
5507
5815
|
var templateObject_1$c;
|
|
5508
5816
|
|
|
5509
|
-
var semantic$5 =
|
|
5510
|
-
var
|
|
5817
|
+
var semantic$5 = tokens.semantic;
|
|
5818
|
+
var space$3 = semantic$5.space,
|
|
5511
5819
|
color = semantic$5.color,
|
|
5512
|
-
border = semantic$5.border,
|
|
5513
5820
|
elevation = semantic$5.elevation,
|
|
5514
5821
|
motion = semantic$5.motion;
|
|
5515
5822
|
// ---------------------------------------------------------------------------
|
|
5516
5823
|
// Size map
|
|
5517
5824
|
// ---------------------------------------------------------------------------
|
|
5518
5825
|
var sizeToWidth = {
|
|
5519
|
-
small:
|
|
5520
|
-
medium:
|
|
5521
|
-
large:
|
|
5826
|
+
small: tokens.semantic.size.overlay.sm,
|
|
5827
|
+
medium: tokens.semantic.size.overlay.md,
|
|
5828
|
+
large: tokens.semantic.size.overlay.lg
|
|
5522
5829
|
};
|
|
5523
5830
|
// ---------------------------------------------------------------------------
|
|
5524
5831
|
// Animations
|
|
@@ -5535,7 +5842,7 @@ var scaleIn = styled.keyframes(templateObject_2$a || (templateObject_2$a = __mak
|
|
|
5535
5842
|
var StyledOverlay$1 = styled__default.default.div.withConfig({
|
|
5536
5843
|
displayName: "Modal__StyledOverlay",
|
|
5537
5844
|
componentId: "sc-1d3g5gh-0"
|
|
5538
|
-
})(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n position: fixed;\n inset: 0;\n background-color: ", ";\n z-index: ", ";\n ", "\n"], ["\n position: fixed;\n inset: 0;\n background-color: ", ";\n z-index: ", ";\n ", "\n"])),
|
|
5845
|
+
})(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n position: fixed;\n inset: 0;\n background-color: ", ";\n z-index: ", ";\n ", "\n"], ["\n position: fixed;\n inset: 0;\n background-color: ", ";\n z-index: ", ";\n ", "\n"])), semantic$5.surface.scrim, semantic$5.layer.modal, styled.css(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["animation: ", " ", " ", "", ";"], ["animation: ", " ", " ", "", ";"])), fadeIn$1, motion.duration.moderate, motion.easing.decelerate, function (_a) {
|
|
5539
5846
|
var $isExiting = _a.$isExiting;
|
|
5540
5847
|
return $isExiting && exitAnimation;
|
|
5541
5848
|
}));
|
|
@@ -5545,27 +5852,27 @@ var StyledDialog = styled__default.default.div.withConfig({
|
|
|
5545
5852
|
},
|
|
5546
5853
|
displayName: "Modal__StyledDialog",
|
|
5547
5854
|
componentId: "sc-1d3g5gh-1"
|
|
5548
|
-
})(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(1);\n z-index: ", ";\n\n width: ", ";\n max-width: calc(100vw - ", " * 2);\n max-height: calc(100vh - ", " * 2);\n\n display: flex;\n flex-direction: column;\n\n background-color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: hidden;\n\n ", "\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n\n /* Auto-fullscreen below md breakpoint (768px) */\n @media (max-width: ", ") {\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n top: 0;\n left: 0;\n transform: none;\n animation: ", " ", " ", "", ";\n }\n\n &:focus {\n outline: none;\n }\n\n"], ["\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(1);\n z-index: ", ";\n\n width: ", ";\n max-width: calc(100vw - ", " * 2);\n max-height: calc(100vh - ", " * 2);\n\n display: flex;\n flex-direction: column;\n\n background-color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: hidden;\n\n ", "\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n\n /* Auto-fullscreen below md breakpoint (768px) */\n @media (max-width: ", ") {\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n top: 0;\n left: 0;\n transform: none;\n animation: ", " ", " ", "", ";\n }\n\n &:focus {\n outline: none;\n }\n\n"])), semantic$5.
|
|
5855
|
+
})(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(1);\n z-index: ", ";\n\n width: ", ";\n max-width: calc(100vw - ", " * 2);\n max-height: calc(100vh - ", " * 2);\n\n display: flex;\n flex-direction: column;\n\n background-color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: hidden;\n\n ", "\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n\n /* Auto-fullscreen below md breakpoint (768px) */\n @media (max-width: ", ") {\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n top: 0;\n left: 0;\n transform: none;\n animation: ", " ", " ", "", ";\n }\n\n &:focus {\n outline: none;\n }\n\n"], ["\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(1);\n z-index: ", ";\n\n width: ", ";\n max-width: calc(100vw - ", " * 2);\n max-height: calc(100vh - ", " * 2);\n\n display: flex;\n flex-direction: column;\n\n background-color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: hidden;\n\n ", "\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n\n /* Auto-fullscreen below md breakpoint (768px) */\n @media (max-width: ", ") {\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n top: 0;\n left: 0;\n transform: none;\n animation: ", " ", " ", "", ";\n }\n\n &:focus {\n outline: none;\n }\n\n"])), semantic$5.layer.modal, function (_a) {
|
|
5549
5856
|
var $width = _a.$width;
|
|
5550
5857
|
return $width;
|
|
5551
|
-
},
|
|
5858
|
+
}, space$3[400], space$3[400], semantic$5.surface.raised, semantic$5.radius.xl, elevation.overlay, styled.css(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["animation: ", " ", " ", "", ";"], ["animation: ", " ", " ", "", ";"])), scaleIn, motion.duration.moderate, motion.easing.decelerate, function (_a) {
|
|
5552
5859
|
var $isExiting = _a.$isExiting;
|
|
5553
5860
|
return $isExiting && exitAnimation;
|
|
5554
|
-
}), reducedMotion, fadeIn$1, motion.duration.
|
|
5861
|
+
}), reducedMotion, fadeIn$1, motion.duration.moderate, motion.easing.decelerate, function (_a) {
|
|
5555
5862
|
var $isExiting = _a.$isExiting;
|
|
5556
5863
|
return $isExiting && exitAnimation;
|
|
5557
|
-
}, semantic$5.breakpoint.md, fadeIn$1, motion.duration.
|
|
5864
|
+
}, semantic$5.breakpoint.md, fadeIn$1, motion.duration.moderate, motion.easing.decelerate, function (_a) {
|
|
5558
5865
|
var $isExiting = _a.$isExiting;
|
|
5559
5866
|
return $isExiting && exitAnimation;
|
|
5560
5867
|
});
|
|
5561
5868
|
var StyledHeader = styled__default.default.div.withConfig({
|
|
5562
5869
|
displayName: "Modal__StyledHeader",
|
|
5563
5870
|
componentId: "sc-1d3g5gh-2"
|
|
5564
|
-
})(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", " 0;\n flex-shrink: 0;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", " 0;\n flex-shrink: 0;\n"])),
|
|
5871
|
+
})(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", " 0;\n flex-shrink: 0;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", " 0;\n flex-shrink: 0;\n"])), space$3[400], space$3[400]);
|
|
5565
5872
|
var StyledBody = styled__default.default.div.withConfig({
|
|
5566
5873
|
displayName: "Modal__StyledBody",
|
|
5567
5874
|
componentId: "sc-1d3g5gh-3"
|
|
5568
|
-
})(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n flex: 1 1 auto;\n overflow-y: auto;\n padding: ", " ", ";\n\n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n &::-webkit-scrollbar-track {\n background: ", ";\n }\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"], ["\n flex: 1 1 auto;\n overflow-y: auto;\n padding: ", " ", ";\n\n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n &::-webkit-scrollbar-track {\n background: ", ";\n }\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"])),
|
|
5875
|
+
})(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n flex: 1 1 auto;\n overflow-y: auto;\n padding: ", " ", ";\n\n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n &::-webkit-scrollbar-track {\n background: ", ";\n }\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"], ["\n flex: 1 1 auto;\n overflow-y: auto;\n padding: ", " ", ";\n\n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n &::-webkit-scrollbar-track {\n background: ", ";\n }\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"])), space$3[300], space$3[400], semantic$5.space[200], color.fill.muted, color.border["default"], semantic$5.radius.full, color.fill.inverse);
|
|
5569
5876
|
var StyledFooter = styled__default.default.div.withConfig({
|
|
5570
5877
|
displayName: "Modal__StyledFooter",
|
|
5571
5878
|
componentId: "sc-1d3g5gh-4"
|
|
@@ -5585,7 +5892,7 @@ var StyledFooter = styled__default.default.div.withConfig({
|
|
|
5585
5892
|
* - Locks body scroll while open.
|
|
5586
5893
|
*
|
|
5587
5894
|
* Composes: IconButton, Button, Typography, Stack, Divider
|
|
5588
|
-
*/])),
|
|
5895
|
+
*/])), space$3[200], space$3[400], space$3[400]);
|
|
5589
5896
|
// ---------------------------------------------------------------------------
|
|
5590
5897
|
// Component
|
|
5591
5898
|
// ---------------------------------------------------------------------------
|
|
@@ -5747,23 +6054,19 @@ var Modal = function Modal(_a) {
|
|
|
5747
6054
|
return /*#__PURE__*/reactDom.createPortal(modal, document.body);
|
|
5748
6055
|
};
|
|
5749
6056
|
Modal.displayName = 'Modal';
|
|
5750
|
-
var templateObject_1$b, templateObject_2$a, templateObject_3$
|
|
6057
|
+
var templateObject_1$b, templateObject_2$a, templateObject_3$a, templateObject_4$8, templateObject_5$7, templateObject_6$6, templateObject_7$5, templateObject_8$4, templateObject_9$3;
|
|
5751
6058
|
|
|
5752
|
-
var input =
|
|
5753
|
-
semantic$4 =
|
|
5754
|
-
var StyledInputBase = styled__default.default.input.withConfig({
|
|
5755
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5756
|
-
return !prop.startsWith('$');
|
|
5757
|
-
},
|
|
5758
|
-
displayName: "InputBase__StyledInputBase",
|
|
5759
|
-
componentId: "sc-1bpf4e8-0"
|
|
5760
|
-
})(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n /* Typography */\n font: ", ";\n color: ", ";\n \n /* Layout */\n width: 100%;\n padding: ", " ", ";\n \n /* Visual styling */\n background-color: ", ";\n \n border: ", " solid ", ";\n \n border-radius: ", ";\n \n /* Remove default appearance */\n appearance: none;\n outline: none;\n \n /* Transitions */\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n /* Placeholder */\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n \n /* Focus state */\n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n /* Hover state (only when not disabled) */\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n /* Disabled state */\n &:disabled {\n cursor: not-allowed;\n }\n \n /* Remove number input spinners */\n &[type='number']::-webkit-inner-spin-button,\n &[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n \n &[type='number'] {\n -moz-appearance: textfield;\n }\n"], ["\n /* Typography */\n font: ", ";\n color: ", ";\n \n /* Layout */\n width: 100%;\n padding: ", " ", ";\n \n /* Visual styling */\n background-color: ", ";\n \n border: ", " solid ", ";\n \n border-radius: ", ";\n \n /* Remove default appearance */\n appearance: none;\n outline: none;\n \n /* Transitions */\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n /* Placeholder */\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n \n /* Focus state */\n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n /* Hover state (only when not disabled) */\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n /* Disabled state */\n &:disabled {\n cursor: not-allowed;\n }\n \n /* Remove number input spinners */\n &[type='number']::-webkit-inner-spin-button,\n &[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n \n &[type='number'] {\n -moz-appearance: textfield;\n }\n"
|
|
6059
|
+
var input = tokens.component.input,
|
|
6060
|
+
semantic$4 = tokens.semantic;
|
|
5761
6061
|
/**
|
|
5762
|
-
*
|
|
5763
|
-
|
|
6062
|
+
* Styles shared by the single-line input and the textarea. Each element sets its
|
|
6063
|
+
* own min-height and padding. Interpolating a styled component into another's CSS
|
|
6064
|
+
* inserts its class selector, not its styles, so the sharing goes through `css`.
|
|
6065
|
+
*/
|
|
6066
|
+
var inputBaseStyles = styled.css(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n /* Typography */\n font: ", ";\n color: ", ";\n \n /* Layout */\n box-sizing: border-box; /* the min-height includes the border, without relying on a global reset */\n width: 100%;\n \n /* Visual styling */\n background-color: ", ";\n \n border: ", " solid ", ";\n \n border-radius: ", ";\n \n /* Remove default appearance */\n appearance: none;\n outline: none;\n \n /* Transitions */\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n /* Placeholder */\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n \n /* Focus state */\n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n /* Hover state (only when not disabled) */\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n /* Disabled state */\n &:disabled {\n cursor: not-allowed;\n }\n \n /* Remove number input spinners */\n &[type='number']::-webkit-inner-spin-button,\n &[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n \n &[type='number'] {\n -moz-appearance: textfield;\n }\n"], ["\n /* Typography */\n font: ", ";\n color: ", ";\n \n /* Layout */\n box-sizing: border-box; /* the min-height includes the border, without relying on a global reset */\n width: 100%;\n \n /* Visual styling */\n background-color: ", ";\n \n border: ", " solid ", ";\n \n border-radius: ", ";\n \n /* Remove default appearance */\n appearance: none;\n outline: none;\n \n /* Transitions */\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n /* Placeholder */\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n \n /* Focus state */\n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n /* Hover state (only when not disabled) */\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n /* Disabled state */\n &:disabled {\n cursor: not-allowed;\n }\n \n /* Remove number input spinners */\n &[type='number']::-webkit-inner-spin-button,\n &[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n \n &[type='number'] {\n -moz-appearance: textfield;\n }\n"])), input["default"].font, function (_a) {
|
|
5764
6067
|
var $disabled = _a.$disabled;
|
|
5765
6068
|
return $disabled ? input.disabled.textColor : input["default"].textColor;
|
|
5766
|
-
},
|
|
6069
|
+
}, function (_a) {
|
|
5767
6070
|
var $disabled = _a.$disabled;
|
|
5768
6071
|
return $disabled ? input.disabled.backgroundColor : input["default"].backgroundColor;
|
|
5769
6072
|
}, input["default"].borderWidth, function (_a) {
|
|
@@ -5772,13 +6075,23 @@ var StyledInputBase = styled__default.default.input.withConfig({
|
|
|
5772
6075
|
if ($disabled) return input.disabled.borderColor;
|
|
5773
6076
|
if ($hasError) return input.error.borderColor;
|
|
5774
6077
|
return input["default"].borderColor;
|
|
5775
|
-
}, input["default"].borderRadius,
|
|
6078
|
+
}, input["default"].borderRadius, tokens.semantic.motion.duration.moderate, tokens.semantic.motion.easing.standard, tokens.semantic.motion.duration.moderate, tokens.semantic.motion.easing.standard, input.placeholder.textColor, function (_a) {
|
|
5776
6079
|
var $hasError = _a.$hasError;
|
|
5777
6080
|
return $hasError ? input.error.focus.borderColor : input.focus.borderColor;
|
|
5778
6081
|
}, input.focus.outline, semantic$4.border.focusOffset, function (_a) {
|
|
5779
6082
|
var $hasError = _a.$hasError;
|
|
5780
6083
|
return $hasError ? input.error.hover.borderColor : input.hover.borderColor;
|
|
5781
6084
|
});
|
|
6085
|
+
var StyledInputBase = styled__default.default.input.withConfig({
|
|
6086
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
6087
|
+
return !prop.startsWith('$');
|
|
6088
|
+
},
|
|
6089
|
+
displayName: "InputBase__StyledInputBase",
|
|
6090
|
+
componentId: "sc-1bpf4e8-0"
|
|
6091
|
+
})(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n ", "\n min-height: ", ";\n padding: 0 ", ";\n"], ["\n ", "\n min-height: ", ";\n padding: 0 ", ";\n"
|
|
6092
|
+
/**
|
|
6093
|
+
* Base styled textarea with shared styling
|
|
6094
|
+
*/])), inputBaseStyles, semantic$4.size.control.lg, semantic$4.space.inset.lg);
|
|
5782
6095
|
/**
|
|
5783
6096
|
* Base styled textarea with shared styling
|
|
5784
6097
|
*/
|
|
@@ -5788,20 +6101,20 @@ var StyledTextAreaBase = styled__default.default.textarea.withConfig({
|
|
|
5788
6101
|
},
|
|
5789
6102
|
displayName: "InputBase__StyledTextAreaBase",
|
|
5790
6103
|
componentId: "sc-1bpf4e8-1"
|
|
5791
|
-
})(
|
|
5792
|
-
var templateObject_1$a, templateObject_2$9;
|
|
6104
|
+
})(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n ", "\n \n /* TextArea specific: a taller minimum for multi-line entry (decision 0034) */\n min-height: ", ";\n padding: ", " ", ";\n resize: vertical;\n"], ["\n ", "\n \n /* TextArea specific: a taller minimum for multi-line entry (decision 0034) */\n min-height: ", ";\n padding: ", " ", ";\n resize: vertical;\n"])), inputBaseStyles, input.textarea.minHeight, semantic$4.space.inset.md, semantic$4.space.inset.lg);
|
|
6105
|
+
var templateObject_1$a, templateObject_2$9, templateObject_3$9;
|
|
5793
6106
|
|
|
5794
|
-
var field$2 =
|
|
6107
|
+
var field$2 = tokens.component.field;
|
|
5795
6108
|
// Gaps come from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
5796
|
-
var
|
|
6109
|
+
var space$2 = tokens.semantic.space;
|
|
5797
6110
|
var StyledFieldContainer$2 = styled__default.default.div.withConfig({
|
|
5798
6111
|
displayName: "NumberInput__StyledFieldContainer",
|
|
5799
6112
|
componentId: "sc-qotc3w-0"
|
|
5800
|
-
})(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])),
|
|
6113
|
+
})(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])), space$2[200]);
|
|
5801
6114
|
var StyledLabel$3 = styled__default.default.label.withConfig({
|
|
5802
6115
|
displayName: "NumberInput__StyledLabel",
|
|
5803
6116
|
componentId: "sc-qotc3w-1"
|
|
5804
|
-
})(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"])),
|
|
6117
|
+
})(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"])), space$2[100], field$2.label.typography, field$2.label.color, field$2.label.colorDisabled);
|
|
5805
6118
|
var StyledRequiredIndicator$2 = styled__default.default.span.withConfig({
|
|
5806
6119
|
displayName: "NumberInput__StyledRequiredIndicator",
|
|
5807
6120
|
componentId: "sc-qotc3w-2"
|
|
@@ -5813,11 +6126,11 @@ var StyledInputWrapper$2 = styled__default.default.div.withConfig({
|
|
|
5813
6126
|
var StyledNumberInput = styled__default.default(StyledInputBase).withConfig({
|
|
5814
6127
|
displayName: "NumberInput__StyledNumberInput",
|
|
5815
6128
|
componentId: "sc-qotc3w-4"
|
|
5816
|
-
})(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n /* Add padding on the right to make room for stepper buttons */\n padding-right: ", ";\n"], ["\n /* Add padding on the right to make room for stepper buttons */\n padding-right: ", ";\n"])),
|
|
6129
|
+
})(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n /* Add padding on the right to make room for stepper buttons */\n padding-right: ", ";\n"], ["\n /* Add padding on the right to make room for stepper buttons */\n padding-right: ", ";\n"])), tokens.semantic.space[1000]);
|
|
5817
6130
|
var StyledStepperContainer = styled__default.default.div.withConfig({
|
|
5818
6131
|
displayName: "NumberInput__StyledStepperContainer",
|
|
5819
6132
|
componentId: "sc-qotc3w-5"
|
|
5820
|
-
})(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n"], ["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n"])),
|
|
6133
|
+
})(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n"], ["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n"])), tokens.semantic.space[200], tokens.semantic.space[200]);
|
|
5821
6134
|
var StyledHelperText$2 = styled__default.default.div.withConfig({
|
|
5822
6135
|
displayName: "NumberInput__StyledHelperText",
|
|
5823
6136
|
componentId: "sc-qotc3w-6"
|
|
@@ -6066,9 +6379,9 @@ var PageTitleStyled = styled__default.default.div.withConfig({
|
|
|
6066
6379
|
* ```
|
|
6067
6380
|
*
|
|
6068
6381
|
* For a back link, add an `IconButton` with your own `url` and `aria-label`.
|
|
6069
|
-
*/])),
|
|
6382
|
+
*/])), tokens.semantic.space[600], function (_a) {
|
|
6070
6383
|
var $hasBackButton = _a.$hasBackButton;
|
|
6071
|
-
return $hasBackButton ?
|
|
6384
|
+
return $hasBackButton ? tokens.semantic.space[0] : tokens.semantic.space[1200];
|
|
6072
6385
|
});
|
|
6073
6386
|
/**
|
|
6074
6387
|
* @deprecated PageTitle is a leftover from the personal site (its back button always links to `/music`)
|
|
@@ -6112,17 +6425,17 @@ var PageTitle = function PageTitle(_a) {
|
|
|
6112
6425
|
};
|
|
6113
6426
|
var templateObject_1$8;
|
|
6114
6427
|
|
|
6115
|
-
var field$1 =
|
|
6428
|
+
var field$1 = tokens.component.field;
|
|
6116
6429
|
// Gaps come from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
6117
|
-
var
|
|
6430
|
+
var space$1 = tokens.semantic.space;
|
|
6118
6431
|
var StyledFieldContainer$1 = styled__default.default.div.withConfig({
|
|
6119
6432
|
displayName: "PasswordField__StyledFieldContainer",
|
|
6120
6433
|
componentId: "sc-1p15zk0-0"
|
|
6121
|
-
})(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])),
|
|
6434
|
+
})(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])), space$1[200]);
|
|
6122
6435
|
var StyledLabel$2 = styled__default.default.label.withConfig({
|
|
6123
6436
|
displayName: "PasswordField__StyledLabel",
|
|
6124
6437
|
componentId: "sc-1p15zk0-1"
|
|
6125
|
-
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"])),
|
|
6438
|
+
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"])), space$1[100], field$1.label.typography, field$1.label.color, field$1.label.colorDisabled);
|
|
6126
6439
|
var StyledRequiredIndicator$1 = styled__default.default.span.withConfig({
|
|
6127
6440
|
displayName: "PasswordField__StyledRequiredIndicator",
|
|
6128
6441
|
componentId: "sc-1p15zk0-2"
|
|
@@ -6153,7 +6466,7 @@ var StyledToggleButton = styled__default.default.div.withConfig({
|
|
|
6153
6466
|
* required
|
|
6154
6467
|
* />
|
|
6155
6468
|
* ```
|
|
6156
|
-
*/])),
|
|
6469
|
+
*/])), tokens.semantic.space[200]);
|
|
6157
6470
|
/**
|
|
6158
6471
|
* PasswordField component for secure password input with visibility toggle
|
|
6159
6472
|
*
|
|
@@ -6246,8 +6559,8 @@ var PasswordField = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
6246
6559
|
PasswordField.displayName = 'PasswordField';
|
|
6247
6560
|
var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$6, templateObject_5$5, templateObject_6$4;
|
|
6248
6561
|
|
|
6249
|
-
var semantic$3 =
|
|
6250
|
-
component =
|
|
6562
|
+
var semantic$3 = tokens.semantic,
|
|
6563
|
+
component = tokens.component;
|
|
6251
6564
|
var StyledSearchContainer = styled__default.default.div.withConfig({
|
|
6252
6565
|
displayName: "SearchField__StyledSearchContainer",
|
|
6253
6566
|
componentId: "sc-qhz9i8-0"
|
|
@@ -6255,7 +6568,7 @@ var StyledSearchContainer = styled__default.default.div.withConfig({
|
|
|
6255
6568
|
var StyledInputWrapper = styled__default.default.div.withConfig({
|
|
6256
6569
|
displayName: "SearchField__StyledInputWrapper",
|
|
6257
6570
|
componentId: "sc-qhz9i8-1"
|
|
6258
|
-
})(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n transition: border-color ", " ", ", outline ", " ", ";\n \n ", "\n \n ", "\n \n &:hover:not([data-disabled='true']) {\n border-color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n transition: border-color ", " ", ", outline ", " ", ";\n \n ", "\n \n ", "\n \n &:hover:not([data-disabled='true']) {\n border-color: ", ";\n }\n"])), semantic$3.
|
|
6571
|
+
})(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n /* The field's height comes from size.control.lg as a minimum, matching the other fields\n (decision 0034); the padding only matters if the content grows past it */\n box-sizing: border-box;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n transition: border-color ", " ", ", outline ", " ", ";\n \n ", "\n \n ", "\n \n &:hover:not([data-disabled='true']) {\n border-color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n /* The field's height comes from size.control.lg as a minimum, matching the other fields\n (decision 0034); the padding only matters if the content grows past it */\n box-sizing: border-box;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n transition: border-color ", " ", ", outline ", " ", ";\n \n ", "\n \n ", "\n \n &:hover:not([data-disabled='true']) {\n border-color: ", ";\n }\n"])), semantic$3.space[200], semantic$3.size.control.lg, semantic$3.space[200], semantic$3.space[300], component.input["default"].backgroundColor, component.input["default"].borderWidth, component.input["default"].borderColor, component.input["default"].borderRadius, semantic$3.motion.duration.moderate, semantic$3.motion.easing.standard, semantic$3.motion.duration.moderate, semantic$3.motion.easing.standard, function (props) {
|
|
6259
6572
|
return props.$isFocused && "\n border-color: ".concat(component.input.focus.borderColor, ";\n outline: ").concat(component.input.focus.outline, ";\n outline-offset: ").concat(semantic$3.border.focusOffset, ";\n ");
|
|
6260
6573
|
}, function (props) {
|
|
6261
6574
|
return props.$disabled && "\n background-color: ".concat(component.input.disabled.backgroundColor, ";\n border-color: ").concat(component.input.disabled.borderColor, ";\n cursor: not-allowed;\n ");
|
|
@@ -6267,11 +6580,11 @@ var StyledInput = styled__default.default.input.withConfig({
|
|
|
6267
6580
|
var StyledSuggestionsList = styled__default.default.ul.withConfig({
|
|
6268
6581
|
displayName: "SearchField__StyledSuggestionsList",
|
|
6269
6582
|
componentId: "sc-qhz9i8-3"
|
|
6270
|
-
})(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n"], ["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n"])), semantic$3.
|
|
6583
|
+
})(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n\n /* The highlighted suggestion has keyboard focus, which is grey, not the light-blue selected\n treatment (decision 0029). Its row is the option's first child. While pressed, the row's own\n pressed state shows (decision 0030) */\n & > [data-highlighted] > :first-child:not(:active) {\n background-color: ", ";\n }\n"], ["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n\n /* The highlighted suggestion has keyboard focus, which is grey, not the light-blue selected\n treatment (decision 0029). Its row is the option's first child. While pressed, the row's own\n pressed state shows (decision 0030) */\n & > [data-highlighted] > :first-child:not(:active) {\n background-color: ", ";\n }\n"])), semantic$3.space[100], tokens.semantic.size.menu.maxHeight, semantic$3.surface.raised, semantic$3.border.width.thin, semantic$3.color.border["default"], semantic$3.radius.md, semantic$3.elevation.floating, semantic$3.space[100], semantic$3.layer.dropdown, rowStates.unselected.hover.background);
|
|
6271
6584
|
var StyledSectionHeader = styled__default.default.div.withConfig({
|
|
6272
6585
|
displayName: "SearchField__StyledSectionHeader",
|
|
6273
6586
|
componentId: "sc-qhz9i8-4"
|
|
6274
|
-
})(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n text-transform: uppercase;\n letter-spacing: ", ";\n"], ["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n text-transform: uppercase;\n letter-spacing: ", ";\n"])), semantic$3.
|
|
6587
|
+
})(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n text-transform: uppercase;\n letter-spacing: ", ";\n"], ["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n text-transform: uppercase;\n letter-spacing: ", ";\n"])), semantic$3.space[200], semantic$3.space[300], tokens.component.searchField.sectionHeader.typography, semantic$3.color.text.muted, tokens.component.searchField.sectionHeader.letterSpacing);
|
|
6275
6588
|
var debounce = function debounce(func, wait) {
|
|
6276
6589
|
var timeout = null;
|
|
6277
6590
|
return function () {
|
|
@@ -6559,7 +6872,7 @@ var SearchField = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
6559
6872
|
size: "xs"
|
|
6560
6873
|
}) : undefined,
|
|
6561
6874
|
interactive: true,
|
|
6562
|
-
|
|
6875
|
+
"data-highlighted": index === highlightedIndex || undefined,
|
|
6563
6876
|
spacing: "compact",
|
|
6564
6877
|
onClick: function onClick() {
|
|
6565
6878
|
return handleSuggestionClick(item);
|
|
@@ -6572,7 +6885,7 @@ var SearchField = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
6572
6885
|
SearchField.displayName = 'SearchField';
|
|
6573
6886
|
var templateObject_1$6, templateObject_2$6, templateObject_3$6, templateObject_4$5, templateObject_5$4;
|
|
6574
6887
|
|
|
6575
|
-
var semantic$2 =
|
|
6888
|
+
var semantic$2 = tokens.semantic;
|
|
6576
6889
|
// Fade in animation for overlay
|
|
6577
6890
|
var fadeIn = styled.keyframes(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"], ["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"
|
|
6578
6891
|
// Slide animations for each position
|
|
@@ -6588,7 +6901,7 @@ var StyledOverlay = styled__default.default.div.withConfig({
|
|
|
6588
6901
|
},
|
|
6589
6902
|
displayName: "Sheet__StyledOverlay",
|
|
6590
6903
|
componentId: "sc-8abisx-0"
|
|
6591
|
-
})(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: ", ";\n z-index: ", ";\n ", "\n"], ["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: ", ";\n z-index: ", ";\n ", "\n"])), semantic$2.
|
|
6904
|
+
})(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: ", ";\n z-index: ", ";\n ", "\n"], ["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: ", ";\n z-index: ", ";\n ", "\n"])), semantic$2.surface.scrim, semantic$2.layer.overlay, styled.css(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["animation: ", " ", " ", "", ";"], ["animation: ", " ", " ", "", ";"])), fadeIn, semantic$2.motion.duration.moderate, semantic$2.motion.easing.standard, function (_a) {
|
|
6592
6905
|
var $isExiting = _a.$isExiting;
|
|
6593
6906
|
return $isExiting && exitAnimation;
|
|
6594
6907
|
}));
|
|
@@ -6598,40 +6911,40 @@ var StyledSheet = styled__default.default.div.withConfig({
|
|
|
6598
6911
|
},
|
|
6599
6912
|
displayName: "Sheet__StyledSheet",
|
|
6600
6913
|
componentId: "sc-8abisx-1"
|
|
6601
|
-
})(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n position: fixed;\n background-color: ", ";\n box-shadow: ", ";\n z-index: ", ";\n overflow-y: auto;\n \n /* Position-specific styles */\n ", "\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n \n /* Focus trap styling */\n &:focus {\n outline: none;\n }\n\n \n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n \n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"], ["\n position: fixed;\n background-color: ", ";\n box-shadow: ", ";\n z-index: ", ";\n overflow-y: auto;\n \n /* Position-specific styles */\n ", "\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n \n /* Focus trap styling */\n &:focus {\n outline: none;\n }\n\n \n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n \n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"])), semantic$2.
|
|
6914
|
+
})(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n position: fixed;\n background-color: ", ";\n box-shadow: ", ";\n z-index: ", ";\n overflow-y: auto;\n \n /* Position-specific styles */\n ", "\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n \n /* Focus trap styling */\n &:focus {\n outline: none;\n }\n\n \n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n \n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"], ["\n position: fixed;\n background-color: ", ";\n box-shadow: ", ";\n z-index: ", ";\n overflow-y: auto;\n \n /* Position-specific styles */\n ", "\n\n ", " {\n animation: ", " ", " ", "", ";\n }\n \n /* Focus trap styling */\n &:focus {\n outline: none;\n }\n\n \n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n \n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"])), semantic$2.surface.base, semantic$2.elevation.overlay, semantic$2.layer.overlay, function (_a) {
|
|
6602
6915
|
var $position = _a.$position,
|
|
6603
6916
|
$variant = _a.$variant,
|
|
6604
6917
|
$width = _a.$width,
|
|
6605
6918
|
$height = _a.$height;
|
|
6606
6919
|
var isDrawer = $variant === 'drawer';
|
|
6607
|
-
var margin = isDrawer ? semantic$2.
|
|
6608
|
-
var borderRadius = isDrawer ? semantic$2.
|
|
6920
|
+
var margin = isDrawer ? semantic$2.space[400] : '0';
|
|
6921
|
+
var borderRadius = isDrawer ? semantic$2.radius.md : '0';
|
|
6609
6922
|
switch ($position) {
|
|
6610
6923
|
case 'right':
|
|
6611
|
-
return styled.css(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n top: ", ";\n right: ", ";\n bottom: ", ";\n width: ", ";\n max-width: calc(100vw - ", ");\n border-radius: ", " 0 0 ", ";\n animation: ", " ", " ", "", ";\n "], ["\n top: ", ";\n right: ", ";\n bottom: ", ";\n width: ", ";\n max-width: calc(100vw - ", ");\n border-radius: ", " 0 0 ", ";\n animation: ", " ", " ", "", ";\n "])), margin, margin, margin, $width, isDrawer ? "".concat(semantic$2.
|
|
6924
|
+
return styled.css(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n top: ", ";\n right: ", ";\n bottom: ", ";\n width: ", ";\n max-width: calc(100vw - ", ");\n border-radius: ", " 0 0 ", ";\n animation: ", " ", " ", "", ";\n "], ["\n top: ", ";\n right: ", ";\n bottom: ", ";\n width: ", ";\n max-width: calc(100vw - ", ");\n border-radius: ", " 0 0 ", ";\n animation: ", " ", " ", "", ";\n "])), margin, margin, margin, $width, isDrawer ? "".concat(semantic$2.space[400], " * 2") : '0px', borderRadius, borderRadius, slideInRight, semantic$2.motion.duration.moderate, semantic$2.motion.easing.standard, function (_a) {
|
|
6612
6925
|
var $isExiting = _a.$isExiting;
|
|
6613
6926
|
return $isExiting && exitAnimation;
|
|
6614
6927
|
});
|
|
6615
6928
|
case 'left':
|
|
6616
|
-
return styled.css(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n top: ", ";\n left: ", ";\n bottom: ", ";\n width: ", ";\n max-width: calc(100vw - ", ");\n border-radius: 0 ", " ", " 0;\n animation: ", " ", " ", "", ";\n "], ["\n top: ", ";\n left: ", ";\n bottom: ", ";\n width: ", ";\n max-width: calc(100vw - ", ");\n border-radius: 0 ", " ", " 0;\n animation: ", " ", " ", "", ";\n "])), margin, margin, margin, $width, isDrawer ? "".concat(semantic$2.
|
|
6929
|
+
return styled.css(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n top: ", ";\n left: ", ";\n bottom: ", ";\n width: ", ";\n max-width: calc(100vw - ", ");\n border-radius: 0 ", " ", " 0;\n animation: ", " ", " ", "", ";\n "], ["\n top: ", ";\n left: ", ";\n bottom: ", ";\n width: ", ";\n max-width: calc(100vw - ", ");\n border-radius: 0 ", " ", " 0;\n animation: ", " ", " ", "", ";\n "])), margin, margin, margin, $width, isDrawer ? "".concat(semantic$2.space[400], " * 2") : '0px', borderRadius, borderRadius, slideInLeft, semantic$2.motion.duration.moderate, semantic$2.motion.easing.standard, function (_a) {
|
|
6617
6930
|
var $isExiting = _a.$isExiting;
|
|
6618
6931
|
return $isExiting && exitAnimation;
|
|
6619
6932
|
});
|
|
6620
6933
|
case 'top':
|
|
6621
|
-
return styled.css(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n top: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: 0 0 ", " ", ";\n animation: ", " ", " ", "", ";\n "], ["\n top: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: 0 0 ", " ", ";\n animation: ", " ", " ", "", ";\n "])), margin, margin, margin, $height, isDrawer ? "".concat(semantic$2.
|
|
6934
|
+
return styled.css(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n top: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: 0 0 ", " ", ";\n animation: ", " ", " ", "", ";\n "], ["\n top: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: 0 0 ", " ", ";\n animation: ", " ", " ", "", ";\n "])), margin, margin, margin, $height, isDrawer ? "".concat(semantic$2.space[400], " * 2") : '0px', borderRadius, borderRadius, slideInTop, semantic$2.motion.duration.moderate, semantic$2.motion.easing.standard, function (_a) {
|
|
6622
6935
|
var $isExiting = _a.$isExiting;
|
|
6623
6936
|
return $isExiting && exitAnimation;
|
|
6624
6937
|
});
|
|
6625
6938
|
case 'bottom':
|
|
6626
|
-
return styled.css(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n bottom: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: ", " ", " 0 0;\n animation: ", " ", " ", "", ";\n "], ["\n bottom: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: ", " ", " 0 0;\n animation: ", " ", " ", "", ";\n "])), margin, margin, margin, $height, isDrawer ? "".concat(semantic$2.
|
|
6939
|
+
return styled.css(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n bottom: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: ", " ", " 0 0;\n animation: ", " ", " ", "", ";\n "], ["\n bottom: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: ", " ", " 0 0;\n animation: ", " ", " ", "", ";\n "])), margin, margin, margin, $height, isDrawer ? "".concat(semantic$2.space[400], " * 2") : '0px', borderRadius, borderRadius, slideInBottom, semantic$2.motion.duration.moderate, semantic$2.motion.easing.standard, function (_a) {
|
|
6627
6940
|
var $isExiting = _a.$isExiting;
|
|
6628
6941
|
return $isExiting && exitAnimation;
|
|
6629
6942
|
});
|
|
6630
6943
|
}
|
|
6631
|
-
}, reducedMotion, fadeIn, semantic$2.motion.duration.
|
|
6944
|
+
}, reducedMotion, fadeIn, semantic$2.motion.duration.moderate, semantic$2.motion.easing.standard, function (_a) {
|
|
6632
6945
|
var $isExiting = _a.$isExiting;
|
|
6633
6946
|
return $isExiting && exitAnimation;
|
|
6634
|
-
}, semantic$2.
|
|
6947
|
+
}, semantic$2.space[200], semantic$2.surface.raised, semantic$2.color.border["default"], semantic$2.radius.full, semantic$2.color.fill.inverse);
|
|
6635
6948
|
var StyledSheetContent = styled__default.default.div.withConfig({
|
|
6636
6949
|
displayName: "Sheet__StyledSheetContent",
|
|
6637
6950
|
componentId: "sc-8abisx-2"
|
|
@@ -6661,7 +6974,7 @@ var StyledSheetContent = styled__default.default.div.withConfig({
|
|
|
6661
6974
|
* <h2>Mobile Menu</h2>
|
|
6662
6975
|
* </Sheet>
|
|
6663
6976
|
* ```
|
|
6664
|
-
*/])), semantic$2.
|
|
6977
|
+
*/])), semantic$2.space[600]);
|
|
6665
6978
|
/**
|
|
6666
6979
|
* Sheet component for side panels and drawers
|
|
6667
6980
|
*
|
|
@@ -6696,9 +7009,9 @@ var Sheet = function Sheet(_a) {
|
|
|
6696
7009
|
_c = _a.variant,
|
|
6697
7010
|
variant = _c === void 0 ? 'sheet' : _c,
|
|
6698
7011
|
_d = _a.width,
|
|
6699
|
-
width = _d === void 0 ?
|
|
7012
|
+
width = _d === void 0 ? tokens.semantic.size.overlay.sm : _d,
|
|
6700
7013
|
_e = _a.height,
|
|
6701
|
-
height = _e === void 0 ?
|
|
7014
|
+
height = _e === void 0 ? tokens.semantic.size.overlay.sm : _e,
|
|
6702
7015
|
children = _a.children,
|
|
6703
7016
|
_f = _a.closeOnOverlayClick,
|
|
6704
7017
|
closeOnOverlayClick = _f === void 0 ? true : _f,
|
|
@@ -6803,7 +7116,7 @@ var Sheet = function Sheet(_a) {
|
|
|
6803
7116
|
Sheet.displayName = 'Sheet';
|
|
6804
7117
|
var templateObject_1$5, templateObject_2$5, templateObject_3$5, templateObject_4$4, templateObject_5$3, templateObject_6$3, templateObject_7$3, templateObject_8$3, templateObject_9$2, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1;
|
|
6805
7118
|
|
|
6806
|
-
var semantic$1 =
|
|
7119
|
+
var semantic$1 = tokens.semantic;
|
|
6807
7120
|
var StyledSliderContainer = styled__default.default.div.withConfig({
|
|
6808
7121
|
displayName: "Slider__StyledSliderContainer",
|
|
6809
7122
|
componentId: "sc-6mh2d4-0"
|
|
@@ -6814,51 +7127,63 @@ var StyledLabel$1 = styled__default.default.label.withConfig({
|
|
|
6814
7127
|
})(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n margin-bottom: ", ";\n"], ["\n font: ", ";\n color: ", ";\n margin-bottom: ", ";\n"])), semantic$1.typography.label, function (_a) {
|
|
6815
7128
|
var $disabled = _a.$disabled;
|
|
6816
7129
|
return $disabled ? semantic$1.color.text.disabled : semantic$1.color.text["default"];
|
|
6817
|
-
}, semantic$1.
|
|
7130
|
+
}, semantic$1.space[400]);
|
|
6818
7131
|
var StyledSliderTrackContainer = styled__default.default.div.withConfig({
|
|
6819
7132
|
displayName: "Slider__StyledSliderTrackContainer",
|
|
6820
7133
|
componentId: "sc-6mh2d4-2"
|
|
6821
|
-
})(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n height: ", ";\n display: flex;\n align-items: center;\n"], ["\n position: relative;\n width: 100%;\n height: ", ";\n display: flex;\n align-items: center;\n"])), semantic$1.
|
|
7134
|
+
})(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n height: ", ";\n display: flex;\n align-items: center;\n"], ["\n position: relative;\n width: 100%;\n height: ", ";\n display: flex;\n align-items: center;\n"])), semantic$1.space[1000]);
|
|
6822
7135
|
var StyledTrack = styled__default.default.div.withConfig({
|
|
6823
7136
|
displayName: "Slider__StyledTrack",
|
|
6824
7137
|
componentId: "sc-6mh2d4-3"
|
|
6825
|
-
})(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n height: ", ";\n background-color: ", ";\n border-radius: ", ";\n cursor: ", ";\n"], ["\n position: relative;\n width: 100%;\n height: ", ";\n background-color: ", ";\n border-radius: ", ";\n cursor: ", ";\n"])), semantic$1.
|
|
7138
|
+
})(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n height: ", ";\n background-color: ", ";\n border-radius: ", ";\n cursor: ", ";\n /* A vertical swipe over the track still scrolls the page */\n touch-action: pan-y;\n /* The thumbs measure their distance apart in cqw (1% of the track's width) */\n container-type: inline-size;\n\n /* Forced colours drop the track's fill, so it gets an edge; the thumb stays centred on it (decision 0038).\n A div gets no system disabled colour, so a disabled track sets GrayText itself. */\n ", " {\n border: ", " solid ", ";\n }\n"], ["\n position: relative;\n width: 100%;\n height: ", ";\n background-color: ", ";\n border-radius: ", ";\n cursor: ", ";\n /* A vertical swipe over the track still scrolls the page */\n touch-action: pan-y;\n /* The thumbs measure their distance apart in cqw (1% of the track's width) */\n container-type: inline-size;\n\n /* Forced colours drop the track's fill, so it gets an edge; the thumb stays centred on it (decision 0038).\n A div gets no system disabled colour, so a disabled track sets GrayText itself. */\n ", " {\n border: ", " solid ", ";\n }\n"])), semantic$1.space[100], function (_a) {
|
|
6826
7139
|
var $disabled = _a.$disabled;
|
|
6827
|
-
return $disabled ? semantic$1.color.
|
|
6828
|
-
}, semantic$1.
|
|
7140
|
+
return $disabled ? semantic$1.color.fill.disabled : tokens.component.track.background;
|
|
7141
|
+
}, semantic$1.radius.full, function (_a) {
|
|
6829
7142
|
var $disabled = _a.$disabled;
|
|
6830
7143
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
7144
|
+
}, forcedColors, semantic$1.border.width.thin, function (_a) {
|
|
7145
|
+
var $disabled = _a.$disabled;
|
|
7146
|
+
return $disabled ? 'GrayText' : 'CanvasText';
|
|
6831
7147
|
});
|
|
6832
7148
|
var StyledTrackFill = styled__default.default.div.withConfig({
|
|
6833
7149
|
displayName: "Slider__StyledTrackFill",
|
|
6834
7150
|
componentId: "sc-6mh2d4-4"
|
|
6835
|
-
})(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n position: absolute;\n height: 100%;\n background-color: ", ";\n border-radius: ", ";\n pointer-events: none;\n"], ["\n position: absolute;\n height: 100%;\n background-color: ", ";\n border-radius: ", ";\n pointer-events: none;\n"])), function (_a) {
|
|
7151
|
+
})(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n position: absolute;\n height: 100%;\n background-color: ", ";\n border-radius: ", ";\n pointer-events: none;\n\n /* The fill is the value, so it keeps a fill in forced colours (decision 0038) */\n ", " {\n forced-color-adjust: none;\n background-color: ", ";\n }\n"], ["\n position: absolute;\n height: 100%;\n background-color: ", ";\n border-radius: ", ";\n pointer-events: none;\n\n /* The fill is the value, so it keeps a fill in forced colours (decision 0038) */\n ", " {\n forced-color-adjust: none;\n background-color: ", ";\n }\n"])), function (_a) {
|
|
6836
7152
|
var $disabled = _a.$disabled;
|
|
6837
|
-
return $disabled ? semantic$1.color.icon.disabled : semantic$1.color.
|
|
6838
|
-
}, semantic$1.
|
|
7153
|
+
return $disabled ? semantic$1.color.icon.disabled : semantic$1.color.fill.emphasis;
|
|
7154
|
+
}, semantic$1.radius.full, forcedColors, function (_a) {
|
|
7155
|
+
var $disabled = _a.$disabled;
|
|
7156
|
+
return $disabled ? 'GrayText' : 'Highlight';
|
|
7157
|
+
});
|
|
6839
7158
|
var StyledThumb = styled__default.default.div.withConfig({
|
|
6840
7159
|
displayName: "Slider__StyledThumb",
|
|
6841
7160
|
componentId: "sc-6mh2d4-5"
|
|
6842
|
-
})(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n position: absolute;\n width: ", ";\n height: ", ";\n top: -", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n cursor: ", ";\n transform: translateX(-50%);\n transition: ", ";\n box-shadow: ", ";\n\n ", " {\n transition: none;\n }\n \n &:hover:not([aria-disabled=\"true\"]) {\n transform: translateX(-50%) scale(1.1);\n box-shadow: ", ";\n }\n \n &:focus-visible {\n outline: ", "
|
|
7161
|
+
})(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n position: absolute;\n width: ", ";\n height: ", ";\n top: calc(-1 * ", ");\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n cursor: ", ";\n /* The thumb takes every touch gesture, so a drag moves the value instead of scrolling */\n touch-action: none;\n transform: translateX(-50%);\n /* left is the thumb's position, set from the value: it glides there, as it always has (decision 0037) */\n transition: left ", " ", ",\n transform ", " ", ",\n box-shadow ", " ", ",\n background-color ", " ", ",\n border-color ", " ", ";\n box-shadow: ", ";\n\n /* The pointer target (WCAG 2.5.8, decision 0039): the thumb keeps its 20px look, and an\n invisible hit area centred on it takes pointer input instead, 24px for a mouse or pen and\n 44px on a touch screen. A range slider's two hit areas stop at the midpoint between the\n thumbs (--slider-reach, set from their positions), so they never overlap and a drag always\n takes the nearer thumb. The thumb itself takes no input, as its body can overlap the other\n thumb's half. */\n pointer-events: none;\n --slider-hit: ", ";\n @media (pointer: coarse) {\n --slider-hit: ", ";\n }\n --slider-hit-half: calc(var(--slider-hit) / 2);\n --slider-hit-start: ", ";\n --slider-hit-end: ", ";\n\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: calc(50% - var(--slider-hit-start));\n width: calc(var(--slider-hit-start) + var(--slider-hit-end));\n height: var(--slider-hit);\n transform: translateY(-50%);\n pointer-events: auto;\n }\n\n /* Without container query units the midpoint can't be measured, so the hit areas stay whole\n (where they overlap, the thumb drawn later wins) */\n @supports not (width: 1cqw) {\n &::before {\n left: calc(50% - var(--slider-hit-half));\n width: var(--slider-hit);\n }\n }\n\n ", " {\n transition: none;\n }\n \n &:hover:not([aria-disabled=\"true\"]) {\n transform: translateX(-50%) scale(1.1);\n box-shadow: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:active:not([aria-disabled=\"true\"]) {\n cursor: grabbing;\n transform: translateX(-50%) scale(0.95);\n }\n \n ", "\n"], ["\n position: absolute;\n width: ", ";\n height: ", ";\n top: calc(-1 * ", ");\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n cursor: ", ";\n /* The thumb takes every touch gesture, so a drag moves the value instead of scrolling */\n touch-action: none;\n transform: translateX(-50%);\n /* left is the thumb's position, set from the value: it glides there, as it always has (decision 0037) */\n transition: left ", " ", ",\n transform ", " ", ",\n box-shadow ", " ", ",\n background-color ", " ", ",\n border-color ", " ", ";\n box-shadow: ", ";\n\n /* The pointer target (WCAG 2.5.8, decision 0039): the thumb keeps its 20px look, and an\n invisible hit area centred on it takes pointer input instead, 24px for a mouse or pen and\n 44px on a touch screen. A range slider's two hit areas stop at the midpoint between the\n thumbs (--slider-reach, set from their positions), so they never overlap and a drag always\n takes the nearer thumb. The thumb itself takes no input, as its body can overlap the other\n thumb's half. */\n pointer-events: none;\n --slider-hit: ", ";\n @media (pointer: coarse) {\n --slider-hit: ", ";\n }\n --slider-hit-half: calc(var(--slider-hit) / 2);\n --slider-hit-start: ", ";\n --slider-hit-end: ", ";\n\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: calc(50% - var(--slider-hit-start));\n width: calc(var(--slider-hit-start) + var(--slider-hit-end));\n height: var(--slider-hit);\n transform: translateY(-50%);\n pointer-events: auto;\n }\n\n /* Without container query units the midpoint can't be measured, so the hit areas stay whole\n (where they overlap, the thumb drawn later wins) */\n @supports not (width: 1cqw) {\n &::before {\n left: calc(50% - var(--slider-hit-half));\n width: var(--slider-hit);\n }\n }\n\n ", " {\n transition: none;\n }\n \n &:hover:not([aria-disabled=\"true\"]) {\n transform: translateX(-50%) scale(1.1);\n box-shadow: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:active:not([aria-disabled=\"true\"]) {\n cursor: grabbing;\n transform: translateX(-50%) scale(0.95);\n }\n \n ", "\n"])), semantic$1.space[500], semantic$1.space[500], semantic$1.space[200], function (_a) {
|
|
6843
7162
|
var $disabled = _a.$disabled;
|
|
6844
|
-
return $disabled ? semantic$1.color.
|
|
7163
|
+
return $disabled ? semantic$1.color.fill.disabled : tokens.component.slider.thumb.background;
|
|
6845
7164
|
}, semantic$1.border.width.thick, function (_a) {
|
|
6846
7165
|
var $disabled = _a.$disabled;
|
|
6847
|
-
return $disabled ? semantic$1.color.icon.disabled : semantic$1.color.
|
|
6848
|
-
}, semantic$1.
|
|
7166
|
+
return $disabled ? semantic$1.color.icon.disabled : semantic$1.color.fill.emphasis;
|
|
7167
|
+
}, semantic$1.radius.full, function (_a) {
|
|
6849
7168
|
var $disabled = _a.$disabled;
|
|
6850
7169
|
return $disabled ? 'not-allowed' : 'grab';
|
|
6851
|
-
}, semantic$1.motion.
|
|
7170
|
+
}, semantic$1.motion.duration.fast, semantic$1.motion.easing.decelerate, semantic$1.motion.duration.fast, semantic$1.motion.easing.decelerate, semantic$1.motion.duration.fast, semantic$1.motion.easing.decelerate, semantic$1.motion.duration.fast, semantic$1.motion.easing.decelerate, semantic$1.motion.duration.fast, semantic$1.motion.easing.decelerate, tokens.component.slider.thumb.shadow["default"], semantic$1.size.pointerTarget, semantic$1.size.touchTarget, function (_a) {
|
|
7171
|
+
var $range = _a.$range;
|
|
7172
|
+
return $range === 'max' ? 'min(var(--slider-hit-half), var(--slider-reach))' : 'var(--slider-hit-half)';
|
|
7173
|
+
}, function (_a) {
|
|
7174
|
+
var $range = _a.$range;
|
|
7175
|
+
return $range === 'min' ? 'min(var(--slider-hit-half), var(--slider-reach))' : 'var(--slider-hit-half)';
|
|
7176
|
+
}, reducedMotion, tokens.component.slider.thumb.shadow.hover, semantic$1.border.focus, semantic$1.border.focusOffset, function (_a) {
|
|
6852
7177
|
var $active = _a.$active;
|
|
6853
|
-
return $active && "\n transform: translateX(-50%) scale(1.1);\n box-shadow: ".concat(
|
|
7178
|
+
return $active && "\n transform: translateX(-50%) scale(1.1);\n box-shadow: ".concat(tokens.component.slider.thumb.shadow.active, ";\n ");
|
|
6854
7179
|
});
|
|
6855
7180
|
var StyledValueLabel = styled__default.default.div.withConfig({
|
|
6856
7181
|
displayName: "Slider__StyledValueLabel",
|
|
6857
7182
|
componentId: "sc-6mh2d4-6"
|
|
6858
|
-
})(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n position: absolute;\n top: -", ";\n left: ", ";\n transform: translateX(-50%);\n padding: ", " ", ";\n background-color: ", ";\n color: ", ";\n font: ", ";\n border-radius: ", ";\n white-space: nowrap;\n pointer-events: none;\n opacity: ", ";\n \n &::after {\n content: '';\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n width: 0;\n height: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-top: ", " solid ", ";\n }\n"], ["\n position: absolute;\n top: -", ";\n left: ", ";\n transform: translateX(-50%);\n padding: ", " ", ";\n background-color: ", ";\n color: ", ";\n font: ", ";\n border-radius: ", ";\n white-space: nowrap;\n pointer-events: none;\n opacity: ", ";\n \n &::after {\n content: '';\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n width: 0;\n height: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-top: ", " solid ", ";\n }\n"])), semantic$1.
|
|
7183
|
+
})(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n position: absolute;\n top: calc(-1 * ", ");\n left: ", ";\n transform: translateX(-50%);\n padding: ", " ", ";\n background-color: ", ";\n color: ", ";\n font: ", ";\n border-radius: ", ";\n white-space: nowrap;\n pointer-events: none;\n opacity: ", ";\n \n &::after {\n content: '';\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n width: 0;\n height: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-top: ", " solid ", ";\n }\n"], ["\n position: absolute;\n top: calc(-1 * ", ");\n left: ", ";\n transform: translateX(-50%);\n padding: ", " ", ";\n background-color: ", ";\n color: ", ";\n font: ", ";\n border-radius: ", ";\n white-space: nowrap;\n pointer-events: none;\n opacity: ", ";\n \n &::after {\n content: '';\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n width: 0;\n height: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-top: ", " solid ", ";\n }\n"])), semantic$1.space[800], semantic$1.space[200], semantic$1.space[100], semantic$1.space[200], semantic$1.color.fill.emphasis, semantic$1.color.text.inverse, semantic$1.typography.caption, semantic$1.radius.sm, function (_a) {
|
|
6859
7184
|
var $disabled = _a.$disabled;
|
|
6860
7185
|
return $disabled ? semantic$1.opacity.disabled : semantic$1.opacity.full;
|
|
6861
|
-
}, semantic$1.
|
|
7186
|
+
}, semantic$1.space[100], semantic$1.space[100], semantic$1.space[100], semantic$1.color.fill.emphasis);
|
|
6862
7187
|
var StyledMinMaxLabels = styled__default.default.div.withConfig({
|
|
6863
7188
|
displayName: "Slider__StyledMinMaxLabels",
|
|
6864
7189
|
componentId: "sc-6mh2d4-7"
|
|
@@ -6886,7 +7211,7 @@ var StyledMinMaxLabels = styled__default.default.div.withConfig({
|
|
|
6886
7211
|
* onRangeChange={(values) => console.log(values)}
|
|
6887
7212
|
* />
|
|
6888
7213
|
* ```
|
|
6889
|
-
*/])), semantic$1.typography.body, semantic$1.color.text.
|
|
7214
|
+
*/])), semantic$1.typography.body, semantic$1.color.text.muted, semantic$1.space[100]);
|
|
6890
7215
|
/**
|
|
6891
7216
|
* Slider component for single value or range selection
|
|
6892
7217
|
*
|
|
@@ -6941,6 +7266,14 @@ var Slider = function Slider(_a) {
|
|
|
6941
7266
|
var _h = React.useState(null),
|
|
6942
7267
|
activeThumb = _h[0],
|
|
6943
7268
|
setActiveThumb = _h[1];
|
|
7269
|
+
// Removes the document listeners of a drag in progress
|
|
7270
|
+
var endDragRef = React.useRef(null);
|
|
7271
|
+
React.useEffect(function () {
|
|
7272
|
+
return function () {
|
|
7273
|
+
var _a;
|
|
7274
|
+
return (_a = endDragRef.current) === null || _a === void 0 ? void 0 : _a.call(endDragRef);
|
|
7275
|
+
};
|
|
7276
|
+
}, []);
|
|
6944
7277
|
// Determine if this is a range slider
|
|
6945
7278
|
var isRange = controlledRangeValue !== undefined || defaultRangeValue !== undefined || onRangeChange !== undefined;
|
|
6946
7279
|
// State for single slider
|
|
@@ -6987,9 +7320,11 @@ var Slider = function Slider(_a) {
|
|
|
6987
7320
|
setInternalRangeValue([orderedMin, orderedMax]);
|
|
6988
7321
|
onRangeChange === null || onRangeChange === void 0 ? void 0 : onRangeChange([orderedMin, orderedMax]);
|
|
6989
7322
|
};
|
|
6990
|
-
//
|
|
7323
|
+
// Pointer handlers: mouse, touch and pen
|
|
6991
7324
|
var handleTrackClick = function handleTrackClick(event) {
|
|
6992
7325
|
if (disabled) return;
|
|
7326
|
+
// A click on a thumb (or the end of a drag) leaves the value where the thumb put it
|
|
7327
|
+
if (event.target.closest('[role="slider"]')) return;
|
|
6993
7328
|
var newValue = positionToValue(event.clientX);
|
|
6994
7329
|
if (isRange) {
|
|
6995
7330
|
var minVal = currentRangeValue[0],
|
|
@@ -7005,33 +7340,47 @@ var Slider = function Slider(_a) {
|
|
|
7005
7340
|
handleSingleChange(newValue);
|
|
7006
7341
|
}
|
|
7007
7342
|
};
|
|
7008
|
-
var
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7343
|
+
var handleThumbPointerDown = function handleThumbPointerDown(thumb, event) {
|
|
7344
|
+
var _a, _b, _c;
|
|
7345
|
+
if (disabled) return;
|
|
7346
|
+
// Only the primary button drags; a touch or pen contact always counts
|
|
7347
|
+
if (event.pointerType === 'mouse' && event.button !== 0) return;
|
|
7348
|
+
event.preventDefault();
|
|
7349
|
+
(_a = endDragRef.current) === null || _a === void 0 ? void 0 : _a.call(endDragRef);
|
|
7350
|
+
setActiveThumb(thumb);
|
|
7351
|
+
var pointerId = event.pointerId;
|
|
7352
|
+
// Capture keeps the drag on this thumb when the pointer leaves it, or the window
|
|
7353
|
+
(_c = (_b = event.currentTarget).setPointerCapture) === null || _c === void 0 ? void 0 : _c.call(_b, pointerId);
|
|
7354
|
+
var handlePointerMove = function handlePointerMove(e) {
|
|
7355
|
+
if (e.pointerId !== pointerId) return;
|
|
7356
|
+
var newValue = positionToValue(e.clientX);
|
|
7357
|
+
if (isRange) {
|
|
7358
|
+
var minVal = currentRangeValue[0],
|
|
7359
|
+
maxVal = currentRangeValue[1];
|
|
7360
|
+
if (thumb === 'min') {
|
|
7361
|
+
handleRangeChange(newValue, maxVal);
|
|
7023
7362
|
} else {
|
|
7024
|
-
|
|
7363
|
+
handleRangeChange(minVal, newValue);
|
|
7025
7364
|
}
|
|
7026
|
-
}
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
document.
|
|
7033
|
-
document.
|
|
7365
|
+
} else {
|
|
7366
|
+
handleSingleChange(newValue);
|
|
7367
|
+
}
|
|
7368
|
+
};
|
|
7369
|
+
var endDrag = function endDrag() {
|
|
7370
|
+
setActiveThumb(null);
|
|
7371
|
+
document.removeEventListener('pointermove', handlePointerMove);
|
|
7372
|
+
document.removeEventListener('pointerup', handlePointerEnd);
|
|
7373
|
+
document.removeEventListener('pointercancel', handlePointerEnd);
|
|
7374
|
+
endDragRef.current = null;
|
|
7375
|
+
};
|
|
7376
|
+
// pointercancel fires when the browser takes the gesture over, so it ends the drag too
|
|
7377
|
+
var handlePointerEnd = function handlePointerEnd(e) {
|
|
7378
|
+
if (e.pointerId === pointerId) endDrag();
|
|
7034
7379
|
};
|
|
7380
|
+
document.addEventListener('pointermove', handlePointerMove);
|
|
7381
|
+
document.addEventListener('pointerup', handlePointerEnd);
|
|
7382
|
+
document.addEventListener('pointercancel', handlePointerEnd);
|
|
7383
|
+
endDragRef.current = endDrag;
|
|
7035
7384
|
};
|
|
7036
7385
|
// Keyboard navigation
|
|
7037
7386
|
var handleKeyDown = function handleKeyDown(thumb) {
|
|
@@ -7142,10 +7491,14 @@ var Slider = function Slider(_a) {
|
|
|
7142
7491
|
"aria-describedby": ariaDescribedBy,
|
|
7143
7492
|
"$disabled": disabled,
|
|
7144
7493
|
"$active": activeThumb === 'min',
|
|
7494
|
+
"$range": "min",
|
|
7145
7495
|
style: {
|
|
7146
|
-
left: "".concat(minPercent, "%")
|
|
7496
|
+
left: "".concat(minPercent, "%"),
|
|
7497
|
+
'--slider-reach': "".concat((maxPercent - minPercent) / 2, "cqw")
|
|
7498
|
+
},
|
|
7499
|
+
onPointerDown: function onPointerDown(event) {
|
|
7500
|
+
return handleThumbPointerDown('min', event);
|
|
7147
7501
|
},
|
|
7148
|
-
onMouseDown: handleThumbMouseDown('min'),
|
|
7149
7502
|
onKeyDown: handleKeyDown('min'),
|
|
7150
7503
|
children: showValueLabel && jsxRuntime.jsx(StyledValueLabel, {
|
|
7151
7504
|
"$disabled": disabled,
|
|
@@ -7163,10 +7516,14 @@ var Slider = function Slider(_a) {
|
|
|
7163
7516
|
"aria-describedby": ariaDescribedBy,
|
|
7164
7517
|
"$disabled": disabled,
|
|
7165
7518
|
"$active": activeThumb === 'max',
|
|
7519
|
+
"$range": "max",
|
|
7166
7520
|
style: {
|
|
7167
|
-
left: "".concat(maxPercent, "%")
|
|
7521
|
+
left: "".concat(maxPercent, "%"),
|
|
7522
|
+
'--slider-reach': "".concat((maxPercent - minPercent) / 2, "cqw")
|
|
7523
|
+
},
|
|
7524
|
+
onPointerDown: function onPointerDown(event) {
|
|
7525
|
+
return handleThumbPointerDown('max', event);
|
|
7168
7526
|
},
|
|
7169
|
-
onMouseDown: handleThumbMouseDown('max'),
|
|
7170
7527
|
onKeyDown: handleKeyDown('max'),
|
|
7171
7528
|
children: showValueLabel && jsxRuntime.jsx(StyledValueLabel, {
|
|
7172
7529
|
"$disabled": disabled,
|
|
@@ -7188,7 +7545,9 @@ var Slider = function Slider(_a) {
|
|
|
7188
7545
|
style: {
|
|
7189
7546
|
left: "".concat(singlePercent, "%")
|
|
7190
7547
|
},
|
|
7191
|
-
|
|
7548
|
+
onPointerDown: function onPointerDown(event) {
|
|
7549
|
+
return handleThumbPointerDown('single', event);
|
|
7550
|
+
},
|
|
7192
7551
|
onKeyDown: handleKeyDown('single'),
|
|
7193
7552
|
children: showValueLabel && jsxRuntime.jsx(StyledValueLabel, {
|
|
7194
7553
|
"$disabled": disabled,
|
|
@@ -7208,36 +7567,38 @@ var Slider = function Slider(_a) {
|
|
|
7208
7567
|
Slider.displayName = 'Slider';
|
|
7209
7568
|
var templateObject_1$4, templateObject_2$4, templateObject_3$4, templateObject_4$3, templateObject_5$2, templateObject_6$2, templateObject_7$2, templateObject_8$2;
|
|
7210
7569
|
|
|
7211
|
-
var semantic =
|
|
7570
|
+
var semantic = tokens.semantic;
|
|
7212
7571
|
var StyledTabList = styled__default.default.div.withConfig({
|
|
7213
7572
|
displayName: "TabBar__StyledTabList",
|
|
7214
7573
|
componentId: "sc-1g9ib0y-0"
|
|
7215
|
-
})(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n border-bottom: ", " solid ", ";\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n \n &::-webkit-scrollbar {\n height: ", ";\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n border-bottom: ", " solid ", ";\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n \n &::-webkit-scrollbar {\n height: ", ";\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n"])), semantic.border.width.thin, semantic.color.border.
|
|
7574
|
+
})(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n border-bottom: ", " solid ", ";\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n \n &::-webkit-scrollbar {\n height: ", ";\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n border-bottom: ", " solid ", ";\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n \n &::-webkit-scrollbar {\n height: ", ";\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n"])), semantic.border.width.thin, semantic.color.border.emphasis, tokens.component.tabBar.scrollbar.height, semantic.surface.raised, semantic.color.border["default"], semantic.radius.sm);
|
|
7216
7575
|
var StyledTab = styled__default.default.button.withConfig({
|
|
7217
7576
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
7218
7577
|
return !prop.startsWith('$');
|
|
7219
7578
|
},
|
|
7220
7579
|
displayName: "TabBar__StyledTab",
|
|
7221
7580
|
componentId: "sc-1g9ib0y-1"
|
|
7222
|
-
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n font: ", ";\n white-space: nowrap;\n cursor: ", ";\n border: none;\n background: transparent;\n transition: ", ";\n position: relative;\n \n /* Selected tab: the light-blue selected treatment plus a blue underline (decisions 0016, 0020).\n The text darkens with the fill on hover and press so every state stays at least 4.5:1. */\n border-radius: ", " ", " 0 0;\n background-color: ", ";\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n bottom: -1px;\n left: 0;\n right: 0;\n height: ", ";\n background-color: ", ";\n transition: ", ";\n }\n\n &:hover:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n /* Disabled state */\n opacity: ", ";\n \n /* Focus state */\n &:focus-visible {\n outline: ", "
|
|
7581
|
+
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n font: ", ";\n white-space: nowrap;\n cursor: ", ";\n border: none;\n background: transparent;\n transition: ", ";\n position: relative;\n \n /* Selected tab: the light-blue selected treatment plus a blue underline (decisions 0016, 0020).\n The text darkens with the fill on hover and press so every state stays at least 4.5:1. */\n border-radius: ", " ", " 0 0;\n background-color: ", ";\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n bottom: -1px;\n left: 0;\n right: 0;\n height: ", ";\n background-color: ", ";\n transition: ", ";\n }\n\n /* Forced colours drop the fill, so the selected tab's underline carries its state in the\n system selection colour (decision 0038) */\n ", " {\n &::after {\n forced-color-adjust: none;\n background-color: ", ";\n }\n }\n\n &:hover:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n /* Disabled state */\n opacity: ", ";\n \n /* Focus state */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n z-index: 1;\n }\n\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n font: ", ";\n white-space: nowrap;\n cursor: ", ";\n border: none;\n background: transparent;\n transition: ", ";\n position: relative;\n \n /* Selected tab: the light-blue selected treatment plus a blue underline (decisions 0016, 0020).\n The text darkens with the fill on hover and press so every state stays at least 4.5:1. */\n border-radius: ", " ", " 0 0;\n background-color: ", ";\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n bottom: -1px;\n left: 0;\n right: 0;\n height: ", ";\n background-color: ", ";\n transition: ", ";\n }\n\n /* Forced colours drop the fill, so the selected tab's underline carries its state in the\n system selection colour (decision 0038) */\n ", " {\n &::after {\n forced-color-adjust: none;\n background-color: ", ";\n }\n }\n\n &:hover:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n /* Disabled state */\n opacity: ", ";\n \n /* Focus state */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n z-index: 1;\n }\n\n"])), semantic.space[200], semantic.space[300], semantic.space[400], tokens.component.button.sizes.medium.font, function (props) {
|
|
7223
7582
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
7224
|
-
}, semantic.motion.
|
|
7225
|
-
return props.$isActive ? semantic.color.
|
|
7583
|
+
}, semantic.motion.transition.feedback, semantic.radius.sm, semantic.radius.sm, function (props) {
|
|
7584
|
+
return props.$isActive ? semantic.color.fill['accent-muted'] : 'transparent';
|
|
7226
7585
|
}, function (props) {
|
|
7227
|
-
return props.$isActive ? semantic.color.text.
|
|
7586
|
+
return props.$isActive ? semantic.color.text.accent : semantic.color.text.muted;
|
|
7228
7587
|
}, semantic.border.width.thick, function (props) {
|
|
7229
|
-
return props.$isActive ? semantic.color.
|
|
7230
|
-
}, semantic.motion.
|
|
7231
|
-
return props.$isActive ?
|
|
7588
|
+
return props.$isActive ? semantic.color.fill.accent : 'transparent';
|
|
7589
|
+
}, semantic.motion.transition.feedback, forcedColors, function (props) {
|
|
7590
|
+
return props.$isActive ? 'Highlight' : 'transparent';
|
|
7591
|
+
}, function (props) {
|
|
7592
|
+
return props.$isActive ? semantic.color.fill['accent-muted-hover'] : 'transparent';
|
|
7232
7593
|
}, function (props) {
|
|
7233
|
-
return props.$isActive ? semantic.color.text['
|
|
7594
|
+
return props.$isActive ? semantic.color.text['accent-hover'] : semantic.color.text["default"];
|
|
7234
7595
|
}, function (props) {
|
|
7235
|
-
return props.$isActive ? semantic.color.
|
|
7596
|
+
return props.$isActive ? semantic.color.fill['accent-muted-pressed'] : 'transparent';
|
|
7236
7597
|
}, function (props) {
|
|
7237
|
-
return props.$isActive ? semantic.color.text['
|
|
7598
|
+
return props.$isActive ? semantic.color.text['accent-pressed'] : semantic.color.text["default"];
|
|
7238
7599
|
}, function (props) {
|
|
7239
7600
|
return props.$disabled ? '0.5' : '1';
|
|
7240
|
-
}, semantic.border.
|
|
7601
|
+
}, semantic.border.focus, semantic.border.focusOffset);
|
|
7241
7602
|
var StyledBadge = styled__default.default.span.withConfig({
|
|
7242
7603
|
displayName: "TabBar__StyledBadge",
|
|
7243
7604
|
componentId: "sc-1g9ib0y-2"
|
|
@@ -7262,7 +7623,7 @@ var StyledBadge = styled__default.default.span.withConfig({
|
|
|
7262
7623
|
* onTabChange={setActiveTab}
|
|
7263
7624
|
* />
|
|
7264
7625
|
* ```
|
|
7265
|
-
*/])),
|
|
7626
|
+
*/])), tokens.component.tabBar.badge.size, tokens.component.tabBar.badge.size, semantic.space[100], tokens.component.tabBar.badge.typography, tokens.component.tabBar.badge.fontWeight, semantic.radius.full, semantic.color.fill.accent, semantic.color.text.inverse);
|
|
7266
7627
|
/**
|
|
7267
7628
|
* TabBar component for tabbed navigation
|
|
7268
7629
|
*
|
|
@@ -7408,17 +7769,17 @@ var TabBar = function TabBar(_a) {
|
|
|
7408
7769
|
TabBar.displayName = 'TabBar';
|
|
7409
7770
|
var templateObject_1$3, templateObject_2$3, templateObject_3$3;
|
|
7410
7771
|
|
|
7411
|
-
var field =
|
|
7772
|
+
var field = tokens.component.field;
|
|
7412
7773
|
// Gaps come from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
7413
|
-
var
|
|
7774
|
+
var space = tokens.semantic.space;
|
|
7414
7775
|
var StyledFieldContainer = styled__default.default.div.withConfig({
|
|
7415
7776
|
displayName: "TextField__StyledFieldContainer",
|
|
7416
7777
|
componentId: "sc-1ys3b0-0"
|
|
7417
|
-
})(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])),
|
|
7778
|
+
})(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])), space[200]);
|
|
7418
7779
|
var StyledLabel = styled__default.default.label.withConfig({
|
|
7419
7780
|
displayName: "TextField__StyledLabel",
|
|
7420
7781
|
componentId: "sc-1ys3b0-1"
|
|
7421
|
-
})(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"])),
|
|
7782
|
+
})(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n font: ", ";\n color: ", ";\n\n &[data-disabled='true'] {\n color: ", ";\n }\n"])), space[100], field.label.typography, field.label.color, field.label.colorDisabled);
|
|
7422
7783
|
var StyledRequiredIndicator = styled__default.default.span.withConfig({
|
|
7423
7784
|
displayName: "TextField__StyledRequiredIndicator",
|
|
7424
7785
|
componentId: "sc-1ys3b0-2"
|
|
@@ -7515,9 +7876,9 @@ var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4
|
|
|
7515
7876
|
var StyledContainer = styled__default.default.div.withConfig({
|
|
7516
7877
|
displayName: "TransactionListItem__StyledContainer",
|
|
7517
7878
|
componentId: "sc-7yunm0-0"
|
|
7518
|
-
})(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n ", "\n"], ["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n ", "\n"])),
|
|
7879
|
+
})(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n /* A clickable row uses the shared row states (decision 0030) */\n ", "\n"], ["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n /* A clickable row uses the shared row states (decision 0030) */\n ", "\n"])), tokens.component.transactionListItem.minHeight, tokens.semantic.space[300], tokens.semantic.space[300], tokens.semantic.surface.base, tokens.semantic.border.width.thin, tokens.semantic.color.border["default"], tokens.semantic.space[300], tokens.semantic.motion.duration.moderate, tokens.semantic.motion.easing.decelerate, function (_a) {
|
|
7519
7880
|
var $clickable = _a.$clickable;
|
|
7520
|
-
return $clickable && "\n cursor: pointer;\n
|
|
7881
|
+
return $clickable && "\n cursor: pointer;\n ".concat(interactiveRow(), "\n \n &:focus-visible {\n outline: ").concat(tokens.semantic.border.focus, ";\n outline-offset: calc(-1 * ").concat(tokens.semantic.border.focusOffset, ");\n }\n ");
|
|
7521
7882
|
});
|
|
7522
7883
|
var StyledAvatarSection = styled__default.default.div.withConfig({
|
|
7523
7884
|
displayName: "TransactionListItem__StyledAvatarSection",
|
|
@@ -7530,23 +7891,23 @@ var StyledMainContent = styled__default.default.div.withConfig({
|
|
|
7530
7891
|
var StyledTopRow = styled__default.default.div.withConfig({
|
|
7531
7892
|
displayName: "TransactionListItem__StyledTopRow",
|
|
7532
7893
|
componentId: "sc-7yunm0-3"
|
|
7533
|
-
})(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"])),
|
|
7894
|
+
})(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"])), tokens.semantic.space[200]);
|
|
7534
7895
|
var StyledMerchantSection = styled__default.default.div.withConfig({
|
|
7535
7896
|
displayName: "TransactionListItem__StyledMerchantSection",
|
|
7536
7897
|
componentId: "sc-7yunm0-4"
|
|
7537
|
-
})(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"])),
|
|
7898
|
+
})(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"])), tokens.semantic.space[200]);
|
|
7538
7899
|
var StyledBottomRow = styled__default.default.div.withConfig({
|
|
7539
7900
|
displayName: "TransactionListItem__StyledBottomRow",
|
|
7540
7901
|
componentId: "sc-7yunm0-5"
|
|
7541
|
-
})(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"])),
|
|
7902
|
+
})(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n"])), tokens.semantic.space[200]);
|
|
7542
7903
|
var StyledMetadata = styled__default.default.div.withConfig({
|
|
7543
7904
|
displayName: "TransactionListItem__StyledMetadata",
|
|
7544
7905
|
componentId: "sc-7yunm0-6"
|
|
7545
|
-
})(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])),
|
|
7906
|
+
})(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])), tokens.semantic.space[200]);
|
|
7546
7907
|
var StyledIconIndicator = styled__default.default.div.withConfig({
|
|
7547
7908
|
displayName: "TransactionListItem__StyledIconIndicator",
|
|
7548
7909
|
componentId: "sc-7yunm0-7"
|
|
7549
|
-
})(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n"])),
|
|
7910
|
+
})(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n"])), tokens.semantic.space[100], tokens.semantic.color.icon.muted);
|
|
7550
7911
|
var StyledTruncatedText = styled__default.default.span.withConfig({
|
|
7551
7912
|
displayName: "TransactionListItem__StyledTruncatedText",
|
|
7552
7913
|
componentId: "sc-7yunm0-8"
|
|
@@ -7722,15 +8083,15 @@ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4
|
|
|
7722
8083
|
// Exception to decision 0014: the gap props are typed as base spacing keys (public API),
|
|
7723
8084
|
// so they are looked up in base.spacing until they accept semantic keys.
|
|
7724
8085
|
// eslint-disable-next-line no-restricted-syntax
|
|
7725
|
-
var gapSpacing =
|
|
8086
|
+
var gapSpacing = tokens.base.spacing;
|
|
7726
8087
|
// Breakpoints using base tokens
|
|
7727
8088
|
var breakpoints = {
|
|
7728
|
-
xs:
|
|
7729
|
-
sm:
|
|
7730
|
-
md:
|
|
7731
|
-
lg:
|
|
7732
|
-
xl:
|
|
7733
|
-
'2xl':
|
|
8089
|
+
xs: tokens.semantic.breakpoint.xs,
|
|
8090
|
+
sm: tokens.semantic.breakpoint.sm,
|
|
8091
|
+
md: tokens.semantic.breakpoint.md,
|
|
8092
|
+
lg: tokens.semantic.breakpoint.lg,
|
|
8093
|
+
xl: tokens.semantic.breakpoint.xl,
|
|
8094
|
+
'2xl': tokens.semantic.breakpoint['2xl']
|
|
7734
8095
|
};
|
|
7735
8096
|
// Media query helpers
|
|
7736
8097
|
var media = {
|