@common-origin/design-system 2.3.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.esm.js CHANGED
@@ -1,18 +1,9 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
1
2
  import React, { useState, useRef, useEffect, forwardRef, useId, useCallback, useMemo } from 'react';
2
3
  import styled, { keyframes, css } from 'styled-components';
3
4
  import { parseISO, format, isToday, isYesterday, isThisWeek } from 'date-fns';
4
5
  import { createPortal } from 'react-dom';
5
6
 
6
- function _extends() {
7
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
8
- for (var e = 1; e < arguments.length; e++) {
9
- var t = arguments[e];
10
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
11
- }
12
- return n;
13
- }, _extends.apply(null, arguments);
14
- }
15
-
16
7
  /******************************************************************************
17
8
  Copyright (c) Microsoft Corporation.
18
9
 
@@ -416,7 +407,7 @@ var base$d = {
416
407
  },
417
408
  $ref: "./base/index.json"
418
409
  };
419
- var component = {
410
+ var component$1 = {
420
411
  button: {
421
412
  primary: {
422
413
  backgroundColor: "#212529",
@@ -866,11 +857,10 @@ var semantic$g = {
866
857
  };
867
858
  var tokensData = {
868
859
  base: base$d,
869
- component: component,
860
+ component: component$1,
870
861
  semantic: semantic$g
871
862
  };
872
863
 
873
- React.createElement;
874
864
  var AvatarContainer = styled.div.withConfig({
875
865
  shouldForwardProp: function shouldForwardProp(prop) {
876
866
  return !prop.startsWith('$');
@@ -897,7 +887,7 @@ var AvatarInitials = styled.span.withConfig({
897
887
  },
898
888
  displayName: "Avatar__AvatarInitials",
899
889
  componentId: "sc-ezn4ax-2"
900
- })(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"
890
+ })(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"
901
891
  // Helper function to get initials from name
902
892
  ])), tokensData.base.fontFamily.body, tokensData.base.fontWeight[3], function (_a) {
903
893
  var $size = _a.$size;
@@ -941,28 +931,30 @@ var Avatar = function Avatar(_a) {
941
931
  };
942
932
  var showImage = picture && !imageError;
943
933
  var initials = getInitials(name);
944
- return /*#__PURE__*/React.createElement(AvatarContainer, _extends({
945
- $size: size,
934
+ return jsx(AvatarContainer, __assign({
935
+ "$size": size,
946
936
  "data-testid": dataTestId,
947
937
  "data-size": size,
948
938
  role: "img",
949
939
  "aria-label": "Avatar for ".concat(name)
950
- }, htmlProps), showImage ? /*#__PURE__*/React.createElement(AvatarImage, {
951
- $size: size,
952
- src: picture,
953
- alt: "Avatar of ".concat(name),
954
- onError: handleImageError,
955
- onLoad: handleImageLoad,
956
- "data-state": imageLoaded ? 'loaded' : 'loading'
957
- }) : /*#__PURE__*/React.createElement(AvatarInitials, {
958
- $size: size,
959
- "data-initials": initials,
960
- "aria-hidden": "true"
961
- }, initials));
940
+ }, htmlProps, {
941
+ children: showImage ? jsx(AvatarImage, {
942
+ "$size": size,
943
+ src: picture,
944
+ alt: "Avatar of ".concat(name),
945
+ onError: handleImageError,
946
+ onLoad: handleImageLoad,
947
+ "data-state": imageLoaded ? 'loaded' : 'loading'
948
+ }) : jsx(AvatarInitials, {
949
+ "$size": size,
950
+ "data-initials": initials,
951
+ "aria-hidden": "true",
952
+ children: initials
953
+ })
954
+ }));
962
955
  };
963
- var templateObject_1$I, templateObject_2$t, templateObject_3$p;
956
+ var templateObject_1$I, templateObject_2$t, templateObject_3$q;
964
957
 
965
- React.createElement;
966
958
  var _a$5 = tokensData.semantic,
967
959
  typography$2 = _a$5.typography,
968
960
  color$4 = _a$5.color;
@@ -1088,16 +1080,16 @@ var Typography = function Typography(_a) {
1088
1080
  // $variant and $color are only used for styled-components prop filtering
1089
1081
  var defaultElement = getDefaultElement(variant);
1090
1082
  var elementType = as || defaultElement;
1091
- return /*#__PURE__*/React.createElement(StyledTypography, {
1083
+ return jsx(StyledTypography, {
1092
1084
  as: elementType,
1093
- $variant: variant,
1094
- $color: color,
1095
- "data-testid": dataTestId
1096
- }, children);
1085
+ "$variant": variant,
1086
+ "$color": color,
1087
+ "data-testid": dataTestId,
1088
+ children: children
1089
+ });
1097
1090
  };
1098
1091
  var templateObject_1$H;
1099
1092
 
1100
- React.createElement;
1101
1093
  var color$3 = tokensData.semantic.color;
1102
1094
  tokensData.base.shadow;
1103
1095
  var scaleIn$1 = keyframes(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n from {\n transform: scale(0.8);\n opacity: 0;\n }\n to {\n transform: scale(1);\n opacity: 1;\n }\n"], ["\n from {\n transform: scale(0.8);\n opacity: 0;\n }\n to {\n transform: scale(1);\n opacity: 1;\n }\n"])));
@@ -1111,7 +1103,7 @@ var BadgeIndicator = styled.span.withConfig({
1111
1103
  },
1112
1104
  displayName: "Badge__BadgeIndicator",
1113
1105
  componentId: "sc-tjz4pp-1"
1114
- })(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) {
1106
+ })(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) {
1115
1107
  return props.$isVisible ? 'flex' : 'none';
1116
1108
  }, function (props) {
1117
1109
  return props.$isDot ? '8px' : '16px';
@@ -1154,46 +1146,50 @@ var Badge = function Badge(_a) {
1154
1146
  // Generate default aria-label if not provided
1155
1147
  var defaultAriaLabel = dot ? 'New notification indicator' : count === 1 ? '1 notification' : "".concat(count, " notifications");
1156
1148
  var label = ariaLabel || defaultAriaLabel;
1157
- return /*#__PURE__*/React.createElement(BadgeWrapper, {
1158
- className: className
1159
- }, children, /*#__PURE__*/React.createElement(BadgeIndicator, {
1160
- $variant: variant,
1161
- $isDot: dot,
1162
- $isVisible: isVisible,
1163
- role: "status",
1164
- "aria-live": "polite"
1165
- }, !dot && /*#__PURE__*/React.createElement(Typography, {
1166
- variant: "caption",
1167
- color: "inverse"
1168
- }, displayCount), /*#__PURE__*/React.createElement(ScreenReaderOnly$1, null, label)));
1149
+ return jsxs(BadgeWrapper, {
1150
+ className: className,
1151
+ children: [children, jsxs(BadgeIndicator, {
1152
+ "$variant": variant,
1153
+ "$isDot": dot,
1154
+ "$isVisible": isVisible,
1155
+ role: "status",
1156
+ "aria-live": "polite",
1157
+ children: [!dot && jsx(Typography, {
1158
+ variant: "caption",
1159
+ color: "inverse",
1160
+ children: displayCount
1161
+ }), jsx(ScreenReaderOnly$1, {
1162
+ children: label
1163
+ })]
1164
+ })]
1165
+ });
1169
1166
  };
1170
- var templateObject_1$G, templateObject_2$s, templateObject_3$o, templateObject_4$j;
1167
+ var templateObject_1$G, templateObject_2$s, templateObject_3$p, templateObject_4$j;
1171
1168
 
1172
- React.createElement;
1173
1169
  var StyledBox = styled.div.withConfig({
1174
1170
  shouldForwardProp: function shouldForwardProp(prop) {
1175
1171
  return !prop.startsWith('$');
1176
1172
  },
1177
1173
  displayName: "Box__StyledBox",
1178
1174
  componentId: "sc-aj0jhd-0"
1179
- })(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n ", "\n \n // Flexbox\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Margin\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Padding\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Size\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Position\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Borders\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Background & Color\n ", "\n ", "\n \n // Overflow\n ", "\n ", "\n ", "\n"], ["\n ", "\n \n // Flexbox\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Margin\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Padding\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Size\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Position\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Borders\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Background & Color\n ", "\n ", "\n \n // Overflow\n ", "\n ", "\n ", "\n"
1175
+ })(templateObject_49 || (templateObject_49 = __makeTemplateObject(["\n ", "\n \n // Flexbox\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Margin\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Padding\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Size\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Position\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Borders\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Background & Color\n ", "\n ", "\n \n // Shadow\n ", "\n \n // Cursor\n ", "\n \n // Transition\n ", "\n \n // Hover states\n ", "\n \n // Overflow\n ", "\n ", "\n ", "\n"], ["\n ", "\n \n // Flexbox\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Margin\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Padding\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Size\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Position\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Borders\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Background & Color\n ", "\n ", "\n \n // Shadow\n ", "\n \n // Cursor\n ", "\n \n // Transition\n ", "\n \n // Hover states\n ", "\n \n // Overflow\n ", "\n ", "\n ", "\n"
1180
1176
  // Transform component that maps clean props to $-prefixed props for styled-components
1181
1177
  ])), function (props) {
1182
1178
  return props.$display && css(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
1183
1179
  }, function (props) {
1184
1180
  return props.$flexDirection && css(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
1185
1181
  }, function (props) {
1186
- return props.$justifyContent && css(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
1182
+ return props.$justifyContent && css(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
1187
1183
  }, function (props) {
1188
1184
  return props.$alignItems && css(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["align-items: ", ";"], ["align-items: ", ";"])), props.$alignItems);
1189
1185
  }, function (props) {
1190
1186
  return props.$flexWrap && css(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["flex-wrap: ", ";"], ["flex-wrap: ", ";"])), props.$flexWrap);
1191
1187
  }, function (props) {
1192
- return props.$gap && css(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), tokensData.semantic.spacing.layout[props.$gap]);
1188
+ return props.$gap && css(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), tokensData.semantic.spacing.layout[props.$gap]);
1193
1189
  }, function (props) {
1194
- return props.$m && css(templateObject_7$b || (templateObject_7$b = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), tokensData.semantic.spacing.layout[props.$m]);
1190
+ return props.$m && css(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), tokensData.semantic.spacing.layout[props.$m]);
1195
1191
  }, function (props) {
1196
- return props.$mt && css(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["margin-top: ", ";"], ["margin-top: ", ";"])), tokensData.semantic.spacing.layout[props.$mt]);
1192
+ return props.$mt && css(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["margin-top: ", ";"], ["margin-top: ", ";"])), tokensData.semantic.spacing.layout[props.$mt]);
1197
1193
  }, function (props) {
1198
1194
  return props.$mr && css(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["margin-right: ", ";"], ["margin-right: ", ";"])), tokensData.semantic.spacing.layout[props.$mr]);
1199
1195
  }, function (props) {
@@ -1257,11 +1253,19 @@ var StyledBox = styled.div.withConfig({
1257
1253
  }, function (props) {
1258
1254
  return props.$color && css(templateObject_39 || (templateObject_39 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])), tokensData.semantic.color.text[props.$color]);
1259
1255
  }, function (props) {
1260
- return props.$overflow && css(templateObject_40 || (templateObject_40 = __makeTemplateObject(["overflow: ", ";"], ["overflow: ", ";"])), props.$overflow);
1256
+ return props.$shadow && css(templateObject_40 || (templateObject_40 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), tokensData.base.shadow[props.$shadow]);
1257
+ }, function (props) {
1258
+ return props.$cursor && css(templateObject_41 || (templateObject_41 = __makeTemplateObject(["cursor: ", ";"], ["cursor: ", ";"])), props.$cursor);
1259
+ }, function (props) {
1260
+ return props.$transition && css(templateObject_42 || (templateObject_42 = __makeTemplateObject(["transition: ", ";"], ["transition: ", ";"])), props.$transition);
1261
+ }, function (props) {
1262
+ 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: 2px solid ", ";\n outline-offset: 2px;\n }\n "], ["\n &:hover {\n ", "\n ", "\n }\n \n &:active {\n transform: translateY(0);\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n "])), props.$hoverShadow && css(templateObject_43 || (templateObject_43 = __makeTemplateObject(["box-shadow: ", ";"], ["box-shadow: ", ";"])), tokensData.base.shadow[props.$hoverShadow]), props.$hoverTransform && css(templateObject_44 || (templateObject_44 = __makeTemplateObject(["transform: ", ";"], ["transform: ", ";"])), props.$hoverTransform), tokensData.semantic.color.border.interactive);
1261
1263
  }, function (props) {
1262
- return props.$overflowX && css(templateObject_41 || (templateObject_41 = __makeTemplateObject(["overflow-x: ", ";"], ["overflow-x: ", ";"])), props.$overflowX);
1264
+ return props.$overflow && css(templateObject_46 || (templateObject_46 = __makeTemplateObject(["overflow: ", ";"], ["overflow: ", ";"])), props.$overflow);
1263
1265
  }, function (props) {
1264
- return props.$overflowY && css(templateObject_42 || (templateObject_42 = __makeTemplateObject(["overflow-y: ", ";"], ["overflow-y: ", ";"])), props.$overflowY);
1266
+ return props.$overflowX && css(templateObject_47 || (templateObject_47 = __makeTemplateObject(["overflow-x: ", ";"], ["overflow-x: ", ";"])), props.$overflowX);
1267
+ }, function (props) {
1268
+ return props.$overflowY && css(templateObject_48 || (templateObject_48 = __makeTemplateObject(["overflow-y: ", ";"], ["overflow-y: ", ";"])), props.$overflowY);
1265
1269
  });
1266
1270
  // Transform component that maps clean props to $-prefixed props for styled-components
