@common-origin/design-system 2.8.1 → 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.
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) {
@@ -1316,7 +1316,7 @@ var StyledBox = styled.div.withConfig({
1316
1316
  }, function (props) {
1317
1317
  return props.$pr && css(templateObject_16$2 || (templateObject_16$2 = __makeTemplateObject(["padding-right: ", ";"], ["padding-right: ", ";"])), tokensData.semantic.spacing.layout[props.$pr]);
1318
1318
  }, function (props) {
1319
- return props.$pb && css(templateObject_17$1 || (templateObject_17$1 = __makeTemplateObject(["padding-bottom: ", ";"], ["padding-bottom: ", ";"])), tokensData.semantic.spacing.layout[props.$pb]);
1319
+ return props.$pb && css(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["padding-bottom: ", ";"], ["padding-bottom: ", ";"])), tokensData.semantic.spacing.layout[props.$pb]);
1320
1320
  }, function (props) {
1321
1321
  return props.$pl && css(templateObject_18$1 || (templateObject_18$1 = __makeTemplateObject(["padding-left: ", ";"], ["padding-left: ", ";"])), tokensData.semantic.spacing.layout[props.$pl]);
1322
1322
  }, 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$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;
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;
@@ -4473,7 +4456,7 @@ function agentInputStateTransition(currentState, event) {
4473
4456
  }
4474
4457
  return currentState;
4475
4458
  case 'MIC_STOP':
