@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.
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
- import React, { useState, useEffect, useRef, useId, useCallback, useMemo, forwardRef } from 'react';
3
+ import React, { useState, createContext, useContext, useEffect, useRef, useId, useCallback, useMemo, forwardRef } from 'react';
4
4
  import styled, { keyframes, css } from 'styled-components';
5
5
  import { t as tokensJson, i as iconsJson } from './data.esm.js';
6
6
  import { parseISO, format, isToday, isYesterday, isThisWeek } from 'date-fns';
@@ -400,7 +400,9 @@ var BadgeIndicator = styled.span.withConfig({
400
400
  return props.$isDot ? '0' : "0 ".concat(semantic$i.spacing.component.xs);
401
401
  }, 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) {
402
402
  switch (props.$variant) {
403
+ case 'accent':
403
404
  case 'primary':
405
+ // Deprecated alias for 'accent', removed in 3.0 (#169)
404
406
  return "\n background-color: ".concat(color$9.background.interactive, ";\n color: ").concat(color$9.text.inverse, ";\n ");
405
407
  case 'error':
406
408
  return "\n background-color: ".concat(color$9.background.error, ";\n color: ").concat(color$9.text.inverse, ";\n ");
@@ -548,7 +550,7 @@ var StyledBox = styled.div.withConfig({
548
550
  }, function (props) {
549
551
  return props.$transition && css(templateObject_42 || (templateObject_42 = __makeTemplateObject(["transition: ", ";"], ["transition: ", ";"])), props.$transition);
550
552
  }, function (props) {
551
- return (props.$hoverShadow || props.$hoverTransform) && 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: ", " solid ", ";\n outline-offset: ", ";\n }\n "], ["\n &:hover {\n ", "\n ", "\n }\n \n &:active {\n transform: translateY(0);\n }\n \n &:focus-visible {\n outline: ", " solid ", ";\n outline-offset: ", ";\n }\n "])), props.$hoverShadow && css(templateObject_43 || (templateObject_43 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), tokensJson.semantic.elevation[props.$hoverShadow]), props.$hoverTransform && css(templateObject_44 || (templateObject_44 = __makeTemplateObject(["transform: ", ";"], ["transform: ", ";"])), props.$hoverTransform), tokensJson.semantic.border.width.thick, tokensJson.semantic.color.border.interactive, tokensJson.semantic.border.focusOffset);
553
+ return (props.$hoverShadow || props.$hoverTransform) && 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 && css(templateObject_43 || (templateObject_43 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), tokensJson.semantic.elevation[props.$hoverShadow]), props.$hoverTransform && css(templateObject_44 || (templateObject_44 = __makeTemplateObject(["transform: ", ";"], ["transform: ", ";"])), props.$hoverTransform), tokensJson.semantic.border.focus, tokensJson.semantic.border.focusOffset);
552
554
  }, function (props) {
553
555
  return props.$overflow && css(templateObject_46 || (templateObject_46 = __makeTemplateObject(["overflow: ", ";"], ["overflow: ", ";"])), props.$overflow);
554
556
  }, function (props) {
@@ -735,7 +737,11 @@ var Icon = function Icon(_a) {
735
737
  size = _b === void 0 ? 'lg' : _b,
736
738
  _c = _a.iconColor,
737
739
  iconColor = _c === void 0 ? 'default' : _c,
740
+ ariaLabel = _a["aria-label"],
741
+ title = _a.title,
738
742
  dataTestId = _a["data-testid"];
743
+ // Decorative unless it's given a name. A blank name is no name, so the icon stays hidden
744
+ var label = (ariaLabel === null || ariaLabel === void 0 ? void 0 : ariaLabel.trim()) || (title === null || title === void 0 ? void 0 : title.trim()) || undefined;
739
745
  // Get the icon data from the JSON file
740
746
  var iconData = iconsJson[name];
741
747
  if (!iconData) {
@@ -750,16 +756,23 @@ var Icon = function Icon(_a) {
750
756
  "$size": size,
751
757
  "$iconColor": iconColor,
752
758
  "data-testid": dataTestId,
753
- children: jsx("svg", {
759
+ children: jsxs("svg", __assign({
754
760
  viewBox: "0 0 24 24",
755
761
  fill: "currentColor",
756
- xmlns: "http://www.w3.org/2000/svg",
757
- role: "img",
758
- "aria-label": iconData.name,
759
- children: jsx("path", {
762
+ xmlns: "http://www.w3.org/2000/svg"
763
+ }, label ? {
764
+ role: 'img',
765
+ 'aria-label': label
766
+ } : {
767
+ 'aria-hidden': true,
768
+ focusable: false
769
+ }, {
770
+ children: [(title === null || title === void 0 ? void 0 : title.trim()) && jsx("title", {
771
+ children: title
772
+ }), jsx("path", {
760
773
  d: iconData.path
761
- })
762
- })
774
+ })]
775
+ }))
763
776
  });
764
777
  };
765
778
  var templateObject_1$H;
@@ -1001,7 +1014,7 @@ var StyledCategoryLabel = styled.span.withConfig({
1001
1014
  var $color = _a.$color,
1002
1015
  $variant = _a.$variant;
1003
1016
  if ($variant === 'filled') {
1004
- return category["".concat($color, "-emphasis")];
1017
+ return category["".concat($color, "-strong")];
1005
1018
  }
1006
1019
  if ($variant === 'outlined') {
1007
1020
  return 'transparent';
@@ -1091,8 +1104,7 @@ var CategoryLabel = function CategoryLabel(_a) {
1091
1104
  children: [icon && jsx(Icon, {
1092
1105
  name: icon,
1093
1106
  size: iconSize,
1094
- iconColor: variant === 'filled' ? 'inverse' : 'inherit',
1095
- "aria-hidden": "true"
1107
+ iconColor: variant === 'filled' ? 'inverse' : 'inherit'
1096
1108
  }), children]
1097
1109
  }), accessibleLabel && jsx(HiddenLabel, {
1098
1110
  children: accessibleLabel
@@ -1537,12 +1549,9 @@ var DateFormatter = function DateFormatter(_a) {
1537
1549
  var date = parseISO(dateString);
1538
1550
  var displayText;
1539
1551
  switch (mode) {
1540
- case 'relative':
1541
- // Always use relative labels (Today/Yesterday) or fall back to day name
1542
- displayText = formatDateSmart(date, formatString);
1543
- break;
1552
+ case 'relative': // Deprecated alias for 'smart', removed in 3.0 (#82)
1544
1553
  case 'smart':
1545
- // Smart mode: relative for recent, absolute for older
1554
+ // Today, Yesterday or the day name for recent dates; formatted for older ones
1546
1555
  displayText = formatDateSmart(date, formatString);
1547
1556
  break;
1548
1557
  case 'absolute':
@@ -1784,14 +1793,18 @@ var MoneyDisplay = function MoneyDisplay(_a) {
1784
1793
  "$weight": weight,
1785
1794
  "aria-label": ariaLabel,
1786
1795
  "data-testid": dataTestId,
1787
- children: [showPositiveIcon && !showNegativeIcon && jsx(Icon, {
1796
+ children: [showPositiveIcon && !showNegativeIcon &&
1797
+ // The amount is shown without a sign, so the icon is the sign and needs a name (#85)
1798
+ jsx(Icon, {
1788
1799
  name: "addRing",
1789
1800
  size: iconSize,
1790
- iconColor: iconColor
1801
+ iconColor: iconColor,
1802
+ "aria-label": "Plus"
1791
1803
  }), showNegativeIcon && jsx(Icon, {
1792
1804
  name: "remove",
1793
1805
  size: iconSize,
1794
- iconColor: iconColor
1806
+ iconColor: iconColor,
1807
+ "aria-label": "Minus"
1795
1808
  }), jsx(Typography, {
1796
1809
  variant: typographyVariant,
1797
1810
  color: amountColor,
@@ -1818,7 +1831,7 @@ var ProgressBarContainer = styled.div.withConfig({
1818
1831
  },
1819
1832
  displayName: "ProgressBar__ProgressBarContainer",
1820
1833
  componentId: "sc-1nco33q-0"
1821
- })(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.disabled, radius$2.xs, function (props) {
1834
+ })(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) {
1822
1835
  return props.$variant === 'horizontal' && css(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n "], ["\n width: 100%;\n height: ", ";\n "])), props.$height ? component$2.progressBar.sizes[props.$height].height : component$2.progressBar.sizes.md.height);
1823
1836
  }, function (props) {
1824
1837
  return props.$variant === 'vertical' && css(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n "], ["\n width: ", ";\n height: 100%;\n "])), props.$width ? component$2.progressBar.sizes[props.$width].height : component$2.progressBar.sizes.md.height);
@@ -1840,7 +1853,8 @@ var ProgressBarFill = styled.div.withConfig({
1840
1853
  break;
1841
1854
  case 'default':
1842
1855
  default:
1843
- backgroundColor = color$6.background.interactive;
1856
+ // Near-black, like Slider's fill (decision 0029)
1857
+ backgroundColor = color$6.background.emphasis;
1844
1858
  break;
1845
1859
  }
1846
1860
  return css(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundColor);
@@ -2193,8 +2207,7 @@ var StatusLabelBase = function StatusLabelBase(_a) {
2193
2207
  children: [showIcon && jsx(Icon, {
2194
2208
  name: statusConfig.icon,
2195
2209
  size: sizeStyles.iconSize,
2196
- iconColor: "inherit",
2197
- "aria-hidden": "true"
2210
+ iconColor: "inherit"
2198
2211
  }), displayLabel, jsxs(ScreenReaderOnly, {
2199
2212
  children: [status, " status"]
2200
2213
  })]
@@ -2521,6 +2534,12 @@ var AccountCard = function AccountCard(_a) {
2521
2534
  };
2522
2535
  var templateObject_1$t, templateObject_2$o, templateObject_3$m, templateObject_4$i, templateObject_5$f;
2523
2536
 
2537
+ /**
2538
+ * The spacing a List gives its items (#77). A ListItem without its own `spacing` uses it; outside
2539
+ * a List it's `comfortable`. Internal: not exported from the package.
2540
+ */
2541
+ var ListSpacingContext = /*#__PURE__*/createContext('comfortable');
2542
+
2524
2543
  var semantic$b = tokensJson.semantic;
2525
2544
  var _a$5 = semantic$b.motion,
2526
2545
  duration$2 = _a$5.duration,
@@ -2548,7 +2567,7 @@ var StyledItemContent = styled.div.withConfig({
2548
2567
  },
2549
2568
  displayName: "ListItem__StyledItemContent",
2550
2569
  componentId: "sc-1wzzt21-1"
2551
- })(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: ", " solid ", ";\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: ", " solid ", ";\n outline-offset: ", ";\n }\n"])), semantic$b.spacing.layout.md, function (_a) {
2570
+ })(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\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) {
2552
2571
  var $spacing = _a.$spacing;
2553
2572
  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);
2554
2573
  }, semantic$b.border.radius.sm, function (_a) {
@@ -2565,7 +2584,7 @@ var StyledItemContent = styled.div.withConfig({
2565
2584
  $disabled = _a.$disabled,
2566
2585
  $selected = _a.$selected;
2567
2586
  return !$disabled && $interactive && "\n &:hover {\n background-color: ".concat($selected ? tokensJson.component.button.variants.secondary.backgroundColor : tokensJson.component.button.variants.secondary.backgroundColor, ";\n }\n \n &:active {\n background-color: ").concat(tokensJson.component.button.variants.naked.backgroundColor, ";\n }\n ");
2568
- }, semantic$b.border.width.thick, semantic$b.color.border.interactive, semantic$b.border.focusOffset);
2587
+ }, semantic$b.border.focus, semantic$b.border.focusOffset);
2569
2588
  var StyledIconContainer$1 = styled.div.withConfig({
2570
2589
  displayName: "ListItem__StyledIconContainer",
2571
2590
  componentId: "sc-1wzzt21-2"
@@ -2627,8 +2646,7 @@ var ListItem = function ListItem(_a) {
2627
2646
  selected = _f === void 0 ? false : _f,
2628
2647
  _g = _a.destructive,
2629
2648
  destructive = _g === void 0 ? false : _g,
2630
- _h = _a.spacing,
2631
- spacing = _h === void 0 ? 'comfortable' : _h,
2649
+ spacingProp = _a.spacing,
2632
2650
  children = _a.children,
2633
2651
  className = _a.className,
2634
2652
  dataTestId = _a["data-testid"],
@@ -2638,6 +2656,8 @@ var ListItem = function ListItem(_a) {
2638
2656
  customTabIndex = _a.tabIndex,
2639
2657
  customOnKeyDown = _a.onKeyDown,
2640
2658
  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"]);
2659
+ var listSpacing = useContext(ListSpacingContext);
2660
+ var spacing = spacingProp !== null && spacingProp !== void 0 ? spacingProp : listSpacing;
2641
2661
  var isInteractive = interactive || expandable || customRole === 'option';
2642
2662
  var contentRole = customRole === 'option' ? undefined : isInteractive ? 'button' : undefined;
2643
2663
  var ariaExpanded = expandable ? expanded : undefined;
@@ -2662,61 +2682,69 @@ var ListItem = function ListItem(_a) {
2662
2682
  handleClick();
2663
2683
  }
2664
2684
  };
2665
- return jsxs(StyledListItem, __assign({
2666
- "$interactive": isInteractive,
2667
- "$disabled": disabled,
2668
- "$selected": selected,
2669
- "$destructive": destructive,
2670
- "$spacing": spacing,
2671
- className: className,
2672
- "data-testid": dataTestId,
2673
- role: customRole || 'listitem',
2674
- id: id,
2675
- "aria-selected": ariaSelected
2676
- }, props, {
2677
- children: [jsxs(StyledItemContent, {
2678
- "$interactive": isInteractive,
2679
- "$disabled": disabled,
2680
- "$selected": selected,
2681
- "$destructive": destructive,
2682
- "$spacing": spacing,
2683
- role: contentRole,
2684
- "aria-expanded": ariaExpanded,
2685
- "aria-disabled": ariaDisabled,
2686
- "aria-current": ariaCurrent,
2687
- tabIndex: customTabIndex !== undefined ? customTabIndex : isInteractive && !disabled ? 0 : undefined,
2688
- onClick: handleClick,
2689
- onKeyDown: handleKeyDown,
2690
- children: [icon && jsx(StyledIconContainer$1, {
2691
- "aria-hidden": "true",
2692
- children: icon
2693
- }), jsxs(StyledTextContent, {
2694
- children: [jsx(Typography, {
2695
- variant: "body",
2696
- color: destructive ? 'error' : 'default',
2697
- children: primary
2698
- }), secondary && jsx(Typography, {
2699
- variant: "small",
2700
- color: "subdued",
2701
- children: secondary
2702
- })]
2703
- }), jsxs(StyledRightContent, {
2704
- children: [badge, expandable && jsx(StyledChevronIcon, {
2685
+ return (
2686
+ // The List's spacing is for its own items: reset it for this item's content, so components
2687
+ // built on ListItem (ActionSheet, even through its portal) and expanded content keep their own
2688
+ // density. A nested List provides its own spacing (#77)
2689
+ jsx(ListSpacingContext.Provider, {
2690
+ value: "comfortable",
2691
+ children: jsxs(StyledListItem, __assign({
2692
+ "$interactive": isInteractive,
2693
+ "$disabled": disabled,
2694
+ "$selected": selected,
2695
+ "$destructive": destructive,
2696
+ "$spacing": spacing,
2697
+ className: className,
2698
+ "data-testid": dataTestId,
2699
+ role: customRole || 'listitem',
2700
+ id: id,
2701
+ "aria-selected": ariaSelected
2702
+ }, props, {
2703
+ children: [jsxs(StyledItemContent, {
2704
+ "$interactive": isInteractive,
2705
+ "$disabled": disabled,
2706
+ "$selected": selected,
2707
+ "$destructive": destructive,
2708
+ "$spacing": spacing,
2709
+ role: contentRole,
2710
+ "aria-expanded": ariaExpanded,
2711
+ "aria-disabled": ariaDisabled,
2712
+ "aria-current": ariaCurrent,
2713
+ tabIndex: customTabIndex !== undefined ? customTabIndex : isInteractive && !disabled ? 0 : undefined,
2714
+ onClick: handleClick,
2715
+ onKeyDown: handleKeyDown,
2716
+ children: [icon && jsx(StyledIconContainer$1, {
2717
+ "aria-hidden": "true",
2718
+ children: icon
2719
+ }), jsxs(StyledTextContent, {
2720
+ children: [jsx(Typography, {
2721
+ variant: "body",
2722
+ color: destructive ? 'error' : 'default',
2723
+ children: primary
2724
+ }), secondary && jsx(Typography, {
2725
+ variant: "small",
2726
+ color: "subdued",
2727
+ children: secondary
2728
+ })]
2729
+ }), jsxs(StyledRightContent, {
2730
+ children: [badge, expandable && jsx(StyledChevronIcon, {
2731
+ "$expanded": expanded,
2732
+ "aria-hidden": "true",
2733
+ children: jsx(Icon, {
2734
+ name: "caretDown",
2735
+ size: "sm"
2736
+ })
2737
+ })]
2738
+ })]
2739
+ }), expandable && children && jsx(StyledExpandedContent, {
2740
+ "$spacing": spacing,
2705
2741
  "$expanded": expanded,
2706
- "aria-hidden": "true",
2707
- children: jsx(Icon, {
2708
- name: "caretDown",
2709
- size: "sm"
2710
- })
2742
+ "aria-hidden": !expanded,
2743
+ children: children
2711
2744
  })]
2712
- })]
2713
- }), expandable && children && jsx(StyledExpandedContent, {
2714
- "$spacing": spacing,
2715
- "$expanded": expanded,
2716
- "aria-hidden": !expanded,
2717
- children: children
2718
- })]
2719
- }));
2745
+ }))
2746
+ })
2747
+ );
2720
2748
  };
2721
2749
  ListItem.displayName = 'ListItem';
2722
2750
  var templateObject_1$s, templateObject_2$n, templateObject_3$l, templateObject_4$h, templateObject_5$e, templateObject_6$b, templateObject_7$9;
@@ -2800,7 +2828,7 @@ var StyledHeaderContent = styled.div.withConfig({
2800
2828
  var StyledCloseButton = styled.button.withConfig({
2801
2829
  displayName: "ActionSheet__StyledCloseButton",
2802
2830
  componentId: "sc-regbol-4"
2803
- })(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, layout$1.xs);
2831
+ })(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), 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);
2804
2832
  var StyledActionsList = styled.ul.withConfig({
2805
2833
  displayName: "ActionSheet__StyledActionsList",
2806
2834
  componentId: "sc-regbol-5"
@@ -4463,12 +4491,12 @@ var StyledCheckbox = styled.span.withConfig({
4463
4491
  return props.$checked || props.$indeterminate ? tokensJson.semantic.color.background.inverse : tokensJson.component.input["default"].backgroundColor;
4464
4492
  }, function (props) {
4465
4493
  if (props.$state === 'error') return tokensJson.component.input.error.borderColor;
4466
- if (props.$checked || props.$indeterminate) return tokensJson.semantic.border.strong;
4494
+ if (props.$checked || props.$indeterminate) return tokensJson.semantic.color.border.strong;
4467
4495
  return tokensJson.component.input["default"].borderColor;
4468
4496
  }, function (props) {
4469
4497
  return props.$state === 'disabled' ? 'not-allowed' : 'pointer';
4470
4498
  }, tokensJson.semantic.motion.duration.fast, tokensJson.semantic.motion.easing.easeOut, HiddenCheckboxInput, function (props) {
4471
- return props.$state === 'error' ? tokensJson.component.input.error.hover.borderColor : props.$checked || props.$indeterminate ? tokensJson.semantic.border.strong : tokensJson.component.input.hover.borderColor;
4499
+ return props.$state === 'error' ? tokensJson.component.input.error.hover.borderColor : props.$checked || props.$indeterminate ? tokensJson.semantic.color.border.strong : tokensJson.component.input.hover.borderColor;
4472
4500
  }, HiddenCheckboxInput, tokensJson.component.input.focus.outline, tokensJson.semantic.border.focusOffset, function (props) {
4473
4501
  return props.$state === 'error' ? tokensJson.component.input.error.focus.borderColor : tokensJson.component.input.focus.borderColor;
4474
4502
  }, function (props) {
@@ -4671,7 +4699,7 @@ var _a$2 = tokensJson.semantic,
4671
4699
  var StyledCodeBlock = styled.pre.withConfig({
4672
4700
  displayName: "CodeBlock__StyledCodeBlock",
4673
4701
  componentId: "sc-1p1t0kp-0"
4674
- })(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, tokensJson.semantic.border.radius.sm, spacing$2.layout.md, tokensJson.component.codeBlock.fontFamily, tokensJson.component.codeBlock.fontSize, tokensJson.component.codeBlock.lineHeight, color$2.text["default"], function (_a) {
4702
+ })(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n\n /* The block is focusable so keyboard users can scroll it; it shows the system focus ring\n (decision 0029) */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height ", " ", ";\n\n ", " {\n transition: none;\n }\n \n ", "\n\n /* The block is focusable so keyboard users can scroll it; it shows the system focus ring\n (decision 0029) */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), color$2.background.subtle, border$3.subtle, tokensJson.semantic.border.radius.sm, spacing$2.layout.md, tokensJson.component.codeBlock.fontFamily, tokensJson.component.codeBlock.fontSize, tokensJson.component.codeBlock.lineHeight, color$2.text["default"], function (_a) {
4675
4703
  var $isExpanded = _a.$isExpanded,
4676
4704
  $needsExpansion = _a.$needsExpansion;
4677
4705
  return $needsExpansion && !$isExpanded ? 'hidden' : 'auto';
@@ -4683,7 +4711,7 @@ var StyledCodeBlock = styled.pre.withConfig({
4683
4711
  // Use a large value when expanded to allow smooth transition
4684
4712
  // 10000px is effectively "no limit" for most code blocks
4685
4713
  return $isExpanded ? 'max-height: 10000px;' : "max-height: ".concat($maxHeight, "px;");
4686
- });
4714
+ }, border$3.focus, border$3.focusOffset);
4687
4715
  var CodeBlockWrapper = styled.div.withConfig({
4688
4716
  displayName: "CodeBlock__CodeBlockWrapper",
4689
4717
  componentId: "sc-1p1t0kp-1"
@@ -5248,13 +5276,30 @@ var DropdownOption = styled.button.withConfig({
5248
5276
  },
5249
5277
  displayName: "Dropdown__DropdownOption",
5250
5278
  componentId: "sc-kz07c4-4"
5251
- })(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n width: 100%;\n display: block;\n padding: ", " ", ";\n background-color: ", ";\n border: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n \n &:hover {\n background-color: ", ";\n }\n \n &:focus {\n outline: none;\n background-color: ", ";\n }\n \n &:not(:last-child) {\n border-bottom: ", ";\n }\n"], ["\n width: 100%;\n display: block;\n padding: ", " ", ";\n background-color: ", ";\n border: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color ", " ", ";\n \n &:hover {\n background-color: ", ";\n }\n \n &:focus {\n outline: none;\n background-color: ", ";\n }\n \n &:not(:last-child) {\n border-bottom: ", ";\n }\n"])), input$1["default"].paddingY, controlPaddingX, function (_a) {
5279
+ })(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n 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) {
5252
5280
  var $isSelected = _a.$isSelected,
5253
5281
  $isFocused = _a.$isFocused;
5282
+ if ($isSelected) return $isFocused ? color$1.background['interactive-subtle-hover'] : color$1.background['interactive-subtle'];
5254
5283
  if ($isFocused) return color$1.background.surface;
5255
- if ($isSelected) return color$1.background.surface;
5256
5284
  return 'transparent';
5257
- }, input$1["default"].font, input$1["default"].textColor, duration.fast, easing.easeOut, color$1.background.surface, color$1.background.surface, border$1.subtle);
5285
+ }, input$1["default"].font, function (_a) {
5286
+ var $isSelected = _a.$isSelected,
5287
+ $isFocused = _a.$isFocused;
5288
+ if ($isSelected) return $isFocused ? color$1.text['interactive-hover'] : color$1.text.interactive;
5289
+ return input$1["default"].textColor;
5290
+ }, duration.fast, easing.easeOut, duration.fast, easing.easeOut, function (_a) {
5291
+ var $isSelected = _a.$isSelected;
5292
+ return $isSelected ? color$1.background['interactive-subtle-hover'] : color$1.background.surface;
5293
+ }, function (_a) {
5294
+ var $isSelected = _a.$isSelected;
5295
+ return $isSelected ? color$1.text['interactive-hover'] : input$1["default"].textColor;
5296
+ }, function (_a) {
5297
+ var $isSelected = _a.$isSelected;
5298
+ return $isSelected ? color$1.background['interactive-subtle-active'] : color$1.background.neutral;
5299
+ }, function (_a) {
5300
+ var $isSelected = _a.$isSelected;
5301
+ return $isSelected ? color$1.text['interactive-active'] : input$1["default"].textColor;
5302
+ }, border$1.subtle);
5258
5303
  var StyledHelperText$3 = styled.div.withConfig({
5259
5304
  displayName: "Dropdown__StyledHelperText",
5260
5305
  componentId: "sc-kz07c4-5"
@@ -5414,7 +5459,7 @@ var Dropdown = function Dropdown(_a) {
5414
5459
  role: "listbox",
5415
5460
  "aria-labelledby": dropdownId,
5416
5461
  children: options.map(function (option, index) {
5417
- return jsx(DropdownOption, {
5462
+ return jsxs(DropdownOption, {
5418
5463
  "$isSelected": option.id === value,
5419
5464
  "$isFocused": index === focusedIndex,
5420
5465
  onClick: function onClick() {
@@ -5422,7 +5467,11 @@ var Dropdown = function Dropdown(_a) {
5422
5467
  },
5423
5468
  role: "option",
5424
5469
  "aria-selected": option.id === value,
5425
- children: option.label
5470
+ children: [option.label, option.id === value && jsx(Icon, {
5471
+ name: "check",
5472
+ size: "sm",
5473
+ iconColor: "inherit"
5474
+ })]
5426
5475
  }, option.id);
5427
5476
  })
5428
5477
  }), error && jsx(StyledHelperText$3, {
@@ -5459,15 +5508,17 @@ var List = function List(_a) {
5459
5508
  className = _a.className,
5460
5509
  dataTestId = _a["data-testid"],
5461
5510
  props = __rest(_a, ["children", "dividers", "spacing", "className", 'data-testid']);
5462
- return jsx(StyledList, __assign({
5463
- "$dividers": dividers,
5464
- "$spacing": spacing,
5465
- className: className,
5466
- "data-testid": dataTestId,
5467
- role: "list"
5468
- }, props, {
5469
- children: children
5470
- }));
5511
+ return jsx(ListSpacingContext.Provider, {
5512
+ value: spacing,
5513
+ children: jsx(StyledList, __assign({
5514
+ "$dividers": dividers,
5515
+ className: className,
5516
+ "data-testid": dataTestId,
5517
+ role: "list"
5518
+ }, props, {
5519
+ children: children
5520
+ }))
5521
+ });
5471
5522
  };
5472
5523
  List.displayName = 'List';
5473
5524
  var templateObject_1$c;
@@ -6233,7 +6284,7 @@ var StyledInput = styled.input.withConfig({
6233
6284
  var StyledSuggestionsList = styled.ul.withConfig({
6234
6285
  displayName: "SearchField__StyledSuggestionsList",
6235
6286
  componentId: "sc-qhz9i8-3"
6236
- })(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, 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);
6287
+ })(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n\n /* The highlighted suggestion has keyboard focus, which is grey, not the light-blue selected\n treatment (decision 0029). Its row is the option's first child */\n & > [data-highlighted] > :first-child {\n background-color: ", ";\n }\n"], ["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: ", ";\n overflow-y: auto;\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n list-style: none;\n padding: ", " 0;\n margin: 0;\n z-index: ", ";\n\n /* The highlighted suggestion has keyboard focus, which is grey, not the light-blue selected\n treatment (decision 0029). Its row is the option's first child */\n & > [data-highlighted] > :first-child {\n background-color: ", ";\n }\n"])), semantic$3.spacing.layout.xs, 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);
6237
6288
  var StyledSectionHeader = styled.div.withConfig({
6238
6289
  displayName: "SearchField__StyledSectionHeader",
6239
6290
  componentId: "sc-qhz9i8-4"
@@ -6456,8 +6507,7 @@ var SearchField = /*#__PURE__*/forwardRef(function (_a, ref) {
6456
6507
  children: [jsx(Icon, {
6457
6508
  name: "search",
6458
6509
  size: "sm",
6459
- iconColor: "subdued",
6460
- "aria-hidden": "true"
6510
+ iconColor: "subdued"
6461
6511
  }), jsx(StyledInput, __assign({
6462
6512
  ref: inputRef,
6463
6513
  type: "text",
@@ -6523,11 +6573,10 @@ var SearchField = /*#__PURE__*/forwardRef(function (_a, ref) {
6523
6573
  secondary: description,
6524
6574
  icon: item.type === 'recent' ? jsx(Icon, {
6525
6575
  name: "refresh",
6526
- size: "xs",
6527
- "aria-hidden": "true"
6576
+ size: "xs"
6528
6577
  }) : undefined,
6529
6578
  interactive: true,
6530
- selected: index === highlightedIndex,
6579
+ "data-highlighted": index === highlightedIndex || undefined,
6531
6580
  spacing: "compact",
6532
6581
  onClick: function onClick() {
6533
6582
  return handleSuggestionClick(item);
@@ -6807,7 +6856,7 @@ var StyledTrackFill = styled.div.withConfig({
6807
6856
  var StyledThumb = styled.div.withConfig({
6808
6857
  displayName: "Slider__StyledThumb",
6809
6858
  componentId: "sc-6mh2d4-5"
6810
- })(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: ", " solid ", ";\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: ", " solid ", ";\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) {
6859
+ })(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n position: absolute;\n width: ", ";\n height: ", ";\n top: -", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n cursor: ", ";\n transform: translateX(-50%);\n transition: ", ";\n box-shadow: ", ";\n\n ", " {\n transition: none;\n }\n \n &:hover:not([aria-disabled=\"true\"]) {\n transform: translateX(-50%) scale(1.1);\n box-shadow: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:active:not([aria-disabled=\"true\"]) {\n cursor: grabbing;\n transform: translateX(-50%) scale(0.95);\n }\n \n ", "\n"], ["\n position: absolute;\n width: ", ";\n height: ", ";\n top: -", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n cursor: ", ";\n transform: translateX(-50%);\n transition: ", ";\n box-shadow: ", ";\n\n ", " {\n transition: none;\n }\n \n &:hover:not([aria-disabled=\"true\"]) {\n transform: translateX(-50%) scale(1.1);\n box-shadow: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:active:not([aria-disabled=\"true\"]) {\n cursor: grabbing;\n transform: translateX(-50%) scale(0.95);\n }\n \n ", "\n"])), semantic$1.spacing.layout.xl, semantic$1.spacing.layout.xl, semantic$1.spacing.layout.sm, function (_a) {
6811
6860
  var $disabled = _a.$disabled;
6812
6861
  return $disabled ? semantic$1.color.background.disabled : semantic$1.color.background.subtle;
6813
6862
  }, semantic$1.border.width.thick, function (_a) {
@@ -6816,7 +6865,7 @@ var StyledThumb = styled.div.withConfig({
6816
6865
  }, semantic$1.border.radius.circle, function (_a) {
6817
6866
  var $disabled = _a.$disabled;
6818
6867
  return $disabled ? 'not-allowed' : 'grab';
6819
- }, semantic$1.motion.transition.fast, tokensJson.component.slider.thumb.shadow["default"], reducedMotion, tokensJson.component.slider.thumb.shadow.hover, semantic$1.border.width.thick, semantic$1.color.border.interactive, semantic$1.spacing.layout.xs, function (_a) {
6868
+ }, semantic$1.motion.transition.fast, tokensJson.component.slider.thumb.shadow["default"], reducedMotion, tokensJson.component.slider.thumb.shadow.hover, semantic$1.border.focus, semantic$1.border.focusOffset, function (_a) {
6820
6869
  var $active = _a.$active;
6821
6870
  return $active && "\n transform: translateX(-50%) scale(1.1);\n box-shadow: ".concat(tokensJson.component.slider.thumb.shadow.active, ";\n ");
6822
6871
  });
@@ -7187,7 +7236,7 @@ var StyledTab = styled.button.withConfig({
7187
7236
  },
7188
7237
  displayName: "TabBar__StyledTab",
7189
7238
  componentId: "sc-1g9ib0y-1"
7190
- })(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: ", " solid ", ";\n outline-offset: ", ";\n z-index: 1;\n }\n \n /* Pressed nudge */\n &:active:not(:disabled) {\n transform: translateY(1px);\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: ", " solid ", ";\n outline-offset: ", ";\n z-index: 1;\n }\n \n /* Pressed nudge */\n &:active:not(:disabled) {\n transform: translateY(1px);\n }\n"])), semantic.spacing.layout.sm, semantic.spacing.layout.md, semantic.spacing.layout.lg, semantic.typography.button2, function (props) {
7239
+ })(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n font: ", ";\n white-space: nowrap;\n cursor: ", ";\n border: none;\n background: transparent;\n transition: ", ";\n position: relative;\n \n /* Selected tab: the light-blue selected treatment plus a blue underline (decisions 0016, 0020).\n The text darkens with the fill on hover and press so every state stays at least 4.5:1. */\n border-radius: ", " ", " 0 0;\n background-color: ", ";\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n bottom: -1px;\n left: 0;\n right: 0;\n height: ", ";\n background-color: ", ";\n transition: ", ";\n }\n\n &:hover:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n /* Disabled state */\n opacity: ", ";\n \n /* Focus state */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n z-index: 1;\n }\n\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n font: ", ";\n white-space: nowrap;\n cursor: ", ";\n border: none;\n background: transparent;\n transition: ", ";\n position: relative;\n \n /* Selected tab: the light-blue selected treatment plus a blue underline (decisions 0016, 0020).\n The text darkens with the fill on hover and press so every state stays at least 4.5:1. */\n border-radius: ", " ", " 0 0;\n background-color: ", ";\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n bottom: -1px;\n left: 0;\n right: 0;\n height: ", ";\n background-color: ", ";\n transition: ", ";\n }\n\n &:hover:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n color: ", ";\n }\n\n /* Disabled state */\n opacity: ", ";\n \n /* Focus state */\n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n z-index: 1;\n }\n\n"])), semantic.spacing.layout.sm, semantic.spacing.layout.md, semantic.spacing.layout.lg, semantic.typography.button2, function (props) {
7191
7240
  return props.$disabled ? 'not-allowed' : 'pointer';
7192
7241
  }, semantic.motion.hover, semantic.border.radius.sm, semantic.border.radius.sm, function (props) {
7193
7242
  return props.$isActive ? semantic.color.background['interactive-subtle'] : 'transparent';
@@ -7205,7 +7254,7 @@ var StyledTab = styled.button.withConfig({
7205
7254
  return props.$isActive ? semantic.color.text['interactive-active'] : semantic.color.text["default"];
7206
7255
  }, function (props) {
7207
7256
  return props.$disabled ? '0.5' : '1';
7208
- }, semantic.border.width.thick, semantic.color.border.strong, semantic.spacing.layout.xs);
7257
+ }, semantic.border.focus, semantic.border.focusOffset);
7209
7258
  var StyledBadge = styled.span.withConfig({
7210
7259
  displayName: "TabBar__StyledBadge",
7211
7260
  componentId: "sc-1g9ib0y-2"
@@ -7485,7 +7534,7 @@ var StyledContainer = styled.div.withConfig({
7485
7534
  componentId: "sc-7yunm0-0"
7486
7535
  })(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n ", "\n"], ["\n display: flex;\n align-items: center;\n min-height: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: ", " solid ", ";\n gap: ", ";\n transition: background-color ", " ", ";\n \n ", "\n"])), tokensJson.component.transactionListItem.minHeight, tokensJson.semantic.spacing.layout.md, tokensJson.semantic.spacing.layout.md, tokensJson.semantic.color.background["default"], tokensJson.semantic.border.width.thin, tokensJson.semantic.color.border["default"], tokensJson.semantic.spacing.layout.md, tokensJson.semantic.motion.duration.normal, tokensJson.semantic.motion.easing.easeOut, function (_a) {
7487
7536
  var $clickable = _a.$clickable;
7488
- return $clickable && "\n cursor: pointer;\n \n &:hover {\n background-color: ".concat(tokensJson.semantic.color.background.subtle, ";\n }\n \n &:active {\n background-color: ").concat(tokensJson.semantic.color.background['interactive-active'], ";\n }\n \n &:focus-visible {\n outline: ").concat(tokensJson.semantic.border.width.thick, " solid ").concat(tokensJson.semantic.color.border.interactive, ";\n outline-offset: calc(-1 * ").concat(tokensJson.semantic.border.focusOffset, ");\n }\n ");
7537
+ return $clickable && "\n cursor: pointer;\n \n &:hover {\n background-color: ".concat(tokensJson.semantic.color.background.subtle, ";\n }\n \n &:active {\n background-color: ").concat(tokensJson.semantic.color.background['interactive-active'], ";\n }\n \n &:focus-visible {\n outline: ").concat(tokensJson.semantic.border.focus, ";\n outline-offset: calc(-1 * ").concat(tokensJson.semantic.border.focusOffset, ");\n }\n ");
7489
7538
  });
7490
7539
  var StyledAvatarSection = styled.div.withConfig({
7491
7540
  displayName: "TransactionListItem__StyledAvatarSection",
@@ -7671,20 +7720,14 @@ var TransactionListItem = function TransactionListItem(_a) {
7671
7720
  })
7672
7721
  })]
7673
7722
  }), (hasReceipt || hasNote) && jsxs(StyledIconIndicator, {
7674
- children: [hasReceipt && jsx("span", {
7675
- "aria-label": "Has receipt",
7676
- role: "img",
7677
- children: jsx(Icon, {
7678
- name: "fileDocSearch",
7679
- size: "xs"
7680
- })
7681
- }), hasNote && jsx("span", {
7682
- "aria-label": "Has note",
7683
- role: "img",
7684
- children: jsx(Icon, {
7685
- name: "paper",
7686
- size: "xs"
7687
- })
7723
+ children: [hasReceipt && jsx(Icon, {
7724
+ name: "fileDocSearch",
7725
+ size: "xs",
7726
+ "aria-label": "Has receipt"
7727
+ }), hasNote && jsx(Icon, {
7728
+ name: "paper",
7729
+ size: "xs",
7730
+ "aria-label": "Has note"
7688
7731
  })]
7689
7732
  })]
7690
7733
  })]