@common-origin/design-system 2.18.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 +954 -617
- package/dist/client.esm.js.map +1 -1
- package/dist/client.js +954 -617
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Chip/shared/types.d.ts +3 -1
- package/dist/components/atoms/Chip/shared/utils.d.ts +2 -3
- package/dist/data.esm.js +261 -14
- package/dist/data.esm.js.map +1 -1
- package/dist/data.js +261 -14
- 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 +257 -12
- package/dist/tokens/index.esm.js +261 -14
- package/dist/tokens/index.esm.js.map +1 -1
- package/dist/tokens/index.js +261 -14
- 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 -1204
- package/dist/tokens.css +710 -430
- package/dist/types/tokens.d.ts +3 -1204
- package/package.json +4 -2
package/dist/client.esm.js
CHANGED
|
@@ -103,13 +103,57 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
103
103
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
+
// Components read tokens as CSS variables, with the resolved value as the fallback (decision 0041).
|
|
107
|
+
// A product that loads tokens.css can change a token for a region (a density or motion mode, a
|
|
108
|
+
// theme); one that doesn't renders exactly the resolved values.
|
|
109
|
+
/**
|
|
110
|
+
* The CSS variable tokens.css declares for a token path: Style Dictionary's `name/kebab` with the
|
|
111
|
+
* `co` prefix. `semantic.color.text.default` is `--co-semantic-color-text-default`, and
|
|
112
|
+
* `semantic.border.focusOffset` is `--co-semantic-border-focus-offset`.
|
|
113
|
+
*/
|
|
114
|
+
function cssVariableName(path) {
|
|
115
|
+
return "--".concat(__spreadArray(['co'], path, true).join('-').replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase());
|
|
116
|
+
}
|
|
117
|
+
/** Breakpoints stay values: a CSS variable can't be used in a media query */
|
|
118
|
+
var keepsValue = function keepsValue(path) {
|
|
119
|
+
return path[1] === 'breakpoint';
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* A copy of a token tree with the same shape, where every value reads its CSS variable and falls
|
|
123
|
+
* back to the resolved value: `var(--co-semantic-color-text-default, #212529)`.
|
|
124
|
+
*/
|
|
125
|
+
function withCssVariables(tree, path) {
|
|
126
|
+
if (path === void 0) {
|
|
127
|
+
path = [];
|
|
128
|
+
}
|
|
129
|
+
return Object.fromEntries(Object.entries(tree).map(function (_a) {
|
|
130
|
+
var key = _a[0],
|
|
131
|
+
value = _a[1];
|
|
132
|
+
var at = __spreadArray(__spreadArray([], path, true), [key], false);
|
|
133
|
+
if (typeof value !== 'string') return [key, withCssVariables(value, at)];
|
|
134
|
+
return [key, keepsValue(at) ? value : "var(".concat(cssVariableName(at), ", ").concat(value, ")")];
|
|
135
|
+
}));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The tokens as components read them (decision 0041): the same shape and type as `tokens.json`,
|
|
140
|
+
* with every value a CSS variable that falls back to the resolved value, so a region can change a
|
|
141
|
+
* token through tokens.css. Breakpoints stay values.
|
|
142
|
+
*
|
|
143
|
+
* Use the resolved values from `tokens.json` instead where a value is read as data rather than
|
|
144
|
+
* CSS, such as a duration parsed for a timer.
|
|
145
|
+
*
|
|
146
|
+
* Jest maps this module to `tokens.json` (jest.config.js), so unit tests assert resolved values;
|
|
147
|
+
* the browser specs check the variables.
|
|
148
|
+
*/
|
|
149
|
+
var tokens = withCssVariables(tokensJson);
|
|
150
|
+
|
|
106
151
|
// Destructure tokens
|
|
107
|
-
var semantic$
|
|
108
|
-
var initials =
|
|
109
|
-
var color$b = semantic$
|
|
110
|
-
size$
|
|
111
|
-
|
|
112
|
-
var radius$5 = border$b.radius;
|
|
152
|
+
var semantic$l = tokens.semantic;
|
|
153
|
+
var initials = tokens.component.avatar.initials;
|
|
154
|
+
var color$b = semantic$l.color,
|
|
155
|
+
size$3 = semantic$l.size;
|
|
156
|
+
var radius$6 = semantic$l.radius;
|
|
113
157
|
var AvatarContainer = styled.div.withConfig({
|
|
114
158
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
115
159
|
return !prop.startsWith('$');
|
|
@@ -118,25 +162,25 @@ var AvatarContainer = styled.div.withConfig({
|
|
|
118
162
|
componentId: "sc-ezn4ax-0"
|
|
119
163
|
})(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) {
|
|
120
164
|
var $size = _a.$size;
|
|
121
|
-
return size$
|
|
165
|
+
return size$3.avatar[$size];
|
|
122
166
|
}, function (_a) {
|
|
123
167
|
var $size = _a.$size;
|
|
124
|
-
return size$
|
|
125
|
-
}, radius$
|
|
168
|
+
return size$3.avatar[$size];
|
|
169
|
+
}, radius$6.full, color$b.fill.muted);
|
|
126
170
|
var AvatarImage = styled.img.withConfig({
|
|
127
171
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
128
172
|
return !prop.startsWith('$');
|
|
129
173
|
},
|
|
130
174
|
displayName: "Avatar__AvatarImage",
|
|
131
175
|
componentId: "sc-ezn4ax-1"
|
|
132
|
-
})(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$
|
|
176
|
+
})(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);
|
|
133
177
|
var AvatarInitials = styled.span.withConfig({
|
|
134
178
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
135
179
|
return !prop.startsWith('$');
|
|
136
180
|
},
|
|
137
181
|
displayName: "Avatar__AvatarInitials",
|
|
138
182
|
componentId: "sc-ezn4ax-2"
|
|
139
|
-
})(templateObject_3$
|
|
183
|
+
})(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"
|
|
140
184
|
// Helper function to get initials from name
|
|
141
185
|
])), initials.fontFamily, initials.fontWeight, function (_a) {
|
|
142
186
|
var $size = _a.$size;
|
|
@@ -195,16 +239,16 @@ var Avatar = function Avatar(_a) {
|
|
|
195
239
|
})
|
|
196
240
|
}));
|
|
197
241
|
};
|
|
198
|
-
var templateObject_1$M, templateObject_2$y, templateObject_3$
|
|
242
|
+
var templateObject_1$M, templateObject_2$y, templateObject_3$w;
|
|
199
243
|
|
|
200
244
|
// Breakpoints from the semantic tokens (decision 0014)
|
|
201
245
|
var breakpoints$1 = {
|
|
202
|
-
xs:
|
|
203
|
-
sm:
|
|
204
|
-
md:
|
|
205
|
-
lg:
|
|
206
|
-
xl:
|
|
207
|
-
'2xl':
|
|
246
|
+
xs: tokens.semantic.breakpoint.xs,
|
|
247
|
+
sm: tokens.semantic.breakpoint.sm,
|
|
248
|
+
md: tokens.semantic.breakpoint.md,
|
|
249
|
+
lg: tokens.semantic.breakpoint.lg,
|
|
250
|
+
xl: tokens.semantic.breakpoint.xl,
|
|
251
|
+
'2xl': tokens.semantic.breakpoint['2xl']
|
|
208
252
|
};
|
|
209
253
|
// Media query helpers
|
|
210
254
|
var media$1 = {
|
|
@@ -215,6 +259,16 @@ var media$1 = {
|
|
|
215
259
|
xl: "@media (min-width: ".concat(breakpoints$1.xl, ")"),
|
|
216
260
|
'2xl': "@media (min-width: ".concat(breakpoints$1['2xl'], ")")
|
|
217
261
|
};
|
|
262
|
+
// Windows Contrast Themes and other forced-colours modes (decision 0038). The browser swaps in
|
|
263
|
+
// the user's system colours, drops background colours and box-shadows, and keeps borders and
|
|
264
|
+
// outlines. Inside this query, give a control that shows its edge with a fill alone a border,
|
|
265
|
+
// and draw selected and checked states with system colours: ButtonText for control edges,
|
|
266
|
+
// Highlight and HighlightText for selected and checked, GrayText for disabled, CanvasText for
|
|
267
|
+
// content. Use forced-color-adjust: none only on a fill that carries state.
|
|
268
|
+
var forcedColors = '@media (forced-colors: active)';
|
|
269
|
+
/** A control's edge in forced colours, for a control that shows its edge with a fill alone. The
|
|
270
|
+
* border follows the text colour the browser picks: ButtonText, LinkText, or GrayText when disabled. */
|
|
271
|
+
var forcedColorsEdge = "".concat(forcedColors, " {\n border: ").concat(tokens.semantic.border.width.thin, " solid currentColor;\n}");
|
|
218
272
|
// Wrap fallbacks for people who ask for less motion (decision 0005): movement becomes
|
|
219
273
|
// an instant change or a simple fade. Colour and opacity transitions need no fallback.
|
|
220
274
|
var reducedMotion = '@media (prefers-reduced-motion: reduce)';
|
|
@@ -226,25 +280,124 @@ var fadeOut$1 = keyframes(templateObject_1$L || (templateObject_1$L = __makeTemp
|
|
|
226
280
|
// so it isn't restarted, and the fade runs on top of it. A fade is already the
|
|
227
281
|
// reduced-motion form, so it needs no fallback of its own. While it fades, the backdrop
|
|
228
282
|
// still catches clicks (so they can't reach the page behind it) and the panel is inert.
|
|
283
|
+
// Exits accelerate: things leaving speed up as they go (decision 0037).
|
|
229
284
|
])));
|
|
230
285
|
// Exit for overlays that unmount (use with usePresence). Append `exitAnimation` to each of
|
|
231
286
|
// the element's `animation` declarations while it exits: the entrance stays in the list,
|
|
232
287
|
// so it isn't restarted, and the fade runs on top of it. A fade is already the
|
|
233
288
|
// reduced-motion form, so it needs no fallback of its own. While it fades, the backdrop
|
|
234
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).
|
|
235
291
|
var exitAnimation = css(templateObject_2$x || (templateObject_2$x = __makeTemplateObject([", ", " ", " ", " forwards"], [", ", " ", " ", " forwards"
|
|
236
292
|
// Content for screen readers only. The 1px size and -1px margin are part of the standard
|
|
237
293
|
// visually-hidden technique, not design values, so they aren't tokens.
|
|
238
|
-
])), fadeOut$1,
|
|
294
|
+
])), fadeOut$1, tokens.semantic.motion.duration.fast, tokens.semantic.motion.easing.accelerate);
|
|
239
295
|
// Content for screen readers only. The 1px size and -1px margin are part of the standard
|
|
240
296
|
// visually-hidden technique, not design values, so they aren't tokens.
|
|
241
|
-
var visuallyHidden = css(templateObject_3$
|
|
242
|
-
|
|
297
|
+
var visuallyHidden = 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"
|
|
298
|
+
// One interaction pattern for rows and items: list items, menu and listbox options, sidebars
|
|
299
|
+
// (decision 0030). Unselected rows follow the naked Button's ladder; selected rows follow the
|
|
300
|
+
// light-blue selected ladder, with the text darkening with its fill (decision 0016). Unselected
|
|
301
|
+
// rows leave their text colour to the component, so a destructive row can stay red.
|
|
302
|
+
])));
|
|
303
|
+
// One interaction pattern for rows and items: list items, menu and listbox options, sidebars
|
|
304
|
+
// (decision 0030). Unselected rows follow the naked Button's ladder; selected rows follow the
|
|
305
|
+
// light-blue selected ladder, with the text darkening with its fill (decision 0016). Unselected
|
|
306
|
+
// rows leave their text colour to the component, so a destructive row can stay red.
|
|
307
|
+
var _a$b = tokens.semantic.color,
|
|
308
|
+
rowFill = _a$b.fill,
|
|
309
|
+
rowText = _a$b.text;
|
|
310
|
+
var rowStates = {
|
|
311
|
+
unselected: {
|
|
312
|
+
rest: {
|
|
313
|
+
background: 'transparent'
|
|
314
|
+
},
|
|
315
|
+
hover: {
|
|
316
|
+
background: rowFill.muted
|
|
317
|
+
},
|
|
318
|
+
pressed: {
|
|
319
|
+
background: rowFill["default"]
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
selected: {
|
|
323
|
+
rest: {
|
|
324
|
+
background: rowFill['accent-muted'],
|
|
325
|
+
text: rowText.accent
|
|
326
|
+
},
|
|
327
|
+
hover: {
|
|
328
|
+
background: rowFill['accent-muted-hover'],
|
|
329
|
+
text: rowText['accent-hover']
|
|
330
|
+
},
|
|
331
|
+
pressed: {
|
|
332
|
+
background: rowFill['accent-muted-pressed'],
|
|
333
|
+
text: rowText['accent-pressed']
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
var rowDeclarations = function rowDeclarations(_a, textSelector) {
|
|
338
|
+
var background = _a.background,
|
|
339
|
+
text = _a.text;
|
|
340
|
+
if (!text) return "background-color: ".concat(background, ";");
|
|
341
|
+
return textSelector ? "background-color: ".concat(background, ";\n ").concat(textSelector, " { color: ").concat(text, "; }") : "background-color: ".concat(background, ";\n color: ").concat(text, ";");
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* The background (and, when selected, text) of an interactive row in every state.
|
|
345
|
+
* - `focused`: keyboard focus that isn't DOM focus, such as a listbox option under
|
|
346
|
+
* aria-activedescendant. It shows the hover state.
|
|
347
|
+
* - `disabled`: shows the resting state, with no hover or press.
|
|
348
|
+
* - `textSelector`: a descendant to colour when the row's text isn't the row itself, for example
|
|
349
|
+
* text set by Typography. Pass it without `&`.
|
|
350
|
+
*/
|
|
351
|
+
var interactiveRow = function interactiveRow(_a) {
|
|
352
|
+
var _b = _a === void 0 ? {} : _a,
|
|
353
|
+
_c = _b.selected,
|
|
354
|
+
selected = _c === void 0 ? false : _c,
|
|
355
|
+
_d = _b.focused,
|
|
356
|
+
focused = _d === void 0 ? false : _d,
|
|
357
|
+
_e = _b.disabled,
|
|
358
|
+
disabled = _e === void 0 ? false : _e,
|
|
359
|
+
textSelector = _b.textSelector;
|
|
360
|
+
var states = selected ? rowStates.selected : rowStates.unselected;
|
|
361
|
+
if (disabled) return "".concat(rowDeclarations(states.rest, textSelector), "\n").concat(rowForcedColors({
|
|
362
|
+
selected: selected,
|
|
363
|
+
focused: focused,
|
|
364
|
+
disabled: disabled,
|
|
365
|
+
textSelector: textSelector
|
|
366
|
+
}));
|
|
367
|
+
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({
|
|
368
|
+
selected: selected,
|
|
369
|
+
focused: focused,
|
|
370
|
+
disabled: disabled,
|
|
371
|
+
textSelector: textSelector
|
|
372
|
+
}), "\n");
|
|
373
|
+
};
|
|
374
|
+
// Rows in forced colours (decision 0038): fills are dropped, so a selected row takes the system
|
|
375
|
+
// selection colours, and a hovered or keyboard-active row is outlined in Highlight.
|
|
376
|
+
var rowForcedColors = function rowForcedColors(_a) {
|
|
377
|
+
var selected = _a.selected,
|
|
378
|
+
focused = _a.focused,
|
|
379
|
+
disabled = _a.disabled,
|
|
380
|
+
textSelector = _a.textSelector;
|
|
381
|
+
var text = function text(color) {
|
|
382
|
+
return textSelector ? "color: ".concat(color, ";\n ").concat(textSelector, " { color: ").concat(color, "; }") : "color: ".concat(color, ";");
|
|
383
|
+
};
|
|
384
|
+
var hover = "outline: ".concat(tokens.semantic.border.width.thin, " solid Highlight;\n outline-offset: calc(-1 * ").concat(tokens.semantic.border.width.thin, ");");
|
|
385
|
+
// A row that doesn't respond (disabled, or not interactive at all) keeps its selection but has
|
|
386
|
+
// no hover outline. Disabled text is the component's to colour: callers also pass this for
|
|
387
|
+
// static rows, which must stay CanvasText.
|
|
388
|
+
// A selected row keeps forced-color-adjust: auto: the browser keeps system colours an author
|
|
389
|
+
// sets, so the row stays Highlight with HighlightText. Its descendants' own colours would be
|
|
390
|
+
// forced to CanvasText, so they inherit HighlightText, and anything drawn with a fill inside
|
|
391
|
+
// (a chip or tag as the row's badge) drops it and keeps its edge. The doubled class outranks
|
|
392
|
+
// the descendants' own rules.
|
|
393
|
+
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 }");
|
|
394
|
+
};
|
|
395
|
+
var templateObject_1$L, templateObject_2$x, templateObject_3$v;
|
|
243
396
|
|
|
244
|
-
var _a$
|
|
245
|
-
typography$2 = _a$
|
|
246
|
-
color$a = _a$
|
|
247
|
-
letterSpacing = _a$
|
|
397
|
+
var _a$a = tokens.semantic,
|
|
398
|
+
typography$2 = _a$a.typography,
|
|
399
|
+
color$a = _a$a.color,
|
|
400
|
+
letterSpacing = _a$a.letterSpacing;
|
|
248
401
|
var getTypographyStyles = function getTypographyStyles(variant) {
|
|
249
402
|
var styles = {
|
|
250
403
|
display: "font: ".concat(typography$2.display, "; letter-spacing: ").concat(letterSpacing.tighter, ";"),
|
|
@@ -259,9 +412,9 @@ var getTypographyStyles = function getTypographyStyles(variant) {
|
|
|
259
412
|
small: "font: ".concat(typography$2.small, ";"),
|
|
260
413
|
overline: "font: ".concat(typography$2.overline, ";"),
|
|
261
414
|
caption: "font: ".concat(typography$2.caption, "; text-transform: uppercase;"),
|
|
262
|
-
button1: "font: ".concat(
|
|
263
|
-
button2: "font: ".concat(
|
|
264
|
-
button3: "font: ".concat(
|
|
415
|
+
button1: "font: ".concat(tokens.component.button.sizes.large.font, ";"),
|
|
416
|
+
button2: "font: ".concat(tokens.component.button.sizes.medium.font, ";"),
|
|
417
|
+
button3: "font: ".concat(tokens.component.button.sizes.small.font, ";"),
|
|
265
418
|
label: "font: ".concat(typography$2.label, ";")
|
|
266
419
|
};
|
|
267
420
|
return styles[variant] || styles.body;
|
|
@@ -270,11 +423,11 @@ var getTextColor = function getTextColor(colorVariant) {
|
|
|
270
423
|
var colorMap = {
|
|
271
424
|
"default": color$a.text["default"],
|
|
272
425
|
emphasis: color$a.text.emphasis,
|
|
273
|
-
subdued: color$a.text.
|
|
426
|
+
subdued: color$a.text.muted,
|
|
274
427
|
inverse: color$a.text.inverse,
|
|
275
428
|
disabled: color$a.text.disabled,
|
|
276
|
-
interactive: color$a.text.
|
|
277
|
-
error: color$a.text.
|
|
429
|
+
interactive: color$a.text.accent,
|
|
430
|
+
error: color$a.text.danger,
|
|
278
431
|
success: color$a.text.success,
|
|
279
432
|
warning: color$a.text.warning
|
|
280
433
|
};
|
|
@@ -371,14 +524,13 @@ var Typography = function Typography(_a) {
|
|
|
371
524
|
};
|
|
372
525
|
var templateObject_1$K;
|
|
373
526
|
|
|
374
|
-
var semantic$
|
|
375
|
-
var color$9 = semantic$
|
|
376
|
-
|
|
377
|
-
var
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
ring = _a$a.ring;
|
|
527
|
+
var semantic$k = tokens.semantic;
|
|
528
|
+
var color$9 = semantic$k.color;
|
|
529
|
+
var radius$5 = semantic$k.radius;
|
|
530
|
+
var _a$9 = tokens.component.badge,
|
|
531
|
+
dot = _a$9.dot,
|
|
532
|
+
count = _a$9.count,
|
|
533
|
+
ring = _a$9.ring;
|
|
382
534
|
var scaleIn$2 = 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"])));
|
|
383
535
|
var BadgeWrapper = styled.span.withConfig({
|
|
384
536
|
displayName: "Badge__BadgeWrapper",
|
|
@@ -390,28 +542,30 @@ var BadgeIndicator = styled.span.withConfig({
|
|
|
390
542
|
},
|
|
391
543
|
displayName: "Badge__BadgeIndicator",
|
|
392
544
|
componentId: "sc-tjz4pp-1"
|
|
393
|
-
})(templateObject_3$
|
|
545
|
+
})(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) {
|
|
394
546
|
return props.$isVisible ? 'flex' : 'none';
|
|
395
547
|
}, function (props) {
|
|
396
548
|
return props.$isDot ? dot.size : count.minWidth;
|
|
397
549
|
}, function (props) {
|
|
398
550
|
return props.$isDot ? dot.size : count.height;
|
|
399
551
|
}, function (props) {
|
|
400
|
-
return props.$isDot ? '0' : "0 ".concat(semantic$
|
|
401
|
-
}, radius$
|
|
552
|
+
return props.$isDot ? '0' : "0 ".concat(semantic$k.space.inset.xs);
|
|
553
|
+
}, 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) {
|
|
554
|
+
return props.$isDot ? "".concat(forcedColors, " { forced-color-adjust: none; background-color: CanvasText; }") : "".concat(forcedColors, " { border: ").concat(semantic$k.border.width.thin, " solid currentColor; }");
|
|
555
|
+
}, function (props) {
|
|
402
556
|
switch (props.$variant) {
|
|
403
557
|
case 'accent':
|
|
404
558
|
case 'primary':
|
|
405
559
|
// Deprecated alias for 'accent', removed in 3.0 (#169)
|
|
406
|
-
return "\n background-color: ".concat(color$9.
|
|
560
|
+
return "\n background-color: ".concat(color$9.fill.accent, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
407
561
|
case 'error':
|
|
408
|
-
return "\n background-color: ".concat(color$9.
|
|
562
|
+
return "\n background-color: ".concat(color$9.fill.danger, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
409
563
|
case 'warning':
|
|
410
|
-
return "\n background-color: ".concat(color$9.
|
|
564
|
+
return "\n background-color: ".concat(color$9.fill.warning, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
411
565
|
case 'success':
|
|
412
|
-
return "\n background-color: ".concat(color$9.
|
|
566
|
+
return "\n background-color: ".concat(color$9.fill.success, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
413
567
|
default:
|
|
414
|
-
return "\n background-color: ".concat(color$9.
|
|
568
|
+
return "\n background-color: ".concat(color$9.fill.emphasis, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
415
569
|
}
|
|
416
570
|
});
|
|
417
571
|
var ScreenReaderOnly$1 = styled.span.withConfig({
|
|
@@ -455,7 +609,123 @@ var Badge = function Badge(_a) {
|
|
|
455
609
|
})]
|
|
456
610
|
});
|
|
457
611
|
};
|
|
458
|
-
var templateObject_1$J, templateObject_2$w, templateObject_3$
|
|
612
|
+
var templateObject_1$J, templateObject_2$w, templateObject_3$u, templateObject_4$n;
|
|
613
|
+
|
|
614
|
+
// Props whose values are token keys keep their published vocabulary in 2.x (P7), but read the
|
|
615
|
+
// semantic grammar's names (decision 0031, #189). Each map covers every key the prop type allows,
|
|
616
|
+
// so TypeScript fails here if a key is added without a mapping.
|
|
617
|
+
var semantic$j = tokens.semantic;
|
|
618
|
+
var color$8 = semantic$j.color,
|
|
619
|
+
space$e = semantic$j.space,
|
|
620
|
+
radius$4 = semantic$j.radius,
|
|
621
|
+
surface = semantic$j.surface;
|
|
622
|
+
/** Box's spacing props (`p`, `m`, `gap`…): the old layout scale's keys, read from `space`. */
|
|
623
|
+
var spaceByLayoutKey = {
|
|
624
|
+
none: space$e[0],
|
|
625
|
+
xs: space$e[100],
|
|
626
|
+
sm: space$e[200],
|
|
627
|
+
md: space$e[300],
|
|
628
|
+
lg: space$e[400],
|
|
629
|
+
xl: space$e[500],
|
|
630
|
+
'2xl': space$e[600],
|
|
631
|
+
'3xl': space$e[700],
|
|
632
|
+
'4xl': space$e[800],
|
|
633
|
+
'5xl': space$e[900],
|
|
634
|
+
'6xl': space$e[1000],
|
|
635
|
+
'7xl': space$e[1200],
|
|
636
|
+
'8xl': space$e[1400],
|
|
637
|
+
'9xl': space$e[1600],
|
|
638
|
+
'10xl': space$e[2000],
|
|
639
|
+
'11xl': space$e[2400],
|
|
640
|
+
// A keyword, not a step: it stays until the keyword question is settled (0031)
|
|
641
|
+
auto: semantic$j.spacing.layout.auto
|
|
642
|
+
};
|
|
643
|
+
/** Box's `borderRadius` prop: the old radius keys, read from `radius`. */
|
|
644
|
+
var radiusByKey = {
|
|
645
|
+
none: radius$4.none,
|
|
646
|
+
xs: radius$4.xs,
|
|
647
|
+
sm: radius$4.sm,
|
|
648
|
+
md: radius$4.md,
|
|
649
|
+
lg: radius$4.lg,
|
|
650
|
+
xl: radius$4.xl,
|
|
651
|
+
'2xl': radius$4['2xl'],
|
|
652
|
+
'3xl': radius$4['3xl'],
|
|
653
|
+
circle: radius$4.full
|
|
654
|
+
};
|
|
655
|
+
/** Box's `bg` prop: the old background keys, read from `surface` and `color.fill`. */
|
|
656
|
+
var backgroundByKey = {
|
|
657
|
+
"default": surface.base,
|
|
658
|
+
page: surface.base,
|
|
659
|
+
subtle: surface.raised,
|
|
660
|
+
overlay: surface.scrim,
|
|
661
|
+
emphasis: color$8.fill.emphasis,
|
|
662
|
+
'emphasis-hover': color$8.fill['emphasis-hover'],
|
|
663
|
+
'emphasis-active': color$8.fill['emphasis-pressed'],
|
|
664
|
+
surface: color$8.fill.muted,
|
|
665
|
+
inverse: color$8.fill.inverse,
|
|
666
|
+
interactive: color$8.fill.accent,
|
|
667
|
+
'interactive-hover': color$8.fill['accent-hover'],
|
|
668
|
+
'interactive-active': color$8.fill['accent-pressed'],
|
|
669
|
+
'interactive-subtle': color$8.fill['accent-muted'],
|
|
670
|
+
'interactive-subtle-hover': color$8.fill['accent-muted-hover'],
|
|
671
|
+
'interactive-subtle-active': color$8.fill['accent-muted-pressed'],
|
|
672
|
+
error: color$8.fill.danger,
|
|
673
|
+
'error-hover': color$8.fill['danger-hover'],
|
|
674
|
+
'error-active': color$8.fill['danger-pressed'],
|
|
675
|
+
'error-subtle': color$8.fill['danger-muted'],
|
|
676
|
+
success: color$8.fill.success,
|
|
677
|
+
'success-subtle': color$8.fill['success-muted'],
|
|
678
|
+
warning: color$8.fill.warning,
|
|
679
|
+
'warning-subtle': color$8.fill['warning-muted'],
|
|
680
|
+
disabled: color$8.fill.disabled,
|
|
681
|
+
neutral: color$8.fill["default"],
|
|
682
|
+
'neutral-hover': color$8.fill['default-hover'],
|
|
683
|
+
'neutral-active': color$8.fill['default-pressed'],
|
|
684
|
+
transparent: color$8.fill.none,
|
|
685
|
+
'hover-overlay': color$8.fill['none-hover'],
|
|
686
|
+
'active-overlay': color$8.fill['none-pressed'],
|
|
687
|
+
'inverse-overlay': color$8.fill['inverse-none-hover'],
|
|
688
|
+
// Moved to the component tier (decision 0031 §6)
|
|
689
|
+
progressTrack: tokens.component.track.background
|
|
690
|
+
};
|
|
691
|
+
/** Box's `color` prop: text colours, old and new keys. */
|
|
692
|
+
var textColorByKey = {
|
|
693
|
+
"default": color$8.text["default"],
|
|
694
|
+
emphasis: color$8.text.emphasis,
|
|
695
|
+
inverse: color$8.text.inverse,
|
|
696
|
+
disabled: color$8.text.disabled,
|
|
697
|
+
success: color$8.text.success,
|
|
698
|
+
warning: color$8.text.warning,
|
|
699
|
+
muted: color$8.text.muted,
|
|
700
|
+
accent: color$8.text.accent,
|
|
701
|
+
'accent-hover': color$8.text['accent-hover'],
|
|
702
|
+
'accent-pressed': color$8.text['accent-pressed'],
|
|
703
|
+
danger: color$8.text.danger,
|
|
704
|
+
subdued: color$8.text.muted,
|
|
705
|
+
interactive: color$8.text.accent,
|
|
706
|
+
'interactive-hover': color$8.text['accent-hover'],
|
|
707
|
+
'interactive-active': color$8.text['accent-pressed'],
|
|
708
|
+
error: color$8.text.danger
|
|
709
|
+
};
|
|
710
|
+
/** Box's border props: border colours, old and new keys. */
|
|
711
|
+
var borderColorByKey = {
|
|
712
|
+
"default": color$8.border["default"],
|
|
713
|
+
success: color$8.border.success,
|
|
714
|
+
warning: color$8.border.warning,
|
|
715
|
+
none: color$8.border.none,
|
|
716
|
+
emphasis: color$8.border.emphasis,
|
|
717
|
+
input: color$8.border.input,
|
|
718
|
+
'input-hover': color$8.border['input-hover'],
|
|
719
|
+
focus: color$8.border.focus,
|
|
720
|
+
accent: color$8.border.accent,
|
|
721
|
+
danger: color$8.border.danger,
|
|
722
|
+
subtle: color$8.border.emphasis,
|
|
723
|
+
control: color$8.border.input,
|
|
724
|
+
// `strong` split by use (0031); as a generic firm outline it is the hovered-input border
|
|
725
|
+
strong: color$8.border['input-hover'],
|
|
726
|
+
interactive: color$8.border.accent,
|
|
727
|
+
error: color$8.border.danger
|
|
728
|
+
};
|
|
459
729
|
|
|
460
730
|
var StyledBox = styled.div.withConfig({
|
|
461
731
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -463,48 +733,48 @@ var StyledBox = styled.div.withConfig({
|
|
|
463
733
|
},
|
|
464
734
|
displayName: "Box__StyledBox",
|
|
465
735
|
componentId: "sc-aj0jhd-0"
|
|
466
|
-
})(
|
|
736
|
+
})(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"
|
|
467
737
|
// Transform component that maps clean props to $-prefixed props for styled-components
|
|
468
738
|
])), function (props) {
|
|
469
739
|
return props.$display && css(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
|
|
470
740
|
}, function (props) {
|
|
471
741
|
return props.$flexDirection && css(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
|
|
472
742
|
}, function (props) {
|
|
473
|
-
return props.$justifyContent && css(templateObject_3$
|
|
743
|
+
return props.$justifyContent && css(templateObject_3$t || (templateObject_3$t = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
|
|
474
744
|
}, function (props) {
|
|
475
745
|
return props.$alignItems && css(templateObject_4$m || (templateObject_4$m = __makeTemplateObject(["align-items: ", ";"], ["align-items: ", ";"])), props.$alignItems);
|
|
476
746
|
}, function (props) {
|
|
477
|
-
return props.$flexWrap && css(templateObject_5$
|
|
747
|
+
return props.$flexWrap && css(templateObject_5$i || (templateObject_5$i = __makeTemplateObject(["flex-wrap: ", ";"], ["flex-wrap: ", ";"])), props.$flexWrap);
|
|
478
748
|
}, function (props) {
|
|
479
|
-
return props.$gap && css(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])),
|
|
749
|
+
return props.$gap && css(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), spaceByLayoutKey[props.$gap]);
|
|
480
750
|
}, function (props) {
|
|
481
|
-
return props.$m && css(templateObject_7$b || (templateObject_7$b = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])),
|
|
751
|
+
return props.$m && css(templateObject_7$b || (templateObject_7$b = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), spaceByLayoutKey[props.$m]);
|
|
482
752
|
}, function (props) {
|
|
483
|
-
return props.$mt && css(templateObject_8$8 || (templateObject_8$8 = __makeTemplateObject(["margin-top: ", ";"], ["margin-top: ", ";"])),
|
|
753
|
+
return props.$mt && css(templateObject_8$8 || (templateObject_8$8 = __makeTemplateObject(["margin-top: ", ";"], ["margin-top: ", ";"])), spaceByLayoutKey[props.$mt]);
|
|
484
754
|
}, function (props) {
|
|
485
|
-
return props.$mr && css(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["margin-right: ", ";"], ["margin-right: ", ";"])),
|
|
755
|
+
return props.$mr && css(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["margin-right: ", ";"], ["margin-right: ", ";"])), spaceByLayoutKey[props.$mr]);
|
|
486
756
|
}, function (props) {
|
|
487
|
-
return props.$mb && css(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject(["margin-bottom: ", ";"], ["margin-bottom: ", ";"])),
|
|
757
|
+
return props.$mb && css(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject(["margin-bottom: ", ";"], ["margin-bottom: ", ";"])), spaceByLayoutKey[props.$mb]);
|
|
488
758
|
}, function (props) {
|
|
489
|
-
return props.$ml && css(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["margin-left: ", ";"], ["margin-left: ", ";"])),
|
|
759
|
+
return props.$ml && css(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["margin-left: ", ";"], ["margin-left: ", ";"])), spaceByLayoutKey[props.$ml]);
|
|
490
760
|
}, function (props) {
|
|
491
|
-
return props.$mx && css(templateObject_12$4 || (templateObject_12$4 = __makeTemplateObject(["\n margin-left: ", ";\n margin-right: ", ";\n "], ["\n margin-left: ", ";\n margin-right: ", ";\n "])),
|
|
761
|
+
return props.$mx && 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]);
|
|
492
762
|
}, function (props) {
|
|
493
|
-
return props.$my && css(templateObject_13$4 || (templateObject_13$4 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n margin-top: ", ";\n margin-bottom: ", ";\n "])),
|
|
763
|
+
return props.$my && 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]);
|
|
494
764
|
}, function (props) {
|
|
495
|
-
return props.$p && css(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["padding: ", ";"], ["padding: ", ";"])),
|
|
765
|
+
return props.$p && css(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["padding: ", ";"], ["padding: ", ";"])), spaceByLayoutKey[props.$p]);
|
|
496
766
|
}, function (props) {
|
|
497
|
-
return props.$pt && css(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject(["padding-top: ", ";"], ["padding-top: ", ";"])),
|
|
767
|
+
return props.$pt && css(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject(["padding-top: ", ";"], ["padding-top: ", ";"])), spaceByLayoutKey[props.$pt]);
|
|
498
768
|
}, function (props) {
|
|
499
|
-
return props.$pr && css(templateObject_16$2 || (templateObject_16$2 = __makeTemplateObject(["padding-right: ", ";"], ["padding-right: ", ";"])),
|
|
769
|
+
return props.$pr && css(templateObject_16$2 || (templateObject_16$2 = __makeTemplateObject(["padding-right: ", ";"], ["padding-right: ", ";"])), spaceByLayoutKey[props.$pr]);
|
|
500
770
|
}, function (props) {
|
|
501
|
-
return props.$pb && css(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["padding-bottom: ", ";"], ["padding-bottom: ", ";"])),
|
|
771
|
+
return props.$pb && css(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["padding-bottom: ", ";"], ["padding-bottom: ", ";"])), spaceByLayoutKey[props.$pb]);
|
|
502
772
|
}, function (props) {
|
|
503
|
-
return props.$pl && css(templateObject_18$2 || (templateObject_18$2 = __makeTemplateObject(["padding-left: ", ";"], ["padding-left: ", ";"])),
|
|
773
|
+
return props.$pl && css(templateObject_18$2 || (templateObject_18$2 = __makeTemplateObject(["padding-left: ", ";"], ["padding-left: ", ";"])), spaceByLayoutKey[props.$pl]);
|
|
504
774
|
}, function (props) {
|
|
505
|
-
return props.$px && css(templateObject_19$1 || (templateObject_19$1 = __makeTemplateObject(["\n padding-left: ", ";\n padding-right: ", ";\n "], ["\n padding-left: ", ";\n padding-right: ", ";\n "])),
|
|
775
|
+
return props.$px && 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]);
|
|
506
776
|
}, function (props) {
|
|
507
|
-
return props.$py && css(templateObject_20$1 || (templateObject_20$1 = __makeTemplateObject(["\n padding-top: ", ";\n padding-bottom: ", ";\n "], ["\n padding-top: ", ";\n padding-bottom: ", ";\n "])),
|
|
777
|
+
return props.$py && 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]);
|
|
508
778
|
}, function (props) {
|
|
509
779
|
return props.$width && css(templateObject_21$1 || (templateObject_21$1 = __makeTemplateObject(["width: ", ";"], ["width: ", ";"])), props.$width);
|
|
510
780
|
}, function (props) {
|
|
@@ -528,35 +798,35 @@ var StyledBox = styled.div.withConfig({
|
|
|
528
798
|
}, function (props) {
|
|
529
799
|
return props.$left && css(templateObject_31$1 || (templateObject_31$1 = __makeTemplateObject(["left: ", ";"], ["left: ", ";"])), props.$left);
|
|
530
800
|
}, function (props) {
|
|
531
|
-
return props.$borderRadius && css(templateObject_32$1 || (templateObject_32$1 = __makeTemplateObject(["border-radius: ", ";"], ["border-radius: ", ";"])),
|
|
801
|
+
return props.$borderRadius && css(templateObject_32$1 || (templateObject_32$1 = __makeTemplateObject(["border-radius: ", ";"], ["border-radius: ", ";"])), radiusByKey[props.$borderRadius]);
|
|
532
802
|
}, function (props) {
|
|
533
|
-
return props.$border && css(templateObject_33$1 || (templateObject_33$1 = __makeTemplateObject(["border: ", " solid ", ";"], ["border: ", " solid ", ";"])),
|
|
803
|
+
return props.$border && css(templateObject_33$1 || (templateObject_33$1 = __makeTemplateObject(["border: ", " solid ", ";"], ["border: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$border]);
|
|
534
804
|
}, function (props) {
|
|
535
|
-
return props.$borderTop && css(templateObject_34$1 || (templateObject_34$1 = __makeTemplateObject(["border-top: ", " solid ", ";"], ["border-top: ", " solid ", ";"])),
|
|
805
|
+
return props.$borderTop && css(templateObject_34$1 || (templateObject_34$1 = __makeTemplateObject(["border-top: ", " solid ", ";"], ["border-top: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderTop]);
|
|
536
806
|
}, function (props) {
|
|
537
|
-
return props.$borderRight && css(templateObject_35$1 || (templateObject_35$1 = __makeTemplateObject(["border-right: ", " solid ", ";"], ["border-right: ", " solid ", ";"])),
|
|
807
|
+
return props.$borderRight && css(templateObject_35$1 || (templateObject_35$1 = __makeTemplateObject(["border-right: ", " solid ", ";"], ["border-right: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderRight]);
|
|
538
808
|
}, function (props) {
|
|
539
|
-
return props.$borderBottom && css(templateObject_36 || (templateObject_36 = __makeTemplateObject(["border-bottom: ", " solid ", ";"], ["border-bottom: ", " solid ", ";"])),
|
|
809
|
+
return props.$borderBottom && css(templateObject_36 || (templateObject_36 = __makeTemplateObject(["border-bottom: ", " solid ", ";"], ["border-bottom: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderBottom]);
|
|
540
810
|
}, function (props) {
|
|
541
|
-
return props.$borderLeft && css(templateObject_37 || (templateObject_37 = __makeTemplateObject(["border-left: ", " solid ", ";"], ["border-left: ", " solid ", ";"])),
|
|
811
|
+
return props.$borderLeft && css(templateObject_37 || (templateObject_37 = __makeTemplateObject(["border-left: ", " solid ", ";"], ["border-left: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderLeft]);
|
|
542
812
|
}, function (props) {
|
|
543
|
-
return props.$bg && css(templateObject_38 || (templateObject_38 = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])),
|
|
813
|
+
return props.$bg && css(templateObject_38 || (templateObject_38 = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundByKey[props.$bg]);
|
|
544
814
|
}, function (props) {
|
|
545
|
-
return props.$color && css(templateObject_39 || (templateObject_39 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])),
|
|
815
|
+
return props.$color && css(templateObject_39 || (templateObject_39 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])), textColorByKey[props.$color]);
|
|
546
816
|
}, function (props) {
|
|
547
|
-
return props.$shadow && css(templateObject_40 || (templateObject_40 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])),
|
|
817
|
+
return props.$shadow && css(templateObject_40 || (templateObject_40 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), tokens.semantic.elevation[props.$shadow]);
|
|
548
818
|
}, function (props) {
|
|
549
819
|
return props.$cursor && css(templateObject_41 || (templateObject_41 = __makeTemplateObject(["cursor: ", ";"], ["cursor: ", ";"])), props.$cursor);
|
|
550
820
|
}, function (props) {
|
|
551
821
|
return props.$transition && css(templateObject_42 || (templateObject_42 = __makeTemplateObject(["transition: ", ";"], ["transition: ", ";"])), props.$transition);
|
|
552
822
|
}, function (props) {
|
|
553
|
-
return (props.$hoverShadow || props.$hoverTransform) && css(
|
|
823
|
+
return (props.$hoverShadow || props.$hoverTransform) && 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 && css(templateObject_43 || (templateObject_43 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), tokens.semantic.elevation[props.$hoverShadow]), props.$hoverTransform && css(templateObject_44 || (templateObject_44 = __makeTemplateObject(["transform: ", ";"], ["transform: ", ";"])), props.$hoverTransform), props.$hoverShadow && 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 && 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));
|
|
554
824
|
}, function (props) {
|
|
555
|
-
return props.$overflow && css(
|
|
825
|
+
return props.$overflow && css(templateObject_48 || (templateObject_48 = __makeTemplateObject(["overflow: ", ";"], ["overflow: ", ";"])), props.$overflow);
|
|
556
826
|
}, function (props) {
|
|
557
|
-
return props.$overflowX && css(
|
|
827
|
+
return props.$overflowX && css(templateObject_49 || (templateObject_49 = __makeTemplateObject(["overflow-x: ", ";"], ["overflow-x: ", ";"])), props.$overflowX);
|
|
558
828
|
}, function (props) {
|
|
559
|
-
return props.$overflowY && css(
|
|
829
|
+
return props.$overflowY && css(templateObject_50 || (templateObject_50 = __makeTemplateObject(["overflow-y: ", ";"], ["overflow-y: ", ";"])), props.$overflowY);
|
|
560
830
|
});
|
|
561
831
|
// Transform component that maps clean props to $-prefixed props for styled-components
|
|
562
832
|
var BoxTransform = function BoxTransform(props) {
|
|
@@ -690,7 +960,7 @@ var BoxTransform = function BoxTransform(props) {
|
|
|
690
960
|
}));
|
|
691
961
|
};
|
|
692
962
|
var Box = BoxTransform;
|
|
693
|
-
var templateObject_1$I, templateObject_2$v, templateObject_3$
|
|
963
|
+
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;
|
|
694
964
|
|
|
695
965
|
var IconStyled = styled.span.withConfig({
|
|
696
966
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -700,35 +970,35 @@ var IconStyled = styled.span.withConfig({
|
|
|
700
970
|
componentId: "sc-1105czq-0"
|
|
701
971
|
})(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) {
|
|
702
972
|
var $size = _a.$size;
|
|
703
|
-
return
|
|
973
|
+
return tokens.semantic.size.icon[$size];
|
|
704
974
|
}, function (_a) {
|
|
705
975
|
var $size = _a.$size;
|
|
706
|
-
return
|
|
976
|
+
return tokens.semantic.size.icon[$size];
|
|
707
977
|
}, function (_a) {
|
|
708
978
|
var $iconColor = _a.$iconColor;
|
|
709
979
|
switch ($iconColor) {
|
|
710
980
|
case 'default':
|
|
711
|
-
return
|
|
981
|
+
return tokens.semantic.color.icon["default"];
|
|
712
982
|
case 'emphasis':
|
|
713
|
-
return
|
|
983
|
+
return tokens.semantic.color.icon.emphasis;
|
|
714
984
|
case 'subdued':
|
|
715
|
-
return
|
|
985
|
+
return tokens.semantic.color.icon.muted;
|
|
716
986
|
case 'disabled':
|
|
717
|
-
return
|
|
987
|
+
return tokens.semantic.color.icon.disabled;
|
|
718
988
|
case 'inverse':
|
|
719
|
-
return
|
|
989
|
+
return tokens.semantic.color.icon.inverse;
|
|
720
990
|
case 'interactive':
|
|
721
|
-
return
|
|
991
|
+
return tokens.semantic.color.icon.accent;
|
|
722
992
|
case 'error':
|
|
723
|
-
return
|
|
993
|
+
return tokens.semantic.color.icon.danger;
|
|
724
994
|
case 'success':
|
|
725
|
-
return
|
|
995
|
+
return tokens.semantic.color.icon.success;
|
|
726
996
|
case 'warning':
|
|
727
|
-
return
|
|
997
|
+
return tokens.semantic.color.icon.warning;
|
|
728
998
|
case 'inherit':
|
|
729
999
|
return 'currentColor';
|
|
730
1000
|
default:
|
|
731
|
-
return
|
|
1001
|
+
return tokens.semantic.color.icon["default"];
|
|
732
1002
|
}
|
|
733
1003
|
});
|
|
734
1004
|
var Icon = function Icon(_a) {
|
|
@@ -777,12 +1047,15 @@ var Icon = function Icon(_a) {
|
|
|
777
1047
|
};
|
|
778
1048
|
var templateObject_1$H;
|
|
779
1049
|
|
|
780
|
-
var button$1 =
|
|
781
|
-
semantic$
|
|
782
|
-
//
|
|
783
|
-
|
|
1050
|
+
var button$1 = tokens.component.button,
|
|
1051
|
+
semantic$i = tokens.semantic;
|
|
1052
|
+
// Height comes from size.control as a minimum and the content is centred, so there is no
|
|
1053
|
+
// vertical padding (decision 0034). Horizontal padding comes from the semantic spacing scale:
|
|
1054
|
+
// no component spacing tokens (decision 0022)
|
|
1055
|
+
var inset = semantic$i.space.inset;
|
|
1056
|
+
var control$1 = semantic$i.size.control;
|
|
784
1057
|
// Base styles shared between button and link
|
|
785
|
-
var baseButtonStyles = "\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ".concat(
|
|
1058
|
+
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");
|
|
786
1059
|
// Dynamic variant styles using component tokens
|
|
787
1060
|
var getVariantStyles$1 = function getVariantStyles(_a) {
|
|
788
1061
|
var $variant = _a.$variant;
|
|
@@ -840,18 +1113,17 @@ var getVariantStyles$1 = function getVariantStyles(_a) {
|
|
|
840
1113
|
var config = variantConfig[$variant];
|
|
841
1114
|
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 ");
|
|
842
1115
|
};
|
|
843
|
-
// Dynamic size styles
|
|
844
|
-
var getSizeStyles
|
|
1116
|
+
// Dynamic size styles: font from component tokens, height from size.control (decision 0034)
|
|
1117
|
+
var getSizeStyles = function getSizeStyles(_a) {
|
|
845
1118
|
var $size = _a.$size;
|
|
846
1119
|
switch ($size) {
|
|
847
1120
|
case 'small':
|
|
848
|
-
return "\n font: ".concat(button$1.sizes.small.font, ";\n
|
|
1121
|
+
return "\n font: ".concat(button$1.sizes.small.font, ";\n min-height: ").concat(control$1.sm, ";\n padding: 0 ").concat(inset.md, ";\n ");
|
|
849
1122
|
case 'medium':
|
|
850
|
-
return "\n font: ".concat(button$1.sizes.medium.font, ";\n
|
|
1123
|
+
return "\n font: ".concat(button$1.sizes.medium.font, ";\n min-height: ").concat(control$1.md, ";\n padding: 0 ").concat(inset.lg, ";\n ");
|
|
851
1124
|
case 'large':
|
|
852
|
-
return "\n font: ".concat(button$1.sizes.large.font, ";\n padding: ").concat(spacing$a.md, " ").concat(spacing$a.lg, ";\n ");
|
|
853
1125
|
default:
|
|
854
|
-
return "\n font: ".concat(button$1.sizes.large.font, ";\n
|
|
1126
|
+
return "\n font: ".concat(button$1.sizes.large.font, ";\n min-height: ").concat(control$1.lg, ";\n padding: 0 ").concat(inset.lg, ";\n ");
|
|
855
1127
|
}
|
|
856
1128
|
};
|
|
857
1129
|
var StyledButton = styled.button.withConfig({
|
|
@@ -860,7 +1132,7 @@ var StyledButton = styled.button.withConfig({
|
|
|
860
1132
|
},
|
|
861
1133
|
displayName: "Button__StyledButton",
|
|
862
1134
|
componentId: "sc-1eiuum9-0"
|
|
863
|
-
})(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
|
|
1135
|
+
})(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);
|
|
864
1136
|
var StyledLink = styled.a.withConfig({
|
|
865
1137
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
866
1138
|
return !prop.startsWith('$');
|
|
@@ -869,7 +1141,7 @@ var StyledLink = styled.a.withConfig({
|
|
|
869
1141
|
componentId: "sc-1eiuum9-1"
|
|
870
1142
|
})(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"
|
|
871
1143
|
// Helper function to get icon size based on button size
|
|
872
|
-
])), baseButtonStyles, button$1.primary.borderRadius, getVariantStyles$1, getSizeStyles
|
|
1144
|
+
])), baseButtonStyles, button$1.primary.borderRadius, getVariantStyles$1, getSizeStyles);
|
|
873
1145
|
// Helper function to get icon size based on button size
|
|
874
1146
|
var getIconSize = function getIconSize(buttonSize) {
|
|
875
1147
|
switch (buttonSize) {
|
|
@@ -972,15 +1244,13 @@ var Button = function Button(_a) {
|
|
|
972
1244
|
};
|
|
973
1245
|
var templateObject_1$G, templateObject_2$u;
|
|
974
1246
|
|
|
975
|
-
var semantic$
|
|
976
|
-
var color$
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
var
|
|
980
|
-
var
|
|
981
|
-
var
|
|
982
|
-
var layout$4 = spacing$9.layout;
|
|
983
|
-
var labelHeight$1 = semantic$g.size.label;
|
|
1247
|
+
var semantic$h = tokens.semantic;
|
|
1248
|
+
var color$7 = semantic$h.color;
|
|
1249
|
+
var label$2 = tokens.component.badge.label;
|
|
1250
|
+
var category = color$7.category;
|
|
1251
|
+
var radius$3 = semantic$h.radius;
|
|
1252
|
+
var space$d = semantic$h.space;
|
|
1253
|
+
var labelHeight$1 = semantic$h.size.label;
|
|
984
1254
|
// Text on white or the -subtle fill (outlined and minimal), at least 4.5:1 (#115)
|
|
985
1255
|
var categoryText = {
|
|
986
1256
|
blue: category['blue-text'],
|
|
@@ -1001,16 +1271,16 @@ var StyledCategoryLabel = styled.span.withConfig({
|
|
|
1001
1271
|
})(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"
|
|
1002
1272
|
// The visible content, hidden from assistive technology when an aria-label replaces it.
|
|
1003
1273
|
// display: contents keeps the root's flex layout and gap.
|
|
1004
|
-
])), radius$3.
|
|
1274
|
+
])), radius$3.full, semantic$h.border.width.thin, function (_a) {
|
|
1005
1275
|
var $size = _a.$size;
|
|
1006
1276
|
return labelHeight$1[$size];
|
|
1007
1277
|
}, function (_a) {
|
|
1008
1278
|
var $size = _a.$size;
|
|
1009
|
-
return $size === 'medium' ? "".concat(
|
|
1279
|
+
return $size === 'medium' ? "".concat(space$d[100], " ").concat(space$d[200]) : "".concat(space$d[200], " ").concat(space$d[300]);
|
|
1010
1280
|
}, function (_a) {
|
|
1011
1281
|
var $size = _a.$size;
|
|
1012
1282
|
return $size === 'medium' ? label$2.typography.small : label$2.typography.medium;
|
|
1013
|
-
}, label$2.fontWeight,
|
|
1283
|
+
}, label$2.fontWeight, space$d[100], function (_a) {
|
|
1014
1284
|
var $color = _a.$color,
|
|
1015
1285
|
$variant = _a.$variant;
|
|
1016
1286
|
if ($variant === 'filled') {
|
|
@@ -1020,12 +1290,12 @@ var StyledCategoryLabel = styled.span.withConfig({
|
|
|
1020
1290
|
return 'transparent';
|
|
1021
1291
|
}
|
|
1022
1292
|
// minimal
|
|
1023
|
-
return category["".concat($color, "-
|
|
1293
|
+
return category["".concat($color, "-muted")];
|
|
1024
1294
|
}, function (_a) {
|
|
1025
1295
|
var $color = _a.$color,
|
|
1026
1296
|
$variant = _a.$variant;
|
|
1027
1297
|
if ($variant === 'filled') {
|
|
1028
|
-
return color$
|
|
1298
|
+
return color$7.text.inverse;
|
|
1029
1299
|
}
|
|
1030
1300
|
return categoryText[$color];
|
|
1031
1301
|
}, function (_a) {
|
|
@@ -1045,7 +1315,7 @@ var VisibleContent$1 = styled.span.withConfig({
|
|
|
1045
1315
|
var HiddenLabel = styled.span.withConfig({
|
|
1046
1316
|
displayName: "CategoryLabel__HiddenLabel",
|
|
1047
1317
|
componentId: "sc-1jx7bjo-2"
|
|
1048
|
-
})(templateObject_3$
|
|
1318
|
+
})(templateObject_3$s || (templateObject_3$s = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"
|
|
1049
1319
|
/**
|
|
1050
1320
|
* CategoryLabel colour-codes an item's category, such as a transaction's (decision 0018).
|
|
1051
1321
|
*
|
|
@@ -1112,7 +1382,7 @@ var CategoryLabel = function CategoryLabel(_a) {
|
|
|
1112
1382
|
});
|
|
1113
1383
|
};
|
|
1114
1384
|
CategoryLabel.displayName = 'CategoryLabel';
|
|
1115
|
-
var templateObject_1$F, templateObject_2$t, templateObject_3$
|
|
1385
|
+
var templateObject_1$F, templateObject_2$t, templateObject_3$s;
|
|
1116
1386
|
|
|
1117
1387
|
// CategoryBadge sizes on the decision 0018 scale
|
|
1118
1388
|
var toLabelSize = {
|
|
@@ -1136,7 +1406,8 @@ var CategoryBadge = function CategoryBadge(_a) {
|
|
|
1136
1406
|
};
|
|
1137
1407
|
CategoryBadge.displayName = 'CategoryBadge';
|
|
1138
1408
|
|
|
1139
|
-
var chip$1 =
|
|
1409
|
+
var chip$1 = tokens.component.chip,
|
|
1410
|
+
semantic$g = tokens.semantic;
|
|
1140
1411
|
// Helper function to get variant styles matching Button's approach
|
|
1141
1412
|
var getVariantStyles = function getVariantStyles(_a) {
|
|
1142
1413
|
var $variant = _a.$variant,
|
|
@@ -1152,11 +1423,11 @@ var getVariantStyles = function getVariantStyles(_a) {
|
|
|
1152
1423
|
var disabled = chip$1.variants.subtle.disabled;
|
|
1153
1424
|
return "\n background-color: ".concat(disabled.backgroundColor, ";\n color: ").concat(disabled.textColor, ";\n ");
|
|
1154
1425
|
}
|
|
1155
|
-
var _b =
|
|
1156
|
-
|
|
1426
|
+
var _b = tokens.semantic.color,
|
|
1427
|
+
fill = _b.fill,
|
|
1157
1428
|
text = _b.text;
|
|
1158
1429
|
var interactiveStates = $clickable;
|
|
1159
|
-
return "\n background-color: ".concat(
|
|
1430
|
+
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 ");
|
|
1160
1431
|
}
|
|
1161
1432
|
switch ($variant) {
|
|
1162
1433
|
case 'emphasis':
|
|
@@ -1170,20 +1441,13 @@ var getVariantStyles = function getVariantStyles(_a) {
|
|
|
1170
1441
|
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 ");
|
|
1171
1442
|
}
|
|
1172
1443
|
};
|
|
1173
|
-
//
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
case 'small':
|
|
1178
|
-
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 ");
|
|
1179
|
-
case 'medium':
|
|
1180
|
-
default:
|
|
1181
|
-
return "\n font: ".concat(chip$1.sizes.medium.font, ";\n padding: ").concat(chip$1.sizes.medium.padding, ";\n ");
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1444
|
+
// Chips have one size: 24px from the label scale as a minimum, with the content centred
|
|
1445
|
+
// and no vertical padding (decisions 0034 and 0035). Horizontal padding comes from the
|
|
1446
|
+
// semantic spacing scale (decision 0022).
|
|
1447
|
+
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");
|
|
1184
1448
|
|
|
1185
|
-
var chip =
|
|
1186
|
-
semantic$f =
|
|
1449
|
+
var chip = tokens.component.chip,
|
|
1450
|
+
semantic$f = tokens.semantic;
|
|
1187
1451
|
// Base styled component using direct prop interpolation like Button
|
|
1188
1452
|
var StyledChip = styled.span.withConfig({
|
|
1189
1453
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -1191,18 +1455,20 @@ var StyledChip = styled.span.withConfig({
|
|
|
1191
1455
|
},
|
|
1192
1456
|
displayName: "ChipBase__StyledChip",
|
|
1193
1457
|
componentId: "sc-moa6zc-0"
|
|
1194
|
-
})(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"
|
|
1458
|
+
})(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"
|
|
1195
1459
|
// Icon container for selected indicator or leading icons
|
|
1196
|
-
])), chip["default"].borderRadius, semantic$f.motion.
|
|
1460
|
+
])), chip["default"].borderRadius, semantic$f.motion.transition.feedback, function (props) {
|
|
1197
1461
|
return props.$disabled ? 'not-allowed' : props.$clickable ? 'pointer' : 'default';
|
|
1198
|
-
},
|
|
1462
|
+
}, forcedColorsEdge, function (props) {
|
|
1463
|
+
return props.$disabled ? "".concat(forcedColors, " { color: GrayText; }") : '';
|
|
1464
|
+
}, getVariantStyles, sizeStyles, chip.focus.outline, semantic$f.border.focusOffset);
|
|
1199
1465
|
// Icon container for selected indicator or leading icons
|
|
1200
1466
|
var IconContainer = styled.span.withConfig({
|
|
1201
1467
|
displayName: "ChipBase__IconContainer",
|
|
1202
1468
|
componentId: "sc-moa6zc-1"
|
|
1203
1469
|
})(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"
|
|
1204
1470
|
// Close button for dismissible chips
|
|
1205
|
-
])),
|
|
1471
|
+
])), tokens.semantic.space[100]);
|
|
1206
1472
|
// Close button for dismissible chips
|
|
1207
1473
|
var CloseButton = styled.button.withConfig({
|
|
1208
1474
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -1210,10 +1476,10 @@ var CloseButton = styled.button.withConfig({
|
|
|
1210
1476
|
},
|
|
1211
1477
|
displayName: "ChipBase__CloseButton",
|
|
1212
1478
|
componentId: "sc-moa6zc-2"
|
|
1213
|
-
})(templateObject_3$
|
|
1479
|
+
})(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) {
|
|
1214
1480
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
1215
|
-
}, semantic$f.motion.
|
|
1216
|
-
var templateObject_1$E, templateObject_2$s, templateObject_3$
|
|
1481
|
+
}, 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);
|
|
1482
|
+
var templateObject_1$E, templateObject_2$s, templateObject_3$r;
|
|
1217
1483
|
|
|
1218
1484
|
/**
|
|
1219
1485
|
* Chip - a static, non-interactive label for tags, categories and metadata.
|
|
@@ -1229,12 +1495,12 @@ var templateObject_1$E, templateObject_2$s, templateObject_3$q;
|
|
|
1229
1495
|
var Chip = function Chip(_a) {
|
|
1230
1496
|
var children = _a.children,
|
|
1231
1497
|
_b = _a.variant,
|
|
1232
|
-
variant = _b === void 0 ? 'default' : _b
|
|
1233
|
-
|
|
1234
|
-
size
|
|
1235
|
-
onClick = _a.onClick,
|
|
1236
|
-
|
|
1237
|
-
disabled =
|
|
1498
|
+
variant = _b === void 0 ? 'default' : _b;
|
|
1499
|
+
// Deprecated and ignored: chips have one size (decision 0035)
|
|
1500
|
+
_a.size;
|
|
1501
|
+
var onClick = _a.onClick,
|
|
1502
|
+
_c = _a.disabled,
|
|
1503
|
+
disabled = _c === void 0 ? false : _c,
|
|
1238
1504
|
dataTestId = _a["data-testid"],
|
|
1239
1505
|
ariaLabel = _a["aria-label"],
|
|
1240
1506
|
ariaDescribedBy = _a["aria-describedby"],
|
|
@@ -1259,7 +1525,6 @@ var Chip = function Chip(_a) {
|
|
|
1259
1525
|
};
|
|
1260
1526
|
return jsx(StyledChip, __assign({
|
|
1261
1527
|
"$variant": normalizedVariant,
|
|
1262
|
-
"$size": size,
|
|
1263
1528
|
"$disabled": disabled || undefined,
|
|
1264
1529
|
"$clickable": isClickable || undefined,
|
|
1265
1530
|
onClick: isClickable ? handleClick : undefined,
|
|
@@ -1305,11 +1570,11 @@ var InputChip = function InputChip(_a) {
|
|
|
1305
1570
|
var children = _a.children,
|
|
1306
1571
|
_b = _a.selected,
|
|
1307
1572
|
selected = _b === void 0 ? false : _b,
|
|
1308
|
-
onDismiss = _a.onDismiss
|
|
1309
|
-
|
|
1310
|
-
size
|
|
1311
|
-
|
|
1312
|
-
disabled =
|
|
1573
|
+
onDismiss = _a.onDismiss;
|
|
1574
|
+
// Deprecated and ignored: chips have one size (decision 0035)
|
|
1575
|
+
_a.size;
|
|
1576
|
+
var _c = _a.disabled,
|
|
1577
|
+
disabled = _c === void 0 ? false : _c,
|
|
1313
1578
|
dataTestId = _a["data-testid"],
|
|
1314
1579
|
ariaLabel = _a["aria-label"],
|
|
1315
1580
|
ariaDescribedBy = _a["aria-describedby"],
|
|
@@ -1339,7 +1604,6 @@ var InputChip = function InputChip(_a) {
|
|
|
1339
1604
|
var closeButtonLabel = typeof children === 'string' ? "Remove ".concat(children) : 'Remove filter';
|
|
1340
1605
|
return jsxs(StyledChip, __assign({
|
|
1341
1606
|
"$variant": "subtle",
|
|
1342
|
-
"$size": size,
|
|
1343
1607
|
"$disabled": disabled || undefined,
|
|
1344
1608
|
"$clickable": false,
|
|
1345
1609
|
"$selected": selected,
|
|
@@ -1405,11 +1669,11 @@ var FilterChip = InputChip;
|
|
|
1405
1669
|
var BooleanChip = function BooleanChip(_a) {
|
|
1406
1670
|
var children = _a.children,
|
|
1407
1671
|
selected = _a.selected,
|
|
1408
|
-
onClick = _a.onClick
|
|
1409
|
-
|
|
1410
|
-
size
|
|
1411
|
-
|
|
1412
|
-
disabled =
|
|
1672
|
+
onClick = _a.onClick;
|
|
1673
|
+
// Deprecated and ignored: chips have one size (decision 0035)
|
|
1674
|
+
_a.size;
|
|
1675
|
+
var _b = _a.disabled,
|
|
1676
|
+
disabled = _b === void 0 ? false : _b,
|
|
1413
1677
|
dataTestId = _a["data-testid"],
|
|
1414
1678
|
ariaLabel = _a["aria-label"],
|
|
1415
1679
|
ariaDescribedBy = _a["aria-describedby"],
|
|
@@ -1428,7 +1692,6 @@ var BooleanChip = function BooleanChip(_a) {
|
|
|
1428
1692
|
};
|
|
1429
1693
|
return jsxs(StyledChip, __assign({
|
|
1430
1694
|
"$variant": "subtle",
|
|
1431
|
-
"$size": size,
|
|
1432
1695
|
"$disabled": disabled || undefined,
|
|
1433
1696
|
"$clickable": !disabled,
|
|
1434
1697
|
"$selected": selected,
|
|
@@ -1453,11 +1716,11 @@ var BooleanChip = function BooleanChip(_a) {
|
|
|
1453
1716
|
}));
|
|
1454
1717
|
};
|
|
1455
1718
|
|
|
1456
|
-
var
|
|
1719
|
+
var space$c = tokens.semantic.space;
|
|
1457
1720
|
var StyledContainer$2 = styled.div.withConfig({
|
|
1458
1721
|
displayName: "Container__StyledContainer",
|
|
1459
1722
|
componentId: "sc-17dbj6n-0"
|
|
1460
|
-
})(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"])),
|
|
1723
|
+
})(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']);
|
|
1461
1724
|
var Container$1 = function Container(_a) {
|
|
1462
1725
|
var children = _a.children,
|
|
1463
1726
|
props = __rest(_a, ["children"]);
|
|
@@ -1470,19 +1733,27 @@ var templateObject_1$D;
|
|
|
1470
1733
|
var PictureWrapper = styled.div.withConfig({
|
|
1471
1734
|
displayName: "Picture__PictureWrapper",
|
|
1472
1735
|
componentId: "sc-11d9tei-0"
|
|
1473
|
-
})(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"
|
|
1736
|
+
})(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"
|
|
1737
|
+
// A clickable image answers input on the image itself (decision 0029, #185): it fades on hover and
|
|
1738
|
+
// one step further while pressed, and draws the system focus ring around the image, following its
|
|
1739
|
+
// rounded corners. Fading isn't movement, so it stays under reduced motion.
|
|
1740
|
+
])), media$1.sm);
|
|
1741
|
+
// A clickable image answers input on the image itself (decision 0029, #185): it fades on hover and
|
|
1742
|
+
// one step further while pressed, and draws the system focus ring around the image, following its
|
|
1743
|
+
// rounded corners. Fading isn't movement, so it stays under reduced motion.
|
|
1744
|
+
var clickableImage = 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);
|
|
1474
1745
|
var ImageLink = styled.a.withConfig({
|
|
1475
1746
|
displayName: "Picture__ImageLink",
|
|
1476
1747
|
componentId: "sc-11d9tei-1"
|
|
1477
|
-
})(
|
|
1748
|
+
})(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), clickableImage);
|
|
1478
1749
|
var ImageButton = styled.button.withConfig({
|
|
1479
1750
|
displayName: "Picture__ImageButton",
|
|
1480
1751
|
componentId: "sc-11d9tei-2"
|
|
1481
|
-
})(
|
|
1752
|
+
})(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);
|
|
1482
1753
|
var StyledImage = styled.img.withConfig({
|
|
1483
1754
|
displayName: "Picture__StyledImage",
|
|
1484
1755
|
componentId: "sc-11d9tei-3"
|
|
1485
|
-
})(
|
|
1756
|
+
})(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);
|
|
1486
1757
|
var Picture = function Picture(_a) {
|
|
1487
1758
|
var title = _a.title,
|
|
1488
1759
|
src = _a.src,
|
|
@@ -1512,18 +1783,18 @@ var Picture = function Picture(_a) {
|
|
|
1512
1783
|
}) : image
|
|
1513
1784
|
});
|
|
1514
1785
|
};
|
|
1515
|
-
var templateObject_1$C, templateObject_2$r, templateObject_3$
|
|
1786
|
+
var templateObject_1$C, templateObject_2$r, templateObject_3$q, templateObject_4$l, templateObject_5$h;
|
|
1516
1787
|
|
|
1517
|
-
var _a$
|
|
1518
|
-
typography$1 = _a$
|
|
1519
|
-
color$
|
|
1788
|
+
var _a$8 = tokens.semantic,
|
|
1789
|
+
typography$1 = _a$8.typography,
|
|
1790
|
+
color$6 = _a$8.color;
|
|
1520
1791
|
var TimeStyled = styled.time.withConfig({
|
|
1521
1792
|
displayName: "DateFormatter__TimeStyled",
|
|
1522
1793
|
componentId: "sc-5464cc-0"
|
|
1523
1794
|
})(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
|
|
1524
1795
|
/**
|
|
1525
1796
|
* Formats a date with smart relative/absolute logic
|
|
1526
|
-
*/])), typography$1.label, color$
|
|
1797
|
+
*/])), typography$1.label, color$6.text.muted);
|
|
1527
1798
|
/**
|
|
1528
1799
|
* Formats a date with smart relative/absolute logic
|
|
1529
1800
|
*/
|
|
@@ -1568,18 +1839,25 @@ var DateFormatter = function DateFormatter(_a) {
|
|
|
1568
1839
|
};
|
|
1569
1840
|
var templateObject_1$B;
|
|
1570
1841
|
|
|
1571
|
-
var _a$
|
|
1572
|
-
motion$5 = _a$
|
|
1573
|
-
border$
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1842
|
+
var _a$7 = tokens.semantic,
|
|
1843
|
+
motion$5 = _a$7.motion,
|
|
1844
|
+
border$3 = _a$7.border,
|
|
1845
|
+
space$b = _a$7.space,
|
|
1846
|
+
size$2 = _a$7.size,
|
|
1847
|
+
_b$2 = tokens.component,
|
|
1848
|
+
iconButton = _b$2.iconButton,
|
|
1849
|
+
button = _b$2.button;
|
|
1850
|
+
// Height and width come from size.control as a minimum (decision 0034)
|
|
1851
|
+
var control = {
|
|
1852
|
+
small: size$2.control.sm,
|
|
1853
|
+
medium: size$2.control.md,
|
|
1854
|
+
large: size$2.control.lg
|
|
1855
|
+
};
|
|
1578
1856
|
// Padding comes from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
1579
1857
|
var padding = {
|
|
1580
|
-
small:
|
|
1581
|
-
medium:
|
|
1582
|
-
large:
|
|
1858
|
+
small: space$b.inset.xs,
|
|
1859
|
+
medium: space$b.inset.sm,
|
|
1860
|
+
large: space$b.inset.md
|
|
1583
1861
|
};
|
|
1584
1862
|
// Colours and motion come from Button's tokens, so IconButton's variants look and behave exactly like
|
|
1585
1863
|
// Button's in every state (#130). Only the size and the icon differ
|
|
@@ -1620,18 +1898,18 @@ var IconButtonStyled = styled.button.withConfig({
|
|
|
1620
1898
|
},
|
|
1621
1899
|
displayName: "IconButton__IconButtonStyled",
|
|
1622
1900
|
componentId: "sc-k8b14t-0"
|
|
1623
|
-
})(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
|
|
1901
|
+
})(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) {
|
|
1624
1902
|
var $variant = _a.$variant;
|
|
1625
1903
|
return colours($variant).bg;
|
|
1626
1904
|
}, function (_a) {
|
|
1627
1905
|
var $variant = _a.$variant;
|
|
1628
1906
|
return colours($variant).text;
|
|
1629
|
-
}, iconButton.primary.borderRadius, motion$5.
|
|
1907
|
+
}, iconButton.primary.borderRadius, motion$5.transition.feedback, function (_a) {
|
|
1630
1908
|
var $size = _a.$size;
|
|
1631
|
-
return
|
|
1909
|
+
return control[$size];
|
|
1632
1910
|
}, function (_a) {
|
|
1633
1911
|
var $size = _a.$size;
|
|
1634
|
-
return
|
|
1912
|
+
return control[$size];
|
|
1635
1913
|
}, function (_a) {
|
|
1636
1914
|
var $size = _a.$size;
|
|
1637
1915
|
return padding[$size];
|
|
@@ -1641,13 +1919,13 @@ var IconButtonStyled = styled.button.withConfig({
|
|
|
1641
1919
|
}, function (_a) {
|
|
1642
1920
|
var $variant = _a.$variant;
|
|
1643
1921
|
return colours($variant).activeBg;
|
|
1644
|
-
}, iconButton.focus.outline, border$
|
|
1922
|
+
}, iconButton.focus.outline, border$3.focusOffset, function (_a) {
|
|
1645
1923
|
var $variant = _a.$variant;
|
|
1646
1924
|
return colours($variant).disabledBg;
|
|
1647
1925
|
}, function (_a) {
|
|
1648
1926
|
var $variant = _a.$variant;
|
|
1649
1927
|
return colours($variant).disabledText;
|
|
1650
|
-
});
|
|
1928
|
+
}, forcedColorsEdge);
|
|
1651
1929
|
var IconButton = function IconButton(_a) {
|
|
1652
1930
|
var variant = _a.variant,
|
|
1653
1931
|
_b = _a.size,
|
|
@@ -1713,7 +1991,7 @@ var StyledWrapper = styled.span.withConfig({
|
|
|
1713
1991
|
return $align;
|
|
1714
1992
|
}, function (_a) {
|
|
1715
1993
|
var $weight = _a.$weight;
|
|
1716
|
-
return
|
|
1994
|
+
return tokens.semantic.fontWeight[$weight];
|
|
1717
1995
|
});
|
|
1718
1996
|
// Map size to Typography variant
|
|
1719
1997
|
var sizeToTypographyVariant = {
|
|
@@ -1816,22 +2094,21 @@ var MoneyDisplay = function MoneyDisplay(_a) {
|
|
|
1816
2094
|
var templateObject_1$z;
|
|
1817
2095
|
|
|
1818
2096
|
// Destructure tokens
|
|
1819
|
-
var semantic$e =
|
|
1820
|
-
var _a$
|
|
1821
|
-
component:
|
|
2097
|
+
var semantic$e = tokens.semantic;
|
|
2098
|
+
var _a$6 = __assign(__assign({}, semantic$e), {
|
|
2099
|
+
component: tokens.component
|
|
1822
2100
|
}),
|
|
1823
|
-
color$
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
component$2 = _a$
|
|
1827
|
-
var radius$2 = border$7.radius;
|
|
2101
|
+
color$5 = _a$6.color,
|
|
2102
|
+
motion$4 = _a$6.motion,
|
|
2103
|
+
radius$2 = _a$6.radius,
|
|
2104
|
+
component$2 = _a$6.component;
|
|
1828
2105
|
var ProgressBarContainer = styled.div.withConfig({
|
|
1829
2106
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1830
2107
|
return !prop.startsWith('$');
|
|
1831
2108
|
},
|
|
1832
2109
|
displayName: "ProgressBar__ProgressBarContainer",
|
|
1833
2110
|
componentId: "sc-1nco33q-0"
|
|
1834
|
-
})(templateObject_3$
|
|
2111
|
+
})(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) {
|
|
1835
2112
|
return props.$variant === 'horizontal' && 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);
|
|
1836
2113
|
}, function (props) {
|
|
1837
2114
|
return props.$variant === 'vertical' && 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);
|
|
@@ -1842,19 +2119,19 @@ var ProgressBarFill = styled.div.withConfig({
|
|
|
1842
2119
|
},
|
|
1843
2120
|
displayName: "ProgressBar__ProgressBarFill",
|
|
1844
2121
|
componentId: "sc-1nco33q-1"
|
|
1845
|
-
})(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.
|
|
2122
|
+
})(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) {
|
|
1846
2123
|
var backgroundColor;
|
|
1847
2124
|
switch (props.$color) {
|
|
1848
2125
|
case 'success':
|
|
1849
|
-
backgroundColor = color$
|
|
2126
|
+
backgroundColor = color$5.fill.success;
|
|
1850
2127
|
break;
|
|
1851
2128
|
case 'error':
|
|
1852
|
-
backgroundColor = color$
|
|
2129
|
+
backgroundColor = color$5.fill.danger;
|
|
1853
2130
|
break;
|
|
1854
2131
|
case 'default':
|
|
1855
2132
|
default:
|
|
1856
2133
|
// Near-black, like Slider's fill (decision 0029)
|
|
1857
|
-
backgroundColor = color$
|
|
2134
|
+
backgroundColor = color$5.fill.emphasis;
|
|
1858
2135
|
break;
|
|
1859
2136
|
}
|
|
1860
2137
|
return css(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundColor);
|
|
@@ -1895,12 +2172,12 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
1895
2172
|
})
|
|
1896
2173
|
});
|
|
1897
2174
|
};
|
|
1898
|
-
var templateObject_1$y, templateObject_2$q, templateObject_3$
|
|
2175
|
+
var templateObject_1$y, templateObject_2$q, templateObject_3$p, templateObject_4$k, templateObject_5$g, templateObject_6$c, templateObject_7$a;
|
|
1899
2176
|
|
|
1900
2177
|
// Destructure tokens for cleaner access
|
|
1901
|
-
var separatorTokens =
|
|
2178
|
+
var separatorTokens = tokens.component.separator;
|
|
1902
2179
|
// Margins come from the semantic separator spacing: no component spacing tokens (decision 0022)
|
|
1903
|
-
var
|
|
2180
|
+
var space$a = tokens.semantic.space;
|
|
1904
2181
|
var StyledDivider = styled.div.withConfig({
|
|
1905
2182
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1906
2183
|
return !prop.startsWith('$');
|
|
@@ -1929,9 +2206,9 @@ var StyledDivider = styled.div.withConfig({
|
|
|
1929
2206
|
var _b = _a.$orientation,
|
|
1930
2207
|
$orientation = _b === void 0 ? 'horizontal' : _b;
|
|
1931
2208
|
if ($orientation === 'vertical') {
|
|
1932
|
-
return "\n display: inline-block;\n height: auto;\n align-self: stretch;\n border-left: ".concat(
|
|
2209
|
+
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 ");
|
|
1933
2210
|
}
|
|
1934
|
-
return "border-top: ".concat(
|
|
2211
|
+
return "border-top: ".concat(tokens.semantic.border.width.thin, " solid;");
|
|
1935
2212
|
}, function (_a) {
|
|
1936
2213
|
var _b = _a.$variant,
|
|
1937
2214
|
$variant = _b === void 0 ? 'default' : _b,
|
|
@@ -1956,33 +2233,33 @@ var StyledDivider = styled.div.withConfig({
|
|
|
1956
2233
|
$orientation = _d === void 0 ? 'horizontal' : _d;
|
|
1957
2234
|
if ($variant === 'minimal' && $orientation === 'horizontal') {
|
|
1958
2235
|
// Minimal variant always uses its predefined spacing for horizontal
|
|
1959
|
-
return "margin: ".concat(
|
|
2236
|
+
return "margin: ".concat(space$a[600], " 0;");
|
|
1960
2237
|
}
|
|
1961
2238
|
if ($orientation === 'vertical') {
|
|
1962
2239
|
// Vertical orientation uses horizontal margins (left/right)
|
|
1963
2240
|
switch ($size) {
|
|
1964
2241
|
case 'small':
|
|
1965
|
-
return "margin: 0 ".concat(
|
|
2242
|
+
return "margin: 0 ".concat(space$a[400], ";");
|
|
1966
2243
|
case 'medium':
|
|
1967
|
-
return "margin: 0 ".concat(
|
|
2244
|
+
return "margin: 0 ".concat(space$a[600], ";");
|
|
1968
2245
|
case 'xlarge':
|
|
1969
|
-
return "margin: 0 ".concat(
|
|
2246
|
+
return "margin: 0 ".concat(space$a[1200], ";");
|
|
1970
2247
|
case 'large':
|
|
1971
2248
|
default:
|
|
1972
|
-
return "margin: 0 ".concat(
|
|
2249
|
+
return "margin: 0 ".concat(space$a[800], ";");
|
|
1973
2250
|
}
|
|
1974
2251
|
}
|
|
1975
2252
|
// Horizontal orientation uses vertical margins (top/bottom)
|
|
1976
2253
|
switch ($size) {
|
|
1977
2254
|
case 'small':
|
|
1978
|
-
return "margin: ".concat(
|
|
2255
|
+
return "margin: ".concat(space$a[400], " 0;");
|
|
1979
2256
|
case 'medium':
|
|
1980
|
-
return "margin: ".concat(
|
|
2257
|
+
return "margin: ".concat(space$a[600], " 0;");
|
|
1981
2258
|
case 'xlarge':
|
|
1982
|
-
return "margin: ".concat(
|
|
2259
|
+
return "margin: ".concat(space$a[1200], " 0;");
|
|
1983
2260
|
case 'large':
|
|
1984
2261
|
default:
|
|
1985
|
-
return "margin: ".concat(
|
|
2262
|
+
return "margin: ".concat(space$a[800], " 0;");
|
|
1986
2263
|
}
|
|
1987
2264
|
});
|
|
1988
2265
|
/**
|
|
@@ -2029,17 +2306,32 @@ var StyledStack = styled.div.withConfig({
|
|
|
2029
2306
|
displayName: "Stack__StyledStack",
|
|
2030
2307
|
componentId: "sc-1ehkxgy-0"
|
|
2031
2308
|
})(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"
|
|
2032
|
-
//
|
|
2309
|
+
// Each gap name maps to the space step that replaced its old spacing.layout token (decision 0031),
|
|
2310
|
+
// so every gap keeps its value
|
|
2033
2311
|
])));
|
|
2312
|
+
// Each gap name maps to the space step that replaced its old spacing.layout token (decision 0031),
|
|
2313
|
+
// so every gap keeps its value
|
|
2314
|
+
var GAP_SPACE = {
|
|
2315
|
+
none: '0',
|
|
2316
|
+
xs: '100',
|
|
2317
|
+
sm: '200',
|
|
2318
|
+
md: '300',
|
|
2319
|
+
lg: '400',
|
|
2320
|
+
xl: '500',
|
|
2321
|
+
'2xl': '600',
|
|
2322
|
+
'3xl': '700',
|
|
2323
|
+
'4xl': '800',
|
|
2324
|
+
'5xl': '900',
|
|
2325
|
+
'6xl': '1000'
|
|
2326
|
+
};
|
|
2034
2327
|
// Helper function to convert gap prop to CSS value
|
|
2035
2328
|
var getGapValue = function getGapValue(gap) {
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
return semanticSpacing[gap];
|
|
2329
|
+
var step = GAP_SPACE[gap];
|
|
2330
|
+
if (step) {
|
|
2331
|
+
return tokens.semantic.space[step];
|
|
2040
2332
|
}
|
|
2041
|
-
// Fallback to medium
|
|
2042
|
-
return
|
|
2333
|
+
// Fallback to medium spacing for an unknown gap (from untyped JavaScript)
|
|
2334
|
+
return tokens.semantic.space[300];
|
|
2043
2335
|
};
|
|
2044
2336
|
var Stack = function Stack(_a) {
|
|
2045
2337
|
var children = _a.children,
|
|
@@ -2070,52 +2362,53 @@ var Stack = function Stack(_a) {
|
|
|
2070
2362
|
var templateObject_1$w;
|
|
2071
2363
|
|
|
2072
2364
|
// Destructure tokens for cleaner access
|
|
2073
|
-
var statusColors =
|
|
2074
|
-
var
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
var
|
|
2365
|
+
var statusColors = tokens.component.status;
|
|
2366
|
+
var _a$5 = tokens.semantic,
|
|
2367
|
+
space$9 = _a$5.space,
|
|
2368
|
+
radius$1 = _a$5.radius;
|
|
2369
|
+
var _b$1 = tokens.semantic.motion,
|
|
2370
|
+
transition = _b$1.transition,
|
|
2371
|
+
duration$3 = _b$1.duration,
|
|
2372
|
+
easing$3 = _b$1.easing;
|
|
2373
|
+
var labelHeight = tokens.semantic.size.label;
|
|
2374
|
+
var label$1 = tokens.component.badge.label;
|
|
2082
2375
|
var scaleIn$1 = 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"])));
|
|
2083
2376
|
var getStatusConfig = function getStatusConfig(status) {
|
|
2084
2377
|
var configs = {
|
|
2085
2378
|
pending: {
|
|
2086
|
-
color: statusColors.pending,
|
|
2087
|
-
bgColor: statusColors
|
|
2379
|
+
color: statusColors.pending.text,
|
|
2380
|
+
bgColor: statusColors.pending.background,
|
|
2088
2381
|
icon: 'refresh',
|
|
2089
2382
|
// Fallback until 'clock' icon is added
|
|
2090
2383
|
label: 'Pending'
|
|
2091
2384
|
},
|
|
2092
2385
|
completed: {
|
|
2093
|
-
color: statusColors.completed,
|
|
2094
|
-
bgColor: statusColors
|
|
2386
|
+
color: statusColors.completed.text,
|
|
2387
|
+
bgColor: statusColors.completed.background,
|
|
2095
2388
|
icon: 'check',
|
|
2096
2389
|
label: 'Completed'
|
|
2097
2390
|
},
|
|
2098
2391
|
failed: {
|
|
2099
|
-
color: statusColors.failed,
|
|
2100
|
-
bgColor: statusColors
|
|
2392
|
+
color: statusColors.failed.text,
|
|
2393
|
+
bgColor: statusColors.failed.background,
|
|
2101
2394
|
icon: 'close',
|
|
2102
2395
|
label: 'Failed'
|
|
2103
2396
|
},
|
|
2104
2397
|
cancelled: {
|
|
2105
|
-
color: statusColors.cancelled,
|
|
2106
|
-
bgColor: statusColors
|
|
2398
|
+
color: statusColors.cancelled.text,
|
|
2399
|
+
bgColor: statusColors.cancelled.background,
|
|
2107
2400
|
icon: 'cancel',
|
|
2108
2401
|
label: 'Cancelled'
|
|
2109
2402
|
},
|
|
2110
2403
|
processing: {
|
|
2111
|
-
color: statusColors.processing,
|
|
2112
|
-
bgColor: statusColors
|
|
2404
|
+
color: statusColors.processing.text,
|
|
2405
|
+
bgColor: statusColors.processing.background,
|
|
2113
2406
|
icon: 'refresh',
|
|
2114
2407
|
label: 'Processing'
|
|
2115
2408
|
},
|
|
2116
2409
|
scheduled: {
|
|
2117
|
-
color: statusColors.scheduled,
|
|
2118
|
-
bgColor: statusColors
|
|
2410
|
+
color: statusColors.scheduled.text,
|
|
2411
|
+
bgColor: statusColors.scheduled.background,
|
|
2119
2412
|
icon: 'bell',
|
|
2120
2413
|
// Fallback until 'calendar' icon is added
|
|
2121
2414
|
label: 'Scheduled'
|
|
@@ -2127,16 +2420,16 @@ var getStatusConfig = function getStatusConfig(status) {
|
|
|
2127
2420
|
var sizeConfig$1 = {
|
|
2128
2421
|
small: {
|
|
2129
2422
|
height: labelHeight.small,
|
|
2130
|
-
padding: "".concat(
|
|
2423
|
+
padding: "".concat(space$9[100], " ").concat(space$9[200]),
|
|
2131
2424
|
font: label$1.typography.small,
|
|
2132
|
-
gap:
|
|
2425
|
+
gap: space$9[100],
|
|
2133
2426
|
iconSize: 'xs'
|
|
2134
2427
|
},
|
|
2135
2428
|
medium: {
|
|
2136
2429
|
height: labelHeight.medium,
|
|
2137
|
-
padding: "".concat(
|
|
2430
|
+
padding: "".concat(space$9[100], " ").concat(space$9[200]),
|
|
2138
2431
|
font: label$1.typography.medium,
|
|
2139
|
-
gap:
|
|
2432
|
+
gap: space$9[100],
|
|
2140
2433
|
iconSize: 'sm'
|
|
2141
2434
|
}
|
|
2142
2435
|
};
|
|
@@ -2146,7 +2439,7 @@ var StyledStatusLabel = styled.span.withConfig({
|
|
|
2146
2439
|
},
|
|
2147
2440
|
displayName: "StatusLabelBase__StyledStatusLabel",
|
|
2148
2441
|
componentId: "sc-1ye9xz5-0"
|
|
2149
|
-
})(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 /*
|
|
2442
|
+
})(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) {
|
|
2150
2443
|
var $size = _a.$size;
|
|
2151
2444
|
var size = sizeConfig$1[$size];
|
|
2152
2445
|
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 ");
|
|
@@ -2158,7 +2451,7 @@ var StyledStatusLabel = styled.span.withConfig({
|
|
|
2158
2451
|
var ScreenReaderOnly = styled.span.withConfig({
|
|
2159
2452
|
displayName: "StatusLabelBase__ScreenReaderOnly",
|
|
2160
2453
|
componentId: "sc-1ye9xz5-1"
|
|
2161
|
-
})(templateObject_3$
|
|
2454
|
+
})(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"
|
|
2162
2455
|
// The visible content, hidden from assistive technology when an aria-label replaces it.
|
|
2163
2456
|
// display: contents keeps the root's flex layout and gap.
|
|
2164
2457
|
])), visuallyHidden);
|
|
@@ -2216,7 +2509,7 @@ var StatusLabelBase = function StatusLabelBase(_a) {
|
|
|
2216
2509
|
})]
|
|
2217
2510
|
});
|
|
2218
2511
|
};
|
|
2219
|
-
var templateObject_1$v, templateObject_2$p, templateObject_3$
|
|
2512
|
+
var templateObject_1$v, templateObject_2$p, templateObject_3$o, templateObject_4$j;
|
|
2220
2513
|
|
|
2221
2514
|
/**
|
|
2222
2515
|
* StatusBadge displays a transaction or task status.
|
|
@@ -2250,14 +2543,12 @@ var StatusLabel = function StatusLabel(props) {
|
|
|
2250
2543
|
};
|
|
2251
2544
|
StatusLabel.displayName = 'StatusLabel';
|
|
2252
2545
|
|
|
2253
|
-
var semantic$d =
|
|
2254
|
-
var color$
|
|
2255
|
-
spacing$5 = semantic$d.spacing,
|
|
2256
|
-
border$6 = semantic$d.border,
|
|
2546
|
+
var semantic$d = tokens.semantic;
|
|
2547
|
+
var color$4 = semantic$d.color,
|
|
2257
2548
|
size$1 = semantic$d.size;
|
|
2258
|
-
var label =
|
|
2259
|
-
var
|
|
2260
|
-
var radius =
|
|
2549
|
+
var label = tokens.component.badge.label;
|
|
2550
|
+
var space$8 = semantic$d.space;
|
|
2551
|
+
var radius = semantic$d.radius;
|
|
2261
2552
|
var StyledTag = styled.span.withConfig({
|
|
2262
2553
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2263
2554
|
return !prop.startsWith('$');
|
|
@@ -2275,38 +2566,38 @@ var StyledTag = styled.span.withConfig({
|
|
|
2275
2566
|
return size$1.label[$size];
|
|
2276
2567
|
}, function (_a) {
|
|
2277
2568
|
var $size = _a.$size;
|
|
2278
|
-
return $size === 'small' ? "0 ".concat(
|
|
2569
|
+
return $size === 'small' ? "0 ".concat(space$8[200]) : "".concat(space$8[100], " ").concat(space$8[200]);
|
|
2279
2570
|
}, label.typography.small, label.fontWeight, function (_a) {
|
|
2280
2571
|
var $variant = _a.$variant;
|
|
2281
2572
|
switch ($variant) {
|
|
2282
2573
|
case 'interactive':
|
|
2283
|
-
return color$
|
|
2574
|
+
return color$4.fill['accent-muted'];
|
|
2284
2575
|
case 'success':
|
|
2285
|
-
return color$
|
|
2576
|
+
return color$4.fill['success-muted'];
|
|
2286
2577
|
case 'warning':
|
|
2287
|
-
return color$
|
|
2578
|
+
return color$4.fill['warning-muted'];
|
|
2288
2579
|
case 'error':
|
|
2289
|
-
return color$
|
|
2580
|
+
return color$4.fill['danger-muted'];
|
|
2290
2581
|
case 'emphasis':
|
|
2291
|
-
return color$
|
|
2582
|
+
return color$4.fill.emphasis;
|
|
2292
2583
|
default:
|
|
2293
|
-
return color$
|
|
2584
|
+
return color$4.fill.muted;
|
|
2294
2585
|
}
|
|
2295
2586
|
}, function (_a) {
|
|
2296
2587
|
var $variant = _a.$variant;
|
|
2297
2588
|
switch ($variant) {
|
|
2298
2589
|
case 'interactive':
|
|
2299
|
-
return color$
|
|
2590
|
+
return color$4.text.accent;
|
|
2300
2591
|
case 'success':
|
|
2301
|
-
return color$
|
|
2592
|
+
return color$4.text.success;
|
|
2302
2593
|
case 'warning':
|
|
2303
|
-
return color$
|
|
2594
|
+
return color$4.text.warning;
|
|
2304
2595
|
case 'error':
|
|
2305
|
-
return color$
|
|
2596
|
+
return color$4.text.danger;
|
|
2306
2597
|
case 'emphasis':
|
|
2307
|
-
return color$
|
|
2598
|
+
return color$4.text.inverse;
|
|
2308
2599
|
default:
|
|
2309
|
-
return color$
|
|
2600
|
+
return color$4.text["default"];
|
|
2310
2601
|
}
|
|
2311
2602
|
}, function (_a) {
|
|
2312
2603
|
var $variant = _a.$variant,
|
|
@@ -2314,17 +2605,17 @@ var StyledTag = styled.span.withConfig({
|
|
|
2314
2605
|
if (!$border) return 'none';
|
|
2315
2606
|
switch ($variant) {
|
|
2316
2607
|
case 'interactive':
|
|
2317
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2608
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border.accent);
|
|
2318
2609
|
case 'success':
|
|
2319
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2610
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border.success);
|
|
2320
2611
|
case 'warning':
|
|
2321
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2612
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border.warning);
|
|
2322
2613
|
case 'error':
|
|
2323
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2614
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border.danger);
|
|
2324
2615
|
case 'emphasis':
|
|
2325
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2616
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.fill.emphasis);
|
|
2326
2617
|
default:
|
|
2327
|
-
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$
|
|
2618
|
+
return "".concat(semantic$d.border.width.thin, " solid ").concat(color$4.border["default"]);
|
|
2328
2619
|
}
|
|
2329
2620
|
});
|
|
2330
2621
|
/**
|
|
@@ -2359,21 +2650,20 @@ var Tag = function Tag(_a) {
|
|
|
2359
2650
|
var templateObject_1$u;
|
|
2360
2651
|
|
|
2361
2652
|
// Destructure tokens for cleaner access
|
|
2362
|
-
var semantic$c =
|
|
2363
|
-
var
|
|
2364
|
-
var layout$2 = spacing$4.layout;
|
|
2653
|
+
var semantic$c = tokens.semantic;
|
|
2654
|
+
var space$7 = semantic$c.space;
|
|
2365
2655
|
var StyledBalanceSection = styled.div.withConfig({
|
|
2366
2656
|
displayName: "AccountCard__StyledBalanceSection",
|
|
2367
2657
|
componentId: "sc-1erp7zn-0"
|
|
2368
|
-
})(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])),
|
|
2658
|
+
})(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), space$7[400]);
|
|
2369
2659
|
var StyledTrendSection = styled.div.withConfig({
|
|
2370
2660
|
displayName: "AccountCard__StyledTrendSection",
|
|
2371
2661
|
componentId: "sc-1erp7zn-1"
|
|
2372
|
-
})(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"])),
|
|
2662
|
+
})(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]);
|
|
2373
2663
|
styled.div.withConfig({
|
|
2374
2664
|
displayName: "AccountCard__StyledActions",
|
|
2375
2665
|
componentId: "sc-1erp7zn-2"
|
|
2376
|
-
})(templateObject_3$
|
|
2666
|
+
})(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]);
|
|
2377
2667
|
var StyledStackWrapper = styled.div.withConfig({
|
|
2378
2668
|
displayName: "AccountCard__StyledStackWrapper",
|
|
2379
2669
|
componentId: "sc-1erp7zn-3"
|
|
@@ -2381,9 +2671,9 @@ var StyledStackWrapper = styled.div.withConfig({
|
|
|
2381
2671
|
var StyledHeaderWrapper = styled.div.withConfig({
|
|
2382
2672
|
displayName: "AccountCard__StyledHeaderWrapper",
|
|
2383
2673
|
componentId: "sc-1erp7zn-4"
|
|
2384
|
-
})(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"
|
|
2674
|
+
})(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"
|
|
2385
2675
|
// Map trend direction to icon and color
|
|
2386
|
-
])),
|
|
2676
|
+
])), tokens.component.accountCard.header.minHeight, space$7[0], space$7[100]);
|
|
2387
2677
|
// Map trend direction to icon and color
|
|
2388
2678
|
var trendToIcon = {
|
|
2389
2679
|
up: 'arrowUp',
|
|
@@ -2432,12 +2722,12 @@ var AccountCard = function AccountCard(_a) {
|
|
|
2432
2722
|
}
|
|
2433
2723
|
};
|
|
2434
2724
|
return jsx(Box, {
|
|
2435
|
-
minWidth:
|
|
2725
|
+
minWidth: tokens.component.accountCard.minWidth,
|
|
2436
2726
|
p: "lg",
|
|
2437
2727
|
bg: "subtle",
|
|
2438
2728
|
border: "default",
|
|
2439
2729
|
borderRadius: "xl",
|
|
2440
|
-
transition: "box-shadow ".concat(semantic$c.motion.duration.
|
|
2730
|
+
transition: "box-shadow ".concat(semantic$c.motion.duration.moderate, " ").concat(semantic$c.motion.easing.decelerate),
|
|
2441
2731
|
cursor: isClickable ? 'pointer' : 'default',
|
|
2442
2732
|
hoverShadow: isClickable ? 'floating' : undefined,
|
|
2443
2733
|
onClick: handleClick,
|
|
@@ -2532,7 +2822,7 @@ var AccountCard = function AccountCard(_a) {
|
|
|
2532
2822
|
})
|
|
2533
2823
|
});
|
|
2534
2824
|
};
|
|
2535
|
-
var templateObject_1$t, templateObject_2$o, templateObject_3$
|
|
2825
|
+
var templateObject_1$t, templateObject_2$o, templateObject_3$n, templateObject_4$i, templateObject_5$f;
|
|
2536
2826
|
|
|
2537
2827
|
/**
|
|
2538
2828
|
* The spacing a List gives its items (#77). A ListItem without its own `spacing` uses it; outside
|
|
@@ -2540,10 +2830,10 @@ var templateObject_1$t, templateObject_2$o, templateObject_3$m, templateObject_4
|
|
|
2540
2830
|
*/
|
|
2541
2831
|
var ListSpacingContext = /*#__PURE__*/createContext('comfortable');
|
|
2542
2832
|
|
|
2543
|
-
var semantic$b =
|
|
2544
|
-
var _a$
|
|
2545
|
-
duration$2 = _a$
|
|
2546
|
-
easing$2 = _a$
|
|
2833
|
+
var semantic$b = tokens.semantic;
|
|
2834
|
+
var _a$4 = semantic$b.motion,
|
|
2835
|
+
duration$2 = _a$4.duration,
|
|
2836
|
+
easing$2 = _a$4.easing;
|
|
2547
2837
|
var StyledListItem = styled.li.withConfig({
|
|
2548
2838
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2549
2839
|
return !prop.startsWith('$');
|
|
@@ -2559,7 +2849,7 @@ var StyledListItem = styled.li.withConfig({
|
|
|
2559
2849
|
}, function (_a) {
|
|
2560
2850
|
var $destructive = _a.$destructive,
|
|
2561
2851
|
$disabled = _a.$disabled;
|
|
2562
|
-
return $destructive && !$disabled && "\n color: ".concat(semantic$b.color.text.
|
|
2852
|
+
return $destructive && !$disabled && "\n color: ".concat(semantic$b.color.text.danger, ";\n ");
|
|
2563
2853
|
});
|
|
2564
2854
|
var StyledItemContent = styled.div.withConfig({
|
|
2565
2855
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -2567,13 +2857,10 @@ var StyledItemContent = styled.div.withConfig({
|
|
|
2567
2857
|
},
|
|
2568
2858
|
displayName: "ListItem__StyledItemContent",
|
|
2569
2859
|
componentId: "sc-1wzzt21-1"
|
|
2570
|
-
})(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
|
|
2860
|
+
})(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) {
|
|
2571
2861
|
var $spacing = _a.$spacing;
|
|
2572
|
-
return $spacing === 'compact' ? "".concat(semantic$b.
|
|
2573
|
-
}, semantic$b.
|
|
2574
|
-
var $selected = _a.$selected;
|
|
2575
|
-
return $selected ? semantic$b.color.background['interactive-subtle'] : 'transparent';
|
|
2576
|
-
}, duration$2.fast, easing$2.easeOut, function (_a) {
|
|
2862
|
+
return $spacing === 'compact' ? "".concat(semantic$b.space[200], " ").concat(semantic$b.space[300]) : "".concat(semantic$b.space[300], " ").concat(semantic$b.space[400]);
|
|
2863
|
+
}, semantic$b.radius.sm, duration$2.fast, easing$2.decelerate, duration$2.fast, easing$2.decelerate, function (_a) {
|
|
2577
2864
|
var $interactive = _a.$interactive,
|
|
2578
2865
|
$disabled = _a.$disabled;
|
|
2579
2866
|
if ($disabled) return 'not-allowed';
|
|
@@ -2583,27 +2870,31 @@ var StyledItemContent = styled.div.withConfig({
|
|
|
2583
2870
|
var $interactive = _a.$interactive,
|
|
2584
2871
|
$disabled = _a.$disabled,
|
|
2585
2872
|
$selected = _a.$selected;
|
|
2586
|
-
return
|
|
2873
|
+
return interactiveRow({
|
|
2874
|
+
selected: $selected,
|
|
2875
|
+
disabled: $disabled || !$interactive,
|
|
2876
|
+
textSelector: "".concat(StyledTextContent, " > :first-child")
|
|
2877
|
+
});
|
|
2587
2878
|
}, semantic$b.border.focus, semantic$b.border.focusOffset);
|
|
2588
2879
|
var StyledIconContainer$1 = styled.div.withConfig({
|
|
2589
2880
|
displayName: "ListItem__StyledIconContainer",
|
|
2590
2881
|
componentId: "sc-1wzzt21-2"
|
|
2591
|
-
})(templateObject_3$
|
|
2882
|
+
})(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);
|
|
2592
2883
|
var StyledTextContent = styled.div.withConfig({
|
|
2593
2884
|
displayName: "ListItem__StyledTextContent",
|
|
2594
2885
|
componentId: "sc-1wzzt21-3"
|
|
2595
|
-
})(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.
|
|
2886
|
+
})(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]);
|
|
2596
2887
|
var StyledRightContent = styled.div.withConfig({
|
|
2597
2888
|
displayName: "ListItem__StyledRightContent",
|
|
2598
2889
|
componentId: "sc-1wzzt21-4"
|
|
2599
|
-
})(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.
|
|
2890
|
+
})(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]);
|
|
2600
2891
|
var StyledChevronIcon = styled.div.withConfig({
|
|
2601
2892
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2602
2893
|
return !prop.startsWith('$');
|
|
2603
2894
|
},
|
|
2604
2895
|
displayName: "ListItem__StyledChevronIcon",
|
|
2605
2896
|
componentId: "sc-1wzzt21-5"
|
|
2606
|
-
})(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.
|
|
2897
|
+
})(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) {
|
|
2607
2898
|
var $expanded = _a.$expanded;
|
|
2608
2899
|
return $expanded ? '180deg' : '0deg';
|
|
2609
2900
|
}, reducedMotion);
|
|
@@ -2613,7 +2904,7 @@ var StyledExpandedContent = styled.div.withConfig({
|
|
|
2613
2904
|
},
|
|
2614
2905
|
displayName: "ListItem__StyledExpandedContent",
|
|
2615
2906
|
componentId: "sc-1wzzt21-6"
|
|
2616
|
-
})(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.
|
|
2907
|
+
})(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) {
|
|
2617
2908
|
var $expanded = _a.$expanded;
|
|
2618
2909
|
return $expanded ? '1000px' : '0';
|
|
2619
2910
|
}, function (_a) {
|
|
@@ -2622,10 +2913,10 @@ var StyledExpandedContent = styled.div.withConfig({
|
|
|
2622
2913
|
}, function (_a) {
|
|
2623
2914
|
var $expanded = _a.$expanded;
|
|
2624
2915
|
return $expanded ? 'visible' : 'hidden';
|
|
2625
|
-
}, reducedMotion, duration$2.
|
|
2916
|
+
}, reducedMotion, duration$2.moderate, easing$2.decelerate, duration$2.moderate, easing$2.decelerate, function (_a) {
|
|
2626
2917
|
var $expanded = _a.$expanded,
|
|
2627
2918
|
$spacing = _a.$spacing;
|
|
2628
|
-
return $expanded && "\n padding: ".concat($spacing === 'compact' ? "".concat(semantic$b.
|
|
2919
|
+
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 ");
|
|
2629
2920
|
});
|
|
2630
2921
|
var ListItem = function ListItem(_a) {
|
|
2631
2922
|
var primary = _a.primary,
|
|
@@ -2747,9 +3038,10 @@ var ListItem = function ListItem(_a) {
|
|
|
2747
3038
|
);
|
|
2748
3039
|
};
|
|
2749
3040
|
ListItem.displayName = 'ListItem';
|
|
2750
|
-
var templateObject_1$s, templateObject_2$n, templateObject_3$
|
|
3041
|
+
var templateObject_1$s, templateObject_2$n, templateObject_3$m, templateObject_4$h, templateObject_5$e, templateObject_6$b, templateObject_7$9;
|
|
2751
3042
|
|
|
2752
|
-
// How long an exiting element stays mounted: the duration of `exitAnimation` in styleUtils.
|
|
3043
|
+
// How long an exiting element stays mounted: the duration of `exitAnimation` in styleUtils. A timer
|
|
3044
|
+
// needs the resolved value, not the CSS variable (decision 0041).
|
|
2753
3045
|
var EXIT_DURATION_MS = parseInt(tokensJson.semantic.motion.duration.fast, 10);
|
|
2754
3046
|
/**
|
|
2755
3047
|
* Keeps an element mounted for `exitMs` after `isOpen` turns false, so its exit
|
|
@@ -2792,35 +3084,35 @@ function useInert(ref, isInert) {
|
|
|
2792
3084
|
}, [ref, isInert]);
|
|
2793
3085
|
}
|
|
2794
3086
|
|
|
2795
|
-
var _a$
|
|
2796
|
-
color$
|
|
2797
|
-
border$
|
|
2798
|
-
|
|
2799
|
-
motion$3 = _a$
|
|
2800
|
-
elevation$2 = _a$
|
|
3087
|
+
var _a$3 = tokens.semantic,
|
|
3088
|
+
color$3 = _a$3.color,
|
|
3089
|
+
border$2 = _a$3.border,
|
|
3090
|
+
space$6 = _a$3.space,
|
|
3091
|
+
motion$3 = _a$3.motion,
|
|
3092
|
+
elevation$2 = _a$3.elevation;
|
|
2801
3093
|
var slideUp = 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"])));
|
|
2802
3094
|
var fadeIn$2 = 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"])));
|
|
2803
3095
|
var StyledOverlay$2 = styled.div.withConfig({
|
|
2804
3096
|
displayName: "ActionSheet__StyledOverlay",
|
|
2805
3097
|
componentId: "sc-regbol-0"
|
|
2806
|
-
})(templateObject_3$
|
|
3098
|
+
})(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) {
|
|
2807
3099
|
var $isExiting = _a.$isExiting;
|
|
2808
3100
|
return $isExiting && exitAnimation;
|
|
2809
3101
|
});
|
|
2810
3102
|
var StyledActionSheet = styled.div.withConfig({
|
|
2811
3103
|
displayName: "ActionSheet__StyledActionSheet",
|
|
2812
3104
|
componentId: "sc-regbol-1"
|
|
2813
|
-
})(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"])),
|
|
3105
|
+
})(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) {
|
|
2814
3106
|
var $isExiting = _a.$isExiting;
|
|
2815
3107
|
return $isExiting && exitAnimation;
|
|
2816
|
-
}, reducedMotion, fadeIn$2, motion$3.duration.slow, motion$3.easing.
|
|
3108
|
+
}, reducedMotion, fadeIn$2, motion$3.duration.slow, motion$3.easing.decelerate, function (_a) {
|
|
2817
3109
|
var $isExiting = _a.$isExiting;
|
|
2818
3110
|
return $isExiting && exitAnimation;
|
|
2819
3111
|
});
|
|
2820
3112
|
var StyledHeader$2 = styled.div.withConfig({
|
|
2821
3113
|
displayName: "ActionSheet__StyledHeader",
|
|
2822
3114
|
componentId: "sc-regbol-2"
|
|
2823
|
-
})(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"])),
|
|
3115
|
+
})(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"]);
|
|
2824
3116
|
var StyledHeaderContent = styled.div.withConfig({
|
|
2825
3117
|
displayName: "ActionSheet__StyledHeaderContent",
|
|
2826
3118
|
componentId: "sc-regbol-3"
|
|
@@ -2828,7 +3120,7 @@ var StyledHeaderContent = styled.div.withConfig({
|
|
|
2828
3120
|
var StyledCloseButton = styled.button.withConfig({
|
|
2829
3121
|
displayName: "ActionSheet__StyledCloseButton",
|
|
2830
3122
|
componentId: "sc-regbol-4"
|
|
2831
|
-
})(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"])),
|
|
3123
|
+
})(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);
|
|
2832
3124
|
var StyledActionsList = styled.ul.withConfig({
|
|
2833
3125
|
displayName: "ActionSheet__StyledActionsList",
|
|
2834
3126
|
componentId: "sc-regbol-5"
|
|
@@ -2865,7 +3157,7 @@ var StyledActionsList = styled.ul.withConfig({
|
|
|
2865
3157
|
* ]}
|
|
2866
3158
|
* />
|
|
2867
3159
|
* ```
|
|
2868
|
-
*/])),
|
|
3160
|
+
*/])), space$6[200], space$6[300]);
|
|
2869
3161
|
/**
|
|
2870
3162
|
* ActionSheet component for bottom sheet modals
|
|
2871
3163
|
*
|
|
@@ -3055,7 +3347,7 @@ var ActionSheet = function ActionSheet(_a) {
|
|
|
3055
3347
|
})]
|
|
3056
3348
|
}), document.body);
|
|
3057
3349
|
};
|
|
3058
|
-
var templateObject_1$r, templateObject_2$m, templateObject_3$
|
|
3350
|
+
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;
|
|
3059
3351
|
|
|
3060
3352
|
function detectSpeechRecognitionConstructor(targetWindow) {
|
|
3061
3353
|
if (!targetWindow) return null;
|
|
@@ -3155,8 +3447,8 @@ function agentInputStateTransition(currentState, event) {
|
|
|
3155
3447
|
}
|
|
3156
3448
|
}
|
|
3157
3449
|
|
|
3158
|
-
var semantic$a =
|
|
3159
|
-
component$1 =
|
|
3450
|
+
var semantic$a = tokens.semantic,
|
|
3451
|
+
component$1 = tokens.component;
|
|
3160
3452
|
var DEFAULT_IDLE_HELPER = 'Ask about transactions, spending, or transfers';
|
|
3161
3453
|
var DEFAULT_LISTENING_MESSAGE = 'Listening… speak now';
|
|
3162
3454
|
var DEFAULT_PROCESSING_MESSAGE = 'Finishing voice input…';
|
|
@@ -3164,27 +3456,27 @@ var rotateRing = keyframes(templateObject_1$q || (templateObject_1$q = __makeTem
|
|
|
3164
3456
|
var Container = styled.div.withConfig({
|
|
3165
3457
|
displayName: "AgentInput__Container",
|
|
3166
3458
|
componentId: "sc-fhl996-0"
|
|
3167
|
-
})(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.
|
|
3459
|
+
})(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]);
|
|
3168
3460
|
var ControlsRow = styled.div.withConfig({
|
|
3169
3461
|
displayName: "AgentInput__ControlsRow",
|
|
3170
3462
|
componentId: "sc-fhl996-1"
|
|
3171
|
-
})(templateObject_3$
|
|
3463
|
+
})(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
3172
3464
|
var InputShell = styled.div.withConfig({
|
|
3173
3465
|
displayName: "AgentInput__InputShell",
|
|
3174
3466
|
componentId: "sc-fhl996-2"
|
|
3175
|
-
})(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.
|
|
3467
|
+
})(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);
|
|
3176
3468
|
var Input = styled.input.withConfig({
|
|
3177
3469
|
displayName: "AgentInput__Input",
|
|
3178
3470
|
componentId: "sc-fhl996-3"
|
|
3179
|
-
})(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.
|
|
3471
|
+
})(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);
|
|
3180
3472
|
var InputActions = styled.div.withConfig({
|
|
3181
3473
|
displayName: "AgentInput__InputActions",
|
|
3182
3474
|
componentId: "sc-fhl996-4"
|
|
3183
|
-
})(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.
|
|
3475
|
+
})(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]);
|
|
3184
3476
|
var CircularActionIconButton = styled(IconButton).withConfig({
|
|
3185
3477
|
displayName: "AgentInput__CircularActionIconButton",
|
|
3186
3478
|
componentId: "sc-fhl996-5"
|
|
3187
|
-
})(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), semantic$a.
|
|
3479
|
+
})(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), semantic$a.radius.full);
|
|
3188
3480
|
var InputWrapper = styled.div.withConfig({
|
|
3189
3481
|
displayName: "AgentInput__InputWrapper",
|
|
3190
3482
|
componentId: "sc-fhl996-6"
|
|
@@ -3198,7 +3490,7 @@ var MicButtonWrapper = styled.div.withConfig({
|
|
|
3198
3490
|
})(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"
|
|
3199
3491
|
// Masks read only alpha, so the opaque stop is a mask value, not a colour (decision 0010).
|
|
3200
3492
|
// eslint-disable-next-line no-restricted-syntax
|
|
3201
|
-
])), semantic$a.
|
|
3493
|
+
])), semantic$a.radius.full);
|
|
3202
3494
|
// Masks read only alpha, so the opaque stop is a mask value, not a colour (decision 0010).
|
|
3203
3495
|
// eslint-disable-next-line no-restricted-syntax
|
|
3204
3496
|
var ringMask = 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)))"])));
|
|
@@ -3208,21 +3500,21 @@ var MicListeningRing = styled.span.withConfig({
|
|
|
3208
3500
|
},
|
|
3209
3501
|
displayName: "AgentInput__MicListeningRing",
|
|
3210
3502
|
componentId: "sc-fhl996-8"
|
|
3211
|
-
})(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.
|
|
3503
|
+
})(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) {
|
|
3212
3504
|
var $reducedMotion = _a.$reducedMotion;
|
|
3213
3505
|
return !$reducedMotion && css(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n animation: ", " 1300ms linear infinite;\n "], ["\n animation: ", " 1300ms linear infinite;\n "])), rotateRing);
|
|
3214
3506
|
});
|
|
3215
3507
|
var StatusRow = styled.div.withConfig({
|
|
3216
3508
|
displayName: "AgentInput__StatusRow",
|
|
3217
3509
|
componentId: "sc-fhl996-9"
|
|
3218
|
-
})(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.
|
|
3510
|
+
})(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]);
|
|
3219
3511
|
var StatusText = styled.div.withConfig({
|
|
3220
3512
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
3221
3513
|
return !prop.startsWith('$');
|
|
3222
3514
|
},
|
|
3223
3515
|
displayName: "AgentInput__StatusText",
|
|
3224
3516
|
componentId: "sc-fhl996-10"
|
|
3225
|
-
})(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$a.
|
|
3517
|
+
})(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$a.space[500]);
|
|
3226
3518
|
var StatusAnnouncement = styled.div.withConfig({
|
|
3227
3519
|
displayName: "AgentInput__StatusAnnouncement",
|
|
3228
3520
|
componentId: "sc-fhl996-11"
|
|
@@ -3230,17 +3522,17 @@ var StatusAnnouncement = styled.div.withConfig({
|
|
|
3230
3522
|
var MeterContainer = styled.div.withConfig({
|
|
3231
3523
|
displayName: "AgentInput__MeterContainer",
|
|
3232
3524
|
componentId: "sc-fhl996-12"
|
|
3233
|
-
})(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.
|
|
3525
|
+
})(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]);
|
|
3234
3526
|
var MeterBar = styled.div.withConfig({
|
|
3235
3527
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
3236
3528
|
return !prop.startsWith('$');
|
|
3237
3529
|
},
|
|
3238
3530
|
displayName: "AgentInput__MeterBar",
|
|
3239
3531
|
componentId: "sc-fhl996-13"
|
|
3240
|
-
})(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.
|
|
3532
|
+
})(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) {
|
|
3241
3533
|
var $height = _a.$height;
|
|
3242
3534
|
return "".concat($height * 100, "%");
|
|
3243
|
-
}, semantic$a.motion.duration.fast, semantic$a.motion.easing.
|
|
3535
|
+
}, semantic$a.motion.duration.fast, semantic$a.motion.easing.decelerate);
|
|
3244
3536
|
var VisuallyHiddenLabel = styled.label.withConfig({
|
|
3245
3537
|
displayName: "AgentInput__VisuallyHiddenLabel",
|
|
3246
3538
|
componentId: "sc-fhl996-14"
|
|
@@ -3873,16 +4165,17 @@ var AgentInput = function AgentInput(_a) {
|
|
|
3873
4165
|
})]
|
|
3874
4166
|
});
|
|
3875
4167
|
};
|
|
3876
|
-
var templateObject_1$q, templateObject_2$l, templateObject_3$
|
|
4168
|
+
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;
|
|
3877
4169
|
|
|
3878
|
-
var semantic$9 =
|
|
3879
|
-
var alert =
|
|
3880
|
-
var _a$
|
|
3881
|
-
duration$1 = _a$
|
|
3882
|
-
easing$1 = _a$
|
|
4170
|
+
var semantic$9 = tokens.semantic;
|
|
4171
|
+
var alert = tokens.component.alert;
|
|
4172
|
+
var _a$2 = semantic$9.motion,
|
|
4173
|
+
duration$1 = _a$2.duration,
|
|
4174
|
+
easing$1 = _a$2.easing;
|
|
3883
4175
|
// Dismissing fades the alert out, then collapses the space it took (Ollie's call, #35).
|
|
3884
|
-
// Each half takes duration.fast, so the whole exit stays within the 300ms maximum (P6).
|
|
3885
|
-
|
|
4176
|
+
// Each half takes duration.fast, so the whole exit stays within the 300ms maximum (P6). The timer
|
|
4177
|
+
// needs the resolved value, not the CSS variable (decision 0041).
|
|
4178
|
+
var FADE_MS = parseInt(tokensJson.semantic.motion.duration.fast, 10);
|
|
3886
4179
|
var EXIT_MS = FADE_MS * 2;
|
|
3887
4180
|
// The --alert-exit-* properties are the alert's height and vertical padding, measured
|
|
3888
4181
|
// when it's dismissed, so nothing moves until the fade has finished
|
|
@@ -3927,11 +4220,11 @@ var StyledAlert = styled.div.withConfig({
|
|
|
3927
4220
|
componentId: "sc-18tq5d-0"
|
|
3928
4221
|
})(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) {
|
|
3929
4222
|
var $inline = _a.$inline;
|
|
3930
|
-
return $inline ? semantic$9.
|
|
4223
|
+
return $inline ? semantic$9.space[200] : semantic$9.space[300];
|
|
3931
4224
|
}, function (_a) {
|
|
3932
4225
|
var $inline = _a.$inline;
|
|
3933
|
-
return $inline ? semantic$9.
|
|
3934
|
-
}, semantic$9.
|
|
4226
|
+
return $inline ? semantic$9.space[200] : semantic$9.space[300];
|
|
4227
|
+
}, semantic$9.radius.sm, semantic$9.border.width.thin, function (_a) {
|
|
3935
4228
|
var _b = _a.$variant,
|
|
3936
4229
|
$variant = _b === void 0 ? 'info' : _b;
|
|
3937
4230
|
return alert.severity[$variant].background;
|
|
@@ -3946,11 +4239,11 @@ var StyledAlert = styled.div.withConfig({
|
|
|
3946
4239
|
return alert.appearance[$appearance].borderColor[$variant];
|
|
3947
4240
|
}, semantic$9.breakpoint.md, function (_a) {
|
|
3948
4241
|
var $inline = _a.$inline;
|
|
3949
|
-
return $inline ? semantic$9.
|
|
4242
|
+
return $inline ? semantic$9.space[200] : semantic$9.space[400];
|
|
3950
4243
|
}, function (_a) {
|
|
3951
4244
|
var $isExiting = _a.$isExiting,
|
|
3952
4245
|
$reducedExit = _a.$reducedExit;
|
|
3953
|
-
return $isExiting && 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 ? css(templateObject_3$
|
|
4246
|
+
return $isExiting && 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 ? css(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["", " ", " ", " forwards"], ["", " ", " ", " forwards"])), fadeOut, duration$1.fast, easing$1.accelerate) : css(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["", " ", "ms ", " forwards"], ["", " ", "ms ", " forwards"])), fadeThenCollapse, EXIT_MS, easing$1.accelerate));
|
|
3954
4247
|
});
|
|
3955
4248
|
var StyledIconContainer = styled.div.withConfig({
|
|
3956
4249
|
displayName: "Alert__StyledIconContainer",
|
|
@@ -3959,7 +4252,7 @@ var StyledIconContainer = styled.div.withConfig({
|
|
|
3959
4252
|
var StyledContent$1 = styled.div.withConfig({
|
|
3960
4253
|
displayName: "Alert__StyledContent",
|
|
3961
4254
|
componentId: "sc-18tq5d-2"
|
|
3962
|
-
})(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.
|
|
4255
|
+
})(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]);
|
|
3963
4256
|
var StyledTitle = styled.span.withConfig({
|
|
3964
4257
|
displayName: "Alert__StyledTitle",
|
|
3965
4258
|
componentId: "sc-18tq5d-3"
|
|
@@ -3981,7 +4274,7 @@ var StyledActions = styled.div.withConfig({
|
|
|
3981
4274
|
// message when there's no title (decision 0019). The slot is as tall as that line and the
|
|
3982
4275
|
// button is centred in it, overflowing evenly into the padding, so it stays aligned at every
|
|
3983
4276
|
// padding and line height. Being in the row, it also keeps text and actions from running under it.
|
|
3984
|
-
])), semantic$9.
|
|
4277
|
+
])), semantic$9.space[200], semantic$9.space[300], semantic$9.space[100]);
|
|
3985
4278
|
// The dismiss button's centre lines up with the first line of content: the title, or the
|
|
3986
4279
|
// message when there's no title (decision 0019). The slot is as tall as that line and the
|
|
3987
4280
|
// button is centred in it, overflowing evenly into the padding, so it stays aligned at every
|
|
@@ -4006,7 +4299,7 @@ var StyledDismissButton = styled(IconButton).withConfig({
|
|
|
4006
4299
|
componentId: "sc-18tq5d-7"
|
|
4007
4300
|
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
4008
4301
|
var $inline = _a.$inline;
|
|
4009
|
-
return $inline ? 0 : "calc((".concat(
|
|
4302
|
+
return $inline ? 0 : "calc((".concat(semantic$9.size.control.sm, " - ").concat(semantic$9.size.icon.sm, ") / -2)");
|
|
4010
4303
|
});
|
|
4011
4304
|
var Alert = function Alert(_a) {
|
|
4012
4305
|
var _b = _a.variant,
|
|
@@ -4142,12 +4435,11 @@ var Alert = function Alert(_a) {
|
|
|
4142
4435
|
}));
|
|
4143
4436
|
};
|
|
4144
4437
|
Alert.displayName = 'Alert';
|
|
4145
|
-
var templateObject_1$p, templateObject_2$k, templateObject_3$
|
|
4438
|
+
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;
|
|
4146
4439
|
|
|
4147
|
-
var semantic$8 =
|
|
4148
|
-
var color$
|
|
4440
|
+
var semantic$8 = tokens.semantic;
|
|
4441
|
+
var color$2 = semantic$8.color,
|
|
4149
4442
|
typography = semantic$8.typography,
|
|
4150
|
-
spacing$3 = semantic$8.spacing,
|
|
4151
4443
|
size = semantic$8.size;
|
|
4152
4444
|
var variantIcons = {
|
|
4153
4445
|
error: 'crossCircle',
|
|
@@ -4156,20 +4448,20 @@ var variantIcons = {
|
|
|
4156
4448
|
success: 'checkRing'
|
|
4157
4449
|
};
|
|
4158
4450
|
var variantTextColors = {
|
|
4159
|
-
error: color$
|
|
4160
|
-
warning: color$
|
|
4161
|
-
info: color$
|
|
4162
|
-
success: color$
|
|
4451
|
+
error: color$2.text.danger,
|
|
4452
|
+
warning: color$2.text.warning,
|
|
4453
|
+
info: color$2.text.accent,
|
|
4454
|
+
success: color$2.text.success
|
|
4163
4455
|
};
|
|
4164
4456
|
var sizeConfig = {
|
|
4165
4457
|
small: {
|
|
4166
4458
|
font: typography.caption,
|
|
4167
|
-
gap:
|
|
4459
|
+
gap: semantic$8.space[100],
|
|
4168
4460
|
icon: 'xs'
|
|
4169
4461
|
},
|
|
4170
4462
|
medium: {
|
|
4171
4463
|
font: typography.small,
|
|
4172
|
-
gap:
|
|
4464
|
+
gap: semantic$8.space[200],
|
|
4173
4465
|
icon: 'sm'
|
|
4174
4466
|
}
|
|
4175
4467
|
};
|
|
@@ -4205,7 +4497,7 @@ var StyledIconLine = styled.span.withConfig({
|
|
|
4205
4497
|
var StyledMessage = styled.span.withConfig({
|
|
4206
4498
|
displayName: "InlineAlert__StyledMessage",
|
|
4207
4499
|
componentId: "sc-eervmb-2"
|
|
4208
|
-
})(templateObject_3$
|
|
4500
|
+
})(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n min-width: 0;\n"], ["\n min-width: 0;\n"
|
|
4209
4501
|
/**
|
|
4210
4502
|
* InlineAlert is a short, local message that sits next to what it's about: between paragraphs,
|
|
4211
4503
|
* below a field or in a table cell (decision 0019). A severity icon and text in the severity
|
|
@@ -4273,20 +4565,20 @@ var InlineAlert = function InlineAlert(_a) {
|
|
|
4273
4565
|
});
|
|
4274
4566
|
};
|
|
4275
4567
|
InlineAlert.displayName = 'InlineAlert';
|
|
4276
|
-
var templateObject_1$o, templateObject_2$j, templateObject_3$
|
|
4568
|
+
var templateObject_1$o, templateObject_2$j, templateObject_3$i;
|
|
4277
4569
|
|
|
4278
4570
|
var BreadcrumbNavStyled = styled.nav.withConfig({
|
|
4279
4571
|
displayName: "Breadcrumbs__BreadcrumbNavStyled",
|
|
4280
4572
|
componentId: "sc-7ouzg5-0"
|
|
4281
|
-
})(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"])),
|
|
4573
|
+
})(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"]);
|
|
4282
4574
|
var BreadcrumbStyled = styled.li.withConfig({
|
|
4283
4575
|
displayName: "Breadcrumbs__BreadcrumbStyled",
|
|
4284
4576
|
componentId: "sc-7ouzg5-1"
|
|
4285
|
-
})(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"])),
|
|
4577
|
+
})(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"]);
|
|
4286
4578
|
var BreadcrumbSeparator = styled.span.withConfig({
|
|
4287
4579
|
displayName: "Breadcrumbs__BreadcrumbSeparator",
|
|
4288
4580
|
componentId: "sc-7ouzg5-2"
|
|
4289
|
-
})(templateObject_3$
|
|
4581
|
+
})(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"])));
|
|
4290
4582
|
var isInternalUrl = function isInternalUrl(url) {
|
|
4291
4583
|
return url.startsWith('/') && !url.startsWith('http');
|
|
4292
4584
|
};
|
|
@@ -4334,12 +4626,14 @@ var Breadcrumbs = function Breadcrumbs(_a) {
|
|
|
4334
4626
|
})
|
|
4335
4627
|
});
|
|
4336
4628
|
};
|
|
4337
|
-
var templateObject_1$n, templateObject_2$i, templateObject_3$
|
|
4629
|
+
var templateObject_1$n, templateObject_2$i, templateObject_3$h;
|
|
4338
4630
|
|
|
4631
|
+
// The whole card is one link (#185): hovering anywhere fades its image, pressing fades it one step
|
|
4632
|
+
// further, and keyboard focus draws the system focus ring around the card (decision 0029)
|
|
4339
4633
|
var CardSmallStyled = styled.div.withConfig({
|
|
4340
4634
|
displayName: "CardSmall__CardSmallStyled",
|
|
4341
4635
|
componentId: "sc-jpcqvd-0"
|
|
4342
|
-
})(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n a {\n text-decoration: none;\n }\n\n img {\n border-radius: ", ";\n transition:
|
|
4636
|
+
})(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);
|
|
4343
4637
|
var CardSmall = function CardSmall(_a) {
|
|
4344
4638
|
var title = _a.title,
|
|
4345
4639
|
picture = _a.picture,
|
|
@@ -4395,11 +4689,10 @@ var CardSmall = function CardSmall(_a) {
|
|
|
4395
4689
|
};
|
|
4396
4690
|
var templateObject_1$m;
|
|
4397
4691
|
|
|
4398
|
-
var border$4 = tokensJson.semantic.border;
|
|
4399
4692
|
var CardLargeStyled = styled.div.withConfig({
|
|
4400
4693
|
displayName: "CardLarge__CardLargeStyled",
|
|
4401
4694
|
componentId: "sc-1rfgdzl-0"
|
|
4402
|
-
})(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n max-width: ", ";\n\n a {\n text-decoration: none;\n }\n\n
|
|
4695
|
+
})(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']);
|
|
4403
4696
|
var CardLarge = function CardLarge(_a) {
|
|
4404
4697
|
var title = _a.title,
|
|
4405
4698
|
excerpt = _a.excerpt,
|
|
@@ -4483,29 +4776,37 @@ var StyledCheckbox = styled.span.withConfig({
|
|
|
4483
4776
|
},
|
|
4484
4777
|
displayName: "SelectableInputBase__StyledCheckbox",
|
|
4485
4778
|
componentId: "sc-1ddpctx-1"
|
|
4486
|
-
})(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:
|
|
4779
|
+
})(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"
|
|
4487
4780
|
/**
|
|
4488
4781
|
* Container for checkbox with proper spacing and alignment
|
|
4489
4782
|
* 48px min-height for touch target (8px grid aligned)
|
|
4490
|
-
*/])),
|
|
4491
|
-
return props.$checked || props.$indeterminate ?
|
|
4783
|
+
*/])), 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) {
|
|
4784
|
+
return props.$checked || props.$indeterminate ? tokens.semantic.color.fill.inverse : tokens.component.input["default"].backgroundColor;
|
|
4492
4785
|
}, function (props) {
|
|
4493
|
-
if (props.$state === 'error') return
|
|
4494
|
-
|
|
4495
|
-
return
|
|
4786
|
+
if (props.$state === 'error') return tokens.component.input.error.borderColor;
|
|
4787
|
+
// A checked box's border matches its fill, so the box reads as solid
|
|
4788
|
+
if (props.$checked || props.$indeterminate) return tokens.semantic.color.fill.inverse;
|
|
4789
|
+
return tokens.component.input["default"].borderColor;
|
|
4496
4790
|
}, function (props) {
|
|
4497
4791
|
return props.$state === 'disabled' ? 'not-allowed' : 'pointer';
|
|
4498
|
-
},
|
|
4499
|
-
return props.$state === 'error' ?
|
|
4500
|
-
}, HiddenCheckboxInput,
|
|
4501
|
-
return props.$state === 'error' ?
|
|
4792
|
+
}, 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) {
|
|
4793
|
+
return props.$state === 'error' ? tokens.component.input.error.hover.borderColor : props.$checked || props.$indeterminate ? tokens.semantic.color.fill.inverse : tokens.component.input.hover.borderColor;
|
|
4794
|
+
}, HiddenCheckboxInput, tokens.component.input.focus.outline, tokens.semantic.border.focusOffset, function (props) {
|
|
4795
|
+
return props.$state === 'error' ? tokens.component.input.error.focus.borderColor : tokens.component.input.focus.borderColor;
|
|
4502
4796
|
}, function (props) {
|
|
4503
|
-
return props.$state === 'disabled' && "\n background-color: ".concat(
|
|
4797
|
+
return props.$state === 'disabled' && "\n background-color: ".concat(tokens.component.input.disabled.backgroundColor, ";\n border-color: ").concat(tokens.component.input.disabled.borderColor, ";\n ");
|
|
4504
4798
|
}, function (props) {
|
|
4505
4799
|
return props.$checked ? 'block' : 'none';
|
|
4506
|
-
},
|
|
4800
|
+
}, tokens.semantic.color.text.inverse, function (props) {
|
|
4507
4801
|
return props.$indeterminate ? 'block' : 'none';
|
|
4508
|
-
},
|
|
4802
|
+
}, tokens.semantic.color.text.inverse, function (props) {
|
|
4803
|
+
var on = props.$checked || props.$indeterminate;
|
|
4804
|
+
var disabled = props.$state === 'disabled';
|
|
4805
|
+
if (!on) return disabled ? "".concat(forcedColors, " { border-color: GrayText; }") : '';
|
|
4806
|
+
var fill = disabled ? 'GrayText' : 'Highlight';
|
|
4807
|
+
var mark = disabled ? 'Canvas' : 'HighlightText';
|
|
4808
|
+
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 }");
|
|
4809
|
+
});
|
|
4509
4810
|
/**
|
|
4510
4811
|
* Container for checkbox with proper spacing and alignment
|
|
4511
4812
|
* 48px min-height for touch target (8px grid aligned)
|
|
@@ -4516,12 +4817,12 @@ var StyledCheckboxContainer = styled.label.withConfig({
|
|
|
4516
4817
|
},
|
|
4517
4818
|
displayName: "SelectableInputBase__StyledCheckboxContainer",
|
|
4518
4819
|
componentId: "sc-1ddpctx-2"
|
|
4519
|
-
})(templateObject_3$
|
|
4820
|
+
})(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"
|
|
4520
4821
|
/**
|
|
4521
4822
|
* Label text with proper typography
|
|
4522
|
-
*/])),
|
|
4823
|
+
*/])), tokens.semantic.space[300], function (props) {
|
|
4523
4824
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
4524
|
-
},
|
|
4825
|
+
}, tokens.component.checkbox.row.minHeight, function (props) {
|
|
4525
4826
|
return props.$labelPosition === 'left' ? 'row-reverse' : 'row';
|
|
4526
4827
|
});
|
|
4527
4828
|
/**
|
|
@@ -4533,15 +4834,15 @@ var StyledCheckboxLabel = styled.span.withConfig({
|
|
|
4533
4834
|
},
|
|
4534
4835
|
displayName: "SelectableInputBase__StyledCheckboxLabel",
|
|
4535
4836
|
componentId: "sc-1ddpctx-3"
|
|
4536
|
-
})(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])),
|
|
4537
|
-
return props.$disabled ?
|
|
4837
|
+
})(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), tokens.component.input["default"].font, function (props) {
|
|
4838
|
+
return props.$disabled ? tokens.component.input.disabled.textColor : tokens.component.input["default"].textColor;
|
|
4538
4839
|
});
|
|
4539
|
-
var templateObject_1$k, templateObject_2$h, templateObject_3$
|
|
4840
|
+
var templateObject_1$k, templateObject_2$h, templateObject_3$g, templateObject_4$d;
|
|
4540
4841
|
|
|
4541
4842
|
var StyledFieldContainer$3 = styled.div.withConfig({
|
|
4542
4843
|
displayName: "Checkbox__StyledFieldContainer",
|
|
4543
4844
|
componentId: "sc-vquz3v-0"
|
|
4544
|
-
})(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"])),
|
|
4845
|
+
})(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]);
|
|
4545
4846
|
var StyledHelperText$4 = styled.span.withConfig({
|
|
4546
4847
|
displayName: "Checkbox__StyledHelperText",
|
|
4547
4848
|
componentId: "sc-vquz3v-1"
|
|
@@ -4567,9 +4868,9 @@ var StyledHelperText$4 = styled.span.withConfig({
|
|
|
4567
4868
|
* required
|
|
4568
4869
|
* />
|
|
4569
4870
|
* ```
|
|
4570
|
-
*/])),
|
|
4571
|
-
return props.$error ?
|
|
4572
|
-
},
|
|
4871
|
+
*/])), tokens.component.field.helperText.typography, function (props) {
|
|
4872
|
+
return props.$error ? tokens.component.field.helperText.colorError : tokens.component.field.helperText.color;
|
|
4873
|
+
}, tokens.semantic.space[900]);
|
|
4573
4874
|
/**
|
|
4574
4875
|
* Checkbox component for binary selection with WCAG 2.2 AA compliance
|
|
4575
4876
|
*
|
|
@@ -4691,19 +4992,18 @@ var ChipGroup = function ChipGroup(_a) {
|
|
|
4691
4992
|
};
|
|
4692
4993
|
var templateObject_1$i;
|
|
4693
4994
|
|
|
4694
|
-
var _a$
|
|
4695
|
-
color$
|
|
4696
|
-
border$
|
|
4697
|
-
|
|
4698
|
-
motion$2 = _a$2.motion;
|
|
4995
|
+
var _a$1 = tokens.semantic,
|
|
4996
|
+
color$1 = _a$1.color,
|
|
4997
|
+
border$1 = _a$1.border,
|
|
4998
|
+
motion$2 = _a$1.motion;
|
|
4699
4999
|
var StyledCodeBlock = styled.pre.withConfig({
|
|
4700
5000
|
displayName: "CodeBlock__StyledCodeBlock",
|
|
4701
5001
|
componentId: "sc-1p1t0kp-0"
|
|
4702
|
-
})(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"])),
|
|
5002
|
+
})(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) {
|
|
4703
5003
|
var $isExpanded = _a.$isExpanded,
|
|
4704
5004
|
$needsExpansion = _a.$needsExpansion;
|
|
4705
5005
|
return $needsExpansion && !$isExpanded ? 'hidden' : 'auto';
|
|
4706
|
-
},
|
|
5006
|
+
}, tokens.semantic.space[200], motion$2.duration.slow, motion$2.easing.standard, reducedMotion, function (_a) {
|
|
4707
5007
|
var $maxHeight = _a.$maxHeight,
|
|
4708
5008
|
$isExpanded = _a.$isExpanded,
|
|
4709
5009
|
$needsExpansion = _a.$needsExpansion;
|
|
@@ -4711,7 +5011,7 @@ var StyledCodeBlock = styled.pre.withConfig({
|
|
|
4711
5011
|
// Use a large value when expanded to allow smooth transition
|
|
4712
5012
|
// 10000px is effectively "no limit" for most code blocks
|
|
4713
5013
|
return $isExpanded ? 'max-height: 10000px;' : "max-height: ".concat($maxHeight, "px;");
|
|
4714
|
-
}, border$
|
|
5014
|
+
}, border$1.focus, border$1.focusOffset);
|
|
4715
5015
|
var CodeBlockWrapper = styled.div.withConfig({
|
|
4716
5016
|
displayName: "CodeBlock__CodeBlockWrapper",
|
|
4717
5017
|
componentId: "sc-1p1t0kp-1"
|
|
@@ -4719,13 +5019,13 @@ var CodeBlockWrapper = styled.div.withConfig({
|
|
|
4719
5019
|
var CopyButtonWrapper = styled.div.withConfig({
|
|
4720
5020
|
displayName: "CodeBlock__CopyButtonWrapper",
|
|
4721
5021
|
componentId: "sc-1p1t0kp-2"
|
|
4722
|
-
})(templateObject_3$
|
|
5022
|
+
})(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]);
|
|
4723
5023
|
var ExpandButtonWrapper = styled.div.withConfig({
|
|
4724
5024
|
displayName: "CodeBlock__ExpandButtonWrapper",
|
|
4725
5025
|
componentId: "sc-1p1t0kp-3"
|
|
4726
|
-
})(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"])),
|
|
5026
|
+
})(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) {
|
|
4727
5027
|
var $hasGradient = _a.$hasGradient;
|
|
4728
|
-
return $hasGradient ? "\n margin-top: -".concat(
|
|
5028
|
+
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 ";
|
|
4729
5029
|
});
|
|
4730
5030
|
var CopyButton = function CopyButton(_a) {
|
|
4731
5031
|
var text = _a.text,
|
|
@@ -4909,23 +5209,23 @@ var CodeBlock = function CodeBlock(_a) {
|
|
|
4909
5209
|
})]
|
|
4910
5210
|
});
|
|
4911
5211
|
};
|
|
4912
|
-
var templateObject_1$h, templateObject_2$f, templateObject_3$
|
|
5212
|
+
var templateObject_1$h, templateObject_2$f, templateObject_3$f, templateObject_4$c, templateObject_5$a;
|
|
4913
5213
|
|
|
4914
5214
|
var StyledHeader$1 = styled.div.withConfig({
|
|
4915
5215
|
displayName: "DateGroup__StyledHeader",
|
|
4916
5216
|
componentId: "sc-9nfm1f-0"
|
|
4917
|
-
})(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"])),
|
|
5217
|
+
})(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) {
|
|
4918
5218
|
var $sticky = _a.$sticky;
|
|
4919
|
-
return $sticky && "\n position: sticky;\n top: 0;\n z-index: ".concat(
|
|
5219
|
+
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 ");
|
|
4920
5220
|
});
|
|
4921
5221
|
var StyledLeftSection = styled.div.withConfig({
|
|
4922
5222
|
displayName: "DateGroup__StyledLeftSection",
|
|
4923
5223
|
componentId: "sc-9nfm1f-1"
|
|
4924
|
-
})(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"])),
|
|
5224
|
+
})(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]);
|
|
4925
5225
|
var StyledRightSection = styled.div.withConfig({
|
|
4926
5226
|
displayName: "DateGroup__StyledRightSection",
|
|
4927
5227
|
componentId: "sc-9nfm1f-2"
|
|
4928
|
-
})(templateObject_3$
|
|
5228
|
+
})(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]);
|
|
4929
5229
|
var StyledContent = styled.div.withConfig({
|
|
4930
5230
|
displayName: "DateGroup__StyledContent",
|
|
4931
5231
|
componentId: "sc-9nfm1f-3"
|
|
@@ -5001,18 +5301,18 @@ var DateGroup = function DateGroup(_a) {
|
|
|
5001
5301
|
})]
|
|
5002
5302
|
});
|
|
5003
5303
|
};
|
|
5004
|
-
var templateObject_1$g, templateObject_2$e, templateObject_3$
|
|
5304
|
+
var templateObject_1$g, templateObject_2$e, templateObject_3$e, templateObject_4$b;
|
|
5005
5305
|
|
|
5006
|
-
var semantic$7 =
|
|
5306
|
+
var semantic$7 = tokens.semantic;
|
|
5007
5307
|
var StyledContainer$1 = styled.div.withConfig({
|
|
5008
5308
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5009
5309
|
return !prop.startsWith('$');
|
|
5010
5310
|
},
|
|
5011
5311
|
displayName: "EmptyState__StyledContainer",
|
|
5012
5312
|
componentId: "sc-1u5hxh-0"
|
|
5013
|
-
})(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"])),
|
|
5313
|
+
})(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) {
|
|
5014
5314
|
var $size = _a.$size;
|
|
5015
|
-
return $size === 'small' ? semantic$7.
|
|
5315
|
+
return $size === 'small' ? semantic$7.space[800] : $size === 'large' ? semantic$7.space[1400] : semantic$7.space[1000];
|
|
5016
5316
|
});
|
|
5017
5317
|
var StyledIllustration = styled.div.withConfig({
|
|
5018
5318
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -5022,20 +5322,20 @@ var StyledIllustration = styled.div.withConfig({
|
|
|
5022
5322
|
componentId: "sc-1u5hxh-1"
|
|
5023
5323
|
})(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) {
|
|
5024
5324
|
var $size = _a.$size;
|
|
5025
|
-
return $size === 'small' ?
|
|
5325
|
+
return $size === 'small' ? tokens.component.emptyState.illustration.small : $size === 'large' ? tokens.component.emptyState.illustration.large : tokens.component.emptyState.illustration.medium;
|
|
5026
5326
|
}, function (_a) {
|
|
5027
5327
|
var $size = _a.$size;
|
|
5028
|
-
return $size === 'small' ?
|
|
5029
|
-
}, semantic$7.
|
|
5328
|
+
return $size === 'small' ? tokens.component.emptyState.illustration.small : $size === 'large' ? tokens.component.emptyState.illustration.large : tokens.component.emptyState.illustration.medium;
|
|
5329
|
+
}, semantic$7.space[600], function (_a) {
|
|
5030
5330
|
var $variant = _a.$variant;
|
|
5031
|
-
return $variant === 'error' ? semantic$7.color.icon.
|
|
5331
|
+
return $variant === 'error' ? semantic$7.color.icon.danger : $variant === 'success' ? semantic$7.color.icon.success : semantic$7.color.icon.muted;
|
|
5032
5332
|
});
|
|
5033
5333
|
var StyledTextContainer = styled.div.withConfig({
|
|
5034
5334
|
displayName: "EmptyState__StyledTextContainer",
|
|
5035
5335
|
componentId: "sc-1u5hxh-2"
|
|
5036
|
-
})(templateObject_3$
|
|
5336
|
+
})(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n max-width: ", ";\n margin-bottom: ", ";\n"], ["\n max-width: ", ";\n margin-bottom: ", ";\n"
|
|
5037
5337
|
// Map illustration type to icon name
|
|
5038
|
-
])),
|
|
5338
|
+
])), tokens.component.emptyState.text.maxWidth, semantic$7.space[600]);
|
|
5039
5339
|
// Map illustration type to icon name
|
|
5040
5340
|
var illustrationToIcon = {
|
|
5041
5341
|
search: 'search',
|
|
@@ -5090,7 +5390,7 @@ var EmptyState = function EmptyState(_a) {
|
|
|
5090
5390
|
children: title
|
|
5091
5391
|
}), jsx("div", {
|
|
5092
5392
|
style: {
|
|
5093
|
-
marginTop: semantic$7.
|
|
5393
|
+
marginTop: semantic$7.space[300]
|
|
5094
5394
|
},
|
|
5095
5395
|
children: jsx(Typography, {
|
|
5096
5396
|
variant: "body",
|
|
@@ -5100,7 +5400,7 @@ var EmptyState = function EmptyState(_a) {
|
|
|
5100
5400
|
})]
|
|
5101
5401
|
}), (action || secondaryAction) && jsx(Box, {
|
|
5102
5402
|
width: "100%",
|
|
5103
|
-
maxWidth:
|
|
5403
|
+
maxWidth: tokens.component.emptyState.actions.maxWidth,
|
|
5104
5404
|
children: jsxs(Stack, {
|
|
5105
5405
|
direction: "column",
|
|
5106
5406
|
gap: "sm",
|
|
@@ -5120,27 +5420,25 @@ var EmptyState = function EmptyState(_a) {
|
|
|
5120
5420
|
})]
|
|
5121
5421
|
});
|
|
5122
5422
|
};
|
|
5123
|
-
var templateObject_1$f, templateObject_2$d, templateObject_3$
|
|
5423
|
+
var templateObject_1$f, templateObject_2$d, templateObject_3$d;
|
|
5124
5424
|
|
|
5125
|
-
var
|
|
5126
|
-
spacing$1 = _a$1.spacing.layout,
|
|
5127
|
-
border$2 = _a$1.border;
|
|
5425
|
+
var space$5 = tokens.semantic.space;
|
|
5128
5426
|
var FeatureBlockStyled = styled.div.withConfig({
|
|
5129
5427
|
displayName: "FeatureBlock__FeatureBlockStyled",
|
|
5130
5428
|
componentId: "sc-1mi4lso-0"
|
|
5131
|
-
})(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
|
|
5429
|
+
})(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']);
|
|
5132
5430
|
var ImageWrapper = styled.div.withConfig({
|
|
5133
5431
|
displayName: "FeatureBlock__ImageWrapper",
|
|
5134
5432
|
componentId: "sc-1mi4lso-1"
|
|
5135
|
-
})(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"])),
|
|
5433
|
+
})(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);
|
|
5136
5434
|
var ContentSection = styled.div.withConfig({
|
|
5137
5435
|
displayName: "FeatureBlock__ContentSection",
|
|
5138
5436
|
componentId: "sc-1mi4lso-2"
|
|
5139
|
-
})(templateObject_3$
|
|
5437
|
+
})(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]);
|
|
5140
5438
|
var ButtonWrapper = styled.div.withConfig({
|
|
5141
5439
|
displayName: "FeatureBlock__ButtonWrapper",
|
|
5142
5440
|
componentId: "sc-1mi4lso-3"
|
|
5143
|
-
})(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n button {\n margin-top: ", ";\n }\n"], ["\n button {\n margin-top: ", ";\n }\n"])),
|
|
5441
|
+
})(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n button {\n margin-top: ", ";\n }\n"], ["\n button {\n margin-top: ", ";\n }\n"])), space$5[400]);
|
|
5144
5442
|
var ContentWrapper = styled.div.withConfig({
|
|
5145
5443
|
displayName: "FeatureBlock__ContentWrapper",
|
|
5146
5444
|
componentId: "sc-1mi4lso-4"
|
|
@@ -5203,21 +5501,23 @@ var FeatureBlock = function FeatureBlock(_a) {
|
|
|
5203
5501
|
}), jsx(Divider, {})]
|
|
5204
5502
|
});
|
|
5205
5503
|
};
|
|
5206
|
-
var templateObject_1$e, templateObject_2$c, templateObject_3$
|
|
5504
|
+
var templateObject_1$e, templateObject_2$c, templateObject_3$c, templateObject_4$a, templateObject_5$9;
|
|
5207
5505
|
|
|
5208
|
-
var _a =
|
|
5209
|
-
|
|
5210
|
-
border$1 = _a.border,
|
|
5211
|
-
zIndex = _a.zIndex,
|
|
5506
|
+
var _a = tokens.semantic,
|
|
5507
|
+
border = _a.border,
|
|
5212
5508
|
elevation$1 = _a.elevation,
|
|
5213
5509
|
motion$1 = _a.motion,
|
|
5214
|
-
|
|
5215
|
-
_b =
|
|
5510
|
+
space$4 = _a.space,
|
|
5511
|
+
_b = tokens.component,
|
|
5216
5512
|
input$1 = _b.input,
|
|
5217
5513
|
field$3 = _b.field;
|
|
5218
5514
|
// Spacing comes from the semantic scales: no component spacing tokens (decision 0022).
|
|
5219
|
-
// The
|
|
5220
|
-
|
|
5515
|
+
// The trigger and options take their height from size.control.lg as a minimum and centre
|
|
5516
|
+
// their content (decision 0034). The small vertical padding only matters when a long
|
|
5517
|
+
// label wraps; a single line is shorter than the minimum.
|
|
5518
|
+
var controlPaddingX = tokens.semantic.space.inset.lg;
|
|
5519
|
+
var controlPaddingY = space$4[200];
|
|
5520
|
+
var controlHeight = tokens.semantic.size.control.lg;
|
|
5221
5521
|
var duration = motion$1.duration,
|
|
5222
5522
|
easing = motion$1.easing;
|
|
5223
5523
|
var DropdownContainer = styled.div.withConfig({
|
|
@@ -5230,16 +5530,16 @@ var DropdownTrigger = styled.button.withConfig({
|
|
|
5230
5530
|
},
|
|
5231
5531
|
displayName: "Dropdown__DropdownTrigger",
|
|
5232
5532
|
componentId: "sc-kz07c4-1"
|
|
5233
|
-
})(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"])),
|
|
5533
|
+
})(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) {
|
|
5234
5534
|
var $hasError = _a.$hasError;
|
|
5235
5535
|
return $hasError ? input$1.error.borderColor : input$1["default"].borderColor;
|
|
5236
|
-
}, input$1["default"].borderRadius, input$1["default"].font, input$1["default"].textColor, duration.
|
|
5536
|
+
}, input$1["default"].borderRadius, input$1["default"].font, input$1["default"].textColor, duration.moderate, easing.standard, duration.moderate, easing.standard, function (_a) {
|
|
5237
5537
|
var $hasError = _a.$hasError;
|
|
5238
5538
|
return $hasError ? input$1.error.hover.borderColor : input$1.hover.borderColor;
|
|
5239
5539
|
}, function (_a) {
|
|
5240
5540
|
var $hasError = _a.$hasError;
|
|
5241
5541
|
return $hasError ? input$1.error.focus.borderColor : input$1.focus.borderColor;
|
|
5242
|
-
}, input$1.focus.outline, border
|
|
5542
|
+
}, input$1.focus.outline, border.focusOffset, input$1.disabled.backgroundColor, input$1.disabled.textColor, input$1.disabled.borderColor, function (_a) {
|
|
5243
5543
|
var $isOpen = _a.$isOpen,
|
|
5244
5544
|
$hasError = _a.$hasError;
|
|
5245
5545
|
return $isOpen && "\n border-color: ".concat($hasError ? input$1.error.focus.borderColor : input$1.focus.borderColor, ";\n ");
|
|
@@ -5250,7 +5550,7 @@ var DropdownIcon = styled.div.withConfig({
|
|
|
5250
5550
|
},
|
|
5251
5551
|
displayName: "Dropdown__DropdownIcon",
|
|
5252
5552
|
componentId: "sc-kz07c4-2"
|
|
5253
|
-
})(templateObject_3$
|
|
5553
|
+
})(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) {
|
|
5254
5554
|
var $isOpen = _a.$isOpen;
|
|
5255
5555
|
return $isOpen && "\n transform: rotate(180deg);\n ";
|
|
5256
5556
|
}, reducedMotion);
|
|
@@ -5260,7 +5560,7 @@ var DropdownMenu = styled.div.withConfig({
|
|
|
5260
5560
|
},
|
|
5261
5561
|
displayName: "Dropdown__DropdownMenu",
|
|
5262
5562
|
componentId: "sc-kz07c4-3"
|
|
5263
|
-
})(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:
|
|
5563
|
+
})(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) {
|
|
5264
5564
|
var $isOpen = _a.$isOpen;
|
|
5265
5565
|
return $isOpen ? 1 : 0;
|
|
5266
5566
|
}, function (_a) {
|
|
@@ -5268,45 +5568,29 @@ var DropdownMenu = styled.div.withConfig({
|
|
|
5268
5568
|
return $isOpen ? 'visible' : 'hidden';
|
|
5269
5569
|
}, function (_a) {
|
|
5270
5570
|
var $isOpen = _a.$isOpen;
|
|
5271
|
-
return $isOpen ? 'translateY(0)' : "translateY(-".concat(
|
|
5272
|
-
}, duration.fast, easing.
|
|
5571
|
+
return $isOpen ? 'translateY(0)' : "translateY(calc(-1 * ".concat(tokens.semantic.motion.distance.sm, "))");
|
|
5572
|
+
}, duration.fast, easing.decelerate, duration.fast, easing.decelerate, duration.fast, easing.decelerate, tokens.semantic.size.menu.maxHeight, reducedMotion);
|
|
5273
5573
|
var DropdownOption = styled.button.withConfig({
|
|
5274
5574
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5275
5575
|
return !prop.startsWith('$');
|
|
5276
5576
|
},
|
|
5277
5577
|
displayName: "Dropdown__DropdownOption",
|
|
5278
5578
|
componentId: "sc-kz07c4-4"
|
|
5279
|
-
})(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
|
|
5579
|
+
})(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) {
|
|
5280
5580
|
var $isSelected = _a.$isSelected,
|
|
5281
5581
|
$isFocused = _a.$isFocused;
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
}
|
|
5286
|
-
|
|
5287
|
-
$isFocused = _a.$isFocused;
|
|
5288
|
-
if ($isSelected) return $isFocused ? color$1.text['interactive-hover'] : color$1.text.interactive;
|
|
5289
|
-
return input$1["default"].textColor;
|
|
5290
|
-
}, duration.fast, easing.easeOut, duration.fast, easing.easeOut, function (_a) {
|
|
5291
|
-
var $isSelected = _a.$isSelected;
|
|
5292
|
-
return $isSelected ? color$1.background['interactive-subtle-hover'] : color$1.background.surface;
|
|
5293
|
-
}, function (_a) {
|
|
5294
|
-
var $isSelected = _a.$isSelected;
|
|
5295
|
-
return $isSelected ? color$1.text['interactive-hover'] : input$1["default"].textColor;
|
|
5296
|
-
}, function (_a) {
|
|
5297
|
-
var $isSelected = _a.$isSelected;
|
|
5298
|
-
return $isSelected ? color$1.background['interactive-subtle-active'] : color$1.background.neutral;
|
|
5299
|
-
}, function (_a) {
|
|
5300
|
-
var $isSelected = _a.$isSelected;
|
|
5301
|
-
return $isSelected ? color$1.text['interactive-active'] : input$1["default"].textColor;
|
|
5302
|
-
}, border$1.subtle);
|
|
5582
|
+
return interactiveRow({
|
|
5583
|
+
selected: $isSelected,
|
|
5584
|
+
focused: $isFocused
|
|
5585
|
+
});
|
|
5586
|
+
}, border.emphasis);
|
|
5303
5587
|
var StyledHelperText$3 = styled.div.withConfig({
|
|
5304
5588
|
displayName: "Dropdown__StyledHelperText",
|
|
5305
5589
|
componentId: "sc-kz07c4-5"
|
|
5306
5590
|
})(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) {
|
|
5307
5591
|
var $hasError = _a.$hasError;
|
|
5308
5592
|
return $hasError ? field$3.helperText.colorError : field$3.helperText.color;
|
|
5309
|
-
},
|
|
5593
|
+
}, space$4[200]);
|
|
5310
5594
|
var Dropdown = function Dropdown(_a) {
|
|
5311
5595
|
var options = _a.options,
|
|
5312
5596
|
value = _a.value,
|
|
@@ -5429,7 +5713,7 @@ var Dropdown = function Dropdown(_a) {
|
|
|
5429
5713
|
htmlFor: dropdownId,
|
|
5430
5714
|
style: {
|
|
5431
5715
|
display: 'block',
|
|
5432
|
-
marginBottom:
|
|
5716
|
+
marginBottom: space$4[200]
|
|
5433
5717
|
},
|
|
5434
5718
|
children: jsx(Typography, {
|
|
5435
5719
|
variant: "label",
|
|
@@ -5486,9 +5770,9 @@ var Dropdown = function Dropdown(_a) {
|
|
|
5486
5770
|
})]
|
|
5487
5771
|
});
|
|
5488
5772
|
};
|
|
5489
|
-
var templateObject_1$d, templateObject_2$b, templateObject_3$
|
|
5773
|
+
var templateObject_1$d, templateObject_2$b, templateObject_3$b, templateObject_4$9, templateObject_5$8, templateObject_6$7;
|
|
5490
5774
|
|
|
5491
|
-
var semantic$6 =
|
|
5775
|
+
var semantic$6 = tokens.semantic;
|
|
5492
5776
|
var StyledList = styled.ul.withConfig({
|
|
5493
5777
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5494
5778
|
return !prop.startsWith('$');
|
|
@@ -5523,19 +5807,18 @@ var List = function List(_a) {
|
|
|
5523
5807
|
List.displayName = 'List';
|
|
5524
5808
|
var templateObject_1$c;
|
|
5525
5809
|
|
|
5526
|
-
var semantic$5 =
|
|
5527
|
-
var
|
|
5810
|
+
var semantic$5 = tokens.semantic;
|
|
5811
|
+
var space$3 = semantic$5.space,
|
|
5528
5812
|
color = semantic$5.color,
|
|
5529
|
-
border = semantic$5.border,
|
|
5530
5813
|
elevation = semantic$5.elevation,
|
|
5531
5814
|
motion = semantic$5.motion;
|
|
5532
5815
|
// ---------------------------------------------------------------------------
|
|
5533
5816
|
// Size map
|
|
5534
5817
|
// ---------------------------------------------------------------------------
|
|
5535
5818
|
var sizeToWidth = {
|
|
5536
|
-
small:
|
|
5537
|
-
medium:
|
|
5538
|
-
large:
|
|
5819
|
+
small: tokens.semantic.size.overlay.sm,
|
|
5820
|
+
medium: tokens.semantic.size.overlay.md,
|
|
5821
|
+
large: tokens.semantic.size.overlay.lg
|
|
5539
5822
|
};
|
|
5540
5823
|
// ---------------------------------------------------------------------------
|
|
5541
5824
|
// Animations
|
|
@@ -5552,7 +5835,7 @@ var scaleIn = keyframes(templateObject_2$a || (templateObject_2$a = __makeTempla
|
|
|
5552
5835
|
var StyledOverlay$1 = styled.div.withConfig({
|
|
5553
5836
|
displayName: "Modal__StyledOverlay",
|
|
5554
5837
|
componentId: "sc-1d3g5gh-0"
|
|
5555
|
-
})(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"])),
|
|
5838
|
+
})(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, css(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["animation: ", " ", " ", "", ";"], ["animation: ", " ", " ", "", ";"])), fadeIn$1, motion.duration.moderate, motion.easing.decelerate, function (_a) {
|
|
5556
5839
|
var $isExiting = _a.$isExiting;
|
|
5557
5840
|
return $isExiting && exitAnimation;
|
|
5558
5841
|
}));
|
|
@@ -5562,27 +5845,27 @@ var StyledDialog = styled.div.withConfig({
|
|
|
5562
5845
|
},
|
|
5563
5846
|
displayName: "Modal__StyledDialog",
|
|
5564
5847
|
componentId: "sc-1d3g5gh-1"
|
|
5565
|
-
})(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.
|
|
5848
|
+
})(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) {
|
|
5566
5849
|
var $width = _a.$width;
|
|
5567
5850
|
return $width;
|
|
5568
|
-
},
|
|
5851
|
+
}, space$3[400], space$3[400], semantic$5.surface.raised, semantic$5.radius.xl, elevation.overlay, css(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["animation: ", " ", " ", "", ";"], ["animation: ", " ", " ", "", ";"])), scaleIn, motion.duration.moderate, motion.easing.decelerate, function (_a) {
|
|
5569
5852
|
var $isExiting = _a.$isExiting;
|
|
5570
5853
|
return $isExiting && exitAnimation;
|
|
5571
|
-
}), reducedMotion, fadeIn$1, motion.duration.
|
|
5854
|
+
}), reducedMotion, fadeIn$1, motion.duration.moderate, motion.easing.decelerate, function (_a) {
|
|
5572
5855
|
var $isExiting = _a.$isExiting;
|
|
5573
5856
|
return $isExiting && exitAnimation;
|
|
5574
|
-
}, semantic$5.breakpoint.md, fadeIn$1, motion.duration.
|
|
5857
|
+
}, semantic$5.breakpoint.md, fadeIn$1, motion.duration.moderate, motion.easing.decelerate, function (_a) {
|
|
5575
5858
|
var $isExiting = _a.$isExiting;
|
|
5576
5859
|
return $isExiting && exitAnimation;
|
|
5577
5860
|
});
|
|
5578
5861
|
var StyledHeader = styled.div.withConfig({
|
|
5579
5862
|
displayName: "Modal__StyledHeader",
|
|
5580
5863
|
componentId: "sc-1d3g5gh-2"
|
|
5581
|
-
})(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"])),
|
|
5864
|
+
})(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]);
|
|
5582
5865
|
var StyledBody = styled.div.withConfig({
|
|
5583
5866
|
displayName: "Modal__StyledBody",
|
|
5584
5867
|
componentId: "sc-1d3g5gh-3"
|
|
5585
|
-
})(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"])),
|
|
5868
|
+
})(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);
|
|
5586
5869
|
var StyledFooter = styled.div.withConfig({
|
|
5587
5870
|
displayName: "Modal__StyledFooter",
|
|
5588
5871
|
componentId: "sc-1d3g5gh-4"
|
|
@@ -5602,7 +5885,7 @@ var StyledFooter = styled.div.withConfig({
|
|
|
5602
5885
|
* - Locks body scroll while open.
|
|
5603
5886
|
*
|
|
5604
5887
|
* Composes: IconButton, Button, Typography, Stack, Divider
|
|
5605
|
-
*/])),
|
|
5888
|
+
*/])), space$3[200], space$3[400], space$3[400]);
|
|
5606
5889
|
// ---------------------------------------------------------------------------
|
|
5607
5890
|
// Component
|
|
5608
5891
|
// ---------------------------------------------------------------------------
|
|
@@ -5764,23 +6047,19 @@ var Modal = function Modal(_a) {
|
|
|
5764
6047
|
return /*#__PURE__*/createPortal(modal, document.body);
|
|
5765
6048
|
};
|
|
5766
6049
|
Modal.displayName = 'Modal';
|
|
5767
|
-
var templateObject_1$b, templateObject_2$a, templateObject_3$
|
|
6050
|
+
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;
|
|
5768
6051
|
|
|
5769
|
-
var input =
|
|
5770
|
-
semantic$4 =
|
|
5771
|
-
var StyledInputBase = styled.input.withConfig({
|
|
5772
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
5773
|
-
return !prop.startsWith('$');
|
|
5774
|
-
},
|
|
5775
|
-
displayName: "InputBase__StyledInputBase",
|
|
5776
|
-
componentId: "sc-1bpf4e8-0"
|
|
5777
|
-
})(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"
|
|
6052
|
+
var input = tokens.component.input,
|
|
6053
|
+
semantic$4 = tokens.semantic;
|
|
5778
6054
|
/**
|
|
5779
|
-
*
|
|
5780
|
-
|
|
6055
|
+
* Styles shared by the single-line input and the textarea. Each element sets its
|
|
6056
|
+
* own min-height and padding. Interpolating a styled component into another's CSS
|
|
6057
|
+
* inserts its class selector, not its styles, so the sharing goes through `css`.
|
|
6058
|
+
*/
|
|
6059
|
+
var inputBaseStyles = 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) {
|
|
5781
6060
|
var $disabled = _a.$disabled;
|
|
5782
6061
|
return $disabled ? input.disabled.textColor : input["default"].textColor;
|
|
5783
|
-
},
|
|
6062
|
+
}, function (_a) {
|
|
5784
6063
|
var $disabled = _a.$disabled;
|
|
5785
6064
|
return $disabled ? input.disabled.backgroundColor : input["default"].backgroundColor;
|
|
5786
6065
|
}, input["default"].borderWidth, function (_a) {
|
|
@@ -5789,13 +6068,23 @@ var StyledInputBase = styled.input.withConfig({
|
|
|
5789
6068
|
if ($disabled) return input.disabled.borderColor;
|
|
5790
6069
|
if ($hasError) return input.error.borderColor;
|
|
5791
6070
|
return input["default"].borderColor;
|
|
5792
|
-
}, input["default"].borderRadius,
|
|
6071
|
+
}, 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) {
|
|
5793
6072
|
var $hasError = _a.$hasError;
|
|
5794
6073
|
return $hasError ? input.error.focus.borderColor : input.focus.borderColor;
|
|
5795
6074
|
}, input.focus.outline, semantic$4.border.focusOffset, function (_a) {
|
|
5796
6075
|
var $hasError = _a.$hasError;
|
|
5797
6076
|
return $hasError ? input.error.hover.borderColor : input.hover.borderColor;
|
|
5798
6077
|
});
|
|
6078
|
+
var StyledInputBase = styled.input.withConfig({
|
|
6079
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
6080
|
+
return !prop.startsWith('$');
|
|
6081
|
+
},
|
|
6082
|
+
displayName: "InputBase__StyledInputBase",
|
|
6083
|
+
componentId: "sc-1bpf4e8-0"
|
|
6084
|
+
})(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n ", "\n min-height: ", ";\n padding: 0 ", ";\n"], ["\n ", "\n min-height: ", ";\n padding: 0 ", ";\n"
|
|
6085
|
+
/**
|
|
6086
|
+
* Base styled textarea with shared styling
|
|
6087
|
+
*/])), inputBaseStyles, semantic$4.size.control.lg, semantic$4.space.inset.lg);
|
|
5799
6088
|
/**
|
|
5800
6089
|
* Base styled textarea with shared styling
|
|
5801
6090
|
*/
|
|
@@ -5805,20 +6094,20 @@ var StyledTextAreaBase = styled.textarea.withConfig({
|
|
|
5805
6094
|
},
|
|
5806
6095
|
displayName: "InputBase__StyledTextAreaBase",
|
|
5807
6096
|
componentId: "sc-1bpf4e8-1"
|
|
5808
|
-
})(
|
|
5809
|
-
var templateObject_1$a, templateObject_2$9;
|
|
6097
|
+
})(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);
|
|
6098
|
+
var templateObject_1$a, templateObject_2$9, templateObject_3$9;
|
|
5810
6099
|
|
|
5811
|
-
var field$2 =
|
|
6100
|
+
var field$2 = tokens.component.field;
|
|
5812
6101
|
// Gaps come from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
5813
|
-
var
|
|
6102
|
+
var space$2 = tokens.semantic.space;
|
|
5814
6103
|
var StyledFieldContainer$2 = styled.div.withConfig({
|
|
5815
6104
|
displayName: "NumberInput__StyledFieldContainer",
|
|
5816
6105
|
componentId: "sc-qotc3w-0"
|
|
5817
|
-
})(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"])),
|
|
6106
|
+
})(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]);
|
|
5818
6107
|
var StyledLabel$3 = styled.label.withConfig({
|
|
5819
6108
|
displayName: "NumberInput__StyledLabel",
|
|
5820
6109
|
componentId: "sc-qotc3w-1"
|
|
5821
|
-
})(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"])),
|
|
6110
|
+
})(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);
|
|
5822
6111
|
var StyledRequiredIndicator$2 = styled.span.withConfig({
|
|
5823
6112
|
displayName: "NumberInput__StyledRequiredIndicator",
|
|
5824
6113
|
componentId: "sc-qotc3w-2"
|
|
@@ -5830,11 +6119,11 @@ var StyledInputWrapper$2 = styled.div.withConfig({
|
|
|
5830
6119
|
var StyledNumberInput = styled(StyledInputBase).withConfig({
|
|
5831
6120
|
displayName: "NumberInput__StyledNumberInput",
|
|
5832
6121
|
componentId: "sc-qotc3w-4"
|
|
5833
|
-
})(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"])),
|
|
6122
|
+
})(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]);
|
|
5834
6123
|
var StyledStepperContainer = styled.div.withConfig({
|
|
5835
6124
|
displayName: "NumberInput__StyledStepperContainer",
|
|
5836
6125
|
componentId: "sc-qotc3w-5"
|
|
5837
|
-
})(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"])),
|
|
6126
|
+
})(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]);
|
|
5838
6127
|
var StyledHelperText$2 = styled.div.withConfig({
|
|
5839
6128
|
displayName: "NumberInput__StyledHelperText",
|
|
5840
6129
|
componentId: "sc-qotc3w-6"
|
|
@@ -6083,9 +6372,9 @@ var PageTitleStyled = styled.div.withConfig({
|
|
|
6083
6372
|
* ```
|
|
6084
6373
|
*
|
|
6085
6374
|
* For a back link, add an `IconButton` with your own `url` and `aria-label`.
|
|
6086
|
-
*/])),
|
|
6375
|
+
*/])), tokens.semantic.space[600], function (_a) {
|
|
6087
6376
|
var $hasBackButton = _a.$hasBackButton;
|
|
6088
|
-
return $hasBackButton ?
|
|
6377
|
+
return $hasBackButton ? tokens.semantic.space[0] : tokens.semantic.space[1200];
|
|
6089
6378
|
});
|
|
6090
6379
|
/**
|
|
6091
6380
|
* @deprecated PageTitle is a leftover from the personal site (its back button always links to `/music`)
|
|
@@ -6129,17 +6418,17 @@ var PageTitle = function PageTitle(_a) {
|
|
|
6129
6418
|
};
|
|
6130
6419
|
var templateObject_1$8;
|
|
6131
6420
|
|
|
6132
|
-
var field$1 =
|
|
6421
|
+
var field$1 = tokens.component.field;
|
|
6133
6422
|
// Gaps come from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
6134
|
-
var
|
|
6423
|
+
var space$1 = tokens.semantic.space;
|
|
6135
6424
|
var StyledFieldContainer$1 = styled.div.withConfig({
|
|
6136
6425
|
displayName: "PasswordField__StyledFieldContainer",
|
|
6137
6426
|
componentId: "sc-1p15zk0-0"
|
|
6138
|
-
})(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"])),
|
|
6427
|
+
})(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]);
|
|
6139
6428
|
var StyledLabel$2 = styled.label.withConfig({
|
|
6140
6429
|
displayName: "PasswordField__StyledLabel",
|
|
6141
6430
|
componentId: "sc-1p15zk0-1"
|
|
6142
|
-
})(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"])),
|
|
6431
|
+
})(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);
|
|
6143
6432
|
var StyledRequiredIndicator$1 = styled.span.withConfig({
|
|
6144
6433
|
displayName: "PasswordField__StyledRequiredIndicator",
|
|
6145
6434
|
componentId: "sc-1p15zk0-2"
|
|
@@ -6170,7 +6459,7 @@ var StyledToggleButton = styled.div.withConfig({
|
|
|
6170
6459
|
* required
|
|
6171
6460
|
* />
|
|
6172
6461
|
* ```
|
|
6173
|
-
*/])),
|
|
6462
|
+
*/])), tokens.semantic.space[200]);
|
|
6174
6463
|
/**
|
|
6175
6464
|
* PasswordField component for secure password input with visibility toggle
|
|
6176
6465
|
*
|
|
@@ -6263,8 +6552,8 @@ var PasswordField = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
6263
6552
|
PasswordField.displayName = 'PasswordField';
|
|
6264
6553
|
var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$6, templateObject_5$5, templateObject_6$4;
|
|
6265
6554
|
|
|
6266
|
-
var semantic$3 =
|
|
6267
|
-
component =
|
|
6555
|
+
var semantic$3 = tokens.semantic,
|
|
6556
|
+
component = tokens.component;
|
|
6268
6557
|
var StyledSearchContainer = styled.div.withConfig({
|
|
6269
6558
|
displayName: "SearchField__StyledSearchContainer",
|
|
6270
6559
|
componentId: "sc-qhz9i8-0"
|
|
@@ -6272,7 +6561,7 @@ var StyledSearchContainer = styled.div.withConfig({
|
|
|
6272
6561
|
var StyledInputWrapper = styled.div.withConfig({
|
|
6273
6562
|
displayName: "SearchField__StyledInputWrapper",
|
|
6274
6563
|
componentId: "sc-qhz9i8-1"
|
|
6275
|
-
})(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.
|
|
6564
|
+
})(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) {
|
|
6276
6565
|
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 ");
|
|
6277
6566
|
}, function (props) {
|
|
6278
6567
|
return props.$disabled && "\n background-color: ".concat(component.input.disabled.backgroundColor, ";\n border-color: ").concat(component.input.disabled.borderColor, ";\n cursor: not-allowed;\n ");
|
|
@@ -6284,11 +6573,11 @@ var StyledInput = styled.input.withConfig({
|
|
|
6284
6573
|
var StyledSuggestionsList = styled.ul.withConfig({
|
|
6285
6574
|
displayName: "SearchField__StyledSuggestionsList",
|
|
6286
6575
|
componentId: "sc-qhz9i8-3"
|
|
6287
|
-
})(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 */\n & > [data-highlighted] > :first-child {\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 */\n & > [data-highlighted] > :first-child {\n background-color: ", ";\n }\n"])), semantic$3.
|
|
6576
|
+
})(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);
|
|
6288
6577
|
var StyledSectionHeader = styled.div.withConfig({
|
|
6289
6578
|
displayName: "SearchField__StyledSectionHeader",
|
|
6290
6579
|
componentId: "sc-qhz9i8-4"
|
|
6291
|
-
})(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.
|
|
6580
|
+
})(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);
|
|
6292
6581
|
var debounce = function debounce(func, wait) {
|
|
6293
6582
|
var timeout = null;
|
|
6294
6583
|
return function () {
|
|
@@ -6589,7 +6878,7 @@ var SearchField = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
6589
6878
|
SearchField.displayName = 'SearchField';
|
|
6590
6879
|
var templateObject_1$6, templateObject_2$6, templateObject_3$6, templateObject_4$5, templateObject_5$4;
|
|
6591
6880
|
|
|
6592
|
-
var semantic$2 =
|
|
6881
|
+
var semantic$2 = tokens.semantic;
|
|
6593
6882
|
// Fade in animation for overlay
|
|
6594
6883
|
var fadeIn = 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"
|
|
6595
6884
|
// Slide animations for each position
|
|
@@ -6605,7 +6894,7 @@ var StyledOverlay = styled.div.withConfig({
|
|
|
6605
6894
|
},
|
|
6606
6895
|
displayName: "Sheet__StyledOverlay",
|
|
6607
6896
|
componentId: "sc-8abisx-0"
|
|
6608
|
-
})(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.
|
|
6897
|
+
})(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, css(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["animation: ", " ", " ", "", ";"], ["animation: ", " ", " ", "", ";"])), fadeIn, semantic$2.motion.duration.moderate, semantic$2.motion.easing.standard, function (_a) {
|
|
6609
6898
|
var $isExiting = _a.$isExiting;
|
|
6610
6899
|
return $isExiting && exitAnimation;
|
|
6611
6900
|
}));
|
|
@@ -6615,40 +6904,40 @@ var StyledSheet = styled.div.withConfig({
|
|
|
6615
6904
|
},
|
|
6616
6905
|
displayName: "Sheet__StyledSheet",
|
|
6617
6906
|
componentId: "sc-8abisx-1"
|
|
6618
|
-
})(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.
|
|
6907
|
+
})(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) {
|
|
6619
6908
|
var $position = _a.$position,
|
|
6620
6909
|
$variant = _a.$variant,
|
|
6621
6910
|
$width = _a.$width,
|
|
6622
6911
|
$height = _a.$height;
|
|
6623
6912
|
var isDrawer = $variant === 'drawer';
|
|
6624
|
-
var margin = isDrawer ? semantic$2.
|
|
6625
|
-
var borderRadius = isDrawer ? semantic$2.
|
|
6913
|
+
var margin = isDrawer ? semantic$2.space[400] : '0';
|
|
6914
|
+
var borderRadius = isDrawer ? semantic$2.radius.md : '0';
|
|
6626
6915
|
switch ($position) {
|
|
6627
6916
|
case 'right':
|
|
6628
|
-
return 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.
|
|
6917
|
+
return 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) {
|
|
6629
6918
|
var $isExiting = _a.$isExiting;
|
|
6630
6919
|
return $isExiting && exitAnimation;
|
|
6631
6920
|
});
|
|
6632
6921
|
case 'left':
|
|
6633
|
-
return 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.
|
|
6922
|
+
return 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) {
|
|
6634
6923
|
var $isExiting = _a.$isExiting;
|
|
6635
6924
|
return $isExiting && exitAnimation;
|
|
6636
6925
|
});
|
|
6637
6926
|
case 'top':
|
|
6638
|
-
return 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.
|
|
6927
|
+
return 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) {
|
|
6639
6928
|
var $isExiting = _a.$isExiting;
|
|
6640
6929
|
return $isExiting && exitAnimation;
|
|
6641
6930
|
});
|
|
6642
6931
|
case 'bottom':
|
|
6643
|
-
return 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.
|
|
6932
|
+
return 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) {
|
|
6644
6933
|
var $isExiting = _a.$isExiting;
|
|
6645
6934
|
return $isExiting && exitAnimation;
|
|
6646
6935
|
});
|
|
6647
6936
|
}
|
|
6648
|
-
}, reducedMotion, fadeIn, semantic$2.motion.duration.
|
|
6937
|
+
}, reducedMotion, fadeIn, semantic$2.motion.duration.moderate, semantic$2.motion.easing.standard, function (_a) {
|
|
6649
6938
|
var $isExiting = _a.$isExiting;
|
|
6650
6939
|
return $isExiting && exitAnimation;
|
|
6651
|
-
}, semantic$2.
|
|
6940
|
+
}, semantic$2.space[200], semantic$2.surface.raised, semantic$2.color.border["default"], semantic$2.radius.full, semantic$2.color.fill.inverse);
|
|
6652
6941
|
var StyledSheetContent = styled.div.withConfig({
|
|
6653
6942
|
displayName: "Sheet__StyledSheetContent",
|
|
6654
6943
|
componentId: "sc-8abisx-2"
|
|
@@ -6678,7 +6967,7 @@ var StyledSheetContent = styled.div.withConfig({
|
|
|
6678
6967
|
* <h2>Mobile Menu</h2>
|
|
6679
6968
|
* </Sheet>
|
|
6680
6969
|
* ```
|
|
6681
|
-
*/])), semantic$2.
|
|
6970
|
+
*/])), semantic$2.space[600]);
|
|
6682
6971
|
/**
|
|
6683
6972
|
* Sheet component for side panels and drawers
|
|
6684
6973
|
*
|
|
@@ -6713,9 +7002,9 @@ var Sheet = function Sheet(_a) {
|
|
|
6713
7002
|
_c = _a.variant,
|
|
6714
7003
|
variant = _c === void 0 ? 'sheet' : _c,
|
|
6715
7004
|
_d = _a.width,
|
|
6716
|
-
width = _d === void 0 ?
|
|
7005
|
+
width = _d === void 0 ? tokens.semantic.size.overlay.sm : _d,
|
|
6717
7006
|
_e = _a.height,
|
|
6718
|
-
height = _e === void 0 ?
|
|
7007
|
+
height = _e === void 0 ? tokens.semantic.size.overlay.sm : _e,
|
|
6719
7008
|
children = _a.children,
|
|
6720
7009
|
_f = _a.closeOnOverlayClick,
|
|
6721
7010
|
closeOnOverlayClick = _f === void 0 ? true : _f,
|
|
@@ -6820,7 +7109,7 @@ var Sheet = function Sheet(_a) {
|
|
|
6820
7109
|
Sheet.displayName = 'Sheet';
|
|
6821
7110
|
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;
|
|
6822
7111
|
|
|
6823
|
-
var semantic$1 =
|
|
7112
|
+
var semantic$1 = tokens.semantic;
|
|
6824
7113
|
var StyledSliderContainer = styled.div.withConfig({
|
|
6825
7114
|
displayName: "Slider__StyledSliderContainer",
|
|
6826
7115
|
componentId: "sc-6mh2d4-0"
|
|
@@ -6831,51 +7120,63 @@ var StyledLabel$1 = styled.label.withConfig({
|
|
|
6831
7120
|
})(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) {
|
|
6832
7121
|
var $disabled = _a.$disabled;
|
|
6833
7122
|
return $disabled ? semantic$1.color.text.disabled : semantic$1.color.text["default"];
|
|
6834
|
-
}, semantic$1.
|
|
7123
|
+
}, semantic$1.space[400]);
|
|
6835
7124
|
var StyledSliderTrackContainer = styled.div.withConfig({
|
|
6836
7125
|
displayName: "Slider__StyledSliderTrackContainer",
|
|
6837
7126
|
componentId: "sc-6mh2d4-2"
|
|
6838
|
-
})(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.
|
|
7127
|
+
})(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]);
|
|
6839
7128
|
var StyledTrack = styled.div.withConfig({
|
|
6840
7129
|
displayName: "Slider__StyledTrack",
|
|
6841
7130
|
componentId: "sc-6mh2d4-3"
|
|
6842
|
-
})(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.
|
|
7131
|
+
})(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) {
|
|
6843
7132
|
var $disabled = _a.$disabled;
|
|
6844
|
-
return $disabled ? semantic$1.color.
|
|
6845
|
-
}, semantic$1.
|
|
7133
|
+
return $disabled ? semantic$1.color.fill.disabled : tokens.component.track.background;
|
|
7134
|
+
}, semantic$1.radius.full, function (_a) {
|
|
6846
7135
|
var $disabled = _a.$disabled;
|
|
6847
7136
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
7137
|
+
}, forcedColors, semantic$1.border.width.thin, function (_a) {
|
|
7138
|
+
var $disabled = _a.$disabled;
|
|
7139
|
+
return $disabled ? 'GrayText' : 'CanvasText';
|
|
6848
7140
|
});
|
|
6849
7141
|
var StyledTrackFill = styled.div.withConfig({
|
|
6850
7142
|
displayName: "Slider__StyledTrackFill",
|
|
6851
7143
|
componentId: "sc-6mh2d4-4"
|
|
6852
|
-
})(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) {
|
|
7144
|
+
})(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) {
|
|
6853
7145
|
var $disabled = _a.$disabled;
|
|
6854
|
-
return $disabled ? semantic$1.color.icon.disabled : semantic$1.color.
|
|
6855
|
-
}, semantic$1.
|
|
7146
|
+
return $disabled ? semantic$1.color.icon.disabled : semantic$1.color.fill.emphasis;
|
|
7147
|
+
}, semantic$1.radius.full, forcedColors, function (_a) {
|
|
7148
|
+
var $disabled = _a.$disabled;
|
|
7149
|
+
return $disabled ? 'GrayText' : 'Highlight';
|
|
7150
|
+
});
|
|
6856
7151
|
var StyledThumb = styled.div.withConfig({
|
|
6857
7152
|
displayName: "Slider__StyledThumb",
|
|
6858
7153
|
componentId: "sc-6mh2d4-5"
|
|
6859
|
-
})(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: ", ";\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: -", ";\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: ", ";\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.
|
|
7154
|
+
})(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) {
|
|
6860
7155
|
var $disabled = _a.$disabled;
|
|
6861
|
-
return $disabled ? semantic$1.color.
|
|
7156
|
+
return $disabled ? semantic$1.color.fill.disabled : tokens.component.slider.thumb.background;
|
|
6862
7157
|
}, semantic$1.border.width.thick, function (_a) {
|
|
6863
7158
|
var $disabled = _a.$disabled;
|
|
6864
|
-
return $disabled ? semantic$1.color.icon.disabled : semantic$1.color.
|
|
6865
|
-
}, semantic$1.
|
|
7159
|
+
return $disabled ? semantic$1.color.icon.disabled : semantic$1.color.fill.emphasis;
|
|
7160
|
+
}, semantic$1.radius.full, function (_a) {
|
|
6866
7161
|
var $disabled = _a.$disabled;
|
|
6867
7162
|
return $disabled ? 'not-allowed' : 'grab';
|
|
6868
|
-
}, semantic$1.motion.
|
|
7163
|
+
}, 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) {
|
|
7164
|
+
var $range = _a.$range;
|
|
7165
|
+
return $range === 'max' ? 'min(var(--slider-hit-half), var(--slider-reach))' : 'var(--slider-hit-half)';
|
|
7166
|
+
}, function (_a) {
|
|
7167
|
+
var $range = _a.$range;
|
|
7168
|
+
return $range === 'min' ? 'min(var(--slider-hit-half), var(--slider-reach))' : 'var(--slider-hit-half)';
|
|
7169
|
+
}, reducedMotion, tokens.component.slider.thumb.shadow.hover, semantic$1.border.focus, semantic$1.border.focusOffset, function (_a) {
|
|
6869
7170
|
var $active = _a.$active;
|
|
6870
|
-
return $active && "\n transform: translateX(-50%) scale(1.1);\n box-shadow: ".concat(
|
|
7171
|
+
return $active && "\n transform: translateX(-50%) scale(1.1);\n box-shadow: ".concat(tokens.component.slider.thumb.shadow.active, ";\n ");
|
|
6871
7172
|
});
|
|
6872
7173
|
var StyledValueLabel = styled.div.withConfig({
|
|
6873
7174
|
displayName: "Slider__StyledValueLabel",
|
|
6874
7175
|
componentId: "sc-6mh2d4-6"
|
|
6875
|
-
})(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.
|
|
7176
|
+
})(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) {
|
|
6876
7177
|
var $disabled = _a.$disabled;
|
|
6877
7178
|
return $disabled ? semantic$1.opacity.disabled : semantic$1.opacity.full;
|
|
6878
|
-
}, semantic$1.
|
|
7179
|
+
}, semantic$1.space[100], semantic$1.space[100], semantic$1.space[100], semantic$1.color.fill.emphasis);
|
|
6879
7180
|
var StyledMinMaxLabels = styled.div.withConfig({
|
|
6880
7181
|
displayName: "Slider__StyledMinMaxLabels",
|
|
6881
7182
|
componentId: "sc-6mh2d4-7"
|
|
@@ -6903,7 +7204,7 @@ var StyledMinMaxLabels = styled.div.withConfig({
|
|
|
6903
7204
|
* onRangeChange={(values) => console.log(values)}
|
|
6904
7205
|
* />
|
|
6905
7206
|
* ```
|
|
6906
|
-
*/])), semantic$1.typography.body, semantic$1.color.text.
|
|
7207
|
+
*/])), semantic$1.typography.body, semantic$1.color.text.muted, semantic$1.space[100]);
|
|
6907
7208
|
/**
|
|
6908
7209
|
* Slider component for single value or range selection
|
|
6909
7210
|
*
|
|
@@ -6958,6 +7259,14 @@ var Slider = function Slider(_a) {
|
|
|
6958
7259
|
var _h = useState(null),
|
|
6959
7260
|
activeThumb = _h[0],
|
|
6960
7261
|
setActiveThumb = _h[1];
|
|
7262
|
+
// Removes the document listeners of a drag in progress
|
|
7263
|
+
var endDragRef = useRef(null);
|
|
7264
|
+
useEffect(function () {
|
|
7265
|
+
return function () {
|
|
7266
|
+
var _a;
|
|
7267
|
+
return (_a = endDragRef.current) === null || _a === void 0 ? void 0 : _a.call(endDragRef);
|
|
7268
|
+
};
|
|
7269
|
+
}, []);
|
|
6961
7270
|
// Determine if this is a range slider
|
|
6962
7271
|
var isRange = controlledRangeValue !== undefined || defaultRangeValue !== undefined || onRangeChange !== undefined;
|
|
6963
7272
|
// State for single slider
|
|
@@ -7004,9 +7313,11 @@ var Slider = function Slider(_a) {
|
|
|
7004
7313
|
setInternalRangeValue([orderedMin, orderedMax]);
|
|
7005
7314
|
onRangeChange === null || onRangeChange === void 0 ? void 0 : onRangeChange([orderedMin, orderedMax]);
|
|
7006
7315
|
};
|
|
7007
|
-
//
|
|
7316
|
+
// Pointer handlers: mouse, touch and pen
|
|
7008
7317
|
var handleTrackClick = function handleTrackClick(event) {
|
|
7009
7318
|
if (disabled) return;
|
|
7319
|
+
// A click on a thumb (or the end of a drag) leaves the value where the thumb put it
|
|
7320
|
+
if (event.target.closest('[role="slider"]')) return;
|
|
7010
7321
|
var newValue = positionToValue(event.clientX);
|
|
7011
7322
|
if (isRange) {
|
|
7012
7323
|
var minVal = currentRangeValue[0],
|
|
@@ -7022,33 +7333,47 @@ var Slider = function Slider(_a) {
|
|
|
7022
7333
|
handleSingleChange(newValue);
|
|
7023
7334
|
}
|
|
7024
7335
|
};
|
|
7025
|
-
var
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7336
|
+
var handleThumbPointerDown = function handleThumbPointerDown(thumb, event) {
|
|
7337
|
+
var _a, _b, _c;
|
|
7338
|
+
if (disabled) return;
|
|
7339
|
+
// Only the primary button drags; a touch or pen contact always counts
|
|
7340
|
+
if (event.pointerType === 'mouse' && event.button !== 0) return;
|
|
7341
|
+
event.preventDefault();
|
|
7342
|
+
(_a = endDragRef.current) === null || _a === void 0 ? void 0 : _a.call(endDragRef);
|
|
7343
|
+
setActiveThumb(thumb);
|
|
7344
|
+
var pointerId = event.pointerId;
|
|
7345
|
+
// Capture keeps the drag on this thumb when the pointer leaves it, or the window
|
|
7346
|
+
(_c = (_b = event.currentTarget).setPointerCapture) === null || _c === void 0 ? void 0 : _c.call(_b, pointerId);
|
|
7347
|
+
var handlePointerMove = function handlePointerMove(e) {
|
|
7348
|
+
if (e.pointerId !== pointerId) return;
|
|
7349
|
+
var newValue = positionToValue(e.clientX);
|
|
7350
|
+
if (isRange) {
|
|
7351
|
+
var minVal = currentRangeValue[0],
|
|
7352
|
+
maxVal = currentRangeValue[1];
|
|
7353
|
+
if (thumb === 'min') {
|
|
7354
|
+
handleRangeChange(newValue, maxVal);
|
|
7040
7355
|
} else {
|
|
7041
|
-
|
|
7356
|
+
handleRangeChange(minVal, newValue);
|
|
7042
7357
|
}
|
|
7043
|
-
}
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
document.
|
|
7050
|
-
document.
|
|
7358
|
+
} else {
|
|
7359
|
+
handleSingleChange(newValue);
|
|
7360
|
+
}
|
|
7361
|
+
};
|
|
7362
|
+
var endDrag = function endDrag() {
|
|
7363
|
+
setActiveThumb(null);
|
|
7364
|
+
document.removeEventListener('pointermove', handlePointerMove);
|
|
7365
|
+
document.removeEventListener('pointerup', handlePointerEnd);
|
|
7366
|
+
document.removeEventListener('pointercancel', handlePointerEnd);
|
|
7367
|
+
endDragRef.current = null;
|
|
7368
|
+
};
|
|
7369
|
+
// pointercancel fires when the browser takes the gesture over, so it ends the drag too
|
|
7370
|
+
var handlePointerEnd = function handlePointerEnd(e) {
|
|
7371
|
+
if (e.pointerId === pointerId) endDrag();
|
|
7051
7372
|
};
|
|
7373
|
+
document.addEventListener('pointermove', handlePointerMove);
|
|
7374
|
+
document.addEventListener('pointerup', handlePointerEnd);
|
|
7375
|
+
document.addEventListener('pointercancel', handlePointerEnd);
|
|
7376
|
+
endDragRef.current = endDrag;
|
|
7052
7377
|
};
|
|
7053
7378
|
// Keyboard navigation
|
|
7054
7379
|
var handleKeyDown = function handleKeyDown(thumb) {
|
|
@@ -7159,10 +7484,14 @@ var Slider = function Slider(_a) {
|
|
|
7159
7484
|
"aria-describedby": ariaDescribedBy,
|
|
7160
7485
|
"$disabled": disabled,
|
|
7161
7486
|
"$active": activeThumb === 'min',
|
|
7487
|
+
"$range": "min",
|
|
7162
7488
|
style: {
|
|
7163
|
-
left: "".concat(minPercent, "%")
|
|
7489
|
+
left: "".concat(minPercent, "%"),
|
|
7490
|
+
'--slider-reach': "".concat((maxPercent - minPercent) / 2, "cqw")
|
|
7491
|
+
},
|
|
7492
|
+
onPointerDown: function onPointerDown(event) {
|
|
7493
|
+
return handleThumbPointerDown('min', event);
|
|
7164
7494
|
},
|
|
7165
|
-
onMouseDown: handleThumbMouseDown('min'),
|
|
7166
7495
|
onKeyDown: handleKeyDown('min'),
|
|
7167
7496
|
children: showValueLabel && jsx(StyledValueLabel, {
|
|
7168
7497
|
"$disabled": disabled,
|
|
@@ -7180,10 +7509,14 @@ var Slider = function Slider(_a) {
|
|
|
7180
7509
|
"aria-describedby": ariaDescribedBy,
|
|
7181
7510
|
"$disabled": disabled,
|
|
7182
7511
|
"$active": activeThumb === 'max',
|
|
7512
|
+
"$range": "max",
|
|
7183
7513
|
style: {
|
|
7184
|
-
left: "".concat(maxPercent, "%")
|
|
7514
|
+
left: "".concat(maxPercent, "%"),
|
|
7515
|
+
'--slider-reach': "".concat((maxPercent - minPercent) / 2, "cqw")
|
|
7516
|
+
},
|
|
7517
|
+
onPointerDown: function onPointerDown(event) {
|
|
7518
|
+
return handleThumbPointerDown('max', event);
|
|
7185
7519
|
},
|
|
7186
|
-
onMouseDown: handleThumbMouseDown('max'),
|
|
7187
7520
|
onKeyDown: handleKeyDown('max'),
|
|
7188
7521
|
children: showValueLabel && jsx(StyledValueLabel, {
|
|
7189
7522
|
"$disabled": disabled,
|
|
@@ -7205,7 +7538,9 @@ var Slider = function Slider(_a) {
|
|
|
7205
7538
|
style: {
|
|
7206
7539
|
left: "".concat(singlePercent, "%")
|
|
7207
7540
|
},
|
|
7208
|
-
|
|
7541
|
+
onPointerDown: function onPointerDown(event) {
|
|
7542
|
+
return handleThumbPointerDown('single', event);
|
|
7543
|
+
},
|
|
7209
7544
|
onKeyDown: handleKeyDown('single'),
|
|
7210
7545
|
children: showValueLabel && jsx(StyledValueLabel, {
|
|
7211
7546
|
"$disabled": disabled,
|
|
@@ -7225,33 +7560,35 @@ var Slider = function Slider(_a) {
|
|
|
7225
7560
|
Slider.displayName = 'Slider';
|
|
7226
7561
|
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;
|
|
7227
7562
|
|
|
7228
|
-
var semantic =
|
|
7563
|
+
var semantic = tokens.semantic;
|
|
7229
7564
|
var StyledTabList = styled.div.withConfig({
|
|
7230
7565
|
displayName: "TabBar__StyledTabList",
|
|
7231
7566
|
componentId: "sc-1g9ib0y-0"
|
|
7232
|
-
})(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.
|
|
7567
|
+
})(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);
|
|
7233
7568
|
var StyledTab = styled.button.withConfig({
|
|
7234
7569
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
7235
7570
|
return !prop.startsWith('$');
|
|
7236
7571
|
},
|
|
7237
7572
|
displayName: "TabBar__StyledTab",
|
|
7238
7573
|
componentId: "sc-1g9ib0y-1"
|
|
7239
|
-
})(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: ", ";\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 &: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.
|
|
7574
|
+
})(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) {
|
|
7240
7575
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
7241
|
-
}, semantic.motion.
|
|
7242
|
-
return props.$isActive ? semantic.color.
|
|
7576
|
+
}, semantic.motion.transition.feedback, semantic.radius.sm, semantic.radius.sm, function (props) {
|
|
7577
|
+
return props.$isActive ? semantic.color.fill['accent-muted'] : 'transparent';
|
|
7243
7578
|
}, function (props) {
|
|
7244
|
-
return props.$isActive ? semantic.color.text.
|
|
7579
|
+
return props.$isActive ? semantic.color.text.accent : semantic.color.text.muted;
|
|
7245
7580
|
}, semantic.border.width.thick, function (props) {
|
|
7246
|
-
return props.$isActive ? semantic.color.
|
|
7247
|
-
}, semantic.motion.
|
|
7248
|
-
return props.$isActive ?
|
|
7581
|
+
return props.$isActive ? semantic.color.fill.accent : 'transparent';
|
|
7582
|
+
}, semantic.motion.transition.feedback, forcedColors, function (props) {
|
|
7583
|
+
return props.$isActive ? 'Highlight' : 'transparent';
|
|
7584
|
+
}, function (props) {
|
|
7585
|
+
return props.$isActive ? semantic.color.fill['accent-muted-hover'] : 'transparent';
|
|
7249
7586
|
}, function (props) {
|
|
7250
|
-
return props.$isActive ? semantic.color.text['
|
|
7587
|
+
return props.$isActive ? semantic.color.text['accent-hover'] : semantic.color.text["default"];
|
|
7251
7588
|
}, function (props) {
|
|
7252
|
-
return props.$isActive ? semantic.color.
|
|
7589
|
+
return props.$isActive ? semantic.color.fill['accent-muted-pressed'] : 'transparent';
|
|
7253
7590
|
}, function (props) {
|
|
7254
|
-
return props.$isActive ? semantic.color.text['
|
|
7591
|
+
return props.$isActive ? semantic.color.text['accent-pressed'] : semantic.color.text["default"];
|
|
7255
7592
|
}, function (props) {
|
|
7256
7593
|
return props.$disabled ? '0.5' : '1';
|
|
7257
7594
|
}, semantic.border.focus, semantic.border.focusOffset);
|
|
@@ -7279,7 +7616,7 @@ var StyledBadge = styled.span.withConfig({
|
|
|
7279
7616
|
* onTabChange={setActiveTab}
|
|
7280
7617
|
* />
|
|
7281
7618
|
* ```
|
|
7282
|
-
*/])),
|
|
7619
|
+
*/])), 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);
|
|
7283
7620
|
/**
|
|
7284
7621
|
* TabBar component for tabbed navigation
|
|
7285
7622
|
*
|
|
@@ -7425,17 +7762,17 @@ var TabBar = function TabBar(_a) {
|
|
|
7425
7762
|
TabBar.displayName = 'TabBar';
|
|
7426
7763
|
var templateObject_1$3, templateObject_2$3, templateObject_3$3;
|
|
7427
7764
|
|
|
7428
|
-
var field =
|
|
7765
|
+
var field = tokens.component.field;
|
|
7429
7766
|
// Gaps come from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
7430
|
-
var
|
|
7767
|
+
var space = tokens.semantic.space;
|
|
7431
7768
|
var StyledFieldContainer = styled.div.withConfig({
|
|
7432
7769
|
displayName: "TextField__StyledFieldContainer",
|
|
7433
7770
|
componentId: "sc-1ys3b0-0"
|
|
7434
|
-
})(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"])),
|
|
7771
|
+
})(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]);
|
|
7435
7772
|
var StyledLabel = styled.label.withConfig({
|
|
7436
7773
|
displayName: "TextField__StyledLabel",
|
|
7437
7774
|
componentId: "sc-1ys3b0-1"
|
|
7438
|
-
})(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"])),
|
|
7775
|
+
})(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);
|
|
7439
7776
|
var StyledRequiredIndicator = styled.span.withConfig({
|
|
7440
7777
|
displayName: "TextField__StyledRequiredIndicator",
|
|
7441
7778
|
componentId: "sc-1ys3b0-2"
|
|
@@ -7532,9 +7869,9 @@ var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4
|
|
|
7532
7869
|
var StyledContainer = styled.div.withConfig({
|
|
7533
7870
|
displayName: "TransactionListItem__StyledContainer",
|
|
7534
7871
|
componentId: "sc-7yunm0-0"
|
|
7535
|
-
})(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"])),
|
|
7872
|
+
})(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) {
|
|
7536
7873
|
var $clickable = _a.$clickable;
|
|
7537
|
-
return $clickable && "\n cursor: pointer;\n
|
|
7874
|
+
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 ");
|
|
7538
7875
|
});
|
|
7539
7876
|
var StyledAvatarSection = styled.div.withConfig({
|
|
7540
7877
|
displayName: "TransactionListItem__StyledAvatarSection",
|
|
@@ -7547,23 +7884,23 @@ var StyledMainContent = styled.div.withConfig({
|
|
|
7547
7884
|
var StyledTopRow = styled.div.withConfig({
|
|
7548
7885
|
displayName: "TransactionListItem__StyledTopRow",
|
|
7549
7886
|
componentId: "sc-7yunm0-3"
|
|
7550
|
-
})(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"])),
|
|
7887
|
+
})(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]);
|
|
7551
7888
|
var StyledMerchantSection = styled.div.withConfig({
|
|
7552
7889
|
displayName: "TransactionListItem__StyledMerchantSection",
|
|
7553
7890
|
componentId: "sc-7yunm0-4"
|
|
7554
|
-
})(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"])),
|
|
7891
|
+
})(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]);
|
|
7555
7892
|
var StyledBottomRow = styled.div.withConfig({
|
|
7556
7893
|
displayName: "TransactionListItem__StyledBottomRow",
|
|
7557
7894
|
componentId: "sc-7yunm0-5"
|
|
7558
|
-
})(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"])),
|
|
7895
|
+
})(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]);
|
|
7559
7896
|
var StyledMetadata = styled.div.withConfig({
|
|
7560
7897
|
displayName: "TransactionListItem__StyledMetadata",
|
|
7561
7898
|
componentId: "sc-7yunm0-6"
|
|
7562
|
-
})(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"])),
|
|
7899
|
+
})(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]);
|
|
7563
7900
|
var StyledIconIndicator = styled.div.withConfig({
|
|
7564
7901
|
displayName: "TransactionListItem__StyledIconIndicator",
|
|
7565
7902
|
componentId: "sc-7yunm0-7"
|
|
7566
|
-
})(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"])),
|
|
7903
|
+
})(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);
|
|
7567
7904
|
var StyledTruncatedText = styled.span.withConfig({
|
|
7568
7905
|
displayName: "TransactionListItem__StyledTruncatedText",
|
|
7569
7906
|
componentId: "sc-7yunm0-8"
|
|
@@ -7739,15 +8076,15 @@ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4
|
|
|
7739
8076
|
// Exception to decision 0014: the gap props are typed as base spacing keys (public API),
|
|
7740
8077
|
// so they are looked up in base.spacing until they accept semantic keys.
|
|
7741
8078
|
// eslint-disable-next-line no-restricted-syntax
|
|
7742
|
-
var gapSpacing =
|
|
8079
|
+
var gapSpacing = tokens.base.spacing;
|
|
7743
8080
|
// Breakpoints using base tokens
|
|
7744
8081
|
var breakpoints = {
|
|
7745
|
-
xs:
|
|
7746
|
-
sm:
|
|
7747
|
-
md:
|
|
7748
|
-
lg:
|
|
7749
|
-
xl:
|
|
7750
|
-
'2xl':
|
|
8082
|
+
xs: tokens.semantic.breakpoint.xs,
|
|
8083
|
+
sm: tokens.semantic.breakpoint.sm,
|
|
8084
|
+
md: tokens.semantic.breakpoint.md,
|
|
8085
|
+
lg: tokens.semantic.breakpoint.lg,
|
|
8086
|
+
xl: tokens.semantic.breakpoint.xl,
|
|
8087
|
+
'2xl': tokens.semantic.breakpoint['2xl']
|
|
7751
8088
|
};
|
|
7752
8089
|
// Media query helpers
|
|
7753
8090
|
var media = {
|