@common-origin/design-system 2.23.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/client.js +184 -479
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.d.mts +5 -12
- package/dist/components/atoms/Badge/Badge.d.ts +5 -12
- package/dist/components/atoms/Badge/Badge.mjs +0 -7
- package/dist/components/atoms/Badge/index.d.mts +1 -1
- package/dist/components/atoms/Badge/index.d.ts +1 -1
- package/dist/components/atoms/Box/Box.d.mts +22 -34
- package/dist/components/atoms/Box/Box.d.ts +22 -34
- package/dist/components/atoms/Box/Box.mjs +8 -11
- package/dist/components/atoms/Button/Button.d.mts +1 -4
- package/dist/components/atoms/Button/Button.d.ts +1 -4
- package/dist/components/atoms/Button/Button.mjs +3 -10
- package/dist/components/atoms/CategoryLabel/CategoryLabel.d.mts +4 -12
- package/dist/components/atoms/CategoryLabel/CategoryLabel.d.ts +4 -12
- package/dist/components/atoms/CategoryLabel/CategoryLabel.mjs +5 -16
- package/dist/components/atoms/Chip/Chip.d.mts +8 -20
- package/dist/components/atoms/Chip/Chip.d.ts +8 -20
- package/dist/components/atoms/Chip/Chip.mjs +20 -46
- package/dist/components/atoms/Chip/Chip.mjs.map +1 -1
- package/dist/components/atoms/Chip/FilterChip.d.mts +22 -10
- package/dist/components/atoms/Chip/FilterChip.d.ts +22 -10
- package/dist/components/atoms/Chip/FilterChip.mjs +66 -6
- package/dist/components/atoms/Chip/FilterChip.mjs.map +1 -1
- package/dist/components/atoms/Chip/InputChip.mjs +4 -6
- package/dist/components/atoms/Chip/InputChip.mjs.map +1 -1
- package/dist/components/atoms/Chip/index.d.mts +0 -1
- package/dist/components/atoms/Chip/index.d.ts +0 -1
- package/dist/components/atoms/Chip/shared/types.d.mts +9 -19
- package/dist/components/atoms/Chip/shared/types.d.ts +9 -19
- package/dist/components/atoms/Chip/shared/utils.d.mts +3 -3
- package/dist/components/atoms/Chip/shared/utils.d.ts +3 -3
- package/dist/components/atoms/Chip/shared/utils.mjs +4 -8
- package/dist/components/atoms/Chip/shared/utils.mjs.map +1 -1
- package/dist/components/atoms/DateFormatter/DateFormatter.d.mts +2 -5
- package/dist/components/atoms/DateFormatter/DateFormatter.d.ts +2 -5
- package/dist/components/atoms/DateFormatter/DateFormatter.mjs +0 -1
- package/dist/components/atoms/StatusLabel/StatusLabel.mjs +1 -4
- package/dist/components/atoms/StatusLabel/StatusLabel.mjs.map +1 -1
- package/dist/components/atoms/StatusLabel/StatusLabelBase.d.mts +5 -7
- package/dist/components/atoms/StatusLabel/StatusLabelBase.d.ts +5 -7
- package/dist/components/atoms/StatusLabel/StatusLabelBase.mjs +10 -12
- package/dist/components/atoms/Tag/Tag.d.mts +2 -4
- package/dist/components/atoms/Tag/Tag.d.ts +2 -4
- package/dist/components/atoms/Tag/Tag.mjs +0 -24
- package/dist/components/atoms/index.d.mts +0 -2
- package/dist/components/atoms/index.d.ts +0 -2
- package/dist/components/layout/GridSystem/GridSystem.d.mts +23 -18
- package/dist/components/layout/GridSystem/GridSystem.d.ts +23 -18
- package/dist/components/layout/GridSystem/GridSystem.mjs +7 -5
- package/dist/components/molecules/AgentInput/AgentInput.d.mts +5 -0
- package/dist/components/molecules/AgentInput/AgentInput.d.ts +5 -0
- package/dist/components/molecules/AgentInput/AgentInput.mjs +1 -1
- package/dist/components/molecules/Alert/Alert.d.mts +1 -9
- package/dist/components/molecules/Alert/Alert.d.ts +1 -9
- package/dist/components/molecules/Alert/Alert.mjs +13 -26
- package/dist/components/molecules/ChipGroup/ChipGroup.d.mts +0 -1
- package/dist/components/molecules/ChipGroup/ChipGroup.d.ts +0 -1
- package/dist/components/molecules/ChipGroup/ChipGroup.mjs +1 -6
- package/dist/components/molecules/DateGroup/DateGroup.d.mts +1 -2
- package/dist/components/molecules/DateGroup/DateGroup.d.ts +1 -2
- package/dist/components/molecules/Modal/Modal.d.mts +0 -1
- package/dist/components/molecules/Modal/Modal.d.ts +0 -1
- package/dist/components/molecules/TabBar/TabBar.d.mts +0 -13
- package/dist/components/molecules/TabBar/TabBar.d.ts +0 -13
- package/dist/components/molecules/TabBar/TabBar.mjs +2 -4
- package/dist/components/molecules/TabBar/index.d.mts +1 -1
- package/dist/components/molecules/TabBar/index.d.ts +1 -1
- package/dist/components/molecules/index.d.mts +0 -1
- package/dist/components/molecules/index.d.ts +0 -1
- package/dist/data.js +13 -556
- package/dist/data.js.map +1 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -5
- package/dist/index.mjs.map +1 -1
- package/dist/lib/tokenAliases.d.mts +11 -11
- package/dist/lib/tokenAliases.d.ts +11 -11
- package/dist/lib/tokenAliases.mjs +13 -88
- package/dist/lib/tokenAliases.mjs.map +1 -1
- package/dist/styles/tokens.d.mts +3 -2347
- package/dist/styles/tokens.d.ts +3 -2347
- package/dist/styles/tokens.json +13 -556
- package/dist/styles/tokens.json.mjs +13 -556
- package/dist/styles/tokens.json.mjs.map +1 -1
- package/dist/tokens/index.js +13 -556
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/index.mjs +13 -556
- package/dist/tokens/index.mjs.map +1 -1
- package/dist/tokens/styles/tokens.d.mts +3 -2347
- package/dist/tokens/styles/tokens.d.ts +3 -2347
- package/dist/tokens.css +6 -478
- package/package.json +2 -2
- package/dist/components/atoms/CategoryBadge/CategoryBadge.d.mts +0 -29
- package/dist/components/atoms/CategoryBadge/CategoryBadge.d.ts +0 -29
- package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs +0 -29
- package/dist/components/atoms/CategoryBadge/CategoryBadge.mjs.map +0 -1
- package/dist/components/atoms/CategoryBadge/index.d.mts +0 -2
- package/dist/components/atoms/CategoryBadge/index.d.ts +0 -2
- package/dist/components/atoms/Chip/BooleanChip.d.mts +0 -28
- package/dist/components/atoms/Chip/BooleanChip.d.ts +0 -28
- package/dist/components/atoms/Chip/BooleanChip.mjs +0 -76
- package/dist/components/atoms/Chip/BooleanChip.mjs.map +0 -1
- package/dist/components/atoms/StatusBadge/StatusBadge.d.mts +0 -24
- package/dist/components/atoms/StatusBadge/StatusBadge.d.ts +0 -24
- package/dist/components/atoms/StatusBadge/StatusBadge.mjs +0 -18
- package/dist/components/atoms/StatusBadge/StatusBadge.mjs.map +0 -1
- package/dist/components/atoms/StatusBadge/index.d.mts +0 -2
- package/dist/components/atoms/StatusBadge/index.d.ts +0 -2
- package/dist/components/molecules/PageTitle/PageTitle.d.mts +0 -21
- package/dist/components/molecules/PageTitle/PageTitle.d.ts +0 -21
- package/dist/components/molecules/PageTitle/PageTitle.mjs +0 -77
- package/dist/components/molecules/PageTitle/PageTitle.mjs.map +0 -1
- package/dist/components/molecules/PageTitle/index.d.mts +0 -1
- package/dist/components/molecules/PageTitle/index.d.ts +0 -1
package/dist/client.js
CHANGED
|
@@ -167,7 +167,7 @@ var AvatarContainer = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
167
167
|
},
|
|
168
168
|
displayName: "Avatar__AvatarContainer",
|
|
169
169
|
componentId: "sc-ezn4ax-0"
|
|
170
|
-
})(templateObject_1$
|
|
170
|
+
})(templateObject_1$O || (templateObject_1$O = __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
172
|
return size$4.avatar[$size];
|
|
173
173
|
}, function (_a) {
|
|
@@ -246,7 +246,7 @@ var Avatar = function Avatar(_a) {
|
|
|
246
246
|
})
|
|
247
247
|
}));
|
|
248
248
|
};
|
|
249
|
-
var templateObject_1$
|
|
249
|
+
var templateObject_1$O, templateObject_2$z, templateObject_3$w;
|
|
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$
|
|
284
|
+
var fadeOut$1 = styled.keyframes(templateObject_1$N || (templateObject_1$N = __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
|
|
@@ -399,7 +399,7 @@ var rowForcedColors = function rowForcedColors(_a) {
|
|
|
399
399
|
// the descendants' own rules.
|
|
400
400
|
return "".concat(forcedColors, " {\n ").concat(selected ? "background-color: Highlight;\n ".concat(text('HighlightText'), "\n && * {\n color: inherit;\n background-color: transparent;\n }") : '', "\n ").concat(!disabled && focused ? hover : '', "\n ").concat(disabled ? '' : "&:hover {\n ".concat(hover, "\n }"), "\n }");
|
|
401
401
|
};
|
|
402
|
-
var templateObject_1$
|
|
402
|
+
var templateObject_1$N, templateObject_2$y, templateObject_3$v;
|
|
403
403
|
|
|
404
404
|
var _a$a = tokens.semantic,
|
|
405
405
|
typography$3 = _a$a.typography,
|
|
@@ -467,7 +467,7 @@ var StyledTypography = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
467
467
|
},
|
|
468
468
|
displayName: "Typography__StyledTypography",
|
|
469
469
|
componentId: "sc-17mqo4k-0"
|
|
470
|
-
})(templateObject_1$
|
|
470
|
+
})(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n ", "\n color: ", ";\n margin: 0;\n"], ["\n ", "\n color: ", ";\n margin: 0;\n"
|
|
471
471
|
/**
|
|
472
472
|
* Typography is an atomic component for rendering text with semantic meaning and consistent styling.
|
|
473
473
|
*
|
|
@@ -529,7 +529,7 @@ var Typography = function Typography(_a) {
|
|
|
529
529
|
children: children
|
|
530
530
|
});
|
|
531
531
|
};
|
|
532
|
-
var templateObject_1$
|
|
532
|
+
var templateObject_1$M;
|
|
533
533
|
|
|
534
534
|
var semantic$m = tokens.semantic;
|
|
535
535
|
var color$b = semantic$m.color;
|
|
@@ -538,7 +538,7 @@ var _a$9 = tokens.component.badge,
|
|
|
538
538
|
dot = _a$9.dot,
|
|
539
539
|
count = _a$9.count,
|
|
540
540
|
ring = _a$9.ring;
|
|
541
|
-
var scaleIn$2 = styled.keyframes(templateObject_1$
|
|
541
|
+
var scaleIn$2 = styled.keyframes(templateObject_1$L || (templateObject_1$L = __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
542
|
var BadgeWrapper = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
543
543
|
displayName: "Badge__BadgeWrapper",
|
|
544
544
|
componentId: "sc-tjz4pp-0"
|
|
@@ -561,14 +561,7 @@ var BadgeIndicator = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
561
561
|
return props.$isDot ? "".concat(forcedColors, " { forced-color-adjust: none; background-color: CanvasText; }") : "".concat(forcedColors, " { border: ").concat(semantic$m.border.width.thin, " solid currentColor; }");
|
|
562
562
|
}, function (props) {
|
|
563
563
|
switch (props.$variant) {
|
|
564
|
-
// 'primary', 'error', 'warning' and 'success' are deprecated aliases for 'accent', removed in
|
|
565
|
-
// 3.0: 'primary' (#169), and the status colours, because a badge's colour alone can't carry a
|
|
566
|
-
// status (decision 0045, #263)
|
|
567
564
|
case 'accent':
|
|
568
|
-
case 'primary':
|
|
569
|
-
case 'error':
|
|
570
|
-
case 'warning':
|
|
571
|
-
case 'success':
|
|
572
565
|
return "\n background-color: ".concat(color$b.fill.accent, ";\n color: ").concat(color$b.text.inverse, ";\n ");
|
|
573
566
|
default:
|
|
574
567
|
return "\n background-color: ".concat(color$b.fill.emphasis, ";\n color: ").concat(color$b.text.inverse, ";\n ");
|
|
@@ -615,18 +608,18 @@ var Badge = function Badge(_a) {
|
|
|
615
608
|
})]
|
|
616
609
|
});
|
|
617
610
|
};
|
|
618
|
-
var templateObject_1$
|
|
611
|
+
var templateObject_1$L, templateObject_2$x, templateObject_3$u, templateObject_4$n;
|
|
619
612
|
|
|
620
|
-
//
|
|
621
|
-
//
|
|
622
|
-
//
|
|
613
|
+
// Box's spacing and radius props keep their own names, which 3.0 decoupled from the removed
|
|
614
|
+
// spacing.layout and border.radius tokens (P7, #99), and read the semantic grammar's tokens
|
|
615
|
+
// (decision 0031). Each map covers every key the prop type allows, so TypeScript fails here if a
|
|
616
|
+
// key is added without a mapping.
|
|
623
617
|
var semantic$l = tokens.semantic;
|
|
624
618
|
var color$a = semantic$l.color,
|
|
625
619
|
space$e = semantic$l.space,
|
|
626
620
|
radius$4 = semantic$l.radius,
|
|
627
|
-
surface = semantic$l.surface
|
|
628
|
-
|
|
629
|
-
/** Box's spacing props (`p`, `m`, `gap`…): the old layout scale's keys, read from `space`. */
|
|
621
|
+
surface = semantic$l.surface;
|
|
622
|
+
/** Box's spacing props: each name maps to the space step that replaced its spacing.layout token. */
|
|
630
623
|
var spaceByLayoutKey = {
|
|
631
624
|
none: space$e[0],
|
|
632
625
|
xs: space$e[100],
|
|
@@ -644,10 +637,10 @@ var spaceByLayoutKey = {
|
|
|
644
637
|
'9xl': space$e[1600],
|
|
645
638
|
'10xl': space$e[2000],
|
|
646
639
|
'11xl': space$e[2400],
|
|
647
|
-
// A keyword, not a step
|
|
640
|
+
// A keyword, not a step (0031)
|
|
648
641
|
auto: semantic$l.spacing.layout.auto
|
|
649
642
|
};
|
|
650
|
-
/** Box's `borderRadius` prop
|
|
643
|
+
/** Box's `borderRadius` prop, read from `radius`. */
|
|
651
644
|
var radiusByKey = {
|
|
652
645
|
none: radius$4.none,
|
|
653
646
|
xs: radius$4.xs,
|
|
@@ -693,89 +686,11 @@ var backgroundByPath = {
|
|
|
693
686
|
'color.fill.none-pressed': color$a.fill['none-pressed'],
|
|
694
687
|
'color.fill.inverse-none-hover': color$a.fill['inverse-none-hover']
|
|
695
688
|
};
|
|
696
|
-
/** Box's `
|
|
697
|
-
var
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
subtle: surface.raised,
|
|
701
|
-
overlay: surface.scrim,
|
|
702
|
-
emphasis: color$a.fill.emphasis,
|
|
703
|
-
// A strong fill's states mix its content colour in at the state-layer opacity (decision 0048)
|
|
704
|
-
'emphasis-hover': "color-mix(in srgb, ".concat(color$a.fill.emphasis, ", ").concat(color$a.text.inverse, " calc(").concat(opacity.state.hover, " * 100%))"),
|
|
705
|
-
'emphasis-active': "color-mix(in srgb, ".concat(color$a.fill.emphasis, ", ").concat(color$a.text.inverse, " calc(").concat(opacity.state.pressed, " * 100%))"),
|
|
706
|
-
surface: color$a.fill.muted,
|
|
707
|
-
inverse: color$a.fill.inverse,
|
|
708
|
-
interactive: color$a.fill.accent,
|
|
709
|
-
'interactive-hover': color$a.fill['accent-hover'],
|
|
710
|
-
'interactive-active': color$a.fill['accent-pressed'],
|
|
711
|
-
'interactive-subtle': color$a.fill['accent-muted'],
|
|
712
|
-
'interactive-subtle-hover': color$a.fill['accent-muted-hover'],
|
|
713
|
-
'interactive-subtle-active': color$a.fill['accent-muted-pressed'],
|
|
714
|
-
error: color$a.fill.danger,
|
|
715
|
-
'error-hover': color$a.fill['danger-hover'],
|
|
716
|
-
'error-active': color$a.fill['danger-pressed'],
|
|
717
|
-
'error-subtle': color$a.fill['danger-muted'],
|
|
718
|
-
success: color$a.fill.success,
|
|
719
|
-
'success-subtle': color$a.fill['success-muted'],
|
|
720
|
-
warning: color$a.fill.warning,
|
|
721
|
-
'warning-subtle': color$a.fill['warning-muted'],
|
|
722
|
-
disabled: color$a.fill.disabled,
|
|
723
|
-
neutral: color$a.fill["default"],
|
|
724
|
-
'neutral-hover': color$a.fill['default-hover'],
|
|
725
|
-
'neutral-active': color$a.fill['default-pressed'],
|
|
726
|
-
transparent: color$a.fill.none,
|
|
727
|
-
'hover-overlay': color$a.fill['none-hover'],
|
|
728
|
-
'active-overlay': color$a.fill['none-pressed'],
|
|
729
|
-
'inverse-overlay': color$a.fill['inverse-none-hover'],
|
|
730
|
-
// Moved to the component tier (decision 0031 §6)
|
|
731
|
-
progressTrack: tokens.component.track.background
|
|
732
|
-
};
|
|
733
|
-
/** Box's `color` prop: text colours, old and new keys. */
|
|
734
|
-
var textColorByKey = {
|
|
735
|
-
"default": color$a.text["default"],
|
|
736
|
-
emphasis: color$a.text["default"],
|
|
737
|
-
inverse: color$a.text.inverse,
|
|
738
|
-
disabled: color$a.text.disabled,
|
|
739
|
-
success: color$a.text.success,
|
|
740
|
-
warning: color$a.text.warning,
|
|
741
|
-
muted: color$a.text.muted,
|
|
742
|
-
accent: color$a.text.accent,
|
|
743
|
-
'accent-hover': color$a.text.accent,
|
|
744
|
-
'accent-pressed': color$a.text.accent,
|
|
745
|
-
danger: color$a.text.danger,
|
|
746
|
-
serious: color$a.text.serious,
|
|
747
|
-
ai: color$a.text.ai,
|
|
748
|
-
subdued: color$a.text.muted,
|
|
749
|
-
interactive: color$a.text.accent,
|
|
750
|
-
'interactive-hover': color$a.text.accent,
|
|
751
|
-
'interactive-active': color$a.text.accent,
|
|
752
|
-
error: color$a.text.danger
|
|
753
|
-
};
|
|
754
|
-
/** Box's border props: border colours, old and new keys. */
|
|
755
|
-
var borderColorByKey = {
|
|
756
|
-
"default": color$a.border["default"],
|
|
757
|
-
success: color$a.border.success,
|
|
758
|
-
warning: color$a.border.warning,
|
|
759
|
-
none: color$a.border.none,
|
|
760
|
-
emphasis: color$a.border["default"],
|
|
761
|
-
input: color$a.border.input,
|
|
762
|
-
'input-hover': color$a.border['input-hover'],
|
|
763
|
-
focus: color$a.border.focus,
|
|
764
|
-
accent: color$a.border.accent,
|
|
765
|
-
danger: color$a.border.danger,
|
|
766
|
-
serious: color$a.border.serious,
|
|
767
|
-
ai: color$a.border.ai,
|
|
768
|
-
subtle: color$a.border["default"],
|
|
769
|
-
control: color$a.border.input,
|
|
770
|
-
// `strong` split by use (0031); as a generic firm outline it is the hovered-input border
|
|
771
|
-
strong: color$a.border['input-hover'],
|
|
772
|
-
interactive: color$a.border.accent,
|
|
773
|
-
error: color$a.border.danger
|
|
774
|
-
};
|
|
689
|
+
/** Box's `color` prop: the text colours. */
|
|
690
|
+
var textColorByKey = color$a.text;
|
|
691
|
+
/** Box's border props: the border colours. */
|
|
692
|
+
var borderColorByKey = color$a.border;
|
|
775
693
|
|
|
776
|
-
var backgroundColor = function backgroundColor(bg) {
|
|
777
|
-
return bg in backgroundByPath ? backgroundByPath[bg] : backgroundByKey[bg];
|
|
778
|
-
};
|
|
779
694
|
var StyledBox = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
780
695
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
781
696
|
return !prop.startsWith('$');
|
|
@@ -785,7 +700,7 @@ var StyledBox = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
785
700
|
})(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"
|
|
786
701
|
// Transform component that maps clean props to $-prefixed props for styled-components
|
|
787
702
|
])), function (props) {
|
|
788
|
-
return props.$display && styled.css(templateObject_1$
|
|
703
|
+
return props.$display && styled.css(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
|
|
789
704
|
}, function (props) {
|
|
790
705
|
return props.$flexDirection && styled.css(templateObject_2$w || (templateObject_2$w = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
|
|
791
706
|
}, function (props) {
|
|
@@ -849,19 +764,19 @@ var StyledBox = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
849
764
|
}, function (props) {
|
|
850
765
|
return props.$borderRadius && styled.css(templateObject_32$2 || (templateObject_32$2 = __makeTemplateObject(["border-radius: ", ";"], ["border-radius: ", ";"])), radiusByKey[props.$borderRadius]);
|
|
851
766
|
}, function (props) {
|
|
852
|
-
return props.$border && styled.css(templateObject_33$2 || (templateObject_33$2 = __makeTemplateObject(["border: ", " solid ", ";"], ["border: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$border]);
|
|
767
|
+
return props.$border && borderColorByKey[props.$border] && styled.css(templateObject_33$2 || (templateObject_33$2 = __makeTemplateObject(["border: ", " solid ", ";"], ["border: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$border]);
|
|
853
768
|
}, function (props) {
|
|
854
|
-
return props.$borderTop && styled.css(templateObject_34$1 || (templateObject_34$1 = __makeTemplateObject(["border-top: ", " solid ", ";"], ["border-top: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderTop]);
|
|
769
|
+
return props.$borderTop && borderColorByKey[props.$borderTop] && styled.css(templateObject_34$1 || (templateObject_34$1 = __makeTemplateObject(["border-top: ", " solid ", ";"], ["border-top: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderTop]);
|
|
855
770
|
}, function (props) {
|
|
856
|
-
return props.$borderRight && styled.css(templateObject_35$1 || (templateObject_35$1 = __makeTemplateObject(["border-right: ", " solid ", ";"], ["border-right: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderRight]);
|
|
771
|
+
return props.$borderRight && borderColorByKey[props.$borderRight] && styled.css(templateObject_35$1 || (templateObject_35$1 = __makeTemplateObject(["border-right: ", " solid ", ";"], ["border-right: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderRight]);
|
|
857
772
|
}, function (props) {
|
|
858
|
-
return props.$borderBottom && styled.css(templateObject_36 || (templateObject_36 = __makeTemplateObject(["border-bottom: ", " solid ", ";"], ["border-bottom: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderBottom]);
|
|
773
|
+
return props.$borderBottom && borderColorByKey[props.$borderBottom] && styled.css(templateObject_36 || (templateObject_36 = __makeTemplateObject(["border-bottom: ", " solid ", ";"], ["border-bottom: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderBottom]);
|
|
859
774
|
}, function (props) {
|
|
860
|
-
return props.$borderLeft && styled.css(templateObject_37 || (templateObject_37 = __makeTemplateObject(["border-left: ", " solid ", ";"], ["border-left: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderLeft]);
|
|
775
|
+
return props.$borderLeft && borderColorByKey[props.$borderLeft] && styled.css(templateObject_37 || (templateObject_37 = __makeTemplateObject(["border-left: ", " solid ", ";"], ["border-left: ", " solid ", ";"])), tokens.semantic.border.width.thin, borderColorByKey[props.$borderLeft]);
|
|
861
776
|
}, function (props) {
|
|
862
|
-
return props.$bg && styled.css(templateObject_38 || (templateObject_38 = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])),
|
|
777
|
+
return props.$bg && backgroundByPath[props.$bg] && styled.css(templateObject_38 || (templateObject_38 = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundByPath[props.$bg]);
|
|
863
778
|
}, function (props) {
|
|
864
|
-
return props.$color && styled.css(templateObject_39 || (templateObject_39 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])), textColorByKey[props.$color]);
|
|
779
|
+
return props.$color && textColorByKey[props.$color] && styled.css(templateObject_39 || (templateObject_39 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])), textColorByKey[props.$color]);
|
|
865
780
|
}, function (props) {
|
|
866
781
|
return props.$shadow && styled.css(templateObject_40 || (templateObject_40 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), tokens.semantic.elevation[props.$shadow]);
|
|
867
782
|
}, function (props) {
|
|
@@ -1009,7 +924,7 @@ var BoxTransform = function BoxTransform(props) {
|
|
|
1009
924
|
}));
|
|
1010
925
|
};
|
|
1011
926
|
var Box = BoxTransform;
|
|
1012
|
-
var templateObject_1$
|
|
927
|
+
var templateObject_1$K, templateObject_2$w, templateObject_3$t, templateObject_4$m, templateObject_5$i, templateObject_6$d, templateObject_7$b, templateObject_8$8, templateObject_9$6, templateObject_10$4, templateObject_11$4, templateObject_12$4, templateObject_13$4, templateObject_14$2, templateObject_15$2, templateObject_16$2, templateObject_17$2, templateObject_18$2, templateObject_19$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;
|
|
1013
928
|
|
|
1014
929
|
var IconStyled = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
1015
930
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -1017,7 +932,7 @@ var IconStyled = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
1017
932
|
},
|
|
1018
933
|
displayName: "Icon__IconStyled",
|
|
1019
934
|
componentId: "sc-1105czq-0"
|
|
1020
|
-
})(templateObject_1$
|
|
935
|
+
})(templateObject_1$J || (templateObject_1$J = __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) {
|
|
1021
936
|
var $size = _a.$size;
|
|
1022
937
|
return tokens.semantic.size.icon[$size];
|
|
1023
938
|
}, function (_a) {
|
|
@@ -1094,7 +1009,7 @@ var Icon = function Icon(_a) {
|
|
|
1094
1009
|
}))
|
|
1095
1010
|
});
|
|
1096
1011
|
};
|
|
1097
|
-
var templateObject_1$
|
|
1012
|
+
var templateObject_1$J;
|
|
1098
1013
|
|
|
1099
1014
|
var button$1 = tokens.component.button,
|
|
1100
1015
|
semantic$k = tokens.semantic;
|
|
@@ -1107,6 +1022,7 @@ var control$1 = semantic$k.size.control;
|
|
|
1107
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$k.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$k.border.focusOffset, ";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ").concat(forcedColorsEdge, "\n");
|
|
1108
1023
|
// Dynamic variant styles using component tokens
|
|
1109
1024
|
var getVariantStyles$1 = function getVariantStyles(_a) {
|
|
1025
|
+
var _b;
|
|
1110
1026
|
var $variant = _a.$variant;
|
|
1111
1027
|
var variantConfig = {
|
|
1112
1028
|
primary: {
|
|
@@ -1141,15 +1057,6 @@ var getVariantStyles$1 = function getVariantStyles(_a) {
|
|
|
1141
1057
|
disabledBg: button$1.variants.accent.disabled.backgroundColor,
|
|
1142
1058
|
disabledText: button$1.variants.accent.disabled.textColor
|
|
1143
1059
|
},
|
|
1144
|
-
// Deprecated alias for accent; removed in 3.0
|
|
1145
|
-
emphasis: {
|
|
1146
|
-
bg: button$1.variants.emphasis.backgroundColor,
|
|
1147
|
-
text: button$1.variants.emphasis.textColor,
|
|
1148
|
-
hoverBg: button$1.variants.emphasis.hover.backgroundColor,
|
|
1149
|
-
activeBg: button$1.variants.emphasis.active.backgroundColor,
|
|
1150
|
-
disabledBg: button$1.variants.emphasis.disabled.backgroundColor,
|
|
1151
|
-
disabledText: button$1.variants.emphasis.disabled.textColor
|
|
1152
|
-
},
|
|
1153
1060
|
danger: {
|
|
1154
1061
|
bg: button$1.variants.danger.backgroundColor,
|
|
1155
1062
|
text: button$1.variants.danger.textColor,
|
|
@@ -1159,7 +1066,8 @@ var getVariantStyles$1 = function getVariantStyles(_a) {
|
|
|
1159
1066
|
disabledText: button$1.variants.danger.disabled.textColor
|
|
1160
1067
|
}
|
|
1161
1068
|
};
|
|
1162
|
-
|
|
1069
|
+
// A removed variant (such as `emphasis`) passed from plain JavaScript renders as primary
|
|
1070
|
+
var config = (_b = variantConfig[$variant]) !== null && _b !== void 0 ? _b : variantConfig.primary;
|
|
1163
1071
|
return "\n background-color: ".concat(config.bg, ";\n color: ").concat(config.text, ";\n \n &:hover:not(:disabled) {\n background-color: ").concat(config.hoverBg, ";\n }\n\n &:active:not(:disabled) {\n background-color: ").concat(config.activeBg, ";\n }\n\n &:disabled {\n background-color: ").concat(config.disabledBg, ";\n color: ").concat(config.disabledText, ";\n }\n ");
|
|
1164
1072
|
};
|
|
1165
1073
|
// Dynamic size styles: font from component tokens, height from size.control (decision 0034)
|
|
@@ -1181,7 +1089,7 @@ var StyledButton = /*#__PURE__*/styled__default.default.button.withConfig({
|
|
|
1181
1089
|
},
|
|
1182
1090
|
displayName: "Button__StyledButton",
|
|
1183
1091
|
componentId: "sc-1eiuum9-0"
|
|
1184
|
-
})(templateObject_1$
|
|
1092
|
+
})(templateObject_1$I || (templateObject_1$I = __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);
|
|
1185
1093
|
var StyledLink = /*#__PURE__*/styled__default.default.a.withConfig({
|
|
1186
1094
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1187
1095
|
return !prop.startsWith('$');
|
|
@@ -1291,7 +1199,7 @@ var Button = function Button(_a) {
|
|
|
1291
1199
|
children: renderButtonContent(children, iconName, size)
|
|
1292
1200
|
}));
|
|
1293
1201
|
};
|
|
1294
|
-
var templateObject_1$
|
|
1202
|
+
var templateObject_1$I, templateObject_2$v;
|
|
1295
1203
|
|
|
1296
1204
|
var semantic$j = tokens.semantic;
|
|
1297
1205
|
var color$9 = semantic$j.color;
|
|
@@ -1300,20 +1208,7 @@ var category = color$9.category;
|
|
|
1300
1208
|
var radius$3 = semantic$j.radius;
|
|
1301
1209
|
var space$d = semantic$j.space;
|
|
1302
1210
|
var labelHeight$1 = semantic$j.size.label;
|
|
1303
|
-
var
|
|
1304
|
-
olive: 'olive',
|
|
1305
|
-
periwinkle: 'periwinkle',
|
|
1306
|
-
rose: 'rose',
|
|
1307
|
-
magenta: 'magenta',
|
|
1308
|
-
gray: 'gray',
|
|
1309
|
-
blue: 'periwinkle',
|
|
1310
|
-
purple: 'magenta',
|
|
1311
|
-
pink: 'rose',
|
|
1312
|
-
yellow: 'olive',
|
|
1313
|
-
green: 'olive',
|
|
1314
|
-
red: 'rose',
|
|
1315
|
-
orange: 'rose'
|
|
1316
|
-
};
|
|
1211
|
+
var displayColors = ['olive', 'periwinkle', 'rose', 'magenta', 'gray'];
|
|
1317
1212
|
// Text on white or the -muted fill (outlined and minimal), at least 4.5:1 (#115)
|
|
1318
1213
|
var categoryText = {
|
|
1319
1214
|
olive: category['olive-text'],
|
|
@@ -1328,7 +1223,7 @@ var StyledCategoryLabel = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
1328
1223
|
},
|
|
1329
1224
|
displayName: "CategoryLabel__StyledCategoryLabel",
|
|
1330
1225
|
componentId: "sc-1jx7bjo-0"
|
|
1331
|
-
})(templateObject_1$
|
|
1226
|
+
})(templateObject_1$H || (templateObject_1$H = __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"
|
|
1332
1227
|
// The visible content, hidden from assistive technology when an aria-label replaces it.
|
|
1333
1228
|
// display: contents keeps the root's flex layout and gap.
|
|
1334
1229
|
])), radius$3.full, semantic$j.border.width.thin, function (_a) {
|
|
@@ -1426,8 +1321,10 @@ var CategoryLabel = function CategoryLabel(_a) {
|
|
|
1426
1321
|
var iconSize = size === 'medium' ? 'xs' : 'sm';
|
|
1427
1322
|
// A blank aria-label is no label at all, so it falls back like a missing one
|
|
1428
1323
|
var accessibleLabel = (ariaLabel === null || ariaLabel === void 0 ? void 0 : ariaLabel.trim()) ? ariaLabel : undefined;
|
|
1429
|
-
return jsxRuntime.jsxs(StyledCategoryLabel
|
|
1430
|
-
|
|
1324
|
+
return jsxRuntime.jsxs(StyledCategoryLabel
|
|
1325
|
+
// A removed hue name passed from plain JavaScript renders as the default, periwinkle
|
|
1326
|
+
, {
|
|
1327
|
+
"$color": displayColors.includes(color) ? color : 'periwinkle',
|
|
1431
1328
|
"$variant": variant,
|
|
1432
1329
|
"$size": size,
|
|
1433
1330
|
"data-testid": dataTestId,
|
|
@@ -1444,35 +1341,13 @@ var CategoryLabel = function CategoryLabel(_a) {
|
|
|
1444
1341
|
});
|
|
1445
1342
|
};
|
|
1446
1343
|
CategoryLabel.displayName = 'CategoryLabel';
|
|
1447
|
-
var templateObject_1$
|
|
1448
|
-
|
|
1449
|
-
// CategoryBadge sizes on the decision 0018 scale
|
|
1450
|
-
var toLabelSize = {
|
|
1451
|
-
small: 'medium',
|
|
1452
|
-
medium: 'large'
|
|
1453
|
-
};
|
|
1454
|
-
/**
|
|
1455
|
-
* CategoryBadge displays a category label.
|
|
1456
|
-
*
|
|
1457
|
-
* @deprecated Renamed to `CategoryLabel` (same `color` and `variant`). Map `size="small"` to
|
|
1458
|
-
* `"medium"`, and `size="medium"` (or no size) to `"large"`, CategoryLabel's default.
|
|
1459
|
-
* CategoryBadge is removed in 3.0 (decision 0018).
|
|
1460
|
-
*/
|
|
1461
|
-
var CategoryBadge = function CategoryBadge(_a) {
|
|
1462
|
-
var _b = _a.size,
|
|
1463
|
-
size = _b === void 0 ? 'medium' : _b,
|
|
1464
|
-
props = __rest(_a, ["size"]);
|
|
1465
|
-
return jsxRuntime.jsx(CategoryLabel, __assign({}, props, {
|
|
1466
|
-
size: toLabelSize[size]
|
|
1467
|
-
}));
|
|
1468
|
-
};
|
|
1469
|
-
CategoryBadge.displayName = 'CategoryBadge';
|
|
1344
|
+
var templateObject_1$H, templateObject_2$u, templateObject_3$s;
|
|
1470
1345
|
|
|
1471
1346
|
var chip$2 = tokens.component.chip,
|
|
1472
1347
|
semantic$i = tokens.semantic;
|
|
1473
|
-
//
|
|
1348
|
+
// The chip's fill and text for its surface and state, matching Button's approach
|
|
1474
1349
|
var getVariantStyles = function getVariantStyles(_a) {
|
|
1475
|
-
var $
|
|
1350
|
+
var $surface = _a.$surface,
|
|
1476
1351
|
$selected = _a.$selected,
|
|
1477
1352
|
$clickable = _a.$clickable,
|
|
1478
1353
|
$disabled = _a.$disabled;
|
|
@@ -1491,16 +1366,12 @@ var getVariantStyles = function getVariantStyles(_a) {
|
|
|
1491
1366
|
var interactiveStates = $clickable;
|
|
1492
1367
|
return "\n background-color: ".concat(fill['accent-muted'], ";\n color: ").concat(text.accent, ";\n \n &:hover {\n background-color: ").concat(interactiveStates ? fill['accent-muted-hover'] : fill['accent-muted'], ";\n color: ").concat(interactiveStates ? text.accent : text.accent, ";\n }\n \n &:active {\n background-color: ").concat(interactiveStates ? fill['accent-muted-pressed'] : fill['accent-muted'], ";\n color: ").concat(interactiveStates ? text.accent : text.accent, ";\n }\n\n /* Forced colours drop the fill, so a selected chip takes the system selection colours\n (decision 0038); its checkmark follows the text colour */\n ").concat(forcedColors, " {\n forced-color-adjust: none;\n background-color: Highlight;\n border-color: Highlight;\n color: HighlightText;\n }\n ");
|
|
1493
1368
|
}
|
|
1494
|
-
switch ($
|
|
1495
|
-
case 'emphasis':
|
|
1496
|
-
return "\n background-color: ".concat(chip$2.variants.emphasis.backgroundColor, ";\n color: ").concat(chip$2.variants.emphasis.textColor, ";\n \n &:hover {\n background-color: ").concat($disabled ? chip$2.variants.emphasis.disabled.backgroundColor : $clickable ? chip$2.variants.emphasis.hover.backgroundColor : chip$2.variants.emphasis.backgroundColor, ";\n }\n \n &:active {\n background-color: ").concat($disabled ? chip$2.variants.emphasis.disabled.backgroundColor : $clickable ? chip$2.variants.emphasis.active.backgroundColor : chip$2.variants.emphasis.backgroundColor, ";\n }\n \n ").concat($disabled ? "\n background-color: ".concat(chip$2.variants.emphasis.disabled.backgroundColor, ";\n color: ").concat(chip$2.variants.emphasis.disabled.textColor, ";\n ") : '', "\n ");
|
|
1369
|
+
switch ($surface) {
|
|
1497
1370
|
case 'subtle':
|
|
1498
1371
|
return "\n background-color: ".concat(chip$2.variants.subtle.backgroundColor, ";\n color: ").concat(chip$2.variants.subtle.textColor, ";\n \n &:hover {\n background-color: ").concat($disabled ? chip$2.variants.subtle.disabled.backgroundColor : $clickable ? chip$2.variants.subtle.hover.backgroundColor : chip$2.variants.subtle.backgroundColor, ";\n }\n \n &:active {\n background-color: ").concat($disabled ? chip$2.variants.subtle.disabled.backgroundColor : $clickable ? chip$2.variants.subtle.active.backgroundColor : chip$2.variants.subtle.backgroundColor, ";\n }\n \n ").concat($disabled ? "\n background-color: ".concat(chip$2.variants.subtle.disabled.backgroundColor, ";\n color: ").concat(chip$2.variants.subtle.disabled.textColor, ";\n ") : '', "\n ");
|
|
1499
|
-
case 'interactive':
|
|
1500
|
-
return "\n background-color: ".concat(chip$2.variants.interactive.backgroundColor, ";\n color: ").concat(chip$2.variants.interactive.textColor, ";\n \n &:hover {\n background-color: ").concat($disabled ? chip$2.variants.interactive.disabled.backgroundColor : $clickable ? chip$2.variants.interactive.hover.backgroundColor : chip$2.variants.interactive.backgroundColor, ";\n }\n \n &:active {\n background-color: ").concat($disabled ? chip$2.variants.interactive.disabled.backgroundColor : $clickable ? chip$2.variants.interactive.active.backgroundColor : chip$2.variants.interactive.backgroundColor, ";\n }\n \n ").concat($disabled ? "\n background-color: ".concat(chip$2.variants.interactive.disabled.backgroundColor, ";\n color: ").concat(chip$2.variants.interactive.disabled.textColor, ";\n ") : '', "\n ");
|
|
1501
1372
|
case 'default':
|
|
1502
1373
|
default:
|
|
1503
|
-
return "\n background-color: ".concat(chip$2["default"].backgroundColor, ";\n color: ").concat(chip$2["default"].textColor, ";\n \n
|
|
1374
|
+
return "\n background-color: ".concat(chip$2["default"].backgroundColor, ";\n color: ").concat(chip$2["default"].textColor, ";\n \n ").concat($disabled ? "\n background-color: ".concat(chip$2.disabled.backgroundColor, ";\n color: ").concat(chip$2.disabled.textColor, ";\n ") : '', "\n ");
|
|
1504
1375
|
}
|
|
1505
1376
|
};
|
|
1506
1377
|
// Chips have one size: 24px from the label scale as a minimum, with the content centred
|
|
@@ -1517,7 +1388,7 @@ var StyledChip = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
1517
1388
|
},
|
|
1518
1389
|
displayName: "ChipBase__StyledChip",
|
|
1519
1390
|
componentId: "sc-moa6zc-0"
|
|
1520
|
-
})(templateObject_1$
|
|
1391
|
+
})(templateObject_1$G || (templateObject_1$G = __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"
|
|
1521
1392
|
// Icon container for selected indicator or leading icons
|
|
1522
1393
|
])), chip$1["default"].borderRadius, semantic$h.motion.transition.feedback, function (props) {
|
|
1523
1394
|
return props.$disabled ? 'not-allowed' : props.$clickable ? 'pointer' : 'default';
|
|
@@ -1541,76 +1412,50 @@ var CloseButton = /*#__PURE__*/styled__default.default.button.withConfig({
|
|
|
1541
1412
|
})(templateObject_3$r || (templateObject_3$r = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n position: relative;\n width: ", ";\n height: ", ";\n padding: ", ";\n\n /* The pointer target is at least 24 \xD7 24px (WCAG 2.5.8, decision 0039): an invisible hit area\n as tall as the chip, centred on the 20px button. It stays inside the chip and its padding, so\n it can't overlap another target. */\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: ", ";\n height: ", ";\n transform: translate(-50%, -50%);\n }\n border-radius: ", ";\n cursor: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n background-color: ", ";\n }\n \n &:active:not(:disabled) {\n background-color: ", ";\n }\n \n &:disabled {\n color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n border-radius: ", ";\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n position: relative;\n width: ", ";\n height: ", ";\n padding: ", ";\n\n /* The pointer target is at least 24 \xD7 24px (WCAG 2.5.8, decision 0039): an invisible hit area\n as tall as the chip, centred on the 20px button. It stays inside the chip and its padding, so\n it can't overlap another target. */\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: ", ";\n height: ", ";\n transform: translate(-50%, -50%);\n }\n border-radius: ", ";\n cursor: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n background-color: ", ";\n }\n \n &:active:not(:disabled) {\n background-color: ", ";\n }\n \n &:disabled {\n color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n border-radius: ", ";\n }\n"])), tokens.semantic.space[200], chip$1.closeButton.size, chip$1.closeButton.size, tokens.semantic.space[0], semantic$h.size.label.medium, semantic$h.size.label.medium, tokens.semantic.radius.xs, function (props) {
|
|
1542
1413
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
1543
1414
|
}, semantic$h.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$h.border.focusOffset, chip$1["default"].borderRadius);
|
|
1544
|
-
var templateObject_1$
|
|
1415
|
+
var templateObject_1$G, templateObject_2$t, templateObject_3$r;
|
|
1545
1416
|
|
|
1546
1417
|
/**
|
|
1547
1418
|
* Chip - a static, non-interactive label for tags, categories and metadata.
|
|
1548
1419
|
*
|
|
1549
1420
|
* Chips are classified by job (decision 0016):
|
|
1550
|
-
* - Chip: a static label
|
|
1551
|
-
* -
|
|
1552
|
-
* -
|
|
1421
|
+
* - Chip: a static label
|
|
1422
|
+
* - FilterChip: toggles a filter on and off
|
|
1423
|
+
* - InputChip: a removable value, such as an applied filter
|
|
1424
|
+
* - SuggestionChip: fills the agent input with a suggestion
|
|
1553
1425
|
*
|
|
1554
|
-
*
|
|
1555
|
-
* deprecated and will be removed in 3.0.
|
|
1426
|
+
* For a clickable action, use a Button.
|
|
1556
1427
|
*/
|
|
1557
1428
|
var Chip = function Chip(_a) {
|
|
1558
|
-
var children = _a.children
|
|
1559
|
-
|
|
1560
|
-
variant
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
var onClick = _a.onClick,
|
|
1564
|
-
_c = _a.disabled,
|
|
1565
|
-
disabled = _c === void 0 ? false : _c,
|
|
1429
|
+
var children = _a.children;
|
|
1430
|
+
// One variant: a removed one passed from plain JavaScript renders as default
|
|
1431
|
+
_a.variant;
|
|
1432
|
+
var _b = _a.disabled,
|
|
1433
|
+
disabled = _b === void 0 ? false : _b,
|
|
1566
1434
|
dataTestId = _a["data-testid"],
|
|
1567
1435
|
ariaLabel = _a["aria-label"],
|
|
1568
1436
|
ariaDescribedBy = _a["aria-describedby"],
|
|
1569
1437
|
role = _a.role,
|
|
1570
1438
|
title = _a.title,
|
|
1571
|
-
props = __rest(_a, ["children", "variant", "
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1439
|
+
props = __rest(_a, ["children", "variant", "disabled", 'data-testid', 'aria-label', 'aria-describedby', "role", "title"]);
|
|
1440
|
+
// Removed props passed from plain JavaScript stay off the DOM
|
|
1441
|
+
var _c = props;
|
|
1442
|
+
_c.onClick;
|
|
1443
|
+
_c.size;
|
|
1444
|
+
var domProps = __rest(_c, ["onClick", "size"]);
|
|
1575
1445
|
// Support legacy title prop
|
|
1576
1446
|
var content = children !== undefined ? children : title;
|
|
1577
|
-
var handleClick = function handleClick() {
|
|
1578
|
-
if (onClick && !disabled) {
|
|
1579
|
-
onClick();
|
|
1580
|
-
}
|
|
1581
|
-
};
|
|
1582
|
-
var handleKeyDown = function handleKeyDown(event) {
|
|
1583
|
-
if (isClickable && (event.key === 'Enter' || event.key === ' ')) {
|
|
1584
|
-
event.preventDefault();
|
|
1585
|
-
handleClick();
|
|
1586
|
-
}
|
|
1587
|
-
};
|
|
1588
1447
|
return jsxRuntime.jsx(StyledChip, __assign({
|
|
1589
|
-
"$
|
|
1448
|
+
"$surface": "default",
|
|
1590
1449
|
"$disabled": disabled || undefined,
|
|
1591
|
-
|
|
1592
|
-
onClick: isClickable ? handleClick : undefined,
|
|
1593
|
-
onKeyDown: handleKeyDown,
|
|
1594
|
-
tabIndex: isClickable ? 0 : undefined,
|
|
1595
|
-
role: role || (isClickable ? 'button' : undefined),
|
|
1450
|
+
role: role,
|
|
1596
1451
|
"aria-label": ariaLabel,
|
|
1597
1452
|
"aria-describedby": ariaDescribedBy,
|
|
1598
1453
|
"aria-disabled": disabled ? 'true' : undefined,
|
|
1599
1454
|
"data-testid": dataTestId
|
|
1600
|
-
},
|
|
1455
|
+
}, domProps, {
|
|
1601
1456
|
children: content
|
|
1602
1457
|
}));
|
|
1603
1458
|
};
|
|
1604
|
-
var LegacyChip = function LegacyChip(_a) {
|
|
1605
|
-
var title = _a.title,
|
|
1606
|
-
_b = _a.variant,
|
|
1607
|
-
variant = _b === void 0 ? 'light' : _b;
|
|
1608
|
-
var newVariant = variant === 'dark' ? 'emphasis' : 'default';
|
|
1609
|
-
return jsxRuntime.jsx(Chip, {
|
|
1610
|
-
variant: newVariant,
|
|
1611
|
-
children: title
|
|
1612
|
-
});
|
|
1613
|
-
};
|
|
1614
1459
|
|
|
1615
1460
|
/**
|
|
1616
1461
|
* InputChip - A removable value, such as an applied filter, with an optional selected state
|
|
@@ -1632,16 +1477,14 @@ var InputChip = function InputChip(_a) {
|
|
|
1632
1477
|
var children = _a.children,
|
|
1633
1478
|
_b = _a.selected,
|
|
1634
1479
|
selected = _b === void 0 ? false : _b,
|
|
1635
|
-
onDismiss = _a.onDismiss
|
|
1636
|
-
|
|
1637
|
-
_a.size;
|
|
1638
|
-
var _c = _a.disabled,
|
|
1480
|
+
onDismiss = _a.onDismiss,
|
|
1481
|
+
_c = _a.disabled,
|
|
1639
1482
|
disabled = _c === void 0 ? false : _c,
|
|
1640
1483
|
dataTestId = _a["data-testid"],
|
|
1641
1484
|
ariaLabel = _a["aria-label"],
|
|
1642
1485
|
ariaDescribedBy = _a["aria-describedby"],
|
|
1643
1486
|
role = _a.role,
|
|
1644
|
-
props = __rest(_a, ["children", "selected", "onDismiss", "
|
|
1487
|
+
props = __rest(_a, ["children", "selected", "onDismiss", "disabled", 'data-testid', 'aria-label', 'aria-describedby', "role"]);
|
|
1645
1488
|
var isDismissible = Boolean(onDismiss);
|
|
1646
1489
|
var handleDismiss = function handleDismiss(event) {
|
|
1647
1490
|
event.stopPropagation(); // Prevent event bubbling
|
|
@@ -1665,7 +1508,7 @@ var InputChip = function InputChip(_a) {
|
|
|
1665
1508
|
// Generate accessible label for close button
|
|
1666
1509
|
var closeButtonLabel = typeof children === 'string' ? "Remove ".concat(children) : 'Remove filter';
|
|
1667
1510
|
return jsxRuntime.jsxs(StyledChip, __assign({
|
|
1668
|
-
"$
|
|
1511
|
+
"$surface": "subtle",
|
|
1669
1512
|
"$disabled": disabled || undefined,
|
|
1670
1513
|
"$clickable": false,
|
|
1671
1514
|
"$selected": selected,
|
|
@@ -1702,16 +1545,7 @@ var InputChip = function InputChip(_a) {
|
|
|
1702
1545
|
};
|
|
1703
1546
|
|
|
1704
1547
|
/**
|
|
1705
|
-
* FilterChip -
|
|
1706
|
-
*
|
|
1707
|
-
* @deprecated Renamed to `InputChip`; in 3.0 `FilterChip` becomes the toggle chip (today's
|
|
1708
|
-
* `BooleanChip`). Replace `FilterChip` with `InputChip` first, then `BooleanChip` with
|
|
1709
|
-
* `FilterChip` when you upgrade to 3.0 (decision 0016).
|
|
1710
|
-
*/
|
|
1711
|
-
var FilterChip = InputChip;
|
|
1712
|
-
|
|
1713
|
-
/**
|
|
1714
|
-
* BooleanChip - Toggleable chip for quick filter controls
|
|
1548
|
+
* FilterChip - Toggleable chip for quick filter controls (decision 0016)
|
|
1715
1549
|
*
|
|
1716
1550
|
* Use this component for multi-select filter controls where users can
|
|
1717
1551
|
* see which options are active. Common in table filtering patterns where
|
|
@@ -1724,25 +1558,23 @@ var FilterChip = InputChip;
|
|
|
1724
1558
|
* - Uses checkbox role with aria-checked
|
|
1725
1559
|
* - Light-blue fill and blue text when selected and enabled; disabled colours when disabled
|
|
1726
1560
|
*
|
|
1727
|
-
*
|
|
1728
|
-
* until you upgrade; in 3.0, replace `FilterChip` with `InputChip` first, then
|
|
1729
|
-
* `BooleanChip` with `FilterChip` (decision 0016).
|
|
1561
|
+
* Called `BooleanChip` before 3.0. For a removable value, use InputChip.
|
|
1730
1562
|
*/
|
|
1731
|
-
var
|
|
1563
|
+
var FilterChip = function FilterChip(_a) {
|
|
1732
1564
|
var children = _a.children,
|
|
1733
1565
|
selected = _a.selected,
|
|
1734
|
-
onClick = _a.onClick
|
|
1735
|
-
|
|
1736
|
-
_a.size;
|
|
1737
|
-
var _b = _a.disabled,
|
|
1566
|
+
onClick = _a.onClick,
|
|
1567
|
+
_b = _a.disabled,
|
|
1738
1568
|
disabled = _b === void 0 ? false : _b,
|
|
1739
1569
|
dataTestId = _a["data-testid"],
|
|
1740
1570
|
ariaLabel = _a["aria-label"],
|
|
1741
1571
|
ariaDescribedBy = _a["aria-describedby"],
|
|
1742
|
-
props = __rest(_a, ["children", "selected", "onClick", "
|
|
1572
|
+
props = __rest(_a, ["children", "selected", "onClick", "disabled", 'data-testid', 'aria-label', 'aria-describedby']);
|
|
1743
1573
|
var handleClick = function handleClick() {
|
|
1574
|
+
// Optional call: a plain JavaScript app that kept the pre-3.0 FilterChip (now InputChip) passes
|
|
1575
|
+
// no onClick, and its chip should stay inert rather than throw
|
|
1744
1576
|
if (!disabled) {
|
|
1745
|
-
onClick();
|
|
1577
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
1746
1578
|
}
|
|
1747
1579
|
};
|
|
1748
1580
|
var handleKeyDown = function handleKeyDown(event) {
|
|
@@ -1753,7 +1585,7 @@ var BooleanChip = function BooleanChip(_a) {
|
|
|
1753
1585
|
}
|
|
1754
1586
|
};
|
|
1755
1587
|
return jsxRuntime.jsxs(StyledChip, __assign({
|
|
1756
|
-
"$
|
|
1588
|
+
"$surface": "subtle",
|
|
1757
1589
|
"$disabled": disabled || undefined,
|
|
1758
1590
|
"$clickable": !disabled,
|
|
1759
1591
|
"$selected": selected,
|
|
@@ -1786,7 +1618,7 @@ var color$8 = semantic$g.color;
|
|
|
1786
1618
|
var StyledSuggestionChip = /*#__PURE__*/styled__default.default.button.withConfig({
|
|
1787
1619
|
displayName: "SuggestionChip__StyledSuggestionChip",
|
|
1788
1620
|
componentId: "sc-1k0njm-0"
|
|
1789
|
-
})(templateObject_1$
|
|
1621
|
+
})(templateObject_1$F || (templateObject_1$F = __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"
|
|
1790
1622
|
/**
|
|
1791
1623
|
* SuggestionChip - Offers text to put in the agent input
|
|
1792
1624
|
*
|
|
@@ -1826,13 +1658,13 @@ var SuggestionChip = function SuggestionChip(_a) {
|
|
|
1826
1658
|
});
|
|
1827
1659
|
};
|
|
1828
1660
|
SuggestionChip.displayName = 'SuggestionChip';
|
|
1829
|
-
var templateObject_1$
|
|
1661
|
+
var templateObject_1$F;
|
|
1830
1662
|
|
|
1831
1663
|
var space$c = tokens.semantic.space;
|
|
1832
1664
|
var StyledContainer$2 = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
1833
1665
|
displayName: "Container__StyledContainer",
|
|
1834
1666
|
componentId: "sc-17dbj6n-0"
|
|
1835
|
-
})(templateObject_1$
|
|
1667
|
+
})(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n width: 100%;\n margin-left: auto;\n margin-right: auto;\n padding-left: ", ";\n padding-right: ", ";\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n"], ["\n width: 100%;\n margin-left: auto;\n margin-right: auto;\n padding-left: ", ";\n padding-right: ", ";\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n \n ", " {\n max-width: ", ";\n }\n"])), space$c[600], space$c[600], media$1.sm, breakpoints$1.sm, media$1.md, breakpoints$1.md, media$1.lg, breakpoints$1.lg, media$1.xl, breakpoints$1.xl, media$1['2xl'], breakpoints$1['2xl']);
|
|
1836
1668
|
var Container$1 = function Container(_a) {
|
|
1837
1669
|
var children = _a.children,
|
|
1838
1670
|
props = __rest(_a, ["children"]);
|
|
@@ -1840,12 +1672,12 @@ var Container$1 = function Container(_a) {
|
|
|
1840
1672
|
children: children
|
|
1841
1673
|
}));
|
|
1842
1674
|
};
|
|
1843
|
-
var templateObject_1$
|
|
1675
|
+
var templateObject_1$E;
|
|
1844
1676
|
|
|
1845
1677
|
var PictureWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
1846
1678
|
displayName: "Picture__PictureWrapper",
|
|
1847
1679
|
componentId: "sc-11d9tei-0"
|
|
1848
|
-
})(templateObject_1$
|
|
1680
|
+
})(templateObject_1$D || (templateObject_1$D = __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"
|
|
1849
1681
|
// A clickable image answers input on the image itself (decision 0029, #185): it fades on hover and
|
|
1850
1682
|
// one step further while pressed, and draws the system focus ring around the image, following its
|
|
1851
1683
|
// rounded corners. Fading isn't movement, so it stays under reduced motion.
|
|
@@ -1895,7 +1727,7 @@ var Picture = function Picture(_a) {
|
|
|
1895
1727
|
}) : image
|
|
1896
1728
|
});
|
|
1897
1729
|
};
|
|
1898
|
-
var templateObject_1$
|
|
1730
|
+
var templateObject_1$D, templateObject_2$s, templateObject_3$q, templateObject_4$l, templateObject_5$h;
|
|
1899
1731
|
|
|
1900
1732
|
var _a$8 = tokens.semantic,
|
|
1901
1733
|
typography$2 = _a$8.typography,
|
|
@@ -1903,7 +1735,7 @@ var _a$8 = tokens.semantic,
|
|
|
1903
1735
|
var TimeStyled = /*#__PURE__*/styled__default.default.time.withConfig({
|
|
1904
1736
|
displayName: "DateFormatter__TimeStyled",
|
|
1905
1737
|
componentId: "sc-5464cc-0"
|
|
1906
|
-
})(templateObject_1$
|
|
1738
|
+
})(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
|
|
1907
1739
|
/**
|
|
1908
1740
|
* Formats a date with smart relative/absolute logic
|
|
1909
1741
|
*/])), typography$2.label, color$7.text.muted);
|
|
@@ -1932,7 +1764,6 @@ var DateFormatter = function DateFormatter(_a) {
|
|
|
1932
1764
|
var date = dateFns.parseISO(dateString);
|
|
1933
1765
|
var displayText;
|
|
1934
1766
|
switch (mode) {
|
|
1935
|
-
case 'relative': // Deprecated alias for 'smart', removed in 3.0 (#82)
|
|
1936
1767
|
case 'smart':
|
|
1937
1768
|
// Today, Yesterday or the day name for recent dates; formatted for older ones
|
|
1938
1769
|
displayText = formatDateSmart(date, formatString);
|
|
@@ -1949,7 +1780,7 @@ var DateFormatter = function DateFormatter(_a) {
|
|
|
1949
1780
|
children: displayText
|
|
1950
1781
|
});
|
|
1951
1782
|
};
|
|
1952
|
-
var templateObject_1$
|
|
1783
|
+
var templateObject_1$C;
|
|
1953
1784
|
|
|
1954
1785
|
var _a$7 = tokens.semantic,
|
|
1955
1786
|
motion$5 = _a$7.motion,
|
|
@@ -2010,7 +1841,7 @@ var IconButtonStyled = /*#__PURE__*/styled__default.default.button.withConfig({
|
|
|
2010
1841
|
},
|
|
2011
1842
|
displayName: "IconButton__IconButtonStyled",
|
|
2012
1843
|
componentId: "sc-k8b14t-0"
|
|
2013
|
-
})(templateObject_1$
|
|
1844
|
+
})(templateObject_1$B || (templateObject_1$B = __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) {
|
|
2014
1845
|
var $variant = _a.$variant;
|
|
2015
1846
|
return colours($variant).bg;
|
|
2016
1847
|
}, function (_a) {
|
|
@@ -2088,7 +1919,7 @@ var IconButton = function IconButton(_a) {
|
|
|
2088
1919
|
})
|
|
2089
1920
|
}));
|
|
2090
1921
|
};
|
|
2091
|
-
var templateObject_1$
|
|
1922
|
+
var templateObject_1$B;
|
|
2092
1923
|
|
|
2093
1924
|
var StyledWrapper = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
2094
1925
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -2096,7 +1927,7 @@ var StyledWrapper = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
2096
1927
|
},
|
|
2097
1928
|
displayName: "MoneyDisplay__StyledWrapper",
|
|
2098
1929
|
componentId: "sc-1mddej3-0"
|
|
2099
|
-
})(templateObject_1$
|
|
1930
|
+
})(templateObject_1$A || (templateObject_1$A = __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"
|
|
2100
1931
|
// Map size to Typography variant
|
|
2101
1932
|
])), function (_a) {
|
|
2102
1933
|
var $align = _a.$align;
|
|
@@ -2158,7 +1989,7 @@ var MoneyDisplay = function MoneyDisplay(_a) {
|
|
|
2158
1989
|
})
|
|
2159
1990
|
});
|
|
2160
1991
|
};
|
|
2161
|
-
var templateObject_1$
|
|
1992
|
+
var templateObject_1$A;
|
|
2162
1993
|
|
|
2163
1994
|
// Destructure tokens
|
|
2164
1995
|
var semantic$f = tokens.semantic;
|
|
@@ -2176,7 +2007,7 @@ var ProgressBarContainer = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
2176
2007
|
displayName: "ProgressBar__ProgressBarContainer",
|
|
2177
2008
|
componentId: "sc-1nco33q-0"
|
|
2178
2009
|
})(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n /* Forced colours drop the track's fill, so the track gets an edge (decision 0038) */\n ", "\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n /* Forced colours drop the track's fill, so the track gets an edge (decision 0038) */\n ", "\n\n ", "\n\n ", "\n"])), tokens.component.track.background, radius$2.xs, forcedColorsEdge, function (props) {
|
|
2179
|
-
return props.$variant === 'horizontal' && styled.css(templateObject_1$
|
|
2010
|
+
return props.$variant === 'horizontal' && styled.css(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n "], ["\n width: 100%;\n height: ", ";\n "])), props.$height ? component$2.progressBar.sizes[props.$height].height : component$2.progressBar.sizes.md.height);
|
|
2180
2011
|
}, function (props) {
|
|
2181
2012
|
return props.$variant === 'vertical' && styled.css(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n "], ["\n width: ", ";\n height: 100%;\n "])), props.$width ? component$2.progressBar.sizes[props.$width].height : component$2.progressBar.sizes.md.height);
|
|
2182
2013
|
});
|
|
@@ -2239,7 +2070,7 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
2239
2070
|
})
|
|
2240
2071
|
});
|
|
2241
2072
|
};
|
|
2242
|
-
var templateObject_1$
|
|
2073
|
+
var templateObject_1$z, templateObject_2$r, templateObject_3$p, templateObject_4$k, templateObject_5$g, templateObject_6$c, templateObject_7$a;
|
|
2243
2074
|
|
|
2244
2075
|
// Destructure tokens for cleaner access
|
|
2245
2076
|
var separatorTokens = tokens.component.separator;
|
|
@@ -2251,7 +2082,7 @@ var StyledDivider = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
2251
2082
|
},
|
|
2252
2083
|
displayName: "Divider__StyledDivider",
|
|
2253
2084
|
componentId: "sc-1l0c8ja-0"
|
|
2254
|
-
})(templateObject_1$
|
|
2085
|
+
})(templateObject_1$y || (templateObject_1$y = __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"
|
|
2255
2086
|
/**
|
|
2256
2087
|
* Divider is an atomic component that provides visual separation between content sections.
|
|
2257
2088
|
*
|
|
@@ -2364,7 +2195,7 @@ var Divider = function Divider(_a) {
|
|
|
2364
2195
|
"aria-orientation": orientation
|
|
2365
2196
|
});
|
|
2366
2197
|
};
|
|
2367
|
-
var templateObject_1$
|
|
2198
|
+
var templateObject_1$y;
|
|
2368
2199
|
|
|
2369
2200
|
var StyledStack = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
2370
2201
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -2372,7 +2203,7 @@ var StyledStack = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
2372
2203
|
},
|
|
2373
2204
|
displayName: "Stack__StyledStack",
|
|
2374
2205
|
componentId: "sc-1ehkxgy-0"
|
|
2375
|
-
})(templateObject_1$
|
|
2206
|
+
})(templateObject_1$x || (templateObject_1$x = __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"
|
|
2376
2207
|
// Each gap name maps to the space step that replaced its old spacing.layout token (decision 0031),
|
|
2377
2208
|
// so every gap keeps its value
|
|
2378
2209
|
])));
|
|
@@ -2426,7 +2257,7 @@ var Stack = function Stack(_a) {
|
|
|
2426
2257
|
children: children
|
|
2427
2258
|
});
|
|
2428
2259
|
};
|
|
2429
|
-
var templateObject_1$
|
|
2260
|
+
var templateObject_1$x;
|
|
2430
2261
|
|
|
2431
2262
|
// Shape indicators for the six coloured statuses (decision 0045): filled silhouettes on the
|
|
2432
2263
|
// 24px grid, each the same outline as its status icon. Internal: they aren't public icons, so a
|
|
@@ -2447,7 +2278,7 @@ var statusShapes = {
|
|
|
2447
2278
|
var Mark = /*#__PURE__*/styled__default.default.svg.withConfig({
|
|
2448
2279
|
displayName: "StatusShape__Mark",
|
|
2449
2280
|
componentId: "sc-1yzi9jt-0"
|
|
2450
|
-
})(templateObject_1$
|
|
2281
|
+
})(templateObject_1$w || (templateObject_1$w = __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);
|
|
2451
2282
|
var StatusShape = function StatusShape(_a) {
|
|
2452
2283
|
var shape = _a.shape;
|
|
2453
2284
|
return jsxRuntime.jsx(Mark, {
|
|
@@ -2460,7 +2291,7 @@ var StatusShape = function StatusShape(_a) {
|
|
|
2460
2291
|
})
|
|
2461
2292
|
});
|
|
2462
2293
|
};
|
|
2463
|
-
var templateObject_1$
|
|
2294
|
+
var templateObject_1$w;
|
|
2464
2295
|
|
|
2465
2296
|
// Destructure tokens for cleaner access
|
|
2466
2297
|
var statusColors = tokens.component.status;
|
|
@@ -2473,7 +2304,7 @@ var _b$1 = tokens.semantic.motion,
|
|
|
2473
2304
|
easing$3 = _b$1.easing;
|
|
2474
2305
|
var labelHeight = tokens.semantic.size.label;
|
|
2475
2306
|
var label$1 = tokens.component.badge.label;
|
|
2476
|
-
var scaleIn$1 = styled.keyframes(templateObject_1$
|
|
2307
|
+
var scaleIn$1 = styled.keyframes(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n from {\n opacity: 0;\n transform: scale(0.8);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"], ["\n from {\n opacity: 0;\n transform: scale(0.8);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"])));
|
|
2477
2308
|
var getStatusConfig = function getStatusConfig(status) {
|
|
2478
2309
|
// Each status's icon and, for the coloured statuses, its shape indicator (decision 0045). The
|
|
2479
2310
|
// neutral statuses have no shape: at the small size they're plain text.
|
|
@@ -2566,24 +2397,22 @@ var VisibleContent = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
2566
2397
|
componentId: "sc-1ye9xz5-2"
|
|
2567
2398
|
})(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["\n display: contents;\n"], ["\n display: contents;\n"
|
|
2568
2399
|
/**
|
|
2569
|
-
*
|
|
2570
|
-
*
|
|
2571
|
-
*
|
|
2400
|
+
* StatusLabel's implementation. Internal: not exported from the package. It always shows the status
|
|
2401
|
+
* icon at the medium size, and at the small size the shape for coloured statuses (decisions 0018,
|
|
2402
|
+
* 0045).
|
|
2572
2403
|
*/])));
|
|
2573
2404
|
/**
|
|
2574
|
-
*
|
|
2575
|
-
*
|
|
2576
|
-
*
|
|
2405
|
+
* StatusLabel's implementation. Internal: not exported from the package. It always shows the status
|
|
2406
|
+
* icon at the medium size, and at the small size the shape for coloured statuses (decisions 0018,
|
|
2407
|
+
* 0045).
|
|
2577
2408
|
*/
|
|
2578
2409
|
var StatusLabelBase = function StatusLabelBase(_a) {
|
|
2579
2410
|
var status = _a.status,
|
|
2580
2411
|
label = _a.label,
|
|
2581
2412
|
_b = _a.size,
|
|
2582
2413
|
size = _b === void 0 ? 'medium' : _b,
|
|
2583
|
-
_c = _a.
|
|
2584
|
-
|
|
2585
|
-
_d = _a.liveRegion,
|
|
2586
|
-
liveRegion = _d === void 0 ? true : _d,
|
|
2414
|
+
_c = _a.liveRegion,
|
|
2415
|
+
liveRegion = _c === void 0 ? true : _c,
|
|
2587
2416
|
dataTestId = _a["data-testid"],
|
|
2588
2417
|
ariaLabel = _a["aria-label"];
|
|
2589
2418
|
var statusConfig = getStatusConfig(status);
|
|
@@ -2601,11 +2430,11 @@ var StatusLabelBase = function StatusLabelBase(_a) {
|
|
|
2601
2430
|
"data-testid": dataTestId,
|
|
2602
2431
|
children: [jsxRuntime.jsxs(VisibleContent, {
|
|
2603
2432
|
"aria-hidden": accessibleLabel ? 'true' : undefined,
|
|
2604
|
-
children: [
|
|
2433
|
+
children: [size === 'medium' && jsxRuntime.jsx(Icon, {
|
|
2605
2434
|
name: statusConfig.icon,
|
|
2606
2435
|
size: sizeStyles.iconSize,
|
|
2607
2436
|
iconColor: "inherit"
|
|
2608
|
-
}),
|
|
2437
|
+
}), size === 'small' && statusConfig.shape && jsxRuntime.jsx(StatusShape, {
|
|
2609
2438
|
shape: statusConfig.shape
|
|
2610
2439
|
}), displayLabel, jsxRuntime.jsxs(ScreenReaderOnly, {
|
|
2611
2440
|
children: [status, " status"]
|
|
@@ -2615,18 +2444,7 @@ var StatusLabelBase = function StatusLabelBase(_a) {
|
|
|
2615
2444
|
})]
|
|
2616
2445
|
});
|
|
2617
2446
|
};
|
|
2618
|
-
var templateObject_1$
|
|
2619
|
-
|
|
2620
|
-
/**
|
|
2621
|
-
* StatusBadge displays a transaction or task status.
|
|
2622
|
-
*
|
|
2623
|
-
* @deprecated Renamed to `StatusLabel` (same `status`, `size`, `label`, `liveRegion`), which always
|
|
2624
|
-
* shows its status icon or shape. StatusBadge is removed in 3.0 (decision 0018).
|
|
2625
|
-
*/
|
|
2626
|
-
var StatusBadge = function StatusBadge(props) {
|
|
2627
|
-
return jsxRuntime.jsx(StatusLabelBase, __assign({}, props));
|
|
2628
|
-
};
|
|
2629
|
-
StatusBadge.displayName = 'StatusBadge';
|
|
2447
|
+
var templateObject_1$v, templateObject_2$q, templateObject_3$o, templateObject_4$j;
|
|
2630
2448
|
|
|
2631
2449
|
/**
|
|
2632
2450
|
* StatusLabel conveys the status of something, such as a transaction or task (decision 0018).
|
|
@@ -2644,11 +2462,8 @@ StatusBadge.displayName = 'StatusBadge';
|
|
|
2644
2462
|
* <StatusLabel status="pending" label="Awaiting approval" size="small" />
|
|
2645
2463
|
* ```
|
|
2646
2464
|
*/
|
|
2647
|
-
// showIcon comes last so no caller (for example plain JavaScript) can hide the icon
|
|
2648
2465
|
var StatusLabel = function StatusLabel(props) {
|
|
2649
|
-
return jsxRuntime.jsx(StatusLabelBase, __assign({}, props
|
|
2650
|
-
showIcon: true
|
|
2651
|
-
}));
|
|
2466
|
+
return jsxRuntime.jsx(StatusLabelBase, __assign({}, props));
|
|
2652
2467
|
};
|
|
2653
2468
|
StatusLabel.displayName = 'StatusLabel';
|
|
2654
2469
|
|
|
@@ -2664,7 +2479,7 @@ var StyledTag = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
2664
2479
|
},
|
|
2665
2480
|
displayName: "Tag__StyledTag",
|
|
2666
2481
|
componentId: "sc-lzfmti-0"
|
|
2667
|
-
})(templateObject_1$
|
|
2482
|
+
})(templateObject_1$u || (templateObject_1$u = __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"
|
|
2668
2483
|
/**
|
|
2669
2484
|
* Tag component for categorizing and labeling content
|
|
2670
2485
|
*
|
|
@@ -2679,14 +2494,6 @@ var StyledTag = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
2679
2494
|
}, label.typography.small, label.fontWeight, function (_a) {
|
|
2680
2495
|
var $variant = _a.$variant;
|
|
2681
2496
|
switch ($variant) {
|
|
2682
|
-
case 'interactive':
|
|
2683
|
-
return color$5.fill['accent-muted'];
|
|
2684
|
-
case 'success':
|
|
2685
|
-
return color$5.fill['success-muted'];
|
|
2686
|
-
case 'warning':
|
|
2687
|
-
return color$5.fill['warning-muted'];
|
|
2688
|
-
case 'error':
|
|
2689
|
-
return color$5.fill['danger-muted'];
|
|
2690
2497
|
case 'emphasis':
|
|
2691
2498
|
return color$5.fill.emphasis;
|
|
2692
2499
|
default:
|
|
@@ -2695,14 +2502,6 @@ var StyledTag = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
2695
2502
|
}, function (_a) {
|
|
2696
2503
|
var $variant = _a.$variant;
|
|
2697
2504
|
switch ($variant) {
|
|
2698
|
-
case 'interactive':
|
|
2699
|
-
return color$5.text.accent;
|
|
2700
|
-
case 'success':
|
|
2701
|
-
return color$5.text.success;
|
|
2702
|
-
case 'warning':
|
|
2703
|
-
return color$5.text.warning;
|
|
2704
|
-
case 'error':
|
|
2705
|
-
return color$5.text.danger;
|
|
2706
2505
|
case 'emphasis':
|
|
2707
2506
|
return color$5.text.inverse;
|
|
2708
2507
|
default:
|
|
@@ -2713,14 +2512,6 @@ var StyledTag = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
2713
2512
|
$border = _a.$border;
|
|
2714
2513
|
if (!$border) return 'none';
|
|
2715
2514
|
switch ($variant) {
|
|
2716
|
-
case 'interactive':
|
|
2717
|
-
return "".concat(semantic$e.border.width.thin, " solid ").concat(color$5.border.accent);
|
|
2718
|
-
case 'success':
|
|
2719
|
-
return "".concat(semantic$e.border.width.thin, " solid ").concat(color$5.border.success);
|
|
2720
|
-
case 'warning':
|
|
2721
|
-
return "".concat(semantic$e.border.width.thin, " solid ").concat(color$5.border.warning);
|
|
2722
|
-
case 'error':
|
|
2723
|
-
return "".concat(semantic$e.border.width.thin, " solid ").concat(color$5.border.danger);
|
|
2724
2515
|
case 'emphasis':
|
|
2725
2516
|
return "".concat(semantic$e.border.width.thin, " solid ").concat(color$5.fill.emphasis);
|
|
2726
2517
|
default:
|
|
@@ -2756,7 +2547,7 @@ var Tag = function Tag(_a) {
|
|
|
2756
2547
|
children: children
|
|
2757
2548
|
}));
|
|
2758
2549
|
};
|
|
2759
|
-
var templateObject_1$
|
|
2550
|
+
var templateObject_1$u;
|
|
2760
2551
|
|
|
2761
2552
|
var semantic$d = tokens.semantic;
|
|
2762
2553
|
var color$4 = semantic$d.color,
|
|
@@ -2784,7 +2575,7 @@ var StyledAILabel = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
2784
2575
|
},
|
|
2785
2576
|
displayName: "AILabel__StyledAILabel",
|
|
2786
2577
|
componentId: "sc-qknkn-0"
|
|
2787
|
-
})(templateObject_1$
|
|
2578
|
+
})(templateObject_1$t || (templateObject_1$t = __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) {
|
|
2788
2579
|
var $size = _a.$size;
|
|
2789
2580
|
return size$1.label[$size];
|
|
2790
2581
|
}, function (_a) {
|
|
@@ -2840,7 +2631,7 @@ var AILabel = function AILabel(_a) {
|
|
|
2840
2631
|
});
|
|
2841
2632
|
};
|
|
2842
2633
|
AILabel.displayName = 'AILabel';
|
|
2843
|
-
var templateObject_1$
|
|
2634
|
+
var templateObject_1$t, templateObject_2$p;
|
|
2844
2635
|
|
|
2845
2636
|
// Destructure tokens for cleaner access
|
|
2846
2637
|
var semantic$c = tokens.semantic;
|
|
@@ -2848,7 +2639,7 @@ var space$7 = semantic$c.space;
|
|
|
2848
2639
|
var StyledBalanceSection = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
2849
2640
|
displayName: "AccountCard__StyledBalanceSection",
|
|
2850
2641
|
componentId: "sc-1erp7zn-0"
|
|
2851
|
-
})(templateObject_1$
|
|
2642
|
+
})(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), space$7[400]);
|
|
2852
2643
|
var StyledTrendSection = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
2853
2644
|
displayName: "AccountCard__StyledTrendSection",
|
|
2854
2645
|
componentId: "sc-1erp7zn-1"
|
|
@@ -3023,7 +2814,7 @@ var AccountCard = function AccountCard(_a) {
|
|
|
3023
2814
|
})
|
|
3024
2815
|
});
|
|
3025
2816
|
};
|
|
3026
|
-
var templateObject_1$
|
|
2817
|
+
var templateObject_1$s, templateObject_2$o, templateObject_3$n, templateObject_4$i, templateObject_5$f;
|
|
3027
2818
|
|
|
3028
2819
|
/**
|
|
3029
2820
|
* The spacing a List gives its items (#77). A ListItem without its own `spacing` uses it; outside
|
|
@@ -3041,7 +2832,7 @@ var StyledListItem = /*#__PURE__*/styled__default.default.li.withConfig({
|
|
|
3041
2832
|
},
|
|
3042
2833
|
displayName: "ListItem__StyledListItem",
|
|
3043
2834
|
componentId: "sc-1wzzt21-0"
|
|
3044
|
-
})(templateObject_1$
|
|
2835
|
+
})(templateObject_1$r || (templateObject_1$r = __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$b.size.touchTarget, function (_a) {
|
|
3045
2836
|
var $interactive = _a.$interactive;
|
|
3046
2837
|
return $interactive && 'user-select: none;';
|
|
3047
2838
|
}, function (_a) {
|
|
@@ -3239,7 +3030,7 @@ var ListItem = function ListItem(_a) {
|
|
|
3239
3030
|
);
|
|
3240
3031
|
};
|
|
3241
3032
|
ListItem.displayName = 'ListItem';
|
|
3242
|
-
var templateObject_1$
|
|
3033
|
+
var templateObject_1$r, templateObject_2$n, templateObject_3$m, templateObject_4$h, templateObject_5$e, templateObject_6$b, templateObject_7$9;
|
|
3243
3034
|
|
|
3244
3035
|
// How long an exiting element stays mounted: the duration of `exitAnimation` in styleUtils. A timer
|
|
3245
3036
|
// needs the resolved value, not the CSS variable (decision 0041).
|
|
@@ -3291,7 +3082,7 @@ var _a$3 = tokens.semantic,
|
|
|
3291
3082
|
space$6 = _a$3.space,
|
|
3292
3083
|
motion$3 = _a$3.motion,
|
|
3293
3084
|
elevation$2 = _a$3.elevation;
|
|
3294
|
-
var slideUp = styled.keyframes(templateObject_1$
|
|
3085
|
+
var slideUp = styled.keyframes(templateObject_1$q || (templateObject_1$q = __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"])));
|
|
3295
3086
|
var fadeIn$2 = styled.keyframes(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"], ["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"])));
|
|
3296
3087
|
var StyledOverlay$2 = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
3297
3088
|
displayName: "ActionSheet__StyledOverlay",
|
|
@@ -3548,7 +3339,7 @@ var ActionSheet = function ActionSheet(_a) {
|
|
|
3548
3339
|
})]
|
|
3549
3340
|
}), document.body);
|
|
3550
3341
|
};
|
|
3551
|
-
var templateObject_1$
|
|
3342
|
+
var templateObject_1$q, templateObject_2$m, templateObject_3$l, templateObject_4$g, templateObject_5$d, templateObject_6$a, templateObject_7$8, templateObject_8$7;
|
|
3552
3343
|
|
|
3553
3344
|
function detectSpeechRecognitionConstructor(targetWindow) {
|
|
3554
3345
|
if (!targetWindow) return null;
|
|
@@ -3660,7 +3451,7 @@ var DEFAULT_PROCESSING_MESSAGE = 'Finishing voice input…';
|
|
|
3660
3451
|
var COUNTER_THRESHOLD = 0.8;
|
|
3661
3452
|
// Layout effects warn during server rendering in React 18
|
|
3662
3453
|
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
3663
|
-
var rotateRing = styled.keyframes(templateObject_1$
|
|
3454
|
+
var rotateRing = styled.keyframes(templateObject_1$p || (templateObject_1$p = __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"])));
|
|
3664
3455
|
var Container = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
3665
3456
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
3666
3457
|
return !prop.startsWith('$');
|
|
@@ -3872,7 +3663,7 @@ function AgentInputWithRef(_a, ref) {
|
|
|
3872
3663
|
disabled = _e === void 0 ? false : _e,
|
|
3873
3664
|
isSubmitting = _a.isSubmitting,
|
|
3874
3665
|
_f = _a.enableVoice,
|
|
3875
|
-
enableVoice = _f === void 0 ?
|
|
3666
|
+
enableVoice = _f === void 0 ? false : _f,
|
|
3876
3667
|
_g = _a.autoSubmitOnVoiceFinal,
|
|
3877
3668
|
autoSubmitOnVoiceFinal = _g === void 0 ? true : _g,
|
|
3878
3669
|
_h = _a.voiceLanguage,
|
|
@@ -4729,7 +4520,7 @@ function AgentInputWithRef(_a, ref) {
|
|
|
4729
4520
|
}
|
|
4730
4521
|
var AgentInput = /*#__PURE__*/React.forwardRef(AgentInputWithRef);
|
|
4731
4522
|
AgentInput.displayName = 'AgentInput';
|
|
4732
|
-
var templateObject_1$
|
|
4523
|
+
var templateObject_1$p, templateObject_2$l, templateObject_3$k, templateObject_4$f, templateObject_5$c, templateObject_6$9, templateObject_7$7, templateObject_8$6, templateObject_9$5, templateObject_10$3, templateObject_11$3, templateObject_12$3, templateObject_13$3, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, 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;
|
|
4733
4524
|
|
|
4734
4525
|
var semantic$9 = tokens.semantic;
|
|
4735
4526
|
var alert = tokens.component.alert;
|
|
@@ -4743,7 +4534,7 @@ var FADE_MS = parseInt(data.tokensJson.semantic.motion.duration.fast, 10);
|
|
|
4743
4534
|
var EXIT_MS = FADE_MS * 2;
|
|
4744
4535
|
// The --alert-exit-* properties are the alert's height and vertical padding, measured
|
|
4745
4536
|
// when it's dismissed, so nothing moves until the fade has finished
|
|
4746
|
-
var fadeThenCollapse = styled.keyframes(templateObject_1$
|
|
4537
|
+
var fadeThenCollapse = styled.keyframes(templateObject_1$o || (templateObject_1$o = __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$9.border.width.thin);
|
|
4747
4538
|
var fadeOut = styled.keyframes(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n from { opacity: 1; }\n to { opacity: 0; }\n"], ["\n from { opacity: 1; }\n to { opacity: 0; }\n"
|
|
4748
4539
|
// The exit ends on the alert's own animationend: 300ms, or 150ms under reduced motion
|
|
4749
4540
|
// (chosen when dismissed). A timer of the same length removes it if no animation event
|
|
@@ -4783,13 +4574,7 @@ var StyledAlert = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
4783
4574
|
},
|
|
4784
4575
|
displayName: "Alert__StyledAlert",
|
|
4785
4576
|
componentId: "sc-18tq5d-0"
|
|
4786
|
-
})(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n display: flex;\n /* Items start at the top, so the icon and dismiss button line up with the first line */\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n border: ", " solid;\n position: relative;\n width: 100%;\n \n /* Severity \xD7 appearance colours from Alert's component tokens (decision 0019). Borderless\n keeps a transparent border, so both appearances take the same space. */\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n \n /* Responsive adjustments */\n @media (min-width: ", ") {\n padding: ", ";\n }\n\n /* The exit is chosen once, when dismissed (not by a media query), so a reduced-motion\n preference that changes mid-exit can't swap animations and flash the faded alert back.\n Reduced motion: fade only; the space closes instantly afterwards. */\n ", "\n"], ["\n display: flex;\n /* Items start at the top, so the icon and dismiss button line up with the first line */\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n border: ", " solid;\n position: relative;\n width: 100%;\n \n /* Severity \xD7 appearance colours from Alert's component tokens (decision 0019). Borderless\n keeps a transparent border, so both appearances take the same space. */\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n \n /* Responsive adjustments */\n @media (min-width: ", ") {\n padding: ", ";\n }\n\n /* The exit is chosen once, when dismissed (not by a media query), so a reduced-motion\n preference that changes mid-exit can't swap animations and flash the faded alert back.\n Reduced motion: fade only; the space closes instantly afterwards. */\n ", "\n"])), function (_a) {
|
|
4787
|
-
var $inline = _a.$inline;
|
|
4788
|
-
return $inline ? semantic$9.space[200] : semantic$9.space[300];
|
|
4789
|
-
}, function (_a) {
|
|
4790
|
-
var $inline = _a.$inline;
|
|
4791
|
-
return $inline ? semantic$9.space[200] : semantic$9.space[300];
|
|
4792
|
-
}, semantic$9.radius.sm, semantic$9.border.width.thin, function (_a) {
|
|
4577
|
+
})(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n display: flex;\n /* Items start at the top, so the icon and dismiss button line up with the first line */\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n border: ", " solid;\n position: relative;\n width: 100%;\n \n /* Severity \xD7 appearance colours from Alert's component tokens (decision 0019). Borderless\n keeps a transparent border, so both appearances take the same space. */\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n \n /* Responsive adjustments */\n @media (min-width: ", ") {\n padding: ", ";\n }\n\n /* The exit is chosen once, when dismissed (not by a media query), so a reduced-motion\n preference that changes mid-exit can't swap animations and flash the faded alert back.\n Reduced motion: fade only; the space closes instantly afterwards. */\n ", "\n"], ["\n display: flex;\n /* Items start at the top, so the icon and dismiss button line up with the first line */\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n border: ", " solid;\n position: relative;\n width: 100%;\n \n /* Severity \xD7 appearance colours from Alert's component tokens (decision 0019). Borderless\n keeps a transparent border, so both appearances take the same space. */\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n \n /* Responsive adjustments */\n @media (min-width: ", ") {\n padding: ", ";\n }\n\n /* The exit is chosen once, when dismissed (not by a media query), so a reduced-motion\n preference that changes mid-exit can't swap animations and flash the faded alert back.\n Reduced motion: fade only; the space closes instantly afterwards. */\n ", "\n"])), semantic$9.space[300], semantic$9.space[300], semantic$9.radius.sm, semantic$9.border.width.thin, function (_a) {
|
|
4793
4578
|
var _b = _a.$variant,
|
|
4794
4579
|
$variant = _b === void 0 ? 'info' : _b;
|
|
4795
4580
|
return alert.severity[$variant].background;
|
|
@@ -4802,10 +4587,7 @@ var StyledAlert = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
4802
4587
|
$variant = _b === void 0 ? 'info' : _b,
|
|
4803
4588
|
$appearance = _a.$appearance;
|
|
4804
4589
|
return alert.appearance[$appearance].borderColor[$variant];
|
|
4805
|
-
}, semantic$9.breakpoint.md, function (_a) {
|
|
4806
|
-
var $inline = _a.$inline;
|
|
4807
|
-
return $inline ? semantic$9.space[200] : semantic$9.space[400];
|
|
4808
|
-
}, function (_a) {
|
|
4590
|
+
}, semantic$9.breakpoint.md, semantic$9.space[400], function (_a) {
|
|
4809
4591
|
var $isExiting = _a.$isExiting,
|
|
4810
4592
|
$reducedExit = _a.$reducedExit;
|
|
4811
4593
|
return $isExiting && styled.css(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n overflow: hidden;\n pointer-events: none;\n animation: ", ";\n "], ["\n overflow: hidden;\n pointer-events: none;\n animation: ", ";\n "])), $reducedExit ? styled.css(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["", " ", " ", " forwards"], ["", " ", " ", " forwards"])), fadeOut, duration$1.fast, easing$1.accelerate) : styled.css(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["", " ", "ms ", " forwards"], ["", " ", "ms ", " forwards"])), fadeThenCollapse, EXIT_MS, easing$1.accelerate));
|
|
@@ -4851,21 +4633,16 @@ var StyledDismissSlot = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
4851
4633
|
displayName: "Alert__StyledDismissSlot",
|
|
4852
4634
|
componentId: "sc-18tq5d-6"
|
|
4853
4635
|
})(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n height: ", ";\n"], ["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n height: ", ";\n"
|
|
4854
|
-
// The glyph sits on the padding edge, mirroring the severity icon on the left
|
|
4855
|
-
// alert's padding is too small for that, so its button stays inside the padding.
|
|
4636
|
+
// The glyph sits on the padding edge, mirroring the severity icon on the left
|
|
4856
4637
|
])), function (_a) {
|
|
4857
4638
|
var $lineHeight = _a.$lineHeight;
|
|
4858
4639
|
return $lineHeight;
|
|
4859
4640
|
});
|
|
4860
|
-
// The glyph sits on the padding edge, mirroring the severity icon on the left
|
|
4861
|
-
// alert's padding is too small for that, so its button stays inside the padding.
|
|
4641
|
+
// The glyph sits on the padding edge, mirroring the severity icon on the left
|
|
4862
4642
|
var StyledDismissButton = /*#__PURE__*/styled__default.default(IconButton).withConfig({
|
|
4863
4643
|
displayName: "Alert__StyledDismissButton",
|
|
4864
4644
|
componentId: "sc-18tq5d-7"
|
|
4865
|
-
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])),
|
|
4866
|
-
var $inline = _a.$inline;
|
|
4867
|
-
return $inline ? 0 : "calc((".concat(semantic$9.size.control.sm, " - ").concat(semantic$9.size.icon.sm, ") / -2)");
|
|
4868
|
-
});
|
|
4645
|
+
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n margin-right: calc((", " - ", ") / -2);\n"], ["\n margin-right: calc((", " - ", ") / -2);\n"])), semantic$9.size.control.sm, semantic$9.size.icon.sm);
|
|
4869
4646
|
var Alert = function Alert(_a) {
|
|
4870
4647
|
var _b = _a.variant,
|
|
4871
4648
|
variant = _b === void 0 ? 'info' : _b,
|
|
@@ -4877,12 +4654,15 @@ var Alert = function Alert(_a) {
|
|
|
4877
4654
|
dismissible = _d === void 0 ? false : _d,
|
|
4878
4655
|
onDismiss = _a.onDismiss,
|
|
4879
4656
|
action = _a.action,
|
|
4880
|
-
_e = _a.
|
|
4881
|
-
|
|
4882
|
-
_f = _a.ariaLive,
|
|
4883
|
-
ariaLive = _f === void 0 ? 'polite' : _f,
|
|
4657
|
+
_e = _a.ariaLive,
|
|
4658
|
+
ariaLive = _e === void 0 ? 'polite' : _e,
|
|
4884
4659
|
dataTestId = _a["data-testid"],
|
|
4885
|
-
|
|
4660
|
+
restProps = __rest(_a, ["variant", "appearance", "children", "title", "dismissible", "onDismiss", "action", "ariaLive", 'data-testid']);
|
|
4661
|
+
// `inline` was removed in 3.0 (use InlineAlert, decision 0019); plain JavaScript that still
|
|
4662
|
+
// passes it gets a block alert, with the prop kept off the DOM
|
|
4663
|
+
var _f = restProps;
|
|
4664
|
+
_f.inline;
|
|
4665
|
+
var props = __rest(_f, ["inline"]);
|
|
4886
4666
|
var _g = React__default.default.useState('visible'),
|
|
4887
4667
|
phase = _g[0],
|
|
4888
4668
|
setPhase = _g[1];
|
|
@@ -4958,7 +4738,6 @@ var Alert = function Alert(_a) {
|
|
|
4958
4738
|
"aria-live": ariaLive,
|
|
4959
4739
|
"$variant": variant,
|
|
4960
4740
|
"$appearance": appearance,
|
|
4961
|
-
"$inline": inline,
|
|
4962
4741
|
"$isExiting": isExiting,
|
|
4963
4742
|
"$reducedExit": reducedExit,
|
|
4964
4743
|
"data-testid": dataTestId
|
|
@@ -4991,7 +4770,6 @@ var Alert = function Alert(_a) {
|
|
|
4991
4770
|
iconName: "close",
|
|
4992
4771
|
size: "small",
|
|
4993
4772
|
variant: "naked",
|
|
4994
|
-
"$inline": inline,
|
|
4995
4773
|
onClick: handleDismiss,
|
|
4996
4774
|
"aria-label": "Dismiss alert",
|
|
4997
4775
|
"data-testid": dataTestId ? "".concat(dataTestId, "-dismiss") : undefined
|
|
@@ -5000,7 +4778,7 @@ var Alert = function Alert(_a) {
|
|
|
5000
4778
|
}));
|
|
5001
4779
|
};
|
|
5002
4780
|
Alert.displayName = 'Alert';
|
|
5003
|
-
var templateObject_1$
|
|
4781
|
+
var templateObject_1$o, templateObject_2$k, templateObject_3$j, templateObject_4$e, templateObject_5$b, templateObject_6$8, templateObject_7$6, templateObject_8$5, templateObject_9$4, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2;
|
|
5004
4782
|
|
|
5005
4783
|
var semantic$8 = tokens.semantic;
|
|
5006
4784
|
var color$2 = semantic$8.color,
|
|
@@ -5043,7 +4821,7 @@ var StyledInlineAlert = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
5043
4821
|
},
|
|
5044
4822
|
displayName: "InlineAlert__StyledInlineAlert",
|
|
5045
4823
|
componentId: "sc-eervmb-0"
|
|
5046
|
-
})(templateObject_1$
|
|
4824
|
+
})(templateObject_1$n || (templateObject_1$n = __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"
|
|
5047
4825
|
// One line of the message's font tall, so the icon centres on the first line at any size:
|
|
5048
4826
|
// the zero-width space gives the box the font's line height without a fixed value
|
|
5049
4827
|
])), function (_a) {
|
|
@@ -5139,12 +4917,12 @@ var InlineAlert = function InlineAlert(_a) {
|
|
|
5139
4917
|
});
|
|
5140
4918
|
};
|
|
5141
4919
|
InlineAlert.displayName = 'InlineAlert';
|
|
5142
|
-
var templateObject_1$
|
|
4920
|
+
var templateObject_1$n, templateObject_2$j, templateObject_3$i;
|
|
5143
4921
|
|
|
5144
4922
|
var BreadcrumbNavStyled = /*#__PURE__*/styled__default.default.nav.withConfig({
|
|
5145
4923
|
displayName: "Breadcrumbs__BreadcrumbNavStyled",
|
|
5146
4924
|
componentId: "sc-7ouzg5-0"
|
|
5147
|
-
})(templateObject_1$
|
|
4925
|
+
})(templateObject_1$m || (templateObject_1$m = __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"]);
|
|
5148
4926
|
var BreadcrumbStyled = /*#__PURE__*/styled__default.default.li.withConfig({
|
|
5149
4927
|
displayName: "Breadcrumbs__BreadcrumbStyled",
|
|
5150
4928
|
componentId: "sc-7ouzg5-1"
|
|
@@ -5200,14 +4978,14 @@ var Breadcrumbs = function Breadcrumbs(_a) {
|
|
|
5200
4978
|
})
|
|
5201
4979
|
});
|
|
5202
4980
|
};
|
|
5203
|
-
var templateObject_1$
|
|
4981
|
+
var templateObject_1$m, templateObject_2$i, templateObject_3$h;
|
|
5204
4982
|
|
|
5205
4983
|
// The whole card is one link (#185): hovering anywhere fades its image, pressing fades it one step
|
|
5206
4984
|
// further, and keyboard focus draws the system focus ring around the card (decision 0029)
|
|
5207
4985
|
var CardSmallStyled = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
5208
4986
|
displayName: "CardSmall__CardSmallStyled",
|
|
5209
4987
|
componentId: "sc-jpcqvd-0"
|
|
5210
|
-
})(templateObject_1$
|
|
4988
|
+
})(templateObject_1$l || (templateObject_1$l = __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);
|
|
5211
4989
|
var CardSmall = function CardSmall(_a) {
|
|
5212
4990
|
var title = _a.title,
|
|
5213
4991
|
picture = _a.picture,
|
|
@@ -5261,12 +5039,12 @@ var CardSmall = function CardSmall(_a) {
|
|
|
5261
5039
|
})
|
|
5262
5040
|
});
|
|
5263
5041
|
};
|
|
5264
|
-
var templateObject_1$
|
|
5042
|
+
var templateObject_1$l;
|
|
5265
5043
|
|
|
5266
5044
|
var CardLargeStyled = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
5267
5045
|
displayName: "CardLarge__CardLargeStyled",
|
|
5268
5046
|
componentId: "sc-1rfgdzl-0"
|
|
5269
|
-
})(templateObject_1$
|
|
5047
|
+
})(templateObject_1$k || (templateObject_1$k = __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']);
|
|
5270
5048
|
var CardLarge = function CardLarge(_a) {
|
|
5271
5049
|
var title = _a.title,
|
|
5272
5050
|
excerpt = _a.excerpt,
|
|
@@ -5321,7 +5099,7 @@ var CardLarge = function CardLarge(_a) {
|
|
|
5321
5099
|
})
|
|
5322
5100
|
});
|
|
5323
5101
|
};
|
|
5324
|
-
var templateObject_1$
|
|
5102
|
+
var templateObject_1$k;
|
|
5325
5103
|
|
|
5326
5104
|
/**
|
|
5327
5105
|
* Hidden native checkbox input for accessibility
|
|
@@ -5333,7 +5111,7 @@ var HiddenCheckboxInput = /*#__PURE__*/styled__default.default.input.withConfig(
|
|
|
5333
5111
|
},
|
|
5334
5112
|
displayName: "SelectableInputBase__HiddenCheckboxInput",
|
|
5335
5113
|
componentId: "sc-1ddpctx-0"
|
|
5336
|
-
})(templateObject_1$
|
|
5114
|
+
})(templateObject_1$j || (templateObject_1$j = __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"
|
|
5337
5115
|
/**
|
|
5338
5116
|
* Custom checkbox visual component
|
|
5339
5117
|
* 24px × 24px for 8px grid alignment
|
|
@@ -5411,12 +5189,12 @@ var StyledCheckboxLabel = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
5411
5189
|
})(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), tokens.component.input["default"].font, function (props) {
|
|
5412
5190
|
return props.$disabled ? tokens.component.input.disabled.textColor : tokens.component.input["default"].textColor;
|
|
5413
5191
|
});
|
|
5414
|
-
var templateObject_1$
|
|
5192
|
+
var templateObject_1$j, templateObject_2$h, templateObject_3$g, templateObject_4$d;
|
|
5415
5193
|
|
|
5416
5194
|
var StyledFieldContainer$3 = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
5417
5195
|
displayName: "Checkbox__StyledFieldContainer",
|
|
5418
5196
|
componentId: "sc-vquz3v-0"
|
|
5419
|
-
})(templateObject_1$
|
|
5197
|
+
})(templateObject_1$i || (templateObject_1$i = __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]);
|
|
5420
5198
|
var StyledHelperText$4 = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
5421
5199
|
displayName: "Checkbox__StyledHelperText",
|
|
5422
5200
|
componentId: "sc-vquz3v-1"
|
|
@@ -5539,16 +5317,14 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
5539
5317
|
});
|
|
5540
5318
|
});
|
|
5541
5319
|
Checkbox.displayName = 'Checkbox';
|
|
5542
|
-
var templateObject_1$
|
|
5320
|
+
var templateObject_1$i, templateObject_2$g;
|
|
5543
5321
|
|
|
5544
5322
|
var ChipGroupWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
5545
5323
|
displayName: "ChipGroup__ChipGroupWrapper",
|
|
5546
5324
|
componentId: "sc-ae049w-0"
|
|
5547
|
-
})(templateObject_1$
|
|
5325
|
+
})(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"], ["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"])));
|
|
5548
5326
|
var ChipGroup = function ChipGroup(_a) {
|
|
5549
5327
|
var labels = _a.labels,
|
|
5550
|
-
_b = _a.variant,
|
|
5551
|
-
variant = _b === void 0 ? 'default' : _b,
|
|
5552
5328
|
dataTestId = _a["data-testid"];
|
|
5553
5329
|
return jsxRuntime.jsx(ChipGroupWrapper, {
|
|
5554
5330
|
"data-testid": dataTestId,
|
|
@@ -5557,14 +5333,13 @@ var ChipGroup = function ChipGroup(_a) {
|
|
|
5557
5333
|
gap: "sm",
|
|
5558
5334
|
children: labels && labels.map(function (title, index) {
|
|
5559
5335
|
return jsxRuntime.jsx(Chip, {
|
|
5560
|
-
title: title
|
|
5561
|
-
variant: variant
|
|
5336
|
+
title: title
|
|
5562
5337
|
}, index);
|
|
5563
5338
|
})
|
|
5564
5339
|
})
|
|
5565
5340
|
});
|
|
5566
5341
|
};
|
|
5567
|
-
var templateObject_1$
|
|
5342
|
+
var templateObject_1$h;
|
|
5568
5343
|
|
|
5569
5344
|
var _a$1 = tokens.semantic,
|
|
5570
5345
|
color$1 = _a$1.color,
|
|
@@ -5573,7 +5348,7 @@ var _a$1 = tokens.semantic,
|
|
|
5573
5348
|
var StyledCodeBlock = /*#__PURE__*/styled__default.default.pre.withConfig({
|
|
5574
5349
|
displayName: "CodeBlock__StyledCodeBlock",
|
|
5575
5350
|
componentId: "sc-1p1t0kp-0"
|
|
5576
|
-
})(templateObject_1$
|
|
5351
|
+
})(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n\n /* The block is focusable so keyboard users can scroll it; it shows the system focus ring\n (decision 0029) */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n\n /* The block is focusable so keyboard users can scroll it; it shows the system focus ring\n (decision 0029) */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), tokens.semantic.surface.raised, border$1["default"], tokens.semantic.radius.sm, tokens.semantic.space[300], tokens.component.codeBlock.fontFamily, tokens.component.codeBlock.fontSize, tokens.component.codeBlock.lineHeight, color$1.text["default"], function (_a) {
|
|
5577
5352
|
var $isExpanded = _a.$isExpanded,
|
|
5578
5353
|
$needsExpansion = _a.$needsExpansion;
|
|
5579
5354
|
return $needsExpansion && !$isExpanded ? 'hidden' : 'auto';
|
|
@@ -5783,12 +5558,12 @@ var CodeBlock = function CodeBlock(_a) {
|
|
|
5783
5558
|
})]
|
|
5784
5559
|
});
|
|
5785
5560
|
};
|
|
5786
|
-
var templateObject_1$
|
|
5561
|
+
var templateObject_1$g, templateObject_2$f, templateObject_3$f, templateObject_4$c, templateObject_5$a;
|
|
5787
5562
|
|
|
5788
5563
|
var StyledHeader$1 = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
5789
5564
|
displayName: "DateGroup__StyledHeader",
|
|
5790
5565
|
componentId: "sc-9nfm1f-0"
|
|
5791
|
-
})(templateObject_1$
|
|
5566
|
+
})(templateObject_1$f || (templateObject_1$f = __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) {
|
|
5792
5567
|
var $sticky = _a.$sticky;
|
|
5793
5568
|
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 ");
|
|
5794
5569
|
});
|
|
@@ -5875,7 +5650,7 @@ var DateGroup = function DateGroup(_a) {
|
|
|
5875
5650
|
})]
|
|
5876
5651
|
});
|
|
5877
5652
|
};
|
|
5878
|
-
var templateObject_1$
|
|
5653
|
+
var templateObject_1$f, templateObject_2$e, templateObject_3$e, templateObject_4$b;
|
|
5879
5654
|
|
|
5880
5655
|
var semantic$7 = tokens.semantic;
|
|
5881
5656
|
var StyledContainer$1 = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
@@ -5884,7 +5659,7 @@ var StyledContainer$1 = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
|
5884
5659
|
},
|
|
5885
5660
|
displayName: "EmptyState__StyledContainer",
|
|
5886
5661
|
componentId: "sc-1u5hxh-0"
|
|
5887
|
-
})(templateObject_1$
|
|
5662
|
+
})(templateObject_1$e || (templateObject_1$e = __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) {
|
|
5888
5663
|
var $size = _a.$size;
|
|
5889
5664
|
return $size === 'small' ? semantic$7.space[800] : $size === 'large' ? semantic$7.space[1400] : semantic$7.space[1000];
|
|
5890
5665
|
});
|
|
@@ -5994,13 +5769,13 @@ var EmptyState = function EmptyState(_a) {
|
|
|
5994
5769
|
})]
|
|
5995
5770
|
});
|
|
5996
5771
|
};
|
|
5997
|
-
var templateObject_1$
|
|
5772
|
+
var templateObject_1$e, templateObject_2$d, templateObject_3$d;
|
|
5998
5773
|
|
|
5999
5774
|
var space$5 = tokens.semantic.space;
|
|
6000
5775
|
var FeatureBlockStyled = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
6001
5776
|
displayName: "FeatureBlock__FeatureBlockStyled",
|
|
6002
5777
|
componentId: "sc-1mi4lso-0"
|
|
6003
|
-
})(templateObject_1$
|
|
5778
|
+
})(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n /* The image isn't clickable, so it doesn't answer hover (issue 185, P5) */\n img {\n border-radius: ", ";\n }\n\n a {\n text-decoration: none;\n }\n"], ["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n /* The image isn't clickable, so it doesn't answer hover (issue 185, P5) */\n img {\n border-radius: ", ";\n }\n\n a {\n text-decoration: none;\n }\n"])), tokens.semantic.breakpoint.md, tokens.semantic.breakpoint.lg, space$5[1200], tokens.semantic.radius['2xl']);
|
|
6004
5779
|
var ImageWrapper = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
6005
5780
|
displayName: "FeatureBlock__ImageWrapper",
|
|
6006
5781
|
componentId: "sc-1mi4lso-1"
|
|
@@ -6075,7 +5850,7 @@ var FeatureBlock = function FeatureBlock(_a) {
|
|
|
6075
5850
|
}), jsxRuntime.jsx(Divider, {})]
|
|
6076
5851
|
});
|
|
6077
5852
|
};
|
|
6078
|
-
var templateObject_1$
|
|
5853
|
+
var templateObject_1$d, templateObject_2$c, templateObject_3$c, templateObject_4$a, templateObject_5$9;
|
|
6079
5854
|
|
|
6080
5855
|
var _a = tokens.semantic,
|
|
6081
5856
|
border = _a.border,
|
|
@@ -6097,7 +5872,7 @@ var duration = motion$1.duration,
|
|
|
6097
5872
|
var DropdownContainer = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
6098
5873
|
displayName: "Dropdown__DropdownContainer",
|
|
6099
5874
|
componentId: "sc-kz07c4-0"
|
|
6100
|
-
})(templateObject_1$
|
|
5875
|
+
})(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
6101
5876
|
var DropdownTrigger = /*#__PURE__*/styled__default.default.button.withConfig({
|
|
6102
5877
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
6103
5878
|
return !prop.startsWith('$');
|
|
@@ -6344,7 +6119,7 @@ var Dropdown = function Dropdown(_a) {
|
|
|
6344
6119
|
})]
|
|
6345
6120
|
});
|
|
6346
6121
|
};
|
|
6347
|
-
var templateObject_1$
|
|
6122
|
+
var templateObject_1$c, templateObject_2$b, templateObject_3$b, templateObject_4$9, templateObject_5$8, templateObject_6$7;
|
|
6348
6123
|
|
|
6349
6124
|
var semantic$6 = tokens.semantic;
|
|
6350
6125
|
var StyledList = /*#__PURE__*/styled__default.default.ul.withConfig({
|
|
@@ -6353,7 +6128,7 @@ var StyledList = /*#__PURE__*/styled__default.default.ul.withConfig({
|
|
|
6353
6128
|
},
|
|
6354
6129
|
displayName: "List__StyledList",
|
|
6355
6130
|
componentId: "sc-1irksg5-0"
|
|
6356
|
-
})(templateObject_1$
|
|
6131
|
+
})(templateObject_1$b || (templateObject_1$b = __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) {
|
|
6357
6132
|
var $dividers = _a.$dividers;
|
|
6358
6133
|
return $dividers && "\n > li:not(:last-child) {\n border-bottom: ".concat(semantic$6.border.width.thin, " solid ").concat(semantic$6.color.border["default"], ";\n }\n ");
|
|
6359
6134
|
});
|
|
@@ -6379,7 +6154,7 @@ var List = function List(_a) {
|
|
|
6379
6154
|
});
|
|
6380
6155
|
};
|
|
6381
6156
|
List.displayName = 'List';
|
|
6382
|
-
var templateObject_1$
|
|
6157
|
+
var templateObject_1$b;
|
|
6383
6158
|
|
|
6384
6159
|
var semantic$5 = tokens.semantic;
|
|
6385
6160
|
var space$3 = semantic$5.space,
|
|
@@ -6397,7 +6172,7 @@ var sizeToWidth = {
|
|
|
6397
6172
|
// ---------------------------------------------------------------------------
|
|
6398
6173
|
// Animations
|
|
6399
6174
|
// ---------------------------------------------------------------------------
|
|
6400
|
-
var fadeIn$1 = styled.keyframes(templateObject_1$
|
|
6175
|
+
var fadeIn$1 = styled.keyframes(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n from { opacity: 0; }\n to { opacity: 1; }\n"], ["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
6401
6176
|
var scaleIn = styled.keyframes(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n from {\n opacity: 0;\n transform: translate(-50%, -50%) scale(0.95);\n }\n to {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n"], ["\n from {\n opacity: 0;\n transform: translate(-50%, -50%) scale(0.95);\n }\n to {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n"
|
|
6402
6177
|
// ---------------------------------------------------------------------------
|
|
6403
6178
|
// Styled components
|
|
@@ -6621,7 +6396,7 @@ var Modal = function Modal(_a) {
|
|
|
6621
6396
|
return /*#__PURE__*/reactDom.createPortal(modal, document.body);
|
|
6622
6397
|
};
|
|
6623
6398
|
Modal.displayName = 'Modal';
|
|
6624
|
-
var templateObject_1$
|
|
6399
|
+
var templateObject_1$a, templateObject_2$a, templateObject_3$a, templateObject_4$8, templateObject_5$7, templateObject_6$6, templateObject_7$5, templateObject_8$4, templateObject_9$3;
|
|
6625
6400
|
|
|
6626
6401
|
var input = tokens.component.input,
|
|
6627
6402
|
semantic$4 = tokens.semantic;
|
|
@@ -6630,7 +6405,7 @@ var input = tokens.component.input,
|
|
|
6630
6405
|
* own min-height and padding. Interpolating a styled component into another's CSS
|
|
6631
6406
|
* inserts its class selector, not its styles, so the sharing goes through `css`.
|
|
6632
6407
|
*/
|
|
6633
|
-
var inputBaseStyles = styled.css(templateObject_1$
|
|
6408
|
+
var inputBaseStyles = styled.css(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n /* Typography */\n font: ", ";\n color: ", ";\n \n /* Layout */\n box-sizing: border-box; /* the min-height includes the border, without relying on a global reset */\n width: 100%;\n \n /* Visual styling */\n background-color: ", ";\n \n border: ", " solid ", ";\n \n border-radius: ", ";\n \n /* Remove default appearance */\n appearance: none;\n outline: none;\n \n /* Transitions */\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n /* Placeholder */\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n \n /* Focus state */\n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n /* Hover state (only when not disabled) */\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n /* Disabled state */\n &:disabled {\n cursor: not-allowed;\n }\n \n /* Remove number input spinners */\n &[type='number']::-webkit-inner-spin-button,\n &[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n \n &[type='number'] {\n -moz-appearance: textfield;\n }\n"], ["\n /* Typography */\n font: ", ";\n color: ", ";\n \n /* Layout */\n box-sizing: border-box; /* the min-height includes the border, without relying on a global reset */\n width: 100%;\n \n /* Visual styling */\n background-color: ", ";\n \n border: ", " solid ", ";\n \n border-radius: ", ";\n \n /* Remove default appearance */\n appearance: none;\n outline: none;\n \n /* Transitions */\n transition: border-color ", " ", ",\n outline ", " ", ";\n \n /* Placeholder */\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n \n /* Focus state */\n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n /* Hover state (only when not disabled) */\n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n /* Disabled state */\n &:disabled {\n cursor: not-allowed;\n }\n \n /* Remove number input spinners */\n &[type='number']::-webkit-inner-spin-button,\n &[type='number']::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n \n &[type='number'] {\n -moz-appearance: textfield;\n }\n"])), input["default"].font, function (_a) {
|
|
6634
6409
|
var $disabled = _a.$disabled;
|
|
6635
6410
|
return $disabled ? input.disabled.textColor : input["default"].textColor;
|
|
6636
6411
|
}, function (_a) {
|
|
@@ -6669,7 +6444,7 @@ var StyledTextAreaBase = /*#__PURE__*/styled__default.default.textarea.withConfi
|
|
|
6669
6444
|
displayName: "InputBase__StyledTextAreaBase",
|
|
6670
6445
|
componentId: "sc-1bpf4e8-1"
|
|
6671
6446
|
})(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n ", "\n \n /* TextArea specific: a taller minimum for multi-line entry (decision 0034) */\n min-height: ", ";\n padding: ", " ", ";\n resize: vertical;\n"], ["\n ", "\n \n /* TextArea specific: a taller minimum for multi-line entry (decision 0034) */\n min-height: ", ";\n padding: ", " ", ";\n resize: vertical;\n"])), inputBaseStyles, input.textarea.minHeight, semantic$4.space.inset.md, semantic$4.space.inset.lg);
|
|
6672
|
-
var templateObject_1$
|
|
6447
|
+
var templateObject_1$9, templateObject_2$9, templateObject_3$9;
|
|
6673
6448
|
|
|
6674
6449
|
var field$2 = tokens.component.field;
|
|
6675
6450
|
// Gaps come from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
@@ -6677,7 +6452,7 @@ var space$2 = tokens.semantic.space;
|
|
|
6677
6452
|
var StyledFieldContainer$2 = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
6678
6453
|
displayName: "NumberInput__StyledFieldContainer",
|
|
6679
6454
|
componentId: "sc-qotc3w-0"
|
|
6680
|
-
})(templateObject_1$
|
|
6455
|
+
})(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])), space$2[200]);
|
|
6681
6456
|
var StyledLabel$3 = /*#__PURE__*/styled__default.default.label.withConfig({
|
|
6682
6457
|
displayName: "NumberInput__StyledLabel",
|
|
6683
6458
|
componentId: "sc-qotc3w-1"
|
|
@@ -6925,72 +6700,7 @@ var NumberInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
6925
6700
|
});
|
|
6926
6701
|
});
|
|
6927
6702
|
NumberInput.displayName = 'NumberInput';
|
|
6928
|
-
var templateObject_1$
|
|
6929
|
-
|
|
6930
|
-
var PageTitleStyled = /*#__PURE__*/styled__default.default.div.withConfig({
|
|
6931
|
-
shouldForwardProp: function shouldForwardProp(prop) {
|
|
6932
|
-
return !prop.startsWith('$');
|
|
6933
|
-
},
|
|
6934
|
-
displayName: "PageTitle__PageTitleStyled",
|
|
6935
|
-
componentId: "sc-16h256f-0"
|
|
6936
|
-
})(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n margin-bottom: ", ";\n margin-top: ", ";\n"], ["\n margin-bottom: ", ";\n margin-top: ", ";\n"
|
|
6937
|
-
/**
|
|
6938
|
-
* @deprecated PageTitle is a leftover from the personal site (its back button always links to `/music`)
|
|
6939
|
-
* and will be removed in the next major version. Compose a page title from `Typography` in a `Stack`:
|
|
6940
|
-
*
|
|
6941
|
-
* ```tsx
|
|
6942
|
-
* <Stack direction="column" gap="md">
|
|
6943
|
-
* <Typography variant="h1">{title}</Typography>
|
|
6944
|
-
* <Typography variant="caption" color="subdued">{subtitle}</Typography>
|
|
6945
|
-
* </Stack>
|
|
6946
|
-
* ```
|
|
6947
|
-
*
|
|
6948
|
-
* For a back link, add an `IconButton` with your own `url` and `aria-label`.
|
|
6949
|
-
*/])), tokens.semantic.space[600], function (_a) {
|
|
6950
|
-
var $hasBackButton = _a.$hasBackButton;
|
|
6951
|
-
return $hasBackButton ? tokens.semantic.space[0] : tokens.semantic.space[1200];
|
|
6952
|
-
});
|
|
6953
|
-
/**
|
|
6954
|
-
* @deprecated PageTitle is a leftover from the personal site (its back button always links to `/music`)
|
|
6955
|
-
* and will be removed in the next major version. Compose a page title from `Typography` in a `Stack`:
|
|
6956
|
-
*
|
|
6957
|
-
* ```tsx
|
|
6958
|
-
* <Stack direction="column" gap="md">
|
|
6959
|
-
* <Typography variant="h1">{title}</Typography>
|
|
6960
|
-
* <Typography variant="caption" color="subdued">{subtitle}</Typography>
|
|
6961
|
-
* </Stack>
|
|
6962
|
-
* ```
|
|
6963
|
-
*
|
|
6964
|
-
* For a back link, add an `IconButton` with your own `url` and `aria-label`.
|
|
6965
|
-
*/
|
|
6966
|
-
var PageTitle = function PageTitle(_a) {
|
|
6967
|
-
var title = _a.title,
|
|
6968
|
-
_b = _a.hasBackButton,
|
|
6969
|
-
hasBackButton = _b === void 0 ? false : _b,
|
|
6970
|
-
subtitle = _a.subtitle;
|
|
6971
|
-
return jsxRuntime.jsxs(PageTitleStyled, {
|
|
6972
|
-
"$hasBackButton": hasBackButton,
|
|
6973
|
-
children: [hasBackButton && jsxRuntime.jsx(IconButton, {
|
|
6974
|
-
iconName: 'back',
|
|
6975
|
-
size: 'large',
|
|
6976
|
-
variant: 'naked',
|
|
6977
|
-
url: '/music',
|
|
6978
|
-
"aria-label": 'Go back to music page'
|
|
6979
|
-
}), jsxRuntime.jsxs(Stack, {
|
|
6980
|
-
direction: 'column',
|
|
6981
|
-
gap: "md",
|
|
6982
|
-
children: [jsxRuntime.jsx(Typography, {
|
|
6983
|
-
variant: "h1",
|
|
6984
|
-
children: title
|
|
6985
|
-
}), subtitle && jsxRuntime.jsx(Typography, {
|
|
6986
|
-
variant: 'caption',
|
|
6987
|
-
color: 'subdued',
|
|
6988
|
-
children: subtitle
|
|
6989
|
-
})]
|
|
6990
|
-
})]
|
|
6991
|
-
});
|
|
6992
|
-
};
|
|
6993
|
-
var templateObject_1$8;
|
|
6703
|
+
var templateObject_1$8, templateObject_2$8, templateObject_3$8, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$4;
|
|
6994
6704
|
|
|
6995
6705
|
var field$1 = tokens.component.field;
|
|
6996
6706
|
// Gaps come from the semantic spacing scale: no component spacing tokens (decision 0022)
|
|
@@ -8215,10 +7925,8 @@ var StyledBadge = /*#__PURE__*/styled__default.default.span.withConfig({
|
|
|
8215
7925
|
var TabBar = function TabBar(_a) {
|
|
8216
7926
|
var tabs = _a.tabs,
|
|
8217
7927
|
activeTab = _a.activeTab,
|
|
8218
|
-
onTabChange = _a.onTabChange
|
|
8219
|
-
|
|
8220
|
-
_a.variant;
|
|
8221
|
-
var _b = _a["aria-label"],
|
|
7928
|
+
onTabChange = _a.onTabChange,
|
|
7929
|
+
_b = _a["aria-label"],
|
|
8222
7930
|
ariaLabel = _b === void 0 ? 'Tab navigation' : _b,
|
|
8223
7931
|
dataTestId = _a["data-testid"];
|
|
8224
7932
|
var tabRefs = React.useRef([]);
|
|
@@ -8631,10 +8339,12 @@ var TransactionListItem = function TransactionListItem(_a) {
|
|
|
8631
8339
|
};
|
|
8632
8340
|
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;
|
|
8633
8341
|
|
|
8634
|
-
// Exception to decision 0014: the gap props are typed as base
|
|
8635
|
-
// so they are looked up in base
|
|
8636
|
-
|
|
8637
|
-
|
|
8342
|
+
// Exception to decision 0014: the gap props are typed as base dimension keys (public API),
|
|
8343
|
+
// so they are looked up in the base tier until they accept semantic keys.
|
|
8344
|
+
var gapSpacing = __assign(__assign({}, tokens.base.dimension), {
|
|
8345
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
8346
|
+
auto: tokens.base.spacing.auto
|
|
8347
|
+
});
|
|
8638
8348
|
// Breakpoints using base tokens
|
|
8639
8349
|
var breakpoints = {
|
|
8640
8350
|
xs: tokens.semantic.breakpoint.xs,
|
|
@@ -8850,13 +8560,11 @@ exports.AgentInput = AgentInput;
|
|
|
8850
8560
|
exports.Alert = Alert;
|
|
8851
8561
|
exports.Avatar = Avatar;
|
|
8852
8562
|
exports.Badge = Badge;
|
|
8853
|
-
exports.BooleanChip = BooleanChip;
|
|
8854
8563
|
exports.Box = Box;
|
|
8855
8564
|
exports.Breadcrumbs = Breadcrumbs;
|
|
8856
8565
|
exports.Button = Button;
|
|
8857
8566
|
exports.CardLarge = CardLarge;
|
|
8858
8567
|
exports.CardSmall = CardSmall;
|
|
8859
|
-
exports.CategoryBadge = CategoryBadge;
|
|
8860
8568
|
exports.CategoryLabel = CategoryLabel;
|
|
8861
8569
|
exports.Checkbox = Checkbox;
|
|
8862
8570
|
exports.Chip = Chip;
|
|
@@ -8876,13 +8584,11 @@ exports.Icon = Icon;
|
|
|
8876
8584
|
exports.IconButton = IconButton;
|
|
8877
8585
|
exports.InlineAlert = InlineAlert;
|
|
8878
8586
|
exports.InputChip = InputChip;
|
|
8879
|
-
exports.LegacyChip = LegacyChip;
|
|
8880
8587
|
exports.List = List;
|
|
8881
8588
|
exports.ListItem = ListItem;
|
|
8882
8589
|
exports.Modal = Modal;
|
|
8883
8590
|
exports.MoneyDisplay = MoneyDisplay;
|
|
8884
8591
|
exports.NumberInput = NumberInput;
|
|
8885
|
-
exports.PageTitle = PageTitle;
|
|
8886
8592
|
exports.PasswordField = PasswordField;
|
|
8887
8593
|
exports.Picture = Picture;
|
|
8888
8594
|
exports.ProgressBar = ProgressBar;
|
|
@@ -8891,7 +8597,6 @@ exports.SearchField = SearchField;
|
|
|
8891
8597
|
exports.Sheet = Sheet;
|
|
8892
8598
|
exports.Slider = Slider;
|
|
8893
8599
|
exports.Stack = Stack;
|
|
8894
|
-
exports.StatusBadge = StatusBadge;
|
|
8895
8600
|
exports.StatusLabel = StatusLabel;
|
|
8896
8601
|
exports.StyledInputBase = StyledInputBase;
|
|
8897
8602
|
exports.StyledTextAreaBase = StyledTextAreaBase;
|