@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/components/molecules/AccountCard/AccountCard.d.ts +2 -2
- package/dist/index.esm.js +200 -204
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +200 -204
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -966,10 +966,10 @@ var tokensData = {
|
|
|
966
966
|
|
|
967
967
|
// Destructure tokens
|
|
968
968
|
var semantic$i = tokensData.semantic;
|
|
969
|
-
var color$
|
|
969
|
+
var color$9 = semantic$i.color,
|
|
970
970
|
size$1 = semantic$i.size,
|
|
971
|
-
border$
|
|
972
|
-
var radius$
|
|
971
|
+
border$9 = semantic$i.border;
|
|
972
|
+
var radius$5 = border$9.radius;
|
|
973
973
|
var AvatarContainer = styled.div.withConfig({
|
|
974
974
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
975
975
|
return !prop.startsWith('$');
|
|
@@ -982,14 +982,14 @@ var AvatarContainer = styled.div.withConfig({
|
|
|
982
982
|
}, function (_a) {
|
|
983
983
|
var $size = _a.$size;
|
|
984
984
|
return size$1.avatar[$size];
|
|
985
|
-
}, radius$
|
|
985
|
+
}, radius$5.circle, color$9.background.surface);
|
|
986
986
|
var AvatarImage = styled.img.withConfig({
|
|
987
987
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
988
988
|
return !prop.startsWith('$');
|
|
989
989
|
},
|
|
990
990
|
displayName: "Avatar__AvatarImage",
|
|
991
991
|
componentId: "sc-ezn4ax-1"
|
|
992
|
-
})(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$
|
|
992
|
+
})(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);
|
|
993
993
|
var AvatarInitials = styled.span.withConfig({
|
|
994
994
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
995
995
|
return !prop.startsWith('$');
|
|
@@ -1008,7 +1008,7 @@ var AvatarInitials = styled.span.withConfig({
|
|
|
1008
1008
|
xl: tokensData.base.fontSize[5]
|
|
1009
1009
|
};
|
|
1010
1010
|
return sizeMap[$size];
|
|
1011
|
-
}, color$
|
|
1011
|
+
}, color$9.text["default"]);
|
|
1012
1012
|
// Helper function to get initials from name
|
|
1013
1013
|
var getInitials = function getInitials(name) {
|
|
1014
1014
|
return name.split(' ').map(function (word) {
|
|
@@ -1066,7 +1066,7 @@ var templateObject_1$J, templateObject_2$u, templateObject_3$r;
|
|
|
1066
1066
|
|
|
1067
1067
|
var _a$8 = tokensData.semantic,
|
|
1068
1068
|
typography$5 = _a$8.typography,
|
|
1069
|
-
color$
|
|
1069
|
+
color$8 = _a$8.color;
|
|
1070
1070
|
var getTypographyStyles = function getTypographyStyles(variant) {
|
|
1071
1071
|
var styles = {
|
|
1072
1072
|
display: "font: ".concat(typography$5.display, "; letter-spacing: ").concat(tokensData.base.letterSpacing[0], ";"),
|
|
@@ -1090,15 +1090,15 @@ var getTypographyStyles = function getTypographyStyles(variant) {
|
|
|
1090
1090
|
};
|
|
1091
1091
|
var getTextColor = function getTextColor(colorVariant) {
|
|
1092
1092
|
var colorMap = {
|
|
1093
|
-
"default": color$
|
|
1094
|
-
emphasis: color$
|
|
1095
|
-
subdued: color$
|
|
1096
|
-
inverse: color$
|
|
1097
|
-
disabled: color$
|
|
1098
|
-
interactive: color$
|
|
1099
|
-
error: color$
|
|
1100
|
-
success: color$
|
|
1101
|
-
warning: color$
|
|
1093
|
+
"default": color$8.text["default"],
|
|
1094
|
+
emphasis: color$8.text.emphasis,
|
|
1095
|
+
subdued: color$8.text.subdued,
|
|
1096
|
+
inverse: color$8.text.inverse,
|
|
1097
|
+
disabled: color$8.text.disabled,
|
|
1098
|
+
interactive: color$8.text.interactive,
|
|
1099
|
+
error: color$8.text.error,
|
|
1100
|
+
success: color$8.text.success,
|
|
1101
|
+
warning: color$8.text.warning
|
|
1102
1102
|
};
|
|
1103
1103
|
return colorMap[colorVariant] || colorMap["default"];
|
|
1104
1104
|
};
|
|
@@ -1200,9 +1200,9 @@ var Typography = function Typography(_a) {
|
|
|
1200
1200
|
var templateObject_1$I;
|
|
1201
1201
|
|
|
1202
1202
|
var semantic$h = tokensData.semantic;
|
|
1203
|
-
var color$
|
|
1204
|
-
border$
|
|
1205
|
-
var radius$
|
|
1203
|
+
var color$7 = semantic$h.color,
|
|
1204
|
+
border$8 = semantic$h.border;
|
|
1205
|
+
var radius$4 = border$8.radius;
|
|
1206
1206
|
var scaleIn$1 = styled.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"])));
|
|
1207
1207
|
var BadgeWrapper = styled.span.withConfig({
|
|
1208
1208
|
displayName: "Badge__BadgeWrapper",
|
|
@@ -1222,18 +1222,18 @@ var BadgeIndicator = styled.span.withConfig({
|
|
|
1222
1222
|
return props.$isDot ? '8px' : '16px';
|
|
1223
1223
|
}, function (props) {
|
|
1224
1224
|
return props.$isDot ? '0' : '0 4px';
|
|
1225
|
-
}, radius$
|
|
1225
|
+
}, radius$4.circle, color$7.background["default"], scaleIn$1, function (props) {
|
|
1226
1226
|
switch (props.$variant) {
|
|
1227
1227
|
case 'primary':
|
|
1228
|
-
return "\n background-color: ".concat(color$
|
|
1228
|
+
return "\n background-color: ".concat(color$7.background.interactive, ";\n color: ").concat(color$7.text.inverse, ";\n ");
|
|
1229
1229
|
case 'error':
|
|
1230
|
-
return "\n background-color: ".concat(color$
|
|
1230
|
+
return "\n background-color: ".concat(color$7.background.error, ";\n color: ").concat(color$7.text.inverse, ";\n ");
|
|
1231
1231
|
case 'warning':
|
|
1232
|
-
return "\n background-color: ".concat(color$
|
|
1232
|
+
return "\n background-color: ".concat(color$7.background.warning, ";\n color: ").concat(color$7.text.inverse, ";\n ");
|
|
1233
1233
|
case 'success':
|
|
1234
|
-
return "\n background-color: ".concat(color$
|
|
1234
|
+
return "\n background-color: ".concat(color$7.background.success, ";\n color: ").concat(color$7.text.inverse, ";\n ");
|
|
1235
1235
|
default:
|
|
1236
|
-
return "\n background-color: ".concat(color$
|
|
1236
|
+
return "\n background-color: ".concat(color$7.background.emphasis, ";\n color: ").concat(color$7.text.inverse, ";\n ");
|
|
1237
1237
|
}
|
|
1238
1238
|
});
|
|
1239
1239
|
var ScreenReaderOnly$1 = styled.span.withConfig({
|
|
@@ -1296,7 +1296,7 @@ var StyledBox = styled.div.withConfig({
|
|
|
1296
1296
|
}, function (props) {
|
|
1297
1297
|
return props.$flexWrap && styled.css(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["flex-wrap: ", ";"], ["flex-wrap: ", ";"])), props.$flexWrap);
|
|
1298
1298
|
}, function (props) {
|
|
1299
|
-
return props.$gap && styled.css(templateObject_6$
|
|
1299
|
+
return props.$gap && styled.css(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), tokensData.semantic.spacing.layout[props.$gap]);
|
|
1300
1300
|
}, function (props) {
|
|
1301
1301
|
return props.$m && styled.css(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), tokensData.semantic.spacing.layout[props.$m]);
|
|
1302
1302
|
}, function (props) {
|
|
@@ -1318,7 +1318,7 @@ var StyledBox = styled.div.withConfig({
|
|
|
1318
1318
|
}, function (props) {
|
|
1319
1319
|
return props.$pr && styled.css(templateObject_16$2 || (templateObject_16$2 = __makeTemplateObject(["padding-right: ", ";"], ["padding-right: ", ";"])), tokensData.semantic.spacing.layout[props.$pr]);
|
|
1320
1320
|
}, function (props) {
|
|
1321
|
-
return props.$pb && styled.css(templateObject_17$
|
|
1321
|
+
return props.$pb && styled.css(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["padding-bottom: ", ";"], ["padding-bottom: ", ";"])), tokensData.semantic.spacing.layout[props.$pb]);
|
|
1322
1322
|
}, function (props) {
|
|
1323
1323
|
return props.$pl && styled.css(templateObject_18$1 || (templateObject_18$1 = __makeTemplateObject(["padding-left: ", ";"], ["padding-left: ", ";"])), tokensData.semantic.spacing.layout[props.$pl]);
|
|
1324
1324
|
}, function (props) {
|
|
@@ -1510,7 +1510,7 @@ var BoxTransform = function BoxTransform(props) {
|
|
|
1510
1510
|
}));
|
|
1511
1511
|
};
|
|
1512
1512
|
var Box = BoxTransform;
|
|
1513
|
-
var templateObject_1$G, templateObject_2$s, templateObject_3$p, templateObject_4$k, templateObject_5$f, templateObject_6$
|
|
1513
|
+
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;
|
|
1514
1514
|
|
|
1515
1515
|
var add = {
|
|
1516
1516
|
path: "M13 11H19V13H13V19H11V13H5V11H11V5H13V11Z",
|
|
@@ -2482,12 +2482,12 @@ var templateObject_1$E, templateObject_2$r;
|
|
|
2482
2482
|
|
|
2483
2483
|
var semantic$f = tokensData.semantic,
|
|
2484
2484
|
base$b = tokensData.base;
|
|
2485
|
-
var color$
|
|
2485
|
+
var color$6 = semantic$f.color,
|
|
2486
2486
|
typography$4 = semantic$f.typography,
|
|
2487
|
-
border$
|
|
2487
|
+
border$7 = semantic$f.border,
|
|
2488
2488
|
spacing$7 = semantic$f.spacing;
|
|
2489
|
-
var category = color$
|
|
2490
|
-
var radius$
|
|
2489
|
+
var category = color$6.category;
|
|
2490
|
+
var radius$3 = border$7.radius;
|
|
2491
2491
|
var layout$3 = spacing$7.layout;
|
|
2492
2492
|
var StyledCategoryBadge = styled.span.withConfig({
|
|
2493
2493
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -2513,7 +2513,7 @@ var StyledCategoryBadge = styled.span.withConfig({
|
|
|
2513
2513
|
* Travel
|
|
2514
2514
|
* </CategoryBadge>
|
|
2515
2515
|
* ```
|
|
2516
|
-
*/])), radius$
|
|
2516
|
+
*/])), radius$3.circle, base$b.fontWeight[3], base$b.border.width[1], function (_a) {
|
|
2517
2517
|
var $size = _a.$size;
|
|
2518
2518
|
return $size === 'small' ? '24px' : '32px';
|
|
2519
2519
|
}, function (_a) {
|
|
@@ -2537,7 +2537,7 @@ var StyledCategoryBadge = styled.span.withConfig({
|
|
|
2537
2537
|
var $color = _a.$color,
|
|
2538
2538
|
$variant = _a.$variant;
|
|
2539
2539
|
if ($variant === 'filled') {
|
|
2540
|
-
return color$
|
|
2540
|
+
return color$6.text.inverse;
|
|
2541
2541
|
}
|
|
2542
2542
|
return category[$color];
|
|
2543
2543
|
}, function (_a) {
|
|
@@ -2969,14 +2969,14 @@ var templateObject_1$A, templateObject_2$p, templateObject_3$n, templateObject_4
|
|
|
2969
2969
|
|
|
2970
2970
|
var _a$7 = tokensData.semantic,
|
|
2971
2971
|
typography$3 = _a$7.typography,
|
|
2972
|
-
color$
|
|
2972
|
+
color$5 = _a$7.color;
|
|
2973
2973
|
var TimeStyled = styled.time.withConfig({
|
|
2974
2974
|
displayName: "DateFormatter__TimeStyled",
|
|
2975
2975
|
componentId: "sc-5464cc-0"
|
|
2976
2976
|
})(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
|
|
2977
2977
|
/**
|
|
2978
2978
|
* Formats a date with smart relative/absolute logic
|
|
2979
|
-
*/])), typography$3.label, color$
|
|
2979
|
+
*/])), typography$3.label, color$5.text.subdued);
|
|
2980
2980
|
/**
|
|
2981
2981
|
* Formats a date with smart relative/absolute logic
|
|
2982
2982
|
*/
|
|
@@ -3260,18 +3260,18 @@ var semantic$e = tokensData.semantic;
|
|
|
3260
3260
|
var _a$5 = __assign(__assign({}, semantic$e), {
|
|
3261
3261
|
component: tokensData.component
|
|
3262
3262
|
}),
|
|
3263
|
-
color$
|
|
3264
|
-
border$
|
|
3263
|
+
color$4 = _a$5.color,
|
|
3264
|
+
border$6 = _a$5.border,
|
|
3265
3265
|
motion$1 = _a$5.motion,
|
|
3266
3266
|
component$2 = _a$5.component;
|
|
3267
|
-
var radius$
|
|
3267
|
+
var radius$2 = border$6.radius;
|
|
3268
3268
|
var ProgressBarContainer = styled.div.withConfig({
|
|
3269
3269
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
3270
3270
|
return !prop.startsWith('$');
|
|
3271
3271
|
},
|
|
3272
3272
|
displayName: "ProgressBar__ProgressBarContainer",
|
|
3273
3273
|
componentId: "sc-1nco33q-0"
|
|
3274
|
-
})(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$
|
|
3274
|
+
})(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) {
|
|
3275
3275
|
return props.$variant === 'horizontal' && styled.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);
|
|
3276
3276
|
}, function (props) {
|
|
3277
3277
|
return props.$variant === 'vertical' && styled.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);
|
|
@@ -3286,21 +3286,21 @@ var ProgressBarFill = styled.div.withConfig({
|
|
|
3286
3286
|
var backgroundColor;
|
|
3287
3287
|
switch (props.$color) {
|
|
3288
3288
|
case 'success':
|
|
3289
|
-
backgroundColor = color$
|
|
3289
|
+
backgroundColor = color$4.background.success;
|
|
3290
3290
|
break;
|
|
3291
3291
|
case 'error':
|
|
3292
|
-
backgroundColor = color$
|
|
3292
|
+
backgroundColor = color$4.background.error;
|
|
3293
3293
|
break;
|
|
3294
3294
|
case 'default':
|
|
3295
3295
|
default:
|
|
3296
|
-
backgroundColor = color$
|
|
3296
|
+
backgroundColor = color$4.background.interactive;
|
|
3297
3297
|
break;
|
|
3298
3298
|
}
|
|
3299
3299
|
return styled.css(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundColor);
|
|
3300
3300
|
}, function (props) {
|
|
3301
3301
|
return props.$variant === 'horizontal' && styled.css(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n width: ", "%;\n "], ["\n width: ", "%;\n "])), Math.min(100, Math.max(0, props.$value)));
|
|
3302
3302
|
}, function (props) {
|
|
3303
|
-
return props.$variant === 'vertical' && styled.css(templateObject_6$
|
|
3303
|
+
return props.$variant === 'vertical' && styled.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)));
|
|
3304
3304
|
});
|
|
3305
3305
|
var ProgressBar = function ProgressBar(_a) {
|
|
3306
3306
|
var value = _a.value,
|
|
@@ -3327,7 +3327,7 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
3327
3327
|
})
|
|
3328
3328
|
});
|
|
3329
3329
|
};
|
|
3330
|
-
var templateObject_1$w, templateObject_2$o, templateObject_3$m, templateObject_4$i, templateObject_5$e, templateObject_6$
|
|
3330
|
+
var templateObject_1$w, templateObject_2$o, templateObject_3$m, templateObject_4$i, templateObject_5$e, templateObject_6$b, templateObject_7$9;
|
|
3331
3331
|
|
|
3332
3332
|
// Destructure tokens for cleaner access
|
|
3333
3333
|
var separatorTokens = tokensData.component.separator;
|
|
@@ -3503,7 +3503,7 @@ var templateObject_1$u;
|
|
|
3503
3503
|
// Destructure tokens for cleaner access
|
|
3504
3504
|
var statusColors = tokensData.semantic.color.status;
|
|
3505
3505
|
var spacing$5 = tokensData.semantic.spacing.layout;
|
|
3506
|
-
var radius$
|
|
3506
|
+
var radius$1 = tokensData.semantic.border.radius;
|
|
3507
3507
|
var transition = tokensData.semantic.motion.transition;
|
|
3508
3508
|
var typography$2 = tokensData.semantic.typography;
|
|
3509
3509
|
var scaleIn = styled.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"])));
|
|
@@ -3573,7 +3573,7 @@ var StyledStatusBadge = styled.span.withConfig({
|
|
|
3573
3573
|
},
|
|
3574
3574
|
displayName: "StatusBadge__StyledStatusBadge",
|
|
3575
3575
|
componentId: "sc-1paksgb-0"
|
|
3576
|
-
})(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$
|
|
3576
|
+
})(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) {
|
|
3577
3577
|
var $size = _a.$size;
|
|
3578
3578
|
var size = sizeConfig[$size];
|
|
3579
3579
|
return "\n height: ".concat(size.height, ";\n padding: ").concat(size.padding, ";\n font: ").concat(size.font, ";\n gap: ").concat(size.gap, ";\n ");
|
|
@@ -3668,13 +3668,13 @@ StatusBadge.displayName = 'StatusBadge';
|
|
|
3668
3668
|
var templateObject_1$t, templateObject_2$n, templateObject_3$l;
|
|
3669
3669
|
|
|
3670
3670
|
var semantic$d = tokensData.semantic;
|
|
3671
|
-
var color$
|
|
3671
|
+
var color$3 = semantic$d.color,
|
|
3672
3672
|
spacing$4 = semantic$d.spacing,
|
|
3673
|
-
border$
|
|
3673
|
+
border$5 = semantic$d.border,
|
|
3674
3674
|
typography$1 = semantic$d.typography,
|
|
3675
3675
|
size = semantic$d.size;
|
|
3676
3676
|
var layout$2 = spacing$4.layout;
|
|
3677
|
-
var radius
|
|
3677
|
+
var radius = border$5.radius;
|
|
3678
3678
|
var StyledTag = styled.span.withConfig({
|
|
3679
3679
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
3680
3680
|
return !prop.startsWith('$');
|
|
@@ -3687,37 +3687,37 @@ var StyledTag = styled.span.withConfig({
|
|
|
3687
3687
|
*
|
|
3688
3688
|
* A static, non-interactive label used to categorize elements or objects in the UI.
|
|
3689
3689
|
* Tags help users quickly identify and understand content classification.
|
|
3690
|
-
*/])), radius
|
|
3690
|
+
*/])), radius.sm, size.icon.lg || '2rem', layout$2.xs, layout$2.sm, typography$1.button3, function (_a) {
|
|
3691
3691
|
var $variant = _a.$variant;
|
|
3692
3692
|
switch ($variant) {
|
|
3693
3693
|
case 'interactive':
|
|
3694
|
-
return color$
|
|
3694
|
+
return color$3.background['interactive-subtle'];
|
|
3695
3695
|
case 'success':
|
|
3696
|
-
return color$
|
|
3696
|
+
return color$3.background['success-subtle'];
|
|
3697
3697
|
case 'warning':
|
|
3698
|
-
return color$
|
|
3698
|
+
return color$3.background['warning-subtle'];
|
|
3699
3699
|
case 'error':
|
|
3700
|
-
return color$
|
|
3700
|
+
return color$3.background['error-subtle'];
|
|
3701
3701
|
case 'emphasis':
|
|
3702
|
-
return color$
|
|
3702
|
+
return color$3.background.emphasis;
|
|
3703
3703
|
default:
|
|
3704
|
-
return color$
|
|
3704
|
+
return color$3.background.surface;
|
|
3705
3705
|
}
|
|
3706
3706
|
}, function (_a) {
|
|
3707
3707
|
var $variant = _a.$variant;
|
|
3708
3708
|
switch ($variant) {
|
|
3709
3709
|
case 'interactive':
|
|
3710
|
-
return color$
|
|
3710
|
+
return color$3.text.interactive;
|
|
3711
3711
|
case 'success':
|
|
3712
|
-
return color$
|
|
3712
|
+
return color$3.text.success;
|
|
3713
3713
|
case 'warning':
|
|
3714
|
-
return color$
|
|
3714
|
+
return color$3.text.warning;
|
|
3715
3715
|
case 'error':
|
|
3716
|
-
return color$
|
|
3716
|
+
return color$3.text.error;
|
|
3717
3717
|
case 'emphasis':
|
|
3718
|
-
return color$
|
|
3718
|
+
return color$3.text.inverse;
|
|
3719
3719
|
default:
|
|
3720
|
-
return color$
|
|
3720
|
+
return color$3.text["default"];
|
|
3721
3721
|
}
|
|
3722
3722
|
}, function (_a) {
|
|
3723
3723
|
var $variant = _a.$variant,
|
|
@@ -3725,17 +3725,17 @@ var StyledTag = styled.span.withConfig({
|
|
|
3725
3725
|
if (!$border) return 'none';
|
|
3726
3726
|
switch ($variant) {
|
|
3727
3727
|
case 'interactive':
|
|
3728
|
-
return "1px solid ".concat(color$
|
|
3728
|
+
return "1px solid ".concat(color$3.border.interactive);
|
|
3729
3729
|
case 'success':
|
|
3730
|
-
return "1px solid ".concat(color$
|
|
3730
|
+
return "1px solid ".concat(color$3.border.success);
|
|
3731
3731
|
case 'warning':
|
|
3732
|
-
return "1px solid ".concat(color$
|
|
3732
|
+
return "1px solid ".concat(color$3.border.warning);
|
|
3733
3733
|
case 'error':
|
|
3734
|
-
return "1px solid ".concat(color$
|
|
3734
|
+
return "1px solid ".concat(color$3.border.error);
|
|
3735
3735
|
case 'emphasis':
|
|
3736
|
-
return "1px solid ".concat(color$
|
|
3736
|
+
return "1px solid ".concat(color$3.background.emphasis);
|
|
3737
3737
|
default:
|
|
3738
|
-
return "1px solid ".concat(color$
|
|
3738
|
+
return "1px solid ".concat(color$3.border["default"]);
|
|
3739
3739
|
}
|
|
3740
3740
|
});
|
|
3741
3741
|
/**
|
|
@@ -3768,57 +3768,41 @@ var templateObject_1$s;
|
|
|
3768
3768
|
|
|
3769
3769
|
// Destructure tokens for cleaner access
|
|
3770
3770
|
var semantic$c = tokensData.semantic;
|
|
3771
|
-
var
|
|
3772
|
-
spacing$3 = semantic$c.spacing,
|
|
3773
|
-
border$5 = semantic$c.border;
|
|
3771
|
+
var spacing$3 = semantic$c.spacing;
|
|
3774
3772
|
var layout$1 = spacing$3.layout;
|
|
3775
|
-
var background = color$3.background,
|
|
3776
|
-
icon = color$3.icon;
|
|
3777
|
-
var radius = border$5.radius;
|
|
3778
|
-
var StyledHeader$2 = styled.div.withConfig({
|
|
3779
|
-
displayName: "AccountCard__StyledHeader",
|
|
3780
|
-
componentId: "sc-1erp7zn-0"
|
|
3781
|
-
})(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);
|
|
3782
|
-
var StyledIconWrapper = styled.div.withConfig({
|
|
3783
|
-
displayName: "AccountCard__StyledIconWrapper",
|
|
3784
|
-
componentId: "sc-1erp7zn-1"
|
|
3785
|
-
})(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);
|
|
3786
3773
|
var StyledBalanceSection = styled.div.withConfig({
|
|
3787
3774
|
displayName: "AccountCard__StyledBalanceSection",
|
|
3788
|
-
componentId: "sc-1erp7zn-
|
|
3789
|
-
})(
|
|
3775
|
+
componentId: "sc-1erp7zn-0"
|
|
3776
|
+
})(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), layout$1.lg);
|
|
3790
3777
|
var StyledTrendSection = styled.div.withConfig({
|
|
3791
3778
|
displayName: "AccountCard__StyledTrendSection",
|
|
3792
|
-
componentId: "sc-1erp7zn-
|
|
3793
|
-
})(
|
|
3794
|
-
|
|
3779
|
+
componentId: "sc-1erp7zn-1"
|
|
3780
|
+
})(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);
|
|
3781
|
+
styled.div.withConfig({
|
|
3795
3782
|
displayName: "AccountCard__StyledActions",
|
|
3796
|
-
componentId: "sc-1erp7zn-
|
|
3797
|
-
})(
|
|
3783
|
+
componentId: "sc-1erp7zn-2"
|
|
3784
|
+
})(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);
|
|
3798
3785
|
var StyledStackWrapper = styled.div.withConfig({
|
|
3799
3786
|
displayName: "AccountCard__StyledStackWrapper",
|
|
3800
|
-
componentId: "sc-1erp7zn-
|
|
3801
|
-
})(
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
savings: 'star',
|
|
3809
|
-
// Will use piggyBank icon
|
|
3810
|
-
credit: 'paper',
|
|
3811
|
-
// Will use creditCard icon
|
|
3812
|
-
investment: 'star',
|
|
3813
|
-
// Will use chartLine icon
|
|
3814
|
-
loan: 'paper' // Will use document icon
|
|
3815
|
-
};
|
|
3787
|
+
componentId: "sc-1erp7zn-3"
|
|
3788
|
+
})(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"])));
|
|
3789
|
+
var StyledHeaderWrapper = styled.div.withConfig({
|
|
3790
|
+
displayName: "AccountCard__StyledHeaderWrapper",
|
|
3791
|
+
componentId: "sc-1erp7zn-4"
|
|
3792
|
+
})(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"
|
|
3793
|
+
// Map trend direction to icon and color
|
|
3794
|
+
])), layout$1.none, layout$1.xs);
|
|
3816
3795
|
// Map trend direction to icon and color
|
|
3817
3796
|
var trendToIcon = {
|
|
3818
3797
|
up: 'arrowUp',
|
|
3819
3798
|
down: 'arrowDown',
|
|
3820
3799
|
neutral: 'arrowRight'
|
|
3821
3800
|
};
|
|
3801
|
+
var trendToColor = {
|
|
3802
|
+
up: 'green',
|
|
3803
|
+
down: 'red',
|
|
3804
|
+
neutral: 'blue'
|
|
3805
|
+
};
|
|
3822
3806
|
/**
|
|
3823
3807
|
* AccountCard component
|
|
3824
3808
|
*
|
|
@@ -3826,11 +3810,10 @@ var trendToIcon = {
|
|
|
3826
3810
|
* name, balance, optional trend indicator, and action buttons. Minimum
|
|
3827
3811
|
* 300x200px with elevation and hover effects.
|
|
3828
3812
|
*
|
|
3829
|
-
* Composes: Stack, Box,
|
|
3813
|
+
* Composes: Stack, Box, Avatar, Typography, MoneyDisplay, Button
|
|
3830
3814
|
*/
|
|
3831
3815
|
var AccountCard = function AccountCard(_a) {
|
|
3832
|
-
var
|
|
3833
|
-
accountName = _a.accountName,
|
|
3816
|
+
var accountName = _a.accountName,
|
|
3834
3817
|
balance = _a.balance,
|
|
3835
3818
|
accountNumber = _a.accountNumber,
|
|
3836
3819
|
trend = _a.trend,
|
|
@@ -3842,11 +3825,9 @@ var AccountCard = function AccountCard(_a) {
|
|
|
3842
3825
|
onClick = _a.onClick,
|
|
3843
3826
|
dataTestId = _a["data-testid"];
|
|
3844
3827
|
var isClickable = !!onClick;
|
|
3845
|
-
// Get account type icon
|
|
3846
|
-
var accountIcon = accountTypeToIcon[accountType];
|
|
3847
3828
|
// Get trend icon and color
|
|
3848
3829
|
var trendIcon = trend ? trendToIcon[trend] : undefined;
|
|
3849
|
-
var trendColor = trend
|
|
3830
|
+
var trendColor = trend ? trendToColor[trend] : undefined;
|
|
3850
3831
|
var handleClick = function handleClick() {
|
|
3851
3832
|
if (isClickable && onClick) {
|
|
3852
3833
|
onClick();
|
|
@@ -3860,9 +3841,8 @@ var AccountCard = function AccountCard(_a) {
|
|
|
3860
3841
|
};
|
|
3861
3842
|
return jsxRuntime.jsx(Box, {
|
|
3862
3843
|
minWidth: "300px",
|
|
3863
|
-
minHeight: "200px",
|
|
3864
3844
|
p: "lg",
|
|
3865
|
-
bg: "
|
|
3845
|
+
bg: "subtle",
|
|
3866
3846
|
border: "default",
|
|
3867
3847
|
borderRadius: "xl",
|
|
3868
3848
|
transition: "all 0.2s ease",
|
|
@@ -3877,64 +3857,75 @@ var AccountCard = function AccountCard(_a) {
|
|
|
3877
3857
|
"data-testid": dataTestId,
|
|
3878
3858
|
children: jsxRuntime.jsx(StyledStackWrapper, {
|
|
3879
3859
|
children: jsxRuntime.jsxs(Stack, {
|
|
3880
|
-
direction: "
|
|
3881
|
-
|
|
3882
|
-
children: [jsxRuntime.
|
|
3883
|
-
|
|
3884
|
-
|
|
3860
|
+
direction: "row",
|
|
3861
|
+
justifyContent: "space-between",
|
|
3862
|
+
children: [jsxRuntime.jsxs(Stack, {
|
|
3863
|
+
direction: "row",
|
|
3864
|
+
gap: "md",
|
|
3865
|
+
children: [jsxRuntime.jsx(Avatar, {
|
|
3866
|
+
name: accountName,
|
|
3867
|
+
size: "lg",
|
|
3868
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-avatar") : undefined
|
|
3869
|
+
}), jsxRuntime.jsxs(Stack, {
|
|
3870
|
+
direction: "column",
|
|
3871
|
+
justifyContent: "space-between",
|
|
3872
|
+
alignItems: "stretch",
|
|
3885
3873
|
gap: "md",
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
children: jsxRuntime.
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3874
|
+
children: [jsxRuntime.jsx(Stack, {
|
|
3875
|
+
direction: "row",
|
|
3876
|
+
gap: "md",
|
|
3877
|
+
alignItems: "center",
|
|
3878
|
+
children: jsxRuntime.jsxs(StyledHeaderWrapper, {
|
|
3879
|
+
children: [jsxRuntime.jsx(Typography, {
|
|
3880
|
+
variant: "h4",
|
|
3881
|
+
children: accountName
|
|
3882
|
+
}), accountNumber && jsxRuntime.jsxs(Typography, {
|
|
3883
|
+
variant: "small",
|
|
3884
|
+
color: "subdued",
|
|
3885
|
+
children: ["\u2022\u2022\u2022\u2022 ", accountNumber]
|
|
3886
|
+
})]
|
|
3887
|
+
})
|
|
3888
|
+
}), jsxRuntime.jsx(StyledBalanceSection, {
|
|
3889
|
+
children: jsxRuntime.jsxs(Stack, {
|
|
3890
|
+
direction: "row",
|
|
3891
|
+
gap: "sm",
|
|
3892
|
+
children: [jsxRuntime.jsx(MoneyDisplay, {
|
|
3893
|
+
amount: balance,
|
|
3894
|
+
currency: currency,
|
|
3895
|
+
size: "medium",
|
|
3896
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-balance") : undefined
|
|
3897
|
+
}), jsxRuntime.jsx(Typography, {
|
|
3898
|
+
color: "subdued",
|
|
3899
|
+
children: "Available"
|
|
3900
|
+
}), trend && trendValue && jsxRuntime.jsx(StyledTrendSection, {
|
|
3901
|
+
"aria-label": "Trend ".concat(trend),
|
|
3902
|
+
role: "img",
|
|
3903
|
+
children: jsxRuntime.jsx(CategoryBadge, {
|
|
3904
|
+
size: "small",
|
|
3905
|
+
icon: trendIcon,
|
|
3906
|
+
color: trendColor,
|
|
3907
|
+
variant: "minimal",
|
|
3908
|
+
children: trendValue
|
|
3909
|
+
})
|
|
3910
|
+
})]
|
|
3894
3911
|
})
|
|
3895
|
-
}), jsxRuntime.jsxs(Stack, {
|
|
3896
|
-
direction: "column",
|
|
3897
|
-
gap: "none",
|
|
3898
|
-
children: [jsxRuntime.jsx(Typography, {
|
|
3899
|
-
variant: "h4",
|
|
3900
|
-
children: accountName
|
|
3901
|
-
}), accountNumber && jsxRuntime.jsxs(Typography, {
|
|
3902
|
-
variant: "caption",
|
|
3903
|
-
color: "subdued",
|
|
3904
|
-
children: ["\u2022\u2022\u2022\u2022 ", accountNumber]
|
|
3905
|
-
})]
|
|
3906
|
-
})]
|
|
3907
|
-
})
|
|
3908
|
-
}), jsxRuntime.jsxs(StyledBalanceSection, {
|
|
3909
|
-
children: [jsxRuntime.jsxs(Stack, {
|
|
3910
|
-
direction: "column",
|
|
3911
|
-
gap: "xs",
|
|
3912
|
-
children: [jsxRuntime.jsx(Typography, {
|
|
3913
|
-
variant: "caption",
|
|
3914
|
-
color: "subdued",
|
|
3915
|
-
children: "Balance"
|
|
3916
|
-
}), jsxRuntime.jsx(MoneyDisplay, {
|
|
3917
|
-
amount: balance,
|
|
3918
|
-
currency: currency,
|
|
3919
|
-
size: "xlarge",
|
|
3920
|
-
weight: "bold",
|
|
3921
|
-
"data-testid": dataTestId ? "".concat(dataTestId, "-balance") : undefined
|
|
3922
|
-
})]
|
|
3923
|
-
}), trend && trendValue && jsxRuntime.jsxs(StyledTrendSection, {
|
|
3924
|
-
"aria-label": "Trend ".concat(trend),
|
|
3925
|
-
role: "img",
|
|
3926
|
-
children: [jsxRuntime.jsx(Icon, {
|
|
3927
|
-
name: trendIcon,
|
|
3928
|
-
size: "xs",
|
|
3929
|
-
iconColor: trendColor
|
|
3930
|
-
}), jsxRuntime.jsx(Typography, {
|
|
3931
|
-
variant: "caption",
|
|
3932
|
-
color: trendColor,
|
|
3933
|
-
children: trendValue
|
|
3934
3912
|
})]
|
|
3935
3913
|
})]
|
|
3936
|
-
}), (action || secondaryAction) && jsxRuntime.jsxs(
|
|
3937
|
-
|
|
3914
|
+
}), (action || secondaryAction) && jsxRuntime.jsxs(Stack, {
|
|
3915
|
+
direction: "row",
|
|
3916
|
+
gap: "sm",
|
|
3917
|
+
justifyContent: "flex-end",
|
|
3918
|
+
children: [secondaryAction && jsxRuntime.jsx(Button, {
|
|
3919
|
+
onClick: function onClick(e) {
|
|
3920
|
+
e.stopPropagation();
|
|
3921
|
+
secondaryAction.onClick();
|
|
3922
|
+
},
|
|
3923
|
+
variant: secondaryAction.variant || 'secondary',
|
|
3924
|
+
iconName: secondaryAction.icon,
|
|
3925
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined,
|
|
3926
|
+
size: "small",
|
|
3927
|
+
children: secondaryAction.label
|
|
3928
|
+
}), action && jsxRuntime.jsx(Button, {
|
|
3938
3929
|
onClick: function onClick(e) {
|
|
3939
3930
|
e.stopPropagation();
|
|
3940
3931
|
action.onClick();
|
|
@@ -3942,23 +3933,15 @@ var AccountCard = function AccountCard(_a) {
|
|
|
3942
3933
|
variant: action.variant || 'primary',
|
|
3943
3934
|
iconName: action.icon,
|
|
3944
3935
|
"data-testid": dataTestId ? "".concat(dataTestId, "-action") : undefined,
|
|
3936
|
+
size: "small",
|
|
3945
3937
|
children: action.label
|
|
3946
|
-
}), secondaryAction && jsxRuntime.jsx(Button, {
|
|
3947
|
-
onClick: function onClick(e) {
|
|
3948
|
-
e.stopPropagation();
|
|
3949
|
-
secondaryAction.onClick();
|
|
3950
|
-
},
|
|
3951
|
-
variant: secondaryAction.variant || 'naked',
|
|
3952
|
-
iconName: secondaryAction.icon,
|
|
3953
|
-
"data-testid": dataTestId ? "".concat(dataTestId, "-secondary-action") : undefined,
|
|
3954
|
-
children: secondaryAction.label
|
|
3955
3938
|
})]
|
|
3956
3939
|
})]
|
|
3957
3940
|
})
|
|
3958
3941
|
})
|
|
3959
3942
|
});
|
|
3960
3943
|
};
|
|
3961
|
-
var templateObject_1$r, templateObject_2$m, templateObject_3$k, templateObject_4$h, templateObject_5$d
|
|
3944
|
+
var templateObject_1$r, templateObject_2$m, templateObject_3$k, templateObject_4$h, templateObject_5$d;
|
|
3962
3945
|
|
|
3963
3946
|
var semantic$b = tokensData.semantic,
|
|
3964
3947
|
base$9 = tokensData.base;
|
|
@@ -4475,7 +4458,7 @@ function agentInputStateTransition(currentState, event) {
|
|
|
4475
4458
|
}
|
|
4476
4459
|
return currentState;
|
|
4477
4460
|
case 'MIC_STOP':
|
|
4478
|
-
if (currentState === 'listening') {
|
|
4461
|
+
if (currentState === 'listening' || currentState === 'processingFinalTranscript') {
|
|
4479
4462
|
return textDrivenState(event.hasText);
|
|
4480
4463
|
}
|
|
4481
4464
|
return currentState;
|
|
@@ -4504,7 +4487,7 @@ var semantic$a = tokensData.semantic,
|
|
|
4504
4487
|
var DEFAULT_IDLE_HELPER = 'Ask about transactions, spending, or transfers';
|
|
4505
4488
|
var DEFAULT_LISTENING_MESSAGE = 'Listening… speak now';
|
|
4506
4489
|
var DEFAULT_PROCESSING_MESSAGE = 'Finishing voice input…';
|
|
4507
|
-
var
|
|
4490
|
+
var rotateRing = styled.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"])));
|
|
4508
4491
|
var Container = styled.div.withConfig({
|
|
4509
4492
|
displayName: "AgentInput__Container",
|
|
4510
4493
|
componentId: "sc-fhl996-0"
|
|
@@ -4524,7 +4507,7 @@ var Input = styled.input.withConfig({
|
|
|
4524
4507
|
var InputActions = styled.div.withConfig({
|
|
4525
4508
|
displayName: "AgentInput__InputActions",
|
|
4526
4509
|
componentId: "sc-fhl996-4"
|
|
4527
|
-
})(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.
|
|
4510
|
+
})(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);
|
|
4528
4511
|
var CircularActionIconButton = styled(IconButton).withConfig({
|
|
4529
4512
|
displayName: "AgentInput__CircularActionIconButton",
|
|
4530
4513
|
componentId: "sc-fhl996-5"
|
|
@@ -4539,47 +4522,50 @@ var MicButtonWrapper = styled.div.withConfig({
|
|
|
4539
4522
|
},
|
|
4540
4523
|
displayName: "AgentInput__MicButtonWrapper",
|
|
4541
4524
|
componentId: "sc-fhl996-7"
|
|
4542
|
-
})(
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4525
|
+
})(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);
|
|
4526
|
+
var MicListeningRing = styled.span.withConfig({
|
|
4527
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
4528
|
+
return !prop.startsWith('$');
|
|
4529
|
+
},
|
|
4530
|
+
displayName: "AgentInput__MicListeningRing",
|
|
4531
|
+
componentId: "sc-fhl996-8"
|
|
4532
|
+
})(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) {
|
|
4533
|
+
var $reducedMotion = _a.$reducedMotion;
|
|
4534
|
+
return !$reducedMotion && styled.css(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n animation: ", " 1300ms linear infinite;\n "], ["\n animation: ", " 1300ms linear infinite;\n "])), rotateRing);
|
|
4546
4535
|
});
|
|
4547
4536
|
var StatusRow = styled.div.withConfig({
|
|
4548
4537
|
displayName: "AgentInput__StatusRow",
|
|
4549
|
-
componentId: "sc-fhl996-
|
|
4550
|
-
})(
|
|
4538
|
+
componentId: "sc-fhl996-9"
|
|
4539
|
+
})(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]);
|
|
4551
4540
|
var StatusText = styled.div.withConfig({
|
|
4552
4541
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
4553
4542
|
return !prop.startsWith('$');
|
|
4554
4543
|
},
|
|
4555
4544
|
displayName: "AgentInput__StatusText",
|
|
4556
|
-
componentId: "sc-fhl996-
|
|
4557
|
-
})(
|
|
4558
|
-
var $isError = _a.$isError;
|
|
4559
|
-
return $isError ? semantic$a.color.text.error : semantic$a.color.text.subdued;
|
|
4560
|
-
});
|
|
4545
|
+
componentId: "sc-fhl996-10"
|
|
4546
|
+
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$a.spacing.layout.xl);
|
|
4561
4547
|
var StatusAnnouncement = styled.div.withConfig({
|
|
4562
4548
|
displayName: "AgentInput__StatusAnnouncement",
|
|
4563
|
-
componentId: "sc-fhl996-
|
|
4564
|
-
})(
|
|
4549
|
+
componentId: "sc-fhl996-11"
|
|
4550
|
+
})(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject([""], [""])));
|
|
4565
4551
|
var MeterContainer = styled.div.withConfig({
|
|
4566
4552
|
displayName: "AgentInput__MeterContainer",
|
|
4567
|
-
componentId: "sc-fhl996-
|
|
4568
|
-
})(
|
|
4553
|
+
componentId: "sc-fhl996-12"
|
|
4554
|
+
})(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]);
|
|
4569
4555
|
var MeterBar = styled.div.withConfig({
|
|
4570
4556
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
4571
4557
|
return !prop.startsWith('$');
|
|
4572
4558
|
},
|
|
4573
4559
|
displayName: "AgentInput__MeterBar",
|
|
4574
|
-
componentId: "sc-fhl996-
|
|
4575
|
-
})(
|
|
4560
|
+
componentId: "sc-fhl996-13"
|
|
4561
|
+
})(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) {
|
|
4576
4562
|
var $height = _a.$height;
|
|
4577
4563
|
return "".concat($height * 100, "%");
|
|
4578
4564
|
});
|
|
4579
4565
|
var VisuallyHiddenLabel = styled.label.withConfig({
|
|
4580
4566
|
displayName: "AgentInput__VisuallyHiddenLabel",
|
|
4581
|
-
componentId: "sc-fhl996-
|
|
4582
|
-
})(
|
|
4567
|
+
componentId: "sc-fhl996-14"
|
|
4568
|
+
})(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"])));
|
|
4583
4569
|
function getInitialState(hasText) {
|
|
4584
4570
|
return hasText ? 'typing' : 'idle';
|
|
4585
4571
|
}
|
|
@@ -4971,6 +4957,10 @@ var AgentInput = function AgentInput(_a) {
|
|
|
4971
4957
|
return [3 /*break*/, 4];
|
|
4972
4958
|
case 3:
|
|
4973
4959
|
updateValue(normalizedFinal);
|
|
4960
|
+
updateMachineState({
|
|
4961
|
+
type: 'MIC_STOP',
|
|
4962
|
+
hasText: true
|
|
4963
|
+
});
|
|
4974
4964
|
_a.label = 4;
|
|
4975
4965
|
case 4:
|
|
4976
4966
|
return [2 /*return*/];
|
|
@@ -5147,10 +5137,15 @@ var AgentInput = function AgentInput(_a) {
|
|
|
5147
5137
|
readOnly: isListening,
|
|
5148
5138
|
"aria-describedby": statusId
|
|
5149
5139
|
}), jsxRuntime.jsxs(InputActions, {
|
|
5150
|
-
children: [hasVoice && jsxRuntime.
|
|
5140
|
+
children: [hasVoice && jsxRuntime.jsxs(MicButtonWrapper, {
|
|
5151
5141
|
"$isListening": isListening,
|
|
5152
5142
|
"$reducedMotion": prefersReducedMotion,
|
|
5153
|
-
children: jsxRuntime.jsx(
|
|
5143
|
+
children: [isListening && jsxRuntime.jsx(MicListeningRing, {
|
|
5144
|
+
"$reducedMotion": prefersReducedMotion,
|
|
5145
|
+
"aria-hidden": "true",
|
|
5146
|
+
"data-testid": "agent-input-listening-ring",
|
|
5147
|
+
"data-animated": prefersReducedMotion ? 'false' : 'true'
|
|
5148
|
+
}), jsxRuntime.jsx(CircularActionIconButton, {
|
|
5154
5149
|
variant: "naked",
|
|
5155
5150
|
size: "medium",
|
|
5156
5151
|
iconName: 'mic',
|
|
@@ -5159,7 +5154,7 @@ var AgentInput = function AgentInput(_a) {
|
|
|
5159
5154
|
"aria-label": isListening ? 'Stop voice input' : 'Start voice input',
|
|
5160
5155
|
disabled: disabled || effectiveSubmitting,
|
|
5161
5156
|
type: "button"
|
|
5162
|
-
})
|
|
5157
|
+
})]
|
|
5163
5158
|
}), jsxRuntime.jsx(CircularActionIconButton, {
|
|
5164
5159
|
variant: "secondary",
|
|
5165
5160
|
size: "medium",
|
|
@@ -5184,6 +5179,7 @@ var AgentInput = function AgentInput(_a) {
|
|
|
5184
5179
|
"aria-atomic": "true",
|
|
5185
5180
|
children: jsxRuntime.jsx(Typography, {
|
|
5186
5181
|
variant: "small",
|
|
5182
|
+
color: isStatusError ? 'error' : 'subdued',
|
|
5187
5183
|
children: resolvedStatus
|
|
5188
5184
|
})
|
|
5189
5185
|
})
|
|
@@ -5198,7 +5194,7 @@ var AgentInput = function AgentInput(_a) {
|
|
|
5198
5194
|
})]
|
|
5199
5195
|
});
|
|
5200
5196
|
};
|
|
5201
|
-
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;
|
|
5197
|
+
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;
|
|
5202
5198
|
|
|
5203
5199
|
var semantic$9 = tokensData.semantic,
|
|
5204
5200
|
base$7 = tokensData.base;
|