4476
- if (currentState === 'listening') {
4459
+ if (currentState === 'listening' || currentState === 'processingFinalTranscript') {
4477
4460
  return textDrivenState(event.hasText);
4478
4461
  }
4479
4462
  return currentState;
@@ -4502,7 +4485,7 @@ var semantic$a = tokensData.semantic,
4502
4485
  var DEFAULT_IDLE_HELPER = 'Ask about transactions, spending, or transfers';
4503
4486
  var DEFAULT_LISTENING_MESSAGE = 'Listening… speak now';
4504
4487
  var DEFAULT_PROCESSING_MESSAGE = 'Finishing voice input…';
4505
- var pulseRing = keyframes(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n 0% {\n transform: scale(1);\n opacity: 0.4;\n }\n 70% {\n transform: scale(1.08);\n opacity: 0;\n }\n 100% {\n transform: scale(1.08);\n opacity: 0;\n }\n"], ["\n 0% {\n transform: scale(1);\n opacity: 0.4;\n }\n 70% {\n transform: scale(1.08);\n opacity: 0;\n }\n 100% {\n transform: scale(1.08);\n opacity: 0;\n }\n"])));
4488
+ var rotateRing = keyframes(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"], ["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"])));
4506
4489
  var Container = styled.div.withConfig({
4507
4490
  displayName: "AgentInput__Container",
4508
4491
  componentId: "sc-fhl996-0"
@@ -4522,7 +4505,7 @@ var Input = styled.input.withConfig({
4522
4505
  var InputActions = styled.div.withConfig({
4523
4506
  displayName: "AgentInput__InputActions",
4524
4507
  componentId: "sc-fhl996-4"
4525
- })(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"])), semantic$a.spacing.layout.xs);
4508
+ })(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"])), semantic$a.spacing.layout.sm);
4526
4509
  var CircularActionIconButton = styled(IconButton).withConfig({
4527
4510
  displayName: "AgentInput__CircularActionIconButton",
4528
4511
  componentId: "sc-fhl996-5"
@@ -4537,47 +4520,50 @@ var MicButtonWrapper = styled.div.withConfig({
4537
4520
  },
4538
4521
  displayName: "AgentInput__MicButtonWrapper",
4539
4522
  componentId: "sc-fhl996-7"
4540
- })(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n\n ", "\n\n @media (prefers-reduced-motion: reduce) {\n &::before {\n animation: none;\n }\n }\n"], ["\n position: relative;\n display: inline-flex;\n\n ", "\n\n @media (prefers-reduced-motion: reduce) {\n &::before {\n animation: none;\n }\n }\n"])), function (_a) {
4541
- var $isListening = _a.$isListening,
4542
- $reducedMotion = _a.$reducedMotion;
4543
- return $isListening && !$reducedMotion && css(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n &::before {\n content: '';\n position: absolute;\n inset: -", ";\n border: ", " solid ", ";\n border-radius: ", ";\n animation: ", " 1400ms ease-out infinite;\n pointer-events: none;\n }\n "], ["\n &::before {\n content: '';\n position: absolute;\n inset: -", ";\n border: ", " solid ", ";\n border-radius: ", ";\n animation: ", " 1400ms ease-out infinite;\n pointer-events: none;\n }\n "])), base$8.spacing[1], base$8.border.width[1], semantic$a.color.border.interactive, base$8.border.radius[4], pulseRing);
4523
+ })(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n border-radius: ", ";\n\n & > button {\n position: relative;\n z-index: 1;\n }\n"], ["\n position: relative;\n display: inline-flex;\n border-radius: ", ";\n\n & > button {\n position: relative;\n z-index: 1;\n }\n"])), semantic$a.border.radius.circle);
4524
+ var MicListeningRing = styled.span.withConfig({
4525
+ shouldForwardProp: function shouldForwardProp(prop) {
4526
+ return !prop.startsWith('$');
4527
+ },
4528
+ displayName: "AgentInput__MicListeningRing",
4529
+ componentId: "sc-fhl996-8"
4530
+ })(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n --ring-thickness: ", ";\n position: absolute;\n inset: calc(-", " - ", ");\n border-radius: ", ";\n pointer-events: none;\n z-index: 0;\n background: conic-gradient(\n from 0deg,\n ", " 0deg,\n ", " 110deg,\n ", " 210deg,\n ", " 300deg,\n ", " 360deg\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ring-thickness)),\n #000 calc(100% - var(--ring-thickness))\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ring-thickness)),\n #000 calc(100% - var(--ring-thickness))\n );\n\n ", "\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n"], ["\n --ring-thickness: ", ";\n position: absolute;\n inset: calc(-", " - ", ");\n border-radius: ", ";\n pointer-events: none;\n z-index: 0;\n background: conic-gradient(\n from 0deg,\n ", " 0deg,\n ", " 110deg,\n ", " 210deg,\n ", " 300deg,\n ", " 360deg\n );\n mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ring-thickness)),\n #000 calc(100% - var(--ring-thickness))\n );\n -webkit-mask: radial-gradient(\n farthest-side,\n transparent calc(100% - var(--ring-thickness)),\n #000 calc(100% - var(--ring-thickness))\n );\n\n ", "\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n"])), base$8.border.width[2], base$8.spacing[1], component$1.iconButton.focus.outlineOffset, semantic$a.border.radius.circle, semantic$a.color.background['interactive-subtle'], semantic$a.color.background.interactive, semantic$a.color.background['interactive-hover'], semantic$a.color.background.interactive, semantic$a.color.background['interactive-subtle'], function (_a) {
4531
+ var $reducedMotion = _a.$reducedMotion;
4532
+ return !$reducedMotion && css(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n animation: ", " 1300ms linear infinite;\n "], ["\n animation: ", " 1300ms linear infinite;\n "])), rotateRing);
4544
4533
  });
4545
4534
  var StatusRow = styled.div.withConfig({
4546
4535
  displayName: "AgentInput__StatusRow",
4547
- componentId: "sc-fhl996-8"
4548
- })(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n min-height: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n min-height: ", ";\n"])), base$8.spacing[3], base$8.spacing[6]);
4536
+ componentId: "sc-fhl996-9"
4537
+ })(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n min-height: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ", ";\n min-height: ", ";\n"])), base$8.spacing[3], base$8.spacing[6]);
4549
4538
  var StatusText = styled.div.withConfig({
4550
4539
  shouldForwardProp: function shouldForwardProp(prop) {
4551
4540
  return !prop.startsWith('$');
4552
4541
  },
4553
4542
  displayName: "AgentInput__StatusText",
4554
- componentId: "sc-fhl996-9"
4555
- })(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\npadding-left: ", ";\n color: ", ";\n"], ["\npadding-left: ", ";\n color: ", ";\n"])), semantic$a.spacing.layout.xl, function (_a) {
4556
- var $isError = _a.$isError;
4557
- return $isError ? semantic$a.color.text.error : semantic$a.color.text.subdued;
4558
- });
4543
+ componentId: "sc-fhl996-10"
4544
+ })(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$a.spacing.layout.xl);
4559
4545
  var StatusAnnouncement = styled.div.withConfig({
4560
4546
  displayName: "AgentInput__StatusAnnouncement",
4561
- componentId: "sc-fhl996-10"
4562
- })(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject([""], [""])));
4547
+ componentId: "sc-fhl996-11"
4548
+ })(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject([""], [""])));
4563
4549
  var MeterContainer = styled.div.withConfig({
4564
4550
  displayName: "AgentInput__MeterContainer",
4565
- componentId: "sc-fhl996-11"
4566
- })(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n display: inline-flex;\n align-items: flex-end;\n gap: ", ";\n height: ", ";\n"], ["\n display: inline-flex;\n align-items: flex-end;\n gap: ", ";\n height: ", ";\n"])), base$8.spacing[1], base$8.spacing[4]);
4551
+ componentId: "sc-fhl996-12"
4552
+ })(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject(["\n display: inline-flex;\n align-items: flex-end;\n gap: ", ";\n height: ", ";\n"], ["\n display: inline-flex;\n align-items: flex-end;\n gap: ", ";\n height: ", ";\n"])), base$8.spacing[1], base$8.spacing[4]);
4567
4553
  var MeterBar = styled.div.withConfig({
4568
4554
  shouldForwardProp: function shouldForwardProp(prop) {
4569
4555
  return !prop.startsWith('$');
4570
4556
  },
4571
4557
  displayName: "AgentInput__MeterBar",
4572
- componentId: "sc-fhl996-12"
4573
- })(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject(["\n width: ", ";\n border-radius: ", ";\n background-color: ", ";\n height: ", ";\n transition: height 120ms linear;\n"], ["\n width: ", ";\n border-radius: ", ";\n background-color: ", ";\n height: ", ";\n transition: height 120ms linear;\n"])), base$8.spacing[1], base$8.border.radius[1], semantic$a.color.background.interactive, function (_a) {
4558
+ componentId: "sc-fhl996-13"
4559
+ })(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\n width: ", ";\n border-radius: ", ";\n background-color: ", ";\n height: ", ";\n transition: height 120ms linear;\n"], ["\n width: ", ";\n border-radius: ", ";\n background-color: ", ";\n height: ", ";\n transition: height 120ms linear;\n"])), base$8.spacing[1], base$8.border.radius[1], semantic$a.color.background.interactive, function (_a) {
4574
4560
  var $height = _a.$height;
4575
4561
  return "".concat($height * 100, "%");
4576
4562
  });
