@czi-sds/components 21.6.0 → 21.6.2
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 +27 -0
- package/dist/index.cjs.d.ts +5 -1
- package/dist/index.cjs.js +225 -273
- package/dist/index.esm.d.ts +5 -1
- package/dist/index.esm.js +71 -124
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -9,7 +9,10 @@ var styled = require('@emotion/styled');
|
|
|
9
9
|
var iconsMaterial = require('@mui/icons-material');
|
|
10
10
|
var css = require('@emotion/css');
|
|
11
11
|
|
|
12
|
-
function
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
13
16
|
var n = Object.create(null);
|
|
14
17
|
if (e) {
|
|
15
18
|
Object.keys(e).forEach(function (k) {
|
|
@@ -26,7 +29,8 @@ function _interopNamespaceDefault(e) {
|
|
|
26
29
|
return Object.freeze(n);
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
var React__namespace = /*#__PURE__*/
|
|
32
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
|
+
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
30
34
|
|
|
31
35
|
/******************************************************************************
|
|
32
36
|
Copyright (c) Microsoft Corporation.
|
|
@@ -548,120 +552,71 @@ var sharedAppTheme = {
|
|
|
548
552
|
},
|
|
549
553
|
},
|
|
550
554
|
};
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
//
|
|
556
|
-
//
|
|
557
|
-
//
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
hover: "1px solid ".concat(SDSDarkAppTheme.colors.blue[600]),
|
|
617
|
-
open: "1px solid ".concat(SDSDarkAppTheme.colors.blue[500]),
|
|
618
|
-
pressed: "1px solid ".concat(SDSDarkAppTheme.colors.blue[700]),
|
|
619
|
-
selected: "1px solid ".concat(SDSDarkAppTheme.colors.blue[500]),
|
|
620
|
-
},
|
|
621
|
-
base: {
|
|
622
|
-
default: "1px solid ".concat(SDSDarkAppTheme.colors.gray[500]),
|
|
623
|
-
disabled: "1px solid ".concat(SDSDarkAppTheme.colors.gray[300]),
|
|
624
|
-
divider: "1px solid ".concat(SDSDarkAppTheme.colors.gray[200]),
|
|
625
|
-
hover: "1px solid ".concat(SDSDarkAppTheme.colors.gray[900]),
|
|
626
|
-
pressed: "1px solid ".concat(SDSDarkAppTheme.colors.gray[900]),
|
|
627
|
-
table: "1px solid ".concat(SDSDarkAppTheme.colors.gray[300]),
|
|
628
|
-
},
|
|
629
|
-
beta: {
|
|
630
|
-
default: "1px solid ".concat(SDSDarkAppTheme.colors.purple[600]),
|
|
631
|
-
extraThick: "4px solid ".concat(SDSDarkAppTheme.colors.purple[600]),
|
|
632
|
-
thick: "2px solid ".concat(SDSDarkAppTheme.colors.purple[600]),
|
|
633
|
-
},
|
|
634
|
-
info: {
|
|
635
|
-
default: "1px solid ".concat(SDSDarkAppTheme.colors.blue[600]),
|
|
636
|
-
extraThick: "4px solid ".concat(SDSDarkAppTheme.colors.blue[600]),
|
|
637
|
-
thick: "2px solid ".concat(SDSDarkAppTheme.colors.blue[600]),
|
|
638
|
-
},
|
|
639
|
-
link: {
|
|
640
|
-
dashed: "1px dashed",
|
|
641
|
-
solid: "1px solid",
|
|
642
|
-
},
|
|
643
|
-
negative: {
|
|
644
|
-
default: "1px solid ".concat(SDSDarkAppTheme.colors.red[600]),
|
|
645
|
-
extraThick: "4px solid ".concat(SDSDarkAppTheme.colors.red[600]),
|
|
646
|
-
thick: "2px solid ".concat(SDSDarkAppTheme.colors.red[600]),
|
|
647
|
-
},
|
|
648
|
-
neutral: {
|
|
649
|
-
default: "1px solid ".concat(SDSDarkAppTheme.colors.gray[500]),
|
|
650
|
-
extraThick: "4px solid ".concat(SDSDarkAppTheme.colors.gray[500]),
|
|
651
|
-
thick: "2px solid ".concat(SDSDarkAppTheme.colors.gray[500]),
|
|
652
|
-
},
|
|
653
|
-
none: "none",
|
|
654
|
-
notice: {
|
|
655
|
-
default: "1px solid ".concat(SDSDarkAppTheme.colors.yellow[600]),
|
|
656
|
-
extraThick: "4px solid ".concat(SDSDarkAppTheme.colors.yellow[600]),
|
|
657
|
-
thick: "2px solid ".concat(SDSDarkAppTheme.colors.yellow[600]),
|
|
658
|
-
},
|
|
659
|
-
positive: {
|
|
660
|
-
default: "1px solid ".concat(SDSDarkAppTheme.colors.green[600]),
|
|
661
|
-
extraThick: "4px solid ".concat(SDSDarkAppTheme.colors.green[600]),
|
|
662
|
-
thick: "2px solid ".concat(SDSDarkAppTheme.colors.green[600]),
|
|
663
|
-
},
|
|
664
|
-
};
|
|
555
|
+
/**
|
|
556
|
+
* Create a SDS App Theme with custom colors that follows the SDS color model.
|
|
557
|
+
*/
|
|
558
|
+
var makeSdsSemanticAppTheme = function (colors) { return (__assign(__assign({}, sharedAppTheme), {
|
|
559
|
+
// (mlila) whenever our theme uses colors, we need to make sure we allow consuming
|
|
560
|
+
// applications to override those colors using their own custom theme.
|
|
561
|
+
// By defining borders using SDSAppTheme.colors instead of defaultThemeColors,
|
|
562
|
+
// we allow other apps to specify their colors once, and have them apply
|
|
563
|
+
// throughout the application, such as in borders, etc without having to manually
|
|
564
|
+
// override every theme property that makes use of colors.
|
|
565
|
+
borders: {
|
|
566
|
+
accent: {
|
|
567
|
+
default: "1px solid ".concat(colors.blue[500]),
|
|
568
|
+
focused: "1px solid ".concat(colors.blue[500]),
|
|
569
|
+
hover: "1px solid ".concat(colors.blue[600]),
|
|
570
|
+
open: "1px solid ".concat(colors.blue[500]),
|
|
571
|
+
pressed: "1px solid ".concat(colors.blue[700]),
|
|
572
|
+
selected: "1px solid ".concat(colors.blue[500]),
|
|
573
|
+
},
|
|
574
|
+
base: {
|
|
575
|
+
default: "1px solid ".concat(colors.gray[500]),
|
|
576
|
+
disabled: "1px solid ".concat(colors.gray[300]),
|
|
577
|
+
divider: "1px solid ".concat(colors.gray[200]),
|
|
578
|
+
hover: "1px solid ".concat(colors.gray[900]),
|
|
579
|
+
pressed: "1px solid ".concat(colors.gray[900]),
|
|
580
|
+
table: "1px solid ".concat(colors.gray[300]),
|
|
581
|
+
},
|
|
582
|
+
beta: {
|
|
583
|
+
default: "1px solid ".concat(colors.purple[600]),
|
|
584
|
+
extraThick: "4px solid ".concat(colors.purple[600]),
|
|
585
|
+
thick: "2px solid ".concat(colors.purple[600]),
|
|
586
|
+
},
|
|
587
|
+
info: {
|
|
588
|
+
default: "1px solid ".concat(colors.blue[600]),
|
|
589
|
+
extraThick: "4px solid ".concat(colors.blue[600]),
|
|
590
|
+
thick: "2px solid ".concat(colors.blue[600]),
|
|
591
|
+
},
|
|
592
|
+
link: {
|
|
593
|
+
dashed: "1px dashed",
|
|
594
|
+
solid: "1px solid",
|
|
595
|
+
},
|
|
596
|
+
negative: {
|
|
597
|
+
default: "1px solid ".concat(colors.red[600]),
|
|
598
|
+
extraThick: "4px solid ".concat(colors.red[600]),
|
|
599
|
+
thick: "2px solid ".concat(colors.red[600]),
|
|
600
|
+
},
|
|
601
|
+
neutral: {
|
|
602
|
+
default: "1px solid ".concat(colors.gray[500]),
|
|
603
|
+
extraThick: "4px solid ".concat(colors.gray[500]),
|
|
604
|
+
thick: "2px solid ".concat(colors.gray[500]),
|
|
605
|
+
},
|
|
606
|
+
none: "none",
|
|
607
|
+
notice: {
|
|
608
|
+
default: "1px solid ".concat(colors.yellow[600]),
|
|
609
|
+
extraThick: "4px solid ".concat(colors.yellow[600]),
|
|
610
|
+
thick: "2px solid ".concat(colors.yellow[600]),
|
|
611
|
+
},
|
|
612
|
+
positive: {
|
|
613
|
+
default: "1px solid ".concat(colors.green[600]),
|
|
614
|
+
extraThick: "4px solid ".concat(colors.green[600]),
|
|
615
|
+
thick: "2px solid ".concat(colors.green[600]),
|
|
616
|
+
},
|
|
617
|
+
}, colors: colors })); };
|
|
618
|
+
var SDSLightAppTheme = makeSdsSemanticAppTheme(SDSLightThemeColors);
|
|
619
|
+
var SDSDarkAppTheme = makeSdsSemanticAppTheme(SDSDarkThemeColors);
|
|
665
620
|
/**
|
|
666
621
|
* Helper function to select the appropriate theme settings.
|
|
667
622
|
*
|
|
@@ -1306,7 +1261,7 @@ function themeToCss(fontTheme, fontFamily) {
|
|
|
1306
1261
|
}
|
|
1307
1262
|
var templateObject_1$Y, templateObject_2$C, templateObject_3$t, templateObject_4$p;
|
|
1308
1263
|
|
|
1309
|
-
var StyledAccordionDetails =
|
|
1264
|
+
var StyledAccordionDetails = styled__default.default(material.AccordionDetails)(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyS$1, function (props) {
|
|
1310
1265
|
var spaces = getSpaces(props);
|
|
1311
1266
|
return react.css(templateObject_1$X || (templateObject_1$X = __makeTemplateObject(["\n padding: ", "px ", "px ", "px;\n "], ["\n padding: ", "px ", "px ", "px;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xxs, spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.m);
|
|
1312
1267
|
});
|
|
@@ -1317,13 +1272,13 @@ var AccordionDetails = function (props) {
|
|
|
1317
1272
|
return jsxRuntime.jsx(StyledAccordionDetails, { children: children });
|
|
1318
1273
|
};
|
|
1319
1274
|
|
|
1320
|
-
var StyledAccordionHeader =
|
|
1275
|
+
var StyledAccordionHeader = styled__default.default(material.AccordionSummary)(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), fontHeaderS, function (props) {
|
|
1321
1276
|
var _a, _b;
|
|
1322
1277
|
var spaces = getSpaces(props);
|
|
1323
1278
|
var semanticColors = getSemanticColors(props);
|
|
1324
1279
|
return react.css(templateObject_1$W || (templateObject_1$W = __makeTemplateObject(["\n padding: ", "px;\n align-items: flex-start;\n box-sizing: border-box;\n\n .", " {\n margin: 0;\n flex-direction: column;\n\n &.", " {\n margin: 0;\n }\n }\n\n & .", " {\n margin-left: ", "px;\n margin-top: ", "px !important;\n align-self: center;\n\n svg {\n color: ", ";\n }\n }\n\n &:hover {\n & .", " {\n svg {\n color: ", ";\n }\n }\n }\n "], ["\n padding: ", "px;\n align-items: flex-start;\n box-sizing: border-box;\n\n .", " {\n margin: 0;\n flex-direction: column;\n\n &.", " {\n margin: 0;\n }\n }\n\n & .", " {\n margin-left: ", "px;\n margin-top: ", "px !important;\n align-self: center;\n\n svg {\n color: ", ";\n }\n }\n\n &:hover {\n & .", " {\n svg {\n color: ", ";\n }\n }\n }\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.m, material.accordionSummaryClasses.content, material.accordionSummaryClasses.expanded, material.accordionSummaryClasses.expandIconWrapper, spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.xxs, (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.iconPrimary, material.accordionSummaryClasses.expandIconWrapper, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.iconPrimaryHover);
|
|
1325
1280
|
});
|
|
1326
|
-
var StyledSubtitle =
|
|
1281
|
+
var StyledSubtitle = styled__default.default("p")(templateObject_4$o || (templateObject_4$o = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
1327
1282
|
var _a;
|
|
1328
1283
|
var semanticColors = getSemanticColors(props);
|
|
1329
1284
|
return react.css(templateObject_3$s || (templateObject_3$s = __makeTemplateObject(["\n color: ", ";\n margin: 0;\n "], ["\n color: ", ";\n margin: 0;\n "])), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondary);
|
|
@@ -4064,13 +4019,13 @@ function interactive(props) {
|
|
|
4064
4019
|
return react.css(templateObject_4$n || (templateObject_4$n = __makeTemplateObject(["\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n\n &:disabled {\n color: ", ";\n }\n "], ["\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n\n &:disabled {\n color: ", ";\n }\n "])), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.iconPrimary, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.iconPrimaryHover, (_c = colors === null || colors === void 0 ? void 0 : colors[iconColor]) === null || _c === void 0 ? void 0 : _c[shade], (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.iconDisabled);
|
|
4065
4020
|
}
|
|
4066
4021
|
var doNotForwardProps$s = ["sdsIcon", "sdsSize", "sdsType", "iconColor"];
|
|
4067
|
-
var StyledSvgIcon =
|
|
4022
|
+
var StyledSvgIcon = styled__default.default(material.SvgIcon, {
|
|
4068
4023
|
shouldForwardProp: function (prop) { return !doNotForwardProps$s.includes(prop); },
|
|
4069
4024
|
})(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4070
4025
|
var sdsType = props.sdsType;
|
|
4071
4026
|
return react.css(templateObject_5$i || (templateObject_5$i = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), sdsType !== "iconButton" && iconSize(props), sdsType === "static" && staticStyle(props), sdsType === "interactive" && interactive(props), sdsType === "button" && buttonStyle());
|
|
4072
4027
|
});
|
|
4073
|
-
var StyledIcon =
|
|
4028
|
+
var StyledIcon = styled__default.default("div")(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n /* display: contents causes an element's children to appear as if they were direct children of the element's parent, ignoring the element itself. This can be useful when a wrapper element should be ignored when using CSS grid or similar layout techniques. */\n display: contents;\n"], ["\n /* display: contents causes an element's children to appear as if they were direct children of the element's parent, ignoring the element itself. This can be useful when a wrapper element should be ignored when using CSS grid or similar layout techniques. */\n display: contents;\n"])));
|
|
4074
4029
|
var templateObject_1$V, templateObject_2$z, templateObject_3$r, templateObject_4$n, templateObject_5$i, templateObject_6$d, templateObject_7$9;
|
|
4075
4030
|
|
|
4076
4031
|
/**
|
|
@@ -4098,7 +4053,7 @@ var AccordionHeader = function (props) {
|
|
|
4098
4053
|
};
|
|
4099
4054
|
|
|
4100
4055
|
var sdsPropNames$3 = ["useDivider", "togglePosition"];
|
|
4101
|
-
var StyledAccordion =
|
|
4056
|
+
var StyledAccordion = styled__default.default(material.Accordion, {
|
|
4102
4057
|
shouldForwardProp: function (prop) {
|
|
4103
4058
|
return !sdsPropNames$3.includes(prop.toString());
|
|
4104
4059
|
},
|
|
@@ -4125,9 +4080,9 @@ var templateObject_1$U, templateObject_2$y, templateObject_3$q;
|
|
|
4125
4080
|
/**
|
|
4126
4081
|
* @see https://mui.com/material-ui/react-accordion/
|
|
4127
4082
|
*/
|
|
4128
|
-
var Accordion =
|
|
4083
|
+
var Accordion = React__namespace.default.forwardRef(function (props, ref) {
|
|
4129
4084
|
var children = props.children, useDivider = props.useDivider, _a = props.togglePosition, togglePosition = _a === void 0 ? "right" : _a, id = props.id, _b = props.defaultExpanded, defaultExpanded = _b === void 0 ? false : _b;
|
|
4130
|
-
var _c =
|
|
4085
|
+
var _c = React__namespace.default.useState(defaultExpanded ? id : false), expanded = _c[0], setExpanded = _c[1];
|
|
4131
4086
|
var handleChange = function (panel) {
|
|
4132
4087
|
return function (_event, isExpanded) {
|
|
4133
4088
|
setExpanded(isExpanded ? panel : false);
|
|
@@ -4136,7 +4091,7 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
4136
4091
|
return (jsxRuntime.jsx(StyledAccordion, __assign({ square: true, useDivider: useDivider, togglePosition: togglePosition, expanded: expanded === id, onChange: handleChange(id), ref: ref }, props, { children: children })));
|
|
4137
4092
|
});
|
|
4138
4093
|
|
|
4139
|
-
var StyledAlert =
|
|
4094
|
+
var StyledAlert = styled__default.default(material.Alert)(templateObject_1$T || (templateObject_1$T = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4140
4095
|
var _a;
|
|
4141
4096
|
var colors = getColors(props);
|
|
4142
4097
|
var spaces = getSpaces(props);
|
|
@@ -4315,7 +4270,7 @@ var DestructiveButton = function (props) {
|
|
|
4315
4270
|
: (_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.negative) === null || _e === void 0 ? void 0 : _e.fillPrimary;
|
|
4316
4271
|
return react.css(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n border: none;\n box-shadow: inset 0 0 0 1px ", ";\n color: ", ";\n background-color: ", ";\n\n svg {\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: inset 0 0 0 1px ", ";\n\n svg {\n color: ", ";\n }\n }\n\n &:active {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: inset 0 0 0 1px ", ";\n\n svg {\n color: ", ";\n }\n }\n\n &:disabled {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: ", ";\n\n svg {\n color: ", ";\n }\n }\n "], ["\n border: none;\n box-shadow: inset 0 0 0 1px ", ";\n color: ", ";\n background-color: ", ";\n\n svg {\n color: ", ";\n }\n\n &:hover {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: inset 0 0 0 1px ", ";\n\n svg {\n color: ", ";\n }\n }\n\n &:active {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: inset 0 0 0 1px ", ";\n\n svg {\n color: ", ";\n }\n }\n\n &:disabled {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: ", ";\n\n svg {\n color: ", ";\n }\n }\n "])), (_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.negative) === null || _f === void 0 ? void 0 : _f.border, contentColor, backgroundColor, ornamentColor, (_g = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _g === void 0 ? void 0 : _g.textPrimaryInverse, (_h = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.negative) === null || _h === void 0 ? void 0 : _h.fillHover, (_j = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.negative) === null || _j === void 0 ? void 0 : _j.fillHover, (_k = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _k === void 0 ? void 0 : _k.iconPrimaryInverse, (_l = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _l === void 0 ? void 0 : _l.textPrimaryInverse, (_m = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.negative) === null || _m === void 0 ? void 0 : _m.fillPressed, (_o = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.negative) === null || _o === void 0 ? void 0 : _o.fillPressed, (_p = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _p === void 0 ? void 0 : _p.iconPrimaryInverse, (_q = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _q === void 0 ? void 0 : _q.textDisabled, (_r = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _r === void 0 ? void 0 : _r.fillDisabled, shadows === null || shadows === void 0 ? void 0 : shadows.none, (_s = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _s === void 0 ? void 0 : _s.iconDisabled);
|
|
4317
4272
|
};
|
|
4318
|
-
var StyledButton$3 =
|
|
4273
|
+
var StyledButton$3 = styled__default.default(material.Button, {
|
|
4319
4274
|
shouldForwardProp: function (prop) { return !doNotForwardProps$r.includes(prop); },
|
|
4320
4275
|
})(templateObject_5$h || (templateObject_5$h = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), focusVisibleA11yStyle, function (props) {
|
|
4321
4276
|
var sdsStyle = props.sdsStyle, sdsType = props.sdsType, isAllCaps = props.isAllCaps;
|
|
@@ -4340,13 +4295,13 @@ var SecondaryMinimalButton = function (props) {
|
|
|
4340
4295
|
var semanticColors = getSemanticColors(props);
|
|
4341
4296
|
return react.css(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["\n ", "\n color: ", ";\n "], ["\n ", "\n color: ", ";\n "])), Minimal(props), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimary);
|
|
4342
4297
|
};
|
|
4343
|
-
var StyledMinimalButton =
|
|
4298
|
+
var StyledMinimalButton = styled__default.default(material.Button, {
|
|
4344
4299
|
shouldForwardProp: function (prop) { return !doNotForwardProps$r.includes(prop); },
|
|
4345
4300
|
})(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4346
4301
|
var sdsType = props.sdsType;
|
|
4347
4302
|
return react.css(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), sdsType === "primary" && PrimaryMinimalButton(props), sdsType === "secondary" && SecondaryMinimalButton(props));
|
|
4348
4303
|
});
|
|
4349
|
-
var StyledButtonLegacy =
|
|
4304
|
+
var StyledButtonLegacy = styled__default.default(material.Button, {
|
|
4350
4305
|
shouldForwardProp: function (prop) { return !doNotForwardProps$r.includes(prop); },
|
|
4351
4306
|
})(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), focusVisibleA11yStyle, function (props) {
|
|
4352
4307
|
if (!props.isRounded)
|
|
@@ -4409,7 +4364,7 @@ var doNotForwardProps$q = [
|
|
|
4409
4364
|
"sdsIcon",
|
|
4410
4365
|
"sdsIconProps",
|
|
4411
4366
|
];
|
|
4412
|
-
var StyledButtonIcon =
|
|
4367
|
+
var StyledButtonIcon = styled__default.default(material.IconButton, {
|
|
4413
4368
|
shouldForwardProp: function (prop) { return !doNotForwardProps$q.includes(prop); },
|
|
4414
4369
|
})(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n padding: 0;\n ", "\n\n ", "\n"], ["\n padding: 0;\n ", "\n\n ", "\n"])), focusVisibleA11yStyle, function (props) {
|
|
4415
4370
|
var disabled = props.disabled, _a = props.sdsSize, sdsSize = _a === void 0 ? "medium" : _a, _b = props.sdsType, sdsType = _b === void 0 ? "primary" : _b;
|
|
@@ -4467,7 +4422,7 @@ var MUI_VARIANT_MAP = {
|
|
|
4467
4422
|
/**
|
|
4468
4423
|
* @see https://mui.com/material-ui/react-button/
|
|
4469
4424
|
*/
|
|
4470
|
-
var Button =
|
|
4425
|
+
var Button = React__namespace.default.forwardRef(function (props, ref) {
|
|
4471
4426
|
var sdsStyle = props.sdsStyle, sdsType = props.sdsType;
|
|
4472
4427
|
if (!sdsStyle || !sdsType) {
|
|
4473
4428
|
showWarningIfFirstOccurence(SDSWarningTypes.ButtonMissingSDSProps);
|
|
@@ -4528,11 +4483,11 @@ var disabledStyled$2 = function (props) {
|
|
|
4528
4483
|
var semanticColors = getSemanticColors(props);
|
|
4529
4484
|
return react.css(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["\n .", " {\n .", " {\n border: 1px solid ", " !important;\n }\n\n .", " svg {\n color: ", ";\n }\n\n &:hover .", " {\n border: 1px solid ", ";\n }\n\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n }\n "], ["\n .", " {\n .", " {\n border: 1px solid ", " !important;\n }\n\n .", " svg {\n color: ", ";\n }\n\n &:hover .", " {\n border: 1px solid ", ";\n }\n\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n }\n "])), material.outlinedInputClasses.disabled, material.outlinedInputClasses.notchedOutline, (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.borderDisabled, material.inputAdornmentClasses.root, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.iconDisabled, material.outlinedInputClasses.notchedOutline, (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.borderDisabled, (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.textDisabled);
|
|
4530
4485
|
};
|
|
4531
|
-
var StyledLabel$2 =
|
|
4486
|
+
var StyledLabel$2 = styled__default.default("label")(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), fontBodyM$1, function (props) {
|
|
4532
4487
|
var spaces = getSpaces(props);
|
|
4533
4488
|
return "\n margin-bottom: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;\n position: absolute;\n overflow: hidden;\n clip: rect(0 0 0 0);\n height: 1px;\n width: 1px;\n margin: -1px; \n padding: 0; \n border: 0;\n ");
|
|
4534
4489
|
});
|
|
4535
|
-
var StyledSearchBase =
|
|
4490
|
+
var StyledSearchBase = styled__default.default(material.TextField, {
|
|
4536
4491
|
shouldForwardProp: function (prop) {
|
|
4537
4492
|
return !sdsPropNames$2.includes(prop.toString());
|
|
4538
4493
|
},
|
|
@@ -4544,10 +4499,10 @@ var StyledSearchBase = styled(material.TextField, {
|
|
|
4544
4499
|
var semanticColors = getSemanticColors(props);
|
|
4545
4500
|
return react.css(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n margin-right: ", "px;\n min-width: 120px;\n display: block;\n\n [type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n appearance: none;\n }\n\n & .input-search-clear-icon {\n opacity: 0;\n cursor: pointer;\n\n svg {\n height: ", "px;\n width: ", "px;\n }\n }\n\n .", " {\n padding: 0 ", "px;\n background-color: ", ";\n width: 100%;\n\n .", " {\n padding-right: ", "px;\n }\n\n .MuiInputAdornment-positionEnd {\n position: absolute;\n right: ", "px;\n }\n\n .", " {\n border: 1px solid ", ";\n }\n\n &:hover .input-search-clear-icon,\n &:focus-within .input-search-clear-icon {\n opacity: 1;\n\n svg {\n color: ", " !important;\n }\n\n &:hover {\n svg {\n color: ", " !important;\n }\n }\n\n &:active {\n svg {\n color: ", " !important;\n }\n }\n }\n }\n\n .", " {\n ", "\n padding: ", "px ", "px;\n height: unset;\n box-sizing: border-box;\n background-color: ", ";\n }\n\n .", ":hover {\n & .", ":last-of-type {\n svg {\n color: ", ";\n }\n }\n .", " {\n border: 1px solid ", ";\n }\n }\n\n .", ".", " {\n outline: none;\n\n .", " {\n border: 1px solid ", ";\n }\n\n .", " .", ":last-of-type {\n cursor: default;\n svg {\n color: ", ";\n }\n }\n }\n\n &.user-is-tabbing .", ":focus-within {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n ", "\n ", "\n ", "\n ", "\n ", "\n "], ["\n margin-top: ", "px;\n margin-bottom: ", "px;\n margin-right: ", "px;\n min-width: 120px;\n display: block;\n\n [type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n appearance: none;\n }\n\n & .input-search-clear-icon {\n opacity: 0;\n cursor: pointer;\n\n svg {\n height: ", "px;\n width: ", "px;\n }\n }\n\n .", " {\n padding: 0 ", "px;\n background-color: ", ";\n width: 100%;\n\n .", " {\n padding-right: ", "px;\n }\n\n .MuiInputAdornment-positionEnd {\n position: absolute;\n right: ", "px;\n }\n\n .", " {\n border: 1px solid ", ";\n }\n\n &:hover .input-search-clear-icon,\n &:focus-within .input-search-clear-icon {\n opacity: 1;\n\n svg {\n color: ", " !important;\n }\n\n &:hover {\n svg {\n color: ", " !important;\n }\n }\n\n &:active {\n svg {\n color: ", " !important;\n }\n }\n }\n }\n\n .", " {\n ", "\n padding: ", "px ", "px;\n height: unset;\n box-sizing: border-box;\n background-color: ", ";\n }\n\n .", ":hover {\n & .", ":last-of-type {\n svg {\n color: ", ";\n }\n }\n .", " {\n border: 1px solid ", ";\n }\n }\n\n .", ".", " {\n outline: none;\n\n .", " {\n border: 1px solid ", ";\n }\n\n .", " .", ":last-of-type {\n cursor: default;\n svg {\n color: ", ";\n }\n }\n }\n\n &.user-is-tabbing .", ":focus-within {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.xl, (_a = iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xs) === null || _a === void 0 ? void 0 : _a.height, (_b = iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xs) === null || _b === void 0 ? void 0 : _b.width, material.outlinedInputClasses.root, spaces === null || spaces === void 0 ? void 0 : spaces.m, (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.surfacePrimary, material.outlinedInputClasses.input, spaces === null || spaces === void 0 ? void 0 : spaces.l, spaces === null || spaces === void 0 ? void 0 : spaces.m, material.outlinedInputClasses.notchedOutline, (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.border, (_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _e === void 0 ? void 0 : _e.iconPrimary, (_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _f === void 0 ? void 0 : _f.iconPrimaryHover, (_g = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _g === void 0 ? void 0 : _g.fillPressed, material.inputBaseClasses.inputSizeSmall, fontBodyXs$2(props), spaces === null || spaces === void 0 ? void 0 : spaces.xs, spaces === null || spaces === void 0 ? void 0 : spaces.s, (_h = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _h === void 0 ? void 0 : _h.surfacePrimary, material.outlinedInputClasses.root, material.buttonBaseClasses.root, (_j = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _j === void 0 ? void 0 : _j.iconPrimaryHover, material.outlinedInputClasses.notchedOutline, (_k = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _k === void 0 ? void 0 : _k.borderHover, material.outlinedInputClasses.root, material.outlinedInputClasses.focused, material.outlinedInputClasses.notchedOutline, (_l = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _l === void 0 ? void 0 : _l.border, material.inputAdornmentClasses.root, material.buttonBaseClasses.root, (_m = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _m === void 0 ? void 0 : _m.icon, material.outlinedInputClasses.root, (_o = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _o === void 0 ? void 0 : _o.borderHover, sdsStyle === "rounded" && rounded$3(props), intent === "negative" && applyIntentColor$2(props, "negative"), intent === "notice" && applyIntentColor$2(props, "notice"), intent === "positive" && applyIntentColor$2(props, "positive"), disabled && disabledStyled$2(props));
|
|
4546
4501
|
});
|
|
4547
|
-
var StyledInputAdornment =
|
|
4502
|
+
var StyledInputAdornment = styled__default.default(material.InputAdornment)(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n position: relative;\n height: unset;\n margin: 0;\n"], ["\n position: relative;\n height: unset;\n margin: 0;\n"])));
|
|
4548
4503
|
var templateObject_1$Q, templateObject_2$v, templateObject_3$n, templateObject_4$k, templateObject_5$f, templateObject_6$a, templateObject_7$6;
|
|
4549
4504
|
|
|
4550
|
-
var StyledMenuItem$1 =
|
|
4505
|
+
var StyledMenuItem$1 = styled__default.default(material.MenuItem)(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4551
4506
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
4552
4507
|
var selected = props.selected;
|
|
4553
4508
|
var fontWeights = getFontWeights(props);
|
|
@@ -4555,7 +4510,7 @@ var StyledMenuItem$1 = styled(material.MenuItem)(templateObject_1$P || (template
|
|
|
4555
4510
|
var semanticColors = getSemanticColors(props);
|
|
4556
4511
|
return "\n padding: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px !important;\n min-height: unset;\n opacity: 1;\n\n &.MuiAutocomplete-option {\n min-height: unset;\n }\n \n .primary-text {\n font-weight: ").concat(selected ? fontWeights === null || fontWeights === void 0 ? void 0 : fontWeights.semibold : fontWeights === null || fontWeights === void 0 ? void 0 : fontWeights.regular, ";\n }\n\n &.MuiButtonBase-root {\n background-color: transparent;\n opacity: 1;\n\n &:hover, &.").concat(material.menuItemClasses.focusVisible, " {\n background-color: ").concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.fillHover, ";\n\n &[aria-selected=\"true\"] {\n background-color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.fillHover, ";\n }\n }\n }\n\n &.").concat(material.menuItemClasses.root, " .MuiSvgIcon-root {\n align-self: flex-start;\n }\n\n &.").concat(material.menuItemClasses.root, " .").concat(material.menuItemClasses.disabled, " {\n opacity: 1 !important;\n }\n\n &.MuiAutocomplete-option[aria-selected=\"true\"] {\n &:hover {\n background-color: ").concat((_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.fillHover, " !important;\n }\n\n svg.check-icon {\n color: ").concat(selected ? (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _d === void 0 ? void 0 : _d.iconSelected : (_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _e === void 0 ? void 0 : _e.iconPrimary, ";\n }\n }\n\n &.MuiAutocomplete-option[aria-disabled=\"true\"] {\n opacity: 1;\n }\n\n &:hover {\n background-color: ").concat((_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _f === void 0 ? void 0 : _f.fillHover, ";\n svg.check-icon {\n color: ").concat(selected ? (_g = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _g === void 0 ? void 0 : _g.iconHover : (_h = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _h === void 0 ? void 0 : _h.iconPrimary, ";\n }\n }\n\n &.Mui-selected.MuiListItem-root.MuiListItem-button {\n background-color: ").concat((_j = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _j === void 0 ? void 0 : _j.surfacePrimary, ";\n &:hover {\n background-color: ").concat((_k = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _k === void 0 ? void 0 : _k.fillHover, ";\n }\n .primary-text {\n font-weight: ").concat(fontWeights === null || fontWeights === void 0 ? void 0 : fontWeights.semibold, ";\n }\n }\n\n &:active {\n svg.check-icon {\n color: ").concat((_l = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _l === void 0 ? void 0 : _l.iconPressed, ";\n }\n\n &:active {\n svg.check-icon {\n color: ").concat((_m = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _m === void 0 ? void 0 : _m.iconPressed, ";\n }\n\n .primary-text {\n font-weight: ").concat(fontWeights === null || fontWeights === void 0 ? void 0 : fontWeights.semibold, ";\n }\n }\n }\n ");
|
|
4557
4512
|
});
|
|
4558
|
-
var ContentWrapper =
|
|
4513
|
+
var ContentWrapper = styled__default.default("span")(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n width: 100%;\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n width: 100%;\n"])));
|
|
4559
4514
|
var disabledStyles = function (props) {
|
|
4560
4515
|
var _a;
|
|
4561
4516
|
var disabled = props.disabled;
|
|
@@ -4564,12 +4519,12 @@ var disabledStyles = function (props) {
|
|
|
4564
4519
|
var semanticColors = getSemanticColors(props);
|
|
4565
4520
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textDisabled, ";\n cursor: default;\n ");
|
|
4566
4521
|
};
|
|
4567
|
-
var TextWrapper =
|
|
4522
|
+
var TextWrapper = styled__default.default("span")(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n ", "\n\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n\n ", "\n"])), fontBodyXs$2, function (props) {
|
|
4568
4523
|
var _a;
|
|
4569
4524
|
var semanticColors = getSemanticColors(props);
|
|
4570
4525
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimary, ";\n display: flex;\n white-space: pre-wrap;\n ");
|
|
4571
4526
|
}, disabledStyles);
|
|
4572
|
-
var StyledMenuItemIcon =
|
|
4527
|
+
var StyledMenuItemIcon = styled__default.default("span")(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4573
4528
|
var _a;
|
|
4574
4529
|
var disabled = props.disabled;
|
|
4575
4530
|
var spaces = getSpaces(props);
|
|
@@ -4577,18 +4532,18 @@ var StyledMenuItemIcon = styled("span")(templateObject_4$j || (templateObject_4$
|
|
|
4577
4532
|
var semanticColors = getSemanticColors(props);
|
|
4578
4533
|
return "\n margin-right: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;\n margin-top: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px;\n height: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;\n\n .MuiSvgIcon-root {\n ").concat(disabled ? "color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.iconDisabled, ";") : null, "\n }\n ");
|
|
4579
4534
|
});
|
|
4580
|
-
var ColumnWrapper =
|
|
4535
|
+
var ColumnWrapper = styled__default.default("span")(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n ", "\n\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n\n ", "\n"])), fontBodyXs$2, function (props) {
|
|
4581
4536
|
var _a;
|
|
4582
4537
|
var semanticColors = getSemanticColors(props);
|
|
4583
4538
|
var spaces = getSpaces(props);
|
|
4584
4539
|
return "\n text-align: right;\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimary, ";\n margin-left: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n ");
|
|
4585
4540
|
}, disabledStyles);
|
|
4586
|
-
var StyledIconWrapper =
|
|
4541
|
+
var StyledIconWrapper = styled__default.default("span")(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4587
4542
|
var spaces = getSpaces(props);
|
|
4588
4543
|
var iconSizes = getIconSizes(props);
|
|
4589
4544
|
return "\n align-self: start;\n margin-right: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n margin-top: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px;\n height: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;\n ");
|
|
4590
4545
|
});
|
|
4591
|
-
var StyledCheck =
|
|
4546
|
+
var StyledCheck = styled__default.default(iconsMaterial.Check, {
|
|
4592
4547
|
shouldForwardProp: function (prop) { return prop !== "selected"; },
|
|
4593
4548
|
})(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4594
4549
|
var _a, _b;
|
|
@@ -4600,7 +4555,7 @@ var StyledCheck = styled(iconsMaterial.Check, {
|
|
|
4600
4555
|
: (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _b === void 0 ? void 0 : _b.icon;
|
|
4601
4556
|
return "\n color: ".concat(selected ? selectedColor : "transparent", ";\n padding: 0;\n height: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;\n width: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.width, "px;\n\n &.MuiCheckbox-colorPrimary.Mui-checked:hover {\n background-color: transparent;\n }\n ");
|
|
4602
4557
|
});
|
|
4603
|
-
var StyledMinus =
|
|
4558
|
+
var StyledMinus = styled__default.default(iconsMaterial.Remove, {
|
|
4604
4559
|
shouldForwardProp: function (prop) { return prop !== "selected"; },
|
|
4605
4560
|
})(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4606
4561
|
var _a, _b;
|
|
@@ -4786,7 +4741,7 @@ var doNotForwardProps$p = [
|
|
|
4786
4741
|
"PopperBaseProps",
|
|
4787
4742
|
"onClickAway",
|
|
4788
4743
|
];
|
|
4789
|
-
var StyledAutocompleteBase =
|
|
4744
|
+
var StyledAutocompleteBase = styled__default.default(material.Autocomplete, {
|
|
4790
4745
|
shouldForwardProp: function (prop) { return !doNotForwardProps$p.includes(prop); },
|
|
4791
4746
|
})(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n + .", "\n > .", "\n .", " {\n ", "\n }\n\n ", "\n"], ["\n + .", "\n > .", "\n .", " {\n ", "\n }\n\n ", "\n"])), material.autocompleteClasses.popper, material.autocompleteClasses.paper, material.autocompleteClasses.groupLabel, fontCapsXxxxs, function (props) {
|
|
4792
4747
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -4796,7 +4751,7 @@ var StyledAutocompleteBase = styled(material.Autocomplete, {
|
|
|
4796
4751
|
var semanticColors = getSemanticColors(props);
|
|
4797
4752
|
return "\n ".concat(!search && "height: 0; margin: 0 !important;", ";\n \n // (masoudmanson): We need to apply the focus styles to the input element\n // when the user is tabbing through the options. To find out more, take a\n // look at the useDetectUserTabbing hook.\n &[data-user-is-tabbing=\"true\"]:focus-within {\n border-radius: 4px;\n outline: 2px solid ").concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.borderHover, ";\n outline-offset: 1px;\n }\n\n .MuiFormControl-root {\n outline: none;\n }\n\n .MuiOutlinedInput-root.MuiInputBase-formControl.MuiInputBase-adornedEnd {\n padding: 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n\n .MuiAutocomplete-input {\n padding: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;\n }\n }\n\n & + .").concat(material.autocompleteClasses.popper, " > .").concat(material.autocompleteClasses.paper, " {\n .").concat(material.autocompleteClasses.listbox, " {\n max-height: 40vh;\n padding: 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px 0 0;\n\n .").concat(material.autocompleteClasses.option, " {\n min-height: unset;\n\n &.").concat(material.autocompleteClasses.focused, " {\n background-color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.surfaceSecondary, ";\n }\n\n &[aria-selected=\"true\"] {\n background-color: ").concat((_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.surfacePrimary, ";\n }\n\n &[aria-disabled=\"true\"] {\n opacity: 1;\n }\n\n &[aria-selected=\"true\"].").concat(material.autocompleteClasses.focused, " {\n background-color: ").concat((_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.surfaceSecondary, ";\n }\n }\n\n & > li:last-child .").concat(material.autocompleteClasses.groupUl, " {\n border-bottom: none;\n margin-bottom: 0;\n padding-bottom: 0;\n }\n }\n\n .").concat(material.autocompleteClasses.groupLabel, " {\n top: 0;\n color: ").concat((_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _e === void 0 ? void 0 : _e.textSecondary, ";\n background-color: ").concat((_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _f === void 0 ? void 0 : _f.surfacePrimary, ";\n padding: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;\n }\n\n .").concat(material.autocompleteClasses.groupUl, " {\n position: relative;\n margin: 0 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n border-bottom: ").concat((_g = borders === null || borders === void 0 ? void 0 : borders.base) === null || _g === void 0 ? void 0 : _g.divider, ";\n padding-bottom: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;\n\n & li:last-of-type {\n position: relative;\n }\n }\n\n .").concat(material.autocompleteClasses.noOptions, " {\n padding: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n }\n\n .").concat(material.autocompleteClasses.loading, " {\n padding: 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px 0 0;\n }\n }\n ");
|
|
4798
4753
|
});
|
|
4799
|
-
var InputBaseWrapper$1 =
|
|
4754
|
+
var InputBaseWrapper$1 = styled__default.default("div", {
|
|
4800
4755
|
shouldForwardProp: function (prop) { return !doNotForwardProps$p.includes(prop); },
|
|
4801
4756
|
})(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4802
4757
|
var search = props.search;
|
|
@@ -4807,13 +4762,13 @@ var InputBaseWrapper$1 = styled("div", {
|
|
|
4807
4762
|
return "\n border: 0;\n padding: 0;\n white-space: nowrap;\n clip-path: inset(100%);\n clip: rect(0 0 0 0);\n overflow: hidden;\n margin: 0;\n speak: none;\n ";
|
|
4808
4763
|
}
|
|
4809
4764
|
});
|
|
4810
|
-
var StyledMenuInputSearch$1 =
|
|
4765
|
+
var StyledMenuInputSearch$1 = styled__default.default(InputSearch, {
|
|
4811
4766
|
shouldForwardProp: function (prop) { return !doNotForwardProps$p.includes(prop); },
|
|
4812
4767
|
})(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n margin: 0;\n .MuiInputBase-root {\n width: 100%;\n }\n /* (thuang): Works with attribute inputMode: \"none\" to hide mobile keyboard */\n caret-color: ", ";\n"], ["\n margin: 0;\n .MuiInputBase-root {\n width: 100%;\n }\n /* (thuang): Works with attribute inputMode: \"none\" to hide mobile keyboard */\n caret-color: ", ";\n"])), function (_a) {
|
|
4813
4768
|
var search = _a.search;
|
|
4814
4769
|
return (search ? "auto" : "transparent");
|
|
4815
4770
|
});
|
|
4816
|
-
var StyledPaper$3 =
|
|
4771
|
+
var StyledPaper$3 = styled__default.default(material.Paper)(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4817
4772
|
var _a;
|
|
4818
4773
|
var spaces = getSpaces(props);
|
|
4819
4774
|
var corners = getCorners(props);
|
|
@@ -4822,12 +4777,12 @@ var StyledPaper$3 = styled(material.Paper)(templateObject_4$i || (templateObject
|
|
|
4822
4777
|
var semanticColors = getSemanticColors(props);
|
|
4823
4778
|
return "\n background-image: none;\n padding: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px ;\n background-color: ").concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.surfacePrimary, ";\n border: ").concat(borders === null || borders === void 0 ? void 0 : borders.none, ";\n border-radius: ").concat(corners === null || corners === void 0 ? void 0 : corners.m, "px;\n box-shadow: ").concat(shadows === null || shadows === void 0 ? void 0 : shadows.m, ";\n box-sizing: border-box;\n ");
|
|
4824
4779
|
});
|
|
4825
|
-
var StyledMenuItemDetails =
|
|
4780
|
+
var StyledMenuItemDetails = styled__default.default("div")(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
4826
4781
|
var _a;
|
|
4827
4782
|
var semanticColors = getSemanticColors(props);
|
|
4828
4783
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondary, ";\n white-space: pre-wrap;\n ");
|
|
4829
4784
|
});
|
|
4830
|
-
var StyledMenuItemText =
|
|
4785
|
+
var StyledMenuItemText = styled__default.default("div")(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
4831
4786
|
var templateObject_1$O, templateObject_2$t, templateObject_3$l, templateObject_4$i, templateObject_5$d, templateObject_6$8;
|
|
4832
4787
|
|
|
4833
4788
|
var AutocompleteBase = function (props) {
|
|
@@ -4993,20 +4948,20 @@ var AutocompleteBase = function (props) {
|
|
|
4993
4948
|
}
|
|
4994
4949
|
};
|
|
4995
4950
|
|
|
4996
|
-
var StyledColumn =
|
|
4951
|
+
var StyledColumn = styled__default.default("div")(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4997
4952
|
var _a;
|
|
4998
4953
|
var _b = props.width, width = _b === void 0 ? 280 : _b;
|
|
4999
4954
|
var spaces = getSpaces(props);
|
|
5000
4955
|
var borders = getBorders(props);
|
|
5001
4956
|
return "\n position: relative;\n width: ".concat(width, "px;\n\n &:not(:last-child) {\n border-right: ").concat((_a = borders === null || borders === void 0 ? void 0 : borders.base) === null || _a === void 0 ? void 0 : _a.divider, ";\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n }\n\n // (masoudmanson): This code hides the relation icon of the last column\n &:last-of-type {\n .SdsAutocompleteMultiColumn-column-relation-icon {\n display: none;\n }\n }\n ");
|
|
5002
4957
|
});
|
|
5003
|
-
var StyledColumnTitle =
|
|
4958
|
+
var StyledColumnTitle = styled__default.default("p")(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), fontCapsXxxxs, function (props) {
|
|
5004
4959
|
var _a;
|
|
5005
4960
|
var spaces = getSpaces(props);
|
|
5006
4961
|
var semanticColors = getSemanticColors(props);
|
|
5007
4962
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondary, ";\n padding: 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;\n margin: 0;\n ");
|
|
5008
4963
|
});
|
|
5009
|
-
var StyledColumnIcon =
|
|
4964
|
+
var StyledColumnIcon = styled__default.default("span")(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5010
4965
|
var _a, _b;
|
|
5011
4966
|
var spaces = getSpaces(props);
|
|
5012
4967
|
var iconSizes = getIconSizes(props);
|
|
@@ -5064,7 +5019,7 @@ var doNotForwardProps$o = [
|
|
|
5064
5019
|
"onClickAway",
|
|
5065
5020
|
"ClickAwayListenerProps",
|
|
5066
5021
|
];
|
|
5067
|
-
var StyledPopper$2 =
|
|
5022
|
+
var StyledPopper$2 = styled__default.default(material.Popper, {
|
|
5068
5023
|
shouldForwardProp: function (prop) {
|
|
5069
5024
|
return !doNotForwardProps$o.includes(prop) || prop === "anchorEl";
|
|
5070
5025
|
},
|
|
@@ -5077,7 +5032,7 @@ var StyledPopper$2 = styled(material.Popper, {
|
|
|
5077
5032
|
var semanticColors = getSemanticColors(props);
|
|
5078
5033
|
return "\n background-color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.surfacePrimary, ";\n background-image: none;\n border: ").concat(borders === null || borders === void 0 ? void 0 : borders.none, ";\n border-radius: ").concat(corners === null || corners === void 0 ? void 0 : corners.m, "px;\n box-shadow: ").concat(shadows === null || shadows === void 0 ? void 0 : shadows.m, ";\n padding: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n box-sizing: border-box;\n z-index: 1400;\n\n .").concat(material.autocompleteClasses.popper, ".").concat(material.autocompleteClasses.popperDisablePortal, " {\n position: relative !important;\n transform: none !important;\n \n .MuiPaper-root .").concat(material.autocompleteClasses.listbox, " {\n padding: 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px 0 0;\n }\n }\n ");
|
|
5079
5034
|
});
|
|
5080
|
-
var StyledPaper$2 =
|
|
5035
|
+
var StyledPaper$2 = styled__default.default(material.Paper, {
|
|
5081
5036
|
shouldForwardProp: function (prop) { return !doNotForwardProps$o.includes(prop); },
|
|
5082
5037
|
})(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5083
5038
|
var _a;
|
|
@@ -5085,8 +5040,8 @@ var StyledPaper$2 = styled(material.Paper, {
|
|
|
5085
5040
|
var semanticColors = getSemanticColors(props);
|
|
5086
5041
|
return "\n background-color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.surfacePrimary, ";\n background-image: none;\n box-shadow: ").concat(shadows === null || shadows === void 0 ? void 0 : shadows.none, ";\n margin: 0;\n border-radius: 0;\n padding-top: 0;\n padding-bottom: 0;\n ");
|
|
5087
5042
|
});
|
|
5088
|
-
var StyledAutocompleteGroupWrapper =
|
|
5089
|
-
var StyledAutocompleteInput =
|
|
5043
|
+
var StyledAutocompleteGroupWrapper = styled__default.default("div")(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
5044
|
+
var StyledAutocompleteInput = styled__default.default(InputSearch, {
|
|
5090
5045
|
shouldForwardProp: function (prop) { return !doNotForwardProps$o.includes(prop); },
|
|
5091
5046
|
})(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n ", "\n\n margin: 0;\n .MuiInputBase-root {\n width: 100%;\n }\n /* (thuang): Works with attribute inputMode: \"none\" to hide mobile keyboard */\n caret-color: ", ";\n"], ["\n ", "\n\n margin: 0;\n .MuiInputBase-root {\n width: 100%;\n }\n /* (thuang): Works with attribute inputMode: \"none\" to hide mobile keyboard */\n caret-color: ", ";\n"])), function (_a) {
|
|
5092
5047
|
var search = _a.search;
|
|
@@ -5114,7 +5069,7 @@ var AutocompleteMultiColumn = function (props) {
|
|
|
5114
5069
|
}
|
|
5115
5070
|
}, [isOpenControlled, open]);
|
|
5116
5071
|
var anchorRef = React.useRef(null);
|
|
5117
|
-
var _h =
|
|
5072
|
+
var _h = React__namespace.default.useState(null), anchorEl = _h[0], setAnchorEl = _h[1];
|
|
5118
5073
|
useDetectUserTabbing(anchorRef);
|
|
5119
5074
|
React.useEffect(function () {
|
|
5120
5075
|
setAnchorEl(anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current);
|
|
@@ -5281,9 +5236,9 @@ var Autocomplete = function (props) {
|
|
|
5281
5236
|
}
|
|
5282
5237
|
};
|
|
5283
5238
|
|
|
5284
|
-
var Centered =
|
|
5239
|
+
var Centered = styled__default.default("div")(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n flex: 1 1 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n"], ["\n flex: 1 1 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
5285
5240
|
var doNotForwardPropsIconWrapper = ["bannerType"];
|
|
5286
|
-
var IconWrapper$1 =
|
|
5241
|
+
var IconWrapper$1 = styled__default.default("div", {
|
|
5287
5242
|
shouldForwardProp: function (prop) {
|
|
5288
5243
|
return !doNotForwardPropsIconWrapper.includes(prop);
|
|
5289
5244
|
},
|
|
@@ -5296,7 +5251,7 @@ var IconWrapper$1 = styled("div", {
|
|
|
5296
5251
|
return "\n height: ".concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.height, "px;\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n svg {\n fill: ").concat(bannerType === "primary" ? (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.iconPrimaryInverse : (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.info) === null || _b === void 0 ? void 0 : _b.ornament, ";\n }\n ");
|
|
5297
5252
|
});
|
|
5298
5253
|
var doNotForwardPropsButtonIcon = ["bannerType", "textChild"];
|
|
5299
|
-
var StyledButton$2 =
|
|
5254
|
+
var StyledButton$2 = styled__default.default(Button, {
|
|
5300
5255
|
shouldForwardProp: function (prop) {
|
|
5301
5256
|
return !doNotForwardPropsButtonIcon.includes(prop);
|
|
5302
5257
|
},
|
|
@@ -5308,7 +5263,7 @@ var StyledButton$2 = styled(Button, {
|
|
|
5308
5263
|
return "";
|
|
5309
5264
|
return "\n svg {\n fill: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.iconPrimaryInverse, ";\n }\n\n svg:hover {\n fill: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.iconPrimaryInverseHover, ";\n }\n ");
|
|
5310
5265
|
});
|
|
5311
|
-
|
|
5266
|
+
styled__default.default("div")(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), fontBodyS$1);
|
|
5312
5267
|
var primary$1 = function (props) {
|
|
5313
5268
|
var _a, _b;
|
|
5314
5269
|
var semanticColors = getSemanticColors(props);
|
|
@@ -5320,7 +5275,7 @@ var secondary$1 = function (props) {
|
|
|
5320
5275
|
return "\n background-color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.info) === null || _a === void 0 ? void 0 : _a.surfacePrimary, ";\n color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.textPrimary, ";\n ");
|
|
5321
5276
|
};
|
|
5322
5277
|
var doNotForwardProps$n = ["sdsType", "textChild"];
|
|
5323
|
-
var StyledBanner =
|
|
5278
|
+
var StyledBanner = styled__default.default("div", {
|
|
5324
5279
|
shouldForwardProp: function (prop) { return !doNotForwardProps$n.includes(prop); },
|
|
5325
5280
|
})(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyS$1, function (props) {
|
|
5326
5281
|
var sdsType = props.sdsType;
|
|
@@ -5366,7 +5321,7 @@ var BUTTON_ICON_SIZE_TO_SDS_ICON_SIZE = {
|
|
|
5366
5321
|
/**
|
|
5367
5322
|
* @see https://mui.com/material-ui/react-button/
|
|
5368
5323
|
*/
|
|
5369
|
-
var ButtonDropdown =
|
|
5324
|
+
var ButtonDropdown = React__namespace.default.forwardRef(function (props, ref) {
|
|
5370
5325
|
var icon = props.icon, sdsStyle = props.sdsStyle, sdsType = props.sdsType, _a = props.sdsSize, sdsSize = _a === void 0 ? "medium" : _a, sdsIconProps = props.sdsIconProps;
|
|
5371
5326
|
var iconSize = BUTTON_ICON_SIZE_TO_SDS_ICON_SIZE[sdsSize];
|
|
5372
5327
|
var iconItem = function () {
|
|
@@ -5401,7 +5356,7 @@ var ButtonDropdown = React.forwardRef(function (props, ref) {
|
|
|
5401
5356
|
* the component won’t function as expected.
|
|
5402
5357
|
*/
|
|
5403
5358
|
var doNotForwardProps$m = ["sdsStage"];
|
|
5404
|
-
var StyledButtonToggle =
|
|
5359
|
+
var StyledButtonToggle = styled__default.default(ButtonIcon, {
|
|
5405
5360
|
shouldForwardProp: function (prop) { return !doNotForwardProps$m.includes(prop); },
|
|
5406
5361
|
})(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5407
5362
|
var _a;
|
|
@@ -5414,7 +5369,7 @@ var templateObject_1$K;
|
|
|
5414
5369
|
/**
|
|
5415
5370
|
* @see https://mui.com/material-ui/react-button/
|
|
5416
5371
|
*/
|
|
5417
|
-
var ButtonToggle =
|
|
5372
|
+
var ButtonToggle = React__namespace.default.forwardRef(function (props, ref) {
|
|
5418
5373
|
var icon = props.icon, _a = props.sdsSize, sdsSize = _a === void 0 ? "medium" : _a, _b = props.sdsStage, sdsStage = _b === void 0 ? "off" : _b, _c = props.sdsType, sdsType = _c === void 0 ? "primary" : _c, rest = __rest(props, ["icon", "sdsSize", "sdsStage", "sdsType"]);
|
|
5419
5374
|
if (icon !== undefined) {
|
|
5420
5375
|
return (jsxRuntime.jsx(StyledButtonToggle, __assign({ icon: icon, sdsType: sdsType, sdsSize: sdsSize, sdsStage: sdsStage, ref: ref }, rest)));
|
|
@@ -5428,7 +5383,7 @@ var ButtonToggle = React.forwardRef(function (props, ref) {
|
|
|
5428
5383
|
var CALLOUT_TITLE_DISPLAY_NAME = "CalloutTitle";
|
|
5429
5384
|
|
|
5430
5385
|
var doNotForwardProps$l = ["calloutTitle", "collapsed", "severity"];
|
|
5431
|
-
var StyledCallout =
|
|
5386
|
+
var StyledCallout = styled__default.default(material.Alert, {
|
|
5432
5387
|
shouldForwardProp: function (prop) { return !doNotForwardProps$l.includes(prop); },
|
|
5433
5388
|
})(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), fontBodyXs$2, function (props) {
|
|
5434
5389
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
@@ -5520,7 +5475,7 @@ var Callout = function (_a) {
|
|
|
5520
5475
|
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(material.Grow, { in: !hide, children: jsxRuntime.jsxs(StyledCallout, __assign({ onClose: onClose ? handleClose : undefined, action: getAction(collapsed), icon: getIcon(), intent: intent, collapsed: collapsed || false }, rest, { children: [calloutTitle, !collapsed && calloutContent] })) }) }));
|
|
5521
5476
|
};
|
|
5522
5477
|
|
|
5523
|
-
var StyledCalloutTitle =
|
|
5478
|
+
var StyledCalloutTitle = styled__default.default(material.AlertTitle)(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXs$2, function (props) {
|
|
5524
5479
|
var spaces = getSpaces(props);
|
|
5525
5480
|
return "\n margin: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;\n ");
|
|
5526
5481
|
});
|
|
@@ -5552,7 +5507,7 @@ var tableStyles = function (props) {
|
|
|
5552
5507
|
var spaces = getSpaces(props);
|
|
5553
5508
|
return css.css(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n padding: ", "px;\n "], ["\n padding: ", "px;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.m);
|
|
5554
5509
|
};
|
|
5555
|
-
var Subtitle$1 =
|
|
5510
|
+
var Subtitle$1 = styled__default.default("div")(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
5556
5511
|
var _a;
|
|
5557
5512
|
var semanticColors = getSemanticColors(props);
|
|
5558
5513
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondaryInverse, ";\n ");
|
|
@@ -5574,7 +5529,7 @@ var arrowCss = function (props) {
|
|
|
5574
5529
|
* (masoudmanson): !important is needed to override arrow's
|
|
5575
5530
|
* default placement which is calculated by javascript
|
|
5576
5531
|
*/
|
|
5577
|
-
var StyledPopper$1 =
|
|
5532
|
+
var StyledPopper$1 = styled__default.default(material.Popper)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n &[data-popper-placement*=\"top\"] .MuiTooltip-arrow {\n width: 24px !important;\n height: 12px !important;\n margin-bottom: -12px !important;\n &:before {\n transform: rotate(45deg) translate(0px, -2px);\n border-bottom-right-radius: 2px;\n box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.1);\n }\n }\n\n &[data-popper-placement*=\"bottom\"] .MuiTooltip-arrow {\n width: 24px !important;\n height: 12px !important;\n margin-top: -12px !important;\n &:before {\n transform: rotate(45deg) translate(-1px, 2px);\n border-top-left-radius: 2px;\n box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.1);\n }\n }\n\n &[data-popper-placement*=\"left\"] .MuiTooltip-arrow {\n width: 12px !important;\n height: 16px !important;\n margin-right: -12px !important;\n &:before {\n transform: rotate(45deg) translate(-1px, 1px);\n border-top-right-radius: 2px;\n box-shadow: 0 0 4px 0px rgba(0, 0, 0, 0.1);\n }\n }\n\n &[data-popper-placement*=\"right\"] .MuiTooltip-arrow {\n width: 12px !important;\n height: 16px !important;\n margin-left: -12px !important;\n &:before {\n transform: rotate(45deg) translate(4px, 2px);\n border-bottom-left-radius: 2px;\n box-shadow: 0 0 4px 0px rgba(0, 0, 0, 0.1);\n }\n }\n"], ["\n &[data-popper-placement*=\"top\"] .MuiTooltip-arrow {\n width: 24px !important;\n height: 12px !important;\n margin-bottom: -12px !important;\n &:before {\n transform: rotate(45deg) translate(0px, -2px);\n border-bottom-right-radius: 2px;\n box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.1);\n }\n }\n\n &[data-popper-placement*=\"bottom\"] .MuiTooltip-arrow {\n width: 24px !important;\n height: 12px !important;\n margin-top: -12px !important;\n &:before {\n transform: rotate(45deg) translate(-1px, 2px);\n border-top-left-radius: 2px;\n box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.1);\n }\n }\n\n &[data-popper-placement*=\"left\"] .MuiTooltip-arrow {\n width: 12px !important;\n height: 16px !important;\n margin-right: -12px !important;\n &:before {\n transform: rotate(45deg) translate(-1px, 1px);\n border-top-right-radius: 2px;\n box-shadow: 0 0 4px 0px rgba(0, 0, 0, 0.1);\n }\n }\n\n &[data-popper-placement*=\"right\"] .MuiTooltip-arrow {\n width: 12px !important;\n height: 16px !important;\n margin-left: -12px !important;\n &:before {\n transform: rotate(45deg) translate(4px, 2px);\n border-bottom-left-radius: 2px;\n box-shadow: 0 0 4px 0px rgba(0, 0, 0, 0.1);\n }\n }\n"])));
|
|
5578
5533
|
var templateObject_1$H, templateObject_2$p, templateObject_3$h, templateObject_4$f, templateObject_5$b, templateObject_6$7, templateObject_7$4, templateObject_8$3;
|
|
5579
5534
|
|
|
5580
5535
|
/**
|
|
@@ -5668,7 +5623,7 @@ var verticalAlignToFlexMap = {
|
|
|
5668
5623
|
center: "center",
|
|
5669
5624
|
top: "flex-start",
|
|
5670
5625
|
};
|
|
5671
|
-
var StyledTableData =
|
|
5626
|
+
var StyledTableData = styled__default.default("td", {
|
|
5672
5627
|
shouldForwardProp: function (prop) { return !doNotForwardProps$k.includes(prop); },
|
|
5673
5628
|
})(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n ", "\n ", "\n\n ", "\n"], ["\n ", "\n ", "\n\n ", "\n"])), fontBodyS$1, focusVisibleA11yStyle, function (props) {
|
|
5674
5629
|
var _a = props.horizontalAlign, horizontalAlign = _a === void 0 ? "left" : _a, _b = props.verticalAlign, verticalAlign = _b === void 0 ? "top" : _b;
|
|
@@ -5681,20 +5636,20 @@ var ShouldWrap = function (lineCount) {
|
|
|
5681
5636
|
var ShouldTruncate = function () {
|
|
5682
5637
|
return "\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n ";
|
|
5683
5638
|
};
|
|
5684
|
-
var StyledCellContent =
|
|
5685
|
-
var StyledCellContentWrapper =
|
|
5686
|
-
var StyledCellIconWrapper =
|
|
5639
|
+
var StyledCellContent = styled__default.default("div")(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
5640
|
+
var StyledCellContentWrapper = styled__default.default("div")(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
5641
|
+
var StyledCellIconWrapper = styled__default.default("div", {
|
|
5687
5642
|
shouldForwardProp: function (prop) { return !doNotForwardProps$k.includes(prop); },
|
|
5688
5643
|
})(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5689
5644
|
var _a = props.iconVerticalAlign, iconVerticalAlign = _a === void 0 ? "top" : _a;
|
|
5690
5645
|
var spaces = getSpaces(props);
|
|
5691
5646
|
return "\n padding-right: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n display: flex;\n flex-direction: column;\n justify-content: ").concat(verticalAlignToFlexMap[iconVerticalAlign], ";\n ");
|
|
5692
5647
|
});
|
|
5693
|
-
var PrimaryTextWrapper =
|
|
5648
|
+
var PrimaryTextWrapper = styled__default.default("div")(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5694
5649
|
var horizontalAlign = props.horizontalAlign;
|
|
5695
5650
|
return "\n display: flex;\n justify-content: ".concat(horizontalAlign === "left" ? "flex-start" : "flex-end", ";\n ");
|
|
5696
5651
|
});
|
|
5697
|
-
var PrimaryText =
|
|
5652
|
+
var PrimaryText = styled__default.default("div", {
|
|
5698
5653
|
shouldForwardProp: function (prop) { return !doNotForwardProps$k.includes(prop); },
|
|
5699
5654
|
})(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyS$1, function (props) {
|
|
5700
5655
|
var _a = props.primaryTextWrapLineCount, primaryTextWrapLineCount = _a === void 0 ? 3 : _a;
|
|
@@ -5702,7 +5657,7 @@ var PrimaryText = styled("div", {
|
|
|
5702
5657
|
? ShouldWrap(primaryTextWrapLineCount)
|
|
5703
5658
|
: ShouldTruncate(), "\n ");
|
|
5704
5659
|
});
|
|
5705
|
-
var SecondaryText =
|
|
5660
|
+
var SecondaryText = styled__default.default("span", {
|
|
5706
5661
|
shouldForwardProp: function (prop) { return !doNotForwardProps$k.includes(prop); },
|
|
5707
5662
|
})(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
5708
5663
|
var _a;
|
|
@@ -5713,7 +5668,7 @@ var SecondaryText = styled("span", {
|
|
|
5713
5668
|
? ShouldWrap(secondaryTextWrapLineCount)
|
|
5714
5669
|
: ShouldTruncate(), "\n ");
|
|
5715
5670
|
});
|
|
5716
|
-
var TertiaryText =
|
|
5671
|
+
var TertiaryText = styled__default.default("span", {
|
|
5717
5672
|
shouldForwardProp: function (prop) { return !doNotForwardProps$k.includes(prop); },
|
|
5718
5673
|
})(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
5719
5674
|
var _a;
|
|
@@ -5724,11 +5679,11 @@ var TertiaryText = styled("span", {
|
|
|
5724
5679
|
? ShouldWrap(tertiaryTextWrapLineCount)
|
|
5725
5680
|
: ShouldTruncate(), "\n ");
|
|
5726
5681
|
});
|
|
5727
|
-
var PrimaryTextComponentSlotBottomWrapper =
|
|
5682
|
+
var PrimaryTextComponentSlotBottomWrapper = styled__default.default("div")(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5728
5683
|
var spaces = getSpaces(props);
|
|
5729
5684
|
return "\n margin-top: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;\n ");
|
|
5730
5685
|
});
|
|
5731
|
-
var PrimaryTextComponentSlotRightWrapper =
|
|
5686
|
+
var PrimaryTextComponentSlotRightWrapper = styled__default.default("div")(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5732
5687
|
var spaces = getSpaces(props);
|
|
5733
5688
|
return "\n margin-left: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;\n ");
|
|
5734
5689
|
});
|
|
@@ -5747,7 +5702,7 @@ var CellBasic = React.forwardRef(function (props, ref) {
|
|
|
5747
5702
|
});
|
|
5748
5703
|
|
|
5749
5704
|
var doNotForwardProps$j = ["horizontalAlign", "verticalAlign"];
|
|
5750
|
-
var StyledCellComponentData =
|
|
5705
|
+
var StyledCellComponentData = styled__default.default("td", {
|
|
5751
5706
|
shouldForwardProp: function (prop) { return !doNotForwardProps$j.includes(prop); },
|
|
5752
5707
|
})(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n ", "\n ", "\n\n ", "\n"], ["\n ", "\n ", "\n\n ", "\n"])), fontBodyS$1, focusVisibleA11yStyle, function (props) {
|
|
5753
5708
|
var spaces = getSpaces(props);
|
|
@@ -5774,7 +5729,7 @@ var doNotForwardProps$i = [
|
|
|
5774
5729
|
"tooltipText",
|
|
5775
5730
|
"hideSortIcon",
|
|
5776
5731
|
];
|
|
5777
|
-
var StyledSortingIcon =
|
|
5732
|
+
var StyledSortingIcon = styled__default.default(Icon, {
|
|
5778
5733
|
shouldForwardProp: function (prop) { return !doNotForwardProps$i.includes(prop); },
|
|
5779
5734
|
})(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5780
5735
|
var _a, _b;
|
|
@@ -5783,7 +5738,7 @@ var StyledSortingIcon = styled(Icon, {
|
|
|
5783
5738
|
var semanticColors = getSemanticColors(props);
|
|
5784
5739
|
return "\n margin-left: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;\n margin-bottom: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;\n color: ").concat(active ? (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _a === void 0 ? void 0 : _a.icon : (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.iconPrimary, ";\n opacity: ").concat(hideSortIcon ? (active ? 1 : 0) : 1, ";\n outline: none !important;\n ");
|
|
5785
5740
|
});
|
|
5786
|
-
var StyledTableHeader$1 =
|
|
5741
|
+
var StyledTableHeader$1 = styled__default.default("th", {
|
|
5787
5742
|
shouldForwardProp: function (prop) { return !doNotForwardProps$i.includes(prop); },
|
|
5788
5743
|
})(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n ", "\n ", "\n\n ", "\n"], ["\n ", "\n ", "\n\n ", "\n"])), fontHeaderS, focusVisibleA11yStyle, function (props) {
|
|
5789
5744
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -5792,7 +5747,7 @@ var StyledTableHeader$1 = styled("th", {
|
|
|
5792
5747
|
var semanticColors = getSemanticColors(props);
|
|
5793
5748
|
return "\n color: ".concat(active ? (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _a === void 0 ? void 0 : _a.textAction : (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.textSecondary, ";\n padding: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n text-align: ").concat(horizontalAlign, ";\n min-width: 96px;\n width: 96px;\n cursor: pointer;\n vertical-align: bottom;\n\n & .MuiButtonBase-root {\n outline: none;\n }\n\n &:hover {\n color: ").concat(active ? (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _c === void 0 ? void 0 : _c.textActionHover : (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.textPrimary, ";\n\n & .MuiButtonBase-root {\n color: ").concat(active ? (_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _e === void 0 ? void 0 : _e.textActionHover : (_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _f === void 0 ? void 0 : _f.textPrimary, ";\n opacity: 1;\n }\n\n & svg {\n color: ").concat(active ? (_g = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _g === void 0 ? void 0 : _g.iconHover : (_h = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _h === void 0 ? void 0 : _h.iconPrimaryHover, ";\n }\n }\n ");
|
|
5794
5749
|
});
|
|
5795
|
-
var StyledCellHeaderContainer =
|
|
5750
|
+
var StyledCellHeaderContainer = styled__default.default("div", {
|
|
5796
5751
|
shouldForwardProp: function (prop) { return !doNotForwardProps$i.includes(prop); },
|
|
5797
5752
|
})(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5798
5753
|
var _a = props.horizontalAlign, horizontalAlign = _a === void 0 ? "left" : _a;
|
|
@@ -5895,7 +5850,7 @@ var statusToCss = {
|
|
|
5895
5850
|
warning: warning,
|
|
5896
5851
|
};
|
|
5897
5852
|
var doNotForwardProps$h = ["isRounded"];
|
|
5898
|
-
var StyledChip =
|
|
5853
|
+
var StyledChip = styled__default.default(material.Chip, {
|
|
5899
5854
|
shouldForwardProp: function (prop) { return !doNotForwardProps$h.includes(prop); },
|
|
5900
5855
|
})(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n border: none;\n\n ", "\n"], ["\n border: none;\n\n ", "\n"])), function (props) {
|
|
5901
5856
|
var size = props.size, status = props.status, isRounded = props.isRounded;
|
|
@@ -5932,7 +5887,7 @@ var doNotForwardProps$g = [
|
|
|
5932
5887
|
"forceOpen",
|
|
5933
5888
|
"isMultiColumn",
|
|
5934
5889
|
];
|
|
5935
|
-
var StyledHeaderTitle =
|
|
5890
|
+
var StyledHeaderTitle = styled__default.default("div", {
|
|
5936
5891
|
shouldForwardProp: function (prop) { return !doNotForwardProps$g.includes(prop); },
|
|
5937
5892
|
})(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontHeaderXs, function (props) {
|
|
5938
5893
|
var _a;
|
|
@@ -5940,8 +5895,8 @@ var StyledHeaderTitle = styled("div", {
|
|
|
5940
5895
|
var semanticColors = getSemanticColors(props);
|
|
5941
5896
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimary, ";\n padding-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n ");
|
|
5942
5897
|
});
|
|
5943
|
-
var StyledDropdownMenuAutocompleteWrapper =
|
|
5944
|
-
var StyledPopper =
|
|
5898
|
+
var StyledDropdownMenuAutocompleteWrapper = styled__default.default("div")(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n & .", ", & .MuiPopper-root,\n .base-Popper-root {\n position: relative !important;\n transform: none !important;\n width: 100% !important;\n box-shadow: none;\n padding: 0;\n border: none;\n\n .", ", .MuiPaper-root {\n box-shadow: none !important;\n border: none !important;\n border-radius: 0;\n margin: 0;\n padding: 0;\n }\n }\n"], ["\n & .", ", & .MuiPopper-root,\n .base-Popper-root {\n position: relative !important;\n transform: none !important;\n width: 100% !important;\n box-shadow: none;\n padding: 0;\n border: none;\n\n .", ", .MuiPaper-root {\n box-shadow: none !important;\n border: none !important;\n border-radius: 0;\n margin: 0;\n padding: 0;\n }\n }\n"])), material.autocompleteClasses.popper, material.autocompleteClasses.paper);
|
|
5899
|
+
var StyledPopper = styled__default.default(material.Popper, {
|
|
5945
5900
|
shouldForwardProp: function (prop) {
|
|
5946
5901
|
return !doNotForwardProps$g.includes(prop) || prop === "anchorEl";
|
|
5947
5902
|
},
|
|
@@ -5953,7 +5908,7 @@ var StyledPopper = styled(material.Popper, {
|
|
|
5953
5908
|
var semanticColors = getSemanticColors(props);
|
|
5954
5909
|
return "\n background-color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.surfacePrimary, ";\n background-image: none;\n border: ").concat(borders === null || borders === void 0 ? void 0 : borders.none, ";\n border-radius: ").concat(corners === null || corners === void 0 ? void 0 : corners.m, "px;\n box-shadow: ").concat(shadows === null || shadows === void 0 ? void 0 : shadows.m, ";\n box-sizing: border-box;\n z-index: 1400;\n ");
|
|
5955
5910
|
});
|
|
5956
|
-
var StyledPaper$1 =
|
|
5911
|
+
var StyledPaper$1 = styled__default.default(material.Paper, {
|
|
5957
5912
|
shouldForwardProp: function (prop) { return !doNotForwardProps$g.includes(prop); },
|
|
5958
5913
|
})(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5959
5914
|
var _a;
|
|
@@ -5963,7 +5918,7 @@ var StyledPaper$1 = styled(material.Paper, {
|
|
|
5963
5918
|
var semanticColors = getSemanticColors(props);
|
|
5964
5919
|
return "\n box-shadow: ".concat(shadows === null || shadows === void 0 ? void 0 : shadows.none, " !important;\n border: ").concat(borders === null || borders === void 0 ? void 0 : borders.none, ";\n background-color: ").concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.surfacePrimary, ";\n background-image: none;\n margin: 0;\n padding: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n\n .MuiAutocomplete-root,\n .MuiFormControl-root.MuiTextField-root {\n margin-bottom: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n }\n\n // (masoudmanson): Remove margin-right and margin-bottom for the single column autocomplete\n // as it has been added to the parent container\n .MuiAutocomplete-root .MuiFormControl-root.MuiTextField-root {\n margin-right: 0;\n margin-bottom: 0; \n }\n ");
|
|
5965
5920
|
});
|
|
5966
|
-
var StyledDropdownMenuHeader =
|
|
5921
|
+
var StyledDropdownMenuHeader = styled__default.default("div")(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5967
5922
|
var search = props.search;
|
|
5968
5923
|
var spaces = getSpaces(props);
|
|
5969
5924
|
return "\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-right: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n margin-bottom: ").concat(search ? spaces === null || spaces === void 0 ? void 0 : spaces.s : spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n ");
|
|
@@ -6081,7 +6036,7 @@ var isDisabled = function (props) {
|
|
|
6081
6036
|
* passed to the underlying Button component. So we have added the style prop
|
|
6082
6037
|
* to the InputDropdownProps interface.
|
|
6083
6038
|
*/
|
|
6084
|
-
var StyledInputDropdown =
|
|
6039
|
+
var StyledInputDropdown = styled__default.default(Button, {
|
|
6085
6040
|
shouldForwardProp: function (prop) { return !doNotForwardProps$f.includes(prop); },
|
|
6086
6041
|
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n ", "\n outline-offset: 1px !important;\n\n /* (thuang): in Minimal it's a different value */\n align-items: center;\n /* (thuang): in Minimal it's a different value */\n flex-direction: row;\n\n justify-content: space-between;\n\n ", "\n"], ["\n ", "\n ", "\n outline-offset: 1px !important;\n\n /* (thuang): in Minimal it's a different value */\n align-items: center;\n /* (thuang): in Minimal it's a different value */\n flex-direction: row;\n\n justify-content: space-between;\n\n ", "\n"])), labelFontBodyXs, focusVisibleA11yStyle, function (props) {
|
|
6087
6042
|
var disabled = props.disabled, intent = props.intent, state = props.state, value = props.value, sdsStyle = props.sdsStyle;
|
|
@@ -6093,7 +6048,7 @@ var StyledInputDropdown = styled(Button, {
|
|
|
6093
6048
|
sdsStyle !== "minimal" &&
|
|
6094
6049
|
applyIntentColor$1(props, "positive"), state === "open" && isOpen(props), disabled && isDisabled(props));
|
|
6095
6050
|
});
|
|
6096
|
-
var StyledDetail =
|
|
6051
|
+
var StyledDetail = styled__default.default("span", {
|
|
6097
6052
|
shouldForwardProp: function (prop) { return !doNotForwardProps$f.includes(prop); },
|
|
6098
6053
|
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6099
6054
|
var _a;
|
|
@@ -6101,7 +6056,7 @@ var StyledDetail = styled("span", {
|
|
|
6101
6056
|
var semanticColors = getSemanticColors(props);
|
|
6102
6057
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondary, ";\n margin-left: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n ");
|
|
6103
6058
|
});
|
|
6104
|
-
var StyledLabel$1 =
|
|
6059
|
+
var StyledLabel$1 = styled__default.default("span", {
|
|
6105
6060
|
shouldForwardProp: function (prop) { return !doNotForwardProps$f.includes(prop); },
|
|
6106
6061
|
})(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6107
6062
|
var _a, _b;
|
|
@@ -6113,7 +6068,7 @@ var StyledLabel$1 = styled("span", {
|
|
|
6113
6068
|
: (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.textSecondary;
|
|
6114
6069
|
return "\n color: ".concat(labelColor, ";\n\n font-weight: ").concat(sdsType === "label" ? fontWeights === null || fontWeights === void 0 ? void 0 : fontWeights.semibold : fontWeights === null || fontWeights === void 0 ? void 0 : fontWeights.regular, ";\n ");
|
|
6115
6070
|
});
|
|
6116
|
-
var StyledCounter =
|
|
6071
|
+
var StyledCounter = styled__default.default("span", {
|
|
6117
6072
|
shouldForwardProp: function (prop) { return !doNotForwardProps$f.includes(prop); },
|
|
6118
6073
|
})(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6119
6074
|
var _a, _b;
|
|
@@ -6122,7 +6077,7 @@ var StyledCounter = styled("span", {
|
|
|
6122
6077
|
var semanticColors = getSemanticColors(props);
|
|
6123
6078
|
return "\n background-color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.surfaceTertiary, ";\n color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _b === void 0 ? void 0 : _b.textAction, ";\n border-radius: ").concat(corners === null || corners === void 0 ? void 0 : corners.l, "px;\n padding: 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;\n margin-left: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;\n ");
|
|
6124
6079
|
});
|
|
6125
|
-
var MinimalDetails =
|
|
6080
|
+
var MinimalDetails = styled__default.default("div", {
|
|
6126
6081
|
shouldForwardProp: function (prop) { return !doNotForwardProps$f.includes(prop); },
|
|
6127
6082
|
})(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n text-align: left;\n width: 100%;\n\n ", "\n"], ["\n ", "\n text-align: left;\n width: 100%;\n\n ", "\n"])), labelFontBodyS, function (props) {
|
|
6128
6083
|
var _a;
|
|
@@ -6131,13 +6086,13 @@ var MinimalDetails = styled("div", {
|
|
|
6131
6086
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondary, ";\n\n ").concat(shouldTruncateMinimalDetails &&
|
|
6132
6087
|
"overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;", "\n ");
|
|
6133
6088
|
});
|
|
6134
|
-
var LabelWrapper =
|
|
6089
|
+
var LabelWrapper = styled__default.default("span", {
|
|
6135
6090
|
shouldForwardProp: function (prop) { return !doNotForwardProps$f.includes(prop); },
|
|
6136
6091
|
})(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
6137
6092
|
var isMinimal = _a.isMinimal;
|
|
6138
6093
|
return "\n align-items: ".concat(isMinimal ? "center" : undefined, ";\n display: ").concat(isMinimal ? "inline-flex" : "contents", ";\n justify-content: ").concat(isMinimal ? "space-between" : undefined, ";\n width: 100%;\n ");
|
|
6139
6094
|
});
|
|
6140
|
-
var IconWrapper =
|
|
6095
|
+
var IconWrapper = styled__default.default("span", {
|
|
6141
6096
|
shouldForwardProp: function (prop) { return !doNotForwardProps$f.includes(prop); },
|
|
6142
6097
|
})(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n margin-left: auto;\n display: flex;\n align-items: center;\n"], ["\n margin-left: auto;\n display: flex;\n align-items: center;\n"])));
|
|
6143
6098
|
function labelStyle(props) {
|
|
@@ -6327,7 +6282,7 @@ var doNotForwardProps$e = [
|
|
|
6327
6282
|
"tagColor",
|
|
6328
6283
|
"hover",
|
|
6329
6284
|
];
|
|
6330
|
-
var StyledTag$1 =
|
|
6285
|
+
var StyledTag$1 = styled__default.default(material.Chip, {
|
|
6331
6286
|
shouldForwardProp: function (prop) { return !doNotForwardProps$e.includes(prop); },
|
|
6332
6287
|
})(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n border: none;\n\n ", "\n"], ["\n border: none;\n\n ", "\n"])), function (props) {
|
|
6333
6288
|
var _a = props.hover, hover = _a === void 0 ? true : _a, sdsType = props.sdsType, sdsStyle = props.sdsStyle, _b = props.sdsSize, sdsSize = _b === void 0 ? "s" : _b;
|
|
@@ -6349,7 +6304,7 @@ var Tag = function (props) {
|
|
|
6349
6304
|
return jsxRuntime.jsx(StyledTag$1, __assign({ tagColor: color }, props, { color: "primary" }));
|
|
6350
6305
|
};
|
|
6351
6306
|
|
|
6352
|
-
var StyledTag =
|
|
6307
|
+
var StyledTag = styled__default.default(Tag)(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6353
6308
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
6354
6309
|
var spaces = getSpaces(props);
|
|
6355
6310
|
var iconSizes = getIconSizes(props);
|
|
@@ -6379,8 +6334,8 @@ var Chips = function (_a) {
|
|
|
6379
6334
|
}) }));
|
|
6380
6335
|
};
|
|
6381
6336
|
|
|
6382
|
-
var Wrapper$1 =
|
|
6383
|
-
var StyledChipsWrapper =
|
|
6337
|
+
var Wrapper$1 = styled__default.default("div")(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n min-width: 150px;\n"], ["\n min-width: 150px;\n"])));
|
|
6338
|
+
var StyledChipsWrapper = styled__default.default("div")(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6384
6339
|
var spaces = getSpaces(props);
|
|
6385
6340
|
return "\n margin-top: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;\n ");
|
|
6386
6341
|
});
|
|
@@ -6477,7 +6432,7 @@ var DialogContext = React.createContext({ sdsSize: "m" });
|
|
|
6477
6432
|
|
|
6478
6433
|
// (thuang): Please keep this in sync with the props used in `ExtraProps`
|
|
6479
6434
|
var doNotForwardProps$d = ["sdsSize"];
|
|
6480
|
-
var StyledPaper =
|
|
6435
|
+
var StyledPaper = styled__default.default(material.Paper, {
|
|
6481
6436
|
shouldForwardProp: function (prop) { return !doNotForwardProps$d.includes(prop); },
|
|
6482
6437
|
})(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n & {\n ", "\n\n ", "\n }\n"], ["\n & {\n ", "\n\n ", "\n }\n"])), paperDimensions, function (props) {
|
|
6483
6438
|
var _a;
|
|
@@ -6540,7 +6495,7 @@ var Dialog = React.forwardRef(function Dialog(props, ref) {
|
|
|
6540
6495
|
|
|
6541
6496
|
// (thuang): Please keep this in sync with the props used in `DialogActionsExtraProps`
|
|
6542
6497
|
var doNotForwardProps$c = ["buttonPosition"];
|
|
6543
|
-
var StyledDialogActions =
|
|
6498
|
+
var StyledDialogActions = styled__default.default(material.DialogActions, {
|
|
6544
6499
|
shouldForwardProp: function (prop) { return !doNotForwardProps$c.includes(prop); },
|
|
6545
6500
|
})(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n padding: 0;\n\n ", "\n"], ["\n padding: 0;\n\n ", "\n"])), function (props) {
|
|
6546
6501
|
var spaces = getSpaces(props);
|
|
@@ -6556,7 +6511,7 @@ var DialogActions = React.forwardRef(function DialogActions(props, ref) {
|
|
|
6556
6511
|
return jsxRuntime.jsx(StyledDialogActions, __assign({ ref: ref }, props));
|
|
6557
6512
|
});
|
|
6558
6513
|
|
|
6559
|
-
var StyledDialogContent =
|
|
6514
|
+
var StyledDialogContent = styled__default.default(material.DialogContent)(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n ", "\n padding: 0;\n"], ["\n ", "\n padding: 0;\n"])), fontBodyS$1);
|
|
6560
6515
|
var templateObject_1$v;
|
|
6561
6516
|
|
|
6562
6517
|
var index = React.forwardRef(
|
|
@@ -6567,7 +6522,7 @@ function DialogContent(props, ref) {
|
|
|
6567
6522
|
return jsxRuntime.jsx(StyledDialogContent, __assign({ ref: ref }, props));
|
|
6568
6523
|
});
|
|
6569
6524
|
|
|
6570
|
-
var StyledButton$1 =
|
|
6525
|
+
var StyledButton$1 = styled__default.default(Button)(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n position: absolute;\n\n ", "\n"], ["\n position: absolute;\n\n ", "\n"])), function (props) {
|
|
6571
6526
|
var spaces = getSpaces(props);
|
|
6572
6527
|
return "\n right: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxl, "px;\n ");
|
|
6573
6528
|
});
|
|
@@ -6587,21 +6542,21 @@ var CloseButton = React.forwardRef(function CloseButton(props, ref) {
|
|
|
6587
6542
|
} }));
|
|
6588
6543
|
});
|
|
6589
6544
|
|
|
6590
|
-
var StyledDialogTitle =
|
|
6545
|
+
var StyledDialogTitle = styled__default.default(material.DialogTitle)(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n padding: 0;\n ", "\n"], ["\n padding: 0;\n ", "\n"])), function (props) {
|
|
6591
6546
|
var spaces = getSpaces(props);
|
|
6592
6547
|
return "\n margin-bottom: ".concat((spaces === null || spaces === void 0 ? void 0 : spaces.xl) || 0, "px;\n ");
|
|
6593
6548
|
});
|
|
6594
|
-
var Title =
|
|
6549
|
+
var Title = styled__default.default(material.Typography)(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontHeaderXl, function (props) {
|
|
6595
6550
|
var _a;
|
|
6596
6551
|
var semanticColors = getSemanticColors(props);
|
|
6597
6552
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimary, ";\n ");
|
|
6598
6553
|
});
|
|
6599
|
-
var Subtitle =
|
|
6554
|
+
var Subtitle = styled__default.default(material.Typography)(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXs$2, function (props) {
|
|
6600
6555
|
var _a;
|
|
6601
6556
|
var semanticColors = getSemanticColors(props);
|
|
6602
6557
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondary, ";\n ");
|
|
6603
6558
|
});
|
|
6604
|
-
var Overline =
|
|
6559
|
+
var Overline = styled__default.default(material.Typography)(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyS$1, function (props) {
|
|
6605
6560
|
var _a;
|
|
6606
6561
|
var semanticColors = getSemanticColors(props);
|
|
6607
6562
|
var spaces = getSpaces(props);
|
|
@@ -6618,13 +6573,13 @@ var DialogTitle = React.forwardRef(function DialogTitle(props, ref) {
|
|
|
6618
6573
|
});
|
|
6619
6574
|
|
|
6620
6575
|
var doNotForwardProps$b = ["buttonPosition"];
|
|
6621
|
-
var StyledButtonsWrapper =
|
|
6576
|
+
var StyledButtonsWrapper = styled__default.default("div", {
|
|
6622
6577
|
shouldForwardProp: function (prop) { return !doNotForwardProps$b.includes(prop); },
|
|
6623
6578
|
})(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6624
6579
|
var buttonPosition = props.buttonPosition;
|
|
6625
6580
|
return "\n display: flex;\n justify-content: ".concat(buttonPosition === "left" ? "start" : "end", ";\n ");
|
|
6626
6581
|
});
|
|
6627
|
-
var StyledButton =
|
|
6582
|
+
var StyledButton = styled__default.default(Button, {
|
|
6628
6583
|
shouldForwardProp: function (prop) { return !doNotForwardProps$b.includes(prop); },
|
|
6629
6584
|
})(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6630
6585
|
var spaces = getSpaces(props);
|
|
@@ -6803,7 +6758,7 @@ var SvgIconCheckboxUnchecked = function SvgIconCheckboxUnchecked(props) {
|
|
|
6803
6758
|
})));
|
|
6804
6759
|
};
|
|
6805
6760
|
|
|
6806
|
-
var StyledCheckbox =
|
|
6761
|
+
var StyledCheckbox = styled__default.default(material.Checkbox)(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6807
6762
|
var _a, _b, _c, _d, _e, _f;
|
|
6808
6763
|
var _g = props.intent, intent = _g === void 0 ? "default" : _g;
|
|
6809
6764
|
var iconSizes = getIconSizes(props);
|
|
@@ -6818,16 +6773,16 @@ var StyledCheckbox = styled(material.Checkbox)(templateObject_1$r || (templateOb
|
|
|
6818
6773
|
var checkboxColor = intentToColor[intent];
|
|
6819
6774
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors[checkboxColor]) === null || _a === void 0 ? void 0 : _a.border, ";\n\n &:hover {\n color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.borderHover, ";\n background-color: transparent;\n }\n\n &.").concat(material.checkboxClasses.disabled, " {\n color: ").concat((_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.borderDisabled, ";\n }\n\n &.").concat(material.checkboxClasses.checked, " {\n color: ").concat((_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _d === void 0 ? void 0 : _d.border, ";\n\n &:hover {\n color: ").concat((_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _e === void 0 ? void 0 : _e.borderHover, ";\n background-color: transparent;\n }\n\n &.").concat(material.checkboxClasses.disabled, " {\n color: ").concat((_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _f === void 0 ? void 0 : _f.borderDisabled, ";\n }\n }\n\n &.").concat(material.checkboxClasses.root, " {\n ").concat(focusVisibleA11yStyle(props), "\n padding: 0;\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;\n border-radius: 0;\n }\n\n .MuiSvgIcon-root {\n height: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;\n width: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.width, "px;\n }\n ");
|
|
6820
6775
|
});
|
|
6821
|
-
var StyledFormControlLabel$1 =
|
|
6776
|
+
var StyledFormControlLabel$1 = styled__default.default(material.FormControlLabel)(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6822
6777
|
var spaces = getSpaces(props);
|
|
6823
6778
|
return "\n align-items: start;\n margin-bottom: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n margin-left: 0;\n margin-right: 0;\n width: fit-content;\n ");
|
|
6824
6779
|
});
|
|
6825
|
-
var StyledLabelContainer$1 =
|
|
6826
|
-
var StyledCheckboxLabel =
|
|
6780
|
+
var StyledLabelContainer$1 = styled__default.default("span")(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n display: flex;\n justify-content: start;\n flex-direction: column;\n"], ["\n display: flex;\n justify-content: start;\n flex-direction: column;\n"])));
|
|
6781
|
+
var StyledCheckboxLabel = styled__default.default("span")(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXs$2, function (props) {
|
|
6827
6782
|
var spaces = getSpaces(props);
|
|
6828
6783
|
return "\n margin-top: -".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px !important;\n ");
|
|
6829
6784
|
});
|
|
6830
|
-
var StyledCheckboxCaption =
|
|
6785
|
+
var StyledCheckboxCaption = styled__default.default("span")(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
6831
6786
|
var _a, _b;
|
|
6832
6787
|
var disabled = props.disabled;
|
|
6833
6788
|
var semanticColors = getSemanticColors(props);
|
|
@@ -6884,7 +6839,7 @@ var SvgIconRadioUnchecked = function SvgIconRadioUnchecked(props) {
|
|
|
6884
6839
|
})));
|
|
6885
6840
|
};
|
|
6886
6841
|
|
|
6887
|
-
var StyledRadioButton =
|
|
6842
|
+
var StyledRadioButton = styled__default.default(material.Radio)(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6888
6843
|
var _a, _b, _c, _d, _e, _f;
|
|
6889
6844
|
var _g = props.intent, intent = _g === void 0 ? "default" : _g;
|
|
6890
6845
|
var spaces = getSpaces(props);
|
|
@@ -6899,16 +6854,16 @@ var StyledRadioButton = styled(material.Radio)(templateObject_1$q || (templateOb
|
|
|
6899
6854
|
var radioColor = intentToColor[intent];
|
|
6900
6855
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors[radioColor]) === null || _a === void 0 ? void 0 : _a.border, ";\n\n &:hover {\n color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.borderHover, ";\n background-color: transparent;\n }\n\n &.").concat(material.radioClasses.disabled, " {\n color: ").concat((_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.borderDisabled, ";\n }\n\n &.").concat(material.radioClasses.checked, " {\n color: ").concat((_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _d === void 0 ? void 0 : _d.border, ";\n\n &:hover {\n color: ").concat((_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _e === void 0 ? void 0 : _e.borderHover, ";\n background-color: transparent;\n }\n\n &.").concat(material.radioClasses.disabled, " {\n color: ").concat((_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _f === void 0 ? void 0 : _f.borderDisabled, ";\n }\n }\n\n &.").concat(material.radioClasses.root, " {\n ").concat(focusVisibleA11yStyle(props), "\n margin: 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px 0 0;\n padding: 0;\n }\n\n .MuiSvgIcon-root {\n height: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;\n width: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.width, "px;\n }\n ");
|
|
6901
6856
|
});
|
|
6902
|
-
var StyledFormControlLabel =
|
|
6857
|
+
var StyledFormControlLabel = styled__default.default(material.FormControlLabel)(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6903
6858
|
var spaces = getSpaces(props);
|
|
6904
6859
|
return "\n align-items: start;\n margin-bottom: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n margin-left: 0;\n margin-right: 0;\n width: fit-content;\n ");
|
|
6905
6860
|
});
|
|
6906
|
-
var StyledLabelContainer =
|
|
6907
|
-
var StyledRadioLabel =
|
|
6861
|
+
var StyledLabelContainer = styled__default.default("span")(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n display: flex;\n justify-content: start;\n flex-direction: column;\n"], ["\n display: flex;\n justify-content: start;\n flex-direction: column;\n"])));
|
|
6862
|
+
var StyledRadioLabel = styled__default.default("span")(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXs$2, function (props) {
|
|
6908
6863
|
var spaces = getSpaces(props);
|
|
6909
6864
|
return "\n margin-top: -".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px !important;\n ");
|
|
6910
6865
|
});
|
|
6911
|
-
var StyledRadioCaption =
|
|
6866
|
+
var StyledRadioCaption = styled__default.default("span")(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
6912
6867
|
var _a, _b;
|
|
6913
6868
|
var disabled = props.disabled;
|
|
6914
6869
|
var semanticColors = getSemanticColors(props);
|
|
@@ -6962,7 +6917,7 @@ var disabledSlider = function (props) {
|
|
|
6962
6917
|
var mode = getMode(props);
|
|
6963
6918
|
return "\n .".concat(material.sliderClasses.track, " {\n background-color: ").concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.fillDisabled, ";\n }\n\n .").concat(material.sliderClasses.thumb, ".").concat(material.sliderClasses.disabled, " {\n background-color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.fillDisabled, ";\n }\n\n .").concat(material.sliderClasses.valueLabel, " {\n color: ").concat(colors === null || colors === void 0 ? void 0 : colors.gray[300], ";\n background-color: ").concat(mode === "light" ? (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.surfaceSecondary : (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.surfacePrimary, ";\n \n & * {\n color: ").concat((_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _e === void 0 ? void 0 : _e.textDisabled, ";\n }\n }\n\n .").concat(material.sliderClasses.markLabel, " {\n color: ").concat((_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _f === void 0 ? void 0 : _f.textDisabled, "\n }\n\n .").concat(material.sliderClasses.mark, " {\n background-color: ").concat((_g = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _g === void 0 ? void 0 : _g.fillPrimary, ";\n }\n ");
|
|
6964
6919
|
};
|
|
6965
|
-
var StyledSlider =
|
|
6920
|
+
var StyledSlider = styled__default.default(material.Slider)(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
6966
6921
|
var disabled = props.disabled;
|
|
6967
6922
|
return "\n ".concat(inputSlider(props), "\n ").concat(horizontal(props), "\n ").concat(disabled ? disabledSlider(props) : "", "\n ");
|
|
6968
6923
|
});
|
|
@@ -6993,11 +6948,11 @@ var textArea = function (props) {
|
|
|
6993
6948
|
var spaces = getSpaces(props);
|
|
6994
6949
|
return react.css(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n .", " {\n padding: ", "px;\n\n > .", " {\n padding: ", "px ", "px ", "px;\n resize: both;\n }\n }\n "], ["\n .", " {\n padding: ", "px;\n\n > .", " {\n padding: ", "px ", "px ", "px;\n resize: both;\n }\n }\n "])), material.outlinedInputClasses.multiline, spaces === null || spaces === void 0 ? void 0 : spaces.xxs, material.outlinedInputClasses.inputMultiline, spaces === null || spaces === void 0 ? void 0 : spaces.xxs, spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.m);
|
|
6995
6950
|
};
|
|
6996
|
-
var StyledLabel =
|
|
6951
|
+
var StyledLabel = styled__default.default("label")(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\n display: block;\n ", "\n\n ", "\n"], ["\n display: block;\n ", "\n\n ", "\n"])), fontBodyS$1, function (props) {
|
|
6997
6952
|
var spaces = getSpaces(props);
|
|
6998
6953
|
return "\n margin-bottom: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;\n ");
|
|
6999
6954
|
});
|
|
7000
|
-
var StyledInputBase =
|
|
6955
|
+
var StyledInputBase = styled__default.default(material.TextField, {
|
|
7001
6956
|
shouldForwardProp: function (prop) {
|
|
7002
6957
|
return !sdsPropNames$1.includes(prop.toString());
|
|
7003
6958
|
},
|
|
@@ -7071,7 +7026,7 @@ var toggleOff = function (props) {
|
|
|
7071
7026
|
: (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.iconPrimary, ";\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n }\n\n .").concat(material.switchClasses.switchBase, " {\n right: unset;\n left: 0;\n transform: unset;\n padding: 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px 0 ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;\n\n .MuiIconButton-label {\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;\n }\n\n &:after {\n color: ").concat(disabled ? (_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _e === void 0 ? void 0 : _e.textDisabled : (_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _f === void 0 ? void 0 : _f.textSecondary, ";\n content: \"").concat(value, "\";\n }\n }\n\n &:hover {\n .").concat(material.switchClasses.switchBase, " {\n &:after {\n color: ").concat(disabled ? (_g = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _g === void 0 ? void 0 : _g.textDisabled : (_h = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _h === void 0 ? void 0 : _h.textPrimary, ";\n }\n }\n }\n\n .").concat(material.switchClasses.track, " {\n background-color: ").concat((_j = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _j === void 0 ? void 0 : _j.fillPrimary, " !important;\n opacity: 1 !important;\n }\n\n ").concat(!disabled &&
|
|
7072
7027
|
"&:hover {\n outline: ".concat((_k = borders === null || borders === void 0 ? void 0 : borders.base) === null || _k === void 0 ? void 0 : _k.hover, ";\n\n .").concat(material.switchClasses.thumb, " {\n color: ").concat((_l = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _l === void 0 ? void 0 : _l.iconPrimaryHover, ";\n }\n }"), "\n ");
|
|
7073
7028
|
};
|
|
7074
|
-
var Toggle =
|
|
7029
|
+
var Toggle = styled__default.default(material.Switch)(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), fontBodyXs$2, function (props) {
|
|
7075
7030
|
var checked = props.checked;
|
|
7076
7031
|
return "\n ".concat(toggle(props), "\n ").concat(checked ? toggleOn(props) : toggleOff(props), "\n ");
|
|
7077
7032
|
});
|
|
@@ -7095,16 +7050,12 @@ var InputToggle = function (props) {
|
|
|
7095
7050
|
|
|
7096
7051
|
var doNotForwardProps$a = ["sdsStyle", "sdsSize", "fontWeight"];
|
|
7097
7052
|
var defaultStyle = function (props) {
|
|
7098
|
-
var _a, _b, _c, _d
|
|
7099
|
-
var _h = props.sdsSize, sdsSize = _h === void 0 ? "s" : _h;
|
|
7053
|
+
var _a, _b, _c, _d;
|
|
7100
7054
|
var semanticColors = getSemanticColors(props);
|
|
7101
|
-
return react.css(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n color: ", ";\n position: relative;\n
|
|
7055
|
+
return react.css(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n color: ", ";\n position: relative;\n text-decoration: none;\n text-underline-offset: 2.5px;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:focus {\n color: ", ";\n text-decoration: underline;\n }\n\n &:active {\n color: ", ";\n text-decoration: underline;\n }\n "], ["\n color: ", ";\n position: relative;\n text-decoration: none;\n text-underline-offset: 2.5px;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:focus {\n color: ", ";\n text-decoration: underline;\n }\n\n &:active {\n color: ", ";\n text-decoration: underline;\n }\n "])), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _a === void 0 ? void 0 : _a.textAction, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _b === void 0 ? void 0 : _b.textActionHover, (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _c === void 0 ? void 0 : _c.textActionHover, (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _d === void 0 ? void 0 : _d.textActionPressed);
|
|
7102
7056
|
};
|
|
7103
|
-
var dashedStyle = function (
|
|
7104
|
-
|
|
7105
|
-
var _d = props.sdsSize, sdsSize = _d === void 0 ? "s" : _d;
|
|
7106
|
-
var semanticColors = getSemanticColors(props);
|
|
7107
|
-
return react.css(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n color: inherit;\n position: relative;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n height: 1px;\n margin-top: ", "px;\n margin-left: 1px;\n width: 100%;\n background-image: linear-gradient(\n to right,\n ", " 60%,\n transparent 60%\n );\n background-size: 5px 100%;\n }\n\n &:hover,\n &:focus {\n text-decoration: none;\n &::after {\n background-image: linear-gradient(\n to right,\n ", " 60%,\n ", " 60%\n );\n }\n }\n "], ["\n color: inherit;\n position: relative;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n height: 1px;\n margin-top: ", "px;\n margin-left: 1px;\n width: 100%;\n background-image: linear-gradient(\n to right,\n ", " 60%,\n transparent 60%\n );\n background-size: 5px 100%;\n }\n\n &:hover,\n &:focus {\n text-decoration: none;\n &::after {\n background-image: linear-gradient(\n to right,\n ", " 60%,\n ", " 60%\n );\n }\n }\n "])), sdsSize === "s" ? -4 : -3, (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.borderHover, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.borderHover, (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.borderHover);
|
|
7057
|
+
var dashedStyle = function () {
|
|
7058
|
+
return react.css(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n color: inherit;\n position: relative;\n text-decoration: underline dashed;\n text-underline-offset: 2.5px;\n\n &:hover,\n &:focus,\n &:active,\n &:focus-visible {\n text-decoration-style: solid;\n }\n "], ["\n color: inherit;\n position: relative;\n text-decoration: underline dashed;\n text-underline-offset: 2.5px;\n\n &:hover,\n &:focus,\n &:active,\n &:focus-visible {\n text-decoration-style: solid;\n }\n "])));
|
|
7108
7059
|
};
|
|
7109
7060
|
var smallStyle = function (props) {
|
|
7110
7061
|
return fontBodyS$1(props);
|
|
@@ -7112,13 +7063,13 @@ var smallStyle = function (props) {
|
|
|
7112
7063
|
var extraSmallStyle = function (props) {
|
|
7113
7064
|
return fontBodyXs$2(props);
|
|
7114
7065
|
};
|
|
7115
|
-
var StyledLink =
|
|
7066
|
+
var StyledLink = styled__default.default(material.Link, {
|
|
7116
7067
|
shouldForwardProp: function (prop) {
|
|
7117
7068
|
return !doNotForwardProps$a.includes(prop.toString());
|
|
7118
7069
|
},
|
|
7119
7070
|
})(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n all: unset;\n\n ", "\n\n ", "\n"], ["\n all: unset;\n\n ", "\n\n ", "\n"])), focusVisibleA11yStyle, function (props) {
|
|
7120
7071
|
var _a = props.fontWeight, fontWeight = _a === void 0 ? "normal" : _a, sdsStyle = props.sdsStyle, _b = props.sdsSize, sdsSize = _b === void 0 ? "s" : _b;
|
|
7121
|
-
return react.css(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n\n font-weight: ", ";\n display: inline-block;\n cursor: pointer;\n "], ["\n ", "\n ", "\n ", "\n ", "\n\n font-weight: ", ";\n display: inline-block;\n cursor: pointer;\n "])), sdsStyle === "default" && defaultStyle(props), sdsStyle === "dashed" && dashedStyle(
|
|
7072
|
+
return react.css(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n\n font-weight: ", ";\n display: inline-block;\n cursor: pointer;\n "], ["\n ", "\n ", "\n ", "\n ", "\n\n font-weight: ", ";\n display: inline-block;\n cursor: pointer;\n "])), sdsStyle === "default" && defaultStyle(props), sdsStyle === "dashed" && dashedStyle(), sdsSize === "s" && smallStyle(props), sdsSize === "xs" && extraSmallStyle(props), fontWeight === "normal" ? "400" : "600");
|
|
7122
7073
|
});
|
|
7123
7074
|
var templateObject_1$m, templateObject_2$b, templateObject_3$6, templateObject_4$5;
|
|
7124
7075
|
|
|
@@ -7136,7 +7087,7 @@ var Link = React.forwardRef(function (props, ref) {
|
|
|
7136
7087
|
|
|
7137
7088
|
// (thuang): Please keep this in sync with the props used in `ListExtraProps`
|
|
7138
7089
|
var doNotForwardProps$9 = ["marginBottom", "ordered"];
|
|
7139
|
-
var StyledList =
|
|
7090
|
+
var StyledList = styled__default.default(material.List, {
|
|
7140
7091
|
shouldForwardProp: function (prop) { return !doNotForwardProps$9.includes(prop); },
|
|
7141
7092
|
})(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n .MuiListSubheader-root {\n ", "\n }\n\n ", "\n"], ["\n .MuiListSubheader-root {\n ", "\n }\n\n ", "\n"])), propsToMarginBottom$1, function (props) {
|
|
7142
7093
|
if (!props.ordered)
|
|
@@ -7174,7 +7125,7 @@ var fontBodyXxs = fontBody("xxs");
|
|
|
7174
7125
|
var fontBodyXxxs = fontBody("xxxs");
|
|
7175
7126
|
// (thuang): Please keep this in sync with the props used in `ListItemExtraProps`
|
|
7176
7127
|
var doNotForwardProps$8 = ["marginBottom", "fontSize", "ordered"];
|
|
7177
|
-
var StyledListItem =
|
|
7128
|
+
var StyledListItem = styled__default.default(material.ListItem, {
|
|
7178
7129
|
shouldForwardProp: function (prop) { return !doNotForwardProps$8.includes(prop); },
|
|
7179
7130
|
})(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n ", "\n ", "\n\n padding: 0;\n\n ", "\n\n &:before {\n display: inline-block;\n\n ", "\n }\n"], ["\n ", "\n ", "\n\n padding: 0;\n\n ", "\n\n &:before {\n display: inline-block;\n\n ", "\n }\n"])), propsToMarginBottom, propsToFontBody, function (props) {
|
|
7180
7131
|
var ordered = props.ordered;
|
|
@@ -7207,7 +7158,7 @@ function propsToMarginBottom(props) {
|
|
|
7207
7158
|
var marginBottom = props.marginBottom;
|
|
7208
7159
|
return "\n margin-bottom: ".concat(propsToMarginBottomMap[marginBottom || "xs"], "px;\n ");
|
|
7209
7160
|
}
|
|
7210
|
-
var ListItemLabel =
|
|
7161
|
+
var ListItemLabel = styled__default.default("span")(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n margin-right: 5px;\n\n ", "\n"], ["\n margin-right: 5px;\n\n ", "\n"])), function (props) {
|
|
7211
7162
|
var fontWeights = getFontWeights(props);
|
|
7212
7163
|
return "\n font-weight: ".concat(fontWeights === null || fontWeights === void 0 ? void 0 : fontWeights.semibold, ";\n ");
|
|
7213
7164
|
});
|
|
@@ -7221,7 +7172,7 @@ var ListItem = function (props) {
|
|
|
7221
7172
|
};
|
|
7222
7173
|
|
|
7223
7174
|
var fontHeaderM = fontHeader("m");
|
|
7224
|
-
var StyledListSubheader =
|
|
7175
|
+
var StyledListSubheader = styled__default.default(material.ListSubheader)(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n &.MuiListSubheader-root {\n ", "\n\n line-height: unset;\n color: unset;\n\n ", "\n }\n"], ["\n &.MuiListSubheader-root {\n ", "\n\n line-height: unset;\n color: unset;\n\n ", "\n }\n"])), fontHeaderM, function (props) {
|
|
7225
7176
|
var spaces = getSpaces(props);
|
|
7226
7177
|
return "\n margin-bottom: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n ");
|
|
7227
7178
|
});
|
|
@@ -7234,7 +7185,7 @@ var ListSubheader = function (props) {
|
|
|
7234
7185
|
return jsxRuntime.jsx(StyledListSubheader, __assign({ disableGutters: true }, props));
|
|
7235
7186
|
};
|
|
7236
7187
|
|
|
7237
|
-
var StyledText =
|
|
7188
|
+
var StyledText = styled__default.default("span")(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7238
7189
|
var spaces = getSpaces(props);
|
|
7239
7190
|
return "\n margin: 0 ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;\n ");
|
|
7240
7191
|
});
|
|
@@ -7251,7 +7202,7 @@ var tag = function (props) {
|
|
|
7251
7202
|
return react.css(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n ", "\n\n background-color: ", ";\n border-radius: ", "px;\n color: ", ";\n\n svg {\n path {\n fill: ", ";\n }\n }\n "], ["\n ", "\n\n background-color: ", ";\n border-radius: ", "px;\n color: ", ";\n\n svg {\n path {\n fill: ", ";\n }\n }\n "])), fontCapsXxxxs(props), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.info) === null || _a === void 0 ? void 0 : _a.surfacePrimary, corners === null || corners === void 0 ? void 0 : corners.l, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.info) === null || _b === void 0 ? void 0 : _b.text, (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.info) === null || _c === void 0 ? void 0 : _c.ornament);
|
|
7252
7203
|
};
|
|
7253
7204
|
var doNotForwardProps$7 = ["sdsStyle"];
|
|
7254
|
-
var StyledLoadingIndicator =
|
|
7205
|
+
var StyledLoadingIndicator = styled__default.default("div", {
|
|
7255
7206
|
shouldForwardProp: function (prop) { return !doNotForwardProps$7.includes(prop); },
|
|
7256
7207
|
})(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7257
7208
|
var sdsStyle = props.sdsStyle;
|
|
@@ -7266,7 +7217,7 @@ var LoadingIndicator = function (_a) {
|
|
|
7266
7217
|
return (jsxRuntime.jsxs(StyledLoadingIndicator, { sdsStyle: sdsStyle, "aria-label": "Loading", children: [jsxRuntime.jsx(Icon, { sdsIcon: "Loading", sdsSize: "l", sdsType: "static" }), jsxRuntime.jsx(StyledText, { "aria-label": ariaLabel, "aria-live": "polite", role: "status", children: "Loading" })] }));
|
|
7267
7218
|
};
|
|
7268
7219
|
|
|
7269
|
-
var StyledMenu =
|
|
7220
|
+
var StyledMenu = styled__default.default(material.Menu)(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n & {\n .", " {\n ", "\n }\n\n .MuiList-padding {\n padding: 0;\n }\n }\n"], ["\n & {\n .", " {\n ", "\n }\n\n .MuiList-padding {\n padding: 0;\n }\n }\n"])), material.menuClasses.paper, function (props) {
|
|
7270
7221
|
var _a;
|
|
7271
7222
|
var spaces = getSpaces(props);
|
|
7272
7223
|
var semanticColors = getSemanticColors(props);
|
|
@@ -7289,17 +7240,17 @@ var Menu = function (props) {
|
|
|
7289
7240
|
return (jsxRuntime.jsx(StyledMenu, __assign({ anchorOrigin: ANCHOR_ORIGIN, transformOrigin: TRANSFORM_ORIGIN }, props)));
|
|
7290
7241
|
};
|
|
7291
7242
|
|
|
7292
|
-
var StyledMenuItem =
|
|
7243
|
+
var StyledMenuItem = styled__default.default(MenuItem)(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
7293
7244
|
var doNotForwardProps$6 = ["search", "InputBaseProps", "keepSearchOnSelect"];
|
|
7294
7245
|
// (thuang): Casting the type to `Autocomplete`
|
|
7295
7246
|
// per https://github.com/mui-org/material-ui/issues/21727#issuecomment-880263271
|
|
7296
|
-
var StyledAutocomplete =
|
|
7247
|
+
var StyledAutocomplete = styled__default.default(material.Autocomplete, {
|
|
7297
7248
|
shouldForwardProp: function (prop) { return !doNotForwardProps$6.includes(prop); },
|
|
7298
7249
|
})(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n ", "\n width: 100%;\n"], ["\n ", "\n width: 100%;\n"])), function (_a) {
|
|
7299
7250
|
var search = _a.search;
|
|
7300
7251
|
return !search && "height: 0; margin: 0 !important;";
|
|
7301
7252
|
});
|
|
7302
|
-
var InputBaseWrapper =
|
|
7253
|
+
var InputBaseWrapper = styled__default.default("div", {
|
|
7303
7254
|
shouldForwardProp: function (prop) { return !doNotForwardProps$6.includes(prop); },
|
|
7304
7255
|
})(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7305
7256
|
var search = props.search;
|
|
@@ -7312,7 +7263,7 @@ var InputBaseWrapper = styled("div", {
|
|
|
7312
7263
|
var spaces = getSpaces(props);
|
|
7313
7264
|
return "\n margin: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;\n ");
|
|
7314
7265
|
});
|
|
7315
|
-
var StyledMenuInputSearch =
|
|
7266
|
+
var StyledMenuInputSearch = styled__default.default(InputSearch, {
|
|
7316
7267
|
shouldForwardProp: function (prop) { return !doNotForwardProps$6.includes(prop); },
|
|
7317
7268
|
})(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n && {\n margin: 0;\n\n .", " {\n width: 100%;\n padding: 0;\n padding-right: 14px !important;\n }\n\n /* (thuang): Works with attribute inputMode: \"none\" to hide mobile keyboard */\n caret-color: ", ";\n }\n"], ["\n && {\n margin: 0;\n\n .", " {\n width: 100%;\n padding: 0;\n padding-right: 14px !important;\n }\n\n /* (thuang): Works with attribute inputMode: \"none\" to hide mobile keyboard */\n caret-color: ", ";\n }\n"])), material.inputBaseClasses.root, function (_a) {
|
|
7318
7269
|
var search = _a.search;
|
|
@@ -7423,7 +7374,7 @@ var useScrollStopListener = function (callback, timeout) {
|
|
|
7423
7374
|
};
|
|
7424
7375
|
|
|
7425
7376
|
var doNotForwardProps$5 = ["items", "sdsIndicatorColor"];
|
|
7426
|
-
var StyledTabs$1 =
|
|
7377
|
+
var StyledTabs$1 = styled__default.default(material.Tabs, {
|
|
7427
7378
|
shouldForwardProp: function (prop) { return !doNotForwardProps$5.includes(prop); },
|
|
7428
7379
|
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7429
7380
|
var _a, _b;
|
|
@@ -7431,7 +7382,7 @@ var StyledTabs$1 = styled(material.Tabs, {
|
|
|
7431
7382
|
var semanticColors = getSemanticColors(props);
|
|
7432
7383
|
return "\n &:before {\n background-color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.divider, ";\n border-radius: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px;\n content: \"\";\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px;\n }\n\n max-width: 180px;\n top: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px;\n margin-bottom: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n position: sticky;\n overflow: visible;\n\n .").concat(material.tabsClasses.indicator, " {\n background-color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _b === void 0 ? void 0 : _b.borderSelected, " !important;\n border-radius: 2px;\n left: 0;\n width: 2px;\n }\n\n .").concat(material.tabsClasses.scroller, " {\n overflow: visible !important;\n }\n ");
|
|
7433
7384
|
});
|
|
7434
|
-
var StyledTab$1 =
|
|
7385
|
+
var StyledTab$1 = styled__default.default(material.Tab, {
|
|
7435
7386
|
shouldForwardProp: function (prop) { return !doNotForwardProps$5.includes(prop); },
|
|
7436
7387
|
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXs$2, function (props) {
|
|
7437
7388
|
var _a, _b, _c, _d;
|
|
@@ -7585,7 +7536,7 @@ var NavigationJumpTo = React.forwardRef(function (props, ref) {
|
|
|
7585
7536
|
|
|
7586
7537
|
var fontBodyXs = fontBody("xs");
|
|
7587
7538
|
var doNotForwardProps$4 = ["slideDirection"];
|
|
7588
|
-
var StyledNotification =
|
|
7539
|
+
var StyledNotification = styled__default.default(material.Alert, {
|
|
7589
7540
|
shouldForwardProp: function (prop) { return !doNotForwardProps$4.includes(prop); },
|
|
7590
7541
|
})(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXs, function (props) {
|
|
7591
7542
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
@@ -7607,7 +7558,7 @@ var StyledNotification = styled(material.Alert, {
|
|
|
7607
7558
|
2);
|
|
7608
7559
|
return "\n background-color: ".concat(backgroundColor, ";\n max-width: 480px;\n min-width: 280px;\n box-sizing: border-box;\n margin: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px 0;\n border-radius: ").concat(corners === null || corners === void 0 ? void 0 : corners.m, "px;\n color: ").concat((_l = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _l === void 0 ? void 0 : _l.textPrimary, ";\n padding: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n align-items: flex-start;\n border-left: ").concat((_m = borders === null || borders === void 0 ? void 0 : borders[intent]) === null || _m === void 0 ? void 0 : _m.extraThick, ";\n box-shadow: ").concat(shadows === null || shadows === void 0 ? void 0 : shadows.s, ";\n\n .MuiAlert-icon {\n height: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.height, "px;\n width: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.width, "px;\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n padding: 0;\n path {\n fill: ").concat(iconColor, ";\n }\n }\n\n .MuiAlert-message {\n padding: ").concat(alertMessagePaddingTop, "px 0px 0px;\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n width: 100%;\n\n > * {\n margin: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px 0px;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n button {\n display: block;\n }\n }\n\n .MuiAlert-action {\n margin-right: 0;\n padding: 0;\n align-items: flex-start;\n margin-top: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;\n\n > button {\n padding: 0;\n }\n }\n }\n ");
|
|
7609
7560
|
});
|
|
7610
|
-
var StyledButtonWrapper =
|
|
7561
|
+
var StyledButtonWrapper = styled__default.default("div")(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7611
7562
|
var _a = props.buttonPosition, buttonPosition = _a === void 0 ? "right" : _a;
|
|
7612
7563
|
return "\n display: flex;\n justify-content: ".concat(buttonPosition === "left" ? "flex-start" : "flex-end", ";\n ");
|
|
7613
7564
|
});
|
|
@@ -7672,12 +7623,12 @@ var doNotForwardProps$3 = [
|
|
|
7672
7623
|
"pageSize",
|
|
7673
7624
|
"truncateDropdown",
|
|
7674
7625
|
];
|
|
7675
|
-
var StyledPaginationButton =
|
|
7626
|
+
var StyledPaginationButton = styled__default.default(Button)(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7676
7627
|
var _a, _b, _c;
|
|
7677
7628
|
var semanticColors = getSemanticColors(props);
|
|
7678
7629
|
return "\n width: 32px;\n height: 32px;\n cursor: \"pointer\";\n\n & .MuiSvgIcon-root {\n width: 10px;\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.iconPrimary, "\n }\n\n &:hover {\n background-color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.fillHover, ";\n\n & .MuiSvgIcon-root {\n color: ").concat((_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.iconPrimaryHover, "\n }\n }\n ");
|
|
7679
7630
|
});
|
|
7680
|
-
var StyledPaginationChevronList =
|
|
7631
|
+
var StyledPaginationChevronList = styled__default.default("li", {
|
|
7681
7632
|
shouldForwardProp: function (prop) { return !doNotForwardProps$3.includes(prop); },
|
|
7682
7633
|
})(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7683
7634
|
var _a, _b, _c, _d, _e;
|
|
@@ -7686,7 +7637,7 @@ var StyledPaginationChevronList = styled("li", {
|
|
|
7686
7637
|
var semanticColors = getSemanticColors(props);
|
|
7687
7638
|
return "\n width: 32px;\n height: 32px;\n cursor: ".concat(disabled ? "auto" : "pointer", ";\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 32px;\n\n &[data-order=\"first\"] {\n margin-right: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n }\n\n &[data-order=\"last\"] {\n margin-left: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n }\n\n & .MuiSvgIcon-root {\n color: ").concat(disabled ? (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.iconDisabled : (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.iconPrimary, ";\n }\n\n &:hover {\n background-color: ").concat(disabled ? "transparent" : (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.fillHover, ";\n\n & .MuiSvgIcon-root {\n color: ").concat(disabled ? (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.iconDisabled : (_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _e === void 0 ? void 0 : _e.iconPrimaryHover, "\n }\n }\n\n ").concat(focusVisibleA11yStyle(props), "\n ");
|
|
7688
7639
|
});
|
|
7689
|
-
var StyledPagination =
|
|
7640
|
+
var StyledPagination = styled__default.default("ul", {
|
|
7690
7641
|
shouldForwardProp: function (prop) { return !doNotForwardProps$3.includes(prop); },
|
|
7691
7642
|
})(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n ", "\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n margin: 0;\n & li {\n list-style: none;\n }\n"], ["\n ", "\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n margin: 0;\n & li {\n list-style: none;\n }\n"])), fontBodyS$1);
|
|
7692
7643
|
var selectedPageStyle = function (props) {
|
|
@@ -7694,7 +7645,7 @@ var selectedPageStyle = function (props) {
|
|
|
7694
7645
|
var semanticColors = getSemanticColors(props);
|
|
7695
7646
|
return "\n background-color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.fillSelected, ";\n color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.textPrimaryInverse, ";\n\n &:hover {\n background-color: ").concat((_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.fillSelected, ";\n color: ").concat((_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.textPrimaryInverse, ";\n }\n ");
|
|
7696
7647
|
};
|
|
7697
|
-
var Page =
|
|
7648
|
+
var Page = styled__default.default("li", {
|
|
7698
7649
|
shouldForwardProp: function (prop) { return !doNotForwardProps$3.includes(prop); },
|
|
7699
7650
|
})(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodySemiboldS, function (props) {
|
|
7700
7651
|
var _a, _b, _c;
|
|
@@ -7706,7 +7657,7 @@ var Page = styled("li", {
|
|
|
7706
7657
|
});
|
|
7707
7658
|
var templateObject_1$d, templateObject_2$5, templateObject_3$3, templateObject_4$2;
|
|
7708
7659
|
|
|
7709
|
-
var StyledPaginationDropdownMenu =
|
|
7660
|
+
var StyledPaginationDropdownMenu = styled__default.default(Menu)(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n & .MuiPaper-root {\n max-height: 120px;\n }\n"], ["\n & .MuiPaper-root {\n max-height: 120px;\n }\n"])));
|
|
7710
7661
|
var templateObject_1$c;
|
|
7711
7662
|
|
|
7712
7663
|
var PageListDropdown = function (props) {
|
|
@@ -7850,7 +7801,7 @@ var overlayPanelStyles = function (props) {
|
|
|
7850
7801
|
var shadows = getShadows(props);
|
|
7851
7802
|
return react.css(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n /**\n * (masoudmanson): This prevents the Panel from taking up the full width of the screen,\n * allowing the ToggleButton to be clicked to close the Panel. Due to an issue with\n * MUI v5, the following styles cause the Panel to generate accessibility (a11y) errors.\n * In the meantime, we are ignoring the a11y errors within Storybook.\n */\n width: fit-content;\n height: fit-content;\n div[data-testid=\"sentinelStart\"],\n div[data-testid=\"sentinelEnd\"] {\n width: fit-content;\n }\n\n .", " {\n background-color: ", ";\n padding: ", "px;\n min-width: ", "px;\n min-height: ", "px;\n box-shadow: ", ";\n background-image: none;\n }\n "], ["\n /**\n * (masoudmanson): This prevents the Panel from taking up the full width of the screen,\n * allowing the ToggleButton to be clicked to close the Panel. Due to an issue with\n * MUI v5, the following styles cause the Panel to generate accessibility (a11y) errors.\n * In the meantime, we are ignoring the a11y errors within Storybook.\n */\n width: fit-content;\n height: fit-content;\n div[data-testid=\"sentinelStart\"],\n div[data-testid=\"sentinelEnd\"] {\n width: fit-content;\n }\n\n .", " {\n background-color: ", ";\n padding: ", "px;\n min-width: ", "px;\n min-height: ", "px;\n box-shadow: ", ";\n background-image: none;\n }\n "])), material.drawerClasses.paper, (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.surfacePrimary, spaces === null || spaces === void 0 ? void 0 : spaces.xl, PANEL_OVERLAY_MIN_WIDTH_PX, PANEL_OVERLAY_MIN_WIDTH_PX, shadows === null || shadows === void 0 ? void 0 : shadows.l);
|
|
7852
7803
|
};
|
|
7853
|
-
var StyledDrawer =
|
|
7804
|
+
var StyledDrawer = styled__default.default(material.Drawer, {
|
|
7854
7805
|
shouldForwardProp: function (prop) { return !doNotForwardProps$2.includes(prop); },
|
|
7855
7806
|
})(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7856
7807
|
var _a = props.sdsType, sdsType = _a === void 0 ? "basic" : _a, _b = props.anchor, anchor = _b === void 0 ? "left" : _b, width = props.width;
|
|
@@ -7859,13 +7810,13 @@ var StyledDrawer = styled(material.Drawer, {
|
|
|
7859
7810
|
var panelHeight = anchor !== "bottom" ? "100%" : widthString;
|
|
7860
7811
|
return react.css(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n .", " {\n height: ", ";\n width: ", ";\n }\n\n ", "\n ", "\n "], ["\n .", " {\n height: ", ";\n width: ", ";\n }\n\n ", "\n ", "\n "])), material.drawerClasses.paper, panelHeight, panelWidth, sdsType === "basic" && basicPanelStyles(props), sdsType === "overlay" && overlayPanelStyles(props));
|
|
7861
7812
|
});
|
|
7862
|
-
var StyledHeaderComponent =
|
|
7813
|
+
var StyledHeaderComponent = styled__default.default("div")(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7863
7814
|
var spaces = getSpaces(props);
|
|
7864
7815
|
return react.css(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n margin-bottom: ", "px;\n display: flex;\n justify-content: space-between;\n align-items: start;\n "], ["\n margin-bottom: ", "px;\n display: flex;\n justify-content: space-between;\n align-items: start;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xxl);
|
|
7865
7816
|
});
|
|
7866
7817
|
var templateObject_1$b, templateObject_2$4, templateObject_3$2, templateObject_4$1, templateObject_5$1, templateObject_6;
|
|
7867
7818
|
|
|
7868
|
-
var StyledPanelHeader =
|
|
7819
|
+
var StyledPanelHeader = styled__default.default("div")(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7869
7820
|
var spaces = getSpaces(props);
|
|
7870
7821
|
return "\n width: 100%;\n height: 100%;\n margin-right: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;\n ");
|
|
7871
7822
|
});
|
|
@@ -7876,7 +7827,7 @@ var PanelHeader = function (props) {
|
|
|
7876
7827
|
return jsxRuntime.jsx(StyledPanelHeader, { children: children });
|
|
7877
7828
|
};
|
|
7878
7829
|
|
|
7879
|
-
var StyledPanelHeaderClose =
|
|
7830
|
+
var StyledPanelHeaderClose = styled__default.default("div")(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n display: flex;\n justify-content: end;\n align-items: center;\n"], ["\n display: flex;\n justify-content: end;\n align-items: center;\n"])));
|
|
7880
7831
|
var templateObject_1$9;
|
|
7881
7832
|
|
|
7882
7833
|
var PanelHeaderClose = function (props) {
|
|
@@ -7893,7 +7844,7 @@ var PANEL_OVERLAY_MIN_WIDTH_PX = 320;
|
|
|
7893
7844
|
/**
|
|
7894
7845
|
* @see https://mui.com/material-ui/react-drawer/
|
|
7895
7846
|
*/
|
|
7896
|
-
var Panel =
|
|
7847
|
+
var Panel = React__namespace.default.forwardRef(function (props, ref) {
|
|
7897
7848
|
var children = props.children, _a = props.sdsType, sdsType = _a === void 0 ? "basic" : _a, _b = props.position, position = _b === void 0 ? "left" : _b, width = props.width, ModalProps = props.ModalProps;
|
|
7898
7849
|
var drawerWidth = width !== null && width !== void 0 ? width : (sdsType === "basic"
|
|
7899
7850
|
? PANEL_BASIC_MIN_WIDTH_PX
|
|
@@ -7931,7 +7882,7 @@ var Panel = React.forwardRef(function (props, ref) {
|
|
|
7931
7882
|
});
|
|
7932
7883
|
|
|
7933
7884
|
var doNotForwardProps$1 = ["buttonDefinition"];
|
|
7934
|
-
var StyledSegmentedControl =
|
|
7885
|
+
var StyledSegmentedControl = styled__default.default(material.ToggleButtonGroup, {
|
|
7935
7886
|
shouldForwardProp: function (prop) { return !doNotForwardProps$1.includes(prop); },
|
|
7936
7887
|
})(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7937
7888
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
@@ -7948,7 +7899,7 @@ var SegmentedControl = function (props) {
|
|
|
7948
7899
|
var _a;
|
|
7949
7900
|
var buttonDefinition = props.buttonDefinition, valueProp = props.value, onChangeProp = props.onChange, restProps = __rest(props, ["buttonDefinition", "value", "onChange"]);
|
|
7950
7901
|
var initialValue = ((_a = buttonDefinition.find(function (button) { return !button.disabled; })) === null || _a === void 0 ? void 0 : _a.value) || null;
|
|
7951
|
-
var _b =
|
|
7902
|
+
var _b = React__namespace.default.useState(initialValue), active = _b[0], setActive = _b[1];
|
|
7952
7903
|
// (masoudmanson): Add Controlled/Uncontrolled Component pattern
|
|
7953
7904
|
var isControlled = valueProp !== undefined;
|
|
7954
7905
|
var value = isControlled ? valueProp : active;
|
|
@@ -7971,7 +7922,7 @@ var SegmentedControl = function (props) {
|
|
|
7971
7922
|
}), ";"] })));
|
|
7972
7923
|
};
|
|
7973
7924
|
|
|
7974
|
-
var StyledTable =
|
|
7925
|
+
var StyledTable = styled__default.default("table")(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0;\n table-layout: fixed;\n"], ["\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0;\n table-layout: fixed;\n"])));
|
|
7975
7926
|
var templateObject_1$7;
|
|
7976
7927
|
|
|
7977
7928
|
var Table = React.forwardRef(function (props, ref) {
|
|
@@ -7999,7 +7950,7 @@ var hoverStyled = function (props) {
|
|
|
7999
7950
|
var semanticColors = getSemanticColors(props);
|
|
8000
7951
|
return "\n &:hover {\n background-color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.fillHover, ";\n }\n ");
|
|
8001
7952
|
};
|
|
8002
|
-
var StyledTableRow =
|
|
7953
|
+
var StyledTableRow = styled__default.default("tr", {
|
|
8003
7954
|
shouldForwardProp: function (prop) { return !doNotForwardProps.includes(prop); },
|
|
8004
7955
|
})(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n ", "\n ", "\n\n ", "\n"], ["\n ", "\n ", "\n\n ", "\n"])), fontHeaderS, focusVisibleA11yStyle, function (props) {
|
|
8005
7956
|
var _a, _b;
|
|
@@ -8018,7 +7969,7 @@ var TableRow = React.forwardRef(function (props, ref) {
|
|
|
8018
7969
|
return (jsxRuntime.jsx(StyledTableRow, __assign({ ref: ref }, props, { children: children })));
|
|
8019
7970
|
});
|
|
8020
7971
|
|
|
8021
|
-
var StyledTableHeader =
|
|
7972
|
+
var StyledTableHeader = styled__default.default("thead")(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
8022
7973
|
var _a;
|
|
8023
7974
|
var semanticColors = getSemanticColors(props);
|
|
8024
7975
|
return "\n border-bottom: solid 2px ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.borderTable, ";\n ");
|
|
@@ -8032,13 +7983,13 @@ var TableHeader = React.forwardRef(function (props, ref) {
|
|
|
8032
7983
|
|
|
8033
7984
|
var TabsContext = React.createContext({ sdsSize: "large" });
|
|
8034
7985
|
|
|
8035
|
-
var Wrapper =
|
|
7986
|
+
var Wrapper = styled__default.default("span")(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
8036
7987
|
var _a, _b;
|
|
8037
7988
|
var semanticColors = getSemanticColors(props);
|
|
8038
7989
|
return "\n &:active {\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimary, ";\n }\n\n &:disabled {\n color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.textDisabled, ";\n }\n ");
|
|
8039
7990
|
});
|
|
8040
7991
|
var LABEL_DO_NOT_FORWARD_PROPS = ["sdsSize"];
|
|
8041
|
-
var Label =
|
|
7992
|
+
var Label = styled__default.default("span", {
|
|
8042
7993
|
shouldForwardProp: function (prop) {
|
|
8043
7994
|
return !LABEL_DO_NOT_FORWARD_PROPS.includes(String(prop));
|
|
8044
7995
|
},
|
|
@@ -8053,7 +8004,7 @@ var Label = styled("span", {
|
|
|
8053
8004
|
return "\n margin-right: ".concat(isLarge ? spaces === null || spaces === void 0 ? void 0 : spaces.l : spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n ");
|
|
8054
8005
|
});
|
|
8055
8006
|
var COUNT_DO_NOT_FORWARD_PROPS = ["sdsSize"];
|
|
8056
|
-
var Count =
|
|
8007
|
+
var Count = styled__default.default("span", {
|
|
8057
8008
|
shouldForwardProp: function (prop) {
|
|
8058
8009
|
return !COUNT_DO_NOT_FORWARD_PROPS.includes(String(prop));
|
|
8059
8010
|
},
|
|
@@ -8077,7 +8028,7 @@ var LabelWithCount = React.forwardRef(function LabelWithCount(props, ref) {
|
|
|
8077
8028
|
|
|
8078
8029
|
var TempTabs = function (props) { return jsxRuntime.jsx(material.Tabs, __assign({}, props)); };
|
|
8079
8030
|
var TABS_DO_NOT_FORWARD_PROPS = ["underlined", "sdsSize"];
|
|
8080
|
-
var StyledTabs =
|
|
8031
|
+
var StyledTabs = styled__default.default(TempTabs, {
|
|
8081
8032
|
shouldForwardProp: function (prop) {
|
|
8082
8033
|
return !TABS_DO_NOT_FORWARD_PROPS.includes(String(prop));
|
|
8083
8034
|
},
|
|
@@ -8090,7 +8041,7 @@ var StyledTabs = styled(TempTabs, {
|
|
|
8090
8041
|
return "\n margin-top: ".concat(isLarge ? spaces === null || spaces === void 0 ? void 0 : spaces.l : spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n margin-bottom: ").concat(isLarge ? spaces === null || spaces === void 0 ? void 0 : spaces.xl : spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n border-bottom: ").concat(underlined ? "2px solid ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.divider, ";") : "none", ";\n ");
|
|
8091
8042
|
});
|
|
8092
8043
|
var TAB_DO_NOT_FORWARD_PROPS = ["sdsSize"];
|
|
8093
|
-
var StyledTab =
|
|
8044
|
+
var StyledTab = styled__default.default(material.Tab, {
|
|
8094
8045
|
shouldForwardProp: function (prop) { return !TAB_DO_NOT_FORWARD_PROPS.includes(String(prop)); },
|
|
8095
8046
|
})(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n min-height: unset;\n padding: 0;\n min-width: 32px;\n opacity: 1 !important;\n\n ", "\n ", "\n\n ", "\n"], ["\n min-height: unset;\n padding: 0;\n min-width: 32px;\n opacity: 1 !important;\n\n ", "\n ", "\n\n ", "\n"])), tabFontMixin, focusVisibleA11yStyle, function (props) {
|
|
8096
8047
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -8113,7 +8064,7 @@ var TabIndicator = function (theme) {
|
|
|
8113
8064
|
var Tabs = React.forwardRef(function Tabs(props, ref) {
|
|
8114
8065
|
var _a = props.sdsSize, sdsSize = _a === void 0 ? "large" : _a, rest = __rest(props, ["sdsSize"]);
|
|
8115
8066
|
var theme = material.useTheme();
|
|
8116
|
-
var contextValue =
|
|
8067
|
+
var contextValue = React__namespace.default.useMemo(function () { return ({ sdsSize: sdsSize }); }, [sdsSize]);
|
|
8117
8068
|
var indicatorProps = React.useMemo(function () {
|
|
8118
8069
|
return { className: TabIndicator(theme) };
|
|
8119
8070
|
}, [theme]);
|
|
@@ -8187,13 +8138,13 @@ var disabledStyle = function (props) {
|
|
|
8187
8138
|
return "";
|
|
8188
8139
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textDisabled, ";\n ");
|
|
8189
8140
|
};
|
|
8190
|
-
var Section =
|
|
8141
|
+
var Section = styled__default.default("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), disabledStyle, function (props) {
|
|
8191
8142
|
var _a;
|
|
8192
8143
|
var spaces = getSpaces(props);
|
|
8193
8144
|
var borders = getBorders(props);
|
|
8194
8145
|
return "\n &:not(:last-child) {\n padding-bottom: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n border-bottom: ").concat((_a = borders === null || borders === void 0 ? void 0 : borders.base) === null || _a === void 0 ? void 0 : _a.divider, ";\n }\n\n &:not(:first-of-type) {\n padding-top: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n }\n ");
|
|
8195
8146
|
});
|
|
8196
|
-
var SectionLabel =
|
|
8147
|
+
var SectionLabel = styled__default.default("div")(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n ", "\n\n ", "\n"], ["\n ", "\n ", "\n\n ", "\n"])), fontCapsXxxxs, disabledStyle, function (props) {
|
|
8197
8148
|
var _a;
|
|
8198
8149
|
var spaces = getSpaces(props);
|
|
8199
8150
|
var semanticColors = getSemanticColors(props);
|
|
@@ -8201,7 +8152,7 @@ var SectionLabel = styled("div")(templateObject_2 || (templateObject_2 = __makeT
|
|
|
8201
8152
|
return "";
|
|
8202
8153
|
return "\n margin-bottom: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px; \n color: ").concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondary, ";\n ");
|
|
8203
8154
|
});
|
|
8204
|
-
var RowLabel =
|
|
8155
|
+
var RowLabel = styled__default.default(material.TableCell, {
|
|
8205
8156
|
shouldForwardProp: function (prop) {
|
|
8206
8157
|
return !sdsPropNames.includes(prop.toString());
|
|
8207
8158
|
},
|
|
@@ -8209,12 +8160,12 @@ var RowLabel = styled(material.TableCell, {
|
|
|
8209
8160
|
var spaces = getSpaces(props);
|
|
8210
8161
|
return "\n padding: 0 0 ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px 0;\n width: 50%;\n border-bottom: none;\n font-weight: 600;\n ");
|
|
8211
8162
|
});
|
|
8212
|
-
var RowValue =
|
|
8163
|
+
var RowValue = styled__default.default(material.TableCell, {
|
|
8213
8164
|
shouldForwardProp: function (prop) {
|
|
8214
8165
|
return !sdsPropNames.includes(prop.toString());
|
|
8215
8166
|
},
|
|
8216
8167
|
})(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n ", "\n\n padding-top: 0;\n padding-bottom: 0;\n padding-right: 0 !important;\n border-bottom: none;\n"], ["\n ", "\n ", "\n\n padding-top: 0;\n padding-bottom: 0;\n padding-right: 0 !important;\n border-bottom: none;\n"])), fontTabularXs, disabledStyle);
|
|
8217
|
-
var Alert =
|
|
8168
|
+
var Alert = styled__default.default("div")(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), fontBodyXxs$1);
|
|
8218
8169
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
8219
8170
|
|
|
8220
8171
|
/**
|
|
@@ -8350,4 +8301,5 @@ exports.getShadows = getShadows;
|
|
|
8350
8301
|
exports.getSpaces = getSpaces;
|
|
8351
8302
|
exports.getSpacings = getSpacings;
|
|
8352
8303
|
exports.getTypography = getTypography;
|
|
8304
|
+
exports.makeSdsSemanticAppTheme = makeSdsSemanticAppTheme;
|
|
8353
8305
|
exports.makeThemeOptions = makeThemeOptions;
|