@common-origin/design-system 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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('$');
@@ -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
956
  var templateObject_1$I, templateObject_2$t, templateObject_3$p;
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"])));
@@ -1154,29 +1146,33 @@ 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
1167
  var templateObject_1$G, templateObject_2$s, templateObject_3$o, 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);
@@ -1189,11 +1185,11 @@ var StyledBox = styled.div.withConfig({
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
1261
  }, function (props) {
1262
- return props.$overflowX && css(templateObject_41 || (templateObject_41 = __makeTemplateObject(["overflow-x: ", ";"], ["overflow-x: ", ";"])), props.$overflowX);
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);
1263
1263
  }, function (props) {
1264
- return props.$overflowY && css(templateObject_42 || (templateObject_42 = __makeTemplateObject(["overflow-y: ", ";"], ["overflow-y: ", ";"])), props.$overflowY);
1264
+ return props.$overflow && css(templateObject_46 || (templateObject_46 = __makeTemplateObject(["overflow: ", ";"], ["overflow: ", ";"])), props.$overflow);
1265
+ }, function (props) {
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$n, templateObject_4$i, templateObject_5$e, templateObject_6$c, templateObject_7$9, templateObject_8$5, templateObject_9$4, templateObject_10$3, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24$1, templateObject_25$1, templateObject_26$1, templateObject_27$1, templateObject_28$1, templateObject_29$1, templateObject_30$1, templateObject_31$1, templateObject_32$1, templateObject_33$1, templateObject_34$1, templateObject_35$1, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49;
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,29 +1668,30 @@ 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
@@ -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) {
@@ -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,12 +1981,14 @@ 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;
@@ -2004,7 +2044,6 @@ var getSizeStylesAsObject = function getSizeStylesAsObject(size) {
2004
2044
  }
2005
2045
  };
2006
2046
 
2007
- React.createElement;
2008
2047
  // Base styled component using CSS variables to avoid prop leaking