4577
4563
  var VisuallyHiddenLabel = styled.label.withConfig({
4578
4564
  displayName: "AgentInput__VisuallyHiddenLabel",
4579
- componentId: "sc-fhl996-13"
4580
- })(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"])));
4565
+ componentId: "sc-fhl996-14"
4566
+ })(templateObject_17$1 || (templateObject_17$1 = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n"])));
4581
4567
  function getInitialState(hasText) {
4582
4568
  return hasText ? 'typing' : 'idle';
4583
4569
  }
@@ -4969,6 +4955,10 @@ var AgentInput = function AgentInput(_a) {
4969
4955
  return [3 /*break*/, 4];
4970
4956
  case 3:
4971
4957
  updateValue(normalizedFinal);
4958
+ updateMachineState({
4959
+ type: 'MIC_STOP',
4960
+ hasText: true
4961
+ });
4972
4962
  _a.label = 4;
4973
4963
  case 4:
4974
4964
  return [2 /*return*/];
@@ -5145,10 +5135,15 @@ var AgentInput = function AgentInput(_a) {
5145
5135
  readOnly: isListening,
5146
5136
  "aria-describedby": statusId
5147
5137
  }), jsxs(InputActions, {
5148
- children: [hasVoice && jsx(MicButtonWrapper, {
5138
+ children: [hasVoice && jsxs(MicButtonWrapper, {
5149
5139
  "$isListening": isListening,
5150
5140
  "$reducedMotion": prefersReducedMotion,
5151
- children: jsx(CircularActionIconButton, {
5141
+ children: [isListening && jsx(MicListeningRing, {
5142
+ "$reducedMotion": prefersReducedMotion,
5143
+ "aria-hidden": "true",
5144
+ "data-testid": "agent-input-listening-ring",
5145
+ "data-animated": prefersReducedMotion ? 'false' : 'true'
5146
+ }), jsx(CircularActionIconButton, {
5152
5147
  variant: "naked",
5153
5148
  size: "medium",
5154
5149
  iconName: 'mic',
@@ -5157,7 +5152,7 @@ var AgentInput = function AgentInput(_a) {
5157
5152
  "aria-label": isListening ? 'Stop voice input' : 'Start voice input',
5158
5153
  disabled: disabled || effectiveSubmitting,
5159
5154
  type: "button"
5160
- })
5155
+ })]
5161
5156
  }), jsx(CircularActionIconButton, {
5162
5157
  variant: "secondary",
5163
5158
  size: "medium",
@@ -5182,6 +5177,7 @@ var AgentInput = function AgentInput(_a) {
5182
5177
  "aria-atomic": "true",
5183
5178
  children: jsx(Typography, {
5184
5179
  variant: "small",
5180
+ color: isStatusError ? 'error' : 'subdued',
5185
5181
  children: resolvedStatus
5186
5182
  })
5187
5183
  })
@@ -5196,7 +5192,7 @@ var AgentInput = function AgentInput(_a) {
5196
5192
  })]
5197
5193
  });
5198
5194
  };
5199
- var templateObject_1$o, templateObject_2$j, templateObject_3$h, templateObject_4$e, templateObject_5$a, templateObject_6$8, templateObject_7$6, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1;
5195
+ var templateObject_1$o, templateObject_2$j, templateObject_3$h, templateObject_4$e, templateObject_5$a, templateObject_6$8, templateObject_7$6, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1;
5200
5196
 
5201
5197
  var semantic$9 = tokensData.semantic,
5202
5198
  base$7 = tokensData.base;