@common-origin/design-system 1.5.0 → 1.7.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/README.md +41 -9
- package/dist/components/atoms/Chip/BooleanChip.d.ts +23 -0
- package/dist/components/atoms/Chip/Chip.d.ts +22 -9
- package/dist/components/atoms/Chip/FilterChip.d.ts +27 -0
- package/dist/components/atoms/Chip/index.d.ts +2 -0
- package/dist/components/atoms/Chip/shared/ChipBase.d.ts +8 -0
- package/dist/components/atoms/Chip/shared/types.d.ts +18 -0
- package/dist/components/atoms/Chip/shared/utils.d.ts +47 -0
- package/dist/components/atoms/Divider/Divider.d.ts +30 -0
- package/dist/components/atoms/Divider/index.d.ts +1 -0
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/index.esm.js +296 -69
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +298 -69
- package/dist/index.js.map +1 -1
- package/dist/types/icons.d.ts +1 -1
- package/package.json +3 -2
- package/dist/components/atoms/CoverImage/CoverImage.d.ts +0 -11
- package/dist/components/atoms/CoverImage/index.d.ts +0 -1
- package/dist/components/atoms/SectionSeparator/SectionSeparator.d.ts +0 -26
- package/dist/components/atoms/SectionSeparator/index.d.ts +0 -1
- package/dist/components/dateFormatter.d.ts +0 -7
package/dist/index.esm.js
CHANGED
|
@@ -758,14 +758,14 @@ var AvatarImage = styled.img.withConfig({
|
|
|
758
758
|
},
|
|
759
759
|
displayName: "Avatar__AvatarImage",
|
|
760
760
|
componentId: "sc-ezn4ax-1"
|
|
761
|
-
})(templateObject_2$
|
|
761
|
+
})(templateObject_2$a || (templateObject_2$a = __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"])), tokens.base.border.radius.circle);
|
|
762
762
|
var AvatarInitials = styled.span.withConfig({
|
|
763
763
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
764
764
|
return !prop.startsWith('$');
|
|
765
765
|
},
|
|
766
766
|
displayName: "Avatar__AvatarInitials",
|
|
767
767
|
componentId: "sc-ezn4ax-2"
|
|
768
|
-
})(templateObject_3$
|
|
768
|
+
})(templateObject_3$8 || (templateObject_3$8 = __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"
|
|
769
769
|
// Helper function to get initials from name
|
|
770
770
|
])), tokens.base.fontFamily.body, tokens.base.fontWeight[3], function (_a) {
|
|
771
771
|
var $size = _a.$size;
|
|
@@ -828,7 +828,7 @@ var Avatar = function Avatar(_a) {
|
|
|
828
828
|
"aria-hidden": "true"
|
|
829
829
|
}, initials));
|
|
830
830
|
};
|
|
831
|
-
var templateObject_1$l, templateObject_2$
|
|
831
|
+
var templateObject_1$l, templateObject_2$a, templateObject_3$8;
|
|
832
832
|
|
|
833
833
|
React.createElement;
|
|
834
834
|
var StyledBox = styled.div.withConfig({
|
|
@@ -842,9 +842,9 @@ var StyledBox = styled.div.withConfig({
|
|
|
842
842
|
])), function (props) {
|
|
843
843
|
return props.$display && css(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
|
|
844
844
|
}, function (props) {
|
|
845
|
-
return props.$flexDirection && css(templateObject_2$
|
|
845
|
+
return props.$flexDirection && css(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
|
|
846
846
|
}, function (props) {
|
|
847
|
-
return props.$justifyContent && css(templateObject_3$
|
|
847
|
+
return props.$justifyContent && css(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
|
|
848
848
|
}, function (props) {
|
|
849
849
|
return props.$alignItems && css(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["align-items: ", ";"], ["align-items: ", ";"])), props.$alignItems);
|
|
850
850
|
}, function (props) {
|
|
@@ -1030,7 +1030,7 @@ var BoxTransform = function BoxTransform(props) {
|
|
|
1030
1030
|
}, rest), children);
|
|
1031
1031
|
};
|
|
1032
1032
|
var Box = BoxTransform;
|
|
1033
|
-
var templateObject_1$k, templateObject_2$
|
|
1033
|
+
var templateObject_1$k, templateObject_2$9, templateObject_3$7, templateObject_4$5, templateObject_5$4, templateObject_6$2, templateObject_7$2, templateObject_8$1, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24$1, templateObject_25$1, templateObject_26$1, templateObject_27$1, templateObject_28$1, templateObject_29$1, templateObject_30$1, templateObject_31$1, templateObject_32$1, templateObject_33$1, templateObject_34$1, templateObject_35$1, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43;
|
|
1034
1034
|
|
|
1035
1035
|
var add = {
|
|
1036
1036
|
path: "M13 11H19V13H13V19H11V13H5V11H11V5H13V11Z",
|
|
@@ -1060,6 +1060,10 @@ var caret = {
|
|
|
1060
1060
|
path: "m14.77 11.808-4.458-3.715A.8.8 0 0 0 9 8.708v6.584a.8.8 0 0 0 1.312.614l4.458-3.714a.25.25 0 0 0 0-.384Z",
|
|
1061
1061
|
name: "caret"
|
|
1062
1062
|
};
|
|
1063
|
+
var check = {
|
|
1064
|
+
path: "M9.16699 18.375L4.40039 14.7998L5.59961 13.2002L8.83301 15.625L17.2256 5.36719L18.7744 6.63281L9.16699 18.375Z",
|
|
1065
|
+
name: "check"
|
|
1066
|
+
};
|
|
1063
1067
|
var close = {
|
|
1064
1068
|
path: "M19.4141 6L13.4141 12L19.4141 18L18 19.4141L12 13.4141L6 19.4141L4.58594 18L10.5859 12L4.58594 6L6 4.58594L12 10.5859L18 4.58594L19.4141 6Z",
|
|
1065
1069
|
name: "close"
|
|
@@ -1100,6 +1104,10 @@ var link = {
|
|
|
1100
1104
|
path: "M10 7C10.5523 7 11 7.44772 11 8C11 8.55228 10.5523 9 10 9H7C5.34315 9 4 10.3431 4 12C4 13.6569 5.34315 15 7 15H10C10.5523 15 11 15.4477 11 16C11 16.5523 10.5523 17 10 17H7C4.23858 17 2 14.7614 2 12C2 9.23858 4.23858 7 7 7H10Z M17 7C19.7614 7 22 9.23858 22 12C22 14.7614 19.7614 17 17 17H14C13.4477 17 13 16.5523 13 16C13 15.4477 13.4477 15 14 15H17C18.6569 15 20 13.6569 20 12C20 10.3431 18.6569 9 17 9H14C13.4477 9 13 8.55228 13 8C13 7.44772 13.4477 7 14 7H17Z M16 11C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H8C7.44772 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11H16Z",
|
|
1101
1105
|
name: "link"
|
|
1102
1106
|
};
|
|
1107
|
+
var table = {
|
|
1108
|
+
path: "M20 10H16V19H19C19.4995 19 19.7737 18.9982 19.9639 18.9727C19.9662 18.9724 19.9685 18.971 19.9707 18.9707C19.971 18.9685 19.9724 18.9662 19.9727 18.9639C19.9982 18.7737 20 18.4995 20 18V10ZM22 18C22 18.4431 22.0018 18.876 21.9541 19.2305C21.9026 19.6137 21.7773 20.0509 21.4141 20.4141C21.0509 20.7773 20.6137 20.9026 20.2305 20.9541C19.876 21.0018 19.4431 21 19 21H14V8.00001H22V18Z M10 8.00001V21H5.00001C4.55687 21 4.12397 21.0018 3.76954 20.9541C3.38634 20.9026 2.94916 20.7773 2.58595 20.4141C2.22273 20.0509 2.09743 19.6137 2.04591 19.2305C1.99825 18.876 2.00001 18.4431 2.00001 18V8.00001H10ZM4.00001 18C4.00001 18.4995 4.00181 18.7737 4.02735 18.9639C4.02766 18.9661 4.02803 18.9685 4.02833 18.9707C4.03085 18.9711 4.03351 18.9723 4.03614 18.9727C4.22633 18.9982 4.50051 19 5.00001 19H8.00001V10H4.00001V18Z M16 8.00001V21H8.00001V8.00001H16ZM10 19H14V10H10V19Z M20 6.00001C20 5.50051 19.9982 5.22633 19.9727 5.03614C19.9723 5.03351 19.9711 5.03085 19.9707 5.02833C19.9685 5.02803 19.9661 5.02766 19.9639 5.02735C19.7737 5.00181 19.4995 5.00001 19 5.00001H5.00001C4.50051 5.00001 4.22633 5.00181 4.03614 5.02735C4.03355 5.0277 4.03081 5.02798 4.02833 5.02833C4.02798 5.03081 4.0277 5.03355 4.02735 5.03614C4.00181 5.22633 4.00001 5.50051 4.00001 6.00001V8.00001H20V6.00001ZM22 10H2.00001V6.00001C2.00001 5.55687 1.99825 5.12397 2.04591 4.76954C2.09743 4.38634 2.22273 3.94916 2.58595 3.58595C2.94916 3.22273 3.38634 3.09743 3.76954 3.04591C4.12397 2.99825 4.55687 3.00001 5.00001 3.00001H19C19.4431 3.00001 19.876 2.99825 20.2305 3.04591C20.6137 3.09743 21.0509 3.22273 21.4141 3.58595C21.7773 3.94916 21.9026 4.38634 21.9541 4.76954C22.0018 5.12397 22 5.55687 22 6.00001V10Z",
|
|
1109
|
+
name: "table"
|
|
1110
|
+
};
|
|
1103
1111
|
var userBox = {
|
|
1104
1112
|
path: "M12 6C14.2091 6 16 7.79086 16 10C16 12.2091 14.2091 14 12 14C9.79086 14 8 12.2091 8 10C8 7.79086 9.79086 6 12 6ZM12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8Z M14 2C17.7712 2 19.6566 2.0003 20.8281 3.17188C21.9997 4.34345 22 6.22876 22 10V14C22 17.7712 21.9997 19.6566 20.8281 20.8281C19.803 21.8533 18.2315 21.982 15.3281 21.998L14 22H10L8.67188 21.998C5.8719 21.9826 4.31033 21.8625 3.2832 20.9346L3.17188 20.8281C2.14675 19.803 2.01797 18.2315 2.00195 15.3281L2 14V10C2 6.34627 2 4.46248 3.06543 3.2832L3.17188 3.17188C4.34345 2.0003 6.22876 2 10 2H14ZM12 18C10.8577 18 9.76263 18.3153 8.88574 18.876C8.39459 19.1901 7.99492 19.5688 7.69043 19.9834C8.33459 19.9972 9.09233 20 10 20H14C14.9072 20 15.6646 19.9971 16.3086 19.9834C16.0041 19.5689 15.6052 19.19 15.1143 18.876C14.2374 18.3153 13.1423 18 12 18ZM10 4C8.05784 4 6.80197 4.00454 5.87695 4.12891C5.00986 4.24554 4.73816 4.43372 4.58594 4.58594C4.43372 4.73816 4.24554 5.00986 4.12891 5.87695C4.00454 6.80197 4 8.05784 4 10V14C4 15.9422 4.00454 17.198 4.12891 18.123C4.24554 18.9901 4.43372 19.2618 4.58594 19.4141C4.71234 19.5405 4.92163 19.6893 5.48535 19.8037C5.96679 18.7505 6.77822 17.8493 7.80859 17.1904C9.02742 16.4111 10.5007 16 12 16C13.4993 16 14.9726 16.4111 16.1914 17.1904C17.2217 17.8492 18.0322 18.7507 18.5137 19.8037C19.0781 19.6893 19.2876 19.5405 19.4141 19.4141C19.5663 19.2618 19.7545 18.9901 19.8711 18.123C19.9955 17.198 20 15.9422 20 14V10C20 8.05784 19.9955 6.80197 19.8711 5.87695C19.7545 5.00986 19.5663 4.73816 19.4141 4.58594C19.2618 4.43372 18.9901 4.24554 18.123 4.12891C17.198 4.00454 15.9422 4 14 4H10Z",
|
|
1105
1113
|
name: "userBox"
|
|
@@ -1112,8 +1120,13 @@ var iconsData = {
|
|
|
1112
1120
|
arrowRight: arrowRight,
|
|
1113
1121
|
back: back,
|
|
1114
1122
|
caret: caret,
|
|
1123
|
+
check: check,
|
|
1115
1124
|
close: close,
|
|
1116
1125
|
directionRight: directionRight,
|
|
1126
|
+
"export": {
|
|
1127
|
+
path: "M7.70703 10.707L11 7.41406L11 14C11 14.5523 11.4477 15 12 15C12.5523 15 13 14.5523 13 14V7.41406L16.293 10.707L17.707 9.29297L12 3.58594L6.29297 9.29297L7.70703 10.707Z M4 17V16H6V17C6 17.5523 6.44772 18 7 18H17C17.5523 18 18 17.5523 18 17V16H20V17C20 18.6051 18.7394 19.9158 17.1543 19.9961L17 20H7C5.34315 20 4 18.6569 4 17Z",
|
|
1128
|
+
name: "export"
|
|
1129
|
+
},
|
|
1117
1130
|
menu: menu,
|
|
1118
1131
|
pause: pause,
|
|
1119
1132
|
play: play,
|
|
@@ -1122,6 +1135,7 @@ var iconsData = {
|
|
|
1122
1135
|
message: message,
|
|
1123
1136
|
copy: copy,
|
|
1124
1137
|
link: link,
|
|
1138
|
+
table: table,
|
|
1125
1139
|
userBox: userBox
|
|
1126
1140
|
};
|
|
1127
1141
|
|
|
@@ -1235,7 +1249,7 @@ var StyledLink = styled.a.withConfig({
|
|
|
1235
1249
|
},
|
|
1236
1250
|
displayName: "Button__StyledLink",
|
|
1237
1251
|
componentId: "sc-1eiuum9-1"
|
|
1238
|
-
})(templateObject_2$
|
|
1252
|
+
})(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"
|
|
1239
1253
|
// Helper function to get icon size based on button size
|
|
1240
1254
|
])), baseButtonStyles, button.primary.borderRadius, getVariantStyles, getSizeStyles);
|
|
1241
1255
|
// Helper function to get icon size based on button size
|
|
@@ -1328,12 +1342,18 @@ var Button = function Button(_a) {
|
|
|
1328
1342
|
"data-testid": dataTestId
|
|
1329
1343
|
}, buttonProps), renderButtonContent(children, iconName, size));
|
|
1330
1344
|
};
|
|
1331
|
-
var templateObject_1$i, templateObject_2$
|
|
1345
|
+
var templateObject_1$i, templateObject_2$8;
|
|
1332
1346
|
|
|
1333
|
-
React.createElement;
|
|
1334
1347
|
var chip = tokens.component.chip;
|
|
1335
|
-
// Helper
|
|
1336
|
-
var getVariantStylesAsObject = function getVariantStylesAsObject(variant) {
|
|
1348
|
+
// Helper function to get variant styles as objects for CSS custom properties
|
|
1349
|
+
var getVariantStylesAsObject = function getVariantStylesAsObject(variant, selected) {
|
|
1350
|
+
// Boolean chips with selected state get special background
|
|
1351
|
+
if (selected) {
|
|
1352
|
+
return {
|
|
1353
|
+
backgroundColor: tokens.semantic.color.background['interactive-subtle'],
|
|
1354
|
+
color: chip["default"].textColor
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1337
1357
|
switch (variant) {
|
|
1338
1358
|
case 'emphasis':
|
|
1339
1359
|
return {
|
|
@@ -1358,6 +1378,7 @@ var getVariantStylesAsObject = function getVariantStylesAsObject(variant) {
|
|
|
1358
1378
|
};
|
|
1359
1379
|
}
|
|
1360
1380
|
};
|
|
1381
|
+
// Helper function to get size styles as objects for CSS custom properties
|
|
1361
1382
|
var getSizeStylesAsObject = function getSizeStylesAsObject(size) {
|
|
1362
1383
|
switch (size) {
|
|
1363
1384
|
case 'small':
|
|
@@ -1365,11 +1386,6 @@ var getSizeStylesAsObject = function getSizeStylesAsObject(size) {
|
|
|
1365
1386
|
font: chip.sizes.small.font,
|
|
1366
1387
|
padding: chip.sizes.small.padding
|
|
1367
1388
|
};
|
|
1368
|
-
case 'large':
|
|
1369
|
-
return {
|
|
1370
|
-
font: chip.sizes.large.font,
|
|
1371
|
-
padding: chip.sizes.large.padding
|
|
1372
|
-
};
|
|
1373
1389
|
case 'medium':
|
|
1374
1390
|
default:
|
|
1375
1391
|
return {
|
|
@@ -1378,27 +1394,51 @@ var getSizeStylesAsObject = function getSizeStylesAsObject(size) {
|
|
|
1378
1394
|
};
|
|
1379
1395
|
}
|
|
1380
1396
|
};
|
|
1397
|
+
|
|
1398
|
+
React.createElement;
|
|
1381
1399
|
// Base styled component using CSS variables to avoid prop leaking
|
|
1382
|
-
var
|
|
1400
|
+
var BaseChipStyled = styled.span.withConfig({
|
|
1401
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1402
|
+
return !prop.startsWith('$');
|
|
1403
|
+
},
|
|
1404
|
+
displayName: "ChipBase__BaseChipStyled",
|
|
1405
|
+
componentId: "sc-moa6zc-0"
|
|
1406
|
+
})(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: max-content;\n border-radius: 12px;\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: ", ";\n \n /* Use CSS custom properties set by wrapper */\n background-color: var(--chip-bg-color);\n color: var(--chip-text-color);\n font: var(--chip-font);\n padding: var(--chip-padding);\n opacity: var(--chip-opacity, 1);\n cursor: var(--chip-cursor, default);\n \n &:hover {\n opacity: var(--chip-hover-opacity, var(--chip-opacity, 1));\n }\n \n &:active {\n opacity: var(--chip-active-opacity, var(--chip-opacity, 1));\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\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: 12px;\n box-sizing: border-box;\n user-select: none;\n white-space: nowrap;\n transition: ", ";\n \n /* Use CSS custom properties set by wrapper */\n background-color: var(--chip-bg-color);\n color: var(--chip-text-color);\n font: var(--chip-font);\n padding: var(--chip-padding);\n opacity: var(--chip-opacity, 1);\n cursor: var(--chip-cursor, default);\n \n &:hover {\n opacity: var(--chip-hover-opacity, var(--chip-opacity, 1));\n }\n \n &:active {\n opacity: var(--chip-active-opacity, var(--chip-opacity, 1));\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n"
|
|
1407
|
+
// Icon container for selected indicator or leading icons
|
|
1408
|
+
])), tokens.semantic.motion.interactive, chip.variants.interactive.backgroundColor);
|
|
1409
|
+
// Icon container for selected indicator or leading icons
|
|
1410
|
+
var IconContainer = styled.span.withConfig({
|
|
1411
|
+
displayName: "ChipBase__IconContainer",
|
|
1412
|
+
componentId: "sc-moa6zc-1"
|
|
1413
|
+
})(templateObject_2$7 || (templateObject_2$7 = __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"
|
|
1414
|
+
// Close button for dismissible chips
|
|
1415
|
+
])), tokens.semantic.spacing.layout.sm);
|
|
1416
|
+
// Close button for dismissible chips
|
|
1417
|
+
var CloseButton = styled.button.withConfig({
|
|
1383
1418
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1384
1419
|
return !prop.startsWith('$');
|
|
1385
1420
|
},
|
|
1386
|
-
displayName: "
|
|
1387
|
-
componentId: "sc-
|
|
1388
|
-
})(
|
|
1421
|
+
displayName: "ChipBase__CloseButton",
|
|
1422
|
+
componentId: "sc-moa6zc-2"
|
|
1423
|
+
})(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: ", ";\n background: transparent;\n border: none;\n padding: 0;\n cursor: ", ";\n opacity: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n opacity: 0.7;\n }\n \n &:active:not(:disabled) {\n opacity: 0.9;\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n border-radius: 2px;\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: 0;\n cursor: ", ";\n opacity: ", ";\n color: inherit;\n transition: ", ";\n \n &:hover:not(:disabled) {\n opacity: 0.7;\n }\n \n &:active:not(:disabled) {\n opacity: 0.9;\n }\n \n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n border-radius: 2px;\n }\n"
|
|
1389
1424
|
// Wrapper component that applies styles via CSS custom properties
|
|
1390
|
-
])),
|
|
1425
|
+
])), tokens.semantic.spacing.layout.sm, function (props) {
|
|
1426
|
+
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
1427
|
+
}, function (props) {
|
|
1428
|
+
return props.$disabled ? '0.6' : '1';
|
|
1429
|
+
}, tokens.semantic.motion.transition.fast, chip.variants.interactive.backgroundColor);
|
|
1391
1430
|
// Wrapper component that applies styles via CSS custom properties
|
|
1392
|
-
var
|
|
1431
|
+
var StyledChipWrapper = function StyledChipWrapper(_a) {
|
|
1393
1432
|
var $variant = _a.$variant,
|
|
1394
1433
|
$size = _a.$size,
|
|
1395
1434
|
$disabled = _a.$disabled,
|
|
1396
1435
|
$clickable = _a.$clickable,
|
|
1436
|
+
$selected = _a.$selected,
|
|
1397
1437
|
children = _a.children,
|
|
1398
1438
|
style = _a.style,
|
|
1399
|
-
htmlProps = __rest(_a, ["$variant", "$size", "$disabled", "$clickable", "children", "style"]);
|
|
1439
|
+
htmlProps = __rest(_a, ["$variant", "$size", "$disabled", "$clickable", "$selected", "children", "style"]);
|
|
1400
1440
|
// Get styles for variant and size
|
|
1401
|
-
var variantStyles = getVariantStylesAsObject($variant);
|
|
1441
|
+
var variantStyles = getVariantStylesAsObject($variant, $selected);
|
|
1402
1442
|
var sizeStyles = getSizeStylesAsObject($size);
|
|
1403
1443
|
// Create CSS custom properties object
|
|
1404
1444
|
var cssProps = {
|
|
@@ -1411,38 +1451,47 @@ var StyledChip = function StyledChip(_a) {
|
|
|
1411
1451
|
'--chip-hover-opacity': $disabled ? '0.6' : $clickable ? '0.8' : '1',
|
|
1412
1452
|
'--chip-active-opacity': $disabled ? '0.6' : $clickable ? '0.9' : '1'
|
|
1413
1453
|
};
|
|
1414
|
-
return /*#__PURE__*/React.createElement(
|
|
1454
|
+
return /*#__PURE__*/React.createElement(BaseChipStyled, _extends({
|
|
1415
1455
|
style: __assign(__assign({}, cssProps), style)
|
|
1416
1456
|
}, htmlProps), children);
|
|
1417
1457
|
};
|
|
1458
|
+
var templateObject_1$h, templateObject_2$7, templateObject_3$6;
|
|
1459
|
+
|
|
1460
|
+
React.createElement;
|
|
1461
|
+
/**
|
|
1462
|
+
* Chip - Compact element for displaying tags, categories, and labels
|
|
1463
|
+
*
|
|
1464
|
+
* Use this component for static display chips or simple interactive chips.
|
|
1465
|
+
* For specialized filtering patterns, use:
|
|
1466
|
+
* - FilterChip: Dismissible chips for showing applied filters
|
|
1467
|
+
* - BooleanChip: Toggleable chips for quick filter controls
|
|
1468
|
+
*
|
|
1469
|
+
* Variants:
|
|
1470
|
+
* - default: Standard gray background
|
|
1471
|
+
* - emphasis: High-contrast dark background
|
|
1472
|
+
* - subtle: Light background for secondary info
|
|
1473
|
+
* - interactive: Blue background with hover states
|
|
1474
|
+
*/
|
|
1418
1475
|
var Chip = function Chip(_a) {
|
|
1419
1476
|
var children = _a.children,
|
|
1420
1477
|
_b = _a.variant,
|
|
1421
1478
|
variant = _b === void 0 ? 'default' : _b,
|
|
1422
|
-
|
|
1423
|
-
size =
|
|
1479
|
+
_c = _a.size,
|
|
1480
|
+
size = _c === void 0 ? 'medium' : _c,
|
|
1424
1481
|
onClick = _a.onClick,
|
|
1425
|
-
|
|
1426
|
-
disabled =
|
|
1482
|
+
_d = _a.disabled,
|
|
1483
|
+
disabled = _d === void 0 ? false : _d,
|
|
1427
1484
|
dataTestId = _a["data-testid"],
|
|
1428
1485
|
ariaLabel = _a["aria-label"],
|
|
1429
1486
|
ariaDescribedBy = _a["aria-describedby"],
|
|
1430
1487
|
role = _a.role,
|
|
1431
1488
|
title = _a.title,
|
|
1432
|
-
// Legacy prop support
|
|
1433
1489
|
props = __rest(_a, ["children", "variant", "size", "onClick", "disabled", 'data-testid', 'aria-label', 'aria-describedby', "role", "title"]);
|
|
1434
1490
|
var isClickable = Boolean(onClick && !disabled);
|
|
1435
|
-
// Map legacy variants to new variants
|
|
1491
|
+
// Map legacy variants to new variants
|
|
1436
1492
|
var normalizedVariant = variant === 'light' ? 'default' : variant === 'dark' ? 'emphasis' : variant;
|
|
1437
|
-
// Support legacy title prop
|
|
1493
|
+
// Support legacy title prop
|
|
1438
1494
|
var content = children !== undefined ? children : title;
|
|
1439
|
-
// Remove styled-only props from the rest
|
|
1440
|
-
var _g = props;
|
|
1441
|
-
_g.variant;
|
|
1442
|
-
_g.size;
|
|
1443
|
-
_g.disabled;
|
|
1444
|
-
_g.clickable;
|
|
1445
|
-
var htmlProps = __rest(_g, ["variant", "size", "disabled", "clickable"]);
|
|
1446
1495
|
var handleClick = function handleClick() {
|
|
1447
1496
|
if (onClick && !disabled) {
|
|
1448
1497
|
onClick();
|
|
@@ -1454,33 +1503,177 @@ var Chip = function Chip(_a) {
|
|
|
1454
1503
|
handleClick();
|
|
1455
1504
|
}
|
|
1456
1505
|
};
|
|
1457
|
-
return /*#__PURE__*/React.createElement(
|
|
1506
|
+
return /*#__PURE__*/React.createElement(StyledChipWrapper, _extends({
|
|
1458
1507
|
$variant: normalizedVariant,
|
|
1459
1508
|
$size: size,
|
|
1460
1509
|
$disabled: disabled || undefined,
|
|
1461
1510
|
$clickable: isClickable || undefined,
|
|
1462
1511
|
onClick: isClickable ? handleClick : undefined,
|
|
1463
|
-
onKeyDown:
|
|
1512
|
+
onKeyDown: handleKeyDown,
|
|
1464
1513
|
tabIndex: isClickable ? 0 : undefined,
|
|
1465
1514
|
role: role || (isClickable ? 'button' : undefined),
|
|
1466
1515
|
"aria-label": ariaLabel,
|
|
1467
1516
|
"aria-describedby": ariaDescribedBy,
|
|
1468
1517
|
"aria-disabled": disabled ? 'true' : undefined,
|
|
1469
1518
|
"data-testid": dataTestId
|
|
1470
|
-
},
|
|
1519
|
+
}, props), content);
|
|
1471
1520
|
};
|
|
1472
|
-
// Legacy component for backward compatibility
|
|
1473
1521
|
var LegacyChip = function LegacyChip(_a) {
|
|
1474
1522
|
var title = _a.title,
|
|
1475
1523
|
_b = _a.variant,
|
|
1476
1524
|
variant = _b === void 0 ? 'light' : _b;
|
|
1477
|
-
// Map legacy variants to new variants
|
|
1478
1525
|
var newVariant = variant === 'dark' ? 'emphasis' : 'default';
|
|
1479
1526
|
return /*#__PURE__*/React.createElement(Chip, {
|
|
1480
1527
|
variant: newVariant
|
|
1481
1528
|
}, title);
|
|
1482
1529
|
};
|
|
1483
|
-
|
|
1530
|
+
|
|
1531
|
+
React.createElement;
|
|
1532
|
+
/**
|
|
1533
|
+
* FilterChip - Chip for displaying filters with selected state and optional dismissal
|
|
1534
|
+
*
|
|
1535
|
+
* Use this component to show filters that can be selected/deselected.
|
|
1536
|
+
* When selected, displays a checkmark and light blue background.
|
|
1537
|
+
* Optionally dismissible when onDismiss is provided.
|
|
1538
|
+
*
|
|
1539
|
+
* Features:
|
|
1540
|
+
* - Shows checkmark icon when selected
|
|
1541
|
+
* - Light blue background when selected
|
|
1542
|
+
* - Optional close (×) button when onDismiss is provided
|
|
1543
|
+
* - Keyboard dismissal with Delete or Backspace keys (when dismissible)
|
|
1544
|
+
* - Non-clickable body (only close button is interactive when present)
|
|
1545
|
+
* - Uses subtle/interactive background styling based on selected state
|
|
1546
|
+
* - Announces as "status" to screen readers
|
|
1547
|
+
*/
|
|
1548
|
+
var FilterChip = function FilterChip(_a) {
|
|
1549
|
+
var children = _a.children,
|
|
1550
|
+
_b = _a.selected,
|
|
1551
|
+
selected = _b === void 0 ? false : _b,
|
|
1552
|
+
onDismiss = _a.onDismiss,
|
|
1553
|
+
_c = _a.size,
|
|
1554
|
+
size = _c === void 0 ? 'medium' : _c,
|
|
1555
|
+
_d = _a.disabled,
|
|
1556
|
+
disabled = _d === void 0 ? false : _d,
|
|
1557
|
+
dataTestId = _a["data-testid"],
|
|
1558
|
+
ariaLabel = _a["aria-label"],
|
|
1559
|
+
ariaDescribedBy = _a["aria-describedby"],
|
|
1560
|
+
role = _a.role,
|
|
1561
|
+
props = __rest(_a, ["children", "selected", "onDismiss", "size", "disabled", 'data-testid', 'aria-label', 'aria-describedby', "role"]);
|
|
1562
|
+
var isDismissible = Boolean(onDismiss);
|
|
1563
|
+
var handleDismiss = function handleDismiss(event) {
|
|
1564
|
+
event.stopPropagation(); // Prevent event bubbling
|
|
1565
|
+
if (!disabled && onDismiss) {
|
|
1566
|
+
onDismiss();
|
|
1567
|
+
}
|
|
1568
|
+
};
|
|
1569
|
+
var handleKeyDown = function handleKeyDown(event) {
|
|
1570
|
+
// Handle dismiss with Delete or Backspace (only when dismissible)
|
|
1571
|
+
if (!disabled && isDismissible && onDismiss && (event.key === 'Delete' || event.key === 'Backspace')) {
|
|
1572
|
+
event.preventDefault();
|
|
1573
|
+
onDismiss();
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
var handleCloseKeyDown = function handleCloseKeyDown(event) {
|
|
1577
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
1578
|
+
event.preventDefault();
|
|
1579
|
+
if (!disabled && onDismiss) onDismiss();
|
|
1580
|
+
}
|
|
1581
|
+
};
|
|
1582
|
+
// Generate accessible label for close button
|
|
1583
|
+
var closeButtonLabel = typeof children === 'string' ? "Remove ".concat(children) : 'Remove filter';
|
|
1584
|
+
return /*#__PURE__*/React.createElement(StyledChipWrapper, _extends({
|
|
1585
|
+
$variant: "subtle",
|
|
1586
|
+
$size: size,
|
|
1587
|
+
$disabled: disabled || undefined,
|
|
1588
|
+
$clickable: false,
|
|
1589
|
+
$selected: selected,
|
|
1590
|
+
onKeyDown: handleKeyDown,
|
|
1591
|
+
role: role || 'status',
|
|
1592
|
+
"aria-label": ariaLabel,
|
|
1593
|
+
"aria-describedby": ariaDescribedBy,
|
|
1594
|
+
"aria-disabled": disabled ? 'true' : undefined,
|
|
1595
|
+
"data-testid": dataTestId
|
|
1596
|
+
}, props), selected && /*#__PURE__*/React.createElement(IconContainer, {
|
|
1597
|
+
"aria-hidden": "true"
|
|
1598
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1599
|
+
name: "check",
|
|
1600
|
+
size: "sm"
|
|
1601
|
+
})), children, isDismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1602
|
+
type: "button",
|
|
1603
|
+
onClick: handleDismiss,
|
|
1604
|
+
onKeyDown: handleCloseKeyDown,
|
|
1605
|
+
disabled: disabled,
|
|
1606
|
+
$disabled: disabled,
|
|
1607
|
+
"aria-label": closeButtonLabel,
|
|
1608
|
+
tabIndex: 0,
|
|
1609
|
+
"data-testid": dataTestId ? "".concat(dataTestId, "-close") : undefined
|
|
1610
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1611
|
+
name: "close",
|
|
1612
|
+
size: "sm"
|
|
1613
|
+
})));
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
React.createElement;
|
|
1617
|
+
/**
|
|
1618
|
+
* BooleanChip - Toggleable chip for quick filter controls
|
|
1619
|
+
*
|
|
1620
|
+
* Use this component for multi-select filter controls where users can
|
|
1621
|
+
* see which options are active. Common in table filtering patterns where
|
|
1622
|
+
* users toggle filters on/off.
|
|
1623
|
+
*
|
|
1624
|
+
* Features:
|
|
1625
|
+
* - Shows checkmark icon when selected
|
|
1626
|
+
* - Entire chip is clickable to toggle
|
|
1627
|
+
* - Keyboard activation with Space or Enter
|
|
1628
|
+
* - Uses checkbox role with aria-checked
|
|
1629
|
+
* - Visual background change when selected
|
|
1630
|
+
*/
|
|
1631
|
+
var BooleanChip = function BooleanChip(_a) {
|
|
1632
|
+
var children = _a.children,
|
|
1633
|
+
selected = _a.selected,
|
|
1634
|
+
onClick = _a.onClick,
|
|
1635
|
+
_b = _a.size,
|
|
1636
|
+
size = _b === void 0 ? 'medium' : _b,
|
|
1637
|
+
_c = _a.disabled,
|
|
1638
|
+
disabled = _c === void 0 ? false : _c,
|
|
1639
|
+
dataTestId = _a["data-testid"],
|
|
1640
|
+
ariaLabel = _a["aria-label"],
|
|
1641
|
+
ariaDescribedBy = _a["aria-describedby"],
|
|
1642
|
+
props = __rest(_a, ["children", "selected", "onClick", "size", "disabled", 'data-testid', 'aria-label', 'aria-describedby']);
|
|
1643
|
+
var handleClick = function handleClick() {
|
|
1644
|
+
if (!disabled) {
|
|
1645
|
+
onClick();
|
|
1646
|
+
}
|
|
1647
|
+
};
|
|
1648
|
+
var handleKeyDown = function handleKeyDown(event) {
|
|
1649
|
+
// Handle activation with Space or Enter
|
|
1650
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
1651
|
+
event.preventDefault();
|
|
1652
|
+
handleClick();
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
return /*#__PURE__*/React.createElement(StyledChipWrapper, _extends({
|
|
1656
|
+
$variant: "subtle",
|
|
1657
|
+
$size: size,
|
|
1658
|
+
$disabled: disabled || undefined,
|
|
1659
|
+
$clickable: !disabled,
|
|
1660
|
+
$selected: selected,
|
|
1661
|
+
onClick: handleClick,
|
|
1662
|
+
onKeyDown: handleKeyDown,
|
|
1663
|
+
tabIndex: disabled ? undefined : 0,
|
|
1664
|
+
role: "checkbox",
|
|
1665
|
+
"aria-checked": selected ? 'true' : 'false',
|
|
1666
|
+
"aria-label": ariaLabel,
|
|
1667
|
+
"aria-describedby": ariaDescribedBy,
|
|
1668
|
+
"aria-disabled": disabled ? 'true' : undefined,
|
|
1669
|
+
"data-testid": dataTestId
|
|
1670
|
+
}, props), selected && /*#__PURE__*/React.createElement(IconContainer, {
|
|
1671
|
+
"aria-hidden": "true"
|
|
1672
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1673
|
+
name: "check",
|
|
1674
|
+
size: "sm"
|
|
1675
|
+
})), children);
|
|
1676
|
+
};
|
|
1484
1677
|
|
|
1485
1678
|
// Breakpoints using base tokens
|
|
1486
1679
|
var breakpoints$1 = {
|
|
@@ -1768,49 +1961,78 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
1768
1961
|
var templateObject_1$c, templateObject_2$5, templateObject_3$4, templateObject_4$3, templateObject_5$3, templateObject_6$1, templateObject_7$1;
|
|
1769
1962
|
|
|
1770
1963
|
React.createElement;
|
|
1771
|
-
var
|
|
1964
|
+
var StyledDivider = styled.div.withConfig({
|
|
1772
1965
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1773
1966
|
return !prop.startsWith('$');
|
|
1774
1967
|
},
|
|
1775
|
-
displayName: "
|
|
1776
|
-
componentId: "sc-
|
|
1777
|
-
})(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n border: none;\n
|
|
1968
|
+
displayName: "Divider__StyledDivider",
|
|
1969
|
+
componentId: "sc-1l0c8ja-0"
|
|
1970
|
+
})(templateObject_1$b || (templateObject_1$b = __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"
|
|
1778
1971
|
/**
|
|
1779
|
-
*
|
|
1972
|
+
* Divider is an atomic component that provides visual separation between content sections.
|
|
1780
1973
|
*
|
|
1781
1974
|
* Features:
|
|
1782
1975
|
* - Multiple variants (default, strong, minimal)
|
|
1783
1976
|
* - Size variations for different spacing needs
|
|
1977
|
+
* - Horizontal and vertical orientations
|
|
1784
1978
|
* - Semantic token usage for consistent styling
|
|
1785
1979
|
* - Full accessibility support
|
|
1786
1980
|
*
|
|
1787
1981
|
* @example
|
|
1788
1982
|
* ```tsx
|
|
1789
|
-
* <
|
|
1790
|
-
* <
|
|
1791
|
-
* <
|
|
1983
|
+
* <Divider />
|
|
1984
|
+
* <Divider variant="strong" size="xlarge" />
|
|
1985
|
+
* <Divider variant="minimal" />
|
|
1986
|
+
* <Divider orientation="vertical" />
|
|
1792
1987
|
* ```
|
|
1793
1988
|
*/])), function (_a) {
|
|
1989
|
+
var _b = _a.$orientation,
|
|
1990
|
+
$orientation = _b === void 0 ? 'horizontal' : _b;
|
|
1991
|
+
if ($orientation === 'vertical') {
|
|
1992
|
+
return "\n display: inline-block;\n height: auto;\n align-self: stretch;\n border-left: 1px solid;\n border-top: none;\n ";
|
|
1993
|
+
}
|
|
1994
|
+
return "border-top: 1px solid;";
|
|
1995
|
+
}, function (_a) {
|
|
1794
1996
|
var _b = _a.$variant,
|
|
1795
|
-
$variant = _b === void 0 ? 'default' : _b
|
|
1997
|
+
$variant = _b === void 0 ? 'default' : _b,
|
|
1998
|
+
_c = _a.$orientation,
|
|
1999
|
+
$orientation = _c === void 0 ? 'horizontal' : _c;
|
|
2000
|
+
var borderProperty = $orientation === 'vertical' ? 'border-left' : 'border-top';
|
|
1796
2001
|
switch ($variant) {
|
|
1797
2002
|
case 'strong':
|
|
1798
|
-
return "
|
|
2003
|
+
return "".concat(borderProperty, ": ").concat(tokens.component.separator.variants.strong.border, ";");
|
|
1799
2004
|
case 'minimal':
|
|
1800
|
-
return "
|
|
2005
|
+
return "".concat(borderProperty, ": ").concat(tokens.component.separator.variants.minimal.border, ";");
|
|
1801
2006
|
case 'default':
|
|
1802
2007
|
default:
|
|
1803
|
-
return "
|
|
2008
|
+
return "".concat(borderProperty, ": ").concat(tokens.component.separator.variants["default"].border, ";");
|
|
1804
2009
|
}
|
|
1805
2010
|
}, function (_a) {
|
|
1806
2011
|
var _b = _a.$size,
|
|
1807
2012
|
$size = _b === void 0 ? 'large' : _b,
|
|
1808
2013
|
_c = _a.$variant,
|
|
1809
|
-
$variant = _c === void 0 ? 'default' : _c
|
|
1810
|
-
|
|
1811
|
-
|
|
2014
|
+
$variant = _c === void 0 ? 'default' : _c,
|
|
2015
|
+
_d = _a.$orientation,
|
|
2016
|
+
$orientation = _d === void 0 ? 'horizontal' : _d;
|
|
2017
|
+
if ($variant === 'minimal' && $orientation === 'horizontal') {
|
|
2018
|
+
// Minimal variant always uses its predefined spacing for horizontal
|
|
1812
2019
|
return "margin: ".concat(tokens.component.separator.variants.minimal.margin, ";");
|
|
1813
2020
|
}
|
|
2021
|
+
if ($orientation === 'vertical') {
|
|
2022
|
+
// Vertical orientation uses horizontal margins (left/right)
|
|
2023
|
+
switch ($size) {
|
|
2024
|
+
case 'small':
|
|
2025
|
+
return "margin: 0 ".concat(tokens.semantic.spacing.separator.sm, ";");
|
|
2026
|
+
case 'medium':
|
|
2027
|
+
return "margin: 0 ".concat(tokens.semantic.spacing.separator.md, ";");
|
|
2028
|
+
case 'xlarge':
|
|
2029
|
+
return "margin: 0 ".concat(tokens.semantic.spacing.separator.xl, ";");
|
|
2030
|
+
case 'large':
|
|
2031
|
+
default:
|
|
2032
|
+
return "margin: 0 ".concat(tokens.semantic.spacing.separator.lg, ";");
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
// Horizontal orientation uses vertical margins (top/bottom)
|
|
1814
2036
|
switch ($size) {
|
|
1815
2037
|
case 'small':
|
|
1816
2038
|
return "margin: ".concat(tokens.component.separator.sizes.small.margin, ";");
|
|
@@ -1824,33 +2046,38 @@ var StyledSeparator = styled.div.withConfig({
|
|
|
1824
2046
|
}
|
|
1825
2047
|
});
|
|
1826
2048
|
/**
|
|
1827
|
-
*
|
|
2049
|
+
* Divider is an atomic component that provides visual separation between content sections.
|
|
1828
2050
|
*
|
|
1829
2051
|
* Features:
|
|
1830
2052
|
* - Multiple variants (default, strong, minimal)
|
|
1831
2053
|
* - Size variations for different spacing needs
|
|
2054
|
+
* - Horizontal and vertical orientations
|
|
1832
2055
|
* - Semantic token usage for consistent styling
|
|
1833
2056
|
* - Full accessibility support
|
|
1834
2057
|
*
|
|
1835
2058
|
* @example
|
|
1836
2059
|
* ```tsx
|
|
1837
|
-
* <
|
|
1838
|
-
* <
|
|
1839
|
-
* <
|
|
2060
|
+
* <Divider />
|
|
2061
|
+
* <Divider variant="strong" size="xlarge" />
|
|
2062
|
+
* <Divider variant="minimal" />
|
|
2063
|
+
* <Divider orientation="vertical" />
|
|
1840
2064
|
* ```
|
|
1841
2065
|
*/
|
|
1842
|
-
var
|
|
2066
|
+
var Divider = function Divider(_a) {
|
|
1843
2067
|
var _b = _a.variant,
|
|
1844
2068
|
variant = _b === void 0 ? 'default' : _b,
|
|
1845
2069
|
_c = _a.size,
|
|
1846
2070
|
size = _c === void 0 ? 'large' : _c,
|
|
2071
|
+
_d = _a.orientation,
|
|
2072
|
+
orientation = _d === void 0 ? 'horizontal' : _d,
|
|
1847
2073
|
dataTestId = _a["data-testid"];
|
|
1848
|
-
return /*#__PURE__*/React.createElement(
|
|
2074
|
+
return /*#__PURE__*/React.createElement(StyledDivider, {
|
|
1849
2075
|
$variant: variant,
|
|
1850
2076
|
$size: size,
|
|
2077
|
+
$orientation: orientation,
|
|
1851
2078
|
"data-testid": dataTestId,
|
|
1852
2079
|
role: "separator",
|
|
1853
|
-
"aria-orientation":
|
|
2080
|
+
"aria-orientation": orientation
|
|
1854
2081
|
});
|
|
1855
2082
|
};
|
|
1856
2083
|
var templateObject_1$b;
|
|
@@ -2310,7 +2537,7 @@ var DesignCard = function DesignCard(_a) {
|
|
|
2310
2537
|
url: readMoreHref
|
|
2311
2538
|
}, readMoreText) : /*#__PURE__*/React.createElement(Button, {
|
|
2312
2539
|
onClick: onReadMore
|
|
2313
|
-
}, readMoreText)))))), /*#__PURE__*/React.createElement(
|
|
2540
|
+
}, readMoreText)))))), /*#__PURE__*/React.createElement(Divider, null));
|
|
2314
2541
|
}
|
|
2315
2542
|
return null;
|
|
2316
2543
|
};
|
|
@@ -2809,5 +3036,5 @@ var ResponsiveGrid = function ResponsiveGrid(_a) {
|
|
|
2809
3036
|
};
|
|
2810
3037
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35;
|
|
2811
3038
|
|
|
2812
|
-
export { ArtCard, Avatar, Box, Breadcrumbs, Button, Chip, ChipGroup, CodeBlock, Container, DateFormatter, DesignCard, Dropdown, Grid, GridCol, Icon, IconButton, LegacyChip, PageTitle, Picture, ProgressBar, ReleaseCard, ResponsiveGrid,
|
|
3039
|
+
export { ArtCard, Avatar, BooleanChip, Box, Breadcrumbs, Button, Chip, ChipGroup, CodeBlock, Container, DateFormatter, DesignCard, Divider, Dropdown, FilterChip, Grid, GridCol, Icon, IconButton, LegacyChip, PageTitle, Picture, ProgressBar, ReleaseCard, ResponsiveGrid, Stack, Typography, iconsData, tokens };
|
|
2813
3040
|
//# sourceMappingURL=index.esm.js.map
|