@common-origin/design-system 3.1.0 → 3.3.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.
Files changed (89) hide show
  1. package/dist/client.js +1050 -722
  2. package/dist/client.js.map +1 -1
  3. package/dist/components/atoms/Badge/Badge.d.mts +2 -2
  4. package/dist/components/atoms/Badge/Badge.d.ts +2 -2
  5. package/dist/components/atoms/Badge/Badge.mjs +15 -9
  6. package/dist/components/atoms/Box/Box.d.mts +3 -2
  7. package/dist/components/atoms/Box/Box.d.ts +3 -2
  8. package/dist/components/atoms/Button/Button.mjs +1 -1
  9. package/dist/components/atoms/Chip/shared/ChipBase.mjs +1 -1
  10. package/dist/components/atoms/Icon/Icon.d.mts +1 -1
  11. package/dist/components/atoms/Icon/Icon.d.ts +1 -1
  12. package/dist/components/atoms/Icon/Icon.mjs +35 -10
  13. package/dist/components/atoms/IconButton/IconButton.mjs +1 -1
  14. package/dist/components/atoms/ProgressBar/ProgressBar.d.mts +1 -1
  15. package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
  16. package/dist/components/atoms/Tag/Tag.d.mts +1 -1
  17. package/dist/components/atoms/Tag/Tag.d.ts +1 -1
  18. package/dist/components/atoms/Tooltip/Tooltip.d.mts +7 -1
  19. package/dist/components/atoms/Tooltip/Tooltip.d.ts +7 -1
  20. package/dist/components/atoms/Tooltip/Tooltip.mjs +18 -8
  21. package/dist/components/molecules/ActionSheet/ActionSheet.mjs +2 -2
  22. package/dist/components/molecules/Alert/Alert.mjs +1 -1
  23. package/dist/components/molecules/Checkbox/SelectableInputBase.mjs +1 -1
  24. package/dist/components/molecules/Dropdown/Dropdown.mjs +1 -1
  25. package/dist/components/molecules/List/ListItem.mjs +3 -3
  26. package/dist/components/molecules/Menu/Menu.d.mts +8 -1
  27. package/dist/components/molecules/Menu/Menu.d.ts +8 -1
  28. package/dist/components/molecules/Menu/Menu.mjs +12 -9
  29. package/dist/components/molecules/Modal/Modal.mjs +1 -1
  30. package/dist/components/molecules/NumberInput/NumberInput.mjs +2 -1
  31. package/dist/components/molecules/PasswordField/PasswordField.mjs +3 -2
  32. package/dist/components/molecules/SearchField/SearchField.mjs +3 -3
  33. package/dist/components/molecules/Sheet/Sheet.mjs +3 -3
  34. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.d.mts +3 -2
  35. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.d.ts +3 -2
  36. package/dist/components/molecules/SidebarNavItem/SidebarNavItem.mjs +128 -41
  37. package/dist/components/molecules/SidebarNavItem/sidebarNavMotion.d.mts +30 -0
  38. package/dist/components/molecules/SidebarNavItem/sidebarNavMotion.d.ts +30 -0
  39. package/dist/components/molecules/SidebarNavItem/sidebarNavMotion.mjs +69 -0
  40. package/dist/components/molecules/SidebarNavItem/sidebarNavMotion.mjs.map +1 -0
  41. package/dist/components/molecules/SidebarNavSection/SidebarNavSection.mjs +57 -43
  42. package/dist/components/molecules/TabBar/TabBar.mjs +3 -3
  43. package/dist/components/molecules/WorkspaceSwitcher/WorkspaceSwitcher.mjs +3 -1
  44. package/dist/components/organisms/SidebarNav/SidebarNav.mjs +173 -62
  45. package/dist/data.js +2680 -190
  46. package/dist/data.js.map +1 -1
  47. package/dist/index.d.mts +2 -1
  48. package/dist/index.d.ts +2 -1
  49. package/dist/index.js +1 -0
  50. package/dist/index.js.map +1 -1
  51. package/dist/index.mjs +1 -0
  52. package/dist/index.mjs.map +1 -1
  53. package/dist/lib/statusShapes.mjs +1 -1
  54. package/dist/lib/statusShapes.mjs.map +1 -1
  55. package/dist/lib/styleUtils.d.mts +4 -0
  56. package/dist/lib/styleUtils.d.ts +4 -0
  57. package/dist/lib/styleUtils.mjs +5 -1
  58. package/dist/lib/styleUtils.mjs.map +1 -1
  59. package/dist/lib/tokenAliases.mjs +1 -0
  60. package/dist/lib/tokenAliases.mjs.map +1 -1
  61. package/dist/lib/useFloatingLayer.d.mts +8 -1
  62. package/dist/lib/useFloatingLayer.d.ts +8 -1
  63. package/dist/lib/useFloatingLayer.mjs +11 -2
  64. package/dist/lib/useFloatingLayer.mjs.map +1 -1
  65. package/dist/styles/iconSet.json.mjs +2442 -0
  66. package/dist/styles/iconSet.json.mjs.map +1 -0
  67. package/dist/styles/tokens.d.mts +93 -24
  68. package/dist/styles/tokens.d.ts +93 -24
  69. package/dist/styles/tokens.json +96 -59
  70. package/dist/styles/tokens.json.mjs +96 -59
  71. package/dist/styles/tokens.json.mjs.map +1 -1
  72. package/dist/tokens/index.js +96 -59
  73. package/dist/tokens/index.js.map +1 -1
  74. package/dist/tokens/index.mjs +96 -59
  75. package/dist/tokens/index.mjs.map +1 -1
  76. package/dist/tokens/styles/tokens.d.mts +93 -24
  77. package/dist/tokens/styles/tokens.d.ts +93 -24
  78. package/dist/tokens.css +1105 -74
  79. package/dist/types/iconSet.d.mts +6 -0
  80. package/dist/types/iconSet.d.ts +6 -0
  81. package/dist/types/iconSet.mjs +12 -0
  82. package/dist/types/iconSet.mjs.map +1 -0
  83. package/dist/types/icons.d.mts +58 -6
  84. package/dist/types/icons.d.ts +58 -6
  85. package/dist/types/icons.mjs +5 -0
  86. package/dist/types/icons.mjs.map +1 -1
  87. package/dist/types/index.d.mts +1 -0
  88. package/dist/types/index.d.ts +1 -0
  89. package/package.json +7 -3
package/dist/client.js CHANGED
@@ -156,31 +156,31 @@ function withCssVariables(tree, path) {
156
156
  var tokens = withCssVariables(data.tokensJson);
157
157
 
158
158
  // Destructure tokens
159
- var semantic$t = tokens.semantic;
159
+ var semantic$u = tokens.semantic;
160
160
  var initials = tokens.component.avatar.initials;
161
- var color$i = semantic$t.color,
162
- size$8 = semantic$t.size;
163
- var radius$b = semantic$t.radius;
161
+ var color$i = semantic$u.color,
162
+ size$a = semantic$u.size;
163
+ var radius$8 = semantic$u.radius;
164
164
  var AvatarContainer = /*#__PURE__*/styled__default.default.div.withConfig({
165
165
  shouldForwardProp: function shouldForwardProp(prop) {
166
166
  return !prop.startsWith('$');
167
167
  },
168
168
  displayName: "Avatar__AvatarContainer",
169
169
  componentId: "sc-ezn4ax-0"
170
- })(templateObject_1$U || (templateObject_1$U = __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) {
170
+ })(templateObject_1$V || (templateObject_1$V = __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) {
171
171
  var $size = _a.$size;
172
- return size$8.avatar[$size];
172
+ return size$a.avatar[$size];
173
173
  }, function (_a) {
174
174
  var $size = _a.$size;
175
- return size$8.avatar[$size];
176
- }, radius$b.full, color$i.fill.muted);
175
+ return size$a.avatar[$size];
176
+ }, radius$8.full, color$i.fill.muted);
177
177
  var AvatarImage = /*#__PURE__*/styled__default.default.img.withConfig({
178
178
  shouldForwardProp: function shouldForwardProp(prop) {
179
179
  return !prop.startsWith('$');
180
180
  },
181
181
  displayName: "Avatar__AvatarImage",
182
182
  componentId: "sc-ezn4ax-1"
183
- })(templateObject_2$F || (templateObject_2$F = __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$b.full);
183
+ })(templateObject_2$G || (templateObject_2$G = __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$8.full);
184
184
  var AvatarInitials = /*#__PURE__*/styled__default.default.span.withConfig({
185
185
  shouldForwardProp: function shouldForwardProp(prop) {
186
186
  return !prop.startsWith('$');
@@ -246,7 +246,7 @@ var Avatar = function Avatar(_a) {
246
246
  })
247
247
  }));
248
248
  };
249
- var templateObject_1$U, templateObject_2$F, templateObject_3$C;
249
+ var templateObject_1$V, templateObject_2$G, templateObject_3$C;
250
250
 
251
251
  // Breakpoints from the semantic tokens (decision 0014)
