@common-origin/design-system 2.4.0 → 2.4.2

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/index.js CHANGED
@@ -889,7 +889,7 @@ var AvatarInitials = styled.span.withConfig({
889
889
  },
890
890
  displayName: "Avatar__AvatarInitials",
891
891
  componentId: "sc-ezn4ax-2"
892
- })(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: 1;\n text-transform: uppercase;\n user-select: none;\n"], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: 1;\n text-transform: uppercase;\n user-select: none;\n"
892
+ })(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: 1;\n text-transform: uppercase;\n user-select: none;\n"], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: 1;\n text-transform: uppercase;\n user-select: none;\n"
893
893
  // Helper function to get initials from name
894
894
  ])), tokensData.base.fontFamily.body, tokensData.base.fontWeight[3], function (_a) {
895
895
  var $size = _a.$size;
@@ -955,7 +955,7 @@ var Avatar = function Avatar(_a) {
955
955
  })
956
956
  }));
957
957
  };
958
- var templateObject_1$I, templateObject_2$t, templateObject_3$p;
958
+ var templateObject_1$I, templateObject_2$t, templateObject_3$q;
959
959
 
960
960
  var _a$5 = tokensData.semantic,
961
961
  typography$2 = _a$5.typography,
@@ -1105,7 +1105,7 @@ var BadgeIndicator = styled.span.withConfig({
1105
1105
  },
1106
1106
  displayName: "Badge__BadgeIndicator",
1107
1107
  componentId: "sc-tjz4pp-1"
1108
- })(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n display: ", ";\n align-items: center;\n justify-content: center;\n min-width: ", ";\n height: ", ";\n padding: ", ";\n border-radius: ", ";\n line-height: 1;\n white-space: nowrap;\n box-shadow: 0 0 0 2px ", ";\n animation: ", " 0.2s ease-out;\n \n ", "\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n display: ", ";\n align-items: center;\n justify-content: center;\n min-width: ", ";\n height: ", ";\n padding: ", ";\n border-radius: ", ";\n line-height: 1;\n white-space: nowrap;\n box-shadow: 0 0 0 2px ", ";\n animation: ", " 0.2s ease-out;\n \n ", "\n"])), function (props) {
1108
+ })(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n display: ", ";\n align-items: center;\n justify-content: center;\n min-width: ", ";\n height: ", ";\n padding: ", ";\n border-radius: ", ";\n line-height: 1;\n white-space: nowrap;\n box-shadow: 0 0 0 2px ", ";\n animation: ", " 0.2s ease-out;\n \n ", "\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n display: ", ";\n align-items: center;\n justify-content: center;\n min-width: ", ";\n height: ", ";\n padding: ", ";\n border-radius: ", ";\n line-height: 1;\n white-space: nowrap;\n box-shadow: 0 0 0 2px ", ";\n animation: ", " 0.2s ease-out;\n \n ", "\n"])), function (props) {
1109
1109
  return props.$isVisible ? 'flex' : 'none';
1110
1110
  }, function (props) {
1111
1111
  return props.$isDot ? '8px' : '16px';
@@ -1166,7 +1166,7 @@ var Badge = function Badge(_a) {
1166
1166
  })]
1167
1167
  });
1168
1168
  };
1169
- var templateObject_1$G, templateObject_2$s, templateObject_3$o, templateObject_4$j;
1169
+ var templateObject_1$G, templateObject_2$s, templateObject_3$p, templateObject_4$j;
1170
1170
 
