@common-origin/design-system 2.8.2 → 2.10.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/components/molecules/Modal/Modal.d.ts +65 -0
- package/dist/components/molecules/Modal/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/index.esm.js +560 -354
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +560 -353
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -103,7 +103,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
103
103
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
var base$
|
|
106
|
+
var base$d = {
|
|
107
107
|
border: {
|
|
108
108
|
radius: {
|
|
109
109
|
"1": "0.125rem",
|
|
@@ -755,7 +755,7 @@ var component$3 = {
|
|
|
755
755
|
},
|
|
756
756
|
$ref: "./component/index.json"
|
|
757
757
|
};
|
|
758
|
-
var semantic$
|
|
758
|
+
var semantic$k = {
|
|
759
759
|
elevation: {
|
|
760
760
|
none: "none",
|
|
761
761
|
inset: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",
|
|
@@ -959,44 +959,44 @@ var semantic$j = {
|
|
|
959
959
|
$ref: "./semantic/index.json"
|
|
960
960
|
};
|
|
961
961
|
var tokensData = {
|
|
962
|
-
base: base$
|
|
962
|
+
base: base$d,
|
|
963
963
|
component: component$3,
|
|
964
|
-
semantic: semantic$
|
|
964
|
+
semantic: semantic$k
|
|
965
965
|
};
|
|
966
966
|
|
|
967
967
|
// Destructure tokens
|
|
968
|
-
var semantic$
|
|
969
|
-
var color$a = semantic$
|
|
970
|
-
size$1 = semantic$
|
|
971
|
-
border$a = semantic$
|
|
972
|
-
var radius$
|
|
968
|
+
var semantic$j = tokensData.semantic;
|
|
969
|
+
var color$a = semantic$j.color,
|
|
970
|
+
size$1 = semantic$j.size,
|
|
971
|
+
border$a = semantic$j.border;
|
|
972
|
+
var radius$5 = border$a.radius;
|
|
973
973
|
var AvatarContainer = styled.div.withConfig({
|
|
974
974
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
975
975
|
return !prop.startsWith('$');
|
|
976
976
|
},
|
|
977
977
|
displayName: "Avatar__AvatarContainer",
|
|
978
978
|
componentId: "sc-ezn4ax-0"
|
|
979
|
-
})(templateObject_1$
|
|
979
|
+
})(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n flex-shrink: 0;\n"], ["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n flex-shrink: 0;\n"])), function (_a) {
|
|
980
980
|
var $size = _a.$size;
|
|
981
981
|
return size$1.avatar[$size];
|
|
982
982
|
}, function (_a) {
|
|
983
983
|
var $size = _a.$size;
|
|
984
984
|
return size$1.avatar[$size];
|
|
985
|
-
}, radius$
|
|
985
|
+
}, radius$5.circle, color$a.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$
|
|
992
|
+
})(templateObject_2$v || (templateObject_2$v = __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('$');
|
|
996
996
|
},
|
|
997
997
|
displayName: "Avatar__AvatarInitials",
|
|
998
998
|
componentId: "sc-ezn4ax-2"
|
|
999
|
-
})(templateObject_3$
|
|
999
|
+
})(templateObject_3$s || (templateObject_3$s = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: 1;\n text-transform: uppercase;\n user-select: none;\n"], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: 1;\n text-transform: uppercase;\n user-select: none;\n"
|
|
1000
1000
|
// Helper function to get initials from name
|
|
1001
1001
|
])), tokensData.base.fontFamily.body, tokensData.base.fontWeight[3], function (_a) {
|
|
1002
1002
|
var $size = _a.$size;
|
|
@@ -1062,7 +1062,7 @@ var Avatar = function Avatar(_a) {
|
|
|
1062
1062
|
})
|
|
1063
1063
|
}));
|
|
1064
1064
|
};
|
|
1065
|
-
var templateObject_1$
|
|
1065
|
+
var templateObject_1$K, templateObject_2$v, templateObject_3$s;
|
|
1066
1066
|
|
|
1067
1067
|
var _a$8 = tokensData.semantic,
|
|
1068
1068
|
typography$5 = _a$8.typography,
|
|
@@ -1129,7 +1129,7 @@ var StyledTypography = styled.span.withConfig({
|
|
|
1129
1129
|
},
|
|
1130
1130
|
displayName: "Typography__StyledTypography",
|
|
1131
1131
|
componentId: "sc-17mqo4k-0"
|
|
1132
|
-
})(templateObject_1$
|
|
1132
|
+
})(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n ", "\n color: ", ";\n margin: 0;\n \n /* Ensure proper line height for readability */\n ", "\n"], ["\n ", "\n color: ", ";\n margin: 0;\n \n /* Ensure proper line height for readability */\n ", "\n"
|
|
1133
1133
|
/**
|
|
1134
1134
|
* Typography is an atomic component for rendering text with semantic meaning and consistent styling.
|
|
1135
1135
|
*
|
|
@@ -1197,24 +1197,24 @@ var Typography = function Typography(_a) {
|
|
|
1197
1197
|
children: children
|
|
1198
1198
|
});
|
|
1199
1199
|
};
|
|
1200
|
-
var templateObject_1$
|
|
1200
|
+
var templateObject_1$J;
|
|
1201
1201
|
|
|
1202
|
-
var semantic$
|
|
1203
|
-
var color$8 = semantic$
|
|
1204
|
-
border$9 = semantic$
|
|
1205
|
-
var radius$
|
|
1206
|
-
var scaleIn$
|
|
1202
|
+
var semantic$i = tokensData.semantic;
|
|
1203
|
+
var color$8 = semantic$i.color,
|
|
1204
|
+
border$9 = semantic$i.border;
|
|
1205
|
+
var radius$4 = border$9.radius;
|
|
1206
|
+
var scaleIn$2 = styled.keyframes(templateObject_1$I || (templateObject_1$I = __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",
|
|
1209
1209
|
componentId: "sc-tjz4pp-0"
|
|
1210
|
-
})(templateObject_2$
|
|
1210
|
+
})(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n flex-shrink: 0;\n"], ["\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n flex-shrink: 0;\n"])));
|
|
1211
1211
|
var BadgeIndicator = styled.span.withConfig({
|
|
1212
1212
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1213
1213
|
return !prop.startsWith('$');
|
|
1214
1214
|
},
|
|
1215
1215
|
displayName: "Badge__BadgeIndicator",
|
|
1216
1216
|
componentId: "sc-tjz4pp-1"
|
|
1217
|
-
})(templateObject_3$
|
|
1217
|
+
})(templateObject_3$r || (templateObject_3$r = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n display: ", ";\n align-items: center;\n justify-content: center;\n min-width: ", ";\n height: ", ";\n padding: ", ";\n border-radius: ", ";\n line-height: 1;\n white-space: nowrap;\n box-shadow: 0 0 0 2px ", ";\n animation: ", " 0.2s ease-out;\n \n ", "\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n display: ", ";\n align-items: center;\n justify-content: center;\n min-width: ", ";\n height: ", ";\n padding: ", ";\n border-radius: ", ";\n line-height: 1;\n white-space: nowrap;\n box-shadow: 0 0 0 2px ", ";\n animation: ", " 0.2s ease-out;\n \n ", "\n"])), function (props) {
|
|
1218
1218
|
return props.$isVisible ? 'flex' : 'none';
|
|
1219
1219
|
}, function (props) {
|
|
1220
1220
|
return props.$isDot ? '8px' : '16px';
|
|
@@ -1222,7 +1222,7 @@ 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$8.background["default"], scaleIn$2, function (props) {
|
|
1226
1226
|
switch (props.$variant) {
|
|
1227
1227
|
case 'primary':
|
|
1228
1228
|
return "\n background-color: ".concat(color$8.background.interactive, ";\n color: ").concat(color$8.text.inverse, ";\n ");
|
|
@@ -1239,7 +1239,7 @@ var BadgeIndicator = styled.span.withConfig({
|
|
|
1239
1239
|
var ScreenReaderOnly$1 = styled.span.withConfig({
|
|
1240
1240
|
displayName: "Badge__ScreenReaderOnly",
|
|
1241
1241
|
componentId: "sc-tjz4pp-2"
|
|
1242
|
-
})(templateObject_4$
|
|
1242
|
+
})(templateObject_4$m || (templateObject_4$m = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n"])));
|
|
1243
1243
|
var Badge = function Badge(_a) {
|
|
1244
1244
|
var children = _a.children,
|
|
1245
1245
|
_b = _a.count,
|
|
@@ -1275,7 +1275,7 @@ var Badge = function Badge(_a) {
|
|
|
1275
1275
|
})]
|
|
1276
1276
|
});
|
|
1277
1277
|
};
|
|
1278
|
-
var templateObject_1$
|
|
1278
|
+
var templateObject_1$I, templateObject_2$u, templateObject_3$r, templateObject_4$m;
|
|
1279
1279
|
|
|
1280
1280
|
var StyledBox = styled.div.withConfig({
|
|
1281
1281
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -1286,23 +1286,23 @@ var StyledBox = styled.div.withConfig({
|
|
|
1286
1286
|
})(templateObject_49 || (templateObject_49 = __makeTemplateObject(["\n ", "\n \n // Flexbox\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Margin\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Padding\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Size\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Position\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Borders\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Background & Color\n ", "\n ", "\n \n // Elevation (shadow)\n ", "\n \n // Cursor\n ", "\n \n // Transition\n ", "\n \n // Hover states\n ", "\n \n // Overflow\n ", "\n ", "\n ", "\n"], ["\n ", "\n \n // Flexbox\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Margin\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Padding\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Size\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Position\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Borders\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n \n // Background & Color\n ", "\n ", "\n \n // Elevation (shadow)\n ", "\n \n // Cursor\n ", "\n \n // Transition\n ", "\n \n // Hover states\n ", "\n \n // Overflow\n ", "\n ", "\n ", "\n"
|
|
1287
1287
|
// Transform component that maps clean props to $-prefixed props for styled-components
|
|
1288
1288
|
])), function (props) {
|
|
1289
|
-
return props.$display && styled.css(templateObject_1$
|
|
1289
|
+
return props.$display && styled.css(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
|
|
1290
1290
|
}, function (props) {
|
|
1291
|
-
return props.$flexDirection && styled.css(templateObject_2$
|
|
1291
|
+
return props.$flexDirection && styled.css(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
|
|
1292
1292
|
}, function (props) {
|
|
1293
|
-
return props.$justifyContent && styled.css(templateObject_3$
|
|
1293
|
+
return props.$justifyContent && styled.css(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
|
|
1294
1294
|
}, function (props) {
|
|
1295
|
-
return props.$alignItems && styled.css(templateObject_4$
|
|
1295
|
+
return props.$alignItems && styled.css(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["align-items: ", ";"], ["align-items: ", ";"])), props.$alignItems);
|
|
1296
1296
|
}, function (props) {
|
|
1297
|
-
return props.$flexWrap && styled.css(templateObject_5$
|
|
1297
|
+
return props.$flexWrap && styled.css(templateObject_5$g || (templateObject_5$g = __makeTemplateObject(["flex-wrap: ", ";"], ["flex-wrap: ", ";"])), props.$flexWrap);
|
|
1298
1298
|
}, function (props) {
|
|
1299
1299
|
return props.$gap && styled.css(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["gap: ", ";"], ["gap: ", ";"])), tokensData.semantic.spacing.layout[props.$gap]);
|
|
1300
1300
|
}, function (props) {
|
|
1301
|
-
return props.$m && styled.css(templateObject_7$
|
|
1301
|
+
return props.$m && styled.css(templateObject_7$b || (templateObject_7$b = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), tokensData.semantic.spacing.layout[props.$m]);
|
|
1302
1302
|
}, function (props) {
|
|
1303
|
-
return props.$mt && styled.css(templateObject_8$
|
|
1303
|
+
return props.$mt && styled.css(templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject(["margin-top: ", ";"], ["margin-top: ", ";"])), tokensData.semantic.spacing.layout[props.$mt]);
|
|
1304
1304
|
}, function (props) {
|
|
1305
|
-
return props.$mr && styled.css(templateObject_9$
|
|
1305
|
+
return props.$mr && styled.css(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["margin-right: ", ";"], ["margin-right: ", ";"])), tokensData.semantic.spacing.layout[props.$mr]);
|
|
1306
1306
|
}, function (props) {
|
|
1307
1307
|
return props.$mb && styled.css(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["margin-bottom: ", ";"], ["margin-bottom: ", ";"])), tokensData.semantic.spacing.layout[props.$mb]);
|
|
1308
1308
|
}, function (props) {
|
|
@@ -1510,7 +1510,7 @@ var BoxTransform = function BoxTransform(props) {
|
|
|
1510
1510
|
}));
|
|
1511
1511
|
};
|
|
1512
1512
|
var Box = BoxTransform;
|
|
1513
|
-
var templateObject_1$
|
|
1513
|
+
var templateObject_1$H, templateObject_2$t, templateObject_3$q, templateObject_4$l, templateObject_5$g, templateObject_6$d, templateObject_7$b, templateObject_8$7, templateObject_9$5, 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",
|
|
@@ -2230,7 +2230,7 @@ var IconStyled = styled.span.withConfig({
|
|
|
2230
2230
|
},
|
|
2231
2231
|
displayName: "Icon__IconStyled",
|
|
2232
2232
|
componentId: "sc-1105czq-0"
|
|
2233
|
-
})(templateObject_1$
|
|
2233
|
+
})(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n \n svg {\n width: 100%;\n height: 100%;\n display: block;\n }\n \n /* Use semantic icon colors */\n color: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n \n svg {\n width: 100%;\n height: 100%;\n display: block;\n }\n \n /* Use semantic icon colors */\n color: ", ";\n"])), function (_a) {
|
|
2234
2234
|
var $size = _a.$size;
|
|
2235
2235
|
return tokensData.semantic.size.icon[$size];
|
|
2236
2236
|
}, function (_a) {
|
|
@@ -2296,12 +2296,12 @@ var Icon = function Icon(_a) {
|
|
|
2296
2296
|
})
|
|
2297
2297
|
});
|
|
2298
2298
|
};
|
|
2299
|
-
var templateObject_1$
|
|
2299
|
+
var templateObject_1$G;
|
|
2300
2300
|
|
|
2301
2301
|
var button$1 = tokensData.component.button,
|
|
2302
|
-
semantic$
|
|
2302
|
+
semantic$h = tokensData.semantic;
|
|
2303
2303
|
// Base styles shared between button and link
|
|
2304
|
-
var baseButtonStyles = "\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ".concat(tokensData.semantic.spacing.layout.xs, ";\n height: max-content;\n cursor: pointer;\n border: none;\n text-decoration: none;\n transition: ").concat(semantic$
|
|
2304
|
+
var baseButtonStyles = "\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ".concat(tokensData.semantic.spacing.layout.xs, ";\n height: max-content;\n cursor: pointer;\n border: none;\n text-decoration: none;\n transition: ").concat(semantic$h.motion.hover, ";\n white-space: nowrap;\n user-select: none;\n \n &:focus {\n outline: ").concat(button$1.focus.outline, ";\n outline-offset: ").concat(button$1.focus.outlineOffset, ";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n");
|
|
2305
2305
|
// Dynamic variant styles using component tokens
|
|
2306
2306
|
var getVariantStyles$1 = function getVariantStyles(_a) {
|
|
2307
2307
|
var $variant = _a.$variant;
|
|
@@ -2370,14 +2370,14 @@ var StyledButton = styled.button.withConfig({
|
|
|
2370
2370
|
},
|
|
2371
2371
|
displayName: "Button__StyledButton",
|
|
2372
2372
|
componentId: "sc-1eiuum9-0"
|
|
2373
|
-
})(templateObject_1$
|
|
2373
|
+
})(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"])), baseButtonStyles, button$1.primary.borderRadius, getVariantStyles$1, getSizeStyles$1);
|
|
2374
2374
|
var StyledLink = styled.a.withConfig({
|
|
2375
2375
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2376
2376
|
return !prop.startsWith('$');
|
|
2377
2377
|
},
|
|
2378
2378
|
displayName: "Button__StyledLink",
|
|
2379
2379
|
componentId: "sc-1eiuum9-1"
|
|
2380
|
-
})(templateObject_2$
|
|
2380
|
+
})(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"
|
|
2381
2381
|
// Helper function to get icon size based on button size
|
|
2382
2382
|
])), baseButtonStyles, button$1.primary.borderRadius, getVariantStyles$1, getSizeStyles$1);
|
|
2383
2383
|
// Helper function to get icon size based on button size
|
|
@@ -2478,24 +2478,24 @@ var Button = function Button(_a) {
|
|
|
2478
2478
|
children: renderButtonContent(children, iconName, size)
|
|
2479
2479
|
}));
|
|
2480
2480
|
};
|
|
2481
|
-
var templateObject_1$
|
|
2481
|
+
var templateObject_1$F, templateObject_2$s;
|
|
2482
2482
|
|
|
2483
|
-
var semantic$
|
|
2484
|
-
base$
|
|
2485
|
-
var color$7 = semantic$
|
|
2486
|
-
typography$4 = semantic$
|
|
2487
|
-
border$8 = semantic$
|
|
2488
|
-
spacing$7 = semantic$
|
|
2483
|
+
var semantic$g = tokensData.semantic,
|
|
2484
|
+
base$c = tokensData.base;
|
|
2485
|
+
var color$7 = semantic$g.color,
|
|
2486
|
+
typography$4 = semantic$g.typography,
|
|
2487
|
+
border$8 = semantic$g.border,
|
|
2488
|
+
spacing$7 = semantic$g.spacing;
|
|
2489
2489
|
var category = color$7.category;
|
|
2490
|
-
var radius$
|
|
2491
|
-
var layout$
|
|
2490
|
+
var radius$3 = border$8.radius;
|
|
2491
|
+
var layout$4 = spacing$7.layout;
|
|
2492
2492
|
var StyledCategoryBadge = styled.span.withConfig({
|
|
2493
2493
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2494
2494
|
return !prop.startsWith('$');
|
|
2495
2495
|
},
|
|
2496
2496
|
displayName: "CategoryBadge__StyledCategoryBadge",
|
|
2497
2497
|
componentId: "sc-17aslpn-0"
|
|
2498
|
-
})(templateObject_1$
|
|
2498
|
+
})(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n font-weight: ", ";\n white-space: nowrap;\n user-select: none;\n border-style: solid;\n border-width: ", ";\n \n /* Size styles */\n height: ", ";\n padding: ", ";\n font: ", ";\n gap: ", ";\n \n /* Variant + Color styles */\n background-color: ", ";\n \n color: ", ";\n \n border-color: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n font-weight: ", ";\n white-space: nowrap;\n user-select: none;\n border-style: solid;\n border-width: ", ";\n \n /* Size styles */\n height: ", ";\n padding: ", ";\n font: ", ";\n gap: ", ";\n \n /* Variant + Color styles */\n background-color: ", ";\n \n color: ", ";\n \n border-color: ", ";\n"
|
|
2499
2499
|
/**
|
|
2500
2500
|
* CategoryBadge component for displaying transaction categories
|
|
2501
2501
|
*
|
|
@@ -2513,16 +2513,16 @@ var StyledCategoryBadge = styled.span.withConfig({
|
|
|
2513
2513
|
* Travel
|
|
2514
2514
|
* </CategoryBadge>
|
|
2515
2515
|
* ```
|
|
2516
|
-
*/])), radius$
|
|
2516
|
+
*/])), radius$3.circle, base$c.fontWeight[3], base$c.border.width[1], function (_a) {
|
|
2517
2517
|
var $size = _a.$size;
|
|
2518
2518
|
return $size === 'small' ? '24px' : '32px';
|
|
2519
2519
|
}, function (_a) {
|
|
2520
2520
|
var $size = _a.$size;
|
|
2521
|
-
return $size === 'small' ? "".concat(layout$
|
|
2521
|
+
return $size === 'small' ? "".concat(layout$4.xs, " ").concat(layout$4.sm) : "".concat(layout$4.sm, " ").concat(layout$4.md);
|
|
2522
2522
|
}, function (_a) {
|
|
2523
2523
|
var $size = _a.$size;
|
|
2524
2524
|
return $size === 'small' ? typography$4.caption : typography$4.small;
|
|
2525
|
-
}, layout$
|
|
2525
|
+
}, layout$4.xs, function (_a) {
|
|
2526
2526
|
var $color = _a.$color,
|
|
2527
2527
|
$variant = _a.$variant;
|
|
2528
2528
|
if ($variant === 'filled') {
|
|
@@ -2593,7 +2593,7 @@ var CategoryBadge = function CategoryBadge(_a) {
|
|
|
2593
2593
|
});
|
|
2594
2594
|
};
|
|
2595
2595
|
CategoryBadge.displayName = 'CategoryBadge';
|
|
2596
|
-
var templateObject_1$
|
|
2596
|
+
var templateObject_1$E;
|
|
2597
2597
|
|
|
2598
2598
|
var chip = tokensData.component.chip;
|
|
2599
2599
|
// Helper function to get variant styles matching Button's approach
|
|
@@ -2637,7 +2637,7 @@ var StyledChip = styled.span.withConfig({
|
|
|
2637
2637
|
},
|
|
2638
2638
|
displayName: "ChipBase__StyledChip",
|
|
2639
2639
|
componentId: "sc-moa6zc-0"
|
|
2640
|
-
})(templateObject_1$
|
|
2640
|
+
})(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: ", ";\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: ", ";\n cursor: ", ";\n \n ", "\n ", "\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: ", ";\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: ", ";\n cursor: ", ";\n \n ", "\n ", "\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"
|
|
2641
2641
|
// Icon container for selected indicator or leading icons
|
|
2642
2642
|
])), chip["default"].borderRadius, tokensData.semantic.motion.hover, function (props) {
|
|
2643
2643
|
return props.$disabled ? 'not-allowed' : props.$clickable ? 'pointer' : 'default';
|
|
@@ -2646,7 +2646,7 @@ var StyledChip = styled.span.withConfig({
|
|
|
2646
2646
|
var IconContainer = styled.span.withConfig({
|
|
2647
2647
|
displayName: "ChipBase__IconContainer",
|
|
2648
2648
|
componentId: "sc-moa6zc-1"
|
|
2649
|
-
})(templateObject_2$
|
|
2649
|
+
})(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n margin-right: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n margin-right: ", ";\n"
|
|
2650
2650
|
// Close button for dismissible chips
|
|
2651
2651
|
])), tokensData.semantic.spacing.layout.xs);
|
|
2652
2652
|
// Close button for dismissible chips
|
|
@@ -2656,10 +2656,10 @@ var CloseButton = styled.button.withConfig({
|
|
|
2656
2656
|
},
|
|
2657
2657
|
displayName: "ChipBase__CloseButton",
|
|
2658
2658
|
componentId: "sc-moa6zc-2"
|
|
2659
|
-
})(templateObject_3$
|
|
2659
|
+
})(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n padding: 2px;\n border-radius: ", ";\n cursor: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.1);\n }\n \n &:active:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.15);\n }\n \n &:disabled {\n color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n border-radius: ", ";\n }\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n padding: 2px;\n border-radius: ", ";\n cursor: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.1);\n }\n \n &:active:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.15);\n }\n \n &:disabled {\n color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n border-radius: ", ";\n }\n"])), tokensData.semantic.spacing.layout.sm, tokensData.semantic.border.radius.xs, function (props) {
|
|
2660
2660
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
2661
2661
|
}, tokensData.semantic.motion.hover, tokensData.semantic.color.text.disabled, chip.focus.outline, chip.focus.outlineOffset, chip["default"].borderRadius);
|
|
2662
|
-
var templateObject_1$
|
|
2662
|
+
var templateObject_1$D, templateObject_2$r, templateObject_3$p;
|
|
2663
2663
|
|
|
2664
2664
|
/**
|
|
2665
2665
|
* Chip - Compact element for displaying tags, categories, and labels
|
|
@@ -2909,7 +2909,7 @@ var spacing$6 = tokensData.semantic.spacing;
|
|
|
2909
2909
|
var StyledContainer$2 = styled.div.withConfig({
|
|
2910
2910
|
displayName: "Container__StyledContainer",
|
|
2911
2911
|
componentId: "sc-17dbj6n-0"
|
|
2912
|
-
})(templateObject_1$
|
|
2912
|
+
})(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n width: 100%;\n margin-left: auto;\n margin-right: auto;\n padding-left: ", ";\n padding-right: ", ";\n \n ", " {\n max-width: 640px;\n }\n \n ", " {\n max-width: 768px;\n }\n \n ", " {\n max-width: 1024px;\n }\n \n ", " {\n max-width: 1280px;\n }\n \n ", " {\n max-width: 1536px;\n }\n"], ["\n width: 100%;\n margin-left: auto;\n margin-right: auto;\n padding-left: ", ";\n padding-right: ", ";\n \n ", " {\n max-width: 640px;\n }\n \n ", " {\n max-width: 768px;\n }\n \n ", " {\n max-width: 1024px;\n }\n \n ", " {\n max-width: 1280px;\n }\n \n ", " {\n max-width: 1536px;\n }\n"])), spacing$6.layout['2xl'], spacing$6.layout['2xl'], media$1.sm, media$1.md, media$1.lg, media$1.xl, media$1['2xl']);
|
|
2913
2913
|
var Container$1 = function Container(_a) {
|
|
2914
2914
|
var children = _a.children,
|
|
2915
2915
|
props = __rest(_a, ["children"]);
|
|
@@ -2917,25 +2917,25 @@ var Container$1 = function Container(_a) {
|
|
|
2917
2917
|
children: children
|
|
2918
2918
|
}));
|
|
2919
2919
|
};
|
|
2920
|
-
var templateObject_1$
|
|
2920
|
+
var templateObject_1$C;
|
|
2921
2921
|
|
|
2922
|
-
var base$
|
|
2922
|
+
var base$b = tokensData.base;
|
|
2923
2923
|
var PictureWrapper = styled.div.withConfig({
|
|
2924
2924
|
displayName: "Picture__PictureWrapper",
|
|
2925
2925
|
componentId: "sc-11d9tei-0"
|
|
2926
|
-
})(templateObject_1$
|
|
2926
|
+
})(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n margin: 0 auto;\n \n ", " {\n margin-left: 0;\n margin-right: 0;\n }\n"], ["\n margin: 0 auto;\n \n ", " {\n margin-left: 0;\n margin-right: 0;\n }\n"])), media$1.sm);
|
|
2927
2927
|
var ImageLink = styled.a.withConfig({
|
|
2928
2928
|
displayName: "Picture__ImageLink",
|
|
2929
2929
|
componentId: "sc-11d9tei-1"
|
|
2930
|
-
})(templateObject_2$
|
|
2930
|
+
})(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n display: block;\n cursor: pointer;\n transition: opacity ", " ", ";\n \n &:hover {\n opacity: 0.8;\n }\n"], ["\n display: block;\n cursor: pointer;\n transition: opacity ", " ", ";\n \n &:hover {\n opacity: 0.8;\n }\n"])), base$b.duration.normal, base$b.easing.easeInOut);
|
|
2931
2931
|
var ImageButton = styled.button.withConfig({
|
|
2932
2932
|
displayName: "Picture__ImageButton",
|
|
2933
2933
|
componentId: "sc-11d9tei-2"
|
|
2934
|
-
})(templateObject_3$
|
|
2934
|
+
})(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n border: none;\n background: none;\n padding: 0;\n cursor: pointer;\n display: block;\n width: 100%;\n transition: opacity ", " ", ";\n \n &:hover {\n opacity: 0.8;\n }\n"], ["\n border: none;\n background: none;\n padding: 0;\n cursor: pointer;\n display: block;\n width: 100%;\n transition: opacity ", " ", ";\n \n &:hover {\n opacity: 0.8;\n }\n"])), base$b.duration.normal, base$b.easing.easeInOut);
|
|
2935
2935
|
var StyledImage = styled.img.withConfig({
|
|
2936
2936
|
displayName: "Picture__StyledImage",
|
|
2937
2937
|
componentId: "sc-11d9tei-3"
|
|
2938
|
-
})(templateObject_4$
|
|
2938
|
+
})(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["\n width: 100%;\n height: auto;\n border-radius: ", ";\n display: block;\n"], ["\n width: 100%;\n height: auto;\n border-radius: ", ";\n display: block;\n"])), base$b.border.radius[2]);
|
|
2939
2939
|
var Picture = function Picture(_a) {
|
|
2940
2940
|
var title = _a.title,
|
|
2941
2941
|
src = _a.src,
|
|
@@ -2965,7 +2965,7 @@ var Picture = function Picture(_a) {
|
|
|
2965
2965
|
}) : image
|
|
2966
2966
|
});
|
|
2967
2967
|
};
|
|
2968
|
-
var templateObject_1$
|
|
2968
|
+
var templateObject_1$B, templateObject_2$q, templateObject_3$o, templateObject_4$k;
|
|
2969
2969
|
|
|
2970
2970
|
var _a$7 = tokensData.semantic,
|
|
2971
2971
|
typography$3 = _a$7.typography,
|
|
@@ -2973,7 +2973,7 @@ var _a$7 = tokensData.semantic,
|
|
|
2973
2973
|
var TimeStyled = styled.time.withConfig({
|
|
2974
2974
|
displayName: "DateFormatter__TimeStyled",
|
|
2975
2975
|
componentId: "sc-5464cc-0"
|
|
2976
|
-
})(templateObject_1$
|
|
2976
|
+
})(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"
|
|
2977
2977
|
/**
|
|
2978
2978
|
* Formats a date with smart relative/absolute logic
|
|
2979
2979
|
*/])), typography$3.label, color$6.text.subdued);
|
|
@@ -3022,7 +3022,7 @@ var DateFormatter = function DateFormatter(_a) {
|
|
|
3022
3022
|
children: displayText
|
|
3023
3023
|
});
|
|
3024
3024
|
};
|
|
3025
|
-
var templateObject_1$
|
|
3025
|
+
var templateObject_1$A;
|
|
3026
3026
|
|
|
3027
3027
|
var motion$2 = tokensData.semantic.motion,
|
|
3028
3028
|
_a$6 = tokensData.component,
|
|
@@ -3034,7 +3034,7 @@ var IconButtonStyled = styled.button.withConfig({
|
|
|
3034
3034
|
},
|
|
3035
3035
|
displayName: "IconButton__IconButtonStyled",
|
|
3036
3036
|
componentId: "sc-k8b14t-0"
|
|
3037
|
-
})(templateObject_1$
|
|
3037
|
+
})(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n border: none;\n border-radius: ", ";\n transition: ", ";\n box-sizing: border-box;\n display: ", ";\n justify-content: ", ";\n align-items: ", ";\n height: max-content;\n cursor: pointer;\n position: relative;\n\n /* Size-specific dimensions from component tokens */\n min-width: ", ";\n min-height: ", ";\n padding: ", ";\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n }\n\n &:focus {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n /* High contrast mode support */\n @media (prefers-contrast: high) {\n border: 1px solid;\n }\n\n /* Reduced motion support */\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n"], ["\n background-color: ", ";\n color: ", ";\n border: none;\n border-radius: ", ";\n transition: ", ";\n box-sizing: border-box;\n display: ", ";\n justify-content: ", ";\n align-items: ", ";\n height: max-content;\n cursor: pointer;\n position: relative;\n\n /* Size-specific dimensions from component tokens */\n min-width: ", ";\n min-height: ", ";\n padding: ", ";\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n\n &:active:not(:disabled) {\n background-color: ", ";\n }\n\n &:focus {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n\n /* High contrast mode support */\n @media (prefers-contrast: high) {\n border: 1px solid;\n }\n\n /* Reduced motion support */\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n"])), function (_a) {
|
|
3038
3038
|
var $variant = _a.$variant;
|
|
3039
3039
|
switch ($variant) {
|
|
3040
3040
|
case 'primary':
|
|
@@ -3142,7 +3142,7 @@ var IconButton = function IconButton(_a) {
|
|
|
3142
3142
|
})
|
|
3143
3143
|
}));
|
|
3144
3144
|
};
|
|
3145
|
-
var templateObject_1$
|
|
3145
|
+
var templateObject_1$z;
|
|
3146
3146
|
|
|
3147
3147
|
var StyledWrapper = styled.span.withConfig({
|
|
3148
3148
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -3150,7 +3150,7 @@ var StyledWrapper = styled.span.withConfig({
|
|
|
3150
3150
|
},
|
|
3151
3151
|
displayName: "MoneyDisplay__StyledWrapper",
|
|
3152
3152
|
componentId: "sc-1mddej3-0"
|
|
3153
|
-
})(templateObject_1$
|
|
3153
|
+
})(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n text-align: ", ";\n font-weight: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n text-align: ", ";\n font-weight: ", ";\n"
|
|
3154
3154
|
// Map size to Typography variant
|
|
3155
3155
|
])), function (_a) {
|
|
3156
3156
|
var $align = _a.$align;
|
|
@@ -3253,28 +3253,28 @@ var MoneyDisplay = function MoneyDisplay(_a) {
|
|
|
3253
3253
|
})]
|
|
3254
3254
|
});
|
|
3255
3255
|
};
|
|
3256
|
-
var templateObject_1$
|
|
3256
|
+
var templateObject_1$y;
|
|
3257
3257
|
|
|
3258
3258
|
// Destructure tokens
|
|
3259
|
-
var semantic$
|
|
3260
|
-
var _a$5 = __assign(__assign({}, semantic$
|
|
3259
|
+
var semantic$f = tokensData.semantic;
|
|
3260
|
+
var _a$5 = __assign(__assign({}, semantic$f), {
|
|
3261
3261
|
component: tokensData.component
|
|
3262
3262
|
}),
|
|
3263
3263
|
color$5 = _a$5.color,
|
|
3264
3264
|
border$7 = _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$7.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$
|
|
3275
|
-
return props.$variant === 'horizontal' && styled.css(templateObject_1$
|
|
3274
|
+
})(templateObject_3$n || (templateObject_3$n = __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$2.xs, function (props) {
|
|
3275
|
+
return props.$variant === 'horizontal' && styled.css(templateObject_1$x || (templateObject_1$x = __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
|
-
return props.$variant === 'vertical' && styled.css(templateObject_2$
|
|
3277
|
+
return props.$variant === 'vertical' && styled.css(templateObject_2$p || (templateObject_2$p = __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);
|
|
3278
3278
|
});
|
|
3279
3279
|
var ProgressBarFill = styled.div.withConfig({
|
|
3280
3280
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -3282,7 +3282,7 @@ var ProgressBarFill = styled.div.withConfig({
|
|
|
3282
3282
|
},
|
|
3283
3283
|
displayName: "ProgressBar__ProgressBarFill",
|
|
3284
3284
|
componentId: "sc-1nco33q-1"
|
|
3285
|
-
})(templateObject_7$
|
|
3285
|
+
})(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["\n height: 100%;\n transition: ", ";\n\n ", "\n\n ", "\n\n ", "\n"], ["\n height: 100%;\n transition: ", ";\n\n ", "\n\n ", "\n\n ", "\n"])), motion$1.transition.normal, function (props) {
|
|
3286
3286
|
var backgroundColor;
|
|
3287
3287
|
switch (props.$color) {
|
|
3288
3288
|
case 'success':
|
|
@@ -3296,9 +3296,9 @@ var ProgressBarFill = styled.div.withConfig({
|
|
|
3296
3296
|
backgroundColor = color$5.background.interactive;
|
|
3297
3297
|
break;
|
|
3298
3298
|
}
|
|
3299
|
-
return styled.css(templateObject_4$
|
|
3299
|
+
return styled.css(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundColor);
|
|
3300
3300
|
}, function (props) {
|
|
3301
|
-
return props.$variant === 'horizontal' && styled.css(templateObject_5$
|
|
3301
|
+
return props.$variant === 'horizontal' && styled.css(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n width: ", "%;\n "], ["\n width: ", "%;\n "])), Math.min(100, Math.max(0, props.$value)));
|
|
3302
3302
|
}, function (props) {
|
|
3303
3303
|
return props.$variant === 'vertical' && styled.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)));
|
|
3304
3304
|
});
|
|
@@ -3327,7 +3327,7 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
3327
3327
|
})
|
|
3328
3328
|
});
|
|
3329
3329
|
};
|
|
3330
|
-
var templateObject_1$
|
|
3330
|
+
var templateObject_1$x, templateObject_2$p, templateObject_3$n, templateObject_4$j, templateObject_5$f, templateObject_6$c, templateObject_7$a;
|
|
3331
3331
|
|
|
3332
3332
|
// Destructure tokens for cleaner access
|
|
3333
3333
|
var separatorTokens = tokensData.component.separator;
|
|
@@ -3338,7 +3338,7 @@ var StyledDivider = styled.div.withConfig({
|
|
|
3338
3338
|
},
|
|
3339
3339
|
displayName: "Divider__StyledDivider",
|
|
3340
3340
|
componentId: "sc-1l0c8ja-0"
|
|
3341
|
-
})(templateObject_1$
|
|
3341
|
+
})(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n border: none;\n \n /* Apply orientation */\n ", "\n \n /* Apply variant styles */\n ", "\n \n /* Apply size styles (spacing) */\n ", "\n"], ["\n border: none;\n \n /* Apply orientation */\n ", "\n \n /* Apply variant styles */\n ", "\n \n /* Apply size styles (spacing) */\n ", "\n"
|
|
3342
3342
|
/**
|
|
3343
3343
|
* Divider is an atomic component that provides visual separation between content sections.
|
|
3344
3344
|
*
|
|
@@ -3451,7 +3451,7 @@ var Divider = function Divider(_a) {
|
|
|
3451
3451
|
"aria-orientation": orientation
|
|
3452
3452
|
});
|
|
3453
3453
|
};
|
|
3454
|
-
var templateObject_1$
|
|
3454
|
+
var templateObject_1$w;
|
|
3455
3455
|
|
|
3456
3456
|
var StyledStack = styled.div.withConfig({
|
|
3457
3457
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -3459,7 +3459,7 @@ var StyledStack = styled.div.withConfig({
|
|
|
3459
3459
|
},
|
|
3460
3460
|
displayName: "Stack__StyledStack",
|
|
3461
3461
|
componentId: "sc-1ehkxgy-0"
|
|
3462
|
-
})(templateObject_1$
|
|
3462
|
+
})(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n display: flex;\n flex-direction: var(--stack-direction);\n align-items: var(--stack-align-items);\n justify-content: var(--stack-justify-content);\n gap: var(--stack-gap);\n flex-wrap: var(--stack-wrap);\n"], ["\n display: flex;\n flex-direction: var(--stack-direction);\n align-items: var(--stack-align-items);\n justify-content: var(--stack-justify-content);\n gap: var(--stack-gap);\n flex-wrap: var(--stack-wrap);\n"
|
|
3463
3463
|
// Helper function to convert gap prop to CSS value
|
|
3464
3464
|
])));
|
|
3465
3465
|
// Helper function to convert gap prop to CSS value
|
|
@@ -3498,15 +3498,15 @@ var Stack = function Stack(_a) {
|
|
|
3498
3498
|
children: children
|
|
3499
3499
|
});
|
|
3500
3500
|
};
|
|
3501
|
-
var templateObject_1$
|
|
3501
|
+
var templateObject_1$v;
|
|
3502
3502
|
|
|
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
|
-
var scaleIn = styled.keyframes(templateObject_1$
|
|
3509
|
+
var scaleIn$1 = styled.keyframes(templateObject_1$u || (templateObject_1$u = __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"])));
|
|
3510
3510
|
var getStatusConfig = function getStatusConfig(status) {
|
|
3511
3511
|
var configs = {
|
|
3512
3512
|
pending: {
|
|
@@ -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$
|
|
3576
|
+
})(templateObject_2$o || (templateObject_2$o = __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$1, 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 ");
|
|
@@ -3585,7 +3585,7 @@ var StyledStatusBadge = styled.span.withConfig({
|
|
|
3585
3585
|
var ScreenReaderOnly = styled.span.withConfig({
|
|
3586
3586
|
displayName: "StatusBadge__ScreenReaderOnly",
|
|
3587
3587
|
componentId: "sc-1paksgb-1"
|
|
3588
|
-
})(templateObject_3$
|
|
3588
|
+
})(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n"
|
|
3589
3589
|
/**
|
|
3590
3590
|
* StatusBadge component for displaying transaction or task status
|
|
3591
3591
|
*
|
|
@@ -3665,29 +3665,29 @@ var StatusBadge = function StatusBadge(_a) {
|
|
|
3665
3665
|
});
|
|
3666
3666
|
};
|
|
3667
3667
|
StatusBadge.displayName = 'StatusBadge';
|
|
3668
|
-
var templateObject_1$
|
|
3668
|
+
var templateObject_1$u, templateObject_2$o, templateObject_3$m;
|
|
3669
3669
|
|
|
3670
|
-
var semantic$
|
|
3671
|
-
var color$4 = semantic$
|
|
3672
|
-
spacing$4 = semantic$
|
|
3673
|
-
border$6 = semantic$
|
|
3674
|
-
typography$1 = semantic$
|
|
3675
|
-
size = semantic$
|
|
3676
|
-
var layout$
|
|
3677
|
-
var radius
|
|
3670
|
+
var semantic$e = tokensData.semantic;
|
|
3671
|
+
var color$4 = semantic$e.color,
|
|
3672
|
+
spacing$4 = semantic$e.spacing,
|
|
3673
|
+
border$6 = semantic$e.border,
|
|
3674
|
+
typography$1 = semantic$e.typography,
|
|
3675
|
+
size = semantic$e.size;
|
|
3676
|
+
var layout$3 = spacing$4.layout;
|
|
3677
|
+
var radius = border$6.radius;
|
|
3678
3678
|
var StyledTag = styled.span.withConfig({
|
|
3679
3679
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
3680
3680
|
return !prop.startsWith('$');
|
|
3681
3681
|
},
|
|
3682
3682
|
displayName: "Tag__StyledTag",
|
|
3683
3683
|
componentId: "sc-lzfmti-0"
|
|
3684
|
-
})(templateObject_1$
|
|
3684
|
+
})(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n user-select: none;\n white-space: nowrap;\n max-height: ", ";\n \n /* Size - fixed to small */\n padding: ", " ", ";\n font: ", ";\n \n /* Variant styles */\n background-color: ", ";\n \n color: ", ";\n \n border: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ", ";\n user-select: none;\n white-space: nowrap;\n max-height: ", ";\n \n /* Size - fixed to small */\n padding: ", " ", ";\n font: ", ";\n \n /* Variant styles */\n background-color: ", ";\n \n color: ", ";\n \n border: ", ";\n"
|
|
3685
3685
|
/**
|
|
3686
3686
|
* Tag component for categorizing and labeling content
|
|
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$3.xs, layout$3.sm, typography$1.button3, function (_a) {
|
|
3691
3691
|
var $variant = _a.$variant;
|
|
3692
3692
|
switch ($variant) {
|
|
3693
3693
|
case 'interactive':
|
|
@@ -3764,61 +3764,45 @@ var Tag = function Tag(_a) {
|
|
|
3764
3764
|
children: children
|
|
3765
3765
|
}));
|
|
3766
3766
|
};
|
|
3767
|
-
var templateObject_1$
|
|
3767
|
+
var templateObject_1$t;
|
|
3768
3768
|
|
|
3769
3769
|
// Destructure tokens for cleaner access
|
|
3770
|
-
var semantic$
|
|
3771
|
-
var
|
|
3772
|
-
|
|
3773
|
-
border$5 = semantic$c.border;
|
|
3774
|
-
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);
|
|
3770
|
+
var semantic$d = tokensData.semantic;
|
|
3771
|
+
var spacing$3 = semantic$d.spacing;
|
|
3772
|
+
var layout$2 = spacing$3.layout;
|
|
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$s || (templateObject_1$s = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), layout$2.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$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])), layout$2.xs);
|
|
3781
|
+
styled.div.withConfig({
|
|
3795
3782
|
displayName: "AccountCard__StyledActions",
|
|
3796
|
-
componentId: "sc-1erp7zn-
|
|
3797
|
-
})(
|
|
3783
|
+
componentId: "sc-1erp7zn-2"
|
|
3784
|
+
})(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"], ["\n display: flex;\n gap: ", ";\n margin-top: auto;\n"])), layout$2.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$i || (templateObject_4$i = __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$e || (templateObject_5$e = __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$2.none, layout$2.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,42 +3933,34 @@ 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$
|
|
3944
|
+
var templateObject_1$s, templateObject_2$n, templateObject_3$l, templateObject_4$i, templateObject_5$e;
|
|
3962
3945
|
|
|
3963
|
-
var semantic$
|
|
3964
|
-
base$
|
|
3946
|
+
var semantic$c = tokensData.semantic,
|
|
3947
|
+
base$a = tokensData.base;
|
|
3965
3948
|
var StyledListItem = styled.li.withConfig({
|
|
3966
3949
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
3967
3950
|
return !prop.startsWith('$');
|
|
3968
3951
|
},
|
|
3969
3952
|
displayName: "ListItem__StyledListItem",
|
|
3970
3953
|
componentId: "sc-1wzzt21-0"
|
|
3971
|
-
})(templateObject_1$
|
|
3954
|
+
})(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n min-height: 44px; /* Touch target minimum */\n position: relative;\n \n /* Disable user selection for interactive items */\n ", "\n \n /* Disabled state */\n ", "\n \n /* Destructive state - apply error color to text */\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n min-height: 44px; /* Touch target minimum */\n position: relative;\n \n /* Disable user selection for interactive items */\n ", "\n \n /* Disabled state */\n ", "\n \n /* Destructive state - apply error color to text */\n ", "\n"])), function (_a) {
|
|
3972
3955
|
var $interactive = _a.$interactive;
|
|
3973
3956
|
return $interactive && 'user-select: none;';
|
|
3974
3957
|
}, function (_a) {
|
|
3975
3958
|
var $disabled = _a.$disabled;
|
|
3976
|
-
return $disabled && "\n opacity: ".concat(base$
|
|
3959
|
+
return $disabled && "\n opacity: ".concat(base$a.opacity[50], ";\n cursor: not-allowed;\n pointer-events: none;\n ");
|
|
3977
3960
|
}, function (_a) {
|
|
3978
3961
|
var $destructive = _a.$destructive,
|
|
3979
3962
|
$disabled = _a.$disabled;
|
|
3980
|
-
return $destructive && !$disabled && "\n color: ".concat(semantic$
|
|
3963
|
+
return $destructive && !$disabled && "\n color: ".concat(semantic$c.color.text.error, ";\n ");
|
|
3981
3964
|
});
|
|
3982
3965
|
var StyledItemContent = styled.div.withConfig({
|
|
3983
3966
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -3985,12 +3968,12 @@ var StyledItemContent = styled.div.withConfig({
|
|
|
3985
3968
|
},
|
|
3986
3969
|
displayName: "ListItem__StyledItemContent",
|
|
3987
3970
|
componentId: "sc-1wzzt21-1"
|
|
3988
|
-
})(templateObject_2$
|
|
3971
|
+
})(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\n transition: background-color 150ms ease;\n cursor: ", ";\n \n /* Interactive hover states */\n ", "\n \n /* Focus visible */\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"], ["\n display: flex;\n align-items: flex-start;\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n background-color: ", ";\n transition: background-color 150ms ease;\n cursor: ", ";\n \n /* Interactive hover states */\n ", "\n \n /* Focus visible */\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"])), semantic$c.spacing.layout.md, function (_a) {
|
|
3989
3972
|
var $spacing = _a.$spacing;
|
|
3990
|
-
return $spacing === 'compact' ? "".concat(semantic$
|
|
3991
|
-
}, base$
|
|
3973
|
+
return $spacing === 'compact' ? "".concat(semantic$c.spacing.layout.sm, " ").concat(semantic$c.spacing.layout.md) : "".concat(semantic$c.spacing.layout.md, " ").concat(semantic$c.spacing.layout.lg);
|
|
3974
|
+
}, base$a.border.radius[2], function (_a) {
|
|
3992
3975
|
var $selected = _a.$selected;
|
|
3993
|
-
return $selected ? semantic$
|
|
3976
|
+
return $selected ? semantic$c.color.background['interactive-subtle'] : 'transparent';
|
|
3994
3977
|
}, function (_a) {
|
|
3995
3978
|
var $interactive = _a.$interactive,
|
|
3996
3979
|
$disabled = _a.$disabled;
|
|
@@ -4002,26 +3985,26 @@ var StyledItemContent = styled.div.withConfig({
|
|
|
4002
3985
|
$disabled = _a.$disabled,
|
|
4003
3986
|
$selected = _a.$selected;
|
|
4004
3987
|
return !$disabled && $interactive && "\n &:hover {\n background-color: ".concat($selected ? tokensData.component.button.variants.secondary.backgroundColor : tokensData.component.button.variants.secondary.backgroundColor, ";\n }\n \n &:active {\n background-color: ").concat(tokensData.component.button.variants.naked.backgroundColor, ";\n }\n ");
|
|
4005
|
-
}, semantic$
|
|
3988
|
+
}, semantic$c.color.border.interactive);
|
|
4006
3989
|
var StyledIconContainer$1 = styled.div.withConfig({
|
|
4007
3990
|
displayName: "ListItem__StyledIconContainer",
|
|
4008
3991
|
componentId: "sc-1wzzt21-2"
|
|
4009
|
-
})(templateObject_3$
|
|
3992
|
+
})(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n width: 24px;\n height: 24px;\n"], ["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n width: 24px;\n height: 24px;\n"])));
|
|
4010
3993
|
var StyledTextContent = styled.div.withConfig({
|
|
4011
3994
|
displayName: "ListItem__StyledTextContent",
|
|
4012
3995
|
componentId: "sc-1wzzt21-3"
|
|
4013
|
-
})(templateObject_4$
|
|
3996
|
+
})(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text truncation */\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text truncation */\n"])), semantic$c.spacing.layout.xs);
|
|
4014
3997
|
var StyledRightContent = styled.div.withConfig({
|
|
4015
3998
|
displayName: "ListItem__StyledRightContent",
|
|
4016
3999
|
componentId: "sc-1wzzt21-4"
|
|
4017
|
-
})(templateObject_5$
|
|
4000
|
+
})(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"])), semantic$c.spacing.layout.sm);
|
|
4018
4001
|
var StyledChevronIcon = styled.div.withConfig({
|
|
4019
4002
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
4020
4003
|
return !prop.startsWith('$');
|
|
4021
4004
|
},
|
|
4022
4005
|
displayName: "ListItem__StyledChevronIcon",
|
|
4023
4006
|
componentId: "sc-1wzzt21-5"
|
|
4024
|
-
})(templateObject_6$
|
|
4007
|
+
})(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n color: ", ";\n transition: transform 200ms ease;\n transform: rotate(", ");\n pointer-events: none;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n color: ", ";\n transition: transform 200ms ease;\n transform: rotate(", ");\n pointer-events: none;\n"])), semantic$c.color.icon.subdued, function (_a) {
|
|
4025
4008
|
var $expanded = _a.$expanded;
|
|
4026
4009
|
return $expanded ? '180deg' : '0deg';
|
|
4027
4010
|
});
|
|
@@ -4031,7 +4014,7 @@ var StyledExpandedContent = styled.div.withConfig({
|
|
|
4031
4014
|
},
|
|
4032
4015
|
displayName: "ListItem__StyledExpandedContent",
|
|
4033
4016
|
componentId: "sc-1wzzt21-6"
|
|
4034
|
-
})(templateObject_7$
|
|
4017
|
+
})(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n overflow: hidden;\n transition: max-height 200ms ease-out, opacity 200ms ease-out;\n max-height: ", ";\n opacity: ", ";\n \n ", "\n"], ["\n overflow: hidden;\n transition: max-height 200ms ease-out, opacity 200ms ease-out;\n max-height: ", ";\n opacity: ", ";\n \n ", "\n"])), function (_a) {
|
|
4035
4018
|
var $expanded = _a.$expanded;
|
|
4036
4019
|
return $expanded ? '1000px' : '0';
|
|
4037
4020
|
}, function (_a) {
|
|
@@ -4040,7 +4023,7 @@ var StyledExpandedContent = styled.div.withConfig({
|
|
|
4040
4023
|
}, function (_a) {
|
|
4041
4024
|
var $expanded = _a.$expanded,
|
|
4042
4025
|
$spacing = _a.$spacing;
|
|
4043
|
-
return $expanded && "\n padding: ".concat($spacing === 'compact' ? "".concat(semantic$
|
|
4026
|
+
return $expanded && "\n padding: ".concat($spacing === 'compact' ? "".concat(semantic$c.spacing.layout.sm, " ").concat(semantic$c.spacing.layout.md, " ").concat(semantic$c.spacing.layout.sm, " 48px") : "".concat(semantic$c.spacing.layout.sm, " ").concat(semantic$c.spacing.layout.lg, " ").concat(semantic$c.spacing.layout.md, " 60px"), ";\n background-color: ").concat(semantic$c.color.background['subtle'], ";\n border-radius: ").concat(base$a.border.radius[2], ";\n margin: 0 ").concat($spacing === 'compact' ? semantic$c.spacing.layout.md : semantic$c.spacing.layout.lg, " ").concat($spacing === 'compact' ? semantic$c.spacing.layout.sm : semantic$c.spacing.layout.md, ";\n ");
|
|
4044
4027
|
});
|
|
4045
4028
|
var ListItem = function ListItem(_a) {
|
|
4046
4029
|
var primary = _a.primary,
|
|
@@ -4153,40 +4136,40 @@ var ListItem = function ListItem(_a) {
|
|
|
4153
4136
|
}));
|
|
4154
4137
|
};
|
|
4155
4138
|
ListItem.displayName = 'ListItem';
|
|
4156
|
-
var templateObject_1$
|
|
4139
|
+
var templateObject_1$r, templateObject_2$m, templateObject_3$k, templateObject_4$h, templateObject_5$d, templateObject_6$b, templateObject_7$9;
|
|
4157
4140
|
|
|
4158
4141
|
var _a$4 = tokensData.semantic,
|
|
4159
|
-
color$
|
|
4160
|
-
border$
|
|
4161
|
-
layout = _a$4.spacing.layout,
|
|
4142
|
+
color$3 = _a$4.color,
|
|
4143
|
+
border$5 = _a$4.border,
|
|
4144
|
+
layout$1 = _a$4.spacing.layout,
|
|
4162
4145
|
motion = _a$4.motion,
|
|
4163
|
-
elevation = _a$4.elevation;
|
|
4164
|
-
var slideUp = styled.keyframes(templateObject_1$
|
|
4165
|
-
var fadeIn$
|
|
4166
|
-
var StyledOverlay$
|
|
4146
|
+
elevation$1 = _a$4.elevation;
|
|
4147
|
+
var slideUp = styled.keyframes(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n"], ["\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0);\n }\n"])));
|
|
4148
|
+
var fadeIn$2 = styled.keyframes(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"], ["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"])));
|
|
4149
|
+
var StyledOverlay$2 = styled.div.withConfig({
|
|
4167
4150
|
displayName: "ActionSheet__StyledOverlay",
|
|
4168
4151
|
componentId: "sc-regbol-0"
|
|
4169
|
-
})(templateObject_3$
|
|
4152
|
+
})(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9999;\n animation: ", " 0.2s ease-out;\n"], ["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9999;\n animation: ", " 0.2s ease-out;\n"])), fadeIn$2);
|
|
4170
4153
|
var StyledActionSheet = styled.div.withConfig({
|
|
4171
4154
|
displayName: "ActionSheet__StyledActionSheet",
|
|
4172
4155
|
componentId: "sc-regbol-1"
|
|
4173
|
-
})(templateObject_4$
|
|
4174
|
-
var StyledHeader$
|
|
4156
|
+
})(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n box-shadow: ", ";\n max-height: 90vh;\n overflow-y: auto;\n z-index: 10000;\n animation: ", " 0.3s ease-out;\n"], ["\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n box-shadow: ", ";\n max-height: 90vh;\n overflow-y: auto;\n z-index: 10000;\n animation: ", " 0.3s ease-out;\n"])), color$3.background.subtle, border$5.radius.lg, border$5.radius.lg, elevation$1.overlay, slideUp);
|
|
4157
|
+
var StyledHeader$2 = styled.div.withConfig({
|
|
4175
4158
|
displayName: "ActionSheet__StyledHeader",
|
|
4176
4159
|
componentId: "sc-regbol-2"
|
|
4177
|
-
})(templateObject_5$
|
|
4160
|
+
})(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n padding: ", " ", " ", ";\n border-bottom: ", ";\n"], ["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n padding: ", " ", " ", ";\n border-bottom: ", ";\n"])), layout$1.lg, layout$1.lg, layout$1.md, border$5["default"]);
|
|
4178
4161
|
var StyledHeaderContent = styled.div.withConfig({
|
|
4179
4162
|
displayName: "ActionSheet__StyledHeaderContent",
|
|
4180
4163
|
componentId: "sc-regbol-3"
|
|
4181
|
-
})(templateObject_6$
|
|
4164
|
+
})(templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
4182
4165
|
var StyledCloseButton = styled.button.withConfig({
|
|
4183
4166
|
displayName: "ActionSheet__StyledCloseButton",
|
|
4184
4167
|
componentId: "sc-regbol-4"
|
|
4185
|
-
})(templateObject_7$
|
|
4168
|
+
})(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: none;\n background: transparent;\n color: ", ";\n cursor: pointer;\n border-radius: ", ";\n transition: ", ";\n margin-left: ", ";\n \n &:hover {\n color: ", ";\n background-color: ", ";\n }\n \n &:focus-visible {\n outline: ", ";\n outline-offset: ", ";\n }\n"])), layout$1.sm, color$3.icon.subdued, border$5.radius.sm, motion.hover, layout$1.sm, color$3.icon["default"], color$3.background.surface, border$5.focus, layout$1.xs);
|
|
4186
4169
|
var StyledActionsList = styled.ul.withConfig({
|
|
4187
4170
|
displayName: "ActionSheet__StyledActionsList",
|
|
4188
4171
|
componentId: "sc-regbol-5"
|
|
4189
|
-
})(templateObject_8$
|
|
4172
|
+
})(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["\n padding: ", " ", ";\n margin: 0;\n list-style: none;\n"], ["\n padding: ", " ", ";\n margin: 0;\n list-style: none;\n"
|
|
4190
4173
|
/**
|
|
4191
4174
|
* ActionSheet component for bottom sheet modals
|
|
4192
4175
|
*
|
|
@@ -4219,7 +4202,7 @@ var StyledActionsList = styled.ul.withConfig({
|
|
|
4219
4202
|
* ]}
|
|
4220
4203
|
* />
|
|
4221
4204
|
* ```
|
|
4222
|
-
*/])), layout.sm, layout.md);
|
|
4205
|
+
*/])), layout$1.sm, layout$1.md);
|
|
4223
4206
|
/**
|
|
4224
4207
|
* ActionSheet component for bottom sheet modals
|
|
4225
4208
|
*
|
|
@@ -4333,7 +4316,7 @@ var ActionSheet = function ActionSheet(_a) {
|
|
|
4333
4316
|
});
|
|
4334
4317
|
var hasDestructive = destructiveIndex >= 0;
|
|
4335
4318
|
return /*#__PURE__*/reactDom.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
4336
|
-
children: [jsxRuntime.jsx(StyledOverlay$
|
|
4319
|
+
children: [jsxRuntime.jsx(StyledOverlay$2, {
|
|
4337
4320
|
onClick: handleOverlayClick
|
|
4338
4321
|
}), jsxRuntime.jsxs(StyledActionSheet, {
|
|
4339
4322
|
ref: sheetRef,
|
|
@@ -4342,7 +4325,7 @@ var ActionSheet = function ActionSheet(_a) {
|
|
|
4342
4325
|
"aria-labelledby": title ? 'action-sheet-title' : undefined,
|
|
4343
4326
|
"aria-describedby": description ? 'action-sheet-description' : undefined,
|
|
4344
4327
|
"data-testid": dataTestId,
|
|
4345
|
-
children: [(title || description || showCloseButton) && jsxRuntime.jsxs(StyledHeader$
|
|
4328
|
+
children: [(title || description || showCloseButton) && jsxRuntime.jsxs(StyledHeader$2, {
|
|
4346
4329
|
children: [jsxRuntime.jsx(StyledHeaderContent, {
|
|
4347
4330
|
children: jsxRuntime.jsxs(Stack, {
|
|
4348
4331
|
direction: "column",
|
|
@@ -4398,7 +4381,7 @@ var ActionSheet = function ActionSheet(_a) {
|
|
|
4398
4381
|
})]
|
|
4399
4382
|
}), document.body);
|
|
4400
4383
|
};
|
|
4401
|
-
var templateObject_1$
|
|
4384
|
+
var templateObject_1$q, templateObject_2$l, templateObject_3$j, templateObject_4$g, templateObject_5$c, templateObject_6$a, templateObject_7$8, templateObject_8$6;
|
|
4402
4385
|
|
|
4403
4386
|
function detectSpeechRecognitionConstructor(targetWindow) {
|
|
4404
4387
|
if (!targetWindow) return null;
|
|
@@ -4498,69 +4481,69 @@ function agentInputStateTransition(currentState, event) {
|
|
|
4498
4481
|
}
|
|
4499
4482
|
}
|
|
4500
4483
|
|
|
4501
|
-
var semantic$
|
|
4502
|
-
base$
|
|
4484
|
+
var semantic$b = tokensData.semantic,
|
|
4485
|
+
base$9 = tokensData.base,
|
|
4503
4486
|
component$1 = tokensData.component;
|
|
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 rotateRing = styled.keyframes(templateObject_1$
|
|
4490
|
+
var rotateRing = styled.keyframes(templateObject_1$p || (templateObject_1$p = __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"
|
|
4511
|
-
})(templateObject_2$
|
|
4494
|
+
})(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", ";\n width: 100%;\n"])), base$9.spacing[2]);
|
|
4512
4495
|
var ControlsRow = styled.div.withConfig({
|
|
4513
4496
|
displayName: "AgentInput__ControlsRow",
|
|
4514
4497
|
componentId: "sc-fhl996-1"
|
|
4515
|
-
})(templateObject_3$
|
|
4498
|
+
})(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
4516
4499
|
var InputShell = styled.div.withConfig({
|
|
4517
4500
|
displayName: "AgentInput__InputShell",
|
|
4518
4501
|
componentId: "sc-fhl996-2"
|
|
4519
|
-
})(templateObject_4$
|
|
4502
|
+
})(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n width: 100%;\n padding: ", " ", " ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n transition: border-color 200ms ease-in-out, outline 200ms ease-in-out;\n\n &:focus-within {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n\n &[data-disabled='true'] {\n background-color: ", ";\n border-color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n width: 100%;\n padding: ", " ", " ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n transition: border-color 200ms ease-in-out, outline 200ms ease-in-out;\n\n &:focus-within {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n\n &[data-disabled='true'] {\n background-color: ", ";\n border-color: ", ";\n }\n"])), base$9.spacing[2], semantic$b.spacing.layout.xs, semantic$b.spacing.layout.sm, semantic$b.spacing.layout.xs, component$1.input["default"].paddingX, component$1.input["default"].backgroundColor, component$1.input["default"].borderWidth, component$1.input["default"].borderColor, semantic$b.border.radius['3xl'], semantic$b.elevation.raised, component$1.input.focus.borderColor, component$1.input.focus.outline, component$1.input.focus.outlineOffset, component$1.input.disabled.backgroundColor, component$1.input.disabled.borderColor);
|
|
4520
4503
|
var Input = styled.input.withConfig({
|
|
4521
4504
|
displayName: "AgentInput__Input",
|
|
4522
4505
|
componentId: "sc-fhl996-3"
|
|
4523
|
-
})(templateObject_5$
|
|
4506
|
+
})(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n min-height: ", ";\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n outline: none;\n\n &::placeholder {\n color: ", ";\n }\n\n &:disabled {\n color: ", ";\n cursor: not-allowed;\n }\n"], ["\n flex: 1;\n min-width: 0;\n min-height: ", ";\n border: none;\n background: transparent;\n font: ", ";\n color: ", ";\n outline: none;\n\n &::placeholder {\n color: ", ";\n }\n\n &:disabled {\n color: ", ";\n cursor: not-allowed;\n }\n"])), base$9.spacing[12], semantic$b.typography.body, semantic$b.color.text["default"], semantic$b.color.text.subdued, semantic$b.color.text.disabled);
|
|
4524
4507
|
var InputActions = styled.div.withConfig({
|
|
4525
4508
|
displayName: "AgentInput__InputActions",
|
|
4526
4509
|
componentId: "sc-fhl996-4"
|
|
4527
|
-
})(templateObject_6$
|
|
4510
|
+
})(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n"])), semantic$b.spacing.layout.sm);
|
|
4528
4511
|
var CircularActionIconButton = styled(IconButton).withConfig({
|
|
4529
4512
|
displayName: "AgentInput__CircularActionIconButton",
|
|
4530
4513
|
componentId: "sc-fhl996-5"
|
|
4531
|
-
})(templateObject_7$
|
|
4514
|
+
})(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), semantic$b.border.radius.circle);
|
|
4532
4515
|
var InputWrapper = styled.div.withConfig({
|
|
4533
4516
|
displayName: "AgentInput__InputWrapper",
|
|
4534
4517
|
componentId: "sc-fhl996-6"
|
|
4535
|
-
})(templateObject_8$
|
|
4518
|
+
})(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n flex: 1;\n min-width: 0;\n"], ["\n flex: 1;\n min-width: 0;\n"])));
|
|
4536
4519
|
var MicButtonWrapper = styled.div.withConfig({
|
|
4537
4520
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
4538
4521
|
return !prop.startsWith('$');
|
|
4539
4522
|
},
|
|
4540
4523
|
displayName: "AgentInput__MicButtonWrapper",
|
|
4541
4524
|
componentId: "sc-fhl996-7"
|
|
4542
|
-
})(templateObject_9$
|
|
4525
|
+
})(templateObject_9$4 || (templateObject_9$4 = __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$b.border.radius.circle);
|
|
4543
4526
|
var MicListeningRing = styled.span.withConfig({
|
|
4544
4527
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
4545
4528
|
return !prop.startsWith('$');
|
|
4546
4529
|
},
|
|
4547
4530
|
displayName: "AgentInput__MicListeningRing",
|
|
4548
4531
|
componentId: "sc-fhl996-8"
|
|
4549
|
-
})(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$
|
|
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$9.border.width[2], base$9.spacing[1], component$1.iconButton.focus.outlineOffset, semantic$b.border.radius.circle, semantic$b.color.background['interactive-subtle'], semantic$b.color.background.interactive, semantic$b.color.background['interactive-hover'], semantic$b.color.background.interactive, semantic$b.color.background['interactive-subtle'], function (_a) {
|
|
4550
4533
|
var $reducedMotion = _a.$reducedMotion;
|
|
4551
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);
|
|
4552
4535
|
});
|
|
4553
4536
|
var StatusRow = styled.div.withConfig({
|
|
4554
4537
|
displayName: "AgentInput__StatusRow",
|
|
4555
4538
|
componentId: "sc-fhl996-9"
|
|
4556
|
-
})(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$
|
|
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$9.spacing[3], base$9.spacing[6]);
|
|
4557
4540
|
var StatusText = styled.div.withConfig({
|
|
4558
4541
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
4559
4542
|
return !prop.startsWith('$');
|
|
4560
4543
|
},
|
|
4561
4544
|
displayName: "AgentInput__StatusText",
|
|
4562
4545
|
componentId: "sc-fhl996-10"
|
|
4563
|
-
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$
|
|
4546
|
+
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), semantic$b.spacing.layout.xl);
|
|
4564
4547
|
var StatusAnnouncement = styled.div.withConfig({
|
|
4565
4548
|
displayName: "AgentInput__StatusAnnouncement",
|
|
4566
4549
|
componentId: "sc-fhl996-11"
|
|
@@ -4568,14 +4551,14 @@ var StatusAnnouncement = styled.div.withConfig({
|
|
|
4568
4551
|
var MeterContainer = styled.div.withConfig({
|
|
4569
4552
|
displayName: "AgentInput__MeterContainer",
|
|
4570
4553
|
componentId: "sc-fhl996-12"
|
|
4571
|
-
})(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$
|
|
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$9.spacing[1], base$9.spacing[4]);
|
|
4572
4555
|
var MeterBar = styled.div.withConfig({
|
|
4573
4556
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
4574
4557
|
return !prop.startsWith('$');
|
|
4575
4558
|
},
|
|
4576
4559
|
displayName: "AgentInput__MeterBar",
|
|
4577
4560
|
componentId: "sc-fhl996-13"
|
|
4578
|
-
})(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$
|
|
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$9.spacing[1], base$9.border.radius[1], semantic$b.color.background.interactive, function (_a) {
|
|
4579
4562
|
var $height = _a.$height;
|
|
4580
4563
|
return "".concat($height * 100, "%");
|
|
4581
4564
|
});
|
|
@@ -5211,10 +5194,10 @@ var AgentInput = function AgentInput(_a) {
|
|
|
5211
5194
|
})]
|
|
5212
5195
|
});
|
|
5213
5196
|
};
|
|
5214
|
-
var templateObject_1$
|
|
5197
|
+
var templateObject_1$p, templateObject_2$k, templateObject_3$i, templateObject_4$f, templateObject_5$b, templateObject_6$9, templateObject_7$7, templateObject_8$5, templateObject_9$4, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1;
|
|
5215
5198
|
|
|
5216
|
-
var semantic$
|
|
5217
|
-
base$
|
|
5199
|
+
var semantic$a = tokensData.semantic,
|
|
5200
|
+
base$8 = tokensData.base;
|
|
5218
5201
|
// Default icons by variant
|
|
5219
5202
|
var variantIcons = {
|
|
5220
5203
|
error: 'crossCircle',
|
|
@@ -5242,56 +5225,56 @@ var StyledAlert = styled.div.withConfig({
|
|
|
5242
5225
|
},
|
|
5243
5226
|
displayName: "Alert__StyledAlert",
|
|
5244
5227
|
componentId: "sc-18tq5d-0"
|
|
5245
|
-
})(templateObject_1$
|
|
5228
|
+
})(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n display: flex;\n align-items: ", ";\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n border: 1px solid;\n position: relative;\n width: 100%;\n \n /* Variant-specific colors */\n ", "\n \n /* Responsive adjustments */\n @media (min-width: ", ") {\n padding: ", ";\n }\n"], ["\n display: flex;\n align-items: ", ";\n gap: ", ";\n padding: ", ";\n border-radius: ", ";\n border: 1px solid;\n position: relative;\n width: 100%;\n \n /* Variant-specific colors */\n ", "\n \n /* Responsive adjustments */\n @media (min-width: ", ") {\n padding: ", ";\n }\n"])), function (_a) {
|
|
5246
5229
|
var $inline = _a.$inline;
|
|
5247
5230
|
return $inline ? 'center' : 'flex-start';
|
|
5248
5231
|
}, function (_a) {
|
|
5249
5232
|
var $inline = _a.$inline;
|
|
5250
|
-
return $inline ? semantic$
|
|
5233
|
+
return $inline ? semantic$a.spacing.layout.sm : semantic$a.spacing.layout.md;
|
|
5251
5234
|
}, function (_a) {
|
|
5252
5235
|
var $inline = _a.$inline;
|
|
5253
|
-
return $inline ? semantic$
|
|
5254
|
-
}, base$
|
|
5236
|
+
return $inline ? semantic$a.spacing.layout.sm : semantic$a.spacing.layout.md;
|
|
5237
|
+
}, base$8.border.radius[2], function (_a) {
|
|
5255
5238
|
var $variant = _a.$variant;
|
|
5256
5239
|
switch ($variant) {
|
|
5257
5240
|
case 'error':
|
|
5258
|
-
return "\n background-color: ".concat(semantic$
|
|
5241
|
+
return "\n background-color: ".concat(semantic$a.color.background['error-subtle'], ";\n border-color: ").concat(semantic$a.color.border.error, ";\n color: ").concat(semantic$a.color.text.error, ";\n ");
|
|
5259
5242
|
case 'warning':
|
|
5260
|
-
return "\n background-color: ".concat(semantic$
|
|
5243
|
+
return "\n background-color: ".concat(semantic$a.color.background['warning-subtle'], ";\n border-color: ").concat(semantic$a.color.border.warning, ";\n color: ").concat(semantic$a.color.text.warning, ";\n ");
|
|
5261
5244
|
case 'success':
|
|
5262
|
-
return "\n background-color: ".concat(semantic$
|
|
5245
|
+
return "\n background-color: ".concat(semantic$a.color.background['success-subtle'], ";\n border-color: ").concat(semantic$a.color.border.success, ";\n color: ").concat(semantic$a.color.text.success, ";\n ");
|
|
5263
5246
|
case 'info':
|
|
5264
5247
|
default:
|
|
5265
|
-
return "\n background-color: ".concat(semantic$
|
|
5248
|
+
return "\n background-color: ".concat(semantic$a.color.background['interactive-subtle'], ";\n border-color: ").concat(semantic$a.color.border.interactive, ";\n color: ").concat(semantic$a.color.text.interactive, ";\n ");
|
|
5266
5249
|
}
|
|
5267
|
-
}, base$
|
|
5250
|
+
}, base$8.breakpoint.md, function (_a) {
|
|
5268
5251
|
var $inline = _a.$inline;
|
|
5269
|
-
return $inline ? semantic$
|
|
5252
|
+
return $inline ? semantic$a.spacing.layout.sm : semantic$a.spacing.layout.lg;
|
|
5270
5253
|
});
|
|
5271
5254
|
var StyledIconContainer = styled.div.withConfig({
|
|
5272
5255
|
displayName: "Alert__StyledIconContainer",
|
|
5273
5256
|
componentId: "sc-18tq5d-1"
|
|
5274
|
-
})(templateObject_2$
|
|
5257
|
+
})(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n"], ["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n"])));
|
|
5275
5258
|
var StyledContent$1 = styled.div.withConfig({
|
|
5276
5259
|
displayName: "Alert__StyledContent",
|
|
5277
5260
|
componentId: "sc-18tq5d-2"
|
|
5278
|
-
})(templateObject_3$
|
|
5261
|
+
})(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: ", ";\n min-width: 0; /* Allow text wrapping */\n"])), semantic$a.spacing.layout.xs);
|
|
5279
5262
|
var StyledTitle = styled.span.withConfig({
|
|
5280
5263
|
displayName: "Alert__StyledTitle",
|
|
5281
5264
|
componentId: "sc-18tq5d-3"
|
|
5282
|
-
})(templateObject_4$
|
|
5265
|
+
})(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n font: ", ";\n font-weight: 600 !important;\n margin: 0;\n\tline-height: 1.125;\n"], ["\n font: ", ";\n font-weight: 600 !important;\n margin: 0;\n\tline-height: 1.125;\n"])), semantic$a.typography.h6);
|
|
5283
5266
|
var StyledMessage = styled.span.withConfig({
|
|
5284
5267
|
displayName: "Alert__StyledMessage",
|
|
5285
5268
|
componentId: "sc-18tq5d-4"
|
|
5286
|
-
})(templateObject_5$
|
|
5269
|
+
})(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n font: ", ";\n\tline-height: 1.25;\n"], ["\n font: ", ";\n\tline-height: 1.25;\n"])), semantic$a.typography.body);
|
|
5287
5270
|
var StyledActions = styled.div.withConfig({
|
|
5288
5271
|
displayName: "Alert__StyledActions",
|
|
5289
5272
|
componentId: "sc-18tq5d-5"
|
|
5290
|
-
})(templateObject_6$
|
|
5273
|
+
})(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n flex-shrink: 0;\n margin-left: auto;\n"])), semantic$a.spacing.layout.sm);
|
|
5291
5274
|
var StyledDismissButton = styled(IconButton).withConfig({
|
|
5292
5275
|
displayName: "Alert__StyledDismissButton",
|
|
5293
5276
|
componentId: "sc-18tq5d-6"
|
|
5294
|
-
})(templateObject_7$
|
|
5277
|
+
})(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n margin-left: ", ";\n\tposition: absolute;\n\tright: 8px;\n\ttop: 10px;\n"], ["\n margin-left: ", ";\n\tposition: absolute;\n\tright: 8px;\n\ttop: 10px;\n"])), semantic$a.spacing.layout.xs);
|
|
5295
5278
|
var Alert = function Alert(_a) {
|
|
5296
5279
|
var _b = _a.variant,
|
|
5297
5280
|
variant = _b === void 0 ? 'info' : _b,
|
|
@@ -5359,21 +5342,21 @@ var Alert = function Alert(_a) {
|
|
|
5359
5342
|
}));
|
|
5360
5343
|
};
|
|
5361
5344
|
Alert.displayName = 'Alert';
|
|
5362
|
-
var templateObject_1$
|
|
5345
|
+
var templateObject_1$o, templateObject_2$j, templateObject_3$h, templateObject_4$e, templateObject_5$a, templateObject_6$8, templateObject_7$6;
|
|
5363
5346
|
|
|
5364
5347
|
var _a$3, _b$1, _c, _d, _e, _f;
|
|
5365
5348
|
var BreadcrumbNavStyled = styled.nav.withConfig({
|
|
5366
5349
|
displayName: "Breadcrumbs__BreadcrumbNavStyled",
|
|
5367
5350
|
componentId: "sc-7ouzg5-0"
|
|
5368
|
-
})(templateObject_1$
|
|
5351
|
+
})(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"], ["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"])), ((_b$1 = (_a$3 = tokensData.semantic) === null || _a$3 === void 0 ? void 0 : _a$3.border) === null || _b$1 === void 0 ? void 0 : _b$1["default"]) || '0.0625rem solid #e9ecef');
|
|
5369
5352
|
var BreadcrumbStyled = styled.li.withConfig({
|
|
5370
5353
|
displayName: "Breadcrumbs__BreadcrumbStyled",
|
|
5371
5354
|
componentId: "sc-7ouzg5-1"
|
|
5372
|
-
})(templateObject_2$
|
|
5355
|
+
})(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n text-transform: uppercase;\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", ";\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 180px;\n }\n\n > a {\n display: inline-flex;\n align-items: center;\n text-decoration: underline;\n color: ", ";\n }\n"], ["\n text-transform: uppercase;\n display: inline-flex;\n align-items: center;\n gap: ", ";\n padding: ", ";\n\n &:last-of-type a {\n text-decoration: none;\n color: ", ";\n }\n\n &:last-of-type p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 180px;\n }\n\n > a {\n display: inline-flex;\n align-items: center;\n text-decoration: underline;\n color: ", ";\n }\n"])), ((_d = (_c = tokensData.base) === null || _c === void 0 ? void 0 : _c.spacing) === null || _d === void 0 ? void 0 : _d['2']) || '0.5rem', ((_f = (_e = tokensData.base) === null || _e === void 0 ? void 0 : _e.spacing) === null || _f === void 0 ? void 0 : _f['2']) || '0.5rem', tokensData.semantic.color.text.subdued, tokensData.semantic.color.text["default"]);
|
|
5373
5356
|
var BreadcrumbSeparator = styled.span.withConfig({
|
|
5374
5357
|
displayName: "Breadcrumbs__BreadcrumbSeparator",
|
|
5375
5358
|
componentId: "sc-7ouzg5-2"
|
|
5376
|
-
})(templateObject_3$
|
|
5359
|
+
})(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n opacity: 0.5;\n"], ["\n display: inline-flex;\n align-items: center;\n opacity: 0.5;\n"])));
|
|
5377
5360
|
var isInternalUrl = function isInternalUrl(url) {
|
|
5378
5361
|
return url.startsWith('/') && !url.startsWith('http');
|
|
5379
5362
|
};
|
|
@@ -5421,12 +5404,12 @@ var Breadcrumbs = function Breadcrumbs(_a) {
|
|
|
5421
5404
|
})
|
|
5422
5405
|
});
|
|
5423
5406
|
};
|
|
5424
|
-
var templateObject_1$
|
|
5407
|
+
var templateObject_1$n, templateObject_2$i, templateObject_3$g;
|
|
5425
5408
|
|
|
5426
5409
|
var CardSmallStyled = styled.div.withConfig({
|
|
5427
5410
|
displayName: "CardSmall__CardSmallStyled",
|
|
5428
5411
|
componentId: "sc-jpcqvd-0"
|
|
5429
|
-
})(templateObject_1$
|
|
5412
|
+
})(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n a {\n text-decoration: none;\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n height: auto;\n display: block;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n"], ["\n a {\n text-decoration: none;\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n height: auto;\n display: block;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n"])), tokensData.base.border.radius[2], tokensData.semantic.color.border.strong);
|
|
5430
5413
|
var CardSmall = function CardSmall(_a) {
|
|
5431
5414
|
var title = _a.title,
|
|
5432
5415
|
picture = _a.picture,
|
|
@@ -5478,13 +5461,13 @@ var CardSmall = function CardSmall(_a) {
|
|
|
5478
5461
|
})
|
|
5479
5462
|
});
|
|
5480
5463
|
};
|
|
5481
|
-
var templateObject_1$
|
|
5464
|
+
var templateObject_1$m;
|
|
5482
5465
|
|
|
5483
|
-
var border$
|
|
5466
|
+
var border$4 = tokensData.base.border;
|
|
5484
5467
|
var CardLargeStyled = styled.div.withConfig({
|
|
5485
5468
|
displayName: "CardLarge__CardLargeStyled",
|
|
5486
5469
|
componentId: "sc-1rfgdzl-0"
|
|
5487
|
-
})(templateObject_1$
|
|
5470
|
+
})(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n max-width: 768px;\n\n a {\n text-decoration: none;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n }\n"], ["\n max-width: 768px;\n\n a {\n text-decoration: none;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n }\n"])), border$4.radius[6]);
|
|
5488
5471
|
var CardLarge = function CardLarge(_a) {
|
|
5489
5472
|
var title = _a.title,
|
|
5490
5473
|
excerpt = _a.excerpt,
|
|
@@ -5537,7 +5520,7 @@ var CardLarge = function CardLarge(_a) {
|
|
|
5537
5520
|
})
|
|
5538
5521
|
});
|
|
5539
5522
|
};
|
|
5540
|
-
var templateObject_1$
|
|
5523
|
+
var templateObject_1$l;
|
|
5541
5524
|
|
|
5542
5525
|
/**
|
|
5543
5526
|
* Hidden native checkbox input for accessibility
|
|
@@ -5549,7 +5532,7 @@ var HiddenCheckboxInput = styled.input.withConfig({
|
|
|
5549
5532
|
},
|
|
5550
5533
|
displayName: "SelectableInputBase__HiddenCheckboxInput",
|
|
5551
5534
|
componentId: "sc-1ddpctx-0"
|
|
5552
|
-
})(templateObject_1$
|
|
5535
|
+
})(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n pointer-events: none;\n"], ["\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n pointer-events: none;\n"
|
|
5553
5536
|
/**
|
|
5554
5537
|
* Custom checkbox visual component
|
|
5555
5538
|
* 24px × 24px for 8px grid alignment
|
|
@@ -5566,7 +5549,7 @@ var StyledCheckbox = styled.span.withConfig({
|
|
|
5566
5549
|
},
|
|
5567
5550
|
displayName: "SelectableInputBase__StyledCheckbox",
|
|
5568
5551
|
componentId: "sc-1ddpctx-1"
|
|
5569
|
-
})(templateObject_2$
|
|
5552
|
+
})(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n min-width: 20px;\n min-height: 20px;\n border-radius: ", ";\n border: ", " solid;\n background-color: ", ";\n border-color: ", ";\n cursor: ", ";\n transition: all 150ms ease-out;\n flex-shrink: 0;\n\n /* Hover state */\n ", ":not(:disabled):hover + & {\n border-color: ", ";\n }\n\n /* Focus state */\n ", ":focus-visible + & {\n outline: ", ";\n outline-offset: ", ";\n border-color: ", ";\n }\n\n /* Disabled state */\n ", "\n\n /* Checkmark icon */\n &::after {\n content: '';\n position: absolute;\n display: ", ";\n left: 6px;\n top: 3px;\n width: 4px;\n height: 8px;\n border: solid ", ";\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n }\n\n /* Indeterminate icon (horizontal line) */\n &::before {\n content: '';\n position: absolute;\n display: ", ";\n left: 4px;\n top: 8px;\n width: 10px;\n height: 2px;\n background-color: ", ";\n }\n"], ["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n min-width: 20px;\n min-height: 20px;\n border-radius: ", ";\n border: ", " solid;\n background-color: ", ";\n border-color: ", ";\n cursor: ", ";\n transition: all 150ms ease-out;\n flex-shrink: 0;\n\n /* Hover state */\n ", ":not(:disabled):hover + & {\n border-color: ", ";\n }\n\n /* Focus state */\n ", ":focus-visible + & {\n outline: ", ";\n outline-offset: ", ";\n border-color: ", ";\n }\n\n /* Disabled state */\n ", "\n\n /* Checkmark icon */\n &::after {\n content: '';\n position: absolute;\n display: ", ";\n left: 6px;\n top: 3px;\n width: 4px;\n height: 8px;\n border: solid ", ";\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n }\n\n /* Indeterminate icon (horizontal line) */\n &::before {\n content: '';\n position: absolute;\n display: ", ";\n left: 4px;\n top: 8px;\n width: 10px;\n height: 2px;\n background-color: ", ";\n }\n"
|
|
5570
5553
|
/**
|
|
5571
5554
|
* Container for checkbox with proper spacing and alignment
|
|
5572
5555
|
* 48px min-height for touch target (8px grid aligned)
|
|
@@ -5599,7 +5582,7 @@ var StyledCheckboxContainer = styled.label.withConfig({
|
|
|
5599
5582
|
},
|
|
5600
5583
|
displayName: "SelectableInputBase__StyledCheckboxContainer",
|
|
5601
5584
|
componentId: "sc-1ddpctx-2"
|
|
5602
|
-
})(templateObject_3$
|
|
5585
|
+
})(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n cursor: ", ";\n min-height: 32px;\n flex-direction: ", ";\n user-select: none;\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n cursor: ", ";\n min-height: 32px;\n flex-direction: ", ";\n user-select: none;\n"
|
|
5603
5586
|
/**
|
|
5604
5587
|
* Label text with proper typography
|
|
5605
5588
|
*/])), tokensData.base.spacing[3], function (props) {
|
|
@@ -5616,19 +5599,19 @@ var StyledCheckboxLabel = styled.span.withConfig({
|
|
|
5616
5599
|
},
|
|
5617
5600
|
displayName: "SelectableInputBase__StyledCheckboxLabel",
|
|
5618
5601
|
componentId: "sc-1ddpctx-3"
|
|
5619
|
-
})(templateObject_4$
|
|
5602
|
+
})(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), tokensData.component.input["default"].font, function (props) {
|
|
5620
5603
|
return props.$disabled ? tokensData.component.input.disabled.textColor : tokensData.component.input["default"].textColor;
|
|
5621
5604
|
});
|
|
5622
|
-
var templateObject_1$
|
|
5605
|
+
var templateObject_1$k, templateObject_2$h, templateObject_3$f, templateObject_4$d;
|
|
5623
5606
|
|
|
5624
5607
|
var StyledFieldContainer$3 = styled.div.withConfig({
|
|
5625
5608
|
displayName: "Checkbox__StyledFieldContainer",
|
|
5626
5609
|
componentId: "sc-vquz3v-0"
|
|
5627
|
-
})(templateObject_1$
|
|
5610
|
+
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n display: inline-flex;\n flex-direction: column;\n gap: ", ";\n"], ["\n display: inline-flex;\n flex-direction: column;\n gap: ", ";\n"])), tokensData.base.spacing[1]);
|
|
5628
5611
|
var StyledHelperText$4 = styled.span.withConfig({
|
|
5629
5612
|
displayName: "Checkbox__StyledHelperText",
|
|
5630
5613
|
componentId: "sc-vquz3v-1"
|
|
5631
|
-
})(templateObject_2$
|
|
5614
|
+
})(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n margin-left: ", "; /* Align with label text after checkbox */\n display: block;\n"], ["\n font: ", ";\n color: ", ";\n margin-left: ", "; /* Align with label text after checkbox */\n display: block;\n"
|
|
5632
5615
|
/**
|
|
5633
5616
|
* Checkbox component for binary selection with WCAG 2.2 AA compliance
|
|
5634
5617
|
*
|
|
@@ -5747,12 +5730,12 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
5747
5730
|
});
|
|
5748
5731
|
});
|
|
5749
5732
|
Checkbox.displayName = 'Checkbox';
|
|
5750
|
-
var templateObject_1$
|
|
5733
|
+
var templateObject_1$j, templateObject_2$g;
|
|
5751
5734
|
|
|
5752
5735
|
var ChipGroupWrapper = styled.div.withConfig({
|
|
5753
5736
|
displayName: "ChipGroup__ChipGroupWrapper",
|
|
5754
5737
|
componentId: "sc-ae049w-0"
|
|
5755
|
-
})(templateObject_1$
|
|
5738
|
+
})(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"], ["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"])));
|
|
5756
5739
|
var ChipGroup = function ChipGroup(_a) {
|
|
5757
5740
|
var labels = _a.labels,
|
|
5758
5741
|
_b = _a.variant,
|
|
@@ -5772,17 +5755,17 @@ var ChipGroup = function ChipGroup(_a) {
|
|
|
5772
5755
|
})
|
|
5773
5756
|
});
|
|
5774
5757
|
};
|
|
5775
|
-
var templateObject_1$
|
|
5758
|
+
var templateObject_1$i;
|
|
5776
5759
|
|
|
5777
5760
|
var _a$2 = tokensData.semantic,
|
|
5778
|
-
color$
|
|
5779
|
-
border$
|
|
5761
|
+
color$2 = _a$2.color,
|
|
5762
|
+
border$3 = _a$2.border,
|
|
5780
5763
|
spacing$2 = _a$2.spacing;
|
|
5781
5764
|
_a$2.motion;
|
|
5782
5765
|
var StyledCodeBlock = styled.pre.withConfig({
|
|
5783
5766
|
displayName: "CodeBlock__StyledCodeBlock",
|
|
5784
5767
|
componentId: "sc-1p1t0kp-0"
|
|
5785
|
-
})(templateObject_1$
|
|
5768
|
+
})(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height 300ms ease-in-out;\n \n ", "\n"], ["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n overflow-y: ", ";\n margin: ", " 0;\n position: relative;\n transition: max-height 300ms ease-in-out;\n \n ", "\n"])), color$2.background.subtle, border$3.subtle, tokensData.base.border.radius[2], spacing$2.layout.md, tokensData.base.fontFamily.monospace, tokensData.base.fontSize[1], tokensData.base.lineHeight[3], color$2.text["default"], function (_a) {
|
|
5786
5769
|
var $isExpanded = _a.$isExpanded,
|
|
5787
5770
|
$needsExpansion = _a.$needsExpansion;
|
|
5788
5771
|
return $needsExpansion && !$isExpanded ? 'hidden' : 'auto';
|
|
@@ -5798,17 +5781,17 @@ var StyledCodeBlock = styled.pre.withConfig({
|
|
|
5798
5781
|
var CodeBlockWrapper = styled.div.withConfig({
|
|
5799
5782
|
displayName: "CodeBlock__CodeBlockWrapper",
|
|
5800
5783
|
componentId: "sc-1p1t0kp-1"
|
|
5801
|
-
})(templateObject_2$
|
|
5784
|
+
})(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n position: relative;\n display: inline-block;\n width: 100%;\n"], ["\n position: relative;\n display: inline-block;\n width: 100%;\n"])));
|
|
5802
5785
|
var CopyButtonWrapper = styled.div.withConfig({
|
|
5803
5786
|
displayName: "CodeBlock__CopyButtonWrapper",
|
|
5804
5787
|
componentId: "sc-1p1t0kp-2"
|
|
5805
|
-
})(templateObject_3$
|
|
5788
|
+
})(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n position: absolute;\n bottom: ", ";\n right: ", ";\n"], ["\n position: absolute;\n bottom: ", ";\n right: ", ";\n"])), spacing$2.layout.lg, spacing$2.layout.sm);
|
|
5806
5789
|
var ExpandButtonWrapper = styled.div.withConfig({
|
|
5807
5790
|
displayName: "CodeBlock__ExpandButtonWrapper",
|
|
5808
5791
|
componentId: "sc-1p1t0kp-3"
|
|
5809
|
-
})(templateObject_4$
|
|
5792
|
+
})(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n padding: ", " 0;\n position: absolute;\n bottom: 1px;\n left: 1px;\n right: 1px;\n width: calc(100% - 2px);\n margin-bottom: ", ";\n border-radius: ", ";\n transition: opacity 300ms ease-in-out, background 300ms ease-in-out;\n \n ", "\n"], ["\n display: flex;\n justify-content: center;\n padding: ", " 0;\n position: absolute;\n bottom: 1px;\n left: 1px;\n right: 1px;\n width: calc(100% - 2px);\n margin-bottom: ", ";\n border-radius: ", ";\n transition: opacity 300ms ease-in-out, background 300ms ease-in-out;\n \n ", "\n"])), spacing$2.layout.sm, spacing$2.layout.sm, tokensData.base.border.radius[2], function (_a) {
|
|
5810
5793
|
var $hasGradient = _a.$hasGradient;
|
|
5811
|
-
return $hasGradient ? "\n margin-top: -".concat(spacing$2.layout['4xl'], ";\n padding-top: ").concat(spacing$2.layout['4xl'], ";\n background: linear-gradient(\n to bottom,\n transparent 0%,\n ").concat(color$
|
|
5794
|
+
return $hasGradient ? "\n margin-top: -".concat(spacing$2.layout['4xl'], ";\n padding-top: ").concat(spacing$2.layout['4xl'], ";\n background: linear-gradient(\n to bottom,\n transparent 0%,\n ").concat(color$2.background.subtle, " 60%\n );\n ") : "\n background: transparent;\n ";
|
|
5812
5795
|
});
|
|
5813
5796
|
var CopyButton = function CopyButton(_a) {
|
|
5814
5797
|
var text = _a.text,
|
|
@@ -5964,27 +5947,27 @@ var CodeBlock = function CodeBlock(_a) {
|
|
|
5964
5947
|
})]
|
|
5965
5948
|
});
|
|
5966
5949
|
};
|
|
5967
|
-
var templateObject_1$
|
|
5950
|
+
var templateObject_1$h, templateObject_2$f, templateObject_3$e, templateObject_4$c;
|
|
5968
5951
|
|
|
5969
|
-
var StyledHeader = styled.div.withConfig({
|
|
5952
|
+
var StyledHeader$1 = styled.div.withConfig({
|
|
5970
5953
|
displayName: "DateGroup__StyledHeader",
|
|
5971
5954
|
componentId: "sc-9nfm1f-0"
|
|
5972
|
-
})(templateObject_1$
|
|
5955
|
+
})(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: 1px solid ", ";\n \n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border-bottom: 1px solid ", ";\n \n ", "\n"])), tokensData.semantic.spacing.layout.md, tokensData.semantic.spacing.layout.sm, tokensData.semantic.color.background["default"], tokensData.semantic.color.border["default"], function (_a) {
|
|
5973
5956
|
var $sticky = _a.$sticky;
|
|
5974
5957
|
return $sticky && "\n position: sticky;\n top: 0;\n z-index: 10;\n box-shadow: ".concat(tokensData.base.shadow[2], ";\n ");
|
|
5975
5958
|
});
|
|
5976
5959
|
var StyledLeftSection = styled.div.withConfig({
|
|
5977
5960
|
displayName: "DateGroup__StyledLeftSection",
|
|
5978
5961
|
componentId: "sc-9nfm1f-1"
|
|
5979
|
-
})(templateObject_2$
|
|
5962
|
+
})(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])), tokensData.semantic.spacing.layout.sm);
|
|
5980
5963
|
var StyledRightSection = styled.div.withConfig({
|
|
5981
5964
|
displayName: "DateGroup__StyledRightSection",
|
|
5982
5965
|
componentId: "sc-9nfm1f-2"
|
|
5983
|
-
})(templateObject_3$
|
|
5966
|
+
})(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", ";\n"], ["\n display: flex;\n align-items: center;\n gap: ", ";\n"])), tokensData.semantic.spacing.layout.md);
|
|
5984
5967
|
var StyledContent = styled.div.withConfig({
|
|
5985
5968
|
displayName: "DateGroup__StyledContent",
|
|
5986
5969
|
componentId: "sc-9nfm1f-3"
|
|
5987
|
-
})(templateObject_4$
|
|
5970
|
+
})(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n /* Content area for children */\n"], ["\n /* Content area for children */\n"
|
|
5988
5971
|
/**
|
|
5989
5972
|
* DateGroup component
|
|
5990
5973
|
*
|
|
@@ -6025,7 +6008,7 @@ var DateGroup = function DateGroup(_a) {
|
|
|
6025
6008
|
"data-testid": dataTestId,
|
|
6026
6009
|
role: "group",
|
|
6027
6010
|
"aria-label": "Transactions for ".concat(date),
|
|
6028
|
-
children: [jsxRuntime.jsxs(StyledHeader, {
|
|
6011
|
+
children: [jsxRuntime.jsxs(StyledHeader$1, {
|
|
6029
6012
|
"$sticky": sticky,
|
|
6030
6013
|
"data-testid": dataTestId ? "".concat(dataTestId, "-header") : undefined,
|
|
6031
6014
|
children: [jsxRuntime.jsxs(StyledLeftSection, {
|
|
@@ -6056,18 +6039,18 @@ var DateGroup = function DateGroup(_a) {
|
|
|
6056
6039
|
})]
|
|
6057
6040
|
});
|
|
6058
6041
|
};
|
|
6059
|
-
var templateObject_1$
|
|
6042
|
+
var templateObject_1$g, templateObject_2$e, templateObject_3$d, templateObject_4$b;
|
|
6060
6043
|
|
|
6061
|
-
var semantic$
|
|
6044
|
+
var semantic$9 = tokensData.semantic;
|
|
6062
6045
|
var StyledContainer$1 = styled.div.withConfig({
|
|
6063
6046
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
6064
6047
|
return !prop.startsWith('$');
|
|
6065
6048
|
},
|
|
6066
6049
|
displayName: "EmptyState__StyledContainer",
|
|
6067
6050
|
componentId: "sc-1u5hxh-0"
|
|
6068
|
-
})(templateObject_1$
|
|
6051
|
+
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n max-width: 400px;\n margin: 0 auto;\n padding: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n max-width: 400px;\n margin: 0 auto;\n padding: ", ";\n"])), function (_a) {
|
|
6069
6052
|
var $size = _a.$size;
|
|
6070
|
-
return $size === 'small' ? semantic$
|
|
6053
|
+
return $size === 'small' ? semantic$9.spacing.layout['4xl'] : $size === 'large' ? semantic$9.spacing.layout['8xl'] : semantic$9.spacing.layout['6xl'];
|
|
6071
6054
|
});
|
|
6072
6055
|
var StyledIllustration = styled.div.withConfig({
|
|
6073
6056
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -6075,22 +6058,22 @@ var StyledIllustration = styled.div.withConfig({
|
|
|
6075
6058
|
},
|
|
6076
6059
|
displayName: "EmptyState__StyledIllustration",
|
|
6077
6060
|
componentId: "sc-1u5hxh-1"
|
|
6078
|
-
})(templateObject_2$
|
|
6061
|
+
})(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: ", ";\n color: ", ";\n"], ["\n width: ", ";\n height: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: ", ";\n color: ", ";\n"])), function (_a) {
|
|
6079
6062
|
var $size = _a.$size;
|
|
6080
6063
|
return $size === 'small' ? '80px' : $size === 'large' ? '200px' : '120px';
|
|
6081
6064
|
}, function (_a) {
|
|
6082
6065
|
var $size = _a.$size;
|
|
6083
6066
|
return $size === 'small' ? '80px' : $size === 'large' ? '200px' : '120px';
|
|
6084
|
-
}, semantic$
|
|
6067
|
+
}, semantic$9.spacing.layout['2xl'], function (_a) {
|
|
6085
6068
|
var $variant = _a.$variant;
|
|
6086
|
-
return $variant === 'error' ? semantic$
|
|
6069
|
+
return $variant === 'error' ? semantic$9.color.icon.error : $variant === 'success' ? semantic$9.color.icon.success : semantic$9.color.icon.subdued;
|
|
6087
6070
|
});
|
|
6088
6071
|
var StyledTextContainer = styled.div.withConfig({
|
|
6089
6072
|
displayName: "EmptyState__StyledTextContainer",
|
|
6090
6073
|
componentId: "sc-1u5hxh-2"
|
|
6091
|
-
})(templateObject_3$
|
|
6074
|
+
})(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n max-width: 360px;\n margin-bottom: ", ";\n"], ["\n max-width: 360px;\n margin-bottom: ", ";\n"
|
|
6092
6075
|
// Map illustration type to icon name
|
|
6093
|
-
])), semantic$
|
|
6076
|
+
])), semantic$9.spacing.layout['2xl']);
|
|
6094
6077
|
// Map illustration type to icon name
|
|
6095
6078
|
var illustrationToIcon = {
|
|
6096
6079
|
search: 'search',
|
|
@@ -6145,7 +6128,7 @@ var EmptyState = function EmptyState(_a) {
|
|
|
6145
6128
|
children: title
|
|
6146
6129
|
}), jsxRuntime.jsx("div", {
|
|
6147
6130
|
style: {
|
|
6148
|
-
marginTop: semantic$
|
|
6131
|
+
marginTop: semantic$9.spacing.layout.md
|
|
6149
6132
|
},
|
|
6150
6133
|
children: jsxRuntime.jsx(Typography, {
|
|
6151
6134
|
variant: "body",
|
|
@@ -6175,31 +6158,31 @@ var EmptyState = function EmptyState(_a) {
|
|
|
6175
6158
|
})]
|
|
6176
6159
|
});
|
|
6177
6160
|
};
|
|
6178
|
-
var templateObject_1$
|
|
6161
|
+
var templateObject_1$f, templateObject_2$d, templateObject_3$c;
|
|
6179
6162
|
|
|
6180
6163
|
var _a$1 = tokensData.base,
|
|
6181
6164
|
spacing$1 = _a$1.spacing,
|
|
6182
|
-
border$
|
|
6165
|
+
border$2 = _a$1.border;
|
|
6183
6166
|
var FeatureBlockStyled = styled.div.withConfig({
|
|
6184
6167
|
displayName: "FeatureBlock__FeatureBlockStyled",
|
|
6185
6168
|
componentId: "sc-1mi4lso-0"
|
|
6186
|
-
})(templateObject_1$
|
|
6169
|
+
})(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n\n &:hover {\n opacity: 0.8;\n }\n }\n\n a {\n text-decoration: none;\n }\n"], ["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n\n &:hover {\n opacity: 0.8;\n }\n }\n\n a {\n text-decoration: none;\n }\n"])), tokensData.base.breakpoint.md, tokensData.base.breakpoint.lg, spacing$1[12], border$2.radius[6]);
|
|
6187
6170
|
var ImageWrapper = styled.div.withConfig({
|
|
6188
6171
|
displayName: "FeatureBlock__ImageWrapper",
|
|
6189
6172
|
componentId: "sc-1mi4lso-1"
|
|
6190
|
-
})(templateObject_2$
|
|
6173
|
+
})(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n grid-column: span 12;\n\n @media (min-width: ", ") {\n grid-column: span 6;\n }\n"], ["\n grid-column: span 12;\n\n @media (min-width: ", ") {\n grid-column: span 6;\n }\n"])), tokensData.base.breakpoint.lg);
|
|
6191
6174
|
var ContentSection = styled.div.withConfig({
|
|
6192
6175
|
displayName: "FeatureBlock__ContentSection",
|
|
6193
6176
|
componentId: "sc-1mi4lso-2"
|
|
6194
|
-
})(templateObject_3$
|
|
6177
|
+
})(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\n grid-column: span 12;\n margin-top: ", ";\n\n @media (min-width: ", ") {\n grid-column: span 6;\n margin-top: 0;\n padding-right: ", ";\n }\n\n @media (min-width: ", ") {\n padding-right: ", ";\n }\n"], ["\n grid-column: span 12;\n margin-top: ", ";\n\n @media (min-width: ", ") {\n grid-column: span 6;\n margin-top: 0;\n padding-right: ", ";\n }\n\n @media (min-width: ", ") {\n padding-right: ", ";\n }\n"])), spacing$1[6], tokensData.base.breakpoint.lg, spacing$1[8], tokensData.base.breakpoint.xl, spacing$1[24]);
|
|
6195
6178
|
var ButtonWrapper = styled.div.withConfig({
|
|
6196
6179
|
displayName: "FeatureBlock__ButtonWrapper",
|
|
6197
6180
|
componentId: "sc-1mi4lso-3"
|
|
6198
|
-
})(templateObject_4$
|
|
6181
|
+
})(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n button {\n margin-top: ", ";\n }\n"], ["\n button {\n margin-top: ", ";\n }\n"])), spacing$1[4]);
|
|
6199
6182
|
var ContentWrapper = styled.div.withConfig({
|
|
6200
6183
|
displayName: "FeatureBlock__ContentWrapper",
|
|
6201
6184
|
componentId: "sc-1mi4lso-4"
|
|
6202
|
-
})(templateObject_5$
|
|
6185
|
+
})(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n"])));
|
|
6203
6186
|
var FeatureBlock = function FeatureBlock(_a) {
|
|
6204
6187
|
var title = _a.title,
|
|
6205
6188
|
excerpt = _a.excerpt,
|
|
@@ -6256,28 +6239,28 @@ var FeatureBlock = function FeatureBlock(_a) {
|
|
|
6256
6239
|
}), jsxRuntime.jsx(Divider, {})]
|
|
6257
6240
|
});
|
|
6258
6241
|
};
|
|
6259
|
-
var templateObject_1$
|
|
6242
|
+
var templateObject_1$e, templateObject_2$c, templateObject_3$b, templateObject_4$a, templateObject_5$9;
|
|
6260
6243
|
|
|
6261
6244
|
var _a = tokensData.base,
|
|
6262
6245
|
spacing = _a.spacing,
|
|
6263
6246
|
shadow = _a.shadow,
|
|
6264
6247
|
zIndex = _a.zIndex,
|
|
6265
6248
|
_b = tokensData.semantic,
|
|
6266
|
-
color = _b.color,
|
|
6249
|
+
color$1 = _b.color,
|
|
6267
6250
|
typography = _b.typography,
|
|
6268
|
-
border = _b.border,
|
|
6251
|
+
border$1 = _b.border,
|
|
6269
6252
|
input$1 = tokensData.component.input;
|
|
6270
6253
|
var DropdownContainer = styled.div.withConfig({
|
|
6271
6254
|
displayName: "Dropdown__DropdownContainer",
|
|
6272
6255
|
componentId: "sc-kz07c4-0"
|
|
6273
|
-
})(templateObject_1$
|
|
6256
|
+
})(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
6274
6257
|
var DropdownTrigger = styled.button.withConfig({
|
|
6275
6258
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
6276
6259
|
return !prop.startsWith('$');
|
|
6277
6260
|
},
|
|
6278
6261
|
displayName: "Dropdown__DropdownTrigger",
|
|
6279
6262
|
componentId: "sc-kz07c4-1"
|
|
6280
|
-
})(templateObject_2$
|
|
6263
|
+
})(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n font: ", ";\n color: ", ";\n cursor: pointer;\n transition: border-color 200ms ease-in-out, \n outline 200ms ease-in-out;\n \n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n cursor: ", ";\n }\n \n ", "\n"], ["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n font: ", ";\n color: ", ";\n cursor: pointer;\n transition: border-color 200ms ease-in-out, \n outline 200ms ease-in-out;\n \n &:hover:not(:disabled) {\n border-color: ", ";\n }\n \n &:focus {\n border-color: ", ";\n outline: ", ";\n outline-offset: ", ";\n }\n \n &:disabled {\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n cursor: ", ";\n }\n \n ", "\n"])), input$1["default"].paddingY, input$1["default"].paddingX, input$1["default"].backgroundColor, input$1["default"].borderWidth, function (_a) {
|
|
6281
6264
|
var $hasError = _a.$hasError;
|
|
6282
6265
|
return $hasError ? input$1.error.borderColor : input$1["default"].borderColor;
|
|
6283
6266
|
}, input$1["default"].borderRadius, input$1["default"].font, input$1["default"].textColor, function (_a) {
|
|
@@ -6297,7 +6280,7 @@ var DropdownIcon = styled.div.withConfig({
|
|
|
6297
6280
|
},
|
|
6298
6281
|
displayName: "Dropdown__DropdownIcon",
|
|
6299
6282
|
componentId: "sc-kz07c4-2"
|
|
6300
|
-
})(templateObject_3$
|
|
6283
|
+
})(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-left: ", ";\n transition: transform 0.15s ease;\n \n ", "\n"], ["\n display: flex;\n align-items: center;\n margin-left: ", ";\n transition: transform 0.15s ease;\n \n ", "\n"])), spacing[2], function (_a) {
|
|
6301
6284
|
var $isOpen = _a.$isOpen;
|
|
6302
6285
|
return $isOpen && "\n transform: rotate(180deg);\n ";
|
|
6303
6286
|
});
|
|
@@ -6307,7 +6290,7 @@ var DropdownMenu = styled.div.withConfig({
|
|
|
6307
6290
|
},
|
|
6308
6291
|
displayName: "Dropdown__DropdownMenu",
|
|
6309
6292
|
componentId: "sc-kz07c4-3"
|
|
6310
|
-
})(templateObject_4$
|
|
6293
|
+
})(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n z-index: ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n margin-top: ", ";\n overflow: hidden;\n opacity: ", ";\n visibility: ", ";\n transform: ", ";\n transition: all 0.15s ease;\n max-height: 300px;\n overflow-y: auto;\n"], ["\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n z-index: ", ";\n background-color: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n box-shadow: ", ";\n margin-top: ", ";\n overflow: hidden;\n opacity: ", ";\n visibility: ", ";\n transform: ", ";\n transition: all 0.15s ease;\n max-height: 300px;\n overflow-y: auto;\n"])), zIndex[3], input$1["default"].backgroundColor, input$1["default"].borderWidth, input$1["default"].borderColor, input$1["default"].borderRadius, shadow[3], spacing[1], function (_a) {
|
|
6311
6294
|
var $isOpen = _a.$isOpen;
|
|
6312
6295
|
return $isOpen ? 1 : 0;
|
|
6313
6296
|
}, function (_a) {
|
|
@@ -6323,19 +6306,19 @@ var DropdownOption = styled.button.withConfig({
|
|
|
6323
6306
|
},
|
|
6324
6307
|
displayName: "Dropdown__DropdownOption",
|
|
6325
6308
|
componentId: "sc-kz07c4-4"
|
|
6326
|
-
})(templateObject_5$
|
|
6309
|
+
})(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n width: 100%;\n display: block;\n padding: ", " ", ";\n background-color: ", ";\n border: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color 0.15s ease;\n \n &:hover {\n background-color: ", ";\n }\n \n &:focus {\n outline: none;\n background-color: ", ";\n }\n \n &:not(:last-child) {\n border-bottom: ", ";\n }\n"], ["\n width: 100%;\n display: block;\n padding: ", " ", ";\n background-color: ", ";\n border: none;\n font: ", ";\n color: ", ";\n text-align: left;\n cursor: pointer;\n transition: background-color 0.15s ease;\n \n &:hover {\n background-color: ", ";\n }\n \n &:focus {\n outline: none;\n background-color: ", ";\n }\n \n &:not(:last-child) {\n border-bottom: ", ";\n }\n"])), input$1["default"].paddingY, input$1["default"].paddingX, function (_a) {
|
|
6327
6310
|
var $isSelected = _a.$isSelected,
|
|
6328
6311
|
$isFocused = _a.$isFocused;
|
|
6329
|
-
if ($isFocused) return color.background.surface;
|
|
6330
|
-
if ($isSelected) return color.background.surface;
|
|
6312
|
+
if ($isFocused) return color$1.background.surface;
|
|
6313
|
+
if ($isSelected) return color$1.background.surface;
|
|
6331
6314
|
return 'transparent';
|
|
6332
|
-
}, input$1["default"].font, input$1["default"].textColor, color.background.surface, color.background.surface, border.subtle);
|
|
6315
|
+
}, input$1["default"].font, input$1["default"].textColor, color$1.background.surface, color$1.background.surface, border$1.subtle);
|
|
6333
6316
|
var StyledHelperText$3 = styled.div.withConfig({
|
|
6334
6317
|
displayName: "Dropdown__StyledHelperText",
|
|
6335
6318
|
componentId: "sc-kz07c4-5"
|
|
6336
|
-
})(templateObject_6$
|
|
6319
|
+
})(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"], ["\n font: ", ";\n color: ", ";\n margin-top: ", ";\n"])), typography.caption, function (_a) {
|
|
6337
6320
|
var $hasError = _a.$hasError;
|
|
6338
|
-
return $hasError ? color.text.error : color.text.subdued;
|
|
6321
|
+
return $hasError ? color$1.text.error : color$1.text.subdued;
|
|
6339
6322
|
}, spacing[2]);
|
|
6340
6323
|
var Dropdown = function Dropdown(_a) {
|
|
6341
6324
|
var options = _a.options,
|
|
@@ -6510,18 +6493,18 @@ var Dropdown = function Dropdown(_a) {
|
|
|
6510
6493
|
})]
|
|
6511
6494
|
});
|
|
6512
6495
|
};
|
|
6513
|
-
var templateObject_1$
|
|
6496
|
+
var templateObject_1$d, templateObject_2$b, templateObject_3$a, templateObject_4$9, templateObject_5$8, templateObject_6$7;
|
|
6514
6497
|
|
|
6515
|
-
var semantic$
|
|
6498
|
+
var semantic$8 = tokensData.semantic;
|
|
6516
6499
|
var StyledList = styled.ul.withConfig({
|
|
6517
6500
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
6518
6501
|
return !prop.startsWith('$');
|
|
6519
6502
|
},
|
|
6520
6503
|
displayName: "List__StyledList",
|
|
6521
6504
|
componentId: "sc-1irksg5-0"
|
|
6522
|
-
})(templateObject_1$
|
|
6505
|
+
})(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n \n /* Divider styles */\n ", "\n"], ["\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n \n /* Divider styles */\n ", "\n"])), function (_a) {
|
|
6523
6506
|
var $dividers = _a.$dividers;
|
|
6524
|
-
return $dividers && "\n > li:not(:last-child) {\n border-bottom: 1px solid ".concat(semantic$
|
|
6507
|
+
return $dividers && "\n > li:not(:last-child) {\n border-bottom: 1px solid ".concat(semantic$8.color.border["default"], ";\n }\n ");
|
|
6525
6508
|
});
|
|
6526
6509
|
var List = function List(_a) {
|
|
6527
6510
|
var children = _a.children,
|
|
@@ -6543,7 +6526,230 @@ var List = function List(_a) {
|
|
|
6543
6526
|
}));
|
|
6544
6527
|
};
|
|
6545
6528
|
List.displayName = 'List';
|
|
6546
|
-
var templateObject_1$
|
|
6529
|
+
var templateObject_1$c;
|
|
6530
|
+
|
|
6531
|
+
var semantic$7 = tokensData.semantic,
|
|
6532
|
+
base$7 = tokensData.base;
|
|
6533
|
+
var layout = semantic$7.spacing.layout,
|
|
6534
|
+
color = semantic$7.color,
|
|
6535
|
+
border = semantic$7.border,
|
|
6536
|
+
elevation = semantic$7.elevation;
|
|
6537
|
+
semantic$7.motion;
|
|
6538
|
+
// ---------------------------------------------------------------------------
|
|
6539
|
+
// Size map
|
|
6540
|
+
// ---------------------------------------------------------------------------
|
|
6541
|
+
var sizeToWidth = {
|
|
6542
|
+
small: '400px',
|
|
6543
|
+
medium: '560px',
|
|
6544
|
+
large: '720px'
|
|
6545
|
+
};
|
|
6546
|
+
// ---------------------------------------------------------------------------
|
|
6547
|
+
// Animations
|
|
6548
|
+
// ---------------------------------------------------------------------------
|
|
6549
|
+
var fadeIn$1 = styled.keyframes(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n from { opacity: 0; }\n to { opacity: 1; }\n"], ["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
6550
|
+
var scaleIn = styled.keyframes(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n from {\n opacity: 0;\n transform: translate(-50%, -50%) scale(0.95);\n }\n to {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n"], ["\n from {\n opacity: 0;\n transform: translate(-50%, -50%) scale(0.95);\n }\n to {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n"
|
|
6551
|
+
// ---------------------------------------------------------------------------
|
|
6552
|
+
// Styled components
|
|
6553
|
+
// ---------------------------------------------------------------------------
|
|
6554
|
+
])));
|
|
6555
|
+
// ---------------------------------------------------------------------------
|
|
6556
|
+
// Styled components
|
|
6557
|
+
// ---------------------------------------------------------------------------
|
|
6558
|
+
var StyledOverlay$1 = styled.div.withConfig({
|
|
6559
|
+
displayName: "Modal__StyledOverlay",
|
|
6560
|
+
componentId: "sc-1d3g5gh-0"
|
|
6561
|
+
})(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9999;\n ", "\n"], ["\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9999;\n ", "\n"])), styled.css(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["animation: ", " 200ms ease-out;"], ["animation: ", " 200ms ease-out;"])), fadeIn$1));
|
|
6562
|
+
var StyledDialog = styled.div.withConfig({
|
|
6563
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
6564
|
+
return !prop.startsWith('$');
|
|
6565
|
+
},
|
|
6566
|
+
displayName: "Modal__StyledDialog",
|
|
6567
|
+
componentId: "sc-1d3g5gh-1"
|
|
6568
|
+
})(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(1);\n z-index: 10000;\n\n width: ", ";\n max-width: calc(100vw - ", " * 2);\n max-height: calc(100vh - ", " * 2);\n\n display: flex;\n flex-direction: column;\n\n background-color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: hidden;\n\n ", "\n\n /* Auto-fullscreen below md breakpoint (768px) */\n @media (max-width: ", ") {\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n top: 0;\n left: 0;\n transform: none;\n animation: ", " 200ms ease-out;\n }\n\n &:focus {\n outline: none;\n }\n"], ["\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(1);\n z-index: 10000;\n\n width: ", ";\n max-width: calc(100vw - ", " * 2);\n max-height: calc(100vh - ", " * 2);\n\n display: flex;\n flex-direction: column;\n\n background-color: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n overflow: hidden;\n\n ", "\n\n /* Auto-fullscreen below md breakpoint (768px) */\n @media (max-width: ", ") {\n width: 100vw;\n height: 100vh;\n max-width: 100vw;\n max-height: 100vh;\n border-radius: 0;\n top: 0;\n left: 0;\n transform: none;\n animation: ", " 200ms ease-out;\n }\n\n &:focus {\n outline: none;\n }\n"])), function (_a) {
|
|
6569
|
+
var $width = _a.$width;
|
|
6570
|
+
return $width;
|
|
6571
|
+
}, layout.lg, layout.lg, color.background.subtle, border.radius.xl, elevation.overlay, styled.css(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["animation: ", " 200ms ease-out;"], ["animation: ", " 200ms ease-out;"])), scaleIn), base$7.breakpoint.md, fadeIn$1);
|
|
6572
|
+
var StyledHeader = styled.div.withConfig({
|
|
6573
|
+
displayName: "Modal__StyledHeader",
|
|
6574
|
+
componentId: "sc-1d3g5gh-2"
|
|
6575
|
+
})(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", " 0;\n flex-shrink: 0;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", " ", " 0;\n flex-shrink: 0;\n"])), layout.lg, layout.lg);
|
|
6576
|
+
var StyledBody = styled.div.withConfig({
|
|
6577
|
+
displayName: "Modal__StyledBody",
|
|
6578
|
+
componentId: "sc-1d3g5gh-3"
|
|
6579
|
+
})(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n flex: 1 1 auto;\n overflow-y: auto;\n padding: ", " ", ";\n\n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n &::-webkit-scrollbar-track {\n background: ", ";\n }\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"], ["\n flex: 1 1 auto;\n overflow-y: auto;\n padding: ", " ", ";\n\n /* Scrollbar styling */\n &::-webkit-scrollbar {\n width: ", ";\n }\n &::-webkit-scrollbar-track {\n background: ", ";\n }\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: ", ";\n }\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"])), layout.md, layout.lg, base$7.spacing[2], color.background.surface, color.border["default"], border.radius.circle, color.border.strong);
|
|
6580
|
+
var StyledFooter = styled.div.withConfig({
|
|
6581
|
+
displayName: "Modal__StyledFooter",
|
|
6582
|
+
componentId: "sc-1d3g5gh-4"
|
|
6583
|
+
})(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n gap: ", ";\n padding: 0 ", " ", ";\n flex-shrink: 0;\n"], ["\n display: flex;\n justify-content: flex-end;\n gap: ", ";\n padding: 0 ", " ", ";\n flex-shrink: 0;\n"
|
|
6584
|
+
// ---------------------------------------------------------------------------
|
|
6585
|
+
// Component
|
|
6586
|
+
// ---------------------------------------------------------------------------
|
|
6587
|
+
/**
|
|
6588
|
+
* Modal component
|
|
6589
|
+
*
|
|
6590
|
+
* A centred dialog overlay with a title, close button (IconButton), scrollable
|
|
6591
|
+
* body content, and an optional footer with structured action buttons.
|
|
6592
|
+
*
|
|
6593
|
+
* - Renders via `createPortal` to avoid z-index / overflow issues.
|
|
6594
|
+
* - Auto-fullscreen on viewports narrower than 768 px.
|
|
6595
|
+
* - Focus trap, Escape-to-close, overlay-click-to-close.
|
|
6596
|
+
* - Locks body scroll while open.
|
|
6597
|
+
*
|
|
6598
|
+
* Composes: IconButton, Button, Typography, Stack, Divider
|
|
6599
|
+
*/])), layout.sm, layout.lg, layout.lg);
|
|
6600
|
+
// ---------------------------------------------------------------------------
|
|
6601
|
+
// Component
|
|
6602
|
+
// ---------------------------------------------------------------------------
|
|
6603
|
+
/**
|
|
6604
|
+
* Modal component
|
|
6605
|
+
*
|
|
6606
|
+
* A centred dialog overlay with a title, close button (IconButton), scrollable
|
|
6607
|
+
* body content, and an optional footer with structured action buttons.
|
|
6608
|
+
*
|
|
6609
|
+
* - Renders via `createPortal` to avoid z-index / overflow issues.
|
|
6610
|
+
* - Auto-fullscreen on viewports narrower than 768 px.
|
|
6611
|
+
* - Focus trap, Escape-to-close, overlay-click-to-close.
|
|
6612
|
+
* - Locks body scroll while open.
|
|
6613
|
+
*
|
|
6614
|
+
* Composes: IconButton, Button, Typography, Stack, Divider
|
|
6615
|
+
*/
|
|
6616
|
+
var Modal = function Modal(_a) {
|
|
6617
|
+
var isOpen = _a.isOpen,
|
|
6618
|
+
onClose = _a.onClose,
|
|
6619
|
+
title = _a.title,
|
|
6620
|
+
children = _a.children,
|
|
6621
|
+
_b = _a.size,
|
|
6622
|
+
size = _b === void 0 ? 'medium' : _b,
|
|
6623
|
+
actions = _a.actions,
|
|
6624
|
+
_c = _a.closeOnOverlayClick,
|
|
6625
|
+
closeOnOverlayClick = _c === void 0 ? true : _c,
|
|
6626
|
+
_d = _a.closeOnEscape,
|
|
6627
|
+
closeOnEscape = _d === void 0 ? true : _d,
|
|
6628
|
+
dataTestId = _a["data-testid"],
|
|
6629
|
+
ariaLabel = _a["aria-label"],
|
|
6630
|
+
ariaDescribedBy = _a["aria-describedby"];
|
|
6631
|
+
var dialogRef = React.useRef(null);
|
|
6632
|
+
var previousFocusRef = React.useRef(null);
|
|
6633
|
+
// -----------------------------------------------------------------------
|
|
6634
|
+
// Focus & scroll-lock management
|
|
6635
|
+
// -----------------------------------------------------------------------
|
|
6636
|
+
React.useEffect(function () {
|
|
6637
|
+
var _a;
|
|
6638
|
+
if (isOpen) {
|
|
6639
|
+
previousFocusRef.current = document.activeElement;
|
|
6640
|
+
// Short delay so the animation can start before we shift focus
|
|
6641
|
+
var timer_1 = setTimeout(function () {
|
|
6642
|
+
var _a;
|
|
6643
|
+
return (_a = dialogRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
6644
|
+
}, 100);
|
|
6645
|
+
document.body.style.overflow = 'hidden';
|
|
6646
|
+
return function () {
|
|
6647
|
+
clearTimeout(timer_1);
|
|
6648
|
+
};
|
|
6649
|
+
} else {
|
|
6650
|
+
(_a = previousFocusRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
6651
|
+
document.body.style.overflow = '';
|
|
6652
|
+
}
|
|
6653
|
+
return function () {
|
|
6654
|
+
document.body.style.overflow = '';
|
|
6655
|
+
};
|
|
6656
|
+
}, [isOpen]);
|
|
6657
|
+
// -----------------------------------------------------------------------
|
|
6658
|
+
// Keyboard handling (Escape + focus trap)
|
|
6659
|
+
// -----------------------------------------------------------------------
|
|
6660
|
+
var handleKeyDown = function handleKeyDown(event) {
|
|
6661
|
+
var _a;
|
|
6662
|
+
if (closeOnEscape && event.key === 'Escape') {
|
|
6663
|
+
event.preventDefault();
|
|
6664
|
+
onClose();
|
|
6665
|
+
}
|
|
6666
|
+
if (event.key === 'Tab') {
|
|
6667
|
+
var focusableElements = (_a = dialogRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
6668
|
+
if (!focusableElements || focusableElements.length === 0) return;
|
|
6669
|
+
var first = focusableElements[0];
|
|
6670
|
+
var last = focusableElements[focusableElements.length - 1];
|
|
6671
|
+
if (event.shiftKey && document.activeElement === first) {
|
|
6672
|
+
event.preventDefault();
|
|
6673
|
+
last.focus();
|
|
6674
|
+
} else if (!event.shiftKey && document.activeElement === last) {
|
|
6675
|
+
event.preventDefault();
|
|
6676
|
+
first.focus();
|
|
6677
|
+
}
|
|
6678
|
+
}
|
|
6679
|
+
};
|
|
6680
|
+
// -----------------------------------------------------------------------
|
|
6681
|
+
// Overlay click
|
|
6682
|
+
// -----------------------------------------------------------------------
|
|
6683
|
+
var handleOverlayClick = function handleOverlayClick(event) {
|
|
6684
|
+
if (closeOnOverlayClick && event.target === event.currentTarget) {
|
|
6685
|
+
onClose();
|
|
6686
|
+
}
|
|
6687
|
+
};
|
|
6688
|
+
// -----------------------------------------------------------------------
|
|
6689
|
+
// Render
|
|
6690
|
+
// -----------------------------------------------------------------------
|
|
6691
|
+
if (!isOpen) return null;
|
|
6692
|
+
var titleId = dataTestId ? "".concat(dataTestId, "-title") : 'modal-title';
|
|
6693
|
+
var width = sizeToWidth[size];
|
|
6694
|
+
var modal = jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
6695
|
+
children: [jsxRuntime.jsx(StyledOverlay$1, {
|
|
6696
|
+
onClick: handleOverlayClick,
|
|
6697
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-overlay") : 'modal-overlay'
|
|
6698
|
+
}), jsxRuntime.jsxs(StyledDialog, {
|
|
6699
|
+
ref: dialogRef,
|
|
6700
|
+
role: "dialog",
|
|
6701
|
+
"aria-modal": "true",
|
|
6702
|
+
"aria-label": ariaLabel || title,
|
|
6703
|
+
"aria-labelledby": titleId,
|
|
6704
|
+
"aria-describedby": ariaDescribedBy,
|
|
6705
|
+
tabIndex: -1,
|
|
6706
|
+
"$width": width,
|
|
6707
|
+
onKeyDown: handleKeyDown,
|
|
6708
|
+
"data-testid": dataTestId,
|
|
6709
|
+
children: [jsxRuntime.jsxs(StyledHeader, {
|
|
6710
|
+
children: [jsxRuntime.jsx("span", {
|
|
6711
|
+
id: titleId,
|
|
6712
|
+
children: jsxRuntime.jsx(Typography, {
|
|
6713
|
+
variant: "h3",
|
|
6714
|
+
children: title
|
|
6715
|
+
})
|
|
6716
|
+
}), jsxRuntime.jsx(IconButton, {
|
|
6717
|
+
variant: "naked",
|
|
6718
|
+
iconName: "close",
|
|
6719
|
+
"aria-label": "Close modal",
|
|
6720
|
+
onClick: onClose,
|
|
6721
|
+
size: "medium",
|
|
6722
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-close") : 'modal-close'
|
|
6723
|
+
})]
|
|
6724
|
+
}), jsxRuntime.jsx(Divider, {
|
|
6725
|
+
size: "small"
|
|
6726
|
+
}), jsxRuntime.jsx(StyledBody, {
|
|
6727
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-body") : 'modal-body',
|
|
6728
|
+
children: children
|
|
6729
|
+
}), actions && actions.length > 0 && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
6730
|
+
children: [jsxRuntime.jsx(Divider, {
|
|
6731
|
+
size: "small"
|
|
6732
|
+
}), jsxRuntime.jsx(StyledFooter, {
|
|
6733
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-footer") : 'modal-footer',
|
|
6734
|
+
children: actions.map(function (action, index) {
|
|
6735
|
+
return jsxRuntime.jsx(Button, {
|
|
6736
|
+
onClick: action.onClick,
|
|
6737
|
+
variant: action.variant || 'secondary',
|
|
6738
|
+
iconName: action.icon,
|
|
6739
|
+
disabled: action.disabled,
|
|
6740
|
+
size: "medium",
|
|
6741
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-action-").concat(index) : "modal-action-".concat(index),
|
|
6742
|
+
children: action.label
|
|
6743
|
+
}, "".concat(action.label, "-").concat(index));
|
|
6744
|
+
})
|
|
6745
|
+
})]
|
|
6746
|
+
})]
|
|
6747
|
+
})]
|
|
6748
|
+
});
|
|
6749
|
+
return /*#__PURE__*/reactDom.createPortal(modal, document.body);
|
|
6750
|
+
};
|
|
6751
|
+
Modal.displayName = 'Modal';
|
|
6752
|
+
var templateObject_1$b, templateObject_2$a, templateObject_3$9, templateObject_4$8, templateObject_5$7, templateObject_6$6, templateObject_7$5, templateObject_8$4, templateObject_9$3;
|
|
6547
6753
|
|
|
6548
6754
|
var input = tokensData.component.input;
|
|
6549
6755
|
var StyledInputBase = styled.input.withConfig({
|
|
@@ -8725,6 +8931,7 @@ exports.IconButton = IconButton;
|
|
|
8725
8931
|
exports.LegacyChip = LegacyChip;
|
|
8726
8932
|
exports.List = List;
|
|
8727
8933
|
exports.ListItem = ListItem;
|
|
8934
|
+
exports.Modal = Modal;
|
|
8728
8935
|
exports.MoneyDisplay = MoneyDisplay;
|
|
8729
8936
|
exports.NumberInput = NumberInput;
|
|
8730
8937
|
exports.PageTitle = PageTitle;
|