252
252
  var breakpoints$1 = {
@@ -281,7 +281,7 @@ var forcedColorsEdge = "".concat(forcedColors, " {\n border: ").concat(tokens.s
281
281
  var reducedMotion = '@media (prefers-reduced-motion: reduce)';
282
282
  // No `from` keyframe: the fade starts from the element's current opacity, including a
283
283
  // still-running entrance, so closing mid-entrance doesn't jump back to fully visible.
284
- var fadeOut$1 = styled.keyframes(templateObject_1$T || (templateObject_1$T = __makeTemplateObject(["\n to { opacity: 0; }\n"], ["\n to { opacity: 0; }\n"
284
+ var fadeOut$1 = styled.keyframes(templateObject_1$U || (templateObject_1$U = __makeTemplateObject(["\n to { opacity: 0; }\n"], ["\n to { opacity: 0; }\n"
285
285
  // Exit for overlays that unmount (use with usePresence). Append `exitAnimation` to each of
286
286
  // the element's `animation` declarations while it exits: the entrance stays in the list,
287
287
  // so it isn't restarted, and the fade runs on top of it. A fade is already the
@@ -295,7 +295,7 @@ var fadeOut$1 = styled.keyframes(templateObject_1$T || (templateObject_1$T = __m
295
295
  // reduced-motion form, so it needs no fallback of its own. While it fades, the backdrop
296
296
  // still catches clicks (so they can't reach the page behind it) and the panel is inert.
297
297
  // Exits accelerate: things leaving speed up as they go (decision 0037).
298
- var exitAnimation = styled.css(templateObject_2$E || (templateObject_2$E = __makeTemplateObject([", ", " ", " ", " forwards"], [", ", " ", " ", " forwards"
298
+ var exitAnimation = styled.css(templateObject_2$F || (templateObject_2$F = __makeTemplateObject([", ", " ", " ", " forwards"], [", ", " ", " ", " forwards"
299
299
  // Content for screen readers only. The 1px size and -1px margin are part of the standard
300
300
  // visually-hidden technique, not design values, so they aren't tokens.
301
301
  ])), fadeOut$1, tokens.semantic.motion.duration.fast, tokens.semantic.motion.easing.accelerate);
@@ -314,6 +314,10 @@ var visuallyHidden = styled.css(templateObject_3$B || (templateObject_3$B = __ma
314
314
  var _a$b = tokens.semantic.color,
315
315
  rowFill = _a$b.fill,
316
316
  rowText = _a$b.text;
317
+ /** Corner radius of a button inside a field (a stepper, a clear or show-password button): one step tighter than the field, so its corner nests (decision 0055). */
318
+ var fieldButtonRadius = tokens.semantic.radius.sm;
319
+ /** Corner radius every row and tab shares: the control radius (decision 0055). */
320
+ var rowRadius = tokens.semantic.radius.md;
317
321
  var rowStates = {
318
322
  unselected: {
319
323
  rest: {
@@ -399,178 +403,57 @@ var rowForcedColors = function rowForcedColors(_a) {
399
403
  // the descendants' own rules.
400
404
  return "".concat(forcedColors, " {\n ").concat(selected ? "background-color: Highlight;\n ".concat(text('HighlightText'), "\n && * {\n color: inherit;\n background-color: transparent;\n }") : '', "\n ").concat(!disabled && focused ? hover : '', "\n ").concat(disabled ? '' : "&:hover {\n ".concat(hover, "\n }"), "\n }");
401
405
  };
402
- var templateObject_1$T, templateObject_2$E, templateObject_3$B;
403
-
404
- var _a$a = tokens.semantic,
405
- typography$7 = _a$a.typography,
406
- color$h = _a$a.color,
407
- letterSpacing = _a$a.letterSpacing;
408
- var getTypographyStyles = function getTypographyStyles(variant) {
409
- var styles = {
410
- display: "font: ".concat(typography$7.display, "; letter-spacing: ").concat(letterSpacing.tighter, ";"),
411
- h1: "font: ".concat(typography$7.h1, "; letter-spacing: ").concat(letterSpacing.tighter, ";"),
412
- h2: "font: ".concat(typography$7.h2, "; letter-spacing: ").concat(letterSpacing.tight, ";"),
413
- h3: "font: ".concat(typography$7.h3, "; letter-spacing: ").concat(letterSpacing.tight, ";"),
414
- h4: "font: ".concat(typography$7.h4, "; letter-spacing: ").concat(letterSpacing.tight, ";"),
415
- h5: "font: ".concat(typography$7.h5, "; letter-spacing: ").concat(letterSpacing.normal, ";"),
416
- h6: "font: ".concat(typography$7.h6, "; letter-spacing: ").concat(letterSpacing.normal, ";"),
417
- subtitle: "font: ".concat(typography$7.subtitle, ";"),
418
- body: "font: ".concat(typography$7.body, ";"),
419
- small: "font: ".concat(typography$7.small, ";"),
420
- overline: "font: ".concat(typography$7.overline, ";"),
421
- caption: "font: ".concat(typography$7.caption, "; text-transform: uppercase;"),
422
- button1: "font: ".concat(tokens.component.button.sizes.large.font, ";"),
423
- button2: "font: ".concat(tokens.component.button.sizes.medium.font, ";"),
424
- button3: "font: ".concat(tokens.component.button.sizes.small.font, "; font-weight: ").concat(tokens.component.button.sizes.small.fontWeight, ";"),
425
- label: "font: ".concat(typography$7.label, ";")
426
- };
427
- return styles[variant] || styles.body;
428
- };
429
- var getTextColor = function getTextColor(colorVariant) {
430
- var colorMap = {
431
- "default": color$h.text["default"],
432
- emphasis: color$h.text["default"],
433
- subdued: color$h.text.muted,
434
- inverse: color$h.text.inverse,
435
- disabled: color$h.text.disabled,
436
- interactive: color$h.text.accent,
437
- error: color$h.text.danger,
438
- success: color$h.text.success,
439
- warning: color$h.text.warning
440
- };
441
- return colorMap[colorVariant] || colorMap["default"];
442
- };
443
- var getDefaultElement = function getDefaultElement(variant) {
444
- var elementMap = {
445
- display: 'h1',
446
- h1: 'h1',
447
- h2: 'h2',
448
- h3: 'h3',
449
- h4: 'h4',
450
- h5: 'h5',
451
- h6: 'h6',
452
- subtitle: 'p',
453
- body: 'p',
454
- small: 'span',
455
- overline: 'span',
456
- caption: 'span',
457
- button1: 'span',
458
- button2: 'span',
459
- button3: 'span',
460
- label: 'span'
461
- };
462
- return elementMap[variant] || 'span';
463
- };
464
- var StyledTypography = /*#__PURE__*/styled__default.default.span.withConfig({
465
- shouldForwardProp: function shouldForwardProp(prop) {
466
- return !prop.startsWith('$');
467
- },
468
- displayName: "Typography__StyledTypography",
469
- componentId: "sc-17mqo4k-0"
470
- })(templateObject_1$S || (templateObject_1$S = __makeTemplateObject(["\n ", "\n color: ", ";\n margin: 0;\n"], ["\n ", "\n color: ", ";\n margin: 0;\n"
471
- /**
472
- * Typography is an atomic component for rendering text with semantic meaning and consistent styling.
473
- *
474
- * Features:
475
- * - Semantic variants (h1-h6, body, subtitle, etc.)
476
- * - Color variants for different contexts
477
- * - Automatic semantic HTML element selection
478
- * - Manual element override support
479
- * - Direct semantic token usage (no component tokens needed)
480
- * - Full accessibility support
481
- *
482
- * @example
483
- * ```tsx
484
- * <Typography variant="h1">Main Heading</Typography>
485
- * <Typography variant="body" color="subdued">Body text</Typography>
486
- * <Typography variant="caption" as="figcaption">Image caption</Typography>
487
- * ```
488
- */])), function (_a) {
489
- var $variant = _a.$variant;
490
- return getTypographyStyles($variant);
491
- }, function (_a) {
492
- var $color = _a.$color;
493
- return getTextColor($color);
494
- });
495
- /**
496
- * Typography is an atomic component for rendering text with semantic meaning and consistent styling.
497
- *
498
- * Features:
499
- * - Semantic variants (h1-h6, body, subtitle, etc.)
500
- * - Color variants for different contexts
501
- * - Automatic semantic HTML element selection
502
- * - Manual element override support
503
- * - Direct semantic token usage (no component tokens needed)
504
- * - Full accessibility support
505
- *
506
- * @example
507
- * ```tsx
508
- * <Typography variant="h1">Main Heading</Typography>
509
- * <Typography variant="body" color="subdued">Body text</Typography>
510
- * <Typography variant="caption" as="figcaption">Image caption</Typography>
511
- * ```
512
- */
513
- var Typography = function Typography(_a) {
514
- var _b = _a.variant,
515
- variant = _b === void 0 ? 'body' : _b,
516
- children = _a.children,
517
- _c = _a.color,
518
- color = _c === void 0 ? 'default' : _c,
519
- as = _a.as,
520
- dataTestId = _a["data-testid"];
521
- // $variant and $color are only used for styled-components prop filtering
522
- var defaultElement = getDefaultElement(variant);
523
- var elementType = as || defaultElement;
524
- return jsxRuntime.jsx(StyledTypography, {
525
- as: elementType,
526
- "$variant": variant,
527
- "$color": color,
528
- "data-testid": dataTestId,
529
- children: children
530
- });
531
- };
532
- var templateObject_1$S;
406
+ var templateObject_1$U, templateObject_2$F, templateObject_3$B;
533
407
 
534
- var semantic$s = tokens.semantic;
535
- var color$g = semantic$s.color;
536
- var radius$a = semantic$s.radius;
537
- var _a$9 = tokens.component.badge,
538
- dot = _a$9.dot,
539
- count = _a$9.count,
540
- ring = _a$9.ring;
541
- var scaleIn$2 = styled.keyframes(templateObject_1$R || (templateObject_1$R = __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"])));
408
+ var semantic$t = tokens.semantic;
409
+ var color$h = semantic$t.color;
410
+ var radius$7 = semantic$t.radius;
411
+ var _a$a = tokens.component.badge,
412
+ dot = _a$a.dot,
413
+ count = _a$a.count,
414
+ ring = _a$a.ring;
415
+ var scaleIn$2 = styled.keyframes(templateObject_1$T || (templateObject_1$T = __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"])));
542
416
  var BadgeWrapper = /*#__PURE__*/styled__default.default.span.withConfig({
543
417
  displayName: "Badge__BadgeWrapper",
544
418
  componentId: "sc-tjz4pp-0"
545
- })(templateObject_2$D || (templateObject_2$D = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n flex-shrink: 0;\n"], ["\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n flex-shrink: 0;\n"])));
419
+ })(templateObject_2$E || (templateObject_2$E = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n flex-shrink: 0;\n"], ["\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n flex-shrink: 0;\n"])));
546
420
  var BadgeIndicator = /*#__PURE__*/styled__default.default.span.withConfig({
547
421
  shouldForwardProp: function shouldForwardProp(prop) {
548
422
  return !prop.startsWith('$');
549
423
  },
550
424
  displayName: "Badge__BadgeIndicator",
551
425
  componentId: "sc-tjz4pp-1"
552
- })(templateObject_3$A || (templateObject_3$A = __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) {
426
+ })(templateObject_3$A || (templateObject_3$A = __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"
427
+ // The count takes the indicator's colour, so each variant's content colour reaches it: inverse on
428
+ // the strong fill, on-fill on the accent fill (decision 0056)
429
+ ])), function (props) {
553
430
  return props.$isVisible ? 'flex' : 'none';
554
431
  }, function (props) {
555
432
  return props.$isDot ? dot.size : count.minWidth;
556
433
  }, function (props) {
557
434
  return props.$isDot ? dot.size : count.height;
558
435
  }, function (props) {
559
- return props.$isDot ? '0' : "0 ".concat(semantic$s.space.inset.xs);
560
- }, radius$a.full, count.lineHeight, ring.width, semantic$s.surface.base, scaleIn$2, semantic$s.motion.duration.moderate, semantic$s.motion.easing.decelerate, reducedMotion, function (props) {
561
- return props.$isDot ? "".concat(forcedColors, " { forced-color-adjust: none; background-color: CanvasText; }") : "".concat(forcedColors, " { border: ").concat(semantic$s.border.width.thin, " solid currentColor; }");
436
+ return props.$isDot ? '0' : "0 ".concat(semantic$t.space.inset.xs);
437
+ }, radius$7.full, count.lineHeight, ring.width, semantic$t.surface.base, scaleIn$2, semantic$t.motion.duration.moderate, semantic$t.motion.easing.decelerate, reducedMotion, function (props) {
438
+ return props.$isDot ? "".concat(forcedColors, " { forced-color-adjust: none; background-color: CanvasText; }") : "".concat(forcedColors, " { border: ").concat(semantic$t.border.width.thin, " solid currentColor; }");
562
439
  }, function (props) {
563
440
  switch (props.$variant) {
564
441
  case 'accent':
565
- return "\n background-color: ".concat(color$g.fill.accent, ";\n color: ").concat(color$g.text.inverse, ";\n ");
442
+ return "\n background-color: ".concat(color$h.fill.accent, ";\n color: ").concat(color$h.text['on-fill'], ";\n ");
566
443
  default:
567
- return "\n background-color: ".concat(color$g.fill.emphasis, ";\n color: ").concat(color$g.text.inverse, ";\n ");
444
+ return "\n background-color: ".concat(color$h.fill.emphasis, ";\n color: ").concat(color$h.text.inverse, ";\n ");
568
445
  }
569
446
  });
447
+ // The count takes the indicator's colour, so each variant's content colour reaches it: inverse on
448
+ // the strong fill, on-fill on the accent fill (decision 0056)
449
+ var Count = /*#__PURE__*/styled__default.default.span.withConfig({
450
+ displayName: "Badge__Count",
451
+ componentId: "sc-tjz4pp-2"
452
+ })(templateObject_4$t || (templateObject_4$t = __makeTemplateObject(["\n font: ", ";\n text-transform: uppercase;\n"], ["\n font: ", ";\n text-transform: uppercase;\n"])), semantic$t.typography.caption);
570
453
  var ScreenReaderOnly$1 = /*#__PURE__*/styled__default.default.span.withConfig({
571
454
  displayName: "Badge__ScreenReaderOnly",
572
- componentId: "sc-tjz4pp-2"
573
- })(templateObject_4$t || (templateObject_4$t = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), visuallyHidden);
455
+ componentId: "sc-tjz4pp-3"
456
+ })(templateObject_5$o || (templateObject_5$o = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), visuallyHidden);
574
457
  var Badge = function Badge(_a) {
575
458
  var children = _a.children,
576
459
  _b = _a.count,
@@ -598,9 +481,7 @@ var Badge = function Badge(_a) {
598
481
  "$isVisible": isVisible,
599
482
  role: "status",
600
483
  "aria-live": "polite",
601
- children: [!dot && jsxRuntime.jsx(Typography, {
602
- variant: "caption",
603
- color: "inverse",
484
+ children: [!dot && jsxRuntime.jsx(Count, {
604
485
  children: displayCount
605
486
  }), jsxRuntime.jsx(ScreenReaderOnly$1, {
606
487
  children: label
@@ -608,88 +489,89 @@ var Badge = function Badge(_a) {
608
489
  })]
609
490
  });
610
491
  };
611
- var templateObject_1$R, templateObject_2$D, templateObject_3$A, templateObject_4$t;
492
+ var templateObject_1$T, templateObject_2$E, templateObject_3$A, templateObject_4$t, templateObject_5$o;
612
493
 
613
494
  // Box's spacing and radius props keep their own names, which 3.0 decoupled from the removed
614
495
  // spacing.layout and border.radius tokens (P7, #99), and read the semantic grammar's tokens
615
496
  // (decision 0031). Each map covers every key the prop type allows, so TypeScript fails here if a
616
497
  // key is added without a mapping.
617
- var semantic$r = tokens.semantic;
618
- var color$f = semantic$r.color,
619
- space$j = semantic$r.space,
620
- radius$9 = semantic$r.radius,
621
- surface = semantic$r.surface;
498
+ var semantic$s = tokens.semantic;
499
+ var color$g = semantic$s.color,
500
+ space$k = semantic$s.space,
501
+ radius$6 = semantic$s.radius,
502
+ surface = semantic$s.surface;
622
503
  /** Box's spacing props: each name maps to the space step that replaced its spacing.layout token. */
623
504
  var spaceByLayoutKey = {
624
- none: space$j[0],
625
- xs: space$j[100],
626
- sm: space$j[200],
627
- md: space$j[300],
628
- lg: space$j[400],
629
- xl: space$j[500],
630
- '2xl': space$j[600],
631
- '3xl': space$j[700],
632
- '4xl': space$j[800],
633
- '5xl': space$j[900],
634
- '6xl': space$j[1000],
635
- '7xl': space$j[1200],
636
- '8xl': space$j[1400],
637
- '9xl': space$j[1600],
638
- '10xl': space$j[2000],
639
- '11xl': space$j[2400],
505
+ none: space$k[0],
506
+ xs: space$k[100],
507
+ sm: space$k[200],
508
+ md: space$k[300],
509
+ lg: space$k[400],
510
+ xl: space$k[500],
511
+ '2xl': space$k[600],
512
+ '3xl': space$k[700],
513
+ '4xl': space$k[800],
514
+ '5xl': space$k[900],
515
+ '6xl': space$k[1000],
516
+ '7xl': space$k[1200],
517
+ '8xl': space$k[1400],
518
+ '9xl': space$k[1600],
519
+ '10xl': space$k[2000],
520
+ '11xl': space$k[2400],
640
521
  // A keyword, not a step (0031)
641
- auto: semantic$r.spacing.layout.auto
522
+ auto: semantic$s.spacing.layout.auto
642
523
  };
643
524
  /** Box's `borderRadius` prop, read from `radius`. */
644
525
  var radiusByKey = {
645
- none: radius$9.none,
646
- xs: radius$9.xs,
647
- sm: radius$9.sm,
648
- md: radius$9.md,
649
- lg: radius$9.lg,
650
- xl: radius$9.xl,
651
- '2xl': radius$9['2xl'],
652
- '3xl': radius$9['3xl'],
653
- circle: radius$9.full
526
+ none: radius$6.none,
527
+ xs: radius$6.xs,
528
+ sm: radius$6.sm,
529
+ md: radius$6.md,
530
+ lg: radius$6.lg,
531
+ xl: radius$6.xl,
532
+ '2xl': radius$6['2xl'],
533
+ '3xl': radius$6['3xl'],
534
+ circle: radius$6.full
654
535
  };
655
536
  /** Box's `bg` prop: the grammar's token paths, read from the token at that path. */
656
537
  var backgroundByPath = {
657
538
  'surface.base': surface.base,
658
539
  'surface.raised': surface.raised,
540
+ 'surface.overlay': surface.overlay,
659
541
  'surface.scrim': surface.scrim,
660
- 'color.fill.emphasis': color$f.fill.emphasis,
661
- 'color.fill.muted': color$f.fill.muted,
662
- 'color.fill.inverse': color$f.fill.inverse,
663
- 'color.fill.accent': color$f.fill.accent,
664
- 'color.fill.accent-hover': color$f.fill['accent-hover'],
665
- 'color.fill.accent-pressed': color$f.fill['accent-pressed'],
666
- 'color.fill.accent-muted': color$f.fill['accent-muted'],
667
- 'color.fill.accent-muted-hover': color$f.fill['accent-muted-hover'],
668
- 'color.fill.accent-muted-pressed': color$f.fill['accent-muted-pressed'],
669
- 'color.fill.danger': color$f.fill.danger,
670
- 'color.fill.danger-hover': color$f.fill['danger-hover'],
671
- 'color.fill.danger-pressed': color$f.fill['danger-pressed'],
672
- 'color.fill.danger-muted': color$f.fill['danger-muted'],
673
- 'color.fill.success': color$f.fill.success,
674
- 'color.fill.success-muted': color$f.fill['success-muted'],
675
- 'color.fill.warning': color$f.fill.warning,
676
- 'color.fill.warning-muted': color$f.fill['warning-muted'],
677
- 'color.fill.serious': color$f.fill.serious,
678
- 'color.fill.serious-muted': color$f.fill['serious-muted'],
679
- 'color.fill.ai-muted': color$f.fill['ai-muted'],
680
- 'color.fill.disabled': color$f.fill.disabled,
681
- 'color.fill.default': color$f.fill["default"],
682
- 'color.fill.default-hover': color$f.fill['default-hover'],
683
- 'color.fill.default-pressed': color$f.fill['default-pressed'],
684
- 'color.fill.none': color$f.fill.none,
685
- 'color.fill.none-hover': color$f.fill['none-hover'],
686
- 'color.fill.none-pressed': color$f.fill['none-pressed'],
687
- 'color.fill.inverse-none-hover': color$f.fill['inverse-none-hover']
542
+ 'color.fill.emphasis': color$g.fill.emphasis,
543
+ 'color.fill.muted': color$g.fill.muted,
544
+ 'color.fill.inverse': color$g.fill.inverse,
545
+ 'color.fill.accent': color$g.fill.accent,
546
+ 'color.fill.accent-hover': color$g.fill['accent-hover'],
547
+ 'color.fill.accent-pressed': color$g.fill['accent-pressed'],
548
+ 'color.fill.accent-muted': color$g.fill['accent-muted'],
549
+ 'color.fill.accent-muted-hover': color$g.fill['accent-muted-hover'],
550
+ 'color.fill.accent-muted-pressed': color$g.fill['accent-muted-pressed'],
551
+ 'color.fill.danger': color$g.fill.danger,
552
+ 'color.fill.danger-hover': color$g.fill['danger-hover'],
553
+ 'color.fill.danger-pressed': color$g.fill['danger-pressed'],
554
+ 'color.fill.danger-muted': color$g.fill['danger-muted'],
555
+ 'color.fill.success': color$g.fill.success,
556
+ 'color.fill.success-muted': color$g.fill['success-muted'],
557
+ 'color.fill.warning': color$g.fill.warning,
558
+ 'color.fill.warning-muted': color$g.fill['warning-muted'],
559
+ 'color.fill.serious': color$g.fill.serious,
560
+ 'color.fill.serious-muted': color$g.fill['serious-muted'],
561
+ 'color.fill.ai-muted': color$g.fill['ai-muted'],
562
+ 'color.fill.disabled': color$g.fill.disabled,
563
+ 'color.fill.default': color$g.fill["default"],
564
+ 'color.fill.default-hover': color$g.fill['default-hover'],
565
+ 'color.fill.default-pressed': color$g.fill['default-pressed'],
566
+ 'color.fill.none': color$g.fill.none,
567
+ 'color.fill.none-hover': color$g.fill['none-hover'],
568
+ 'color.fill.none-pressed': color$g.fill['none-pressed'],
569
+ 'color.fill.inverse-none-hover': color$g.fill['inverse-none-hover']
688
570
  };
689
571
  /** Box's `color` prop: the text colours. */
690
- var textColorByKey = color$f.text;
572
+ var textColorByKey = color$g.text;
691
573
  /** Box's border props: the border colours. */
692
- var borderColorByKey = color$f.border;
574
+ var borderColorByKey = color$g.border;
693
575
 
694
576
  var StyledBox = /*#__PURE__*/styled__default.default.div.withConfig({
695
577
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -700,9 +582,9 @@ var StyledBox = /*#__PURE__*/styled__default.default.div.withConfig({
700
582
  })(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"
701
583
  // Transform component that maps clean props to $-prefixed props for styled-components
702
584
  ])), function (props) {
703
- return props.$display && styled.css(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
585
+ return props.$display && styled.css(templateObject_1$S || (templateObject_1$S = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
704
586
  }, function (props) {
705
- return props.$flexDirection && styled.css(templateObject_2$C || (templateObject_2$C = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
587
+ return props.$flexDirection && styled.css(templateObject_2$D || (templateObject_2$D = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
706
588
  }, function (props) {
707
589
  return props.$justifyContent && styled.css(templateObject_3$z || (templateObject_3$z = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
708
590
  }, function (props) {
@@ -712,13 +594,13 @@ var StyledBox = /*#__PURE__*/styled__default.default.div.withConfig({
712
594
  }, function (props) {
713
595
  return props.$gap && styled.css(templateObject_6$h || (templateObject_6$h = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), spaceByLayoutKey[props.$gap]);
714
596
  }, function (props) {
715
- return props.$m && styled.css(templateObject_7$e || (templateObject_7$e = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), spaceByLayoutKey[props.$m]);
597
+ return props.$m && styled.css(templateObject_7$f || (templateObject_7$f = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), spaceByLayoutKey[props.$m]);
716
598
  }, function (props) {
717
599
  return props.$mt && styled.css(templateObject_8$b || (templateObject_8$b = __makeTemplateObject(["margin-top: ", ";"], ["margin-top: ", ";"])), spaceByLayoutKey[props.$mt]);
718
600
  }, function (props) {
719
601
  return props.$mr && styled.css(templateObject_9$9 || (templateObject_9$9 = __makeTemplateObject(["margin-right: ", ";"], ["margin-right: ", ";"])), spaceByLayoutKey[props.$mr]);
720
602
  }, function (props) {
721
- return props.$mb && styled.css(templateObject_10$5 || (templateObject_10$5 = __makeTemplateObject(["margin-bottom: ", ";"], ["margin-bottom: ", ";"])), spaceByLayoutKey[props.$mb]);
603
+ return props.$mb && styled.css(templateObject_10$7 || (templateObject_10$7 = __makeTemplateObject(["margin-bottom: ", ";"], ["margin-bottom: ", ";"])), spaceByLayoutKey[props.$mb]);
722
604
  }, function (props) {
723
605
  return props.$ml && styled.css(templateObject_11$5 || (templateObject_11$5 = __makeTemplateObject(["margin-left: ", ";"], ["margin-left: ", ";"])), spaceByLayoutKey[props.$ml]);
724
606
  }, function (props) {
@@ -924,7 +806,7 @@ var BoxTransform = function BoxTransform(props) {
924
806
  }));
925
807
  };
926
808
  var Box = BoxTransform;
927
- var templateObject_1$Q, templateObject_2$C, templateObject_3$z, templateObject_4$s, templateObject_5$n, templateObject_6$h, templateObject_7$e, templateObject_8$b, templateObject_9$9, templateObject_10$5, templateObject_11$5, templateObject_12$5, templateObject_13$5, templateObject_14$3, templateObject_15$3, templateObject_16$2, templateObject_17$2, templateObject_18$2, templateObject_19$2, templateObject_20$2, templateObject_21$2, templateObject_22$2, templateObject_23$2, templateObject_24$2, templateObject_25$2, templateObject_26$2, templateObject_27$2, templateObject_28$2, templateObject_29$2, templateObject_30$2, templateObject_31$2, templateObject_32$2, templateObject_33$2, 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;
809
+ var templateObject_1$S, templateObject_2$D, templateObject_3$z, templateObject_4$s, templateObject_5$n, templateObject_6$h, templateObject_7$f, templateObject_8$b, templateObject_9$9, templateObject_10$7, templateObject_11$5, templateObject_12$5, templateObject_13$5, templateObject_14$3, templateObject_15$3, templateObject_16$2, templateObject_17$2, templateObject_18$2, templateObject_19$2, templateObject_20$2, templateObject_21$2, templateObject_22$2, templateObject_23$2, templateObject_24$2, templateObject_25$2, templateObject_26$2, templateObject_27$2, templateObject_28$2, templateObject_29$2, templateObject_30$2, templateObject_31$2, templateObject_32$2, templateObject_33$2, 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;
928
810
 
929
811
  var IconStyled = /*#__PURE__*/styled__default.default.span.withConfig({
930
812
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -932,7 +814,10 @@ var IconStyled = /*#__PURE__*/styled__default.default.span.withConfig({
932
814
  },
933
815
  displayName: "Icon__IconStyled",
934
816
  componentId: "sc-1105czq-0"
935
- })(templateObject_1$P || (templateObject_1$P = __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) {
817
+ })(templateObject_1$R || (templateObject_1$R = __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"
818
+ // How each paint draws, in currentColor. Lines are 2px on the 24px grid, so they scale with the
819
+ // icon (decision 0058).
820
+ ])), function (_a) {
936
821
  var $size = _a.$size;
937
822
  return tokens.semantic.size.icon[$size];
938
823
  }, function (_a) {
@@ -965,6 +850,25 @@ var IconStyled = /*#__PURE__*/styled__default.default.span.withConfig({
965
850
  return tokens.semantic.color.icon["default"];
966
851
  }
967
852
  });
853
+ // How each paint draws, in currentColor. Lines are 2px on the 24px grid, so they scale with the
854
+ // icon (decision 0058).
855
+ var LINE = {
856
+ stroke: 'currentColor',
857
+ strokeWidth: 2,
858
+ strokeLinecap: 'round',
859
+ strokeLinejoin: 'round'
860
+ };
861
+ var PAINT = {
862
+ stroke: __assign({
863
+ fill: 'none'
864
+ }, LINE),
865
+ fill: {
866
+ fill: 'currentColor'
867
+ },
868
+ both: __assign({
869
+ fill: 'currentColor'
870
+ }, LINE)
871
+ };
968
872
  var Icon = function Icon(_a) {
969
873
  var name = _a.name,
970
874
  _b = _a.size,
@@ -976,10 +880,9 @@ var Icon = function Icon(_a) {
976
880
  dataTestId = _a["data-testid"];
977
881
  // Decorative unless it's given a name. A blank name is no name, so the icon stays hidden
978
882
  var label = (ariaLabel === null || ariaLabel === void 0 ? void 0 : ariaLabel.trim()) || (title === null || title === void 0 ? void 0 : title.trim()) || undefined;
979
- // Get the icon data from the JSON file
980
- var iconData = data.iconsJson[name];
981
- if (!iconData) {
982
- console.warn("Icon \"".concat(name, "\" not found in icons.json"));
883
+ var icon = data.iconSet[name];
884
+ if (!icon) {
885
+ console.warn("Icon \"".concat(name, "\" not found in iconSet"));
983
886
  return jsxRuntime.jsx(IconStyled, {
984
887
  "$size": size,
985
888
  "$iconColor": iconColor,
@@ -992,9 +895,8 @@ var Icon = function Icon(_a) {
992
895
  "data-testid": dataTestId,
993
896
  children: jsxRuntime.jsxs("svg", __assign({
994
897
  viewBox: "0 0 24 24",
995
- fill: "currentColor",
996
898
  xmlns: "http://www.w3.org/2000/svg"
997
- }, label ? {
899
+ }, PAINT[icon.paint], label ? {
998
900
  role: 'img',
999
901
  'aria-label': label
1000
902
  } : {
@@ -1003,23 +905,27 @@ var Icon = function Icon(_a) {
1003
905
  }, {
1004
906
  children: [(title === null || title === void 0 ? void 0 : title.trim()) && jsxRuntime.jsx("title", {
1005
907
  children: title
1006
- }), jsxRuntime.jsx("path", {
1007
- d: iconData.path
908
+ }), icon.elements.map(function (_a, index) {
909
+ var tag = _a[0],
910
+ attributes = _a[1];
911
+ return /*#__PURE__*/React__default.default.createElement(tag, __assign({
912
+ key: index
913
+ }, attributes));
1008
914
  })]
1009
915
  }))
1010
916
  });
1011
917
  };
1012
- var templateObject_1$P;
918
+ var templateObject_1$R;
1013
919
 
1014
920
  var button$1 = tokens.component.button,
1015
- semantic$q = tokens.semantic;
921
+ semantic$r = tokens.semantic;
1016
922
  // Height comes from size.control as a minimum and the content is centred, so there is no
1017
923
  // vertical padding (decision 0034). Horizontal padding comes from the semantic spacing scale:
1018
924
  // no component spacing tokens (decision 0022)
1019
- var inset = semantic$q.space.inset;
1020
- var control$1 = semantic$q.size.control;
925
+ var inset = semantic$r.space.inset;
926
+ var control$1 = semantic$r.size.control;
1021
927
  // Base styles shared between button and link
1022
- 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$q.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$q.border.focusOffset, ";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ").concat(forcedColorsEdge, "\n");
928
+ 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$r.motion.transition.feedback, ";\n white-space: nowrap;\n user-select: none;\n \n /* The system ring for keyboard focus only: a click doesn't leave it behind (P2, P5) */\n &:focus-visible {\n outline: ").concat(button$1.focus.outline, ";\n outline-offset: ").concat(semantic$r.border.focusOffset, ";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ").concat(forcedColorsEdge, "\n");
1023
929
  // Dynamic variant styles using component tokens
1024
930
  var getVariantStyles$1 = function getVariantStyles(_a) {
1025
931
  var _b;
@@ -1089,14 +995,14 @@ var StyledButton = /*#__PURE__*/styled__default.default.button.withConfig({
1089
995
  },
1090
996
  displayName: "Button__StyledButton",
1091
997
  componentId: "sc-1eiuum9-0"
1092
- })(templateObject_1$O || (templateObject_1$O = __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);
998
+ })(templateObject_1$Q || (templateObject_1$Q = __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);
1093
999
  var StyledLink = /*#__PURE__*/styled__default.default.a.withConfig({
1094
1000
  shouldForwardProp: function shouldForwardProp(prop) {
1095
1001
  return !prop.startsWith('$');
1096
1002
  },
1097
1003
  displayName: "Button__StyledLink",
1098
1004
  componentId: "sc-1eiuum9-1"
1099
- })(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"
1005
+ })(templateObject_2$C || (templateObject_2$C = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"
1100
1006
  // Helper function to get icon size based on button size
1101
1007
  ])), baseButtonStyles, button$1.primary.borderRadius, getVariantStyles$1, getSizeStyles);
1102
1008
  // Helper function to get icon size based on button size
@@ -1199,15 +1105,15 @@ var Button = function Button(_a) {
1199
1105
  children: renderButtonContent(children, iconName, size)
1200
1106
  }));
1201
1107
  };
1202
- var templateObject_1$O, templateObject_2$B;
1108
+ var templateObject_1$Q, templateObject_2$C;
1203
1109
 
1204
- var semantic$p = tokens.semantic;
1205
- var color$e = semantic$p.color;
1110
+ var semantic$q = tokens.semantic;
1111
+ var color$f = semantic$q.color;
1206
1112
  var label$2 = tokens.component.badge.label;
1207
- var category = color$e.category;
1208
- var radius$8 = semantic$p.radius;
1209
- var space$i = semantic$p.space;
1210
- var labelHeight$1 = semantic$p.size.label;
1113
+ var category = color$f.category;
1114
+ var radius$5 = semantic$q.radius;
1115
+ var space$j = semantic$q.space;
1116
+ var labelHeight$1 = semantic$q.size.label;
1211
1117
  var displayColors = ['olive', 'periwinkle', 'rose', 'magenta', 'gray'];
1212
1118
  // Text on white or the -muted fill (outlined and minimal), at least 4.5:1 (#115)
1213
1119
  var categoryText = {
@@ -1223,19 +1129,19 @@ var StyledCategoryLabel = /*#__PURE__*/styled__default.default.span.withConfig({
1223
1129
  },
1224
1130
  displayName: "CategoryLabel__StyledCategoryLabel",
1225
1131
  componentId: "sc-1jx7bjo-0"
1226
- })(templateObject_1$N || (templateObject_1$N = __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"
1132
+ })(templateObject_1$P || (templateObject_1$P = __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"
1227
1133
  // The visible content, hidden from assistive technology when an aria-label replaces it.
1228
1134
  // display: contents keeps the root's flex layout and gap.
1229
- ])), radius$8.full, semantic$p.border.width.thin, function (_a) {
1135
+ ])), radius$5.full, semantic$q.border.width.thin, function (_a) {
1230
1136
  var $size = _a.$size;
1231
1137
  return labelHeight$1[$size];
1232
1138
  }, function (_a) {
1233
1139
  var $size = _a.$size;
1234
- return $size === 'medium' ? "".concat(space$i[100], " ").concat(space$i[200]) : "".concat(space$i[200], " ").concat(space$i[300]);
1140
+ return $size === 'medium' ? "".concat(space$j[100], " ").concat(space$j[200]) : "".concat(space$j[200], " ").concat(space$j[300]);
1235
1141
  }, function (_a) {
1236
1142
  var $size = _a.$size;
1237
1143
  return $size === 'medium' ? label$2.typography.small : label$2.typography.medium;
1238
- }, label$2.fontWeight, space$i[100], function (_a) {
1144
+ }, label$2.fontWeight, space$j[100], function (_a) {
1239
1145
  var $color = _a.$color,
1240
1146
  $variant = _a.$variant;
1241
1147
  if ($variant === 'filled') {
@@ -1250,7 +1156,7 @@ var StyledCategoryLabel = /*#__PURE__*/styled__default.default.span.withConfig({
1250
1156
  var $color = _a.$color,
1251
1157
  $variant = _a.$variant;
1252
1158
  if ($variant === 'filled') {
1253
- return color$e.text.inverse;
1159
+ return color$f.text.inverse;
1254
1160
  }
1255
1161
  return categoryText[$color];
1256
1162
  }, function (_a) {
@@ -1266,8 +1172,8 @@ var StyledCategoryLabel = /*#__PURE__*/styled__default.default.span.withConfig({
1266
1172
  var VisibleContent$1 = /*#__PURE__*/styled__default.default.span.withConfig({
1267
1173
  displayName: "CategoryLabel__VisibleContent",
1268
1174
  componentId: "sc-1jx7bjo-1"
1269
- })(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n display: contents;\n"], ["\n display: contents;\n"])));
1270
- var HiddenLabel$1 = /*#__PURE__*/styled__default.default.span.withConfig({
1175
+ })(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n display: contents;\n"], ["\n display: contents;\n"])));
1176
+ var HiddenLabel = /*#__PURE__*/styled__default.default.span.withConfig({
1271
1177
  displayName: "CategoryLabel__HiddenLabel",
1272
1178
  componentId: "sc-1jx7bjo-2"
1273
1179
  })(templateObject_3$y || (templateObject_3$y = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"
@@ -1335,16 +1241,16 @@ var CategoryLabel = function CategoryLabel(_a) {
1335
1241
  size: iconSize,
1336
1242
  iconColor: variant === 'filled' ? 'inverse' : 'inherit'
1337
1243
  }), children]
1338
- }), accessibleLabel && jsxRuntime.jsx(HiddenLabel$1, {
1244
+ }), accessibleLabel && jsxRuntime.jsx(HiddenLabel, {
1339
1245
  children: accessibleLabel
1340
1246
  })]
1341
1247
  });
1342
1248
  };
1343
1249
  CategoryLabel.displayName = 'CategoryLabel';
1344
- var templateObject_1$N, templateObject_2$A, templateObject_3$y;
1250
+ var templateObject_1$P, templateObject_2$B, templateObject_3$y;
1345
1251
 
1346
1252
  var chip$2 = tokens.component.chip,
1347
- semantic$o = tokens.semantic;
1253
+ semantic$p = tokens.semantic;
1348
1254
  // The chip's fill and text for its surface and state, matching Button's approach
1349
1255
  var getVariantStyles = function getVariantStyles(_a) {
1350
1256
  var $surface = _a.$surface,
@@ -1377,10 +1283,10 @@ var getVariantStyles = function getVariantStyles(_a) {
1377
1283
  // Chips have one size: 24px from the label scale as a minimum, with the content centred
1378
1284
  // and no vertical padding (decisions 0034 and 0035). Horizontal padding comes from the
1379
1285
  // semantic spacing scale (decision 0022).
1380
- var sizeStyles = "\n font: ".concat(chip$2.sizes.medium.font, ";\n min-height: ").concat(semantic$o.size.label.medium, ";\n padding: 0 ").concat(semantic$o.space.inset.sm, ";\n");
1286
+ var sizeStyles = "\n font: ".concat(chip$2.sizes.medium.font, ";\n min-height: ").concat(semantic$p.size.label.medium, ";\n padding: 0 ").concat(semantic$p.space.inset.sm, ";\n");
1381
1287
 
1382
1288
  var chip$1 = tokens.component.chip,
1383
- semantic$n = tokens.semantic;
1289
+ semantic$o = tokens.semantic;
1384
1290
  // Base styled component using direct prop interpolation like Button
1385
1291
  var StyledChip = /*#__PURE__*/styled__default.default.span.withConfig({
1386
1292
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -1388,18 +1294,18 @@ var StyledChip = /*#__PURE__*/styled__default.default.span.withConfig({
1388
1294
  },
1389
1295
  displayName: "ChipBase__StyledChip",
1390
1296
  componentId: "sc-moa6zc-0"
1391
- })(templateObject_1$M || (templateObject_1$M = __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"
1297
+ })(templateObject_1$O || (templateObject_1$O = __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"
1392
1298
  // Icon container for selected indicator or leading icons
1393
- ])), chip$1["default"].borderRadius, semantic$n.motion.transition.feedback, function (props) {
1299
+ ])), chip$1["default"].borderRadius, semantic$o.motion.transition.feedback, function (props) {
1394
1300
  return props.$disabled ? 'not-allowed' : props.$clickable ? 'pointer' : 'default';
1395
1301
  }, forcedColorsEdge, function (props) {
1396
1302
  return props.$disabled ? "".concat(forcedColors, " { color: GrayText; }") : '';
1397
- }, getVariantStyles, sizeStyles, chip$1.focus.outline, semantic$n.border.focusOffset);
1303
+ }, getVariantStyles, sizeStyles, chip$1.focus.outline, semantic$o.border.focusOffset);
1398
1304
  // Icon container for selected indicator or leading icons
1399
1305
  var IconContainer = /*#__PURE__*/styled__default.default.span.withConfig({
1400
1306
  displayName: "ChipBase__IconContainer",
1401
1307
  componentId: "sc-moa6zc-1"
1402
- })(templateObject_2$z || (templateObject_2$z = __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"
1308
+ })(templateObject_2$A || (templateObject_2$A = __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"
1403
1309
  // Close button for dismissible chips
1404
1310
  ])), tokens.semantic.space[100]);
1405
1311
  // Close button for dismissible chips
@@ -1409,10 +1315,10 @@ var CloseButton = /*#__PURE__*/styled__default.default.button.withConfig({
1409
1315
  },
1410
1316
  displayName: "ChipBase__CloseButton",
1411
1317
  componentId: "sc-moa6zc-2"
1412
- })(templateObject_3$x || (templateObject_3$x = __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$1.closeButton.size, chip$1.closeButton.size, tokens.semantic.space[0], semantic$n.size.label.medium, semantic$n.size.label.medium, tokens.semantic.radius.xs, function (props) {
1318
+ })(templateObject_3$x || (templateObject_3$x = __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$1.closeButton.size, chip$1.closeButton.size, tokens.semantic.space[0], semantic$o.size.label.medium, semantic$o.size.label.medium, tokens.semantic.radius.full, function (props) {
1413
1319
  return props.$disabled ? 'not-allowed' : 'pointer';
1414
- }, semantic$n.motion.transition.feedback, tokens.semantic.color.fill['none-hover'], tokens.semantic.color.fill['none-pressed'], tokens.semantic.color.text.disabled, chip$1.focus.outline, semantic$n.border.focusOffset, chip$1["default"].borderRadius);
1415
- var templateObject_1$M, templateObject_2$z, templateObject_3$x;
1320
+ }, semantic$o.motion.transition.feedback, tokens.semantic.color.fill['none-hover'], tokens.semantic.color.fill['none-pressed'], tokens.semantic.color.text.disabled, chip$1.focus.outline, semantic$o.border.focusOffset, chip$1["default"].borderRadius);
1321
+ var templateObject_1$O, templateObject_2$A, templateObject_3$x;
1416
1322
 
1417
1323
  /**
1418
1324
  * Chip - a static, non-interactive label for tags, categories and metadata.
@@ -1611,14 +1517,14 @@ var FilterChip = function FilterChip(_a) {
1611
1517
  };
1612
1518
 
1613
1519
  var chip = tokens.component.chip,
1614
- semantic$m = tokens.semantic;
1615
- var color$d = semantic$m.color;
1520
+ semantic$n = tokens.semantic;
1521
+ var color$e = semantic$n.color;
1616
1522
  // Outlined, with the naked fill ladder on hover and press (decisions 0030, 0046): the edge keeps it
1617
1523
  // visible on white, the page and AgentInput's docked band
1618
1524
  var StyledSuggestionChip = /*#__PURE__*/styled__default.default.button.withConfig({
1619
1525
  displayName: "SuggestionChip__StyledSuggestionChip",
1620
1526
  componentId: "sc-1k0njm-0"
1621
- })(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n margin: 0;\n box-sizing: border-box;\n border: ", " solid ", ";\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n text-align: start;\n /* A long suggestion wraps inside the chip rather than being cut off (issue 279) */\n white-space: normal;\n overflow-wrap: anywhere;\n transition: ", ";\n ", "\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n border-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n /* Forced colours: a native button gets ButtonBorder and GrayText; keep the edge (decision 0038) */\n ", " {\n border-color: ButtonBorder;\n\n &:disabled {\n border-color: GrayText;\n }\n }\n"], ["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n margin: 0;\n box-sizing: border-box;\n border: ", " solid ", ";\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n text-align: start;\n /* A long suggestion wraps inside the chip rather than being cut off (issue 279) */\n white-space: normal;\n overflow-wrap: anywhere;\n transition: ", ";\n ", "\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n border-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n /* Forced colours: a native button gets ButtonBorder and GrayText; keep the edge (decision 0038) */\n ", " {\n border-color: ButtonBorder;\n\n &:disabled {\n border-color: GrayText;\n }\n }\n"
1527
+ })(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n margin: 0;\n box-sizing: border-box;\n border: ", " solid ", ";\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n text-align: start;\n /* A long suggestion wraps inside the chip rather than being cut off (issue 279) */\n white-space: normal;\n overflow-wrap: anywhere;\n transition: ", ";\n ", "\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n border-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n /* Forced colours: a native button gets ButtonBorder and GrayText; keep the edge (decision 0038) */\n ", " {\n border-color: ButtonBorder;\n\n &:disabled {\n border-color: GrayText;\n }\n }\n"], ["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n margin: 0;\n box-sizing: border-box;\n border: ", " solid ", ";\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n cursor: pointer;\n text-align: start;\n /* A long suggestion wraps inside the chip rather than being cut off (issue 279) */\n white-space: normal;\n overflow-wrap: anywhere;\n transition: ", ";\n ", "\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n border-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n /* Forced colours: a native button gets ButtonBorder and GrayText; keep the edge (decision 0038) */\n ", " {\n border-color: ButtonBorder;\n\n &:disabled {\n border-color: GrayText;\n }\n }\n"
1622
1528
  /**
1623
1529
  * SuggestionChip - Offers text to put in the agent input
1624
1530
  *
@@ -1630,7 +1536,7 @@ var StyledSuggestionChip = /*#__PURE__*/styled__default.default.button.withConfi
1630
1536
  * - A native button: Enter and Space pick it, and its text is its accessible name
1631
1537
  * - Outlined, with the naked hover and pressed fills; no selected state
1632
1538
  * - One chip height (24px minimum, decision 0035); long text wraps instead of being cut off
1633
- */])), semantic$m.border.width.thin, color$d.border.input, chip["default"].borderRadius, color$d.fill.none, color$d.text["default"], semantic$m.motion.transition.feedback, sizeStyles, color$d.fill['none-hover'], color$d.fill['none-pressed'], chip.focus.outline, semantic$m.border.focusOffset, color$d.border["default"], color$d.text.disabled, forcedColors);
1539
+ */])), semantic$n.border.width.thin, color$e.border.input, chip["default"].borderRadius, color$e.fill.none, color$e.text["default"], semantic$n.motion.transition.feedback, sizeStyles, color$e.fill['none-hover'], color$e.fill['none-pressed'], chip.focus.outline, semantic$n.border.focusOffset, color$e.border["default"], color$e.text.disabled, forcedColors);
1634
1540
  /**
1635
1541
  * SuggestionChip - Offers text to put in the agent input
1636
1542
  *
@@ -1658,13 +1564,13 @@ var SuggestionChip = function SuggestionChip(_a) {
1658
1564
  });
1659
1565
  };
1660
1566
  SuggestionChip.displayName = 'SuggestionChip';
1661
- var templateObject_1$L;
1567
+ var templateObject_1$N;
1662
1568
 
1663
- var space$h = tokens.semantic.space;
1569
+ var space$i = tokens.semantic.space;
1664
1570
  var StyledContainer$2 = /*#__PURE__*/styled__default.default.div.withConfig({
1665
1571
  displayName: "Container__StyledContainer",
1666
1572
  componentId: "sc-17dbj6n-0"
1667
- })(templateObject_1$K || (templateObject_1$K = __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$h[600], space$h[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']);
1573
+ })(templateObject_1$M || (templateObject_1$M = __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$i[600], space$i[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']);
1668
1574
  var Container$1 = function Container(_a) {
1669
1575
  var children = _a.children,
1670
1576
  props = __rest(_a, ["children"]);
@@ -1672,12 +1578,12 @@ var Container$1 = function Container(_a) {
1672
1578
  children: children
1673
1579
  }));
1674
1580
  };
1675
- var templateObject_1$K;
1581
+ var templateObject_1$M;
1676
1582
 
1677
1583
  var PictureWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
1678
1584
  displayName: "Picture__PictureWrapper",
1679
1585
  componentId: "sc-11d9tei-0"
1680
- })(templateObject_1$J || (templateObject_1$J = __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"
1586
+ })(templateObject_1$L || (templateObject_1$L = __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"
1681
1587
  // A clickable image answers input on the image itself (decision 0029, #185): it fades on hover and
1682
1588
  // one step further while pressed, and draws the system focus ring around the image, following its
1683
1589
  // rounded corners. Fading isn't movement, so it stays under reduced motion.
@@ -1685,7 +1591,7 @@ var PictureWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
1685
1591
  // A clickable image answers input on the image itself (decision 0029, #185): it fades on hover and
1686
1592
  // one step further while pressed, and draws the system focus ring around the image, following its
1687
1593
  // rounded corners. Fading isn't movement, so it stays under reduced motion.
1688
- var clickableImage = styled.css(templateObject_2$y || (templateObject_2$y = __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);
1594
+ var clickableImage = styled.css(templateObject_2$z || (templateObject_2$z = __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);
1689
1595
  var ImageLink = /*#__PURE__*/styled__default.default.a.withConfig({
1690
1596
  displayName: "Picture__ImageLink",
1691
1597
  componentId: "sc-11d9tei-1"
@@ -1727,18 +1633,18 @@ var Picture = function Picture(_a) {
1727
1633
  }) : image
1728
1634
  });
1729
1635
  };
1730
- var templateObject_1$J, templateObject_2$y, templateObject_3$w, templateObject_4$r, templateObject_5$m;
1636
+ var templateObject_1$L, templateObject_2$z, templateObject_3$w, templateObject_4$r, templateObject_5$m;
1731
1637
 
1732
- var _a$8 = tokens.semantic,
1733
- typography$6 = _a$8.typography,
1734
- color$c = _a$8.color;
1638
+ var _a$9 = tokens.semantic,
1639
+ typography$7 = _a$9.typography,
1640
+ color$d = _a$9.color;
1735
1641
  var TimeStyled = /*#__PURE__*/styled__default.default.time.withConfig({
1736
1642
  displayName: "DateFormatter__TimeStyled",
1737
1643
  componentId: "sc-5464cc-0"
1738
- })(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
1644
+ })(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
1739
1645
  /**
1740
1646
  * Formats a date with smart relative/absolute logic
1741
- */])), typography$6.label, color$c.text.muted);
1647
+ */])), typography$7.label, color$d.text.muted);
1742
1648
  /**
1743
1649
  * Formats a date with smart relative/absolute logic
1744
1650
  */
@@ -1780,27 +1686,27 @@ var DateFormatter = function DateFormatter(_a) {
1780
1686
  children: displayText
1781
1687
  });
1782
1688
  };
1783
- var templateObject_1$I;
1689
+ var templateObject_1$K;
1784
1690
 
1785
- var _a$7 = tokens.semantic,
1786
- motion$b = _a$7.motion,
1787
- border$8 = _a$7.border,
1788
- space$g = _a$7.space,
1789
- size$7 = _a$7.size,
1691
+ var _a$8 = tokens.semantic,
1692
+ motion$c = _a$8.motion,
1693
+ border$7 = _a$8.border,
1694
+ space$h = _a$8.space,
1695
+ size$9 = _a$8.size,
1790
1696
  _b$2 = tokens.component,
1791
1697
  iconButton = _b$2.iconButton,
1792
1698
  button = _b$2.button;
1793
1699
  // Height and width come from size.control as a minimum (decision 0034)
1794
1700
  var control = {
1795
- small: size$7.control.sm,
1796
- medium: size$7.control.md,
1797
- large: size$7.control.lg
1701
+ small: size$9.control.sm,
1702
+ medium: size$9.control.md,
1703
+ large: size$9.control.lg
1798
1704
  };
1799
1705
  // Padding comes from the semantic spacing scale: no component spacing tokens (decision 0022)
1800
1706
  var padding = {
1801
- small: space$g.inset.xs,
1802
- medium: space$g.inset.sm,
1803
- large: space$g.inset.md
1707
+ small: space$h.inset.xs,
1708
+ medium: space$h.inset.sm,
1709
+ large: space$h.inset.md
1804
1710
  };
1805
1711
  // Colours and motion come from Button's tokens, so IconButton's variants look and behave exactly like
1806
1712
  // Button's in every state (#130). Only the size and the icon differ
@@ -1841,13 +1747,13 @@ var IconButtonStyled = /*#__PURE__*/styled__default.default.button.withConfig({
1841
1747
  },
1842
1748
  displayName: "IconButton__IconButtonStyled",
1843
1749
  componentId: "sc-k8b14t-0"
1844
- })(templateObject_1$H || (templateObject_1$H = __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) {
1750
+ })(templateObject_1$J || (templateObject_1$J = __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 /* The system ring for keyboard focus only: a click doesn't leave it behind (P2, P5) */\n &:focus-visible {\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 /* The system ring for keyboard focus only: a click doesn't leave it behind (P2, P5) */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n ", "\n"])), function (_a) {
1845
1751
  var $variant = _a.$variant;
1846
1752
  return colours($variant).bg;
1847
1753
  }, function (_a) {
1848
1754
  var $variant = _a.$variant;
1849
1755
  return colours($variant).text;
1850
- }, iconButton.primary.borderRadius, motion$b.transition.feedback, function (_a) {
1756
+ }, iconButton.primary.borderRadius, motion$c.transition.feedback, function (_a) {
1851
1757
  var $size = _a.$size;
1852
1758
  return control[$size];
1853
1759
  }, function (_a) {
@@ -1862,7 +1768,7 @@ var IconButtonStyled = /*#__PURE__*/styled__default.default.button.withConfig({
1862
1768
  }, function (_a) {
1863
1769
  var $variant = _a.$variant;
1864
1770
  return colours($variant).activeBg;
1865
- }, iconButton.focus.outline, border$8.focusOffset, function (_a) {
1771
+ }, iconButton.focus.outline, border$7.focusOffset, function (_a) {
1866
1772
  var $variant = _a.$variant;
1867
1773
  return colours($variant).disabledBg;
1868
1774
  }, function (_a) {
@@ -1919,7 +1825,137 @@ var IconButton = function IconButton(_a) {
1919
1825
  })
1920
1826
  }));
1921
1827
  };
1922
- var templateObject_1$H;
1828
+ var templateObject_1$J;
1829
+
1830
+ var _a$7 = tokens.semantic,
1831
+ typography$6 = _a$7.typography,
1832
+ color$c = _a$7.color,
1833
+ letterSpacing = _a$7.letterSpacing;
1834
+ var getTypographyStyles = function getTypographyStyles(variant) {
1835
+ var styles = {
1836
+ display: "font: ".concat(typography$6.display, "; letter-spacing: ").concat(letterSpacing.tighter, ";"),
1837
+ h1: "font: ".concat(typography$6.h1, "; letter-spacing: ").concat(letterSpacing.tighter, ";"),
1838
+ h2: "font: ".concat(typography$6.h2, "; letter-spacing: ").concat(letterSpacing.tight, ";"),
1839
+ h3: "font: ".concat(typography$6.h3, "; letter-spacing: ").concat(letterSpacing.tight, ";"),
1840
+ h4: "font: ".concat(typography$6.h4, "; letter-spacing: ").concat(letterSpacing.tight, ";"),
1841
+ h5: "font: ".concat(typography$6.h5, "; letter-spacing: ").concat(letterSpacing.normal, ";"),
1842
+ h6: "font: ".concat(typography$6.h6, "; letter-spacing: ").concat(letterSpacing.normal, ";"),
1843
+ subtitle: "font: ".concat(typography$6.subtitle, ";"),
1844
+ body: "font: ".concat(typography$6.body, ";"),
1845
+ small: "font: ".concat(typography$6.small, ";"),
1846
+ overline: "font: ".concat(typography$6.overline, ";"),
1847
+ caption: "font: ".concat(typography$6.caption, "; text-transform: uppercase;"),
1848
+ button1: "font: ".concat(tokens.component.button.sizes.large.font, ";"),
1849
+ button2: "font: ".concat(tokens.component.button.sizes.medium.font, ";"),
1850
+ button3: "font: ".concat(tokens.component.button.sizes.small.font, "; font-weight: ").concat(tokens.component.button.sizes.small.fontWeight, ";"),
1851
+ label: "font: ".concat(typography$6.label, ";")
1852
+ };
1853
+ return styles[variant] || styles.body;
1854
+ };
1855
+ var getTextColor = function getTextColor(colorVariant) {
1856
+ var colorMap = {
1857
+ "default": color$c.text["default"],
1858
+ emphasis: color$c.text["default"],
1859
+ subdued: color$c.text.muted,
1860
+ inverse: color$c.text.inverse,
1861
+ disabled: color$c.text.disabled,
1862
+ interactive: color$c.text.accent,
1863
+ error: color$c.text.danger,
1864
+ success: color$c.text.success,
1865
+ warning: color$c.text.warning
1866
+ };
1867
+ return colorMap[colorVariant] || colorMap["default"];
1868
+ };
1869
+ var getDefaultElement = function getDefaultElement(variant) {
1870
+ var elementMap = {
1871
+ display: 'h1',
1872
+ h1: 'h1',
1873
+ h2: 'h2',
1874
+ h3: 'h3',
1875
+ h4: 'h4',
1876
+ h5: 'h5',
1877
+ h6: 'h6',
1878
+ subtitle: 'p',
1879
+ body: 'p',
1880
+ small: 'span',
1881
+ overline: 'span',
1882
+ caption: 'span',
1883
+ button1: 'span',
1884
+ button2: 'span',
1885
+ button3: 'span',
1886
+ label: 'span'
1887
+ };
1888
+ return elementMap[variant] || 'span';
1889
+ };
1890
+ var StyledTypography = /*#__PURE__*/styled__default.default.span.withConfig({
1891
+ shouldForwardProp: function shouldForwardProp(prop) {
1892
+ return !prop.startsWith('$');
1893
+ },
1894
+ displayName: "Typography__StyledTypography",
1895
+ componentId: "sc-17mqo4k-0"
1896
+ })(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n ", "\n color: ", ";\n margin: 0;\n"], ["\n ", "\n color: ", ";\n margin: 0;\n"
1897
+ /**
1898
+ * Typography is an atomic component for rendering text with semantic meaning and consistent styling.
1899
+ *
1900
+ * Features:
1901
+ * - Semantic variants (h1-h6, body, subtitle, etc.)
1902
+ * - Color variants for different contexts
1903
+ * - Automatic semantic HTML element selection
1904
+ * - Manual element override support
1905
+ * - Direct semantic token usage (no component tokens needed)
1906
+ * - Full accessibility support
1907
+ *
1908
+ * @example
1909
+ * ```tsx
1910
+ * <Typography variant="h1">Main Heading</Typography>
1911
+ * <Typography variant="body" color="subdued">Body text</Typography>
1912
+ * <Typography variant="caption" as="figcaption">Image caption</Typography>
1913
+ * ```
1914
+ */])), function (_a) {
1915
+ var $variant = _a.$variant;
1916
+ return getTypographyStyles($variant);
1917
+ }, function (_a) {
1918
+ var $color = _a.$color;
1919
+ return getTextColor($color);
1920
+ });
1921
+ /**
1922
+ * Typography is an atomic component for rendering text with semantic meaning and consistent styling.
1923
+ *
1924
+ * Features:
1925
+ * - Semantic variants (h1-h6, body, subtitle, etc.)
1926
+ * - Color variants for different contexts
1927
+ * - Automatic semantic HTML element selection
1928
+ * - Manual element override support
1929
+ * - Direct semantic token usage (no component tokens needed)
1930
+ * - Full accessibility support
1931
+ *
1932
+ * @example
1933
+ * ```tsx
1934
+ * <Typography variant="h1">Main Heading</Typography>
1935
+ * <Typography variant="body" color="subdued">Body text</Typography>
1936
+ * <Typography variant="caption" as="figcaption">Image caption</Typography>
1937
+ * ```
1938
+ */
1939
+ var Typography = function Typography(_a) {
1940
+ var _b = _a.variant,
1941
+ variant = _b === void 0 ? 'body' : _b,
1942
+ children = _a.children,
1943
+ _c = _a.color,
1944
+ color = _c === void 0 ? 'default' : _c,
1945
+ as = _a.as,
1946
+ dataTestId = _a["data-testid"];
1947
+ // $variant and $color are only used for styled-components prop filtering
1948
+ var defaultElement = getDefaultElement(variant);
1949
+ var elementType = as || defaultElement;
1950
+ return jsxRuntime.jsx(StyledTypography, {
1951
+ as: elementType,
1952
+ "$variant": variant,
1953
+ "$color": color,
1954
+ "data-testid": dataTestId,
1955
+ children: children
1956
+ });
1957
+ };
1958
+ var templateObject_1$I;
1923
1959
 
1924
1960
  var StyledWrapper = /*#__PURE__*/styled__default.default.span.withConfig({
1925
1961
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -1927,7 +1963,7 @@ var StyledWrapper = /*#__PURE__*/styled__default.default.span.withConfig({
1927
1963
  },
1928
1964
  displayName: "MoneyDisplay__StyledWrapper",
1929
1965
  componentId: "sc-1mddej3-0"
1930
- })(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n text-align: ", ";\n font-weight: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n text-align: ", ";\n font-weight: ", ";\n"
1966
+ })(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n text-align: ", ";\n font-weight: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n text-align: ", ";\n font-weight: ", ";\n"
1931
1967
  // Map size to Typography variant
1932
1968
  ])), function (_a) {
1933
1969
  var $align = _a.$align;
@@ -1989,27 +2025,27 @@ var MoneyDisplay = function MoneyDisplay(_a) {
1989
2025
  })
1990
2026
  });
1991
2027
  };