2009
2048
  var BaseChipStyled = styled.span.withConfig({
2010
2049
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -2060,13 +2099,14 @@ var StyledChipWrapper = function StyledChipWrapper(_a) {
2060
2099
  '--chip-hover-opacity': $disabled ? '0.6' : $clickable ? '0.8' : '1',
2061
2100
  '--chip-active-opacity': $disabled ? '0.6' : $clickable ? '0.9' : '1'
2062
2101
  };
2063
- return /*#__PURE__*/React.createElement(BaseChipStyled, _extends({
2102
+ return jsx(BaseChipStyled, __assign({
2064
2103
  style: __assign(__assign({}, cssProps), style)
2065
- }, htmlProps), children);
2104
+ }, htmlProps, {
2105
+ children: children
2106
+ }));
2066
2107
  };
2067
2108
  var templateObject_1$B, templateObject_2$p, templateObject_3$m;
2068
2109
 
2069
- React.createElement;
2070
2110
  /**
2071
2111
  * Chip - Compact element for displaying tags, categories, and labels
2072
2112
  *
@@ -2112,11 +2152,11 @@ var Chip = function Chip(_a) {
2112
2152
  handleClick();
2113
2153
  }
2114
2154
  };
2115
- return /*#__PURE__*/React.createElement(StyledChipWrapper, _extends({
2116
- $variant: normalizedVariant,
2117
- $size: size,
2118
- $disabled: disabled || undefined,
2119
- $clickable: isClickable || undefined,
2155
+ return jsx(StyledChipWrapper, __assign({
2156
+ "$variant": normalizedVariant,
2157
+ "$size": size,
2158
+ "$disabled": disabled || undefined,
2159
+ "$clickable": isClickable || undefined,
2120
2160
  onClick: isClickable ? handleClick : undefined,
2121
2161
  onKeyDown: handleKeyDown,
2122
2162
  tabIndex: isClickable ? 0 : undefined,
@@ -2125,19 +2165,21 @@ var Chip = function Chip(_a) {
2125
2165
  "aria-describedby": ariaDescribedBy,
2126
2166
  "aria-disabled": disabled ? 'true' : undefined,
2127
2167
  "data-testid": dataTestId
2128
- }, props), content);
2168
+ }, props, {
2169
+ children: content
2170
+ }));
2129
2171
  };
2130
2172
  var LegacyChip = function LegacyChip(_a) {
2131
2173
  var title = _a.title,
2132
2174
  _b = _a.variant,
2133
2175
  variant = _b === void 0 ? 'light' : _b;
2134
2176
  var newVariant = variant === 'dark' ? 'emphasis' : 'default';
2135
- return /*#__PURE__*/React.createElement(Chip, {
2136
- variant: newVariant
2137
- }, title);
2177
+ return jsx(Chip, {
2178
+ variant: newVariant,
2179
+ children: title
2180
+ });
2138
2181
  };
2139
2182
 
2140
- React.createElement;
2141
2183
  /**
2142
2184
  * FilterChip - Chip for displaying filters with selected state and optional dismissal
2143
2185
  *
@@ -2190,39 +2232,42 @@ var FilterChip = function FilterChip(_a) {
2190
2232
  };
2191
2233
  // Generate accessible label for close button
2192
2234
  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,
2235
+ return jsxs(StyledChipWrapper, __assign({
2236
+ "$variant": "subtle",
2237
+ "$size": size,
2238
+ "$disabled": disabled || undefined,
2239
+ "$clickable": false,
2240
+ "$selected": selected,
2199
2241
  onKeyDown: handleKeyDown,
2200
2242
  role: role || 'status',
2201
2243
  "aria-label": ariaLabel,
2202
2244
  "aria-describedby": ariaDescribedBy,
2203
2245
  "aria-disabled": disabled ? 'true' : undefined,
2204
2246
  "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
- })));
2247
+ }, props, {
2248
+ children: [selected && jsx(IconContainer, {
2249
+ "aria-hidden": "true",
2250
+ children: jsx(Icon, {
2251
+ name: "check",
2252
+ size: "sm"
2253
+ })
2254
+ }), children, isDismissible && jsx(CloseButton, {
2255
+ type: "button",
2256
+ onClick: handleDismiss,
2257
+ onKeyDown: handleCloseKeyDown,
2258
+ disabled: disabled,
2259
+ "$disabled": disabled,
2260
+ "aria-label": closeButtonLabel,
2261
+ tabIndex: 0,
2262
+ "data-testid": dataTestId ? "".concat(dataTestId, "-close") : undefined,
2263
+ children: jsx(Icon, {
2264
+ name: "close",
2265
+ size: "sm"
2266
+ })
2267
+ })]
2268
+ }));
2223
2269
  };
2224
2270
 
2225
- React.createElement;
2226
2271
  /**
2227
2272
  * BooleanChip - Toggleable chip for quick filter controls
2228
2273
  *
@@ -2261,12 +2306,12 @@ var BooleanChip = function BooleanChip(_a) {
2261
2306
  handleClick();
2262
2307
  }
2263
2308
  };
2264
- return /*#__PURE__*/React.createElement(StyledChipWrapper, _extends({
2265
- $variant: "subtle",
2266
- $size: size,
2267
- $disabled: disabled || undefined,
2268
- $clickable: !disabled,
2269
- $selected: selected,
2309
+ return jsxs(StyledChipWrapper, __assign({
2310
+ "$variant": "subtle",
2311
+ "$size": size,
2312
+ "$disabled": disabled || undefined,
2313
+ "$clickable": !disabled,
2314
+ "$selected": selected,
2270
2315
  onClick: handleClick,
2271
2316
  onKeyDown: handleKeyDown,
2272
2317
  tabIndex: disabled ? undefined : 0,
@@ -2276,12 +2321,15 @@ var BooleanChip = function BooleanChip(_a) {
2276
2321
  "aria-describedby": ariaDescribedBy,
2277
2322
  "aria-disabled": disabled ? 'true' : undefined,
2278
2323
  "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);
2324
+ }, props, {
2325
+ children: [selected && jsx(IconContainer, {
2326
+ "aria-hidden": "true",
2327
+ children: jsx(Icon, {
2328
+ name: "check",
2329
+ size: "sm"
2330
+ })
2331
+ }), children]
2332
+ }));
2285
2333
  };
2286
2334
 
2287
2335
  // Breakpoints using base tokens
@@ -2303,7 +2351,6 @@ var media$1 = {
2303
2351
  '2xl': "@media (min-width: ".concat(breakpoints$1['2xl'], ")")
2304
2352
  };
2305
2353
 
2306
- React.createElement;
2307
2354
  var spacing$3 = tokensData.semantic.spacing;
2308
2355
  var StyledContainer$2 = styled.div.withConfig({
2309
2356
  displayName: "Container__StyledContainer",
@@ -2312,11 +2359,12 @@ var StyledContainer$2 = styled.div.withConfig({
2312
2359
  var Container = function Container(_a) {
2313
2360
  var children = _a.children,
2314
2361
  props = __rest(_a, ["children"]);
2315
- return /*#__PURE__*/React.createElement(StyledContainer$2, props, children);
2362
+ return jsx(StyledContainer$2, __assign({}, props, {
2363
+ children: children
2364
+ }));
2316
2365
  };
2317
2366
  var templateObject_1$A;
2318
2367
 
2319
- React.createElement;
2320
2368
  var base$b = tokensData.base;
2321
2369
  var PictureWrapper = styled.div.withConfig({
2322
2370
  displayName: "Picture__PictureWrapper",
@@ -2344,25 +2392,27 @@ var Picture = function Picture(_a) {
2344
2392
  onClick = _a.onClick,
2345
2393
  href = _a.href,
2346
2394
  dataTestId = _a["data-testid"];
2347
- var image = /*#__PURE__*/React.createElement(StyledImage, {
2395
+ var image = jsx(StyledImage, {
2348
2396
  src: src,
2349
2397
  alt: title,
2350
2398
  width: width,
2351
2399
  height: height
2352
2400
  });
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);
2401
+ return jsx(PictureWrapper, {
2402
+ "data-testid": dataTestId,
2403
+ children: href ? jsx(ImageLink, {
2404
+ href: href,
2405
+ "aria-label": "Read more about ".concat(title),
2406
+ children: image
2407
+ }) : onClick ? jsx(ImageButton, {
2408
+ onClick: onClick,
2409
+ "aria-label": "Read more about ".concat(title),
2410
+ children: image
2411
+ }) : image
2412
+ });
2362
2413
  };
2363
2414
  var templateObject_1$z, templateObject_2$o, templateObject_3$l, templateObject_4$h;
2364
2415
 
2365
- React.createElement;
2366
2416
  var _a$4 = tokensData.semantic,
2367
2417
  typography$1 = _a$4.typography,
2368
2418
  color$2 = _a$4.color;
@@ -2412,14 +2462,14 @@ var DateFormatter = function DateFormatter(_a) {
2412
2462
  displayText = format(date, formatString || 'yyyy');
2413
2463
  break;
2414
2464
  }
2415
- return /*#__PURE__*/React.createElement(TimeStyled, {
2465
+ return jsx(TimeStyled, {
2416
2466
  dateTime: dateString,
2417
- "data-testid": dataTestId
2418
- }, displayText);
2467
+ "data-testid": dataTestId,
2468
+ children: displayText
2469
+ });
2419
2470
  };
2420
2471
  var templateObject_1$y;
2421
2472
 
2422
- React.createElement;
2423
2473
  var motion = tokensData.semantic.motion,
2424
2474
  iconButton = tokensData.component.iconButton;
2425
2475
  var IconButtonStyled = styled.button.withConfig({
@@ -2517,9 +2567,9 @@ var IconButton = function IconButton(_a) {
2517
2567
  return 'default';
2518
2568
  }
2519
2569
  };
2520
- return /*#__PURE__*/React.createElement(IconButtonStyled, _extends({
2521
- $variant: variant,
2522
- $size: size,
2570
+ return jsx(IconButtonStyled, __assign({
2571
+ "$variant": variant,
2572
+ "$size": size,
2523
2573
  onClick: handleClick,
2524
2574
  onKeyDown: handleKeyDown,
2525
2575
  disabled: disabled,
@@ -2532,16 +2582,17 @@ var IconButton = function IconButton(_a) {
2532
2582
  "aria-disabled": disabled,
2533
2583
  tabIndex: disabled ? -1 : 0,
2534
2584
  "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
2585
+ }, htmlProps, {
2586
+ children: jsx(Icon, {
2587
+ name: iconName,
2588
+ size: iconSize,
2589
+ iconColor: getIconColor(variant),
2590
+ "aria-hidden": "true" // Hide icon from screen readers since button has aria-label
2591
+ })
2540
2592
  }));
2541
2593
  };
2542
2594
  var templateObject_1$x;
2543
2595
 
2544
- React.createElement;
2545
2596
  var StyledWrapper = styled.span.withConfig({
2546
2597
  shouldForwardProp: function shouldForwardProp(prop) {
2547
2598
  return !prop.startsWith('$');
@@ -2634,20 +2685,21 @@ var MoneyDisplay = function MoneyDisplay(_a) {
2634
2685
  // Get typography variant and color
2635
2686
  var typographyVariant = sizeToTypographyVariant[size];
2636
2687
  var typographyColor = variantToTypographyColor[variant];
2637
- return /*#__PURE__*/React.createElement(StyledWrapper, {
2638
- $align: align,
2639
- $weight: weight,
2688
+ return jsx(StyledWrapper, {
2689
+ "$align": align,
2690
+ "$weight": weight,
2640
2691
  "aria-label": ariaLabel,
2641
- "data-testid": dataTestId
2642
- }, /*#__PURE__*/React.createElement(Typography, {
2643
- variant: typographyVariant,
2644
- color: typographyColor,
2645
- as: "span"
2646
- }, displayText));
2692
+ "data-testid": dataTestId,
2693
+ children: jsx(Typography, {
2694
+ variant: typographyVariant,
2695
+ color: typographyColor,
2696
+ as: "span",
2697
+ children: displayText
2698
+ })
2699
+ });
2647
2700
  };
2648
2701
  var templateObject_1$w;
2649
2702
 
2650
- React.createElement;
2651
2703
  var ProgressBarContainer = styled.div.withConfig({
2652
2704
  shouldForwardProp: function shouldForwardProp(prop) {
2653
2705
  return !prop.startsWith('$');
@@ -2665,7 +2717,7 @@ var ProgressBarFill = styled.div.withConfig({
2665
2717
  },
2666
2718
  displayName: "ProgressBar__ProgressBarFill",
2667
2719
  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) {
2720
+ })(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
2721
  var backgroundColor;
2670
2722
  switch (props.$color) {
2671
2723
  case 'success':
@@ -2683,7 +2735,7 @@ var ProgressBarFill = styled.div.withConfig({
2683
2735
  }, function (props) {
2684
2736
  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
2737
  }, 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)));
2738
+ 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
2739
  });
2688
2740
  var ProgressBar = function ProgressBar(_a) {
2689
2741
  var value = _a.value,
@@ -2694,24 +2746,24 @@ var ProgressBar = function ProgressBar(_a) {
2694
2746
  height = _a.height,
2695
2747
  width = _a.width,
2696
2748
  dataTestId = _a["data-testid"];
2697
- return /*#__PURE__*/React.createElement(ProgressBarContainer, {
2698
- $variant: variant,
2699
- $height: height,
2700
- $width: width,
2749
+ return jsx(ProgressBarContainer, {
2750
+ "$variant": variant,
2751
+ "$height": height,
2752
+ "$width": width,
2701
2753
  "data-testid": dataTestId,
2702
2754
  role: "progressbar",
2703
2755
  "aria-valuenow": Math.min(100, Math.max(0, value)),
2704
2756
  "aria-valuemin": 0,
2705
- "aria-valuemax": 100
2706
- }, /*#__PURE__*/React.createElement(ProgressBarFill, {
2707
- $value: value,
2708
- $variant: variant,
2709
- $color: color
2710
- }));
2757
+ "aria-valuemax": 100,
2758
+ children: jsx(ProgressBarFill, {
2759
+ "$value": value,
2760
+ "$variant": variant,
2761
+ "$color": color
2762
+ })
2763
+ });
2711
2764
  };
2712
- var templateObject_1$v, templateObject_2$n, templateObject_3$k, templateObject_4$g, templateObject_5$d, templateObject_6$c, templateObject_7$a;
2765
+ var templateObject_1$v, templateObject_2$n, templateObject_3$k, templateObject_4$g, templateObject_5$d, templateObject_6$b, templateObject_7$8;
2713
2766
 
2714
- React.createElement;
2715
2767
  var StyledDivider$1 = styled.div.withConfig({
2716
2768
  shouldForwardProp: function shouldForwardProp(prop) {
2717
2769
  return !prop.startsWith('$');
@@ -2822,10 +2874,10 @@ var Divider = function Divider(_a) {
2822
2874
  _d = _a.orientation,
2823
2875
  orientation = _d === void 0 ? 'horizontal' : _d,
2824
2876
  dataTestId = _a["data-testid"];
2825
- return /*#__PURE__*/React.createElement(StyledDivider$1, {
2826
- $variant: variant,
2827
- $size: size,
2828
- $orientation: orientation,
2877
+ return jsx(StyledDivider$1, {
2878
+ "$variant": variant,
2879
+ "$size": size,
2880
+ "$orientation": orientation,
2829
2881
  "data-testid": dataTestId,
2830
2882
  role: "separator",
2831
2883
  "aria-orientation": orientation
@@ -2833,7 +2885,6 @@ var Divider = function Divider(_a) {
2833
2885
  };
2834
2886
  var templateObject_1$u;
2835
2887
 
2836
- React.createElement;
2837
2888
  var StyledStack = styled.div.withConfig({
2838
2889
  shouldForwardProp: function shouldForwardProp(prop) {
2839
2890
  return !prop.startsWith('$');
@@ -2873,14 +2924,14 @@ var Stack = function Stack(_a) {
2873
2924
  '--stack-gap': gapValue,
2874
2925
  '--stack-wrap': wrap ? 'wrap' : 'nowrap'
2875
2926
  };
2876
- return /*#__PURE__*/React.createElement(StyledStack, {
2927
+ return jsx(StyledStack, {
2877
2928
  style: cssProps,
2878
- "data-testid": dataTestId
2879
- }, children);
2929
+ "data-testid": dataTestId,
2930
+ children: children
2931
+ });
2880
2932
  };
2881
2933
  var templateObject_1$t;
2882
2934
 
2883
- React.createElement;
2884
2935
  var semantic$d = tokensData.semantic,
2885
2936
  base$a = tokensData.base;
2886
2937
  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 +2991,7 @@ var getSizeStyles = function getSizeStyles(size) {
2940
2991
  // medium
2941
2992
  return {
2942
2993
  height: '24px',
2943
- padding: "".concat(base$a.spacing[1], " ").concat(base$a.spacing[3]),
2994
+ padding: "".concat(base$a.spacing[1], " ").concat(base$a.spacing[2]),
2944
2995
  font: semantic$d.typography.small,
2945
2996
  gap: base$a.spacing[1],
2946
2997
  iconSize: 'sm'
@@ -3025,25 +3076,28 @@ var StatusBadge = function StatusBadge(_a) {
3025
3076
  '--status-badge-font': sizeStyles.font,
3026
3077
  '--status-badge-gap': sizeStyles.gap
3027
3078
  };
3028
- return /*#__PURE__*/React.createElement(StyledStatusBadge, {
3029
- $status: status,
3030
- $size: size,
3079
+ return jsxs(StyledStatusBadge, {
3080
+ "$status": status,
3081
+ "$size": size,
3031
3082
  role: "status",
3032
3083
  "aria-label": ariaLabel || "Status: ".concat(displayLabel),
3033
3084
  "aria-live": liveRegion ? 'polite' : undefined,
3034
3085
  "aria-atomic": liveRegion ? 'true' : undefined,
3035
3086
  "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"));
3087
+ style: cssProps,
3088
+ children: [showIcon && jsx(Icon, {
3089
+ name: statusConfig.icon,
3090
+ size: sizeStyles.iconSize,
3091
+ iconColor: "inherit",
3092
+ "aria-hidden": "true"
3093
+ }), displayLabel, jsxs(ScreenReaderOnly, {
3094
+ children: [status, " status"]
3095
+ })]
3096
+ });
3042
3097
  };
3043
3098
  StatusBadge.displayName = 'StatusBadge';
3044
3099
  var templateObject_1$s, templateObject_2$m, templateObject_3$j;
3045
3100
 
3046
- React.createElement;
3047
3101
  var semantic$c = tokensData.semantic;
3048
3102
  var StyledTag = styled.span.withConfig({
3049
3103
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -3122,50 +3176,44 @@ var Tag = function Tag(_a) {
3122
3176
  border = _c === void 0 ? true : _c,
3123
3177
  dataTestId = _a["data-testid"],
3124
3178
  props = __rest(_a, ["children", "variant", "border", 'data-testid']);
3125
- return /*#__PURE__*/React.createElement(StyledTag, _extends({
3126
- $variant: variant,
3127
- $border: border,
3179
+ return jsx(StyledTag, __assign({
3180
+ "$variant": variant,
3181
+ "$border": border,
3128
3182
  "data-testid": dataTestId,
3129
3183
  "data-variant": variant,
3130
3184
  "data-border": border,
3131
3185
  role: "status",
3132
3186
  "aria-label": typeof children === 'string' ? "Tag: ".concat(children) : undefined
3133
- }, props), children);
3187
+ }, props, {
3188
+ children: children
3189
+ }));
3134
3190
  };
3135
3191
  var templateObject_1$r;
3136
3192
 
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
3193
  var StyledHeader$2 = styled.div.withConfig({
3146
3194
  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);
3195
+ componentId: "sc-1erp7zn-0"
3196
+ })(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
3197
  var StyledIconWrapper = styled.div.withConfig({
3150
3198
  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);
3199
+ componentId: "sc-1erp7zn-1"
3200
+ })(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
3201
  var StyledBalanceSection = styled.div.withConfig({
3154
3202
  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);
3203
+ componentId: "sc-1erp7zn-2"
3204
+ })(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), tokensData.semantic.spacing.layout.lg);
3157
3205
  var StyledTrendSection = styled.div.withConfig({
3158
3206
  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);
3207
+ componentId: "sc-1erp7zn-3"
3208
+ })(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
3209
  var StyledActions$1 = styled.div.withConfig({
3162
3210
  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);
3211
+ componentId: "sc-1erp7zn-4"
3212
+ })(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
3213
  var StyledStackWrapper = styled.div.withConfig({
3166
3214
  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"
3215
+ componentId: "sc-1erp7zn-5"
3216
+ })(templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n height: 100%;\n min-height: 168px;\n"], ["\n height: 100%;\n min-height: 168px;\n"
3169
3217
  // Map account types to icon names (using placeholders)
3170
3218
  ])));
3171
3219
  // Map account types to icon names (using placeholders)
@@ -3225,78 +3273,109 @@ var AccountCard = function AccountCard(_a) {
3225
3273
  onClick === null || onClick === void 0 ? void 0 : onClick();
3226
3274
  }
3227
3275
  };
3228
- return /*#__PURE__*/React.createElement(StyledCard, {
3229
- $clickable: isClickable,
3276
+ return jsx(Box, {
3277
+ minWidth: "300px",
3278
+ minHeight: "200px",
3279
+ p: "lg",
3280
+ bg: "surface",
3281
+ border: "default",
3282
+ borderRadius: "5",
3283
+ shadow: "3",
3284
+ transition: "all 0.2s ease",
3285
+ cursor: isClickable ? 'pointer' : 'default',
3286
+ hoverShadow: isClickable ? '4' : undefined,
3287
+ hoverTransform: isClickable ? 'translateY(-2px)' : undefined,
3230
3288
  onClick: handleClick,
3231
3289
  onKeyDown: handleKeyDown,
3232
3290
  tabIndex: isClickable ? 0 : undefined,
3233
3291
  role: isClickable ? 'button' : 'article',
3234
3292
  "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)))));
3293
+ "data-testid": dataTestId,
3294
+ children: jsx(StyledStackWrapper, {
3295
+ children: jsxs(Stack, {
3296
+ direction: "column",
3297
+ gap: "none",
3298
+ children: [jsx(StyledHeader$2, {
3299
+ children: jsxs(Stack, {
3300
+ direction: "row",
3301
+ gap: "md",
3302
+ alignItems: "center",
3303
+ children: [jsx(StyledIconWrapper, {
3304
+ "aria-label": "".concat(accountType, " account"),
3305
+ role: "img",
3306
+ children: jsx(Icon, {
3307
+ name: accountIcon,
3308
+ iconColor: "inverse",
3309
+ size: "md"
3310
+ })
3311
+ }), jsxs(Stack, {
3312
+ direction: "column",
3313
+ gap: "xs",
3314
+ children: [jsx(Typography, {
3315
+ variant: "h4",
3316
+ children: accountName
3317
+ }), accountNumber && jsxs(Typography, {
3318
+ variant: "caption",
3319
+ color: "subdued",
3320
+ children: ["\u2022\u2022\u2022\u2022 ", accountNumber]
3321
+ })]
3322
+ })]
3323
+ })
3324
+ }), jsxs(StyledBalanceSection, {
3325
+ children: [jsxs(Stack, {
3326
+ direction: "column",
3327
+ gap: "xs",
3328
+ children: [jsx(Typography, {
3329
+ variant: "caption",
3330
+ color: "subdued",
3331
+ children: "Balance"
3332
+ }), jsx(MoneyDisplay, {
3333
+ amount: balance,
3334
+ currency: currency,
3335
+ size: "xlarge",
3336
+ weight: "bold",
3337
+ "data-testid": dataTestId ? "".concat(dataTestId, "-balance") : undefined
3338
+ })]
3339
+ }), trend && trendValue && jsxs(StyledTrendSection, {
3340
+ "aria-label": "Trend ".concat(trend),
3341
+ role: "img",
3342
+ children: [jsx(Icon, {
3343
+ name: trendIcon,
3344
+ size: "xs",
3345
+ iconColor: trendColor
3346
+ }), jsx(Typography, {
3347
+ variant: "caption",
3348
+ color: trendColor,
3349
+ children: trendValue
3350
+ })]
3351
+ })]
3352
+ }), (action || secondaryAction) && jsxs(StyledActions$1, {
3353
+ children: [action && jsx(Button, {
3354
+ onClick: function onClick(e) {
3355
+ e.stopPropagation();
3356
+ action.onClick();
3357
+ },
3358
+ variant: action.variant || 'primary',
3359
+ iconName: action.icon,
3360
+ "data-testid": dataTestId ? "".concat(dataTestId, "-action") : undefined,
3361
+ children: action.label
3362
+ }), secondaryAction && jsx(Button, {
3363
+ onClick: function onClick(e) {
3364
+ e.stopPropagation();
3365
+ secondaryAction.onClick();
3366
+ },
3367
+ variant: secondaryAction.variant || 'naked',
3368
+ iconName: secondaryAction.icon,
3369
+ "data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined,
3370
+ children: secondaryAction.label
3371
+ })]
3372
+ })]
3373
+ })
3374
+ })
3375
+ });
3296
3376
  };
3297
- var templateObject_1$q, templateObject_2$l, templateObject_3$i, templateObject_4$f, templateObject_5$c, templateObject_6$b, templateObject_7$9;
3377
+ var templateObject_1$q, templateObject_2$l, templateObject_3$i, templateObject_4$f, templateObject_5$c, templateObject_6$a;
3298
3378
 
3299
- React.createElement;
3300
3379
  var semantic$b = tokensData.semantic,
3301
3380
  base$9 = tokensData.base;
3302
3381
  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"])));
@@ -3316,15 +3395,15 @@ var StyledHeader$1 = styled.div.withConfig({
3316
3395
  var StyledHeaderContent = styled.div.withConfig({
3317
3396
  displayName: "ActionSheet__StyledHeaderContent",
3318
3397
  componentId: "sc-regbol-3"
3319
- })(templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
3398
+ })(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
3320
3399
  var StyledCloseButton = styled.button.withConfig({
3321
3400
  displayName: "ActionSheet__StyledCloseButton",
3322
3401
  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]);
3402
+ })(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
3403
  var StyledActionsList = styled.div.withConfig({
3325
3404
  displayName: "ActionSheet__StyledActionsList",
3326
3405
  componentId: "sc-regbol-5"
3327
- })(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n padding: ", " 0;\n"], ["\n padding: ", " 0;\n"])), base$9.spacing[2]);
3406
+ })(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n padding: ", " 0;\n"], ["\n padding: ", " 0;\n"])), base$9.spacing[2]);
3328
3407
  var StyledActionButton = styled.button.withConfig({
3329
3408
  displayName: "ActionSheet__StyledActionButton",
3330
3409
  componentId: "sc-regbol-6"
@@ -3482,59 +3561,75 @@ var ActionSheet = function ActionSheet(_a) {
3482
3561
  return a.destructive;
3483
3562
  });
3484
3563
  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);
3564
+ return /*#__PURE__*/createPortal(jsxs(Fragment, {
3565
+ children: [jsx(StyledOverlay$1, {
3566
+ onClick: handleOverlayClick
3567
+ }), jsxs(StyledActionSheet, {
3568
+ ref: sheetRef,
3569
+ role: "dialog",
3570
+ "aria-modal": "true",
3571
+ "aria-labelledby": title ? 'action-sheet-title' : undefined,
3572
+ "aria-describedby": description ? 'action-sheet-description' : undefined,
3573
+ "data-testid": dataTestId,
3574
+ children: [(title || description || showCloseButton) && jsxs(StyledHeader$1, {
3575
+ children: [jsx(StyledHeaderContent, {
3576
+ children: jsxs(Stack, {
3577
+ direction: "column",
3578
+ gap: description && title ? 'xs' : 'none',
3579
+ children: [title && jsx("div", {
3580
+ id: "action-sheet-title",
3581
+ children: jsx(Typography, {
3582
+ variant: "h3",
3583
+ children: title
3584
+ })
3585
+ }), description && jsx("div", {
3586
+ id: "action-sheet-description",
3587
+ children: jsx(Typography, {
3588
+ variant: "body",
3589
+ color: "subdued",
3590
+ children: description
3591
+ })
3592
+ })]
3593
+ })
3594
+ }), showCloseButton && jsx(StyledCloseButton, {
3595
+ type: "button",
3596
+ onClick: onClose,
3597
+ "aria-label": "Close",
3598
+ children: jsx(Icon, {
3599
+ name: "close",
3600
+ size: "sm",
3601
+ iconColor: "subdued"
3602
+ })
3603
+ })]
3604
+ }), jsx(StyledActionsList, {
3605
+ children: actions.map(function (action, index) {
3606
+ return jsxs("div", {
3607
+ children: [hasDestructive && index === destructiveIndex && index > 0 && jsx(StyledDivider, {}), jsxs(StyledActionButton, {
3608
+ type: "button",
3609
+ onClick: function onClick() {
3610
+ return handleActionClick(action);
3611
+ },
3612
+ disabled: action.disabled,
3613
+ "$destructive": action.destructive || false,
3614
+ "$disabled": action.disabled || false,
3615
+ "aria-label": action.label,
3616
+ children: [action.icon && jsx(Icon, {
3617
+ name: action.icon,
3618
+ size: "md",
3619
+ iconColor: action.disabled ? 'disabled' : action.destructive ? 'error' : 'default'
3620
+ }), jsx(Typography, {
3621
+ variant: "body",
3622
+ children: action.label
3623
+ })]
3624
+ })]
3625
+ }, action.id);
3626
+ })
3627
+ })]
3628
+ })]
3629
+ }), document.body);
3534
3630
  };
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;
3631
+ var templateObject_1$p, templateObject_2$k, templateObject_3$h, templateObject_4$e, templateObject_5$b, templateObject_6$9, templateObject_7$7, templateObject_8$4, templateObject_9$3, templateObject_10$2;
3536
3632
 
3537
- React.createElement;
3538
3633
  var semantic$a = tokensData.semantic,
3539
3634
  base$8 = tokensData.base;
3540
3635
  // Default icons by variant
@@ -3609,11 +3704,11 @@ var StyledMessage = styled.span.withConfig({
3609
3704
  var StyledActions = styled.div.withConfig({
3610
3705
  displayName: "Alert__StyledActions",
3611
3706
  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);
3707
+ })(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
3708
  var StyledDismissButton = styled(IconButton).withConfig({
3614
3709
  displayName: "Alert__StyledDismissButton",
3615
3710
  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);
3711
+ })(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
3712
  var Alert = function Alert(_a) {
3618
3713
  var _b = _a.variant,
3619
3714
  variant = _b === void 0 ? 'info' : _b,
@@ -3645,35 +3740,44 @@ var Alert = function Alert(_a) {
3645
3740
  var alertTitleColor = variantTitleColors[variant];
3646
3741
  // Determine ARIA role based on variant and aria-live
3647
3742
  var role = variant === 'error' ? 'alert' : 'status';
3648
- return /*#__PURE__*/React.createElement(StyledAlert, _extends({
3743
+ return jsxs(StyledAlert, __assign({
3649
3744
  role: role,
3650
3745
  "aria-live": ariaLive,
3651
- $variant: variant,
3652
- $inline: inline,
3746
+ "$variant": variant,
3747
+ "$inline": inline,
3653
3748
  "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
- })));
3749
+ }, props, {
3750
+ children: [jsx(StyledIconContainer$1, {
3751
+ "aria-hidden": "true",
3752
+ children: jsx(Icon, {
3753
+ name: iconName,
3754
+ size: "md",
3755
+ iconColor: alertIconColor
3756
+ })
3757
+ }), jsxs(StyledContent$1, {
3758
+ children: [title && jsx(StyledTitle, {
3759
+ role: "heading",
3760
+ "aria-level": 6,
3761
+ color: alertTitleColor,
3762
+ children: title
3763
+ }), jsx(StyledMessage, {
3764
+ children: children
3765
+ })]
3766
+ }), (action || dismissible) && jsxs(StyledActions, {
3767
+ children: [action, dismissible && jsx(StyledDismissButton, {
3768
+ iconName: "close",
3769
+ size: "small",
3770
+ variant: "naked",
3771
+ onClick: handleDismiss,
3772
+ "aria-label": "Dismiss alert",
3773
+ "data-testid": dataTestId ? "".concat(dataTestId, "-dismiss") : undefined
3774
+ })]
3775
+ })]
3776
+ }));
3672
3777
  };
3673
3778
  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;
3779
+ var templateObject_1$o, templateObject_2$j, templateObject_3$g, templateObject_4$d, templateObject_5$a, templateObject_6$8, templateObject_7$6;
3675
3780
 
3676
- React.createElement;
3677
3781
  var _a$3, _b$1, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
3678
3782
  var BreadcrumbNavStyled = styled.nav.withConfig({
3679
3783
  displayName: "Breadcrumbs__BreadcrumbNavStyled",
@@ -3689,30 +3793,40 @@ var isInternalUrl = function isInternalUrl(url) {
3689
3793
  var Breadcrumbs = function Breadcrumbs(_a) {
3690
3794
  var breadcrumbs = _a.breadcrumbs,
3691
3795
  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
- }))));
3796
+ return jsx(Container, {
3797
+ children: jsx(BreadcrumbNavStyled, {
3798
+ "aria-label": "breadcrumb",
3799
+ children: jsx("ol", {
3800
+ children: breadcrumbs.map(function (breadcrumb, index) {
3801
+ return jsx(BreadcrumbStyled, {
3802
+ children: index === breadcrumbs.length - 1 ? jsx(Typography, {
3803
+ variant: "caption",
3804
+ children: breadcrumb.label
3805
+ }) : LinkComponent && isInternalUrl(breadcrumb.url) ? jsx(LinkComponent, {
3806
+ href: breadcrumb.url,
3807
+ children: jsx(Typography, {
3808
+ variant: "caption",
3809
+ children: breadcrumb.label
3810
+ })
3811
+ }) : jsx("a", __assign({
3812
+ href: breadcrumb.url
3813
+ }, !isInternalUrl(breadcrumb.url) && {
3814
+ target: "_blank",
3815
+ rel: "noopener noreferrer"
3816
+ }, {
3817
+ children: jsx(Typography, {
3818
+ variant: "caption",
3819
+ children: breadcrumb.label
3820
+ })
3821
+ }))
3822
+ }, index);
3823
+ })
3824
+ })
3825
+ })
3826
+ });
3712
3827
  };
3713
3828
  var templateObject_1$n, templateObject_2$i;
3714
3829
 
3715
- React.createElement;
3716
3830
  var CardSmallStyled = styled.div.withConfig({
3717
3831
  displayName: "CardSmall__CardSmallStyled",
3718
3832
  componentId: "sc-jpcqvd-0"
@@ -3727,40 +3841,49 @@ var CardSmall = function CardSmall(_a) {
3727
3841
  if (!picture || !meta) {
3728
3842
  return null;
3729
3843
  }
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, {
3844
+ var content = jsxs(Stack, {
3739
3845
  direction: "column",
3740
- gap: "xs"
3741
- }, /*#__PURE__*/React.createElement(Typography, {
3742
- variant: "small"
3743
- }, title), /*#__PURE__*/React.createElement(Stack, {
3744
- 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));
3846
+ gap: 'sm',
3847
+ children: [jsx(Picture, {
3848
+ title: title,
3849
+ src: picture,
3850
+ width: 300,
3851
+ height: 300
3852
+ }), jsxs(Stack, {
3853
+ direction: "column",
3854
+ gap: 'xs',
3855
+ children: [jsx(Typography, {
3856
+ variant: "small",
3857
+ children: title
3858
+ }), jsxs(Stack, {
3859
+ direction: "column",
3860
+ gap: 'none',
3861
+ children: [subtitle && jsx(Typography, {
3862
+ variant: "label",
3863
+ color: "subdued",
3864
+ children: subtitle
3865
+ }), meta && jsx(Typography, {
3866
+ variant: "label",
3867
+ color: "subdued",
3868
+ children: meta
3869
+ })]
3870
+ })]
3871
+ })]
3872
+ });
3873
+ return jsx(CardSmallStyled, {
3874
+ children: LinkComponent && href ? jsx(LinkComponent, {
3875
+ href: href,
3876
+ "aria-label": title,
3877
+ children: content
3878
+ }) : jsx("a", {
3879
+ href: href || '#',
3880
+ "aria-label": title,
3881
+ children: content
3882
+ })
3883
+ });
3760
3884
  };
3761
3885
  var templateObject_1$m;
3762
3886
 
3763
- React.createElement;
3764
3887
  var border$3 = tokensData.base.border;
3765
3888
  var CardLargeStyled = styled.div.withConfig({
3766
3889
  displayName: "CardLarge__CardLargeStyled",
@@ -3775,40 +3898,48 @@ var CardLarge = function CardLarge(_a) {
3775
3898
  picture = _a.picture,
3776
3899
  onImageClick = _a.onImageClick,
3777
3900
  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
- })))));
3901
+ return jsx(CardLargeStyled, {
3902
+ children: jsxs(Stack, {
3903
+ direction: "column",
3904
+ gap: "md",
3905
+ children: [jsx(Picture, {
3906
+ title: title,
3907
+ src: picture,
3908
+ onClick: onImageClick,
3909
+ href: imageHref
3910
+ }), jsxs(Stack, {
3911
+ direction: "row",
3912
+ alignItems: "flex-start",
3913
+ justifyContent: "space-between",
3914
+ gap: "xs",
3915
+ children: [jsxs(Stack, {
3916
+ direction: "column",
3917
+ gap: "xs",
3918
+ children: [jsx(Typography, {
3919
+ variant: "h5",
3920
+ children: title
3921
+ }), subtitle && jsx(Typography, {
3922
+ variant: "small",
3923
+ color: "subdued",
3924
+ children: subtitle
3925
+ }), excerpt && jsx(Typography, {
3926
+ variant: "body",
3927
+ children: excerpt
3928
+ })]
3929
+ }), jsx(Stack, {
3930
+ direction: "row",
3931
+ alignItems: "center",
3932
+ gap: "xs",
3933
+ children: Array.isArray(labels) && labels.map(function (label, index) {
3934
+ return jsx(Chip, {
3935
+ title: label,
3936
+ variant: "default"
3937
+ }, index);
3938
+ })
3939
+ })]
3940
+ })]
3941
+ })
3942
+ });
3812
3943
  };
3813
3944
  var templateObject_1$l;
3814
3945
 
@@ -3894,7 +4025,6 @@ var StyledCheckboxLabel = styled.span.withConfig({
3894
4025
  });
3895
4026
  var templateObject_1$k, templateObject_2$h, templateObject_3$f, templateObject_4$c;
3896
4027
 
3897
- React.createElement;
3898
4028
  var StyledFieldContainer$3 = styled.div.withConfig({
3899
4029
  displayName: "Checkbox__StyledFieldContainer",
3900
4030
  componentId: "sc-vquz3v-0"
@@ -3983,41 +4113,46 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
3983
4113
  inputRef.current.indeterminate = indeterminate;
3984
4114
  }
3985
4115
  }, [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));
4116
+ return jsxs(StyledFieldContainer$3, {
4117
+ children: [jsxs(StyledCheckboxContainer, {
4118
+ "$disabled": disabled,
4119
+ "$labelPosition": labelPosition,
4120
+ children: [jsx(HiddenCheckboxInput, __assign({
4121
+ ref: inputRef,
4122
+ type: "checkbox",
4123
+ id: id,
4124
+ checked: checked,
4125
+ disabled: disabled,
4126
+ onChange: onChange,
4127
+ "aria-describedby": describedBy || undefined,
4128
+ "aria-invalid": error ? true : undefined,
4129
+ "$state": state,
4130
+ "$checked": checked,
4131
+ "$indeterminate": indeterminate
4132
+ }, rest)), jsx(StyledCheckbox, {
4133
+ "$state": state,
4134
+ "$checked": checked,
4135
+ "$indeterminate": indeterminate,
4136
+ "aria-hidden": "true"
4137
+ }), jsx(StyledCheckboxLabel, {
4138
+ "$disabled": disabled,
4139
+ children: label
4140
+ })]
4141
+ }), helperText && !error && jsx(StyledHelperText$4, {
4142
+ id: helperTextId,
4143
+ children: helperText
4144
+ }), error && jsx(StyledHelperText$4, {
4145
+ id: errorId,
4146
+ "$error": true,
4147
+ role: "alert",
4148
+ "aria-live": "polite",
4149
+ children: error
4150
+ })]
4151
+ });
4016
4152
  });
4017
4153
  Checkbox.displayName = 'Checkbox';
4018
4154
  var templateObject_1$j, templateObject_2$g;
4019
4155
 
4020
- React.createElement;
4021
4156
  var ChipGroupWrapper = styled.div.withConfig({
4022
4157
  displayName: "ChipGroup__ChipGroupWrapper",
4023
4158
  componentId: "sc-ae049w-0"
@@ -4027,22 +4162,22 @@ var ChipGroup = function ChipGroup(_a) {
4027
4162
  _b = _a.variant,
4028
4163
  variant = _b === void 0 ? 'default' : _b,
4029
4164
  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
- })));
4165
+ return jsx(ChipGroupWrapper, {
4166
+ "data-testid": dataTestId,
4167
+ children: jsx(Stack, {
4168
+ direction: "row",
4169
+ gap: "sm",
4170
+ children: labels && labels.map(function (title, index) {
4171
+ return jsx(Chip, {
4172
+ title: title,
4173
+ variant: variant
4174
+ }, index);
4175
+ })
4176
+ })
4177
+ });
4042
4178
  };
4043
4179
  var templateObject_1$i;
4044
4180
 
4045
- React.createElement;
4046
4181
  var _a$2 = tokensData.semantic,
4047
4182
  color$1 = _a$2.color,
4048
4183
  border$2 = _a$2.border,
@@ -4106,13 +4241,16 @@ var CopyButton = function CopyButton(_a) {
4106
4241
  }
4107
4242
  };
4108
4243
  }, []);
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'));
4244
+ return jsx(CopyButtonWrapper, {
4245
+ children: jsx(Button, {
4246
+ variant: "secondary",
4247
+ size: "small",
4248
+ iconName: "copy",
4249
+ onClick: handleCopy,
4250
+ "data-testid": "copy-button",
4251
+ children: copied ? 'Copied!' : 'Copy'
4252
+ })
4253
+ });
4116
4254
  };
4117
4255
  /**
4118
4256
  * CodeBlock component for displaying formatted code with optional copy functionality
@@ -4128,16 +4266,18 @@ var CodeBlock = function CodeBlock(_a) {
4128
4266
  showCopyButton = _b === void 0 ? true : _b,
4129
4267
  onCopy = _a.onCopy,
4130
4268
  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
- }));
4269
+ return jsxs(CodeBlockWrapper, {
4270
+ children: [jsx(StyledCodeBlock, {
4271
+ "data-testid": testId,
4272
+ children: children
4273
+ }), showCopyButton && jsx(CopyButton, {
4274
+ text: children,
4275
+ onCopy: onCopy
4276
+ })]
4277
+ });
4137
4278
  };
4138
4279
  var templateObject_1$h, templateObject_2$f, templateObject_3$e;
4139
4280
 
4140
- React.createElement;
4141
4281
  var StyledHeader = styled.div.withConfig({
4142
4282
  displayName: "DateGroup__StyledHeader",
4143
4283
  componentId: "sc-9nfm1f-0"
@@ -4193,36 +4333,43 @@ var DateGroup = function DateGroup(_a) {
4193
4333
  dataTestId = _a["data-testid"];
4194
4334
  // Determine total variant based on amount (positive = income, negative = expense)
4195
4335
  var totalVariant = totalAmount && totalAmount !== 0 ? totalAmount > 0 ? 'positive' : 'negative' : 'default';
4196
- return /*#__PURE__*/React.createElement("div", {
4336
+ return jsxs("div", {
4197
4337
  "data-testid": dataTestId,
4198
4338
  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));
4339
+ "aria-label": "Transactions for ".concat(date),
4340
+ children: [jsxs(StyledHeader, {
4341
+ "$sticky": sticky,
4342
+ "data-testid": dataTestId ? "".concat(dataTestId, "-header") : undefined,
4343
+ children: [jsxs(StyledLeftSection, {
4344
+ children: [jsx(DateFormatter, {
4345
+ dateString: typeof date === 'string' ? date : date.toISOString(),
4346
+ mode: format,
4347
+ "data-testid": dataTestId ? "".concat(dataTestId, "-date") : undefined
4348
+ }), showCount && count !== undefined && jsxs(Typography, {
4349
+ variant: "caption",
4350
+ color: "subdued",
4351
+ "data-testid": dataTestId ? "".concat(dataTestId, "-count") : undefined,
4352
+ children: ["(", count, " ", count === 1 ? 'item' : 'items', ")"]
4353
+ })]
4354
+ }), jsx(StyledRightSection, {
4355
+ children: showTotal && totalAmount !== undefined && jsx(MoneyDisplay, {
4356
+ amount: totalAmount,
4357
+ currency: currency,
4358
+ variant: totalVariant,
4359
+ size: "small",
4360
+ weight: "medium",
4361
+ showSign: true,
4362
+ "data-testid": dataTestId ? "".concat(dataTestId, "-total") : undefined
4363
+ })
4364
+ })]
4365
+ }), jsx(StyledContent, {
4366
+ "data-testid": dataTestId ? "".concat(dataTestId, "-content") : undefined,
4367
+ children: children
4368
+ })]
4369
+ });
4222
4370
  };
4223
4371
  var templateObject_1$g, templateObject_2$e, templateObject_3$d, templateObject_4$b;
4224
4372
 
4225
- React.createElement;
4226
4373
  var semantic$9 = tokensData.semantic;
4227
4374
  var StyledContainer$1 = styled.div.withConfig({
4228
4375
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -4285,53 +4432,63 @@ var EmptyState = function EmptyState(_a) {
4285
4432
  }
4286
4433
  if (illustration !== 'custom') {
4287
4434
  var iconName = illustrationToIcon[illustration];
4288
- return /*#__PURE__*/React.createElement(Icon, {
4435
+ return jsx(Icon, {
4289
4436
  name: iconName,
4290
4437
  size: "2xl"
4291
4438
  });
4292
4439
  }
4293
4440
  return null;
4294
4441
  };
4295
- return /*#__PURE__*/React.createElement(StyledContainer$1, {
4296
- $size: size,
4442
+ return jsxs(StyledContainer$1, {
4443
+ "$size": size,
4297
4444
  "data-testid": dataTestId,
4298
4445
  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))));
4446
+ "aria-label": "Empty state: ".concat(title),
4447
+ children: [jsx(StyledIllustration, {
4448
+ "$size": size,
4449
+ "$variant": variant,
4450
+ "aria-hidden": "true",
4451
+ children: renderIllustration()
4452
+ }), jsxs(StyledTextContainer, {
4453
+ children: [jsx(Typography, {
4454
+ variant: size === 'small' ? 'h4' : size === 'large' ? 'h2' : 'h3',
4455
+ color: variant === 'error' ? 'error' : 'default',
4456
+ as: size === 'small' ? 'h4' : size === 'large' ? 'h2' : 'h3',
4457
+ children: title
4458
+ }), jsx("div", {
4459
+ style: {
4460
+ marginTop: semantic$9.spacing.layout.md
4461
+ },
4462
+ children: jsx(Typography, {
4463
+ variant: "body",
4464
+ color: "subdued",
4465
+ children: description
4466
+ })
4467
+ })]
4468
+ }), (action || secondaryAction) && jsx(Box, {
4469
+ width: "100%",
4470
+ maxWidth: "300px",
4471
+ children: jsxs(Stack, {
4472
+ direction: "column",
4473
+ gap: "sm",
4474
+ children: [action && jsx(Button, {
4475
+ variant: action.variant || 'primary',
4476
+ onClick: action.onClick,
4477
+ iconName: action.icon,
4478
+ "data-testid": dataTestId ? "".concat(dataTestId, "-primary-action") : undefined,
4479
+ children: action.label
4480
+ }), secondaryAction && jsx(Button, {
4481
+ variant: "naked",
4482
+ onClick: secondaryAction.onClick,
4483
+ "data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined,
4484
+ children: secondaryAction.label
4485
+ })]
4486
+ })
4487
+ })]
4488
+ });
4331
4489
  };
4332
4490
  var templateObject_1$f, templateObject_2$d, templateObject_3$c;
4333
4491
 
4334
- React.createElement;
4335
4492
  var _a$1 = tokensData.base,
4336
4493
  spacing$1 = _a$1.spacing,
4337
4494
  border$1 = _a$1.border;
@@ -4366,37 +4523,53 @@ var FeatureBlock = function FeatureBlock(_a) {
4366
4523
  readMoreHref = _a.readMoreHref,
4367
4524
  _c = _a.readMoreText,
4368
4525
  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));
4526
+ return jsxs(Fragment, {
4527
+ children: [jsxs(FeatureBlockStyled, {
4528
+ children: [jsx(ImageWrapper, {
4529
+ children: jsx(Picture, {
4530
+ title: title,
4531
+ src: coverImage
4532
+ })
4533
+ }), jsx(ContentSection, {
4534
+ children: jsx(ContentWrapper, {
4535
+ children: jsxs(Stack, {
4536
+ direction: "column",
4537
+ gap: "md",
4538
+ children: [jsx(Typography, {
4539
+ variant: "h3",
4540
+ children: title
4541
+ }), jsx(DateFormatter, {
4542
+ dateString: date
4543
+ }), jsx(Typography, {
4544
+ variant: "small",
4545
+ children: excerpt
4546
+ }), jsx(Stack, {
4547
+ direction: "row",
4548
+ gap: "xs",
4549
+ children: Array.isArray(labels) && labels.map(function (label, index) {
4550
+ return jsx(Chip, {
4551
+ title: label,
4552
+ variant: "default"
4553
+ }, index);
4554
+ })
4555
+ }), (onReadMore || readMoreHref) && jsx(ButtonWrapper, {
4556
+ children: readMoreHref ? jsx(Button, {
4557
+ purpose: "link",
4558
+ url: readMoreHref,
4559
+ children: readMoreText
4560
+ }) : jsx(Button, {
4561
+ onClick: onReadMore,
4562
+ children: readMoreText
4563
+ })
4564
+ })]
4565
+ })
4566
+ })
4567
+ })]
4568
+ }), jsx(Divider, {})]
4569
+ });
4396
4570
  };
4397
4571
  var templateObject_1$e, templateObject_2$c, templateObject_3$b, templateObject_4$a, templateObject_5$9;
4398
4572
 
4399
- React.createElement;
4400
4573
  var _a = tokensData.base,
4401
4574
  spacing = _a.spacing,
4402
4575
  shadow = _a.shadow,
@@ -4472,7 +4645,7 @@ var DropdownOption = styled.button.withConfig({
4472
4645
  var StyledHelperText$3 = styled.div.withConfig({
4473
4646
  displayName: "Dropdown__StyledHelperText",
4474
4647
  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) {
4648
+ })(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
4649
  var $hasError = _a.$hasError;
4477
4650
  return $hasError ? color.text.error : color.text.subdued;
4478
4651
  }, spacing[2]);
@@ -4589,59 +4762,68 @@ var Dropdown = function Dropdown(_a) {
4589
4762
  setIsOpen(false);
4590
4763
  setFocusedIndex(-1);
4591
4764
  };
4592
- return /*#__PURE__*/React.createElement(DropdownContainer, {
4765
+ return jsxs(DropdownContainer, {
4593
4766
  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);
4767
+ className: className,
4768
+ children: [label && jsx("label", {
4769
+ htmlFor: dropdownId,
4770
+ style: {
4771
+ display: 'block',
4772
+ marginBottom: spacing[2]
4629
4773
  },
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));
4774
+ children: jsx(Typography, {
4775
+ variant: "label",
4776
+ children: label
4777
+ })
4778
+ }), jsxs(DropdownTrigger, {
4779
+ id: dropdownId,
4780
+ "$isOpen": isOpen,
4781
+ "$hasError": hasError,
4782
+ onClick: handleTriggerClick,
4783
+ disabled: disabled,
4784
+ "aria-expanded": isOpen,
4785
+ "aria-haspopup": "listbox",
4786
+ "aria-invalid": hasError,
4787
+ "aria-describedby": describedBy,
4788
+ children: [jsx("span", {
4789
+ children: selectedOption ? selectedOption.label : placeholder
4790
+ }), jsx(DropdownIcon, {
4791
+ "$isOpen": isOpen,
4792
+ children: jsx(Icon, {
4793
+ name: "arrowDown",
4794
+ iconColor: disabled ? 'disabled' : 'subdued'
4795
+ })
4796
+ })]
4797
+ }), jsx(DropdownMenu, {
4798
+ "$isOpen": isOpen,
4799
+ role: "listbox",
4800
+ "aria-labelledby": dropdownId,
4801
+ children: options.map(function (option, index) {
4802
+ return jsx(DropdownOption, {
4803
+ "$isSelected": option.id === value,
4804
+ "$isFocused": index === focusedIndex,
4805
+ onClick: function onClick() {
4806
+ return handleOptionClick(option.id);
4807
+ },
4808
+ role: "option",
4809
+ "aria-selected": option.id === value,
4810
+ children: option.label
4811
+ }, option.id);
4812
+ })
4813
+ }), error && jsx(StyledHelperText$3, {
4814
+ id: errorId,
4815
+ role: "alert",
4816
+ "aria-live": "polite",
4817
+ "$hasError": true,
4818
+ children: error
4819
+ }), helperText && !error && jsx(StyledHelperText$3, {
4820
+ id: helperId,
4821
+ children: helperText
4822
+ })]
4823
+ });
4641
4824
  };
4642
- var templateObject_1$d, templateObject_2$b, templateObject_3$a, templateObject_4$9, templateObject_5$8, templateObject_6$8;
4825
+ var templateObject_1$d, templateObject_2$b, templateObject_3$a, templateObject_4$9, templateObject_5$8, templateObject_6$7;
4643
4826
 
4644
- React.createElement;
4645
4827
  var semantic$8 = tokensData.semantic;
4646
4828
  var StyledList = styled.ul.withConfig({
4647
4829
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -4662,18 +4844,19 @@ var List = function List(_a) {
4662
4844
  className = _a.className,
4663
4845
  dataTestId = _a["data-testid"],
4664
4846
  props = __rest(_a, ["children", "dividers", "spacing", "className", 'data-testid']);
4665
- return /*#__PURE__*/React.createElement(StyledList, _extends({
4666
- $dividers: dividers,
4667
- $spacing: spacing,
4847
+ return jsx(StyledList, __assign({
4848
+ "$dividers": dividers,
4849
+ "$spacing": spacing,
4668
4850
  className: className,
4669
4851
  "data-testid": dataTestId,
4670
4852
  role: "list"
4671
- }, props), children);
4853
+ }, props, {
4854
+ children: children
4855
+ }));
4672
4856
  };
4673
4857
  List.displayName = 'List';
4674
4858
  var templateObject_1$c;
4675
4859
 
4676
- React.createElement;
4677
4860
  var semantic$7 = tokensData.semantic,
4678
4861
  base$7 = tokensData.base;
4679
4862
  var StyledListItem = styled.li.withConfig({
@@ -4731,7 +4914,7 @@ var StyledChevronIcon = styled.div.withConfig({
4731
4914
  },
4732
4915
  displayName: "ListItem__StyledChevronIcon",
4733
4916
  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) {
4917
+ })(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
4918
  var $expanded = _a.$expanded;
4736
4919
  return $expanded ? '180deg' : '0deg';
4737
4920
  });
@@ -4741,7 +4924,7 @@ var StyledExpandedContent = styled.div.withConfig({
4741
4924
  },
4742
4925
  displayName: "ListItem__StyledExpandedContent",
4743
4926
  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) {
4927
+ })(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
4928
  var $expanded = _a.$expanded;
4746
4929
  return $expanded ? '1000px' : '0';
4747
4930
  }, function (_a) {
@@ -4774,9 +4957,14 @@ var ListItem = function ListItem(_a) {
4774
4957
  children = _a.children,
4775
4958
  className = _a.className,
4776
4959
  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;
4960
+ customRole = _a.role,
4961
+ ariaSelected = _a["aria-selected"],
4962
+ id = _a.id,
4963
+ customTabIndex = _a.tabIndex,
4964
+ customOnKeyDown = _a.onKeyDown,
4965
+ 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"]);
4966
+ var isInteractive = interactive || expandable || customRole === 'option';
4967
+ var contentRole = customRole === 'option' ? undefined : isInteractive ? 'button' : undefined;
4780
4968
  var ariaExpanded = expandable ? expanded : undefined;
4781
4969
  var ariaDisabled = disabled ? true : undefined;
4782
4970
  var ariaCurrent = selected ? 'true' : undefined;
@@ -4789,54 +4977,72 @@ var ListItem = function ListItem(_a) {
4789
4977
  }
4790
4978
  };
4791
4979
  var handleKeyDown = function handleKeyDown(event) {
4980
+ if (customOnKeyDown) {
4981
+ customOnKeyDown(event);
4982
+ return;
4983
+ }
4792
4984
  if (disabled) return;
4793
4985
  if (event.key === 'Enter' || event.key === ' ') {
4794
4986
  event.preventDefault();
4795
4987
  handleClick();
4796
4988
  }
4797
4989
  };
4798
- return /*#__PURE__*/React.createElement(StyledListItem, _extends({
4799
- $interactive: isInteractive,
4800
- $disabled: disabled,
4801
- $selected: selected,
4802
- $spacing: spacing,
4990
+ return jsxs(StyledListItem, __assign({
4991
+ "$interactive": isInteractive,
4992
+ "$disabled": disabled,
4993
+ "$selected": selected,
4994
+ "$spacing": spacing,
4803
4995
  className: className,
4804
4996
  "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));
4997
+ role: customRole || 'listitem',
4998
+ id: id,
4999
+ "aria-selected": ariaSelected
5000
+ }, props, {
5001
+ children: [jsxs(StyledItemContent, {
5002
+ "$interactive": isInteractive,
5003
+ "$disabled": disabled,
5004
+ "$selected": selected,
5005
+ "$spacing": spacing,
5006
+ role: contentRole,
5007
+ "aria-expanded": ariaExpanded,
5008
+ "aria-disabled": ariaDisabled,
5009
+ "aria-current": ariaCurrent,
5010
+ tabIndex: customTabIndex !== undefined ? customTabIndex : isInteractive && !disabled ? 0 : undefined,
5011
+ onClick: handleClick,
5012
+ onKeyDown: handleKeyDown,
5013
+ children: [icon && jsx(StyledIconContainer, {
5014
+ "aria-hidden": "true",
5015
+ children: icon
5016
+ }), jsxs(StyledTextContent, {
5017
+ children: [jsx(Typography, {
5018
+ variant: "body",
5019
+ color: "default",
5020
+ children: primary
5021
+ }), secondary && jsx(Typography, {
5022
+ variant: "small",
5023
+ color: "subdued",
5024
+ children: secondary
5025
+ })]
5026
+ }), jsxs(StyledRightContent, {
5027
+ children: [badge, expandable && jsx(StyledChevronIcon, {
5028
+ "$expanded": expanded,
5029
+ "aria-hidden": "true",
5030
+ children: jsx(Icon, {
5031
+ name: "caretDown",
5032
+ size: "sm"
5033
+ })
5034
+ })]
5035
+ })]
5036
+ }), expandable && children && jsx(StyledExpandedContent, {
5037
+ "$spacing": spacing,
5038
+ "$expanded": expanded,
5039
+ "aria-hidden": !expanded,
5040
+ children: children
5041
+ })]
5042
+ }));
4837
5043
  };
4838
5044
  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;
5045
+ var templateObject_1$b, templateObject_2$a, templateObject_3$9, templateObject_4$8, templateObject_5$7, templateObject_6$6, templateObject_7$5;
4840
5046
 
4841
5047
  var input = tokensData.component.input;
4842
5048
  var StyledInputBase = styled.input.withConfig({
@@ -4879,7 +5085,6 @@ var StyledTextAreaBase = styled.textarea.withConfig({
4879
5085
  })(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
5086
  var templateObject_1$a, templateObject_2$9;
4881
5087
 
4882
- React.createElement;
4883
5088
  var semantic$6 = tokensData.semantic,
4884
5089
  base$6 = tokensData.base;
4885
5090
  var StyledFieldContainer$2 = styled.div.withConfig({
@@ -4905,11 +5110,11 @@ var StyledNumberInput = styled(StyledInputBase).withConfig({
4905
5110
  var StyledStepperContainer = styled.div.withConfig({
4906
5111
  displayName: "NumberInput__StyledStepperContainer",
4907
5112
  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]);
5113
+ })(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
5114
  var StyledHelperText$2 = styled.div.withConfig({
4910
5115
  displayName: "NumberInput__StyledHelperText",
4911
5116
  componentId: "sc-qotc3w-6"
4912
- })(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
5117
+ })(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
4913
5118
  /**
4914
5119
  * NumberInput component for numeric input with stepper buttons and WCAG 2.2 AA compliance
4915
5120
  *
@@ -5070,63 +5275,71 @@ var NumberInput = /*#__PURE__*/forwardRef(function (_a, ref) {
5070
5275
  var isDecrementDisabled = disabled || min !== undefined && value !== '' && typeof value === 'number' && value <= min;
5071
5276
  // Build aria-describedby
5072
5277
  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));
5278
+ return jsxs(StyledFieldContainer$2, {
5279
+ children: [label && jsxs(StyledLabel$3, {
5280
+ htmlFor: id,
5281
+ "data-disabled": disabled,
5282
+ children: [label, required && jsx(StyledRequiredIndicator$2, {
5283
+ "aria-label": "required",
5284
+ children: "*"
5285
+ })]
5286
+ }), jsxs(StyledInputWrapper$2, {
5287
+ children: [jsx(StyledNumberInput, __assign({
5288
+ ref: ref,
5289
+ id: id,
5290
+ type: "text",
5291
+ inputMode: "decimal",
5292
+ value: value !== undefined ? formatValue(value) : undefined,
5293
+ defaultValue: defaultValue !== undefined ? formatValue(defaultValue) : undefined,
5294
+ onChange: handleChange,
5295
+ onKeyDown: handleKeyDown,
5296
+ disabled: disabled,
5297
+ required: required,
5298
+ placeholder: placeholder,
5299
+ "$hasError": !!error,
5300
+ "$disabled": disabled,
5301
+ "aria-label": ariaLabel || label,
5302
+ "aria-invalid": !!error,
5303
+ "aria-describedby": ariaDescribedByIds,
5304
+ "aria-required": required,
5305
+ "data-testid": testId,
5306
+ role: "spinbutton",
5307
+ "aria-valuemin": min,
5308
+ "aria-valuemax": max,
5309
+ "aria-valuenow": typeof value === 'number' ? value : undefined
5310
+ }, rest)), jsxs(StyledStepperContainer, {
5311
+ children: [jsx(IconButton, {
5312
+ iconName: "caretUp",
5313
+ variant: "secondary",
5314
+ size: "small",
5315
+ onClick: handleIncrement,
5316
+ disabled: isIncrementDisabled,
5317
+ "aria-label": "Increment value",
5318
+ tabIndex: -1,
5319
+ type: "button"
5320
+ }), jsx(IconButton, {
5321
+ iconName: "caretDown",
5322
+ variant: "secondary",
5323
+ size: "small",
5324
+ onClick: handleDecrement,
5325
+ disabled: isDecrementDisabled,
5326
+ "aria-label": "Decrement value",
5327
+ tabIndex: -1,
5328
+ type: "button"
5329
+ })]
5330
+ })]
5331
+ }), (helperText || error) && jsx(StyledHelperText$2, {
5332
+ id: error ? errorId : helperId,
5333
+ "$isError": !!error,
5334
+ role: error ? 'alert' : undefined,
5335
+ "aria-live": error ? 'polite' : undefined,
5336
+ children: error || helperText
5337
+ })]
5338
+ });
5125
5339
  });
5126
5340
  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;
5341
+ var templateObject_1$9, templateObject_2$8, templateObject_3$8, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$4;
5128
5342
 
5129
- React.createElement;
5130
5343
  var PageTitleStyled = styled.div.withConfig({
5131
5344
  shouldForwardProp: function shouldForwardProp(prop) {
5132
5345
  return !prop.startsWith('$');
@@ -5142,27 +5355,30 @@ var PageTitle = function PageTitle(_a) {
5142
5355
  _b = _a.hasBackButton,
5143
5356
  hasBackButton = _b === void 0 ? false : _b,
5144
5357
  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)));
5358
+ return jsxs(PageTitleStyled, {
5359
+ "$hasBackButton": hasBackButton,
5360
+ children: [hasBackButton && jsx(IconButton, {
5361
+ iconName: 'back',
5362
+ size: 'large',
5363
+ variant: 'naked',
5364
+ url: '/music',
5365
+ "aria-label": 'Go back to music page'
5366
+ }), jsxs(Stack, {
5367
+ direction: 'column',
5368
+ gap: "md",
5369
+ children: [jsx(Typography, {
5370
+ variant: "h1",
5371
+ children: title
5372
+ }), subtitle && jsx(Typography, {
5373
+ variant: 'caption',
5374
+ color: 'subdued',
5375
+ children: subtitle
5376
+ })]
5377
+ })]
5378
+ });
5162
5379
  };
5163
5380
  var templateObject_1$8;
5164
5381
 
5165
- React.createElement;
5166
5382
  var semantic$5 = tokensData.semantic,
5167
5383
  base$5 = tokensData.base;
5168
5384
  var StyledFieldContainer$1 = styled.div.withConfig({
@@ -5191,7 +5407,7 @@ var StyledInputWrapper$1 = styled.div.withConfig({
5191
5407
  var StyledToggleButton = styled.div.withConfig({
5192
5408
  displayName: "PasswordField__StyledToggleButton",
5193
5409
  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"
5410
+ })(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
5411
  /**
5196
5412
  * PasswordField component for secure password input with visibility toggle
5197
5413
  *
@@ -5244,51 +5460,61 @@ var PasswordField = /*#__PURE__*/forwardRef(function (_a, ref) {
5244
5460
  var togglePasswordVisibility = function togglePasswordVisibility() {
5245
5461
  setShowPassword(!showPassword);
5246
5462
  };
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));
5463
+ return jsxs(StyledFieldContainer$1, {
5464
+ children: [label && jsxs(StyledLabel$2, {
5465
+ htmlFor: id,
5466
+ "data-disabled": disabled,
5467
+ children: [label, required && jsx(StyledRequiredIndicator$1, {
5468
+ "aria-label": "required",
5469
+ children: "*"
5470
+ })]
5471
+ }), jsxs(StyledInputWrapper$1, {
5472
+ children: [jsx(StyledInputBase, __assign({
5473
+ ref: ref,
5474
+ id: id,
5475
+ type: showPassword ? 'text' : 'password',
5476
+ disabled: disabled,
5477
+ required: required,
5478
+ "aria-required": required,
5479
+ "aria-invalid": hasError,
5480
+ "aria-describedby": describedBy,
5481
+ "$hasError": hasError,
5482
+ "$disabled": disabled,
5483
+ "data-testid": dataTestId,
5484
+ style: {
5485
+ paddingRight: showToggle ? '3rem' : undefined
5486
+ }
5487
+ }, inputProps)), showToggle && jsx(StyledToggleButton, {
5488
+ children: jsx(IconButton, {
5489
+ variant: "naked",
5490
+ size: "small",
5491
+ iconName: showPassword ? 'viewHide' : 'view',
5492
+ onClick: togglePasswordVisibility,
5493
+ disabled: disabled,
5494
+ "aria-label": showPassword ? 'Hide password' : 'Show password',
5495
+ "aria-pressed": showPassword,
5496
+ type: "button",
5497
+ tabIndex: -1
5498
+ })
5499
+ })]
5500
+ }), error && jsx(StyledHelperText$1, {
5501
+ id: errorId,
5502
+ role: "alert",
5503
+ "aria-live": "polite",
5504
+ "$hasError": true,
5505
+ children: error
5506
+ }), helperText && !error && jsx(StyledHelperText$1, {
5507
+ id: helperId,
5508
+ children: helperText
5509
+ })]
5510
+ });
5285
5511
  });
5286
5512
  PasswordField.displayName = 'PasswordField';
5287
- var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$6, templateObject_5$5, templateObject_6$5;
5513
+ var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$6, templateObject_5$5, templateObject_6$4;
5288
5514
 
5289
- React.createElement;
5290
5515
  var semantic$4 = tokensData.semantic,
5291
- base$4 = tokensData.base;
5516
+ base$4 = tokensData.base,
5517
+ component = tokensData.component;
5292
5518
  var StyledSearchContainer = styled.div.withConfig({
5293
5519
  displayName: "SearchField__StyledSearchContainer",
5294
5520
  componentId: "sc-qhz9i8-0"
@@ -5296,39 +5522,23 @@ var StyledSearchContainer = styled.div.withConfig({
5296
5522
  var StyledInputWrapper = styled.div.withConfig({
5297
5523
  displayName: "SearchField__StyledInputWrapper",
5298
5524
  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 ");
5525
+ })(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) {
5526
+ 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
5527
  }, 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);
5528
+ return props.$disabled && "\n background-color: ".concat(component.input.disabled.backgroundColor, ";\n border-color: ").concat(component.input.disabled.borderColor, ";\n cursor: not-allowed;\n ");
5529
+ }, component.input.hover.borderColor);
5304
5530
  var StyledInput = styled.input.withConfig({
5305
5531
  displayName: "SearchField__StyledInput",
5306
5532
  componentId: "sc-qhz9i8-2"
5307
5533
  })(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
5534
  var StyledSuggestionsList = styled.ul.withConfig({
5313
5535
  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
- });
5536
+ componentId: "sc-qhz9i8-3"
5537
+ })(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
5538
  var StyledSectionHeader = styled.div.withConfig({
5325
5539
  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]);
5540
+ componentId: "sc-qhz9i8-4"
5541
+ })(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
5542
  var debounce = function debounce(func, wait) {
5333
5543
  var timeout = null;
5334
5544
  return function () {
@@ -5536,94 +5746,101 @@ var SearchField = /*#__PURE__*/forwardRef(function (_a, ref) {
5536
5746
  }, [highlightedIndex]);
5537
5747
  var showClearButton = value.length > 0 && !disabled;
5538
5748
  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);
5749
+ return jsxs(StyledSearchContainer, {
5750
+ "$isFocused": isFocused,
5751
+ "$disabled": disabled,
5752
+ "data-testid": dataTestId,
5753
+ children: [jsxs(StyledInputWrapper, {
5754
+ "$isFocused": isFocused,
5755
+ "$disabled": disabled,
5756
+ "data-disabled": disabled,
5757
+ children: [jsx(Icon, {
5758
+ name: "search",
5759
+ size: "sm",
5760
+ iconColor: "subdued",
5761
+ "aria-hidden": "true"
5762
+ }), jsx(StyledInput, __assign({
5763
+ ref: inputRef,
5764
+ type: "text",
5765
+ value: value,
5766
+ onChange: handleInputChange,
5767
+ onFocus: handleFocus,
5768
+ onBlur: handleBlur,
5769
+ onKeyDown: handleKeyDown,
5770
+ placeholder: placeholder,
5771
+ disabled: disabled,
5772
+ "aria-label": ariaLabel,
5773
+ "aria-autocomplete": "list",
5774
+ "aria-controls": showSuggestions && hasItems ? 'search-suggestions' : undefined,
5775
+ "aria-expanded": showSuggestions && hasItems,
5776
+ "aria-activedescendant": highlightedIndex >= 0 ? "suggestion-".concat(highlightedIndex) : undefined,
5777
+ role: "combobox"
5778
+ }, inputProps)), loading && jsx(Icon, {
5779
+ name: "refresh",
5780
+ size: "sm",
5781
+ iconColor: "subdued",
5782
+ "aria-label": "Loading"
5783
+ }), showClearButton && jsx(IconButton, {
5784
+ iconName: "close",
5785
+ size: "small",
5786
+ variant: "naked",
5787
+ onClick: handleClear,
5788
+ "aria-label": "Clear search",
5789
+ tabIndex: -1
5790
+ })]
5791
+ }), showSuggestions && hasItems && jsxs(StyledSuggestionsList, {
5792
+ ref: listRef,
5793
+ id: "search-suggestions",
5794
+ role: "listbox",
5795
+ children: [!value.trim() && showRecentSearches && recentSearches.length > 0 && jsx(StyledSectionHeader, {
5796
+ children: "Recent Searches"
5797
+ }), displayItems.map(function (item, index) {
5798
+ if (item.type === 'clear') {
5799
+ return jsx(ListItem, {
5800
+ role: "option",
5801
+ primary: "Clear recent searches",
5802
+ interactive: true,
5803
+ spacing: "compact",
5804
+ onClick: function onClick() {
5805
+ return handleSuggestionClick(item);
5806
+ },
5807
+ onKeyDown: function onKeyDown(e) {
5808
+ if (e.key === 'Enter' || e.key === ' ') {
5809
+ e.preventDefault();
5810
+ handleSuggestionClick(item);
5811
+ }
5812
+ }
5813
+ }, "clear");
5591
5814
  }
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
- })));
5815
+ var suggestion = item.data;
5816
+ var isString = typeof suggestion === 'string';
5817
+ var label = isString ? suggestion : suggestion.label;
5818
+ var description = !isString ? suggestion.description : undefined;
5819
+ return jsx(ListItem, {
5820
+ id: "suggestion-".concat(index),
5821
+ role: "option",
5822
+ "aria-selected": index === highlightedIndex,
5823
+ primary: label,
5824
+ secondary: description,
5825
+ icon: item.type === 'recent' ? jsx(Icon, {
5826
+ name: "refresh",
5827
+ size: "xs",
5828
+ "aria-hidden": "true"
5829
+ }) : undefined,
5830
+ interactive: true,
5831
+ selected: index === highlightedIndex,
5832
+ spacing: "compact",
5833
+ onClick: function onClick() {
5834
+ return handleSuggestionClick(item);
5835
+ }
5836
+ }, isString ? suggestion : suggestion.id);
5837
+ })]
5838
+ })]
5839
+ });
5622
5840
  });
5623
5841
  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;
5842
+ var templateObject_1$6, templateObject_2$6, templateObject_3$6, templateObject_4$5, templateObject_5$4;
5625
5843
 
5626
- React.createElement;
5627
5844
  var semantic$3 = tokensData.semantic,
5628
5845
  base$3 = tokensData.base;
5629
5846
  // Fade in animation for overlay
@@ -5801,30 +6018,34 @@ var Sheet = function Sheet(_a) {
5801
6018
  }
5802
6019
  };
5803
6020
  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)));
6021
+ return jsxs(Fragment, {
6022
+ children: [jsx(StyledOverlay, {
6023
+ "$isOpen": isOpen,
6024
+ onClick: handleOverlayClick,
6025
+ "data-testid": dataTestId ? "".concat(dataTestId, "-overlay") : 'sheet-overlay'
6026
+ }), jsx(StyledSheet, {
6027
+ ref: sheetRef,
6028
+ role: "dialog",
6029
+ "aria-modal": "true",
6030
+ "aria-label": ariaLabel || title || 'Sheet dialog',
6031
+ "aria-describedby": ariaDescribedBy,
6032
+ tabIndex: -1,
6033
+ "$position": position,
6034
+ "$variant": variant,
6035
+ "$width": width,
6036
+ "$height": height,
6037
+ "$isOpen": isOpen,
6038
+ onKeyDown: handleKeyDown,
6039
+ "data-testid": dataTestId,
6040
+ children: jsx(StyledSheetContent, {
6041
+ children: children
6042
+ })
6043
+ })]
6044
+ });
5823
6045
  };
5824
6046
  Sheet.displayName = 'Sheet';
5825
6047
  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
6048
 
5827
- React.createElement;
5828
6049
  var semantic$2 = tokensData.semantic,
5829
6050
  base$2 = tokensData.base;
5830
6051
  var StyledSliderContainer = styled.div.withConfig({
@@ -6129,90 +6350,108 @@ var Slider = function Slider(_a) {
6129
6350
  var _l = [valueToPercent(currentRangeValue[0]), valueToPercent(currentRangeValue[1])],
6130
6351
  minPercent = _l[0],
6131
6352
  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))));
6353
+ return jsxs(StyledSliderContainer, {
6354
+ "data-testid": dataTestId,
6355
+ children: [label && jsx(StyledLabel$1, {
6356
+ htmlFor: generatedId,
6357
+ "$disabled": disabled,
6358
+ children: label
6359
+ }), jsx(StyledSliderTrackContainer, {
6360
+ children: jsxs(StyledTrack, {
6361
+ ref: trackRef,
6362
+ onClick: handleTrackClick,
6363
+ "$disabled": disabled,
6364
+ children: [isRange ? jsx(StyledTrackFill, {
6365
+ "$disabled": disabled,
6366
+ style: {
6367
+ left: "".concat(minPercent, "%"),
6368
+ width: "".concat(maxPercent - minPercent, "%")
6369
+ }
6370
+ }) : jsx(StyledTrackFill, {
6371
+ "$disabled": disabled,
6372
+ style: {
6373
+ left: 0,
6374
+ width: "".concat(singlePercent, "%")
6375
+ }
6376
+ }), isRange ? jsxs(Fragment, {
6377
+ children: [jsx(StyledThumb, {
6378
+ role: "slider",
6379
+ tabIndex: disabled ? -1 : 0,
6380
+ "aria-label": ariaLabel ? "".concat(ariaLabel, " minimum") : 'Minimum value',
6381
+ "aria-valuemin": min,
6382
+ "aria-valuemax": max,
6383
+ "aria-valuenow": currentRangeValue[0],
6384
+ "aria-valuetext": formatValue(currentRangeValue[0]),
6385
+ "aria-disabled": disabled,
6386
+ "aria-describedby": ariaDescribedBy,
6387
+ "$disabled": disabled,
6388
+ "$active": activeThumb === 'min',
6389
+ style: {
6390
+ left: "".concat(minPercent, "%")
6391
+ },
6392
+ onMouseDown: handleThumbMouseDown('min'),
6393
+ onKeyDown: handleKeyDown('min'),
6394
+ children: showValueLabel && jsx(StyledValueLabel, {
6395
+ "$disabled": disabled,
6396
+ children: formatValue(currentRangeValue[0])
6397
+ })
6398
+ }), jsx(StyledThumb, {
6399
+ role: "slider",
6400
+ tabIndex: disabled ? -1 : 0,
6401
+ "aria-label": ariaLabel ? "".concat(ariaLabel, " maximum") : 'Maximum value',
6402
+ "aria-valuemin": min,
6403
+ "aria-valuemax": max,
6404
+ "aria-valuenow": currentRangeValue[1],
6405
+ "aria-valuetext": formatValue(currentRangeValue[1]),
6406
+ "aria-disabled": disabled,
6407
+ "aria-describedby": ariaDescribedBy,
6408
+ "$disabled": disabled,
6409
+ "$active": activeThumb === 'max',
6410
+ style: {
6411
+ left: "".concat(maxPercent, "%")
6412
+ },
6413
+ onMouseDown: handleThumbMouseDown('max'),
6414
+ onKeyDown: handleKeyDown('max'),
6415
+ children: showValueLabel && jsx(StyledValueLabel, {
6416
+ "$disabled": disabled,
6417
+ children: formatValue(currentRangeValue[1])
6418
+ })
6419
+ })]
6420
+ }) : jsx(StyledThumb, {
6421
+ role: "slider",
6422
+ tabIndex: disabled ? -1 : 0,
6423
+ "aria-label": ariaLabel || label || 'Slider value',
6424
+ "aria-valuemin": min,
6425
+ "aria-valuemax": max,
6426
+ "aria-valuenow": currentValue,
6427
+ "aria-valuetext": formatValue(currentValue),
6428
+ "aria-disabled": disabled,
6429
+ "aria-describedby": ariaDescribedBy,
6430
+ "$disabled": disabled,
6431
+ "$active": activeThumb === 'single',
6432
+ style: {
6433
+ left: "".concat(singlePercent, "%")
6434
+ },
6435
+ onMouseDown: handleThumbMouseDown('single'),
6436
+ onKeyDown: handleKeyDown('single'),
6437
+ children: showValueLabel && jsx(StyledValueLabel, {
6438
+ "$disabled": disabled,
6439
+ children: formatValue(currentValue)
6440
+ })
6441
+ })]
6442
+ })
6443
+ }), jsxs(StyledMinMaxLabels, {
6444
+ children: [jsx("span", {
6445
+ children: formatValue(min)
6446
+ }), jsx("span", {
6447
+ children: formatValue(max)
6448
+ })]
6449
+ })]
6450
+ });
6211
6451
  };
6212
6452
  Slider.displayName = 'Slider';
6213
6453
  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
6454
 
6215
- React.createElement;
6216
6455
  var semantic$1 = tokensData.semantic,
6217
6456
  base$1 = tokensData.base;
6218
6457
  var StyledTabList = styled.div.withConfig({
@@ -6394,43 +6633,44 @@ var TabBar = function TabBar(_a) {
6394
6633
  (_a = tabRefs.current[newIndex]) === null || _a === void 0 ? void 0 : _a.focus();
6395
6634
  }
6396
6635
  };
6397
- return /*#__PURE__*/React.createElement(StyledTabList, {
6398
- $variant: variant,
6636
+ return jsx(StyledTabList, {
6637
+ "$variant": variant,
6399
6638
  role: "tablist",
6400
6639
  "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
- }));
6640
+ "data-testid": dataTestId,
6641
+ children: tabs.map(function (tab, index) {
6642
+ return jsxs(StyledTab, {
6643
+ ref: function ref(el) {
6644
+ tabRefs.current[index] = el;
6645
+ },
6646
+ "$variant": variant,
6647
+ "$isActive": tab.id === activeTab,
6648
+ "$disabled": tab.disabled || false,
6649
+ role: "tab",
6650
+ "aria-selected": tab.id === activeTab,
6651
+ "aria-disabled": tab.disabled || false,
6652
+ tabIndex: index === focusedIndex ? 0 : -1,
6653
+ disabled: tab.disabled,
6654
+ onClick: function onClick() {
6655
+ return handleTabClick(tab, index);
6656
+ },
6657
+ onKeyDown: function onKeyDown(e) {
6658
+ return handleKeyDown(e, index);
6659
+ },
6660
+ "data-testid": "".concat(dataTestId, "-tab-").concat(tab.id),
6661
+ children: [tab.label, typeof tab.badge === 'number' && tab.badge > 0 && jsx(StyledBadge, {
6662
+ "$variant": variant,
6663
+ "$isActive": tab.id === activeTab,
6664
+ "aria-label": "".concat(tab.badge, " items"),
6665
+ children: tab.badge > 99 ? '99+' : tab.badge
6666
+ })]
6667
+ }, tab.id);
6668
+ })
6669
+ });
6429
6670
  };
6430
6671
  TabBar.displayName = 'TabBar';
6431
6672
  var templateObject_1$3, templateObject_2$3, templateObject_3$3;
6432
6673
 
6433
- React.createElement;
6434
6674
  var semantic = tokensData.semantic,
6435
6675
  base = tokensData.base;
6436
6676
  var StyledFieldContainer = styled.div.withConfig({
@@ -6499,43 +6739,47 @@ var TextField = /*#__PURE__*/forwardRef(function (_a, ref) {
6499
6739
  var helperId = helperText && !error ? "".concat(id, "-helper") : undefined;
6500
6740
  var describedBy = [errorId, helperId].filter(Boolean).join(' ') || undefined;
6501
6741
  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));
6742
+ return jsxs(StyledFieldContainer, {
6743
+ "data-testid": dataTestId,
6744
+ children: [label && jsxs(StyledLabel, {
6745
+ htmlFor: id,
6746
+ "data-disabled": disabled,
6747
+ children: [label, required && jsx(StyledRequiredIndicator, {
6748
+ "aria-label": "required",
6749
+ children: "*"
6750
+ })]
6751
+ }), jsx(StyledInputBase, __assign({
6752
+ ref: ref,
6753
+ id: id,
6754
+ type: type,
6755
+ disabled: disabled,
6756
+ required: required,
6757
+ "aria-required": required,
6758
+ "aria-invalid": hasError,
6759
+ "aria-describedby": describedBy,
6760
+ "$hasError": hasError,
6761
+ "$disabled": disabled
6762
+ }, inputProps)), error && jsx(StyledHelperText, {
6763
+ id: errorId,
6764
+ role: "alert",
6765
+ "aria-live": "polite",
6766
+ "$hasError": true,
6767
+ children: error
6768
+ }), helperText && !error && jsx(StyledHelperText, {
6769
+ id: helperId,
6770
+ children: helperText
6771
+ })]
6772
+ });
6528
6773
  });
6529
6774
  TextField.displayName = 'TextField';
6530
6775
  var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2;
6531
6776
 
6532
- React.createElement;
6533
6777
  var StyledContainer = styled.div.withConfig({
6534
6778
  displayName: "TransactionListItem__StyledContainer",
6535
6779
  componentId: "sc-7yunm0-0"
6536
6780
  })(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
6781
  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 ");
6782
+ 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
6783
  });
6540
6784
  var StyledAvatarSection = styled.div.withConfig({
6541
6785
  displayName: "TransactionListItem__StyledAvatarSection",
@@ -6544,7 +6788,7 @@ var StyledAvatarSection = styled.div.withConfig({
6544
6788
  var StyledMainContent = styled.div.withConfig({
6545
6789
  displayName: "TransactionListItem__StyledMainContent",
6546
6790
  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);
6791
+ })(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
6792
  var StyledTopRow = styled.div.withConfig({
6549
6793
  displayName: "TransactionListItem__StyledTopRow",
6550
6794
  componentId: "sc-7yunm0-3"
@@ -6552,7 +6796,7 @@ var StyledTopRow = styled.div.withConfig({
6552
6796
  var StyledMerchantSection = styled.div.withConfig({
6553
6797
  displayName: "TransactionListItem__StyledMerchantSection",
6554
6798
  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);
6799
+ })(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
6800
  var StyledBottomRow = styled.div.withConfig({
6557
6801
  displayName: "TransactionListItem__StyledBottomRow",
6558
6802
  componentId: "sc-7yunm0-5"
@@ -6569,21 +6813,40 @@ var StyledTruncatedText = styled.span.withConfig({
6569
6813
  displayName: "TransactionListItem__StyledTruncatedText",
6570
6814
  componentId: "sc-7yunm0-8"
6571
6815
  })(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)
6816
+ // Map categories to CategoryBadge configurations
6573
6817
  ])));
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'
6818
+ // Map categories to CategoryBadge configurations
6819
+ var categoryConfig = {
6820
+ shopping: {
6821
+ color: 'purple',
6822
+ icon: 'paper',
6823
+ label: 'Shopping'
6824
+ },
6825
+ dining: {
6826
+ color: 'orange',
6827
+ icon: 'paper',
6828
+ label: 'Dining'
6829
+ },
6830
+ transport: {
6831
+ color: 'blue',
6832
+ icon: 'paper',
6833
+ label: 'Transport'
6834
+ },
6835
+ entertainment: {
6836
+ color: 'pink',
6837
+ icon: 'star',
6838
+ label: 'Entertainment'
6839
+ },
6840
+ bills: {
6841
+ color: 'red',
6842
+ icon: 'paper',
6843
+ label: 'Bills'
6844
+ },
6845
+ other: {
6846
+ color: 'gray',
6847
+ icon: 'paper',
6848
+ label: 'Other'
6849
+ }
6587
6850
  };
6588
6851
  // Map status to badge variant
6589
6852
  var statusToBadgeVariant = {
@@ -6620,8 +6883,8 @@ var TransactionListItem = function TransactionListItem(_a) {
6620
6883
  var isClickable = !!onClick;
6621
6884
  // Determine amount variant
6622
6885
  var amountVariant = amount > 0 ? 'positive' : amount < 0 ? 'negative' : 'default';
6623
- // Get category icon
6624
- var categoryIcon = category ? categoryToIcon[category] : undefined;
6886
+ // Get category configuration
6887
+ var categoryData = category ? categoryConfig[category] : undefined;
6625
6888
  // Get badge variant from status
6626
6889
  var badgeVariant = statusToBadgeVariant[status];
6627
6890
  var handleClick = function handleClick() {
@@ -6635,71 +6898,95 @@ var TransactionListItem = function TransactionListItem(_a) {
6635
6898
  onClick === null || onClick === void 0 ? void 0 : onClick();
6636
6899
  }
6637
6900
  };
6638
- return /*#__PURE__*/React.createElement(StyledContainer, {
6639
- $clickable: isClickable,
6901
+ return jsxs(StyledContainer, {
6902
+ "$clickable": isClickable,
6640
6903
  onClick: handleClick,
6641
6904
  onKeyDown: handleKeyDown,
6642
6905
  tabIndex: isClickable ? 0 : undefined,
6643
6906
  role: isClickable ? 'button' : undefined,
6644
6907
  "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
- }))))));
6908
+ "data-testid": dataTestId,
6909
+ children: [jsx(StyledAvatarSection, {
6910
+ children: status === 'pending' ? jsx(Badge, {
6911
+ variant: badgeVariant,
6912
+ dot: true,
6913
+ "aria-label": "Pending transaction",
6914
+ children: jsx(Avatar, {
6915
+ name: merchant,
6916
+ picture: merchantLogo,
6917
+ size: "md"
6918
+ })
6919
+ }) : jsx(Avatar, {
6920
+ name: merchant,
6921
+ picture: merchantLogo,
6922
+ size: "md"
6923
+ })
6924
+ }), jsxs(StyledMainContent, {
6925
+ children: [jsxs(StyledTopRow, {
6926
+ children: [jsxs(StyledMerchantSection, {
6927
+ children: [jsx(StyledTruncatedText, {
6928
+ children: jsx(Typography, {
6929
+ variant: "body",
6930
+ children: merchant
6931
+ })
6932
+ }), categoryData && jsx(CategoryBadge, {
6933
+ color: categoryData.color,
6934
+ icon: categoryData.icon,
6935
+ size: "small",
6936
+ variant: "minimal",
6937
+ "aria-label": "Category: ".concat(categoryData.label),
6938
+ children: categoryData.label
6939
+ }), status === 'failed' && jsx(Badge, {
6940
+ variant: "error",
6941
+ dot: true,
6942
+ "aria-label": "Failed transaction",
6943
+ children: jsx("span", {})
6944
+ })]
6945
+ }), jsx(MoneyDisplay, {
6946
+ amount: amount,
6947
+ currency: currency,
6948
+ variant: amountVariant,
6949
+ size: "medium",
6950
+ weight: "medium",
6951
+ showSign: true,
6952
+ "data-testid": dataTestId ? "".concat(dataTestId, "-amount") : undefined
6953
+ })]
6954
+ }), jsxs(StyledBottomRow, {
6955
+ children: [jsxs(StyledMetadata, {
6956
+ children: [jsx(DateFormatter, {
6957
+ dateString: typeof date === 'string' ? date : date.toISOString(),
6958
+ mode: "smart",
6959
+ "data-testid": dataTestId ? "".concat(dataTestId, "-date") : undefined
6960
+ }), description && jsx(StyledTruncatedText, {
6961
+ children: jsxs(Typography, {
6962
+ variant: "small",
6963
+ color: "subdued",
6964
+ children: ["\u2022 ", description]
6965
+ })
6966
+ })]
6967
+ }), (hasReceipt || hasNote) && jsxs(StyledIconIndicator, {
6968
+ children: [hasReceipt && jsx("span", {
6969
+ "aria-label": "Has receipt",
6970
+ role: "img",
6971
+ children: jsx(Icon, {
6972
+ name: "fileDocSearch",
6973
+ size: "xs"
6974
+ })
6975
+ }), hasNote && jsx("span", {
6976
+ "aria-label": "Has note",
6977
+ role: "img",
6978
+ children: jsx(Icon, {
6979
+ name: "paper",
6980
+ size: "xs"
6981
+ })
6982
+ })]
6983
+ })]
6984
+ })]
6985
+ })]
6986
+ });
6699
6987
  };
6700
6988
  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
6989
 
6702
- React.createElement;
6703
6990
  // Breakpoints using base tokens
6704
6991
  var breakpoints = {
6705
6992
  xs: tokensData.base.breakpoint.xs,
@@ -6741,13 +7028,14 @@ var Grid = function Grid(_a) {
6741
7028
  gapY = _a.gapY,
6742
7029
  className = _a.className,
6743
7030
  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);
7031
+ return jsx(GridContainer, {
7032
+ "$cols": cols,
7033
+ "$gap": gap ? tokensData.base.spacing[gap] : undefined,
7034
+ "$gapX": gapX ? tokensData.base.spacing[gapX] : undefined,
7035
+ "$gapY": gapY ? tokensData.base.spacing[gapY] : undefined,
7036
+ className: className,
7037
+ children: children
7038
+ });
6751
7039
  };
6752
7040
  var GridColContainer = styled.div.withConfig({
6753
7041
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -6789,19 +7077,20 @@ var GridCol = function GridCol(_a) {
6789
7077
  orderXl = _a.orderXl,
6790
7078
  className = _a.className,
6791
7079
  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);
7080
+ return jsx(GridColContainer, {
7081
+ "$span": span,
7082
+ "$spanSm": spanSm,
7083
+ "$spanMd": spanMd,
7084
+ "$spanLg": spanLg,
7085
+ "$spanXl": spanXl,
7086
+ "$order": order,
7087
+ "$orderSm": orderSm,
7088
+ "$orderMd": orderMd,
7089
+ "$orderLg": orderLg,
7090
+ "$orderXl": orderXl,
7091
+ className: className,
7092
+ children: children
7093
+ });
6805
7094
  };
6806
7095
  var ResponsiveGridContainer = styled.div.withConfig({
6807
7096
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -6873,29 +7162,30 @@ var ResponsiveGrid = function ResponsiveGrid(_a) {
6873
7162
  gapYXl = _a.gapYXl,
6874
7163
  className = _a.className,
6875
7164
  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);
7165
+ return jsx(ResponsiveGridContainer, {
7166
+ "$cols": cols,
7167
+ "$colsSm": colsSm,
7168
+ "$colsMd": colsMd,
7169
+ "$colsLg": colsLg,
7170
+ "$colsXl": colsXl,
7171
+ "$gap": gap ? tokensData.base.spacing[gap] : undefined,
7172
+ "$gapSm": gapSm ? tokensData.base.spacing[gapSm] : undefined,
7173
+ "$gapMd": gapMd ? tokensData.base.spacing[gapMd] : undefined,
7174
+ "$gapLg": gapLg ? tokensData.base.spacing[gapLg] : undefined,
7175
+ "$gapXl": gapXl ? tokensData.base.spacing[gapXl] : undefined,
7176
+ "$gapX": gapX ? tokensData.base.spacing[gapX] : undefined,
7177
+ "$gapXSm": gapXSm ? tokensData.base.spacing[gapXSm] : undefined,
7178
+ "$gapXMd": gapXMd ? tokensData.base.spacing[gapXMd] : undefined,
7179
+ "$gapXLg": gapXLg ? tokensData.base.spacing[gapXLg] : undefined,
7180
+ "$gapXXl": gapXXl ? tokensData.base.spacing[gapXXl] : undefined,
7181
+ "$gapY": gapY ? tokensData.base.spacing[gapY] : undefined,
7182
+ "$gapYSm": gapYSm ? tokensData.base.spacing[gapYSm] : undefined,
7183
+ "$gapYMd": gapYMd ? tokensData.base.spacing[gapYMd] : undefined,
7184
+ "$gapYLg": gapYLg ? tokensData.base.spacing[gapYLg] : undefined,
7185
+ "$gapYXl": gapYXl ? tokensData.base.spacing[gapYXl] : undefined,
7186
+ className: className,
7187
+ children: children
7188
+ });
6899
7189
  };
6900
7190
  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
7191