@common-origin/design-system 1.9.6 → 1.9.7
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/atoms/Tag/Tag.d.ts +28 -0
- package/dist/components/atoms/Tag/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/index.esm.js +123 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +123 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -597,7 +597,7 @@ var component = {
|
|
|
597
597
|
},
|
|
598
598
|
$ref: "./component/index.json"
|
|
599
599
|
};
|
|
600
|
-
var semantic$
|
|
600
|
+
var semantic$2 = {
|
|
601
601
|
border: {
|
|
602
602
|
"default": "0.0625rem solid #e9ecef",
|
|
603
603
|
subtle: "0.0625rem solid #dee2e6",
|
|
@@ -736,7 +736,7 @@ var semantic$1 = {
|
|
|
736
736
|
var tokensData = {
|
|
737
737
|
base: base$1,
|
|
738
738
|
component: component,
|
|
739
|
-
semantic: semantic$
|
|
739
|
+
semantic: semantic$2
|
|
740
740
|
};
|
|
741
741
|
|
|
742
742
|
React.createElement;
|
|
@@ -746,7 +746,7 @@ var AvatarContainer = styled.div.withConfig({
|
|
|
746
746
|
},
|
|
747
747
|
displayName: "Avatar__AvatarContainer",
|
|
748
748
|
componentId: "sc-ezn4ax-0"
|
|
749
|
-
})(templateObject_1$
|
|
749
|
+
})(templateObject_1$n || (templateObject_1$n = __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) {
|
|
750
750
|
var $size = _a.$size;
|
|
751
751
|
return tokensData.semantic.size.avatar[$size];
|
|
752
752
|
}, function (_a) {
|
|
@@ -829,7 +829,7 @@ var Avatar = function Avatar(_a) {
|
|
|
829
829
|
"aria-hidden": "true"
|
|
830
830
|
}, initials));
|
|
831
831
|
};
|
|
832
|
-
var templateObject_1$
|
|
832
|
+
var templateObject_1$n, templateObject_2$b, templateObject_3$9;
|
|
833
833
|
|
|
834
834
|
React.createElement;
|
|
835
835
|
var _a$5 = tokensData.semantic,
|
|
@@ -897,7 +897,7 @@ var StyledTypography = styled.span.withConfig({
|
|
|
897
897
|
},
|
|
898
898
|
displayName: "Typography__StyledTypography",
|
|
899
899
|
componentId: "sc-17mqo4k-0"
|
|
900
|
-
})(templateObject_1$
|
|
900
|
+
})(templateObject_1$m || (templateObject_1$m = __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"
|
|
901
901
|
/**
|
|
902
902
|
* Typography is an atomic component for rendering text with semantic meaning and consistent styling.
|
|
903
903
|
*
|
|
@@ -964,12 +964,12 @@ var Typography = function Typography(_a) {
|
|
|
964
964
|
"data-testid": dataTestId
|
|
965
965
|
}, children);
|
|
966
966
|
};
|
|
967
|
-
var templateObject_1$
|
|
967
|
+
var templateObject_1$m;
|
|
968
968
|
|
|
969
969
|
React.createElement;
|
|
970
970
|
var color$3 = tokensData.semantic.color;
|
|
971
971
|
tokensData.base.shadow;
|
|
972
|
-
var scaleIn = styled.keyframes(templateObject_1$
|
|
972
|
+
var scaleIn = styled.keyframes(templateObject_1$l || (templateObject_1$l = __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"])));
|
|
973
973
|
var BadgeWrapper = styled.span.withConfig({
|
|
974
974
|
displayName: "Badge__BadgeWrapper",
|
|
975
975
|
componentId: "sc-tjz4pp-0"
|
|
@@ -1036,7 +1036,7 @@ var Badge = function Badge(_a) {
|
|
|
1036
1036
|
color: "inverse"
|
|
1037
1037
|
}, displayCount), /*#__PURE__*/React.createElement(ScreenReaderOnly, null, label)));
|
|
1038
1038
|
};
|
|
1039
|
-
var templateObject_1$
|
|
1039
|
+
var templateObject_1$l, templateObject_2$a, templateObject_3$8, templateObject_4$6;
|
|
1040
1040
|
|
|
1041
1041
|
React.createElement;
|
|
1042
1042
|
var StyledBox = styled.div.withConfig({
|
|
@@ -1048,7 +1048,7 @@ var StyledBox = styled.div.withConfig({
|
|
|
1048
1048
|
})(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"
|
|
1049
1049
|
// Transform component that maps clean props to $-prefixed props for styled-components
|
|
1050
1050
|
])), function (props) {
|
|
1051
|
-
return props.$display && styled.css(templateObject_1$
|
|
1051
|
+
return props.$display && styled.css(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["display: ", ";"], ["display: ", ";"])), props.$display);
|
|
1052
1052
|
}, function (props) {
|
|
1053
1053
|
return props.$flexDirection && styled.css(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["flex-direction: ", ";"], ["flex-direction: ", ";"])), props.$flexDirection);
|
|
1054
1054
|
}, function (props) {
|
|
@@ -1238,7 +1238,7 @@ var BoxTransform = function BoxTransform(props) {
|
|
|
1238
1238
|
}, rest), children);
|
|
1239
1239
|
};
|
|
1240
1240
|
var Box = BoxTransform;
|
|
1241
|
-
var templateObject_1$
|
|
1241
|
+
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;
|
|
1242
1242
|
|
|
1243
1243
|
var add = {
|
|
1244
1244
|
path: "M13 11H19V13H13V19H11V13H5V11H11V5H13V11Z",
|
|
@@ -1359,7 +1359,7 @@ var IconStyled = styled.span.withConfig({
|
|
|
1359
1359
|
},
|
|
1360
1360
|
displayName: "Icon__IconStyled",
|
|
1361
1361
|
componentId: "sc-1105czq-0"
|
|
1362
|
-
})(templateObject_1$
|
|
1362
|
+
})(templateObject_1$j || (templateObject_1$j = __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) {
|
|
1363
1363
|
var $size = _a.$size;
|
|
1364
1364
|
return tokensData.semantic.size.icon[$size];
|
|
1365
1365
|
}, function (_a) {
|
|
@@ -1423,13 +1423,13 @@ var Icon = function Icon(_a) {
|
|
|
1423
1423
|
d: iconData.path
|
|
1424
1424
|
})));
|
|
1425
1425
|
};
|
|
1426
|
-
var templateObject_1$
|
|
1426
|
+
var templateObject_1$j;
|
|
1427
1427
|
|
|
1428
1428
|
React.createElement;
|
|
1429
1429
|
var button = tokensData.component.button,
|
|
1430
|
-
semantic = tokensData.semantic;
|
|
1430
|
+
semantic$1 = tokensData.semantic;
|
|
1431
1431
|
// Base styles shared between button and link
|
|
1432
|
-
var baseButtonStyles = "\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ".concat(tokensData.semantic.spacing.layout.xs, ";\n height: max-content;\n cursor: pointer;\n border: none;\n text-decoration: none;\n transition: ").concat(semantic.motion.hover, ";\n white-space: nowrap;\n user-select: none;\n \n &:focus {\n outline: ").concat(button.focus.outline, ";\n outline-offset: ").concat(button.focus.outlineOffset, ";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n");
|
|
1432
|
+
var baseButtonStyles = "\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: ".concat(tokensData.semantic.spacing.layout.xs, ";\n height: max-content;\n cursor: pointer;\n border: none;\n text-decoration: none;\n transition: ").concat(semantic$1.motion.hover, ";\n white-space: nowrap;\n user-select: none;\n \n &:focus {\n outline: ").concat(button.focus.outline, ";\n outline-offset: ").concat(button.focus.outlineOffset, ";\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n");
|
|
1433
1433
|
// Dynamic variant styles using component tokens
|
|
1434
1434
|
var getVariantStyles = function getVariantStyles(_a) {
|
|
1435
1435
|
var $variant = _a.$variant;
|
|
@@ -1455,7 +1455,7 @@ var StyledButton = styled.button.withConfig({
|
|
|
1455
1455
|
},
|
|
1456
1456
|
displayName: "Button__StyledButton",
|
|
1457
1457
|
componentId: "sc-1eiuum9-0"
|
|
1458
|
-
})(templateObject_1$
|
|
1458
|
+
})(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"], ["\n ", "\n border-radius: ", ";\n \n ", "\n ", "\n"])), baseButtonStyles, button.primary.borderRadius, getVariantStyles, getSizeStyles);
|
|
1459
1459
|
var StyledLink = styled.a.withConfig({
|
|
1460
1460
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1461
1461
|
return !prop.startsWith('$');
|
|
@@ -1555,7 +1555,7 @@ var Button = function Button(_a) {
|
|
|
1555
1555
|
"data-testid": dataTestId
|
|
1556
1556
|
}, buttonProps), renderButtonContent(children, iconName, size));
|
|
1557
1557
|
};
|
|
1558
|
-
var templateObject_1$
|
|
1558
|
+
var templateObject_1$i, templateObject_2$8;
|
|
1559
1559
|
|
|
1560
1560
|
var chip = tokensData.component.chip;
|
|
1561
1561
|
// Helper function to get variant styles as objects for CSS custom properties
|
|
@@ -1616,7 +1616,7 @@ var BaseChipStyled = styled.span.withConfig({
|
|
|
1616
1616
|
},
|
|
1617
1617
|
displayName: "ChipBase__BaseChipStyled",
|
|
1618
1618
|
componentId: "sc-moa6zc-0"
|
|
1619
|
-
})(templateObject_1$
|
|
1619
|
+
})(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: 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"
|
|
1620
1620
|
// Icon container for selected indicator or leading icons
|
|
1621
1621
|
])), tokensData.semantic.motion.interactive, chip.variants.interactive.backgroundColor);
|
|
1622
1622
|
// Icon container for selected indicator or leading icons
|
|
@@ -1668,7 +1668,7 @@ var StyledChipWrapper = function StyledChipWrapper(_a) {
|
|
|
1668
1668
|
style: __assign(__assign({}, cssProps), style)
|
|
1669
1669
|
}, htmlProps), children);
|
|
1670
1670
|
};
|
|
1671
|
-
var templateObject_1$
|
|
1671
|
+
var templateObject_1$h, templateObject_2$7, templateObject_3$6;
|
|
1672
1672
|
|
|
1673
1673
|
React.createElement;
|
|
1674
1674
|
/**
|
|
@@ -1912,20 +1912,20 @@ var spacing$3 = tokensData.semantic.spacing;
|
|
|
1912
1912
|
var StyledContainer = styled.div.withConfig({
|
|
1913
1913
|
displayName: "Container__StyledContainer",
|
|
1914
1914
|
componentId: "sc-17dbj6n-0"
|
|
1915
|
-
})(templateObject_1$
|
|
1915
|
+
})(templateObject_1$g || (templateObject_1$g = __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']);
|
|
1916
1916
|
var Container = function Container(_a) {
|
|
1917
1917
|
var children = _a.children,
|
|
1918
1918
|
props = __rest(_a, ["children"]);
|
|
1919
1919
|
return /*#__PURE__*/React.createElement(StyledContainer, props, children);
|
|
1920
1920
|
};
|
|
1921
|
-
var templateObject_1$
|
|
1921
|
+
var templateObject_1$g;
|
|
1922
1922
|
|
|
1923
1923
|
React.createElement;
|
|
1924
1924
|
var base = tokensData.base;
|
|
1925
1925
|
var PictureWrapper = styled.div.withConfig({
|
|
1926
1926
|
displayName: "Picture__PictureWrapper",
|
|
1927
1927
|
componentId: "sc-11d9tei-0"
|
|
1928
|
-
})(templateObject_1$
|
|
1928
|
+
})(templateObject_1$f || (templateObject_1$f = __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);
|
|
1929
1929
|
var ImageLink = styled.a.withConfig({
|
|
1930
1930
|
displayName: "Picture__ImageLink",
|
|
1931
1931
|
componentId: "sc-11d9tei-1"
|
|
@@ -1964,7 +1964,7 @@ var Picture = function Picture(_a) {
|
|
|
1964
1964
|
"aria-label": "Read more about ".concat(title)
|
|
1965
1965
|
}, image) : image);
|
|
1966
1966
|
};
|
|
1967
|
-
var templateObject_1$
|
|
1967
|
+
var templateObject_1$f, templateObject_2$6, templateObject_3$5, templateObject_4$4;
|
|
1968
1968
|
|
|
1969
1969
|
React.createElement;
|
|
1970
1970
|
var _a$4 = tokensData.semantic,
|
|
@@ -1973,7 +1973,7 @@ var _a$4 = tokensData.semantic,
|
|
|
1973
1973
|
var TimeStyled = styled.time.withConfig({
|
|
1974
1974
|
displayName: "DateFormatter__TimeStyled",
|
|
1975
1975
|
componentId: "sc-5464cc-0"
|
|
1976
|
-
})(templateObject_1$
|
|
1976
|
+
})(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n"], ["\n font: ", ";\n color: ", ";\n"])), typography$1.label, color$2.text.subdued);
|
|
1977
1977
|
var DateFormatter = function DateFormatter(_a) {
|
|
1978
1978
|
var dateString = _a.dateString,
|
|
1979
1979
|
_b = _a.formatString,
|
|
@@ -1985,7 +1985,7 @@ var DateFormatter = function DateFormatter(_a) {
|
|
|
1985
1985
|
"data-testid": dataTestId
|
|
1986
1986
|
}, dateFns.format(date, formatString));
|
|
1987
1987
|
};
|
|
1988
|
-
var templateObject_1$
|
|
1988
|
+
var templateObject_1$e;
|
|
1989
1989
|
|
|
1990
1990
|
React.createElement;
|
|
1991
1991
|
var motion = tokensData.semantic.motion,
|
|
@@ -1996,7 +1996,7 @@ var IconButtonStyled = styled.button.withConfig({
|
|
|
1996
1996
|
},
|
|
1997
1997
|
displayName: "IconButton__IconButtonStyled",
|
|
1998
1998
|
componentId: "sc-k8b14t-0"
|
|
1999
|
-
})(templateObject_1$
|
|
1999
|
+
})(templateObject_1$d || (templateObject_1$d = __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) {
|
|
2000
2000
|
var $variant = _a.$variant;
|
|
2001
2001
|
switch ($variant) {
|
|
2002
2002
|
case 'primary':
|
|
@@ -2107,7 +2107,7 @@ var IconButton = function IconButton(_a) {
|
|
|
2107
2107
|
"aria-hidden": "true" // Hide icon from screen readers since button has aria-label
|
|
2108
2108
|
}));
|
|
2109
2109
|
};
|
|
2110
|
-
var templateObject_1$
|
|
2110
|
+
var templateObject_1$d;
|
|
2111
2111
|
|
|
2112
2112
|
React.createElement;
|
|
2113
2113
|
var ProgressBarContainer = styled.div.withConfig({
|
|
@@ -2117,7 +2117,7 @@ var ProgressBarContainer = styled.div.withConfig({
|
|
|
2117
2117
|
displayName: "ProgressBar__ProgressBarContainer",
|
|
2118
2118
|
componentId: "sc-1nco33q-0"
|
|
2119
2119
|
})(templateObject_3$4 || (templateObject_3$4 = __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) {
|
|
2120
|
-
return props.$variant === 'horizontal' && styled.css(templateObject_1$
|
|
2120
|
+
return props.$variant === 'horizontal' && styled.css(templateObject_1$c || (templateObject_1$c = __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);
|
|
2121
2121
|
}, function (props) {
|
|
2122
2122
|
return props.$variant === 'vertical' && styled.css(templateObject_2$5 || (templateObject_2$5 = __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);
|
|
2123
2123
|
});
|
|
@@ -2171,7 +2171,7 @@ var ProgressBar = function ProgressBar(_a) {
|
|
|
2171
2171
|
$color: color
|
|
2172
2172
|
}));
|
|
2173
2173
|
};
|
|
2174
|
-
var templateObject_1$
|
|
2174
|
+
var templateObject_1$c, templateObject_2$5, templateObject_3$4, templateObject_4$3, templateObject_5$3, templateObject_6$1, templateObject_7$1;
|
|
2175
2175
|
|
|
2176
2176
|
React.createElement;
|
|
2177
2177
|
var StyledDivider = styled.div.withConfig({
|
|
@@ -2180,7 +2180,7 @@ var StyledDivider = styled.div.withConfig({
|
|
|
2180
2180
|
},
|
|
2181
2181
|
displayName: "Divider__StyledDivider",
|
|
2182
2182
|
componentId: "sc-1l0c8ja-0"
|
|
2183
|
-
})(templateObject_1$
|
|
2183
|
+
})(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"
|
|
2184
2184
|
/**
|
|
2185
2185
|
* Divider is an atomic component that provides visual separation between content sections.
|
|
2186
2186
|
*
|
|
@@ -2293,7 +2293,7 @@ var Divider = function Divider(_a) {
|
|
|
2293
2293
|
"aria-orientation": orientation
|
|
2294
2294
|
});
|
|
2295
2295
|
};
|
|
2296
|
-
var templateObject_1$
|
|
2296
|
+
var templateObject_1$b;
|
|
2297
2297
|
|
|
2298
2298
|
React.createElement;
|
|
2299
2299
|
var StyledStack = styled.div.withConfig({
|
|
@@ -2302,7 +2302,7 @@ var StyledStack = styled.div.withConfig({
|
|
|
2302
2302
|
},
|
|
2303
2303
|
displayName: "Stack__StyledStack",
|
|
2304
2304
|
componentId: "sc-1ehkxgy-0"
|
|
2305
|
-
})(templateObject_1$
|
|
2305
|
+
})(templateObject_1$a || (templateObject_1$a = __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"
|
|
2306
2306
|
// Helper function to convert gap prop to CSS value
|
|
2307
2307
|
])));
|
|
2308
2308
|
// Helper function to convert gap prop to CSS value
|
|
@@ -2340,6 +2340,97 @@ var Stack = function Stack(_a) {
|
|
|
2340
2340
|
"data-testid": dataTestId
|
|
2341
2341
|
}, children);
|
|
2342
2342
|
};
|
|
2343
|
+
var templateObject_1$a;
|
|
2344
|
+
|
|
2345
|
+
React.createElement;
|
|
2346
|
+
var semantic = tokensData.semantic;
|
|
2347
|
+
var StyledTag = styled.span.withConfig({
|
|
2348
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
2349
|
+
return !prop.startsWith('$');
|
|
2350
|
+
},
|
|
2351
|
+
displayName: "Tag__StyledTag",
|
|
2352
|
+
componentId: "sc-lzfmti-0"
|
|
2353
|
+
})(templateObject_1$9 || (templateObject_1$9 = __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"
|
|
2354
|
+
/**
|
|
2355
|
+
* Tag component for categorizing and labeling content
|
|
2356
|
+
*
|
|
2357
|
+
* A static, non-interactive label used to categorize elements or objects in the UI.
|
|
2358
|
+
* Tags help users quickly identify and understand content classification.
|
|
2359
|
+
*/])), tokensData.base.border.radius[2], tokensData.semantic.size.icon.lg || '2rem', tokensData.base.spacing[1], tokensData.base.spacing[2], tokensData.semantic.typography.button3, function (_a) {
|
|
2360
|
+
var $variant = _a.$variant;
|
|
2361
|
+
switch ($variant) {
|
|
2362
|
+
case 'interactive':
|
|
2363
|
+
return semantic.color.background['interactive-subtle'];
|
|
2364
|
+
case 'success':
|
|
2365
|
+
return semantic.color.background['success-subtle'];
|
|
2366
|
+
case 'warning':
|
|
2367
|
+
return semantic.color.background['warning-subtle'];
|
|
2368
|
+
case 'error':
|
|
2369
|
+
return semantic.color.background['error-subtle'];
|
|
2370
|
+
case 'emphasis':
|
|
2371
|
+
return semantic.color.background.emphasis;
|
|
2372
|
+
default:
|
|
2373
|
+
return semantic.color.background.surface;
|
|
2374
|
+
}
|
|
2375
|
+
}, function (_a) {
|
|
2376
|
+
var $variant = _a.$variant;
|
|
2377
|
+
switch ($variant) {
|
|
2378
|
+
case 'interactive':
|
|
2379
|
+
return semantic.color.text.interactive;
|
|
2380
|
+
case 'success':
|
|
2381
|
+
return semantic.color.text.success;
|
|
2382
|
+
case 'warning':
|
|
2383
|
+
return semantic.color.text.warning;
|
|
2384
|
+
case 'error':
|
|
2385
|
+
return semantic.color.text.error;
|
|
2386
|
+
case 'emphasis':
|
|
2387
|
+
return semantic.color.text.inverse;
|
|
2388
|
+
default:
|
|
2389
|
+
return semantic.color.text["default"];
|
|
2390
|
+
}
|
|
2391
|
+
}, function (_a) {
|
|
2392
|
+
var $variant = _a.$variant,
|
|
2393
|
+
$border = _a.$border;
|
|
2394
|
+
if (!$border) return 'none';
|
|
2395
|
+
switch ($variant) {
|
|
2396
|
+
case 'interactive':
|
|
2397
|
+
return "1px solid ".concat(semantic.color.border.interactive);
|
|
2398
|
+
case 'success':
|
|
2399
|
+
return "1px solid ".concat(semantic.color.border.success);
|
|
2400
|
+
case 'warning':
|
|
2401
|
+
return "1px solid ".concat(semantic.color.border.warning);
|
|
2402
|
+
case 'error':
|
|
2403
|
+
return "1px solid ".concat(semantic.color.border.error);
|
|
2404
|
+
case 'emphasis':
|
|
2405
|
+
return "1px solid ".concat(semantic.color.background.emphasis);
|
|
2406
|
+
default:
|
|
2407
|
+
return "1px solid ".concat(semantic.color.border["default"]);
|
|
2408
|
+
}
|
|
2409
|
+
});
|
|
2410
|
+
/**
|
|
2411
|
+
* Tag component for categorizing and labeling content
|
|
2412
|
+
*
|
|
2413
|
+
* A static, non-interactive label used to categorize elements or objects in the UI.
|
|
2414
|
+
* Tags help users quickly identify and understand content classification.
|
|
2415
|
+
*/
|
|
2416
|
+
var Tag = function Tag(_a) {
|
|
2417
|
+
var children = _a.children,
|
|
2418
|
+
_b = _a.variant,
|
|
2419
|
+
variant = _b === void 0 ? 'default' : _b,
|
|
2420
|
+
_c = _a.border,
|
|
2421
|
+
border = _c === void 0 ? true : _c,
|
|
2422
|
+
dataTestId = _a["data-testid"],
|
|
2423
|
+
props = __rest(_a, ["children", "variant", "border", 'data-testid']);
|
|
2424
|
+
return /*#__PURE__*/React.createElement(StyledTag, _extends({
|
|
2425
|
+
$variant: variant,
|
|
2426
|
+
$border: border,
|
|
2427
|
+
"data-testid": dataTestId,
|
|
2428
|
+
"data-variant": variant,
|
|
2429
|
+
"data-border": border,
|
|
2430
|
+
role: "status",
|
|
2431
|
+
"aria-label": typeof children === 'string' ? "Tag: ".concat(children) : undefined
|
|
2432
|
+
}, props), children);
|
|
2433
|
+
};
|
|
2343
2434
|
var templateObject_1$9;
|
|
2344
2435
|
|
|
2345
2436
|
React.createElement;
|
|
@@ -3136,6 +3227,7 @@ exports.Picture = Picture;
|
|
|
3136
3227
|
exports.ProgressBar = ProgressBar;
|
|
3137
3228
|
exports.ResponsiveGrid = ResponsiveGrid;
|
|
3138
3229
|
exports.Stack = Stack;
|
|
3230
|
+
exports.Tag = Tag;
|
|
3139
3231
|
exports.Typography = Typography;
|
|
3140
3232
|
exports.iconsData = iconsData;
|
|
3141
3233
|
exports.tokens = tokens;
|