@common-origin/design-system 1.10.0 → 1.11.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/Checkbox/Checkbox.d.ts +64 -0
- package/dist/components/molecules/Checkbox/SelectableInputBase.d.ts +33 -0
- package/dist/components/molecules/Checkbox/index.d.ts +3 -0
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/index.esm.js +261 -56
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +260 -54
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState,
|
|
1
|
+
import React, { useState, forwardRef, useId, useRef, useEffect } from 'react';
|
|
2
2
|
import styled, { keyframes, css } from 'styled-components';
|
|
3
3
|
import Link from 'next/link';
|
|
4
4
|
import { parseISO, format } from 'date-fns';
|
|
@@ -784,7 +784,7 @@ var AvatarContainer = styled.div.withConfig({
|
|
|
784
784
|
},
|
|
785
785
|
displayName: "Avatar__AvatarContainer",
|
|
786
786
|
componentId: "sc-ezn4ax-0"
|
|
787
|
-
})(templateObject_1$
|
|
787
|
+
})(templateObject_1$r || (templateObject_1$r = __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) {
|
|
788
788
|
var $size = _a.$size;
|
|
789
789
|
return tokensData.semantic.size.avatar[$size];
|
|
790
790
|
}, function (_a) {
|
|
@@ -797,14 +797,14 @@ var AvatarImage = styled.img.withConfig({
|
|
|
797
797
|
},
|
|
798
798
|
displayName: "Avatar__AvatarImage",
|
|
799
799
|
componentId: "sc-ezn4ax-1"
|
|
800
|
-
})(templateObject_2$
|
|
800
|
+
})(templateObject_2$f || (templateObject_2$f = __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"])), tokensData.base.border.radius.circle);
|
|
801
801
|
var AvatarInitials = styled.span.withConfig({
|
|
802
802
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
803
803
|
return !prop.startsWith('$');
|
|
804
804
|
},
|
|
805
805
|
displayName: "Avatar__AvatarInitials",
|
|
806
806
|
componentId: "sc-ezn4ax-2"
|
|
807
|
-
})(templateObject_3$
|
|
807
|
+
})(templateObject_3$b || (templateObject_3$b = __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"
|
|
808
808
|
// Helper function to get initials from name
|
|
809
809
|
])), tokensData.base.fontFamily.body, tokensData.base.fontWeight[3], function (_a) {
|
|
810
810
|
var $size = _a.$size;
|
|
@@ -867,7 +867,7 @@ var Avatar = function Avatar(_a) {
|
|
|
867
867
|
"aria-hidden": "true"
|
|
868
868
|
}, initials));
|
|
869
869
|
};
|
|
870
|
-
var templateObject_1$
|
|
870
|
+
var templateObject_1$r, templateObject_2$f, templateObject_3$b;
|
|
871
871
|
|
|
872
872
|
React.createElement;
|
|
873
873
|
var _a$5 = tokensData.semantic,
|
|
@@ -935,7 +935,7 @@ var StyledTypography = styled.span.withConfig({
|
|
|
935
935
|
},
|
|
936
936
|
displayName: "Typography__StyledTypography",
|
|
937
937
|
componentId: "sc-17mqo4k-0"
|
|
938
|
-
})(templateObject_1$
|
|
938
|
+
})(templateObject_1$q || (templateObject_1$q = __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"
|
|
939
939
|
/**
|
|
940
940
|
* Typography is an atomic component for rendering text with semantic meaning and consistent styling.
|
|
941
941
|
*
|
|
@@ -1002,23 +1002,23 @@ var Typography = function Typography(_a) {
|
|
|
1002
1002
|
"data-testid": dataTestId
|
|
1003
1003
|
}, children);
|
|
1004
1004
|
};
|
|
1005
|
-
var templateObject_1$
|
|
1005
|
+
var templateObject_1$q;
|
|
1006
1006
|
|
|
1007
1007
|
React.createElement;
|
|
1008
1008
|
var color$3 = tokensData.semantic.color;
|
|
1009
1009
|
tokensData.base.shadow;
|
|
1010
|
-
var scaleIn = keyframes(templateObject_1$
|
|
1010
|
+
var scaleIn = keyframes(templateObject_1$p || (templateObject_1$p = __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"])));
|
|
1011
1011
|
var BadgeWrapper = styled.span.withConfig({
|
|
1012
1012
|
displayName: "Badge__BadgeWrapper",
|
|
1013
1013
|
componentId: "sc-tjz4pp-0"
|
|
1014
|
-
})(templateObject_2$
|
|
1014
|
+
})(templateObject_2$e || (templateObject_2$e = __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"])));
|
|
1015
1015
|
var BadgeIndicator = styled.span.withConfig({
|
|
1016
1016
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1017
1017
|
return !prop.startsWith('$');
|
|
1018
1018
|
},
|
|
1019
1019
|
displayName: "Badge__BadgeIndicator",
|
|
1020
1020
|
componentId: "sc-tjz4pp-1"
|
|
1021
|
-
})(templateObject_3$
|
|
1021
|
+
})(templateObject_3$a || (templateObject_3$a = __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) {
|
|
1022
1022
|
return props.$isVisible ? 'flex' : 'none';
|
|
1023
1023
|
}, function (props) {
|
|
1024
1024
|
return props.$isDot ? '8px' : '16px';
|
|
@@ -1043,7 +1043,7 @@ var BadgeIndicator = styled.span.withConfig({
|
|
|
1043
1043
|
var ScreenReaderOnly = styled.span.withConfig({
|
|
1044
1044
|
displayName: "Badge__ScreenReaderOnly",
|
|
1045
1045
|
componentId: "sc-tjz4pp-2"
|
|
1046
|
-
})(templateObject_4$
|
|
1046
|
+
})(templateObject_4$8 || (templateObject_4$8 = __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"])));
|
|
1047
1047
|
var Badge = function Badge(_a) {
|
|
1048
1048
|
var children = _a.children,
|
|
1049
1049
|
_b = _a.count,
|
|
@@ -1074,7 +1074,7 @@ var Badge = function Badge(_a) {
|
|
|
1074
1074
|
color: "inverse"
|
|
1075
1075
|
}, displayCount), /*#__PURE__*/React.createElement(ScreenReaderOnly, null, label)));
|
|
1076
1076
|
};
|
|
1077
|
-
var templateObject_1$
|
|
1077
|
+
var templateObject_1$p, templateObject_2$e, templateObject_3$a, templateObject_4$8;
|
|
1078
1078
|
|
|
1079
1079
|
React.createElement;
|
|
1080
1080
|
var StyledBox = styled.div.withConfig({
|
|
@@ -1086,13 +1086,13 @@ var StyledBox = styled.div.withConfig({
|
|
|
1086
1086
|
})(templateObject_43 || (templateObject_43 = __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 // 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 // Overflow\n ", "\n ", "\n ", "\n"
|
|
1087
1087
|
// Transform component that maps clean props to $-prefixed props for styled-components
|
|
1088
1088
|
])), function (props) {
|
|
1089
|
-
return props.$display && css(templateObject_1$
|
|
1089
|
+
return props.$display && css(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
|
|
1090
1090
|
}, function (props) {
|
|
1091
|
-
return props.$flexDirection && css(templateObject_2$
|
|
1091
|
+
return props.$flexDirection && css(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
|
|
1092
1092
|
}, function (props) {
|
|
1093
|
-
return props.$justifyContent && css(templateObject_3$
|
|
1093
|
+
return props.$justifyContent && css(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["justify-content: ", ";"], ["justify-content: ", ";"])), props.$justifyContent);
|
|
1094
1094
|
}, function (props) {
|
|
1095
|
-
return props.$alignItems && css(templateObject_4$
|
|
1095
|
+
return props.$alignItems && css(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["align-items: ", ";"], ["align-items: ", ";"])), props.$alignItems);
|
|
1096
1096
|
}, function (props) {
|
|
1097
1097
|
return props.$flexWrap && css(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["flex-wrap: ", ";"], ["flex-wrap: ", ";"])), props.$flexWrap);
|
|
1098
1098
|
}, function (props) {
|
|
@@ -1276,7 +1276,7 @@ var BoxTransform = function BoxTransform(props) {
|
|
|
1276
1276
|
}, rest), children);
|
|
1277
1277
|
};
|
|
1278
1278
|
var Box = BoxTransform;
|
|
1279
|
-
var templateObject_1$
|
|
1279
|
+
var templateObject_1$o, templateObject_2$d, templateObject_3$9, templateObject_4$7, 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;
|
|
1280
1280
|
|
|
1281
1281
|
var add = {
|
|
1282
1282
|
path: "M13 11H19V13H13V19H11V13H5V11H11V5H13V11Z",
|
|
@@ -1407,7 +1407,7 @@ var IconStyled = styled.span.withConfig({
|
|
|
1407
1407
|
},
|
|
1408
1408
|
displayName: "Icon__IconStyled",
|
|
1409
1409
|
componentId: "sc-1105czq-0"
|
|
1410
|
-
})(templateObject_1$
|
|
1410
|
+
})(templateObject_1$n || (templateObject_1$n = __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) {
|
|
1411
1411
|
var $size = _a.$size;
|
|
1412
1412
|
return tokensData.semantic.size.icon[$size];
|
|
1413
1413
|
}, function (_a) {
|
|
@@ -1471,7 +1471,7 @@ var Icon = function Icon(_a) {
|
|
|
1471
1471
|
d: iconData.path
|
|
1472
1472
|
})));
|
|
1473
1473
|
};
|
|
1474
|
-
var templateObject_1$
|
|
1474
|
+
var templateObject_1$n;
|
|
1475
1475
|
|
|
1476
1476
|
React.createElement;
|
|
1477
1477
|
var button = tokensData.component.button,
|
|
@@ -1503,14 +1503,14 @@ var StyledButton = styled.button.withConfig({
|
|
|
1503
1503
|
},
|
|
1504
1504
|
displayName: "Button__StyledButton",
|
|
1505
1505
|
componentId: "sc-1eiuum9-0"
|
|
1506
|
-
})(templateObject_1$
|
|
1506
|
+
})(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"])), baseButtonStyles, button.primary.borderRadius, getVariantStyles, getSizeStyles);
|
|
1507
1507
|
var StyledLink = styled.a.withConfig({
|
|
1508
1508
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1509
1509
|
return !prop.startsWith('$');
|
|
1510
1510
|
},
|
|
1511
1511
|
displayName: "Button__StyledLink",
|
|
1512
1512
|
componentId: "sc-1eiuum9-1"
|
|
1513
|
-
})(templateObject_2$
|
|
1513
|
+
})(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"
|
|
1514
1514
|
// Helper function to get icon size based on button size
|
|
1515
1515
|
])), baseButtonStyles, button.primary.borderRadius, getVariantStyles, getSizeStyles);
|
|
1516
1516
|
// Helper function to get icon size based on button size
|
|
@@ -1603,7 +1603,7 @@ var Button = function Button(_a) {
|
|
|
1603
1603
|
"data-testid": dataTestId
|
|
1604
1604
|
}, buttonProps), renderButtonContent(children, iconName, size));
|
|
1605
1605
|
};
|
|
1606
|
-
var templateObject_1$
|
|
1606
|
+
var templateObject_1$m, templateObject_2$c;
|
|
1607
1607
|
|
|
1608
1608
|
var chip = tokensData.component.chip;
|
|
1609
1609
|
// Helper function to get variant styles as objects for CSS custom properties
|
|
@@ -1664,14 +1664,14 @@ var BaseChipStyled = styled.span.withConfig({
|
|
|
1664
1664
|
},
|
|
1665
1665
|
displayName: "ChipBase__BaseChipStyled",
|
|
1666
1666
|
componentId: "sc-moa6zc-0"
|
|
1667
|
-
})(templateObject_1$
|
|
1667
|
+
})(templateObject_1$l || (templateObject_1$l = __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: width ", ";\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: width ", ";\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"
|
|
1668
1668
|
// Icon container for selected indicator or leading icons
|
|
1669
1669
|
])), tokensData.semantic.motion.interactive, chip.variants.interactive.backgroundColor);
|
|
1670
1670
|
// Icon container for selected indicator or leading icons
|
|
1671
1671
|
var IconContainer = styled.span.withConfig({
|
|
1672
1672
|
displayName: "ChipBase__IconContainer",
|
|
1673
1673
|
componentId: "sc-moa6zc-1"
|
|
1674
|
-
})(templateObject_2$
|
|
1674
|
+
})(templateObject_2$b || (templateObject_2$b = __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"
|
|
1675
1675
|
// Close button for dismissible chips
|
|
1676
1676
|
])), tokensData.semantic.spacing.layout.sm);
|
|
1677
1677
|
// Close button for dismissible chips
|
|
@@ -1681,7 +1681,7 @@ var CloseButton = styled.button.withConfig({
|
|
|
1681
1681
|
},
|
|
1682
1682
|
displayName: "ChipBase__CloseButton",
|
|
1683
1683
|
componentId: "sc-moa6zc-2"
|
|
1684
|
-
})(templateObject_3$
|
|
1684
|
+
})(templateObject_3$8 || (templateObject_3$8 = __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"
|
|
1685
1685
|
// Wrapper component that applies styles via CSS custom properties
|
|
1686
1686
|
])), tokensData.semantic.spacing.layout.sm, function (props) {
|
|
1687
1687
|
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
@@ -1716,7 +1716,7 @@ var StyledChipWrapper = function StyledChipWrapper(_a) {
|
|
|
1716
1716
|
style: __assign(__assign({}, cssProps), style)
|
|
1717
1717
|
}, htmlProps), children);
|
|
1718
1718
|
};
|
|
1719
|
-
var templateObject_1$
|
|
1719
|
+
var templateObject_1$l, templateObject_2$b, templateObject_3$8;
|
|
1720
1720
|
|
|
1721
1721
|
React.createElement;
|
|
1722
1722
|
/**
|
|
@@ -1960,32 +1960,32 @@ var spacing$3 = tokensData.semantic.spacing;
|
|
|
1960
1960
|
var StyledContainer = styled.div.withConfig({
|
|
1961
1961
|
displayName: "Container__StyledContainer",
|
|
1962
1962
|
componentId: "sc-17dbj6n-0"
|
|
1963
|
-
})(templateObject_1$
|
|
1963
|
+
})(templateObject_1$k || (templateObject_1$k = __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$3.layout['2xl'], spacing$3.layout['2xl'], media$1.sm, media$1.md, media$1.lg, media$1.xl, media$1['2xl']);
|
|
1964
1964
|
var Container = function Container(_a) {
|
|
1965
1965
|
var children = _a.children,
|
|
1966
1966
|
props = __rest(_a, ["children"]);
|
|
1967
1967
|
return /*#__PURE__*/React.createElement(StyledContainer, props, children);
|
|
1968
1968
|
};
|
|
1969
|
-
var templateObject_1$
|
|
1969
|
+
var templateObject_1$k;
|
|
1970
1970
|
|
|
1971
1971
|
React.createElement;
|
|
1972
1972
|
var base$1 = tokensData.base;
|
|
1973
1973
|
var PictureWrapper = styled.div.withConfig({
|
|
1974
1974
|
displayName: "Picture__PictureWrapper",
|
|
1975
1975
|
componentId: "sc-11d9tei-0"
|
|
1976
|
-
})(templateObject_1$
|
|
1976
|
+
})(templateObject_1$j || (templateObject_1$j = __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);
|
|
1977
1977
|
var ImageLink = styled.a.withConfig({
|
|
1978
1978
|
displayName: "Picture__ImageLink",
|
|
1979
1979
|
componentId: "sc-11d9tei-1"
|
|
1980
|
-
})(templateObject_2$
|
|
1980
|
+
})(templateObject_2$a || (templateObject_2$a = __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$1.duration.normal, base$1.easing.easeInOut);
|
|
1981
1981
|
var ImageButton = styled.button.withConfig({
|
|
1982
1982
|
displayName: "Picture__ImageButton",
|
|
1983
1983
|
componentId: "sc-11d9tei-2"
|
|
1984
|
-
})(templateObject_3$
|
|
1984
|
+
})(templateObject_3$7 || (templateObject_3$7 = __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$1.duration.normal, base$1.easing.easeInOut);
|
|
1985
1985
|
var StyledImage = styled.img.withConfig({
|
|
1986
1986
|
displayName: "Picture__StyledImage",
|
|
1987
1987
|
componentId: "sc-11d9tei-3"
|
|
1988
|
-
})(templateObject_4$
|
|
1988
|
+
})(templateObject_4$6 || (templateObject_4$6 = __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$1.border.radius[2]);
|
|
1989
1989
|
var Picture = function Picture(_a) {
|
|
1990
1990
|
var title = _a.title,
|
|
1991
1991
|
src = _a.src,
|
|
@@ -2012,7 +2012,7 @@ var Picture = function Picture(_a) {
|
|
|
2012
2012
|
"aria-label": "Read more about ".concat(title)
|
|
2013
2013
|
}, image) : image);
|
|
2014
2014
|
};
|
|
2015
|
-
var templateObject_1$
|
|
2015
|
+
var templateObject_1$j, templateObject_2$a, templateObject_3$7, templateObject_4$6;
|
|
2016
2016
|
|
|
2017
2017
|
React.createElement;
|
|
2018
2018
|
var _a$4 = tokensData.semantic,
|
|
@@ -2021,7 +2021,7 @@ var _a$4 = tokensData.semantic,
|
|
|
2021
2021
|
var TimeStyled = styled.time.withConfig({
|
|
2022
2022
|
displayName: "DateFormatter__TimeStyled",
|
|
2023
2023
|
componentId: "sc-5464cc-0"
|
|
2024
|
-
})(templateObject_1$
|
|
2024
|
+
})(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), typography$1.label, color$2.text.subdued);
|
|
2025
2025
|
var DateFormatter = function DateFormatter(_a) {
|
|
2026
2026
|
var dateString = _a.dateString,
|
|
2027
2027
|
_b = _a.formatString,
|
|
@@ -2033,7 +2033,7 @@ var DateFormatter = function DateFormatter(_a) {
|
|
|
2033
2033
|
"data-testid": dataTestId
|
|
2034
2034
|
}, format(date, formatString));
|
|
2035
2035
|
};
|
|
2036
|
-
var templateObject_1$
|
|
2036
|
+
var templateObject_1$i;
|
|
2037
2037
|
|
|
2038
2038
|
React.createElement;
|
|
2039
2039
|
var motion = tokensData.semantic.motion,
|
|
@@ -2044,7 +2044,7 @@ var IconButtonStyled = styled.button.withConfig({
|
|
|
2044
2044
|
},
|
|
2045
2045
|
displayName: "IconButton__IconButtonStyled",
|
|
2046
2046
|
componentId: "sc-k8b14t-0"
|
|
2047
|
-
})(templateObject_1$
|
|
2047
|
+
})(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n background-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 {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:focus {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n background-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 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 {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:focus {\n outline: ", ";\n outline-offset: ", ";\n }\n\n &:disabled {\n background-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) {
|
|
2048
2048
|
var $variant = _a.$variant;
|
|
2049
2049
|
switch ($variant) {
|
|
2050
2050
|
case 'primary':
|
|
@@ -2155,7 +2155,7 @@ var IconButton = function IconButton(_a) {
|
|
|
2155
2155
|
"aria-hidden": "true" // Hide icon from screen readers since button has aria-label
|
|
2156
2156
|
}));
|
|
2157
2157
|
};
|
|
2158
|
-
var templateObject_1$
|
|
2158
|
+
var templateObject_1$h;
|
|
2159
2159
|
|
|
2160
2160
|
React.createElement;
|
|
2161
2161
|
var ProgressBarContainer = styled.div.withConfig({
|
|
@@ -2164,10 +2164,10 @@ var ProgressBarContainer = styled.div.withConfig({
|
|
|
2164
2164
|
},
|
|
2165
2165
|
displayName: "ProgressBar__ProgressBarContainer",
|
|
2166
2166
|
componentId: "sc-1nco33q-0"
|
|
2167
|
-
})(templateObject_3$
|
|
2168
|
-
return props.$variant === 'horizontal' && css(templateObject_1$
|
|
2167
|
+
})(templateObject_3$6 || (templateObject_3$6 = __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"])), tokensData.semantic.color.background.disabled, tokensData.base.border.radius[1], function (props) {
|
|
2168
|
+
return props.$variant === 'horizontal' && css(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n width: 100%;\n height: ", ";\n "], ["\n width: 100%;\n height: ", ";\n "])), props.$height ? tokensData.component.progressBar.sizes[props.$height].height : tokensData.component.progressBar.sizes.md.height);
|
|
2169
2169
|
}, function (props) {
|
|
2170
|
-
return props.$variant === 'vertical' && css(templateObject_2$
|
|
2170
|
+
return props.$variant === 'vertical' && css(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n width: ", ";\n height: 100%;\n "], ["\n width: ", ";\n height: 100%;\n "])), props.$width ? tokensData.component.progressBar.sizes[props.$width].height : tokensData.component.progressBar.sizes.md.height);
|
|
2171
2171
|
});
|
|
2172
2172
|
var ProgressBarFill = styled.div.withConfig({
|
|
2173
2173
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -2189,7 +2189,7 @@ var ProgressBarFill = styled.div.withConfig({
|
|
|
2189
2189
|
backgroundColor = tokensData.semantic.color.background.interactive;
|
|
2190
2190
|
break;
|
|
2191
2191
|
}
|
|
2192
|
-
return css(templateObject_4$
|
|
2192
|
+
return css(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["background-color: ", ";"], ["background-color: ", ";"])), backgroundColor);
|
|
2193
2193
|
}, function (props) {
|
|
2194
2194
|
return props.$variant === 'horizontal' && css(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n width: ", "%;\n "], ["\n width: ", "%;\n "])), Math.min(100, Math.max(0, props.$value)));
|
|
2195
2195
|
}, function (props) {
|
|
@@ -2219,7 +2219,7 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
2219
2219
|
$color: color
|
|
2220
2220
|
}));
|
|
2221
2221
|
};
|
|
2222
|
-
var templateObject_1$
|
|
2222
|
+
var templateObject_1$g, templateObject_2$9, templateObject_3$6, templateObject_4$5, templateObject_5$3, templateObject_6$1, templateObject_7$1;
|
|
2223
2223
|
|
|
2224
2224
|
React.createElement;
|
|
2225
2225
|
var StyledDivider = styled.div.withConfig({
|
|
@@ -2228,7 +2228,7 @@ var StyledDivider = styled.div.withConfig({
|
|
|
2228
2228
|
},
|
|
2229
2229
|
displayName: "Divider__StyledDivider",
|
|
2230
2230
|
componentId: "sc-1l0c8ja-0"
|
|
2231
|
-
})(templateObject_1$
|
|
2231
|
+
})(templateObject_1$f || (templateObject_1$f = __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"
|
|
2232
2232
|
/**
|
|
2233
2233
|
* Divider is an atomic component that provides visual separation between content sections.
|
|
2234
2234
|
*
|
|
@@ -2341,7 +2341,7 @@ var Divider = function Divider(_a) {
|
|
|
2341
2341
|
"aria-orientation": orientation
|
|
2342
2342
|
});
|
|
2343
2343
|
};
|
|
2344
|
-
var templateObject_1$
|
|
2344
|
+
var templateObject_1$f;
|
|
2345
2345
|
|
|
2346
2346
|
React.createElement;
|
|
2347
2347
|
var StyledStack = styled.div.withConfig({
|
|
@@ -2350,7 +2350,7 @@ var StyledStack = styled.div.withConfig({
|
|
|
2350
2350
|
},
|
|
2351
2351
|
displayName: "Stack__StyledStack",
|
|
2352
2352
|
componentId: "sc-1ehkxgy-0"
|
|
2353
|
-
})(templateObject_1$
|
|
2353
|
+
})(templateObject_1$e || (templateObject_1$e = __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"
|
|
2354
2354
|
// Helper function to convert gap prop to CSS value
|
|
2355
2355
|
])));
|
|
2356
2356
|
// Helper function to convert gap prop to CSS value
|
|
@@ -2388,7 +2388,7 @@ var Stack = function Stack(_a) {
|
|
|
2388
2388
|
"data-testid": dataTestId
|
|
2389
2389
|
}, children);
|
|
2390
2390
|
};
|
|
2391
|
-
var templateObject_1$
|
|
2391
|
+
var templateObject_1$e;
|
|
2392
2392
|
|
|
2393
2393
|
React.createElement;
|
|
2394
2394
|
var semantic$1 = tokensData.semantic;
|
|
@@ -2398,7 +2398,7 @@ var StyledTag = styled.span.withConfig({
|
|
|
2398
2398
|
},
|
|
2399
2399
|
displayName: "Tag__StyledTag",
|
|
2400
2400
|
componentId: "sc-lzfmti-0"
|
|
2401
|
-
})(templateObject_1$
|
|
2401
|
+
})(templateObject_1$d || (templateObject_1$d = __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"
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Tag component for categorizing and labeling content
|
|
2404
2404
|
*
|
|
@@ -2479,18 +2479,18 @@ var Tag = function Tag(_a) {
|
|
|
2479
2479
|
"aria-label": typeof children === 'string' ? "Tag: ".concat(children) : undefined
|
|
2480
2480
|
}, props), children);
|
|
2481
2481
|
};
|
|
2482
|
-
var templateObject_1$
|
|
2482
|
+
var templateObject_1$d;
|
|
2483
2483
|
|
|
2484
2484
|
React.createElement;
|
|
2485
2485
|
var _a$3, _b$1, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2486
2486
|
var BreadcrumbNavStyled = styled.nav.withConfig({
|
|
2487
2487
|
displayName: "Breadcrumbs__BreadcrumbNavStyled",
|
|
2488
2488
|
componentId: "sc-7ouzg5-0"
|
|
2489
|
-
})(templateObject_1$
|
|
2489
|
+
})(templateObject_1$c || (templateObject_1$c = __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');
|
|
2490
2490
|
var BreadcrumbStyled = styled.li.withConfig({
|
|
2491
2491
|
displayName: "Breadcrumbs__BreadcrumbStyled",
|
|
2492
2492
|
componentId: "sc-7ouzg5-1"
|
|
2493
|
-
})(templateObject_2$
|
|
2493
|
+
})(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n text-transform: uppercase;\n display: inline-block;\n margin-right: ", ";\n padding: ", ";\n position: relative;\n\n &:not(:last-of-type)::before {\n content: '';\n background-image: url('/assets/icons/caret.svg');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n background-color: transparent;\n opacity: 0.5;\n display: inline-block;\n width: ", ";\n height: ", ";\n right: -", ";\n position: absolute;\n }\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 text-decoration: underline;\n color: ", ";\n }\n"], ["\n text-transform: uppercase;\n display: inline-block;\n margin-right: ", ";\n padding: ", ";\n position: relative;\n\n &:not(:last-of-type)::before {\n content: '';\n background-image: url('/assets/icons/caret.svg');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n background-color: transparent;\n opacity: 0.5;\n display: inline-block;\n width: ", ";\n height: ", ";\n right: -", ";\n position: absolute;\n }\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 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', ((_h = (_g = tokensData.base) === null || _g === void 0 ? void 0 : _g.spacing) === null || _h === void 0 ? void 0 : _h['4']) || '1rem', ((_k = (_j = tokensData.base) === null || _j === void 0 ? void 0 : _j.spacing) === null || _k === void 0 ? void 0 : _k['4']) || '1rem', ((_m = (_l = tokensData.base) === null || _l === void 0 ? void 0 : _l.spacing) === null || _m === void 0 ? void 0 : _m['3']) || '0.75rem', tokensData.semantic.color.text.subdued, tokensData.semantic.color.text["default"]);
|
|
2494
2494
|
var isInternalUrl = function isInternalUrl(url) {
|
|
2495
2495
|
return url.startsWith('/') && !url.startsWith('http');
|
|
2496
2496
|
};
|
|
@@ -2516,13 +2516,13 @@ var Breadcrumbs = function Breadcrumbs(_a) {
|
|
|
2516
2516
|
}, breadcrumb.label)));
|
|
2517
2517
|
}))));
|
|
2518
2518
|
};
|
|
2519
|
-
var templateObject_1$
|
|
2519
|
+
var templateObject_1$c, templateObject_2$8;
|
|
2520
2520
|
|
|
2521
2521
|
React.createElement;
|
|
2522
2522
|
var CardSmallStyled = styled.div.withConfig({
|
|
2523
2523
|
displayName: "CardSmall__CardSmallStyled",
|
|
2524
2524
|
componentId: "sc-jpcqvd-0"
|
|
2525
|
-
})(templateObject_1$
|
|
2525
|
+
})(templateObject_1$b || (templateObject_1$b = __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);
|
|
2526
2526
|
var CardSmall = function CardSmall(_a) {
|
|
2527
2527
|
var title = _a.title,
|
|
2528
2528
|
picture = _a.picture,
|
|
@@ -2559,14 +2559,14 @@ var CardSmall = function CardSmall(_a) {
|
|
|
2559
2559
|
color: "subdued"
|
|
2560
2560
|
}, meta))))));
|
|
2561
2561
|
};
|
|
2562
|
-
var templateObject_1$
|
|
2562
|
+
var templateObject_1$b;
|
|
2563
2563
|
|
|
2564
2564
|
React.createElement;
|
|
2565
2565
|
var border$3 = tokensData.base.border;
|
|
2566
2566
|
var CardLargeStyled = styled.div.withConfig({
|
|
2567
2567
|
displayName: "CardLarge__CardLargeStyled",
|
|
2568
2568
|
componentId: "sc-1rfgdzl-0"
|
|
2569
|
-
})(templateObject_1$
|
|
2569
|
+
})(templateObject_1$a || (templateObject_1$a = __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$3.radius[6]);
|
|
2570
2570
|
var CardLarge = function CardLarge(_a) {
|
|
2571
2571
|
var title = _a.title,
|
|
2572
2572
|
excerpt = _a.excerpt,
|
|
@@ -2611,7 +2611,212 @@ var CardLarge = function CardLarge(_a) {
|
|
|
2611
2611
|
});
|
|
2612
2612
|
})))));
|
|
2613
2613
|
};
|
|
2614
|
-
var templateObject_1$
|
|
2614
|
+
var templateObject_1$a;
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* Hidden native checkbox input for accessibility
|
|
2618
|
+
* Maintains keyboard navigation and screen reader support
|
|
2619
|
+
*/
|
|
2620
|
+
var HiddenCheckboxInput = styled.input.withConfig({
|
|
2621
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2622
|
+
return !prop.startsWith('$');
|
|
2623
|
+
},
|
|
2624
|
+
displayName: "SelectableInputBase__HiddenCheckboxInput",
|
|
2625
|
+
componentId: "sc-1ddpctx-0"
|
|
2626
|
+
})(templateObject_1$9 || (templateObject_1$9 = __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"
|
|
2627
|
+
/**
|
|
2628
|
+
* Custom checkbox visual component
|
|
2629
|
+
* 24px × 24px for 8px grid alignment
|
|
2630
|
+
* Uses component.input.* tokens for consistency with TextField
|
|
2631
|
+
*/])));
|
|
2632
|
+
/**
|
|
2633
|
+
* Custom checkbox visual component
|
|
2634
|
+
* 24px × 24px for 8px grid alignment
|
|
2635
|
+
* Uses component.input.* tokens for consistency with TextField
|
|
2636
|
+
*/
|
|
2637
|
+
var StyledCheckbox = styled.span.withConfig({
|
|
2638
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2639
|
+
return !prop.startsWith('$');
|
|
2640
|
+
},
|
|
2641
|
+
displayName: "SelectableInputBase__StyledCheckbox",
|
|
2642
|
+
componentId: "sc-1ddpctx-1"
|
|
2643
|
+
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n min-width: 24px;\n min-height: 24px;\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: 7px;\n top: 3px;\n width: 6px;\n height: 11px;\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: 10px;\n width: 14px;\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: 24px;\n height: 24px;\n min-width: 24px;\n min-height: 24px;\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: 7px;\n top: 3px;\n width: 6px;\n height: 11px;\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: 10px;\n width: 14px;\n height: 2px;\n background-color: ", ";\n }\n"
|
|
2644
|
+
/**
|
|
2645
|
+
* Container for checkbox with proper spacing and alignment
|
|
2646
|
+
* 48px min-height for touch target (8px grid aligned)
|
|
2647
|
+
*/])), tokensData.component.input["default"].borderRadius, tokensData.component.input["default"].borderWidth, function (props) {
|
|
2648
|
+
return props.$checked || props.$indeterminate ? tokensData.semantic.color.background.interactive : tokensData.component.input["default"].backgroundColor;
|
|
2649
|
+
}, function (props) {
|
|
2650
|
+
if (props.$state === 'error') return tokensData.component.input.error.borderColor;
|
|
2651
|
+
if (props.$checked || props.$indeterminate) return tokensData.semantic.color.background.interactive;
|
|
2652
|
+
return tokensData.component.input["default"].borderColor;
|
|
2653
|
+
}, function (props) {
|
|
2654
|
+
return props.$state === 'disabled' ? 'not-allowed' : 'pointer';
|
|
2655
|
+
}, HiddenCheckboxInput, function (props) {
|
|
2656
|
+
return props.$state === 'error' ? tokensData.component.input.error.hover.borderColor : props.$checked || props.$indeterminate ? tokensData.semantic.color.background.interactive : tokensData.component.input.hover.borderColor;
|
|
2657
|
+
}, HiddenCheckboxInput, tokensData.component.input.focus.outline, tokensData.component.input.focus.outlineOffset, function (props) {
|
|
2658
|
+
return props.$state === 'error' ? tokensData.component.input.error.focus.borderColor : tokensData.component.input.focus.borderColor;
|
|
2659
|
+
}, function (props) {
|
|
2660
|
+
return props.$state === 'disabled' && "\n background-color: ".concat(tokensData.component.input.disabled.backgroundColor, ";\n border-color: ").concat(tokensData.component.input.disabled.borderColor, ";\n opacity: 0.6;\n ");
|
|
2661
|
+
}, function (props) {
|
|
2662
|
+
return props.$checked ? 'block' : 'none';
|
|
2663
|
+
}, tokensData.semantic.color.text.inverse, function (props) {
|
|
2664
|
+
return props.$indeterminate ? 'block' : 'none';
|
|
2665
|
+
}, tokensData.semantic.color.text.inverse);
|
|
2666
|
+
/**
|
|
2667
|
+
* Container for checkbox with proper spacing and alignment
|
|
2668
|
+
* 48px min-height for touch target (8px grid aligned)
|
|
2669
|
+
*/
|
|
2670
|
+
var StyledCheckboxContainer = styled.label.withConfig({
|
|
2671
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2672
|
+
return !prop.startsWith('$');
|
|
2673
|
+
},
|
|
2674
|
+
displayName: "SelectableInputBase__StyledCheckboxContainer",
|
|
2675
|
+
componentId: "sc-1ddpctx-2"
|
|
2676
|
+
})(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n cursor: ", ";\n min-height: 48px;\n flex-direction: ", ";\n user-select: none;\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", ";\n cursor: ", ";\n min-height: 48px;\n flex-direction: ", ";\n user-select: none;\n"
|
|
2677
|
+
/**
|
|
2678
|
+
* Label text with proper typography
|
|
2679
|
+
*/])), tokensData.base.spacing[3], function (props) {
|
|
2680
|
+
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
2681
|
+
}, function (props) {
|
|
2682
|
+
return props.$labelPosition === 'left' ? 'row-reverse' : 'row';
|
|
2683
|
+
});
|
|
2684
|
+
/**
|
|
2685
|
+
* Label text with proper typography
|
|
2686
|
+
*/
|
|
2687
|
+
var StyledCheckboxLabel = styled.span.withConfig({
|
|
2688
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2689
|
+
return !prop.startsWith('$');
|
|
2690
|
+
},
|
|
2691
|
+
displayName: "SelectableInputBase__StyledCheckboxLabel",
|
|
2692
|
+
componentId: "sc-1ddpctx-3"
|
|
2693
|
+
})(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), tokensData.component.input["default"].font, function (props) {
|
|
2694
|
+
return props.$disabled ? tokensData.component.input.disabled.textColor : tokensData.component.input["default"].textColor;
|
|
2695
|
+
});
|
|
2696
|
+
var templateObject_1$9, templateObject_2$7, templateObject_3$5, templateObject_4$4;
|
|
2697
|
+
|
|
2698
|
+
React.createElement;
|
|
2699
|
+
var StyledFieldContainer$1 = styled.div.withConfig({
|
|
2700
|
+
displayName: "Checkbox__StyledFieldContainer",
|
|
2701
|
+
componentId: "sc-vquz3v-0"
|
|
2702
|
+
})(templateObject_1$8 || (templateObject_1$8 = __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]);
|
|
2703
|
+
var StyledHelperText$1 = styled.span.withConfig({
|
|
2704
|
+
displayName: "Checkbox__StyledHelperText",
|
|
2705
|
+
componentId: "sc-vquz3v-1"
|
|
2706
|
+
})(templateObject_2$6 || (templateObject_2$6 = __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"
|
|
2707
|
+
/**
|
|
2708
|
+
* Checkbox component for binary selection with WCAG 2.2 AA compliance
|
|
2709
|
+
*
|
|
2710
|
+
* Features:
|
|
2711
|
+
* - Custom styled checkbox with clear visual states
|
|
2712
|
+
* - Integrated label with configurable positioning
|
|
2713
|
+
* - Helper text and error messaging
|
|
2714
|
+
* - Indeterminate state support
|
|
2715
|
+
* - Full keyboard navigation (Space to toggle)
|
|
2716
|
+
* - ARIA attributes for screen readers
|
|
2717
|
+
* - 8px grid aligned (48px touch target)
|
|
2718
|
+
*
|
|
2719
|
+
* @example
|
|
2720
|
+
* ```tsx
|
|
2721
|
+
* <Checkbox
|
|
2722
|
+
* label="Accept terms and conditions"
|
|
2723
|
+
* checked={accepted}
|
|
2724
|
+
* onChange={(e) => setAccepted(e.target.checked)}
|
|
2725
|
+
* required
|
|
2726
|
+
* />
|
|
2727
|
+
* ```
|
|
2728
|
+
*/])), tokensData.semantic.typography.small, function (props) {
|
|
2729
|
+
return props.$error ? tokensData.semantic.color.text.error : tokensData.semantic.color.text.subdued;
|
|
2730
|
+
}, tokensData.base.spacing[9]);
|
|
2731
|
+
/**
|
|
2732
|
+
* Checkbox component for binary selection with WCAG 2.2 AA compliance
|
|
2733
|
+
*
|
|
2734
|
+
* Features:
|
|
2735
|
+
* - Custom styled checkbox with clear visual states
|
|
2736
|
+
* - Integrated label with configurable positioning
|
|
2737
|
+
* - Helper text and error messaging
|
|
2738
|
+
* - Indeterminate state support
|
|
2739
|
+
* - Full keyboard navigation (Space to toggle)
|
|
2740
|
+
* - ARIA attributes for screen readers
|
|
2741
|
+
* - 8px grid aligned (48px touch target)
|
|
2742
|
+
*
|
|
2743
|
+
* @example
|
|
2744
|
+
* ```tsx
|
|
2745
|
+
* <Checkbox
|
|
2746
|
+
* label="Accept terms and conditions"
|
|
2747
|
+
* checked={accepted}
|
|
2748
|
+
* onChange={(e) => setAccepted(e.target.checked)}
|
|
2749
|
+
* required
|
|
2750
|
+
* />
|
|
2751
|
+
* ```
|
|
2752
|
+
*/
|
|
2753
|
+
var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
2754
|
+
var label = _a.label,
|
|
2755
|
+
_b = _a.checked,
|
|
2756
|
+
checked = _b === void 0 ? false : _b,
|
|
2757
|
+
_c = _a.indeterminate,
|
|
2758
|
+
indeterminate = _c === void 0 ? false : _c,
|
|
2759
|
+
_d = _a.labelPosition,
|
|
2760
|
+
labelPosition = _d === void 0 ? 'right' : _d,
|
|
2761
|
+
helperText = _a.helperText,
|
|
2762
|
+
error = _a.error,
|
|
2763
|
+
_e = _a.disabled,
|
|
2764
|
+
disabled = _e === void 0 ? false : _e,
|
|
2765
|
+
onChange = _a.onChange,
|
|
2766
|
+
providedId = _a.id,
|
|
2767
|
+
ariaDescribedby = _a["aria-describedby"],
|
|
2768
|
+
rest = __rest(_a, ["label", "checked", "indeterminate", "labelPosition", "helperText", "error", "disabled", "onChange", "id", 'aria-describedby']);
|
|
2769
|
+
var generatedId = useId();
|
|
2770
|
+
var id = providedId || generatedId;
|
|
2771
|
+
var helperTextId = "".concat(id, "-helper-text");
|
|
2772
|
+
var errorId = "".concat(id, "-error");
|
|
2773
|
+
// Determine the state for styling
|
|
2774
|
+
var state = disabled ? 'disabled' : error ? 'error' : 'default';
|
|
2775
|
+
// Set up ARIA describedby
|
|
2776
|
+
var describedBy = [ariaDescribedby, helperText ? helperTextId : undefined, error ? errorId : undefined].filter(Boolean).join(' ');
|
|
2777
|
+
// Update indeterminate property on the input element
|
|
2778
|
+
var inputRef = React.useRef(null);
|
|
2779
|
+
React.useImperativeHandle(ref, function () {
|
|
2780
|
+
return inputRef.current;
|
|
2781
|
+
});
|
|
2782
|
+
React.useEffect(function () {
|
|
2783
|
+
if (inputRef.current) {
|
|
2784
|
+
inputRef.current.indeterminate = indeterminate;
|
|
2785
|
+
}
|
|
2786
|
+
}, [indeterminate]);
|
|
2787
|
+
return /*#__PURE__*/React.createElement(StyledFieldContainer$1, null, /*#__PURE__*/React.createElement(StyledCheckboxContainer, {
|
|
2788
|
+
$disabled: disabled,
|
|
2789
|
+
$labelPosition: labelPosition
|
|
2790
|
+
}, /*#__PURE__*/React.createElement(HiddenCheckboxInput, _extends({
|
|
2791
|
+
ref: inputRef,
|
|
2792
|
+
type: "checkbox",
|
|
2793
|
+
id: id,
|
|
2794
|
+
checked: checked,
|
|
2795
|
+
disabled: disabled,
|
|
2796
|
+
onChange: onChange,
|
|
2797
|
+
"aria-describedby": describedBy || undefined,
|
|
2798
|
+
"aria-invalid": error ? true : undefined,
|
|
2799
|
+
$state: state,
|
|
2800
|
+
$checked: checked,
|
|
2801
|
+
$indeterminate: indeterminate
|
|
2802
|
+
}, rest)), /*#__PURE__*/React.createElement(StyledCheckbox, {
|
|
2803
|
+
$state: state,
|
|
2804
|
+
$checked: checked,
|
|
2805
|
+
$indeterminate: indeterminate,
|
|
2806
|
+
"aria-hidden": "true"
|
|
2807
|
+
}), /*#__PURE__*/React.createElement(StyledCheckboxLabel, {
|
|
2808
|
+
$disabled: disabled
|
|
2809
|
+
}, label)), helperText && !error && /*#__PURE__*/React.createElement(StyledHelperText$1, {
|
|
2810
|
+
id: helperTextId
|
|
2811
|
+
}, helperText), error && /*#__PURE__*/React.createElement(StyledHelperText$1, {
|
|
2812
|
+
id: errorId,
|
|
2813
|
+
$error: true,
|
|
2814
|
+
role: "alert",
|
|
2815
|
+
"aria-live": "polite"
|
|
2816
|
+
}, error));
|
|
2817
|
+
});
|
|
2818
|
+
Checkbox.displayName = 'Checkbox';
|
|
2819
|
+
var templateObject_1$8, templateObject_2$6;
|
|
2615
2820
|
|
|
2616
2821
|
React.createElement;
|
|
2617
2822
|
var ChipGroupWrapper = styled.div.withConfig({
|
|
@@ -3388,5 +3593,5 @@ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, temp
|
|
|
3388
3593
|
// Main design system exports
|
|
3389
3594
|
var tokens = tokensData;
|
|
3390
3595
|
|
|
3391
|
-
export { Avatar, Badge, BooleanChip, Box, Breadcrumbs, Button, CardLarge, CardSmall, Chip, ChipGroup, CodeBlock, Container, DateFormatter, Divider, Dropdown, FeatureBlock, FilterChip, Grid, GridCol, Icon, IconButton, LegacyChip, PageTitle, Picture, ProgressBar, ResponsiveGrid, Stack, StyledInputBase, StyledTextAreaBase, Tag, TextField, Typography, iconsData, tokens };
|
|
3596
|
+
export { Avatar, Badge, BooleanChip, Box, Breadcrumbs, Button, CardLarge, CardSmall, Checkbox, Chip, ChipGroup, CodeBlock, Container, DateFormatter, Divider, Dropdown, FeatureBlock, FilterChip, Grid, GridCol, Icon, IconButton, LegacyChip, PageTitle, Picture, ProgressBar, ResponsiveGrid, Stack, StyledInputBase, StyledTextAreaBase, Tag, TextField, Typography, iconsData, tokens };
|
|
3392
3597
|
//# sourceMappingURL=index.esm.js.map
|