1171
1171
  var StyledBox = styled.div.withConfig({
1172
1172
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -1181,7 +1181,7 @@ var StyledBox = styled.div.withConfig({
1181
1181
  }, function (props) {
1182
1182
  return props.$flexDirection && styled.css(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
1183
1183
  }, function (props) {
1184
- return props.$justifyContent && styled.css(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
1184
+ return props.$justifyContent && styled.css(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
1185
1185
  }, function (props) {
1186
1186
  return props.$alignItems && styled.css(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["align-items: ", ";"], ["align-items: ", ";"])), props.$alignItems);
1187
1187
  }, function (props) {
@@ -1401,7 +1401,7 @@ var BoxTransform = function BoxTransform(props) {
1401
1401
  }));
1402
1402
  };
1403
1403
  var Box = BoxTransform;
1404
- var templateObject_1$F, templateObject_2$r, templateObject_3$n, templateObject_4$i, templateObject_5$e, templateObject_6$c, templateObject_7$9, templateObject_8$5, templateObject_9$4, templateObject_10$3, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24$1, templateObject_25$1, templateObject_26$1, templateObject_27$1, templateObject_28$1, templateObject_29$1, templateObject_30$1, templateObject_31$1, templateObject_32$1, templateObject_33$1, templateObject_34$1, templateObject_35$1, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49;
1404
+ var templateObject_1$F, templateObject_2$r, templateObject_3$o, templateObject_4$i, templateObject_5$e, templateObject_6$c, templateObject_7$9, templateObject_8$5, templateObject_9$4, templateObject_10$3, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24$1, templateObject_25$1, templateObject_26$1, templateObject_27$1, templateObject_28$1, templateObject_29$1, templateObject_30$1, templateObject_31$1, templateObject_32$1, templateObject_33$1, templateObject_34$1, templateObject_35$1, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49;
1405
1405
 
1406
1406
  var add = {
1407
1407
  path: "M13 11H19V13H13V19H11V13H5V11H11V5H13V11Z",
@@ -1699,12 +1699,12 @@ var button = tokensData.component.button,
1699
1699
  // Base styles shared between button and link
1700
1700
  var baseButtonStyles = "\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ".concat(tokensData.semantic.spacing.layout.xs, ";\n height: max-content;\n cursor: pointer;\n border: none;\n text-decoration: none;\n transition: ").concat(semantic$f.motion.hover, ";\n white-space: nowrap;\n user-select: none;\n \n &:focus {\n outline: ").concat(button.focus.outline, ";\n outline-offset: ").concat(button.focus.outlineOffset, ";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n");
1701
1701
  // Dynamic variant styles using component tokens
1702
- var getVariantStyles = function getVariantStyles(_a) {
1702
+ var getVariantStyles$1 = function getVariantStyles(_a) {
1703
1703
  var $variant = _a.$variant;
1704
1704
  return "\n background-color: ".concat($variant === 'primary' ? button.primary.backgroundColor : $variant === 'secondary' ? button.variants.secondary.backgroundColor : button.variants.naked.backgroundColor, ";\n color: ").concat($variant === 'primary' ? button.primary.textColor : $variant === 'secondary' ? button.variants.secondary.textColor : button.variants.naked.textColor, ";\n \n &:hover:not(:disabled) {\n background-color: ").concat($variant === 'primary' ? button.hover.backgroundColor : $variant === 'secondary' ? button.variants.secondary.hover.backgroundColor : button.variants.naked.hover.backgroundColor, ";\n }\n\n &:active:not(:disabled) {\n background-color: ").concat($variant === 'primary' ? button.active.backgroundColor : $variant === 'secondary' ? button.variants.secondary.active.backgroundColor : button.variants.naked.active.backgroundColor, ";\n }\n\n &:disabled {\n background-color: ").concat($variant === 'primary' ? button.disabled.backgroundColor : $variant === 'secondary' ? button.variants.secondary.disabled.backgroundColor : button.variants.naked.disabled.backgroundColor, ";\n color: ").concat($variant === 'primary' ? button.disabled.textColor : $variant === 'secondary' ? button.variants.secondary.disabled.textColor : button.variants.naked.disabled.textColor, ";\n }\n");
1705
1705
  };
1706
1706
  // Dynamic size styles using component tokens
1707
- var getSizeStyles$2 = function getSizeStyles(_a) {
1707
+ var getSizeStyles$3 = function getSizeStyles(_a) {
1708
1708
  var $size = _a.$size;
1709
1709
  switch ($size) {
1710
1710
  case 'small':
@@ -1723,7 +1723,7 @@ var StyledButton = styled.button.withConfig({
1723
1723
  },
1724
1724
  displayName: "Button__StyledButton",
1725
1725
  componentId: "sc-1eiuum9-0"
1726
- })(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"])), baseButtonStyles, button.primary.borderRadius, getVariantStyles, getSizeStyles$2);
1726
+ })(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"])), baseButtonStyles, button.primary.borderRadius, getVariantStyles$1, getSizeStyles$3);
1727
1727
  var StyledLink = styled.a.withConfig({
1728
1728
  shouldForwardProp: function shouldForwardProp(prop) {
1729
1729
  return !prop.startsWith('$');
@@ -1732,7 +1732,7 @@ var StyledLink = styled.a.withConfig({
1732
1732
  componentId: "sc-1eiuum9-1"
1733
1733
  })(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"
1734
1734
  // Helper function to get icon size based on button size
1735
- ])), baseButtonStyles, button.primary.borderRadius, getVariantStyles, getSizeStyles$2);
1735
+ ])), baseButtonStyles, button.primary.borderRadius, getVariantStyles$1, getSizeStyles$3);
1736
1736
  // Helper function to get icon size based on button size
1737
1737
  var getIconSize = function getIconSize(buttonSize) {
1738
1738
  switch (buttonSize) {
@@ -1858,7 +1858,7 @@ var getColorStyles = function getColorStyles(color, variant) {
1858
1858
  borderColor: 'transparent'
1859
1859
  };
1860
1860
  };
1861
- var getSizeStyles$1 = function getSizeStyles(size) {
1861
+ var getSizeStyles$2 = function getSizeStyles(size) {
1862
1862
  if (size === 'small') {
1863
1863
  return {
1864
1864
  height: '24px',
@@ -1947,7 +1947,7 @@ var CategoryBadge = function CategoryBadge(_a) {
1947
1947
  var hasClickHandler = Boolean(onClick);
1948
1948
  var isClickable = hasClickHandler && !disabled;
1949
1949
  var colorStyles = getColorStyles(color, variant);
1950
- var sizeStyles = getSizeStyles$1(size);
1950
+ var sizeStyles = getSizeStyles$2(size);
1951
1951
  var cssProps = {
1952
1952
  '--category-badge-bg': colorStyles.backgroundColor,
1953
1953
  '--category-badge-color': colorStyles.color,
@@ -1996,66 +1996,56 @@ CategoryBadge.displayName = 'CategoryBadge';
1996
1996
  var templateObject_1$C;
1997
1997
 
1998
1998
  var chip = tokensData.component.chip;
1999
- // Helper function to get variant styles as objects for CSS custom properties
2000
- var getVariantStylesAsObject = function getVariantStylesAsObject(variant, selected) {
1999
+ // Helper function to get variant styles matching Button's approach
2000
+ var getVariantStyles = function getVariantStyles(_a) {
2001
+ var $variant = _a.$variant,
2002
+ $selected = _a.$selected;
2001
2003
  // Boolean chips with selected state get special background
2002
- if (selected) {
2003
- return {
2004
- backgroundColor: tokensData.semantic.color.background['interactive-subtle'],
2005
- color: chip["default"].textColor
2006
- };
2004
+ if ($selected) {
2005
+ return "\n background-color: ".concat(tokensData.semantic.color.background['interactive-subtle'], ";\n color: ").concat(chip["default"].textColor, ";\n ");
2007
2006
  }
2008
- switch (variant) {
2007
+ switch ($variant) {
2009
2008
  case 'emphasis':
2010
- return {
2011
- backgroundColor: chip.variants.emphasis.backgroundColor,
2012
- color: chip.variants.emphasis.textColor
2013
- };
2009
+ return "\n background-color: ".concat(chip.variants.emphasis.backgroundColor, ";\n color: ").concat(chip.variants.emphasis.textColor, ";\n ");
2014
2010
  case 'subtle':
2015
- return {
2016
- backgroundColor: chip.variants.subtle.backgroundColor,
2017
- color: chip.variants.subtle.textColor
2018
- };
2011
+ return "\n background-color: ".concat(chip.variants.subtle.backgroundColor, ";\n color: ").concat(chip.variants.subtle.textColor, ";\n ");
2019
2012
  case 'interactive':
2020
- return {
2021
- backgroundColor: chip.variants.interactive.backgroundColor,
2022
- color: chip.variants.interactive.textColor
2023
- };
2013
+ return "\n background-color: ".concat(chip.variants.interactive.backgroundColor, ";\n color: ").concat(chip.variants.interactive.textColor, ";\n ");
2024
2014
  case 'default':
2025
2015
  default:
2026
- return {
2027
- backgroundColor: chip["default"].backgroundColor,
2028
- color: chip["default"].textColor
2029
- };
2016
+ return "\n background-color: ".concat(chip["default"].backgroundColor, ";\n color: ").concat(chip["default"].textColor, ";\n ");
2030
2017
  }
2031
2018
  };
2032
- // Helper function to get size styles as objects for CSS custom properties
2033
- var getSizeStylesAsObject = function getSizeStylesAsObject(size) {
2034
- switch (size) {
2019
+ // Helper function to get size styles matching Button's approach
2020
+ var getSizeStyles$1 = function getSizeStyles(_a) {
2021
+ var $size = _a.$size;
2022
+ switch ($size) {
2035
2023
  case 'small':
2036
- return {
2037
- font: chip.sizes.small.font,
2038
- padding: chip.sizes.small.padding
2039
- };
2024
+ return "\n font: ".concat(chip.sizes.small.font, ";\n padding: ").concat(chip.sizes.small.padding, ";\n ");
2040
2025
  case 'medium':
2041
2026
  default:
2042
- return {
2043
- font: chip.sizes.medium.font,
2044
- padding: chip.sizes.medium.padding
2045
- };
2027
+ return "\n font: ".concat(chip.sizes.medium.font, ";\n padding: ").concat(chip.sizes.medium.padding, ";\n ");
2046
2028
  }
2047
2029
  };
2048
2030
 
2049
- // Base styled component using CSS variables to avoid prop leaking
2050
- var BaseChipStyled = styled.span.withConfig({
2031
+ // Base styled component using direct prop interpolation like Button
2032
+ var StyledChip = styled.span.withConfig({
2051
2033
  shouldForwardProp: function shouldForwardProp(prop) {
2052
2034
  return !prop.startsWith('$');
2053
2035
  },
2054
- displayName: "ChipBase__BaseChipStyled",
2036
+ displayName: "ChipBase__StyledChip",
2055
2037
  componentId: "sc-moa6zc-0"
2056
- })(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: 12px;\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: width ", ";\n \n /* Use CSS custom properties set by wrapper */\n background-color: var(--chip-bg-color);\n color: var(--chip-text-color);\n font: var(--chip-font);\n padding: var(--chip-padding);\n opacity: var(--chip-opacity, 1);\n cursor: var(--chip-cursor, default);\n \n &:hover {\n opacity: var(--chip-hover-opacity, var(--chip-opacity, 1));\n }\n \n &:active {\n opacity: var(--chip-active-opacity, var(--chip-opacity, 1));\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: 12px;\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: width ", ";\n \n /* Use CSS custom properties set by wrapper */\n background-color: var(--chip-bg-color);\n color: var(--chip-text-color);\n font: var(--chip-font);\n padding: var(--chip-padding);\n opacity: var(--chip-opacity, 1);\n cursor: var(--chip-cursor, default);\n \n &:hover {\n opacity: var(--chip-hover-opacity, var(--chip-opacity, 1));\n }\n \n &:active {\n opacity: var(--chip-active-opacity, var(--chip-opacity, 1));\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"
2038
+ })(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: 12px;\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: width ", ", background-color ", ";\n cursor: ", ";\n opacity: ", ";\n \n ", "\n ", "\n \n &:hover {\n opacity: ", ";\n }\n \n &:active {\n opacity: ", ";\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: 12px;\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: width ", ", background-color ", ";\n cursor: ", ";\n opacity: ", ";\n \n ", "\n ", "\n \n &:hover {\n opacity: ", ";\n }\n \n &:active {\n opacity: ", ";\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"
2057
2039
  // Icon container for selected indicator or leading icons
2058
- ])), tokensData.semantic.motion.interactive, chip.variants.interactive.backgroundColor);
2040
+ ])), tokensData.semantic.motion.interactive, tokensData.semantic.motion.hover, function (props) {
2041
+ return props.$disabled ? 'not-allowed' : props.$clickable ? 'pointer' : 'default';
2042
+ }, function (props) {
2043
+ return props.$disabled ? '0.6' : '1';
2044
+ }, getVariantStyles, getSizeStyles$1, function (props) {
2045
+ return props.$disabled ? '0.6' : props.$clickable ? '0.8' : '1';
2046
+ }, function (props) {
2047
+ return props.$disabled ? '0.6' : props.$clickable ? '0.9' : '1';
2048
+ }, chip.variants.interactive.backgroundColor);
2059
2049
  // Icon container for selected indicator or leading icons
2060
2050
  var IconContainer = styled.span.withConfig({
2061
2051
  displayName: "ChipBase__IconContainer",
@@ -2070,44 +2060,12 @@ var CloseButton = styled.button.withConfig({
2070
2060
  },
2071
2061
  displayName: "ChipBase__CloseButton",
2072
2062
  componentId: "sc-moa6zc-2"
2073
- })(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n padding: 0;\n cursor: ", ";\n opacity: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n opacity: 0.7;\n }\n \n &:active:not(:disabled) {\n opacity: 0.9;\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n border-radius: 2px;\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n padding: 0;\n cursor: ", ";\n opacity: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n opacity: 0.7;\n }\n \n &:active:not(:disabled) {\n opacity: 0.9;\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n border-radius: 2px;\n }\n"
2074
- // Wrapper component that applies styles via CSS custom properties
2075
- ])), tokensData.semantic.spacing.layout.sm, function (props) {
2063
+ })(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n padding: 0;\n cursor: ", ";\n opacity: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n opacity: 0.7;\n }\n \n &:active:not(:disabled) {\n opacity: 0.9;\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n border-radius: 2px;\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n padding: 0;\n cursor: ", ";\n opacity: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n opacity: 0.7;\n }\n \n &:active:not(:disabled) {\n opacity: 0.9;\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n border-radius: 2px;\n }\n"])), tokensData.semantic.spacing.layout.sm, function (props) {
2076
2064
  return props.$disabled ? 'not-allowed' : 'pointer';
2077
2065
  }, function (props) {
2078
2066
  return props.$disabled ? '0.6' : '1';
2079
2067
  }, tokensData.semantic.motion.transition.fast, chip.variants.interactive.backgroundColor);
2080
- // Wrapper component that applies styles via CSS custom properties
2081
- var StyledChipWrapper = function StyledChipWrapper(_a) {
2082
- var $variant = _a.$variant,
2083
- $size = _a.$size,
2084
- $disabled = _a.$disabled,
2085
- $clickable = _a.$clickable,
2086
- $selected = _a.$selected,
2087
- children = _a.children,
2088
- style = _a.style,
2089
- htmlProps = __rest(_a, ["$variant", "$size", "$disabled", "$clickable", "$selected", "children", "style"]);
2090
- // Get styles for variant and size
2091
- var variantStyles = getVariantStylesAsObject($variant, $selected);
2092
- var sizeStyles = getSizeStylesAsObject($size);
2093
- // Create CSS custom properties object
2094
- var cssProps = {
2095
- '--chip-bg-color': variantStyles.backgroundColor,
2096
- '--chip-text-color': variantStyles.color,
2097
- '--chip-font': sizeStyles.font,
2098
- '--chip-padding': sizeStyles.padding,
2099
- '--chip-opacity': $disabled ? '0.6' : '1',
2100
- '--chip-cursor': $disabled ? 'not-allowed' : $clickable ? 'pointer' : 'default',
2101
- '--chip-hover-opacity': $disabled ? '0.6' : $clickable ? '0.8' : '1',
2102
- '--chip-active-opacity': $disabled ? '0.6' : $clickable ? '0.9' : '1'
2103
- };
2104
- return jsxRuntime.jsx(BaseChipStyled, __assign({
2105
- style: __assign(__assign({}, cssProps), style)
2106
- }, htmlProps, {
2107
- children: children
2108
- }));
2109
- };
2110
- var templateObject_1$B, templateObject_2$p, templateObject_3$m;
2068
+ var templateObject_1$B, templateObject_2$p, templateObject_3$n;
2111
2069
 
2112
2070
  /**
2113
2071
  * Chip - Compact element for displaying tags, categories, and labels
@@ -2154,7 +2112,7 @@ var Chip = function Chip(_a) {
2154
2112
  handleClick();
2155
2113
  }
2156
2114
  };
2157
- return jsxRuntime.jsx(StyledChipWrapper, __assign({
2115
+ return jsxRuntime.jsx(StyledChip, __assign({
2158
2116
  "$variant": normalizedVariant,
2159
2117
  "$size": size,
2160
2118
  "$disabled": disabled || undefined,
@@ -2234,7 +2192,7 @@ var FilterChip = function FilterChip(_a) {
2234
2192
  };
2235
2193
  // Generate accessible label for close button
2236
2194
  var closeButtonLabel = typeof children === 'string' ? "Remove ".concat(children) : 'Remove filter';
2237
- return jsxRuntime.jsxs(StyledChipWrapper, __assign({
2195
+ return jsxRuntime.jsxs(StyledChip, __assign({
2238
2196
  "$variant": "subtle",
2239
2197
  "$size": size,
2240
2198
  "$disabled": disabled || undefined,
@@ -2308,7 +2266,7 @@ var BooleanChip = function BooleanChip(_a) {
2308
2266
  handleClick();
2309
2267
  }
2310
2268
  };
2311
- return jsxRuntime.jsxs(StyledChipWrapper, __assign({
2269
+ return jsxRuntime.jsxs(StyledChip, __assign({
2312
2270
  "$variant": "subtle",
2313
2271
  "$size": size,
2314
2272
  "$disabled": disabled || undefined,
@@ -2379,7 +2337,7 @@ var ImageLink = styled.a.withConfig({
2379
2337
  var ImageButton = styled.button.withConfig({
2380
2338
  displayName: "Picture__ImageButton",
2381
2339
  componentId: "sc-11d9tei-2"
2382
- })(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n border: none;\n background: none;\n padding: 0;\n cursor: pointer;\n display: block;\n width: 100%;\n transition: opacity ", " ", ";\n \n &:hover {\n opacity: 0.8;\n }\n"], ["\n border: none;\n background: none;\n padding: 0;\n cursor: pointer;\n display: block;\n width: 100%;\n transition: opacity ", " ", ";\n \n &:hover {\n opacity: 0.8;\n }\n"])), base$b.duration.normal, base$b.easing.easeInOut);
2340
+ })(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n border: none;\n background: none;\n padding: 0;\n cursor: pointer;\n display: block;\n width: 100%;\n transition: opacity ", " ", ";\n \n &:hover {\n opacity: 0.8;\n }\n"], ["\n border: none;\n background: none;\n padding: 0;\n cursor: pointer;\n display: block;\n width: 100%;\n transition: opacity ", " ", ";\n \n &:hover {\n opacity: 0.8;\n }\n"])), base$b.duration.normal, base$b.easing.easeInOut);
2383
2341
  var StyledImage = styled.img.withConfig({
2384
2342
  displayName: "Picture__StyledImage",
2385
2343
  componentId: "sc-11d9tei-3"
@@ -2413,7 +2371,7 @@ var Picture = function Picture(_a) {
2413
2371
  }) : image
2414
2372
  });
2415
2373
  };
2416
- var templateObject_1$z, templateObject_2$o, templateObject_3$l, templateObject_4$h;
2374
+ var templateObject_1$z, templateObject_2$o, templateObject_3$m, templateObject_4$h;
2417
2375
 
2418
2376
  var _a$4 = tokensData.semantic,
2419
2377
  typography$1 = _a$4.typography,
@@ -2708,7 +2666,7 @@ var ProgressBarContainer = styled.div.withConfig({
2708
2666
  },
2709
2667
  displayName: "ProgressBar__ProgressBarContainer",
2710
2668
  componentId: "sc-1nco33q-0"
2711
- })(templateObject_3$k || (templateObject_3$k = __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"])), tokensData.semantic.color.background.disabled, tokensData.base.border.radius[1], function (props) {
2669
+ })(templateObject_3$l || (templateObject_3$l = __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"])), tokensData.semantic.color.background.disabled, tokensData.base.border.radius[1], function (props) {
2712
2670
  return props.$variant === 'horizontal' && styled.css(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n "], ["\n width: 100%;\n height: ", ";\n "])), props.$height ? tokensData.component.progressBar.sizes[props.$height].height : tokensData.component.progressBar.sizes.md.height);
2713
2671
  }, function (props) {
2714
2672
  return props.$variant === 'vertical' && styled.css(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n "], ["\n width: ", ";\n height: 100%;\n "])), props.$width ? tokensData.component.progressBar.sizes[props.$width].height : tokensData.component.progressBar.sizes.md.height);
@@ -2764,7 +2722,7 @@ var ProgressBar = function ProgressBar(_a) {
2764
2722
  })
2765
2723
  });
2766
2724
  };
2767
- var templateObject_1$v, templateObject_2$n, templateObject_3$k, templateObject_4$g, templateObject_5$d, templateObject_6$b, templateObject_7$8;
2725
+ var templateObject_1$v, templateObject_2$n, templateObject_3$l, templateObject_4$g, templateObject_5$d, templateObject_6$b, templateObject_7$8;
2768
2726
 
2769
2727
  var StyledDivider$1 = styled.div.withConfig({
2770
2728
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -3009,7 +2967,7 @@ var StyledStatusBadge = styled.span.withConfig({
3009
2967
  var ScreenReaderOnly = styled.span.withConfig({
3010
2968
  displayName: "StatusBadge__ScreenReaderOnly",
3011
2969
  componentId: "sc-1paksgb-1"
3012
- })(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n"
2970
+ })(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n"
3013
2971
  /**
3014
2972
  * StatusBadge component for displaying transaction or task status
3015
2973
  *
@@ -3098,7 +3056,7 @@ var StatusBadge = function StatusBadge(_a) {
3098
3056
  });
3099
3057
  };
3100
3058
  StatusBadge.displayName = 'StatusBadge';
3101
- var templateObject_1$s, templateObject_2$m, templateObject_3$j;
3059
+ var templateObject_1$s, templateObject_2$m, templateObject_3$k;
3102
3060
 
3103
3061
  var semantic$c = tokensData.semantic;
3104
3062
  var StyledTag = styled.span.withConfig({
@@ -3203,7 +3161,7 @@ var StyledIconWrapper = styled.div.withConfig({
3203
3161
  var StyledBalanceSection = styled.div.withConfig({
3204
3162
  displayName: "AccountCard__StyledBalanceSection",
3205
3163
  componentId: "sc-1erp7zn-2"
3206
- })(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), tokensData.semantic.spacing.layout.lg);
3164
+ })(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), tokensData.semantic.spacing.layout.lg);
3207
3165
  var StyledTrendSection = styled.div.withConfig({
3208
3166
  displayName: "AccountCard__StyledTrendSection",
3209
3167
  componentId: "sc-1erp7zn-3"
@@ -3312,7 +3270,7 @@ var AccountCard = function AccountCard(_a) {
3312
3270
  })
3313
3271
  }), jsxRuntime.jsxs(Stack, {
3314
3272
  direction: "column",
3315
- gap: "xs",
3273
+ gap: "none",
3316
3274
  children: [jsxRuntime.jsx(Typography, {
3317
3275
  variant: "h4",
3318
3276
  children: accountName
@@ -3376,7 +3334,7 @@ var AccountCard = function AccountCard(_a) {
3376
3334
  })
3377
3335
  });
3378
3336
  };
3379
- var templateObject_1$q, templateObject_2$l, templateObject_3$i, templateObject_4$f, templateObject_5$c, templateObject_6$a;
3337
+ var templateObject_1$q, templateObject_2$l, templateObject_3$j, templateObject_4$f, templateObject_5$c, templateObject_6$a;
3380
3338
 
3381
3339
  var semantic$b = tokensData.semantic,
3382
3340
  base$9 = tokensData.base;
@@ -3385,7 +3343,7 @@ var fadeIn$1 = styled.keyframes(templateObject_2$k || (templateObject_2$k = __ma
3385
3343
  var StyledOverlay$1 = styled.div.withConfig({
3386
3344
  displayName: "ActionSheet__StyledOverlay",
3387
3345
  componentId: "sc-regbol-0"
3388
- })(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9999;\n animation: ", " 0.2s ease-out;\n"], ["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9999;\n animation: ", " 0.2s ease-out;\n"])), fadeIn$1);
3346
+ })(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9999;\n animation: ", " 0.2s ease-out;\n"], ["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9999;\n animation: ", " 0.2s ease-out;\n"])), fadeIn$1);
3389
3347
  var StyledActionSheet = styled.div.withConfig({
3390
3348
  displayName: "ActionSheet__StyledActionSheet",
3391
3349
  componentId: "sc-regbol-1"
@@ -3630,7 +3588,7 @@ var ActionSheet = function ActionSheet(_a) {
3630
3588
  })]
3631
3589
  }), document.body);
3632
3590
  };
3633
- var templateObject_1$p, templateObject_2$k, templateObject_3$h, templateObject_4$e, templateObject_5$b, templateObject_6$9, templateObject_7$7, templateObject_8$4, templateObject_9$3, templateObject_10$2;
3591
+ var templateObject_1$p, templateObject_2$k, templateObject_3$i, templateObject_4$e, templateObject_5$b, templateObject_6$9, templateObject_7$7, templateObject_8$4, templateObject_9$3, templateObject_10$2;
3634
3592
 
3635
3593
  var semantic$a = tokensData.semantic,
3636
3594
  base$8 = tokensData.base;
@@ -3694,7 +3652,7 @@ var StyledIconContainer$1 = styled.div.withConfig({
3694
3652
  var StyledContent$1 = styled.div.withConfig({
3695
3653
  displayName: "Alert__StyledContent",
3696
3654
  componentId: "sc-18tq5d-2"
3697
- })(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"])), semantic$a.spacing.layout.xs);
3655
+ })(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"])), semantic$a.spacing.layout.xs);
3698
3656
  var StyledTitle = styled.span.withConfig({
3699
3657
  displayName: "Alert__StyledTitle",
3700
3658
  componentId: "sc-18tq5d-3"
@@ -3778,9 +3736,9 @@ var Alert = function Alert(_a) {
3778
3736
  }));
3779
3737
  };
3780
3738
  Alert.displayName = 'Alert';
3781
- var templateObject_1$o, templateObject_2$j, templateObject_3$g, templateObject_4$d, templateObject_5$a, templateObject_6$8, templateObject_7$6;
3739
+ var templateObject_1$o, templateObject_2$j, templateObject_3$h, templateObject_4$d, templateObject_5$a, templateObject_6$8, templateObject_7$6;
3782
3740
 
3783
- var _a$3, _b$1, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
3741
+ var _a$3, _b$1, _c, _d, _e, _f;
3784
3742
  var BreadcrumbNavStyled = styled.nav.withConfig({
3785
3743
  displayName: "Breadcrumbs__BreadcrumbNavStyled",
3786
3744
  componentId: "sc-7ouzg5-0"
@@ -3788,7 +3746,11 @@ var BreadcrumbNavStyled = styled.nav.withConfig({
3788
3746
  var BreadcrumbStyled = styled.li.withConfig({
3789
3747
  displayName: "Breadcrumbs__BreadcrumbStyled",
3790
3748
  componentId: "sc-7ouzg5-1"
3791
- })(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n text-transform: uppercase;\n display: inline-block;\n margin-right: ", ";\n padding: ", ";\n position: relative;\n\n &:not(:last-of-type)::before {\n content: '';\n background-image: url('/assets/icons/caret.svg');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n background-color: transparent;\n opacity: 0.5;\n display: inline-block;\n width: ", ";\n height: ", ";\n right: -", ";\n position: absolute;\n }\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 180px;\n }\n\n > a {\n text-decoration: underline;\n color: ", ";\n }\n"], ["\n text-transform: uppercase;\n display: inline-block;\n margin-right: ", ";\n padding: ", ";\n position: relative;\n\n &:not(:last-of-type)::before {\n content: '';\n background-image: url('/assets/icons/caret.svg');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n background-color: transparent;\n opacity: 0.5;\n display: inline-block;\n width: ", ";\n height: ", ";\n right: -", ";\n position: absolute;\n }\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 180px;\n }\n\n > a {\n text-decoration: underline;\n color: ", ";\n }\n"])), ((_d = (_c = tokensData.base) === null || _c === void 0 ? void 0 : _c.spacing) === null || _d === void 0 ? void 0 : _d['2']) || '0.5rem', ((_f = (_e = tokensData.base) === null || _e === void 0 ? void 0 : _e.spacing) === null || _f === void 0 ? void 0 : _f['2']) || '0.5rem', ((_h = (_g = tokensData.base) === null || _g === void 0 ? void 0 : _g.spacing) === null || _h === void 0 ? void 0 : _h['4']) || '1rem', ((_k = (_j = tokensData.base) === null || _j === void 0 ? void 0 : _j.spacing) === null || _k === void 0 ? void 0 : _k['4']) || '1rem', ((_m = (_l = tokensData.base) === null || _l === void 0 ? void 0 : _l.spacing) === null || _m === void 0 ? void 0 : _m['3']) || '0.75rem', tokensData.semantic.color.text.subdued, tokensData.semantic.color.text["default"]);
3749
+ })(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n text-transform: uppercase;\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", ";\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 180px;\n }\n\n > a {\n display: inline-flex;\n align-items: center;\n text-decoration: underline;\n color: ", ";\n }\n"], ["\n text-transform: uppercase;\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", ";\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 180px;\n }\n\n > a {\n display: inline-flex;\n align-items: center;\n text-decoration: underline;\n color: ", ";\n }\n"])), ((_d = (_c = tokensData.base) === null || _c === void 0 ? void 0 : _c.spacing) === null || _d === void 0 ? void 0 : _d['2']) || '0.5rem', ((_f = (_e = tokensData.base) === null || _e === void 0 ? void 0 : _e.spacing) === null || _f === void 0 ? void 0 : _f['2']) || '0.5rem', tokensData.semantic.color.text.subdued, tokensData.semantic.color.text["default"]);
3750
+ var BreadcrumbSeparator = styled.span.withConfig({
3751
+ displayName: "Breadcrumbs__BreadcrumbSeparator",
3752
+ componentId: "sc-7ouzg5-2"
3753
+ })(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n opacity: 0.5;\n"], ["\n display: inline-flex;\n align-items: center;\n opacity: 0.5;\n"])));
3792
3754
  var isInternalUrl = function isInternalUrl(url) {
3793
3755
  return url.startsWith('/') && !url.startsWith('http');
3794
3756
  };
@@ -3800,34 +3762,43 @@ var Breadcrumbs = function Breadcrumbs(_a) {
3800
3762
  "aria-label": "breadcrumb",
3801
3763
  children: jsxRuntime.jsx("ol", {
3802
3764
  children: breadcrumbs.map(function (breadcrumb, index) {
3803
- return jsxRuntime.jsx(BreadcrumbStyled, {
3804
- children: index === breadcrumbs.length - 1 ? jsxRuntime.jsx(Typography, {
3805
- variant: "caption",
3806
- children: breadcrumb.label
3807
- }) : LinkComponent && isInternalUrl(breadcrumb.url) ? jsxRuntime.jsx(LinkComponent, {
3808
- href: breadcrumb.url,
3809
- children: jsxRuntime.jsx(Typography, {
3810
- variant: "caption",
3811
- children: breadcrumb.label
3812
- })
3813
- }) : jsxRuntime.jsx("a", __assign({
3814
- href: breadcrumb.url
3815
- }, !isInternalUrl(breadcrumb.url) && {
3816
- target: "_blank",
3817
- rel: "noopener noreferrer"
3818
- }, {
3819
- children: jsxRuntime.jsx(Typography, {
3765
+ return jsxRuntime.jsxs(React.Fragment, {
3766
+ children: [jsxRuntime.jsx(BreadcrumbStyled, {
3767
+ children: index === breadcrumbs.length - 1 ? jsxRuntime.jsx(Typography, {
3820
3768
  variant: "caption",
3821
3769
  children: breadcrumb.label
3770
+ }) : LinkComponent && isInternalUrl(breadcrumb.url) ? jsxRuntime.jsx(LinkComponent, {
3771
+ href: breadcrumb.url,
3772
+ children: jsxRuntime.jsx(Typography, {
3773
+ variant: "caption",
3774
+ children: breadcrumb.label
3775
+ })
3776
+ }) : jsxRuntime.jsx("a", __assign({
3777
+ href: breadcrumb.url
3778
+ }, !isInternalUrl(breadcrumb.url) && {
3779
+ target: "_blank",
3780
+ rel: "noopener noreferrer"
3781
+ }, {
3782
+ children: jsxRuntime.jsx(Typography, {
3783
+ variant: "caption",
3784
+ children: breadcrumb.label
3785
+ })
3786
+ }))
3787
+ }), index < breadcrumbs.length - 1 && jsxRuntime.jsx(BreadcrumbSeparator, {
3788
+ "aria-hidden": "true",
3789
+ children: jsxRuntime.jsx(Icon, {
3790
+ name: "arrowRight",
3791
+ size: "xs",
3792
+ iconColor: "subdued"
3822
3793
  })
3823
- }))
3794
+ })]
3824
3795
  }, index);
3825
3796
  })
3826
3797
  })
3827
3798
  })
3828
3799
  });
3829
3800
  };
3830
- var templateObject_1$n, templateObject_2$i;
3801
+ var templateObject_1$n, templateObject_2$i, templateObject_3$g;
3831
3802
 
3832
3803
  var CardSmallStyled = styled.div.withConfig({
3833
3804
  displayName: "CardSmall__CardSmallStyled",
@@ -4670,8 +4641,8 @@ var Dropdown = function Dropdown(_a) {
4670
4641
  focusedIndex = _e[0],
4671
4642
  setFocusedIndex = _e[1];
4672
4643
  var dropdownRef = React.useRef(null);
4673
- // Generate unique ID for accessibility
4674
- var dropdownId = React.useRef("dropdown-".concat(Math.random().toString(36).substr(2, 9))).current;
4644
+ // Generate unique ID for accessibility (SSR-safe)
4645
+ var dropdownId = React.useId();
4675
4646
  var selectedOption = options.find(function (option) {
4676
4647
  return option.id === value;
4677
4648
  });