1267
1271
  var BoxTransform = function BoxTransform(props) {
@@ -1312,6 +1316,15 @@ var BoxTransform = function BoxTransform(props) {
1312
1316
  // Background & Color
1313
1317
  bg = props.bg,
1314
1318
  color = props.color,
1319
+ // Shadow
1320
+ shadow = props.shadow,
1321
+ // Cursor
1322
+ cursor = props.cursor,
1323
+ // Transition
1324
+ transition = props.transition,
1325
+ // Hover states
1326
+ hoverShadow = props.hoverShadow,
1327
+ hoverTransform = props.hoverTransform,
1315
1328
  // Overflow
1316
1329
  overflow = props.overflow,
1317
1330
  overflowX = props.overflowX,
@@ -1319,57 +1332,74 @@ var BoxTransform = function BoxTransform(props) {
1319
1332
  // Standard props
1320
1333
  as = props.as,
1321
1334
  children = props.children,
1335
+ onClick = props.onClick,
1336
+ onKeyDown = props.onKeyDown,
1337
+ tabIndex = props.tabIndex,
1338
+ role = props.role,
1339
+ ariaLabel = props["aria-label"],
1322
1340
  dataTestId = props["data-testid"],
1323
- rest = __rest(props, ["display", "flexDirection", "justifyContent", "alignItems", "flexWrap", "gap", "m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "width", "height", "maxWidth", "maxHeight", "minWidth", "minHeight", "position", "top", "right", "bottom", "left", "borderRadius", "border", "borderTop", "borderRight", "borderBottom", "borderLeft", "bg", "color", "overflow", "overflowX", "overflowY", "as", "children", 'data-testid']);
1324
- return /*#__PURE__*/React.createElement(StyledBox, _extends({
1341
+ rest = __rest(props, ["display", "flexDirection", "justifyContent", "alignItems", "flexWrap", "gap", "m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "width", "height", "maxWidth", "maxHeight", "minWidth", "minHeight", "position", "top", "right", "bottom", "left", "borderRadius", "border", "borderTop", "borderRight", "borderBottom", "borderLeft", "bg", "color", "shadow", "cursor", "transition", "hoverShadow", "hoverTransform", "overflow", "overflowX", "overflowY", "as", "children", "onClick", "onKeyDown", "tabIndex", "role", 'aria-label', 'data-testid']);
1342
+ return jsx(StyledBox, __assign({
1325
1343
  as: as,
1326
1344
  "data-testid": dataTestId,
1327
- $display: display,
1328
- $flexDirection: flexDirection,
1329
- $justifyContent: justifyContent,
1330
- $alignItems: alignItems,
1331
- $flexWrap: flexWrap,
1332
- $gap: gap,
1333
- $m: m,
1334
- $mt: mt,
1335
- $mr: mr,
1336
- $mb: mb,
1337
- $ml: ml,
1338
- $mx: mx,
1339
- $my: my,
1340
- $p: p,
1341
- $pt: pt,
1342
- $pr: pr,
1343
- $pb: pb,
1344
- $pl: pl,
1345
- $px: px,
1346
- $py: py,
1347
- $width: width,
1348
- $height: height,
1349
- $maxWidth: maxWidth,
1350
- $maxHeight: maxHeight,
1351
- $minWidth: minWidth,
1352
- $minHeight: minHeight,
1353
- $position: position,
1354
- $top: top,
1355
- $right: right,
1356
- $bottom: bottom,
1357
- $left: left,
1358
- $borderRadius: borderRadius,
1359
- $border: border,
1360
- $borderTop: borderTop,
1361
- $borderRight: borderRight,
1362
- $borderBottom: borderBottom,
1363
- $borderLeft: borderLeft,
1364
- $bg: bg,
1365
- $color: color,
1366
- $overflow: overflow,
1367
- $overflowX: overflowX,
1368
- $overflowY: overflowY
1369
- }, rest), children);
1345
+ "$display": display,
1346
+ "$flexDirection": flexDirection,
1347
+ "$justifyContent": justifyContent,
1348
+ "$alignItems": alignItems,
1349
+ "$flexWrap": flexWrap,
1350
+ "$gap": gap,
1351
+ "$m": m,
1352
+ "$mt": mt,
1353
+ "$mr": mr,
1354
+ "$mb": mb,
1355
+ "$ml": ml,
1356
+ "$mx": mx,
1357
+ "$my": my,
1358
+ "$p": p,
1359
+ "$pt": pt,
1360
+ "$pr": pr,
1361
+ "$pb": pb,
1362
+ "$pl": pl,
1363
+ "$px": px,
1364
+ "$py": py,
1365
+ "$width": width,
1366
+ "$height": height,
1367
+ "$maxWidth": maxWidth,
1368
+ "$maxHeight": maxHeight,
1369
+ "$minWidth": minWidth,
1370
+ "$minHeight": minHeight,
1371
+ "$position": position,
1372
+ "$top": top,
1373
+ "$right": right,
1374
+ "$bottom": bottom,
1375
+ "$left": left,
1376
+ "$borderRadius": borderRadius,
1377
+ "$border": border,
1378
+ "$borderTop": borderTop,
1379
+ "$borderRight": borderRight,
1380
+ "$borderBottom": borderBottom,
1381
+ "$borderLeft": borderLeft,
1382
+ "$bg": bg,
1383
+ "$color": color,
1384
+ "$shadow": shadow,
1385
+ "$cursor": cursor,
1386
+ "$transition": transition,
1387
+ "$hoverShadow": hoverShadow,
1388
+ "$hoverTransform": hoverTransform,
1389
+ "$overflow": overflow,
1390
+ "$overflowX": overflowX,
1391
+ "$overflowY": overflowY,
1392
+ onClick: onClick,
1393
+ onKeyDown: onKeyDown,
1394
+ tabIndex: tabIndex,
1395
+ role: role,
1396
+ "aria-label": ariaLabel
1397
+ }, rest, {
1398
+ children: children
1399
+ }));
1370
1400
  };
1371
1401
  var Box = BoxTransform;
1372
- var templateObject_1$F, templateObject_2$r, templateObject_3$n, templateObject_4$i, templateObject_5$e, templateObject_6$d, templateObject_7$b, templateObject_8$6, 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;
1402
+ 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;
1373
1403
 
1374
1404
  var add = {
1375
1405
  path: "M13 11H19V13H13V19H11V13H5V11H11V5H13V11Z",
@@ -1588,7 +1618,6 @@ var iconsData = {
1588
1618
  viewHide: viewHide
1589
1619
  };
1590
1620
 
1591
- React.createElement;
1592
1621
  var IconStyled = styled.span.withConfig({
1593
1622
  shouldForwardProp: function shouldForwardProp(prop) {
1594
1623
  return !prop.startsWith('$');
@@ -1639,40 +1668,41 @@ var Icon = function Icon(_a) {
1639
1668
  var iconData = iconsData[name];
1640
1669
  if (!iconData) {
1641
1670
  console.warn("Icon \"".concat(name, "\" not found in icons.json"));
1642
- return /*#__PURE__*/React.createElement(IconStyled, {
1643
- $size: size,
1644
- $iconColor: iconColor,
1671
+ return jsx(IconStyled, {
1672
+ "$size": size,
1673
+ "$iconColor": iconColor,
1645
1674
  "data-testid": dataTestId
1646
1675
  });
1647
1676
  }
1648
- return /*#__PURE__*/React.createElement(IconStyled, {
1649
- $size: size,
1650
- $iconColor: iconColor,
1651
- "data-testid": dataTestId
1652
- }, /*#__PURE__*/React.createElement("svg", {
1653
- viewBox: "0 0 24 24",
1654
- fill: "currentColor",
1655
- xmlns: "http://www.w3.org/2000/svg",
1656
- role: "img",
1657
- "aria-label": iconData.name
1658
- }, /*#__PURE__*/React.createElement("path", {
1659
- d: iconData.path
1660
- })));
1677
+ return jsx(IconStyled, {
1678
+ "$size": size,
1679
+ "$iconColor": iconColor,
1680
+ "data-testid": dataTestId,
1681
+ children: jsx("svg", {
1682
+ viewBox: "0 0 24 24",
1683
+ fill: "currentColor",
1684
+ xmlns: "http://www.w3.org/2000/svg",
1685
+ role: "img",
1686
+ "aria-label": iconData.name,
1687
+ children: jsx("path", {
1688
+ d: iconData.path
1689
+ })
1690
+ })
1691
+ });
1661
1692
  };
1662
1693
  var templateObject_1$E;
1663
1694
 
1664
- React.createElement;
1665
1695
  var button = tokensData.component.button,
1666
1696
  semantic$f = tokensData.semantic;
1667
1697
  // Base styles shared between button and link
1668
1698
  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");
1669
1699
  // Dynamic variant styles using component tokens
1670
- var getVariantStyles = function getVariantStyles(_a) {
1700
+ var getVariantStyles$1 = function getVariantStyles(_a) {
1671
1701
  var $variant = _a.$variant;
1672
1702
  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");
1673
1703
  };
1674
1704
  // Dynamic size styles using component tokens
1675
- var getSizeStyles$2 = function getSizeStyles(_a) {
1705
+ var getSizeStyles$3 = function getSizeStyles(_a) {
1676
1706
  var $size = _a.$size;
1677
1707
  switch ($size) {
1678
1708
  case 'small':
@@ -1691,7 +1721,7 @@ var StyledButton = styled.button.withConfig({
1691
1721
  },
1692
1722
  displayName: "Button__StyledButton",
1693
1723
  componentId: "sc-1eiuum9-0"
1694
- })(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);
1724
+ })(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);
1695
1725
  var StyledLink = styled.a.withConfig({
1696
1726
  shouldForwardProp: function shouldForwardProp(prop) {
1697
1727
  return !prop.startsWith('$');
@@ -1700,7 +1730,7 @@ var StyledLink = styled.a.withConfig({
1700
1730
  componentId: "sc-1eiuum9-1"
1701
1731
  })(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"
1702
1732
  // Helper function to get icon size based on button size
1703
- ])), baseButtonStyles, button.primary.borderRadius, getVariantStyles, getSizeStyles$2);
1733
+ ])), baseButtonStyles, button.primary.borderRadius, getVariantStyles$1, getSizeStyles$3);
1704
1734
  // Helper function to get icon size based on button size
1705
1735
  var getIconSize = function getIconSize(buttonSize) {
1706
1736
  switch (buttonSize) {
@@ -1718,11 +1748,13 @@ var getIconSize = function getIconSize(buttonSize) {
1718
1748
  var renderButtonContent = function renderButtonContent(children, iconName, size) {
1719
1749
  if (!iconName) return children;
1720
1750
  var iconSize = getIconSize(size);
1721
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
1722
- name: iconName,
1723
- size: iconSize,
1724
- iconColor: "inherit"
1725
- }), children);
1751
+ return jsxs(Fragment, {
1752
+ children: [jsx(Icon, {
1753
+ name: iconName,
1754
+ size: iconSize,
1755
+ iconColor: "inherit"
1756
+ }), children]
1757
+ });
1726
1758
  };
1727
1759
  var Button = function Button(_a) {
1728
1760
  var _b = _a.variant,
@@ -1740,25 +1772,29 @@ var Button = function Button(_a) {
1740
1772
  rest = __rest(_a, ["variant", "size", "url", "purpose", "children", "target", "iconName", "linkComponent", 'data-testid']);
1741
1773
  // For links with custom link component (e.g., Next.js Link, React Router Link)
1742
1774
  if (purpose === 'link' && url && LinkComponent) {
1743
- return /*#__PURE__*/React.createElement(LinkComponent, {
1744
- href: url
1745
- }, /*#__PURE__*/React.createElement(StyledLink, {
1746
- as: "span",
1747
- $variant: variant,
1748
- $size: size,
1749
- "data-testid": dataTestId
1750
- }, renderButtonContent(children, iconName, size)));
1775
+ return jsx(LinkComponent, {
1776
+ href: url,
1777
+ children: jsx(StyledLink, {
1778
+ as: "span",
1779
+ "$variant": variant,
1780
+ "$size": size,
1781
+ "data-testid": dataTestId,
1782
+ children: renderButtonContent(children, iconName, size)
1783
+ })
1784
+ });
1751
1785
  }
1752
1786
  // For standard links (external or without custom component)
1753
1787
  if (purpose === 'link' && url) {
1754
1788
  var linkProps = rest;
1755
- return /*#__PURE__*/React.createElement(StyledLink, _extends({
1789
+ return jsx(StyledLink, __assign({
1756
1790
  href: url,
1757
1791
  target: target,
1758
- $variant: variant,
1759
- $size: size,
1792
+ "$variant": variant,
1793
+ "$size": size,
1760
1794
  "data-testid": dataTestId
1761
- }, linkProps), renderButtonContent(children, iconName, size));
1795
+ }, linkProps, {
1796
+ children: renderButtonContent(children, iconName, size)
1797
+ }));
1762
1798
  }
1763
1799
  // For button with URL (legacy support)
1764
1800
  if (purpose === 'button' && url) {
@@ -1775,24 +1811,26 @@ var Button = function Button(_a) {
1775
1811
  window.location.href = url;
1776
1812
  }
1777
1813
  };
1778
- return /*#__PURE__*/React.createElement(StyledButton, _extends({}, buttonProps_1, {
1779
- $variant: variant,
1780
- $size: size,
1814
+ return jsx(StyledButton, __assign({}, buttonProps_1, {
1815
+ "$variant": variant,
1816
+ "$size": size,
1781
1817
  "data-testid": dataTestId,
1782
- onClick: handleClick
1783
- }), renderButtonContent(children, iconName, size));
1818
+ onClick: handleClick,
1819
+ children: renderButtonContent(children, iconName, size)
1820
+ }));
1784
1821
  }
1785
1822
  // Regular button
1786
1823
  var buttonProps = rest;
1787
- return /*#__PURE__*/React.createElement(StyledButton, _extends({
1788
- $variant: variant,
1789
- $size: size,
1824
+ return jsx(StyledButton, __assign({
1825
+ "$variant": variant,
1826
+ "$size": size,
1790
1827
  "data-testid": dataTestId
1791
- }, buttonProps), renderButtonContent(children, iconName, size));
1828
+ }, buttonProps, {
1829
+ children: renderButtonContent(children, iconName, size)
1830
+ }));
1792
1831
  };
1793
1832
  var templateObject_1$D, templateObject_2$q;
1794
1833
 
1795
- React.createElement;
1796
1834
  var semantic$e = tokensData.semantic,
1797
1835
  base$c = tokensData.base;
1798
1836
  var getColorStyles = function getColorStyles(color, variant) {
@@ -1818,7 +1856,7 @@ var getColorStyles = function getColorStyles(color, variant) {
1818
1856
  borderColor: 'transparent'
1819
1857
  };
1820
1858
  };
1821
- var getSizeStyles$1 = function getSizeStyles(size) {
1859
+ var getSizeStyles$2 = function getSizeStyles(size) {
1822
1860
  if (size === 'small') {
1823
1861
  return {
1824
1862
  height: '24px',
@@ -1907,7 +1945,7 @@ var CategoryBadge = function CategoryBadge(_a) {
1907
1945
  var hasClickHandler = Boolean(onClick);
1908
1946
  var isClickable = hasClickHandler && !disabled;
1909
1947
  var colorStyles = getColorStyles(color, variant);
1910
- var sizeStyles = getSizeStyles$1(size);
1948
+ var sizeStyles = getSizeStyles$2(size);
1911
1949
  var cssProps = {
1912
1950
  '--category-badge-bg': colorStyles.backgroundColor,
1913
1951
  '--category-badge-color': colorStyles.color,
@@ -1930,12 +1968,12 @@ var CategoryBadge = function CategoryBadge(_a) {
1930
1968
  onClick === null || onClick === void 0 ? void 0 : onClick();
1931
1969
  }
1932
1970
  };
1933
- return /*#__PURE__*/React.createElement(StyledCategoryBadge, {
1934
- $color: color,
1935
- $variant: variant,
1936
- $size: size,
1937
- $clickable: isClickable,
1938
- $disabled: disabled,
1971
+ return jsxs(StyledCategoryBadge, {
1972
+ "$color": color,
1973
+ "$variant": variant,
1974
+ "$size": size,
1975
+ "$clickable": isClickable,
1976
+ "$disabled": disabled,
1939
1977
  onClick: handleClick,
1940
1978
  onKeyDown: handleKeyDown,
1941
1979
  tabIndex: hasClickHandler ? 0 : undefined,
@@ -1943,78 +1981,69 @@ var CategoryBadge = function CategoryBadge(_a) {
1943
1981
  "aria-label": ariaLabel,
1944
1982
  "aria-disabled": disabled,
1945
1983
  "data-testid": dataTestId,
1946
- style: cssProps
1947
- }, icon && /*#__PURE__*/React.createElement(Icon, {
1948
- name: icon,
1949
- size: sizeStyles.iconSize,
1950
- "aria-hidden": "true"
1951
- }), children);
1984
+ style: cssProps,
1985
+ children: [icon && jsx(Icon, {
1986
+ name: icon,
1987
+ size: sizeStyles.iconSize,
1988
+ iconColor: variant === 'filled' ? 'inverse' : 'inherit',
1989
+ "aria-hidden": "true"
1990
+ }), children]
1991
+ });
1952
1992
  };
1953
1993
  CategoryBadge.displayName = 'CategoryBadge';
1954
1994
  var templateObject_1$C;
1955
1995
 
1956
1996
  var chip = tokensData.component.chip;
1957
- // Helper function to get variant styles as objects for CSS custom properties
1958
- var getVariantStylesAsObject = function getVariantStylesAsObject(variant, selected) {
1997
+ // Helper function to get variant styles matching Button's approach
1998
+ var getVariantStyles = function getVariantStyles(_a) {
1999
+ var $variant = _a.$variant,
2000
+ $selected = _a.$selected;
1959
2001
  // Boolean chips with selected state get special background
1960
- if (selected) {
1961
- return {
1962
- backgroundColor: tokensData.semantic.color.background['interactive-subtle'],
1963
- color: chip["default"].textColor
1964
- };
2002
+ if ($selected) {
2003
+ return "\n background-color: ".concat(tokensData.semantic.color.background['interactive-subtle'], ";\n color: ").concat(chip["default"].textColor, ";\n ");
1965
2004
  }
1966
- switch (variant) {
2005
+ switch ($variant) {
1967
2006
  case 'emphasis':
1968
- return {
1969
- backgroundColor: chip.variants.emphasis.backgroundColor,
1970
- color: chip.variants.emphasis.textColor
1971
- };
2007
+ return "\n background-color: ".concat(chip.variants.emphasis.backgroundColor, ";\n color: ").concat(chip.variants.emphasis.textColor, ";\n ");
1972
2008
  case 'subtle':
1973
- return {
1974
- backgroundColor: chip.variants.subtle.backgroundColor,
1975
- color: chip.variants.subtle.textColor
1976
- };
2009
+ return "\n background-color: ".concat(chip.variants.subtle.backgroundColor, ";\n color: ").concat(chip.variants.subtle.textColor, ";\n ");
1977
2010
  case 'interactive':
1978
- return {
1979
- backgroundColor: chip.variants.interactive.backgroundColor,
1980
- color: chip.variants.interactive.textColor
1981
- };
2011
+ return "\n background-color: ".concat(chip.variants.interactive.backgroundColor, ";\n color: ").concat(chip.variants.interactive.textColor, ";\n ");
1982
2012
  case 'default':
1983
2013
  default:
1984
- return {
1985
- backgroundColor: chip["default"].backgroundColor,
1986
- color: chip["default"].textColor
1987
- };
2014
+ return "\n background-color: ".concat(chip["default"].backgroundColor, ";\n color: ").concat(chip["default"].textColor, ";\n ");
1988
2015
  }
1989
2016
  };
1990
- // Helper function to get size styles as objects for CSS custom properties
1991
- var getSizeStylesAsObject = function getSizeStylesAsObject(size) {
1992
- switch (size) {
2017
+ // Helper function to get size styles matching Button's approach
2018
+ var getSizeStyles$1 = function getSizeStyles(_a) {
2019
+ var $size = _a.$size;
2020
+ switch ($size) {
1993
2021
  case 'small':
1994
- return {
1995
- font: chip.sizes.small.font,
1996
- padding: chip.sizes.small.padding
1997
- };
2022
+ return "\n font: ".concat(chip.sizes.small.font, ";\n padding: ").concat(chip.sizes.small.padding, ";\n ");
1998
2023
  case 'medium':
1999
2024
  default:
2000
- return {
2001
- font: chip.sizes.medium.font,
2002
- padding: chip.sizes.medium.padding
2003
- };
2025
+ return "\n font: ".concat(chip.sizes.medium.font, ";\n padding: ").concat(chip.sizes.medium.padding, ";\n ");
2004
2026
  }
2005
2027
  };
2006
2028
 
2007
- React.createElement;
2008
- // Base styled component using CSS variables to avoid prop leaking
2009
- var BaseChipStyled = styled.span.withConfig({
2029
+ // Base styled component using direct prop interpolation like Button
2030
+ var StyledChip = styled.span.withConfig({
2010
2031
  shouldForwardProp: function shouldForwardProp(prop) {
2011
2032
  return !prop.startsWith('$');
2012
2033
  },
2013
- displayName: "ChipBase__BaseChipStyled",
2034
+ displayName: "ChipBase__StyledChip",
2014
2035
  componentId: "sc-moa6zc-0"
2015
- })(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"
2036
+ })(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"
2016
2037
  // Icon container for selected indicator or leading icons
2017
- ])), tokensData.semantic.motion.interactive, chip.variants.interactive.backgroundColor);
2038
+ ])), tokensData.semantic.motion.interactive, tokensData.semantic.motion.hover, function (props) {
2039
+ return props.$disabled ? 'not-allowed' : props.$clickable ? 'pointer' : 'default';
2040
+ }, function (props) {
2041
+ return props.$disabled ? '0.6' : '1';
2042
+ }, getVariantStyles, getSizeStyles$1, function (props) {
2043
+ return props.$disabled ? '0.6' : props.$clickable ? '0.8' : '1';
2044
+ }, function (props) {
2045
+ return props.$disabled ? '0.6' : props.$clickable ? '0.9' : '1';
2046
+ }, chip.variants.interactive.backgroundColor);
2018
2047
  // Icon container for selected indicator or leading icons
2019
2048
  var IconContainer = styled.span.withConfig({
2020
2049
  displayName: "ChipBase__IconContainer",
@@ -2029,44 +2058,13 @@ var CloseButton = styled.button.withConfig({
2029
2058
  },
2030
2059
  displayName: "ChipBase__CloseButton",
2031
2060
  componentId: "sc-moa6zc-2"
2032
- })(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"
2033
- // Wrapper component that applies styles via CSS custom properties
2034
- ])), tokensData.semantic.spacing.layout.sm, function (props) {
2061
+ })(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) {
2035
2062
  return props.$disabled ? 'not-allowed' : 'pointer';
2036
2063
  }, function (props) {
2037
2064
  return props.$disabled ? '0.6' : '1';
2038
2065
  }, tokensData.semantic.motion.transition.fast, chip.variants.interactive.backgroundColor);
2039
- // Wrapper component that applies styles via CSS custom properties
2040
- var StyledChipWrapper = function StyledChipWrapper(_a) {
2041
- var $variant = _a.$variant,
2042
- $size = _a.$size,
2043
- $disabled = _a.$disabled,
2044
- $clickable = _a.$clickable,
2045
- $selected = _a.$selected,
2046
- children = _a.children,
2047
- style = _a.style,
2048
- htmlProps = __rest(_a, ["$variant", "$size", "$disabled", "$clickable", "$selected", "children", "style"]);
2049
- // Get styles for variant and size
2050
- var variantStyles = getVariantStylesAsObject($variant, $selected);
2051
- var sizeStyles = getSizeStylesAsObject($size);
2052
- // Create CSS custom properties object
2053
- var cssProps = {
2054
- '--chip-bg-color': variantStyles.backgroundColor,
2055
- '--chip-text-color': variantStyles.color,
2056
- '--chip-font': sizeStyles.font,
2057
- '--chip-padding': sizeStyles.padding,
2058
- '--chip-opacity': $disabled ? '0.6' : '1',
2059
- '--chip-cursor': $disabled ? 'not-allowed' : $clickable ? 'pointer' : 'default',
2060
- '--chip-hover-opacity': $disabled ? '0.6' : $clickable ? '0.8' : '1',
2061
- '--chip-active-opacity': $disabled ? '0.6' : $clickable ? '0.9' : '1'
2062
- };
2063
- return /*#__PURE__*/React.createElement(BaseChipStyled, _extends({
2064
- style: __assign(__assign({}, cssProps), style)
2065
- }, htmlProps), children);
2066
- };
2067
- var templateObject_1$B, templateObject_2$p, templateObject_3$m;
2066
+ var templateObject_1$B, templateObject_2$p, templateObject_3$n;
2068
2067
 
2069
- React.createElement;
2070
2068
  /**
2071
2069
  * Chip - Compact element for displaying tags, categories, and labels
2072
2070
  *
@@ -2112,11 +2110,11 @@ var Chip = function Chip(_a) {
2112
2110
  handleClick();
2113
2111
  }
2114
2112
  };
2115
- return /*#__PURE__*/React.createElement(StyledChipWrapper, _extends({
2116
- $variant: normalizedVariant,
2117
- $size: size,
2118
- $disabled: disabled || undefined,
2119
- $clickable: isClickable || undefined,
2113
+ return jsx(StyledChip, __assign({
2114
+ "$variant": normalizedVariant,
2115
+ "$size": size,
2116
+ "$disabled": disabled || undefined,
2117
+ "$clickable": isClickable || undefined,
2120
2118
  onClick: isClickable ? handleClick : undefined,
2121
2119
  onKeyDown: handleKeyDown,
2122
2120
  tabIndex: isClickable ? 0 : undefined,
@@ -2125,19 +2123,21 @@ var Chip = function Chip(_a) {
2125
2123
  "aria-describedby": ariaDescribedBy,
2126
2124
  "aria-disabled": disabled ? 'true' : undefined,
2127
2125
  "data-testid": dataTestId
2128
- }, props), content);
2126
+ }, props, {
2127
+ children: content
2128
+ }));
2129
2129
  };
2130
2130
  var LegacyChip = function LegacyChip(_a) {
2131
2131
  var title = _a.title,
2132
2132
  _b = _a.variant,
2133
2133
  variant = _b === void 0 ? 'light' : _b;
2134
2134
  var newVariant = variant === 'dark' ? 'emphasis' : 'default';
2135
- return /*#__PURE__*/React.createElement(Chip, {
2136
- variant: newVariant
2137
- }, title);
2135
+ return jsx(Chip, {
2136
+ variant: newVariant,
2137
+ children: title
2138
+ });
2138
2139
  };
2139
2140
 
2140
- React.createElement;
2141
2141
  /**
2142
2142
  * FilterChip - Chip for displaying filters with selected state and optional dismissal
2143
2143
  *
@@ -2190,39 +2190,42 @@ var FilterChip = function FilterChip(_a) {
2190
2190
  };
2191
2191
  // Generate accessible label for close button
2192
2192
  var closeButtonLabel = typeof children === 'string' ? "Remove ".concat(children) : 'Remove filter';
2193
- return /*#__PURE__*/React.createElement(StyledChipWrapper, _extends({
2194
- $variant: "subtle",
2195
- $size: size,
2196
- $disabled: disabled || undefined,
2197
- $clickable: false,
2198
- $selected: selected,
2193
+ return jsxs(StyledChip, __assign({
2194
+ "$variant": "subtle",
2195
+ "$size": size,
2196
+ "$disabled": disabled || undefined,
2197
+ "$clickable": false,
2198
+ "$selected": selected,
2199
2199
  onKeyDown: handleKeyDown,
2200
2200
  role: role || 'status',
2201
2201
  "aria-label": ariaLabel,
2202
2202
  "aria-describedby": ariaDescribedBy,
2203
2203
  "aria-disabled": disabled ? 'true' : undefined,
2204
2204
  "data-testid": dataTestId
2205
- }, props), selected && /*#__PURE__*/React.createElement(IconContainer, {
2206
- "aria-hidden": "true"
2207
- }, /*#__PURE__*/React.createElement(Icon, {
2208
- name: "check",
2209
- size: "sm"
2210
- })), children, isDismissible && /*#__PURE__*/React.createElement(CloseButton, {
2211
- type: "button",
2212
- onClick: handleDismiss,
2213
- onKeyDown: handleCloseKeyDown,
2214
- disabled: disabled,
2215
- $disabled: disabled,
2216
- "aria-label": closeButtonLabel,
2217
- tabIndex: 0,
2218
- "data-testid": dataTestId ? "".concat(dataTestId, "-close") : undefined
2219
- }, /*#__PURE__*/React.createElement(Icon, {
2220
- name: "close",
2221
- size: "sm"
2222
- })));
2205
+ }, props, {
2206
+ children: [selected && jsx(IconContainer, {
2207
+ "aria-hidden": "true",
2208
+ children: jsx(Icon, {
2209
+ name: "check",
2210
+ size: "sm"
2211
+ })
2212
+ }), children, isDismissible && jsx(CloseButton, {
2213
+ type: "button",
2214
+ onClick: handleDismiss,
2215
+ onKeyDown: handleCloseKeyDown,
2216
+ disabled: disabled,
2217
+ "$disabled": disabled,
2218
+ "aria-label": closeButtonLabel,
2219
+ tabIndex: 0,
2220
+ "data-testid": dataTestId ? "".concat(dataTestId, "-close") : undefined,
2221
+ children: jsx(Icon, {
2222
+ name: "close",
2223
+ size: "sm"
2224
+ })
2225
+ })]
2226
+ }));
2223
2227
  };
2224
2228
 
2225
- React.createElement;
2226
2229
  /**
2227
2230
  * BooleanChip - Toggleable chip for quick filter controls
2228
2231
  *
@@ -2261,12 +2264,12 @@ var BooleanChip = function BooleanChip(_a) {
2261
2264
  handleClick();
2262
2265
  }
2263
2266
  };
2264
- return /*#__PURE__*/React.createElement(StyledChipWrapper, _extends({
2265
- $variant: "subtle",
2266
- $size: size,
2267
- $disabled: disabled || undefined,
2268
- $clickable: !disabled,
2269
- $selected: selected,
2267
+ return jsxs(StyledChip, __assign({
2268
+ "$variant": "subtle",
2269
+ "$size": size,
2270
+ "$disabled": disabled || undefined,
2271
+ "$clickable": !disabled,
2272
+ "$selected": selected,
2270
2273
  onClick: handleClick,
2271
2274
  onKeyDown: handleKeyDown,
2272
2275
  tabIndex: disabled ? undefined : 0,
@@ -2276,12 +2279,15 @@ var BooleanChip = function BooleanChip(_a) {
2276
2279
  "aria-describedby": ariaDescribedBy,
2277
2280
  "aria-disabled": disabled ? 'true' : undefined,
2278
2281
  "data-testid": dataTestId
2279
- }, props), selected && /*#__PURE__*/React.createElement(IconContainer, {
2280
- "aria-hidden": "true"
2281
- }, /*#__PURE__*/React.createElement(Icon, {
2282
- name: "check",
2283
- size: "sm"
2284
- })), children);
2282
+ }, props, {
2283
+ children: [selected && jsx(IconContainer, {
2284
+ "aria-hidden": "true",
2285
+ children: jsx(Icon, {
2286
+ name: "check",
2287
+ size: "sm"
2288
+ })
2289
+ }), children]
2290
+ }));
2285
2291
  };
2286
2292
 
2287
2293
  // Breakpoints using base tokens
@@ -2303,7 +2309,6 @@ var media$1 = {
2303
2309
  '2xl': "@media (min-width: ".concat(breakpoints$1['2xl'], ")")
2304
2310
  };
2305
2311
 
2306
- React.createElement;
2307
2312
  var spacing$3 = tokensData.semantic.spacing;
2308
2313
  var StyledContainer$2 = styled.div.withConfig({
2309
2314
  displayName: "Container__StyledContainer",
@@ -2312,11 +2317,12 @@ var StyledContainer$2 = styled.div.withConfig({
2312
2317
  var Container = function Container(_a) {
2313
2318
  var children = _a.children,
2314
2319
  props = __rest(_a, ["children"]);
2315
- return /*#__PURE__*/React.createElement(StyledContainer$2, props, children);
2320
+ return jsx(StyledContainer$2, __assign({}, props, {
2321
+ children: children
2322
+ }));
2316
2323
  };
2317
2324
  var templateObject_1$A;
2318
2325
 
2319
- React.createElement;
2320
2326
  var base$b = tokensData.base;
2321
2327
  var PictureWrapper = styled.div.withConfig({
2322
2328
  displayName: "Picture__PictureWrapper",
@@ -2329,7 +2335,7 @@ var ImageLink = styled.a.withConfig({
2329
2335
  var ImageButton = styled.button.withConfig({
2330
2336
  displayName: "Picture__ImageButton",
2331
2337
  componentId: "sc-11d9tei-2"
2332
- })(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);
2338
+ })(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);
2333
2339
  var StyledImage = styled.img.withConfig({
2334
2340
  displayName: "Picture__StyledImage",
2335
2341
  componentId: "sc-11d9tei-3"
@@ -2344,25 +2350,27 @@ var Picture = function Picture(_a) {
2344
2350
  onClick = _a.onClick,
2345
2351
  href = _a.href,
2346
2352
  dataTestId = _a["data-testid"];
2347
- var image = /*#__PURE__*/React.createElement(StyledImage, {
2353
+ var image = jsx(StyledImage, {
2348
2354
  src: src,
2349
2355
  alt: title,
2350
2356
  width: width,
2351
2357
  height: height
2352
2358
  });
2353
- return /*#__PURE__*/React.createElement(PictureWrapper, {
2354
- "data-testid": dataTestId
2355
- }, href ? /*#__PURE__*/React.createElement(ImageLink, {
2356
- href: href,
2357
- "aria-label": "Read more about ".concat(title)
2358
- }, image) : onClick ? /*#__PURE__*/React.createElement(ImageButton, {
2359
- onClick: onClick,
2360
- "aria-label": "Read more about ".concat(title)
2361
- }, image) : image);
2359
+ return jsx(PictureWrapper, {
2360
+ "data-testid": dataTestId,
2361
+ children: href ? jsx(ImageLink, {
2362
+ href: href,
2363
+ "aria-label": "Read more about ".concat(title),
2364
+ children: image
2365
+ }) : onClick ? jsx(ImageButton, {
2366
+ onClick: onClick,
2367
+ "aria-label": "Read more about ".concat(title),
2368
+ children: image
2369
+ }) : image
2370
+ });
2362
2371
  };
2363
- var templateObject_1$z, templateObject_2$o, templateObject_3$l, templateObject_4$h;
2372
+ var templateObject_1$z, templateObject_2$o, templateObject_3$m, templateObject_4$h;
2364
2373
 
2365
- React.createElement;
2366
2374
  var _a$4 = tokensData.semantic,
2367
2375
  typography$1 = _a$4.typography,
2368
2376
  color$2 = _a$4.color;
@@ -2412,14 +2420,14 @@ var DateFormatter = function DateFormatter(_a) {
2412
2420
  displayText = format(date, formatString || 'yyyy');
2413
2421
  break;
2414
2422
  }
2415
- return /*#__PURE__*/React.createElement(TimeStyled, {
2423
+ return jsx(TimeStyled, {
2416
2424
  dateTime: dateString,
2417
- "data-testid": dataTestId
2418
- }, displayText);
2425
+ "data-testid": dataTestId,
2426
+ children: displayText
2427
+ });
2419
2428
  };
2420
2429
  var templateObject_1$y;
2421
2430
 
2422
- React.createElement;
2423
2431
  var motion = tokensData.semantic.motion,
2424
2432
  iconButton = tokensData.component.iconButton;
2425
2433
  var IconButtonStyled = styled.button.withConfig({
@@ -2517,9 +2525,9 @@ var IconButton = function IconButton(_a) {
2517
2525
  return 'default';
2518
2526
  }
2519
2527
  };
2520
- return /*#__PURE__*/React.createElement(IconButtonStyled, _extends({
2521
- $variant: variant,
2522
- $size: size,
2528
+ return jsx(IconButtonStyled, __assign({
2529
+ "$variant": variant,
2530
+ "$size": size,
2523
2531
  onClick: handleClick,
2524
2532
  onKeyDown: handleKeyDown,
2525
2533
  disabled: disabled,
@@ -2532,16 +2540,17 @@ var IconButton = function IconButton(_a) {
2532
2540
  "aria-disabled": disabled,
2533
2541
  tabIndex: disabled ? -1 : 0,
2534
2542
  "data-testid": dataTestId
2535
- }, htmlProps), /*#__PURE__*/React.createElement(Icon, {
2536
- name: iconName,
2537
- size: iconSize,
2538
- iconColor: getIconColor(variant),
2539
- "aria-hidden": "true" // Hide icon from screen readers since button has aria-label
2543
+ }, htmlProps, {
2544
+ children: jsx(Icon, {
2545
+ name: iconName,
2546
+ size: iconSize,
2547
+ iconColor: getIconColor(variant),
2548
+ "aria-hidden": "true" // Hide icon from screen readers since button has aria-label
2549
+ })
2540
2550
  }));
2541
2551
  };
2542
2552
  var templateObject_1$x;
2543
2553
 
2544
- React.createElement;
2545
2554
  var StyledWrapper = styled.span.withConfig({
2546
2555
  shouldForwardProp: function shouldForwardProp(prop) {
2547
2556
  return !prop.startsWith('$');
@@ -2634,27 +2643,28 @@ var MoneyDisplay = function MoneyDisplay(_a) {
2634
2643
  // Get typography variant and color
2635
2644
  var typographyVariant = sizeToTypographyVariant[size];
2636
2645
  var typographyColor = variantToTypographyColor[variant];
2637
- return /*#__PURE__*/React.createElement(StyledWrapper, {
2638
- $align: align,
2639
- $weight: weight,
2646
+ return jsx(StyledWrapper, {
2647
+ "$align": align,
2648
+ "$weight": weight,
2640
2649
  "aria-label": ariaLabel,
2641
- "data-testid": dataTestId
2642
- }, /*#__PURE__*/React.createElement(Typography, {
2643
- variant: typographyVariant,
2644
- color: typographyColor,
2645
- as: "span"
2646
- }, displayText));
2650
+ "data-testid": dataTestId,
2651
+ children: jsx(Typography, {
2652
+ variant: typographyVariant,
2653
+ color: typographyColor,
2654
+ as: "span",
2655
+ children: displayText
2656
+ })
2657
+ });
2647
2658
  };
2648
2659
  var templateObject_1$w;
2649
2660
 
2650
- React.createElement;
2651
2661
  var ProgressBarContainer = styled.div.withConfig({
2652
2662
  shouldForwardProp: function shouldForwardProp(prop) {
2653
2663
  return !prop.startsWith('$');
2654
2664
  },
2655
2665
  displayName: "ProgressBar__ProgressBarContainer",
2656
2666
  componentId: "sc-1nco33q-0"
2657
- })(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) {
2667
+ })(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) {
2658
2668
  return props.$variant === 'horizontal' && 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);
2659
2669
  }, function (props) {
2660
2670
  return props.$variant === 'vertical' && 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);
@@ -2665,7 +2675,7 @@ var ProgressBarFill = styled.div.withConfig({
2665
2675
  },
2666
2676
  displayName: "ProgressBar__ProgressBarFill",
2667
2677
  componentId: "sc-1nco33q-1"
2668
- })(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["\n height: 100%;\n transition: ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n height: 100%;\n transition: ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), tokensData.semantic.motion.transition.normal, function (props) {
2678
+ })(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n height: 100%;\n transition: ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n height: 100%;\n transition: ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), tokensData.semantic.motion.transition.normal, function (props) {
2669
2679
  var backgroundColor;
2670
2680
  switch (props.$color) {
2671
2681
  case 'success':
@@ -2683,7 +2693,7 @@ var ProgressBarFill = styled.div.withConfig({
2683
2693
  }, function (props) {
2684
2694
  return props.$variant === 'horizontal' && css(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n width: ", "%;\n "], ["\n width: ", "%;\n "])), Math.min(100, Math.max(0, props.$value)));
2685
2695
  }, function (props) {
2686
- return props.$variant === 'vertical' && css(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["\n width: 100%;\n height: ", "%;\n "], ["\n width: 100%;\n height: ", "%;\n "])), Math.min(100, Math.max(0, props.$value)));
2696
+ return props.$variant === 'vertical' && css(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n width: 100%;\n height: ", "%;\n "], ["\n width: 100%;\n height: ", "%;\n "])), Math.min(100, Math.max(0, props.$value)));
2687
2697
  });
2688
2698
  var ProgressBar = function ProgressBar(_a) {
2689
2699
  var value = _a.value,
@@ -2694,24 +2704,24 @@ var ProgressBar = function ProgressBar(_a) {
2694
2704
  height = _a.height,
2695
2705
  width = _a.width,
2696
2706
  dataTestId = _a["data-testid"];
2697
- return /*#__PURE__*/React.createElement(ProgressBarContainer, {
2698
- $variant: variant,
2699
- $height: height,
2700
- $width: width,
2707
+ return jsx(ProgressBarContainer, {
2708
+ "$variant": variant,
2709
+ "$height": height,
2710
+ "$width": width,
2701
2711
  "data-testid": dataTestId,
2702
2712
  role: "progressbar",
2703
2713
  "aria-valuenow": Math.min(100, Math.max(0, value)),
2704
2714
  "aria-valuemin": 0,
2705
- "aria-valuemax": 100
2706
- }, /*#__PURE__*/React.createElement(ProgressBarFill, {
2707
- $value: value,
2708
- $variant: variant,
2709
- $color: color
2710
- }));
2715
+ "aria-valuemax": 100,
2716
+ children: jsx(ProgressBarFill, {
2717
+ "$value": value,
2718
+ "$variant": variant,
2719
+ "$color": color
2720
+ })
2721
+ });
2711
2722
  };
2712
- var templateObject_1$v, templateObject_2$n, templateObject_3$k, templateObject_4$g, templateObject_5$d, templateObject_6$c, templateObject_7$a;
2723
+ var templateObject_1$v, templateObject_2$n, templateObject_3$l, templateObject_4$g, templateObject_5$d, templateObject_6$b, templateObject_7$8;
2713
2724
 
2714
- React.createElement;
2715
2725
  var StyledDivider$1 = styled.div.withConfig({
2716
2726
  shouldForwardProp: function shouldForwardProp(prop) {
2717
2727
  return !prop.startsWith('$');
@@ -2822,10 +2832,10 @@ var Divider = function Divider(_a) {
2822
2832
  _d = _a.orientation,
2823
2833
  orientation = _d === void 0 ? 'horizontal' : _d,
2824
2834
  dataTestId = _a["data-testid"];
2825
- return /*#__PURE__*/React.createElement(StyledDivider$1, {
2826
- $variant: variant,
2827
- $size: size,
2828
- $orientation: orientation,
2835
+ return jsx(StyledDivider$1, {
2836
+ "$variant": variant,
2837
+ "$size": size,
2838
+ "$orientation": orientation,
2829
2839
  "data-testid": dataTestId,
2830
2840
  role: "separator",
2831
2841
  "aria-orientation": orientation
@@ -2833,7 +2843,6 @@ var Divider = function Divider(_a) {
2833
2843
  };
2834
2844
  var templateObject_1$u;
2835
2845
 
2836
- React.createElement;
2837
2846
  var StyledStack = styled.div.withConfig({
2838
2847
  shouldForwardProp: function shouldForwardProp(prop) {
2839
2848
  return !prop.startsWith('$');
@@ -2873,14 +2882,14 @@ var Stack = function Stack(_a) {
2873
2882
  '--stack-gap': gapValue,
2874
2883
  '--stack-wrap': wrap ? 'wrap' : 'nowrap'
2875
2884
  };
2876
- return /*#__PURE__*/React.createElement(StyledStack, {
2885
+ return jsx(StyledStack, {
2877
2886
  style: cssProps,
2878
- "data-testid": dataTestId
2879
- }, children);
2887
+ "data-testid": dataTestId,
2888
+ children: children
2889
+ });
2880
2890
  };
2881
2891
  var templateObject_1$t;
2882
2892
 
2883
- React.createElement;
2884
2893
  var semantic$d = tokensData.semantic,
2885
2894
  base$a = tokensData.base;
2886
2895
  var scaleIn = keyframes(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n from {\n opacity: 0;\n transform: scale(0.8);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"], ["\n from {\n opacity: 0;\n transform: scale(0.8);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"])));
@@ -2940,7 +2949,7 @@ var getSizeStyles = function getSizeStyles(size) {
2940
2949
  // medium
2941
2950
  return {
2942
2951
  height: '24px',
2943
- padding: "".concat(base$a.spacing[1], " ").concat(base$a.spacing[3]),
2952
+ padding: "".concat(base$a.spacing[1], " ").concat(base$a.spacing[2]),
2944
2953
  font: semantic$d.typography.small,
2945
2954
  gap: base$a.spacing[1],
2946
2955
  iconSize: 'sm'
@@ -2956,7 +2965,7 @@ var StyledStatusBadge = styled.span.withConfig({
2956
2965
  var ScreenReaderOnly = styled.span.withConfig({
2957
2966
  displayName: "StatusBadge__ScreenReaderOnly",
2958
2967
  componentId: "sc-1paksgb-1"
2959
- })(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"
2968
+ })(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"
2960
2969
  /**
2961
2970
  * StatusBadge component for displaying transaction or task status
2962
2971
  *
@@ -3025,25 +3034,28 @@ var StatusBadge = function StatusBadge(_a) {
3025
3034
  '--status-badge-font': sizeStyles.font,
3026
3035
  '--status-badge-gap': sizeStyles.gap
3027
3036
  };
3028
- return /*#__PURE__*/React.createElement(StyledStatusBadge, {
3029
- $status: status,
3030
- $size: size,
3037
+ return jsxs(StyledStatusBadge, {
3038
+ "$status": status,
3039
+ "$size": size,
3031
3040
  role: "status",
3032
3041
  "aria-label": ariaLabel || "Status: ".concat(displayLabel),
3033
3042
  "aria-live": liveRegion ? 'polite' : undefined,
3034
3043
  "aria-atomic": liveRegion ? 'true' : undefined,
3035
3044
  "data-testid": dataTestId,
3036
- style: cssProps
3037
- }, showIcon && /*#__PURE__*/React.createElement(Icon, {
3038
- name: statusConfig.icon,
3039
- size: sizeStyles.iconSize,
3040
- "aria-hidden": "true"
3041
- }), displayLabel, /*#__PURE__*/React.createElement(ScreenReaderOnly, null, status, " status"));
3045
+ style: cssProps,
3046
+ children: [showIcon && jsx(Icon, {
3047
+ name: statusConfig.icon,
3048
+ size: sizeStyles.iconSize,
3049
+ iconColor: "inherit",
3050
+ "aria-hidden": "true"
3051
+ }), displayLabel, jsxs(ScreenReaderOnly, {
3052
+ children: [status, " status"]
3053
+ })]
3054
+ });
3042
3055
  };
3043
3056
  StatusBadge.displayName = 'StatusBadge';
3044
- var templateObject_1$s, templateObject_2$m, templateObject_3$j;
3057
+ var templateObject_1$s, templateObject_2$m, templateObject_3$k;
3045
3058
 
3046
- React.createElement;
3047
3059
  var semantic$c = tokensData.semantic;
3048
3060
  var StyledTag = styled.span.withConfig({
3049
3061
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -3122,50 +3134,44 @@ var Tag = function Tag(_a) {
3122
3134
  border = _c === void 0 ? true : _c,
3123
3135
  dataTestId = _a["data-testid"],
3124
3136
  props = __rest(_a, ["children", "variant", "border", 'data-testid']);
3125
- return /*#__PURE__*/React.createElement(StyledTag, _extends({
3126
- $variant: variant,
3127
- $border: border,
3137
+ return jsx(StyledTag, __assign({
3138
+ "$variant": variant,
3139
+ "$border": border,
3128
3140
  "data-testid": dataTestId,
3129
3141
  "data-variant": variant,
3130
3142
  "data-border": border,
3131
3143
  role: "status",
3132
3144
  "aria-label": typeof children === 'string' ? "Tag: ".concat(children) : undefined
3133
- }, props), children);
3145
+ }, props, {
3146
+ children: children
3147
+ }));
3134
3148
  };
3135
3149
  var templateObject_1$r;
3136
3150
 
3137
- React.createElement;
3138
- var StyledCard = styled.div.withConfig({
3139
- displayName: "AccountCard__StyledCard",
3140
- componentId: "sc-1erp7zn-0"
3141
- })(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n min-width: 300px;\n min-height: 200px;\n padding: ", ";\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n transition: all 0.2s ease;\n \n ", "\n"], ["\n min-width: 300px;\n min-height: 200px;\n padding: ", ";\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n transition: all 0.2s ease;\n \n ", "\n"])), tokensData.semantic.spacing.layout.lg, tokensData.semantic.color.background.surface, tokensData.semantic.color.border["default"], tokensData.base.border.radius[5], tokensData.base.shadow[3], function (_a) {
3142
- var $clickable = _a.$clickable;
3143
- return $clickable && "\n cursor: pointer;\n \n &:hover {\n box-shadow: ".concat(tokensData.base.shadow[4], ";\n transform: translateY(-2px);\n }\n \n &:active {\n transform: translateY(0);\n }\n \n &:focus-visible {\n outline: 2px solid ").concat(tokensData.semantic.color.border.interactive, ";\n outline-offset: 2px;\n }\n ");
3144
- });
3145
3151
  var StyledHeader$2 = styled.div.withConfig({
3146
3152
  displayName: "AccountCard__StyledHeader",
3147
- componentId: "sc-1erp7zn-1"
3148
- })(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n margin-bottom: ", ";\n"], ["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n margin-bottom: ", ";\n"])), tokensData.semantic.spacing.layout.md);
3153
+ componentId: "sc-1erp7zn-0"
3154
+ })(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n margin-bottom: ", ";\n"], ["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n margin-bottom: ", ";\n"])), tokensData.semantic.spacing.layout.md);
3149
3155
  var StyledIconWrapper = styled.div.withConfig({
3150
3156
  displayName: "AccountCard__StyledIconWrapper",
3151
- componentId: "sc-1erp7zn-2"
3152
- })(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border-radius: ", ";\n color: ", ";\n"], ["\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border-radius: ", ";\n color: ", ";\n"])), tokensData.semantic.color.background.interactive, tokensData.base.border.radius[3], tokensData.semantic.color.icon.interactive);
3157
+ componentId: "sc-1erp7zn-1"
3158
+ })(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border-radius: ", ";\n color: ", ";\n"], ["\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border-radius: ", ";\n color: ", ";\n"])), tokensData.semantic.color.background.inverse, tokensData.base.border.radius[3], tokensData.semantic.color.icon.interactive);
3153
3159
  var StyledBalanceSection = styled.div.withConfig({
3154
3160
  displayName: "AccountCard__StyledBalanceSection",
3155
- componentId: "sc-1erp7zn-3"
3156
- })(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), tokensData.semantic.spacing.layout.lg);
3161
+ componentId: "sc-1erp7zn-2"
3162
+ })(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), tokensData.semantic.spacing.layout.lg);
3157
3163
  var StyledTrendSection = styled.div.withConfig({
3158
3164
  displayName: "AccountCard__StyledTrendSection",
3159
- componentId: "sc-1erp7zn-4"
3160
- })(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n margin-top: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n margin-top: ", ";\n"])), tokensData.semantic.spacing.layout.xs, tokensData.semantic.spacing.layout.sm);
3165
+ componentId: "sc-1erp7zn-3"
3166
+ })(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n margin-top: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n margin-top: ", ";\n"])), tokensData.semantic.spacing.layout.xs, tokensData.semantic.spacing.layout.sm);
3161
3167
  var StyledActions$1 = styled.div.withConfig({
3162
3168
  displayName: "AccountCard__StyledActions",
3163
- componentId: "sc-1erp7zn-5"
3164
- })(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n margin-top: auto;\n \n & > * {\n flex: 1;\n }\n"], ["\n display: flex;\n gap: ", ";\n margin-top: auto;\n \n & > * {\n flex: 1;\n }\n"])), tokensData.semantic.spacing.layout.sm);
3169
+ componentId: "sc-1erp7zn-4"
3170
+ })(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n margin-top: auto;\n \n & > * {\n flex: 1;\n }\n"], ["\n display: flex;\n gap: ", ";\n margin-top: auto;\n \n & > * {\n flex: 1;\n }\n"])), tokensData.semantic.spacing.layout.sm);
3165
3171
  var StyledStackWrapper = styled.div.withConfig({
3166
3172
  displayName: "AccountCard__StyledStackWrapper",
3167
- componentId: "sc-1erp7zn-6"
3168
- })(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n height: 100%;\n min-height: 168px;\n"], ["\n height: 100%;\n min-height: 168px;\n"
3173
+ componentId: "sc-1erp7zn-5"
3174
+ })(templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n height: 100%;\n min-height: 168px;\n"], ["\n height: 100%;\n min-height: 168px;\n"
3169
3175
  // Map account types to icon names (using placeholders)
3170
3176
  ])));
3171
3177
  // Map account types to icon names (using placeholders)
@@ -3225,78 +3231,109 @@ var AccountCard = function AccountCard(_a) {
3225
3231
  onClick === null || onClick === void 0 ? void 0 : onClick();
3226
3232
  }
3227
3233
  };
3228
- return /*#__PURE__*/React.createElement(StyledCard, {
3229
- $clickable: isClickable,
3234
+ return jsx(Box, {
3235
+ minWidth: "300px",
3236
+ minHeight: "200px",
3237
+ p: "lg",
3238
+ bg: "surface",
3239
+ border: "default",
3240
+ borderRadius: "5",
3241
+ shadow: "3",
3242
+ transition: "all 0.2s ease",
3243
+ cursor: isClickable ? 'pointer' : 'default',
3244
+ hoverShadow: isClickable ? '4' : undefined,
3245
+ hoverTransform: isClickable ? 'translateY(-2px)' : undefined,
3230
3246
  onClick: handleClick,
3231
3247
  onKeyDown: handleKeyDown,
3232
3248
  tabIndex: isClickable ? 0 : undefined,
3233
3249
  role: isClickable ? 'button' : 'article',
3234
3250
  "aria-label": isClickable ? "".concat(accountName, " account, balance ").concat(balance) : undefined,
3235
- "data-testid": dataTestId
3236
- }, /*#__PURE__*/React.createElement(StyledStackWrapper, null, /*#__PURE__*/React.createElement(Stack, {
3237
- direction: "column",
3238
- gap: "none"
3239
- }, /*#__PURE__*/React.createElement(StyledHeader$2, null, /*#__PURE__*/React.createElement(Stack, {
3240
- direction: "row",
3241
- gap: "md",
3242
- alignItems: "center"
3243
- }, /*#__PURE__*/React.createElement(StyledIconWrapper, {
3244
- "aria-label": "".concat(accountType, " account"),
3245
- role: "img"
3246
- }, /*#__PURE__*/React.createElement(Icon, {
3247
- name: accountIcon,
3248
- size: "md"
3249
- })), /*#__PURE__*/React.createElement(Stack, {
3250
- direction: "column",
3251
- gap: "xs"
3252
- }, /*#__PURE__*/React.createElement(Typography, {
3253
- variant: "h4"
3254
- }, accountName), accountNumber && /*#__PURE__*/React.createElement(Typography, {
3255
- variant: "caption",
3256
- color: "subdued"
3257
- }, "\u2022\u2022\u2022\u2022 ", accountNumber)))), /*#__PURE__*/React.createElement(StyledBalanceSection, null, /*#__PURE__*/React.createElement(Stack, {
3258
- direction: "column",
3259
- gap: "xs"
3260
- }, /*#__PURE__*/React.createElement(Typography, {
3261
- variant: "caption",
3262
- color: "subdued"
3263
- }, "Balance"), /*#__PURE__*/React.createElement(MoneyDisplay, {
3264
- amount: balance,
3265
- currency: currency,
3266
- size: "xlarge",
3267
- weight: "bold",
3268
- "data-testid": dataTestId ? "".concat(dataTestId, "-balance") : undefined
3269
- })), trend && trendValue && /*#__PURE__*/React.createElement(StyledTrendSection, {
3270
- "aria-label": "Trend ".concat(trend),
3271
- role: "img"
3272
- }, /*#__PURE__*/React.createElement(Icon, {
3273
- name: trendIcon,
3274
- size: "xs",
3275
- iconColor: trendColor
3276
- }), /*#__PURE__*/React.createElement(Typography, {
3277
- variant: "caption",
3278
- color: trendColor
3279
- }, trendValue))), (action || secondaryAction) && /*#__PURE__*/React.createElement(StyledActions$1, null, action && /*#__PURE__*/React.createElement(Button, {
3280
- onClick: function onClick(e) {
3281
- e.stopPropagation();
3282
- action.onClick();
3283
- },
3284
- variant: action.variant || 'primary',
3285
- iconName: action.icon,
3286
- "data-testid": dataTestId ? "".concat(dataTestId, "-action") : undefined
3287
- }, action.label), secondaryAction && /*#__PURE__*/React.createElement(Button, {
3288
- onClick: function onClick(e) {
3289
- e.stopPropagation();
3290
- secondaryAction.onClick();
3291
- },
3292
- variant: secondaryAction.variant || 'naked',
3293
- iconName: secondaryAction.icon,
3294
- "data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined
3295
- }, secondaryAction.label)))));
3251
+ "data-testid": dataTestId,
3252
+ children: jsx(StyledStackWrapper, {
3253
+ children: jsxs(Stack, {
3254
+ direction: "column",
3255
+ gap: "none",
3256
+ children: [jsx(StyledHeader$2, {
3257
+ children: jsxs(Stack, {
3258
+ direction: "row",
3259
+ gap: "md",
3260
+ alignItems: "center",
3261
+ children: [jsx(StyledIconWrapper, {
3262
+ "aria-label": "".concat(accountType, " account"),
3263
+ role: "img",
3264
+ children: jsx(Icon, {
3265
+ name: accountIcon,
3266
+ iconColor: "inverse",
3267
+ size: "md"
3268
+ })
3269
+ }), jsxs(Stack, {
3270
+ direction: "column",
3271
+ gap: "none",
3272
+ children: [jsx(Typography, {
3273
+ variant: "h4",
3274
+ children: accountName
3275
+ }), accountNumber && jsxs(Typography, {
3276
+ variant: "caption",
3277
+ color: "subdued",
3278
+ children: ["\u2022\u2022\u2022\u2022 ", accountNumber]
3279
+ })]
3280
+ })]
3281
+ })
3282
+ }), jsxs(StyledBalanceSection, {
3283
+ children: [jsxs(Stack, {
3284
+ direction: "column",
3285
+ gap: "xs",
3286
+ children: [jsx(Typography, {
3287
+ variant: "caption",
3288
+ color: "subdued",
3289
+ children: "Balance"
3290
+ }), jsx(MoneyDisplay, {
3291
+ amount: balance,
3292
+ currency: currency,
3293
+ size: "xlarge",
3294
+ weight: "bold",
3295
+ "data-testid": dataTestId ? "".concat(dataTestId, "-balance") : undefined
3296
+ })]
3297
+ }), trend && trendValue && jsxs(StyledTrendSection, {
3298
+ "aria-label": "Trend ".concat(trend),
3299
+ role: "img",
3300
+ children: [jsx(Icon, {
3301
+ name: trendIcon,
3302
+ size: "xs",
3303
+ iconColor: trendColor
3304
+ }), jsx(Typography, {
3305
+ variant: "caption",
3306
+ color: trendColor,
3307
+ children: trendValue
3308
+ })]
3309
+ })]
3310
+ }), (action || secondaryAction) && jsxs(StyledActions$1, {
3311
+ children: [action && jsx(Button, {
3312
+ onClick: function onClick(e) {
3313
+ e.stopPropagation();
3314
+ action.onClick();
3315
+ },
3316
+ variant: action.variant || 'primary',
3317
+ iconName: action.icon,
3318
+ "data-testid": dataTestId ? "".concat(dataTestId, "-action") : undefined,
3319
+ children: action.label
3320
+ }), secondaryAction && jsx(Button, {
3321
+ onClick: function onClick(e) {
3322
+ e.stopPropagation();
3323
+ secondaryAction.onClick();
3324
+ },
3325
+ variant: secondaryAction.variant || 'naked',
3326
+ iconName: secondaryAction.icon,
3327
+ "data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined,
3328
+ children: secondaryAction.label
3329
+ })]
3330
+ })]
3331
+ })
3332
+ })
3333
+ });
3296
3334
  };
3297
- var templateObject_1$q, templateObject_2$l, templateObject_3$i, templateObject_4$f, templateObject_5$c, templateObject_6$b, templateObject_7$9;
3335
+ var templateObject_1$q, templateObject_2$l, templateObject_3$j, templateObject_4$f, templateObject_5$c, templateObject_6$a;
3298
3336
 
3299
- React.createElement;
3300
3337
  var semantic$b = tokensData.semantic,
3301
3338
  base$9 = tokensData.base;
3302
3339
  var slideUp = keyframes(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n"], ["\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n"])));
@@ -3304,7 +3341,7 @@ var fadeIn$1 = keyframes(templateObject_2$k || (templateObject_2$k = __makeTempl
3304
3341
  var StyledOverlay$1 = styled.div.withConfig({
3305
3342
  displayName: "ActionSheet__StyledOverlay",
3306
3343
  componentId: "sc-regbol-0"
3307
- })(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);
3344
+ })(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);
3308
3345
  var StyledActionSheet = styled.div.withConfig({
3309
3346
  displayName: "ActionSheet__StyledActionSheet",
3310
3347
  componentId: "sc-regbol-1"
@@ -3316,15 +3353,15 @@ var StyledHeader$1 = styled.div.withConfig({
3316
3353
  var StyledHeaderContent = styled.div.withConfig({
3317
3354
  displayName: "ActionSheet__StyledHeaderContent",
3318
3355
  componentId: "sc-regbol-3"
3319
- })(templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
3356
+ })(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
3320
3357
  var StyledCloseButton = styled.button.withConfig({
3321
3358
  displayName: "ActionSheet__StyledCloseButton",
3322
3359
  componentId: "sc-regbol-4"
3323
- })(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: ", " solid ", ";\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: ", " solid ", ";\n outline-offset: ", ";\n }\n"])), base$9.spacing[2], semantic$b.color.icon.subdued, base$9.border.radius[2], semantic$b.motion.hover, base$9.spacing[2], semantic$b.color.icon["default"], semantic$b.color.background.surface, base$9.border.width[2], semantic$b.color.border.strong, base$9.spacing[1]);
3360
+ })(templateObject_7$7 || (templateObject_7$7 = __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: ", " solid ", ";\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: ", " solid ", ";\n outline-offset: ", ";\n }\n"])), base$9.spacing[2], semantic$b.color.icon.subdued, base$9.border.radius[2], semantic$b.motion.hover, base$9.spacing[2], semantic$b.color.icon["default"], semantic$b.color.background.surface, base$9.border.width[2], semantic$b.color.border.strong, base$9.spacing[1]);
3324
3361
  var StyledActionsList = styled.div.withConfig({
3325
3362
  displayName: "ActionSheet__StyledActionsList",
3326
3363
  componentId: "sc-regbol-5"
3327
- })(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n padding: ", " 0;\n"], ["\n padding: ", " 0;\n"])), base$9.spacing[2]);
3364
+ })(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n padding: ", " 0;\n"], ["\n padding: ", " 0;\n"])), base$9.spacing[2]);
3328
3365
  var StyledActionButton = styled.button.withConfig({
3329
3366
  displayName: "ActionSheet__StyledActionButton",
3330
3367
  componentId: "sc-regbol-6"
@@ -3482,59 +3519,75 @@ var ActionSheet = function ActionSheet(_a) {
3482
3519
  return a.destructive;
3483
3520
  });
3484
3521
  var hasDestructive = destructiveIndex >= 0;
3485
- return /*#__PURE__*/createPortal(/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledOverlay$1, {
3486
- onClick: handleOverlayClick
3487
- }), /*#__PURE__*/React.createElement(StyledActionSheet, {
3488
- ref: sheetRef,
3489
- role: "dialog",
3490
- "aria-modal": "true",
3491
- "aria-labelledby": title ? 'action-sheet-title' : undefined,
3492
- "aria-describedby": description ? 'action-sheet-description' : undefined,
3493
- "data-testid": dataTestId
3494
- }, (title || description || showCloseButton) && /*#__PURE__*/React.createElement(StyledHeader$1, null, /*#__PURE__*/React.createElement(StyledHeaderContent, null, /*#__PURE__*/React.createElement(Stack, {
3495
- direction: "column",
3496
- gap: description && title ? 'xs' : 'none'
3497
- }, title && /*#__PURE__*/React.createElement("div", {
3498
- id: "action-sheet-title"
3499
- }, /*#__PURE__*/React.createElement(Typography, {
3500
- variant: "h3"
3501
- }, title)), description && /*#__PURE__*/React.createElement("div", {
3502
- id: "action-sheet-description"
3503
- }, /*#__PURE__*/React.createElement(Typography, {
3504
- variant: "body",
3505
- color: "subdued"
3506
- }, description)))), showCloseButton && /*#__PURE__*/React.createElement(StyledCloseButton, {
3507
- type: "button",
3508
- onClick: onClose,
3509
- "aria-label": "Close"
3510
- }, /*#__PURE__*/React.createElement(Icon, {
3511
- name: "close",
3512
- size: "sm",
3513
- iconColor: "subdued"
3514
- }))), /*#__PURE__*/React.createElement(StyledActionsList, null, actions.map(function (action, index) {
3515
- return /*#__PURE__*/React.createElement("div", {
3516
- key: action.id
3517
- }, hasDestructive && index === destructiveIndex && index > 0 && /*#__PURE__*/React.createElement(StyledDivider, null), /*#__PURE__*/React.createElement(StyledActionButton, {
3518
- type: "button",
3519
- onClick: function onClick() {
3520
- return handleActionClick(action);
3521
- },
3522
- disabled: action.disabled,
3523
- $destructive: action.destructive || false,
3524
- $disabled: action.disabled || false,
3525
- "aria-label": action.label
3526
- }, action.icon && /*#__PURE__*/React.createElement(Icon, {
3527
- name: action.icon,
3528
- size: "md",
3529
- iconColor: action.disabled ? 'disabled' : action.destructive ? 'error' : 'default'
3530
- }), /*#__PURE__*/React.createElement(Typography, {
3531
- variant: "body"
3532
- }, action.label)));
3533
- })))), document.body);
3522
+ return /*#__PURE__*/createPortal(jsxs(Fragment, {
3523
+ children: [jsx(StyledOverlay$1, {
3524
+ onClick: handleOverlayClick
3525
+ }), jsxs(StyledActionSheet, {
3526
+ ref: sheetRef,
3527
+ role: "dialog",
3528
+ "aria-modal": "true",
3529
+ "aria-labelledby": title ? 'action-sheet-title' : undefined,
3530
+ "aria-describedby": description ? 'action-sheet-description' : undefined,
3531
+ "data-testid": dataTestId,
3532
+ children: [(title || description || showCloseButton) && jsxs(StyledHeader$1, {
3533
+ children: [jsx(StyledHeaderContent, {
3534
+ children: jsxs(Stack, {
3535
+ direction: "column",
3536
+ gap: description && title ? 'xs' : 'none',
3537
+ children: [title && jsx("div", {
3538
+ id: "action-sheet-title",
3539
+ children: jsx(Typography, {
3540
+ variant: "h3",
3541
+ children: title
3542
+ })
3543
+ }), description && jsx("div", {
3544
+ id: "action-sheet-description",
3545
+ children: jsx(Typography, {
3546
+ variant: "body",
3547
+ color: "subdued",
3548
+ children: description
3549
+ })
3550
+ })]
3551
+ })
3552
+ }), showCloseButton && jsx(StyledCloseButton, {
3553
+ type: "button",
3554
+ onClick: onClose,
3555
+ "aria-label": "Close",
3556
+ children: jsx(Icon, {
3557
+ name: "close",
3558
+ size: "sm",
3559
+ iconColor: "subdued"
3560
+ })
3561
+ })]
3562
+ }), jsx(StyledActionsList, {
3563
+ children: actions.map(function (action, index) {
3564
+ return jsxs("div", {
3565
+ children: [hasDestructive && index === destructiveIndex && index > 0 && jsx(StyledDivider, {}), jsxs(StyledActionButton, {
3566
+ type: "button",
3567
+ onClick: function onClick() {
3568
+ return handleActionClick(action);
3569
+ },
3570
+ disabled: action.disabled,
3571
+ "$destructive": action.destructive || false,
3572
+ "$disabled": action.disabled || false,
3573
+ "aria-label": action.label,
3574
+ children: [action.icon && jsx(Icon, {
3575
+ name: action.icon,
3576
+ size: "md",
3577
+ iconColor: action.disabled ? 'disabled' : action.destructive ? 'error' : 'default'
3578
+ }), jsx(Typography, {
3579
+ variant: "body",
3580
+ children: action.label
3581
+ })]
3582
+ })]
3583
+ }, action.id);
3584
+ })
3585
+ })]
3586
+ })]
3587
+ }), document.body);
3534
3588
  };
3535
- var templateObject_1$p, templateObject_2$k, templateObject_3$h, templateObject_4$e, templateObject_5$b, templateObject_6$a, templateObject_7$8, templateObject_8$5, templateObject_9$3, templateObject_10$2;
3589
+ 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;
3536
3590
 
3537
- React.createElement;
3538
3591
  var semantic$a = tokensData.semantic,
3539
3592
  base$8 = tokensData.base;
3540
3593
  // Default icons by variant
@@ -3597,7 +3650,7 @@ var StyledIconContainer$1 = styled.div.withConfig({
3597
3650
  var StyledContent$1 = styled.div.withConfig({
3598
3651
  displayName: "Alert__StyledContent",
3599
3652
  componentId: "sc-18tq5d-2"
3600
- })(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);
3653
+ })(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);
3601
3654
  var StyledTitle = styled.span.withConfig({
3602
3655
  displayName: "Alert__StyledTitle",
3603
3656
  componentId: "sc-18tq5d-3"
@@ -3609,11 +3662,11 @@ var StyledMessage = styled.span.withConfig({
3609
3662
  var StyledActions = styled.div.withConfig({
3610
3663
  displayName: "Alert__StyledActions",
3611
3664
  componentId: "sc-18tq5d-5"
3612
- })(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"])), semantic$a.spacing.layout.sm);
3665
+ })(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"])), semantic$a.spacing.layout.sm);
3613
3666
  var StyledDismissButton = styled(IconButton).withConfig({
3614
3667
  displayName: "Alert__StyledDismissButton",
3615
3668
  componentId: "sc-18tq5d-6"
3616
- })(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n margin-left: ", ";\n\tposition: absolute;\n\tright: 8px;\n\ttop: 10px;\n"], ["\n margin-left: ", ";\n\tposition: absolute;\n\tright: 8px;\n\ttop: 10px;\n"])), semantic$a.spacing.layout.xs);
3669
+ })(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n margin-left: ", ";\n\tposition: absolute;\n\tright: 8px;\n\ttop: 10px;\n"], ["\n margin-left: ", ";\n\tposition: absolute;\n\tright: 8px;\n\ttop: 10px;\n"])), semantic$a.spacing.layout.xs);
3617
3670
  var Alert = function Alert(_a) {
3618
3671
  var _b = _a.variant,
3619
3672
  variant = _b === void 0 ? 'info' : _b,
@@ -3645,36 +3698,45 @@ var Alert = function Alert(_a) {
3645
3698
  var alertTitleColor = variantTitleColors[variant];
3646
3699
  // Determine ARIA role based on variant and aria-live
3647
3700
  var role = variant === 'error' ? 'alert' : 'status';
3648
- return /*#__PURE__*/React.createElement(StyledAlert, _extends({
3701
+ return jsxs(StyledAlert, __assign({
3649
3702
  role: role,
3650
3703
  "aria-live": ariaLive,
3651
- $variant: variant,
3652
- $inline: inline,
3704
+ "$variant": variant,
3705
+ "$inline": inline,
3653
3706
  "data-testid": dataTestId
3654
- }, props), /*#__PURE__*/React.createElement(StyledIconContainer$1, {
3655
- "aria-hidden": "true"
3656
- }, /*#__PURE__*/React.createElement(Icon, {
3657
- name: iconName,
3658
- size: "md",
3659
- iconColor: alertIconColor
3660
- })), /*#__PURE__*/React.createElement(StyledContent$1, null, title && /*#__PURE__*/React.createElement(StyledTitle, {
3661
- role: "heading",
3662
- "aria-level": 6,
3663
- color: alertTitleColor
3664
- }, title), /*#__PURE__*/React.createElement(StyledMessage, null, children)), (action || dismissible) && /*#__PURE__*/React.createElement(StyledActions, null, action, dismissible && /*#__PURE__*/React.createElement(StyledDismissButton, {
3665
- iconName: "close",
3666
- size: "small",
3667
- variant: "naked",
3668
- onClick: handleDismiss,
3669
- "aria-label": "Dismiss alert",
3670
- "data-testid": dataTestId ? "".concat(dataTestId, "-dismiss") : undefined
3671
- })));
3707
+ }, props, {
3708
+ children: [jsx(StyledIconContainer$1, {
3709
+ "aria-hidden": "true",
3710
+ children: jsx(Icon, {
3711
+ name: iconName,
3712
+ size: "md",
3713
+ iconColor: alertIconColor
3714
+ })
3715
+ }), jsxs(StyledContent$1, {
3716
+ children: [title && jsx(StyledTitle, {
3717
+ role: "heading",
3718
+ "aria-level": 6,
3719
+ color: alertTitleColor,
3720
+ children: title
3721
+ }), jsx(StyledMessage, {
3722
+ children: children
3723
+ })]
3724
+ }), (action || dismissible) && jsxs(StyledActions, {
3725
+ children: [action, dismissible && jsx(StyledDismissButton, {
3726
+ iconName: "close",
3727
+ size: "small",
3728
+ variant: "naked",
3729
+ onClick: handleDismiss,
3730
+ "aria-label": "Dismiss alert",
3731
+ "data-testid": dataTestId ? "".concat(dataTestId, "-dismiss") : undefined
3732
+ })]
3733
+ })]
3734
+ }));
3672
3735
  };
3673
3736
  Alert.displayName = 'Alert';
3674
- var templateObject_1$o, templateObject_2$j, templateObject_3$g, templateObject_4$d, templateObject_5$a, templateObject_6$9, templateObject_7$7;
3737
+ var templateObject_1$o, templateObject_2$j, templateObject_3$h, templateObject_4$d, templateObject_5$a, templateObject_6$8, templateObject_7$6;
3675
3738
 
3676
- React.createElement;
3677
- var _a$3, _b$1, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
3739
+ var _a$3, _b$1, _c, _d, _e, _f;
3678
3740
  var BreadcrumbNavStyled = styled.nav.withConfig({
3679
3741
  displayName: "Breadcrumbs__BreadcrumbNavStyled",
3680
3742
  componentId: "sc-7ouzg5-0"
@@ -3682,37 +3744,60 @@ var BreadcrumbNavStyled = styled.nav.withConfig({
3682
3744
  var BreadcrumbStyled = styled.li.withConfig({
3683
3745
  displayName: "Breadcrumbs__BreadcrumbStyled",
3684
3746
  componentId: "sc-7ouzg5-1"
3685
- })(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"]);
3747
+ })(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"]);
3748
+ var BreadcrumbSeparator = styled.span.withConfig({
3749
+ displayName: "Breadcrumbs__BreadcrumbSeparator",
3750
+ componentId: "sc-7ouzg5-2"
3751
+ })(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"])));
3686
3752
  var isInternalUrl = function isInternalUrl(url) {
3687
3753
  return url.startsWith('/') && !url.startsWith('http');
3688
3754
  };
3689
3755
  var Breadcrumbs = function Breadcrumbs(_a) {
3690
3756
  var breadcrumbs = _a.breadcrumbs,
3691
3757
  LinkComponent = _a.linkComponent;
3692
- return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(BreadcrumbNavStyled, {
3693
- "aria-label": "breadcrumb"
3694
- }, /*#__PURE__*/React.createElement("ol", null, breadcrumbs.map(function (breadcrumb, index) {
3695
- return /*#__PURE__*/React.createElement(BreadcrumbStyled, {
3696
- key: index
3697
- }, index === breadcrumbs.length - 1 ? /*#__PURE__*/React.createElement(Typography, {
3698
- variant: "caption"
3699
- }, breadcrumb.label) : LinkComponent && isInternalUrl(breadcrumb.url) ? /*#__PURE__*/React.createElement(LinkComponent, {
3700
- href: breadcrumb.url
3701
- }, /*#__PURE__*/React.createElement(Typography, {
3702
- variant: "caption"
3703
- }, breadcrumb.label)) : /*#__PURE__*/React.createElement("a", _extends({
3704
- href: breadcrumb.url
3705
- }, !isInternalUrl(breadcrumb.url) && {
3706
- target: "_blank",
3707
- rel: "noopener noreferrer"
3708
- }), /*#__PURE__*/React.createElement(Typography, {
3709
- variant: "caption"
3710
- }, breadcrumb.label)));
3711
- }))));
3758
+ return jsx(Container, {
3759
+ children: jsx(BreadcrumbNavStyled, {
3760
+ "aria-label": "breadcrumb",
3761
+ children: jsx("ol", {
3762
+ children: breadcrumbs.map(function (breadcrumb, index) {
3763
+ return jsxs(React.Fragment, {
3764
+ children: [jsx(BreadcrumbStyled, {
3765
+ children: index === breadcrumbs.length - 1 ? jsx(Typography, {
3766
+ variant: "caption",
3767
+ children: breadcrumb.label
3768
+ }) : LinkComponent && isInternalUrl(breadcrumb.url) ? jsx(LinkComponent, {
3769
+ href: breadcrumb.url,
3770
+ children: jsx(Typography, {
3771
+ variant: "caption",
3772
+ children: breadcrumb.label
3773
+ })
3774
+ }) : jsx("a", __assign({
3775
+ href: breadcrumb.url
3776
+ }, !isInternalUrl(breadcrumb.url) && {
3777
+ target: "_blank",
3778
+ rel: "noopener noreferrer"
3779
+ }, {
3780
+ children: jsx(Typography, {
3781
+ variant: "caption",
3782
+ children: breadcrumb.label
3783
+ })
3784
+ }))
3785
+ }), index < breadcrumbs.length - 1 && jsx(BreadcrumbSeparator, {
3786
+ "aria-hidden": "true",
3787
+ children: jsx(Icon, {
3788
+ name: "arrowRight",
3789
+ size: "xs",
3790
+ iconColor: "subdued"
3791
+ })
3792
+ })]
3793
+ }, index);
3794
+ })
3795
+ })
3796
+ })
3797
+ });
3712
3798
  };
3713
- var templateObject_1$n, templateObject_2$i;
3799
+ var templateObject_1$n, templateObject_2$i, templateObject_3$g;
3714
3800
 
3715
- React.createElement;
3716
3801
  var CardSmallStyled = styled.div.withConfig({
3717
3802
  displayName: "CardSmall__CardSmallStyled",
3718
3803
  componentId: "sc-jpcqvd-0"
@@ -3727,40 +3812,49 @@ var CardSmall = function CardSmall(_a) {
3727
3812
  if (!picture || !meta) {
3728
3813
  return null;
3729
3814
  }
3730
- var content = /*#__PURE__*/React.createElement(Stack, {
3731
- direction: "column",
3732
- gap: "sm"
3733
- }, /*#__PURE__*/React.createElement(Picture, {
3734
- title: title,
3735
- src: picture,
3736
- width: 300,
3737
- height: 300
3738
- }), /*#__PURE__*/React.createElement(Stack, {
3739
- direction: "column",
3740
- gap: "xs"
3741
- }, /*#__PURE__*/React.createElement(Typography, {
3742
- variant: "small"
3743
- }, title), /*#__PURE__*/React.createElement(Stack, {
3815
+ var content = jsxs(Stack, {
3744
3816
  direction: "column",
3745
- gap: "none"
3746
- }, subtitle && /*#__PURE__*/React.createElement(Typography, {
3747
- variant: "label",
3748
- color: "subdued"
3749
- }, subtitle), meta && /*#__PURE__*/React.createElement(Typography, {
3750
- variant: "label",
3751
- color: "subdued"
3752
- }, meta))));
3753
- return /*#__PURE__*/React.createElement(CardSmallStyled, null, LinkComponent && href ? /*#__PURE__*/React.createElement(LinkComponent, {
3754
- href: href,
3755
- "aria-label": title
3756
- }, content) : /*#__PURE__*/React.createElement("a", {
3757
- href: href || '#',
3758
- "aria-label": title
3759
- }, content));
3817
+ gap: 'sm',
3818
+ children: [jsx(Picture, {
3819
+ title: title,
3820
+ src: picture,
3821
+ width: 300,
3822
+ height: 300
3823
+ }), jsxs(Stack, {
3824
+ direction: "column",
3825
+ gap: 'xs',
3826
+ children: [jsx(Typography, {
3827
+ variant: "small",
3828
+ children: title
3829
+ }), jsxs(Stack, {
3830
+ direction: "column",
3831
+ gap: 'none',
3832
+ children: [subtitle && jsx(Typography, {
3833
+ variant: "label",
3834
+ color: "subdued",
3835
+ children: subtitle
3836
+ }), meta && jsx(Typography, {
3837
+ variant: "label",
3838
+ color: "subdued",
3839
+ children: meta
3840
+ })]
3841
+ })]
3842
+ })]
3843
+ });
3844
+ return jsx(CardSmallStyled, {
3845
+ children: LinkComponent && href ? jsx(LinkComponent, {
3846
+ href: href,
3847
+ "aria-label": title,
3848
+ children: content
3849
+ }) : jsx("a", {
3850
+ href: href || '#',
3851
+ "aria-label": title,
3852
+ children: content
3853
+ })
3854
+ });
3760
3855
  };
3761
3856
  var templateObject_1$m;
3762
3857
 
3763
- React.createElement;
3764
3858
  var border$3 = tokensData.base.border;
3765
3859
  var CardLargeStyled = styled.div.withConfig({
3766
3860
  displayName: "CardLarge__CardLargeStyled",
@@ -3775,40 +3869,48 @@ var CardLarge = function CardLarge(_a) {
3775
3869
  picture = _a.picture,
3776
3870
  onImageClick = _a.onImageClick,
3777
3871
  imageHref = _a.imageHref;
3778
- return /*#__PURE__*/React.createElement(CardLargeStyled, null, /*#__PURE__*/React.createElement(Stack, {
3779
- direction: "column",
3780
- gap: "md"
3781
- }, /*#__PURE__*/React.createElement(Picture, {
3782
- title: title,
3783
- src: picture,
3784
- onClick: onImageClick,
3785
- href: imageHref
3786
- }), /*#__PURE__*/React.createElement(Stack, {
3787
- direction: "row",
3788
- alignItems: "flex-start",
3789
- justifyContent: "space-between",
3790
- gap: "xs"
3791
- }, /*#__PURE__*/React.createElement(Stack, {
3792
- direction: "column",
3793
- gap: "xs"
3794
- }, /*#__PURE__*/React.createElement(Typography, {
3795
- variant: "h5"
3796
- }, title), subtitle && /*#__PURE__*/React.createElement(Typography, {
3797
- variant: "small",
3798
- color: "subdued"
3799
- }, subtitle), excerpt && /*#__PURE__*/React.createElement(Typography, {
3800
- variant: "body"
3801
- }, excerpt)), /*#__PURE__*/React.createElement(Stack, {
3802
- direction: "row",
3803
- alignItems: "center",
3804
- gap: "xs"
3805
- }, Array.isArray(labels) && labels.map(function (label, index) {
3806
- return /*#__PURE__*/React.createElement(Chip, {
3807
- key: index,
3808
- title: label,
3809
- variant: "default"
3810
- });
3811
- })))));
3872
+ return jsx(CardLargeStyled, {
3873
+ children: jsxs(Stack, {
3874
+ direction: "column",
3875
+ gap: "md",
3876
+ children: [jsx(Picture, {
3877
+ title: title,
3878
+ src: picture,
3879
+ onClick: onImageClick,
3880
+ href: imageHref
3881
+ }), jsxs(Stack, {
3882
+ direction: "row",
3883
+ alignItems: "flex-start",
3884
+ justifyContent: "space-between",
3885
+ gap: "xs",
3886
+ children: [jsxs(Stack, {
3887
+ direction: "column",
3888
+ gap: "xs",
3889
+ children: [jsx(Typography, {
3890
+ variant: "h5",
3891
+ children: title
3892
+ }), subtitle && jsx(Typography, {
3893
+ variant: "small",
3894
+ color: "subdued",
3895
+ children: subtitle
3896
+ }), excerpt && jsx(Typography, {
3897
+ variant: "body",
3898
+ children: excerpt
3899
+ })]
3900
+ }), jsx(Stack, {
3901
+ direction: "row",
3902
+ alignItems: "center",
3903
+ gap: "xs",
3904
+ children: Array.isArray(labels) && labels.map(function (label, index) {
3905
+ return jsx(Chip, {
3906
+ title: label,
3907
+ variant: "default"
3908
+ }, index);
3909
+ })
3910
+ })]
3911
+ })]
3912
+ })
3913
+ });
3812
3914
  };
3813
3915
  var templateObject_1$l;
3814
3916
 
@@ -3894,7 +3996,6 @@ var StyledCheckboxLabel = styled.span.withConfig({
3894
3996
  });
3895
3997
  var templateObject_1$k, templateObject_2$h, templateObject_3$f, templateObject_4$c;
3896
3998
 
3897
- React.createElement;
3898
3999
  var StyledFieldContainer$3 = styled.div.withConfig({
3899
4000
  displayName: "Checkbox__StyledFieldContainer",
3900
4001
  componentId: "sc-vquz3v-0"
@@ -3983,41 +4084,46 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
3983
4084
  inputRef.current.indeterminate = indeterminate;
3984
4085
  }
3985
4086
  }, [indeterminate]);
3986
- return /*#__PURE__*/React.createElement(StyledFieldContainer$3, null, /*#__PURE__*/React.createElement(StyledCheckboxContainer, {
3987
- $disabled: disabled,
3988
- $labelPosition: labelPosition
3989
- }, /*#__PURE__*/React.createElement(HiddenCheckboxInput, _extends({
3990
- ref: inputRef,
3991
- type: "checkbox",
3992
- id: id,
3993
- checked: checked,
3994
- disabled: disabled,
3995
- onChange: onChange,
3996
- "aria-describedby": describedBy || undefined,
3997
- "aria-invalid": error ? true : undefined,
3998
- $state: state,
3999
- $checked: checked,
4000
- $indeterminate: indeterminate
4001
- }, rest)), /*#__PURE__*/React.createElement(StyledCheckbox, {
4002
- $state: state,
4003
- $checked: checked,
4004
- $indeterminate: indeterminate,
4005
- "aria-hidden": "true"
4006
- }), /*#__PURE__*/React.createElement(StyledCheckboxLabel, {
4007
- $disabled: disabled
4008
- }, label)), helperText && !error && /*#__PURE__*/React.createElement(StyledHelperText$4, {
4009
- id: helperTextId
4010
- }, helperText), error && /*#__PURE__*/React.createElement(StyledHelperText$4, {
4011
- id: errorId,
4012
- $error: true,
4013
- role: "alert",
4014
- "aria-live": "polite"
4015
- }, error));
4087
+ return jsxs(StyledFieldContainer$3, {
4088
+ children: [jsxs(StyledCheckboxContainer, {
4089
+ "$disabled": disabled,
4090
+ "$labelPosition": labelPosition,
4091
+ children: [jsx(HiddenCheckboxInput, __assign({
4092
+ ref: inputRef,
4093
+ type: "checkbox",
4094
+ id: id,
4095
+ checked: checked,
4096
+ disabled: disabled,
4097
+ onChange: onChange,
4098
+ "aria-describedby": describedBy || undefined,
4099
+ "aria-invalid": error ? true : undefined,
4100
+ "$state": state,
4101
+ "$checked": checked,
4102
+ "$indeterminate": indeterminate
4103
+ }, rest)), jsx(StyledCheckbox, {
4104
+ "$state": state,
4105
+ "$checked": checked,
4106
+ "$indeterminate": indeterminate,
4107
+ "aria-hidden": "true"
4108
+ }), jsx(StyledCheckboxLabel, {
4109
+ "$disabled": disabled,
4110
+ children: label
4111
+ })]
4112
+ }), helperText && !error && jsx(StyledHelperText$4, {
4113
+ id: helperTextId,
4114
+ children: helperText
4115
+ }), error && jsx(StyledHelperText$4, {
4116
+ id: errorId,
4117
+ "$error": true,
4118
+ role: "alert",
4119
+ "aria-live": "polite",
4120
+ children: error
4121
+ })]
4122
+ });
4016
4123
  });
4017
4124
  Checkbox.displayName = 'Checkbox';
4018
4125
  var templateObject_1$j, templateObject_2$g;
4019
4126
 
4020
- React.createElement;
4021
4127
  var ChipGroupWrapper = styled.div.withConfig({
4022
4128
  displayName: "ChipGroup__ChipGroupWrapper",
4023
4129
  componentId: "sc-ae049w-0"
@@ -4027,22 +4133,22 @@ var ChipGroup = function ChipGroup(_a) {
4027
4133
  _b = _a.variant,
4028
4134
  variant = _b === void 0 ? 'default' : _b,
4029
4135
  dataTestId = _a["data-testid"];
4030
- return /*#__PURE__*/React.createElement(ChipGroupWrapper, {
4031
- "data-testid": dataTestId
4032
- }, /*#__PURE__*/React.createElement(Stack, {
4033
- direction: "row",
4034
- gap: "sm"
4035
- }, labels && labels.map(function (title, index) {
4036
- return /*#__PURE__*/React.createElement(Chip, {
4037
- key: index,
4038
- title: title,
4039
- variant: variant
4040
- });
4041
- })));
4136
+ return jsx(ChipGroupWrapper, {
4137
+ "data-testid": dataTestId,
4138
+ children: jsx(Stack, {
4139
+ direction: "row",
4140
+ gap: "sm",
4141
+ children: labels && labels.map(function (title, index) {
4142
+ return jsx(Chip, {
4143
+ title: title,
4144
+ variant: variant
4145
+ }, index);
4146
+ })
4147
+ })
4148
+ });
4042
4149
  };
4043
4150
  var templateObject_1$i;
4044
4151
 
4045
- React.createElement;
4046
4152
  var _a$2 = tokensData.semantic,
4047
4153
  color$1 = _a$2.color,
4048
4154
  border$2 = _a$2.border,
@@ -4106,13 +4212,16 @@ var CopyButton = function CopyButton(_a) {
4106
4212
  }
4107
4213
  };
4108
4214
  }, []);
4109
- return /*#__PURE__*/React.createElement(CopyButtonWrapper, null, /*#__PURE__*/React.createElement(Button, {
4110
- variant: "secondary",
4111
- size: "small",
4112
- iconName: "copy",
4113
- onClick: handleCopy,
4114
- "data-testid": "copy-button"
4115
- }, copied ? 'Copied!' : 'Copy'));
4215
+ return jsx(CopyButtonWrapper, {
4216
+ children: jsx(Button, {
4217
+ variant: "secondary",
4218
+ size: "small",
4219
+ iconName: "copy",
4220
+ onClick: handleCopy,
4221
+ "data-testid": "copy-button",
4222
+ children: copied ? 'Copied!' : 'Copy'
4223
+ })
4224
+ });
4116
4225
  };
4117
4226
  /**
4118
4227
  * CodeBlock component for displaying formatted code with optional copy functionality
@@ -4128,16 +4237,18 @@ var CodeBlock = function CodeBlock(_a) {
4128
4237
  showCopyButton = _b === void 0 ? true : _b,
4129
4238
  onCopy = _a.onCopy,
4130
4239
  testId = _a["data-testid"];
4131
- return /*#__PURE__*/React.createElement(CodeBlockWrapper, null, /*#__PURE__*/React.createElement(StyledCodeBlock, {
4132
- "data-testid": testId
4133
- }, children), showCopyButton && /*#__PURE__*/React.createElement(CopyButton, {
4134
- text: children,
4135
- onCopy: onCopy
4136
- }));
4240
+ return jsxs(CodeBlockWrapper, {
4241
+ children: [jsx(StyledCodeBlock, {
4242
+ "data-testid": testId,
4243
+ children: children
4244
+ }), showCopyButton && jsx(CopyButton, {
4245
+ text: children,
4246
+ onCopy: onCopy
4247
+ })]
4248
+ });
4137
4249
  };
4138
4250
  var templateObject_1$h, templateObject_2$f, templateObject_3$e;
4139
4251
 
4140
- React.createElement;
4141
4252
  var StyledHeader = styled.div.withConfig({
4142
4253
  displayName: "DateGroup__StyledHeader",
4143
4254
  componentId: "sc-9nfm1f-0"
@@ -4193,36 +4304,43 @@ var DateGroup = function DateGroup(_a) {
4193
4304
  dataTestId = _a["data-testid"];
4194
4305
  // Determine total variant based on amount (positive = income, negative = expense)
4195
4306
  var totalVariant = totalAmount && totalAmount !== 0 ? totalAmount > 0 ? 'positive' : 'negative' : 'default';
4196
- return /*#__PURE__*/React.createElement("div", {
4307
+ return jsxs("div", {
4197
4308
  "data-testid": dataTestId,
4198
4309
  role: "group",
4199
- "aria-label": "Transactions for ".concat(date)
4200
- }, /*#__PURE__*/React.createElement(StyledHeader, {
4201
- $sticky: sticky,
4202
- "data-testid": dataTestId ? "".concat(dataTestId, "-header") : undefined
4203
- }, /*#__PURE__*/React.createElement(StyledLeftSection, null, /*#__PURE__*/React.createElement(DateFormatter, {
4204
- dateString: typeof date === 'string' ? date : date.toISOString(),
4205
- mode: format,
4206
- "data-testid": dataTestId ? "".concat(dataTestId, "-date") : undefined
4207
- }), showCount && count !== undefined && /*#__PURE__*/React.createElement(Typography, {
4208
- variant: "caption",
4209
- color: "subdued",
4210
- "data-testid": dataTestId ? "".concat(dataTestId, "-count") : undefined
4211
- }, "(", count, " ", count === 1 ? 'item' : 'items', ")")), /*#__PURE__*/React.createElement(StyledRightSection, null, showTotal && totalAmount !== undefined && /*#__PURE__*/React.createElement(MoneyDisplay, {
4212
- amount: totalAmount,
4213
- currency: currency,
4214
- variant: totalVariant,
4215
- size: "small",
4216
- weight: "medium",
4217
- showSign: true,
4218
- "data-testid": dataTestId ? "".concat(dataTestId, "-total") : undefined
4219
- }))), /*#__PURE__*/React.createElement(StyledContent, {
4220
- "data-testid": dataTestId ? "".concat(dataTestId, "-content") : undefined
4221
- }, children));
4310
+ "aria-label": "Transactions for ".concat(date),
4311
+ children: [jsxs(StyledHeader, {
4312
+ "$sticky": sticky,
4313
+ "data-testid": dataTestId ? "".concat(dataTestId, "-header") : undefined,
4314
+ children: [jsxs(StyledLeftSection, {
4315
+ children: [jsx(DateFormatter, {
4316
+ dateString: typeof date === 'string' ? date : date.toISOString(),
4317
+ mode: format,
4318
+ "data-testid": dataTestId ? "".concat(dataTestId, "-date") : undefined
4319
+ }), showCount && count !== undefined && jsxs(Typography, {
4320
+ variant: "caption",
4321
+ color: "subdued",
4322
+ "data-testid": dataTestId ? "".concat(dataTestId, "-count") : undefined,
4323
+ children: ["(", count, " ", count === 1 ? 'item' : 'items', ")"]
4324
+ })]
4325
+ }), jsx(StyledRightSection, {
4326
+ children: showTotal && totalAmount !== undefined && jsx(MoneyDisplay, {
4327
+ amount: totalAmount,
4328
+ currency: currency,
4329
+ variant: totalVariant,
4330
+ size: "small",
4331
+ weight: "medium",
4332
+ showSign: true,
4333
+ "data-testid": dataTestId ? "".concat(dataTestId, "-total") : undefined
4334
+ })
4335
+ })]
4336
+ }), jsx(StyledContent, {
4337
+ "data-testid": dataTestId ? "".concat(dataTestId, "-content") : undefined,
4338
+ children: children
4339
+ })]
4340
+ });
4222
4341
  };
4223
4342
  var templateObject_1$g, templateObject_2$e, templateObject_3$d, templateObject_4$b;
4224
4343
 
4225
- React.createElement;
4226
4344
  var semantic$9 = tokensData.semantic;
4227
4345
  var StyledContainer$1 = styled.div.withConfig({
4228
4346
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -4285,53 +4403,63 @@ var EmptyState = function EmptyState(_a) {
4285
4403
  }
4286
4404
  if (illustration !== 'custom') {
4287
4405
  var iconName = illustrationToIcon[illustration];
4288
- return /*#__PURE__*/React.createElement(Icon, {
4406
+ return jsx(Icon, {
4289
4407
  name: iconName,
4290
4408
  size: "2xl"
4291
4409
  });
4292
4410
  }
4293
4411
  return null;
4294
4412
  };
4295
- return /*#__PURE__*/React.createElement(StyledContainer$1, {
4296
- $size: size,
4413
+ return jsxs(StyledContainer$1, {
4414
+ "$size": size,
4297
4415
  "data-testid": dataTestId,
4298
4416
  role: "status",
4299
- "aria-label": "Empty state: ".concat(title)
4300
- }, /*#__PURE__*/React.createElement(StyledIllustration, {
4301
- $size: size,
4302
- $variant: variant,
4303
- "aria-hidden": "true"
4304
- }, renderIllustration()), /*#__PURE__*/React.createElement(StyledTextContainer, null, /*#__PURE__*/React.createElement(Typography, {
4305
- variant: size === 'small' ? 'h4' : size === 'large' ? 'h2' : 'h3',
4306
- color: variant === 'error' ? 'error' : 'default',
4307
- as: size === 'small' ? 'h4' : size === 'large' ? 'h2' : 'h3'
4308
- }, title), /*#__PURE__*/React.createElement("div", {
4309
- style: {
4310
- marginTop: semantic$9.spacing.layout.md
4311
- }
4312
- }, /*#__PURE__*/React.createElement(Typography, {
4313
- variant: "body",
4314
- color: "subdued"
4315
- }, description))), (action || secondaryAction) && /*#__PURE__*/React.createElement(Box, {
4316
- width: "100%",
4317
- maxWidth: "300px"
4318
- }, /*#__PURE__*/React.createElement(Stack, {
4319
- direction: "column",
4320
- gap: "sm"
4321
- }, action && /*#__PURE__*/React.createElement(Button, {
4322
- variant: action.variant || 'primary',
4323
- onClick: action.onClick,
4324
- iconName: action.icon,
4325
- "data-testid": dataTestId ? "".concat(dataTestId, "-primary-action") : undefined
4326
- }, action.label), secondaryAction && /*#__PURE__*/React.createElement(Button, {
4327
- variant: "naked",
4328
- onClick: secondaryAction.onClick,
4329
- "data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined
4330
- }, secondaryAction.label))));
4417
+ "aria-label": "Empty state: ".concat(title),
4418
+ children: [jsx(StyledIllustration, {
4419
+ "$size": size,
4420
+ "$variant": variant,
4421
+ "aria-hidden": "true",
4422
+ children: renderIllustration()
4423
+ }), jsxs(StyledTextContainer, {
4424
+ children: [jsx(Typography, {
4425
+ variant: size === 'small' ? 'h4' : size === 'large' ? 'h2' : 'h3',
4426
+ color: variant === 'error' ? 'error' : 'default',
4427
+ as: size === 'small' ? 'h4' : size === 'large' ? 'h2' : 'h3',
4428
+ children: title
4429
+ }), jsx("div", {
4430
+ style: {
4431
+ marginTop: semantic$9.spacing.layout.md
4432
+ },
4433
+ children: jsx(Typography, {
4434
+ variant: "body",
4435
+ color: "subdued",
4436
+ children: description
4437
+ })
4438
+ })]
4439
+ }), (action || secondaryAction) && jsx(Box, {
4440
+ width: "100%",
4441
+ maxWidth: "300px",
4442
+ children: jsxs(Stack, {
4443
+ direction: "column",
4444
+ gap: "sm",
4445
+ children: [action && jsx(Button, {
4446
+ variant: action.variant || 'primary',
4447
+ onClick: action.onClick,
4448
+ iconName: action.icon,
4449
+ "data-testid": dataTestId ? "".concat(dataTestId, "-primary-action") : undefined,
4450
+ children: action.label
4451
+ }), secondaryAction && jsx(Button, {
4452
+ variant: "naked",
4453
+ onClick: secondaryAction.onClick,
4454
+ "data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined,
4455
+ children: secondaryAction.label
4456
+ })]
4457
+ })
4458
+ })]
4459
+ });
4331
4460
  };
4332
4461
  var templateObject_1$f, templateObject_2$d, templateObject_3$c;
4333
4462
 
4334
- React.createElement;
4335
4463
  var _a$1 = tokensData.base,
4336
4464
  spacing$1 = _a$1.spacing,
4337
4465
  border$1 = _a$1.border;
@@ -4366,37 +4494,53 @@ var FeatureBlock = function FeatureBlock(_a) {
4366
4494
  readMoreHref = _a.readMoreHref,
4367
4495
  _c = _a.readMoreText,
4368
4496
  readMoreText = _c === void 0 ? "Read more" : _c;
4369
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FeatureBlockStyled, null, /*#__PURE__*/React.createElement(ImageWrapper, null, /*#__PURE__*/React.createElement(Picture, {
4370
- title: title,
4371
- src: coverImage
4372
- })), /*#__PURE__*/React.createElement(ContentSection, null, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement(Stack, {
4373
- direction: "column",
4374
- gap: "md"
4375
- }, /*#__PURE__*/React.createElement(Typography, {
4376
- variant: "h3"
4377
- }, title), /*#__PURE__*/React.createElement(DateFormatter, {
4378
- dateString: date
4379
- }), /*#__PURE__*/React.createElement(Typography, {
4380
- variant: "small"
4381
- }, excerpt), /*#__PURE__*/React.createElement(Stack, {
4382
- direction: "row",
4383
- gap: "xs"
4384
- }, Array.isArray(labels) && labels.map(function (label, index) {
4385
- return /*#__PURE__*/React.createElement(Chip, {
4386
- key: index,
4387
- title: label,
4388
- variant: "default"
4389
- });
4390
- })), (onReadMore || readMoreHref) && /*#__PURE__*/React.createElement(ButtonWrapper, null, readMoreHref ? /*#__PURE__*/React.createElement(Button, {
4391
- purpose: "link",
4392
- url: readMoreHref
4393
- }, readMoreText) : /*#__PURE__*/React.createElement(Button, {
4394
- onClick: onReadMore
4395
- }, readMoreText)))))), /*#__PURE__*/React.createElement(Divider, null));
4497
+ return jsxs(Fragment, {
4498
+ children: [jsxs(FeatureBlockStyled, {
4499
+ children: [jsx(ImageWrapper, {
4500
+ children: jsx(Picture, {
4501
+ title: title,
4502
+ src: coverImage
4503
+ })
4504
+ }), jsx(ContentSection, {
4505
+ children: jsx(ContentWrapper, {
4506
+ children: jsxs(Stack, {
4507
+ direction: "column",
4508
+ gap: "md",
4509
+ children: [jsx(Typography, {
4510
+ variant: "h3",
4511
+ children: title
4512
+ }), jsx(DateFormatter, {
4513
+ dateString: date
4514
+ }), jsx(Typography, {
4515
+ variant: "small",
4516
+ children: excerpt
4517
+ }), jsx(Stack, {
4518
+ direction: "row",
4519
+ gap: "xs",
4520
+ children: Array.isArray(labels) && labels.map(function (label, index) {
4521
+ return jsx(Chip, {
4522
+ title: label,
4523
+ variant: "default"
4524
+ }, index);
4525
+ })
4526
+ }), (onReadMore || readMoreHref) && jsx(ButtonWrapper, {
4527
+ children: readMoreHref ? jsx(Button, {
4528
+ purpose: "link",
4529
+ url: readMoreHref,
4530
+ children: readMoreText
4531
+ }) : jsx(Button, {
4532
+ onClick: onReadMore,
4533
+ children: readMoreText
4534
+ })
4535
+ })]
4536
+ })
4537
+ })
4538
+ })]
4539
+ }), jsx(Divider, {})]
4540
+ });
4396
4541
  };
4397
4542
  var templateObject_1$e, templateObject_2$c, templateObject_3$b, templateObject_4$a, templateObject_5$9;
4398
4543
 
4399
- React.createElement;
4400
4544
  var _a = tokensData.base,
4401
4545
  spacing = _a.spacing,
4402
4546
  shadow = _a.shadow,
@@ -4472,7 +4616,7 @@ var DropdownOption = styled.button.withConfig({
4472
4616
  var StyledHelperText$3 = styled.div.withConfig({
4473
4617
  displayName: "Dropdown__StyledHelperText",
4474
4618
  componentId: "sc-kz07c4-5"
4475
- })(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"], ["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"])), typography.caption, function (_a) {
4619
+ })(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"], ["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"])), typography.caption, function (_a) {
4476
4620
  var $hasError = _a.$hasError;
4477
4621
  return $hasError ? color.text.error : color.text.subdued;
4478
4622
  }, spacing[2]);
@@ -4495,8 +4639,8 @@ var Dropdown = function Dropdown(_a) {
4495
4639
  focusedIndex = _e[0],
4496
4640
  setFocusedIndex = _e[1];
4497
4641
  var dropdownRef = useRef(null);
4498
- // Generate unique ID for accessibility
4499
- var dropdownId = useRef("dropdown-".concat(Math.random().toString(36).substr(2, 9))).current;
4642
+ // Generate unique ID for accessibility (SSR-safe)
4643
+ var dropdownId = useId();
4500
4644
  var selectedOption = options.find(function (option) {
4501
4645
  return option.id === value;
4502
4646
  });
@@ -4589,59 +4733,68 @@ var Dropdown = function Dropdown(_a) {
4589
4733
  setIsOpen(false);
4590
4734
  setFocusedIndex(-1);
4591
4735
  };
4592
- return /*#__PURE__*/React.createElement(DropdownContainer, {
4736
+ return jsxs(DropdownContainer, {
4593
4737
  ref: dropdownRef,
4594
- className: className
4595
- }, label && /*#__PURE__*/React.createElement("label", {
4596
- htmlFor: dropdownId,
4597
- style: {
4598
- display: 'block',
4599
- marginBottom: spacing[2]
4600
- }
4601
- }, /*#__PURE__*/React.createElement(Typography, {
4602
- variant: "label"
4603
- }, label)), /*#__PURE__*/React.createElement(DropdownTrigger, {
4604
- id: dropdownId,
4605
- $isOpen: isOpen,
4606
- $hasError: hasError,
4607
- onClick: handleTriggerClick,
4608
- disabled: disabled,
4609
- "aria-expanded": isOpen,
4610
- "aria-haspopup": "listbox",
4611
- "aria-invalid": hasError,
4612
- "aria-describedby": describedBy
4613
- }, /*#__PURE__*/React.createElement("span", null, selectedOption ? selectedOption.label : placeholder), /*#__PURE__*/React.createElement(DropdownIcon, {
4614
- $isOpen: isOpen
4615
- }, /*#__PURE__*/React.createElement(Icon, {
4616
- name: "arrowDown",
4617
- iconColor: disabled ? 'disabled' : 'subdued'
4618
- }))), /*#__PURE__*/React.createElement(DropdownMenu, {
4619
- $isOpen: isOpen,
4620
- role: "listbox",
4621
- "aria-labelledby": dropdownId
4622
- }, options.map(function (option, index) {
4623
- return /*#__PURE__*/React.createElement(DropdownOption, {
4624
- key: option.id,
4625
- $isSelected: option.id === value,
4626
- $isFocused: index === focusedIndex,
4627
- onClick: function onClick() {
4628
- return handleOptionClick(option.id);
4738
+ className: className,
4739
+ children: [label && jsx("label", {
4740
+ htmlFor: dropdownId,
4741
+ style: {
4742
+ display: 'block',
4743
+ marginBottom: spacing[2]
4629
4744
  },
4630
- role: "option",
4631
- "aria-selected": option.id === value
4632
- }, option.label);
4633
- })), error && /*#__PURE__*/React.createElement(StyledHelperText$3, {
4634
- id: errorId,
4635
- role: "alert",
4636
- "aria-live": "polite",
4637
- $hasError: true
4638
- }, error), helperText && !error && /*#__PURE__*/React.createElement(StyledHelperText$3, {
4639
- id: helperId
4640
- }, helperText));
4745
+ children: jsx(Typography, {
4746
+ variant: "label",
4747
+ children: label
4748
+ })
4749
+ }), jsxs(DropdownTrigger, {
4750
+ id: dropdownId,
4751
+ "$isOpen": isOpen,
4752
+ "$hasError": hasError,
4753
+ onClick: handleTriggerClick,
4754
+ disabled: disabled,
4755
+ "aria-expanded": isOpen,
4756
+ "aria-haspopup": "listbox",
4757
+ "aria-invalid": hasError,
4758
+ "aria-describedby": describedBy,
4759
+ children: [jsx("span", {
4760
+ children: selectedOption ? selectedOption.label : placeholder
4761
+ }), jsx(DropdownIcon, {
4762
+ "$isOpen": isOpen,
4763
+ children: jsx(Icon, {
4764
+ name: "arrowDown",
4765
+ iconColor: disabled ? 'disabled' : 'subdued'
4766
+ })
4767
+ })]
4768
+ }), jsx(DropdownMenu, {
4769
+ "$isOpen": isOpen,
4770
+ role: "listbox",
4771
+ "aria-labelledby": dropdownId,
4772
+ children: options.map(function (option, index) {
4773
+ return jsx(DropdownOption, {
4774
+ "$isSelected": option.id === value,
4775
+ "$isFocused": index === focusedIndex,
4776
+ onClick: function onClick() {
4777
+ return handleOptionClick(option.id);
4778
+ },
4779
+ role: "option",
4780
+ "aria-selected": option.id === value,
4781
+ children: option.label
4782
+ }, option.id);
4783
+ })
4784
+ }), error && jsx(StyledHelperText$3, {
4785
+ id: errorId,
4786
+ role: "alert",
4787
+ "aria-live": "polite",
4788
+ "$hasError": true,
4789
+ children: error
4790
+ }), helperText && !error && jsx(StyledHelperText$3, {
4791
+ id: helperId,
4792
+ children: helperText
4793
+ })]
4794
+ });
4641
4795
  };
4642
- var templateObject_1$d, templateObject_2$b, templateObject_3$a, templateObject_4$9, templateObject_5$8, templateObject_6$8;
4796
+ var templateObject_1$d, templateObject_2$b, templateObject_3$a, templateObject_4$9, templateObject_5$8, templateObject_6$7;
4643
4797
 
4644
- React.createElement;
4645
4798
  var semantic$8 = tokensData.semantic;
4646
4799
  var StyledList = styled.ul.withConfig({
4647
4800
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -4662,18 +4815,19 @@ var List = function List(_a) {
4662
4815
  className = _a.className,
4663
4816
  dataTestId = _a["data-testid"],
4664
4817
  props = __rest(_a, ["children", "dividers", "spacing", "className", 'data-testid']);
4665
- return /*#__PURE__*/React.createElement(StyledList, _extends({
4666
- $dividers: dividers,
4667
- $spacing: spacing,
4818
+ return jsx(StyledList, __assign({
4819
+ "$dividers": dividers,
4820
+ "$spacing": spacing,
4668
4821
  className: className,
4669
4822
  "data-testid": dataTestId,
4670
4823
  role: "list"
4671
- }, props), children);
4824
+ }, props, {
4825
+ children: children
4826
+ }));
4672
4827
  };
4673
4828
  List.displayName = 'List';
4674
4829
  var templateObject_1$c;
4675
4830
 
4676
- React.createElement;
4677
4831
  var semantic$7 = tokensData.semantic,
4678
4832
  base$7 = tokensData.base;
4679
4833
  var StyledListItem = styled.li.withConfig({
@@ -4731,7 +4885,7 @@ var StyledChevronIcon = styled.div.withConfig({
4731
4885
  },
4732
4886
  displayName: "ListItem__StyledChevronIcon",
4733
4887
  componentId: "sc-1wzzt21-5"
4734
- })(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n color: ", ";\n transition: transform 200ms ease;\n transform: rotate(", ");\n pointer-events: none;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n color: ", ";\n transition: transform 200ms ease;\n transform: rotate(", ");\n pointer-events: none;\n"])), semantic$7.color.icon.subdued, function (_a) {
4888
+ })(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n color: ", ";\n transition: transform 200ms ease;\n transform: rotate(", ");\n pointer-events: none;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n color: ", ";\n transition: transform 200ms ease;\n transform: rotate(", ");\n pointer-events: none;\n"])), semantic$7.color.icon.subdued, function (_a) {
4735
4889
  var $expanded = _a.$expanded;
4736
4890
  return $expanded ? '180deg' : '0deg';
4737
4891
  });
@@ -4741,7 +4895,7 @@ var StyledExpandedContent = styled.div.withConfig({
4741
4895
  },
4742
4896
  displayName: "ListItem__StyledExpandedContent",
4743
4897
  componentId: "sc-1wzzt21-6"
4744
- })(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n overflow: hidden;\n transition: max-height 200ms ease-out, opacity 200ms ease-out;\n max-height: ", ";\n opacity: ", ";\n \n ", "\n"], ["\n overflow: hidden;\n transition: max-height 200ms ease-out, opacity 200ms ease-out;\n max-height: ", ";\n opacity: ", ";\n \n ", "\n"])), function (_a) {
4898
+ })(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n overflow: hidden;\n transition: max-height 200ms ease-out, opacity 200ms ease-out;\n max-height: ", ";\n opacity: ", ";\n \n ", "\n"], ["\n overflow: hidden;\n transition: max-height 200ms ease-out, opacity 200ms ease-out;\n max-height: ", ";\n opacity: ", ";\n \n ", "\n"])), function (_a) {
4745
4899
  var $expanded = _a.$expanded;
4746
4900
  return $expanded ? '1000px' : '0';
4747
4901
  }, function (_a) {
@@ -4774,9 +4928,14 @@ var ListItem = function ListItem(_a) {
4774
4928
  children = _a.children,
4775
4929
  className = _a.className,
4776
4930
  dataTestId = _a["data-testid"],
4777
- props = __rest(_a, ["primary", "secondary", "badge", "icon", "expandable", "expanded", "onToggle", "interactive", "onClick", "disabled", "selected", "spacing", "children", "className", 'data-testid']);
4778
- var isInteractive = interactive || expandable;
4779
- var role = isInteractive ? 'button' : undefined;
4931
+ customRole = _a.role,
4932
+ ariaSelected = _a["aria-selected"],
4933
+ id = _a.id,
4934
+ customTabIndex = _a.tabIndex,
4935
+ customOnKeyDown = _a.onKeyDown,
4936
+ props = __rest(_a, ["primary", "secondary", "badge", "icon", "expandable", "expanded", "onToggle", "interactive", "onClick", "disabled", "selected", "spacing", "children", "className", 'data-testid', "role", 'aria-selected', "id", "tabIndex", "onKeyDown"]);
4937
+ var isInteractive = interactive || expandable || customRole === 'option';
4938
+ var contentRole = customRole === 'option' ? undefined : isInteractive ? 'button' : undefined;
4780
4939
  var ariaExpanded = expandable ? expanded : undefined;
4781
4940
  var ariaDisabled = disabled ? true : undefined;
4782
4941
  var ariaCurrent = selected ? 'true' : undefined;
@@ -4789,54 +4948,72 @@ var ListItem = function ListItem(_a) {
4789
4948
  }
4790
4949
  };
4791
4950
  var handleKeyDown = function handleKeyDown(event) {
4951
+ if (customOnKeyDown) {
4952
+ customOnKeyDown(event);
4953
+ return;
4954
+ }
4792
4955
  if (disabled) return;
4793
4956
  if (event.key === 'Enter' || event.key === ' ') {
4794
4957
  event.preventDefault();
4795
4958
  handleClick();
4796
4959
  }
4797
4960
  };
4798
- return /*#__PURE__*/React.createElement(StyledListItem, _extends({
4799
- $interactive: isInteractive,
4800
- $disabled: disabled,
4801
- $selected: selected,
4802
- $spacing: spacing,
4961
+ return jsxs(StyledListItem, __assign({
4962
+ "$interactive": isInteractive,
4963
+ "$disabled": disabled,
4964
+ "$selected": selected,
4965
+ "$spacing": spacing,
4803
4966
  className: className,
4804
4967
  "data-testid": dataTestId,
4805
- role: "listitem"
4806
- }, props), /*#__PURE__*/React.createElement(StyledItemContent, {
4807
- $interactive: isInteractive,
4808
- $disabled: disabled,
4809
- $selected: selected,
4810
- $spacing: spacing,
4811
- role: role,
4812
- "aria-expanded": ariaExpanded,
4813
- "aria-disabled": ariaDisabled,
4814
- "aria-current": ariaCurrent,
4815
- tabIndex: isInteractive && !disabled ? 0 : undefined,
4816
- onClick: handleClick,
4817
- onKeyDown: handleKeyDown
4818
- }, icon && /*#__PURE__*/React.createElement(StyledIconContainer, {
4819
- "aria-hidden": "true"
4820
- }, icon), /*#__PURE__*/React.createElement(StyledTextContent, null, /*#__PURE__*/React.createElement(Typography, {
4821
- variant: "body",
4822
- color: "default"
4823
- }, primary), secondary && /*#__PURE__*/React.createElement(Typography, {
4824
- variant: "small",
4825
- color: "subdued"
4826
- }, secondary)), /*#__PURE__*/React.createElement(StyledRightContent, null, badge, expandable && /*#__PURE__*/React.createElement(StyledChevronIcon, {
4827
- $expanded: expanded,
4828
- "aria-hidden": "true"
4829
- }, /*#__PURE__*/React.createElement(Icon, {
4830
- name: "caretDown",
4831
- size: "sm"
4832
- })))), expandable && children && /*#__PURE__*/React.createElement(StyledExpandedContent, {
4833
- $spacing: spacing,
4834
- $expanded: expanded,
4835
- "aria-hidden": !expanded
4836
- }, children));
4968
+ role: customRole || 'listitem',
4969
+ id: id,
4970
+ "aria-selected": ariaSelected
4971
+ }, props, {
4972
+ children: [jsxs(StyledItemContent, {
4973
+ "$interactive": isInteractive,
4974
+ "$disabled": disabled,
4975
+ "$selected": selected,
4976
+ "$spacing": spacing,
4977
+ role: contentRole,
4978
+ "aria-expanded": ariaExpanded,
4979
+ "aria-disabled": ariaDisabled,
4980
+ "aria-current": ariaCurrent,
4981
+ tabIndex: customTabIndex !== undefined ? customTabIndex : isInteractive && !disabled ? 0 : undefined,
4982
+ onClick: handleClick,
4983
+ onKeyDown: handleKeyDown,
4984
+ children: [icon && jsx(StyledIconContainer, {
4985
+ "aria-hidden": "true",
4986
+ children: icon
4987
+ }), jsxs(StyledTextContent, {
4988
+ children: [jsx(Typography, {
4989
+ variant: "body",
4990
+ color: "default",
4991
+ children: primary
4992
+ }), secondary && jsx(Typography, {
4993
+ variant: "small",
4994
+ color: "subdued",
4995
+ children: secondary
4996
+ })]
4997
+ }), jsxs(StyledRightContent, {
4998
+ children: [badge, expandable && jsx(StyledChevronIcon, {
4999
+ "$expanded": expanded,
5000
+ "aria-hidden": "true",
5001
+ children: jsx(Icon, {
5002
+ name: "caretDown",
5003
+ size: "sm"
5004
+ })
5005
+ })]
5006
+ })]
5007
+ }), expandable && children && jsx(StyledExpandedContent, {
5008
+ "$spacing": spacing,
5009
+ "$expanded": expanded,
5010
+ "aria-hidden": !expanded,
5011
+ children: children
5012
+ })]
5013
+ }));
4837
5014
  };
4838
5015
  ListItem.displayName = 'ListItem';
4839
- var templateObject_1$b, templateObject_2$a, templateObject_3$9, templateObject_4$8, templateObject_5$7, templateObject_6$7, templateObject_7$6;
5016
+ var templateObject_1$b, templateObject_2$a, templateObject_3$9, templateObject_4$8, templateObject_5$7, templateObject_6$6, templateObject_7$5;
4840
5017
 
4841
5018
  var input = tokensData.component.input;
4842
5019
  var StyledInputBase = styled.input.withConfig({
@@ -4879,7 +5056,6 @@ var StyledTextAreaBase = styled.textarea.withConfig({
4879
5056
  })(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n /* Inherit all input base styles */\n ", "\n \n /* TextArea specific */\n min-height: 120px;\n resize: vertical;\n font-family: inherit;\n line-height: 1.5;\n"], ["\n /* Inherit all input base styles */\n ", "\n \n /* TextArea specific */\n min-height: 120px;\n resize: vertical;\n font-family: inherit;\n line-height: 1.5;\n"])), StyledInputBase);
4880
5057
  var templateObject_1$a, templateObject_2$9;
4881
5058
 
4882
- React.createElement;
4883
5059
  var semantic$6 = tokensData.semantic,
4884
5060
  base$6 = tokensData.base;
4885
5061
  var StyledFieldContainer$2 = styled.div.withConfig({
@@ -4905,11 +5081,11 @@ var StyledNumberInput = styled(StyledInputBase).withConfig({
4905
5081
  var StyledStepperContainer = styled.div.withConfig({
4906
5082
  displayName: "NumberInput__StyledStepperContainer",
4907
5083
  componentId: "sc-qotc3w-5"
4908
- })(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n"], ["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n"])), base$6.spacing[2], base$6.spacing[2]);
5084
+ })(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n"], ["\n position: absolute;\n right: ", ";\n display: flex;\n flex-direction: row;\n gap: ", ";\n"])), base$6.spacing[2], base$6.spacing[2]);
4909
5085
  var StyledHelperText$2 = styled.div.withConfig({
4910
5086
  displayName: "NumberInput__StyledHelperText",
4911
5087
  componentId: "sc-qotc3w-6"
4912
- })(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
5088
+ })(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
4913
5089
  /**
4914
5090
  * NumberInput component for numeric input with stepper buttons and WCAG 2.2 AA compliance
4915
5091
  *
@@ -5070,63 +5246,71 @@ var NumberInput = /*#__PURE__*/forwardRef(function (_a, ref) {
5070
5246
  var isDecrementDisabled = disabled || min !== undefined && value !== '' && typeof value === 'number' && value <= min;
5071
5247
  // Build aria-describedby
5072
5248
  var ariaDescribedByIds = [ariaDescribedBy, helperText ? helperId : null, error ? errorId : null].filter(Boolean).join(' ') || undefined;
5073
- return /*#__PURE__*/React.createElement(StyledFieldContainer$2, null, label && /*#__PURE__*/React.createElement(StyledLabel$3, {
5074
- htmlFor: id,
5075
- "data-disabled": disabled
5076
- }, label, required && /*#__PURE__*/React.createElement(StyledRequiredIndicator$2, {
5077
- "aria-label": "required"
5078
- }, "*")), /*#__PURE__*/React.createElement(StyledInputWrapper$2, null, /*#__PURE__*/React.createElement(StyledNumberInput, _extends({
5079
- ref: ref,
5080
- id: id,
5081
- type: "text",
5082
- inputMode: "decimal",
5083
- value: value !== undefined ? formatValue(value) : undefined,
5084
- defaultValue: defaultValue !== undefined ? formatValue(defaultValue) : undefined,
5085
- onChange: handleChange,
5086
- onKeyDown: handleKeyDown,
5087
- disabled: disabled,
5088
- required: required,
5089
- placeholder: placeholder,
5090
- $hasError: !!error,
5091
- $disabled: disabled,
5092
- "aria-label": ariaLabel || label,
5093
- "aria-invalid": !!error,
5094
- "aria-describedby": ariaDescribedByIds,
5095
- "aria-required": required,
5096
- "data-testid": testId,
5097
- role: "spinbutton",
5098
- "aria-valuemin": min,
5099
- "aria-valuemax": max,
5100
- "aria-valuenow": typeof value === 'number' ? value : undefined
5101
- }, rest)), /*#__PURE__*/React.createElement(StyledStepperContainer, null, /*#__PURE__*/React.createElement(IconButton, {
5102
- iconName: "caretUp",
5103
- variant: "secondary",
5104
- size: "small",
5105
- onClick: handleIncrement,
5106
- disabled: isIncrementDisabled,
5107
- "aria-label": "Increment value",
5108
- tabIndex: -1,
5109
- type: "button"
5110
- }), /*#__PURE__*/React.createElement(IconButton, {
5111
- iconName: "caretDown",
5112
- variant: "secondary",
5113
- size: "small",
5114
- onClick: handleDecrement,
5115
- disabled: isDecrementDisabled,
5116
- "aria-label": "Decrement value",
5117
- tabIndex: -1,
5118
- type: "button"
5119
- }))), (helperText || error) && /*#__PURE__*/React.createElement(StyledHelperText$2, {
5120
- id: error ? errorId : helperId,
5121
- $isError: !!error,
5122
- role: error ? 'alert' : undefined,
5123
- "aria-live": error ? 'polite' : undefined
5124
- }, error || helperText));
5249
+ return jsxs(StyledFieldContainer$2, {
5250
+ children: [label && jsxs(StyledLabel$3, {
5251
+ htmlFor: id,
5252
+ "data-disabled": disabled,
5253
+ children: [label, required && jsx(StyledRequiredIndicator$2, {
5254
+ "aria-label": "required",
5255
+ children: "*"
5256
+ })]
5257
+ }), jsxs(StyledInputWrapper$2, {
5258
+ children: [jsx(StyledNumberInput, __assign({
5259
+ ref: ref,
5260
+ id: id,
5261
+ type: "text",
5262
+ inputMode: "decimal",
5263
+ value: value !== undefined ? formatValue(value) : undefined,
5264
+ defaultValue: defaultValue !== undefined ? formatValue(defaultValue) : undefined,
5265
+ onChange: handleChange,
5266
+ onKeyDown: handleKeyDown,
5267
+ disabled: disabled,
5268
+ required: required,
5269
+ placeholder: placeholder,
5270
+ "$hasError": !!error,
5271
+ "$disabled": disabled,
5272
+ "aria-label": ariaLabel || label,
5273
+ "aria-invalid": !!error,
5274
+ "aria-describedby": ariaDescribedByIds,
5275
+ "aria-required": required,
5276
+ "data-testid": testId,
5277
+ role: "spinbutton",
5278
+ "aria-valuemin": min,
5279
+ "aria-valuemax": max,
5280
+ "aria-valuenow": typeof value === 'number' ? value : undefined
5281
+ }, rest)), jsxs(StyledStepperContainer, {
5282
+ children: [jsx(IconButton, {
5283
+ iconName: "caretUp",
5284
+ variant: "secondary",
5285
+ size: "small",
5286
+ onClick: handleIncrement,
5287
+ disabled: isIncrementDisabled,
5288
+ "aria-label": "Increment value",
5289
+ tabIndex: -1,
5290
+ type: "button"
5291
+ }), jsx(IconButton, {
5292
+ iconName: "caretDown",
5293
+ variant: "secondary",
5294
+ size: "small",
5295
+ onClick: handleDecrement,
5296
+ disabled: isDecrementDisabled,
5297
+ "aria-label": "Decrement value",
5298
+ tabIndex: -1,
5299
+ type: "button"
5300
+ })]
5301
+ })]
5302
+ }), (helperText || error) && jsx(StyledHelperText$2, {
5303
+ id: error ? errorId : helperId,
5304
+ "$isError": !!error,
5305
+ role: error ? 'alert' : undefined,
5306
+ "aria-live": error ? 'polite' : undefined,
5307
+ children: error || helperText
5308
+ })]
5309
+ });
5125
5310
  });
5126
5311
  NumberInput.displayName = 'NumberInput';
5127
- var templateObject_1$9, templateObject_2$8, templateObject_3$8, templateObject_4$7, templateObject_5$6, templateObject_6$6, templateObject_7$5;
5312
+ var templateObject_1$9, templateObject_2$8, templateObject_3$8, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$4;
5128
5313
 
5129
- React.createElement;
5130
5314
  var PageTitleStyled = styled.div.withConfig({
5131
5315
  shouldForwardProp: function shouldForwardProp(prop) {
5132
5316
  return !prop.startsWith('$');
@@ -5142,27 +5326,30 @@ var PageTitle = function PageTitle(_a) {
5142
5326
  _b = _a.hasBackButton,
5143
5327
  hasBackButton = _b === void 0 ? false : _b,
5144
5328
  subtitle = _a.subtitle;
5145
- return /*#__PURE__*/React.createElement(PageTitleStyled, {
5146
- $hasBackButton: hasBackButton
5147
- }, hasBackButton && /*#__PURE__*/React.createElement(IconButton, {
5148
- iconName: "back",
5149
- size: "large",
5150
- variant: "naked",
5151
- url: "/music",
5152
- "aria-label": "Go back to music page"
5153
- }), /*#__PURE__*/React.createElement(Stack, {
5154
- direction: "column",
5155
- gap: "md"
5156
- }, /*#__PURE__*/React.createElement(Typography, {
5157
- variant: "h1"
5158
- }, title), subtitle && /*#__PURE__*/React.createElement(Typography, {
5159
- variant: "caption",
5160
- color: "subdued"
5161
- }, subtitle)));
5329
+ return jsxs(PageTitleStyled, {
5330
+ "$hasBackButton": hasBackButton,
5331
+ children: [hasBackButton && jsx(IconButton, {
5332
+ iconName: 'back',
5333
+ size: 'large',
5334
+ variant: 'naked',
5335
+ url: '/music',
5336
+ "aria-label": 'Go back to music page'
5337
+ }), jsxs(Stack, {
5338
+ direction: 'column',
5339
+ gap: "md",
5340
+ children: [jsx(Typography, {
5341
+ variant: "h1",
5342
+ children: title
5343
+ }), subtitle && jsx(Typography, {
5344
+ variant: 'caption',
5345
+ color: 'subdued',
5346
+ children: subtitle
5347
+ })]
5348
+ })]
5349
+ });
5162
5350
  };
5163
5351
  var templateObject_1$8;
5164
5352
 
5165
- React.createElement;
5166
5353
  var semantic$5 = tokensData.semantic,
5167
5354
  base$5 = tokensData.base;
5168
5355
  var StyledFieldContainer$1 = styled.div.withConfig({
@@ -5191,7 +5378,7 @@ var StyledInputWrapper$1 = styled.div.withConfig({
5191
5378
  var StyledToggleButton = styled.div.withConfig({
5192
5379
  displayName: "PasswordField__StyledToggleButton",
5193
5380
  componentId: "sc-1p15zk0-5"
5194
- })(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n"], ["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n"
5381
+ })(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n"], ["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n"
5195
5382
  /**
5196
5383
  * PasswordField component for secure password input with visibility toggle
5197
5384
  *
@@ -5244,51 +5431,61 @@ var PasswordField = /*#__PURE__*/forwardRef(function (_a, ref) {
5244
5431
  var togglePasswordVisibility = function togglePasswordVisibility() {
5245
5432
  setShowPassword(!showPassword);
5246
5433
  };
5247
- return /*#__PURE__*/React.createElement(StyledFieldContainer$1, null, label && /*#__PURE__*/React.createElement(StyledLabel$2, {
5248
- htmlFor: id,
5249
- "data-disabled": disabled
5250
- }, label, required && /*#__PURE__*/React.createElement(StyledRequiredIndicator$1, {
5251
- "aria-label": "required"
5252
- }, "*")), /*#__PURE__*/React.createElement(StyledInputWrapper$1, null, /*#__PURE__*/React.createElement(StyledInputBase, _extends({
5253
- ref: ref,
5254
- id: id,
5255
- type: showPassword ? 'text' : 'password',
5256
- disabled: disabled,
5257
- required: required,
5258
- "aria-required": required,
5259
- "aria-invalid": hasError,
5260
- "aria-describedby": describedBy,
5261
- $hasError: hasError,
5262
- $disabled: disabled,
5263
- "data-testid": dataTestId,
5264
- style: {
5265
- paddingRight: showToggle ? '3rem' : undefined
5266
- }
5267
- }, inputProps)), showToggle && /*#__PURE__*/React.createElement(StyledToggleButton, null, /*#__PURE__*/React.createElement(IconButton, {
5268
- variant: "naked",
5269
- size: "small",
5270
- iconName: showPassword ? 'viewHide' : 'view',
5271
- onClick: togglePasswordVisibility,
5272
- disabled: disabled,
5273
- "aria-label": showPassword ? 'Hide password' : 'Show password',
5274
- "aria-pressed": showPassword,
5275
- type: "button",
5276
- tabIndex: -1
5277
- }))), error && /*#__PURE__*/React.createElement(StyledHelperText$1, {
5278
- id: errorId,
5279
- role: "alert",
5280
- "aria-live": "polite",
5281
- $hasError: true
5282
- }, error), helperText && !error && /*#__PURE__*/React.createElement(StyledHelperText$1, {
5283
- id: helperId
5284
- }, helperText));
5434
+ return jsxs(StyledFieldContainer$1, {
5435
+ children: [label && jsxs(StyledLabel$2, {
5436
+ htmlFor: id,
5437
+ "data-disabled": disabled,
5438
+ children: [label, required && jsx(StyledRequiredIndicator$1, {
5439
+ "aria-label": "required",
5440
+ children: "*"
5441
+ })]
5442
+ }), jsxs(StyledInputWrapper$1, {
5443
+ children: [jsx(StyledInputBase, __assign({
5444
+ ref: ref,
5445
+ id: id,
5446
+ type: showPassword ? 'text' : 'password',
5447
+ disabled: disabled,
5448
+ required: required,
5449
+ "aria-required": required,
5450
+ "aria-invalid": hasError,
5451
+ "aria-describedby": describedBy,
5452
+ "$hasError": hasError,
5453
+ "$disabled": disabled,
5454
+ "data-testid": dataTestId,
5455
+ style: {
5456
+ paddingRight: showToggle ? '3rem' : undefined
5457
+ }
5458
+ }, inputProps)), showToggle && jsx(StyledToggleButton, {
5459
+ children: jsx(IconButton, {
5460
+ variant: "naked",
5461
+ size: "small",
5462
+ iconName: showPassword ? 'viewHide' : 'view',
5463
+ onClick: togglePasswordVisibility,
5464
+ disabled: disabled,
5465
+ "aria-label": showPassword ? 'Hide password' : 'Show password',
5466
+ "aria-pressed": showPassword,
5467
+ type: "button",
5468
+ tabIndex: -1
5469
+ })
5470
+ })]
5471
+ }), error && jsx(StyledHelperText$1, {
5472
+ id: errorId,
5473
+ role: "alert",
5474
+ "aria-live": "polite",
5475
+ "$hasError": true,
5476
+ children: error
5477
+ }), helperText && !error && jsx(StyledHelperText$1, {
5478
+ id: helperId,
5479
+ children: helperText
5480
+ })]
5481
+ });
5285
5482
  });
5286
5483
  PasswordField.displayName = 'PasswordField';
5287
- var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$6, templateObject_5$5, templateObject_6$5;
5484
+ var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$6, templateObject_5$5, templateObject_6$4;
5288
5485
 
5289
- React.createElement;
5290
5486
  var semantic$4 = tokensData.semantic,
5291
- base$4 = tokensData.base;
5487
+ base$4 = tokensData.base,
5488
+ component = tokensData.component;
5292
5489
  var StyledSearchContainer = styled.div.withConfig({
5293
5490
  displayName: "SearchField__StyledSearchContainer",
5294
5491
  componentId: "sc-qhz9i8-0"
@@ -5296,39 +5493,23 @@ var StyledSearchContainer = styled.div.withConfig({
5296
5493
  var StyledInputWrapper = styled.div.withConfig({
5297
5494
  displayName: "SearchField__StyledInputWrapper",
5298
5495
  componentId: "sc-qhz9i8-1"
5299
- })(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n transition: ", ";\n \n ", "\n \n ", "\n \n &:hover:not(:disabled) {\n border-color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n transition: ", ";\n \n ", "\n \n ", "\n \n &:hover:not(:disabled) {\n border-color: ", ";\n }\n"])), base$4.spacing[2], base$4.spacing[2], base$4.spacing[3], semantic$4.color.background.subtle, base$4.border.width[1], semantic$4.color.border["default"], base$4.border.radius[3], semantic$4.motion.hover, function (props) {
5300
- return props.$isFocused && "\n border-color: ".concat(semantic$4.color.border.interactive, ";\n box-shadow: 0 0 0 ").concat(base$4.border.width[2], " ").concat(semantic$4.color.background['interactive-subtle'], ";\n ");
5496
+ })(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n transition: border-color 200ms ease-in-out, outline 200ms ease-in-out;\n \n ", "\n \n ", "\n \n &:hover:not([data-disabled='true']) {\n border-color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n transition: border-color 200ms ease-in-out, outline 200ms ease-in-out;\n \n ", "\n \n ", "\n \n &:hover:not([data-disabled='true']) {\n border-color: ", ";\n }\n"])), base$4.spacing[2], base$4.spacing[2], base$4.spacing[3], component.input["default"].backgroundColor, component.input["default"].borderWidth, component.input["default"].borderColor, component.input["default"].borderRadius, function (props) {
5497
+ return props.$isFocused && "\n border-color: ".concat(component.input.focus.borderColor, ";\n outline: ").concat(component.input.focus.outline, ";\n outline-offset: ").concat(component.input.focus.outlineOffset, ";\n ");
5301
5498
  }, function (props) {
5302
- return props.$disabled && "\n background-color: ".concat(semantic$4.color.background.disabled, ";\n cursor: not-allowed;\n ");
5303
- }, semantic$4.color.border.strong);
5499
+ return props.$disabled && "\n background-color: ".concat(component.input.disabled.backgroundColor, ";\n border-color: ").concat(component.input.disabled.borderColor, ";\n cursor: not-allowed;\n ");
5500
+ }, component.input.hover.borderColor);
5304
5501
  var StyledInput = styled.input.withConfig({
5305
5502
  displayName: "SearchField__StyledInput",
5306
5503
  componentId: "sc-qhz9i8-2"
5307
5504
  })(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n flex: 1;\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n outline: none;\n \n &::placeholder {\n color: ", ";\n }\n \n &:disabled {\n color: ", ";\n cursor: not-allowed;\n }\n"], ["\n flex: 1;\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n outline: none;\n \n &::placeholder {\n color: ", ";\n }\n \n &:disabled {\n color: ", ";\n cursor: not-allowed;\n }\n"])), semantic$4.typography.body, semantic$4.color.text["default"], semantic$4.color.text.subdued, semantic$4.color.text.disabled);
5308
- var StyledClearButton = styled.button.withConfig({
5309
- displayName: "SearchField__StyledClearButton",
5310
- componentId: "sc-qhz9i8-3"
5311
- })(templateObject_4$5 || (templateObject_4$5 = __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 \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", " solid ", ";\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 \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", " solid ", ";\n outline-offset: ", ";\n }\n"])), base$4.spacing[1], semantic$4.color.icon.subdued, base$4.border.radius[2], semantic$4.motion.hover, semantic$4.color.icon["default"], semantic$4.color.background.surface, base$4.border.width[2], semantic$4.color.border.strong, base$4.spacing[1]);
5312
5505
  var StyledSuggestionsList = styled.ul.withConfig({
5313
5506
  displayName: "SearchField__StyledSuggestionsList",
5314
- componentId: "sc-qhz9i8-4"
5315
- })(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: 300px;\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: 1000;\n"], ["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: 300px;\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: 1000;\n"])), base$4.spacing[1], semantic$4.color.background.subtle, base$4.border.width[1], semantic$4.color.border["default"], base$4.border.radius[3], base$4.shadow[3], base$4.spacing[1]);
5316
- var StyledSuggestionItem = styled.li.withConfig({
5317
- displayName: "SearchField__StyledSuggestionItem",
5318
- componentId: "sc-qhz9i8-5"
5319
- })(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n cursor: pointer;\n transition: ", ";\n \n ", "\n \n &:hover {\n background-color: ", ";\n }\n \n ", "\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n padding: ", " ", ";\n cursor: pointer;\n transition: ", ";\n \n ", "\n \n &:hover {\n background-color: ", ";\n }\n \n ", "\n"])), base$4.spacing[2], base$4.spacing[2], base$4.spacing[3], semantic$4.motion.hover, function (props) {
5320
- return props.$isHighlighted && "\n background-color: ".concat(semantic$4.color.background['interactive-subtle'], ";\n ");
5321
- }, semantic$4.color.background['interactive-subtle'], function (props) {
5322
- return props.$isRecent && "\n color: ".concat(semantic$4.color.text.subdued, ";\n ");
5323
- });
5507
+ componentId: "sc-qhz9i8-3"
5508
+ })(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: 300px;\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: 1000;\n"], ["\n position: absolute;\n top: calc(100% + ", ");\n left: 0;\n right: 0;\n max-height: 300px;\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: 1000;\n"])), base$4.spacing[1], semantic$4.color.background.subtle, base$4.border.width[1], semantic$4.color.border["default"], base$4.border.radius[3], base$4.shadow[3], base$4.spacing[1]);
5324
5509
  var StyledSectionHeader = styled.div.withConfig({
5325
5510
  displayName: "SearchField__StyledSectionHeader",
5326
- componentId: "sc-qhz9i8-6"
5327
- })(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n text-transform: uppercase;\n letter-spacing: ", ";\n"], ["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n text-transform: uppercase;\n letter-spacing: ", ";\n"])), base$4.spacing[2], base$4.spacing[3], semantic$4.typography.caption, semantic$4.color.text.subdued, base$4.letterSpacing[4]);
5328
- var StyledClearRecent = styled.button.withConfig({
5329
- displayName: "SearchField__StyledClearRecent",
5330
- componentId: "sc-qhz9i8-7"
5331
- })(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n padding: ", " ", ";\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n cursor: pointer;\n width: 100%;\n text-align: left;\n transition: ", ";\n \n &:hover {\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", " solid ", ";\n outline-offset: -", ";\n }\n"], ["\n padding: ", " ", ";\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n cursor: pointer;\n width: 100%;\n text-align: left;\n transition: ", ";\n \n &:hover {\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", " solid ", ";\n outline-offset: -", ";\n }\n"])), base$4.spacing[2], base$4.spacing[3], semantic$4.typography.small, semantic$4.color.text.interactive, semantic$4.motion.hover, semantic$4.color.background['interactive-subtle'], base$4.border.width[2], semantic$4.color.border.strong, base$4.spacing[1]);
5511
+ componentId: "sc-qhz9i8-4"
5512
+ })(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n text-transform: uppercase;\n letter-spacing: ", ";\n"], ["\n padding: ", " ", ";\n font: ", ";\n color: ", ";\n text-transform: uppercase;\n letter-spacing: ", ";\n"])), base$4.spacing[2], base$4.spacing[3], semantic$4.typography.caption, semantic$4.color.text.subdued, base$4.letterSpacing[4]);
5332
5513
  var debounce = function debounce(func, wait) {
5333
5514
  var timeout = null;
5334
5515
  return function () {
@@ -5536,94 +5717,101 @@ var SearchField = /*#__PURE__*/forwardRef(function (_a, ref) {
5536
5717
  }, [highlightedIndex]);
5537
5718
  var showClearButton = value.length > 0 && !disabled;
5538
5719
  var hasItems = displayItems.length > 0;
5539
- return /*#__PURE__*/React.createElement(StyledSearchContainer, {
5540
- $isFocused: isFocused,
5541
- $disabled: disabled,
5542
- "data-testid": dataTestId
5543
- }, /*#__PURE__*/React.createElement(StyledInputWrapper, {
5544
- $isFocused: isFocused,
5545
- $disabled: disabled
5546
- }, /*#__PURE__*/React.createElement(Icon, {
5547
- name: "search",
5548
- size: "sm",
5549
- iconColor: "subdued",
5550
- "aria-hidden": "true"
5551
- }), /*#__PURE__*/React.createElement(StyledInput, _extends({
5552
- ref: inputRef,
5553
- type: "text",
5554
- value: value,
5555
- onChange: handleInputChange,
5556
- onFocus: handleFocus,
5557
- onBlur: handleBlur,
5558
- onKeyDown: handleKeyDown,
5559
- placeholder: placeholder,
5560
- disabled: disabled,
5561
- "aria-label": ariaLabel,
5562
- "aria-autocomplete": "list",
5563
- "aria-controls": showSuggestions && hasItems ? 'search-suggestions' : undefined,
5564
- "aria-expanded": showSuggestions && hasItems,
5565
- "aria-activedescendant": highlightedIndex >= 0 ? "suggestion-".concat(highlightedIndex) : undefined,
5566
- role: "combobox"
5567
- }, inputProps)), loading && /*#__PURE__*/React.createElement(Icon, {
5568
- name: "refresh",
5569
- size: "sm",
5570
- iconColor: "subdued",
5571
- "aria-label": "Loading"
5572
- }), showClearButton && /*#__PURE__*/React.createElement(StyledClearButton, {
5573
- type: "button",
5574
- onClick: handleClear,
5575
- "aria-label": "Clear search",
5576
- tabIndex: -1
5577
- }, /*#__PURE__*/React.createElement(Icon, {
5578
- name: "close",
5579
- size: "xs"
5580
- }))), showSuggestions && hasItems && /*#__PURE__*/React.createElement(StyledSuggestionsList, {
5581
- ref: listRef,
5582
- id: "search-suggestions",
5583
- role: "listbox"
5584
- }, !value.trim() && showRecentSearches && recentSearches.length > 0 && /*#__PURE__*/React.createElement(StyledSectionHeader, null, "Recent Searches"), displayItems.map(function (item, index) {
5585
- if (item.type === 'clear') {
5586
- return /*#__PURE__*/React.createElement(StyledClearRecent, {
5587
- key: "clear",
5588
- type: "button",
5589
- onClick: function onClick() {
5590
- return handleSuggestionClick(item);
5720
+ return jsxs(StyledSearchContainer, {
5721
+ "$isFocused": isFocused,
5722
+ "$disabled": disabled,
5723
+ "data-testid": dataTestId,
5724
+ children: [jsxs(StyledInputWrapper, {
5725
+ "$isFocused": isFocused,
5726
+ "$disabled": disabled,
5727
+ "data-disabled": disabled,
5728
+ children: [jsx(Icon, {
5729
+ name: "search",
5730
+ size: "sm",
5731
+ iconColor: "subdued",
5732
+ "aria-hidden": "true"
5733
+ }), jsx(StyledInput, __assign({
5734
+ ref: inputRef,
5735
+ type: "text",
5736
+ value: value,
5737
+ onChange: handleInputChange,
5738
+ onFocus: handleFocus,
5739
+ onBlur: handleBlur,
5740
+ onKeyDown: handleKeyDown,
5741
+ placeholder: placeholder,
5742
+ disabled: disabled,
5743
+ "aria-label": ariaLabel,
5744
+ "aria-autocomplete": "list",
5745
+ "aria-controls": showSuggestions && hasItems ? 'search-suggestions' : undefined,
5746
+ "aria-expanded": showSuggestions && hasItems,
5747
+ "aria-activedescendant": highlightedIndex >= 0 ? "suggestion-".concat(highlightedIndex) : undefined,
5748
+ role: "combobox"
5749
+ }, inputProps)), loading && jsx(Icon, {
5750
+ name: "refresh",
5751
+ size: "sm",
5752
+ iconColor: "subdued",
5753
+ "aria-label": "Loading"
5754
+ }), showClearButton && jsx(IconButton, {
5755
+ iconName: "close",
5756
+ size: "small",
5757
+ variant: "naked",
5758
+ onClick: handleClear,
5759
+ "aria-label": "Clear search",
5760
+ tabIndex: -1
5761
+ })]
5762
+ }), showSuggestions && hasItems && jsxs(StyledSuggestionsList, {
5763
+ ref: listRef,
5764
+ id: "search-suggestions",
5765
+ role: "listbox",
5766
+ children: [!value.trim() && showRecentSearches && recentSearches.length > 0 && jsx(StyledSectionHeader, {
5767
+ children: "Recent Searches"
5768
+ }), displayItems.map(function (item, index) {
5769
+ if (item.type === 'clear') {
5770
+ return jsx(ListItem, {
5771
+ role: "option",
5772
+ primary: "Clear recent searches",
5773
+ interactive: true,
5774
+ spacing: "compact",
5775
+ onClick: function onClick() {
5776
+ return handleSuggestionClick(item);
5777
+ },
5778
+ onKeyDown: function onKeyDown(e) {
5779
+ if (e.key === 'Enter' || e.key === ' ') {
5780
+ e.preventDefault();
5781
+ handleSuggestionClick(item);
5782
+ }
5783
+ }
5784
+ }, "clear");
5591
5785
  }
5592
- }, "Clear recent searches");
5593
- }
5594
- var suggestion = item.data;
5595
- var isString = typeof suggestion === 'string';
5596
- var label = isString ? suggestion : suggestion.label;
5597
- var description = !isString ? suggestion.description : undefined;
5598
- return /*#__PURE__*/React.createElement(StyledSuggestionItem, {
5599
- key: isString ? suggestion : suggestion.id,
5600
- id: "suggestion-".concat(index),
5601
- role: "option",
5602
- "aria-selected": index === highlightedIndex,
5603
- $isHighlighted: index === highlightedIndex,
5604
- $isRecent: item.type === 'recent',
5605
- onClick: function onClick() {
5606
- return handleSuggestionClick(item);
5607
- }
5608
- }, item.type === 'recent' && /*#__PURE__*/React.createElement(Icon, {
5609
- name: "refresh",
5610
- size: "xs",
5611
- "aria-hidden": "true"
5612
- }), /*#__PURE__*/React.createElement(Stack, {
5613
- direction: "column",
5614
- gap: "none"
5615
- }, /*#__PURE__*/React.createElement(Typography, {
5616
- variant: "body"
5617
- }, label), description && /*#__PURE__*/React.createElement(Typography, {
5618
- variant: "caption",
5619
- color: "subdued"
5620
- }, description)));
5621
- })));
5786
+ var suggestion = item.data;
5787
+ var isString = typeof suggestion === 'string';
5788
+ var label = isString ? suggestion : suggestion.label;
5789
+ var description = !isString ? suggestion.description : undefined;
5790
+ return jsx(ListItem, {
5791
+ id: "suggestion-".concat(index),
5792
+ role: "option",
5793
+ "aria-selected": index === highlightedIndex,
5794
+ primary: label,
5795
+ secondary: description,
5796
+ icon: item.type === 'recent' ? jsx(Icon, {
5797
+ name: "refresh",
5798
+ size: "xs",
5799
+ "aria-hidden": "true"
5800
+ }) : undefined,
5801
+ interactive: true,
5802
+ selected: index === highlightedIndex,
5803
+ spacing: "compact",
5804
+ onClick: function onClick() {
5805
+ return handleSuggestionClick(item);
5806
+ }
5807
+ }, isString ? suggestion : suggestion.id);
5808
+ })]
5809
+ })]
5810
+ });
5622
5811
  });
5623
5812
  SearchField.displayName = 'SearchField';
5624
- var templateObject_1$6, templateObject_2$6, templateObject_3$6, templateObject_4$5, templateObject_5$4, templateObject_6$4, templateObject_7$4, templateObject_8$4;
5813
+ var templateObject_1$6, templateObject_2$6, templateObject_3$6, templateObject_4$5, templateObject_5$4;
5625
5814
 
5626
- React.createElement;
5627
5815
  var semantic$3 = tokensData.semantic,
5628
5816
  base$3 = tokensData.base;
5629
5817
  // Fade in animation for overlay
@@ -5801,30 +5989,34 @@ var Sheet = function Sheet(_a) {
5801
5989
  }
5802
5990
  };
5803
5991
  if (!isOpen) return null;
5804
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledOverlay, {
5805
- $isOpen: isOpen,
5806
- onClick: handleOverlayClick,
5807
- "data-testid": dataTestId ? "".concat(dataTestId, "-overlay") : 'sheet-overlay'
5808
- }), /*#__PURE__*/React.createElement(StyledSheet, {
5809
- ref: sheetRef,
5810
- role: "dialog",
5811
- "aria-modal": "true",
5812
- "aria-label": ariaLabel || title || 'Sheet dialog',
5813
- "aria-describedby": ariaDescribedBy,
5814
- tabIndex: -1,
5815
- $position: position,
5816
- $variant: variant,
5817
- $width: width,
5818
- $height: height,
5819
- $isOpen: isOpen,
5820
- onKeyDown: handleKeyDown,
5821
- "data-testid": dataTestId
5822
- }, /*#__PURE__*/React.createElement(StyledSheetContent, null, children)));
5992
+ return jsxs(Fragment, {
5993
+ children: [jsx(StyledOverlay, {
5994
+ "$isOpen": isOpen,
5995
+ onClick: handleOverlayClick,
5996
+ "data-testid": dataTestId ? "".concat(dataTestId, "-overlay") : 'sheet-overlay'
5997
+ }), jsx(StyledSheet, {
5998
+ ref: sheetRef,
5999
+ role: "dialog",
6000
+ "aria-modal": "true",
6001
+ "aria-label": ariaLabel || title || 'Sheet dialog',
6002
+ "aria-describedby": ariaDescribedBy,
6003
+ tabIndex: -1,
6004
+ "$position": position,
6005
+ "$variant": variant,
6006
+ "$width": width,
6007
+ "$height": height,
6008
+ "$isOpen": isOpen,
6009
+ onKeyDown: handleKeyDown,
6010
+ "data-testid": dataTestId,
6011
+ children: jsx(StyledSheetContent, {
6012
+ children: children
6013
+ })
6014
+ })]
6015
+ });
5823
6016
  };
5824
6017
  Sheet.displayName = 'Sheet';
5825
6018
  var templateObject_1$5, templateObject_2$5, templateObject_3$5, templateObject_4$4, templateObject_5$3, templateObject_6$3, templateObject_7$3, templateObject_8$3, templateObject_9$2, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1;
5826
6019
 
5827
- React.createElement;
5828
6020
  var semantic$2 = tokensData.semantic,
5829
6021
  base$2 = tokensData.base;
5830
6022
  var StyledSliderContainer = styled.div.withConfig({
@@ -6129,90 +6321,108 @@ var Slider = function Slider(_a) {
6129
6321
  var _l = [valueToPercent(currentRangeValue[0]), valueToPercent(currentRangeValue[1])],
6130
6322
  minPercent = _l[0],
6131
6323
  maxPercent = _l[1];
6132
- return /*#__PURE__*/React.createElement(StyledSliderContainer, {
6133
- "data-testid": dataTestId
6134
- }, label && /*#__PURE__*/React.createElement(StyledLabel$1, {
6135
- htmlFor: generatedId,
6136
- $disabled: disabled
6137
- }, label), /*#__PURE__*/React.createElement(StyledSliderTrackContainer, null, /*#__PURE__*/React.createElement(StyledTrack, {
6138
- ref: trackRef,
6139
- onClick: handleTrackClick,
6140
- $disabled: disabled
6141
- }, isRange ? /*#__PURE__*/React.createElement(StyledTrackFill, {
6142
- $disabled: disabled,
6143
- style: {
6144
- left: "".concat(minPercent, "%"),
6145
- width: "".concat(maxPercent - minPercent, "%")
6146
- }
6147
- }) : /*#__PURE__*/React.createElement(StyledTrackFill, {
6148
- $disabled: disabled,
6149
- style: {
6150
- left: 0,
6151
- width: "".concat(singlePercent, "%")
6152
- }
6153
- }), isRange ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledThumb, {
6154
- role: "slider",
6155
- tabIndex: disabled ? -1 : 0,
6156
- "aria-label": ariaLabel ? "".concat(ariaLabel, " minimum") : 'Minimum value',
6157
- "aria-valuemin": min,
6158
- "aria-valuemax": max,
6159
- "aria-valuenow": currentRangeValue[0],
6160
- "aria-valuetext": formatValue(currentRangeValue[0]),
6161
- "aria-disabled": disabled,
6162
- "aria-describedby": ariaDescribedBy,
6163
- $disabled: disabled,
6164
- $active: activeThumb === 'min',
6165
- style: {
6166
- left: "".concat(minPercent, "%")
6167
- },
6168
- onMouseDown: handleThumbMouseDown('min'),
6169
- onKeyDown: handleKeyDown('min')
6170
- }, showValueLabel && /*#__PURE__*/React.createElement(StyledValueLabel, {
6171
- $disabled: disabled
6172
- }, formatValue(currentRangeValue[0]))), /*#__PURE__*/React.createElement(StyledThumb, {
6173
- role: "slider",
6174
- tabIndex: disabled ? -1 : 0,
6175
- "aria-label": ariaLabel ? "".concat(ariaLabel, " maximum") : 'Maximum value',
6176
- "aria-valuemin": min,
6177
- "aria-valuemax": max,
6178
- "aria-valuenow": currentRangeValue[1],
6179
- "aria-valuetext": formatValue(currentRangeValue[1]),
6180
- "aria-disabled": disabled,
6181
- "aria-describedby": ariaDescribedBy,
6182
- $disabled: disabled,
6183
- $active: activeThumb === 'max',
6184
- style: {
6185
- left: "".concat(maxPercent, "%")
6186
- },
6187
- onMouseDown: handleThumbMouseDown('max'),
6188
- onKeyDown: handleKeyDown('max')
6189
- }, showValueLabel && /*#__PURE__*/React.createElement(StyledValueLabel, {
6190
- $disabled: disabled
6191
- }, formatValue(currentRangeValue[1])))) : /*#__PURE__*/React.createElement(StyledThumb, {
6192
- role: "slider",
6193
- tabIndex: disabled ? -1 : 0,
6194
- "aria-label": ariaLabel || label || 'Slider value',
6195
- "aria-valuemin": min,
6196
- "aria-valuemax": max,
6197
- "aria-valuenow": currentValue,
6198
- "aria-valuetext": formatValue(currentValue),
6199
- "aria-disabled": disabled,
6200
- "aria-describedby": ariaDescribedBy,
6201
- $disabled: disabled,
6202
- $active: activeThumb === 'single',
6203
- style: {
6204
- left: "".concat(singlePercent, "%")
6205
- },
6206
- onMouseDown: handleThumbMouseDown('single'),
6207
- onKeyDown: handleKeyDown('single')
6208
- }, showValueLabel && /*#__PURE__*/React.createElement(StyledValueLabel, {
6209
- $disabled: disabled
6210
- }, formatValue(currentValue))))), /*#__PURE__*/React.createElement(StyledMinMaxLabels, null, /*#__PURE__*/React.createElement("span", null, formatValue(min)), /*#__PURE__*/React.createElement("span", null, formatValue(max))));
6324
+ return jsxs(StyledSliderContainer, {
6325
+ "data-testid": dataTestId,
6326
+ children: [label && jsx(StyledLabel$1, {
6327
+ htmlFor: generatedId,
6328
+ "$disabled": disabled,
6329
+ children: label
6330
+ }), jsx(StyledSliderTrackContainer, {
6331
+ children: jsxs(StyledTrack, {
6332
+ ref: trackRef,
6333
+ onClick: handleTrackClick,
6334
+ "$disabled": disabled,
6335
+ children: [isRange ? jsx(StyledTrackFill, {
6336
+ "$disabled": disabled,
6337
+ style: {
6338
+ left: "".concat(minPercent, "%"),
6339
+ width: "".concat(maxPercent - minPercent, "%")
6340
+ }
6341
+ }) : jsx(StyledTrackFill, {
6342
+ "$disabled": disabled,
6343
+ style: {
6344
+ left: 0,
6345
+ width: "".concat(singlePercent, "%")
6346
+ }
6347
+ }), isRange ? jsxs(Fragment, {
6348
+ children: [jsx(StyledThumb, {
6349
+ role: "slider",
6350
+ tabIndex: disabled ? -1 : 0,
6351
+ "aria-label": ariaLabel ? "".concat(ariaLabel, " minimum") : 'Minimum value',
6352
+ "aria-valuemin": min,
6353
+ "aria-valuemax": max,
6354
+ "aria-valuenow": currentRangeValue[0],
6355
+ "aria-valuetext": formatValue(currentRangeValue[0]),
6356
+ "aria-disabled": disabled,
6357
+ "aria-describedby": ariaDescribedBy,
6358
+ "$disabled": disabled,
6359
+ "$active": activeThumb === 'min',
6360
+ style: {
6361
+ left: "".concat(minPercent, "%")
6362
+ },
6363
+ onMouseDown: handleThumbMouseDown('min'),
6364
+ onKeyDown: handleKeyDown('min'),
6365
+ children: showValueLabel && jsx(StyledValueLabel, {
6366
+ "$disabled": disabled,
6367
+ children: formatValue(currentRangeValue[0])
6368
+ })
6369
+ }), jsx(StyledThumb, {
6370
+ role: "slider",
6371
+ tabIndex: disabled ? -1 : 0,
6372
+ "aria-label": ariaLabel ? "".concat(ariaLabel, " maximum") : 'Maximum value',
6373
+ "aria-valuemin": min,
6374
+ "aria-valuemax": max,
6375
+ "aria-valuenow": currentRangeValue[1],
6376
+ "aria-valuetext": formatValue(currentRangeValue[1]),
6377
+ "aria-disabled": disabled,
6378
+ "aria-describedby": ariaDescribedBy,
6379
+ "$disabled": disabled,
6380
+ "$active": activeThumb === 'max',
6381
+ style: {
6382
+ left: "".concat(maxPercent, "%")
6383
+ },
6384
+ onMouseDown: handleThumbMouseDown('max'),
6385
+ onKeyDown: handleKeyDown('max'),
6386
+ children: showValueLabel && jsx(StyledValueLabel, {
6387
+ "$disabled": disabled,
6388
+ children: formatValue(currentRangeValue[1])
6389
+ })
6390
+ })]
6391
+ }) : jsx(StyledThumb, {
6392
+ role: "slider",
6393
+ tabIndex: disabled ? -1 : 0,
6394
+ "aria-label": ariaLabel || label || 'Slider value',
6395
+ "aria-valuemin": min,
6396
+ "aria-valuemax": max,
6397
+ "aria-valuenow": currentValue,
6398
+ "aria-valuetext": formatValue(currentValue),
6399
+ "aria-disabled": disabled,
6400
+ "aria-describedby": ariaDescribedBy,
6401
+ "$disabled": disabled,
6402
+ "$active": activeThumb === 'single',
6403
+ style: {
6404
+ left: "".concat(singlePercent, "%")
6405
+ },
6406
+ onMouseDown: handleThumbMouseDown('single'),
6407
+ onKeyDown: handleKeyDown('single'),
6408
+ children: showValueLabel && jsx(StyledValueLabel, {
6409
+ "$disabled": disabled,
6410
+ children: formatValue(currentValue)
6411
+ })
6412
+ })]
6413
+ })
6414
+ }), jsxs(StyledMinMaxLabels, {
6415
+ children: [jsx("span", {
6416
+ children: formatValue(min)
6417
+ }), jsx("span", {
6418
+ children: formatValue(max)
6419
+ })]
6420
+ })]
6421
+ });
6211
6422
  };
6212
6423
  Slider.displayName = 'Slider';
6213
6424
  var templateObject_1$4, templateObject_2$4, templateObject_3$4, templateObject_4$3, templateObject_5$2, templateObject_6$2, templateObject_7$2, templateObject_8$2;
6214
6425
 
6215
- React.createElement;
6216
6426
  var semantic$1 = tokensData.semantic,
6217
6427
  base$1 = tokensData.base;
6218
6428
  var StyledTabList = styled.div.withConfig({
@@ -6394,43 +6604,44 @@ var TabBar = function TabBar(_a) {
6394
6604
  (_a = tabRefs.current[newIndex]) === null || _a === void 0 ? void 0 : _a.focus();
6395
6605
  }
6396
6606
  };
6397
- return /*#__PURE__*/React.createElement(StyledTabList, {
6398
- $variant: variant,
6607
+ return jsx(StyledTabList, {
6608
+ "$variant": variant,
6399
6609
  role: "tablist",
6400
6610
  "aria-label": ariaLabel,
6401
- "data-testid": dataTestId
6402
- }, tabs.map(function (tab, index) {
6403
- return /*#__PURE__*/React.createElement(StyledTab, {
6404
- key: tab.id,
6405
- ref: function ref(el) {
6406
- tabRefs.current[index] = el;
6407
- },
6408
- $variant: variant,
6409
- $isActive: tab.id === activeTab,
6410
- $disabled: tab.disabled || false,
6411
- role: "tab",
6412
- "aria-selected": tab.id === activeTab,
6413
- "aria-disabled": tab.disabled || false,
6414
- tabIndex: index === focusedIndex ? 0 : -1,
6415
- disabled: tab.disabled,
6416
- onClick: function onClick() {
6417
- return handleTabClick(tab, index);
6418
- },
6419
- onKeyDown: function onKeyDown(e) {
6420
- return handleKeyDown(e, index);
6421
- },
6422
- "data-testid": "".concat(dataTestId, "-tab-").concat(tab.id)
6423
- }, tab.label, typeof tab.badge === 'number' && tab.badge > 0 && /*#__PURE__*/React.createElement(StyledBadge, {
6424
- $variant: variant,
6425
- $isActive: tab.id === activeTab,
6426
- "aria-label": "".concat(tab.badge, " items")
6427
- }, tab.badge > 99 ? '99+' : tab.badge));
6428
- }));
6611
+ "data-testid": dataTestId,
6612
+ children: tabs.map(function (tab, index) {
6613
+ return jsxs(StyledTab, {
6614
+ ref: function ref(el) {
6615
+ tabRefs.current[index] = el;
6616
+ },
6617
+ "$variant": variant,
6618
+ "$isActive": tab.id === activeTab,
6619
+ "$disabled": tab.disabled || false,
6620
+ role: "tab",
6621
+ "aria-selected": tab.id === activeTab,
6622
+ "aria-disabled": tab.disabled || false,
6623
+ tabIndex: index === focusedIndex ? 0 : -1,
6624
+ disabled: tab.disabled,
6625
+ onClick: function onClick() {
6626
+ return handleTabClick(tab, index);
6627
+ },
6628
+ onKeyDown: function onKeyDown(e) {
6629
+ return handleKeyDown(e, index);
6630
+ },
6631
+ "data-testid": "".concat(dataTestId, "-tab-").concat(tab.id),
6632
+ children: [tab.label, typeof tab.badge === 'number' && tab.badge > 0 && jsx(StyledBadge, {
6633
+ "$variant": variant,
6634
+ "$isActive": tab.id === activeTab,
6635
+ "aria-label": "".concat(tab.badge, " items"),
6636
+ children: tab.badge > 99 ? '99+' : tab.badge
6637
+ })]
6638
+ }, tab.id);
6639
+ })
6640
+ });
6429
6641
  };
6430
6642
  TabBar.displayName = 'TabBar';
6431
6643
  var templateObject_1$3, templateObject_2$3, templateObject_3$3;
6432
6644
 
6433
- React.createElement;
6434
6645
  var semantic = tokensData.semantic,
6435
6646
  base = tokensData.base;
6436
6647
  var StyledFieldContainer = styled.div.withConfig({
@@ -6499,43 +6710,47 @@ var TextField = /*#__PURE__*/forwardRef(function (_a, ref) {
6499
6710
  var helperId = helperText && !error ? "".concat(id, "-helper") : undefined;
6500
6711
  var describedBy = [errorId, helperId].filter(Boolean).join(' ') || undefined;
6501
6712
  var hasError = Boolean(error);
6502
- return /*#__PURE__*/React.createElement(StyledFieldContainer, {
6503
- "data-testid": dataTestId
6504
- }, label && /*#__PURE__*/React.createElement(StyledLabel, {
6505
- htmlFor: id,
6506
- "data-disabled": disabled
6507
- }, label, required && /*#__PURE__*/React.createElement(StyledRequiredIndicator, {
6508
- "aria-label": "required"
6509
- }, "*")), /*#__PURE__*/React.createElement(StyledInputBase, _extends({
6510
- ref: ref,
6511
- id: id,
6512
- type: type,
6513
- disabled: disabled,
6514
- required: required,
6515
- "aria-required": required,
6516
- "aria-invalid": hasError,
6517
- "aria-describedby": describedBy,
6518
- $hasError: hasError,
6519
- $disabled: disabled
6520
- }, inputProps)), error && /*#__PURE__*/React.createElement(StyledHelperText, {
6521
- id: errorId,
6522
- role: "alert",
6523
- "aria-live": "polite",
6524
- $hasError: true
6525
- }, error), helperText && !error && /*#__PURE__*/React.createElement(StyledHelperText, {
6526
- id: helperId
6527
- }, helperText));
6713
+ return jsxs(StyledFieldContainer, {
6714
+ "data-testid": dataTestId,
6715
+ children: [label && jsxs(StyledLabel, {
6716
+ htmlFor: id,
6717
+ "data-disabled": disabled,
6718
+ children: [label, required && jsx(StyledRequiredIndicator, {
6719
+ "aria-label": "required",
6720
+ children: "*"
6721
+ })]
6722
+ }), jsx(StyledInputBase, __assign({
6723
+ ref: ref,
6724
+ id: id,
6725
+ type: type,
6726
+ disabled: disabled,
6727
+ required: required,
6728
+ "aria-required": required,
6729
+ "aria-invalid": hasError,
6730
+ "aria-describedby": describedBy,
6731
+ "$hasError": hasError,
6732
+ "$disabled": disabled
6733
+ }, inputProps)), error && jsx(StyledHelperText, {
6734
+ id: errorId,
6735
+ role: "alert",
6736
+ "aria-live": "polite",
6737
+ "$hasError": true,
6738
+ children: error
6739
+ }), helperText && !error && jsx(StyledHelperText, {
6740
+ id: helperId,
6741
+ children: helperText
6742
+ })]
6743
+ });
6528
6744
  });
6529
6745
  TextField.displayName = 'TextField';
6530
6746
  var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2;
6531
6747
 
6532
- React.createElement;
6533
6748
  var StyledContainer = styled.div.withConfig({
6534
6749
  displayName: "TransactionListItem__StyledContainer",
6535
6750
  componentId: "sc-7yunm0-0"
6536
6751
  })(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n min-height: 72px;\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: 1px solid ", ";\n gap: ", ";\n transition: background-color 0.2s ease;\n \n ", "\n"], ["\n display: flex;\n align-items: center;\n min-height: 72px;\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: 1px solid ", ";\n gap: ", ";\n transition: background-color 0.2s ease;\n \n ", "\n"])), tokensData.semantic.spacing.layout.md, tokensData.semantic.spacing.layout.md, tokensData.semantic.color.background["default"], tokensData.semantic.color.border["default"], tokensData.semantic.spacing.layout.md, function (_a) {
6537
6752
  var $clickable = _a.$clickable;
6538
- return $clickable && "\n cursor: pointer;\n \n &:hover {\n background-color: ".concat(tokensData.semantic.color.background['interactive-hover'], ";\n }\n \n &:active {\n background-color: ").concat(tokensData.semantic.color.background['interactive-active'], ";\n }\n \n &:focus-visible {\n outline: 2px solid ").concat(tokensData.semantic.color.border.interactive, ";\n outline-offset: -2px;\n }\n ");
6753
+ return $clickable && "\n cursor: pointer;\n \n &:hover {\n background-color: ".concat(tokensData.semantic.color.background.subtle, ";\n }\n \n &:active {\n background-color: ").concat(tokensData.semantic.color.background['interactive-active'], ";\n }\n \n &:focus-visible {\n outline: 2px solid ").concat(tokensData.semantic.color.border.interactive, ";\n outline-offset: -2px;\n }\n ");
6539
6754
  });
6540
6755
  var StyledAvatarSection = styled.div.withConfig({
6541
6756
  displayName: "TransactionListItem__StyledAvatarSection",
@@ -6544,7 +6759,7 @@ var StyledAvatarSection = styled.div.withConfig({
6544
6759
  var StyledMainContent = styled.div.withConfig({
6545
6760
  displayName: "TransactionListItem__StyledMainContent",
6546
6761
  componentId: "sc-7yunm0-2"
6547
- })(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: ", ";\n"], ["\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: ", ";\n"])), tokensData.semantic.spacing.layout.xs);
6762
+ })(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: none;\n"], ["\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: none;\n"])));
6548
6763
  var StyledTopRow = styled.div.withConfig({
6549
6764
  displayName: "TransactionListItem__StyledTopRow",
6550
6765
  componentId: "sc-7yunm0-3"
@@ -6552,7 +6767,7 @@ var StyledTopRow = styled.div.withConfig({
6552
6767
  var StyledMerchantSection = styled.div.withConfig({
6553
6768
  displayName: "TransactionListItem__StyledMerchantSection",
6554
6769
  componentId: "sc-7yunm0-4"
6555
- })(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"])), tokensData.semantic.spacing.layout.xs);
6770
+ })(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n min-width: 0;\n flex: 1;\n"])), tokensData.semantic.spacing.layout.sm);
6556
6771
  var StyledBottomRow = styled.div.withConfig({
6557
6772
  displayName: "TransactionListItem__StyledBottomRow",
6558
6773
  componentId: "sc-7yunm0-5"
@@ -6569,21 +6784,40 @@ var StyledTruncatedText = styled.span.withConfig({
6569
6784
  displayName: "TransactionListItem__StyledTruncatedText",
6570
6785
  componentId: "sc-7yunm0-8"
6571
6786
  })(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"], ["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"
6572
- // Map categories to icon names (using placeholders until custom icons available)
6787
+ // Map categories to CategoryBadge configurations
6573
6788
  ])));
6574
- // Map categories to icon names (using placeholders until custom icons available)
6575
- var categoryToIcon = {
6576
- shopping: 'paper',
6577
- // Will use shopping bag icon
6578
- dining: 'paper',
6579
- // Will use restaurant icon
6580
- transport: 'paper',
6581
- // Will use car icon
6582
- entertainment: 'star',
6583
- // Will use ticket icon
6584
- bills: 'paper',
6585
- // Will use document icon
6586
- other: 'paper'
6789
+ // Map categories to CategoryBadge configurations
6790
+ var categoryConfig = {
6791
+ shopping: {
6792
+ color: 'purple',
6793
+ icon: 'paper',
6794
+ label: 'Shopping'
6795
+ },
6796
+ dining: {
6797
+ color: 'orange',
6798
+ icon: 'paper',
6799
+ label: 'Dining'
6800
+ },
6801
+ transport: {
6802
+ color: 'blue',
6803
+ icon: 'paper',
6804
+ label: 'Transport'
6805
+ },
6806
+ entertainment: {
6807
+ color: 'pink',
6808
+ icon: 'star',
6809
+ label: 'Entertainment'
6810
+ },
6811
+ bills: {
6812
+ color: 'red',
6813
+ icon: 'paper',
6814
+ label: 'Bills'
6815
+ },
6816
+ other: {
6817
+ color: 'gray',
6818
+ icon: 'paper',
6819
+ label: 'Other'
6820
+ }
6587
6821
  };
6588
6822
  // Map status to badge variant
6589
6823
  var statusToBadgeVariant = {
@@ -6620,8 +6854,8 @@ var TransactionListItem = function TransactionListItem(_a) {
6620
6854
  var isClickable = !!onClick;
6621
6855
  // Determine amount variant
6622
6856
  var amountVariant = amount > 0 ? 'positive' : amount < 0 ? 'negative' : 'default';
6623
- // Get category icon
6624
- var categoryIcon = category ? categoryToIcon[category] : undefined;
6857
+ // Get category configuration
6858
+ var categoryData = category ? categoryConfig[category] : undefined;
6625
6859
  // Get badge variant from status
6626
6860
  var badgeVariant = statusToBadgeVariant[status];
6627
6861
  var handleClick = function handleClick() {
@@ -6635,71 +6869,95 @@ var TransactionListItem = function TransactionListItem(_a) {
6635
6869
  onClick === null || onClick === void 0 ? void 0 : onClick();
6636
6870
  }
6637
6871
  };
6638
- return /*#__PURE__*/React.createElement(StyledContainer, {
6639
- $clickable: isClickable,
6872
+ return jsxs(StyledContainer, {
6873
+ "$clickable": isClickable,
6640
6874
  onClick: handleClick,
6641
6875
  onKeyDown: handleKeyDown,
6642
6876
  tabIndex: isClickable ? 0 : undefined,
6643
6877
  role: isClickable ? 'button' : undefined,
6644
6878
  "aria-label": isClickable ? "".concat(merchant, " transaction, ").concat(amount < 0 ? 'expense' : 'income', " of ").concat(Math.abs(amount)) : undefined,
6645
- "data-testid": dataTestId
6646
- }, /*#__PURE__*/React.createElement(StyledAvatarSection, null, status === 'pending' ? /*#__PURE__*/React.createElement(Badge, {
6647
- variant: badgeVariant,
6648
- dot: true,
6649
- "aria-label": "Pending transaction"
6650
- }, /*#__PURE__*/React.createElement(Avatar, {
6651
- name: merchant,
6652
- picture: merchantLogo,
6653
- size: "md"
6654
- })) : /*#__PURE__*/React.createElement(Avatar, {
6655
- name: merchant,
6656
- picture: merchantLogo,
6657
- size: "md"
6658
- })), /*#__PURE__*/React.createElement(StyledMainContent, null, /*#__PURE__*/React.createElement(StyledTopRow, null, /*#__PURE__*/React.createElement(StyledMerchantSection, null, categoryIcon && /*#__PURE__*/React.createElement("span", {
6659
- "aria-label": "Category: ".concat(category),
6660
- role: "img"
6661
- }, /*#__PURE__*/React.createElement(Icon, {
6662
- name: categoryIcon,
6663
- size: "sm",
6664
- iconColor: "subdued"
6665
- })), /*#__PURE__*/React.createElement(StyledTruncatedText, null, /*#__PURE__*/React.createElement(Typography, {
6666
- variant: "body"
6667
- }, merchant)), status === 'failed' && /*#__PURE__*/React.createElement(Badge, {
6668
- variant: "error",
6669
- dot: true,
6670
- "aria-label": "Failed transaction"
6671
- }, /*#__PURE__*/React.createElement("span", null))), /*#__PURE__*/React.createElement(MoneyDisplay, {
6672
- amount: amount,
6673
- currency: currency,
6674
- variant: amountVariant,
6675
- size: "medium",
6676
- weight: "medium",
6677
- showSign: true,
6678
- "data-testid": dataTestId ? "".concat(dataTestId, "-amount") : undefined
6679
- })), /*#__PURE__*/React.createElement(StyledBottomRow, null, /*#__PURE__*/React.createElement(StyledMetadata, null, /*#__PURE__*/React.createElement(DateFormatter, {
6680
- dateString: typeof date === 'string' ? date : date.toISOString(),
6681
- mode: "smart",
6682
- "data-testid": dataTestId ? "".concat(dataTestId, "-date") : undefined
6683
- }), description && /*#__PURE__*/React.createElement(StyledTruncatedText, null, /*#__PURE__*/React.createElement(Typography, {
6684
- variant: "caption",
6685
- color: "subdued"
6686
- }, "\u2022 ", description))), (hasReceipt || hasNote) && /*#__PURE__*/React.createElement(StyledIconIndicator, null, hasReceipt && /*#__PURE__*/React.createElement("span", {
6687
- "aria-label": "Has receipt",
6688
- role: "img"
6689
- }, /*#__PURE__*/React.createElement(Icon, {
6690
- name: "fileDocSearch",
6691
- size: "xs"
6692
- })), hasNote && /*#__PURE__*/React.createElement("span", {
6693
- "aria-label": "Has note",
6694
- role: "img"
6695
- }, /*#__PURE__*/React.createElement(Icon, {
6696
- name: "paper",
6697
- size: "xs"
6698
- }))))));
6879
+ "data-testid": dataTestId,
6880
+ children: [jsx(StyledAvatarSection, {
6881
+ children: status === 'pending' ? jsx(Badge, {
6882
+ variant: badgeVariant,
6883
+ dot: true,
6884
+ "aria-label": "Pending transaction",
6885
+ children: jsx(Avatar, {
6886
+ name: merchant,
6887
+ picture: merchantLogo,
6888
+ size: "md"
6889
+ })
6890
+ }) : jsx(Avatar, {
6891
+ name: merchant,
6892
+ picture: merchantLogo,
6893
+ size: "md"
6894
+ })
6895
+ }), jsxs(StyledMainContent, {
6896
+ children: [jsxs(StyledTopRow, {
6897
+ children: [jsxs(StyledMerchantSection, {
6898
+ children: [jsx(StyledTruncatedText, {
6899
+ children: jsx(Typography, {
6900
+ variant: "body",
6901
+ children: merchant
6902
+ })
6903
+ }), categoryData && jsx(CategoryBadge, {
6904
+ color: categoryData.color,
6905
+ icon: categoryData.icon,
6906
+ size: "small",
6907
+ variant: "minimal",
6908
+ "aria-label": "Category: ".concat(categoryData.label),
6909
+ children: categoryData.label
6910
+ }), status === 'failed' && jsx(Badge, {
6911
+ variant: "error",
6912
+ dot: true,
6913
+ "aria-label": "Failed transaction",
6914
+ children: jsx("span", {})
6915
+ })]
6916
+ }), jsx(MoneyDisplay, {
6917
+ amount: amount,
6918
+ currency: currency,
6919
+ variant: amountVariant,
6920
+ size: "medium",
6921
+ weight: "medium",
6922
+ showSign: true,
6923
+ "data-testid": dataTestId ? "".concat(dataTestId, "-amount") : undefined
6924
+ })]
6925
+ }), jsxs(StyledBottomRow, {
6926
+ children: [jsxs(StyledMetadata, {
6927
+ children: [jsx(DateFormatter, {
6928
+ dateString: typeof date === 'string' ? date : date.toISOString(),
6929
+ mode: "smart",
6930
+ "data-testid": dataTestId ? "".concat(dataTestId, "-date") : undefined
6931
+ }), description && jsx(StyledTruncatedText, {
6932
+ children: jsxs(Typography, {
6933
+ variant: "small",
6934
+ color: "subdued",
6935
+ children: ["\u2022 ", description]
6936
+ })
6937
+ })]
6938
+ }), (hasReceipt || hasNote) && jsxs(StyledIconIndicator, {
6939
+ children: [hasReceipt && jsx("span", {
6940
+ "aria-label": "Has receipt",
6941
+ role: "img",
6942
+ children: jsx(Icon, {
6943
+ name: "fileDocSearch",
6944
+ size: "xs"
6945
+ })
6946
+ }), hasNote && jsx("span", {
6947
+ "aria-label": "Has note",
6948
+ role: "img",
6949
+ children: jsx(Icon, {
6950
+ name: "paper",
6951
+ size: "xs"
6952
+ })
6953
+ })]
6954
+ })]
6955
+ })]
6956
+ })]
6957
+ });
6699
6958
  };
6700
6959
  var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7$1, templateObject_8$1, templateObject_9$1;
6701
6960
 
6702
- React.createElement;
6703
6961
  // Breakpoints using base tokens
6704
6962
  var breakpoints = {
6705
6963
  xs: tokensData.base.breakpoint.xs,
@@ -6741,13 +6999,14 @@ var Grid = function Grid(_a) {
6741
6999
  gapY = _a.gapY,
6742
7000
  className = _a.className,
6743
7001
  children = _a.children;
6744
- return /*#__PURE__*/React.createElement(GridContainer, {
6745
- $cols: cols,
6746
- $gap: gap ? tokensData.base.spacing[gap] : undefined,
6747
- $gapX: gapX ? tokensData.base.spacing[gapX] : undefined,
6748
- $gapY: gapY ? tokensData.base.spacing[gapY] : undefined,
6749
- className: className
6750
- }, children);
7002
+ return jsx(GridContainer, {
7003
+ "$cols": cols,
7004
+ "$gap": gap ? tokensData.base.spacing[gap] : undefined,
7005
+ "$gapX": gapX ? tokensData.base.spacing[gapX] : undefined,
7006
+ "$gapY": gapY ? tokensData.base.spacing[gapY] : undefined,
7007
+ className: className,
7008
+ children: children
7009
+ });
6751
7010
  };
6752
7011
  var GridColContainer = styled.div.withConfig({
6753
7012
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -6789,19 +7048,20 @@ var GridCol = function GridCol(_a) {
6789
7048
  orderXl = _a.orderXl,
6790
7049
  className = _a.className,
6791
7050
  children = _a.children;
6792
- return /*#__PURE__*/React.createElement(GridColContainer, {
6793
- $span: span,
6794
- $spanSm: spanSm,
6795
- $spanMd: spanMd,
6796
- $spanLg: spanLg,
6797
- $spanXl: spanXl,
6798
- $order: order,
6799
- $orderSm: orderSm,
6800
- $orderMd: orderMd,
6801
- $orderLg: orderLg,
6802
- $orderXl: orderXl,
6803
- className: className
6804
- }, children);
7051
+ return jsx(GridColContainer, {
7052
+ "$span": span,
7053
+ "$spanSm": spanSm,
7054
+ "$spanMd": spanMd,
7055
+ "$spanLg": spanLg,
7056
+ "$spanXl": spanXl,
7057
+ "$order": order,
7058
+ "$orderSm": orderSm,
7059
+ "$orderMd": orderMd,
7060
+ "$orderLg": orderLg,
7061
+ "$orderXl": orderXl,
7062
+ className: className,
7063
+ children: children
7064
+ });
6805
7065
  };
6806
7066
  var ResponsiveGridContainer = styled.div.withConfig({
6807
7067
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -6873,29 +7133,30 @@ var ResponsiveGrid = function ResponsiveGrid(_a) {
6873
7133
  gapYXl = _a.gapYXl,
6874
7134
  className = _a.className,
6875
7135
  children = _a.children;
6876
- return /*#__PURE__*/React.createElement(ResponsiveGridContainer, {
6877
- $cols: cols,
6878
- $colsSm: colsSm,
6879
- $colsMd: colsMd,
6880
- $colsLg: colsLg,
6881
- $colsXl: colsXl,
6882
- $gap: gap ? tokensData.base.spacing[gap] : undefined,
6883
- $gapSm: gapSm ? tokensData.base.spacing[gapSm] : undefined,
6884
- $gapMd: gapMd ? tokensData.base.spacing[gapMd] : undefined,
6885
- $gapLg: gapLg ? tokensData.base.spacing[gapLg] : undefined,
6886
- $gapXl: gapXl ? tokensData.base.spacing[gapXl] : undefined,
6887
- $gapX: gapX ? tokensData.base.spacing[gapX] : undefined,
6888
- $gapXSm: gapXSm ? tokensData.base.spacing[gapXSm] : undefined,
6889
- $gapXMd: gapXMd ? tokensData.base.spacing[gapXMd] : undefined,
6890
- $gapXLg: gapXLg ? tokensData.base.spacing[gapXLg] : undefined,
6891
- $gapXXl: gapXXl ? tokensData.base.spacing[gapXXl] : undefined,
6892
- $gapY: gapY ? tokensData.base.spacing[gapY] : undefined,
6893
- $gapYSm: gapYSm ? tokensData.base.spacing[gapYSm] : undefined,
6894
- $gapYMd: gapYMd ? tokensData.base.spacing[gapYMd] : undefined,
6895
- $gapYLg: gapYLg ? tokensData.base.spacing[gapYLg] : undefined,
6896
- $gapYXl: gapYXl ? tokensData.base.spacing[gapYXl] : undefined,
6897
- className: className
6898
- }, children);
7136
+ return jsx(ResponsiveGridContainer, {
7137
+ "$cols": cols,
7138
+ "$colsSm": colsSm,
7139
+ "$colsMd": colsMd,
7140
+ "$colsLg": colsLg,
7141
+ "$colsXl": colsXl,
7142
+ "$gap": gap ? tokensData.base.spacing[gap] : undefined,
7143
+ "$gapSm": gapSm ? tokensData.base.spacing[gapSm] : undefined,
7144
+ "$gapMd": gapMd ? tokensData.base.spacing[gapMd] : undefined,
7145
+ "$gapLg": gapLg ? tokensData.base.spacing[gapLg] : undefined,
7146
+ "$gapXl": gapXl ? tokensData.base.spacing[gapXl] : undefined,
7147
+ "$gapX": gapX ? tokensData.base.spacing[gapX] : undefined,
7148
+ "$gapXSm": gapXSm ? tokensData.base.spacing[gapXSm] : undefined,
7149
+ "$gapXMd": gapXMd ? tokensData.base.spacing[gapXMd] : undefined,
7150
+ "$gapXLg": gapXLg ? tokensData.base.spacing[gapXLg] : undefined,
7151
+ "$gapXXl": gapXXl ? tokensData.base.spacing[gapXXl] : undefined,
7152
+ "$gapY": gapY ? tokensData.base.spacing[gapY] : undefined,
7153
+ "$gapYSm": gapYSm ? tokensData.base.spacing[gapYSm] : undefined,
7154
+ "$gapYMd": gapYMd ? tokensData.base.spacing[gapYMd] : undefined,
7155
+ "$gapYLg": gapYLg ? tokensData.base.spacing[gapYLg] : undefined,
7156
+ "$gapYXl": gapYXl ? tokensData.base.spacing[gapYXl] : undefined,
7157
+ className: className,
7158
+ children: children
7159
+ });
6899
7160
  };
6900
7161
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35;
6901
7162