@common-origin/design-system 2.8.2 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IconName } from '../../atoms/Icon';
2
+ import { type IconName } from '../../atoms/Icon';
3
3
  export type AccountType = 'checking' | 'savings' | 'credit' | 'investment' | 'loan';
4
4
  export type TrendDirection = 'up' | 'down' | 'neutral';
5
5
  export interface AccountCardAction {
@@ -39,6 +39,6 @@ export interface AccountCardProps {
39
39
  * name, balance, optional trend indicator, and action buttons. Minimum
40
40
  * 300x200px with elevation and hover effects.
41
41
  *
42
- * Composes: Stack, Box, Icon, Typography, MoneyDisplay, Button
42
+ * Composes: Stack, Box, Avatar, Typography, MoneyDisplay, Button
43
43
  */
44
44
  export declare const AccountCard: React.FC<AccountCardProps>;
package/dist/index.esm.js CHANGED
@@ -964,10 +964,10 @@ var tokensData = {
964
964
 
965
965
  // Destructure tokens
966
966
  var semantic$i = tokensData.semantic;
967
- var color$a = semantic$i.color,
967
+ var color$9 = semantic$i.color,
968
968
  size$1 = semantic$i.size,
969
- border$a = semantic$i.border;
970
- var radius$6 = border$a.radius;
969
+ border$9 = semantic$i.border;
970
+ var radius$5 = border$9.radius;
971
971
  var AvatarContainer = styled.div.withConfig({
972
972
  shouldForwardProp: function shouldForwardProp(prop) {
973
973
  return !prop.startsWith('$');
@@ -980,14 +980,14 @@ var AvatarContainer = styled.div.withConfig({
980
980
  }, function (_a) {
981
981
  var $size = _a.$size;
982
982
  return size$1.avatar[$size];
983
- }, radius$6.circle, color$a.background.surface);
983
+ }, radius$5.circle, color$9.background.surface);
984
984
  var AvatarImage = styled.img.withConfig({
985
985
  shouldForwardProp: function shouldForwardProp(prop) {
986
986
  return !prop.startsWith('$');
987
987
  },
988
988
  displayName: "Avatar__AvatarImage",
989
989
  componentId: "sc-ezn4ax-1"
990
- })(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: ", ";\n /* Remove the img role since the container already has role=\"img\" */\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: ", ";\n /* Remove the img role since the container already has role=\"img\" */\n"])), radius$6.circle);
990
+ })(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: ", ";\n /* Remove the img role since the container already has role=\"img\" */\n"], ["\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: ", ";\n /* Remove the img role since the container already has role=\"img\" */\n"])), radius$5.circle);
991
991
  var AvatarInitials = styled.span.withConfig({
992
992
  shouldForwardProp: function shouldForwardProp(prop) {
993
993
  return !prop.startsWith('$');
@@ -1006,7 +1006,7 @@ var AvatarInitials = styled.span.withConfig({
1006
1006
  xl: tokensData.base.fontSize[5]
1007
1007
  };
1008
1008
  return sizeMap[$size];
1009
- }, color$a.text["default"]);
1009
+ }, color$9.text["default"]);
1010
1010
  // Helper function to get initials from name
1011
1011
  var getInitials = function getInitials(name) {
1012
1012
  return name.split(' ').map(function (word) {
@@ -1064,7 +1064,7 @@ var templateObject_1$J, templateObject_2$u, templateObject_3$r;
1064
1064
 
1065
1065
  var _a$8 = tokensData.semantic,
1066
1066
  typography$5 = _a$8.typography,
1067
- color$9 = _a$8.color;
1067
+ color$8 = _a$8.color;
1068
1068
  var getTypographyStyles = function getTypographyStyles(variant) {
1069
1069
  var styles = {
1070
1070
  display: "font: ".concat(typography$5.display, "; letter-spacing: ").concat(tokensData.base.letterSpacing[0], ";"),
@@ -1088,15 +1088,15 @@ var getTypographyStyles = function getTypographyStyles(variant) {
1088
1088
  };
1089
1089
  var getTextColor = function getTextColor(colorVariant) {
1090
1090
  var colorMap = {
1091
- "default": color$9.text["default"],
1092
- emphasis: color$9.text.emphasis,
1093
- subdued: color$9.text.subdued,
1094
- inverse: color$9.text.inverse,
1095
- disabled: color$9.text.disabled,
1096
- interactive: color$9.text.interactive,
1097
- error: color$9.text.error,
1098
- success: color$9.text.success,
1099
- warning: color$9.text.warning
1091
+ "default": color$8.text["default"],
1092
+ emphasis: color$8.text.emphasis,
1093
+ subdued: color$8.text.subdued,
1094
+ inverse: color$8.text.inverse,
1095
+ disabled: color$8.text.disabled,
1096
+ interactive: color$8.text.interactive,
1097
+ error: color$8.text.error,
1098
+ success: color$8.text.success,
1099
+ warning: color$8.text.warning
1100
1100
  };
1101
1101
  return colorMap[colorVariant] || colorMap["default"];
1102
1102
  };
@@ -1198,9 +1198,9 @@ var Typography = function Typography(_a) {
1198
1198
  var templateObject_1$I;
1199
1199
 
1200
1200
  var semantic$h = tokensData.semantic;
1201
- var color$8 = semantic$h.color,
1202
- border$9 = semantic$h.border;
1203
- var radius$5 = border$9.radius;
1201
+ var color$7 = semantic$h.color,
1202
+ border$8 = semantic$h.border;
1203
+ var radius$4 = border$8.radius;
1204
1204
  var scaleIn$1 = keyframes(templateObject_1$H || (templateObject_1$H = __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"])));
1205
1205
  var BadgeWrapper = styled.span.withConfig({
1206
1206
  displayName: "Badge__BadgeWrapper",
@@ -1220,18 +1220,18 @@ var BadgeIndicator = styled.span.withConfig({
1220
1220
  return props.$isDot ? '8px' : '16px';
1221
1221
  }, function (props) {
1222
1222
  return props.$isDot ? '0' : '0 4px';
1223
- }, radius$5.circle, color$8.background["default"], scaleIn$1, function (props) {
1223
+ }, radius$4.circle, color$7.background["default"], scaleIn$1, function (props) {
1224
1224
  switch (props.$variant) {
1225
1225
  case 'primary':
1226
- return "\n background-color: ".concat(color$8.background.interactive, ";\n color: ").concat(color$8.text.inverse, ";\n ");
1226
+ return "\n background-color: ".concat(color$7.background.interactive, ";\n color: ").concat(color$7.text.inverse, ";\n ");
1227
1227
  case 'error':
1228
- return "\n background-color: ".concat(color$8.background.error, ";\n color: ").concat(color$8.text.inverse, ";\n ");
1228
+ return "\n background-color: ".concat(color$7.background.error, ";\n color: ").concat(color$7.text.inverse, ";\n ");
1229
1229
  case 'warning':
1230
- return "\n background-color: ".concat(color$8.background.warning, ";\n color: ").concat(color$8.text.inverse, ";\n ");
1230
+ return "\n background-color: ".concat(color$7.background.warning, ";\n color: ").concat(color$7.text.inverse, ";\n ");
1231
1231
  case 'success':
1232
- return "\n background-color: ".concat(color$8.background.success, ";\n color: ").concat(color$8.text.inverse, ";\n ");
1232
+ return "\n background-color: ".concat(color$7.background.success, ";\n color: ").concat(color$7.text.inverse, ";\n ");
1233
1233
  default:
1234
- return "\n background-color: ".concat(color$8.background.emphasis, ";\n color: ").concat(color$8.text.inverse, ";\n ");
1234
+ return "\n background-color: ".concat(color$7.background.emphasis, ";\n color: ").concat(color$7.text.inverse, ";\n ");
1235
1235
  }
1236
1236
  });
1237
1237
  var ScreenReaderOnly$1 = styled.span.withConfig({
@@ -1294,7 +1294,7 @@ var StyledBox = styled.div.withConfig({
1294
1294
  }, function (props) {
1295
1295
  return props.$flexWrap && css(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["flex-wrap: ", ";"], ["flex-wrap: ", ";"])), props.$flexWrap);
1296
1296
  }, function (props) {
1297
- return props.$gap && css(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), tokensData.semantic.spacing.layout[props.$gap]);
1297
+ return props.$gap && css(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), tokensData.semantic.spacing.layout[props.$gap]);
1298
1298
  }, function (props) {
1299
1299
  return props.$m && css(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), tokensData.semantic.spacing.layout[props.$m]);
1300
1300
  }, function (props) {
@@ -1508,7 +1508,7 @@ var BoxTransform = function BoxTransform(props) {
1508
1508
  }));
1509
1509
  };
1510
1510
  var Box = BoxTransform;
1511
- var templateObject_1$G, templateObject_2$s, templateObject_3$p, templateObject_4$k, templateObject_5$f, templateObject_6$d, templateObject_7$a, templateObject_8$6, templateObject_9$4, templateObject_10$3, templateObject_11$3, templateObject_12$3, templateObject_13$3, templateObject_14$2, templateObject_15$2, templateObject_16$2, templateObject_17$2, 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;
1511
+ var templateObject_1$G, templateObject_2$s, templateObject_3$p, templateObject_4$k, templateObject_5$f, templateObject_6$c, templateObject_7$a, templateObject_8$6, templateObject_9$4, templateObject_10$3, templateObject_11$3, templateObject_12$3, templateObject_13$3, templateObject_14$2, templateObject_15$2, templateObject_16$2, templateObject_17$2, 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;
1512
1512
 
1513
1513
  var add = {
1514
1514
  path: "M13 11H19V13H13V19H11V13H5V11H11V5H13V11Z",
@@ -2480,12 +2480,12 @@ var templateObject_1$E, templateObject_2$r;
2480
2480
 
2481
2481
  var semantic$f = tokensData.semantic,
2482
2482
  base$b = tokensData.base;
2483
- var color$7 = semantic$f.color,
2483
+ var color$6 = semantic$f.color,
2484
2484
  typography$4 = semantic$f.typography,
2485
- border$8 = semantic$f.border,
2485
+ border$7 = semantic$f.border,
2486
2486
  spacing$7 = semantic$f.spacing;
2487
- var category = color$7.category;
2488
- var radius$4 = border$8.radius;
2487
+ var category = color$6.category;
2488
+ var radius$3 = border$7.radius;
2489
2489
  var layout$3 = spacing$7.layout;
2490
2490
  var StyledCategoryBadge = styled.span.withConfig({
2491
2491
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -2511,7 +2511,7 @@ var StyledCategoryBadge = styled.span.withConfig({
2511
2511
  * Travel
2512
2512
  * </CategoryBadge>
2513
2513
  * ```
2514
- */])), radius$4.circle, base$b.fontWeight[3], base$b.border.width[1], function (_a) {
2514
+ */])), radius$3.circle, base$b.fontWeight[3], base$b.border.width[1], function (_a) {
2515
2515
  var $size = _a.$size;
2516
2516
  return $size === 'small' ? '24px' : '32px';
2517
2517
  }, function (_a) {
@@ -2535,7 +2535,7 @@ var StyledCategoryBadge = styled.span.withConfig({
2535
2535
  var $color = _a.$color,
2536
2536
  $variant = _a.$variant;
2537
2537
  if ($variant === 'filled') {
2538
- return color$7.text.inverse;
2538
+ return color$6.text.inverse;
2539
2539
  }
2540
2540
  return category[$color];
2541
2541
  }, function (_a) {
@@ -2967,14 +2967,14 @@ var templateObject_1$A, templateObject_2$p, templateObject_3$n, templateObject_4
2967
2967
 
2968
2968
  var _a$7 = tokensData.semantic,
2969
2969
  typography$3 = _a$7.typography,
2970
- color$6 = _a$7.color;
2970
+ color$5 = _a$7.color;
2971
2971
  var TimeStyled = styled.time.withConfig({
2972
2972
  displayName: "DateFormatter__TimeStyled",
2973
2973
  componentId: "sc-5464cc-0"
2974
2974
  })(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
2975
2975
  /**
2976
2976
  * Formats a date with smart relative/absolute logic
2977
- */])), typography$3.label, color$6.text.subdued);
2977
+ */])), typography$3.label, color$5.text.subdued);
2978
2978
  /**
2979
2979
  * Formats a date with smart relative/absolute logic
2980
2980
  */
@@ -3258,18 +3258,18 @@ var semantic$e = tokensData.semantic;
3258
3258
  var _a$5 = __assign(__assign({}, semantic$e), {
3259
3259
  component: tokensData.component
3260
3260
  }),
3261
- color$5 = _a$5.color,
3262
- border$7 = _a$5.border,
3261
+ color$4 = _a$5.color,
3262
+ border$6 = _a$5.border,
3263
3263
  motion$1 = _a$5.motion,
3264
3264
  component$2 = _a$5.component;
3265
- var radius$3 = border$7.radius;
3265
+ var radius$2 = border$6.radius;
3266
3266
  var ProgressBarContainer = styled.div.withConfig({
3267
3267
  shouldForwardProp: function shouldForwardProp(prop) {
3268
3268
  return !prop.startsWith('$');
3269
3269
  },
3270
3270
  displayName: "ProgressBar__ProgressBarContainer",
3271
3271
  componentId: "sc-1nco33q-0"
3272
- })(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"])), color$5.background.disabled, radius$3.xs, function (props) {
3272
+ })(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: ", ";\n overflow: hidden;\n\n ", "\n\n ", "\n"])), color$4.background.disabled, radius$2.xs, function (props) {
3273
3273
  return props.$variant === 'horizontal' && css(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n "], ["\n width: 100%;\n height: ", ";\n "])), props.$height ? component$2.progressBar.sizes[props.$height].height : component$2.progressBar.sizes.md.height);
3274
3274
  }, function (props) {
3275
3275
  return props.$variant === 'vertical' && css(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n "], ["\n width: ", ";\n height: 100%;\n "])), props.$width ? component$2.progressBar.sizes[props.$width].height : component$2.progressBar.sizes.md.height);
@@ -3284,21 +3284,21 @@ var ProgressBarFill = styled.div.withConfig({
3284
3284
  var backgroundColor;
3285
3285
  switch (props.$color) {
3286
3286
  case 'success':
3287
- backgroundColor = color$5.background.success;
3287
+ backgroundColor = color$4.background.success;
3288
3288
  break;
3289
3289
  case 'error':
3290
- backgroundColor = color$5.background.error;
3290
+ backgroundColor = color$4.background.error;
3291
3291
  break;
3292
3292
  case 'default':
3293
3293
  default:
3294
- backgroundColor = color$5.background.interactive;
3294
+ backgroundColor = color$4.background.interactive;
3295
3295
  break;
3296
3296
  }
3297
3297
  return css(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundColor);
3298
3298
  }, function (props) {
3299
3299
  return props.$variant === 'horizontal' && css(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n width: ", "%;\n "], ["\n width: ", "%;\n "])), Math.min(100, Math.max(0, props.$value)));
3300
3300
  }, function (props) {
3301
- 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)));
3301
+ 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)));
3302
3302
  });
3303
3303
  var ProgressBar = function ProgressBar(_a) {
3304
3304
  var value = _a.value,
@@ -3325,7 +3325,7 @@ var ProgressBar = function ProgressBar(_a) {
3325
3325
  })
3326
3326
  });
3327
3327
  };
3328
- var templateObject_1$w, templateObject_2$o, templateObject_3$m, templateObject_4$i, templateObject_5$e, templateObject_6$c, templateObject_7$9;
3328
+ var templateObject_1$w, templateObject_2$o, templateObject_3$m, templateObject_4$i, templateObject_5$e, templateObject_6$b, templateObject_7$9;
3329
3329
 
3330
3330
  // Destructure tokens for cleaner access
3331
3331
  var separatorTokens = tokensData.component.separator;
@@ -3501,7 +3501,7 @@ var templateObject_1$u;
3501
3501
  // Destructure tokens for cleaner access
3502
3502
  var statusColors = tokensData.semantic.color.status;
3503
3503
  var spacing$5 = tokensData.semantic.spacing.layout;
3504
- var radius$2 = tokensData.semantic.border.radius;
3504
+ var radius$1 = tokensData.semantic.border.radius;
3505
3505
  var transition = tokensData.semantic.motion.transition;
3506
3506
  var typography$2 = tokensData.semantic.typography;
3507
3507
  var scaleIn = keyframes(templateObject_1$t || (templateObject_1$t = __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"])));
@@ -3571,7 +3571,7 @@ var StyledStatusBadge = styled.span.withConfig({
3571
3571
  },
3572
3572
  displayName: "StatusBadge__StyledStatusBadge",
3573
3573
  componentId: "sc-1paksgb-0"
3574
- })(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n font-weight: 500;\n white-space: nowrap;\n user-select: none;\n animation: ", " 0.2s ease-out;\n transition: ", ";\n \n /* Size styles */\n ", "\n \n /* Status color styles */\n ", "\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n font-weight: 500;\n white-space: nowrap;\n user-select: none;\n animation: ", " 0.2s ease-out;\n transition: ", ";\n \n /* Size styles */\n ", "\n \n /* Status color styles */\n ", "\n"])), radius$2.circle, scaleIn, transition.fast, function (_a) {
3574
+ })(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n font-weight: 500;\n white-space: nowrap;\n user-select: none;\n animation: ", " 0.2s ease-out;\n transition: ", ";\n \n /* Size styles */\n ", "\n \n /* Status color styles */\n ", "\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n font-weight: 500;\n white-space: nowrap;\n user-select: none;\n animation: ", " 0.2s ease-out;\n transition: ", ";\n \n /* Size styles */\n ", "\n \n /* Status color styles */\n ", "\n"])), radius$1.circle, scaleIn, transition.fast, function (_a) {
3575
3575
  var $size = _a.$size;
3576
3576
  var size = sizeConfig[$size];
3577
3577
  return "\n height: ".concat(size.height, ";\n padding: ").concat(size.padding, ";\n font: ").concat(size.font, ";\n gap: ").concat(size.gap, ";\n ");
@@ -3666,13 +3666,13 @@ StatusBadge.displayName = 'StatusBadge';
3666
3666
  var templateObject_1$t, templateObject_2$n, templateObject_3$l;
3667
3667
 
3668
3668
  var semantic$d = tokensData.semantic;
3669
- var color$4 = semantic$d.color,
3669
+ var color$3 = semantic$d.color,
3670
3670
  spacing$4 = semantic$d.spacing,
3671
- border$6 = semantic$d.border,
3671
+ border$5 = semantic$d.border,
3672
3672
  typography$1 = semantic$d.typography,
3673
3673
  size = semantic$d.size;
3674
3674
  var layout$2 = spacing$4.layout;
3675
- var radius$1 = border$6.radius;
3675
+ var radius = border$5.radius;
3676
3676
  var StyledTag = styled.span.withConfig({
3677
3677
  shouldForwardProp: function shouldForwardProp(prop) {
3678
3678
  return !prop.startsWith('$');
@@ -3685,37 +3685,37 @@ var StyledTag = styled.span.withConfig({
3685
3685
  *
3686
3686
  * A static, non-interactive label used to categorize elements or objects in the UI.
3687
3687
  * Tags help users quickly identify and understand content classification.
3688
- */])), radius$1.sm, size.icon.lg || '2rem', layout$2.xs, layout$2.sm, typography$1.button3, function (_a) {
3688
+ */])), radius.sm, size.icon.lg || '2rem', layout$2.xs, layout$2.sm, typography$1.button3, function (_a) {
3689
3689
  var $variant = _a.$variant;
3690
3690
  switch ($variant) {
3691
3691
  case 'interactive':
3692
- return color$4.background['interactive-subtle'];
3692
+ return color$3.background['interactive-subtle'];
3693
3693
  case 'success':
3694
- return color$4.background['success-subtle'];
3694
+ return color$3.background['success-subtle'];
3695
3695
  case 'warning':
3696
- return color$4.background['warning-subtle'];
3696
+ return color$3.background['warning-subtle'];
3697
3697
  case 'error':
3698
- return color$4.background['error-subtle'];
3698
+ return color$3.background['error-subtle'];
3699
3699
  case 'emphasis':
3700
- return color$4.background.emphasis;
3700
+ return color$3.background.emphasis;
3701
3701
  default:
3702
- return color$4.background.surface;
3702
+ return color$3.background.surface;
3703
3703
  }
3704
3704
  }, function (_a) {
3705
3705
  var $variant = _a.$variant;
3706
3706
  switch ($variant) {
3707
3707
  case 'interactive':
3708
- return color$4.text.interactive;
3708
+ return color$3.text.interactive;
3709
3709
  case 'success':
3710
- return color$4.text.success;
3710
+ return color$3.text.success;
3711
3711
  case 'warning':
3712
- return color$4.text.warning;
3712
+ return color$3.text.warning;
3713
3713
  case 'error':
3714
- return color$4.text.error;
3714
+ return color$3.text.error;
3715
3715
  case 'emphasis':
3716
- return color$4.text.inverse;
3716
+ return color$3.text.inverse;
3717
3717
  default:
3718
- return color$4.text["default"];
3718
+ return color$3.text["default"];
3719
3719
  }
3720
3720
  }, function (_a) {
3721
3721
  var $variant = _a.$variant,
@@ -3723,17 +3723,17 @@ var StyledTag = styled.span.withConfig({
3723
3723
  if (!$border) return 'none';
3724
3724
  switch ($variant) {
3725
3725
  case 'interactive':
3726
- return "1px solid ".concat(color$4.border.interactive);
3726
+ return "1px solid ".concat(color$3.border.interactive);
3727
3727
  case 'success':
3728
- return "1px solid ".concat(color$4.border.success);
3728
+ return "1px solid ".concat(color$3.border.success);
3729
3729
  case 'warning':
3730
- return "1px solid ".concat(color$4.border.warning);
3730
+ return "1px solid ".concat(color$3.border.warning);
3731
3731
  case 'error':
3732
- return "1px solid ".concat(color$4.border.error);
3732
+ return "1px solid ".concat(color$3.border.error);
3733
3733
  case 'emphasis':
3734
- return "1px solid ".concat(color$4.background.emphasis);
3734
+ return "1px solid ".concat(color$3.background.emphasis);
3735
3735
  default:
3736
- return "1px solid ".concat(color$4.border["default"]);
3736
+ return "1px solid ".concat(color$3.border["default"]);
3737
3737
  }
3738
3738
  });
3739
3739
  /**
@@ -3766,57 +3766,41 @@ var templateObject_1$s;
3766
3766
 
3767
3767
  // Destructure tokens for cleaner access
3768
3768
  var semantic$c = tokensData.semantic;
3769
- var color$3 = semantic$c.color,
3770
- spacing$3 = semantic$c.spacing,
3771
- border$5 = semantic$c.border;
3769
+ var spacing$3 = semantic$c.spacing;
3772
3770
  var layout$1 = spacing$3.layout;
3773
- var background = color$3.background,
3774
- icon = color$3.icon;
3775
- var radius = border$5.radius;
3776
- var StyledHeader$2 = styled.div.withConfig({
3777
- displayName: "AccountCard__StyledHeader",
3778
- componentId: "sc-1erp7zn-0"
3779
- })(templateObject_1$r || (templateObject_1$r = __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"])), layout$1.md);
3780
- var StyledIconWrapper = styled.div.withConfig({
3781
- displayName: "AccountCard__StyledIconWrapper",
3782
- componentId: "sc-1erp7zn-1"
3783
- })(templateObject_2$m || (templateObject_2$m = __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"])), background.inverse, radius.md, icon.interactive);
3784
3771
  var StyledBalanceSection = styled.div.withConfig({
3785
3772
  displayName: "AccountCard__StyledBalanceSection",
3786
- componentId: "sc-1erp7zn-2"
3787
- })(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), layout$1.lg);
3773
+ componentId: "sc-1erp7zn-0"
3774
+ })(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), layout$1.lg);
3788
3775
  var StyledTrendSection = styled.div.withConfig({
3789
3776
  displayName: "AccountCard__StyledTrendSection",
3790
- componentId: "sc-1erp7zn-3"
3791
- })(templateObject_4$h || (templateObject_4$h = __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"])), layout$1.xs, layout$1.sm);
3792
- var StyledActions$1 = styled.div.withConfig({
3777
+ componentId: "sc-1erp7zn-1"
3778
+ })(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])), layout$1.xs);
3779
+ styled.div.withConfig({
3793
3780
  displayName: "AccountCard__StyledActions",
3794
- componentId: "sc-1erp7zn-4"
3795
- })(templateObject_5$d || (templateObject_5$d = __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"])), layout$1.sm);
3781
+ componentId: "sc-1erp7zn-2"
3782
+ })(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"], ["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"])), layout$1.sm);
3796
3783
  var StyledStackWrapper = styled.div.withConfig({
3797
3784
  displayName: "AccountCard__StyledStackWrapper",
3798
- componentId: "sc-1erp7zn-5"
3799
- })(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n height: 100%;\n min-height: 168px;\n"], ["\n height: 100%;\n min-height: 168px;\n"
3800
- // Map account types to icon names (using placeholders)
3801
- ])));
3802
- // Map account types to icon names (using placeholders)
3803
- var accountTypeToIcon = {
3804
- checking: 'paper',
3805
- // Will use bank icon
3806
- savings: 'star',
3807
- // Will use piggyBank icon
3808
- credit: 'paper',
3809
- // Will use creditCard icon
3810
- investment: 'star',
3811
- // Will use chartLine icon
3812
- loan: 'paper' // Will use document icon
3813
- };
3785
+ componentId: "sc-1erp7zn-3"
3786
+ })(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
3787
+ var StyledHeaderWrapper = styled.div.withConfig({
3788
+ displayName: "AccountCard__StyledHeaderWrapper",
3789
+ componentId: "sc-1erp7zn-4"
3790
+ })(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n min-height: 48px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ", ";\n\n & > span {\n margin-top: -", ";\n }\n"], ["\n min-height: 48px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ", ";\n\n & > span {\n margin-top: -", ";\n }\n"
3791
+ // Map trend direction to icon and color
3792
+ ])), layout$1.none, layout$1.xs);
3814
3793
  // Map trend direction to icon and color
3815
3794
  var trendToIcon = {
3816
3795
  up: 'arrowUp',
3817
3796
  down: 'arrowDown',
3818
3797
  neutral: 'arrowRight'
3819
3798
  };
3799
+ var trendToColor = {
3800
+ up: 'green',
3801
+ down: 'red',
3802
+ neutral: 'blue'
3803
+ };
3820
3804
  /**
3821
3805
  * AccountCard component
3822
3806
  *
@@ -3824,11 +3808,10 @@ var trendToIcon = {
3824
3808
  * name, balance, optional trend indicator, and action buttons. Minimum
3825
3809
  * 300x200px with elevation and hover effects.
3826
3810
  *
3827
- * Composes: Stack, Box, Icon, Typography, MoneyDisplay, Button
3811
+ * Composes: Stack, Box, Avatar, Typography, MoneyDisplay, Button
3828
3812
  */
3829
3813
  var AccountCard = function AccountCard(_a) {
3830
- var accountType = _a.accountType,
3831
- accountName = _a.accountName,
3814
+ var accountName = _a.accountName,
3832
3815
  balance = _a.balance,
3833
3816
  accountNumber = _a.accountNumber,
3834
3817
  trend = _a.trend,
@@ -3840,11 +3823,9 @@ var AccountCard = function AccountCard(_a) {
3840
3823
  onClick = _a.onClick,
3841
3824
  dataTestId = _a["data-testid"];
3842
3825
  var isClickable = !!onClick;
3843
- // Get account type icon
3844
- var accountIcon = accountTypeToIcon[accountType];
3845
3826
  // Get trend icon and color
3846
3827
  var trendIcon = trend ? trendToIcon[trend] : undefined;
3847
- var trendColor = trend === 'up' ? 'success' : trend === 'down' ? 'error' : 'subdued';
3828
+ var trendColor = trend ? trendToColor[trend] : undefined;
3848
3829
  var handleClick = function handleClick() {
3849
3830
  if (isClickable && onClick) {
3850
3831
  onClick();
@@ -3858,9 +3839,8 @@ var AccountCard = function AccountCard(_a) {
3858
3839
  };
3859
3840
  return jsx(Box, {
3860
3841
  minWidth: "300px",
3861
- minHeight: "200px",
3862
3842
  p: "lg",
3863
- bg: "surface",
3843
+ bg: "subtle",
3864
3844
  border: "default",
3865
3845
  borderRadius: "xl",
3866
3846
  transition: "all 0.2s ease",
@@ -3875,64 +3855,75 @@ var AccountCard = function AccountCard(_a) {
3875
3855
  "data-testid": dataTestId,
3876
3856
  children: jsx(StyledStackWrapper, {
3877
3857
  children: jsxs(Stack, {
3878
- direction: "column",
3879
- gap: "none",
3880
- children: [jsx(StyledHeader$2, {
3881
- children: jsxs(Stack, {
3882
- direction: "row",
3858
+ direction: "row",
3859
+ justifyContent: "space-between",
3860
+ children: [jsxs(Stack, {
3861
+ direction: "row",
3862
+ gap: "md",
3863
+ children: [jsx(Avatar, {
3864
+ name: accountName,
3865
+ size: "lg",
3866
+ "data-testid": dataTestId ? "".concat(dataTestId, "-avatar") : undefined
3867
+ }), jsxs(Stack, {
3868
+ direction: "column",
3869
+ justifyContent: "space-between",
3870
+ alignItems: "stretch",
3883
3871
  gap: "md",
3884
- alignItems: "center",
3885
- children: [jsx(StyledIconWrapper, {
3886
- "aria-label": "".concat(accountType, " account"),
3887
- role: "img",
3888
- children: jsx(Icon, {
3889
- name: accountIcon,
3890
- iconColor: "inverse",
3891
- size: "md"
3872
+ children: [jsx(Stack, {
3873
+ direction: "row",
3874
+ gap: "md",
3875
+ alignItems: "center",
3876
+ children: jsxs(StyledHeaderWrapper, {
3877
+ children: [jsx(Typography, {
3878
+ variant: "h4",
3879
+ children: accountName
3880
+ }), accountNumber && jsxs(Typography, {
3881
+ variant: "small",
3882
+ color: "subdued",
3883
+ children: ["\u2022\u2022\u2022\u2022 ", accountNumber]
3884
+ })]
3885
+ })
3886
+ }), jsx(StyledBalanceSection, {
3887
+ children: jsxs(Stack, {
3888
+ direction: "row",
3889
+ gap: "sm",
3890
+ children: [jsx(MoneyDisplay, {
3891
+ amount: balance,
3892
+ currency: currency,
3893
+ size: "medium",
3894
+ "data-testid": dataTestId ? "".concat(dataTestId, "-balance") : undefined
3895
+ }), jsx(Typography, {
3896
+ color: "subdued",
3897
+ children: "Available"
3898
+ }), trend && trendValue && jsx(StyledTrendSection, {
3899
+ "aria-label": "Trend ".concat(trend),
3900
+ role: "img",
3901
+ children: jsx(CategoryBadge, {
3902
+ size: "small",
3903
+ icon: trendIcon,
3904
+ color: trendColor,
3905
+ variant: "minimal",
3906
+ children: trendValue
3907
+ })
3908
+ })]
3892
3909
  })
3893
- }), jsxs(Stack, {
3894
- direction: "column",
3895
- gap: "none",
3896
- children: [jsx(Typography, {
3897
- variant: "h4",
3898
- children: accountName
3899
- }), accountNumber && jsxs(Typography, {
3900
- variant: "caption",
3901
- color: "subdued",
3902
- children: ["\u2022\u2022\u2022\u2022 ", accountNumber]
3903
- })]
3904
- })]
3905
- })
3906
- }), jsxs(StyledBalanceSection, {
3907
- children: [jsxs(Stack, {
3908
- direction: "column",
3909
- gap: "xs",
3910
- children: [jsx(Typography, {
3911
- variant: "caption",
3912
- color: "subdued",
3913
- children: "Balance"
3914
- }), jsx(MoneyDisplay, {
3915
- amount: balance,
3916
- currency: currency,
3917
- size: "xlarge",
3918
- weight: "bold",
3919
- "data-testid": dataTestId ? "".concat(dataTestId, "-balance") : undefined
3920
- })]
3921
- }), trend && trendValue && jsxs(StyledTrendSection, {
3922
- "aria-label": "Trend ".concat(trend),
3923
- role: "img",
3924
- children: [jsx(Icon, {
3925
- name: trendIcon,
3926
- size: "xs",
3927
- iconColor: trendColor
3928
- }), jsx(Typography, {
3929
- variant: "caption",
3930
- color: trendColor,
3931
- children: trendValue
3932
3910
  })]
3933
3911
  })]
3934
- }), (action || secondaryAction) && jsxs(StyledActions$1, {
3935
- children: [action && jsx(Button, {
3912
+ }), (action || secondaryAction) && jsxs(Stack, {
3913
+ direction: "row",
3914
+ gap: "sm",
3915
+ justifyContent: "flex-end",
3916
+ children: [secondaryAction && jsx(Button, {
3917
+ onClick: function onClick(e) {
3918
+ e.stopPropagation();
3919
+ secondaryAction.onClick();
3920
+ },
3921
+ variant: secondaryAction.variant || 'secondary',
3922
+ iconName: secondaryAction.icon,
3923
+ "data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined,
3924
+ size: "small",
3925
+ children: secondaryAction.label
3926
+ }), action && jsx(Button, {
3936
3927
  onClick: function onClick(e) {
3937
3928
  e.stopPropagation();
3938
3929
  action.onClick();
@@ -3940,23 +3931,15 @@ var AccountCard = function AccountCard(_a) {
3940
3931
  variant: action.variant || 'primary',
3941
3932
  iconName: action.icon,
3942
3933
  "data-testid": dataTestId ? "".concat(dataTestId, "-action") : undefined,
3934
+ size: "small",
3943
3935
  children: action.label
3944
- }), secondaryAction && jsx(Button, {
3945
- onClick: function onClick(e) {
3946
- e.stopPropagation();
3947
- secondaryAction.onClick();
3948
- },
3949
- variant: secondaryAction.variant || 'naked',
3950
- iconName: secondaryAction.icon,
3951
- "data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined,
3952
- children: secondaryAction.label
3953
3936
  })]
3954
3937
  })]
3955
3938
  })
3956
3939
  })
3957
3940
  });
3958
3941
  };
3959
- var templateObject_1$r, templateObject_2$m, templateObject_3$k, templateObject_4$h, templateObject_5$d, templateObject_6$b;
3942
+ var templateObject_1$r, templateObject_2$m, templateObject_3$k, templateObject_4$h, templateObject_5$d;
3960
3943
 
3961
3944
  var semantic$b = tokensData.semantic,
3962
3945
  base$9 = tokensData.base;