1992
- var templateObject_1$G;
2028
+ var templateObject_1$H;
1993
2029
 
1994
2030
  // Destructure tokens
1995
- var semantic$l = tokens.semantic;
1996
- var _a$6 = __assign(__assign({}, semantic$l), {
2031
+ var semantic$m = tokens.semantic;
2032
+ var _a$6 = __assign(__assign({}, semantic$m), {
1997
2033
  component: tokens.component
1998
2034
  }),
1999
2035
  color$b = _a$6.color,
2000
- motion$a = _a$6.motion,
2001
- radius$7 = _a$6.radius,
2002
- component$3 = _a$6.component;
2036
+ motion$b = _a$6.motion,
2037
+ radius$4 = _a$6.radius,
2038
+ component$4 = _a$6.component;
2003
2039
  var ProgressBarContainer = /*#__PURE__*/styled__default.default.div.withConfig({
2004
2040
  shouldForwardProp: function shouldForwardProp(prop) {
2005
2041
  return !prop.startsWith('$');
2006
2042
  },
2007
2043
  displayName: "ProgressBar__ProgressBarContainer",
2008
2044
  componentId: "sc-1nco33q-0"
2009
- })(templateObject_3$v || (templateObject_3$v = __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$7.xs, forcedColorsEdge, function (props) {
2010
- return props.$variant === 'horizontal' && styled.css(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n "], ["\n width: 100%;\n height: ", ";\n "])), props.$height ? component$3.progressBar.sizes[props.$height].height : component$3.progressBar.sizes.md.height);
2045
+ })(templateObject_3$v || (templateObject_3$v = __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$4.xs, forcedColorsEdge, function (props) {
2046
+ return props.$variant === 'horizontal' && styled.css(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n "], ["\n width: 100%;\n height: ", ";\n "])), props.$height ? component$4.progressBar.sizes[props.$height].height : component$4.progressBar.sizes.md.height);
2011
2047
  }, function (props) {
2012
- return props.$variant === 'vertical' && styled.css(templateObject_2$x || (templateObject_2$x = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n "], ["\n width: ", ";\n height: 100%;\n "])), props.$width ? component$3.progressBar.sizes[props.$width].height : component$3.progressBar.sizes.md.height);
2048
+ return props.$variant === 'vertical' && styled.css(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n "], ["\n width: ", ";\n height: 100%;\n "])), props.$width ? component$4.progressBar.sizes[props.$width].height : component$4.progressBar.sizes.md.height);
2013
2049
  });
2014
2050
  var ProgressBarFill = /*#__PURE__*/styled__default.default.div.withConfig({
2015
2051
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -2017,7 +2053,7 @@ var ProgressBarFill = /*#__PURE__*/styled__default.default.div.withConfig({
2017
2053
  },
2018
2054
  displayName: "ProgressBar__ProgressBarFill",
2019
2055
  componentId: "sc-1nco33q-1"
2020
- })(templateObject_7$d || (templateObject_7$d = __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$a.duration.moderate, motion$a.easing.standard, motion$a.duration.moderate, motion$a.easing.standard, motion$a.duration.moderate, motion$a.easing.standard, reducedMotion, forcedColors, function (props) {
2056
+ })(templateObject_7$e || (templateObject_7$e = __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$b.duration.moderate, motion$b.easing.standard, motion$b.duration.moderate, motion$b.easing.standard, motion$b.duration.moderate, motion$b.easing.standard, reducedMotion, forcedColors, function (props) {
2021
2057
  var backgroundColor;
2022
2058
  switch (props.$color) {
2023
2059
  case 'success':
@@ -2070,19 +2106,19 @@ var ProgressBar = function ProgressBar(_a) {
2070
2106
  })
2071
2107
  });
2072
2108
  };
2073
- var templateObject_1$F, templateObject_2$x, templateObject_3$v, templateObject_4$q, templateObject_5$l, templateObject_6$g, templateObject_7$d;
2109
+ var templateObject_1$G, templateObject_2$y, templateObject_3$v, templateObject_4$q, templateObject_5$l, templateObject_6$g, templateObject_7$e;
2074
2110
 
2075
2111
  // Destructure tokens for cleaner access
2076
2112
  var separatorTokens = tokens.component.separator;
2077
2113
  // Margins come from the semantic separator spacing: no component spacing tokens (decision 0022)
2078
- var space$f = tokens.semantic.space;
2114
+ var space$g = tokens.semantic.space;
2079
2115
  var StyledDivider = /*#__PURE__*/styled__default.default.div.withConfig({
2080
2116
  shouldForwardProp: function shouldForwardProp(prop) {
2081
2117
  return !prop.startsWith('$');
2082
2118
  },
2083
2119
  displayName: "Divider__StyledDivider",
2084
2120
  componentId: "sc-1l0c8ja-0"
2085
- })(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n border: none;\n \n /* Apply orientation */\n ", "\n \n /* Apply variant styles */\n ", "\n \n /* Apply size styles (spacing) */\n ", "\n"], ["\n border: none;\n \n /* Apply orientation */\n ", "\n \n /* Apply variant styles */\n ", "\n \n /* Apply size styles (spacing) */\n ", "\n"
2121
+ })(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n border: none;\n \n /* Apply orientation */\n ", "\n \n /* Apply variant styles */\n ", "\n \n /* Apply size styles (spacing) */\n ", "\n"], ["\n border: none;\n \n /* Apply orientation */\n ", "\n \n /* Apply variant styles */\n ", "\n \n /* Apply size styles (spacing) */\n ", "\n"
2086
2122
  /**
2087
2123
  * Divider is an atomic component that provides visual separation between content sections.
2088
2124
  *
@@ -2131,33 +2167,33 @@ var StyledDivider = /*#__PURE__*/styled__default.default.div.withConfig({
2131
2167
  $orientation = _d === void 0 ? 'horizontal' : _d;
2132
2168
  if ($variant === 'minimal' && $orientation === 'horizontal') {
2133
2169
  // Minimal variant always uses its predefined spacing for horizontal
2134
- return "margin: ".concat(space$f[600], " 0;");
2170
+ return "margin: ".concat(space$g[600], " 0;");
2135
2171
  }
2136
2172
  if ($orientation === 'vertical') {
2137
2173
  // Vertical orientation uses horizontal margins (left/right)
2138
2174
  switch ($size) {
2139
2175
  case 'small':
2140
- return "margin: 0 ".concat(space$f[400], ";");
2176
+ return "margin: 0 ".concat(space$g[400], ";");
2141
2177
  case 'medium':
2142
- return "margin: 0 ".concat(space$f[600], ";");
2178
+ return "margin: 0 ".concat(space$g[600], ";");
2143
2179
  case 'xlarge':
2144
- return "margin: 0 ".concat(space$f[1200], ";");
2180
+ return "margin: 0 ".concat(space$g[1200], ";");
2145
2181
  case 'large':
2146
2182
  default:
2147
- return "margin: 0 ".concat(space$f[800], ";");
2183
+ return "margin: 0 ".concat(space$g[800], ";");
2148
2184
  }
2149
2185
  }
2150
2186
  // Horizontal orientation uses vertical margins (top/bottom)
2151
2187
  switch ($size) {
2152
2188
  case 'small':
2153
- return "margin: ".concat(space$f[400], " 0;");
2189
+ return "margin: ".concat(space$g[400], " 0;");
2154
2190
  case 'medium':
2155
- return "margin: ".concat(space$f[600], " 0;");
2191
+ return "margin: ".concat(space$g[600], " 0;");
2156
2192
  case 'xlarge':
2157
- return "margin: ".concat(space$f[1200], " 0;");
2193
+ return "margin: ".concat(space$g[1200], " 0;");
2158
2194
  case 'large':
2159
2195
  default:
2160
- return "margin: ".concat(space$f[800], " 0;");
2196
+ return "margin: ".concat(space$g[800], " 0;");
2161
2197
  }
2162
2198
  });
2163
2199
  /**
@@ -2195,7 +2231,7 @@ var Divider = function Divider(_a) {
2195
2231
  "aria-orientation": orientation
2196
2232
  });
2197
2233
  };
2198
- var templateObject_1$E;
2234
+ var templateObject_1$F;
2199
2235
 
2200
2236
  var StyledStack = /*#__PURE__*/styled__default.default.div.withConfig({
2201
2237
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -2203,7 +2239,7 @@ var StyledStack = /*#__PURE__*/styled__default.default.div.withConfig({
2203
2239
  },
2204
2240
  displayName: "Stack__StyledStack",
2205
2241
  componentId: "sc-1ehkxgy-0"
2206
- })(templateObject_1$D || (templateObject_1$D = __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"
2242
+ })(templateObject_1$E || (templateObject_1$E = __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"
2207
2243
  // Each gap name maps to the space step that replaced its old spacing.layout token (decision 0031),
2208
2244
  // so every gap keeps its value
2209
2245
  ])));
@@ -2257,10 +2293,10 @@ var Stack = function Stack(_a) {
2257
2293
  children: children
2258
2294
  });
2259
2295
  };
2260
- var templateObject_1$D;
2296
+ var templateObject_1$E;
2261
2297
 
2262
2298
  // Shape indicators for the six coloured statuses (decision 0045): filled silhouettes on the
2263
- // 24px grid, each the same outline as its status icon. Internal: they aren't public icons, so a
2299
+ // 24px grid. Each status icon draws its outline along the same path as a 2px line (decision 0058). Internal: they aren't public icons, so a
2264
2300
  // bare shape can't be shown without its label. The shape indicator (#264) and the small
2265
2301
  // StatusLabel and InlineAlert sizes render them at 12px or more, with a darker edge.
2266
2302
  var statusShapes = {
@@ -2278,7 +2314,7 @@ var statusShapes = {
2278
2314
  var Mark = /*#__PURE__*/styled__default.default.svg.withConfig({
2279
2315
  displayName: "StatusShape__Mark",
2280
2316
  componentId: "sc-1yzi9jt-0"
2281
- })(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n flex: none;\n width: ", ";\n height: ", ";\n fill: currentColor;\n"], ["\n flex: none;\n width: ", ";\n height: ", ";\n fill: currentColor;\n"])), tokens.semantic.size.icon.xs, tokens.semantic.size.icon.xs);
2317
+ })(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n flex: none;\n width: ", ";\n height: ", ";\n fill: currentColor;\n"], ["\n flex: none;\n width: ", ";\n height: ", ";\n fill: currentColor;\n"])), tokens.semantic.size.icon.xs, tokens.semantic.size.icon.xs);
2282
2318
  var StatusShape = function StatusShape(_a) {
2283
2319
  var shape = _a.shape;
2284
2320
  return jsxRuntime.jsx(Mark, {
@@ -2291,20 +2327,20 @@ var StatusShape = function StatusShape(_a) {
2291
2327
  })
2292
2328
  });
2293
2329
  };
2294
- var templateObject_1$C;
2330
+ var templateObject_1$D;
2295
2331
 
2296
2332
  // Destructure tokens for cleaner access
2297
2333
  var statusColors = tokens.component.status;
2298
2334
  var _a$5 = tokens.semantic,
2299
- space$e = _a$5.space,
2300
- radius$6 = _a$5.radius;
2335
+ space$f = _a$5.space,
2336
+ radius$3 = _a$5.radius;
2301
2337
  var _b$1 = tokens.semantic.motion,
2302
2338
  transition = _b$1.transition,
2303
2339
  duration$3 = _b$1.duration,
2304
2340
  easing$3 = _b$1.easing;
2305
2341
  var labelHeight = tokens.semantic.size.label;
2306
2342
  var label$1 = tokens.component.badge.label;
2307
- var scaleIn$1 = styled.keyframes(templateObject_1$B || (templateObject_1$B = __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"])));
2343
+ var scaleIn$1 = styled.keyframes(templateObject_1$C || (templateObject_1$C = __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"])));
2308
2344
  var getStatusConfig = function getStatusConfig(status) {
2309
2345
  // Each status's icon and, for the coloured statuses, its shape indicator (decision 0045). The
2310
2346
  // neutral statuses have no shape: at the small size they're plain text.
@@ -2355,16 +2391,16 @@ var getStatusConfig = function getStatusConfig(status) {
2355
2391
  var sizeConfig$2 = {
2356
2392
  small: {
2357
2393
  height: labelHeight.small,
2358
- padding: "".concat(space$e[100], " ").concat(space$e[200]),
2394
+ padding: "".concat(space$f[100], " ").concat(space$f[200]),
2359
2395
  font: label$1.typography.small,
2360
- gap: space$e[100],
2396
+ gap: space$f[100],
2361
2397
  iconSize: 'xs'
2362
2398
  },
2363
2399
  medium: {
2364
2400
  height: labelHeight.medium,
2365
- padding: "".concat(space$e[100], " ").concat(space$e[200]),
2401
+ padding: "".concat(space$f[100], " ").concat(space$f[200]),
2366
2402
  font: label$1.typography.medium,
2367
- gap: space$e[100],
2403
+ gap: space$f[100],
2368
2404
  iconSize: 'sm'
2369
2405
  }
2370
2406
  };
@@ -2374,7 +2410,7 @@ var StyledStatusLabel = /*#__PURE__*/styled__default.default.span.withConfig({
2374
2410
  },
2375
2411
  displayName: "StatusLabelBase__StyledStatusLabel",
2376
2412
  componentId: "sc-1ye9xz5-0"
2377
- })(templateObject_2$w || (templateObject_2$w = __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$6.full, scaleIn$1, duration$3.moderate, easing$3.decelerate, transition.feedback, reducedMotion, forcedColorsEdge, function (_a) {
2413
+ })(templateObject_2$x || (templateObject_2$x = __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$3.full, scaleIn$1, duration$3.moderate, easing$3.decelerate, transition.feedback, reducedMotion, forcedColorsEdge, function (_a) {
2378
2414
  var $size = _a.$size;
2379
2415
  var size = sizeConfig$2[$size];
2380
2416
  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 ");
@@ -2444,7 +2480,7 @@ var StatusLabelBase = function StatusLabelBase(_a) {
2444
2480
  })]
2445
2481
  });
2446
2482
  };
2447
- var templateObject_1$B, templateObject_2$w, templateObject_3$u, templateObject_4$p;
2483
+ var templateObject_1$C, templateObject_2$x, templateObject_3$u, templateObject_4$p;
2448
2484
 
2449
2485
  /**
2450
2486
  * StatusLabel conveys the status of something, such as a transaction or task (decision 0018).
@@ -2467,30 +2503,30 @@ var StatusLabel = function StatusLabel(props) {
2467
2503
  };
2468
2504
  StatusLabel.displayName = 'StatusLabel';
2469
2505
 
2470
- var semantic$k = tokens.semantic;
2471
- var color$a = semantic$k.color,
2472
- size$6 = semantic$k.size;
2506
+ var semantic$l = tokens.semantic;
2507
+ var color$a = semantic$l.color,
2508
+ size$8 = semantic$l.size;
2473
2509
  var label = tokens.component.badge.label;
2474
- var space$d = semantic$k.space;
2475
- var radius$5 = semantic$k.radius;
2510
+ var space$e = semantic$l.space;
2511
+ var radius$2 = semantic$l.radius;
2476
2512
  var StyledTag = /*#__PURE__*/styled__default.default.span.withConfig({
2477
2513
  shouldForwardProp: function shouldForwardProp(prop) {
2478
2514
  return !prop.startsWith('$');
2479
2515
  },
2480
2516
  displayName: "Tag__StyledTag",
2481
2517
  componentId: "sc-lzfmti-0"
2482
- })(templateObject_1$A || (templateObject_1$A = __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 user-select: none;\n white-space: nowrap;\n\n /* Size (decision 0018): small has no vertical padding so the text line fits inside 20px */\n height: ", ";\n padding: ", ";\n font: ", ";\n font-weight: ", ";\n \n /* Variant styles */\n background-color: ", ";\n \n color: ", ";\n \n border: ", ";\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 user-select: none;\n white-space: nowrap;\n\n /* Size (decision 0018): small has no vertical padding so the text line fits inside 20px */\n height: ", ";\n padding: ", ";\n font: ", ";\n font-weight: ", ";\n \n /* Variant styles */\n background-color: ", ";\n \n color: ", ";\n \n border: ", ";\n"
2518
+ })(templateObject_1$B || (templateObject_1$B = __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 user-select: none;\n white-space: nowrap;\n\n /* Size (decision 0018): small has no vertical padding so the text line fits inside 20px */\n height: ", ";\n padding: ", ";\n font: ", ";\n font-weight: ", ";\n \n /* Variant styles */\n background-color: ", ";\n \n color: ", ";\n \n border: ", ";\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 user-select: none;\n white-space: nowrap;\n\n /* Size (decision 0018): small has no vertical padding so the text line fits inside 20px */\n height: ", ";\n padding: ", ";\n font: ", ";\n font-weight: ", ";\n \n /* Variant styles */\n background-color: ", ";\n \n color: ", ";\n \n border: ", ";\n"
2483
2519
  /**
2484
2520
  * Tag component for categorizing and labeling content
2485
2521
  *
2486
2522
  * A static, non-interactive label used to categorize elements or objects in the UI.
2487
2523
  * Tags help users quickly identify and understand content classification.
2488
- */])), radius$5.sm, function (_a) {
2524
+ */])), radius$2.sm, function (_a) {
2489
2525
  var $size = _a.$size;
2490
- return size$6.label[$size];
2526
+ return size$8.label[$size];
2491
2527
  }, function (_a) {
2492
2528
  var $size = _a.$size;
2493
- return $size === 'small' ? "0 ".concat(space$d[200]) : "".concat(space$d[100], " ").concat(space$d[200]);
2529
+ return $size === 'small' ? "0 ".concat(space$e[200]) : "".concat(space$e[100], " ").concat(space$e[200]);
2494
2530
  }, label.typography.small, label.fontWeight, function (_a) {
2495
2531
  var $variant = _a.$variant;
2496
2532
  switch ($variant) {
@@ -2513,9 +2549,9 @@ var StyledTag = /*#__PURE__*/styled__default.default.span.withConfig({
2513
2549
  if (!$border) return 'none';
2514
2550
  switch ($variant) {
2515
2551
  case 'emphasis':
2516
- return "".concat(semantic$k.border.width.thin, " solid ").concat(color$a.fill.emphasis);
2552
+ return "".concat(semantic$l.border.width.thin, " solid ").concat(color$a.fill.emphasis);
2517
2553
  default:
2518
- return "".concat(semantic$k.border.width.thin, " solid ").concat(color$a.border["default"]);
2554
+ return "".concat(semantic$l.border.width.thin, " solid ").concat(color$a.border["default"]);
2519
2555
  }
2520
2556
  });
2521
2557
  /**
@@ -2547,7 +2583,7 @@ var Tag = function Tag(_a) {
2547
2583
  children: children
2548
2584
  }));
2549
2585
  };
2550
- var templateObject_1$A;
2586
+ var templateObject_1$B;
2551
2587
 
2552
2588
  // How long an exiting element stays mounted: the duration of `exitAnimation` in styleUtils. A timer
2553
2589
  // needs the resolved value, not the CSS variable (decision 0041).
@@ -2683,6 +2719,8 @@ var useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' ? React.useLayou
2683
2719
  var supportsPopover = function supportsPopover() {
2684
2720
  return typeof HTMLElement !== 'undefined' && 'showPopover' in HTMLElement.prototype;
2685
2721
  };
2722
+ /** The trigger's width in px, set on the floating element when `matchAnchorWidth` is on */
2723
+ var ANCHOR_WIDTH_VAR = '--co-floating-anchor-width';
2686
2724
  var remToPx = function remToPx(value) {
2687
2725
  return parseFloat(value) * (parseFloat(getComputedStyle(document.documentElement).fontSize) || 16);
2688
2726
  };
@@ -2697,6 +2735,8 @@ function useFloatingLayer(_a) {
2697
2735
  anchorRef = _a.anchorRef,
2698
2736
  side = _a.side,
2699
2737
  align = _a.align,
2738
+ _b = _a.matchAnchorWidth,
2739
+ matchAnchorWidth = _b === void 0 ? false : _b,
2700
2740
  onDetach = _a.onDetach;
2701
2741
  useIsomorphicLayoutEffect$1(function () {
2702
2742
  var floating = floatingRef.current;
@@ -2709,6 +2749,8 @@ function useFloatingLayer(_a) {
2709
2749
  var trigger = laidOutElement(anchorRef.current);
2710
2750
  if (!trigger) return;
2711
2751
  var anchor = trigger.getBoundingClientRect();
2752
+ // Before measuring, since it can widen the floating element
2753
+ if (matchAnchorWidth) floating.style.setProperty(ANCHOR_WIDTH_VAR, "".concat(anchor.width, "px"));else floating.style.removeProperty(ANCHOR_WIDTH_VAR);
2712
2754
  var _a = floating.getBoundingClientRect(),
2713
2755
  width = _a.width,
2714
2756
  height = _a.height;
@@ -2735,10 +2777,13 @@ function useFloatingLayer(_a) {
2735
2777
  if (typeof ResizeObserver === 'undefined') return;
2736
2778
  var observer = new ResizeObserver(place);
2737
2779
  observer.observe(floating);
2780
+ // Its width follows the trigger's, so a trigger that resizes while it's open places it again
2781
+ var trigger = matchAnchorWidth ? laidOutElement(anchorRef.current) : null;
2782
+ if (trigger) observer.observe(trigger);
2738
2783
  return function () {
2739
2784
  return observer.disconnect();
2740
2785
  };
2741
- }, [isPresent, side, align, floatingRef, anchorRef]);
2786
+ }, [isPresent, side, align, matchAnchorWidth, floatingRef, anchorRef]);
2742
2787
  React.useEffect(function () {
2743
2788
  if (!isPresent) return;
2744
2789
  var onScroll = function onScroll(event) {
@@ -2769,19 +2814,19 @@ function isKeyboardFocus(target) {
2769
2814
  }
2770
2815
  }
2771
2816
 
2772
- var semantic$j = tokens.semantic;
2773
- var motion$9 = data.tokensJson.semantic.motion;
2817
+ var semantic$k = tokens.semantic;
2818
+ var motion$a = data.tokensJson.semantic.motion;
2774
2819
  // How long the pointer rests before the tooltip opens (#326)
2775
- var HINT_DELAY_MS = parseInt(motion$9.delay.hint, 10);
2820
+ var HINT_DELAY_MS = parseInt(motion$a.delay.hint, 10);
2776
2821
  // Moving to another trigger within this window opens its tooltip at once, so a rail feels immediate
2777
- var SKIP_DELAY_MS = parseInt(motion$9.duration.slow, 10);
2822
+ var SKIP_DELAY_MS = parseInt(motion$a.duration.slow, 10);
2778
2823
  // The grace period for the pointer to cross from the trigger onto the tooltip (WCAG 1.4.13)
2779
- var CLOSE_GRACE_MS = parseInt(motion$9.duration.fast, 10);
2824
+ var CLOSE_GRACE_MS = parseInt(motion$a.duration.fast, 10);
2780
2825
  // Shared by every Tooltip: only one is open at a time, and the next one opens at once while one
2781
2826
  // is open or within the skip-delay window after it closed
2782
2827
  var lastClosedAt = 0;
2783
2828
  var active = null;
2784
- var fadeIn$3 = styled.keyframes(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n from { opacity: 0; }\n"], ["\n from { opacity: 0; }\n"
2829
+ var fadeIn$3 = styled.keyframes(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n from { opacity: 0; }\n"], ["\n from { opacity: 0; }\n"
2785
2830
  // A fade, so it needs no reduced-motion fallback (0015). Entrances decelerate (0037).
2786
2831
  ])));
2787
2832
  // A fade, so it needs no reduced-motion fallback (0015). Entrances decelerate (0037).
@@ -2791,9 +2836,9 @@ var Bubble = /*#__PURE__*/styled__default.default.div.withConfig({
2791
2836
  },
2792
2837
  displayName: "Tooltip__Bubble",
2793
2838
  componentId: "sc-ajez94-0"
2794
- })(templateObject_3$t || (templateObject_3$t = __makeTemplateObject(["\n /* Reset the popover defaults: it's placed with top and left */\n position: fixed;\n inset: auto;\n top: 0;\n left: 0;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n max-width: ", ";\n padding: ", " ", ";\n border: none;\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n font: ", ";\n overflow-wrap: break-word;\n pointer-events: auto;\n animation: ", " ", " ", "\n ", ";\n\n ", "\n"], ["\n /* Reset the popover defaults: it's placed with top and left */\n position: fixed;\n inset: auto;\n top: 0;\n left: 0;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n max-width: ", ";\n padding: ", " ", ";\n border: none;\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n font: ", ";\n overflow-wrap: break-word;\n pointer-events: auto;\n animation: ", " ", " ", "\n ", ";\n\n ", "\n"])), semantic$j.size[7500], semantic$j.space.inset.xs, semantic$j.space.inset.sm, semantic$j.radius.sm, semantic$j.color.fill.inverse, semantic$j.color.text.inverse, semantic$j.typography.small, fadeIn$3, semantic$j.motion.duration.fast, semantic$j.motion.easing.decelerate, function (_a) {
2839
+ })(templateObject_3$t || (templateObject_3$t = __makeTemplateObject(["\n /* Reset the popover defaults: it's placed with top and left */\n position: fixed;\n inset: auto;\n top: 0;\n left: 0;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n max-width: ", ";\n padding: ", " ", ";\n border: none;\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n font: ", ";\n overflow-wrap: break-word;\n pointer-events: auto;\n animation: ", " ", " ", "\n ", ";\n\n ", "\n"], ["\n /* Reset the popover defaults: it's placed with top and left */\n position: fixed;\n inset: auto;\n top: 0;\n left: 0;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n max-width: ", ";\n padding: ", " ", ";\n border: none;\n border-radius: ", ";\n background-color: ", ";\n color: ", ";\n font: ", ";\n overflow-wrap: break-word;\n pointer-events: auto;\n animation: ", " ", " ", "\n ", ";\n\n ", "\n"])), semantic$k.size[7500], semantic$k.space.inset.xs, semantic$k.space.inset.sm, semantic$k.radius.sm, semantic$k.color.fill.inverse, semantic$k.color.text.inverse, semantic$k.typography.small, fadeIn$3, semantic$k.motion.duration.fast, semantic$k.motion.easing.decelerate, function (_a) {
2795
2840
  var $exiting = _a.$exiting;
2796
- return $exiting ? exitAnimation : styled.css(templateObject_2$v || (templateObject_2$v = __makeTemplateObject([""], [""])));
2841
+ return $exiting ? exitAnimation : styled.css(templateObject_2$w || (templateObject_2$w = __makeTemplateObject([""], [""])));
2797
2842
  }, forcedColorsEdge);
2798
2843
  var Description$1 = /*#__PURE__*/styled__default.default.span.withConfig({
2799
2844
  displayName: "Tooltip__Description",
@@ -2828,6 +2873,8 @@ var Tooltip = function Tooltip(_a) {
2828
2873
  side = _c === void 0 ? 'top' : _c,
2829
2874
  _d = _a.align,
2830
2875
  align = _d === void 0 ? 'center' : _d,
2876
+ _e = _a.disabled,
2877
+ disabled = _e === void 0 ? false : _e,
2831
2878
  children = _a.children,
2832
2879
  dataTestId = _a["data-testid"];
2833
2880
  var descriptionId = React.useId();
@@ -2840,12 +2887,20 @@ var Tooltip = function Tooltip(_a) {
2840
2887
  })[0];
2841
2888
  // Set by a press, so the focus that follows a click or tap doesn't reopen the tooltip
2842
2889
  var pressed = React.useRef(false);
2843
- var _e = React.useState(false),
2844
- isOpen = _e[0],
2845
- setIsOpen = _e[1];
2846
- var _f = usePresence(isOpen),
2847
- isPresent = _f.isPresent,
2848
- isExiting = _f.isExiting;
2890
+ var _f = React.useState(false),
2891
+ isOpen = _f[0],
2892
+ setIsOpen = _f[1];
2893
+ // Turned off while showing (its label became visible): close it on the same render
2894
+ var _g = React.useState(disabled),
2895
+ wasDisabled = _g[0],
2896
+ setWasDisabled = _g[1];
2897
+ if (wasDisabled !== disabled) {
2898
+ setWasDisabled(disabled);
2899
+ if (disabled) setIsOpen(false);
2900
+ }
2901
+ var _h = usePresence(isOpen),
2902
+ isPresent = _h.isPresent,
2903
+ isExiting = _h.isExiting;
2849
2904
  var clearTimers = function clearTimers() {
2850
2905
  clearTimeout(openTimer.current);
2851
2906
  clearTimeout(closeTimer.current);
@@ -2869,7 +2924,7 @@ var Tooltip = function Tooltip(_a) {
2869
2924
  }, [owner, close]);
2870
2925
  var scheduleOpen = function scheduleOpen() {
2871
2926
  clearTimeout(closeTimer.current);
2872
- if (isOpen) return;
2927
+ if (isOpen || disabled) return;
2873
2928
  // Moving straight from one trigger to the next (another tooltip still open) or just after one
2874
2929
  // closed skips the delay, so a rail feels immediate
2875
2930
  if (active || Date.now() - lastClosedAt < SKIP_DELAY_MS) return open();
@@ -2926,7 +2981,7 @@ var Tooltip = function Tooltip(_a) {
2926
2981
  pressed.current = false;
2927
2982
  return;
2928
2983
  }
2929
- if (isKeyboardFocus(event.target)) open();
2984
+ if (!disabled && isKeyboardFocus(event.target)) open();
2930
2985
  },
2931
2986
  onBlur: function onBlur() {
2932
2987
  // A press on an already focused trigger has no focus to skip; don't carry it over
@@ -2956,12 +3011,12 @@ var Tooltip = function Tooltip(_a) {
2956
3011
  });
2957
3012
  };
2958
3013
  Tooltip.displayName = 'Tooltip';
2959
- var templateObject_1$z, templateObject_2$v, templateObject_3$t, templateObject_4$o, templateObject_5$k;
3014
+ var templateObject_1$A, templateObject_2$w, templateObject_3$t, templateObject_4$o, templateObject_5$k;
2960
3015
 
2961
- var semantic$i = tokens.semantic;
2962
- var color$9 = semantic$i.color,
2963
- typography$5 = semantic$i.typography,
2964
- size$5 = semantic$i.size;
3016
+ var semantic$j = tokens.semantic;
3017
+ var color$9 = semantic$j.color,
3018
+ typography$5 = semantic$j.typography,
3019
+ size$7 = semantic$j.size;
2965
3020
  var labels = {
2966
3021
  suggested: 'Suggested',
2967
3022
  removal: 'Will be removed'
@@ -2969,12 +3024,12 @@ var labels = {
2969
3024
  var sizeConfig$1 = {
2970
3025
  small: {
2971
3026
  font: typography$5.caption,
2972
- gap: semantic$i.space[100],
3027
+ gap: semantic$j.space[100],
2973
3028
  icon: 'xs'
2974
3029
  },
2975
3030
  medium: {
2976
3031
  font: typography$5.small,
2977
- gap: semantic$i.space[200],
3032
+ gap: semantic$j.space[200],
2978
3033
  icon: 'sm'
2979
3034
  }
2980
3035
  };
@@ -2984,9 +3039,9 @@ var StyledAILabel = /*#__PURE__*/styled__default.default.span.withConfig({
2984
3039
  },
2985
3040
  displayName: "AILabel__StyledAILabel",
2986
3041
  componentId: "sc-qknkn-0"
2987
- })(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n min-height: ", ";\n gap: ", ";\n font: ", ";\n color: ", ";\n white-space: nowrap;\n"], ["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n min-height: ", ";\n gap: ", ";\n font: ", ";\n color: ", ";\n white-space: nowrap;\n"])), function (_a) {
3042
+ })(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n min-height: ", ";\n gap: ", ";\n font: ", ";\n color: ", ";\n white-space: nowrap;\n"], ["\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n min-height: ", ";\n gap: ", ";\n font: ", ";\n color: ", ";\n white-space: nowrap;\n"])), function (_a) {
2988
3043
  var $size = _a.$size;
2989
- return size$5.label[$size];
3044
+ return size$7.label[$size];
2990
3045
  }, function (_a) {
2991
3046
  var $size = _a.$size;
2992
3047
  return sizeConfig$1[$size].gap;
@@ -2997,7 +3052,7 @@ var StyledAILabel = /*#__PURE__*/styled__default.default.span.withConfig({
2997
3052
  var StyledIcon = /*#__PURE__*/styled__default.default.span.withConfig({
2998
3053
  displayName: "AILabel__StyledIcon",
2999
3054
  componentId: "sc-qknkn-1"
3000
- })(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n display: inline-flex;\n color: ", ";\n"], ["\n display: inline-flex;\n color: ", ";\n"
3055
+ })(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n display: inline-flex;\n color: ", ";\n"], ["\n display: inline-flex;\n color: ", ";\n"
3001
3056
  /**
3002
3057
  * AILabel marks content an agent has proposed but the user hasn't accepted (decision 0046): the AI
3003
3058
  * icon and a fixed label in the AI colour, never colour alone (decision 0043). It isn't a status
@@ -3040,26 +3095,26 @@ var AILabel = function AILabel(_a) {
3040
3095
  });
3041
3096
  };
3042
3097
  AILabel.displayName = 'AILabel';
3043
- var templateObject_1$y, templateObject_2$u;
3098
+ var templateObject_1$z, templateObject_2$v;
3044
3099
 
3045
3100
  // Destructure tokens for cleaner access
3046
- var semantic$h = tokens.semantic;
3047
- var space$c = semantic$h.space;
3101
+ var semantic$i = tokens.semantic;
3102
+ var space$d = semantic$i.space;
3048
3103
  var StyledBalanceSection = /*#__PURE__*/styled__default.default.div.withConfig({
3049
3104
  displayName: "AccountCard__StyledBalanceSection",
3050
3105
  componentId: "sc-1erp7zn-0"
3051
- })(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), space$c[400]);
3106
+ })(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), space$d[400]);
3052
3107
  var StyledTrendSection = /*#__PURE__*/styled__default.default.div.withConfig({
3053
3108
  displayName: "AccountCard__StyledTrendSection",
3054
3109
  componentId: "sc-1erp7zn-1"
3055
- })(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n font: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n font: ", ";\n"])), space$c[100], function (_a) {
3110
+ })(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n font: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n color: ", ";\n font: ", ";\n"])), space$d[100], function (_a) {
3056
3111
  var $color = _a.$color;
3057
3112
  return $color;
3058
- }, semantic$h.typography.small);
3113
+ }, semantic$i.typography.small);
3059
3114
  /*#__PURE__*/styled__default.default.div.withConfig({
3060
3115
  displayName: "AccountCard__StyledActions",
3061
3116
  componentId: "sc-1erp7zn-2"
3062
- })(templateObject_3$s || (templateObject_3$s = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"], ["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"])), space$c[200]);
3117
+ })(templateObject_3$s || (templateObject_3$s = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"], ["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"])), space$d[200]);
3063
3118
  var StyledStackWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
3064
3119
  displayName: "AccountCard__StyledStackWrapper",
3065
3120
  componentId: "sc-1erp7zn-3"
@@ -3069,7 +3124,7 @@ var StyledHeaderWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
3069
3124
  componentId: "sc-1erp7zn-4"
3070
3125
  })(templateObject_5$j || (templateObject_5$j = __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"
3071
3126
  // Map trend direction to icon and color
3072
- ])), tokens.component.accountCard.header.minHeight, space$c[0], space$c[100]);
3127
+ ])), tokens.component.accountCard.header.minHeight, space$d[0], space$d[100]);
3073
3128
  // Map trend direction to icon and color
3074
3129
  var trendToIcon = {
3075
3130
  up: 'arrowUp',
@@ -3079,9 +3134,9 @@ var trendToIcon = {
3079
3134
  // A trend is a differential indicator (decision 0045): the arrow and the signed value carry the
3080
3135
  // direction, and the role colour repeats it. Category colours carry no meaning, so they aren't used.
3081
3136
  var trendToColor = {
3082
- up: semantic$h.color.text.success,
3083
- down: semantic$h.color.text.danger,
3084
- neutral: semantic$h.color.text.muted
3137
+ up: semantic$i.color.text.success,
3138
+ down: semantic$i.color.text.danger,
3139
+ neutral: semantic$i.color.text.muted
3085
3140
  };
3086
3141
  /**
3087
3142
  * AccountCard component
@@ -3125,7 +3180,7 @@ var AccountCard = function AccountCard(_a) {
3125
3180
  bg: "surface.raised",
3126
3181
  border: "default",
3127
3182
  borderRadius: "xl",
3128
- transition: "box-shadow ".concat(semantic$h.motion.duration.moderate, " ").concat(semantic$h.motion.easing.decelerate),
3183
+ transition: "box-shadow ".concat(semantic$i.motion.duration.moderate, " ").concat(semantic$i.motion.easing.decelerate),
3129
3184
  cursor: isClickable ? 'pointer' : 'default',
3130
3185
  hoverShadow: isClickable ? 'floating' : undefined,
3131
3186
  onClick: handleClick,
@@ -3223,7 +3278,7 @@ var AccountCard = function AccountCard(_a) {
3223
3278
  })
3224
3279
  });
3225
3280
  };
3226
- var templateObject_1$x, templateObject_2$t, templateObject_3$s, templateObject_4$n, templateObject_5$j;
3281
+ var templateObject_1$y, templateObject_2$u, templateObject_3$s, templateObject_4$n, templateObject_5$j;
3227
3282
 
3228
3283
  /**
3229
3284
  * The spacing a List gives its items (#77). A ListItem without its own `spacing` uses it; outside
@@ -3231,8 +3286,8 @@ var templateObject_1$x, templateObject_2$t, templateObject_3$s, templateObject_4
3231
3286
  */
3232
3287
  var ListSpacingContext = /*#__PURE__*/React.createContext('comfortable');
3233
3288
 
3234
- var semantic$g = tokens.semantic;
3235
- var _a$4 = semantic$g.motion,
3289
+ var semantic$h = tokens.semantic;
3290
+ var _a$4 = semantic$h.motion,
3236
3291
  duration$2 = _a$4.duration,
3237
3292
  easing$2 = _a$4.easing;
3238
3293
  var StyledListItem = /*#__PURE__*/styled__default.default.li.withConfig({
@@ -3241,16 +3296,16 @@ var StyledListItem = /*#__PURE__*/styled__default.default.li.withConfig({
3241
3296
  },
3242
3297
  displayName: "ListItem__StyledListItem",
3243
3298
  componentId: "sc-1wzzt21-0"
3244
- })(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n min-height: ", ";\n position: relative;\n \n /* Disable user selection for interactive items */\n ", "\n \n /* Disabled state */\n ", "\n \n /* Destructive state - apply error color to text */\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n min-height: ", ";\n position: relative;\n \n /* Disable user selection for interactive items */\n ", "\n \n /* Disabled state */\n ", "\n \n /* Destructive state - apply error color to text */\n ", "\n"])), semantic$g.size.row.md, function (_a) {
3299
+ })(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n min-height: ", ";\n position: relative;\n \n /* Disable user selection for interactive items */\n ", "\n \n /* Disabled state */\n ", "\n \n /* Destructive state - apply error color to text */\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n min-height: ", ";\n position: relative;\n \n /* Disable user selection for interactive items */\n ", "\n \n /* Disabled state */\n ", "\n \n /* Destructive state - apply error color to text */\n ", "\n"])), semantic$h.size.row.md, function (_a) {
3245
3300
  var $interactive = _a.$interactive;
3246
3301
  return $interactive && 'user-select: none;';
3247
3302
  }, function (_a) {
3248
3303
  var $disabled = _a.$disabled;
3249
- return $disabled && "\n opacity: ".concat(semantic$g.opacity.disabled, ";\n cursor: not-allowed;\n pointer-events: none;\n ");
3304
+ return $disabled && "\n opacity: ".concat(semantic$h.opacity.disabled, ";\n cursor: not-allowed;\n pointer-events: none;\n ");
3250
3305
  }, function (_a) {
3251
3306
  var $destructive = _a.$destructive,
3252
3307
  $disabled = _a.$disabled;
3253
- return $destructive && !$disabled && "\n color: ".concat(semantic$g.color.text.danger, ";\n ");
3308
+ return $destructive && !$disabled && "\n color: ".concat(semantic$h.color.text.danger, ";\n ");
3254
3309
  });
3255
3310
  var StyledItemContent = /*#__PURE__*/styled__default.default.div.withConfig({
3256
3311
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -3258,10 +3313,10 @@ var StyledItemContent = /*#__PURE__*/styled__default.default.div.withConfig({
3258
3313
  },
3259
3314
  displayName: "ListItem__StyledItemContent",
3260
3315
  componentId: "sc-1wzzt21-1"
3261
- })(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n /* Insets, so the row's padding follows density with its height (decision 0051) */\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 /* Insets, so the row's padding follows density with its height (decision 0051) */\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$g.space[300], function (_a) {
3316
+ })(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n /* Insets, so the row's padding follows density with its height (decision 0051) */\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 /* Insets, so the row's padding follows density with its height (decision 0051) */\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$h.space[300], function (_a) {
3262
3317
  var $spacing = _a.$spacing;
3263
- return $spacing === 'compact' ? "".concat(semantic$g.space.inset.sm, " ").concat(semantic$g.space.inset.md) : "".concat(semantic$g.space.inset.md, " ").concat(semantic$g.space.inset.lg);
3264
- }, semantic$g.radius.sm, duration$2.fast, easing$2.decelerate, duration$2.fast, easing$2.decelerate, function (_a) {
3318
+ return $spacing === 'compact' ? "".concat(semantic$h.space.inset.sm, " ").concat(semantic$h.space.inset.md) : "".concat(semantic$h.space.inset.md, " ").concat(semantic$h.space.inset.lg);
3319
+ }, rowRadius, duration$2.fast, easing$2.decelerate, duration$2.fast, easing$2.decelerate, function (_a) {
3265
3320
  var $interactive = _a.$interactive,
3266
3321
  $disabled = _a.$disabled;
3267
3322
  if ($disabled) return 'not-allowed';
@@ -3276,26 +3331,26 @@ var StyledItemContent = /*#__PURE__*/styled__default.default.div.withConfig({
3276
3331
  disabled: $disabled || !$interactive,
3277
3332
  textSelector: "".concat(StyledTextContent, " > :first-child")
3278
3333
  });
3279
- }, semantic$g.border.focus, semantic$g.border.focusOffset);
3334
+ }, semantic$h.border.focus, semantic$h.border.focusOffset);
3280
3335
  var StyledIconContainer$1 = /*#__PURE__*/styled__default.default.div.withConfig({
3281
3336
  displayName: "ListItem__StyledIconContainer",
3282
3337
  componentId: "sc-1wzzt21-2"
3283
- })(templateObject_3$r || (templateObject_3$r = __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$g.size.icon.lg, semantic$g.size.icon.lg);
3338
+ })(templateObject_3$r || (templateObject_3$r = __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$h.size.icon.lg, semantic$h.size.icon.lg);
3284
3339
  var StyledTextContent = /*#__PURE__*/styled__default.default.div.withConfig({
3285
3340
  displayName: "ListItem__StyledTextContent",
3286
3341
  componentId: "sc-1wzzt21-3"
3287
- })(templateObject_4$m || (templateObject_4$m = __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$g.space[100]);
3342
+ })(templateObject_4$m || (templateObject_4$m = __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$h.space[100]);
3288
3343
  var StyledRightContent = /*#__PURE__*/styled__default.default.div.withConfig({
3289
3344
  displayName: "ListItem__StyledRightContent",
3290
3345
  componentId: "sc-1wzzt21-4"
3291
- })(templateObject_5$i || (templateObject_5$i = __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$g.space[200]);
3346
+ })(templateObject_5$i || (templateObject_5$i = __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$h.space[200]);
3292
3347
  var StyledChevronIcon = /*#__PURE__*/styled__default.default.div.withConfig({
3293
3348
  shouldForwardProp: function shouldForwardProp(prop) {
3294
3349
  return !prop.startsWith('$');
3295
3350
  },
3296
3351
  displayName: "ListItem__StyledChevronIcon",
3297
3352
  componentId: "sc-1wzzt21-5"
3298
- })(templateObject_6$f || (templateObject_6$f = __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$g.size.icon.lg, semantic$g.size.icon.lg, semantic$g.color.icon.muted, duration$2.fast, easing$2.decelerate, function (_a) {
3353
+ })(templateObject_6$f || (templateObject_6$f = __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$h.size.icon.lg, semantic$h.size.icon.lg, semantic$h.color.icon.muted, duration$2.fast, easing$2.decelerate, function (_a) {
3299
3354
  var $expanded = _a.$expanded;
3300
3355
  return $expanded ? '180deg' : '0deg';
3301
3356
  }, reducedMotion);
@@ -3305,7 +3360,7 @@ var StyledExpandedContent = /*#__PURE__*/styled__default.default.div.withConfig(
3305
3360
  },
3306
3361
  displayName: "ListItem__StyledExpandedContent",
3307
3362
  componentId: "sc-1wzzt21-6"
3308
- })(templateObject_7$c || (templateObject_7$c = __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 margin ", " ", ",\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 margin ", " ", ",\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, duration$2.moderate, easing$2.decelerate, function (_a) {
3363
+ })(templateObject_7$d || (templateObject_7$d = __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 margin ", " ", ",\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 margin ", " ", ",\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, duration$2.moderate, easing$2.decelerate, function (_a) {
3309
3364
  var $expanded = _a.$expanded;
3310
3365
  return $expanded ? '1000px' : '0';
3311
3366
  }, function (_a) {
@@ -3317,7 +3372,7 @@ var StyledExpandedContent = /*#__PURE__*/styled__default.default.div.withConfig(
3317
3372
  }, reducedMotion, duration$2.moderate, easing$2.decelerate, duration$2.moderate, easing$2.decelerate, function (_a) {
3318
3373
  var $expanded = _a.$expanded,
3319
3374
  $spacing = _a.$spacing;
3320
- return $expanded && "\n padding: ".concat($spacing === 'compact' ? "".concat(semantic$g.space[200], " ").concat(semantic$g.space[300], " ").concat(semantic$g.space[200], " ").concat(tokens.component.listItem.expandedIndent.compact) : "".concat(semantic$g.space[200], " ").concat(semantic$g.space[400], " ").concat(semantic$g.space[300], " ").concat(tokens.component.listItem.expandedIndent.comfortable), ";\n background-color: ").concat(semantic$g.surface.raised, ";\n border-radius: ").concat(semantic$g.radius.sm, ";\n /* The row's own insets, so the panel lines up with the row in every density (0051) */\n margin: 0 ").concat($spacing === 'compact' ? semantic$g.space.inset.md : semantic$g.space.inset.lg, " ").concat($spacing === 'compact' ? semantic$g.space.inset.sm : semantic$g.space.inset.md, ";\n ");
3375
+ return $expanded && "\n padding: ".concat($spacing === 'compact' ? "".concat(semantic$h.space[200], " ").concat(semantic$h.space[300], " ").concat(semantic$h.space[200], " ").concat(tokens.component.listItem.expandedIndent.compact) : "".concat(semantic$h.space[200], " ").concat(semantic$h.space[400], " ").concat(semantic$h.space[300], " ").concat(tokens.component.listItem.expandedIndent.comfortable), ";\n background-color: ").concat(semantic$h.surface.raised, ";\n border-radius: ").concat(rowRadius, ";\n /* The row's own insets, so the panel lines up with the row in every density (0051) */\n margin: 0 ").concat($spacing === 'compact' ? semantic$h.space.inset.md : semantic$h.space.inset.lg, " ").concat($spacing === 'compact' ? semantic$h.space.inset.sm : semantic$h.space.inset.md, ";\n ");
3321
3376
  });
3322
3377
  var ListItem = function ListItem(_a) {
3323
3378
  var primary = _a.primary,
@@ -3439,37 +3494,37 @@ var ListItem = function ListItem(_a) {
3439
3494
  );
3440
3495
  };
3441
3496
  ListItem.displayName = 'ListItem';
3442
- var templateObject_1$w, templateObject_2$s, templateObject_3$r, templateObject_4$m, templateObject_5$i, templateObject_6$f, templateObject_7$c;
3497
+ var templateObject_1$x, templateObject_2$t, templateObject_3$r, templateObject_4$m, templateObject_5$i, templateObject_6$f, templateObject_7$d;
3443
3498
 
3444
3499
  var _a$3 = tokens.semantic,
3445
3500
  color$8 = _a$3.color,
3446
- border$7 = _a$3.border,
3447
- space$b = _a$3.space,
3448
- motion$8 = _a$3.motion,
3501
+ border$6 = _a$3.border,
3502
+ space$c = _a$3.space,
3503
+ motion$9 = _a$3.motion,
3449
3504
  elevation$3 = _a$3.elevation;
3450
- var slideUp = styled.keyframes(templateObject_1$v || (templateObject_1$v = __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"])));
3451
- var fadeIn$2 = styled.keyframes(templateObject_2$r || (templateObject_2$r = __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"])));
3505
+ var slideUp = styled.keyframes(templateObject_1$w || (templateObject_1$w = __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"])));
3506
+ var fadeIn$2 = styled.keyframes(templateObject_2$s || (templateObject_2$s = __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"])));
3452
3507
  var StyledOverlay$2 = /*#__PURE__*/styled__default.default.div.withConfig({
3453
3508
  displayName: "ActionSheet__StyledOverlay",
3454
3509
  componentId: "sc-regbol-0"
3455
- })(templateObject_3$q || (templateObject_3$q = __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$8.duration.moderate, motion$8.easing.decelerate, function (_a) {
3510
+ })(templateObject_3$q || (templateObject_3$q = __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$9.duration.moderate, motion$9.easing.decelerate, function (_a) {
3456
3511
  var $isExiting = _a.$isExiting;
3457
3512
  return $isExiting && exitAnimation;
3458
3513
  });
3459
3514
  var StyledActionSheet = /*#__PURE__*/styled__default.default.div.withConfig({
3460
3515
  displayName: "ActionSheet__StyledActionSheet",
3461
3516
  componentId: "sc-regbol-1"
3462
- })(templateObject_4$l || (templateObject_4$l = __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$3.overlay, tokens.semantic.layer.modal, slideUp, motion$8.duration.slow, motion$8.easing.decelerate, function (_a) {
3517
+ })(templateObject_4$l || (templateObject_4$l = __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.overlay, tokens.component.overlay.borderRadius, tokens.component.overlay.borderRadius, elevation$3.overlay, tokens.semantic.layer.modal, slideUp, motion$9.duration.slow, motion$9.easing.decelerate, function (_a) {
3463
3518
  var $isExiting = _a.$isExiting;
3464
3519
  return $isExiting && exitAnimation;
3465
- }, reducedMotion, fadeIn$2, motion$8.duration.slow, motion$8.easing.decelerate, function (_a) {
3520
+ }, reducedMotion, fadeIn$2, motion$9.duration.slow, motion$9.easing.decelerate, function (_a) {
3466
3521
  var $isExiting = _a.$isExiting;
3467
3522
  return $isExiting && exitAnimation;
3468
3523
  });
3469
3524
  var StyledHeader$2 = /*#__PURE__*/styled__default.default.div.withConfig({
3470
3525
  displayName: "ActionSheet__StyledHeader",
3471
3526
  componentId: "sc-regbol-2"
3472
- })(templateObject_5$h || (templateObject_5$h = __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$b[400], space$b[400], space$b[300], border$7["default"]);
3527
+ })(templateObject_5$h || (templateObject_5$h = __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$c[400], space$c[400], space$c[300], border$6["default"]);
3473
3528
  var StyledHeaderContent = /*#__PURE__*/styled__default.default.div.withConfig({
3474
3529
  displayName: "ActionSheet__StyledHeaderContent",
3475
3530
  componentId: "sc-regbol-3"
@@ -3477,7 +3532,7 @@ var StyledHeaderContent = /*#__PURE__*/styled__default.default.div.withConfig({
3477
3532
  var StyledCloseButton = /*#__PURE__*/styled__default.default.button.withConfig({
3478
3533
  displayName: "ActionSheet__StyledCloseButton",
3479
3534
  componentId: "sc-regbol-4"
3480
- })(templateObject_7$b || (templateObject_7$b = __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$b[200], color$8.icon.muted, tokens.semantic.radius.sm, motion$8.transition.feedback, space$b[200], color$8.icon["default"], color$8.fill.muted, border$7.focus, border$7.focusOffset);
3535
+ })(templateObject_7$c || (templateObject_7$c = __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$c[200], color$8.icon.muted, tokens.semantic.radius.md, motion$9.transition.feedback, space$c[200], color$8.icon["default"], color$8.fill.muted, border$6.focus, border$6.focusOffset);
3481
3536
  var StyledActionsList = /*#__PURE__*/styled__default.default.ul.withConfig({
3482
3537
  displayName: "ActionSheet__StyledActionsList",
3483
3538
  componentId: "sc-regbol-5"
@@ -3514,7 +3569,7 @@ var StyledActionsList = /*#__PURE__*/styled__default.default.ul.withConfig({
3514
3569
  * ]}
3515
3570
  * />
3516
3571
  * ```
3517
- */])), space$b[200], space$b[300]);
3572
+ */])), space$c[200], space$c[300]);
3518
3573
  /**
3519
3574
  * ActionSheet component for bottom sheet modals
3520
3575
  *
@@ -3705,7 +3760,7 @@ var ActionSheet = function ActionSheet(_a) {
3705
3760
  })]
3706
3761
  }), document.body);
3707
3762
  };
3708
- var templateObject_1$v, templateObject_2$r, templateObject_3$q, templateObject_4$l, templateObject_5$h, templateObject_6$e, templateObject_7$b, templateObject_8$a;
3763
+ var templateObject_1$w, templateObject_2$s, templateObject_3$q, templateObject_4$l, templateObject_5$h, templateObject_6$e, templateObject_7$c, templateObject_8$a;
3709
3764
 
3710
3765
  function detectSpeechRecognitionConstructor(targetWindow) {
3711
3766
  if (!targetWindow) return null;
@@ -3809,24 +3864,24 @@ function agentInputStateTransition(currentState, event) {
3809
3864
  }
3810
3865
  }
3811
3866
 
3812
- var semantic$f = tokens.semantic,
3813
- component$2 = tokens.component;
3867
+ var semantic$g = tokens.semantic,
3868
+ component$3 = tokens.component;
3814
3869
  var DEFAULT_LISTENING_MESSAGE = 'Listening… speak now';
3815
3870
  var DEFAULT_PROCESSING_MESSAGE = 'Finishing voice input…';
3816
3871
  // The counter appears from this share of maxLength
3817
3872
  var COUNTER_THRESHOLD = 0.8;
3818
3873
  // Layout effects warn during server rendering in React 18
3819
3874
  var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
3820
- var rotateRing = styled.keyframes(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"], ["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"])));
3875
+ var rotateRing = styled.keyframes(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"], ["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"])));
3821
3876
  var Container = /*#__PURE__*/styled__default.default.div.withConfig({
3822
3877
  shouldForwardProp: function shouldForwardProp(prop) {
3823
3878
  return !prop.startsWith('$');
3824
3879
  },
3825
3880
  displayName: "AgentInput__Container",
3826
3881
  componentId: "sc-fhl996-0"
3827
- })(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n\n ", "\n"])), semantic$f.space[200], function (_a) {
3882
+ })(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n\n ", "\n"])), semantic$g.space[200], function (_a) {
3828
3883
  var $docked = _a.$docked;
3829
- return $docked && styled.css(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n position: sticky;\n bottom: 0;\n z-index: ", ";\n /* The band hides content scrolling past the field and status line (decisions 0006, 0031) */\n background-color: ", ";\n padding-top: ", ";\n /* Clears the home indicator; zero unless the page sets viewport-fit=cover */\n padding-bottom: env(safe-area-inset-bottom, 0px);\n "], ["\n position: sticky;\n bottom: 0;\n z-index: ", ";\n /* The band hides content scrolling past the field and status line (decisions 0006, 0031) */\n background-color: ", ";\n padding-top: ", ";\n /* Clears the home indicator; zero unless the page sets viewport-fit=cover */\n padding-bottom: env(safe-area-inset-bottom, 0px);\n "])), semantic$f.layer.sticky, semantic$f.surface.base, semantic$f.space[300]);
3884
+ return $docked && styled.css(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n position: sticky;\n bottom: 0;\n z-index: ", ";\n /* The band hides content scrolling past the field and status line (decisions 0006, 0031) */\n background-color: ", ";\n padding-top: ", ";\n /* Clears the home indicator; zero unless the page sets viewport-fit=cover */\n padding-bottom: env(safe-area-inset-bottom, 0px);\n "], ["\n position: sticky;\n bottom: 0;\n z-index: ", ";\n /* The band hides content scrolling past the field and status line (decisions 0006, 0031) */\n background-color: ", ";\n padding-top: ", ";\n /* Clears the home indicator; zero unless the page sets viewport-fit=cover */\n padding-bottom: env(safe-area-inset-bottom, 0px);\n "])), semantic$g.layer.sticky, semantic$g.surface.base, semantic$g.space[300]);
3830
3885
  });
3831
3886
  var ControlsRow = /*#__PURE__*/styled__default.default.div.withConfig({
3832
3887
  displayName: "AgentInput__ControlsRow",
@@ -3838,21 +3893,21 @@ var InputShell = /*#__PURE__*/styled__default.default.div.withConfig({
3838
3893
  })(templateObject_5$g || (templateObject_5$g = __makeTemplateObject(["\n display: flex;\n /* Actions sit beside the last line as the field grows */\n align-items: flex-end;\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 /* Actions sit beside the last line as the field grows */\n align-items: flex-end;\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"
3839
3894
  // One row is a control-height field; it grows with its content to six rows, then scrolls.
3840
3895
  // The height is set from scrollHeight in resizeField; 1lh is the body line height.
3841
- ])), semantic$f.space[200], semantic$f.space[100], semantic$f.space[200], semantic$f.space[100], semantic$f.space.inset.lg, component$2.input["default"].backgroundColor, component$2.input["default"].borderWidth, component$2.input["default"].borderColor, semantic$f.radius['3xl'], semantic$f.elevation.raised, semantic$f.motion.duration.moderate, semantic$f.motion.easing.standard, semantic$f.motion.duration.moderate, semantic$f.motion.easing.standard, component$2.input.focus.borderColor, component$2.input.focus.outline, semantic$f.border.focusOffset, component$2.input.disabled.backgroundColor, component$2.input.disabled.borderColor);
3896
+ ])), semantic$g.space[200], semantic$g.space[100], semantic$g.space[200], semantic$g.space[100], semantic$g.space.inset.lg, component$3.input["default"].backgroundColor, component$3.input["default"].borderWidth, component$3.input["default"].borderColor, semantic$g.radius['3xl'], semantic$g.elevation.raised, semantic$g.motion.duration.moderate, semantic$g.motion.easing.standard, semantic$g.motion.duration.moderate, semantic$g.motion.easing.standard, component$3.input.focus.borderColor, component$3.input.focus.outline, semantic$g.border.focusOffset, component$3.input.disabled.backgroundColor, component$3.input.disabled.borderColor);
3842
3897
  // One row is a control-height field; it grows with its content to six rows, then scrolls.
3843
3898
  // The height is set from scrollHeight in resizeField; 1lh is the body line height.
3844
3899
  var Input = /*#__PURE__*/styled__default.default.textarea.withConfig({
3845
3900
  displayName: "AgentInput__Input",
3846
3901
  componentId: "sc-fhl996-3"
3847
- })(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["\n display: block;\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n height: ", ";\n min-height: ", ";\n max-height: calc(5lh + ", ");\n margin: 0;\n padding: calc((", " - 1lh) / 2) 0;\n resize: none;\n overflow-y: hidden;\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 display: block;\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n height: ", ";\n min-height: ", ";\n max-height: calc(5lh + ", ");\n margin: 0;\n padding: calc((", " - 1lh) / 2) 0;\n resize: none;\n overflow-y: hidden;\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$f.size.control.lg, semantic$f.size.control.lg, semantic$f.size.control.lg, semantic$f.size.control.lg, semantic$f.typography.body, semantic$f.color.text["default"], component$2.input.placeholder.textColor, semantic$f.color.text.disabled);
3902
+ })(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["\n display: block;\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n height: ", ";\n min-height: ", ";\n max-height: calc(5lh + ", ");\n margin: 0;\n padding: calc((", " - 1lh) / 2) 0;\n resize: none;\n overflow-y: hidden;\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 display: block;\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n height: ", ";\n min-height: ", ";\n max-height: calc(5lh + ", ");\n margin: 0;\n padding: calc((", " - 1lh) / 2) 0;\n resize: none;\n overflow-y: hidden;\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$g.size.control.lg, semantic$g.size.control.lg, semantic$g.size.control.lg, semantic$g.size.control.lg, semantic$g.typography.body, semantic$g.color.text["default"], component$3.input.placeholder.textColor, semantic$g.color.text.disabled);
3848
3903
  var InputActions = /*#__PURE__*/styled__default.default.div.withConfig({
3849
3904
  displayName: "AgentInput__InputActions",
3850
3905
  componentId: "sc-fhl996-4"
3851
- })(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n /* Centres the buttons on a one-row field, and keeps them level with the last line as it grows */\n padding-bottom: calc((", " - ", ") / 2);\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n /* Centres the buttons on a one-row field, and keeps them level with the last line as it grows */\n padding-bottom: calc((", " - ", ") / 2);\n"])), semantic$f.space[200], semantic$f.size.control.lg, semantic$f.size.control.md);
3906
+ })(templateObject_7$b || (templateObject_7$b = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n /* Centres the buttons on a one-row field, and keeps them level with the last line as it grows */\n padding-bottom: calc((", " - ", ") / 2);\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n /* Centres the buttons on a one-row field, and keeps them level with the last line as it grows */\n padding-bottom: calc((", " - ", ") / 2);\n"])), semantic$g.space[200], semantic$g.size.control.lg, semantic$g.size.control.md);
3852
3907
  var CircularActionIconButton = /*#__PURE__*/styled__default.default(IconButton).withConfig({
3853
3908
  displayName: "AgentInput__CircularActionIconButton",
3854
3909
  componentId: "sc-fhl996-5"
3855
- })(templateObject_8$9 || (templateObject_8$9 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), semantic$f.radius.full);
3910
+ })(templateObject_8$9 || (templateObject_8$9 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), semantic$g.radius.full);
3856
3911
  var InputWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
3857
3912
  displayName: "AgentInput__InputWrapper",
3858
3913
  componentId: "sc-fhl996-6"
@@ -3863,10 +3918,10 @@ var MicButtonWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
3863
3918
  },
3864
3919
  displayName: "AgentInput__MicButtonWrapper",
3865
3920
  componentId: "sc-fhl996-7"
3866
- })(templateObject_10$4 || (templateObject_10$4 = __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"
3921
+ })(templateObject_10$6 || (templateObject_10$6 = __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"
3867
3922
  // Masks read only alpha, so the opaque stop is a mask value, not a colour (decision 0010).
3868
3923
  // eslint-disable-next-line no-restricted-syntax
3869
- ])), semantic$f.radius.full);
3924
+ ])), semantic$g.radius.full);
3870
3925
  // Masks read only alpha, so the opaque stop is a mask value, not a colour (decision 0010).
3871
3926
  // eslint-disable-next-line no-restricted-syntax
3872
3927
  var ringMask = styled.css(templateObject_11$4 || (templateObject_11$4 = __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)))"])));
@@ -3878,13 +3933,13 @@ var MicListeningRing = /*#__PURE__*/styled__default.default.span.withConfig({
3878
3933
  componentId: "sc-fhl996-8"
3879
3934
  })(templateObject_13$4 || (templateObject_13$4 = __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"
3880
3935
  // Maximum suggestions shown (decision 0046, #280)
3881
- ])), semantic$f.border.width.thick, semantic$f.space[100], semantic$f.border.focusOffset, semantic$f.radius.full, semantic$f.color.fill['accent-muted'], semantic$f.color.fill.accent, semantic$f.color.fill['accent-hover'], semantic$f.color.fill.accent, semantic$f.color.fill['accent-muted'], ringMask, ringMask, function (_a) {
3936
+ ])), semantic$g.border.width.thick, semantic$g.space[100], semantic$g.border.focusOffset, semantic$g.radius.full, semantic$g.color.fill['accent-muted'], semantic$g.color.fill.accent, semantic$g.color.fill['accent-hover'], semantic$g.color.fill.accent, semantic$g.color.fill['accent-muted'], ringMask, ringMask, function (_a) {
3882
3937
  var $reducedMotion = _a.$reducedMotion;
3883
3938
  return !$reducedMotion && styled.css(templateObject_12$4 || (templateObject_12$4 = __makeTemplateObject(["\n animation: ", " 1300ms linear infinite;\n "], ["\n animation: ", " 1300ms linear infinite;\n "])), rotateRing);
3884
3939
  });
3885
3940
  // Maximum suggestions shown (decision 0046, #280)
3886
3941
  var MAX_SUGGESTIONS = 3;
3887
- var regionEnter = styled.keyframes(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["\n from {\n opacity: 0;\n transform: translateY(", ");\n }\n"], ["\n from {\n opacity: 0;\n transform: translateY(", ");\n }\n"])), semantic$f.motion.distance.sm);
3942
+ var regionEnter = styled.keyframes(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["\n from {\n opacity: 0;\n transform: translateY(", ");\n }\n"], ["\n from {\n opacity: 0;\n transform: translateY(", ");\n }\n"])), semantic$g.motion.distance.sm);
3888
3943
  var regionFadeIn = styled.keyframes(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject(["\n from {\n opacity: 0;\n }\n"], ["\n from {\n opacity: 0;\n }\n"
3889
3944
  // Leaving content fades, then its space closes, as with Alert's dismiss (decision 0015). A grid
3890
3945
  // row from 1fr to 0fr collapses to the content's own height without measuring it.
@@ -3904,10 +3959,10 @@ var RegionItem = /*#__PURE__*/styled__default.default.div.withConfig({
3904
3959
  componentId: "sc-fhl996-9"
3905
3960
  })(templateObject_21$1 || (templateObject_21$1 = __makeTemplateObject(["\n display: grid;\n grid-template-rows: 1fr;\n animation: ", " ", " ", ";\n\n ", " {\n animation-name: ", ";\n }\n\n ", "\n"], ["\n display: grid;\n grid-template-rows: 1fr;\n animation: ", " ", " ", ";\n\n ", " {\n animation-name: ", ";\n }\n\n ", "\n"
3906
3961
  // Clips while the row collapses. Its bottom padding is the space to the next part, so it closes too.
3907
- ])), regionEnter, semantic$f.motion.duration.moderate, semantic$f.motion.easing.decelerate, reducedMotion, regionFadeIn, function (_a) {
3962
+ ])), regionEnter, semantic$g.motion.duration.moderate, semantic$g.motion.easing.decelerate, reducedMotion, regionFadeIn, function (_a) {
3908
3963
  var $exiting = _a.$exiting,
3909
3964
  $reducedExit = _a.$reducedExit;
3910
- return $exiting && styled.css(templateObject_20$1 || (templateObject_20$1 = __makeTemplateObject(["\n pointer-events: none;\n animation: ", ";\n "], ["\n pointer-events: none;\n animation: ", ";\n "])), $reducedExit ? styled.css(templateObject_18$1 || (templateObject_18$1 = __makeTemplateObject(["", " ", " ", " forwards"], ["", " ", " ", " forwards"])), regionFadeOut, semantic$f.motion.duration.fast, semantic$f.motion.easing.accelerate) : styled.css(templateObject_19$1 || (templateObject_19$1 = __makeTemplateObject(["", " calc(2 * ", ") ", " forwards"], ["", " calc(2 * ", ") ", " forwards"])), regionFadeThenCollapse, semantic$f.motion.duration.fast, semantic$f.motion.easing.accelerate));
3965
+ return $exiting && styled.css(templateObject_20$1 || (templateObject_20$1 = __makeTemplateObject(["\n pointer-events: none;\n animation: ", ";\n "], ["\n pointer-events: none;\n animation: ", ";\n "])), $reducedExit ? styled.css(templateObject_18$1 || (templateObject_18$1 = __makeTemplateObject(["", " ", " ", " forwards"], ["", " ", " ", " forwards"])), regionFadeOut, semantic$g.motion.duration.fast, semantic$g.motion.easing.accelerate) : styled.css(templateObject_19$1 || (templateObject_19$1 = __makeTemplateObject(["", " calc(2 * ", ") ", " forwards"], ["", " calc(2 * ", ") ", " forwards"])), regionFadeThenCollapse, semantic$g.motion.duration.fast, semantic$g.motion.easing.accelerate));
3911
3966
  });
3912
3967
  // Clips while the row collapses. Its bottom padding is the space to the next part, so it closes too.
3913
3968
  var RegionItemContent = /*#__PURE__*/styled__default.default.div.withConfig({
@@ -3915,31 +3970,31 @@ var RegionItemContent = /*#__PURE__*/styled__default.default.div.withConfig({
3915
3970
  componentId: "sc-fhl996-10"
3916
3971
  })(templateObject_22$1 || (templateObject_22$1 = __makeTemplateObject(["\n min-height: 0;\n overflow: hidden;\n padding-bottom: ", ";\n padding-left: ", ";\n"], ["\n min-height: 0;\n overflow: hidden;\n padding-bottom: ", ";\n padding-left: ", ";\n"
3917
3972
  // The summary first, then the actions, left-aligned after it; they wrap below on narrow screens (0021)
3918
- ])), semantic$f.space[200], semantic$f.space[500]);
3973
+ ])), semantic$g.space[200], semantic$g.space[500]);
3919
3974
  // The summary first, then the actions, left-aligned after it; they wrap below on narrow screens (0021)
3920
3975
  var ReviewBar = /*#__PURE__*/styled__default.default.div.withConfig({
3921
3976
  displayName: "AgentInput__ReviewBar",
3922
3977
  componentId: "sc-fhl996-11"
3923
- })(templateObject_23$1 || (templateObject_23$1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n column-gap: ", ";\n row-gap: ", ";\n"], ["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n column-gap: ", ";\n row-gap: ", ";\n"])), semantic$f.space[300], semantic$f.space[200]);
3978
+ })(templateObject_23$1 || (templateObject_23$1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n column-gap: ", ";\n row-gap: ", ";\n"], ["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n column-gap: ", ";\n row-gap: ", ";\n"])), semantic$g.space[300], semantic$g.space[200]);
3924
3979
  var ReviewActions = /*#__PURE__*/styled__default.default.div.withConfig({
3925
3980
  displayName: "AgentInput__ReviewActions",
3926
3981
  componentId: "sc-fhl996-12"
3927
- })(templateObject_24$1 || (templateObject_24$1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n"], ["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n"])), semantic$f.space[200]);
3982
+ })(templateObject_24$1 || (templateObject_24$1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n"], ["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n"])), semantic$g.space[200]);
3928
3983
  var SuggestionList = /*#__PURE__*/styled__default.default.ul.withConfig({
3929
3984
  displayName: "AgentInput__SuggestionList",
3930
3985
  componentId: "sc-fhl996-13"
3931
- })(templateObject_25$1 || (templateObject_25$1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n margin: 0;\n padding: 0;\n list-style: none;\n\n & > li {\n max-width: 100%;\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n margin: 0;\n padding: 0;\n list-style: none;\n\n & > li {\n max-width: 100%;\n }\n"])), semantic$f.space[200]);
3986
+ })(templateObject_25$1 || (templateObject_25$1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n margin: 0;\n padding: 0;\n list-style: none;\n\n & > li {\n max-width: 100%;\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n margin: 0;\n padding: 0;\n list-style: none;\n\n & > li {\n max-width: 100%;\n }\n"])), semantic$g.space[200]);
3932
3987
  var StatusRow = /*#__PURE__*/styled__default.default.div.withConfig({
3933
3988
  displayName: "AgentInput__StatusRow",
3934
3989
  componentId: "sc-fhl996-14"
3935
- })(templateObject_26$1 || (templateObject_26$1 = __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$f.space[300], semantic$f.space[600]);
3990
+ })(templateObject_26$1 || (templateObject_26$1 = __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$g.space[300], semantic$g.space[600]);
3936
3991
  var StatusText = /*#__PURE__*/styled__default.default.div.withConfig({
3937
3992
  shouldForwardProp: function shouldForwardProp(prop) {
3938
3993
  return !prop.startsWith('$');
3939
3994
  },
3940
3995
  displayName: "AgentInput__StatusText",
3941
3996
  componentId: "sc-fhl996-15"
3942
- })(templateObject_27$1 || (templateObject_27$1 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$f.space[500]);
3997
+ })(templateObject_27$1 || (templateObject_27$1 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$g.space[500]);
3943
3998
  var StatusAnnouncement = /*#__PURE__*/styled__default.default.div.withConfig({
3944
3999
  displayName: "AgentInput__StatusAnnouncement",
3945
4000
  componentId: "sc-fhl996-16"
@@ -3947,7 +4002,7 @@ var StatusAnnouncement = /*#__PURE__*/styled__default.default.div.withConfig({
3947
4002
  var StatusEnd = /*#__PURE__*/styled__default.default.div.withConfig({
3948
4003
  displayName: "AgentInput__StatusEnd",
3949
4004
  componentId: "sc-fhl996-17"
3950
- })(templateObject_29$1 || (templateObject_29$1 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"])), semantic$f.space[300]);
4005
+ })(templateObject_29$1 || (templateObject_29$1 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"])), semantic$g.space[300]);
3951
4006
  var VisuallyHidden = /*#__PURE__*/styled__default.default.span.withConfig({
3952
4007
  displayName: "AgentInput__VisuallyHidden",
3953
4008
  componentId: "sc-fhl996-18"
@@ -3955,17 +4010,17 @@ var VisuallyHidden = /*#__PURE__*/styled__default.default.span.withConfig({
3955
4010
  var MeterContainer = /*#__PURE__*/styled__default.default.div.withConfig({
3956
4011
  displayName: "AgentInput__MeterContainer",
3957
4012
  componentId: "sc-fhl996-19"
3958
- })(templateObject_31$1 || (templateObject_31$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$f.space[100], semantic$f.space[400]);
4013
+ })(templateObject_31$1 || (templateObject_31$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$g.space[100], semantic$g.space[400]);
3959
4014
  var MeterBar = /*#__PURE__*/styled__default.default.div.withConfig({
3960
4015
  shouldForwardProp: function shouldForwardProp(prop) {
3961
4016
  return !prop.startsWith('$');
3962
4017
  },
3963
4018
  displayName: "AgentInput__MeterBar",
3964
4019
  componentId: "sc-fhl996-20"
3965
- })(templateObject_32$1 || (templateObject_32$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$f.space[100], semantic$f.radius.xs, semantic$f.color.fill.accent, function (_a) {
4020
+ })(templateObject_32$1 || (templateObject_32$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$g.space[100], semantic$g.radius.xs, semantic$g.color.fill.accent, function (_a) {
3966
4021
  var $height = _a.$height;
3967
4022
  return "".concat($height * 100, "%");
3968
- }, semantic$f.motion.duration.fast, semantic$f.motion.easing.decelerate);
4023
+ }, semantic$g.motion.duration.fast, semantic$g.motion.easing.decelerate);
3969
4024
  var VisuallyHiddenLabel = /*#__PURE__*/styled__default.default.label.withConfig({
3970
4025
  displayName: "AgentInput__VisuallyHiddenLabel",
3971
4026
  componentId: "sc-fhl996-21"
@@ -4886,11 +4941,11 @@ function AgentInputWithRef(_a, ref) {
4886
4941
  }
4887
4942
  var AgentInput = /*#__PURE__*/React.forwardRef(AgentInputWithRef);
4888
4943
  AgentInput.displayName = 'AgentInput';
4889
- var templateObject_1$u, templateObject_2$q, templateObject_3$p, templateObject_4$k, templateObject_5$g, templateObject_6$d, templateObject_7$a, templateObject_8$9, templateObject_9$8, templateObject_10$4, templateObject_11$4, templateObject_12$4, templateObject_13$4, templateObject_14$2, templateObject_15$2, templateObject_16$1, templateObject_17$1, templateObject_18$1, 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;
4944
+ var templateObject_1$v, templateObject_2$r, templateObject_3$p, templateObject_4$k, templateObject_5$g, templateObject_6$d, templateObject_7$b, templateObject_8$9, templateObject_9$8, templateObject_10$6, templateObject_11$4, templateObject_12$4, templateObject_13$4, templateObject_14$2, templateObject_15$2, templateObject_16$1, templateObject_17$1, templateObject_18$1, 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;
4890
4945
 
4891
- var semantic$e = tokens.semantic;
4946
+ var semantic$f = tokens.semantic;
4892
4947
  var alert = tokens.component.alert;
4893
- var _a$2 = semantic$e.motion,
4948
+ var _a$2 = semantic$f.motion,
4894
4949
  duration$1 = _a$2.duration,
4895
4950
  easing$1 = _a$2.easing;
4896
4951
  // Dismissing fades the alert out, then collapses the space it took (Ollie's call, #35).
@@ -4900,8 +4955,8 @@ var FADE_MS = parseInt(data.tokensJson.semantic.motion.duration.fast, 10);
4900
4955
  var EXIT_MS = FADE_MS * 2;
4901
4956
  // The --alert-exit-* properties are the alert's height and vertical padding, measured
4902
4957
  // when it's dismissed, so nothing moves until the fade has finished
4903
- var fadeThenCollapse = styled.keyframes(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n 0%, 50% {\n max-height: var(--alert-exit-height);\n padding-top: var(--alert-exit-padding-top);\n padding-bottom: var(--alert-exit-padding-bottom);\n border-width: ", ";\n }\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n border-width: 0;\n }\n"], ["\n 0%, 50% {\n max-height: var(--alert-exit-height);\n padding-top: var(--alert-exit-padding-top);\n padding-bottom: var(--alert-exit-padding-bottom);\n border-width: ", ";\n }\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n border-width: 0;\n }\n"])), semantic$e.border.width.thin);
4904
- var fadeOut = styled.keyframes(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n from { opacity: 1; }\n to { opacity: 0; }\n"], ["\n from { opacity: 1; }\n to { opacity: 0; }\n"
4958
+ var fadeThenCollapse = styled.keyframes(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n 0%, 50% {\n max-height: var(--alert-exit-height);\n padding-top: var(--alert-exit-padding-top);\n padding-bottom: var(--alert-exit-padding-bottom);\n border-width: ", ";\n }\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n border-width: 0;\n }\n"], ["\n 0%, 50% {\n max-height: var(--alert-exit-height);\n padding-top: var(--alert-exit-padding-top);\n padding-bottom: var(--alert-exit-padding-bottom);\n border-width: ", ";\n }\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n border-width: 0;\n }\n"])), semantic$f.border.width.thin);
4959
+ var fadeOut = styled.keyframes(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n from { opacity: 1; }\n to { opacity: 0; }\n"], ["\n from { opacity: 1; }\n to { opacity: 0; }\n"
4905
4960
  // The exit ends on the alert's own animationend: 300ms, or 150ms under reduced motion
4906
4961
  // (chosen when dismissed). A timer of the same length removes it if no animation event
4907
4962
  // arrives, for example where animations are disabled or the tab is hidden.
@@ -4940,7 +4995,7 @@ var StyledAlert = /*#__PURE__*/styled__default.default.div.withConfig({
4940
4995
  },
4941
4996
  displayName: "Alert__StyledAlert",
4942
4997
  componentId: "sc-18tq5d-0"
4943
- })(templateObject_6$c || (templateObject_6$c = __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"])), semantic$e.space[300], semantic$e.space[300], semantic$e.radius.sm, semantic$e.border.width.thin, function (_a) {
4998
+ })(templateObject_6$c || (templateObject_6$c = __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"])), semantic$f.space[300], semantic$f.space[300], semantic$f.radius.lg, semantic$f.border.width.thin, function (_a) {
4944
4999
  var _b = _a.$variant,
4945
5000
  $variant = _b === void 0 ? 'info' : _b;
4946
5001
  return alert.severity[$variant].background;
@@ -4953,7 +5008,7 @@ var StyledAlert = /*#__PURE__*/styled__default.default.div.withConfig({
4953
5008
  $variant = _b === void 0 ? 'info' : _b,
4954
5009
  $appearance = _a.$appearance;
4955
5010
  return alert.appearance[$appearance].borderColor[$variant];
4956
- }, semantic$e.breakpoint.md, semantic$e.space[400], function (_a) {
5011
+ }, semantic$f.breakpoint.md, semantic$f.space[400], function (_a) {
4957
5012
  var $isExiting = _a.$isExiting,
4958
5013
  $reducedExit = _a.$reducedExit;
4959
5014
  return $isExiting && styled.css(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n overflow: hidden;\n pointer-events: none;\n animation: ", ";\n "], ["\n overflow: hidden;\n pointer-events: none;\n animation: ", ";\n "])), $reducedExit ? styled.css(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["", " ", " ", " forwards"], ["", " ", " ", " forwards"])), fadeOut, duration$1.fast, easing$1.accelerate) : styled.css(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["", " ", "ms ", " forwards"], ["", " ", "ms ", " forwards"])), fadeThenCollapse, EXIT_MS, easing$1.accelerate));
@@ -4961,11 +5016,11 @@ var StyledAlert = /*#__PURE__*/styled__default.default.div.withConfig({
4961
5016
  var StyledIconContainer = /*#__PURE__*/styled__default.default.div.withConfig({
4962
5017
  displayName: "Alert__StyledIconContainer",
4963
5018
  componentId: "sc-18tq5d-1"
4964
- })(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n"], ["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n"])));
5019
+ })(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n"], ["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n"])));
4965
5020
  var StyledContent$1 = /*#__PURE__*/styled__default.default.div.withConfig({
4966
5021
  displayName: "Alert__StyledContent",
4967
5022
  componentId: "sc-18tq5d-2"
4968
- })(templateObject_8$8 || (templateObject_8$8 = __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$e.space[100]);
5023
+ })(templateObject_8$8 || (templateObject_8$8 = __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$f.space[100]);
4969
5024
  var StyledTitle = /*#__PURE__*/styled__default.default.span.withConfig({
4970
5025
  displayName: "Alert__StyledTitle",
4971
5026
  componentId: "sc-18tq5d-3"
@@ -4973,7 +5028,7 @@ var StyledTitle = /*#__PURE__*/styled__default.default.span.withConfig({
4973
5028
  var StyledMessage$1 = /*#__PURE__*/styled__default.default.span.withConfig({
4974
5029
  displayName: "Alert__StyledMessage",
4975
5030
  componentId: "sc-18tq5d-4"
4976
- })(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["\n font: ", ";\n line-height: ", ";\n"], ["\n font: ", ";\n line-height: ", ";\n"
5031
+ })(templateObject_10$5 || (templateObject_10$5 = __makeTemplateObject(["\n font: ", ";\n line-height: ", ";\n"], ["\n font: ", ";\n line-height: ", ";\n"
4977
5032
  // The action follows the content, left-aligned with it, so it's read after the message
4978
5033
  // (#122). With the content's xs gap, the space above it is md: a separate step.
4979
5034
  ])), alert.message.typography, alert.message.lineHeight);
@@ -4987,7 +5042,7 @@ var StyledActions = /*#__PURE__*/styled__default.default.div.withConfig({
4987
5042
  // message when there's no title (decision 0019). The slot is as tall as that line and the
4988
5043
  // button is centred in it, overflowing evenly into the padding, so it stays aligned at every
4989
5044
  // padding and line height. Being in the row, it also keeps text and actions from running under it.
4990
- ])), semantic$e.space[200], semantic$e.space[300], semantic$e.space[100]);
5045
+ ])), semantic$f.space[200], semantic$f.space[300], semantic$f.space[100]);
4991
5046
  // The dismiss button's centre lines up with the first line of content: the title, or the
4992
5047
  // message when there's no title (decision 0019). The slot is as tall as that line and the
4993
5048
  // button is centred in it, overflowing evenly into the padding, so it stays aligned at every
@@ -5008,7 +5063,7 @@ var StyledDismissSlot = /*#__PURE__*/styled__default.default.div.withConfig({
5008
5063
  var StyledDismissButton = /*#__PURE__*/styled__default.default(IconButton).withConfig({
5009
5064
  displayName: "Alert__StyledDismissButton",
5010
5065
  componentId: "sc-18tq5d-7"
5011
- })(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n margin-right: calc((", " - ", ") / -2);\n"], ["\n margin-right: calc((", " - ", ") / -2);\n"])), semantic$e.size.control.sm, semantic$e.size.icon.sm);
5066
+ })(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n margin-right: calc((", " - ", ") / -2);\n"], ["\n margin-right: calc((", " - ", ") / -2);\n"])), semantic$f.size.control.sm, semantic$f.size.icon.sm);
5012
5067
  var Alert = function Alert(_a) {
5013
5068
  var _b = _a.variant,
5014
5069
  variant = _b === void 0 ? 'info' : _b,
@@ -5144,12 +5199,12 @@ var Alert = function Alert(_a) {
5144
5199
  }));
5145
5200
  };
5146
5201
  Alert.displayName = 'Alert';
5147
- var templateObject_1$t, templateObject_2$p, templateObject_3$o, templateObject_4$j, templateObject_5$f, templateObject_6$c, templateObject_7$9, templateObject_8$8, templateObject_9$7, templateObject_10$3, templateObject_11$3, templateObject_12$3, templateObject_13$3;
5202
+ var templateObject_1$u, templateObject_2$q, templateObject_3$o, templateObject_4$j, templateObject_5$f, templateObject_6$c, templateObject_7$a, templateObject_8$8, templateObject_9$7, templateObject_10$5, templateObject_11$3, templateObject_12$3, templateObject_13$3;
5148
5203
 
5149
- var semantic$d = tokens.semantic;
5150
- var color$7 = semantic$d.color,
5151
- typography$4 = semantic$d.typography,
5152
- size$4 = semantic$d.size;
5204
+ var semantic$e = tokens.semantic;
5205
+ var color$7 = semantic$e.color,
5206
+ typography$4 = semantic$e.typography,
5207
+ size$6 = semantic$e.size;
5153
5208
  // Each severity's status icon and, at the small size, its shape (decision 0045)
5154
5209
  var variantIcons = {
5155
5210
  error: 'statusError',
@@ -5172,12 +5227,12 @@ var variantShapes = {
5172
5227
  var sizeConfig = {
5173
5228
  small: {
5174
5229
  font: typography$4.caption,
5175
- gap: semantic$d.space[100],
5230
+ gap: semantic$e.space[100],
5176
5231
  icon: 'xs'
5177
5232
  },
5178
5233
  medium: {
5179
5234
  font: typography$4.small,
5180
- gap: semantic$d.space[200],
5235
+ gap: semantic$e.space[200],
5181
5236
  icon: 'sm'
5182
5237
  }
5183
5238
  };
@@ -5187,13 +5242,13 @@ var StyledInlineAlert = /*#__PURE__*/styled__default.default.div.withConfig({
5187
5242
  },
5188
5243
  displayName: "InlineAlert__StyledInlineAlert",
5189
5244
  componentId: "sc-eervmb-0"
5190
- })(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n min-height: ", ";\n gap: ", ";\n font: ", ";\n color: ", ";\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n min-height: ", ";\n gap: ", ";\n font: ", ";\n color: ", ";\n"
5245
+ })(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n min-height: ", ";\n gap: ", ";\n font: ", ";\n color: ", ";\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n min-height: ", ";\n gap: ", ";\n font: ", ";\n color: ", ";\n"
5191
5246
  // One line of the message's font tall, so the icon centres on the first line at any size:
5192
5247
  // the zero-width space gives the box the font's line height without a fixed value
5193
5248
  ])), function (_a) {
5194
5249
  var $size = _a.$size,
5195
5250
  $empty = _a.$empty;
5196
- return $empty ? '0' : size$4.label[$size];
5251
+ return $empty ? '0' : size$6.label[$size];
5197
5252
  }, function (_a) {
5198
5253
  var $size = _a.$size;
5199
5254
  return sizeConfig[$size].gap;
@@ -5209,7 +5264,7 @@ var StyledInlineAlert = /*#__PURE__*/styled__default.default.div.withConfig({
5209
5264
  var StyledIconLine = /*#__PURE__*/styled__default.default.span.withConfig({
5210
5265
  displayName: "InlineAlert__StyledIconLine",
5211
5266
  componentId: "sc-eervmb-1"
5212
- })(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n\n &::after {\n content: '\\200B';\n }\n"], ["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n\n &::after {\n content: '\\\\200B';\n }\n"])));
5267
+ })(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n\n &::after {\n content: '\\200B';\n }\n"], ["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n\n &::after {\n content: '\\\\200B';\n }\n"])));
5213
5268
  var StyledMessage = /*#__PURE__*/styled__default.default.span.withConfig({
5214
5269
  displayName: "InlineAlert__StyledMessage",
5215
5270
  componentId: "sc-eervmb-2"
@@ -5283,16 +5338,16 @@ var InlineAlert = function InlineAlert(_a) {
5283
5338
  });
5284
5339
  };
5285
5340
  InlineAlert.displayName = 'InlineAlert';
5286
- var templateObject_1$s, templateObject_2$o, templateObject_3$n;
5341
+ var templateObject_1$t, templateObject_2$p, templateObject_3$n;
5287
5342
 
5288
5343
  var BreadcrumbNavStyled = /*#__PURE__*/styled__default.default.nav.withConfig({
5289
5344
  displayName: "Breadcrumbs__BreadcrumbNavStyled",
5290
5345
  componentId: "sc-7ouzg5-0"
5291
- })(templateObject_1$r || (templateObject_1$r = __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"]);
5346
+ })(templateObject_1$s || (templateObject_1$s = __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"]);
5292
5347
  var BreadcrumbStyled = /*#__PURE__*/styled__default.default.li.withConfig({
5293
5348
  displayName: "Breadcrumbs__BreadcrumbStyled",
5294
5349
  componentId: "sc-7ouzg5-1"
5295
- })(templateObject_2$n || (templateObject_2$n = __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"]);
5350
+ })(templateObject_2$o || (templateObject_2$o = __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"]);
5296
5351
  var BreadcrumbSeparator = /*#__PURE__*/styled__default.default.span.withConfig({
5297
5352
  displayName: "Breadcrumbs__BreadcrumbSeparator",
5298
5353
  componentId: "sc-7ouzg5-2"
@@ -5344,14 +5399,14 @@ var Breadcrumbs = function Breadcrumbs(_a) {
5344
5399
  })
5345
5400
  });
5346
5401
  };
5347
- var templateObject_1$r, templateObject_2$n, templateObject_3$m;
5402
+ var templateObject_1$s, templateObject_2$o, templateObject_3$m;
5348
5403
 
5349
5404
  // The whole card is one link (#185): hovering anywhere fades its image, pressing fades it one step
5350
5405
  // further, and keyboard focus draws the system focus ring around the card (decision 0029)
5351
5406
  var CardSmallStyled = /*#__PURE__*/styled__default.default.div.withConfig({
5352
5407
  displayName: "CardSmall__CardSmallStyled",
5353
5408
  componentId: "sc-jpcqvd-0"
5354
- })(templateObject_1$q || (templateObject_1$q = __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);
5409
+ })(templateObject_1$r || (templateObject_1$r = __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);
5355
5410
  var CardSmall = function CardSmall(_a) {
5356
5411
  var title = _a.title,
5357
5412
  picture = _a.picture,
@@ -5405,12 +5460,12 @@ var CardSmall = function CardSmall(_a) {
5405
5460
  })
5406
5461
  });
5407
5462
  };
5408
- var templateObject_1$q;
5463
+ var templateObject_1$r;
5409
5464
 
5410
5465
  var CardLargeStyled = /*#__PURE__*/styled__default.default.div.withConfig({
5411
5466
  displayName: "CardLarge__CardLargeStyled",
5412
5467
  componentId: "sc-1rfgdzl-0"
5413
- })(templateObject_1$p || (templateObject_1$p = __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']);
5468
+ })(templateObject_1$q || (templateObject_1$q = __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']);
5414
5469
  var CardLarge = function CardLarge(_a) {
5415
5470
  var title = _a.title,
5416
5471
  excerpt = _a.excerpt,
@@ -5465,7 +5520,7 @@ var CardLarge = function CardLarge(_a) {
5465
5520
  })
5466
5521
  });
5467
5522
  };
5468
- var templateObject_1$p;
5523
+ var templateObject_1$q;
5469
5524
 
5470
5525
  /**
5471
5526
  * Hidden native checkbox input for accessibility
@@ -5477,7 +5532,7 @@ var HiddenCheckboxInput = /*#__PURE__*/styled__default.default.input.withConfig(
5477
5532
  },
5478
5533
  displayName: "SelectableInputBase__HiddenCheckboxInput",
5479
5534
  componentId: "sc-1ddpctx-0"
5480
- })(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n pointer-events: none;\n"], ["\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n pointer-events: none;\n"
5535
+ })(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n pointer-events: none;\n"], ["\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n pointer-events: none;\n"
5481
5536
  /**
5482
5537
  * Custom checkbox visual component
5483
5538
  * 24px × 24px for 8px grid alignment
@@ -5494,11 +5549,11 @@ var StyledCheckbox = /*#__PURE__*/styled__default.default.span.withConfig({
5494
5549
  },
5495
5550
  displayName: "SelectableInputBase__StyledCheckbox",
5496
5551
  componentId: "sc-1ddpctx-1"
5497
- })(templateObject_2$m || (templateObject_2$m = __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"
5552
+ })(templateObject_2$n || (templateObject_2$n = __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"
5498
5553
  /**
5499
5554
  * Container for checkbox with proper spacing and alignment
5500
5555
  * 48px min-height for touch target (8px grid aligned)
5501
- */])), 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) {
5556
+ */])), tokens.component.checkbox.box.size, tokens.component.checkbox.box.size, tokens.component.checkbox.box.size, tokens.component.checkbox.box.size, tokens.component.checkbox.box.borderRadius, tokens.component.input["default"].borderWidth, function (props) {
5502
5557
  return props.$checked || props.$indeterminate ? tokens.semantic.color.fill.inverse : tokens.component.input["default"].backgroundColor;
5503
5558
  }, function (props) {
5504
5559
  if (props.$state === 'error') return tokens.component.input.error.borderColor;
@@ -5555,16 +5610,16 @@ var StyledCheckboxLabel = /*#__PURE__*/styled__default.default.span.withConfig({
5555
5610
  })(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), tokens.component.input["default"].font, function (props) {
5556
5611
  return props.$disabled ? tokens.component.input.disabled.textColor : tokens.component.input["default"].textColor;
5557
5612
  });
5558
- var templateObject_1$o, templateObject_2$m, templateObject_3$l, templateObject_4$i;
5613
+ var templateObject_1$p, templateObject_2$n, templateObject_3$l, templateObject_4$i;
5559
5614
 
5560
5615
  var StyledFieldContainer$3 = /*#__PURE__*/styled__default.default.div.withConfig({
5561
5616
  displayName: "Checkbox__StyledFieldContainer",
5562
5617
  componentId: "sc-vquz3v-0"
5563
- })(templateObject_1$n || (templateObject_1$n = __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]);
5618
+ })(templateObject_1$o || (templateObject_1$o = __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]);
5564
5619
  var StyledHelperText$4 = /*#__PURE__*/styled__default.default.span.withConfig({
5565
5620
  displayName: "Checkbox__StyledHelperText",
5566
5621
  componentId: "sc-vquz3v-1"
5567
- })(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n margin-left: ", "; /* Align with label text after checkbox */\n display: block;\n"], ["\n font: ", ";\n color: ", ";\n margin-left: ", "; /* Align with label text after checkbox */\n display: block;\n"
5622
+ })(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n margin-left: ", "; /* Align with label text after checkbox */\n display: block;\n"], ["\n font: ", ";\n color: ", ";\n margin-left: ", "; /* Align with label text after checkbox */\n display: block;\n"
5568
5623
  /**
5569
5624
  * Checkbox component for binary selection with WCAG 2.2 AA compliance
5570
5625
  *
@@ -5683,12 +5738,12 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
5683
5738
  });
5684
5739
  });
5685
5740
  Checkbox.displayName = 'Checkbox';
5686
- var templateObject_1$n, templateObject_2$l;
5741
+ var templateObject_1$o, templateObject_2$m;
5687
5742
 
5688
5743
  var ChipGroupWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
5689
5744
  displayName: "ChipGroup__ChipGroupWrapper",
5690
5745
  componentId: "sc-ae049w-0"
5691
- })(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"], ["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"])));
5746
+ })(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"], ["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"])));
5692
5747
  var ChipGroup = function ChipGroup(_a) {
5693
5748
  var labels = _a.labels,
5694
5749
  dataTestId = _a["data-testid"];
@@ -5705,20 +5760,20 @@ var ChipGroup = function ChipGroup(_a) {
5705
5760
  })
5706
5761
  });
5707
5762
  };
5708
- var templateObject_1$m;
5763
+ var templateObject_1$n;
5709
5764
 
5710
5765
  var _a$1 = tokens.semantic,
5711
5766
  color$6 = _a$1.color,
5712
- border$6 = _a$1.border,
5713
- motion$7 = _a$1.motion;
5767
+ border$5 = _a$1.border,
5768
+ motion$8 = _a$1.motion;
5714
5769
  var StyledCodeBlock = /*#__PURE__*/styled__default.default.pre.withConfig({
5715
5770
  displayName: "CodeBlock__StyledCodeBlock",
5716
5771
  componentId: "sc-1p1t0kp-0"
5717
- })(templateObject_1$l || (templateObject_1$l = __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$6["default"], tokens.semantic.radius.sm, tokens.semantic.space[300], tokens.component.codeBlock.fontFamily, tokens.component.codeBlock.fontSize, tokens.component.codeBlock.lineHeight, color$6.text["default"], function (_a) {
5772
+ })(templateObject_1$m || (templateObject_1$m = __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$5["default"], tokens.semantic.radius.sm, tokens.semantic.space[300], tokens.component.codeBlock.fontFamily, tokens.component.codeBlock.fontSize, tokens.component.codeBlock.lineHeight, color$6.text["default"], function (_a) {
5718
5773
  var $isExpanded = _a.$isExpanded,
5719
5774
  $needsExpansion = _a.$needsExpansion;
5720
5775
  return $needsExpansion && !$isExpanded ? 'hidden' : 'auto';
5721
- }, tokens.semantic.space[200], motion$7.duration.slow, motion$7.easing.standard, reducedMotion, function (_a) {
5776
+ }, tokens.semantic.space[200], motion$8.duration.slow, motion$8.easing.standard, reducedMotion, function (_a) {
5722
5777
  var $maxHeight = _a.$maxHeight,
5723
5778
  $isExpanded = _a.$isExpanded,
5724
5779
  $needsExpansion = _a.$needsExpansion;
@@ -5726,11 +5781,11 @@ var StyledCodeBlock = /*#__PURE__*/styled__default.default.pre.withConfig({
5726
5781
  // Use a large value when expanded to allow smooth transition
5727
5782
  // 10000px is effectively "no limit" for most code blocks
5728
5783
  return $isExpanded ? 'max-height: 10000px;' : "max-height: ".concat($maxHeight, "px;");
5729
- }, border$6.focus, border$6.focusOffset);
5784
+ }, border$5.focus, border$5.focusOffset);
5730
5785
  var CodeBlockWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
5731
5786
  displayName: "CodeBlock__CodeBlockWrapper",
5732
5787
  componentId: "sc-1p1t0kp-1"
5733
- })(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n position: relative;\n display: inline-block;\n width: 100%;\n"], ["\n position: relative;\n display: inline-block;\n width: 100%;\n"])));
5788
+ })(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n position: relative;\n display: inline-block;\n width: 100%;\n"], ["\n position: relative;\n display: inline-block;\n width: 100%;\n"])));
5734
5789
  var CopyButtonWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
5735
5790
  displayName: "CodeBlock__CopyButtonWrapper",
5736
5791
  componentId: "sc-1p1t0kp-2"
@@ -5738,7 +5793,7 @@ var CopyButtonWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
5738
5793
  var ExpandButtonWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
5739
5794
  displayName: "CodeBlock__ExpandButtonWrapper",
5740
5795
  componentId: "sc-1p1t0kp-3"
5741
- })(templateObject_4$h || (templateObject_4$h = __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$7.duration.slow, motion$7.easing.standard, motion$7.duration.slow, motion$7.easing.standard, function (_a) {
5796
+ })(templateObject_4$h || (templateObject_4$h = __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$8.duration.slow, motion$8.easing.standard, motion$8.duration.slow, motion$8.easing.standard, function (_a) {
5742
5797
  var $hasGradient = _a.$hasGradient;
5743
5798
  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 ";
5744
5799
  });
@@ -5924,19 +5979,19 @@ var CodeBlock = function CodeBlock(_a) {
5924
5979
  })]
5925
5980
  });
5926
5981
  };
5927
- var templateObject_1$l, templateObject_2$k, templateObject_3$k, templateObject_4$h, templateObject_5$e;
5982
+ var templateObject_1$m, templateObject_2$l, templateObject_3$k, templateObject_4$h, templateObject_5$e;
5928
5983
 
5929
5984
  var StyledHeader$1 = /*#__PURE__*/styled__default.default.div.withConfig({
5930
5985
  displayName: "DateGroup__StyledHeader",
5931
5986
  componentId: "sc-9nfm1f-0"
5932
- })(templateObject_1$k || (templateObject_1$k = __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) {
5987
+ })(templateObject_1$l || (templateObject_1$l = __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) {
5933
5988
  var $sticky = _a.$sticky;
5934
5989
  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 ");
5935
5990
  });
5936
5991
  var StyledLeftSection = /*#__PURE__*/styled__default.default.div.withConfig({
5937
5992
  displayName: "DateGroup__StyledLeftSection",
5938
5993
  componentId: "sc-9nfm1f-1"
5939
- })(templateObject_2$j || (templateObject_2$j = __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]);
5994
+ })(templateObject_2$k || (templateObject_2$k = __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]);
5940
5995
  var StyledRightSection = /*#__PURE__*/styled__default.default.div.withConfig({
5941
5996
  displayName: "DateGroup__StyledRightSection",
5942
5997
  componentId: "sc-9nfm1f-2"
@@ -6016,18 +6071,18 @@ var DateGroup = function DateGroup(_a) {
6016
6071
  })]
6017
6072
  });
6018
6073
  };
6019
- var templateObject_1$k, templateObject_2$j, templateObject_3$j, templateObject_4$g;
6074
+ var templateObject_1$l, templateObject_2$k, templateObject_3$j, templateObject_4$g;
6020
6075
 
6021
- var semantic$c = tokens.semantic;
6076
+ var semantic$d = tokens.semantic;
6022
6077
  var StyledContainer$1 = /*#__PURE__*/styled__default.default.div.withConfig({
6023
6078
  shouldForwardProp: function shouldForwardProp(prop) {
6024
6079
  return !prop.startsWith('$');
6025
6080
  },
6026
6081
  displayName: "EmptyState__StyledContainer",
6027
6082
  componentId: "sc-1u5hxh-0"
6028
- })(templateObject_1$j || (templateObject_1$j = __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) {
6083
+ })(templateObject_1$k || (templateObject_1$k = __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) {
6029
6084
  var $size = _a.$size;
6030
- return $size === 'small' ? semantic$c.space[800] : $size === 'large' ? semantic$c.space[1400] : semantic$c.space[1000];
6085
+ return $size === 'small' ? semantic$d.space[800] : $size === 'large' ? semantic$d.space[1400] : semantic$d.space[1000];
6031
6086
  });
6032
6087
  var StyledIllustration = /*#__PURE__*/styled__default.default.div.withConfig({
6033
6088
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -6035,22 +6090,22 @@ var StyledIllustration = /*#__PURE__*/styled__default.default.div.withConfig({
6035
6090
  },
6036
6091
  displayName: "EmptyState__StyledIllustration",
6037
6092
  componentId: "sc-1u5hxh-1"
6038
- })(templateObject_2$i || (templateObject_2$i = __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) {
6093
+ })(templateObject_2$j || (templateObject_2$j = __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) {
6039
6094
  var $size = _a.$size;
6040
6095
  return $size === 'small' ? tokens.component.emptyState.illustration.small : $size === 'large' ? tokens.component.emptyState.illustration.large : tokens.component.emptyState.illustration.medium;
6041
6096
  }, function (_a) {
6042
6097
  var $size = _a.$size;
6043
6098
  return $size === 'small' ? tokens.component.emptyState.illustration.small : $size === 'large' ? tokens.component.emptyState.illustration.large : tokens.component.emptyState.illustration.medium;
6044
- }, semantic$c.space[600], function (_a) {
6099
+ }, semantic$d.space[600], function (_a) {
6045
6100
  var $variant = _a.$variant;
6046
- return $variant === 'error' ? semantic$c.color.icon.danger : $variant === 'success' ? semantic$c.color.icon.success : semantic$c.color.icon.muted;
6101
+ return $variant === 'error' ? semantic$d.color.icon.danger : $variant === 'success' ? semantic$d.color.icon.success : semantic$d.color.icon.muted;
6047
6102
  });
6048
6103
  var StyledTextContainer = /*#__PURE__*/styled__default.default.div.withConfig({
6049
6104
  displayName: "EmptyState__StyledTextContainer",
6050
6105
  componentId: "sc-1u5hxh-2"
6051
6106
  })(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n max-width: ", ";\n margin-bottom: ", ";\n"], ["\n max-width: ", ";\n margin-bottom: ", ";\n"
6052
6107
  // Map illustration type to icon name
6053
- ])), tokens.component.emptyState.text.maxWidth, semantic$c.space[600]);
6108
+ ])), tokens.component.emptyState.text.maxWidth, semantic$d.space[600]);
6054
6109
  // Map illustration type to icon name
6055
6110
  var illustrationToIcon = {
6056
6111
  search: 'search',
@@ -6105,7 +6160,7 @@ var EmptyState = function EmptyState(_a) {
6105
6160
  children: title
6106
6161
  }), jsxRuntime.jsx("div", {
6107
6162
  style: {
6108
- marginTop: semantic$c.space[300]
6163
+ marginTop: semantic$d.space[300]
6109
6164
  },
6110
6165
  children: jsxRuntime.jsx(Typography, {
6111
6166
  variant: "body",
@@ -6135,25 +6190,25 @@ var EmptyState = function EmptyState(_a) {
6135
6190
  })]
6136
6191
  });
6137
6192
  };
6138
- var templateObject_1$j, templateObject_2$i, templateObject_3$i;
6193
+ var templateObject_1$k, templateObject_2$j, templateObject_3$i;
6139
6194
 
6140
- var space$a = tokens.semantic.space;
6195
+ var space$b = tokens.semantic.space;
6141
6196
  var FeatureBlockStyled = /*#__PURE__*/styled__default.default.div.withConfig({
6142
6197
  displayName: "FeatureBlock__FeatureBlockStyled",
6143
6198
  componentId: "sc-1mi4lso-0"
6144
- })(templateObject_1$i || (templateObject_1$i = __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$a[1200], tokens.semantic.radius['2xl']);
6199
+ })(templateObject_1$j || (templateObject_1$j = __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$b[1200], tokens.semantic.radius['2xl']);
6145
6200
  var ImageWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
6146
6201
  displayName: "FeatureBlock__ImageWrapper",
6147
6202
  componentId: "sc-1mi4lso-1"
6148
- })(templateObject_2$h || (templateObject_2$h = __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);
6203
+ })(templateObject_2$i || (templateObject_2$i = __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);
6149
6204
  var ContentSection = /*#__PURE__*/styled__default.default.div.withConfig({
6150
6205
  displayName: "FeatureBlock__ContentSection",
6151
6206
  componentId: "sc-1mi4lso-2"
6152
- })(templateObject_3$h || (templateObject_3$h = __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$a[600], tokens.semantic.breakpoint.lg, space$a[800], tokens.semantic.breakpoint.xl, space$a[2400]);
6207
+ })(templateObject_3$h || (templateObject_3$h = __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$b[600], tokens.semantic.breakpoint.lg, space$b[800], tokens.semantic.breakpoint.xl, space$b[2400]);
6153
6208
  var ButtonWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
6154
6209
  displayName: "FeatureBlock__ButtonWrapper",
6155
6210
  componentId: "sc-1mi4lso-3"
6156
- })(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n button {\n margin-top: ", ";\n }\n"], ["\n button {\n margin-top: ", ";\n }\n"])), space$a[400]);
6211
+ })(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n button {\n margin-top: ", ";\n }\n"], ["\n button {\n margin-top: ", ";\n }\n"])), space$b[400]);
6157
6212
  var ContentWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
6158
6213
  displayName: "FeatureBlock__ContentWrapper",
6159
6214
  componentId: "sc-1mi4lso-4"
@@ -6216,13 +6271,13 @@ var FeatureBlock = function FeatureBlock(_a) {
6216
6271
  }), jsxRuntime.jsx(Divider, {})]
6217
6272
  });
6218
6273
  };
6219
- var templateObject_1$i, templateObject_2$h, templateObject_3$h, templateObject_4$f, templateObject_5$d;
6274
+ var templateObject_1$j, templateObject_2$i, templateObject_3$h, templateObject_4$f, templateObject_5$d;
6220
6275
 
6221
6276
  var _a = tokens.semantic,
6222
- border$5 = _a.border,
6277
+ border$4 = _a.border,
6223
6278
  elevation$2 = _a.elevation,
6224
- motion$6 = _a.motion,
6225
- space$9 = _a.space,
6279
+ motion$7 = _a.motion,
6280
+ space$a = _a.space,
6226
6281
  _b = tokens.component,
6227
6282
  input$1 = _b.input,
6228
6283
  field$3 = _b.field;
@@ -6231,21 +6286,21 @@ var _a = tokens.semantic,
6231
6286
  // their content (decision 0034). The small vertical padding only matters when a long
6232
6287
  // label wraps; a single line is shorter than the minimum.
6233
6288
  var controlPaddingX = tokens.semantic.space.inset.lg;
6234
- var controlPaddingY = space$9[200];
6289
+ var controlPaddingY = space$a[200];
6235
6290
  var controlHeight = tokens.semantic.size.control.lg;
6236
- var duration = motion$6.duration,
6237
- easing = motion$6.easing;
6291
+ var duration = motion$7.duration,
6292
+ easing = motion$7.easing;
6238
6293
  var DropdownContainer = /*#__PURE__*/styled__default.default.div.withConfig({
6239
6294
  displayName: "Dropdown__DropdownContainer",
6240
6295
  componentId: "sc-kz07c4-0"
6241
- })(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
6296
+ })(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
6242
6297
  var DropdownTrigger = /*#__PURE__*/styled__default.default.button.withConfig({
6243
6298
  shouldForwardProp: function shouldForwardProp(prop) {
6244
6299
  return !prop.startsWith('$');
6245
6300
  },
6246
6301
  displayName: "Dropdown__DropdownTrigger",
6247
6302
  componentId: "sc-kz07c4-1"
6248
- })(templateObject_2$g || (templateObject_2$g = __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) {
6303
+ })(templateObject_2$h || (templateObject_2$h = __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) {
6249
6304
  var $hasError = _a.$hasError;
6250
6305
  return $hasError ? input$1.error.borderColor : input$1["default"].borderColor;
6251
6306
  }, input$1["default"].borderRadius, input$1["default"].font, input$1["default"].textColor, duration.moderate, easing.standard, duration.moderate, easing.standard, function (_a) {
@@ -6254,7 +6309,7 @@ var DropdownTrigger = /*#__PURE__*/styled__default.default.button.withConfig({
6254
6309
  }, function (_a) {
6255
6310
  var $hasError = _a.$hasError;
6256
6311
  return $hasError ? input$1.error.focus.borderColor : input$1.focus.borderColor;
6257
- }, input$1.focus.outline, border$5.focusOffset, input$1.disabled.backgroundColor, input$1.disabled.textColor, input$1.disabled.borderColor, function (_a) {
6312
+ }, input$1.focus.outline, border$4.focusOffset, input$1.disabled.backgroundColor, input$1.disabled.textColor, input$1.disabled.borderColor, function (_a) {
6258
6313
  var $isOpen = _a.$isOpen,
6259
6314
  $hasError = _a.$hasError;
6260
6315
  return $isOpen && "\n border-color: ".concat($hasError ? input$1.error.focus.borderColor : input$1.focus.borderColor, ";\n ");
@@ -6265,7 +6320,7 @@ var DropdownIcon = /*#__PURE__*/styled__default.default.div.withConfig({
6265
6320
  },
6266
6321
  displayName: "Dropdown__DropdownIcon",
6267
6322
  componentId: "sc-kz07c4-2"
6268
- })(templateObject_3$g || (templateObject_3$g = __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$9[200], duration.fast, easing.decelerate, function (_a) {
6323
+ })(templateObject_3$g || (templateObject_3$g = __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$a[200], duration.fast, easing.decelerate, function (_a) {
6269
6324
  var $isOpen = _a.$isOpen;
6270
6325
  return $isOpen && "\n transform: rotate(180deg);\n ";
6271
6326
  }, reducedMotion);
@@ -6275,7 +6330,7 @@ var DropdownMenu = /*#__PURE__*/styled__default.default.div.withConfig({
6275
6330
  },
6276
6331
  displayName: "Dropdown__DropdownMenu",
6277
6332
  componentId: "sc-kz07c4-3"
6278
- })(templateObject_4$e || (templateObject_4$e = __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$5["default"], input$1["default"].borderRadius, elevation$2.floating, space$9[100], function (_a) {
6333
+ })(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n z-index: ", ";\n /* A floating layer: one step above raised content in the dark theme (issue 356) */\n background-color: ", ";\n /* A decorative outline: elevation separates the menu, and only the trigger is a control edge (decision 0025) */\n border: ", ";\n /* The panel radius Menu and SearchField share, not the control token (decision 0055) */\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 /* A floating layer: one step above raised content in the dark theme (issue 356) */\n background-color: ", ";\n /* A decorative outline: elevation separates the menu, and only the trigger is a control edge (decision 0025) */\n border: ", ";\n /* The panel radius Menu and SearchField share, not the control token (decision 0055) */\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, tokens.semantic.surface.overlay, border$4["default"], tokens.semantic.radius.md, elevation$2.floating, space$a[100], function (_a) {
6279
6334
  var $isOpen = _a.$isOpen;
6280
6335
  return $isOpen ? 1 : 0;
6281
6336
  }, function (_a) {
@@ -6291,21 +6346,21 @@ var DropdownOption = /*#__PURE__*/styled__default.default.button.withConfig({
6291
6346
  },
6292
6347
  displayName: "Dropdown__DropdownOption",
6293
6348
  componentId: "sc-kz07c4-4"
6294
- })(templateObject_5$c || (templateObject_5$c = __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$9[200], controlHeight, controlPaddingY, controlPaddingX, input$1["default"].font, input$1["default"].textColor, duration.fast, easing.decelerate, duration.fast, easing.decelerate, function (_a) {
6349
+ })(templateObject_5$c || (templateObject_5$c = __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$a[200], controlHeight, controlPaddingY, controlPaddingX, input$1["default"].font, input$1["default"].textColor, duration.fast, easing.decelerate, duration.fast, easing.decelerate, function (_a) {
6295
6350
  var $isSelected = _a.$isSelected,
6296
6351
  $isFocused = _a.$isFocused;
6297
6352
  return interactiveRow({
6298
6353
  selected: $isSelected,
6299
6354
  focused: $isFocused
6300
6355
  });
6301
- }, border$5["default"]);
6356
+ }, border$4["default"]);
6302
6357
  var StyledHelperText$3 = /*#__PURE__*/styled__default.default.div.withConfig({
6303
6358
  displayName: "Dropdown__StyledHelperText",
6304
6359
  componentId: "sc-kz07c4-5"
6305
6360
  })(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"], ["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"])), field$3.helperText.typography, function (_a) {
6306
6361
  var $hasError = _a.$hasError;
6307
6362
  return $hasError ? field$3.helperText.colorError : field$3.helperText.color;
6308
- }, space$9[200]);
6363
+ }, space$a[200]);
6309
6364
  var Dropdown = function Dropdown(_a) {
6310
6365
  var options = _a.options,
6311
6366
  value = _a.value,
@@ -6428,7 +6483,7 @@ var Dropdown = function Dropdown(_a) {
6428
6483
  htmlFor: dropdownId,
6429
6484
  style: {
6430
6485
  display: 'block',
6431
- marginBottom: space$9[200]
6486
+ marginBottom: space$a[200]
6432
6487
  },
6433
6488
  children: jsxRuntime.jsx(Typography, {
6434
6489
  variant: "label",
@@ -6485,18 +6540,18 @@ var Dropdown = function Dropdown(_a) {
6485
6540
  })]
6486
6541
  });
6487
6542
  };
6488
- var templateObject_1$h, templateObject_2$g, templateObject_3$g, templateObject_4$e, templateObject_5$c, templateObject_6$b;
6543
+ var templateObject_1$i, templateObject_2$h, templateObject_3$g, templateObject_4$e, templateObject_5$c, templateObject_6$b;
6489
6544
 
6490
- var semantic$b = tokens.semantic;
6545
+ var semantic$c = tokens.semantic;
6491
6546
  var StyledList = /*#__PURE__*/styled__default.default.ul.withConfig({
6492
6547
  shouldForwardProp: function shouldForwardProp(prop) {
6493
6548
  return !prop.startsWith('$');
6494
6549
  },
6495
6550
  displayName: "List__StyledList",
6496
6551
  componentId: "sc-1irksg5-0"
6497
- })(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n \n /* Divider styles */\n ", "\n"], ["\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n \n /* Divider styles */\n ", "\n"])), function (_a) {
6552
+ })(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n \n /* Divider styles */\n ", "\n"], ["\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n \n /* Divider styles */\n ", "\n"])), function (_a) {
6498
6553
  var $dividers = _a.$dividers;
6499
- return $dividers && "\n > li:not(:last-child) {\n border-bottom: ".concat(semantic$b.border.width.thin, " solid ").concat(semantic$b.color.border["default"], ";\n }\n ");
6554
+ return $dividers && "\n > li:not(:last-child) {\n border-bottom: ".concat(semantic$c.border.width.thin, " solid ").concat(semantic$c.color.border["default"], ";\n }\n ");
6500
6555
  });
6501
6556
  var List$2 = function List(_a) {
6502
6557
  var children = _a.children,
@@ -6520,17 +6575,17 @@ var List$2 = function List(_a) {
6520
6575
  });
6521
6576
  };
6522
6577
  List$2.displayName = 'List';
6523
- var templateObject_1$g;
6578
+ var templateObject_1$h;
6524
6579
 
6525
- var semantic$a = tokens.semantic;
6526
- var space$8 = semantic$a.space,
6527
- color$5 = semantic$a.color,
6528
- motion$5 = semantic$a.motion,
6529
- radius$4 = semantic$a.radius,
6530
- size$3 = semantic$a.size,
6531
- elevation$1 = semantic$a.elevation,
6532
- border$4 = semantic$a.border,
6533
- typography$3 = semantic$a.typography;
6580
+ var semantic$b = tokens.semantic;
6581
+ var space$9 = semantic$b.space,
6582
+ color$5 = semantic$b.color,
6583
+ motion$6 = semantic$b.motion,
6584
+ radius$1 = semantic$b.radius,
6585
+ size$5 = semantic$b.size,
6586
+ elevation$1 = semantic$b.elevation,
6587
+ border$3 = semantic$b.border,
6588
+ typography$3 = semantic$b.typography;
6534
6589
  // Typeahead keeps typed characters together for this long. An input timing, not a motion value.
6535
6590
  var TYPEAHEAD_RESET_MS = 500;
6536
6591
  var ITEM_SELECTOR = '[role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"]';
@@ -6540,8 +6595,8 @@ var useMenu = function useMenu(component) {
6540
6595
  if (!context) throw new Error("".concat(component, " must be used inside a Menu"));
6541
6596
  return context;
6542
6597
  };
6543
- var enter = styled.keyframes(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n from {\n opacity: 0;\n transform: translateY(calc(-1 * ", "));\n }\n"], ["\n from {\n opacity: 0;\n transform: translateY(calc(-1 * ", "));\n }\n"])), motion$5.distance.sm);
6544
- var fade = styled.keyframes(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n from { opacity: 0; }\n"], ["\n from { opacity: 0; }\n"
6598
+ var enter = styled.keyframes(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n from {\n opacity: 0;\n transform: translateY(calc(-1 * ", "));\n }\n"], ["\n from {\n opacity: 0;\n transform: translateY(calc(-1 * ", "));\n }\n"])), motion$6.distance.sm);
6599
+ var fade$1 = styled.keyframes(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n from { opacity: 0; }\n"], ["\n from { opacity: 0; }\n"
6545
6600
  // Dropdown's panel (P5): the raised surface with a decorative outline and floating elevation,
6546
6601
  // dropping in over duration.fast (0037); under reduced motion it only fades (0015)
6547
6602
  ])));
@@ -6553,12 +6608,12 @@ var Panel = /*#__PURE__*/styled__default.default.div.withConfig({
6553
6608
  },
6554
6609
  displayName: "Menu__Panel",
6555
6610
  componentId: "sc-13mple2-0"
6556
- })(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n position: fixed;\n inset: auto;\n top: 0;\n left: 0;\n margin: 0;\n box-sizing: border-box;\n min-width: ", ";\n max-width: ", ";\n max-height: ", ";\n overflow-y: auto;\n padding: ", " 0;\n background-color: ", ";\n color: ", ";\n border: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n animation: ", " ", " ", "\n ", ";\n\n ", " {\n animation: ", " ", " ", "\n ", ";\n }\n\n ", "\n\n &:focus {\n outline: none;\n }\n"], ["\n position: fixed;\n inset: auto;\n top: 0;\n left: 0;\n margin: 0;\n box-sizing: border-box;\n min-width: ", ";\n max-width: ", ";\n max-height: ", ";\n overflow-y: auto;\n padding: ", " 0;\n background-color: ", ";\n color: ", ";\n border: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n animation: ", " ", " ", "\n ", ";\n\n ", " {\n animation: ", " ", " ", "\n ", ";\n }\n\n ", "\n\n &:focus {\n outline: none;\n }\n"
6611
+ })(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n position: fixed;\n inset: auto;\n top: 0;\n left: 0;\n margin: 0;\n box-sizing: border-box;\n /* At least the trigger's width when matchTriggerWidth sets the variable, within the usual range */\n min-width: min(max(", ", var(", ", 0px)), ", ");\n max-width: ", ";\n max-height: ", ";\n overflow-y: auto;\n padding: ", " 0;\n background-color: ", ";\n color: ", ";\n border: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n animation: ", " ", " ", "\n ", ";\n\n ", " {\n animation: ", " ", " ", "\n ", ";\n }\n\n ", "\n\n &:focus {\n outline: none;\n }\n"], ["\n position: fixed;\n inset: auto;\n top: 0;\n left: 0;\n margin: 0;\n box-sizing: border-box;\n /* At least the trigger's width when matchTriggerWidth sets the variable, within the usual range */\n min-width: min(max(", ", var(", ", 0px)), ", ");\n max-width: ", ";\n max-height: ", ";\n overflow-y: auto;\n padding: ", " 0;\n background-color: ", ";\n color: ", ";\n border: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n animation: ", " ", " ", "\n ", ";\n\n ", " {\n animation: ", " ", " ", "\n ", ";\n }\n\n ", "\n\n &:focus {\n outline: none;\n }\n"
6557
6612
  // The trigger's wrapper takes no box of its own
6558
- ])), size$3[4500], size$3[7500], size$3.menu.maxHeight, space$8[100], semantic$a.surface.raised, color$5.text["default"], border$4["default"], radius$4.md, elevation$1.floating, enter, motion$5.duration.fast, motion$5.easing.decelerate, function (_a) {
6613
+ ])), size$5[4500], ANCHOR_WIDTH_VAR, size$5[7500], size$5[7500], size$5.menu.maxHeight, space$9[100], semantic$b.surface.overlay, color$5.text["default"], border$3["default"], radius$1.md, elevation$1.floating, enter, motion$6.duration.fast, motion$6.easing.decelerate, function (_a) {
6559
6614
  var $exiting = _a.$exiting;
6560
6615
  return $exiting ? exitAnimation : styled.css(templateObject_3$f || (templateObject_3$f = __makeTemplateObject([""], [""])));
6561
- }, reducedMotion, fade, motion$5.duration.fast, motion$5.easing.decelerate, function (_a) {
6616
+ }, reducedMotion, fade$1, motion$6.duration.fast, motion$6.easing.decelerate, function (_a) {
6562
6617
  var $exiting = _a.$exiting;
6563
6618
  return $exiting ? exitAnimation : styled.css(templateObject_4$d || (templateObject_4$d = __makeTemplateObject([""], [""])));
6564
6619
  }, forcedColorsEdge);
@@ -6587,6 +6642,8 @@ var Menu = function Menu(_a) {
6587
6642
  side = _c === void 0 ? 'bottom' : _c,
6588
6643
  _d = _a.align,
6589
6644
  align = _d === void 0 ? 'start' : _d,
6645
+ _e = _a.matchTriggerWidth,
6646
+ matchTriggerWidth = _e === void 0 ? false : _e,
6590
6647
  dataTestId = _a["data-testid"];
6591
6648
  var menuId = React.useId();
6592
6649
  var triggerId = React.useId();
@@ -6599,14 +6656,14 @@ var Menu = function Menu(_a) {
6599
6656
  text: '',
6600
6657
  timer: undefined
6601
6658
  });
6602
- var _e = React.useState(defaultOpen),
6603
- uncontrolledOpen = _e[0],
6604
- setUncontrolledOpen = _e[1];
6659
+ var _f = React.useState(defaultOpen),
6660
+ uncontrolledOpen = _f[0],
6661
+ setUncontrolledOpen = _f[1];
6605
6662
  var isControlled = openProp !== undefined;
6606
6663
  var isOpen = isControlled ? openProp : uncontrolledOpen;
6607
- var _f = usePresence(isOpen),
6608
- isPresent = _f.isPresent,
6609
- isExiting = _f.isExiting;
6664
+ var _g = usePresence(isOpen),
6665
+ isPresent = _g.isPresent,
6666
+ isExiting = _g.isExiting;
6610
6667
  var triggerElement = function triggerElement() {
6611
6668
  return laidOutElement(anchorRef.current);
6612
6669
  };
@@ -6657,6 +6714,7 @@ var Menu = function Menu(_a) {
6657
6714
  anchorRef: anchorRef,
6658
6715
  side: side,
6659
6716
  align: align,
6717
+ matchAnchorWidth: matchTriggerWidth,
6660
6718
  onDetach: detach
6661
6719
  });
6662
6720
  // Opening from the trigger focuses the first or last item. An open that didn't come from the
@@ -6783,13 +6841,13 @@ var Row$1 = /*#__PURE__*/styled__default.default.div.withConfig({
6783
6841
  },
6784
6842
  displayName: "Menu__Row",
6785
6843
  componentId: "sc-13mple2-2"
6786
- })(templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n min-height: ", ";\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n cursor: ", ";\n user-select: none;\n transition: background-color ", " ", ",\n color ", " ", ";\n\n /* The shared row states (0030): focus shows the hover state (0029); only checked items are\n light blue, with the checkmark so the state isn't colour alone */\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n min-height: ", ";\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n cursor: ", ";\n user-select: none;\n transition: background-color ", " ", ",\n color ", " ", ";\n\n /* The shared row states (0030): focus shows the hover state (0029); only checked items are\n light blue, with the checkmark so the state isn't colour alone */\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"])), space$8[200], size$3.row.sm, space$8.inset.xs, space$8.inset.md, typography$3.small, function (_a) {
6844
+ })(templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n min-height: ", ";\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n cursor: ", ";\n user-select: none;\n transition: background-color ", " ", ",\n color ", " ", ";\n\n /* The shared row states (0030): focus shows the hover state (0029); only checked items are\n light blue, with the checkmark so the state isn't colour alone */\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n min-height: ", ";\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n cursor: ", ";\n user-select: none;\n transition: background-color ", " ", ",\n color ", " ", ";\n\n /* The shared row states (0030): focus shows the hover state (0029); only checked items are\n light blue, with the checkmark so the state isn't colour alone */\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"])), space$9[200], size$5.row.sm, space$9.inset.xs, space$9.inset.md, typography$3.small, function (_a) {
6787
6845
  var $destructive = _a.$destructive;
6788
6846
  return $destructive ? color$5.text.danger : color$5.text["default"];
6789
6847
  }, function (_a) {
6790
6848
  var $disabled = _a.$disabled;
6791
6849
  return $disabled ? 'not-allowed' : 'pointer';
6792
- }, motion$5.duration.fast, motion$5.easing.decelerate, motion$5.duration.fast, motion$5.easing.decelerate, function (_a) {
6850
+ }, motion$6.duration.fast, motion$6.easing.decelerate, motion$6.duration.fast, motion$6.easing.decelerate, function (_a) {
6793
6851
  var $checked = _a.$checked,
6794
6852
  $focused = _a.$focused,
6795
6853
  $disabled = _a.$disabled;
@@ -6800,8 +6858,8 @@ var Row$1 = /*#__PURE__*/styled__default.default.div.withConfig({
6800
6858
  });
6801
6859
  }, function (_a) {
6802
6860
  var $disabled = _a.$disabled;
6803
- return $disabled && styled.css(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])), color$5.text.disabled);
6804
- }, border$4.focus, border$4.focusOffset);
6861
+ return $disabled && styled.css(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])), color$5.text.disabled);
6862
+ }, border$3.focus, border$3.focusOffset);
6805
6863
  var Leading = /*#__PURE__*/styled__default.default.span.withConfig({
6806
6864
  displayName: "Menu__Leading",
6807
6865
  componentId: "sc-13mple2-3"
@@ -6809,7 +6867,7 @@ var Leading = /*#__PURE__*/styled__default.default.span.withConfig({
6809
6867
  var Text = /*#__PURE__*/styled__default.default.span.withConfig({
6810
6868
  displayName: "Menu__Text",
6811
6869
  componentId: "sc-13mple2-4"
6812
- })(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0;\n"], ["\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0;\n"])));
6870
+ })(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0;\n"], ["\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0;\n"])));
6813
6871
  var Description = /*#__PURE__*/styled__default.default.span.withConfig({
6814
6872
  displayName: "Menu__Description",
6815
6873
  componentId: "sc-13mple2-5"
@@ -6943,7 +7001,7 @@ var GroupLabel = /*#__PURE__*/styled__default.default.div.withConfig({
6943
7001
  displayName: "Menu__GroupLabel",
6944
7002
  componentId: "sc-13mple2-8"
6945
7003
  })(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n"], ["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n"
6946
- /** Groups related items. Radio and checkbox items always sit in a group. */])), space$8.inset.xs, space$8.inset.md, typography$3.caption, color$5.text.muted);
7004
+ /** Groups related items. Radio and checkbox items always sit in a group. */])), space$9.inset.xs, space$9.inset.md, typography$3.caption, color$5.text.muted);
6947
7005
  /** Groups related items. Radio and checkbox items always sit in a group. */
6948
7006
  var MenuGroup = function MenuGroup(_a) {
6949
7007
  var label = _a.label,
@@ -6965,7 +7023,7 @@ var Separator = /*#__PURE__*/styled__default.default.div.withConfig({
6965
7023
  displayName: "Menu__Separator",
6966
7024
  componentId: "sc-13mple2-9"
6967
7025
  })(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject(["\n margin: ", " 0;\n border-top: ", ";\n"], ["\n margin: ", " 0;\n border-top: ", ";\n"
6968
- /** Separates groups */])), space$8[100], border$4["default"]);
7026
+ /** Separates groups */])), space$9[100], border$3["default"]);
6969
7027
  /** Separates groups */
6970
7028
  var MenuDivider = function MenuDivider() {
6971
7029
  return jsxRuntime.jsx(Separator, {
@@ -6978,7 +7036,7 @@ MenuItemRadio.displayName = 'MenuItemRadio';
6978
7036
  MenuItemCheckbox.displayName = 'MenuItemCheckbox';
6979
7037
  MenuGroup.displayName = 'MenuGroup';
6980
7038
  MenuDivider.displayName = 'MenuDivider';
6981
- var templateObject_1$f, templateObject_2$f, templateObject_3$f, templateObject_4$d, templateObject_5$b, templateObject_6$a, templateObject_7$8, templateObject_8$7, templateObject_9$6, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1;
7039
+ var templateObject_1$g, templateObject_2$g, templateObject_3$f, templateObject_4$d, templateObject_5$b, templateObject_6$a, templateObject_7$9, templateObject_8$7, templateObject_9$6, templateObject_10$4, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1;
6982
7040
 
6983
7041
  var SidebarNavContext = /*#__PURE__*/React.createContext({
6984
7042
  collapsed: false,
@@ -6988,13 +7046,72 @@ var useSidebarNav = function useSidebarNav() {
6988
7046
  return React.useContext(SidebarNavContext);
6989
7047
  };
6990
7048
 
7049
+ // How SidebarNav's pieces move between expanded and the rail (issue 348), shared by the nav, its rows
7050
+ // and its sections so they move as one: nothing unmounts or re-lays out mid-move.
7051
+ var semantic$a = tokens.semantic,
7052
+ component$2 = tokens.component;
7053
+ var motion$5 = semantic$a.motion,
7054
+ space$8 = semantic$a.space,
7055
+ size$4 = semantic$a.size;
7056
+ /**
7057
+ * SidebarNav sets this on itself: its expanded width. Content inside keeps that width while the nav
7058
+ * narrows, so the nav's edge clips it instead of it reflowing or ellipsising mid-move.
7059
+ */
7060
+ var EXPANDED_WIDTH_VAR = '--co-sidebar-nav-expanded';
7061
+ /**
7062
+ * SidebarNav sets this to its body's scrollbar width (0 for overlay scrollbars), measured while
7063
+ * expanded, since a classic scrollbar narrows every row
7064
+ */
7065
+ var SCROLLBAR_VAR = '--co-sidebar-nav-scrollbar';
7066
+ /** The nav's own side padding: the rail's inner width is the rail less twice this */
7067
+ var NAV_PADDING = space$8[200];
7068
+ /** A row's left inset: centres an icon in the rail, and stays the same expanded, so icons never move */
7069
+ var ROW_INSET = "calc((".concat(component$2.sidebarNav.width.rail, " - 2 * ").concat(NAV_PADDING, " - ").concat(size$4.icon.md, ") / 2)");
7070
+ /**
7071
+ * Fades content that the rail doesn't show (labels, meta text, the badge count, the header and
7072
+ * footer). Leaving is quick and accelerates; arriving decelerates over the width's duration (0037).
7073
+ * Hidden content also leaves the keyboard and screen readers once the fade ends.
7074
+ */
7075
+ var fade = function fade(hidden) {
7076
+ return styled.css(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n opacity: ", ";\n /* Shown content inherits, so anything hidden around it (a folded section) still wins */\n visibility: ", ";\n transition: ", ";\n"], ["\n opacity: ", ";\n /* Shown content inherits, so anything hidden around it (a folded section) still wins */\n visibility: ", ";\n transition: ", ";\n"
7077
+ /**
7078
+ * Folds something away (its height animates to nothing, with a fade), for what the rail leaves out:
7079
+ * a section's header, a section with nothing to show, an item without an icon. Under reduced motion
7080
+ * the height changes at once and only the fade remains (0015).
7081
+ */])), hidden ? 0 : 1, hidden ? 'hidden' : 'inherit', hidden ? "opacity ".concat(motion$5.duration.fast, " ").concat(motion$5.easing.accelerate, ", visibility ").concat(motion$5.duration.fast, " ").concat(motion$5.easing.accelerate) : "opacity ".concat(motion$5.duration.moderate, " ").concat(motion$5.easing.decelerate, ", visibility ").concat(motion$5.duration.moderate, " ").concat(motion$5.easing.decelerate));
7082
+ };
7083
+ /**
7084
+ * Folds something away (its height animates to nothing, with a fade), for what the rail leaves out:
7085
+ * a section's header, a section with nothing to show, an item without an icon. Under reduced motion
7086
+ * the height changes at once and only the fade remains (0015).
7087
+ */
7088
+ var Fold = /*#__PURE__*/styled__default.default.div.withConfig({
7089
+ shouldForwardProp: function shouldForwardProp(prop) {
7090
+ return !prop.startsWith('$');
7091
+ },
7092
+ displayName: "sidebarNavMotion__Fold",
7093
+ componentId: "sc-1h4byrj-0"
7094
+ })(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n display: grid;\n grid-template-rows: ", ";\n ", "\n transition: grid-template-rows ", " ", ",\n ", ";\n\n /* Clipped only while folded: once open, focus rings outside a control aren't cut off */\n & > * {\n min-height: 0;\n overflow: ", ";\n }\n\n ", " {\n transition: opacity ", " ", ",\n visibility ", " ", ";\n }\n"], ["\n display: grid;\n grid-template-rows: ", ";\n ", "\n transition: grid-template-rows ", " ", ",\n ", ";\n\n /* Clipped only while folded: once open, focus rings outside a control aren't cut off */\n & > * {\n min-height: 0;\n overflow: ", ";\n }\n\n ", " {\n transition: opacity ", " ", ",\n visibility ", " ", ";\n }\n"])), function (_a) {
7095
+ var $open = _a.$open;
7096
+ return $open ? '1fr' : '0fr';
7097
+ }, function (_a) {
7098
+ var $open = _a.$open;
7099
+ return fade(!$open);
7100
+ }, motion$5.duration.moderate, motion$5.easing.decelerate, function (_a) {
7101
+ var $open = _a.$open;
7102
+ return $open ? "opacity ".concat(motion$5.duration.moderate, " ").concat(motion$5.easing.decelerate, ", visibility ").concat(motion$5.duration.moderate, " ").concat(motion$5.easing.decelerate) : "opacity ".concat(motion$5.duration.fast, " ").concat(motion$5.easing.accelerate, ", visibility ").concat(motion$5.duration.moderate, " ").concat(motion$5.easing.accelerate);
7103
+ }, function (_a) {
7104
+ var $open = _a.$open;
7105
+ return $open ? 'visible' : 'hidden';
7106
+ }, reducedMotion, motion$5.duration.fast, motion$5.easing.decelerate, motion$5.duration.fast, motion$5.easing.decelerate);
7107
+ var templateObject_1$f, templateObject_2$f;
7108
+
6991
7109
  var semantic$9 = tokens.semantic;
6992
7110
  var space$7 = semantic$9.space,
6993
7111
  color$4 = semantic$9.color,
6994
7112
  motion$4 = semantic$9.motion,
6995
- radius$3 = semantic$9.radius,
6996
- size$2 = semantic$9.size,
6997
- border$3 = semantic$9.border,
7113
+ size$3 = semantic$9.size,
7114
+ border$2 = semantic$9.border,
6998
7115
  typography$2 = semantic$9.typography;
6999
7116
  // Anything without a scheme (https:, mailto:) or a protocol-relative start is the app's own URL,
7000
7117
  // relative ones included, so it goes through the router's link
@@ -7007,7 +7124,10 @@ var Row = /*#__PURE__*/styled__default.default.a.withConfig({
7007
7124
  },
7008
7125
  displayName: "SidebarNavItem__Row",
7009
7126
  componentId: "sc-1nfqk5n-0"
7010
- })(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n width: 100%;\n /* The row's height is its token, with the content centred (as controls, 0034): vertical\n padding would hold a compact row above its 24px (0051) */\n min-height: ", ";\n padding: 0 ", ";\n border: none;\n border-radius: ", ";\n background: none;\n font: ", ";\n color: ", ";\n text-align: left;\n text-decoration: none;\n cursor: pointer;\n transition: background-color ", " ", ",\n color ", " ", ";\n\n /* The shared row states (0030); the current page takes the light-blue selected ladder */\n ", "\n\n /* Inside SidebarNav one highlight glides to the hovered row, so an unselected row stays clear\n underneath it; pressed and selected rows keep their own fills (0053) */\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n width: 100%;\n /* The row's height is its token, with the content centred (as controls, 0034): vertical\n padding would hold a compact row above its 24px (0051) */\n min-height: ", ";\n padding: 0 ", ";\n border: none;\n border-radius: ", ";\n background: none;\n font: ", ";\n color: ", ";\n text-align: left;\n text-decoration: none;\n cursor: pointer;\n transition: background-color ", " ", ",\n color ", " ", ";\n\n /* The shared row states (0030); the current page takes the light-blue selected ladder */\n ", "\n\n /* Inside SidebarNav one highlight glides to the hovered row, so an unselected row stays clear\n underneath it; pressed and selected rows keep their own fills (0053) */\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"])), space$7[200], size$2.row.sm, space$7.inset.sm, radius$3.sm, typography$2.small, color$4.text["default"], motion$4.duration.fast, motion$4.easing.decelerate, motion$4.duration.fast, motion$4.easing.decelerate, function (_a) {
7127
+ })(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n width: 100%;\n /* The row's height is its token, with the content centred (as controls, 0034): vertical\n padding would hold a compact row above its 24px (0051) */\n min-height: ", ";\n /* The left inset is the same expanded and in the rail, so the icon never moves (issue 348); the row\n clips what the rail doesn't show as the nav narrows */\n padding: 0 ", " 0 ", ";\n overflow: hidden;\n border: none;\n border-radius: ", ";\n background: none;\n font: ", ";\n color: ", ";\n text-align: left;\n text-decoration: none;\n cursor: pointer;\n transition: background-color ", " ", ",\n color ", " ", ";\n\n /* The shared row states (0030); the current page takes the light-blue selected ladder */\n ", "\n\n /* Inside SidebarNav one highlight glides to the hovered row, so an unselected row stays clear\n underneath it; pressed and selected rows keep their own fills (0053) */\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n width: 100%;\n /* The row's height is its token, with the content centred (as controls, 0034): vertical\n padding would hold a compact row above its 24px (0051) */\n min-height: ", ";\n /* The left inset is the same expanded and in the rail, so the icon never moves (issue 348); the row\n clips what the rail doesn't show as the nav narrows */\n padding: 0 ", " 0 ", ";\n overflow: hidden;\n border: none;\n border-radius: ", ";\n background: none;\n font: ", ";\n color: ", ";\n text-align: left;\n text-decoration: none;\n cursor: pointer;\n transition: background-color ", " ", ",\n color ", " ", ";\n\n /* The shared row states (0030); the current page takes the light-blue selected ladder */\n ", "\n\n /* Inside SidebarNav one highlight glides to the hovered row, so an unselected row stays clear\n underneath it; pressed and selected rows keep their own fills (0053) */\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"
7128
+ // The row's content keeps the nav's expanded width (when it's in a SidebarNav), so the nav's edge
7129
+ // clips it as the nav narrows, instead of the label reflowing or ellipsising mid-move
7130
+ ])), space$7[200], size$3.row.sm, space$7.inset.sm, ROW_INSET, rowRadius, typography$2.small, color$4.text["default"], motion$4.duration.fast, motion$4.easing.decelerate, motion$4.duration.fast, motion$4.easing.decelerate, function (_a) {
7011
7131
  var $current = _a.$current;
7012
7132
  return interactiveRow({
7013
7133
  selected: $current
@@ -7016,25 +7136,88 @@ var Row = /*#__PURE__*/styled__default.default.a.withConfig({
7016
7136
  var $glide = _a.$glide,
7017
7137
  $current = _a.$current;
7018
7138
  return $glide && !$current && styled.css(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n &:hover:not(:active) {\n background-color: transparent;\n }\n "], ["\n &:hover:not(:active) {\n background-color: transparent;\n }\n "])));
7019
- }, function (_a) {
7020
- var $collapsed = _a.$collapsed;
7021
- return $collapsed && styled.css(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n justify-content: center;\n padding: 0 ", ";\n "], ["\n justify-content: center;\n padding: 0 ", ";\n "])), space$7.inset.xs);
7022
- }, border$3.focus, border$3.focusOffset);
7139
+ }, border$2.focus, border$2.focusOffset);
7140
+ // The row's content keeps the nav's expanded width (when it's in a SidebarNav), so the nav's edge
7141
+ // clips it as the nav narrows, instead of the label reflowing or ellipsising mid-move
7142
+ var Inner = /*#__PURE__*/styled__default.default.span.withConfig({
7143
+ shouldForwardProp: function shouldForwardProp(prop) {
7144
+ return !prop.startsWith('$');
7145
+ },
7146
+ displayName: "SidebarNavItem__Inner",
7147
+ componentId: "sc-1nfqk5n-1"
7148
+ })(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n display: flex;\n flex: 1 0 auto;\n align-items: center;\n gap: ", ";\n min-width: 0;\n /* The row's content width when expanded: the nav's width less any scrollbar, its padding, the row's\n insets and, beside an icon, the icon and its gap */\n width: calc(\n var(", ", 0px) - var(", ", 0px) - 2 * ", " - ", " - ", "\n ", "\n );\n"], ["\n display: flex;\n flex: 1 0 auto;\n align-items: center;\n gap: ", ";\n min-width: 0;\n /* The row's content width when expanded: the nav's width less any scrollbar, its padding, the row's\n insets and, beside an icon, the icon and its gap */\n width: calc(\n var(", ", 0px) - var(", ", 0px) - 2 * ", " - ", " - ", "\n ", "\n );\n"])), space$7[200], EXPANDED_WIDTH_VAR, SCROLLBAR_VAR, NAV_PADDING, ROW_INSET, space$7.inset.sm, function (_a) {
7149
+ var $withIcon = _a.$withIcon;
7150
+ return $withIcon ? "- ".concat(size$3.icon.md, " - ").concat(space$7[200]) : '';
7151
+ });
7023
7152
  var Label = /*#__PURE__*/styled__default.default.span.withConfig({
7153
+ shouldForwardProp: function shouldForwardProp(prop) {
7154
+ return !prop.startsWith('$');
7155
+ },
7024
7156
  displayName: "SidebarNavItem__Label",
7025
- componentId: "sc-1nfqk5n-1"
7026
- })(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"], ["\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"])));
7157
+ componentId: "sc-1nfqk5n-2"
7158
+ })(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n ", "\n"], ["\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n ", "\n"])), function (_a) {
7159
+ var $hidden = _a.$hidden;
7160
+ return fade($hidden);
7161
+ });
7027
7162
  var Meta = /*#__PURE__*/styled__default.default.span.withConfig({
7163
+ shouldForwardProp: function shouldForwardProp(prop) {
7164
+ return !prop.startsWith('$');
7165
+ },
7028
7166
  displayName: "SidebarNavItem__Meta",
7029
- componentId: "sc-1nfqk5n-2"
7030
- })(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n flex-shrink: 0;\n font: ", ";\n color: ", ";\n"], ["\n flex-shrink: 0;\n font: ", ";\n color: ", ";\n"
7167
+ componentId: "sc-1nfqk5n-3"
7168
+ })(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n flex-shrink: 0;\n font: ", ";\n color: ", ";\n ", "\n"], ["\n flex-shrink: 0;\n font: ", ";\n color: ", ";\n ", "\n"
7031
7169
  // A badge needs something to sit on: the icon, or this mark at the end of an item without one
7032
- ])), typography$2.caption, color$4.text.muted);
7170
+ // Badge normally sits centred on its anchor's top-right corner (0045). At the end of the row the
7171
+ // count is laid out in place instead, so a count of any width ("3", "12", "99+") stays inside the
7172
+ // row in every density and never reaches the rows around it
7173
+ ])), typography$2.caption, color$4.text.muted, function (_a) {
7174
+ var $hidden = _a.$hidden;
7175
+ return fade($hidden);
7176
+ });
7033
7177
  // A badge needs something to sit on: the icon, or this mark at the end of an item without one
7034
- var BadgeAnchor = /*#__PURE__*/styled__default.default.span.withConfig({
7035
- displayName: "SidebarNavItem__BadgeAnchor",
7036
- componentId: "sc-1nfqk5n-3"
7037
- })(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: inline-flex;\n flex-shrink: 0;\n"], ["\n display: inline-flex;\n flex-shrink: 0;\n"
7178
+ // Badge normally sits centred on its anchor's top-right corner (0045). At the end of the row the
7179
+ // count is laid out in place instead, so a count of any width ("3", "12", "99+") stays inside the
7180
+ // row in every density and never reaches the rows around it
7181
+ var EndSlot = /*#__PURE__*/styled__default.default.span.withConfig({
7182
+ shouldForwardProp: function shouldForwardProp(prop) {
7183
+ return !prop.startsWith('$');
7184
+ },
7185
+ displayName: "SidebarNavItem__EndSlot",
7186
+ componentId: "sc-1nfqk5n-4"
7187
+ })(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: inline-flex;\n flex-shrink: 0;\n ", "\n\n & [role='status'] {\n position: static;\n transform: none;\n }\n"], ["\n display: inline-flex;\n flex-shrink: 0;\n ", "\n\n & [role='status'] {\n position: static;\n transform: none;\n }\n"])), function (_a) {
7188
+ var $hidden = _a.$hidden;
7189
+ return fade($hidden);
7190
+ });
7191
+ var EndAnchor = /*#__PURE__*/styled__default.default.span.withConfig({
7192
+ displayName: "SidebarNavItem__EndAnchor",
7193
+ componentId: "sc-1nfqk5n-5"
7194
+ })(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n display: inline-flex;\n width: 0;\n height: 0;\n"], ["\n display: inline-flex;\n width: 0;\n height: 0;\n"
7195
+ // In the rail there's no room for a count, so a dot sits inside the icon's top-right corner
7196
+ ])));
7197
+ // In the rail there's no room for a count, so a dot sits inside the icon's top-right corner
7198
+ var IconBox = /*#__PURE__*/styled__default.default.span.withConfig({
7199
+ displayName: "SidebarNavItem__IconBox",
7200
+ componentId: "sc-1nfqk5n-6"
7201
+ })(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n flex-shrink: 0;\n"], ["\n position: relative;\n display: inline-flex;\n flex-shrink: 0;\n"])));
7202
+ var Corner = /*#__PURE__*/styled__default.default.span.withConfig({
7203
+ shouldForwardProp: function shouldForwardProp(prop) {
7204
+ return !prop.startsWith('$');
7205
+ },
7206
+ displayName: "SidebarNavItem__Corner",
7207
+ componentId: "sc-1nfqk5n-7"
7208
+ })(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\n position: absolute;\n top: 25%;\n right: 25%;\n display: inline-flex;\n ", "\n"], ["\n position: absolute;\n top: 25%;\n right: 25%;\n display: inline-flex;\n ", "\n"
7209
+ // An item folds away in the rail when it has no icon to show there
7210
+ ])), function (_a) {
7211
+ var $hidden = _a.$hidden;
7212
+ return fade($hidden);
7213
+ });
7214
+ // An item folds away in the rail when it has no icon to show there
7215
+ var Item = /*#__PURE__*/styled__default.default(Fold).attrs({
7216
+ as: 'li'
7217
+ }).withConfig({
7218
+ displayName: "SidebarNavItem__Item",
7219
+ componentId: "sc-1nfqk5n-8"
7220
+ })(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject([""], [""
7038
7221
  /**
7039
7222
  * One row of a SidebarNav (#327): a link to a page, or a button for an action such as "New chat".
7040
7223
  * Renders an `li`, so it sits in SidebarNav's or a SidebarNavSection's list.
@@ -7058,39 +7241,52 @@ var SidebarNavItem = function SidebarNavItem(_a) {
7058
7241
  collapsed = _c.collapsed,
7059
7242
  linkComponent = _c.linkComponent,
7060
7243
  glide = _c.glide;
7061
- // The rail shows icons only: an item without one has nothing to show there
7062
- if (collapsed && !icon) return null;
7063
7244
  var hasBadge = badge === 'dot' || typeof badge === 'number' && badge > 0;
7064
7245
  var badgeText = badgeLabel !== null && badgeLabel !== void 0 ? badgeLabel : badge === 'dot' ? 'new' : "".concat(badge, " new");
7065
7246
  // The badge's own text would make a noisy name, so a badged item is named outright; so is an
7066
7247
  // item in the rail, where the label isn't shown
7067
7248
  var name = hasBadge ? "".concat(label, ", ").concat(badgeText) : collapsed ? label : undefined;
7068
- var withBadge = function withBadge(anchor) {
7069
- return hasBadge ? jsxRuntime.jsx(Badge, {
7070
- variant: "accent",
7071
- dot: badge === 'dot',
7072
- count: typeof badge === 'number' ? badge : 0,
7073
- "aria-label": badgeText,
7074
- children: anchor
7075
- }) : anchor;
7076
- };
7249
+ var count = typeof badge === 'number' ? badge : 0;
7250
+ // Everything stays mounted and fades, so collapsing and expanding never jump (issue 348). Hidden
7251
+ // content leaves screen readers once its fade ends; the rail names the row with aria-label.
7077
7252
  var content = jsxRuntime.jsxs(jsxRuntime.Fragment, {
7078
- children: [icon && withBadge(jsxRuntime.jsx(Icon, {
7079
- name: icon,
7080
- size: "md",
7081
- iconColor: "inherit"
7082
- })), !collapsed && jsxRuntime.jsxs(jsxRuntime.Fragment, {
7253
+ children: [icon && jsxRuntime.jsxs(IconBox, {
7254
+ children: [jsxRuntime.jsx(Icon, {
7255
+ name: icon,
7256
+ size: "md",
7257
+ iconColor: "inherit"
7258
+ }), hasBadge && jsxRuntime.jsx(Corner, {
7259
+ "$hidden": !collapsed,
7260
+ children: jsxRuntime.jsx(Badge, {
7261
+ variant: "accent",
7262
+ dot: true,
7263
+ "aria-label": badgeText,
7264
+ children: jsxRuntime.jsx("span", {})
7265
+ })
7266
+ })]
7267
+ }), jsxRuntime.jsxs(Inner, {
7268
+ "$withIcon": Boolean(icon),
7083
7269
  children: [jsxRuntime.jsx(Label, {
7270
+ "$hidden": collapsed,
7084
7271
  children: label
7085
7272
  }), meta && jsxRuntime.jsx(Meta, {
7273
+ "$hidden": collapsed,
7086
7274
  children: meta
7087
- }), !icon && hasBadge && withBadge(jsxRuntime.jsx(BadgeAnchor, {}))]
7275
+ }), hasBadge && jsxRuntime.jsx(EndSlot, {
7276
+ "$hidden": collapsed,
7277
+ children: jsxRuntime.jsx(Badge, {
7278
+ variant: "accent",
7279
+ dot: badge === 'dot',
7280
+ count: count,
7281
+ "aria-label": badgeText,
7282
+ children: jsxRuntime.jsx(EndAnchor, {})
7283
+ })
7284
+ })]
7088
7285
  })]
7089
7286
  });
7090
7287
  var shared = {
7091
7288
  $current: current,
7092
7289
  $glide: glide,
7093
- $collapsed: collapsed,
7094
7290
  // The icon is decorative (0028)
7095
7291
  'aria-label': name,
7096
7292
  'data-testid': dataTestId,
@@ -7111,16 +7307,24 @@ var SidebarNavItem = function SidebarNavItem(_a) {
7111
7307
  type: "button",
7112
7308
  children: content
7113
7309
  }));
7114
- return jsxRuntime.jsx("li", {
7115
- children: collapsed ? jsxRuntime.jsx(Tooltip, {
7116
- text: label,
7117
- side: "right",
7118
- children: row
7119
- }) : row
7120
- });
7310
+ return (
7311
+ // The Tooltip is always there, turned off while the label is visible, so collapsing never
7312
+ // remounts the row (which would lose focus and skip its transitions)
7313
+ jsxRuntime.jsx(Item, {
7314
+ "$open": !collapsed || Boolean(icon),
7315
+ children: jsxRuntime.jsx("div", {
7316
+ children: jsxRuntime.jsx(Tooltip, {
7317
+ text: label,
7318
+ side: "right",
7319
+ disabled: !collapsed,
7320
+ children: row
7321
+ })
7322
+ })
7323
+ })
7324
+ );
7121
7325
  };
7122
7326
  SidebarNavItem.displayName = 'SidebarNavItem';
7123
- var templateObject_1$e, templateObject_2$e, templateObject_3$e, templateObject_4$c, templateObject_5$a, templateObject_6$9;
7327
+ var templateObject_1$e, templateObject_2$e, templateObject_3$e, templateObject_4$c, templateObject_5$a, templateObject_6$9, templateObject_7$8, templateObject_8$6, templateObject_9$5, templateObject_10$3;
7124
7328
 
7125
7329
  // How long the items take to show or hide: the clip lifts after this even if no transition ran
7126
7330
  // (reduced motion, or a background tab)
@@ -7129,46 +7333,44 @@ var semantic$8 = tokens.semantic;
7129
7333
  var space$6 = semantic$8.space,
7130
7334
  color$3 = semantic$8.color,
7131
7335
  motion$3 = semantic$8.motion,
7132
- radius$2 = semantic$8.radius,
7133
- size$1 = semantic$8.size,
7134
- border$2 = semantic$8.border,
7336
+ size$2 = semantic$8.size,
7337
+ border$1 = semantic$8.border,
7135
7338
  typography$1 = semantic$8.typography;
7136
- var Section = /*#__PURE__*/styled__default.default.div.withConfig({
7339
+ // The space above a section is the same expanded and in the rail, so the switch never shifts rows;
7340
+ // only the rule's colour changes: clear when the label separates the section, visible in the rail,
7341
+ // where there's no label (issue 348)
7342
+ var Section = /*#__PURE__*/styled__default.default(Fold).withConfig({
7137
7343
  shouldForwardProp: function shouldForwardProp(prop) {
7138
7344
  return !prop.startsWith('$');
7139
7345
  },
7140
7346
  displayName: "SidebarNavSection__Section",
7141
7347
  componentId: "sc-16cbmnb-0"
7142
- })(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n /* In the rail there's no label, so a rule separates sections */\n ", "\n"], ["\n /* In the rail there's no label, so a rule separates sections */\n ", "\n"])), function (_a) {
7348
+ })(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n margin-top: ", ";\n padding-top: ", ";\n border-top: ", " solid ", ";\n\n /* Nothing above to separate it from */\n &:first-child {\n margin-top: 0;\n padding-top: 0;\n border-top: none;\n }\n"], ["\n margin-top: ", ";\n padding-top: ", ";\n border-top: ", " solid ", ";\n\n /* Nothing above to separate it from */\n &:first-child {\n margin-top: 0;\n padding-top: 0;\n border-top: none;\n }\n"])), space$6[200], space$6[100], border$1.width.thin, function (_a) {
7143
7349
  var $collapsed = _a.$collapsed;
7144
- return $collapsed && styled.css(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n border-top: ", ";\n padding-top: ", ";\n margin-top: ", ";\n\n /* Nothing above to separate it from */\n &:first-child {\n border-top: none;\n padding-top: 0;\n margin-top: 0;\n }\n "], ["\n border-top: ", ";\n padding-top: ", ";\n margin-top: ", ";\n\n /* Nothing above to separate it from */\n &:first-child {\n border-top: none;\n padding-top: 0;\n margin-top: 0;\n }\n "])), border$2["default"], space$6[100], space$6[100]);
7350
+ return $collapsed ? color$3.border["default"] : 'transparent';
7145
7351
  });
7146
7352
  var Header$1 = /*#__PURE__*/styled__default.default.div.withConfig({
7147
7353
  displayName: "SidebarNavSection__Header",
7148
7354
  componentId: "sc-16cbmnb-1"
7149
- })(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n min-height: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n min-height: ", ";\n"
7355
+ })(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n min-height: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n min-height: ", ";\n"
7150
7356
  // The label's look: quiet, small and muted, so the items lead
7151
- ])), space$6[100], size$1.row.sm);
7357
+ ])), space$6[100], size$2.row.sm);
7152
7358
  // The label's look: quiet, small and muted, so the items lead
7153
- var labelText = styled.css(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), typography$1.caption, color$3.text.muted);
7359
+ var labelText = styled.css(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), typography$1.caption, color$3.text.muted);
7154
7360
  var StaticLabel = /*#__PURE__*/styled__default.default.div.withConfig({
7155
7361
  displayName: "SidebarNavSection__StaticLabel",
7156
7362
  componentId: "sc-16cbmnb-2"
7157
- })(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n ", "\n flex: 1;\n min-width: 0;\n padding: 0 ", ";\n"], ["\n ", "\n flex: 1;\n min-width: 0;\n padding: 0 ", ";\n"])), labelText, space$6.inset.sm);
7158
- var HiddenLabel = /*#__PURE__*/styled__default.default.div.withConfig({
7159
- displayName: "SidebarNavSection__HiddenLabel",
7160
- componentId: "sc-16cbmnb-3"
7161
- })(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), visuallyHidden);
7363
+ })(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n ", "\n flex: 1;\n min-width: 0;\n padding: 0 ", ";\n"], ["\n ", "\n flex: 1;\n min-width: 0;\n padding: 0 ", ";\n"])), labelText, space$6.inset.sm);
7162
7364
  var Disclosure = /*#__PURE__*/styled__default.default.button.withConfig({
7163
7365
  shouldForwardProp: function shouldForwardProp(prop) {
7164
7366
  return !prop.startsWith('$');
7165
7367
  },
7166
7368
  displayName: "SidebarNavSection__Disclosure",
7167
- componentId: "sc-16cbmnb-4"
7168
- })(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n gap: ", ";\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n min-height: ", ";\n padding: 0 ", ";\n border: none;\n border-radius: ", ";\n background: none;\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n\n /* The caret points down when shown and right when hidden */\n & > span:first-child {\n transition: transform ", " ", ";\n transform: rotate(", ");\n }\n\n ", " {\n & > span:first-child {\n transition: none;\n }\n }\n"], ["\n ", "\n display: flex;\n align-items: center;\n gap: ", ";\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n min-height: ", ";\n padding: 0 ", ";\n border: none;\n border-radius: ", ";\n background: none;\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n\n /* The caret points down when shown and right when hidden */\n & > span:first-child {\n transition: transform ", " ", ";\n transform: rotate(", ");\n }\n\n ", " {\n & > span:first-child {\n transition: none;\n }\n }\n"
7369
+ componentId: "sc-16cbmnb-3"
7370
+ })(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n gap: ", ";\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n min-height: ", ";\n padding: 0 ", ";\n border: none;\n border-radius: ", ";\n background: none;\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n\n /* The caret points down when shown and right when hidden */\n & > span:first-child {\n transition: transform ", " ", ";\n transform: rotate(", ");\n }\n\n ", " {\n & > span:first-child {\n transition: none;\n }\n }\n"], ["\n ", "\n display: flex;\n align-items: center;\n gap: ", ";\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n min-height: ", ";\n padding: 0 ", ";\n border: none;\n border-radius: ", ";\n background: none;\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n\n /* The caret points down when shown and right when hidden */\n & > span:first-child {\n transition: transform ", " ", ";\n transform: rotate(", ");\n }\n\n ", " {\n & > span:first-child {\n transition: none;\n }\n }\n"
7169
7371
  // The items' height animates from nothing to their own height with grid rows, so no
7170
7372
  // "no limit" max-height is needed. Once hidden, the items leave the keyboard and screen readers.
7171
- ])), labelText, space$6[100], size$1.row.sm, space$6.inset.sm, radius$2.sm, motion$3.duration.fast, motion$3.easing.decelerate, interactiveRow(), border$2.focus, border$2.focusOffset, motion$3.duration.fast, motion$3.easing.standard, function (_a) {
7373
+ ])), labelText, space$6[100], size$2.row.sm, space$6.inset.sm, rowRadius, motion$3.duration.fast, motion$3.easing.decelerate, interactiveRow(), border$1.focus, border$1.focusOffset, motion$3.duration.fast, motion$3.easing.standard, function (_a) {
7172
7374
  var $expanded = _a.$expanded;
7173
7375
  return $expanded ? '0deg' : '-90deg';
7174
7376
  }, reducedMotion);
@@ -7179,24 +7381,27 @@ var Collapse = /*#__PURE__*/styled__default.default.div.withConfig({
7179
7381
  return !prop.startsWith('$');
7180
7382
  },
7181
7383
  displayName: "SidebarNavSection__Collapse",
7182
- componentId: "sc-16cbmnb-5"
7183
- })(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["\n display: grid;\n grid-template-rows: ", ";\n visibility: ", ";\n transition: grid-template-rows ", " ", ",\n visibility ", " ", ";\n\n ", " {\n transition: none;\n }\n"], ["\n display: grid;\n grid-template-rows: ", ";\n visibility: ", ";\n transition: grid-template-rows ", " ", ",\n visibility ", " ", ";\n\n ", " {\n transition: none;\n }\n"
7384
+ componentId: "sc-16cbmnb-4"
7385
+ })(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n display: grid;\n grid-template-rows: ", ";\n opacity: ", ";\n /* Shown items inherit, so a section folded away in the rail hides them too */\n visibility: ", ";\n /* The items fold and fade together (issue 348) */\n transition: grid-template-rows ", " ", ",\n opacity ", " ", ",\n visibility ", " ", ";\n\n ", " {\n transition: opacity ", " ", ",\n visibility ", " ", ";\n }\n"], ["\n display: grid;\n grid-template-rows: ", ";\n opacity: ", ";\n /* Shown items inherit, so a section folded away in the rail hides them too */\n visibility: ", ";\n /* The items fold and fade together (issue 348) */\n transition: grid-template-rows ", " ", ",\n opacity ", " ", ",\n visibility ", " ", ";\n\n ", " {\n transition: opacity ", " ", ",\n visibility ", " ", ";\n }\n"
7184
7386
  // Clipped only while hidden or moving: once shown, an item's Badge can overhang its row
7185
7387
  ])), function (_a) {
7186
7388
  var $expanded = _a.$expanded;
7187
7389
  return $expanded ? '1fr' : '0fr';
7188
7390
  }, function (_a) {
7189
7391
  var $expanded = _a.$expanded;
7190
- return $expanded ? 'visible' : 'hidden';
7191
- }, motion$3.duration.moderate, motion$3.easing.standard, motion$3.duration.moderate, motion$3.easing.standard, reducedMotion);
7392
+ return $expanded ? 1 : 0;
7393
+ }, function (_a) {
7394
+ var $expanded = _a.$expanded;
7395
+ return $expanded ? 'inherit' : 'hidden';
7396
+ }, motion$3.duration.moderate, motion$3.easing.decelerate, motion$3.duration.moderate, motion$3.easing.decelerate, motion$3.duration.moderate, motion$3.easing.decelerate, reducedMotion, motion$3.duration.fast, motion$3.easing.decelerate, motion$3.duration.fast, motion$3.easing.decelerate);
7192
7397
  // Clipped only while hidden or moving: once shown, an item's Badge can overhang its row
7193
7398
  var List$1 = /*#__PURE__*/styled__default.default.ul.withConfig({
7194
7399
  shouldForwardProp: function shouldForwardProp(prop) {
7195
7400
  return !prop.startsWith('$');
7196
7401
  },
7197
7402
  displayName: "SidebarNavSection__List",
7198
- componentId: "sc-16cbmnb-6"
7199
- })(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\n min-height: 0;\n overflow: ", ";\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n"], ["\n min-height: 0;\n overflow: ", ";\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n"
7403
+ componentId: "sc-16cbmnb-5"
7404
+ })(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n min-height: 0;\n overflow: ", ";\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n"], ["\n min-height: 0;\n overflow: ", ";\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n"
7200
7405
  /**
7201
7406
  * A labelled group of SidebarNavItems (#328), optionally collapsible, with one optional action.
7202
7407
  * In the rail its label and action are hidden and a rule separates it from the section above.
@@ -7249,12 +7454,14 @@ var SidebarNavSection = function SidebarNavSection(_a) {
7249
7454
  if (!isControlled) setUncontrolledExpanded(next);
7250
7455
  onExpandedChange === null || onExpandedChange === void 0 ? void 0 : onExpandedChange(next);
7251
7456
  };
7252
- var header = collapsed ?
7253
- // The rail shows no label, but the list keeps its name
7254
- jsxRuntime.jsx(HiddenLabel, {
7255
- id: labelId,
7256
- children: label
7257
- }) : jsxRuntime.jsxs(Header$1, {
7457
+ // The rail shows items by their icons only; a section with none has nothing to show there, so it
7458
+ // isn't drawn at all, not even its separating rule. Items wrapped in other components count as
7459
+ // showing, since their icons can't be seen from here.
7460
+ var showsInRail = React__default.default.Children.toArray(children).some(function (child) {
7461
+ return ! /*#__PURE__*/React__default.default.isValidElement(child) || child.type !== SidebarNavItem || Boolean(child.props.icon);
7462
+ });
7463
+ // The header stays mounted, folding away in the rail; the list keeps its name from it there
7464
+ var header = jsxRuntime.jsxs(Header$1, {
7258
7465
  children: [collapsible ? jsxRuntime.jsxs(Disclosure, {
7259
7466
  type: "button",
7260
7467
  id: labelId,
@@ -7274,27 +7481,36 @@ var SidebarNavSection = function SidebarNavSection(_a) {
7274
7481
  });
7275
7482
  return (
7276
7483
  // In a SidebarNav the body is one list, so the section is one of its items
7277
- jsxRuntime.jsxs(Section, {
7484
+ // In the rail, a section with nothing to show folds away, rule and all
7485
+ jsxRuntime.jsx(Section, {
7278
7486
  as: inNav ? 'li' : 'div',
7487
+ "$open": !collapsed || showsInRail,
7279
7488
  "$collapsed": collapsed,
7280
7489
  "data-testid": dataTestId,
7281
- children: [header, jsxRuntime.jsx(Collapse, {
7282
- "$expanded": expanded,
7283
- onTransitionEnd: function onTransitionEnd(event) {
7284
- if (event.target === event.currentTarget && event.propertyName === 'grid-template-rows') setAnimating(false);
7285
- },
7286
- children: jsxRuntime.jsx(List$1, {
7287
- id: listId,
7288
- "aria-labelledby": labelId,
7289
- "$clip": !expanded || animating,
7290
- children: children
7291
- })
7292
- })]
7490
+ children: jsxRuntime.jsxs("div", {
7491
+ children: [jsxRuntime.jsx(Fold, {
7492
+ "$open": !collapsed,
7493
+ children: jsxRuntime.jsx("div", {
7494
+ children: header
7495
+ })
7496
+ }), jsxRuntime.jsx(Collapse, {
7497
+ "$expanded": expanded,
7498
+ onTransitionEnd: function onTransitionEnd(event) {
7499
+ if (event.target === event.currentTarget && event.propertyName === 'grid-template-rows') setAnimating(false);
7500
+ },
7501
+ children: jsxRuntime.jsx(List$1, {
7502
+ id: listId,
7503
+ "aria-labelledby": labelId,
7504
+ "$clip": !expanded || animating,
7505
+ children: children
7506
+ })
7507
+ })]
7508
+ })
7293
7509
  })
7294
7510
  );
7295
7511
  };
7296
7512
  SidebarNavSection.displayName = 'SidebarNavSection';
7297
- var templateObject_1$d, templateObject_2$d, templateObject_3$d, templateObject_4$b, templateObject_5$9, templateObject_6$8, templateObject_7$7, templateObject_8$6, templateObject_9$5;
7513
+ var templateObject_1$d, templateObject_2$d, templateObject_3$d, templateObject_4$b, templateObject_5$9, templateObject_6$8, templateObject_7$7;
7298
7514
 
7299
7515
  var semantic$7 = tokens.semantic;
7300
7516
  var space$5 = semantic$7.space,
@@ -7337,7 +7553,7 @@ var StyledDialog = /*#__PURE__*/styled__default.default.div.withConfig({
7337
7553
  })(templateObject_6$7 || (templateObject_6$7 = __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$7.layer.modal, function (_a) {
7338
7554
  var $width = _a.$width;
7339
7555
  return $width;
7340
- }, space$5[400], space$5[400], semantic$7.surface.raised, semantic$7.radius.xl, elevation.overlay, styled.css(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["animation: ", " ", " ", "", ";"], ["animation: ", " ", " ", "", ";"])), scaleIn, motion$2.duration.moderate, motion$2.easing.decelerate, function (_a) {
7556
+ }, space$5[400], space$5[400], semantic$7.surface.overlay, tokens.component.overlay.borderRadius, elevation.overlay, styled.css(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["animation: ", " ", " ", "", ";"], ["animation: ", " ", " ", "", ";"])), scaleIn, motion$2.duration.moderate, motion$2.easing.decelerate, function (_a) {
7341
7557
  var $isExiting = _a.$isExiting;
7342
7558
  return $isExiting && exitAnimation;
7343
7559
  }), reducedMotion, fadeIn$1, motion$2.duration.moderate, motion$2.easing.decelerate, function (_a) {
@@ -7612,7 +7828,7 @@ var StyledNumberInput = /*#__PURE__*/styled__default.default(StyledInputBase).wi
7612
7828
  var StyledStepperContainer = /*#__PURE__*/styled__default.default.div.withConfig({
7613
7829
  displayName: "NumberInput__StyledStepperContainer",
7614
7830
  componentId: "sc-qotc3w-5"
7615
- })(templateObject_6$6 || (templateObject_6$6 = __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]);
7831
+ })(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n\n /* Buttons inside the field nest within its corner: a step tighter than the control radius (decision 0055) */\n & > button {\n border-radius: ", ";\n }\n"], ["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n\n /* Buttons inside the field nest within its corner: a step tighter than the control radius (decision 0055) */\n & > button {\n border-radius: ", ";\n }\n"])), tokens.semantic.space[200], tokens.semantic.space[200], fieldButtonRadius);
7616
7832
  var StyledHelperText$2 = /*#__PURE__*/styled__default.default.div.withConfig({
7617
7833
  displayName: "NumberInput__StyledHelperText",
7618
7834
  componentId: "sc-qotc3w-6"
@@ -7871,7 +8087,7 @@ var StyledInputWrapper$1 = /*#__PURE__*/styled__default.default.div.withConfig({
7871
8087
  var StyledToggleButton = /*#__PURE__*/styled__default.default.div.withConfig({
7872
8088
  displayName: "PasswordField__StyledToggleButton",
7873
8089
  componentId: "sc-1p15zk0-5"
7874
- })(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n"], ["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n"
8090
+ })(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n\n /* Buttons inside the field nest within its corner: a step tighter than the control radius (decision 0055) */\n & > button {\n border-radius: ", ";\n }\n"], ["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n\n /* Buttons inside the field nest within its corner: a step tighter than the control radius (decision 0055) */\n & > button {\n border-radius: ", ";\n }\n"
7875
8091
  /**
7876
8092
  * PasswordField component for secure password input with visibility toggle
7877
8093
  *
@@ -7883,7 +8099,7 @@ var StyledToggleButton = /*#__PURE__*/styled__default.default.div.withConfig({
7883
8099
  * required
7884
8100
  * />
7885
8101
  * ```
7886
- */])), tokens.semantic.space[200]);
8102
+ */])), tokens.semantic.space[200], fieldButtonRadius);
7887
8103
  /**
7888
8104
  * PasswordField component for secure password input with visibility toggle
7889
8105
  *
@@ -7985,7 +8201,7 @@ var StyledSearchContainer = /*#__PURE__*/styled__default.default.div.withConfig(
7985
8201
  var StyledInputWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
7986
8202
  displayName: "SearchField__StyledInputWrapper",
7987
8203
  componentId: "sc-qhz9i8-1"
7988
- })(templateObject_2$8 || (templateObject_2$8 = __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$5.space[200], semantic$5.size.control.lg, semantic$5.space[200], semantic$5.space[300], component$1.input["default"].backgroundColor, component$1.input["default"].borderWidth, component$1.input["default"].borderColor, component$1.input["default"].borderRadius, semantic$5.motion.duration.moderate, semantic$5.motion.easing.standard, semantic$5.motion.duration.moderate, semantic$5.motion.easing.standard, function (props) {
8204
+ })(templateObject_2$8 || (templateObject_2$8 = __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\n /* Buttons inside the field nest within its corner: a step tighter than the control radius (decision 0055) */\n & > button {\n border-radius: ", ";\n }\n\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\n /* Buttons inside the field nest within its corner: a step tighter than the control radius (decision 0055) */\n & > button {\n border-radius: ", ";\n }\n\n transition: border-color ", " ", ", outline ", " ", ";\n \n ", "\n \n ", "\n \n &:hover:not([data-disabled='true']) {\n border-color: ", ";\n }\n"])), semantic$5.space[200], semantic$5.size.control.lg, semantic$5.space[200], semantic$5.space[300], component$1.input["default"].backgroundColor, component$1.input["default"].borderWidth, component$1.input["default"].borderColor, component$1.input["default"].borderRadius, fieldButtonRadius, semantic$5.motion.duration.moderate, semantic$5.motion.easing.standard, semantic$5.motion.duration.moderate, semantic$5.motion.easing.standard, function (props) {
7989
8205
  return props.$isFocused && "\n border-color: ".concat(component$1.input.focus.borderColor, ";\n outline: ").concat(component$1.input.focus.outline, ";\n outline-offset: ").concat(semantic$5.border.focusOffset, ";\n ");
7990
8206
  }, function (props) {
7991
8207
  return props.$disabled && "\n background-color: ".concat(component$1.input.disabled.backgroundColor, ";\n border-color: ").concat(component$1.input.disabled.borderColor, ";\n cursor: not-allowed;\n ");
@@ -7997,7 +8213,7 @@ var StyledInput = /*#__PURE__*/styled__default.default.input.withConfig({
7997
8213
  var StyledSuggestionsList = /*#__PURE__*/styled__default.default.ul.withConfig({
7998
8214
  displayName: "SearchField__StyledSuggestionsList",
7999
8215
  componentId: "sc-qhz9i8-3"
8000
- })(templateObject_4$7 || (templateObject_4$7 = __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$5.space[100], tokens.semantic.size.menu.maxHeight, semantic$5.surface.raised, semantic$5.border.width.thin, semantic$5.color.border["default"], semantic$5.radius.md, semantic$5.elevation.floating, semantic$5.space[100], semantic$5.layer.dropdown, rowStates.unselected.hover.background);
8216
+ })(templateObject_4$7 || (templateObject_4$7 = __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$5.space[100], tokens.semantic.size.menu.maxHeight, semantic$5.surface.overlay, semantic$5.border.width.thin, semantic$5.color.border["default"], semantic$5.radius.md, semantic$5.elevation.floating, semantic$5.space[100], semantic$5.layer.dropdown, rowStates.unselected.hover.background);
8001
8217
  var StyledSectionHeader = /*#__PURE__*/styled__default.default.div.withConfig({
8002
8218
  displayName: "SearchField__StyledSectionHeader",
8003
8219
  componentId: "sc-qhz9i8-4"
@@ -8330,14 +8546,14 @@ var StyledSheet = /*#__PURE__*/styled__default.default.div.withConfig({
8330
8546
  },
8331
8547
  displayName: "Sheet__StyledSheet",
8332
8548
  componentId: "sc-8abisx-1"
8333
- })(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$4.surface.base, semantic$4.elevation.overlay, semantic$4.layer.overlay, function (_a) {
8549
+ })(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n position: fixed;\n /* A floating layer: one step above raised content in the dark theme (issue 356) */\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: ", "; /* matches the panel */\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 /* A floating layer: one step above raised content in the dark theme (issue 356) */\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: ", "; /* matches the panel */\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n \n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"])), semantic$4.surface.overlay, semantic$4.elevation.overlay, semantic$4.layer.overlay, function (_a) {
8334
8550
  var $position = _a.$position,
8335
8551
  $variant = _a.$variant,
8336
8552
  $width = _a.$width,
8337
8553
  $height = _a.$height;
8338
8554
  var isDrawer = $variant === 'drawer';
8339
8555
  var margin = isDrawer ? semantic$4.space[400] : '0';
8340
- var borderRadius = isDrawer ? semantic$4.radius.md : '0';
8556
+ var borderRadius = isDrawer ? tokens.component.overlay.borderRadius : '0';
8341
8557
  switch ($position) {
8342
8558
  case 'right':
8343
8559
  return styled.css(templateObject_8$4 || (templateObject_8$4 = __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$4.space[400], " * 2") : '0px', borderRadius, borderRadius, slideInRight, semantic$4.motion.duration.moderate, semantic$4.motion.easing.standard, function (_a) {
@@ -8350,7 +8566,7 @@ var StyledSheet = /*#__PURE__*/styled__default.default.div.withConfig({
8350
8566
  return $isExiting && exitAnimation;
8351
8567
  });
8352
8568
  case 'top':
8353
- return styled.css(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n top: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: 0 0 ", " ", ";\n animation: ", " ", " ", "", ";\n "], ["\n top: ", ";\n left: ", ";\n right: ", ";\n height: ", ";\n max-height: calc(100vh - ", ");\n border-radius: 0 0 ", " ", ";\n animation: ", " ", " ", "", ";\n "])), margin, margin, margin, $height, isDrawer ? "".concat(semantic$4.space[400], " * 2") : '0px', borderRadius, borderRadius, slideInTop, semantic$4.motion.duration.moderate, semantic$4.motion.easing.standard, function (_a) {
8569
+ return styled.css(templateObject_10$2 || (templateObject_10$2 = __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$4.space[400], " * 2") : '0px', borderRadius, borderRadius, slideInTop, semantic$4.motion.duration.moderate, semantic$4.motion.easing.standard, function (_a) {
8354
8570
  var $isExiting = _a.$isExiting;
8355
8571
  return $isExiting && exitAnimation;
8356
8572
  });
@@ -8363,7 +8579,7 @@ var StyledSheet = /*#__PURE__*/styled__default.default.div.withConfig({
8363
8579
  }, reducedMotion, fadeIn, semantic$4.motion.duration.moderate, semantic$4.motion.easing.standard, function (_a) {
8364
8580
  var $isExiting = _a.$isExiting;
8365
8581
  return $isExiting && exitAnimation;
8366
- }, semantic$4.space[200], semantic$4.surface.raised, semantic$4.color.border["default"], semantic$4.radius.full, semantic$4.color.fill.inverse);
8582
+ }, semantic$4.space[200], semantic$4.surface.overlay, semantic$4.color.border["default"], semantic$4.radius.full, semantic$4.color.fill.inverse);
8367
8583
  var StyledSheetContent = /*#__PURE__*/styled__default.default.div.withConfig({
8368
8584
  displayName: "Sheet__StyledSheetContent",
8369
8585
  componentId: "sc-8abisx-2"
@@ -8533,7 +8749,7 @@ var Sheet = function Sheet(_a) {
8533
8749
  });
8534
8750
  };
8535
8751
  Sheet.displayName = 'Sheet';
8536
- var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$6, templateObject_5$4, templateObject_6$4, templateObject_7$4, templateObject_8$4, templateObject_9$3, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1;
8752
+ var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$6, templateObject_5$4, templateObject_6$4, templateObject_7$4, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$1, templateObject_12$1, templateObject_13$1;
8537
8753
 
8538
8754
  var semantic$3 = tokens.semantic;
8539
8755
  var StyledSliderContainer = /*#__PURE__*/styled__default.default.div.withConfig({
@@ -8999,7 +9215,7 @@ var StyledTab = /*#__PURE__*/styled__default.default.button.withConfig({
8999
9215
  componentId: "sc-1g9ib0y-1"
9000
9216
  })(templateObject_2$5 || (templateObject_2$5 = __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$2.space[200], semantic$2.space[300], semantic$2.space[400], tokens.component.button.sizes.medium.font, function (props) {
9001
9217
  return props.$disabled ? 'not-allowed' : 'pointer';
9002
- }, semantic$2.motion.transition.feedback, semantic$2.radius.sm, semantic$2.radius.sm, function (props) {
9218
+ }, semantic$2.motion.transition.feedback, rowRadius, rowRadius, function (props) {
9003
9219
  return props.$isActive ? semantic$2.color.fill['accent-muted'] : 'transparent';
9004
9220
  }, function (props) {
9005
9221
  return props.$isActive ? semantic$2.color.text.accent : semantic$2.color.text.muted;
@@ -9042,7 +9258,7 @@ var StyledBadge = /*#__PURE__*/styled__default.default.span.withConfig({
9042
9258
  * onTabChange={setActiveTab}
9043
9259
  * />
9044
9260
  * ```
9045
- */])), tokens.component.tabBar.badge.size, tokens.component.tabBar.badge.size, semantic$2.space[100], tokens.component.tabBar.badge.typography, tokens.component.tabBar.badge.fontWeight, semantic$2.radius.full, semantic$2.color.fill.accent, semantic$2.color.text.inverse);
9261
+ */])), tokens.component.tabBar.badge.size, tokens.component.tabBar.badge.size, semantic$2.space[100], tokens.component.tabBar.badge.typography, tokens.component.tabBar.badge.fontWeight, semantic$2.radius.full, semantic$2.color.fill.accent, semantic$2.color.text['on-fill']);
9046
9262
  /**
9047
9263
  * TabBar component for tabbed navigation
9048
9264
  *
@@ -9485,9 +9701,9 @@ var semantic$1 = tokens.semantic;
9485
9701
  var space$1 = semantic$1.space,
9486
9702
  color$1 = semantic$1.color,
9487
9703
  motion$1 = semantic$1.motion,
9488
- radius$1 = semantic$1.radius,
9489
- size = semantic$1.size,
9490
- border$1 = semantic$1.border,
9704
+ radius = semantic$1.radius,
9705
+ size$1 = semantic$1.size,
9706
+ border = semantic$1.border,
9491
9707
  typography = semantic$1.typography;
9492
9708
  var Trigger = /*#__PURE__*/styled__default.default.button.withConfig({
9493
9709
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -9495,10 +9711,10 @@ var Trigger = /*#__PURE__*/styled__default.default.button.withConfig({
9495
9711
  },
9496
9712
  displayName: "WorkspaceSwitcher__Trigger",
9497
9713
  componentId: "sc-s35ke-0"
9498
- })(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: ", ";\n padding: ", " ", ";\n border: none;\n border-radius: ", ";\n background: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: ", ";\n padding: ", " ", ";\n border: none;\n border-radius: ", ";\n background: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"])), space$1[200], size.row.sm, space$1.inset.xs, space$1.inset.sm, radius$1.sm, typography.label, color$1.text["default"], motion$1.duration.fast, motion$1.easing.decelerate, interactiveRow(), function (_a) {
9714
+ })(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: ", ";\n padding: ", " ", ";\n border: none;\n border-radius: ", ";\n background: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: ", ";\n padding: ", " ", ";\n border: none;\n border-radius: ", ";\n background: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n\n ", "\n\n ", "\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: ", ";\n outline-offset: calc(-1 * ", ");\n }\n"])), space$1[200], size$1.row.sm, space$1.inset.xs, space$1.inset.sm, radius.md, typography.label, color$1.text["default"], motion$1.duration.fast, motion$1.easing.decelerate, interactiveRow(), function (_a) {
9499
9715
  var $collapsed = _a.$collapsed;
9500
9716
  return $collapsed && styled.css(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n justify-content: center;\n padding: ", ";\n "], ["\n justify-content: center;\n padding: ", ";\n "])), space$1.inset.xs);
9501
- }, border$1.focus, border$1.focusOffset);
9717
+ }, border.focus, border.focusOffset);
9502
9718
  var Name = /*#__PURE__*/styled__default.default.span.withConfig({
9503
9719
  displayName: "WorkspaceSwitcher__Name",
9504
9720
  componentId: "sc-s35ke-1"
@@ -9567,6 +9783,8 @@ var WorkspaceSwitcher = function WorkspaceSwitcher(_a) {
9567
9783
  }) : trigger,
9568
9784
  side: collapsed ? 'right' : 'bottom',
9569
9785
  align: "start",
9786
+ // Lines up with the full-width trigger beneath it (issue 350)
9787
+ matchTriggerWidth: true,
9570
9788
  children: [jsxRuntime.jsx(MenuGroup, {
9571
9789
  label: label,
9572
9790
  children: workspaces.map(function (workspace) {
@@ -9600,9 +9818,8 @@ var semantic = tokens.semantic,
9600
9818
  component = tokens.component;
9601
9819
  var space = semantic.space,
9602
9820
  motion = semantic.motion,
9603
- radius = semantic.radius,
9604
- border = semantic.border,
9605
- color = semantic.color;
9821
+ color = semantic.color,
9822
+ size = semantic.size;
9606
9823
  var widths = component.sidebarNav.width;
9607
9824
  var Nav = /*#__PURE__*/styled__default.default.nav.withConfig({
9608
9825
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -9610,39 +9827,67 @@ var Nav = /*#__PURE__*/styled__default.default.nav.withConfig({
9610
9827
  },
9611
9828
  displayName: "SidebarNav__Nav",
9612
9829
  componentId: "sc-1as46tp-0"
9613
- })(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n box-sizing: border-box;\n /* Its width is set; in a flex app shell it mustn't shrink to make room */\n flex-shrink: 0;\n width: ", ";\n height: 100%;\n padding: ", ";\n overflow: hidden;\n /* Quiet chrome (P1): the page's own background, with a thin edge */\n border-right: ", ";\n transition: width ", " ", ";\n\n ", " {\n transition: none;\n }\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n box-sizing: border-box;\n /* Its width is set; in a flex app shell it mustn't shrink to make room */\n flex-shrink: 0;\n width: ", ";\n height: 100%;\n padding: ", ";\n overflow: hidden;\n /* Quiet chrome (P1): the page's own background, with a thin edge */\n border-right: ", ";\n transition: width ", " ", ";\n\n ", " {\n transition: none;\n }\n"])), space[200], function (_a) {
9830
+ })(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n box-sizing: border-box;\n /* Its width is set; in a flex app shell it mustn't shrink to make room */\n flex-shrink: 0;\n width: ", ";\n height: 100%;\n padding: ", ";\n overflow: hidden;\n /* Quiet chrome (P1): the page's own background, with no edge of its own (issue 348). The width\n moves with everything inside it, decelerating (0037) */\n transition: width ", " ", ";\n\n ", " {\n transition: none;\n }\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n box-sizing: border-box;\n /* Its width is set; in a flex app shell it mustn't shrink to make room */\n flex-shrink: 0;\n width: ", ";\n height: 100%;\n padding: ", ";\n overflow: hidden;\n /* Quiet chrome (P1): the page's own background, with no edge of its own (issue 348). The width\n moves with everything inside it, decelerating (0037) */\n transition: width ", " ", ";\n\n ", " {\n transition: none;\n }\n"
9831
+ // The header holds two toggles in fixed places that cross-fade (issue 348): collapse beside the
9832
+ // header content, and expand in the content's place, where the rail shows it. Nothing moves.
9833
+ ])), space[200], function (_a) {
9614
9834
  var $width = _a.$width;
9615
9835
  return $width;
9616
- }, space[200], border["default"], motion.duration.moderate, motion.easing.standard, reducedMotion);
9836
+ }, space[200], motion.duration.moderate, motion.easing.decelerate, reducedMotion);
9837
+ // The header holds two toggles in fixed places that cross-fade (issue 348): collapse beside the
9838
+ // header content, and expand in the content's place, where the rail shows it. Nothing moves.
9617
9839
  var Header = /*#__PURE__*/styled__default.default.div.withConfig({
9618
- shouldForwardProp: function shouldForwardProp(prop) {
9619
- return !prop.startsWith('$');
9620
- },
9621
9840
  displayName: "SidebarNav__Header",
9622
9841
  componentId: "sc-1as46tp-1"
9623
- })(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n\n ", "\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n\n ", "\n"])), space[100], function (_a) {
9624
- var $collapsed = _a.$collapsed;
9625
- return $collapsed && styled.css(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n flex-direction: column;\n "], ["\n flex-direction: column;\n "])));
9626
- });
9842
+ })(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n gap: ", ";\n min-height: ", ";\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n gap: ", ";\n min-height: ", ";\n"])), space[100], size.control.sm);
9627
9843
  var HeaderContent = /*#__PURE__*/styled__default.default.div.withConfig({
9844
+ shouldForwardProp: function shouldForwardProp(prop) {
9845
+ return !prop.startsWith('$');
9846
+ },
9628
9847
  displayName: "SidebarNav__HeaderContent",
9629
9848
  componentId: "sc-1as46tp-2"
9630
- })(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n width: 100%;\n"], ["\n flex: 1;\n min-width: 0;\n width: 100%;\n"])));
9849
+ })(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n overflow: hidden;\n ", "\n\n /* Keeps its expanded width, so the nav's edge clips it rather than it reflowing mid-move */\n & > div {\n width: calc(var(", ") - 2 * ", " - ", " - ", ");\n }\n"], ["\n flex: 1;\n min-width: 0;\n overflow: hidden;\n ", "\n\n /* Keeps its expanded width, so the nav's edge clips it rather than it reflowing mid-move */\n & > div {\n width: calc(var(", ") - 2 * ", " - ", " - ", ");\n }\n"])), function (_a) {
9850
+ var $hidden = _a.$hidden;
9851
+ return fade($hidden);
9852
+ }, EXPANDED_WIDTH_VAR, NAV_PADDING, size.control.sm, space[100]);
9853
+ var CollapseSlot = /*#__PURE__*/styled__default.default.span.withConfig({
9854
+ shouldForwardProp: function shouldForwardProp(prop) {
9855
+ return !prop.startsWith('$');
9856
+ },
9857
+ displayName: "SidebarNav__CollapseSlot",
9858
+ componentId: "sc-1as46tp-3"
9859
+ })(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n display: inline-flex;\n flex-shrink: 0;\n margin-left: auto;\n ", "\n"], ["\n display: inline-flex;\n flex-shrink: 0;\n margin-left: auto;\n ", "\n"
9860
+ // Centred in the rail, where the header content starts
9861
+ ])), function (_a) {
9862
+ var $hidden = _a.$hidden;
9863
+ return fade($hidden);
9864
+ });
9865
+ // Centred in the rail, where the header content starts
9866
+ var ExpandSlot = /*#__PURE__*/styled__default.default.span.withConfig({
9867
+ shouldForwardProp: function shouldForwardProp(prop) {
9868
+ return !prop.startsWith('$');
9869
+ },
9870
+ displayName: "SidebarNav__ExpandSlot",
9871
+ componentId: "sc-1as46tp-4"
9872
+ })(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: calc((", " - 2 * ", " - ", ") / 2);\n display: flex;\n align-items: center;\n ", "\n"], ["\n position: absolute;\n top: 0;\n bottom: 0;\n left: calc((", " - 2 * ", " - ", ") / 2);\n display: flex;\n align-items: center;\n ", "\n"])), component.sidebarNav.width.rail, NAV_PADDING, size.control.sm, function (_a) {
9873
+ var $hidden = _a.$hidden;
9874
+ return fade($hidden);
9875
+ });
9631
9876
  var Body = /*#__PURE__*/styled__default.default.div.withConfig({
9632
9877
  displayName: "SidebarNav__Body",
9633
- componentId: "sc-1as46tp-3"
9634
- })(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n flex: 1;\n min-height: 0;\n overflow-x: hidden;\n overflow-y: auto;\n"], ["\n flex: 1;\n min-height: 0;\n overflow-x: hidden;\n overflow-y: auto;\n"
9878
+ componentId: "sc-1as46tp-5"
9879
+ })(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n flex: 1;\n min-height: 0;\n overflow-x: hidden;\n overflow-y: auto;\n"], ["\n flex: 1;\n min-height: 0;\n overflow-x: hidden;\n overflow-y: auto;\n"
9635
9880
  // The rows and the highlight share this box, so the highlight scrolls with the rows
9636
9881
  ])));
9637
9882
  // The rows and the highlight share this box, so the highlight scrolls with the rows
9638
9883
  var Content = /*#__PURE__*/styled__default.default.div.withConfig({
9639
9884
  displayName: "SidebarNav__Content",
9640
- componentId: "sc-1as46tp-4"
9641
- })(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n position: relative;\n isolation: isolate;\n display: flex;\n flex-direction: column;\n\n & [data-sidebar-row] {\n position: relative;\n z-index: 1;\n }\n"], ["\n position: relative;\n isolation: isolate;\n display: flex;\n flex-direction: column;\n\n & [data-sidebar-row] {\n position: relative;\n z-index: 1;\n }\n"])));
9885
+ componentId: "sc-1as46tp-6"
9886
+ })(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n position: relative;\n isolation: isolate;\n display: flex;\n flex-direction: column;\n\n & [data-sidebar-row] {\n position: relative;\n z-index: 1;\n }\n"], ["\n position: relative;\n isolation: isolate;\n display: flex;\n flex-direction: column;\n\n & [data-sidebar-row] {\n position: relative;\n z-index: 1;\n }\n"])));
9642
9887
  var List = /*#__PURE__*/styled__default.default.ul.withConfig({
9643
9888
  displayName: "SidebarNav__List",
9644
- componentId: "sc-1as46tp-5"
9645
- })(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n"], ["\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n"])));
9889
+ componentId: "sc-1as46tp-7"
9890
+ })(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n"], ["\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n"])));
9646
9891
  // One highlight glides to the hovered or keyboard-focused row (0053): the row hover colour,
9647
9892
  // moving over duration.fast. It jumps under reduced motion and hides in forced colours, where
9648
9893
  // rows outline themselves instead.
@@ -9651,61 +9896,109 @@ var Highlight = /*#__PURE__*/styled__default.default.div.withConfig({
9651
9896
  return !prop.startsWith('$');
9652
9897
  },
9653
9898
  displayName: "SidebarNav__Highlight",
9654
- componentId: "sc-1as46tp-6"
9655
- })(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n z-index: 0;\n border-radius: ", ";\n background-color: ", ";\n pointer-events: none;\n opacity: ", ";\n transition: ", ";\n\n ", " {\n transition: opacity ", " ", ";\n }\n\n ", " {\n display: none;\n }\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n z-index: 0;\n border-radius: ", ";\n background-color: ", ";\n pointer-events: none;\n opacity: ", ";\n transition: ", ";\n\n ", " {\n transition: opacity ", " ", ";\n }\n\n ", " {\n display: none;\n }\n"])), radius.sm, color.fill.muted, function (_a) {
9899
+ componentId: "sc-1as46tp-8"
9900
+ })(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n z-index: 0;\n border-radius: ", ";\n background-color: ", ";\n pointer-events: none;\n opacity: ", ";\n transition: ", ";\n\n ", " {\n transition: opacity ", " ", ";\n }\n\n ", " {\n display: none;\n }\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n z-index: 0;\n border-radius: ", ";\n background-color: ", ";\n pointer-events: none;\n opacity: ", ";\n transition: ", ";\n\n ", " {\n transition: opacity ", " ", ";\n }\n\n ", " {\n display: none;\n }\n"
9901
+ // The footer fades out in the rail, keeping its expanded width so it doesn't reflow mid-move
9902
+ ])), rowRadius, color.fill.muted, function (_a) {
9656
9903
  var $visible = _a.$visible;
9657
9904
  return $visible ? 1 : 0;
9658
9905
  }, function (_a) {
9659
9906
  var $instant = _a.$instant;
9660
9907
  return $instant ? "opacity ".concat(motion.duration.fast, " ").concat(motion.easing.decelerate) : "transform ".concat(motion.duration.fast, " ").concat(motion.easing.decelerate, ",\n height ").concat(motion.duration.fast, " ").concat(motion.easing.decelerate, ",\n width ").concat(motion.duration.fast, " ").concat(motion.easing.decelerate, ",\n opacity ").concat(motion.duration.fast, " ").concat(motion.easing.decelerate);
9661
9908
  }, reducedMotion, motion.duration.fast, motion.easing.decelerate, forcedColors);
9909
+ // The footer fades out in the rail, keeping its expanded width so it doesn't reflow mid-move
9662
9910
  var Footer = /*#__PURE__*/styled__default.default.div.withConfig({
9911
+ shouldForwardProp: function shouldForwardProp(prop) {
9912
+ return !prop.startsWith('$');
9913
+ },
9663
9914
  displayName: "SidebarNav__Footer",
9664
- componentId: "sc-1as46tp-7"
9665
- })(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n flex-shrink: 0;\n"], ["\n flex-shrink: 0;\n"
9915
+ componentId: "sc-1as46tp-9"
9916
+ })(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n flex-shrink: 0;\n overflow: hidden;\n ", "\n\n & > div {\n width: calc(var(", ") - 2 * ", ");\n }\n"], ["\n flex-shrink: 0;\n overflow: hidden;\n ", "\n\n & > div {\n width: calc(var(", ") - 2 * ", ");\n }\n"
9666
9917
  /**
9667
9918
  * A product's sidebar navigation (#331): a header, a scrolling body of items and sections, and a
9668
9919
  * footer, that collapses to an icon rail. Row heights follow density (0051); the width is a prop.
9669
9920
  * On small screens, place it in a Sheet with `collapsible={false}`.
9670
- */])));
9921
+ */])), function (_a) {
9922
+ var $hidden = _a.$hidden;
9923
+ return fade($hidden);
9924
+ }, EXPANDED_WIDTH_VAR, NAV_PADDING);
9671
9925
  /**
9672
9926
  * A product's sidebar navigation (#331): a header, a scrolling body of items and sections, and a
9673
9927
  * footer, that collapses to an icon rail. Row heights follow density (0051); the width is a prop.
9674
9928
  * On small screens, place it in a Sheet with `collapsible={false}`.
9675
9929
  */
9676
9930
  var SidebarNav = function SidebarNav(_a) {
9931
+ var _b;
9677
9932
  var label = _a.label,
9678
9933
  children = _a.children,
9679
9934
  header = _a.header,
9680
9935
  footer = _a.footer,
9681
- _b = _a.width,
9682
- width = _b === void 0 ? 'default' : _b,
9936
+ _c = _a.width,
9937
+ width = _c === void 0 ? 'default' : _c,
9683
9938
  collapsedProp = _a.collapsed,
9684
- _c = _a.defaultCollapsed,
9685
- defaultCollapsed = _c === void 0 ? false : _c,
9939
+ _d = _a.defaultCollapsed,
9940
+ defaultCollapsed = _d === void 0 ? false : _d,
9686
9941
  onCollapsedChange = _a.onCollapsedChange,
9687
- _d = _a.collapsible,
9688
- collapsible = _d === void 0 ? true : _d,
9942
+ _e = _a.collapsible,
9943
+ collapsible = _e === void 0 ? true : _e,
9689
9944
  linkComponent = _a.linkComponent,
9690
9945
  dataTestId = _a["data-testid"];
9691
- var _e = React.useState(defaultCollapsed),
9692
- uncontrolledCollapsed = _e[0],
9693
- setUncontrolledCollapsed = _e[1];
9946
+ var _f = React.useState(defaultCollapsed),
9947
+ uncontrolledCollapsed = _f[0],
9948
+ setUncontrolledCollapsed = _f[1];
9694
9949
  var isControlled = collapsedProp !== undefined;
9695
9950
  var collapsed = collapsible && (isControlled ? collapsedProp : uncontrolledCollapsed);
9696
9951
  var contentRef = React.useRef(null);
9697
- var _f = React.useState({
9952
+ var navRef = React.useRef(null);
9953
+ var bodyRef = React.useRef(null);
9954
+ // A classic scrollbar narrows every row, so rows need its width. Measured while expanded (the rail
9955
+ // only clips what rows hold) and written straight to a CSS variable, so it re-renders nothing.
9956
+ React.useEffect(function () {
9957
+ var nav = navRef.current;
9958
+ var body = bodyRef.current;
9959
+ if (!nav || !body || collapsed) return;
9960
+ var measure = function measure() {
9961
+ return nav.style.setProperty(SCROLLBAR_VAR, "".concat(body.offsetWidth - body.clientWidth, "px"));
9962
+ };
9963
+ measure();
9964
+ if (typeof ResizeObserver === 'undefined') return;
9965
+ var observer = new ResizeObserver(measure);
9966
+ observer.observe(body);
9967
+ if (contentRef.current) observer.observe(contentRef.current);
9968
+ return function () {
9969
+ return observer.disconnect();
9970
+ };
9971
+ }, [collapsed]);
9972
+ var _g = React.useState({
9698
9973
  box: null,
9699
9974
  visible: false,
9700
9975
  instant: true
9701
9976
  }),
9702
- highlight = _f[0],
9703
- setHighlight = _f[1];
9977
+ highlight = _g[0],
9978
+ setHighlight = _g[1];
9979
+ // Focus follows the toggle: the one pressed fades away, so focus moves to the one now shown
9980
+ var collapseSlot = React.useRef(null);
9981
+ var expandSlot = React.useRef(null);
9982
+ // Which state a toggle asked for, and when: focus moves only if that state arrives promptly, so a
9983
+ // controlled parent that declined the change can't have focus jump on some later change
9984
+ var focusToggle = React.useRef(null);
9704
9985
  var toggle = function toggle() {
9705
9986
  var next = !collapsed;
9987
+ focusToggle.current = {
9988
+ to: next,
9989
+ at: Date.now()
9990
+ };
9706
9991
  if (!isControlled) setUncontrolledCollapsed(next);
9707
9992
  onCollapsedChange === null || onCollapsedChange === void 0 ? void 0 : onCollapsedChange(next);
9708
9993
  };
9994
+ React.useEffect(function () {
9995
+ var _a;
9996
+ var request = focusToggle.current;
9997
+ focusToggle.current = null;
9998
+ if (!request || request.to !== collapsed || Date.now() - request.at > 1000) return;
9999
+ var slot = collapsed ? expandSlot.current : collapseSlot.current;
10000
+ (_a = slot === null || slot === void 0 ? void 0 : slot.querySelector('button')) === null || _a === void 0 ? void 0 : _a.focus();
10001
+ }, [collapsed]);
9709
10002
  var hide = function hide() {
9710
10003
  return setHighlight(function (state) {
9711
10004
  return __assign(__assign({}, state), {
@@ -9715,9 +10008,9 @@ var SidebarNav = function SidebarNav(_a) {
9715
10008
  };
9716
10009
  // Collapsing or expanding moves every row, so the highlight's box is stale: hide it until the
9717
10010
  // pointer or focus finds a row again (adjusted during render, React's pattern for a prop change)
9718
- var _g = React.useState(collapsed),
9719
- layout = _g[0],
9720
- setLayout = _g[1];
10011
+ var _h = React.useState(collapsed),
10012
+ layout = _h[0],
10013
+ setLayout = _h[1];
9721
10014
  if (layout !== collapsed) {
9722
10015
  setLayout(collapsed);
9723
10016
  setHighlight(function (state) {
@@ -9754,32 +10047,64 @@ var SidebarNav = function SidebarNav(_a) {
9754
10047
  glide: true,
9755
10048
  inNav: true
9756
10049
  };
9757
- var toggleLabel = collapsed ? 'Expand sidebar' : 'Collapse sidebar';
9758
- var toggleButton = collapsible && jsxRuntime.jsx(Tooltip, {
9759
- text: toggleLabel,
9760
- side: collapsed ? 'right' : 'bottom',
9761
- children: jsxRuntime.jsx(IconButton, {
9762
- variant: "naked",
9763
- size: "small",
9764
- iconName: "sidebar",
9765
- "aria-label": toggleLabel,
9766
- "aria-expanded": !collapsed,
9767
- onClick: toggle
9768
- })
10050
+ // The header content keeps its expanded layout: it fades out in the rail rather than turning into
10051
+ // a rail version of itself mid-move
10052
+ var headerContext = __assign(__assign({}, context), {
10053
+ collapsed: false
9769
10054
  });
9770
10055
  return jsxRuntime.jsx(SidebarNavContext.Provider, {
9771
10056
  value: context,
9772
10057
  children: jsxRuntime.jsxs(Nav, {
10058
+ ref: navRef,
9773
10059
  "aria-label": label,
9774
10060
  "$width": collapsed ? widths.rail : widths[width],
9775
10061
  "data-collapsed": collapsed || undefined,
9776
10062
  "data-testid": dataTestId,
9777
- children: [(header || toggleButton) && jsxRuntime.jsxs(Header, {
9778
- "$collapsed": collapsed,
10063
+ style: (_b = {}, _b[EXPANDED_WIDTH_VAR] = widths[width], _b),
10064
+ children: [(header || collapsible) && jsxRuntime.jsxs(Header, {
9779
10065
  children: [header && jsxRuntime.jsx(HeaderContent, {
9780
- children: header
9781
- }), toggleButton]
10066
+ "$hidden": collapsed,
10067
+ children: jsxRuntime.jsx("div", {
10068
+ children: jsxRuntime.jsx(SidebarNavContext.Provider, {
10069
+ value: headerContext,
10070
+ children: header
10071
+ })
10072
+ })
10073
+ }), collapsible && jsxRuntime.jsxs(jsxRuntime.Fragment, {
10074
+ children: [jsxRuntime.jsx(CollapseSlot, {
10075
+ ref: collapseSlot,
10076
+ "$hidden": collapsed,
10077
+ children: jsxRuntime.jsx(Tooltip, {
10078
+ text: "Collapse sidebar",
10079
+ side: "bottom",
10080
+ children: jsxRuntime.jsx(IconButton, {
10081
+ variant: "naked",
10082
+ size: "small",
10083
+ iconName: "sidebar",
10084
+ "aria-label": "Collapse sidebar",
10085
+ "aria-expanded": true,
10086
+ onClick: toggle
10087
+ })
10088
+ })
10089
+ }), jsxRuntime.jsx(ExpandSlot, {
10090
+ ref: expandSlot,
10091
+ "$hidden": !collapsed,
10092
+ children: jsxRuntime.jsx(Tooltip, {
10093
+ text: "Expand sidebar",
10094
+ side: "right",
10095
+ children: jsxRuntime.jsx(IconButton, {
10096
+ variant: "naked",
10097
+ size: "small",
10098
+ iconName: "sidebar",
10099
+ "aria-label": "Expand sidebar",
10100
+ "aria-expanded": false,
10101
+ onClick: toggle
10102
+ })
10103
+ })
10104
+ })]
10105
+ })]
9782
10106
  }), jsxRuntime.jsx(Body, {
10107
+ ref: bodyRef,
9783
10108
  children: jsxRuntime.jsxs(Content, {
9784
10109
  ref: contentRef,
9785
10110
  onPointerOver: function onPointerOver(event) {
@@ -9807,14 +10132,17 @@ var SidebarNav = function SidebarNav(_a) {
9807
10132
  children: children
9808
10133
  })]
9809
10134
  })
9810
- }), footer && !collapsed && jsxRuntime.jsx(Footer, {
9811
- children: footer
10135
+ }), footer && jsxRuntime.jsx(Footer, {
10136
+ "$hidden": collapsed,
10137
+ children: jsxRuntime.jsx("div", {
10138
+ children: footer
10139
+ })
9812
10140
  })]
9813
10141
  })
9814
10142
  });
9815
10143
  };
9816
10144
  SidebarNav.displayName = 'SidebarNav';
9817
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7$1, templateObject_8$1, templateObject_9$1;
10145
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7$1, templateObject_8$1, templateObject_9$1, templateObject_10$1;
9818
10146
 
9819
10147
  // Exception to decision 0014: the gap props are typed as base dimension keys (public API),
9820
10148
  // so they are looked up in the base tier until they accept semantic keys.