@common-origin/design-system 2.16.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.esm.js +168 -125
- package/dist/client.esm.js.map +1 -1
- package/dist/client.js +167 -124
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.d.ts +7 -2
- package/dist/components/atoms/DateFormatter/DateFormatter.d.ts +11 -1
- package/dist/components/atoms/Icon/Icon.d.ts +11 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/atoms/Tag/Tag.d.ts +4 -1
- package/dist/components/molecules/DateGroup/DateGroup.d.ts +4 -1
- package/dist/components/molecules/List/List.d.ts +3 -2
- package/dist/components/molecules/List/ListContext.d.ts +6 -0
- package/dist/components/molecules/List/ListItem.d.ts +5 -4
- package/dist/data.esm.js +10 -2
- package/dist/data.esm.js.map +1 -1
- package/dist/data.js +10 -2
- package/dist/data.js.map +1 -1
- package/dist/styles/tokens.json +10 -2
- package/dist/tokens/index.esm.js +10 -2
- package/dist/tokens/index.esm.js.map +1 -1
- package/dist/tokens/index.js +10 -2
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/types/tokens.d.ts +8 -0
- package/dist/tokens.css +19 -11
- package/dist/types/tokens.d.ts +8 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -407,7 +407,9 @@ var BadgeIndicator = styled__default.default.span.withConfig({
|
|
|
407
407
|
return props.$isDot ? '0' : "0 ".concat(semantic$i.spacing.component.xs);
|
|
408
408
|
}, radius$4.circle, count.lineHeight, ring.width, color$9.background["default"], scaleIn$2, semantic$i.motion.duration.normal, semantic$i.motion.easing.easeOut, reducedMotion, function (props) {
|
|
409
409
|
switch (props.$variant) {
|
|
410
|
+
case 'accent':
|
|
410
411
|
case 'primary':
|
|
412
|
+
// Deprecated alias for 'accent', removed in 3.0 (#169)
|
|
411
413
|
return "\n background-color: ".concat(color$9.background.interactive, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
412
414
|
case 'error':
|
|
413
415
|
return "\n background-color: ".concat(color$9.background.error, ";\n color: ").concat(color$9.text.inverse, ";\n ");
|
|
@@ -555,7 +557,7 @@ var StyledBox = styled__default.default.div.withConfig({
|
|
|
555
557
|
}, function (props) {
|
|
556
558
|
return props.$transition && styled.css(templateObject_42 || (templateObject_42 = __makeTemplateObject(["transition: ", ";"], ["transition: ", ";"])), props.$transition);
|
|
557
559
|
}, function (props) {
|
|
558
|
-
return (props.$hoverShadow || props.$hoverTransform) && styled.css(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n &:hover {\n ", "\n ", "\n }\n \n &:active {\n transform: translateY(0);\n }\n \n &:focus-visible {\n outline: ", "
|
|
560
|
+
return (props.$hoverShadow || props.$hoverTransform) && styled.css(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n &:hover {\n ", "\n ", "\n }\n \n &:active {\n transform: translateY(0);\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n "], ["\n &:hover {\n ", "\n ", "\n }\n \n &:active {\n transform: translateY(0);\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n "])), props.$hoverShadow && styled.css(templateObject_43 || (templateObject_43 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), data.tokensJson.semantic.elevation[props.$hoverShadow]), props.$hoverTransform && styled.css(templateObject_44 || (templateObject_44 = __makeTemplateObject(["transform: ", ";"], ["transform: ", ";"])), props.$hoverTransform), data.tokensJson.semantic.border.focus, data.tokensJson.semantic.border.focusOffset);
|
|
559
561
|
}, function (props) {
|
|
560
562
|
return props.$overflow && styled.css(templateObject_46 || (templateObject_46 = __makeTemplateObject(["overflow: ", ";"], ["overflow: ", ";"])), props.$overflow);
|
|
561
563
|
}, function (props) {
|
|
@@ -742,7 +744,11 @@ var Icon = function Icon(_a) {
|
|
|
742
744
|
size = _b === void 0 ? 'lg' : _b,
|
|
743
745
|
_c = _a.iconColor,
|
|
744
746
|
iconColor = _c === void 0 ? 'default' : _c,
|
|
747
|
+
ariaLabel = _a["aria-label"],
|
|
748
|
+
title = _a.title,
|
|
745
749
|
dataTestId = _a["data-testid"];
|
|
750
|
+
// Decorative unless it's given a name. A blank name is no name, so the icon stays hidden
|
|
751
|
+
var label = (ariaLabel === null || ariaLabel === void 0 ? void 0 : ariaLabel.trim()) || (title === null || title === void 0 ? void 0 : title.trim()) || undefined;
|
|
746
752
|
// Get the icon data from the JSON file
|
|
747
753
|
var iconData = data.iconsJson[name];
|
|
748
754
|
if (!iconData) {
|
|
@@ -757,16 +763,23 @@ var Icon = function Icon(_a) {
|
|
|
757
763
|
"$size": size,
|
|
758
764
|
"$iconColor": iconColor,
|
|
759
765
|
"data-testid": dataTestId,
|
|
760
|
-
children: jsxRuntime.
|
|
766
|
+
children: jsxRuntime.jsxs("svg", __assign({
|
|
761
767
|
viewBox: "0 0 24 24",
|
|
762
768
|
fill: "currentColor",
|
|
763
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
769
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
770
|
+
}, label ? {
|
|
771
|
+
role: 'img',
|
|
772
|
+
'aria-label': label
|
|
773
|
+
} : {
|
|
774
|
+
'aria-hidden': true,
|
|
775
|
+
focusable: false
|
|
776
|
+
}, {
|
|
777
|
+
children: [(title === null || title === void 0 ? void 0 : title.trim()) && jsxRuntime.jsx("title", {
|
|
778
|
+
children: title
|
|
779
|
+
}), jsxRuntime.jsx("path", {
|
|
767
780
|
d: iconData.path
|
|
768
|
-
})
|
|
769
|
-
})
|
|
781
|
+
})]
|
|
782
|
+
}))
|
|
770
783
|
});
|
|
771
784
|
};
|
|
772
785
|
var templateObject_1$H;
|
|
@@ -1008,7 +1021,7 @@ var StyledCategoryLabel = styled__default.default.span.withConfig({
|
|
|
1008
1021
|
var $color = _a.$color,
|
|
1009
1022
|
$variant = _a.$variant;
|
|
1010
1023
|
if ($variant === 'filled') {
|
|
1011
|
-
return category["".concat($color, "-
|
|
1024
|
+
return category["".concat($color, "-strong")];
|
|
1012
1025
|
}
|
|
1013
1026
|
if ($variant === 'outlined') {
|
|
1014
1027
|
return 'transparent';
|
|
@@ -1098,8 +1111,7 @@ var CategoryLabel = function CategoryLabel(_a) {
|
|
|
1098
1111
|
children: [icon && jsxRuntime.jsx(Icon, {
|
|
1099
1112
|
name: icon,
|
|
1100
1113
|
size: iconSize,
|
|
1101
|
-
iconColor: variant === 'filled' ? 'inverse' : 'inherit'
|
|
1102
|
-
"aria-hidden": "true"
|
|
1114
|
+
iconColor: variant === 'filled' ? 'inverse' : 'inherit'
|
|
1103
1115
|
}), children]
|
|
1104
1116
|
}), accessibleLabel && jsxRuntime.jsx(HiddenLabel, {
|
|
1105
1117
|
children: accessibleLabel
|
|
@@ -1544,12 +1556,9 @@ var DateFormatter = function DateFormatter(_a) {
|
|
|
1544
1556
|
var date = dateFns.parseISO(dateString);
|
|
1545
1557
|
var displayText;
|
|
1546
1558
|
switch (mode) {
|
|
1547
|
-
case 'relative':
|
|
1548
|
-
// Always use relative labels (Today/Yesterday) or fall back to day name
|
|
1549
|
-
displayText = formatDateSmart(date, formatString);
|
|
1550
|
-
break;
|
|
1559
|
+
case 'relative': // Deprecated alias for 'smart', removed in 3.0 (#82)
|
|
1551
1560
|
case 'smart':
|
|
1552
|
-
//
|
|
1561
|
+
// Today, Yesterday or the day name for recent dates; formatted for older ones
|
|
1553
1562
|
displayText = formatDateSmart(date, formatString);
|
|
1554
1563
|
break;
|
|
1555
1564
|
case 'absolute':
|
|
@@ -1791,14 +1800,18 @@ var MoneyDisplay = function MoneyDisplay(_a) {
|
|
|
1791
1800
|
"$weight": weight,
|
|
1792
1801
|
"aria-label": ariaLabel,
|
|
1793
1802
|
"data-testid": dataTestId,
|
|
1794
|
-
children: [showPositiveIcon && !showNegativeIcon &&
|
|
1803
|
+
children: [showPositiveIcon && !showNegativeIcon &&
|
|
1804
|
+
// The amount is shown without a sign, so the icon is the sign and needs a name (#85)
|
|
1805
|
+
jsxRuntime.jsx(Icon, {
|
|
1795
1806
|
name: "addRing",
|
|
1796
1807
|
size: iconSize,
|
|
1797
|
-
iconColor: iconColor
|
|
1808
|
+
iconColor: iconColor,
|
|
1809
|
+
"aria-label": "Plus"
|
|
1798
1810
|
}), showNegativeIcon && jsxRuntime.jsx(Icon, {
|
|
1799
1811
|
name: "remove",
|
|
1800
1812
|
size: iconSize,
|
|
1801
|
-
iconColor: iconColor
|
|
1813
|
+
iconColor: iconColor,
|
|
1814
|
+
"aria-label": "Minus"
|
|
1802
1815
|
}), jsxRuntime.jsx(Typography, {
|
|
1803
1816
|
variant: typographyVariant,
|
|
1804
1817
|
color: amountColor,
|
|
@@ -1825,7 +1838,7 @@ var ProgressBarContainer = styled__default.default.div.withConfig({
|
|
|
1825
1838
|
},
|
|
1826
1839
|
displayName: "ProgressBar__ProgressBarContainer",
|
|
1827
1840
|
componentId: "sc-1nco33q-0"
|
|
1828
|
-
})(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"])), color$6.background.
|
|
1841
|
+
})(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"])), color$6.background.progressTrack, radius$2.xs, function (props) {
|
|
1829
1842
|
return props.$variant === 'horizontal' && styled.css(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n "], ["\n width: 100%;\n height: ", ";\n "])), props.$height ? component$2.progressBar.sizes[props.$height].height : component$2.progressBar.sizes.md.height);
|
|
1830
1843
|
}, function (props) {
|
|
1831
1844
|
return props.$variant === 'vertical' && styled.css(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n "], ["\n width: ", ";\n height: 100%;\n "])), props.$width ? component$2.progressBar.sizes[props.$width].height : component$2.progressBar.sizes.md.height);
|
|
@@ -1847,7 +1860,8 @@ var ProgressBarFill = styled__default.default.div.withConfig({
|
|
|
1847
1860
|
break;
|
|
1848
1861
|
case 'default':
|
|
1849
1862
|
default:
|
|
1850
|
-
|
|
1863
|
+
// Near-black, like Slider's fill (decision 0029)
|
|
1864
|
+
backgroundColor = color$6.background.emphasis;
|
|
1851
1865
|
break;
|
|
1852
1866
|
}
|
|
1853
1867
|
return styled.css(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundColor);
|
|
@@ -2200,8 +2214,7 @@ var StatusLabelBase = function StatusLabelBase(_a) {
|
|
|
2200
2214
|
children: [showIcon && jsxRuntime.jsx(Icon, {
|
|
2201
2215
|
name: statusConfig.icon,
|
|
2202
2216
|
size: sizeStyles.iconSize,
|
|
2203
|
-
iconColor: "inherit"
|
|
2204
|
-
"aria-hidden": "true"
|
|
2217
|
+
iconColor: "inherit"
|
|
2205
2218
|
}), displayLabel, jsxRuntime.jsxs(ScreenReaderOnly, {
|
|
2206
2219
|
children: [status, " status"]
|
|
2207
2220
|
})]
|
|
@@ -2528,6 +2541,12 @@ var AccountCard = function AccountCard(_a) {
|
|
|
2528
2541
|
};
|
|
2529
2542
|
var templateObject_1$t, templateObject_2$o, templateObject_3$m, templateObject_4$i, templateObject_5$f;
|
|
2530
2543
|
|
|
2544
|
+
/**
|
|
2545
|
+
* The spacing a List gives its items (#77). A ListItem without its own `spacing` uses it; outside
|
|
2546
|
+
* a List it's `comfortable`. Internal: not exported from the package.
|
|
2547
|
+
*/
|
|
2548
|
+
var ListSpacingContext = /*#__PURE__*/React.createContext('comfortable');
|
|
2549
|
+
|
|
2531
2550
|
var semantic$b = data.tokensJson.semantic;
|
|
2532
2551
|
var _a$5 = semantic$b.motion,
|
|
2533
2552
|
duration$2 = _a$5.duration,
|
|
@@ -2555,7 +2574,7 @@ var StyledItemContent = styled__default.default.div.withConfig({
|
|
|
2555
2574
|
},
|
|
2556
2575
|
displayName: "ListItem__StyledItemContent",
|
|
2557
2576
|
componentId: "sc-1wzzt21-1"
|
|
2558
|
-
})(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\n transition: background-color ", " ", ";\n cursor: ", ";\n \n /* Interactive hover states */\n ", "\n \n /* Focus visible */\n &:focus-visible {\n outline: ", "
|
|
2577
|
+
})(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\n transition: background-color ", " ", ";\n cursor: ", ";\n \n /* Interactive hover states */\n ", "\n \n /* Focus visible */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\n transition: background-color ", " ", ";\n cursor: ", ";\n \n /* Interactive hover states */\n ", "\n \n /* Focus visible */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), semantic$b.spacing.layout.md, function (_a) {
|
|
2559
2578
|
var $spacing = _a.$spacing;
|
|
2560
2579
|
return $spacing === 'compact' ? "".concat(semantic$b.spacing.layout.sm, " ").concat(semantic$b.spacing.layout.md) : "".concat(semantic$b.spacing.layout.md, " ").concat(semantic$b.spacing.layout.lg);
|
|
2561
2580
|
}, semantic$b.border.radius.sm, function (_a) {
|
|
@@ -2572,7 +2591,7 @@ var StyledItemContent = styled__default.default.div.withConfig({
|
|
|
2572
2591
|
$disabled = _a.$disabled,
|
|
2573
2592
|
$selected = _a.$selected;
|
|
2574
2593
|
return !$disabled && $interactive && "\n &:hover {\n background-color: ".concat($selected ? data.tokensJson.component.button.variants.secondary.backgroundColor : data.tokensJson.component.button.variants.secondary.backgroundColor, ";\n }\n \n &:active {\n background-color: ").concat(data.tokensJson.component.button.variants.naked.backgroundColor, ";\n }\n ");
|
|
2575
|
-
}, semantic$b.border.
|
|
2594
|
+
}, semantic$b.border.focus, semantic$b.border.focusOffset);
|
|
2576
2595
|
var StyledIconContainer$1 = styled__default.default.div.withConfig({
|
|
2577
2596
|
displayName: "ListItem__StyledIconContainer",
|
|
2578
2597
|
componentId: "sc-1wzzt21-2"
|
|
@@ -2634,8 +2653,7 @@ var ListItem = function ListItem(_a) {
|
|
|
2634
2653
|
selected = _f === void 0 ? false : _f,
|
|
2635
2654
|
_g = _a.destructive,
|
|
2636
2655
|
destructive = _g === void 0 ? false : _g,
|
|
2637
|
-
|
|
2638
|
-
spacing = _h === void 0 ? 'comfortable' : _h,
|
|
2656
|
+
spacingProp = _a.spacing,
|
|
2639
2657
|
children = _a.children,
|
|
2640
2658
|
className = _a.className,
|
|
2641
2659
|
dataTestId = _a["data-testid"],
|
|
@@ -2645,6 +2663,8 @@ var ListItem = function ListItem(_a) {
|
|
|
2645
2663
|
customTabIndex = _a.tabIndex,
|
|
2646
2664
|
customOnKeyDown = _a.onKeyDown,
|
|
2647
2665
|
props = __rest(_a, ["primary", "secondary", "badge", "icon", "expandable", "expanded", "onToggle", "interactive", "onClick", "disabled", "selected", "destructive", "spacing", "children", "className", 'data-testid', "role", 'aria-selected', "id", "tabIndex", "onKeyDown"]);
|
|
2666
|
+
var listSpacing = React.useContext(ListSpacingContext);
|
|
2667
|
+
var spacing = spacingProp !== null && spacingProp !== void 0 ? spacingProp : listSpacing;
|
|
2648
2668
|
var isInteractive = interactive || expandable || customRole === 'option';
|
|
2649
2669
|
var contentRole = customRole === 'option' ? undefined : isInteractive ? 'button' : undefined;
|
|
2650
2670
|
var ariaExpanded = expandable ? expanded : undefined;
|
|
@@ -2669,61 +2689,69 @@ var ListItem = function ListItem(_a) {
|
|
|
2669
2689
|
handleClick();
|
|
2670
2690
|
}
|
|
2671
2691
|
};
|
|
2672
|
-
return
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2692
|
+
return (
|
|
2693
|
+
// The List's spacing is for its own items: reset it for this item's content, so components
|
|
2694
|
+
// built on ListItem (ActionSheet, even through its portal) and expanded content keep their own
|
|
2695
|
+
// density. A nested List provides its own spacing (#77)
|
|
2696
|
+
jsxRuntime.jsx(ListSpacingContext.Provider, {
|
|
2697
|
+
value: "comfortable",
|
|
2698
|
+
children: jsxRuntime.jsxs(StyledListItem, __assign({
|
|
2699
|
+
"$interactive": isInteractive,
|
|
2700
|
+
"$disabled": disabled,
|
|
2701
|
+
"$selected": selected,
|
|
2702
|
+
"$destructive": destructive,
|
|
2703
|
+
"$spacing": spacing,
|
|
2704
|
+
className: className,
|
|
2705
|
+
"data-testid": dataTestId,
|
|
2706
|
+
role: customRole || 'listitem',
|
|
2707
|
+
id: id,
|
|
2708
|
+
"aria-selected": ariaSelected
|
|
2709
|
+
}, props, {
|
|
2710
|
+
children: [jsxRuntime.jsxs(StyledItemContent, {
|
|
2711
|
+
"$interactive": isInteractive,
|
|
2712
|
+
"$disabled": disabled,
|
|
2713
|
+
"$selected": selected,
|
|
2714
|
+
"$destructive": destructive,
|
|
2715
|
+
"$spacing": spacing,
|
|
2716
|
+
role: contentRole,
|
|
2717
|
+
"aria-expanded": ariaExpanded,
|
|
2718
|
+
"aria-disabled": ariaDisabled,
|
|
2719
|
+
"aria-current": ariaCurrent,
|
|
2720
|
+
tabIndex: customTabIndex !== undefined ? customTabIndex : isInteractive && !disabled ? 0 : undefined,
|
|
2721
|
+
onClick: handleClick,
|
|
2722
|
+
onKeyDown: handleKeyDown,
|
|
2723
|
+
children: [icon && jsxRuntime.jsx(StyledIconContainer$1, {
|
|
2724
|
+
"aria-hidden": "true",
|
|
2725
|
+
children: icon
|
|
2726
|
+
}), jsxRuntime.jsxs(StyledTextContent, {
|
|
2727
|
+
children: [jsxRuntime.jsx(Typography, {
|
|
2728
|
+
variant: "body",
|
|
2729
|
+
color: destructive ? 'error' : 'default',
|
|
2730
|
+
children: primary
|
|
2731
|
+
}), secondary && jsxRuntime.jsx(Typography, {
|
|
2732
|
+
variant: "small",
|
|
2733
|
+
color: "subdued",
|
|
2734
|
+
children: secondary
|
|
2735
|
+
})]
|
|
2736
|
+
}), jsxRuntime.jsxs(StyledRightContent, {
|
|
2737
|
+
children: [badge, expandable && jsxRuntime.jsx(StyledChevronIcon, {
|
|
2738
|
+
"$expanded": expanded,
|
|
2739
|
+
"aria-hidden": "true",
|
|
2740
|
+
children: jsxRuntime.jsx(Icon, {
|
|
2741
|
+
name: "caretDown",
|
|
2742
|
+
size: "sm"
|
|
2743
|
+
})
|
|
2744
|
+
})]
|
|
2745
|
+
})]
|
|
2746
|
+
}), expandable && children && jsxRuntime.jsx(StyledExpandedContent, {
|
|
2747
|
+
"$spacing": spacing,
|
|
2712
2748
|
"$expanded": expanded,
|
|
2713
|
-
"aria-hidden":
|
|
2714
|
-
children:
|
|
2715
|
-
name: "caretDown",
|
|
2716
|
-
size: "sm"
|
|
2717
|
-
})
|
|
2749
|
+
"aria-hidden": !expanded,
|
|
2750
|
+
children: children
|
|
2718
2751
|
})]
|
|
2719
|
-
})
|
|
2720
|
-
})
|
|
2721
|
-
|
|
2722
|
-
"$expanded": expanded,
|
|
2723
|
-
"aria-hidden": !expanded,
|
|
2724
|
-
children: children
|
|
2725
|
-
})]
|
|
2726
|
-
}));
|
|
2752
|
+
}))
|
|
2753
|
+
})
|
|
2754
|
+
);
|
|
2727
2755
|
};
|
|
2728
2756
|
ListItem.displayName = 'ListItem';
|
|
2729
2757
|
var templateObject_1$s, templateObject_2$n, templateObject_3$l, templateObject_4$h, templateObject_5$e, templateObject_6$b, templateObject_7$9;
|
|
@@ -2807,7 +2835,7 @@ var StyledHeaderContent = styled__default.default.div.withConfig({
|
|
|
2807
2835
|
var StyledCloseButton = styled__default.default.button.withConfig({
|
|
2808
2836
|
displayName: "ActionSheet__StyledCloseButton",
|
|
2809
2837
|
componentId: "sc-regbol-4"
|
|
2810
|
-
})(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), layout$1.sm, color$4.icon.subdued, border$5.radius.sm, motion$3.hover, layout$1.sm, color$4.icon["default"], color$4.background.surface, border$5.focus,
|
|
2838
|
+
})(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), layout$1.sm, color$4.icon.subdued, border$5.radius.sm, motion$3.hover, layout$1.sm, color$4.icon["default"], color$4.background.surface, border$5.focus, border$5.focusOffset);
|
|
2811
2839
|
var StyledActionsList = styled__default.default.ul.withConfig({
|
|
2812
2840
|
displayName: "ActionSheet__StyledActionsList",
|
|
2813
2841
|
componentId: "sc-regbol-5"
|
|
@@ -4470,12 +4498,12 @@ var StyledCheckbox = styled__default.default.span.withConfig({
|
|
|
4470
4498
|
return props.$checked || props.$indeterminate ? data.tokensJson.semantic.color.background.inverse : data.tokensJson.component.input["default"].backgroundColor;
|
|
4471
4499
|
}, function (props) {
|
|
4472
4500
|
if (props.$state === 'error') return data.tokensJson.component.input.error.borderColor;
|
|
4473
|
-
if (props.$checked || props.$indeterminate) return data.tokensJson.semantic.border.strong;
|
|
4501
|
+
if (props.$checked || props.$indeterminate) return data.tokensJson.semantic.color.border.strong;
|
|
4474
4502
|
return data.tokensJson.component.input["default"].borderColor;
|
|
4475
4503
|
}, function (props) {
|
|
4476
4504
|
return props.$state === 'disabled' ? 'not-allowed' : 'pointer';
|
|
4477
4505
|
}, data.tokensJson.semantic.motion.duration.fast, data.tokensJson.semantic.motion.easing.easeOut, HiddenCheckboxInput, function (props) {
|
|
4478
|
-
return props.$state === 'error' ? data.tokensJson.component.input.error.hover.borderColor : props.$checked || props.$indeterminate ? data.tokensJson.semantic.border.strong : data.tokensJson.component.input.hover.borderColor;
|
|
4506
|
+
return props.$state === 'error' ? data.tokensJson.component.input.error.hover.borderColor : props.$checked || props.$indeterminate ? data.tokensJson.semantic.color.border.strong : data.tokensJson.component.input.hover.borderColor;
|
|
4479
4507
|
}, HiddenCheckboxInput, data.tokensJson.component.input.focus.outline, data.tokensJson.semantic.border.focusOffset, function (props) {
|
|
4480
4508
|
return props.$state === 'error' ? data.tokensJson.component.input.error.focus.borderColor : data.tokensJson.component.input.focus.borderColor;
|
|
4481
4509
|
}, function (props) {
|
|
@@ -4678,7 +4706,7 @@ var _a$2 = data.tokensJson.semantic,
|
|
|
4678
4706
|
var StyledCodeBlock = styled__default.default.pre.withConfig({
|
|
4679
4707
|
displayName: "CodeBlock__StyledCodeBlock",
|
|
4680
4708
|
componentId: "sc-1p1t0kp-0"
|
|
4681
|
-
})(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n"], ["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n"])), color$2.background.subtle, border$3.subtle, data.tokensJson.semantic.border.radius.sm, spacing$2.layout.md, data.tokensJson.component.codeBlock.fontFamily, data.tokensJson.component.codeBlock.fontSize, data.tokensJson.component.codeBlock.lineHeight, color$2.text["default"], function (_a) {
|
|
4709
|
+
})(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n\n /* The block is focusable so keyboard users can scroll it; it shows the system focus ring\n (decision 0029) */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n\n /* The block is focusable so keyboard users can scroll it; it shows the system focus ring\n (decision 0029) */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), color$2.background.subtle, border$3.subtle, data.tokensJson.semantic.border.radius.sm, spacing$2.layout.md, data.tokensJson.component.codeBlock.fontFamily, data.tokensJson.component.codeBlock.fontSize, data.tokensJson.component.codeBlock.lineHeight, color$2.text["default"], function (_a) {
|
|
4682
4710
|
var $isExpanded = _a.$isExpanded,
|
|
4683
4711
|
$needsExpansion = _a.$needsExpansion;
|
|
4684
4712
|
return $needsExpansion && !$isExpanded ? 'hidden' : 'auto';
|
|
@@ -4690,7 +4718,7 @@ var StyledCodeBlock = styled__default.default.pre.withConfig({
|
|
|
4690
4718
|
// Use a large value when expanded to allow smooth transition
|
|
4691
4719
|
// 10000px is effectively "no limit" for most code blocks
|
|
4692
4720
|
return $isExpanded ? 'max-height: 10000px;' : "max-height: ".concat($maxHeight, "px;");
|
|
4693
|
-
});
|
|
4721
|
+
}, border$3.focus, border$3.focusOffset);
|
|
4694
4722
|
var CodeBlockWrapper = styled__default.default.div.withConfig({
|
|
4695
4723
|
displayName: "CodeBlock__CodeBlockWrapper",
|
|
4696
4724
|
componentId: "sc-1p1t0kp-1"
|
|
@@ -5255,13 +5283,30 @@ var DropdownOption = styled__default.default.button.withConfig({
|
|
|
5255
5283
|
},
|
|
5256
5284
|
displayName: "Dropdown__DropdownOption",
|
|
5257
5285
|
componentId: "sc-kz07c4-4"
|
|
5258
|
-
})(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n width: 100%;\n display:
|
|
5286
|
+
})(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n padding: ", " ", ";\n /* Focus is grey; only the selected option is light blue, and the text darkens with its fill on\n focus, hover and press so it stays at least 4.5:1 (decisions 0016, 0029) */\n background-color: ", ";\n border: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ", color ", " ", ";\n \n &:hover {\n background-color: ", ";\n color: ", ";\n }\n\n &:active {\n background-color: ", ";\n color: ", ";\n }\n \n &:focus {\n outline: none;\n }\n \n &:not(:last-child) {\n border-bottom: ", ";\n }\n"], ["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n padding: ", " ", ";\n /* Focus is grey; only the selected option is light blue, and the text darkens with its fill on\n focus, hover and press so it stays at least 4.5:1 (decisions 0016, 0029) */\n background-color: ", ";\n border: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ", color ", " ", ";\n \n &:hover {\n background-color: ", ";\n color: ", ";\n }\n\n &:active {\n background-color: ", ";\n color: ", ";\n }\n \n &:focus {\n outline: none;\n }\n \n &:not(:last-child) {\n border-bottom: ", ";\n }\n"])), spacing.sm, input$1["default"].paddingY, controlPaddingX, function (_a) {
|
|
5259
5287
|
var $isSelected = _a.$isSelected,
|
|
5260
5288
|
$isFocused = _a.$isFocused;
|
|
5289
|
+
if ($isSelected) return $isFocused ? color$1.background['interactive-subtle-hover'] : color$1.background['interactive-subtle'];
|
|
5261
5290
|
if ($isFocused) return color$1.background.surface;
|
|
5262
|
-
if ($isSelected) return color$1.background.surface;
|
|
5263
5291
|
return 'transparent';
|
|
5264
|
-
}, input$1["default"].font,
|
|
5292
|
+
}, input$1["default"].font, function (_a) {
|
|
5293
|
+
var $isSelected = _a.$isSelected,
|
|
5294
|
+
$isFocused = _a.$isFocused;
|
|
5295
|
+
if ($isSelected) return $isFocused ? color$1.text['interactive-hover'] : color$1.text.interactive;
|
|
5296
|
+
return input$1["default"].textColor;
|
|
5297
|
+
}, duration.fast, easing.easeOut, duration.fast, easing.easeOut, function (_a) {
|
|
5298
|
+
var $isSelected = _a.$isSelected;
|
|
5299
|
+
return $isSelected ? color$1.background['interactive-subtle-hover'] : color$1.background.surface;
|
|
5300
|
+
}, function (_a) {
|
|
5301
|
+
var $isSelected = _a.$isSelected;
|
|
5302
|
+
return $isSelected ? color$1.text['interactive-hover'] : input$1["default"].textColor;
|
|
5303
|
+
}, function (_a) {
|
|
5304
|
+
var $isSelected = _a.$isSelected;
|
|
5305
|
+
return $isSelected ? color$1.background['interactive-subtle-active'] : color$1.background.neutral;
|
|
5306
|
+
}, function (_a) {
|
|
5307
|
+
var $isSelected = _a.$isSelected;
|
|
5308
|
+
return $isSelected ? color$1.text['interactive-active'] : input$1["default"].textColor;
|
|
5309
|
+
}, border$1.subtle);
|
|
5265
5310
|
var StyledHelperText$3 = styled__default.default.div.withConfig({
|
|
5266
5311
|
displayName: "Dropdown__StyledHelperText",
|
|
5267
5312
|
componentId: "sc-kz07c4-5"
|
|
@@ -5421,7 +5466,7 @@ var Dropdown = function Dropdown(_a) {
|
|
|
5421
5466
|
role: "listbox",
|
|
5422
5467
|
"aria-labelledby": dropdownId,
|
|
5423
5468
|
children: options.map(function (option, index) {
|
|
5424
|
-
return jsxRuntime.
|
|
5469
|
+
return jsxRuntime.jsxs(DropdownOption, {
|
|
5425
5470
|
"$isSelected": option.id === value,
|
|
5426
5471
|
"$isFocused": index === focusedIndex,
|
|
5427
5472
|
onClick: function onClick() {
|
|
@@ -5429,7 +5474,11 @@ var Dropdown = function Dropdown(_a) {
|
|
|
5429
5474
|
},
|
|
5430
5475
|
role: "option",
|
|
5431
5476
|
"aria-selected": option.id === value,
|
|
5432
|
-
children: option.label
|
|
5477
|
+
children: [option.label, option.id === value && jsxRuntime.jsx(Icon, {
|
|
5478
|
+
name: "check",
|
|
5479
|
+
size: "sm",
|
|
5480
|
+
iconColor: "inherit"
|
|
5481
|
+
})]
|
|
5433
5482
|
}, option.id);
|
|
5434
5483
|
})
|
|
5435
5484
|
}), error && jsxRuntime.jsx(StyledHelperText$3, {
|
|
@@ -5466,15 +5515,17 @@ var List = function List(_a) {
|
|
|
5466
5515
|
className = _a.className,
|
|
5467
5516
|
dataTestId = _a["data-testid"],
|
|
5468
5517
|
props = __rest(_a, ["children", "dividers", "spacing", "className", 'data-testid']);
|
|
5469
|
-
return jsxRuntime.jsx(
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5518
|
+
return jsxRuntime.jsx(ListSpacingContext.Provider, {
|
|
5519
|
+
value: spacing,
|
|
5520
|
+
children: jsxRuntime.jsx(StyledList, __assign({
|
|
5521
|
+
"$dividers": dividers,
|
|
5522
|
+
className: className,
|
|
5523
|
+
"data-testid": dataTestId,
|
|
5524
|
+
role: "list"
|
|
5525
|
+
}, props, {
|
|
5526
|
+
children: children
|
|
5527
|
+
}))
|
|
5528
|
+
});
|
|
5478
5529
|
};
|
|
5479
5530
|
List.displayName = 'List';
|
|
5480
5531
|
var templateObject_1$c;
|
|
@@ -6240,7 +6291,7 @@ var StyledInput = styled__default.default.input.withConfig({
|
|
|
6240
6291
|
var StyledSuggestionsList = styled__default.default.ul.withConfig({
|
|
6241
6292
|
displayName: "SearchField__StyledSuggestionsList",
|
|
6242
6293
|
componentId: "sc-qhz9i8-3"
|
|
6243
|
-
})(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n"], ["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n"])), semantic$3.spacing.layout.xs, data.tokensJson.semantic.size.menu.maxHeight, semantic$3.color.background.subtle, semantic$3.border.width.thin, semantic$3.color.border["default"], semantic$3.border.radius.md, semantic$3.elevation.floating, semantic$3.spacing.layout.xs, semantic$3.zIndex.dropdown);
|
|
6294
|
+
})(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n\n /* The highlighted suggestion has keyboard focus, which is grey, not the light-blue selected\n treatment (decision 0029). Its row is the option's first child */\n & > [data-highlighted] > :first-child {\n background-color: ", ";\n }\n"], ["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n\n /* The highlighted suggestion has keyboard focus, which is grey, not the light-blue selected\n treatment (decision 0029). Its row is the option's first child */\n & > [data-highlighted] > :first-child {\n background-color: ", ";\n }\n"])), semantic$3.spacing.layout.xs, data.tokensJson.semantic.size.menu.maxHeight, semantic$3.color.background.subtle, semantic$3.border.width.thin, semantic$3.color.border["default"], semantic$3.border.radius.md, semantic$3.elevation.floating, semantic$3.spacing.layout.xs, semantic$3.zIndex.dropdown, semantic$3.color.background.surface);
|
|
6244
6295
|
var StyledSectionHeader = styled__default.default.div.withConfig({
|
|
6245
6296
|
displayName: "SearchField__StyledSectionHeader",
|
|
6246
6297
|
componentId: "sc-qhz9i8-4"
|
|
@@ -6463,8 +6514,7 @@ var SearchField = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
6463
6514
|
children: [jsxRuntime.jsx(Icon, {
|
|
6464
6515
|
name: "search",
|
|
6465
6516
|
size: "sm",
|
|
6466
|
-
iconColor: "subdued"
|
|
6467
|
-
"aria-hidden": "true"
|
|
6517
|
+
iconColor: "subdued"
|
|
6468
6518
|
}), jsxRuntime.jsx(StyledInput, __assign({
|
|
6469
6519
|
ref: inputRef,
|
|
6470
6520
|
type: "text",
|
|
@@ -6530,11 +6580,10 @@ var SearchField = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
6530
6580
|
secondary: description,
|
|
6531
6581
|
icon: item.type === 'recent' ? jsxRuntime.jsx(Icon, {
|
|
6532
6582
|
name: "refresh",
|
|
6533
|
-
size: "xs"
|
|
6534
|
-
"aria-hidden": "true"
|
|
6583
|
+
size: "xs"
|
|
6535
6584
|
}) : undefined,
|
|
6536
6585
|
interactive: true,
|
|
6537
|
-
|
|
6586
|
+
"data-highlighted": index === highlightedIndex || undefined,
|
|
6538
6587
|
spacing: "compact",
|
|
6539
6588
|
onClick: function onClick() {
|
|
6540
6589
|
return handleSuggestionClick(item);
|
|
@@ -6814,7 +6863,7 @@ var StyledTrackFill = styled__default.default.div.withConfig({
|
|
|
6814
6863
|
var StyledThumb = styled__default.default.div.withConfig({
|
|
6815
6864
|
displayName: "Slider__StyledThumb",
|
|
6816
6865
|
componentId: "sc-6mh2d4-5"
|
|
6817
|
-
})(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n position: absolute;\n width: ", ";\n height: ", ";\n top: -", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n cursor: ", ";\n transform: translateX(-50%);\n transition: ", ";\n box-shadow: ", ";\n\n ", " {\n transition: none;\n }\n \n &:hover:not([aria-disabled=\"true\"]) {\n transform: translateX(-50%) scale(1.1);\n box-shadow: ", ";\n }\n \n &:focus-visible {\n outline: ", "
|
|
6866
|
+
})(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n position: absolute;\n width: ", ";\n height: ", ";\n top: -", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n cursor: ", ";\n transform: translateX(-50%);\n transition: ", ";\n box-shadow: ", ";\n\n ", " {\n transition: none;\n }\n \n &:hover:not([aria-disabled=\"true\"]) {\n transform: translateX(-50%) scale(1.1);\n box-shadow: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:active:not([aria-disabled=\"true\"]) {\n cursor: grabbing;\n transform: translateX(-50%) scale(0.95);\n }\n \n ", "\n"], ["\n position: absolute;\n width: ", ";\n height: ", ";\n top: -", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n cursor: ", ";\n transform: translateX(-50%);\n transition: ", ";\n box-shadow: ", ";\n\n ", " {\n transition: none;\n }\n \n &:hover:not([aria-disabled=\"true\"]) {\n transform: translateX(-50%) scale(1.1);\n box-shadow: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:active:not([aria-disabled=\"true\"]) {\n cursor: grabbing;\n transform: translateX(-50%) scale(0.95);\n }\n \n ", "\n"])), semantic$1.spacing.layout.xl, semantic$1.spacing.layout.xl, semantic$1.spacing.layout.sm, function (_a) {
|
|
6818
6867
|
var $disabled = _a.$disabled;
|
|
6819
6868
|
return $disabled ? semantic$1.color.background.disabled : semantic$1.color.background.subtle;
|
|
6820
6869
|
}, semantic$1.border.width.thick, function (_a) {
|
|
@@ -6823,7 +6872,7 @@ var StyledThumb = styled__default.default.div.withConfig({
|
|
|
6823
6872
|
}, semantic$1.border.radius.circle, function (_a) {
|
|
6824
6873
|
var $disabled = _a.$disabled;
|
|
6825
6874
|
return $disabled ? 'not-allowed' : 'grab';
|
|
6826
|
-
}, semantic$1.motion.transition.fast, data.tokensJson.component.slider.thumb.shadow["default"], reducedMotion, data.tokensJson.component.slider.thumb.shadow.hover, semantic$1.border.
|
|
6875
|
+
}, semantic$1.motion.transition.fast, data.tokensJson.component.slider.thumb.shadow["default"], reducedMotion, data.tokensJson.component.slider.thumb.shadow.hover, semantic$1.border.focus, semantic$1.border.focusOffset, function (_a) {
|
|
6827
6876
|
var $active = _a.$active;
|
|
6828
6877
|
return $active && "\n transform: translateX(-50%) scale(1.1);\n box-shadow: ".concat(data.tokensJson.component.slider.thumb.shadow.active, ";\n ");
|
|
6829
6878
|
});
|
|
@@ -7194,7 +7243,7 @@ var StyledTab = styled__default.default.button.withConfig({
|
|
|
7194
7243
|
},
|
|
7195
7244
|
displayName: "TabBar__StyledTab",
|
|
7196
7245
|
componentId: "sc-1g9ib0y-1"
|
|
7197
|
-
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n font: ", ";\n white-space: nowrap;\n cursor: ", ";\n border: none;\n background: transparent;\n transition: ", ";\n position: relative;\n \n /* Selected tab: the light-blue selected treatment plus a blue underline (decisions 0016, 0020).\n The text darkens with the fill on hover and press so every state stays at least 4.5:1. */\n border-radius: ", " ", " 0 0;\n background-color: ", ";\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n bottom: -1px;\n left: 0;\n right: 0;\n height: ", ";\n background-color: ", ";\n transition: ", ";\n }\n\n &:hover:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n /* Disabled state */\n opacity: ", ";\n \n /* Focus state */\n &:focus-visible {\n outline: ", "
|
|
7246
|
+
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n font: ", ";\n white-space: nowrap;\n cursor: ", ";\n border: none;\n background: transparent;\n transition: ", ";\n position: relative;\n \n /* Selected tab: the light-blue selected treatment plus a blue underline (decisions 0016, 0020).\n The text darkens with the fill on hover and press so every state stays at least 4.5:1. */\n border-radius: ", " ", " 0 0;\n background-color: ", ";\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n bottom: -1px;\n left: 0;\n right: 0;\n height: ", ";\n background-color: ", ";\n transition: ", ";\n }\n\n &:hover:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n /* Disabled state */\n opacity: ", ";\n \n /* Focus state */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n z-index: 1;\n }\n\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n font: ", ";\n white-space: nowrap;\n cursor: ", ";\n border: none;\n background: transparent;\n transition: ", ";\n position: relative;\n \n /* Selected tab: the light-blue selected treatment plus a blue underline (decisions 0016, 0020).\n The text darkens with the fill on hover and press so every state stays at least 4.5:1. */\n border-radius: ", " ", " 0 0;\n background-color: ", ";\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n bottom: -1px;\n left: 0;\n right: 0;\n height: ", ";\n background-color: ", ";\n transition: ", ";\n }\n\n &:hover:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n /* Disabled state */\n opacity: ", ";\n \n /* Focus state */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n z-index: 1;\n }\n\n"])), semantic.spacing.layout.sm, semantic.spacing.layout.md, semantic.spacing.layout.lg, semantic.typography.button2, function (props) {
|
|
7198
7247
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
7199
7248
|
}, semantic.motion.hover, semantic.border.radius.sm, semantic.border.radius.sm, function (props) {
|
|
7200
7249
|
return props.$isActive ? semantic.color.background['interactive-subtle'] : 'transparent';
|
|
@@ -7212,7 +7261,7 @@ var StyledTab = styled__default.default.button.withConfig({
|
|
|
7212
7261
|
return props.$isActive ? semantic.color.text['interactive-active'] : semantic.color.text["default"];
|
|
7213
7262
|
}, function (props) {
|
|
7214
7263
|
return props.$disabled ? '0.5' : '1';
|
|
7215
|
-
}, semantic.border.
|
|
7264
|
+
}, semantic.border.focus, semantic.border.focusOffset);
|
|
7216
7265
|
var StyledBadge = styled__default.default.span.withConfig({
|
|
7217
7266
|
displayName: "TabBar__StyledBadge",
|
|
7218
7267
|
componentId: "sc-1g9ib0y-2"
|
|
@@ -7492,7 +7541,7 @@ var StyledContainer = styled__default.default.div.withConfig({
|
|
|
7492
7541
|
componentId: "sc-7yunm0-0"
|
|
7493
7542
|
})(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n ", "\n"], ["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n ", "\n"])), data.tokensJson.component.transactionListItem.minHeight, data.tokensJson.semantic.spacing.layout.md, data.tokensJson.semantic.spacing.layout.md, data.tokensJson.semantic.color.background["default"], data.tokensJson.semantic.border.width.thin, data.tokensJson.semantic.color.border["default"], data.tokensJson.semantic.spacing.layout.md, data.tokensJson.semantic.motion.duration.normal, data.tokensJson.semantic.motion.easing.easeOut, function (_a) {
|
|
7494
7543
|
var $clickable = _a.$clickable;
|
|
7495
|
-
return $clickable && "\n cursor: pointer;\n \n &:hover {\n background-color: ".concat(data.tokensJson.semantic.color.background.subtle, ";\n }\n \n &:active {\n background-color: ").concat(data.tokensJson.semantic.color.background['interactive-active'], ";\n }\n \n &:focus-visible {\n outline: ").concat(data.tokensJson.semantic.border.
|
|
7544
|
+
return $clickable && "\n cursor: pointer;\n \n &:hover {\n background-color: ".concat(data.tokensJson.semantic.color.background.subtle, ";\n }\n \n &:active {\n background-color: ").concat(data.tokensJson.semantic.color.background['interactive-active'], ";\n }\n \n &:focus-visible {\n outline: ").concat(data.tokensJson.semantic.border.focus, ";\n outline-offset: calc(-1 * ").concat(data.tokensJson.semantic.border.focusOffset, ");\n }\n ");
|
|
7496
7545
|
});
|
|
7497
7546
|
var StyledAvatarSection = styled__default.default.div.withConfig({
|
|
7498
7547
|
displayName: "TransactionListItem__StyledAvatarSection",
|
|
@@ -7678,20 +7727,14 @@ var TransactionListItem = function TransactionListItem(_a) {
|
|
|
7678
7727
|
})
|
|
7679
7728
|
})]
|
|
7680
7729
|
}), (hasReceipt || hasNote) && jsxRuntime.jsxs(StyledIconIndicator, {
|
|
7681
|
-
children: [hasReceipt && jsxRuntime.jsx(
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
"aria-label": "Has note",
|
|
7690
|
-
role: "img",
|
|
7691
|
-
children: jsxRuntime.jsx(Icon, {
|
|
7692
|
-
name: "paper",
|
|
7693
|
-
size: "xs"
|
|
7694
|
-
})
|
|
7730
|
+
children: [hasReceipt && jsxRuntime.jsx(Icon, {
|
|
7731
|
+
name: "fileDocSearch",
|
|
7732
|
+
size: "xs",
|
|
7733
|
+
"aria-label": "Has receipt"
|
|
7734
|
+
}), hasNote && jsxRuntime.jsx(Icon, {
|
|
7735
|
+
name: "paper",
|
|
7736
|
+
size: "xs",
|
|
7737
|
+
"aria-label": "Has note"
|
|
7695
7738
|
})]
|
|
7696
7739
|
})]
|
|
7697
7740
|
})]
|