@czi-sds/components 22.3.3 → 22.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.d.ts +127 -48
- package/dist/index.cjs.js +328 -237
- package/dist/index.esm.d.ts +127 -48
- package/dist/index.esm.js +324 -238
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -815,12 +815,6 @@ var sharedAppTheme = {
|
|
|
815
815
|
},
|
|
816
816
|
},
|
|
817
817
|
};
|
|
818
|
-
/**
|
|
819
|
-
* Create a SDS App Theme with custom colors that follows the SDS color model.
|
|
820
|
-
*/
|
|
821
|
-
var makeSdsSemanticAppTheme = function (colors) { return (__assign(__assign({}, sharedAppTheme), { colors: colors })); };
|
|
822
|
-
var SDSLightAppTheme = makeSdsSemanticAppTheme(SDSLightThemeColors);
|
|
823
|
-
var SDSDarkAppTheme = makeSdsSemanticAppTheme(SDSDarkThemeColors);
|
|
824
818
|
// (mlila) whenever our theme uses colors, we need to make sure we allow consuming
|
|
825
819
|
// applications to override those colors using their own custom theme.
|
|
826
820
|
// By defining borders using SDSAppTheme.colors instead of defaultThemeColors,
|
|
@@ -830,116 +824,79 @@ var SDSDarkAppTheme = makeSdsSemanticAppTheme(SDSDarkThemeColors);
|
|
|
830
824
|
//
|
|
831
825
|
// (masoudmanson): We need to define borders separately for light and dark themes
|
|
832
826
|
// because the border colors are different for each theme.
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
},
|
|
897
|
-
base: {
|
|
898
|
-
default: "1px solid ".concat(SDSDarkThemeColors.gray[500]),
|
|
899
|
-
disabled: "1px solid ".concat(SDSDarkThemeColors.gray[300]),
|
|
900
|
-
divider: "1px solid ".concat(SDSDarkThemeColors.gray[200]),
|
|
901
|
-
dividerInverse: "1px solid ".concat(SDSDarkThemeColors.gray[600]),
|
|
902
|
-
hover: "1px solid ".concat(SDSDarkThemeColors.gray[900]),
|
|
903
|
-
inverse: "1px solid ".concat(SDSDarkThemeColors.gray[50]),
|
|
904
|
-
pressed: "1px solid ".concat(SDSDarkThemeColors.gray[900]),
|
|
905
|
-
table: "1px solid ".concat(SDSDarkThemeColors.gray[300]),
|
|
906
|
-
},
|
|
907
|
-
beta: {
|
|
908
|
-
default: "1px solid ".concat(SDSDarkThemeColors.purple[600]),
|
|
909
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.purple[600]),
|
|
910
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.purple[600]),
|
|
911
|
-
},
|
|
912
|
-
info: {
|
|
913
|
-
default: "1px solid ".concat(SDSDarkThemeColors.blue[600]),
|
|
914
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.blue[600]),
|
|
915
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.blue[600]),
|
|
916
|
-
},
|
|
917
|
-
link: {
|
|
918
|
-
dashed: "1px dashed",
|
|
919
|
-
solid: "1px solid",
|
|
920
|
-
},
|
|
921
|
-
negative: {
|
|
922
|
-
default: "1px solid ".concat(SDSDarkThemeColors.red[600]),
|
|
923
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.red[600]),
|
|
924
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.red[600]),
|
|
925
|
-
},
|
|
926
|
-
neutral: {
|
|
927
|
-
default: "1px solid ".concat(SDSDarkThemeColors.gray[500]),
|
|
928
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.gray[500]),
|
|
929
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.gray[500]),
|
|
930
|
-
},
|
|
931
|
-
none: "none",
|
|
932
|
-
notice: {
|
|
933
|
-
default: "1px solid ".concat(SDSDarkThemeColors.yellow[600]),
|
|
934
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.yellow[600]),
|
|
935
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.yellow[600]),
|
|
936
|
-
},
|
|
937
|
-
positive: {
|
|
938
|
-
default: "1px solid ".concat(SDSDarkThemeColors.green[600]),
|
|
939
|
-
extraThick: "4px solid ".concat(SDSDarkThemeColors.green[600]),
|
|
940
|
-
thick: "2px solid ".concat(SDSDarkThemeColors.green[600]),
|
|
941
|
-
},
|
|
827
|
+
var BorderThickness = {
|
|
828
|
+
default: 1,
|
|
829
|
+
extraThick: 4,
|
|
830
|
+
thick: 2,
|
|
831
|
+
};
|
|
832
|
+
var createAppThemeBorders = function (colors, isDarkMode) {
|
|
833
|
+
var createSolidBorder = function (color, level, thickness) { return "".concat(BorderThickness[thickness], "px solid ").concat(colors[color][level]); };
|
|
834
|
+
var createDashedBorder = function () { return "1px dashed"; };
|
|
835
|
+
return {
|
|
836
|
+
accent: {
|
|
837
|
+
default: createSolidBorder("blue", isDarkMode ? 600 : 500, "default"),
|
|
838
|
+
focused: createSolidBorder("blue", isDarkMode ? 600 : 500, "default"),
|
|
839
|
+
hover: createSolidBorder("blue", isDarkMode ? 700 : 600, "default"),
|
|
840
|
+
open: createSolidBorder("blue", isDarkMode ? 600 : 500, "default"),
|
|
841
|
+
pressed: createSolidBorder("blue", isDarkMode ? 800 : 700, "default"),
|
|
842
|
+
selected: createSolidBorder("blue", isDarkMode ? 600 : 500, "default"),
|
|
843
|
+
},
|
|
844
|
+
base: {
|
|
845
|
+
default: createSolidBorder("gray", 500, "default"),
|
|
846
|
+
disabled: createSolidBorder("gray", 300, "default"),
|
|
847
|
+
divider: createSolidBorder("gray", 200, "default"),
|
|
848
|
+
dividerInverse: createSolidBorder("gray", 600, "default"),
|
|
849
|
+
hover: createSolidBorder("gray", 900, "default"),
|
|
850
|
+
inverse: createSolidBorder("gray", 50, "default"),
|
|
851
|
+
pressed: createSolidBorder("gray", 900, "default"),
|
|
852
|
+
table: createSolidBorder("gray", 300, "default"),
|
|
853
|
+
},
|
|
854
|
+
beta: {
|
|
855
|
+
default: createSolidBorder("purple", 600, "default"),
|
|
856
|
+
extraThick: createSolidBorder("purple", 600, "extraThick"),
|
|
857
|
+
thick: createSolidBorder("purple", 600, "thick"),
|
|
858
|
+
},
|
|
859
|
+
info: {
|
|
860
|
+
default: createSolidBorder("blue", 600, "default"),
|
|
861
|
+
extraThick: createSolidBorder("blue", 600, "extraThick"),
|
|
862
|
+
thick: createSolidBorder("blue", 600, "thick"),
|
|
863
|
+
},
|
|
864
|
+
link: {
|
|
865
|
+
dashed: createDashedBorder(),
|
|
866
|
+
solid: createSolidBorder("blue", 500, "default"),
|
|
867
|
+
},
|
|
868
|
+
negative: {
|
|
869
|
+
default: createSolidBorder("red", 600, "default"),
|
|
870
|
+
extraThick: createSolidBorder("red", 600, "extraThick"),
|
|
871
|
+
thick: createSolidBorder("red", 600, "thick"),
|
|
872
|
+
},
|
|
873
|
+
neutral: {
|
|
874
|
+
default: createSolidBorder("gray", 500, "default"),
|
|
875
|
+
extraThick: createSolidBorder("gray", 500, "extraThick"),
|
|
876
|
+
thick: createSolidBorder("gray", 500, "thick"),
|
|
877
|
+
},
|
|
878
|
+
none: "none",
|
|
879
|
+
notice: {
|
|
880
|
+
default: createSolidBorder("yellow", 600, "default"),
|
|
881
|
+
extraThick: createSolidBorder("yellow", 600, "extraThick"),
|
|
882
|
+
thick: createSolidBorder("yellow", 600, "thick"),
|
|
883
|
+
},
|
|
884
|
+
positive: {
|
|
885
|
+
default: createSolidBorder("green", 600, "default"),
|
|
886
|
+
extraThick: createSolidBorder("green", 600, "extraThick"),
|
|
887
|
+
thick: createSolidBorder("green", 600, "thick"),
|
|
888
|
+
},
|
|
889
|
+
};
|
|
942
890
|
};
|
|
891
|
+
/**
|
|
892
|
+
* Create a SDS App Theme with custom colors that follows the SDS color model.
|
|
893
|
+
*/
|
|
894
|
+
var makeSdsSemanticAppTheme = function (colors, isDarkTheme) {
|
|
895
|
+
if (isDarkTheme === void 0) { isDarkTheme = false; }
|
|
896
|
+
return (__assign(__assign({}, sharedAppTheme), { borders: createAppThemeBorders(colors, isDarkTheme), colors: colors }));
|
|
897
|
+
};
|
|
898
|
+
var SDSLightAppTheme = makeSdsSemanticAppTheme(SDSLightThemeColors);
|
|
899
|
+
var SDSDarkAppTheme = makeSdsSemanticAppTheme(SDSDarkThemeColors, true);
|
|
943
900
|
/**
|
|
944
901
|
* Helper function to select the appropriate theme settings.
|
|
945
902
|
*
|
|
@@ -1658,7 +1615,7 @@ var fontTabular = function (fontSize, fontWeight, isNarrow) {
|
|
|
1658
1615
|
if (!typography)
|
|
1659
1616
|
return null;
|
|
1660
1617
|
var tabular = typography.wideStyles.tabular, narrowTabular = typography.narrowStyles.tabular, tabularFontFamily = typography.fontFamily.tabular;
|
|
1661
|
-
return react.css(templateObject_7$
|
|
1618
|
+
return react.css(templateObject_7$h || (templateObject_7$h = __makeTemplateObject(["\n font-variant-numeric: tabular-nums;\n\n ", "\n "], ["\n font-variant-numeric: tabular-nums;\n\n ", "\n "])), isNarrow
|
|
1662
1619
|
? react.css(templateObject_6$l || (templateObject_6$l = __makeTemplateObject(["\n ", " {\n ", "\n }\n "], ["\n ", " {\n ", "\n }\n "])), (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.breakpoints) === null || _b === void 0 ? void 0 : _b.down("md"), themeToCss(narrowTabular[fontWeight][fontSize], tabularFontFamily)) : themeToCss(tabular[fontWeight][fontSize], tabularFontFamily));
|
|
1663
1620
|
};
|
|
1664
1621
|
};
|
|
@@ -1668,9 +1625,9 @@ var fontTabularSemiboldXs = fontTabular("xs", "semibold");
|
|
|
1668
1625
|
var fontTabularSemiboldS = fontTabular("s", "semibold");
|
|
1669
1626
|
function themeToCss(fontTheme, fontFamily) {
|
|
1670
1627
|
if (fontFamily === void 0) { fontFamily = "inherit"; }
|
|
1671
|
-
return react.css(templateObject_8$
|
|
1628
|
+
return react.css(templateObject_8$e || (templateObject_8$e = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", " !important;\n letter-spacing: ", ";\n font-weight: ", ";\n text-transform: ", ";\n "], ["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", " !important;\n letter-spacing: ", ";\n font-weight: ", ";\n text-transform: ", ";\n "])), fontFamily, fontTheme.fontSize, fontTheme.lineHeight, fontTheme.letterSpacing, fontTheme.fontWeight, fontTheme.textTransform);
|
|
1672
1629
|
}
|
|
1673
|
-
var templateObject_1$1a, templateObject_2$N, templateObject_3$D, templateObject_4$w, templateObject_5$p, templateObject_6$l, templateObject_7$
|
|
1630
|
+
var templateObject_1$1a, templateObject_2$N, templateObject_3$D, templateObject_4$w, templateObject_5$p, templateObject_6$l, templateObject_7$h, templateObject_8$e;
|
|
1674
1631
|
|
|
1675
1632
|
var StyledAccordionDetails = styled__default.default(material.AccordionDetails)(templateObject_2$M || (templateObject_2$M = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyS$1, function (props) {
|
|
1676
1633
|
var spaces = getSpaces(props);
|
|
@@ -4446,7 +4403,7 @@ var AccordionHeader = function (props) {
|
|
|
4446
4403
|
};
|
|
4447
4404
|
|
|
4448
4405
|
var sdsPropNames$2 = ["useDivider", "togglePosition"];
|
|
4449
|
-
var StyledAccordion$
|
|
4406
|
+
var StyledAccordion$2 = styled__default.default(material.Accordion, {
|
|
4450
4407
|
shouldForwardProp: function (prop) {
|
|
4451
4408
|
return !sdsPropNames$2.includes(prop.toString());
|
|
4452
4409
|
},
|
|
@@ -4480,7 +4437,7 @@ var Accordion = React__namespace.default.forwardRef(function (props, ref) {
|
|
|
4480
4437
|
setExpanded(isExpanded ? panel : false);
|
|
4481
4438
|
};
|
|
4482
4439
|
};
|
|
4483
|
-
return (jsxRuntime.jsx(StyledAccordion$
|
|
4440
|
+
return (jsxRuntime.jsx(StyledAccordion$2, __assign({ square: true, useDivider: useDivider, togglePosition: togglePosition, expanded: expanded === id, onChange: handleChange(id), ref: ref }, props, { children: children })));
|
|
4484
4441
|
});
|
|
4485
4442
|
|
|
4486
4443
|
var StyledAlert = styled__default.default(material.Alert)(templateObject_1$15 || (templateObject_1$15 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
@@ -4717,29 +4674,29 @@ var Minimal = function (props) {
|
|
|
4717
4674
|
var PrimaryMinimalButton = function (props) {
|
|
4718
4675
|
var _a, _b;
|
|
4719
4676
|
var semanticColors = getSemanticColors(props);
|
|
4720
|
-
return react.css(templateObject_7$
|
|
4677
|
+
return react.css(templateObject_7$g || (templateObject_7$g = __makeTemplateObject(["\n ", "\n color: ", ";\n\n svg {\n color: ", ";\n }\n "], ["\n ", "\n color: ", ";\n\n svg {\n color: ", ";\n }\n "])), Minimal(props), (_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.ornament);
|
|
4721
4678
|
};
|
|
4722
4679
|
var SecondaryMinimalButton = function (props) {
|
|
4723
4680
|
var _a, _b;
|
|
4724
4681
|
var semanticColors = getSemanticColors(props);
|
|
4725
|
-
return react.css(templateObject_8$
|
|
4682
|
+
return react.css(templateObject_8$d || (templateObject_8$d = __makeTemplateObject(["\n ", "\n color: ", ";\n\n svg {\n color: ", ";\n }\n "], ["\n ", "\n color: ", ";\n\n svg {\n color: ", ";\n }\n "])), Minimal(props), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimary, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.ornamentPrimary);
|
|
4726
4683
|
};
|
|
4727
4684
|
var StyledMinimalButton = styled__default.default(material.Button, {
|
|
4728
4685
|
shouldForwardProp: function (prop) { return !doNotForwardProps$E.includes(prop); },
|
|
4729
|
-
})(templateObject_10$
|
|
4686
|
+
})(templateObject_10$6 || (templateObject_10$6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4730
4687
|
var sdsType = props.sdsType;
|
|
4731
|
-
return react.css(templateObject_9$
|
|
4688
|
+
return react.css(templateObject_9$8 || (templateObject_9$8 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), sdsType === "primary" && PrimaryMinimalButton(props), sdsType === "secondary" && SecondaryMinimalButton(props));
|
|
4732
4689
|
});
|
|
4733
4690
|
var StyledButtonLegacy = styled__default.default(material.Button, {
|
|
4734
4691
|
shouldForwardProp: function (prop) { return !doNotForwardProps$E.includes(prop); },
|
|
4735
|
-
})(templateObject_11$
|
|
4692
|
+
})(templateObject_11$5 || (templateObject_11$5 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), focusVisibleA11yStyle, function (props) {
|
|
4736
4693
|
if (!props.isRounded)
|
|
4737
4694
|
return "";
|
|
4738
4695
|
var corners = getCorners(props);
|
|
4739
4696
|
var spaces = getSpaces(props);
|
|
4740
4697
|
return "\n border-radius: ".concat(corners === null || corners === void 0 ? void 0 : corners.l, "px;\n padding: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;\n ");
|
|
4741
4698
|
});
|
|
4742
|
-
var templateObject_1$14, templateObject_2$I, templateObject_3$z, templateObject_4$u, templateObject_5$o, templateObject_6$k, templateObject_7$
|
|
4699
|
+
var templateObject_1$14, templateObject_2$I, templateObject_3$z, templateObject_4$u, templateObject_5$o, templateObject_6$k, templateObject_7$g, templateObject_8$d, templateObject_9$8, templateObject_10$6, templateObject_11$5;
|
|
4743
4700
|
|
|
4744
4701
|
var isDisabled$1 = function (props) {
|
|
4745
4702
|
var _a, _b;
|
|
@@ -4781,7 +4738,7 @@ var large = function (props) {
|
|
|
4781
4738
|
var sdsType = props.sdsType;
|
|
4782
4739
|
var iconSizes = getIconSizes(props);
|
|
4783
4740
|
var spaces = getSpaces(props);
|
|
4784
|
-
return react.css(templateObject_7$
|
|
4741
|
+
return react.css(templateObject_7$f || (templateObject_7$f = __makeTemplateObject(["\n ", "\n\n .MuiSvgIcon-root {\n height: ", "px;\n width: ", "px;\n ", "\n }\n "], ["\n ", "\n\n .MuiSvgIcon-root {\n height: ", "px;\n width: ", "px;\n ", "\n }\n "])), sdsType !== "tertiary"
|
|
4785
4742
|
? "margin: 0 ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.s, "px 0;")
|
|
4786
4743
|
: "", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xl.height, iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xl.height, sdsType !== "tertiary" ? "margin: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;") : "");
|
|
4787
4744
|
};
|
|
@@ -4796,11 +4753,11 @@ var doNotForwardProps$D = [
|
|
|
4796
4753
|
];
|
|
4797
4754
|
var StyledButtonIcon = styled__default.default(material.IconButton, {
|
|
4798
4755
|
shouldForwardProp: function (prop) { return !doNotForwardProps$D.includes(prop); },
|
|
4799
|
-
})(templateObject_9$
|
|
4756
|
+
})(templateObject_9$7 || (templateObject_9$7 = __makeTemplateObject(["\n padding: 0;\n ", "\n\n ", "\n"], ["\n padding: 0;\n ", "\n\n ", "\n"])), focusVisibleA11yStyle, function (props) {
|
|
4800
4757
|
var disabled = props.disabled, _a = props.sdsSize, sdsSize = _a === void 0 ? "medium" : _a, _b = props.sdsType, sdsType = _b === void 0 ? "primary" : _b;
|
|
4801
|
-
return react.css(templateObject_8$
|
|
4758
|
+
return react.css(templateObject_8$c || (templateObject_8$c = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), sdsType === "primary" && primary$2(props), sdsType === "secondary" && secondary$2(props), sdsType === "tertiary" && tertiary(props), disabled && isDisabled$1(props), sdsSize === "small" && small$1(props), sdsSize === "medium" && medium$1(props), sdsSize === "large" && large(props));
|
|
4802
4759
|
});
|
|
4803
|
-
var templateObject_1$13, templateObject_2$H, templateObject_3$y, templateObject_4$t, templateObject_5$n, templateObject_6$j, templateObject_7$
|
|
4760
|
+
var templateObject_1$13, templateObject_2$H, templateObject_3$y, templateObject_4$t, templateObject_5$n, templateObject_6$j, templateObject_7$f, templateObject_8$c, templateObject_9$7;
|
|
4804
4761
|
|
|
4805
4762
|
var ButtonIconSizeToSdsIconSize = {
|
|
4806
4763
|
large: "xl",
|
|
@@ -4938,8 +4895,8 @@ var StyledSearchBase = styled__default.default(material.TextField, {
|
|
|
4938
4895
|
var semanticColors = getSemanticColors(props);
|
|
4939
4896
|
return react.css(templateObject_5$m || (templateObject_5$m = __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 cursor: pointer;\n\n svg {\n height: ", "px;\n width: ", "px;\n }\n }\n\n .", " {\n padding: 0 ", "px;\n width: 100%;\n\n .", " {\n padding-right: ", "px;\n\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\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 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 }\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 cursor: pointer;\n\n svg {\n height: ", "px;\n width: ", "px;\n }\n }\n\n .", " {\n padding: 0 ", "px;\n width: 100%;\n\n .", " {\n padding-right: ", "px;\n\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\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 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 }\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, material.outlinedInputClasses.input, spaces === null || spaces === void 0 ? void 0 : spaces.l, (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.textTertiary, 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.borderPrimary, (_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _e === void 0 ? void 0 : _e.ornamentSecondary, (_f = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _f === void 0 ? void 0 : _f.ornamentSecondaryHover, (_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, material.outlinedInputClasses.root, material.buttonBaseClasses.root, (_h = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _h === void 0 ? void 0 : _h.ornamentSecondaryHover, material.outlinedInputClasses.notchedOutline, (_j = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _j === void 0 ? void 0 : _j.borderPrimaryHover, material.outlinedInputClasses.root, material.outlinedInputClasses.focused, material.outlinedInputClasses.notchedOutline, (_k = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _k === void 0 ? void 0 : _k.border, material.inputAdornmentClasses.root, material.buttonBaseClasses.root, (_l = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _l === void 0 ? void 0 : _l.ornamentFocus, material.outlinedInputClasses.root, (_m = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _m === void 0 ? void 0 : _m.borderPrimaryHover, 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));
|
|
4940
4897
|
});
|
|
4941
|
-
var StyledInputAdornment = styled__default.default(material.InputAdornment)(templateObject_7$
|
|
4942
|
-
var templateObject_1$12, templateObject_2$G, templateObject_3$x, templateObject_4$s, templateObject_5$m, templateObject_6$i, templateObject_7$
|
|
4898
|
+
var StyledInputAdornment = styled__default.default(material.InputAdornment)(templateObject_7$e || (templateObject_7$e = __makeTemplateObject(["\n position: relative;\n height: unset;\n margin: 0;\n"], ["\n position: relative;\n height: unset;\n margin: 0;\n"])));
|
|
4899
|
+
var templateObject_1$12, templateObject_2$G, templateObject_3$x, templateObject_4$s, templateObject_5$m, templateObject_6$i, templateObject_7$e;
|
|
4943
4900
|
|
|
4944
4901
|
var StyledMenuItem$1 = styled__default.default(material.MenuItem)(templateObject_1$11 || (templateObject_1$11 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4945
4902
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
@@ -4984,7 +4941,7 @@ var StyledIconWrapper = styled__default.default("span")(templateObject_6$h || (t
|
|
|
4984
4941
|
});
|
|
4985
4942
|
var StyledCheck = styled__default.default(iconsMaterial.Check, {
|
|
4986
4943
|
shouldForwardProp: function (prop) { return prop !== "selected"; },
|
|
4987
|
-
})(templateObject_7$
|
|
4944
|
+
})(templateObject_7$d || (templateObject_7$d = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4988
4945
|
var _a, _b;
|
|
4989
4946
|
var selected = props.selected, disabled = props.disabled;
|
|
4990
4947
|
var iconSizes = getIconSizes(props);
|
|
@@ -4996,7 +4953,7 @@ var StyledCheck = styled__default.default(iconsMaterial.Check, {
|
|
|
4996
4953
|
});
|
|
4997
4954
|
var StyledMinus = styled__default.default(iconsMaterial.Remove, {
|
|
4998
4955
|
shouldForwardProp: function (prop) { return prop !== "selected"; },
|
|
4999
|
-
})(templateObject_8$
|
|
4956
|
+
})(templateObject_8$b || (templateObject_8$b = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
5000
4957
|
var _a, _b;
|
|
5001
4958
|
var selected = props.selected, disabled = props.disabled;
|
|
5002
4959
|
var semanticColors = getSemanticColors(props);
|
|
@@ -5006,7 +4963,7 @@ var StyledMinus = styled__default.default(iconsMaterial.Remove, {
|
|
|
5006
4963
|
: (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _b === void 0 ? void 0 : _b.ornamentSelected;
|
|
5007
4964
|
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 ");
|
|
5008
4965
|
});
|
|
5009
|
-
var templateObject_1$11, templateObject_2$F, templateObject_3$w, templateObject_4$r, templateObject_5$l, templateObject_6$h, templateObject_7$
|
|
4966
|
+
var templateObject_1$11, templateObject_2$F, templateObject_3$w, templateObject_4$r, templateObject_5$l, templateObject_6$h, templateObject_7$d, templateObject_8$b;
|
|
5010
4967
|
|
|
5011
4968
|
/**
|
|
5012
4969
|
* @see https://mui.com/material-ui/react-menu/
|
|
@@ -5953,7 +5910,7 @@ var arrowCss = function (props) {
|
|
|
5953
5910
|
var _a, _b;
|
|
5954
5911
|
var hasInvertedStyle = props.hasInvertedStyle, inverted = props.inverted, sdsStyle = props.sdsStyle, arrowOffset = props.arrowOffset;
|
|
5955
5912
|
var semanticColors = getSemanticColors(props);
|
|
5956
|
-
return css.css(templateObject_7$
|
|
5913
|
+
return css.css(templateObject_7$c || (templateObject_7$c = __makeTemplateObject(["\n &.MuiTooltip-arrow {\n /* (bethbertozzi): !important is needed to fight inline style */\n left: ", "px !important;\n color: ", ";\n &:before {\n box-sizing: border-box;\n width: 12px;\n height: 12px;\n }\n }\n "], ["\n &.MuiTooltip-arrow {\n /* (bethbertozzi): !important is needed to fight inline style */\n left: ", "px !important;\n color: ", ";\n &:before {\n box-sizing: border-box;\n width: 12px;\n height: 12px;\n }\n }\n "])), arrowOffset, hasInvertedStyle || inverted || sdsStyle === "dark"
|
|
5957
5914
|
? (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.surfaceInverse
|
|
5958
5915
|
: (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.surface);
|
|
5959
5916
|
};
|
|
@@ -5961,8 +5918,8 @@ var arrowCss = function (props) {
|
|
|
5961
5918
|
* (masoudmanson): !important is needed to override arrow's
|
|
5962
5919
|
* default placement which is calculated by javascript
|
|
5963
5920
|
*/
|
|
5964
|
-
var StyledPopper$1 = styled__default.default(material.Popper)(templateObject_8$
|
|
5965
|
-
var templateObject_1$T, templateObject_2$A, templateObject_3$r, templateObject_4$n, templateObject_5$i, templateObject_6$f, templateObject_7$
|
|
5921
|
+
var StyledPopper$1 = styled__default.default(material.Popper)(templateObject_8$a || (templateObject_8$a = __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"])));
|
|
5922
|
+
var templateObject_1$T, templateObject_2$A, templateObject_3$r, templateObject_4$n, templateObject_5$i, templateObject_6$f, templateObject_7$c, templateObject_8$a;
|
|
5966
5923
|
|
|
5967
5924
|
/**
|
|
5968
5925
|
* @see https://mui.com/material-ui/react-tooltip/
|
|
@@ -6102,7 +6059,7 @@ var PrimaryText = styled__default.default("div", {
|
|
|
6102
6059
|
});
|
|
6103
6060
|
var SecondaryText = styled__default.default("span", {
|
|
6104
6061
|
shouldForwardProp: function (prop) { return !doNotForwardProps$v.includes(prop); },
|
|
6105
|
-
})(templateObject_7$
|
|
6062
|
+
})(templateObject_7$b || (templateObject_7$b = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
6106
6063
|
var _a;
|
|
6107
6064
|
var _b = props.secondaryTextWrapLineCount, secondaryTextWrapLineCount = _b === void 0 ? 1 : _b;
|
|
6108
6065
|
var spaces = getSpaces(props);
|
|
@@ -6113,7 +6070,7 @@ var SecondaryText = styled__default.default("span", {
|
|
|
6113
6070
|
});
|
|
6114
6071
|
var TertiaryText = styled__default.default("span", {
|
|
6115
6072
|
shouldForwardProp: function (prop) { return !doNotForwardProps$v.includes(prop); },
|
|
6116
|
-
})(templateObject_8$
|
|
6073
|
+
})(templateObject_8$9 || (templateObject_8$9 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
6117
6074
|
var _a;
|
|
6118
6075
|
var _b = props.tertiaryTextWrapLineCount, tertiaryTextWrapLineCount = _b === void 0 ? 1 : _b;
|
|
6119
6076
|
var spaces = getSpaces(props);
|
|
@@ -6122,15 +6079,15 @@ var TertiaryText = styled__default.default("span", {
|
|
|
6122
6079
|
? ShouldWrap(tertiaryTextWrapLineCount)
|
|
6123
6080
|
: ShouldTruncate(), "\n ");
|
|
6124
6081
|
});
|
|
6125
|
-
var PrimaryTextComponentSlotBottomWrapper = styled__default.default("div")(templateObject_9$
|
|
6082
|
+
var PrimaryTextComponentSlotBottomWrapper = styled__default.default("div")(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6126
6083
|
var spaces = getSpaces(props);
|
|
6127
6084
|
return "\n margin-top: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;\n ");
|
|
6128
6085
|
});
|
|
6129
|
-
var PrimaryTextComponentSlotRightWrapper = styled__default.default("div")(templateObject_10$
|
|
6086
|
+
var PrimaryTextComponentSlotRightWrapper = styled__default.default("div")(templateObject_10$5 || (templateObject_10$5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6130
6087
|
var spaces = getSpaces(props);
|
|
6131
6088
|
return "\n margin-left: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;\n ");
|
|
6132
6089
|
});
|
|
6133
|
-
var templateObject_1$S, templateObject_2$z, templateObject_3$q, templateObject_4$m, templateObject_5$h, templateObject_6$e, templateObject_7$
|
|
6090
|
+
var templateObject_1$S, templateObject_2$z, templateObject_3$q, templateObject_4$m, templateObject_5$h, templateObject_6$e, templateObject_7$b, templateObject_8$9, templateObject_9$6, templateObject_10$5;
|
|
6134
6091
|
|
|
6135
6092
|
var CellBasicContent = function (props) {
|
|
6136
6093
|
var primaryText = props.primaryText, primaryTextWrapLineCount = props.primaryTextWrapLineCount, secondaryText = props.secondaryText, secondaryTextWrapLineCount = props.secondaryTextWrapLineCount, tertiaryText = props.tertiaryText, tertiaryTextWrapLineCount = props.tertiaryTextWrapLineCount, _a = props.shouldTextWrap, shouldTextWrap = _a === void 0 ? true : _a, icon = props.icon, iconVerticalAlign = props.iconVerticalAlign, primaryTextComponentSlotRight = props.primaryTextComponentSlotRight, primaryTextComponentSlotBottom = props.primaryTextComponentSlotBottom, _b = props.horizontalAlign, horizontalAlign = _b === void 0 ? "left" : _b;
|
|
@@ -6302,11 +6259,11 @@ var statusToCss = {
|
|
|
6302
6259
|
var doNotForwardProps$s = ["isRounded"];
|
|
6303
6260
|
var StyledChip = styled__default.default(material.Chip, {
|
|
6304
6261
|
shouldForwardProp: function (prop) { return !doNotForwardProps$s.includes(prop); },
|
|
6305
|
-
})(templateObject_7$
|
|
6262
|
+
})(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["\n border: none;\n\n ", "\n"], ["\n border: none;\n\n ", "\n"])), function (props) {
|
|
6306
6263
|
var size = props.size, status = props.status, isRounded = props.isRounded;
|
|
6307
6264
|
return react.css(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), isRounded && rounded$2(props), !isRounded && square$2(props), size === "small" && small(props), size === "medium" && medium(props), status && statusToCss[status](props));
|
|
6308
6265
|
});
|
|
6309
|
-
var templateObject_1$P, templateObject_2$x, templateObject_3$o, templateObject_4$l, templateObject_5$g, templateObject_6$d, templateObject_7$
|
|
6266
|
+
var templateObject_1$P, templateObject_2$x, templateObject_3$o, templateObject_4$l, templateObject_5$g, templateObject_6$d, templateObject_7$a;
|
|
6310
6267
|
|
|
6311
6268
|
/**
|
|
6312
6269
|
* @see https://mui.com/material-ui/react-chip/
|
|
@@ -6482,12 +6439,12 @@ var isOpen = function (props) {
|
|
|
6482
6439
|
var applyIntentColor$1 = function (props, intent) {
|
|
6483
6440
|
var _a, _b, _c;
|
|
6484
6441
|
var borders = getBorders(props);
|
|
6485
|
-
return react.css(templateObject_7$
|
|
6442
|
+
return react.css(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n border: ", ";\n\n &:hover {\n border: ", ";\n }\n\n &:active {\n border: ", ";\n }\n "], ["\n border: ", ";\n\n &:hover {\n border: ", ";\n }\n\n &:active {\n border: ", ";\n }\n "])), (_a = borders === null || borders === void 0 ? void 0 : borders[intent]) === null || _a === void 0 ? void 0 : _a.default, (_b = borders === null || borders === void 0 ? void 0 : borders.base) === null || _b === void 0 ? void 0 : _b.hover, (_c = borders === null || borders === void 0 ? void 0 : borders.base) === null || _c === void 0 ? void 0 : _c.pressed);
|
|
6486
6443
|
};
|
|
6487
6444
|
var isDisabled = function (props) {
|
|
6488
6445
|
var _a, _b, _c, _d;
|
|
6489
6446
|
var semanticColors = getSemanticColors(props);
|
|
6490
|
-
return react.css(templateObject_8$
|
|
6447
|
+
return react.css(templateObject_8$8 || (templateObject_8$8 = __makeTemplateObject(["\n cursor: default;\n border-color: ", ";\n\n span {\n color: ", ";\n }\n\n &.MuiButton-text {\n .styled-label {\n color: ", ";\n }\n }\n\n path {\n fill: ", ";\n }\n "], ["\n cursor: default;\n border-color: ", ";\n\n span {\n color: ", ";\n }\n\n &.MuiButton-text {\n .styled-label {\n color: ", ";\n }\n }\n\n path {\n fill: ", ";\n }\n "])), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.borderPrimaryDisabled, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.textDisabled, (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.textDisabled, (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.ornamentDisabled);
|
|
6491
6448
|
};
|
|
6492
6449
|
/**
|
|
6493
6450
|
* (masoudmanson): `Button as React.ComponentType<InputDropdownProps>` is a
|
|
@@ -6499,9 +6456,9 @@ var isDisabled = function (props) {
|
|
|
6499
6456
|
*/
|
|
6500
6457
|
var StyledInputDropdown = styled__default.default(Button, {
|
|
6501
6458
|
shouldForwardProp: function (prop) { return !doNotForwardProps$q.includes(prop); },
|
|
6502
|
-
})(templateObject_10$
|
|
6459
|
+
})(templateObject_10$4 || (templateObject_10$4 = __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) {
|
|
6503
6460
|
var disabled = props.disabled, intent = props.intent, state = props.state, value = props.value, sdsStyle = props.sdsStyle;
|
|
6504
|
-
return react.css(templateObject_9$
|
|
6461
|
+
return react.css(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), inputDropdownStyles(props), sdsStyle === "minimal" && minimal$1(props), sdsStyle === "square" && square$1(props), sdsStyle === "rounded" && rounded$1(props), value && userInput(props), intent === "notice" &&
|
|
6505
6462
|
sdsStyle !== "minimal" &&
|
|
6506
6463
|
applyIntentColor$1(props, "notice"), intent === "negative" &&
|
|
6507
6464
|
sdsStyle !== "minimal" &&
|
|
@@ -6511,7 +6468,7 @@ var StyledInputDropdown = styled__default.default(Button, {
|
|
|
6511
6468
|
});
|
|
6512
6469
|
var StyledDetail = styled__default.default("span", {
|
|
6513
6470
|
shouldForwardProp: function (prop) { return !doNotForwardProps$q.includes(prop); },
|
|
6514
|
-
})(templateObject_11$
|
|
6471
|
+
})(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6515
6472
|
var _a;
|
|
6516
6473
|
var spaces = getSpaces(props);
|
|
6517
6474
|
var semanticColors = getSemanticColors(props);
|
|
@@ -6564,7 +6521,7 @@ function labelStyle(props) {
|
|
|
6564
6521
|
: (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.textSecondary;
|
|
6565
6522
|
return react.css(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["\n &.MuiButton-text {\n .styled-label {\n color: ", ";\n }\n }\n "], ["\n &.MuiButton-text {\n .styled-label {\n color: ", ";\n }\n }\n "])), labelColor);
|
|
6566
6523
|
}
|
|
6567
|
-
var templateObject_1$N, templateObject_2$v, templateObject_3$m, templateObject_4$j, templateObject_5$e, templateObject_6$c, templateObject_7$
|
|
6524
|
+
var templateObject_1$N, templateObject_2$v, templateObject_3$m, templateObject_4$j, templateObject_5$e, templateObject_6$c, templateObject_7$9, templateObject_8$8, templateObject_9$5, templateObject_10$4, templateObject_11$4, templateObject_12$3, templateObject_13$3, templateObject_14$3, templateObject_15$3, templateObject_16$2, templateObject_17$2;
|
|
6568
6525
|
|
|
6569
6526
|
/**
|
|
6570
6527
|
* @see https://mui.com/material-ui/react-button/
|
|
@@ -6739,15 +6696,15 @@ var doNotForwardProps$p = [
|
|
|
6739
6696
|
"tagColor",
|
|
6740
6697
|
"hover",
|
|
6741
6698
|
];
|
|
6742
|
-
var StyledTag$
|
|
6699
|
+
var StyledTag$3 = styled__default.default(material.Chip, {
|
|
6743
6700
|
shouldForwardProp: function (prop) { return !doNotForwardProps$p.includes(prop); },
|
|
6744
|
-
})(templateObject_8$
|
|
6701
|
+
})(templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject(["\n border: none;\n\n ", "\n"], ["\n border: none;\n\n ", "\n"])), function (props) {
|
|
6745
6702
|
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;
|
|
6746
6703
|
var isRounded = sdsStyle === "rounded";
|
|
6747
6704
|
var type = sdsType || "primary";
|
|
6748
|
-
return react.css(templateObject_7$
|
|
6705
|
+
return react.css(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), sdsSize === "l" ? tagSizeL(props) : tagSizeS(props), typeToCss[type](props), isRounded ? rounded(props) : square(props), hover ? withHover(props) : "pointer-events: none;");
|
|
6749
6706
|
});
|
|
6750
|
-
var templateObject_1$M, templateObject_2$u, templateObject_3$l, templateObject_4$i, templateObject_5$d, templateObject_6$b, templateObject_7$
|
|
6707
|
+
var templateObject_1$M, templateObject_2$u, templateObject_3$l, templateObject_4$i, templateObject_5$d, templateObject_6$b, templateObject_7$8, templateObject_8$7;
|
|
6751
6708
|
|
|
6752
6709
|
/**
|
|
6753
6710
|
* @see https://mui.com/material-ui/react-chip/
|
|
@@ -6758,10 +6715,10 @@ var templateObject_1$M, templateObject_2$u, templateObject_3$l, templateObject_4
|
|
|
6758
6715
|
*/
|
|
6759
6716
|
var Tag = function (props) {
|
|
6760
6717
|
var color = props.color;
|
|
6761
|
-
return jsxRuntime.jsx(StyledTag$
|
|
6718
|
+
return jsxRuntime.jsx(StyledTag$3, __assign({ tagColor: color }, props, { color: "primary" }));
|
|
6762
6719
|
};
|
|
6763
6720
|
|
|
6764
|
-
var StyledTag$
|
|
6721
|
+
var StyledTag$2 = styled__default.default(Tag)(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6765
6722
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6766
6723
|
var spaces = getSpaces(props);
|
|
6767
6724
|
var iconSizes = getIconSizes(props);
|
|
@@ -6774,7 +6731,7 @@ var templateObject_1$L, templateObject_2$t;
|
|
|
6774
6731
|
* @see https://mui.com/material-ui/react-chip/
|
|
6775
6732
|
*/
|
|
6776
6733
|
var TagFilter = function (props) {
|
|
6777
|
-
return (jsxRuntime.jsx(StyledTag$
|
|
6734
|
+
return (jsxRuntime.jsx(StyledTag$2, __assign({ role: "none presentation" }, props, { deleteIcon: jsxRuntime.jsx(Button, { "aria-label": "Delete Tag", icon: "XMark", sdsSize: "small", sdsType: "tertiary", sdsStyle: "icon" }), color: "info" })));
|
|
6778
6735
|
};
|
|
6779
6736
|
|
|
6780
6737
|
var Chips = function (_a) {
|
|
@@ -6946,18 +6903,18 @@ var StyledCardActionArea = styled__default.default(Button, {
|
|
|
6946
6903
|
});
|
|
6947
6904
|
var StyledIconMediaWrapper = styled__default.default("div", {
|
|
6948
6905
|
shouldForwardProp: function (prop) { return !doNotForwardProps$o.includes(prop); },
|
|
6949
|
-
})(templateObject_10$
|
|
6906
|
+
})(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6950
6907
|
var _a = props.boundingBox, boundingBox = _a === void 0 ? true : _a;
|
|
6951
6908
|
var spaces = getSpaces(props);
|
|
6952
|
-
return react.css(templateObject_9$
|
|
6953
|
-
? react.css(templateObject_7$
|
|
6909
|
+
return react.css(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), boundingBox
|
|
6910
|
+
? react.css(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n padding: ", "px 0 ", "px ", "px;\n "], ["\n padding: ", "px 0 ", "px ", "px;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl, spaces === null || spaces === void 0 ? void 0 : spaces.xl, spaces === null || spaces === void 0 ? void 0 : spaces.xl) : react.css(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["\n padding-right: ", "px;\n "], ["\n padding-right: ", "px;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl));
|
|
6954
6911
|
});
|
|
6955
6912
|
var StyledCardContent = styled__default.default("div", {
|
|
6956
6913
|
shouldForwardProp: function (prop) { return !doNotForwardProps$o.includes(prop); },
|
|
6957
6914
|
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
6958
6915
|
var _a = props.boundingBox, boundingBox = _a === void 0 ? true : _a;
|
|
6959
6916
|
var spaces = getSpaces(props);
|
|
6960
|
-
return react.css(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n min-width: 100px;\n width: 100%;\n height: 100%;\n\n ", "\n "], ["\n display: flex;\n flex-direction: column;\n min-width: 100px;\n width: 100%;\n height: 100%;\n\n ", "\n "])), boundingBox && react.css(templateObject_11$
|
|
6917
|
+
return react.css(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n min-width: 100px;\n width: 100%;\n height: 100%;\n\n ", "\n "], ["\n display: flex;\n flex-direction: column;\n min-width: 100px;\n width: 100%;\n height: 100%;\n\n ", "\n "])), boundingBox && react.css(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n padding: ", "px;\n "], ["\n padding: ", "px;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl));
|
|
6961
6918
|
});
|
|
6962
6919
|
var StyledContentCardBody = styled__default.default(material.CardContent, {
|
|
6963
6920
|
shouldForwardProp: function (prop) { return !doNotForwardProps$o.includes(prop); },
|
|
@@ -6968,7 +6925,7 @@ var StyledContentCardBody = styled__default.default(material.CardContent, {
|
|
|
6968
6925
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimary, ";\n margin: ").concat(spaces === null || spaces === void 0 ? void 0 : spaces.l, "px 0 0;\n padding: 0;\n ");
|
|
6969
6926
|
});
|
|
6970
6927
|
var StyledCardContentAligner = styled__default.default("div")(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n"])));
|
|
6971
|
-
var templateObject_1$J, templateObject_2$r, templateObject_3$k, templateObject_4$h, templateObject_5$c, templateObject_6$a, templateObject_7$
|
|
6928
|
+
var templateObject_1$J, templateObject_2$r, templateObject_3$k, templateObject_4$h, templateObject_5$c, templateObject_6$a, templateObject_7$7, templateObject_8$6, templateObject_9$4, templateObject_10$3, templateObject_11$3, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$2;
|
|
6972
6929
|
|
|
6973
6930
|
var doNotForwardProps$n = [
|
|
6974
6931
|
"visualElement",
|
|
@@ -7018,13 +6975,22 @@ var StyledMetadataText = material.styled("p", {
|
|
|
7018
6975
|
});
|
|
7019
6976
|
var templateObject_1$I, templateObject_2$q, templateObject_3$j, templateObject_4$g, templateObject_5$b;
|
|
7020
6977
|
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
6978
|
+
var createTextComponent = function (StyledComponent) {
|
|
6979
|
+
return function (_a) {
|
|
6980
|
+
var text = _a.text, className = _a.className;
|
|
6981
|
+
if (!text)
|
|
6982
|
+
return null;
|
|
6983
|
+
return typeof text === "string" ? (jsxRuntime.jsx(StyledComponent, { className: className, children: text })) : (text);
|
|
6984
|
+
};
|
|
6985
|
+
};
|
|
6986
|
+
var OverlineText = createTextComponent(StyledOverlineText);
|
|
6987
|
+
var TitleText = createTextComponent(StyledTitleText);
|
|
6988
|
+
var SubtitleText = createTextComponent(StyledSubtitleText);
|
|
6989
|
+
var MetadataText = createTextComponent(StyledMetadataText);
|
|
7024
6990
|
var ContentCardTitle = React.forwardRef(function ContentCardTitle(props, ref) {
|
|
7025
6991
|
var overlineText = props.overlineText, titleText = props.titleText, subtitleText = props.subtitleText, metadataText = props.metadataText, _a = props.classes, classes = _a === void 0 ? EMPTY_OBJECT : _a;
|
|
7026
6992
|
var cardHeader = classes.cardHeader, cardOverline = classes.cardOverline, cardTitle = classes.cardTitle, cardSubtitle = classes.cardSubtitle, cardMetadata = classes.cardMetadata;
|
|
7027
|
-
return (jsxRuntime.jsxs("div", { ref: ref, children: [jsxRuntime.jsxs(StyledTitleWrapper, { className: cardHeader, children: [
|
|
6993
|
+
return (jsxRuntime.jsxs("div", { ref: ref, children: [jsxRuntime.jsxs(StyledTitleWrapper, { className: cardHeader, children: [jsxRuntime.jsx(OverlineText, { text: overlineText, className: cardOverline }), jsxRuntime.jsx(TitleText, { text: titleText, className: cardTitle }), jsxRuntime.jsx(SubtitleText, { text: subtitleText, className: cardSubtitle })] }), jsxRuntime.jsx(MetadataText, { text: metadataText, className: cardMetadata })] }));
|
|
7028
6994
|
});
|
|
7029
6995
|
|
|
7030
6996
|
var doNotForwardProps$m = ["buttonsPosition"];
|
|
@@ -7096,22 +7062,22 @@ var doNotForwardProps$l = [
|
|
|
7096
7062
|
];
|
|
7097
7063
|
var StyledImageMediaWrapper = material.styled("div", {
|
|
7098
7064
|
shouldForwardProp: function (prop) { return !doNotForwardProps$l.includes(prop); },
|
|
7099
|
-
})(templateObject_9$
|
|
7065
|
+
})(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7100
7066
|
var _a = props.imagePadding, imagePadding = _a === void 0 ? false : _a, _b = props.boundingBox, boundingBox = _b === void 0 ? true : _b, _c = props.sdsType, sdsType = _c === void 0 ? "wide" : _c, _d = props.imagePosition, imagePosition = _d === void 0 ? "left" : _d;
|
|
7101
7067
|
var spaces = getSpaces(props);
|
|
7102
|
-
return material.css(templateObject_8$
|
|
7068
|
+
return material.css(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n display: flex;\n align-items: start;\n\n ", "\n\n ", "\n "], ["\n display: flex;\n align-items: start;\n\n ", "\n\n ", "\n "])), boundingBox
|
|
7103
7069
|
? imagePadding
|
|
7104
7070
|
? material.css(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n padding: ", "px;\n ", "\n "], ["\n padding: ", "px;\n ", "\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl, imagePosition === "left"
|
|
7105
7071
|
? "padding-right: 0;"
|
|
7106
7072
|
: "padding-left: 0;") : material.css(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n padding: 0;\n "], ["\n padding: 0;\n "])))
|
|
7107
7073
|
: material.css(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), imagePosition === "left"
|
|
7108
7074
|
? "padding-right: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px;")
|
|
7109
|
-
: "padding-left: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px;")), sdsType === "narrow" && material.css(templateObject_7$
|
|
7075
|
+
: "padding-left: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px;")), sdsType === "narrow" && material.css(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n ", "\n\n justify-content: center;\n "], ["\n ", "\n\n justify-content: center;\n "])), boundingBox
|
|
7110
7076
|
? imagePadding
|
|
7111
7077
|
? material.css(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n padding: ", "px;\n padding-bottom: 0;\n "], ["\n padding: ", "px;\n padding-bottom: 0;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl) : material.css(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n padding: 0;\n "], ["\n padding: 0;\n "])))
|
|
7112
7078
|
: material.css(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n padding-bottom: ", "px;\n "], ["\n padding-bottom: ", "px;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl)));
|
|
7113
7079
|
});
|
|
7114
|
-
var templateObject_1$G, templateObject_2$p, templateObject_3$i, templateObject_4$f, templateObject_5$a, templateObject_6$9, templateObject_7$
|
|
7080
|
+
var templateObject_1$G, templateObject_2$p, templateObject_3$i, templateObject_4$f, templateObject_5$a, templateObject_6$9, templateObject_7$6, templateObject_8$5, templateObject_9$3;
|
|
7115
7081
|
|
|
7116
7082
|
/**
|
|
7117
7083
|
* @see https://mui.com/material-ui/api/card-media/
|
|
@@ -7541,7 +7507,7 @@ var StyledCheckboxLabel = styled__default.default("span")(templateObject_6$8 ||
|
|
|
7541
7507
|
var spaces = getSpaces(props);
|
|
7542
7508
|
return "\n margin-top: -".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px !important;\n ");
|
|
7543
7509
|
});
|
|
7544
|
-
var StyledCheckboxCaption = styled__default.default("span")(templateObject_7$
|
|
7510
|
+
var StyledCheckboxCaption = styled__default.default("span")(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
7545
7511
|
var _a;
|
|
7546
7512
|
var semanticColors = getSemanticColors(props);
|
|
7547
7513
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondary, ";\n ");
|
|
@@ -7552,7 +7518,7 @@ var disabledStyles$1 = function (props) {
|
|
|
7552
7518
|
var borders = getBorders(props);
|
|
7553
7519
|
return "\n user-select: none;\n\n ".concat(StyledCheckboxDefaultIcon, " {\n border: ").concat((_a = borders === null || borders === void 0 ? void 0 : borders.base) === null || _a === void 0 ? void 0 : _a.disabled, ";\n }\n\n ").concat(StyledCheckboxCheckedIcon, " {\n background-color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.ornamentDisabled, ";\n }\n\n ").concat(StyledCheckboxCaption, " {\n color: ").concat((_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.textDisabled, ";\n }\n\n &:hover, &:active {\n ").concat(StyledCheckboxDefaultIcon, " {\n border: ").concat((_d = borders === null || borders === void 0 ? void 0 : borders.base) === null || _d === void 0 ? void 0 : _d.disabled, ";\n }\n\n ").concat(StyledCheckboxCheckedIcon, " {\n background-color: ").concat((_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _e === void 0 ? void 0 : _e.ornamentDisabled, ";\n }\n }\n ");
|
|
7554
7520
|
};
|
|
7555
|
-
var StyledFormControlLabel$1 = styled__default.default(material.FormControlLabel)(templateObject_8$
|
|
7521
|
+
var StyledFormControlLabel$1 = styled__default.default(material.FormControlLabel)(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7556
7522
|
var _a, _b, _c, _d;
|
|
7557
7523
|
var disabled = props.disabled;
|
|
7558
7524
|
var spaces = getSpaces(props);
|
|
@@ -7560,7 +7526,7 @@ var StyledFormControlLabel$1 = styled__default.default(material.FormControlLabel
|
|
|
7560
7526
|
var borders = getBorders(props);
|
|
7561
7527
|
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\n &:hover {\n ").concat(StyledCheckboxDefaultIcon, " {\n border: ").concat((_a = borders === null || borders === void 0 ? void 0 : borders.base) === null || _a === void 0 ? void 0 : _a.hover, ";\n }\n\n ").concat(StyledCheckboxCheckedIcon, " {\n background-color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _b === void 0 ? void 0 : _b.fillHover, ";\n }\n }\n\n &:active {\n ").concat(StyledCheckboxDefaultIcon, " {\n border: ").concat((_c = borders === null || borders === void 0 ? void 0 : borders.base) === null || _c === void 0 ? void 0 : _c.pressed, ";\n }\n\n ").concat(StyledCheckboxCheckedIcon, " {\n background-color: ").concat((_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _d === void 0 ? void 0 : _d.fillPressed, ";\n }\n }\n\n ").concat(disabled && disabledStyles$1(props), "\n ");
|
|
7562
7528
|
});
|
|
7563
|
-
var templateObject_1$z, templateObject_2$m, templateObject_3$g, templateObject_4$d, templateObject_5$9, templateObject_6$8, templateObject_7$
|
|
7529
|
+
var templateObject_1$z, templateObject_2$m, templateObject_3$g, templateObject_4$d, templateObject_5$9, templateObject_6$8, templateObject_7$5, templateObject_8$4;
|
|
7564
7530
|
|
|
7565
7531
|
/**
|
|
7566
7532
|
* @see https://mui.com/material-ui/react-checkbox/
|
|
@@ -7623,7 +7589,7 @@ var StyledRadioLabel = styled__default.default("span")(templateObject_6$7 || (te
|
|
|
7623
7589
|
var spaces = getSpaces(props);
|
|
7624
7590
|
return "\n margin-top: -".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px !important;\n ");
|
|
7625
7591
|
});
|
|
7626
|
-
var StyledRadioCaption = styled__default.default("span")(templateObject_7$
|
|
7592
|
+
var StyledRadioCaption = styled__default.default("span")(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontBodyXxs$1, function (props) {
|
|
7627
7593
|
var _a;
|
|
7628
7594
|
var semanticColors = getSemanticColors(props);
|
|
7629
7595
|
return "\n color: ".concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textSecondary, ";\n ");
|
|
@@ -7633,14 +7599,14 @@ var disabledStyles = function (props) {
|
|
|
7633
7599
|
var semanticColors = getSemanticColors(props);
|
|
7634
7600
|
return "\n user-select: none;\n\n ".concat(StyledRadioCaption, " {\n color: ").concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textDisabled, ";\n }\n\n ").concat(StyledRadioDefaultIcon, " {\n border: 1px solid ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.borderPrimaryDisabled, ";\n }\n\n ").concat(StyledRadioCheckedIcon, " {\n background-color: ").concat((_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.ornamentDisabled, ";\n }\n\n &:hover, &:active {\n ").concat(StyledRadioDefaultIcon, " {\n border: 1px solid ").concat((_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.borderPrimaryDisabled, ";\n }\n\n ").concat(StyledRadioCheckedIcon, " {\n background-color: ").concat((_e = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _e === void 0 ? void 0 : _e.ornamentDisabled, ";\n }\n }\n ");
|
|
7635
7601
|
};
|
|
7636
|
-
var StyledFormControlLabel = styled__default.default(material.FormControlLabel)(templateObject_8$
|
|
7602
|
+
var StyledFormControlLabel = styled__default.default(material.FormControlLabel)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
7637
7603
|
var _a, _b, _c, _d;
|
|
7638
7604
|
var disabled = props.disabled;
|
|
7639
7605
|
var spaces = getSpaces(props);
|
|
7640
7606
|
var semanticColors = getSemanticColors(props);
|
|
7641
7607
|
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\n &:hover {\n ").concat(StyledRadioDefaultIcon, " {\n border: 1px solid ").concat((_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.borderPrimaryHover, ";\n }\n\n ").concat(StyledRadioCheckedIcon, " {\n background-color: ").concat((_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _b === void 0 ? void 0 : _b.fillHover, ";\n }\n }\n\n &:active {\n ").concat(StyledRadioDefaultIcon, " {\n border: 1px solid ").concat((_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.borderPrimaryPressed, ";\n }\n\n ").concat(StyledRadioCheckedIcon, " {\n background-color: ").concat((_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _d === void 0 ? void 0 : _d.fillPressed, ";\n }\n }\n\n ").concat(disabled && disabledStyles(props), "\n ");
|
|
7642
7608
|
});
|
|
7643
|
-
var templateObject_1$y, templateObject_2$l, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$
|
|
7609
|
+
var templateObject_1$y, templateObject_2$l, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$4, templateObject_8$3;
|
|
7644
7610
|
|
|
7645
7611
|
/**
|
|
7646
7612
|
* @see https://mui.com/material-ui/react-radio-button/
|
|
@@ -8115,10 +8081,10 @@ var StyledLogoWrapper$1 = styled__default.default("div", {
|
|
|
8115
8081
|
});
|
|
8116
8082
|
var StyledNavSection = styled__default.default("div", {
|
|
8117
8083
|
shouldForwardProp: function (prop) { return !doNotForwardProps$c.includes(prop); },
|
|
8118
|
-
})(templateObject_9$
|
|
8084
|
+
})(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
8119
8085
|
var isNarrow = props.isNarrow;
|
|
8120
8086
|
var spaces = getSpaces(props);
|
|
8121
|
-
return material.css(templateObject_8$
|
|
8087
|
+
return material.css(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n padding-left: ", "px;\n gap: ", "px;\n\n ", "\n "], ["\n display: flex;\n align-items: center;\n padding-left: ", "px;\n gap: ", "px;\n\n ", "\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.l, spaces === null || spaces === void 0 ? void 0 : spaces.xxl, isNarrow && material.css(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n flex-direction: column;\n gap: 0;\n margin-top: ", "px;\n width: 100%;\n padding-left: 0;\n "], ["\n flex-direction: column;\n gap: 0;\n margin-top: ", "px;\n width: 100%;\n padding-left: 0;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl));
|
|
8122
8088
|
});
|
|
8123
8089
|
var StyledTopSection = styled__default.default("div", {
|
|
8124
8090
|
shouldForwardProp: function (prop) { return !doNotForwardProps$c.includes(prop); },
|
|
@@ -8126,11 +8092,11 @@ var StyledTopSection = styled__default.default("div", {
|
|
|
8126
8092
|
var isNarrow = props.isNarrow;
|
|
8127
8093
|
var semanticColors = getSemanticColors(props);
|
|
8128
8094
|
var spaces = getSpaces(props);
|
|
8129
|
-
return material.css(templateObject_11$
|
|
8095
|
+
return material.css(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: ", "px;\n\n a:hover {\n text-decoration: none;\n }\n\n color: ", ";\n\n &:hover {\n color: ", ";\n text-decoration: none;\n }\n\n ", "\n "], ["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: ", "px;\n\n a:hover {\n text-decoration: none;\n }\n\n color: ", ";\n\n &:hover {\n color: ", ";\n text-decoration: none;\n }\n\n ", "\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl, props.hasInvertedStyle
|
|
8130
8096
|
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondaryInverse
|
|
8131
8097
|
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondary, props.hasInvertedStyle
|
|
8132
8098
|
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryInverse
|
|
8133
|
-
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary, isNarrow && material.css(templateObject_10$
|
|
8099
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary, isNarrow && material.css(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n flex-direction: column;\n margin-bottom: ", "px;\n "], ["\n flex-direction: column;\n margin-bottom: ", "px;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl));
|
|
8134
8100
|
});
|
|
8135
8101
|
var StyledLinkSection = styled__default.default("div", {
|
|
8136
8102
|
shouldForwardProp: function (prop) { return !doNotForwardProps$c.includes(prop); },
|
|
@@ -8161,7 +8127,7 @@ var StyledBottomSection = styled__default.default("div", {
|
|
|
8161
8127
|
var spaces = getSpaces(props);
|
|
8162
8128
|
return material.css(templateObject_22$1 || (templateObject_22$1 = __makeTemplateObject(["\n margin-top: ", "px;\n\n ", "\n "], ["\n margin-top: ", "px;\n\n ", "\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.l, isNarrow && material.css(templateObject_21$1 || (templateObject_21$1 = __makeTemplateObject(["\n flex-direction: column-reverse;\n margin-top: ", "px;\n "], ["\n flex-direction: column-reverse;\n margin-top: ", "px;\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl));
|
|
8163
8129
|
});
|
|
8164
|
-
var templateObject_1$n, templateObject_2$f, templateObject_3$a, templateObject_4$7, templateObject_5$5, templateObject_6$4, templateObject_7$
|
|
8130
|
+
var templateObject_1$n, templateObject_2$f, templateObject_3$a, templateObject_4$7, templateObject_5$5, templateObject_6$4, templateObject_7$3, templateObject_8$2, templateObject_9$2, templateObject_10$2, templateObject_11$2, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1;
|
|
8165
8131
|
|
|
8166
8132
|
/**
|
|
8167
8133
|
* WARNING: Don't import this directly.
|
|
@@ -14428,7 +14394,7 @@ styled__default.default("div", {
|
|
|
14428
14394
|
});
|
|
14429
14395
|
var StyledHeaderButton = styled__default.default(Button, {
|
|
14430
14396
|
shouldForwardProp: function (prop) { return !doNotForwardProps$9.includes(prop); },
|
|
14431
|
-
})(templateObject_7$
|
|
14397
|
+
})(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
14432
14398
|
var _a, _b, _c, _d;
|
|
14433
14399
|
var sdsType = props.sdsType, hasInvertedStyle = props.hasInvertedStyle;
|
|
14434
14400
|
var mode = ((_b = (_a = props === null || props === void 0 ? void 0 : props.theme) === null || _a === void 0 ? void 0 : _a.palette) === null || _b === void 0 ? void 0 : _b.mode) || "light";
|
|
@@ -14439,18 +14405,18 @@ var StyledHeaderButton = styled__default.default(Button, {
|
|
|
14439
14405
|
var invertedNarrowButtonStyles = function (props) {
|
|
14440
14406
|
var _a, _b, _c, _d;
|
|
14441
14407
|
var semanticColors = getSemanticColors(props);
|
|
14442
|
-
return material.css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: ", ";\n svg {\n fill: ", ";\n }\n\n &:hover,\n &:focus,\n &:active,\n &:focus-within {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n "], ["\n color: ", ";\n svg {\n fill: ", ";\n }\n\n &:hover,\n &:focus,\n &:active,\n &:focus-within {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n "])), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimaryInverse, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.ornamentPrimaryInverse, (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.textPrimaryInverse, (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.ornamentPrimaryInverse);
|
|
14408
|
+
return material.css(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n color: ", ";\n svg {\n fill: ", ";\n }\n\n &:hover,\n &:focus,\n &:active,\n &:focus-within {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n "], ["\n color: ", ";\n svg {\n fill: ", ";\n }\n\n &:hover,\n &:focus,\n &:active,\n &:focus-within {\n color: ", ";\n svg {\n fill: ", ";\n }\n }\n "])), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.textPrimaryInverse, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.ornamentPrimaryInverse, (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.textPrimaryInverse, (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.ornamentPrimaryInverse);
|
|
14443
14409
|
};
|
|
14444
14410
|
var StyledNarrowIconButton = styled__default.default(Button, {
|
|
14445
14411
|
shouldForwardProp: function (prop) { return !doNotForwardProps$9.includes(prop); },
|
|
14446
|
-
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
14412
|
+
})(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
14447
14413
|
var hasInvertedStyle = props.hasInvertedStyle;
|
|
14448
|
-
return material.css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), hasInvertedStyle && invertedNarrowButtonStyles(props));
|
|
14414
|
+
return material.css(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), hasInvertedStyle && invertedNarrowButtonStyles(props));
|
|
14449
14415
|
});
|
|
14450
14416
|
var invertedWideButtonStyles = function (props) {
|
|
14451
14417
|
var _a, _b;
|
|
14452
14418
|
var semanticColors = getSemanticColors(props);
|
|
14453
|
-
return material.css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n svg {\n fill: ", ";\n }\n\n &:hover,\n &:focus,\n &:active,\n &:focus-within {\n svg {\n fill: ", ";\n }\n }\n "], ["\n svg {\n fill: ", ";\n }\n\n &:hover,\n &:focus,\n &:active,\n &:focus-within {\n svg {\n fill: ", ";\n }\n }\n "])), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.ornamentSecondaryInverse, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.ornamentPrimaryInverse);
|
|
14419
|
+
return material.css(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n svg {\n fill: ", ";\n }\n\n &:hover,\n &:focus,\n &:active,\n &:focus-within {\n svg {\n fill: ", ";\n }\n }\n "], ["\n svg {\n fill: ", ";\n }\n\n &:hover,\n &:focus,\n &:active,\n &:focus-within {\n svg {\n fill: ", ";\n }\n }\n "])), (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.ornamentSecondaryInverse, (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.ornamentPrimaryInverse);
|
|
14454
14420
|
};
|
|
14455
14421
|
var StyledWideIconButton = styled__default.default(Button, {
|
|
14456
14422
|
shouldForwardProp: function (prop) { return !doNotForwardProps$9.includes(prop); },
|
|
@@ -14484,7 +14450,7 @@ var StyledTitleTagWrapper = styled__default.default("div", {
|
|
|
14484
14450
|
var spaces = getSpaces(props);
|
|
14485
14451
|
return "\n display: flex;\n align-items: center;\n gap: ".concat(spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;\n\n p {\n white-space: nowrap;\n }\n ");
|
|
14486
14452
|
});
|
|
14487
|
-
var StyledTag = styled__default.default(Tag)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n margin:
|
|
14453
|
+
var StyledTag$1 = styled__default.default(Tag)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n margin: 0;\n\n .MuiChip-label {\n ", "\n ", "\n }\n\n &:hover {\n text-decoration: none;\n }\n"], ["\n margin: 0;\n\n .MuiChip-label {\n ", "\n ", "\n }\n\n &:hover {\n text-decoration: none;\n }\n"])), fontBody("xxxs", "regular"), fontBody("xxxs", "regular", /* isNarrow */ true));
|
|
14488
14454
|
var StyledPrimaryNavContainer = styled__default.default("div", {
|
|
14489
14455
|
shouldForwardProp: function (prop) { return !doNotForwardProps$9.includes(prop); },
|
|
14490
14456
|
})(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-grow: 1;\n\n ", "\n"], ["\n align-items: center;\n display: flex;\n flex-grow: 1;\n\n ", "\n"])), function (props) {
|
|
@@ -14553,7 +14519,7 @@ var StyledNarrowButton = styled__default.default(Button, {
|
|
|
14553
14519
|
var hasInvertedStyle = props.hasInvertedStyle;
|
|
14554
14520
|
return material.css(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n ", "\n margin: 0;\n "], ["\n ", "\n margin: 0;\n "])), hasInvertedStyle && invertedWideButtonStyles(props));
|
|
14555
14521
|
});
|
|
14556
|
-
var templateObject_1$k, templateObject_2$c, templateObject_3$7, templateObject_4$5, templateObject_5$4, templateObject_6$3, templateObject_7$
|
|
14522
|
+
var templateObject_1$k, templateObject_2$c, templateObject_3$7, templateObject_4$5, templateObject_5$4, templateObject_6$3, templateObject_7$2, templateObject_8$1, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31;
|
|
14557
14523
|
|
|
14558
14524
|
var doNotForwardProps$8 = ["active", "hasInvertedStyle", "isNarrow"];
|
|
14559
14525
|
var NarrowPrimaryNavItem = function (props) {
|
|
@@ -14576,30 +14542,46 @@ var NarrowPrimaryNavItem = function (props) {
|
|
|
14576
14542
|
};
|
|
14577
14543
|
var PrimaryNavItem = styled__default.default(Button, {
|
|
14578
14544
|
shouldForwardProp: function (prop) { return !doNotForwardProps$8.includes(prop); },
|
|
14579
|
-
})(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n display: flex;\n align-items:
|
|
14545
|
+
})(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n background: none;\n padding: 0;\n min-width: fit-content;\n\n ", "\n"], ["\n display: flex;\n align-items: center;\n background: none;\n padding: 0;\n min-width: fit-content;\n\n ", "\n"])), function (props) {
|
|
14546
|
+
var _a;
|
|
14580
14547
|
var hasInvertedStyle = props.hasInvertedStyle, isNarrow = props.isNarrow;
|
|
14581
14548
|
var spaces = getSpaces(props);
|
|
14582
|
-
var
|
|
14583
|
-
|
|
14584
|
-
?
|
|
14585
|
-
:
|
|
14549
|
+
var semanticColors = getSemanticColors(props);
|
|
14550
|
+
var ChevronDefaultColor = hasInvertedStyle
|
|
14551
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondaryInverse
|
|
14552
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.ornamentSecondary;
|
|
14553
|
+
return react.css(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n gap: ", "px;\n\n svg {\n color: ", ";\n }\n\n &:hover {\n background: none;\n box-shadow: none;\n\n & > span {\n color: ", ";\n }\n\n svg {\n color: ", " !important;\n }\n }\n\n ", "\n "], ["\n gap: ", "px;\n\n svg {\n color: ", ";\n }\n\n &:hover {\n background: none;\n box-shadow: none;\n\n & > span {\n color: ", ";\n }\n\n svg {\n color: ", " !important;\n }\n }\n\n ", "\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xs, ChevronDefaultColor, hasInvertedStyle
|
|
14554
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryInverse
|
|
14555
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary, hasInvertedStyle
|
|
14556
|
+
? (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.ornamentPrimaryInverse
|
|
14557
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.ornamentSecondaryHover, isNarrow && NarrowPrimaryNavItem(props));
|
|
14586
14558
|
});
|
|
14587
14559
|
var WideStyledLabel = function (props) {
|
|
14588
|
-
var _a, _b;
|
|
14589
|
-
var hasInvertedStyle = props.hasInvertedStyle, active = props.active;
|
|
14590
|
-
var
|
|
14560
|
+
var _a, _b, _c;
|
|
14561
|
+
var hasInvertedStyle = props.hasInvertedStyle, active = props.active, _d = props.itemType, itemType = _d === void 0 ? "text" : _d;
|
|
14562
|
+
var semanticColors = getSemanticColors(props);
|
|
14591
14563
|
var activeBorderColor = hasInvertedStyle
|
|
14592
|
-
? (_a =
|
|
14593
|
-
: (_b =
|
|
14564
|
+
? (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.borderOnFill
|
|
14565
|
+
: (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent) === null || _b === void 0 ? void 0 : _b.border;
|
|
14594
14566
|
var inactiveBorderColor = hasInvertedStyle
|
|
14595
|
-
?
|
|
14596
|
-
:
|
|
14597
|
-
|
|
14567
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.borderOnFill
|
|
14568
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.borderPrimary;
|
|
14569
|
+
var ChevronDefaultColor = hasInvertedStyle
|
|
14570
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondaryInverse
|
|
14571
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.ornamentSecondary;
|
|
14572
|
+
var ChevronOpenColor = hasInvertedStyle
|
|
14573
|
+
? (_c = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _c === void 0 ? void 0 : _c.ornamentPrimaryInverse
|
|
14574
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent.ornamentOpen;
|
|
14575
|
+
return react.css(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n border-bottom: solid 2px transparent;\n border-bottom-color: ", ";\n\n svg {\n color: ", ";\n }\n\n &:hover {\n border-bottom-color: ", ";\n }\n "], ["\n border-bottom: solid 2px transparent;\n border-bottom-color: ", ";\n\n svg {\n color: ", ";\n }\n\n &:hover {\n border-bottom-color: ", ";\n }\n "])), active && itemType === "text"
|
|
14576
|
+
? activeBorderColor
|
|
14577
|
+
: "transparent", active ? ChevronOpenColor : ChevronDefaultColor, active ? activeBorderColor : inactiveBorderColor);
|
|
14598
14578
|
};
|
|
14579
|
+
var StyledTag = styled__default.default(Tag)(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n margin: 0;\n\n .MuiChip-label {\n ", "\n }\n\n &:hover {\n text-decoration: none;\n }\n"], ["\n margin: 0;\n\n .MuiChip-label {\n ", "\n }\n\n &:hover {\n text-decoration: none;\n }\n"])), fontBody("xxxs", "regular"));
|
|
14599
14580
|
var StyledLabel = styled__default.default("span", {
|
|
14600
14581
|
shouldForwardProp: function (prop) { return !doNotForwardProps$8.includes(prop); },
|
|
14601
|
-
})(
|
|
14582
|
+
})(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), fontHeader("m"), function (props) {
|
|
14602
14583
|
var hasInvertedStyle = props.hasInvertedStyle, active = props.active, isNarrow = props.isNarrow;
|
|
14584
|
+
var spaces = getSpaces(props);
|
|
14603
14585
|
var colors = getSemanticColors(props);
|
|
14604
14586
|
var activeColor = hasInvertedStyle
|
|
14605
14587
|
? colors === null || colors === void 0 ? void 0 : colors.base.textPrimaryInverse
|
|
@@ -14607,9 +14589,44 @@ var StyledLabel = styled__default.default("span", {
|
|
|
14607
14589
|
var inactiveColor = hasInvertedStyle
|
|
14608
14590
|
? colors === null || colors === void 0 ? void 0 : colors.base.textSecondaryInverse
|
|
14609
14591
|
: colors === null || colors === void 0 ? void 0 : colors.base.textSecondary;
|
|
14610
|
-
return react.css(
|
|
14592
|
+
return react.css(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n color: ", ";\n\n ", " {\n margin-top: -", "px;\n }\n\n ", "\n "], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n color: ", ";\n\n ", " {\n margin-top: -", "px;\n }\n\n ", "\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xs, active ? activeColor : inactiveColor, StyledTag, spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, !isNarrow && WideStyledLabel(props));
|
|
14593
|
+
});
|
|
14594
|
+
var StyledAccordion$1 = styled__default.default(Accordion, {
|
|
14595
|
+
shouldForwardProp: function (prop) { return !doNotForwardProps$8.includes(prop); },
|
|
14596
|
+
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n width: 100%;\n min-width: unset;\n\n .MuiAccordionSummary-content {\n ", "\n }\n\n .MuiAccordionDetails-root .MuiButtonBase-root .primary-text {\n ", "\n }\n\n ", "\n"], ["\n width: 100%;\n min-width: unset;\n\n .MuiAccordionSummary-content {\n ", "\n }\n\n .MuiAccordionDetails-root .MuiButtonBase-root .primary-text {\n ", "\n }\n\n ", "\n"])), fontBodySemiboldM, fontBodyS$1, function (props) {
|
|
14597
|
+
var _a, _b, _c, _d;
|
|
14598
|
+
var hasInvertedStyle = props.hasInvertedStyle, isNarrow = props.isNarrow;
|
|
14599
|
+
var spaces = getSpaces(props);
|
|
14600
|
+
var semanticColors = getSemanticColors(props);
|
|
14601
|
+
var textDefaultColor = hasInvertedStyle
|
|
14602
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondaryInverse
|
|
14603
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondary;
|
|
14604
|
+
var textOpenColor = hasInvertedStyle
|
|
14605
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryInverse
|
|
14606
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary;
|
|
14607
|
+
var ChevronDefaultColor = hasInvertedStyle
|
|
14608
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondaryInverse
|
|
14609
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.ornamentSecondary;
|
|
14610
|
+
var ChevronOpenColor = hasInvertedStyle
|
|
14611
|
+
? (_a = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _a === void 0 ? void 0 : _a.ornamentPrimaryInverse
|
|
14612
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.accent.ornamentOpen;
|
|
14613
|
+
var isNarrowStyles = function () { return react.css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background: ", ";\n "], ["\n background: ", ";\n "])), hasInvertedStyle
|
|
14614
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.backgroundSecondaryInverse
|
|
14615
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.backgroundSecondary); };
|
|
14616
|
+
return react.css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n .MuiButtonBase-root {\n padding: ", "px ", "px;\n color: ", ";\n\n .MuiAccordionSummary-expandIconWrapper {\n margin-top: ", "px !important;\n }\n\n svg {\n color: ", ";\n }\n\n &[aria-expanded=\"true\"] {\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n }\n\n &:hover {\n padding: ", "px ", "px ", "px\n ", "px;\n width: 100%;\n box-shadow: none;\n background: ", ";\n border-left: ", "px solid\n ", ";\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n\n ", "\n }\n }\n\n .MuiCollapse-root .MuiAccordionDetails-root {\n padding: 0;\n\n .MuiButtonBase-root {\n padding: ", "px 0 ", "px 34px !important;\n\n .primary-text {\n color: ", " !important;\n }\n\n &:hover {\n padding: ", "px 0 ", "px\n calc(34px - ", "px) !important;\n\n .primary-text {\n color: ", " !important;\n }\n }\n }\n }\n "], ["\n .MuiButtonBase-root {\n padding: ", "px ", "px;\n color: ", ";\n\n .MuiAccordionSummary-expandIconWrapper {\n margin-top: ", "px !important;\n }\n\n svg {\n color: ", ";\n }\n\n &[aria-expanded=\"true\"] {\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n }\n\n &:hover {\n padding: ", "px ", "px ", "px\n ", "px;\n width: 100%;\n box-shadow: none;\n background: ", ";\n border-left: ", "px solid\n ", ";\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n\n ", "\n }\n }\n\n .MuiCollapse-root .MuiAccordionDetails-root {\n padding: 0;\n\n .MuiButtonBase-root {\n padding: ", "px 0 ", "px 34px !important;\n\n .primary-text {\n color: ", " !important;\n }\n\n &:hover {\n padding: ", "px 0 ", "px\n calc(34px - ", "px) !important;\n\n .primary-text {\n color: ", " !important;\n }\n }\n }\n }\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.xl, textDefaultColor, spaces === null || spaces === void 0 ? void 0 : spaces.s, ChevronDefaultColor, textOpenColor, ChevronOpenColor, spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.xl, spaces === null || spaces === void 0 ? void 0 : spaces.m, ((_b = spaces === null || spaces === void 0 ? void 0 : spaces.l) !== null && _b !== void 0 ? _b : 0) + ((_c = spaces === null || spaces === void 0 ? void 0 : spaces.xxxs) !== null && _c !== void 0 ? _c : 0), hasInvertedStyle
|
|
14617
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.backgroundSecondaryInverse
|
|
14618
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.backgroundSecondary, spaces === null || spaces === void 0 ? void 0 : spaces.xs, semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.borderPrimary, hasInvertedStyle
|
|
14619
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryInverse
|
|
14620
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary, hasInvertedStyle
|
|
14621
|
+
? (_d = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _d === void 0 ? void 0 : _d.ornamentPrimaryInverse
|
|
14622
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.ornamentSecondaryHover, isNarrow && isNarrowStyles(), spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.m, hasInvertedStyle
|
|
14623
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondaryInverse
|
|
14624
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondary, 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.xs, hasInvertedStyle
|
|
14625
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryInverse
|
|
14626
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary);
|
|
14611
14627
|
});
|
|
14612
|
-
var
|
|
14628
|
+
var StyledSubItem$1 = styled__default.default(MenuItem)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n &.MuiButtonBase-root.MuiMenuItem-root:hover {\n span.primary-text {\n font-weight: 600;\n }\n }\n"], ["\n &.MuiButtonBase-root.MuiMenuItem-root:hover {\n span.primary-text {\n font-weight: 600;\n }\n }\n"])));
|
|
14629
|
+
var templateObject_1$j, templateObject_2$b, templateObject_3$6, templateObject_4$4, templateObject_5$3, templateObject_6$2, templateObject_7$1, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
14613
14630
|
|
|
14614
14631
|
var doNotForwardProps$7 = ["isNarrow"];
|
|
14615
14632
|
var NarrowStyledSection = function () {
|
|
@@ -14627,14 +14644,65 @@ var templateObject_1$i, templateObject_2$a, templateObject_3$5;
|
|
|
14627
14644
|
|
|
14628
14645
|
function NavigationHeaderPrimaryNav(_a) {
|
|
14629
14646
|
var hasInvertedStyle = _a.hasInvertedStyle, isNarrow = _a.isNarrow, items = _a.items, onChange = _a.onChange, value = _a.value;
|
|
14647
|
+
var theme = material.useTheme();
|
|
14648
|
+
var _b = React.useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
14649
|
+
var buttonRef = React.useRef(null);
|
|
14650
|
+
var _c = React.useState("100%"), menuWidth = _c[0], setMenuWidth = _c[1];
|
|
14651
|
+
var open = Boolean(anchorEl);
|
|
14652
|
+
function onClose() {
|
|
14653
|
+
setAnchorEl(null);
|
|
14654
|
+
}
|
|
14655
|
+
React.useEffect(function () {
|
|
14656
|
+
var button = buttonRef.current;
|
|
14657
|
+
if (!button) {
|
|
14658
|
+
return;
|
|
14659
|
+
}
|
|
14660
|
+
setMenuWidth(button.offsetWidth);
|
|
14661
|
+
}, []);
|
|
14630
14662
|
return (jsxRuntime.jsx(StyledSection, { isNarrow: isNarrow, children: items.map(function (item) {
|
|
14663
|
+
var _a, _b;
|
|
14631
14664
|
var key = item.key, label = item.label, tag = item.tag, tagColor = item.tagColor, rest = __rest(item, ["key", "label", "tag", "tagColor"]);
|
|
14632
14665
|
var isActive = key === value;
|
|
14633
|
-
|
|
14634
|
-
|
|
14666
|
+
if (item.itemType === "dropdown" && !isNarrow) {
|
|
14667
|
+
var dropdownItem = item;
|
|
14668
|
+
return (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(PrimaryNavItem, __assign({}, rest, { itemType: item.itemType, ref: buttonRef, sdsStyle: "minimal", active: open, onClick: function (e) {
|
|
14669
|
+
setAnchorEl(e.currentTarget);
|
|
14670
|
+
onChange(key);
|
|
14671
|
+
}, hasInvertedStyle: hasInvertedStyle, isNarrow: isNarrow, children: jsxRuntime.jsxs(StyledLabel, { itemType: item.itemType, active: open, hasInvertedStyle: hasInvertedStyle, isNarrow: isNarrow, children: [label, jsxRuntime.jsx(Icon, { sdsIcon: open ? "ChevronUp" : "ChevronDown", sdsSize: "xs" })] }) })), jsxRuntime.jsx(Menu, { anchorEl: anchorEl, open: open, onClose: onClose, slotProps: {
|
|
14672
|
+
paper: {
|
|
14673
|
+
style: {
|
|
14674
|
+
marginTop: (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.app) === null || _a === void 0 ? void 0 : _a.spacing) === null || _b === void 0 ? void 0 : _b.s,
|
|
14675
|
+
},
|
|
14676
|
+
},
|
|
14677
|
+
}, anchorOrigin: {
|
|
14678
|
+
horizontal: "left",
|
|
14679
|
+
vertical: "bottom",
|
|
14680
|
+
}, transformOrigin: {
|
|
14681
|
+
horizontal: "left",
|
|
14682
|
+
vertical: "top",
|
|
14683
|
+
}, children: dropdownItem.items.map(function (subItem) {
|
|
14684
|
+
var subLabel = subItem.label, onClick = subItem.onClick, subItemRest = __rest(subItem, ["label", "onClick"]);
|
|
14685
|
+
return (jsxRuntime.jsx(MenuItem, __assign({ onClick: function () {
|
|
14686
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
14687
|
+
onClose();
|
|
14688
|
+
}, sx: { minWidth: menuWidth } }, subItemRest, { children: subLabel }), "menu-item-".concat(subLabel)));
|
|
14689
|
+
}) })] }, key));
|
|
14690
|
+
}
|
|
14691
|
+
if (item.itemType === "dropdown" && isNarrow) {
|
|
14692
|
+
var dropdownItem = item;
|
|
14693
|
+
return (jsxRuntime.jsxs(StyledAccordion$1, { id: "".concat(item.label, "-dropdown"), hasInvertedStyle: hasInvertedStyle, isNarrow: isNarrow, children: [jsxRuntime.jsx(AccordionHeader, { children: item.label }), jsxRuntime.jsx(AccordionDetails, { children: dropdownItem.items.map(function (subItem) {
|
|
14694
|
+
var dropdownItemLabel = subItem.label, onClick = subItem.onClick, accordionSubItemRest = __rest(subItem, ["label", "onClick"]);
|
|
14695
|
+
return (jsxRuntime.jsx(StyledSubItem$1, __assign({ onClick: function () {
|
|
14696
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
14697
|
+
onClose();
|
|
14698
|
+
} }, accordionSubItemRest, { children: dropdownItemLabel }), "primary-nav-item-".concat(dropdownItemLabel)));
|
|
14699
|
+
}) })] }, "".concat(item.label, "-dropdown")));
|
|
14700
|
+
}
|
|
14701
|
+
return (jsxRuntime.jsx(PrimaryNavItem, __assign({}, rest, { sdsStyle: "minimal", active: isActive, onClick: function (e) {
|
|
14702
|
+
var _a, _b;
|
|
14635
14703
|
onChange(key);
|
|
14636
|
-
(_a = item.onClick) === null ||
|
|
14637
|
-
}, hasInvertedStyle: hasInvertedStyle, isNarrow: isNarrow, children:
|
|
14704
|
+
(_b = (_a = item).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
|
14705
|
+
}, hasInvertedStyle: hasInvertedStyle, isNarrow: isNarrow, children: jsxRuntime.jsxs(StyledLabel, { active: isActive, hasInvertedStyle: hasInvertedStyle, isNarrow: isNarrow, children: [label, "tag" in item && (jsxRuntime.jsx(StyledTag, { label: tag, color: tagColor, hover: false }))] }) }), key));
|
|
14638
14706
|
}) }));
|
|
14639
14707
|
}
|
|
14640
14708
|
|
|
@@ -14643,13 +14711,13 @@ var NarrowStyledTextItem = function (props) {
|
|
|
14643
14711
|
var hasInvertedStyle = props.hasInvertedStyle;
|
|
14644
14712
|
var semanticColors = getSemanticColors(props);
|
|
14645
14713
|
var spaces = getSpaces(props);
|
|
14646
|
-
return react.css(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n padding-left: ", "px;\n border-radius: 0;\n width: 100%;\n\n &:hover {\n box-shadow: none;\n background: ", ";\n }\n "], ["\n padding-left: ", "px;\n border-radius: 0;\n width: 100%;\n\n &:hover {\n box-shadow: none;\n background: ", ";\n }\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl, hasInvertedStyle
|
|
14714
|
+
return react.css(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n padding-left: ", "px;\n border-radius: 0;\n width: 100%;\n min-height: 44px;\n\n &:hover {\n box-shadow: none;\n background: ", ";\n }\n "], ["\n padding-left: ", "px;\n border-radius: 0;\n width: 100%;\n min-height: 44px;\n\n &:hover {\n box-shadow: none;\n background: ", ";\n }\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.xl, hasInvertedStyle
|
|
14647
14715
|
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.backgroundSecondaryInverse
|
|
14648
14716
|
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.backgroundSecondary);
|
|
14649
14717
|
};
|
|
14650
14718
|
var StyledTextItem = styled__default.default(Button, {
|
|
14651
14719
|
shouldForwardProp: function (prop) { return !ButtonDoNotForwardProps.includes(prop); },
|
|
14652
|
-
})(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n ", "\n\n background: none;\n justify-content: flex-start;\n
|
|
14720
|
+
})(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n ", "\n\n background: none;\n justify-content: flex-start;\n width: fit-content;\n min-width: unset;\n padding: 0;\n\n ", "\n"], ["\n ", "\n\n background: none;\n justify-content: flex-start;\n width: fit-content;\n min-width: unset;\n padding: 0;\n\n ", "\n"])), fontHeaderS, function (props) {
|
|
14653
14721
|
var _a, _b;
|
|
14654
14722
|
var hasInvertedStyle = props.hasInvertedStyle, open = props.open, isNarrow = props.isNarrow;
|
|
14655
14723
|
var semanticColors = getSemanticColors(props);
|
|
@@ -14695,22 +14763,25 @@ var StyledAccordion = styled__default.default(Accordion, {
|
|
|
14695
14763
|
var isNarrowStyles = function () { return react.css(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n background: ", ";\n "], ["\n background: ", ";\n "])), hasInvertedStyle
|
|
14696
14764
|
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.backgroundSecondaryInverse
|
|
14697
14765
|
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.backgroundSecondary); };
|
|
14698
|
-
return react.css(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n .MuiButtonBase-root {\n padding: ", "px ", "px;\n color: ", ";\n\n svg {\n color: ", ";\n }\n\n &[aria-expanded=\"true\"] {\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n }\n\n &:hover {\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n\n ", "\n }\n }\n\n .MuiCollapse-root .MuiAccordionDetails-root {\n padding: 0;\n\n .
|
|
14766
|
+
return react.css(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n .MuiButtonBase-root {\n padding: ", "px ", "px;\n color: ", ";\n\n svg {\n color: ", ";\n }\n\n &[aria-expanded=\"true\"] {\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n }\n\n &:hover {\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n\n ", "\n }\n }\n\n .MuiCollapse-root .MuiAccordionDetails-root {\n padding: 0;\n\n .primary-text {\n color: ", " !important;\n\n &:hover {\n color: ", " !important;\n }\n }\n\n .MuiButtonBase-root {\n padding: ", "px 0 ", "px 34px !important;\n\n &:hover {\n .primary-text {\n color: ", " !important;\n }\n }\n }\n }\n "], ["\n .MuiButtonBase-root {\n padding: ", "px ", "px;\n color: ", ";\n\n svg {\n color: ", ";\n }\n\n &[aria-expanded=\"true\"] {\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n }\n\n &:hover {\n color: ", ";\n\n svg {\n color: ", " !important;\n }\n\n ", "\n }\n }\n\n .MuiCollapse-root .MuiAccordionDetails-root {\n padding: 0;\n\n .primary-text {\n color: ", " !important;\n\n &:hover {\n color: ", " !important;\n }\n }\n\n .MuiButtonBase-root {\n padding: ", "px 0 ", "px 34px !important;\n\n &:hover {\n .primary-text {\n color: ", " !important;\n }\n }\n }\n }\n "])), spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.xl, textDefaultColor, ChevronDefaultColor, textOpenColor, ChevronOpenColor, hasInvertedStyle
|
|
14699
14767
|
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryInverse
|
|
14700
14768
|
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary, hasInvertedStyle
|
|
14701
14769
|
? (_b = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base) === null || _b === void 0 ? void 0 : _b.ornamentPrimaryInverse
|
|
14702
|
-
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.ornamentSecondaryHover, isNarrow && isNarrowStyles(),
|
|
14770
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.ornamentSecondaryHover, isNarrow && isNarrowStyles(), hasInvertedStyle
|
|
14703
14771
|
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondaryInverse
|
|
14704
14772
|
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textSecondary, hasInvertedStyle
|
|
14705
14773
|
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryInverse
|
|
14774
|
+
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary, spaces === null || spaces === void 0 ? void 0 : spaces.m, spaces === null || spaces === void 0 ? void 0 : spaces.m, hasInvertedStyle
|
|
14775
|
+
? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryInverse
|
|
14706
14776
|
: semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary);
|
|
14707
14777
|
});
|
|
14708
14778
|
var StyledSubItem = styled__default.default(MenuItem)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &.MuiButtonBase-root.MuiMenuItem-root:hover {\n span.primary-text {\n font-weight: 600;\n }\n }\n"], ["\n &.MuiButtonBase-root.MuiMenuItem-root:hover {\n span.primary-text {\n font-weight: 600;\n }\n }\n"])));
|
|
14709
14779
|
var templateObject_1$h, templateObject_2$9, templateObject_3$4, templateObject_4$3, templateObject_5$2, templateObject_6$1, templateObject_7;
|
|
14710
14780
|
|
|
14711
|
-
function
|
|
14712
|
-
var
|
|
14781
|
+
function NavigationHeaderSecondaryNav(_a) {
|
|
14782
|
+
var items = _a.items, hasInvertedStyle = _a.hasInvertedStyle, isNarrow = _a.isNarrow;
|
|
14713
14783
|
var _b = React.useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
14784
|
+
var theme = material.useTheme();
|
|
14714
14785
|
var open = Boolean(anchorEl);
|
|
14715
14786
|
function onClose() {
|
|
14716
14787
|
setAnchorEl(null);
|
|
@@ -14724,29 +14795,44 @@ function SecondaryNavItem(_a) {
|
|
|
14724
14795
|
}
|
|
14725
14796
|
setMenuWidth(button.offsetWidth);
|
|
14726
14797
|
}, []);
|
|
14727
|
-
return (jsxRuntime.jsxs(React.Fragment, { children: [item.itemType === "text" && (jsxRuntime.jsx(StyledTextItem, __assign({ sdsStyle: "minimal", onClick: item.onClick, hasInvertedStyle: hasInvertedStyle, open: open, isNarrow: isNarrow }, rest, { children: item.label }))), item.itemType === "dropdown" && !isNarrow && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(StyledTextItem, __assign({ sdsStyle: "minimal", ref: buttonRef, hasInvertedStyle: hasInvertedStyle, open: open, isNarrow: isNarrow }, rest, { onClick: function (event) {
|
|
14728
|
-
var _a;
|
|
14729
|
-
setAnchorEl(event.currentTarget);
|
|
14730
|
-
(_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item, event);
|
|
14731
|
-
}, children: [jsxRuntime.jsx("span", { children: item.label }), jsxRuntime.jsx(Icon, { sdsIcon: open ? "ChevronUp" : "ChevronDown", sdsSize: "xs" })] })), jsxRuntime.jsx(Menu, { anchorEl: anchorEl, open: open, onClose: onClose, children: item.items.map(function (subItem) {
|
|
14732
|
-
var label = subItem.label, onClick = subItem.onClick, subItemRest = __rest(subItem, ["label", "onClick"]);
|
|
14733
|
-
return (jsxRuntime.jsx(MenuItem, __assign({ onClick: function () {
|
|
14734
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
14735
|
-
onClose();
|
|
14736
|
-
} }, subItemRest, { children: label }), label));
|
|
14737
|
-
}) })] })), item.itemType === "dropdown" && isNarrow && (jsxRuntime.jsxs(StyledAccordion, { id: "".concat(item.label, "-dropdown"), hasInvertedStyle: hasInvertedStyle, isNarrow: isNarrow, children: [jsxRuntime.jsx(AccordionHeader, { children: item.label }), jsxRuntime.jsx(AccordionDetails, { children: item.items.map(function (subItem) {
|
|
14738
|
-
var label = subItem.label, onClick = subItem.onClick, accordionSubItemRest = __rest(subItem, ["label", "onClick"]);
|
|
14739
|
-
return (jsxRuntime.jsx(StyledSubItem, __assign({ onClick: function () {
|
|
14740
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
14741
|
-
onClose();
|
|
14742
|
-
}, sx: { width: menuWidth } }, accordionSubItemRest, { children: label }), label));
|
|
14743
|
-
}) })] }))] }, item.label));
|
|
14744
|
-
}
|
|
14745
|
-
function NavigationHeaderSecondaryNav(_a) {
|
|
14746
|
-
var items = _a.items, hasInvertedStyle = _a.hasInvertedStyle, isNarrow = _a.isNarrow;
|
|
14747
14798
|
return (jsxRuntime.jsx(StyledSection, { gap: "l", isNarrow: isNarrow, children: items.map(function (item) {
|
|
14799
|
+
var _a, _b;
|
|
14748
14800
|
var itemType = item.itemType, label = item.label, rest = __rest(item, ["itemType", "label"]);
|
|
14749
|
-
|
|
14801
|
+
if (itemType === "dropdown" && !isNarrow) {
|
|
14802
|
+
return (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsxs(StyledTextItem, __assign({}, rest, { ref: buttonRef, hasInvertedStyle: hasInvertedStyle, open: open, isNarrow: isNarrow, sdsStyle: "minimal", onClick: function (event) {
|
|
14803
|
+
var _a;
|
|
14804
|
+
setAnchorEl(event.currentTarget);
|
|
14805
|
+
(_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item, event);
|
|
14806
|
+
}, children: [jsxRuntime.jsx("span", { children: label }), jsxRuntime.jsx(Icon, { sdsIcon: open ? "ChevronUp" : "ChevronDown", sdsSize: "xs" })] })), jsxRuntime.jsx(Menu, { anchorEl: anchorEl, open: open, onClose: onClose, slotProps: {
|
|
14807
|
+
paper: {
|
|
14808
|
+
style: {
|
|
14809
|
+
marginTop: (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.app) === null || _a === void 0 ? void 0 : _a.spacing) === null || _b === void 0 ? void 0 : _b.s,
|
|
14810
|
+
},
|
|
14811
|
+
},
|
|
14812
|
+
}, anchorOrigin: {
|
|
14813
|
+
horizontal: "left",
|
|
14814
|
+
vertical: "bottom",
|
|
14815
|
+
}, transformOrigin: {
|
|
14816
|
+
horizontal: "left",
|
|
14817
|
+
vertical: "top",
|
|
14818
|
+
}, children: item.items.map(function (subItem) {
|
|
14819
|
+
var menuLabel = subItem.label, onClick = subItem.onClick, subItemRest = __rest(subItem, ["label", "onClick"]);
|
|
14820
|
+
return (jsxRuntime.jsx(MenuItem, __assign({ onClick: function (event) {
|
|
14821
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
14822
|
+
onClose();
|
|
14823
|
+
}, sx: { minWidth: menuWidth } }, subItemRest, { children: menuLabel }), "menu-item-".concat(menuLabel)));
|
|
14824
|
+
}) })] }, "".concat(label, "-dropdown")));
|
|
14825
|
+
}
|
|
14826
|
+
if (itemType === "dropdown" && isNarrow) {
|
|
14827
|
+
return (jsxRuntime.jsxs(StyledAccordion, { id: "".concat(label, "-dropdown"), hasInvertedStyle: hasInvertedStyle, isNarrow: isNarrow, children: [jsxRuntime.jsx(AccordionHeader, { children: label }), jsxRuntime.jsx(AccordionDetails, { children: item.items.map(function (subItem) {
|
|
14828
|
+
var accordionLabel = subItem.label, onClick = subItem.onClick, accordionSubItemRest = __rest(subItem, ["label", "onClick"]);
|
|
14829
|
+
return (jsxRuntime.jsx(StyledSubItem, __assign({ onClick: function (event) {
|
|
14830
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
14831
|
+
onClose();
|
|
14832
|
+
} }, accordionSubItemRest, { children: accordionLabel }), "accordion-item-".concat(accordionLabel)));
|
|
14833
|
+
}) })] }, "".concat(label, "-dropdown")));
|
|
14834
|
+
}
|
|
14835
|
+
return (jsxRuntime.jsx(StyledTextItem, __assign({}, rest, { onClick: item.onClick, hasInvertedStyle: hasInvertedStyle, open: open, isNarrow: isNarrow, sdsStyle: "minimal", children: item.label }), "".concat(label, "-").concat(itemType)));
|
|
14750
14836
|
}) }));
|
|
14751
14837
|
}
|
|
14752
14838
|
|
|
@@ -14841,7 +14927,7 @@ var NavigationHeader = React.forwardRef(function (props, ref) {
|
|
|
14841
14927
|
return (showSearch && (jsxRuntime.jsx(StyledSearch, __assign({ id: "nav-bar-search", label: "Search", placeholder: "Search", sdsStyle: "rounded", hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow }, searchProps))));
|
|
14842
14928
|
};
|
|
14843
14929
|
var renderLogoNode = function () {
|
|
14844
|
-
var logoNode = (jsxRuntime.jsxs(StyledTitleContainer, { hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, children: [logo && jsxRuntime.jsx(StyledLogoWrapper, { children: logo }), jsxRuntime.jsxs(StyledTitleTagWrapper, { children: [title && jsxRuntime.jsx("p", { children: title }), tag && jsxRuntime.jsx(StyledTag, { color: tagColor, label: tag, hover: false })] })] }));
|
|
14930
|
+
var logoNode = (jsxRuntime.jsxs(StyledTitleContainer, { hasInvertedStyle: hasInvertedStyle, isNarrow: dimensions.isNarrow, children: [logo && jsxRuntime.jsx(StyledLogoWrapper, { children: logo }), jsxRuntime.jsxs(StyledTitleTagWrapper, { children: [title && jsxRuntime.jsx("p", { children: title }), tag && jsxRuntime.jsx(StyledTag$1, { color: tagColor, label: tag, hover: false })] })] }));
|
|
14845
14931
|
if (logoLinkComponent || logoUrl) {
|
|
14846
14932
|
logoNode = (jsxRuntime.jsx(StyledLogoLinkWrapper, __assign({ component: logoLinkComponent, href: logoUrl }, logoLinkProps, { isNarrow: dimensions.isNarrow, children: logoNode })));
|
|
14847
14933
|
}
|
|
@@ -15801,6 +15887,10 @@ exports.ComplexFilterPopper = StyledPopper;
|
|
|
15801
15887
|
exports.ContentCard = ContentCard;
|
|
15802
15888
|
exports.ContentCardActions = ContentCardActions;
|
|
15803
15889
|
exports.ContentCardBody = StyledContentCardBody;
|
|
15890
|
+
exports.ContentCardMetadata = StyledMetadataText;
|
|
15891
|
+
exports.ContentCardOverline = StyledOverlineText;
|
|
15892
|
+
exports.ContentCardSubtitle = StyledSubtitleText;
|
|
15893
|
+
exports.ContentCardTitle = StyledTitleText;
|
|
15804
15894
|
exports.Dialog = Dialog;
|
|
15805
15895
|
exports.DialogActions = DialogActions;
|
|
15806
15896
|
exports.DialogContent = index;
|
|
@@ -15856,6 +15946,7 @@ exports.Theme = Theme;
|
|
|
15856
15946
|
exports.Tooltip = Tooltip;
|
|
15857
15947
|
exports.TooltipCondensed = TooltipCondensed;
|
|
15858
15948
|
exports.TooltipTable = TooltipTableContent;
|
|
15949
|
+
exports.createAppThemeBorders = createAppThemeBorders;
|
|
15859
15950
|
exports.defaultAppTheme = defaultAppTheme;
|
|
15860
15951
|
exports.defaultTheme = defaultTheme$4;
|
|
15861
15952
|
exports.focusVisibleA11yStyle = focusVisibleA11yStyle;
|