@czi-sds/components 24.2.0 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/index.cjs.d.ts +147 -59
- package/dist/index.cjs.js +665 -484
- package/dist/index.esm.d.ts +147 -59
- package/dist/index.esm.js +661 -486
- package/package.json +7 -2
package/dist/index.cjs.js
CHANGED
|
@@ -30,8 +30,9 @@ let _emotion_react = require("@emotion/react");
|
|
|
30
30
|
let _mui_material = require("@mui/material");
|
|
31
31
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
32
32
|
let _mui_material_utils = require("@mui/material/utils");
|
|
33
|
-
|
|
33
|
+
require("@mui/icons-material");
|
|
34
34
|
let _emotion_css = require("@emotion/css");
|
|
35
|
+
let _phosphor_icons_react = require("@phosphor-icons/react");
|
|
35
36
|
let _mui_material_Button = require("@mui/material/Button");
|
|
36
37
|
_mui_material_Button = __toESM(_mui_material_Button);
|
|
37
38
|
let _mui_material_styles = require("@mui/material/styles");
|
|
@@ -1772,9 +1773,9 @@ function _objectWithoutProperties(e, t) {
|
|
|
1772
1773
|
}
|
|
1773
1774
|
//#endregion
|
|
1774
1775
|
//#region src/core/Accordion/components/AccordionDetails/index.tsx
|
|
1775
|
-
const _excluded$
|
|
1776
|
+
const _excluded$52 = ["children", "id"];
|
|
1776
1777
|
const AccordionDetails = (props) => {
|
|
1777
|
-
const { children, id } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
1778
|
+
const { children, id } = props, rest = _objectWithoutProperties(props, _excluded$52);
|
|
1778
1779
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledAccordionDetails$1, _objectSpread2(_objectSpread2({ id }, rest), {}, { children }));
|
|
1779
1780
|
};
|
|
1780
1781
|
//#endregion
|
|
@@ -6296,7 +6297,7 @@ const iconMap = {
|
|
|
6296
6297
|
};
|
|
6297
6298
|
//#endregion
|
|
6298
6299
|
//#region src/core/Icon/style.ts
|
|
6299
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
6300
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$26() {
|
|
6300
6301
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
6301
6302
|
}
|
|
6302
6303
|
const doNotForwardProps$46 = [
|
|
@@ -6324,7 +6325,7 @@ const StyledIcon$2 = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { ta
|
|
|
6324
6325
|
} : {
|
|
6325
6326
|
name: "49aokf",
|
|
6326
6327
|
styles: "display:contents",
|
|
6327
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
6328
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$26
|
|
6328
6329
|
});
|
|
6329
6330
|
//#endregion
|
|
6330
6331
|
//#region src/core/Icon/index.tsx
|
|
@@ -6382,13 +6383,13 @@ const Icon = (0, react.forwardRef)(function Icon({ className, color, shade, sdsI
|
|
|
6382
6383
|
});
|
|
6383
6384
|
//#endregion
|
|
6384
6385
|
//#region src/core/Accordion/components/AccordionHeader/index.tsx
|
|
6385
|
-
const _excluded$
|
|
6386
|
+
const _excluded$51 = [
|
|
6386
6387
|
"children",
|
|
6387
6388
|
"subtitle",
|
|
6388
6389
|
"chevronSize"
|
|
6389
6390
|
];
|
|
6390
6391
|
const AccordionHeader = (props) => {
|
|
6391
|
-
const { children, subtitle, chevronSize = "xs" } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
6392
|
+
const { children, subtitle, chevronSize = "xs" } = props, rest = _objectWithoutProperties(props, _excluded$51);
|
|
6392
6393
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledAccordionHeader, _objectSpread2(_objectSpread2({
|
|
6393
6394
|
chevronSize,
|
|
6394
6395
|
expandIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
@@ -6425,7 +6426,7 @@ const leftPosition = (props) => {
|
|
|
6425
6426
|
};
|
|
6426
6427
|
//#endregion
|
|
6427
6428
|
//#region src/core/Accordion/index.tsx
|
|
6428
|
-
const _excluded$
|
|
6429
|
+
const _excluded$50 = [
|
|
6429
6430
|
"id",
|
|
6430
6431
|
"children",
|
|
6431
6432
|
"useDivider",
|
|
@@ -6436,7 +6437,7 @@ const _excluded$48 = [
|
|
|
6436
6437
|
* @see https://mui.com/material-ui/react-accordion/
|
|
6437
6438
|
*/
|
|
6438
6439
|
const Accordion = react.default.forwardRef((props, ref) => {
|
|
6439
|
-
const { id, children, useDivider, togglePosition = "right", defaultExpanded = false } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
6440
|
+
const { id, children, useDivider, togglePosition = "right", defaultExpanded = false } = props, rest = _objectWithoutProperties(props, _excluded$50);
|
|
6440
6441
|
const [expanded, setExpanded] = react.default.useState(defaultExpanded ? id : false);
|
|
6441
6442
|
const handleChange = (panel) => (_event, isExpanded) => {
|
|
6442
6443
|
setExpanded(isExpanded ? panel : false);
|
|
@@ -6698,7 +6699,7 @@ const StyledChildren = /*#__PURE__*/ (0, _emotion_styled_base.default)("span", {
|
|
|
6698
6699
|
}, ";");
|
|
6699
6700
|
//#endregion
|
|
6700
6701
|
//#region src/core/Button/index.tsx
|
|
6701
|
-
const _excluded$
|
|
6702
|
+
const _excluded$49 = [
|
|
6702
6703
|
"sdsStyle",
|
|
6703
6704
|
"sdsType",
|
|
6704
6705
|
"size",
|
|
@@ -6714,7 +6715,7 @@ const MUI_VARIANT_MAP$1 = {
|
|
|
6714
6715
|
* @see https://mui.com/material-ui/react-button/
|
|
6715
6716
|
*/
|
|
6716
6717
|
const Button = react.default.forwardRef((props, ref) => {
|
|
6717
|
-
const { sdsStyle = "solid", sdsType = "primary", size = "large", variant = "contained", children } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
6718
|
+
const { sdsStyle = "solid", sdsType = "primary", size = "large", variant = "contained", children } = props, rest = _objectWithoutProperties(props, _excluded$49);
|
|
6718
6719
|
const iconOnlyChild = isIconOnlyChild(children);
|
|
6719
6720
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledButton$4, _objectSpread2(_objectSpread2({
|
|
6720
6721
|
variant: MUI_VARIANT_MAP$1[sdsStyle] || variant,
|
|
@@ -6729,7 +6730,7 @@ const Button = react.default.forwardRef((props, ref) => {
|
|
|
6729
6730
|
});
|
|
6730
6731
|
//#endregion
|
|
6731
6732
|
//#region src/core/InputSearch/style.ts
|
|
6732
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
6733
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$25() {
|
|
6733
6734
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
6734
6735
|
}
|
|
6735
6736
|
const doNotForwardProps$44 = [
|
|
@@ -6739,7 +6740,7 @@ const doNotForwardProps$44 = [
|
|
|
6739
6740
|
"customTheme",
|
|
6740
6741
|
"hasInvertedStyle"
|
|
6741
6742
|
];
|
|
6742
|
-
const rounded$
|
|
6743
|
+
const rounded$2 = (props) => {
|
|
6743
6744
|
var _semanticColors$base;
|
|
6744
6745
|
const corners = getCorners(props);
|
|
6745
6746
|
const semanticColors = getSemanticColors(props);
|
|
@@ -6782,7 +6783,7 @@ const StyledSearchBase = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_ma
|
|
|
6782
6783
|
const iconSizes = getIconSizes(props);
|
|
6783
6784
|
const semanticColors = getSemanticColors(props);
|
|
6784
6785
|
const corners = getCorners(props);
|
|
6785
|
-
return /*#__PURE__*/ (0, _emotion_react.css)("min-width:120px;display:block;background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base8 = semanticColors.base) === null || _semanticColors$base8 === void 0 ? void 0 : _semanticColors$base8.backgroundPrimary, "!important;border-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;[type=\"search\"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;}& .input-search-clear-icon{cursor:pointer;svg{height:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs = iconSizes.xs) === null || _iconSizes$xs === void 0 ? void 0 : _iconSizes$xs.height, "px;width:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs2 = iconSizes.xs) === null || _iconSizes$xs2 === void 0 ? void 0 : _iconSizes$xs2.width, "px;}}.", _mui_material.outlinedInputClasses.root, "{padding:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;border-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;width:100%;.", _mui_material.outlinedInputClasses.input, "{padding-right:", spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;&::placeholder{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base9 = semanticColors.base) === null || _semanticColors$base9 === void 0 ? void 0 : _semanticColors$base9.textTertiary, ";opacity:1;}}.MuiInputAdornment-positionEnd{position:absolute;right:", spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;}.", _mui_material.outlinedInputClasses.notchedOutline, "{border:1px solid ", semanticColors === null || semanticColors === void 0 || (_semanticColors$base10 = semanticColors.base) === null || _semanticColors$base10 === void 0 ? void 0 : _semanticColors$base10.borderPrimary, ";}&:hover .input-search-clear-icon,&:focus-within .input-search-clear-icon{svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base11 = semanticColors.base) === null || _semanticColors$base11 === void 0 ? void 0 : _semanticColors$base11.ornamentSecondary, "!important;}&:hover{svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base12 = semanticColors.base) === null || _semanticColors$base12 === void 0 ? void 0 : _semanticColors$base12.ornamentSecondaryInteraction, "!important;}}&:active{svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen = semanticColors.accent) === null || _semanticColors$accen === void 0 ? void 0 : _semanticColors$accen.fillPressed, "!important;}}}}.", _mui_material.inputBaseClasses.sizeSmall, ">.", _mui_material.inputBaseClasses.input, "{", fontBodyXs(props), " padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;height:unset;box-sizing:border-box;}.", _mui_material.outlinedInputClasses.root, ":hover{background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base13 = semanticColors.base) === null || _semanticColors$base13 === void 0 ? void 0 : _semanticColors$base13.fillPrimaryInteraction, ";& .", _mui_material.buttonBaseClasses.root, ":last-of-type{svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base14 = semanticColors.base) === null || _semanticColors$base14 === void 0 ? void 0 : _semanticColors$base14.ornamentSecondary, ";}}.", _mui_material.outlinedInputClasses.notchedOutline, "{border:1px solid ", semanticColors === null || semanticColors === void 0 || (_semanticColors$base15 = semanticColors.base) === null || _semanticColors$base15 === void 0 ? void 0 : _semanticColors$base15.borderPrimaryInteraction, ";}}.", _mui_material.outlinedInputClasses.root, ".", _mui_material.outlinedInputClasses.focused, "{outline:none;.", _mui_material.outlinedInputClasses.notchedOutline, "{border:1px solid ", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen2 = semanticColors.accent) === null || _semanticColors$accen2 === void 0 ? void 0 : _semanticColors$accen2.foreground, ";}.", _mui_material.inputAdornmentClasses.root, " .", _mui_material.buttonBaseClasses.root, ":last-of-type{cursor:default;svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base16 = semanticColors.base) === null || _semanticColors$base16 === void 0 ? void 0 : _semanticColors$base16.ornamentSecondaryInteraction, ";}}}&.user-is-tabbing .", _mui_material.outlinedInputClasses.root, ":focus-within{outline:2px solid ", semanticColors === null || semanticColors === void 0 || (_semanticColors$base17 = semanticColors.base) === null || _semanticColors$base17 === void 0 ? void 0 : _semanticColors$base17.borderPrimaryInteraction, ";outline-offset:1px;}", sdsStyle === "rounded" && rounded$
|
|
6786
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("min-width:120px;display:block;background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base8 = semanticColors.base) === null || _semanticColors$base8 === void 0 ? void 0 : _semanticColors$base8.backgroundPrimary, "!important;border-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;[type=\"search\"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;}& .input-search-clear-icon{cursor:pointer;svg{height:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs = iconSizes.xs) === null || _iconSizes$xs === void 0 ? void 0 : _iconSizes$xs.height, "px;width:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs2 = iconSizes.xs) === null || _iconSizes$xs2 === void 0 ? void 0 : _iconSizes$xs2.width, "px;}}.", _mui_material.outlinedInputClasses.root, "{padding:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;border-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;width:100%;.", _mui_material.outlinedInputClasses.input, "{padding-right:", spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;&::placeholder{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base9 = semanticColors.base) === null || _semanticColors$base9 === void 0 ? void 0 : _semanticColors$base9.textTertiary, ";opacity:1;}}.MuiInputAdornment-positionEnd{position:absolute;right:", spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;}.", _mui_material.outlinedInputClasses.notchedOutline, "{border:1px solid ", semanticColors === null || semanticColors === void 0 || (_semanticColors$base10 = semanticColors.base) === null || _semanticColors$base10 === void 0 ? void 0 : _semanticColors$base10.borderPrimary, ";}&:hover .input-search-clear-icon,&:focus-within .input-search-clear-icon{svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base11 = semanticColors.base) === null || _semanticColors$base11 === void 0 ? void 0 : _semanticColors$base11.ornamentSecondary, "!important;}&:hover{svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base12 = semanticColors.base) === null || _semanticColors$base12 === void 0 ? void 0 : _semanticColors$base12.ornamentSecondaryInteraction, "!important;}}&:active{svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen = semanticColors.accent) === null || _semanticColors$accen === void 0 ? void 0 : _semanticColors$accen.fillPressed, "!important;}}}}.", _mui_material.inputBaseClasses.sizeSmall, ">.", _mui_material.inputBaseClasses.input, "{", fontBodyXs(props), " padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;height:unset;box-sizing:border-box;}.", _mui_material.outlinedInputClasses.root, ":hover{background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base13 = semanticColors.base) === null || _semanticColors$base13 === void 0 ? void 0 : _semanticColors$base13.fillPrimaryInteraction, ";& .", _mui_material.buttonBaseClasses.root, ":last-of-type{svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base14 = semanticColors.base) === null || _semanticColors$base14 === void 0 ? void 0 : _semanticColors$base14.ornamentSecondary, ";}}.", _mui_material.outlinedInputClasses.notchedOutline, "{border:1px solid ", semanticColors === null || semanticColors === void 0 || (_semanticColors$base15 = semanticColors.base) === null || _semanticColors$base15 === void 0 ? void 0 : _semanticColors$base15.borderPrimaryInteraction, ";}}.", _mui_material.outlinedInputClasses.root, ".", _mui_material.outlinedInputClasses.focused, "{outline:none;.", _mui_material.outlinedInputClasses.notchedOutline, "{border:1px solid ", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen2 = semanticColors.accent) === null || _semanticColors$accen2 === void 0 ? void 0 : _semanticColors$accen2.foreground, ";}.", _mui_material.inputAdornmentClasses.root, " .", _mui_material.buttonBaseClasses.root, ":last-of-type{cursor:default;svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base16 = semanticColors.base) === null || _semanticColors$base16 === void 0 ? void 0 : _semanticColors$base16.ornamentSecondaryInteraction, ";}}}&.user-is-tabbing .", _mui_material.outlinedInputClasses.root, ":focus-within{outline:2px solid ", semanticColors === null || semanticColors === void 0 || (_semanticColors$base17 = semanticColors.base) === null || _semanticColors$base17 === void 0 ? void 0 : _semanticColors$base17.borderPrimaryInteraction, ";outline-offset:1px;}", sdsStyle === "rounded" && rounded$2(props), " ", intent === "negative" && applyIntentColor$2(props, "negative"), " ", intent === "notice" && applyIntentColor$2(props, "notice"), " ", intent === "positive" && applyIntentColor$2(props, "positive"), " ", disabled && disabledStyled$2(props), ";");
|
|
6786
6787
|
}, ";");
|
|
6787
6788
|
const StyledInputAdornment = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.InputAdornment, { target: "e1h1uy4z0" })(process.env.NODE_ENV === "production" ? {
|
|
6788
6789
|
name: "vtdujo",
|
|
@@ -6790,11 +6791,11 @@ const StyledInputAdornment = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mu
|
|
|
6790
6791
|
} : {
|
|
6791
6792
|
name: "vtdujo",
|
|
6792
6793
|
styles: "position:relative;height:unset;margin:0",
|
|
6793
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
6794
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$25
|
|
6794
6795
|
});
|
|
6795
6796
|
//#endregion
|
|
6796
6797
|
//#region src/core/MenuItem/style.ts
|
|
6797
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
6798
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$24() {
|
|
6798
6799
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
6799
6800
|
}
|
|
6800
6801
|
const StyledMenuItem$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.MenuItem, { target: "eanvvd48" })((props) => {
|
|
@@ -6883,7 +6884,7 @@ const ContentWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("span", {
|
|
|
6883
6884
|
} : {
|
|
6884
6885
|
name: "18ov00z",
|
|
6885
6886
|
styles: "display:flex;justify-content:space-between;align-items:flex-start;width:100%",
|
|
6886
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
6887
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$24
|
|
6887
6888
|
});
|
|
6888
6889
|
const disabledStyles$2 = (props) => {
|
|
6889
6890
|
var _semanticColors$base13;
|
|
@@ -6961,7 +6962,7 @@ const DotIcon = /*#__PURE__*/ (0, _emotion_styled_base.default)("svg", { target:
|
|
|
6961
6962
|
}, ";");
|
|
6962
6963
|
//#endregion
|
|
6963
6964
|
//#region src/core/MenuItem/index.tsx
|
|
6964
|
-
const _excluded$
|
|
6965
|
+
const _excluded$48 = [
|
|
6965
6966
|
"children",
|
|
6966
6967
|
"column",
|
|
6967
6968
|
"disabled",
|
|
@@ -6976,7 +6977,7 @@ const _excluded$46 = [
|
|
|
6976
6977
|
* @see https://mui.com/material-ui/react-menu/
|
|
6977
6978
|
*/
|
|
6978
6979
|
const MenuItem = (0, react.forwardRef)(function MenuItem(props, ref) {
|
|
6979
|
-
const { children, column = null, disabled, isMultiSelect = false, icon: newIcon, sdsIcon, sdsIconProps, sdsStyle = "determinate", sdsType = "default" } = props, originalMenuItemProps = _objectWithoutProperties(props, _excluded$
|
|
6980
|
+
const { children, column = null, disabled, isMultiSelect = false, icon: newIcon, sdsIcon, sdsIconProps, sdsStyle = "determinate", sdsType = "default" } = props, originalMenuItemProps = _objectWithoutProperties(props, _excluded$48);
|
|
6980
6981
|
const { selected = false } = originalMenuItemProps;
|
|
6981
6982
|
const isActionType = sdsType === "action";
|
|
6982
6983
|
const selectionIcon = () => {
|
|
@@ -7094,7 +7095,7 @@ const useDetectUserTabbing = (ref) => {
|
|
|
7094
7095
|
};
|
|
7095
7096
|
//#endregion
|
|
7096
7097
|
//#region src/core/InputSearch/index.tsx
|
|
7097
|
-
const _excluded$
|
|
7098
|
+
const _excluded$47 = [
|
|
7098
7099
|
"label",
|
|
7099
7100
|
"id",
|
|
7100
7101
|
"placeholder",
|
|
@@ -7112,7 +7113,7 @@ const _excluded$45 = [
|
|
|
7112
7113
|
* @see https://mui.com/material-ui/react-text-field/
|
|
7113
7114
|
*/
|
|
7114
7115
|
const InputSearch = (0, react.forwardRef)(function InputSearch(props, ref) {
|
|
7115
|
-
const { label, id, placeholder, sdsStyle = "square", intent = "default", handleSubmit, onChange, disabled, classes = EMPTY_OBJECT, className, value: propValue, slotProps: userSlotProps } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
7116
|
+
const { label, id, placeholder, sdsStyle = "square", intent = "default", handleSubmit, onChange, disabled, classes = EMPTY_OBJECT, className, value: propValue, slotProps: userSlotProps } = props, rest = _objectWithoutProperties(props, _excluded$47);
|
|
7116
7117
|
const { root: rootClassName, label: labelClassName, input: inputClassName, endAdornment: endAdornmentClassName, startAdornment: startAdornmentClassName, clearButton: clearButtonClassName, searchButton: searchButtonClassName } = classes;
|
|
7117
7118
|
/**
|
|
7118
7119
|
* (masoudmanson): In case that the ref is not provided, we will create a new one.
|
|
@@ -7223,7 +7224,7 @@ const InputSearch = (0, react.forwardRef)(function InputSearch(props, ref) {
|
|
|
7223
7224
|
});
|
|
7224
7225
|
//#endregion
|
|
7225
7226
|
//#region src/core/Autocomplete/components/AutocompleteBase/style.ts
|
|
7226
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
7227
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$23() {
|
|
7227
7228
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
7228
7229
|
}
|
|
7229
7230
|
const doNotForwardProps$43 = [
|
|
@@ -7385,11 +7386,11 @@ const StyledMenuItemText = /*#__PURE__*/ (0, _emotion_styled_base.default)("div"
|
|
|
7385
7386
|
} : {
|
|
7386
7387
|
name: "1fttcpj",
|
|
7387
7388
|
styles: "display:flex;flex-direction:column",
|
|
7388
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
7389
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$23
|
|
7389
7390
|
});
|
|
7390
7391
|
//#endregion
|
|
7391
7392
|
//#region src/core/Autocomplete/components/AutocompleteBase/index.tsx
|
|
7392
|
-
const _excluded$
|
|
7393
|
+
const _excluded$46 = [
|
|
7393
7394
|
"component",
|
|
7394
7395
|
"details",
|
|
7395
7396
|
"count",
|
|
@@ -7619,7 +7620,7 @@ const AutocompleteBase = (props) => {
|
|
|
7619
7620
|
}
|
|
7620
7621
|
function defaultRenderOption(optionProps, option, { selected }) {
|
|
7621
7622
|
let MenuItemContent;
|
|
7622
|
-
const { component, details, count, icon, sdsIconProps, disabled: optionDisabled } = option, restOptionProps = _objectWithoutProperties(option, _excluded$
|
|
7623
|
+
const { component, details, count, icon, sdsIconProps, disabled: optionDisabled } = option, restOptionProps = _objectWithoutProperties(option, _excluded$46);
|
|
7623
7624
|
const menuItemLabel = getOptionLabel(option);
|
|
7624
7625
|
if (component) MenuItemContent = component;
|
|
7625
7626
|
else MenuItemContent = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledMenuItemText, { children: [menuItemLabel, details && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledMenuItemDetails, {
|
|
@@ -7658,7 +7659,7 @@ const StyledColumnTitle = /*#__PURE__*/ (0, _emotion_styled_base.default)("p", {
|
|
|
7658
7659
|
}, ";");
|
|
7659
7660
|
//#endregion
|
|
7660
7661
|
//#region src/core/Autocomplete/components/AutocompleteGroup/index.tsx
|
|
7661
|
-
const _excluded$
|
|
7662
|
+
const _excluded$45 = [
|
|
7662
7663
|
"autocompleteProps",
|
|
7663
7664
|
"onValueChange",
|
|
7664
7665
|
"value",
|
|
@@ -7669,7 +7670,7 @@ const _excluded$43 = [
|
|
|
7669
7670
|
"inputValue"
|
|
7670
7671
|
];
|
|
7671
7672
|
const AutocompleteGroup = (props) => {
|
|
7672
|
-
const { autocompleteProps, onValueChange, value: propValue, multiple, label, InputBaseProps, popperOpen, inputValue } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
7673
|
+
const { autocompleteProps, onValueChange, value: propValue, multiple, label, InputBaseProps, popperOpen, inputValue } = props, rest = _objectWithoutProperties(props, _excluded$45);
|
|
7673
7674
|
const { name, width, props: propProps } = autocompleteProps;
|
|
7674
7675
|
const [value, setValue] = (0, react.useState)(getInitialValue(multiple, propValue));
|
|
7675
7676
|
const [pendingValue, setPendingValue] = (0, react.useState)(getInitialValue(multiple, propValue));
|
|
@@ -7713,7 +7714,7 @@ const AutocompleteGroup = (props) => {
|
|
|
7713
7714
|
};
|
|
7714
7715
|
//#endregion
|
|
7715
7716
|
//#region src/core/Autocomplete/components/AutocompleteMultiColumn/style.ts
|
|
7716
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
7717
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$22() {
|
|
7717
7718
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
7718
7719
|
}
|
|
7719
7720
|
const doNotForwardProps$42 = [
|
|
@@ -7780,7 +7781,7 @@ const StyledAutocompleteGroupWrapper = /*#__PURE__*/ (0, _emotion_styled_base.de
|
|
|
7780
7781
|
} : {
|
|
7781
7782
|
name: "zjik7",
|
|
7782
7783
|
styles: "display:flex",
|
|
7783
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
7784
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$22
|
|
7784
7785
|
});
|
|
7785
7786
|
const StyledAutocompleteInput = /*#__PURE__*/ (0, _emotion_styled_base.default)(InputSearch, {
|
|
7786
7787
|
shouldForwardProp: (prop) => !doNotForwardProps$42.includes(prop),
|
|
@@ -7828,7 +7829,7 @@ const VerticalDivider = ({ icon }) => {
|
|
|
7828
7829
|
};
|
|
7829
7830
|
//#endregion
|
|
7830
7831
|
//#region src/core/Autocomplete/components/AutocompleteMultiColumn/index.tsx
|
|
7831
|
-
const _excluded$
|
|
7832
|
+
const _excluded$44 = [
|
|
7832
7833
|
"InputBaseProps",
|
|
7833
7834
|
"open",
|
|
7834
7835
|
"PopperPlacement",
|
|
@@ -7848,7 +7849,7 @@ const _excluded$42 = [
|
|
|
7848
7849
|
];
|
|
7849
7850
|
const AutocompleteMultiColumn = (props) => {
|
|
7850
7851
|
var _theme$app;
|
|
7851
|
-
const { InputBaseProps, open, PopperPlacement = "bottom-start", PopperBaseProps, search = false, label = "Search", onClickAway, onClick, ClickAwayListenerProps, options, onInputChange, onBlur, multiple, value: parentInitialValue, onChange, PopperComponent = StyledPopper } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
7852
|
+
const { InputBaseProps, open, PopperPlacement = "bottom-start", PopperBaseProps, search = false, label = "Search", onClickAway, onClick, ClickAwayListenerProps, options, onInputChange, onBlur, multiple, value: parentInitialValue, onChange, PopperComponent = StyledPopper } = props, rest = _objectWithoutProperties(props, _excluded$44);
|
|
7852
7853
|
const theme = (0, _mui_material.useTheme)();
|
|
7853
7854
|
const isOpenControlled = open !== void 0;
|
|
7854
7855
|
const [inputValue, setInputValue] = (0, react.useState)("");
|
|
@@ -8036,13 +8037,13 @@ const AutocompleteMultiColumn = (props) => {
|
|
|
8036
8037
|
};
|
|
8037
8038
|
//#endregion
|
|
8038
8039
|
//#region src/core/Autocomplete/index.tsx
|
|
8039
|
-
const _excluded$
|
|
8040
|
+
const _excluded$43 = [
|
|
8040
8041
|
"options",
|
|
8041
8042
|
"value",
|
|
8042
8043
|
"onChange"
|
|
8043
8044
|
];
|
|
8044
8045
|
const Autocomplete = (props) => {
|
|
8045
|
-
const { options, value, onChange } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
8046
|
+
const { options, value, onChange } = props, rest = _objectWithoutProperties(props, _excluded$43);
|
|
8046
8047
|
if (options && !!options[0] && "options" in options[0]) if (options.length > 1) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AutocompleteMultiColumn, _objectSpread2(_objectSpread2({
|
|
8047
8048
|
options,
|
|
8048
8049
|
value,
|
|
@@ -8061,7 +8062,7 @@ const Autocomplete = (props) => {
|
|
|
8061
8062
|
};
|
|
8062
8063
|
//#endregion
|
|
8063
8064
|
//#region src/core/Banner/style.ts
|
|
8064
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8065
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$21() {
|
|
8065
8066
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
8066
8067
|
}
|
|
8067
8068
|
const Centered = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { target: "e15g05664" })(process.env.NODE_ENV === "production" ? {
|
|
@@ -8070,7 +8071,7 @@ const Centered = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { target
|
|
|
8070
8071
|
} : {
|
|
8071
8072
|
name: "qke47e",
|
|
8072
8073
|
styles: "flex:1 1 auto;display:flex;justify-content:center;align-items:center",
|
|
8073
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
8074
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$21
|
|
8074
8075
|
});
|
|
8075
8076
|
const doNotForwardPropsIconWrapper = ["bannerType", "intent"];
|
|
8076
8077
|
const IconWrapper$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
@@ -8165,7 +8166,7 @@ const StyledBanner = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
|
8165
8166
|
}, ";");
|
|
8166
8167
|
//#endregion
|
|
8167
8168
|
//#region src/core/Banner/index.tsx
|
|
8168
|
-
const _excluded$
|
|
8169
|
+
const _excluded$42 = [
|
|
8169
8170
|
"children",
|
|
8170
8171
|
"dismissed",
|
|
8171
8172
|
"dismissible",
|
|
@@ -8176,7 +8177,7 @@ const _excluded$40 = [
|
|
|
8176
8177
|
"intent"
|
|
8177
8178
|
];
|
|
8178
8179
|
const Banner = (0, react.forwardRef)(function Banner(props, ref) {
|
|
8179
|
-
const { children, dismissed, dismissible = true, onClose, sdsType, icon, sdsIconProps, intent = "info" } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
8180
|
+
const { children, dismissed, dismissible = true, onClose, sdsType, icon, sdsIconProps, intent = "info" } = props, rest = _objectWithoutProperties(props, _excluded$42);
|
|
8180
8181
|
const [wasDismissed, setWasDismissed] = (0, react.useState)(false);
|
|
8181
8182
|
if (dismissed || wasDismissed) return null;
|
|
8182
8183
|
const handleClose = (e) => {
|
|
@@ -8259,10 +8260,6 @@ const SDS_WARNINGS = {
|
|
|
8259
8260
|
hasWarned: false,
|
|
8260
8261
|
message: "Warning: ButtonGroup vertical orientation is only available when all buttons are icon-only. Falling back to horizontal orientation."
|
|
8261
8262
|
},
|
|
8262
|
-
["chipDeprecated"]: {
|
|
8263
|
-
hasWarned: false,
|
|
8264
|
-
message: "Warning: <Chip /> will be deprecated and replaced with <Tag />"
|
|
8265
|
-
},
|
|
8266
8263
|
["menuSelectDeprecated"]: {
|
|
8267
8264
|
hasWarned: false,
|
|
8268
8265
|
message: "Warning: MenuSelect will be deprecated and replaced with <DropdownMenu />"
|
|
@@ -8303,7 +8300,7 @@ const showWarningIfFirstOccurence = (warningType) => {
|
|
|
8303
8300
|
};
|
|
8304
8301
|
//#endregion
|
|
8305
8302
|
//#region src/core/ButtonDropdown/index.tsx
|
|
8306
|
-
const _excluded$
|
|
8303
|
+
const _excluded$41 = [
|
|
8307
8304
|
"size",
|
|
8308
8305
|
"sdsType",
|
|
8309
8306
|
"children"
|
|
@@ -8312,7 +8309,7 @@ const _excluded$39 = [
|
|
|
8312
8309
|
* @see https://mui.com/material-ui/react-button/
|
|
8313
8310
|
*/
|
|
8314
8311
|
const ButtonDropdown = react.default.forwardRef((props, ref) => {
|
|
8315
|
-
const { size = "large", sdsType, children } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
8312
|
+
const { size = "large", sdsType, children } = props, rest = _objectWithoutProperties(props, _excluded$41);
|
|
8316
8313
|
if (sdsType === "destructive") {
|
|
8317
8314
|
showWarningIfFirstOccurence("buttonDropdownV2Destructive");
|
|
8318
8315
|
return null;
|
|
@@ -8533,13 +8530,13 @@ const StyledButtonToggle = /*#__PURE__*/ (0, _emotion_styled_base.default)(Butto
|
|
|
8533
8530
|
}, ";");
|
|
8534
8531
|
//#endregion
|
|
8535
8532
|
//#region src/core/ButtonToggle/index.tsx
|
|
8536
|
-
const _excluded$
|
|
8533
|
+
const _excluded$40 = ["startIcon"];
|
|
8537
8534
|
/**
|
|
8538
8535
|
* @see https://mui.com/material-ui/react-button/
|
|
8539
8536
|
*/
|
|
8540
8537
|
const ButtonToggle = react.default.forwardRef((props, ref) => {
|
|
8541
8538
|
const { startIcon } = props;
|
|
8542
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledButtonToggle, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(props, _excluded$
|
|
8539
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledButtonToggle, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(props, _excluded$40)), {}, {
|
|
8543
8540
|
startIcon,
|
|
8544
8541
|
endIcon: null,
|
|
8545
8542
|
backgroundOnHover: true,
|
|
@@ -8548,7 +8545,7 @@ const ButtonToggle = react.default.forwardRef((props, ref) => {
|
|
|
8548
8545
|
});
|
|
8549
8546
|
//#endregion
|
|
8550
8547
|
//#region src/core/ButtonGroup/index.tsx
|
|
8551
|
-
const _excluded$
|
|
8548
|
+
const _excluded$39 = [
|
|
8552
8549
|
"sdsType",
|
|
8553
8550
|
"size",
|
|
8554
8551
|
"orientation",
|
|
@@ -8603,7 +8600,7 @@ const cloneChildrenWithSize = (children, size) => {
|
|
|
8603
8600
|
* Note: Vertical orientation is only available when all buttons are icon-only.
|
|
8604
8601
|
*/
|
|
8605
8602
|
const ButtonGroup = react.default.forwardRef((props, ref) => {
|
|
8606
|
-
const { sdsType = "primary", size = "large", orientation = "horizontal", children } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
8603
|
+
const { sdsType = "primary", size = "large", orientation = "horizontal", children } = props, rest = _objectWithoutProperties(props, _excluded$39);
|
|
8607
8604
|
const allIconOnly = areAllButtonsIconOnly(children);
|
|
8608
8605
|
const effectiveOrientation = allIconOnly ? orientation : "horizontal";
|
|
8609
8606
|
if (orientation === "vertical" && !allIconOnly) showWarningIfFirstOccurence("ButtonGroupVerticalOrientation");
|
|
@@ -8638,13 +8635,13 @@ const tertiary = (props) => {
|
|
|
8638
8635
|
const semanticColors = getSemanticColors(props);
|
|
8639
8636
|
return /*#__PURE__*/ (0, _emotion_react.css)("color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base9 = semanticColors.base) === null || _semanticColors$base9 === void 0 ? void 0 : _semanticColors$base9.ornamentSecondary, ";svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base10 = semanticColors.base) === null || _semanticColors$base10 === void 0 ? void 0 : _semanticColors$base10.ornamentSecondary, ";}&:hover{background:none;color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base11 = semanticColors.base) === null || _semanticColors$base11 === void 0 ? void 0 : _semanticColors$base11.ornamentSecondaryInteraction, ";svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base12 = semanticColors.base) === null || _semanticColors$base12 === void 0 ? void 0 : _semanticColors$base12.ornamentSecondaryInteraction, ";}}&:active{background:none;color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base13 = semanticColors.base) === null || _semanticColors$base13 === void 0 ? void 0 : _semanticColors$base13.ornamentSecondaryInteraction, ";svg{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base14 = semanticColors.base) === null || _semanticColors$base14 === void 0 ? void 0 : _semanticColors$base14.ornamentSecondaryInteraction, ";}}");
|
|
8640
8637
|
};
|
|
8641
|
-
const small
|
|
8638
|
+
const small = (props) => {
|
|
8642
8639
|
const { sdsType } = props;
|
|
8643
8640
|
const iconSizes = getIconSizes(props);
|
|
8644
8641
|
const spaces = getSpaces(props);
|
|
8645
8642
|
return /*#__PURE__*/ (0, _emotion_react.css)(".MuiSvgIcon-root{height:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;width:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.width, "px;", sdsType !== "tertiary" ? `margin: ${spaces === null || spaces === void 0 ? void 0 : spaces.xs}px;` : "", ";}");
|
|
8646
8643
|
};
|
|
8647
|
-
const medium
|
|
8644
|
+
const medium = (props) => {
|
|
8648
8645
|
const { sdsType } = props;
|
|
8649
8646
|
const iconSizes = getIconSizes(props);
|
|
8650
8647
|
const spaces = getSpaces(props);
|
|
@@ -8670,7 +8667,7 @@ const StyledButtonIcon = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_ma
|
|
|
8670
8667
|
target: "e164i6480"
|
|
8671
8668
|
})("padding:0;", focusVisibleA11yStyle, " ", (props) => {
|
|
8672
8669
|
const { disabled, sdsSize = "medium", sdsType = "primary" } = props;
|
|
8673
|
-
return /*#__PURE__*/ (0, _emotion_react.css)(sdsType === "primary" && primary$1(props), " ", sdsType === "secondary" && secondary$1(props), " ", sdsType === "tertiary" && tertiary(props), " ", disabled && isDisabled$1(props), " ", sdsSize === "small" && small
|
|
8670
|
+
return /*#__PURE__*/ (0, _emotion_react.css)(sdsType === "primary" && primary$1(props), " ", sdsType === "secondary" && secondary$1(props), " ", sdsType === "tertiary" && tertiary(props), " ", disabled && isDisabled$1(props), " ", sdsSize === "small" && small(props), " ", sdsSize === "medium" && medium(props), " ", sdsSize === "large" && large(props), ";");
|
|
8674
8671
|
}, ";");
|
|
8675
8672
|
//#endregion
|
|
8676
8673
|
//#region src/core/ButtonIcon/index.tsx
|
|
@@ -8912,7 +8909,7 @@ const StyledButtonToggleLegacy = /*#__PURE__*/ (0, _emotion_styled_base.default)
|
|
|
8912
8909
|
}, ";");
|
|
8913
8910
|
//#endregion
|
|
8914
8911
|
//#region src/core/ButtonToggleLegacy/index.tsx
|
|
8915
|
-
const _excluded$
|
|
8912
|
+
const _excluded$38 = [
|
|
8916
8913
|
"icon",
|
|
8917
8914
|
"sdsSize",
|
|
8918
8915
|
"sdsStage",
|
|
@@ -8923,7 +8920,7 @@ const _excluded$36 = [
|
|
|
8923
8920
|
* @deprecated Use ButtonToggle instead. ButtonToggleLegacy will be removed in a future release.
|
|
8924
8921
|
*/
|
|
8925
8922
|
const ButtonToggleLegacy = react.default.forwardRef((props, ref) => {
|
|
8926
|
-
const { icon, sdsSize = "medium", sdsStage = "off", sdsType = "primary" } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
8923
|
+
const { icon, sdsSize = "medium", sdsStage = "off", sdsType = "primary" } = props, rest = _objectWithoutProperties(props, _excluded$38);
|
|
8927
8924
|
if (icon !== void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledButtonToggleLegacy, _objectSpread2({
|
|
8928
8925
|
icon,
|
|
8929
8926
|
sdsType,
|
|
@@ -9046,7 +9043,7 @@ const CalloutExtraContent = ({ children, hideTitle, hideBody }) => {
|
|
|
9046
9043
|
};
|
|
9047
9044
|
//#endregion
|
|
9048
9045
|
//#region src/core/Callout/index.tsx
|
|
9049
|
-
const _excluded$
|
|
9046
|
+
const _excluded$37 = [
|
|
9050
9047
|
"autoDismiss",
|
|
9051
9048
|
"dismissed",
|
|
9052
9049
|
"icon",
|
|
@@ -9067,7 +9064,7 @@ const SDS_STAGE_CLOSED = "closed";
|
|
|
9067
9064
|
* @see https://mui.com/material-ui/react-alert/
|
|
9068
9065
|
*/
|
|
9069
9066
|
const Callout = (props) => {
|
|
9070
|
-
const { autoDismiss, dismissed, icon, sdsIconProps, intent, sdsStage = SDS_STAGE_OPEN, title, body, hideTitle = false, hideBody = false, sdsStyle = "persistent", children, extraContent } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
9067
|
+
const { autoDismiss, dismissed, icon, sdsIconProps, intent, sdsStage = SDS_STAGE_OPEN, title, body, hideTitle = false, hideBody = false, sdsStyle = "persistent", children, extraContent } = props, rest = _objectWithoutProperties(props, _excluded$37);
|
|
9071
9068
|
const [hide, setHide] = (0, react.useState)(dismissed);
|
|
9072
9069
|
const [stage, setStage] = (0, react.useState)(sdsStage);
|
|
9073
9070
|
(0, react.useEffect)(() => {
|
|
@@ -9217,7 +9214,7 @@ const StyledComponentSlotWrapper = /*#__PURE__*/ (0, _emotion_styled_base.defaul
|
|
|
9217
9214
|
}, ";");
|
|
9218
9215
|
//#endregion
|
|
9219
9216
|
//#region src/core/Tooltip/index.tsx
|
|
9220
|
-
const _excluded$
|
|
9217
|
+
const _excluded$36 = [
|
|
9221
9218
|
"arrowOffset",
|
|
9222
9219
|
"classes",
|
|
9223
9220
|
"hasInvertedStyle",
|
|
@@ -9238,7 +9235,7 @@ const _excluded$34 = [
|
|
|
9238
9235
|
* https://mui.com/components/tooltips/#disabled-elements
|
|
9239
9236
|
*/
|
|
9240
9237
|
const Tooltip = (0, react.forwardRef)(function Tooltip(props, ref) {
|
|
9241
|
-
const { arrowOffset, classes, hasInvertedStyle, inverted, sdsStyle, subtitle, title, width = "default", PopperComponent = StyledPopper$2, textAlign, componentSlot } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
9238
|
+
const { arrowOffset, classes, hasInvertedStyle, inverted, sdsStyle, subtitle, title, width = "default", PopperComponent = StyledPopper$2, textAlign, componentSlot } = props, rest = _objectWithoutProperties(props, _excluded$36);
|
|
9242
9239
|
const { children } = rest;
|
|
9243
9240
|
if (hasInvertedStyle !== void 0 || inverted !== void 0 || sdsStyle !== void 0) showWarningIfFirstOccurence("tooltipInvertStyle");
|
|
9244
9241
|
const extraProps = {
|
|
@@ -9288,7 +9285,7 @@ function mergeClass$1({ props, className, key }) {
|
|
|
9288
9285
|
const RowHoverContext = (0, react.createContext)({ isRowHovered: false });
|
|
9289
9286
|
//#endregion
|
|
9290
9287
|
//#region src/core/CellBasic/style.ts
|
|
9291
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
9288
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$20() {
|
|
9292
9289
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
9293
9290
|
}
|
|
9294
9291
|
const doNotForwardProps$33 = [
|
|
@@ -9345,7 +9342,7 @@ const StyledCellContent = /*#__PURE__*/ (0, _emotion_styled_base.default)("div",
|
|
|
9345
9342
|
} : {
|
|
9346
9343
|
name: "zjik7",
|
|
9347
9344
|
styles: "display:flex",
|
|
9348
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
9345
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$20
|
|
9349
9346
|
});
|
|
9350
9347
|
const StyledCellContentWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { target: "ekxclbn9" })(process.env.NODE_ENV === "production" ? {
|
|
9351
9348
|
name: "1d3w5wq",
|
|
@@ -9353,7 +9350,7 @@ const StyledCellContentWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)
|
|
|
9353
9350
|
} : {
|
|
9354
9351
|
name: "1d3w5wq",
|
|
9355
9352
|
styles: "width:100%",
|
|
9356
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
9353
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$20
|
|
9357
9354
|
});
|
|
9358
9355
|
const StyledCellIconWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
9359
9356
|
shouldForwardProp: (prop) => !doNotForwardProps$33.includes(prop),
|
|
@@ -9542,9 +9539,9 @@ const StyledCellComponentData = /*#__PURE__*/ (0, _emotion_styled_base.default)(
|
|
|
9542
9539
|
}, ";");
|
|
9543
9540
|
//#endregion
|
|
9544
9541
|
//#region src/core/CellComponent/index.tsx
|
|
9545
|
-
const _excluded$
|
|
9542
|
+
const _excluded$35 = ["children", "as"];
|
|
9546
9543
|
const CellComponent = (0, react.forwardRef)((props, ref) => {
|
|
9547
|
-
const { children, as = "td" } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
9544
|
+
const { children, as = "td" } = props, rest = _objectWithoutProperties(props, _excluded$35);
|
|
9548
9545
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledCellComponentData, _objectSpread2(_objectSpread2({
|
|
9549
9546
|
ref,
|
|
9550
9547
|
className: "cell-component",
|
|
@@ -9648,7 +9645,7 @@ const StyledCellHeaderContainer = /*#__PURE__*/ (0, _emotion_styled_base.default
|
|
|
9648
9645
|
}, ";");
|
|
9649
9646
|
//#endregion
|
|
9650
9647
|
//#region src/core/CellHeader/index.tsx
|
|
9651
|
-
const _excluded$
|
|
9648
|
+
const _excluded$34 = [
|
|
9652
9649
|
"as",
|
|
9653
9650
|
"children",
|
|
9654
9651
|
"shouldShowTooltipOnHover",
|
|
@@ -9674,7 +9671,7 @@ const CellHeaderContent = (props) => {
|
|
|
9674
9671
|
});
|
|
9675
9672
|
};
|
|
9676
9673
|
const CellHeader = (0, react.forwardRef)((props, ref) => {
|
|
9677
|
-
const { as = "th", children, shouldShowTooltipOnHover = false, tooltipProps, tooltipText = "", tooltipSubtitle, hover = false } = props, rest = _objectWithoutProperties(props, _excluded$
|
|
9674
|
+
const { as = "th", children, shouldShowTooltipOnHover = false, tooltipProps, tooltipText = "", tooltipSubtitle, hover = false } = props, rest = _objectWithoutProperties(props, _excluded$34);
|
|
9678
9675
|
if (shouldShowTooltipOnHover && hover) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, _objectSpread2(_objectSpread2({
|
|
9679
9676
|
arrow: true,
|
|
9680
9677
|
placement: "top-start",
|
|
@@ -9695,106 +9692,241 @@ const CellHeader = (0, react.forwardRef)((props, ref) => {
|
|
|
9695
9692
|
}, rest), {}, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CellHeaderContent, _objectSpread2(_objectSpread2({ hover }, props), {}, { children })) }));
|
|
9696
9693
|
});
|
|
9697
9694
|
//#endregion
|
|
9698
|
-
//#region src/core/
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9695
|
+
//#region src/core/Tag/style.ts
|
|
9696
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$19() {
|
|
9697
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
9698
|
+
}
|
|
9699
|
+
const TAG_LABEL_TEXT_CLASS = "SdsTag-labelText";
|
|
9700
|
+
const TAG_LINK_ICON_CLASS = "SdsTag-linkIcon";
|
|
9701
|
+
const TAG_HEIGHTS = {
|
|
9702
|
+
medium: 24,
|
|
9703
|
+
small: 20
|
|
9702
9704
|
};
|
|
9703
|
-
const
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
return /*#__PURE__*/ (0, _emotion_react.css)("margin:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;height:24px;background-color:", colors === null || colors === void 0 ? void 0 : colors.blue[400], ";&:hover{background-color:", colors === null || colors === void 0 ? void 0 : colors.blue[500], ";}&:active{background-color:", colors === null || colors === void 0 ? void 0 : colors.blue[600], ";}.MuiChip-label{", fontHeaderXs(props), " color:white;padding-left:", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;}.MuiChip-deleteIcon{color:white;padding-right:", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;margin:0 0 0 -", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;height:", spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;width:", spaces === null || spaces === void 0 ? void 0 : spaces.l, "px;&:hover,&:focus-visible{color:white;}}");
|
|
9705
|
+
const OUTLINE_BORDER_OPACITY = {
|
|
9706
|
+
dark: .56,
|
|
9707
|
+
light: .28
|
|
9707
9708
|
};
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9709
|
+
/**
|
|
9710
|
+
* MUI's color helpers throw on anything they cannot parse, such as a named
|
|
9711
|
+
* color or a CSS variable, so a custom color they cannot read is used as given.
|
|
9712
|
+
*/
|
|
9713
|
+
function safely(transform, color, amount) {
|
|
9714
|
+
try {
|
|
9715
|
+
return transform(color, amount);
|
|
9716
|
+
} catch (_unused) {
|
|
9717
|
+
return color;
|
|
9718
|
+
}
|
|
9719
|
+
}
|
|
9720
|
+
function disabledColors(props, sdsStyle) {
|
|
9721
|
+
var _getSemanticColors;
|
|
9722
|
+
const base = (_getSemanticColors = getSemanticColors(props)) === null || _getSemanticColors === void 0 ? void 0 : _getSemanticColors.base;
|
|
9723
|
+
return {
|
|
9724
|
+
background: sdsStyle === "solid" ? base === null || base === void 0 ? void 0 : base.fillDisabled : "transparent",
|
|
9725
|
+
border: sdsStyle === "outline" ? base === null || base === void 0 ? void 0 : base.borderPrimaryDisabled : void 0,
|
|
9726
|
+
icon: base === null || base === void 0 ? void 0 : base.ornamentDisabled,
|
|
9727
|
+
label: base === null || base === void 0 ? void 0 : base.textDisabled
|
|
9728
|
+
};
|
|
9729
|
+
}
|
|
9730
|
+
function intentColors(props, intent, sdsStyle) {
|
|
9731
|
+
var _semanticColors$accen, _semanticColors$inten, _getColors;
|
|
9732
|
+
const semanticColors = getSemanticColors(props);
|
|
9733
|
+
const base = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base;
|
|
9734
|
+
const palette = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors[intent];
|
|
9735
|
+
const disabled = disabledColors(props, sdsStyle);
|
|
9736
|
+
if (sdsStyle === "solid") {
|
|
9737
|
+
const onInteraction = {
|
|
9738
|
+
icon: base === null || base === void 0 ? void 0 : base.ornamentPrimaryInverse,
|
|
9739
|
+
label: base === null || base === void 0 ? void 0 : base.textPrimaryInverse
|
|
9740
|
+
};
|
|
9741
|
+
return {
|
|
9742
|
+
disabled,
|
|
9743
|
+
hover: _objectSpread2({ background: palette === null || palette === void 0 ? void 0 : palette.fillInteraction }, onInteraction),
|
|
9744
|
+
pressed: _objectSpread2({ background: palette === null || palette === void 0 ? void 0 : palette.fillPressed }, onInteraction),
|
|
9745
|
+
rest: {
|
|
9746
|
+
background: palette === null || palette === void 0 ? void 0 : palette.fillPrimary,
|
|
9747
|
+
icon: base === null || base === void 0 ? void 0 : base.ornamentOnFill,
|
|
9748
|
+
label: base === null || base === void 0 ? void 0 : base.textOnFill
|
|
9749
|
+
}
|
|
9750
|
+
};
|
|
9751
|
+
}
|
|
9752
|
+
const background = intent === "accent" ? semanticColors === null || semanticColors === void 0 || (_semanticColors$accen = semanticColors.accent) === null || _semanticColors$accen === void 0 ? void 0 : _semanticColors$accen.surfaceSecondary : semanticColors === null || semanticColors === void 0 || (_semanticColors$inten = semanticColors[intent]) === null || _semanticColors$inten === void 0 ? void 0 : _semanticColors$inten.fillSecondary;
|
|
9753
|
+
const borderBase = intent === "accent" ? (_getColors = getColors(props)) === null || _getColors === void 0 ? void 0 : _getColors.indigo[600] : palette === null || palette === void 0 ? void 0 : palette.foreground;
|
|
9754
|
+
const opacity = OUTLINE_BORDER_OPACITY[getMode(props)];
|
|
9755
|
+
const stateOf = (color) => ({
|
|
9756
|
+
background,
|
|
9757
|
+
border: color,
|
|
9758
|
+
icon: color,
|
|
9759
|
+
label: color
|
|
9760
|
+
});
|
|
9761
|
+
return {
|
|
9762
|
+
disabled,
|
|
9763
|
+
hover: stateOf(palette === null || palette === void 0 ? void 0 : palette.foregroundInteraction),
|
|
9764
|
+
pressed: stateOf(palette === null || palette === void 0 ? void 0 : palette.foregroundPressed),
|
|
9765
|
+
rest: _objectSpread2(_objectSpread2({}, stateOf(palette === null || palette === void 0 ? void 0 : palette.foreground)), {}, { border: borderBase ? safely(_mui_material.alpha, borderBase, opacity) : void 0 })
|
|
9766
|
+
};
|
|
9767
|
+
}
|
|
9768
|
+
function customColors(props, [label, background, icon = label], sdsStyle) {
|
|
9769
|
+
const disabled = disabledColors(props, sdsStyle);
|
|
9770
|
+
if (sdsStyle === "solid") {
|
|
9771
|
+
const rest = {
|
|
9772
|
+
background,
|
|
9773
|
+
icon,
|
|
9774
|
+
label
|
|
9775
|
+
};
|
|
9776
|
+
return {
|
|
9777
|
+
disabled,
|
|
9778
|
+
hover: _objectSpread2(_objectSpread2({}, rest), {}, { background: safely(_mui_material.emphasize, background, .15) }),
|
|
9779
|
+
pressed: _objectSpread2(_objectSpread2({}, rest), {}, { background: safely(_mui_material.emphasize, background, .3) }),
|
|
9780
|
+
rest
|
|
9781
|
+
};
|
|
9782
|
+
}
|
|
9783
|
+
const opacity = OUTLINE_BORDER_OPACITY[getMode(props)];
|
|
9784
|
+
const rest = {
|
|
9785
|
+
background,
|
|
9786
|
+
border: safely(_mui_material.alpha, label, opacity),
|
|
9787
|
+
icon,
|
|
9788
|
+
label
|
|
9789
|
+
};
|
|
9790
|
+
return {
|
|
9791
|
+
disabled,
|
|
9792
|
+
hover: _objectSpread2(_objectSpread2({}, rest), {}, { border: label }),
|
|
9793
|
+
pressed: _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
9794
|
+
background: safely(_mui_material.emphasize, background, .15),
|
|
9795
|
+
border: label
|
|
9796
|
+
}),
|
|
9797
|
+
rest
|
|
9798
|
+
};
|
|
9799
|
+
}
|
|
9800
|
+
function stateColors({ background, border, icon, label }) {
|
|
9801
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("background-color:", background, ";box-shadow:", border ? `inset 0 0 0 1px ${border}` : "none", ";color:", label, ";.MuiChip-label{color:", label, ";}.MuiChip-icon,.MuiChip-deleteIcon,.", TAG_LINK_ICON_CLASS, "{color:", icon, ";fill:", icon, ";}");
|
|
9802
|
+
}
|
|
9803
|
+
function interactiveStyles(props, colors) {
|
|
9804
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("cursor:pointer;", focusVisibleA11yStyle(props), " &:hover,&.Mui-focusVisible{", stateColors(colors.hover), ";}&:active{", stateColors(colors.pressed), ";}");
|
|
9805
|
+
}
|
|
9806
|
+
var _ref$4 = process.env.NODE_ENV === "production" ? {
|
|
9807
|
+
name: "7khdib",
|
|
9808
|
+
styles: ".MuiChip-label{border:0;clip-path:inset(50%);height:1px;margin:-1px;position:absolute;width:1px;}"
|
|
9809
|
+
} : {
|
|
9810
|
+
name: "7khdib",
|
|
9811
|
+
styles: ".MuiChip-label{border:0;clip-path:inset(50%);height:1px;margin:-1px;position:absolute;width:1px;}",
|
|
9812
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$19
|
|
9711
9813
|
};
|
|
9712
|
-
|
|
9814
|
+
function sizeStyles(props) {
|
|
9815
|
+
const { iconOnly = false, size = "medium" } = props;
|
|
9816
|
+
const spaces = getSpaces(props);
|
|
9713
9817
|
const corners = getCorners(props);
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
const
|
|
9717
|
-
return
|
|
9718
|
-
}
|
|
9719
|
-
const
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
const
|
|
9726
|
-
return createStatusCss(props, "pending");
|
|
9727
|
-
};
|
|
9728
|
-
const warning = (props) => {
|
|
9729
|
-
return createStatusCss(props, "warning");
|
|
9730
|
-
};
|
|
9731
|
-
const info = (props) => {
|
|
9732
|
-
return createStatusCss(props, "info");
|
|
9733
|
-
};
|
|
9734
|
-
function createStatusCss(props, status) {
|
|
9735
|
-
var _semanticColors$beta, _semanticColors$beta2, _semanticColors$negat, _semanticColors$negat2, _semanticColors$info, _semanticColors$info2, _semanticColors$neutr, _semanticColors$neutr2, _semanticColors$posit, _semanticColors$posit2, _semanticColors$notic;
|
|
9736
|
-
const colors = getColors(props);
|
|
9737
|
-
const semanticColors = getSemanticColors(props);
|
|
9738
|
-
if (!colors) return;
|
|
9739
|
-
const statusColors = {
|
|
9740
|
-
beta: {
|
|
9741
|
-
dark: semanticColors === null || semanticColors === void 0 || (_semanticColors$beta = semanticColors.beta) === null || _semanticColors$beta === void 0 ? void 0 : _semanticColors$beta.foreground,
|
|
9742
|
-
light: semanticColors === null || semanticColors === void 0 || (_semanticColors$beta2 = semanticColors.beta) === null || _semanticColors$beta2 === void 0 ? void 0 : _semanticColors$beta2.surfaceSecondary
|
|
9743
|
-
},
|
|
9744
|
-
error: {
|
|
9745
|
-
dark: semanticColors === null || semanticColors === void 0 || (_semanticColors$negat = semanticColors.negative) === null || _semanticColors$negat === void 0 ? void 0 : _semanticColors$negat.foreground,
|
|
9746
|
-
light: semanticColors === null || semanticColors === void 0 || (_semanticColors$negat2 = semanticColors.negative) === null || _semanticColors$negat2 === void 0 ? void 0 : _semanticColors$negat2.surfaceSecondary
|
|
9747
|
-
},
|
|
9748
|
-
info: {
|
|
9749
|
-
dark: semanticColors === null || semanticColors === void 0 || (_semanticColors$info = semanticColors.info) === null || _semanticColors$info === void 0 ? void 0 : _semanticColors$info.foreground,
|
|
9750
|
-
light: semanticColors === null || semanticColors === void 0 || (_semanticColors$info2 = semanticColors.info) === null || _semanticColors$info2 === void 0 ? void 0 : _semanticColors$info2.surfaceSecondary
|
|
9751
|
-
},
|
|
9752
|
-
pending: {
|
|
9753
|
-
dark: semanticColors === null || semanticColors === void 0 || (_semanticColors$neutr = semanticColors.neutral) === null || _semanticColors$neutr === void 0 ? void 0 : _semanticColors$neutr.foreground,
|
|
9754
|
-
light: semanticColors === null || semanticColors === void 0 || (_semanticColors$neutr2 = semanticColors.neutral) === null || _semanticColors$neutr2 === void 0 ? void 0 : _semanticColors$neutr2.surfaceSecondary
|
|
9755
|
-
},
|
|
9756
|
-
success: {
|
|
9757
|
-
dark: semanticColors === null || semanticColors === void 0 || (_semanticColors$posit = semanticColors.positive) === null || _semanticColors$posit === void 0 ? void 0 : _semanticColors$posit.foreground,
|
|
9758
|
-
light: semanticColors === null || semanticColors === void 0 || (_semanticColors$posit2 = semanticColors.positive) === null || _semanticColors$posit2 === void 0 ? void 0 : _semanticColors$posit2.surfaceSecondary
|
|
9759
|
-
},
|
|
9760
|
-
warning: {
|
|
9761
|
-
dark: colors === null || colors === void 0 ? void 0 : colors.yellow[700],
|
|
9762
|
-
light: semanticColors === null || semanticColors === void 0 || (_semanticColors$notic = semanticColors.notice) === null || _semanticColors$notic === void 0 ? void 0 : _semanticColors$notic.surfaceSecondary
|
|
9763
|
-
}
|
|
9764
|
-
}[status];
|
|
9765
|
-
return /*#__PURE__*/ (0, _emotion_react.css)("background-color:", statusColors.light, ";.MuiChip-label{color:", statusColors.dark, ";}");
|
|
9766
|
-
}
|
|
9767
|
-
const statusToCss = {
|
|
9768
|
-
beta,
|
|
9769
|
-
error,
|
|
9770
|
-
info,
|
|
9771
|
-
pending,
|
|
9772
|
-
success,
|
|
9773
|
-
warning
|
|
9774
|
-
};
|
|
9775
|
-
const doNotForwardProps$31 = ["isRounded"];
|
|
9776
|
-
const StyledChip = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Chip, {
|
|
9818
|
+
const iconSizes = getIconSizes(props);
|
|
9819
|
+
const height = TAG_HEIGHTS[size];
|
|
9820
|
+
const iconSize = size === "small" ? iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xxs : iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xs;
|
|
9821
|
+
return /*#__PURE__*/ (0, _emotion_react.css)(size === "small" ? fontBodyXxxxs(props) : fontBodyXs(props), " gap:", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;height:", height, "px;", iconOnly ? /*#__PURE__*/ (0, _emotion_react.css)("border-radius:", corners === null || corners === void 0 ? void 0 : corners.m, "px;padding:0;width:", height, "px;") : /*#__PURE__*/ (0, _emotion_react.css)("border-radius:", corners === null || corners === void 0 ? void 0 : corners.rounded, "px;padding:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;"), " .MuiChip-icon,.MuiChip-deleteIcon,.", TAG_LINK_ICON_CLASS, "{flex-shrink:0;height:", iconSize === null || iconSize === void 0 ? void 0 : iconSize.height, "px;margin:0;width:", iconSize === null || iconSize === void 0 ? void 0 : iconSize.width, "px;}.MuiChip-label{align-items:center;display:flex;gap:", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;min-width:0;overflow:hidden;padding:0;}.", TAG_LABEL_TEXT_CLASS, "{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}", iconOnly && _ref$4, ";");
|
|
9822
|
+
}
|
|
9823
|
+
const doNotForwardProps$31 = [
|
|
9824
|
+
"iconOnly",
|
|
9825
|
+
"isInteractive",
|
|
9826
|
+
"sdsStyle",
|
|
9827
|
+
"tagColor"
|
|
9828
|
+
];
|
|
9829
|
+
const StyledTag$4 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Chip, {
|
|
9777
9830
|
shouldForwardProp: (prop) => !doNotForwardProps$31.includes(prop),
|
|
9778
|
-
target: "
|
|
9779
|
-
})("border:none;", (props) => {
|
|
9780
|
-
const {
|
|
9781
|
-
|
|
9831
|
+
target: "esrfbz40"
|
|
9832
|
+
})("border:none;box-sizing:border-box;max-width:100%;position:relative;", (props) => {
|
|
9833
|
+
const { isInteractive = false, sdsStyle = "solid", tagColor = "neutral" } = props;
|
|
9834
|
+
const colors = Array.isArray(tagColor) ? customColors(props, tagColor, sdsStyle) : intentColors(props, tagColor, sdsStyle);
|
|
9835
|
+
return /*#__PURE__*/ (0, _emotion_react.css)(sizeStyles(props), " ", stateColors(colors.rest), " ", isInteractive && interactiveStyles(props, colors), " &.Mui-disabled{opacity:1;", stateColors(colors.disabled), ";}");
|
|
9836
|
+
}, ";");
|
|
9837
|
+
//#endregion
|
|
9838
|
+
//#region src/core/Tag/index.tsx
|
|
9839
|
+
const _excluded$33 = [
|
|
9840
|
+
"clickable",
|
|
9841
|
+
"color",
|
|
9842
|
+
"component",
|
|
9843
|
+
"href",
|
|
9844
|
+
"icon",
|
|
9845
|
+
"iconOnly",
|
|
9846
|
+
"label",
|
|
9847
|
+
"onClick",
|
|
9848
|
+
"rel",
|
|
9849
|
+
"sdsStyle",
|
|
9850
|
+
"showLinkIcon",
|
|
9851
|
+
"size",
|
|
9852
|
+
"target"
|
|
9853
|
+
];
|
|
9854
|
+
/**
|
|
9855
|
+
* @see https://mui.com/material-ui/react-chip/
|
|
9856
|
+
*/
|
|
9857
|
+
const Tag = (0, react.forwardRef)((props, ref) => {
|
|
9858
|
+
const { clickable, color = "neutral", component, href, icon, iconOnly = false, label, onClick, rel, sdsStyle = "solid", showLinkIcon = false, size = "medium", target } = props, rest = _objectWithoutProperties(props, _excluded$33);
|
|
9859
|
+
const isLink = Boolean(href);
|
|
9860
|
+
const isIconOnly = iconOnly && Boolean(icon);
|
|
9861
|
+
const isClickable = clickable !== null && clickable !== void 0 ? clickable : isLink || Boolean(onClick) ? true : void 0;
|
|
9862
|
+
const linkProps = isLink ? {
|
|
9863
|
+
href,
|
|
9864
|
+
rel: rel !== null && rel !== void 0 ? rel : target === "_blank" ? "noopener noreferrer" : void 0,
|
|
9865
|
+
target
|
|
9866
|
+
} : {};
|
|
9867
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag$4, _objectSpread2(_objectSpread2(_objectSpread2({ ref }, rest), linkProps), {}, {
|
|
9868
|
+
clickable: isClickable,
|
|
9869
|
+
color: "default",
|
|
9870
|
+
component: component !== null && component !== void 0 ? component : isLink ? "a" : void 0,
|
|
9871
|
+
icon,
|
|
9872
|
+
iconOnly: isIconOnly,
|
|
9873
|
+
isInteractive: Boolean(isClickable),
|
|
9874
|
+
label: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
9875
|
+
className: TAG_LABEL_TEXT_CLASS,
|
|
9876
|
+
children: label
|
|
9877
|
+
}), showLinkIcon && !isIconOnly && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_phosphor_icons_react.ArrowUpRightIcon, {
|
|
9878
|
+
weight: "bold",
|
|
9879
|
+
"aria-hidden": true,
|
|
9880
|
+
className: "SdsTag-linkIcon"
|
|
9881
|
+
})] }),
|
|
9882
|
+
onClick,
|
|
9883
|
+
sdsStyle,
|
|
9884
|
+
size,
|
|
9885
|
+
tagColor: color,
|
|
9886
|
+
variant: "filled"
|
|
9887
|
+
}));
|
|
9888
|
+
});
|
|
9889
|
+
//#endregion
|
|
9890
|
+
//#region src/core/Chip/style.ts
|
|
9891
|
+
const StyledChip = /*#__PURE__*/ (0, _emotion_styled_base.default)(Tag, { target: "edxh7710" })((props) => {
|
|
9892
|
+
const spaces = getSpaces(props);
|
|
9893
|
+
const corners = getCorners(props);
|
|
9894
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("border-radius:", corners === null || corners === void 0 ? void 0 : corners.m, "px;padding:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;");
|
|
9782
9895
|
}, ";");
|
|
9783
9896
|
//#endregion
|
|
9784
9897
|
//#region src/core/Chip/index.tsx
|
|
9898
|
+
const _excluded$32 = [
|
|
9899
|
+
"aria-label",
|
|
9900
|
+
"label",
|
|
9901
|
+
"onClick",
|
|
9902
|
+
"onDelete",
|
|
9903
|
+
"sdsStyle"
|
|
9904
|
+
];
|
|
9785
9905
|
/**
|
|
9786
9906
|
* @see https://mui.com/material-ui/react-chip/
|
|
9787
|
-
*
|
|
9788
|
-
* @deprecated
|
|
9789
|
-
* This component is deprecated and will be removed in the next major version.
|
|
9790
|
-
* Please use `Tag` or `TagFilter` instead.
|
|
9791
9907
|
*/
|
|
9792
|
-
const Chip = (props) => {
|
|
9793
|
-
|
|
9794
|
-
const
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
};
|
|
9908
|
+
const Chip = (0, react.forwardRef)((props, ref) => {
|
|
9909
|
+
const { "aria-label": ariaLabel, label, onClick, onDelete, sdsStyle = "solid" } = props, rest = _objectWithoutProperties(props, _excluded$32);
|
|
9910
|
+
const handleClick = (event) => {
|
|
9911
|
+
onClick === null || onClick === void 0 || onClick(event);
|
|
9912
|
+
onDelete(event);
|
|
9913
|
+
};
|
|
9914
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledChip, _objectSpread2(_objectSpread2({
|
|
9915
|
+
ref,
|
|
9916
|
+
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : `Remove ${label}`
|
|
9917
|
+
}, rest), {}, {
|
|
9918
|
+
color: "accent",
|
|
9919
|
+
deleteIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
9920
|
+
sdsIcon: "XMark",
|
|
9921
|
+
sdsSize: "xs"
|
|
9922
|
+
}),
|
|
9923
|
+
label,
|
|
9924
|
+
onClick: handleClick,
|
|
9925
|
+
onDelete,
|
|
9926
|
+
sdsStyle,
|
|
9927
|
+
size: "medium"
|
|
9928
|
+
}));
|
|
9929
|
+
});
|
|
9798
9930
|
//#endregion
|
|
9799
9931
|
//#region src/core/DropdownMenu/style.ts
|
|
9800
9932
|
const doNotForwardProps$30 = [
|
|
@@ -10658,154 +10790,6 @@ const Dropdown = (props) => {
|
|
|
10658
10790
|
}) : null }))] });
|
|
10659
10791
|
};
|
|
10660
10792
|
//#endregion
|
|
10661
|
-
//#region src/core/Tag/style.ts
|
|
10662
|
-
const tagSizeS = (props) => {
|
|
10663
|
-
var _semanticColors$base;
|
|
10664
|
-
const spaces = getSpaces(props);
|
|
10665
|
-
const iconSizes = getIconSizes(props);
|
|
10666
|
-
const semanticColors = getSemanticColors(props);
|
|
10667
|
-
return /*#__PURE__*/ (0, _emotion_react.css)("height:unset;.MuiChip-label{", fontBodyXxxs(props), " padding:0;}.MuiSvgIcon-root{height:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xs.height, "px;width:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xs.width, "px;margin:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px 0 0;}.MuiChip-deleteIcon{", fontHeaderXs(props), " color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base = semanticColors.base) === null || _semanticColors$base === void 0 ? void 0 : _semanticColors$base.ornamentPrimaryInverse, ";margin:0 0 0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;height:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;width:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.width, "px;}");
|
|
10668
|
-
};
|
|
10669
|
-
const tagSizeL = (props) => {
|
|
10670
|
-
var _semanticColors$base2;
|
|
10671
|
-
const spaces = getSpaces(props);
|
|
10672
|
-
const iconSizes = getIconSizes(props);
|
|
10673
|
-
const semanticColors = getSemanticColors(props);
|
|
10674
|
-
return /*#__PURE__*/ (0, _emotion_react.css)("height:unset;.MuiChip-label{", fontBodyXs(props), " padding:0;}.MuiSvgIcon-root{height:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.height, "px;width:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.width, "px;margin:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px 0 0px;}.MuiChip-deleteIcon{", fontHeaderXs(props), " color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base2 = semanticColors.base) === null || _semanticColors$base2 === void 0 ? void 0 : _semanticColors$base2.ornamentPrimaryInverse, ";margin:0 0 0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;height:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;width:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.width, "px;}");
|
|
10675
|
-
};
|
|
10676
|
-
const rounded = (props) => {
|
|
10677
|
-
const corners = getCorners(props);
|
|
10678
|
-
const spaces = getSpaces(props);
|
|
10679
|
-
const { sdsSize = "s", icon } = props;
|
|
10680
|
-
const topBottomPadding = sdsSize === "s" ? spaces === null || spaces === void 0 ? void 0 : spaces.xxxs : icon ? spaces === null || spaces === void 0 ? void 0 : spaces.xxs : spaces === null || spaces === void 0 ? void 0 : spaces.xs;
|
|
10681
|
-
const rightPadding = sdsSize === "l" && icon ? spaces === null || spaces === void 0 ? void 0 : spaces.s : spaces === null || spaces === void 0 ? void 0 : spaces.xs;
|
|
10682
|
-
return /*#__PURE__*/ (0, _emotion_react.css)("border-radius:", corners === null || corners === void 0 ? void 0 : corners.rounded, "px;padding:", topBottomPadding, "px ", rightPadding, "px ", topBottomPadding, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;&:after{content:\"\";border-radius:", corners === null || corners === void 0 ? void 0 : corners.rounded, "px;}");
|
|
10683
|
-
};
|
|
10684
|
-
const square = (props) => {
|
|
10685
|
-
const corners = getCorners(props);
|
|
10686
|
-
const spaces = getSpaces(props);
|
|
10687
|
-
const { sdsSize = "s", icon } = props;
|
|
10688
|
-
const topBottomPadding = sdsSize === "s" ? spaces === null || spaces === void 0 ? void 0 : spaces.xxxs : icon ? spaces === null || spaces === void 0 ? void 0 : spaces.xxs : spaces === null || spaces === void 0 ? void 0 : spaces.xs;
|
|
10689
|
-
return /*#__PURE__*/ (0, _emotion_react.css)("border-radius:", corners === null || corners === void 0 ? void 0 : corners.m, "px;padding:", topBottomPadding, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;&:after{content:\"\";border-radius:", corners === null || corners === void 0 ? void 0 : corners.m, "px;}");
|
|
10690
|
-
};
|
|
10691
|
-
const withHover = (props) => {
|
|
10692
|
-
var _semanticColors$base3;
|
|
10693
|
-
const semanticColors = getSemanticColors(props);
|
|
10694
|
-
return /*#__PURE__*/ (0, _emotion_react.css)("&:hover{cursor:pointer;}&:hover,&:focus-visible{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base3 = semanticColors.base) === null || _semanticColors$base3 === void 0 ? void 0 : _semanticColors$base3.textPrimaryInverse, ";}");
|
|
10695
|
-
};
|
|
10696
|
-
const primary = (props) => {
|
|
10697
|
-
return createTypeCss(props, "primary");
|
|
10698
|
-
};
|
|
10699
|
-
const secondary = (props) => {
|
|
10700
|
-
return createTypeCss(props, "secondary");
|
|
10701
|
-
};
|
|
10702
|
-
function generatePrimaryTagColors(intent, colors, semanticColors) {
|
|
10703
|
-
var _semanticColors$base4, _semanticColors$base5, _semanticColors$neutr;
|
|
10704
|
-
const intentColors = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors[intent || "neutral"];
|
|
10705
|
-
const hasCustomColors = colors.length >= 2;
|
|
10706
|
-
return {
|
|
10707
|
-
background: hasCustomColors ? colors[1] : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillPrimary,
|
|
10708
|
-
backgroundClicked: hasCustomColors ? (0, _mui_material.darken)(colors[1], .3) : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillPressed,
|
|
10709
|
-
backgroundHover: hasCustomColors ? (0, _mui_material.darken)(colors[1], .15) : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillInteraction,
|
|
10710
|
-
iconColor: hasCustomColors ? colors[2] : semanticColors === null || semanticColors === void 0 || (_semanticColors$base4 = semanticColors.base) === null || _semanticColors$base4 === void 0 ? void 0 : _semanticColors$base4.ornamentOnFill,
|
|
10711
|
-
label: colors.length > 0 ? colors[0] : semanticColors === null || semanticColors === void 0 || (_semanticColors$base5 = semanticColors.base) === null || _semanticColors$base5 === void 0 ? void 0 : _semanticColors$base5.textOnFill,
|
|
10712
|
-
borderColor: (0, _mui_material.alpha)((semanticColors === null || semanticColors === void 0 || (_semanticColors$neutr = semanticColors.neutral) === null || _semanticColors$neutr === void 0 ? void 0 : _semanticColors$neutr.foreground) || "#000", .6)
|
|
10713
|
-
};
|
|
10714
|
-
}
|
|
10715
|
-
function getSecondaryBorderColor(effectiveIntent, theme, intentColors) {
|
|
10716
|
-
if (!theme || !theme.palette) return (0, _mui_material.alpha)((intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground) || "#000", .6);
|
|
10717
|
-
if (effectiveIntent === "negative" && theme.palette.mode === "dark") return (0, _mui_material.alpha)((intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground) || "#000", .65);
|
|
10718
|
-
if (effectiveIntent === "notice" && theme.palette.mode === "light") return (0, _mui_material.alpha)((intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground) || "#000", .85);
|
|
10719
|
-
return (0, _mui_material.alpha)((intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground) || "#000", .6);
|
|
10720
|
-
}
|
|
10721
|
-
function generateSecondaryTagColors(intent, colors, semanticColors, theme = defaultTheme) {
|
|
10722
|
-
const effectiveIntent = intent || "neutral";
|
|
10723
|
-
const intentColors = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors[effectiveIntent];
|
|
10724
|
-
const hasCustomColors = colors.length >= 2;
|
|
10725
|
-
return {
|
|
10726
|
-
background: hasCustomColors ? colors[1] : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillSecondary,
|
|
10727
|
-
backgroundClicked: hasCustomColors ? (0, _mui_material.darken)(colors[1], .3) : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillPressed,
|
|
10728
|
-
backgroundHover: hasCustomColors ? (0, _mui_material.darken)(colors[1], .15) : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillInteraction,
|
|
10729
|
-
iconColor: hasCustomColors ? colors[2] : intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground,
|
|
10730
|
-
label: colors.length > 0 ? colors[0] : intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground,
|
|
10731
|
-
borderColor: hasCustomColors ? (0, _mui_material.alpha)(colors[1], .6) : getSecondaryBorderColor(effectiveIntent, theme, intentColors)
|
|
10732
|
-
};
|
|
10733
|
-
}
|
|
10734
|
-
function createTypeCss(props, type) {
|
|
10735
|
-
var _semanticColors$base6, _semanticColors$base7;
|
|
10736
|
-
const semanticColors = getSemanticColors(props);
|
|
10737
|
-
const intent = typeof props.tagColor === "string" ? props.tagColor : null;
|
|
10738
|
-
const colors = Array.isArray(props.tagColor) ? [...props.tagColor] : [];
|
|
10739
|
-
const typeColors = {
|
|
10740
|
-
primary: generatePrimaryTagColors(intent, colors, semanticColors),
|
|
10741
|
-
secondary: generateSecondaryTagColors(intent, colors, semanticColors, props.theme)
|
|
10742
|
-
}[type];
|
|
10743
|
-
return /*#__PURE__*/ (0, _emotion_react.css)(focusVisibleA11yStyle(props), " ", type === "secondary" && /*#__PURE__*/ (0, _emotion_react.css)("box-shadow:inset 0 0 0 1px ", typeColors.borderColor, ";"), " background-color:", typeColors.background, ";position:relative;.MuiChip-label{color:", typeColors.label, ";}svg{fill:", typeColors.iconColor, ";}&:hover,&:active{box-shadow:none;.MuiChip-label{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base6 = semanticColors.base) === null || _semanticColors$base6 === void 0 ? void 0 : _semanticColors$base6.textPrimaryInverse, ";}svg{fill:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base7 = semanticColors.base) === null || _semanticColors$base7 === void 0 ? void 0 : _semanticColors$base7.ornamentPrimaryInverse, ";}}&:hover{background-color:", typeColors.backgroundHover, ";}&:active{background-color:", typeColors.backgroundClicked, ";}&.Mui-focusVisible{background-color:", typeColors.backgroundHover, ";}");
|
|
10744
|
-
}
|
|
10745
|
-
const typeToCss = {
|
|
10746
|
-
primary,
|
|
10747
|
-
secondary
|
|
10748
|
-
};
|
|
10749
|
-
const doNotForwardProps$27 = [
|
|
10750
|
-
"sdsType",
|
|
10751
|
-
"sdsStyle",
|
|
10752
|
-
"sdsSize",
|
|
10753
|
-
"tagColor",
|
|
10754
|
-
"hover"
|
|
10755
|
-
];
|
|
10756
|
-
const StyledTag$4 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Chip, {
|
|
10757
|
-
shouldForwardProp: (prop) => !doNotForwardProps$27.includes(prop),
|
|
10758
|
-
target: "esrfbz40"
|
|
10759
|
-
})("border:none;", (props) => {
|
|
10760
|
-
const { hover = true, sdsType, sdsStyle, sdsSize = "s" } = props;
|
|
10761
|
-
const isRounded = sdsStyle === "rounded";
|
|
10762
|
-
const type = sdsType || "primary";
|
|
10763
|
-
return /*#__PURE__*/ (0, _emotion_react.css)(sdsSize === "l" ? tagSizeL(props) : tagSizeS(props), " ", typeToCss[type](props), " ", isRounded ? rounded(props) : square(props), " ", hover ? withHover(props) : `pointer-events: none;`, ";");
|
|
10764
|
-
}, ";");
|
|
10765
|
-
//#endregion
|
|
10766
|
-
//#region src/core/Tag/index.tsx
|
|
10767
|
-
/**
|
|
10768
|
-
* @see https://mui.com/material-ui/react-chip/
|
|
10769
|
-
*
|
|
10770
|
-
* @props color: {string} - applies color for tag based on default theme color values
|
|
10771
|
-
* [string, string] - applies custom colors for [font, background]
|
|
10772
|
-
* [string, string, string] - applies custom colors for [font, background, icon]
|
|
10773
|
-
*/
|
|
10774
|
-
const Tag = (props) => {
|
|
10775
|
-
const { color } = props;
|
|
10776
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag$4, _objectSpread2(_objectSpread2({ tagColor: color }, props), {}, { color: "primary" }));
|
|
10777
|
-
};
|
|
10778
|
-
//#endregion
|
|
10779
|
-
//#region src/core/TagFilter/style.ts
|
|
10780
|
-
const StyledTag$3 = /*#__PURE__*/ (0, _emotion_styled_base.default)(Tag, { target: "e19crzu0" })((props) => {
|
|
10781
|
-
var _semanticColors$accen, _iconSizes$xs, _iconSizes$xs2, _iconSizes$xs3, _iconSizes$xs4, _semanticColors$accen2, _semanticColors$base, _semanticColors$base2, _semanticColors$accen3;
|
|
10782
|
-
const spaces = getSpaces(props);
|
|
10783
|
-
const iconSizes = getIconSizes(props);
|
|
10784
|
-
const semanticColors = getSemanticColors(props);
|
|
10785
|
-
return /*#__PURE__*/ (0, _emotion_react.css)("padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen = semanticColors.accent) === null || _semanticColors$accen === void 0 ? void 0 : _semanticColors$accen.fillPrimary, ";.MuiChip-label{", fontHeaderXs(props), " z-index:auto;}.MuiChip-deleteIcon{margin:0 0 0 ", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;width:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs = iconSizes.xs) === null || _iconSizes$xs === void 0 ? void 0 : _iconSizes$xs.width, "px!important;height:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs2 = iconSizes.xs) === null || _iconSizes$xs2 === void 0 ? void 0 : _iconSizes$xs2.height, "px!important;}.MuiSvgIcon-root{margin:0;width:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs3 = iconSizes.xs) === null || _iconSizes$xs3 === void 0 ? void 0 : _iconSizes$xs3.width, "px!important;height:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs4 = iconSizes.xs) === null || _iconSizes$xs4 === void 0 ? void 0 : _iconSizes$xs4.height, "px!important;}svg{z-index:auto;}&:hover,&:focus,&:focus-within{background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen2 = semanticColors.accent) === null || _semanticColors$accen2 === void 0 ? void 0 : _semanticColors$accen2.fillInteraction, ";.MuiChip-label{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base = semanticColors.base) === null || _semanticColors$base === void 0 ? void 0 : _semanticColors$base.textPrimaryInverse, "!important;}.MuiChip-deleteIcon svg{fill:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base2 = semanticColors.base) === null || _semanticColors$base2 === void 0 ? void 0 : _semanticColors$base2.ornamentPrimaryInverse, "!important;}}&:active{background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen3 = semanticColors.accent) === null || _semanticColors$accen3 === void 0 ? void 0 : _semanticColors$accen3.fillPressed, ";}&:after{content:\"\";display:none;}");
|
|
10786
|
-
}, ";");
|
|
10787
|
-
//#endregion
|
|
10788
|
-
//#region src/core/TagFilter/index.tsx
|
|
10789
|
-
/**
|
|
10790
|
-
* @see https://mui.com/material-ui/react-chip/
|
|
10791
|
-
*/
|
|
10792
|
-
const TagFilter = (props) => {
|
|
10793
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag$3, _objectSpread2(_objectSpread2({ role: "none presentation" }, props), {}, {
|
|
10794
|
-
deleteIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
10795
|
-
"aria-label": "Delete Tag",
|
|
10796
|
-
sdsStyle: "minimal",
|
|
10797
|
-
sdsType: "secondary",
|
|
10798
|
-
size: "medium",
|
|
10799
|
-
backgroundOnHover: false,
|
|
10800
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
10801
|
-
sdsIcon: "XMark",
|
|
10802
|
-
sdsSize: "s"
|
|
10803
|
-
})
|
|
10804
|
-
}),
|
|
10805
|
-
color: "info"
|
|
10806
|
-
}));
|
|
10807
|
-
};
|
|
10808
|
-
//#endregion
|
|
10809
10793
|
//#region src/core/ComplexFilter/utils.ts
|
|
10810
10794
|
const checkIfSingleColumn = (value) => {
|
|
10811
10795
|
return value && value.name || Array.isArray(value) && value.length > 0 && value[0].name;
|
|
@@ -10837,10 +10821,9 @@ const Chips = ({ value, multiple = false, onDelete }) => {
|
|
|
10837
10821
|
if (!value) return null;
|
|
10838
10822
|
const chipLabels = checkIfSingleColumn(value) ? getSingleColumnLabels(value, multiple) : getMultiColumnLabels(value, multiple);
|
|
10839
10823
|
if (chipLabels.length === 0) return null;
|
|
10840
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: chipLabels.map((label) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
10824
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: chipLabels.map((label) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Chip, {
|
|
10841
10825
|
label,
|
|
10842
|
-
onDelete: () => onDelete(label)
|
|
10843
|
-
onClick: () => onDelete(label)
|
|
10826
|
+
onDelete: () => onDelete(label)
|
|
10844
10827
|
}, label)) });
|
|
10845
10828
|
};
|
|
10846
10829
|
//#endregion
|
|
@@ -10976,7 +10959,7 @@ const ComplexFilter = (_ref) => {
|
|
|
10976
10959
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$16() {
|
|
10977
10960
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
10978
10961
|
}
|
|
10979
|
-
const doNotForwardProps$
|
|
10962
|
+
const doNotForwardProps$27 = [
|
|
10980
10963
|
"visualElement",
|
|
10981
10964
|
"sdsType",
|
|
10982
10965
|
"imagePosition",
|
|
@@ -11006,7 +10989,7 @@ const getShowDecorativeBorder = (visualElementType, boundingBox, decorativeBorde
|
|
|
11006
10989
|
return visualElementType === "image" ? boundingBox && decorativeBorder && (imagePadding && imagePosition === "left" || imagePosition === "right") : boundingBox && decorativeBorder;
|
|
11007
10990
|
};
|
|
11008
10991
|
const StyledCard = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Card, {
|
|
11009
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
10992
|
+
shouldForwardProp: (prop) => !doNotForwardProps$27.includes(prop),
|
|
11010
10993
|
target: "e1dovfyq5"
|
|
11011
10994
|
})((props) => {
|
|
11012
10995
|
var _semanticColors$base, _semanticColors$base2, _semanticColors$accen;
|
|
@@ -11020,7 +11003,7 @@ const StyledCard = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material
|
|
|
11020
11003
|
return /*#__PURE__*/ (0, _emotion_react.css)("position:relative;display:flex;background-color:transparent;background-image:none;flex-direction:", flexDirection, ";overflow:visible!important;box-shadow:none;border-radius:", corners === null || corners === void 0 ? void 0 : corners.xl, "px;.MuiCardActionArea-focusHighlight{background:transparent;}&:hover,&:active{box-shadow:", clickableCard ? shadows === null || shadows === void 0 ? void 0 : shadows.l : shadows === null || shadows === void 0 ? void 0 : shadows.none, "!important;}", boundingBox && /*#__PURE__*/ (0, _emotion_react.css)("border:1px solid ", semanticColors === null || semanticColors === void 0 || (_semanticColors$base = semanticColors.base) === null || _semanticColors$base === void 0 ? void 0 : _semanticColors$base.borderSecondary, ";background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base2 = semanticColors.base) === null || _semanticColors$base2 === void 0 ? void 0 : _semanticColors$base2.backgroundPrimary, ";"), " ", showDecorativeBorder && /*#__PURE__*/ (0, _emotion_react.css)("&:before{content:\"\";position:absolute;background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen = semanticColors.accent) === null || _semanticColors$accen === void 0 ? void 0 : _semanticColors$accen.foreground, ";z-index:10;", sdsType === "wide" && /*#__PURE__*/ (0, _emotion_react.css)("top:-1px;bottom:-1px;left:-1px;width:", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;border-top-left-radius:", corners === null || corners === void 0 ? void 0 : corners.xl, "px;border-bottom-left-radius:", corners === null || corners === void 0 ? void 0 : corners.xl, "px;"), " ", sdsType === "narrow" && /*#__PURE__*/ (0, _emotion_react.css)("height:", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;top:-1px;left:-1px;right:-1px;border-top-left-radius:", corners === null || corners === void 0 ? void 0 : corners.xl, "px;border-top-right-radius:", corners === null || corners === void 0 ? void 0 : corners.xl, "px;"), ";}"), " ", sdsType === "wide" && showDecorativeBorder && /*#__PURE__*/ (0, _emotion_react.css)("border-top-left-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;border-bottom-left-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;"), " ", sdsType === "narrow" && showDecorativeBorder && /*#__PURE__*/ (0, _emotion_react.css)("border-top-left-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;border-top-right-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;"), ";");
|
|
11021
11004
|
}, ";");
|
|
11022
11005
|
const StyledCardActionArea = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material_Button.default, {
|
|
11023
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11006
|
+
shouldForwardProp: (prop) => !doNotForwardProps$27.includes(prop),
|
|
11024
11007
|
target: "e1dovfyq4"
|
|
11025
11008
|
})((props) => {
|
|
11026
11009
|
var _semanticColors$base3, _semanticColors$base4;
|
|
@@ -11048,7 +11031,7 @@ const StyledCardActionArea = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mu
|
|
|
11048
11031
|
`;
|
|
11049
11032
|
}, ";");
|
|
11050
11033
|
const StyledIconMediaWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
11051
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11034
|
+
shouldForwardProp: (prop) => !doNotForwardProps$27.includes(prop),
|
|
11052
11035
|
target: "e1dovfyq3"
|
|
11053
11036
|
})((props) => {
|
|
11054
11037
|
const { boundingBox = true } = props;
|
|
@@ -11056,7 +11039,7 @@ const StyledIconMediaWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("
|
|
|
11056
11039
|
return /*#__PURE__*/ (0, _emotion_react.css)(boundingBox ? /*#__PURE__*/ (0, _emotion_react.css)("padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px 0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px;") : /*#__PURE__*/ (0, _emotion_react.css)("padding-right:", spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px;"), ";");
|
|
11057
11040
|
}, ";");
|
|
11058
11041
|
const StyledCardContent = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
11059
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11042
|
+
shouldForwardProp: (prop) => !doNotForwardProps$27.includes(prop),
|
|
11060
11043
|
target: "e1dovfyq2"
|
|
11061
11044
|
})((props) => {
|
|
11062
11045
|
const { boundingBox = true, sdsType = "wide", visualElementType } = props;
|
|
@@ -11065,7 +11048,7 @@ const StyledCardContent = /*#__PURE__*/ (0, _emotion_styled_base.default)("div",
|
|
|
11065
11048
|
return /*#__PURE__*/ (0, _emotion_react.css)("display:flex;flex-direction:column;min-width:100px;width:100%;height:100%;", boundingBox ? /*#__PURE__*/ (0, _emotion_react.css)("padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px;") : /*#__PURE__*/ (0, _emotion_react.css)("padding:", NoBoundingBoxPadding, ";"), ";");
|
|
11066
11049
|
}, ";");
|
|
11067
11050
|
const StyledContentCardBody = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.CardContent, {
|
|
11068
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11051
|
+
shouldForwardProp: (prop) => !doNotForwardProps$27.includes(prop),
|
|
11069
11052
|
target: "e1dovfyq1"
|
|
11070
11053
|
})(fontBodyS, " ", (props) => {
|
|
11071
11054
|
var _semanticColors$base5;
|
|
@@ -11088,7 +11071,7 @@ const StyledCardContentAligner = /*#__PURE__*/ (0, _emotion_styled_base.default)
|
|
|
11088
11071
|
});
|
|
11089
11072
|
//#endregion
|
|
11090
11073
|
//#region src/core/ContentCard/components/ContentCardTitle/style.ts
|
|
11091
|
-
const doNotForwardProps$
|
|
11074
|
+
const doNotForwardProps$26 = [
|
|
11092
11075
|
"visualElement",
|
|
11093
11076
|
"sdsType",
|
|
11094
11077
|
"imagePosition",
|
|
@@ -11099,7 +11082,7 @@ const doNotForwardProps$25 = [
|
|
|
11099
11082
|
"metadataText",
|
|
11100
11083
|
"contentBlock"
|
|
11101
11084
|
];
|
|
11102
|
-
const StyledTitleWrapper = (0, _mui_material.styled)("div", { shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11085
|
+
const StyledTitleWrapper = (0, _mui_material.styled)("div", { shouldForwardProp: (prop) => !doNotForwardProps$26.includes(prop) })`
|
|
11103
11086
|
${(props) => {
|
|
11104
11087
|
const spaces = getSpaces(props);
|
|
11105
11088
|
return `
|
|
@@ -11109,7 +11092,7 @@ const StyledTitleWrapper = (0, _mui_material.styled)("div", { shouldForwardProp:
|
|
|
11109
11092
|
`;
|
|
11110
11093
|
}}
|
|
11111
11094
|
`;
|
|
11112
|
-
const StyledOverlineText = (0, _mui_material.styled)("p", { shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11095
|
+
const StyledOverlineText = (0, _mui_material.styled)("p", { shouldForwardProp: (prop) => !doNotForwardProps$26.includes(prop) })`
|
|
11113
11096
|
${fontCapsXxxs}
|
|
11114
11097
|
${(props) => {
|
|
11115
11098
|
var _semanticColors$base;
|
|
@@ -11120,7 +11103,7 @@ const StyledOverlineText = (0, _mui_material.styled)("p", { shouldForwardProp: (
|
|
|
11120
11103
|
`;
|
|
11121
11104
|
}}
|
|
11122
11105
|
`;
|
|
11123
|
-
const StyledTitleText = (0, _mui_material.styled)("p", { shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11106
|
+
const StyledTitleText = (0, _mui_material.styled)("p", { shouldForwardProp: (prop) => !doNotForwardProps$26.includes(prop) })`
|
|
11124
11107
|
${fontHeaderXl}
|
|
11125
11108
|
${(props) => {
|
|
11126
11109
|
var _semanticColors$base2;
|
|
@@ -11131,7 +11114,7 @@ const StyledTitleText = (0, _mui_material.styled)("p", { shouldForwardProp: (pro
|
|
|
11131
11114
|
`;
|
|
11132
11115
|
}}
|
|
11133
11116
|
`;
|
|
11134
|
-
const StyledSubtitleText = (0, _mui_material.styled)("p", { shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11117
|
+
const StyledSubtitleText = (0, _mui_material.styled)("p", { shouldForwardProp: (prop) => !doNotForwardProps$26.includes(prop) })`
|
|
11135
11118
|
${fontHeaderM}
|
|
11136
11119
|
${(props) => {
|
|
11137
11120
|
var _semanticColors$base3;
|
|
@@ -11142,7 +11125,7 @@ const StyledSubtitleText = (0, _mui_material.styled)("p", { shouldForwardProp: (
|
|
|
11142
11125
|
`;
|
|
11143
11126
|
}}
|
|
11144
11127
|
`;
|
|
11145
|
-
const StyledMetadataText = (0, _mui_material.styled)("p", { shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11128
|
+
const StyledMetadataText = (0, _mui_material.styled)("p", { shouldForwardProp: (prop) => !doNotForwardProps$26.includes(prop) })`
|
|
11146
11129
|
${fontBodyXxs}
|
|
11147
11130
|
${(props) => {
|
|
11148
11131
|
var _semanticColors$base4;
|
|
@@ -11198,9 +11181,9 @@ const ContentCardTitle = (0, react.forwardRef)(function ContentCardTitle(props,
|
|
|
11198
11181
|
});
|
|
11199
11182
|
//#endregion
|
|
11200
11183
|
//#region src/core/ContentCard/components/ContentCardActions/style.ts
|
|
11201
|
-
const doNotForwardProps$
|
|
11184
|
+
const doNotForwardProps$25 = ["buttonsPosition"];
|
|
11202
11185
|
const StyledCardActions = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.CardActions, {
|
|
11203
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11186
|
+
shouldForwardProp: (prop) => !doNotForwardProps$25.includes(prop),
|
|
11204
11187
|
target: "ewfyato0"
|
|
11205
11188
|
})((props) => {
|
|
11206
11189
|
const { buttonsPosition = "left" } = props;
|
|
@@ -11271,7 +11254,7 @@ const ContentCardActions = (0, react.forwardRef)(function ContentCardActions(pro
|
|
|
11271
11254
|
});
|
|
11272
11255
|
//#endregion
|
|
11273
11256
|
//#region src/core/ContentCard/components/ContentCardImageMedia/style.ts
|
|
11274
|
-
const doNotForwardProps$
|
|
11257
|
+
const doNotForwardProps$24 = [
|
|
11275
11258
|
"imagePadding",
|
|
11276
11259
|
"boundingBox",
|
|
11277
11260
|
"sdsType",
|
|
@@ -11279,7 +11262,7 @@ const doNotForwardProps$23 = [
|
|
|
11279
11262
|
"image",
|
|
11280
11263
|
"imagePosition"
|
|
11281
11264
|
];
|
|
11282
|
-
const StyledImageMediaWrapper = (0, _mui_material.styled)("div", { shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11265
|
+
const StyledImageMediaWrapper = (0, _mui_material.styled)("div", { shouldForwardProp: (prop) => !doNotForwardProps$24.includes(prop) })`
|
|
11283
11266
|
${(props) => {
|
|
11284
11267
|
const { imagePadding = false, boundingBox = true, sdsType = "wide", imagePosition = "left" } = props;
|
|
11285
11268
|
const spaces = getSpaces(props);
|
|
@@ -11454,9 +11437,9 @@ const ContentCard = react.default.forwardRef((props, ref) => {
|
|
|
11454
11437
|
});
|
|
11455
11438
|
//#endregion
|
|
11456
11439
|
//#region src/core/Dialog/components/DialogPaper/style.ts
|
|
11457
|
-
const doNotForwardProps$
|
|
11440
|
+
const doNotForwardProps$23 = ["sdsSize"];
|
|
11458
11441
|
const StyledPaper$2 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Paper, {
|
|
11459
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11442
|
+
shouldForwardProp: (prop) => !doNotForwardProps$23.includes(prop),
|
|
11460
11443
|
target: "e3jjuqo0"
|
|
11461
11444
|
})("&{", paperDimensions, " ", (props) => {
|
|
11462
11445
|
var _semanticColors$base, _semanticColors$base2;
|
|
@@ -11578,9 +11561,9 @@ const CloseButton = (0, react.forwardRef)(function CloseButton(props, ref) {
|
|
|
11578
11561
|
});
|
|
11579
11562
|
//#endregion
|
|
11580
11563
|
//#region src/core/Dialog/components/DialogTitle/style.ts
|
|
11581
|
-
const doNotForwardProps$
|
|
11564
|
+
const doNotForwardProps$22 = ["sdsSize"];
|
|
11582
11565
|
const StyledDialogTitle = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.DialogTitle, {
|
|
11583
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11566
|
+
shouldForwardProp: (prop) => !doNotForwardProps$22.includes(prop),
|
|
11584
11567
|
target: "e18l2rxq3"
|
|
11585
11568
|
})("padding:0;", (props) => {
|
|
11586
11569
|
const { sdsSize } = props;
|
|
@@ -11591,7 +11574,7 @@ const StyledDialogTitle = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_m
|
|
|
11591
11574
|
`;
|
|
11592
11575
|
}, ";");
|
|
11593
11576
|
const Title = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Typography, {
|
|
11594
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11577
|
+
shouldForwardProp: (prop) => !doNotForwardProps$22.includes(prop),
|
|
11595
11578
|
target: "e18l2rxq2"
|
|
11596
11579
|
})((props) => {
|
|
11597
11580
|
var _semanticColors$base;
|
|
@@ -11601,7 +11584,7 @@ const Title = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Typo
|
|
|
11601
11584
|
return [isSmall ? fontHeaderL(props) : fontHeaderXl(props), `color: ${semanticColors === null || semanticColors === void 0 || (_semanticColors$base = semanticColors.base) === null || _semanticColors$base === void 0 ? void 0 : _semanticColors$base.textPrimary};`];
|
|
11602
11585
|
}, ";");
|
|
11603
11586
|
const Subtitle = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Typography, {
|
|
11604
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11587
|
+
shouldForwardProp: (prop) => !doNotForwardProps$22.includes(prop),
|
|
11605
11588
|
target: "e18l2rxq1"
|
|
11606
11589
|
})((props) => {
|
|
11607
11590
|
var _semanticColors$base2;
|
|
@@ -11614,7 +11597,7 @@ const Subtitle = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.T
|
|
|
11614
11597
|
`];
|
|
11615
11598
|
}, ";");
|
|
11616
11599
|
const Overline = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Typography, {
|
|
11617
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11600
|
+
shouldForwardProp: (prop) => !doNotForwardProps$22.includes(prop),
|
|
11618
11601
|
target: "e18l2rxq0"
|
|
11619
11602
|
})((props) => {
|
|
11620
11603
|
var _semanticColors$base3;
|
|
@@ -11670,9 +11653,9 @@ const DialogTitle = (0, react.forwardRef)(function DialogTitle(props, ref) {
|
|
|
11670
11653
|
});
|
|
11671
11654
|
//#endregion
|
|
11672
11655
|
//#region src/core/Dialog/components/DialogActions/style.ts
|
|
11673
|
-
const doNotForwardProps$
|
|
11656
|
+
const doNotForwardProps$21 = ["buttonPosition", "sdsSize"];
|
|
11674
11657
|
const StyledDialogActions = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.DialogActions, {
|
|
11675
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11658
|
+
shouldForwardProp: (prop) => !doNotForwardProps$21.includes(prop),
|
|
11676
11659
|
target: "esa0jqu0"
|
|
11677
11660
|
})("padding:0;", (props) => {
|
|
11678
11661
|
const spaces = getSpaces(props);
|
|
@@ -11742,9 +11725,9 @@ const Dialog = (0, react.forwardRef)(function Dialog(props, ref) {
|
|
|
11742
11725
|
});
|
|
11743
11726
|
//#endregion
|
|
11744
11727
|
//#region src/core/Dialog/components/DialogContent/style.ts
|
|
11745
|
-
const doNotForwardProps$
|
|
11728
|
+
const doNotForwardProps$20 = ["sdsSize"];
|
|
11746
11729
|
const StyledDialogContent = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.DialogContent, {
|
|
11747
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11730
|
+
shouldForwardProp: (prop) => !doNotForwardProps$20.includes(prop),
|
|
11748
11731
|
target: "e1ub36ac0"
|
|
11749
11732
|
})(fontBodyS, " padding:0;");
|
|
11750
11733
|
//#endregion
|
|
@@ -11802,7 +11785,7 @@ const overlayContentPositionJustifyMapping = {
|
|
|
11802
11785
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$15() {
|
|
11803
11786
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
11804
11787
|
}
|
|
11805
|
-
const doNotForwardProps$
|
|
11788
|
+
const doNotForwardProps$19 = [
|
|
11806
11789
|
"heroHeight",
|
|
11807
11790
|
"overlayContainerMinMargin",
|
|
11808
11791
|
"backgroundFillColor",
|
|
@@ -11830,7 +11813,7 @@ const getResponsivePadding = (props) => {
|
|
|
11830
11813
|
return /*#__PURE__*/ (0, _emotion_react.css)("padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xxxl, "px ", (overlayContainerMinMargin === null || overlayContainerMinMargin === void 0 ? void 0 : overlayContainerMinMargin.small) || HeroMargins.SMALL, ";", breakpoints === null || breakpoints === void 0 ? void 0 : breakpoints.up("md"), "{padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xxxl, "px ", (overlayContainerMinMargin === null || overlayContainerMinMargin === void 0 ? void 0 : overlayContainerMinMargin.medium) || HeroMargins.MEDIUM, ";}", breakpoints === null || breakpoints === void 0 ? void 0 : breakpoints.up("lg"), "{padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xxxl, "px ", (overlayContainerMinMargin === null || overlayContainerMinMargin === void 0 ? void 0 : overlayContainerMinMargin.large) || HeroMargins.LARGE, ";}");
|
|
11831
11814
|
};
|
|
11832
11815
|
const StyledHeroContainer = /*#__PURE__*/ (0, _emotion_styled_base.default)("section", {
|
|
11833
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
11816
|
+
shouldForwardProp: (prop) => !doNotForwardProps$19.includes(prop),
|
|
11834
11817
|
target: "e1wdq27g10"
|
|
11835
11818
|
})((props) => {
|
|
11836
11819
|
const { heroHeight = "fit-content", overlayContentPosition, backgroundFillColor } = props;
|
|
@@ -12997,15 +12980,56 @@ const IntentMessage = (props) => {
|
|
|
12997
12980
|
}, index))] }));
|
|
12998
12981
|
};
|
|
12999
12982
|
//#endregion
|
|
12983
|
+
//#region src/core/Popover/style.ts
|
|
12984
|
+
const StyledPopover = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Popover, { target: "e89mz5z0" })("& .", _mui_material.popoverClasses.paper, "{", (props) => {
|
|
12985
|
+
var _semanticColors$base, _semanticColors$base2, _props$theme$zIndex$t, _props$theme;
|
|
12986
|
+
const corners = getCorners(props);
|
|
12987
|
+
const shadows = getShadows(props);
|
|
12988
|
+
const semanticColors = getSemanticColors(props);
|
|
12989
|
+
const borders = getBorders(props);
|
|
12990
|
+
const spaces = getSpaces(props);
|
|
12991
|
+
return `
|
|
12992
|
+
background-color: ${semanticColors === null || semanticColors === void 0 || (_semanticColors$base = semanticColors.base) === null || _semanticColors$base === void 0 ? void 0 : _semanticColors$base.surfacePrimary};
|
|
12993
|
+
background-image: none;
|
|
12994
|
+
border-radius: ${corners === null || corners === void 0 ? void 0 : corners.l}px;
|
|
12995
|
+
padding: ${spaces === null || spaces === void 0 ? void 0 : spaces.xs}px ${spaces === null || spaces === void 0 ? void 0 : spaces.m}px;
|
|
12996
|
+
border: ${borders === null || borders === void 0 ? void 0 : borders.none};
|
|
12997
|
+
outline: 1px solid ${addOpacityToHex((semanticColors === null || semanticColors === void 0 || (_semanticColors$base2 = semanticColors.base) === null || _semanticColors$base2 === void 0 ? void 0 : _semanticColors$base2.borderSecondary) || "#000000", 15)};
|
|
12998
|
+
box-shadow: ${shadows === null || shadows === void 0 ? void 0 : shadows.m};
|
|
12999
|
+
box-sizing: border-box;
|
|
13000
|
+
z-index: ${(_props$theme$zIndex$t = props === null || props === void 0 || (_props$theme = props.theme) === null || _props$theme === void 0 || (_props$theme = _props$theme.zIndex) === null || _props$theme === void 0 ? void 0 : _props$theme.tooltip) !== null && _props$theme$zIndex$t !== void 0 ? _props$theme$zIndex$t : 1400};
|
|
13001
|
+
`;
|
|
13002
|
+
}, ";}");
|
|
13003
|
+
//#endregion
|
|
13004
|
+
//#region src/core/Popover/index.tsx
|
|
13005
|
+
/**
|
|
13006
|
+
* @see https://mui.com/material-ui/react-popover/
|
|
13007
|
+
*/
|
|
13008
|
+
const Popover = (0, react.forwardRef)(function Popover(props, ref) {
|
|
13009
|
+
const spaces = getSpaces({ theme: (0, _mui_material.useTheme)() });
|
|
13010
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledPopover, _objectSpread2({
|
|
13011
|
+
ref,
|
|
13012
|
+
anchorOrigin: {
|
|
13013
|
+
horizontal: "left",
|
|
13014
|
+
vertical: "bottom"
|
|
13015
|
+
},
|
|
13016
|
+
transformOrigin: {
|
|
13017
|
+
vertical: -((spaces === null || spaces === void 0 ? void 0 : spaces.s) || 8),
|
|
13018
|
+
horizontal: 0
|
|
13019
|
+
}
|
|
13020
|
+
}, props));
|
|
13021
|
+
});
|
|
13022
|
+
//#endregion
|
|
13000
13023
|
//#region src/core/Legend/style.ts
|
|
13001
|
-
const LegendContainer = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { target: "
|
|
13024
|
+
const LegendContainer = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { target: "ezuih625" })("display:flex;flex-wrap:wrap;align-items:center;", (props) => {
|
|
13002
13025
|
const spaces = getSpaces(props);
|
|
13003
13026
|
return `
|
|
13004
13027
|
column-gap: ${spaces === null || spaces === void 0 ? void 0 : spaces.xxs}px;
|
|
13005
13028
|
row-gap: ${spaces === null || spaces === void 0 ? void 0 : spaces.xxxs}px;
|
|
13029
|
+
margin: -${spaces === null || spaces === void 0 ? void 0 : spaces.xxxs}px -${spaces === null || spaces === void 0 ? void 0 : spaces.xxs}px;
|
|
13006
13030
|
`;
|
|
13007
13031
|
}, ";");
|
|
13008
|
-
const LegendItem = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { target: "
|
|
13032
|
+
const LegendItem = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { target: "ezuih624" })((props) => {
|
|
13009
13033
|
var _semanticColors$base, _semanticColors$base2, _semanticColors$base3, _semanticColors$base4;
|
|
13010
13034
|
const { isSelected, disabled, isHovered } = props;
|
|
13011
13035
|
const spaces = getSpaces(props);
|
|
@@ -13026,13 +13050,13 @@ const LegendItem = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { targ
|
|
|
13026
13050
|
}
|
|
13027
13051
|
`;
|
|
13028
13052
|
}, ";");
|
|
13029
|
-
const LegendIcon = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { target: "
|
|
13053
|
+
const LegendIcon = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { target: "ezuih623" })((props) => {
|
|
13030
13054
|
const { color, isDimmed } = props;
|
|
13031
13055
|
const spaces = getSpaces(props);
|
|
13032
13056
|
const corners = getCorners(props);
|
|
13033
13057
|
return `
|
|
13034
|
-
width: ${spaces === null || spaces === void 0 ? void 0 : spaces.
|
|
13035
|
-
height: ${spaces === null || spaces === void 0 ? void 0 : spaces.
|
|
13058
|
+
width: ${spaces === null || spaces === void 0 ? void 0 : spaces.s}px;
|
|
13059
|
+
height: ${spaces === null || spaces === void 0 ? void 0 : spaces.s}px;
|
|
13036
13060
|
border-radius: ${corners === null || corners === void 0 ? void 0 : corners.s}px;
|
|
13037
13061
|
background-color: ${color};
|
|
13038
13062
|
flex-shrink: 0;
|
|
@@ -13041,14 +13065,14 @@ const LegendIcon = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", { targ
|
|
|
13041
13065
|
margin-right: ${spaces === null || spaces === void 0 ? void 0 : spaces.xxs}px;
|
|
13042
13066
|
`;
|
|
13043
13067
|
}, ";");
|
|
13044
|
-
const LegendLabel = /*#__PURE__*/ (0, _emotion_styled_base.default)("span", { target: "
|
|
13068
|
+
const LegendLabel = /*#__PURE__*/ (0, _emotion_styled_base.default)("span", { target: "ezuih622" })(fontBodyMediumXxxxs, " ", (props) => {
|
|
13045
13069
|
var _semanticColors$base5;
|
|
13046
13070
|
const semanticColors = getSemanticColors(props);
|
|
13047
13071
|
return `
|
|
13048
13072
|
color: ${semanticColors === null || semanticColors === void 0 || (_semanticColors$base5 = semanticColors.base) === null || _semanticColors$base5 === void 0 ? void 0 : _semanticColors$base5.textPrimary};
|
|
13049
13073
|
`;
|
|
13050
13074
|
}, ";");
|
|
13051
|
-
const LegendValue = /*#__PURE__*/ (0, _emotion_styled_base.default)("span", { target: "
|
|
13075
|
+
const LegendValue = /*#__PURE__*/ (0, _emotion_styled_base.default)("span", { target: "ezuih621" })(fontBodyXxxxs, " ", (props) => {
|
|
13052
13076
|
var _semanticColors$base6;
|
|
13053
13077
|
const semanticColors = getSemanticColors(props);
|
|
13054
13078
|
const spaces = getSpaces(props);
|
|
@@ -13057,6 +13081,18 @@ const LegendValue = /*#__PURE__*/ (0, _emotion_styled_base.default)("span", { ta
|
|
|
13057
13081
|
margin-left: ${spaces === null || spaces === void 0 ? void 0 : spaces.xxs}px;
|
|
13058
13082
|
`;
|
|
13059
13083
|
}, ";");
|
|
13084
|
+
const StyledLegendPopover = /*#__PURE__*/ (0, _emotion_styled_base.default)(Popover, { target: "ezuih620" })("& .", _mui_material.popoverClasses.paper, "{", (props) => {
|
|
13085
|
+
var _spaces$s, _spaces$xxxs, _spaces$s2, _spaces$xxs;
|
|
13086
|
+
const spaces = getSpaces(props);
|
|
13087
|
+
const corners = getCorners(props);
|
|
13088
|
+
const shadows = getShadows(props);
|
|
13089
|
+
return `
|
|
13090
|
+
max-width: 480px;
|
|
13091
|
+
padding: ${((_spaces$s = spaces === null || spaces === void 0 ? void 0 : spaces.s) !== null && _spaces$s !== void 0 ? _spaces$s : 0) + ((_spaces$xxxs = spaces === null || spaces === void 0 ? void 0 : spaces.xxxs) !== null && _spaces$xxxs !== void 0 ? _spaces$xxxs : 0)}px ${((_spaces$s2 = spaces === null || spaces === void 0 ? void 0 : spaces.s) !== null && _spaces$s2 !== void 0 ? _spaces$s2 : 0) + ((_spaces$xxs = spaces === null || spaces === void 0 ? void 0 : spaces.xxs) !== null && _spaces$xxs !== void 0 ? _spaces$xxs : 0)}px;
|
|
13092
|
+
border-radius: ${corners === null || corners === void 0 ? void 0 : corners.xl}px;
|
|
13093
|
+
box-shadow: ${shadows === null || shadows === void 0 ? void 0 : shadows.l};
|
|
13094
|
+
`;
|
|
13095
|
+
}, ";}");
|
|
13060
13096
|
//#endregion
|
|
13061
13097
|
//#region src/core/Legend/index.tsx
|
|
13062
13098
|
const _excluded$15 = [
|
|
@@ -13068,14 +13104,19 @@ const _excluded$15 = [
|
|
|
13068
13104
|
"showValues",
|
|
13069
13105
|
"selectedIndices",
|
|
13070
13106
|
"onSelectionChange",
|
|
13071
|
-
"hoveredIndex"
|
|
13107
|
+
"hoveredIndex",
|
|
13108
|
+
"lastItemMenuItems"
|
|
13072
13109
|
];
|
|
13073
13110
|
const Legend = (props) => {
|
|
13074
13111
|
var _theme$palette;
|
|
13075
|
-
const { items, colors, onItemMouseEnter, onItemMouseLeave, onItemClick, showValues = false, selectedIndices = [], onSelectionChange, hoveredIndex: externalHoveredIndex } = props, rest = _objectWithoutProperties(props, _excluded$15);
|
|
13112
|
+
const { items, colors, onItemMouseEnter, onItemMouseLeave, onItemClick, showValues = false, selectedIndices = [], onSelectionChange, hoveredIndex: externalHoveredIndex, lastItemMenuItems = [] } = props, rest = _objectWithoutProperties(props, _excluded$15);
|
|
13076
13113
|
const theme = (0, _mui_material.useTheme)();
|
|
13077
13114
|
const [internalHoveredIndex, setInternalHoveredIndex] = (0, react.useState)(null);
|
|
13115
|
+
const [menuAnchor, setMenuAnchor] = (0, react.useState)(null);
|
|
13078
13116
|
const hoveredIndex = externalHoveredIndex !== null && externalHoveredIndex !== void 0 ? externalHoveredIndex : internalHoveredIndex;
|
|
13117
|
+
const hasOverflowMenu = lastItemMenuItems.length > 0;
|
|
13118
|
+
const overflowItemIndex = items.length;
|
|
13119
|
+
const isOverflowTrigger = (index) => hasOverflowMenu && index === overflowItemIndex - 1;
|
|
13079
13120
|
const handleMouseEnter = (item, index) => {
|
|
13080
13121
|
if (item.disabled) return;
|
|
13081
13122
|
setInternalHoveredIndex(index);
|
|
@@ -13086,8 +13127,13 @@ const Legend = (props) => {
|
|
|
13086
13127
|
setInternalHoveredIndex(null);
|
|
13087
13128
|
onItemMouseLeave === null || onItemMouseLeave === void 0 || onItemMouseLeave(item, index);
|
|
13088
13129
|
};
|
|
13089
|
-
const handleClick = (item, index) => {
|
|
13130
|
+
const handleClick = (item, index, event) => {
|
|
13090
13131
|
if (item.disabled) return;
|
|
13132
|
+
if (isOverflowTrigger(index)) {
|
|
13133
|
+
setMenuAnchor(event.currentTarget);
|
|
13134
|
+
onItemClick === null || onItemClick === void 0 || onItemClick(item, index);
|
|
13135
|
+
return;
|
|
13136
|
+
}
|
|
13091
13137
|
if (onSelectionChange) {
|
|
13092
13138
|
const isSelected = selectedIndices.includes(index);
|
|
13093
13139
|
let newSelectedIndices;
|
|
@@ -13097,22 +13143,28 @@ const Legend = (props) => {
|
|
|
13097
13143
|
}
|
|
13098
13144
|
onItemClick === null || onItemClick === void 0 || onItemClick(item, index);
|
|
13099
13145
|
};
|
|
13146
|
+
const handleMenuSelectionChange = (indices) => {
|
|
13147
|
+
onSelectionChange === null || onSelectionChange === void 0 || onSelectionChange([...selectedIndices.filter((i) => i < overflowItemIndex), ...indices.map((i) => i + overflowItemIndex)]);
|
|
13148
|
+
};
|
|
13100
13149
|
const hasSelection = selectedIndices.length > 0;
|
|
13101
13150
|
const fallbackColor = theme === null || theme === void 0 || (_theme$palette = theme.palette) === null || _theme$palette === void 0 || (_theme$palette = _theme$palette.sds) === null || _theme$palette === void 0 || (_theme$palette = _theme$palette.base) === null || _theme$palette === void 0 ? void 0 : _theme$palette.ornamentSecondary;
|
|
13102
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LegendContainer, _objectSpread2(_objectSpread2({}, rest), {}, { children: items.map((item, index) => {
|
|
13103
|
-
const
|
|
13104
|
-
const
|
|
13151
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LegendContainer, _objectSpread2(_objectSpread2({}, rest), {}, { children: items.map((item, index) => {
|
|
13152
|
+
const opensMenu = isOverflowTrigger(index);
|
|
13153
|
+
const isHovered = opensMenu ? hoveredIndex !== null && hoveredIndex >= index : hoveredIndex === index;
|
|
13154
|
+
const isSelected = opensMenu ? selectedIndices.some((i) => i >= index) : selectedIndices.includes(index);
|
|
13105
13155
|
const isDimmed = item.disabled ? false : hoveredIndex !== null ? !isHovered && !isSelected : hasSelection && !isSelected;
|
|
13106
13156
|
const itemColor = (colors === null || colors === void 0 ? void 0 : colors[index]) || item.color || fallbackColor;
|
|
13107
13157
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(LegendItem, {
|
|
13108
13158
|
onMouseEnter: () => handleMouseEnter(item, index),
|
|
13109
13159
|
onMouseLeave: () => handleMouseLeave(item, index),
|
|
13110
|
-
onClick: () => handleClick(item, index),
|
|
13160
|
+
onClick: (event) => handleClick(item, index, event),
|
|
13111
13161
|
role: "button",
|
|
13112
13162
|
tabIndex: item.disabled ? -1 : 0,
|
|
13113
13163
|
"aria-label": `${item.name}${item.value ? `: ${item.value}` : ""}`,
|
|
13114
13164
|
"aria-pressed": isSelected,
|
|
13115
13165
|
"aria-disabled": item.disabled,
|
|
13166
|
+
"aria-haspopup": opensMenu ? "true" : void 0,
|
|
13167
|
+
"aria-expanded": opensMenu ? menuAnchor !== null : void 0,
|
|
13116
13168
|
isSelected,
|
|
13117
13169
|
disabled: item.disabled,
|
|
13118
13170
|
isHovered,
|
|
@@ -13131,14 +13183,28 @@ const Legend = (props) => {
|
|
|
13131
13183
|
})
|
|
13132
13184
|
]
|
|
13133
13185
|
}, `${item.name}-${index}`);
|
|
13134
|
-
}) }))
|
|
13186
|
+
}) })), hasOverflowMenu && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLegendPopover, {
|
|
13187
|
+
open: menuAnchor !== null,
|
|
13188
|
+
anchorEl: menuAnchor,
|
|
13189
|
+
onClose: () => setMenuAnchor(null),
|
|
13190
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Legend, {
|
|
13191
|
+
items: lastItemMenuItems,
|
|
13192
|
+
showValues,
|
|
13193
|
+
selectedIndices: selectedIndices.filter((i) => i >= overflowItemIndex).map((i) => i - overflowItemIndex),
|
|
13194
|
+
onSelectionChange: onSelectionChange ? handleMenuSelectionChange : void 0,
|
|
13195
|
+
hoveredIndex: hoveredIndex !== null && hoveredIndex >= overflowItemIndex ? hoveredIndex - overflowItemIndex : null,
|
|
13196
|
+
onItemMouseEnter: (item, index) => handleMouseEnter(item, index + overflowItemIndex),
|
|
13197
|
+
onItemMouseLeave: (item, index) => handleMouseLeave(item, index + overflowItemIndex),
|
|
13198
|
+
onItemClick: onItemClick ? (item, index) => onItemClick(item, index + overflowItemIndex) : void 0
|
|
13199
|
+
})
|
|
13200
|
+
})] });
|
|
13135
13201
|
};
|
|
13136
13202
|
//#endregion
|
|
13137
13203
|
//#region src/core/Link/style.ts
|
|
13138
13204
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$12() {
|
|
13139
13205
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
13140
13206
|
}
|
|
13141
|
-
const doNotForwardProps$
|
|
13207
|
+
const doNotForwardProps$18 = [
|
|
13142
13208
|
"sdsStyle",
|
|
13143
13209
|
"sdsSize",
|
|
13144
13210
|
"fontWeight"
|
|
@@ -13167,7 +13233,7 @@ const extraSmallStyle = (props) => {
|
|
|
13167
13233
|
};
|
|
13168
13234
|
const StyledLink = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Link, {
|
|
13169
13235
|
shouldForwardProp: (prop) => {
|
|
13170
|
-
return !doNotForwardProps$
|
|
13236
|
+
return !doNotForwardProps$18.includes(prop.toString());
|
|
13171
13237
|
},
|
|
13172
13238
|
target: "ecbcrkq0"
|
|
13173
13239
|
})("all:unset;", focusVisibleA11yStyle, " ", (props) => {
|
|
@@ -13190,9 +13256,9 @@ const Link = (0, react.forwardRef)((props, ref) => {
|
|
|
13190
13256
|
});
|
|
13191
13257
|
//#endregion
|
|
13192
13258
|
//#region src/core/List/style.ts
|
|
13193
|
-
const doNotForwardProps$
|
|
13259
|
+
const doNotForwardProps$17 = ["marginBottom", "ordered"];
|
|
13194
13260
|
const StyledList = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.List, {
|
|
13195
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13261
|
+
shouldForwardProp: (prop) => !doNotForwardProps$17.includes(prop),
|
|
13196
13262
|
target: "e1ch6n580"
|
|
13197
13263
|
})(".MuiListSubheader-root{", propsToMarginBottom$1, ";}", (props) => {
|
|
13198
13264
|
if (!props.ordered) return "";
|
|
@@ -13235,13 +13301,13 @@ const fontBodyS$1 = fontBody("s");
|
|
|
13235
13301
|
const fontBodyXs$2 = fontBody("xs");
|
|
13236
13302
|
const fontBodyXxs$1 = fontBody("xxs");
|
|
13237
13303
|
const fontBodyXxxs$1 = fontBody("xxxs");
|
|
13238
|
-
const doNotForwardProps$
|
|
13304
|
+
const doNotForwardProps$16 = [
|
|
13239
13305
|
"marginBottom",
|
|
13240
13306
|
"fontSize",
|
|
13241
13307
|
"ordered"
|
|
13242
13308
|
];
|
|
13243
13309
|
const StyledListItem = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.ListItem, {
|
|
13244
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13310
|
+
shouldForwardProp: (prop) => !doNotForwardProps$16.includes(prop),
|
|
13245
13311
|
target: "evkbwij1"
|
|
13246
13312
|
})(propsToMarginBottom, " ", propsToFontBody, " padding:0;", (props) => {
|
|
13247
13313
|
const { ordered } = props;
|
|
@@ -13334,9 +13400,9 @@ const tag = (props) => {
|
|
|
13334
13400
|
const semanticColors = getSemanticColors(props);
|
|
13335
13401
|
return /*#__PURE__*/ (0, _emotion_react.css)(fontCapsXxxxs(props), " background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen = semanticColors.accent) === null || _semanticColors$accen === void 0 ? void 0 : _semanticColors$accen.surfaceSecondary, ";border-radius:", corners === null || corners === void 0 ? void 0 : corners.rounded, "px;color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen2 = semanticColors.accent) === null || _semanticColors$accen2 === void 0 ? void 0 : _semanticColors$accen2.foreground, ";svg{path{fill:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen3 = semanticColors.accent) === null || _semanticColors$accen3 === void 0 ? void 0 : _semanticColors$accen3.foreground, ";}}");
|
|
13336
13402
|
};
|
|
13337
|
-
const doNotForwardProps$
|
|
13403
|
+
const doNotForwardProps$15 = ["sdsStyle"];
|
|
13338
13404
|
const StyledLoadingIndicator = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
13339
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13405
|
+
shouldForwardProp: (prop) => !doNotForwardProps$15.includes(prop),
|
|
13340
13406
|
target: "egvgfho0"
|
|
13341
13407
|
})((props) => {
|
|
13342
13408
|
const { sdsStyle } = props;
|
|
@@ -13406,17 +13472,17 @@ const StyledMenuItem = /*#__PURE__*/ (0, _emotion_styled_base.default)(MenuItem,
|
|
|
13406
13472
|
styles: "width:100%",
|
|
13407
13473
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$11
|
|
13408
13474
|
});
|
|
13409
|
-
const doNotForwardProps$
|
|
13475
|
+
const doNotForwardProps$14 = [
|
|
13410
13476
|
"search",
|
|
13411
13477
|
"InputBaseProps",
|
|
13412
13478
|
"keepSearchOnSelect"
|
|
13413
13479
|
];
|
|
13414
13480
|
const StyledAutocomplete = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Autocomplete, {
|
|
13415
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13481
|
+
shouldForwardProp: (prop) => !doNotForwardProps$14.includes(prop),
|
|
13416
13482
|
target: "ezmiyu42"
|
|
13417
13483
|
})(({ search }) => !search && "height: 0; margin: 0 !important;", " width:100%;");
|
|
13418
13484
|
const InputBaseWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
13419
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13485
|
+
shouldForwardProp: (prop) => !doNotForwardProps$14.includes(prop),
|
|
13420
13486
|
target: "ezmiyu41"
|
|
13421
13487
|
})((props) => {
|
|
13422
13488
|
const { search } = props;
|
|
@@ -13437,7 +13503,7 @@ const InputBaseWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("div",
|
|
|
13437
13503
|
`;
|
|
13438
13504
|
}, ";");
|
|
13439
13505
|
const StyledMenuInputSearch = /*#__PURE__*/ (0, _emotion_styled_base.default)(InputSearch, {
|
|
13440
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13506
|
+
shouldForwardProp: (prop) => !doNotForwardProps$14.includes(prop),
|
|
13441
13507
|
target: "ezmiyu40"
|
|
13442
13508
|
})("&&{margin:0;caret-color:", ({ search }) => search ? "auto" : "transparent", ";.", _mui_material.inputBaseClasses.root, "{width:100%;padding:0;padding-right:14px!important;}}");
|
|
13443
13509
|
//#endregion
|
|
@@ -13521,9 +13587,9 @@ inputMode: search ? "text" : "none" }, params.slotProps.input.ref), {}, { endAdo
|
|
|
13521
13587
|
};
|
|
13522
13588
|
//#endregion
|
|
13523
13589
|
//#region src/core/NavigationFooter/style.ts
|
|
13524
|
-
const doNotForwardProps$
|
|
13590
|
+
const doNotForwardProps$13 = ["hasInvertedStyle", "isNarrow"];
|
|
13525
13591
|
const StyledFooter = /*#__PURE__*/ (0, _emotion_styled_base.default)("footer", {
|
|
13526
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13592
|
+
shouldForwardProp: (prop) => !doNotForwardProps$13.includes(prop),
|
|
13527
13593
|
target: "e1s7ulzi8"
|
|
13528
13594
|
})((props) => {
|
|
13529
13595
|
const { isNarrow } = props;
|
|
@@ -13541,7 +13607,7 @@ const StyledFooter = /*#__PURE__*/ (0, _emotion_styled_base.default)("footer", {
|
|
|
13541
13607
|
`;
|
|
13542
13608
|
}, ";");
|
|
13543
13609
|
const StyledLogoWrapper$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
13544
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13610
|
+
shouldForwardProp: (prop) => !doNotForwardProps$13.includes(prop),
|
|
13545
13611
|
target: "e1s7ulzi7"
|
|
13546
13612
|
})((props) => {
|
|
13547
13613
|
const spaces = getSpaces(props);
|
|
@@ -13567,7 +13633,7 @@ const StyledLogoWrapper$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)("div
|
|
|
13567
13633
|
`];
|
|
13568
13634
|
}, ";}");
|
|
13569
13635
|
const StyledNavSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
13570
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13636
|
+
shouldForwardProp: (prop) => !doNotForwardProps$13.includes(prop),
|
|
13571
13637
|
target: "e1s7ulzi6"
|
|
13572
13638
|
})((props) => {
|
|
13573
13639
|
const { isNarrow } = props;
|
|
@@ -13588,7 +13654,7 @@ const StyledNavSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("div",
|
|
|
13588
13654
|
`;
|
|
13589
13655
|
}, ";");
|
|
13590
13656
|
const StyledTopSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
13591
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13657
|
+
shouldForwardProp: (prop) => !doNotForwardProps$13.includes(prop),
|
|
13592
13658
|
target: "e1s7ulzi5"
|
|
13593
13659
|
})((props) => {
|
|
13594
13660
|
const { isNarrow } = props;
|
|
@@ -13617,7 +13683,7 @@ const StyledTopSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("div",
|
|
|
13617
13683
|
`;
|
|
13618
13684
|
}, ";");
|
|
13619
13685
|
const StyledLinkSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
13620
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13686
|
+
shouldForwardProp: (prop) => !doNotForwardProps$13.includes(prop),
|
|
13621
13687
|
target: "e1s7ulzi4"
|
|
13622
13688
|
})("align-items:center;display:flex;.MuiDivider-root{height:18px;}", (props) => {
|
|
13623
13689
|
const { isNarrow } = props;
|
|
@@ -13638,7 +13704,7 @@ const StyledMobileLinkRow = /*#__PURE__*/ (0, _emotion_styled_base.default)("div
|
|
|
13638
13704
|
`;
|
|
13639
13705
|
}, ";");
|
|
13640
13706
|
const StyledImageSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
13641
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13707
|
+
shouldForwardProp: (prop) => !doNotForwardProps$13.includes(prop),
|
|
13642
13708
|
target: "e1s7ulzi2"
|
|
13643
13709
|
})("align-items:center;display:flex;", (props) => {
|
|
13644
13710
|
const { isNarrow } = props;
|
|
@@ -13662,7 +13728,7 @@ const StyledMobileImageRow = /*#__PURE__*/ (0, _emotion_styled_base.default)("di
|
|
|
13662
13728
|
`;
|
|
13663
13729
|
}, ";");
|
|
13664
13730
|
const StyledBottomSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
13665
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13731
|
+
shouldForwardProp: (prop) => !doNotForwardProps$13.includes(prop),
|
|
13666
13732
|
target: "e1s7ulzi0"
|
|
13667
13733
|
})("align-items:center;display:flex;justify-content:space-between;a:hover{text-decoration:none;}", (props) => {
|
|
13668
13734
|
const { isNarrow } = props;
|
|
@@ -13677,7 +13743,7 @@ const StyledBottomSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("div
|
|
|
13677
13743
|
}, ";");
|
|
13678
13744
|
//#endregion
|
|
13679
13745
|
//#region src/core/NavigationFooter/components/NavItem/style.ts
|
|
13680
|
-
const doNotForwardProps$
|
|
13746
|
+
const doNotForwardProps$12 = ["hasInvertedStyle", "isNarrow"];
|
|
13681
13747
|
const NarrowNavItemLinkStyles = (props) => {
|
|
13682
13748
|
const semanticColors = getSemanticColors(props);
|
|
13683
13749
|
const spaces = getSpaces(props);
|
|
@@ -13696,7 +13762,7 @@ const NarrowNavItemLinkStyles = (props) => {
|
|
|
13696
13762
|
`;
|
|
13697
13763
|
};
|
|
13698
13764
|
const StyledNavItemLink = /*#__PURE__*/ (0, _emotion_styled_base.default)(Link, {
|
|
13699
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13765
|
+
shouldForwardProp: (prop) => !doNotForwardProps$12.includes(prop),
|
|
13700
13766
|
target: "e1esv1b90"
|
|
13701
13767
|
})(fontBodyMediumS, " ", (props) => {
|
|
13702
13768
|
var _semanticColors$base, _semanticColors$base2, _semanticColors$base3, _semanticColors$base4, _semanticColors$accen;
|
|
@@ -13736,9 +13802,9 @@ const NavItem = (0, react.memo)(({ item, hasInvertedStyle, isNarrow }) => /* @__
|
|
|
13736
13802
|
NavItem.displayName = "NavItem";
|
|
13737
13803
|
//#endregion
|
|
13738
13804
|
//#region src/core/NavigationFooter/components/FooterLink/style.ts
|
|
13739
|
-
const doNotForwardProps$
|
|
13805
|
+
const doNotForwardProps$11 = ["hasInvertedStyle", "showDivider"];
|
|
13740
13806
|
const StyledLinkItemLink = /*#__PURE__*/ (0, _emotion_styled_base.default)(Link, {
|
|
13741
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13807
|
+
shouldForwardProp: (prop) => !doNotForwardProps$11.includes(prop),
|
|
13742
13808
|
target: "eoqhglp1"
|
|
13743
13809
|
})(fontBodyXxs, " ", (props) => {
|
|
13744
13810
|
var _semanticColors$accen;
|
|
@@ -13776,7 +13842,7 @@ const StyledLinkItemLink = /*#__PURE__*/ (0, _emotion_styled_base.default)(Link,
|
|
|
13776
13842
|
`;
|
|
13777
13843
|
}, ";");
|
|
13778
13844
|
const StyledDivider$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Divider, {
|
|
13779
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
13845
|
+
shouldForwardProp: (prop) => !doNotForwardProps$11.includes(prop),
|
|
13780
13846
|
target: "eoqhglp0"
|
|
13781
13847
|
})((props) => {
|
|
13782
13848
|
const semanticColors = getSemanticColors(props);
|
|
@@ -13948,9 +14014,9 @@ function NavigationFooter(_ref) {
|
|
|
13948
14014
|
logo,
|
|
13949
14015
|
title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: title }),
|
|
13950
14016
|
tag && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
|
|
13951
|
-
tagColor,
|
|
14017
|
+
color: tagColor,
|
|
13952
14018
|
label: tag,
|
|
13953
|
-
|
|
14019
|
+
size: "small"
|
|
13954
14020
|
})
|
|
13955
14021
|
]
|
|
13956
14022
|
});
|
|
@@ -14012,7 +14078,7 @@ function NavigationFooter(_ref) {
|
|
|
14012
14078
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$10() {
|
|
14013
14079
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
14014
14080
|
}
|
|
14015
|
-
const doNotForwardProps$
|
|
14081
|
+
const doNotForwardProps$10 = [
|
|
14016
14082
|
"hasInvertedStyle",
|
|
14017
14083
|
"isNarrow",
|
|
14018
14084
|
"primaryNavPosition",
|
|
@@ -14033,7 +14099,7 @@ const StyledTopComponentSlot = /*#__PURE__*/ (0, _emotion_styled_base.default)("
|
|
|
14033
14099
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$10
|
|
14034
14100
|
});
|
|
14035
14101
|
const StyledAppBar = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.AppBar, {
|
|
14036
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14102
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14037
14103
|
target: "e1bn4x3g34"
|
|
14038
14104
|
})((props) => {
|
|
14039
14105
|
const colors = getSemanticColors(props);
|
|
@@ -14059,7 +14125,7 @@ const NarrowToolbar = (props) => {
|
|
|
14059
14125
|
`;
|
|
14060
14126
|
};
|
|
14061
14127
|
const StyledToolbar = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Toolbar, {
|
|
14062
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14128
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14063
14129
|
target: "e1bn4x3g33"
|
|
14064
14130
|
})((props) => {
|
|
14065
14131
|
const { isNarrow } = props;
|
|
@@ -14075,7 +14141,7 @@ const StyledToolbar = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_mater
|
|
|
14075
14141
|
`;
|
|
14076
14142
|
}, ";");
|
|
14077
14143
|
const StyledHeaderButton = /*#__PURE__*/ (0, _emotion_styled_base.default)(Button, {
|
|
14078
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
14144
|
+
shouldForwardProp: (prop) => !doNotForwardProps$10.includes(prop),
|
|
14079
14145
|
target: "e1bn4x3g30"
|
|
14080
14146
|
})((props) => {
|
|
14081
14147
|
var _props$theme, _semanticColors$accen, _semanticColors$accen2, _semanticColors$accen3, _semanticColors$accen4, _semanticColors$base;
|
|
@@ -14116,7 +14182,7 @@ const invertedNarrowButtonStyles = (props) => {
|
|
|
14116
14182
|
`;
|
|
14117
14183
|
};
|
|
14118
14184
|
const StyledNarrowIconButton = /*#__PURE__*/ (0, _emotion_styled_base.default)(Button, {
|
|
14119
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
14185
|
+
shouldForwardProp: (prop) => !doNotForwardProps$10.includes(prop),
|
|
14120
14186
|
target: "e1bn4x3g29"
|
|
14121
14187
|
})((props) => {
|
|
14122
14188
|
const { hasInvertedStyle, isNarrow } = props;
|
|
@@ -14144,7 +14210,7 @@ const invertedWideButtonStyles = (props) => {
|
|
|
14144
14210
|
`;
|
|
14145
14211
|
};
|
|
14146
14212
|
const StyledWideIconButton = /*#__PURE__*/ (0, _emotion_styled_base.default)(Button, {
|
|
14147
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
14213
|
+
shouldForwardProp: (prop) => !doNotForwardProps$10.includes(prop),
|
|
14148
14214
|
target: "e1bn4x3g28"
|
|
14149
14215
|
})((props) => {
|
|
14150
14216
|
const { hasInvertedStyle } = props;
|
|
@@ -14154,7 +14220,7 @@ const StyledWideIconButton = /*#__PURE__*/ (0, _emotion_styled_base.default)(But
|
|
|
14154
14220
|
`;
|
|
14155
14221
|
}, ";");
|
|
14156
14222
|
const StyledLogoLinkWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)(Link, {
|
|
14157
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14223
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14158
14224
|
target: "e1bn4x3g27"
|
|
14159
14225
|
})("align-items:center;display:flex;text-decoration:none!important;", (props) => {
|
|
14160
14226
|
const { isNarrow } = props;
|
|
@@ -14179,7 +14245,7 @@ const NarrowTitleContainer = () => {
|
|
|
14179
14245
|
`;
|
|
14180
14246
|
};
|
|
14181
14247
|
const StyledTitleContainer = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14182
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14248
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14183
14249
|
target: "e1bn4x3g25"
|
|
14184
14250
|
})("display:flex;align-items:center;", (props) => {
|
|
14185
14251
|
const { isNarrow } = props;
|
|
@@ -14195,7 +14261,7 @@ const StyledTitleContainer = /*#__PURE__*/ (0, _emotion_styled_base.default)("di
|
|
|
14195
14261
|
`;
|
|
14196
14262
|
}, ";");
|
|
14197
14263
|
const StyledTitleTagWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14198
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14264
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14199
14265
|
target: "e1bn4x3g24"
|
|
14200
14266
|
})((props) => {
|
|
14201
14267
|
const spaces = getSpaces(props);
|
|
@@ -14211,7 +14277,7 @@ const StyledTitleTagWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("d
|
|
|
14211
14277
|
}
|
|
14212
14278
|
`;
|
|
14213
14279
|
}, ";");
|
|
14214
|
-
const StyledTag$
|
|
14280
|
+
const StyledTag$3 = /*#__PURE__*/ (0, _emotion_styled_base.default)(Tag, { target: "e1bn4x3g23" })(process.env.NODE_ENV === "production" ? {
|
|
14215
14281
|
name: "ti75j2",
|
|
14216
14282
|
styles: "margin:0"
|
|
14217
14283
|
} : {
|
|
@@ -14220,7 +14286,7 @@ const StyledTag$2 = /*#__PURE__*/ (0, _emotion_styled_base.default)(Tag, { targe
|
|
|
14220
14286
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$10
|
|
14221
14287
|
});
|
|
14222
14288
|
const StyledPrimaryNavContainer = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14223
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14289
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14224
14290
|
target: "e1bn4x3g22"
|
|
14225
14291
|
})("align-items:center;display:flex;flex-grow:1;", (props) => {
|
|
14226
14292
|
const { showSearch, primaryNavPosition, isNarrow } = props;
|
|
@@ -14236,7 +14302,7 @@ const StyledPrimaryNavContainer = /*#__PURE__*/ (0, _emotion_styled_base.default
|
|
|
14236
14302
|
`;
|
|
14237
14303
|
}, ";");
|
|
14238
14304
|
const StyledSearch = /*#__PURE__*/ (0, _emotion_styled_base.default)(InputSearch, {
|
|
14239
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
14305
|
+
shouldForwardProp: (prop) => !doNotForwardProps$10.includes(prop),
|
|
14240
14306
|
target: "e1bn4x3g21"
|
|
14241
14307
|
})("margin:0;width:100%;", (props) => {
|
|
14242
14308
|
var _semanticColors$base8, _semanticColors$base9, _semanticColors$base10, _semanticColors$base11, _semanticColors$base12, _semanticColors$base13, _semanticColors$base14, _semanticColors$base15, _semanticColors$base16, _semanticColors$base17;
|
|
@@ -14346,7 +14412,7 @@ const NarrowButtonStyles = (props) => {
|
|
|
14346
14412
|
`;
|
|
14347
14413
|
};
|
|
14348
14414
|
const StyledButtonSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("section", {
|
|
14349
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14415
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14350
14416
|
target: "e1bn4x3g20"
|
|
14351
14417
|
})("display:flex;align-items:center;z-index:100;", (props) => {
|
|
14352
14418
|
const { isNarrow } = props;
|
|
@@ -14360,7 +14426,7 @@ const StyledButtonSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("sec
|
|
|
14360
14426
|
}, ";");
|
|
14361
14427
|
const StyledDrawer$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Drawer, {
|
|
14362
14428
|
shouldForwardProp: (prop) => ![
|
|
14363
|
-
...doNotForwardProps$
|
|
14429
|
+
...doNotForwardProps$10,
|
|
14364
14430
|
"sdsStyle",
|
|
14365
14431
|
"topOffset"
|
|
14366
14432
|
].includes(prop),
|
|
@@ -14383,7 +14449,7 @@ const StyledDrawer$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_mate
|
|
|
14383
14449
|
`;
|
|
14384
14450
|
}, ";");
|
|
14385
14451
|
const StyledDrawerContent = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14386
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14452
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14387
14453
|
target: "e1bn4x3g18"
|
|
14388
14454
|
})((props) => {
|
|
14389
14455
|
const spaces = getSpaces(props);
|
|
@@ -14396,7 +14462,7 @@ const StyledDrawerContent = /*#__PURE__*/ (0, _emotion_styled_base.default)("div
|
|
|
14396
14462
|
`;
|
|
14397
14463
|
}, ";");
|
|
14398
14464
|
const StyledNarrowHamburgerMenuButton = /*#__PURE__*/ (0, _emotion_styled_base.default)(Button, {
|
|
14399
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
14465
|
+
shouldForwardProp: (prop) => !doNotForwardProps$10.includes(prop),
|
|
14400
14466
|
target: "e1bn4x3g17"
|
|
14401
14467
|
})((props) => {
|
|
14402
14468
|
var _iconSizes$l, _iconSizes$l2;
|
|
@@ -14436,7 +14502,7 @@ const DrawerAccordionStyles = (props) => {
|
|
|
14436
14502
|
`;
|
|
14437
14503
|
};
|
|
14438
14504
|
const StyledAccordion = /*#__PURE__*/ (0, _emotion_styled_base.default)(Accordion, {
|
|
14439
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14505
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14440
14506
|
target: "e1bn4x3g16"
|
|
14441
14507
|
})("padding:0!important;width:100%;min-width:unset;.MuiAccordionSummary-content{", fontBodyMediumL, ";}.MuiAccordionDetails-root .MuiButtonBase-root .primary-text{", fontBodyS, ";}", (props) => {
|
|
14442
14508
|
var _semanticColors$base22, _semanticColors$base23, _semanticColors$base24, _spaces$l, _spaces$l2, _semanticColors$base25, _semanticColors$base26, _semanticColors$base27, _semanticColors$base28, _semanticColors$base29, _semanticColors$base30, _semanticColors$base31, _semanticColors$accen5;
|
|
@@ -14549,7 +14615,7 @@ const StyledAccordion = /*#__PURE__*/ (0, _emotion_styled_base.default)(Accordio
|
|
|
14549
14615
|
`;
|
|
14550
14616
|
}, ";");
|
|
14551
14617
|
const StyledSectionDivider = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Divider, {
|
|
14552
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14618
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14553
14619
|
target: "e1bn4x3g15"
|
|
14554
14620
|
})((props) => {
|
|
14555
14621
|
const semanticColors = getSemanticColors(props);
|
|
@@ -14561,7 +14627,7 @@ const StyledSectionDivider = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mu
|
|
|
14561
14627
|
}, ";");
|
|
14562
14628
|
const StyledMegaMenuDrawer = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Drawer, {
|
|
14563
14629
|
shouldForwardProp: (prop) => ![
|
|
14564
|
-
...doNotForwardProps$
|
|
14630
|
+
...doNotForwardProps$10,
|
|
14565
14631
|
"sdsStyle",
|
|
14566
14632
|
"topOffset"
|
|
14567
14633
|
].includes(prop),
|
|
@@ -14597,7 +14663,7 @@ const StyledMegaMenuDrawer = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mu
|
|
|
14597
14663
|
`;
|
|
14598
14664
|
}, ";");
|
|
14599
14665
|
const StyledMegaMenuContent = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14600
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14666
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14601
14667
|
target: "e1bn4x3g13"
|
|
14602
14668
|
})((props) => {
|
|
14603
14669
|
const { hasInvertedStyle } = props;
|
|
@@ -14617,7 +14683,7 @@ const StyledMegaMenuContent = /*#__PURE__*/ (0, _emotion_styled_base.default)("d
|
|
|
14617
14683
|
}, ";");
|
|
14618
14684
|
const StyledHoverDrawerColumn = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14619
14685
|
shouldForwardProp: (prop) => ![
|
|
14620
|
-
...doNotForwardProps$
|
|
14686
|
+
...doNotForwardProps$10,
|
|
14621
14687
|
"sdsStyle",
|
|
14622
14688
|
"totalColumns"
|
|
14623
14689
|
].includes(prop),
|
|
@@ -14650,7 +14716,7 @@ const StyledContentWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("di
|
|
|
14650
14716
|
`;
|
|
14651
14717
|
}, ";");
|
|
14652
14718
|
const StyledHoverDrawerColumnHeader = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14653
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14719
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14654
14720
|
target: "e1bn4x3g10"
|
|
14655
14721
|
})((props) => {
|
|
14656
14722
|
const { hasInvertedStyle } = props;
|
|
@@ -14665,7 +14731,7 @@ const StyledHoverDrawerColumnHeader = /*#__PURE__*/ (0, _emotion_styled_base.def
|
|
|
14665
14731
|
`;
|
|
14666
14732
|
}, ";");
|
|
14667
14733
|
const StyledHoverDrawerItem = /*#__PURE__*/ (0, _emotion_styled_base.default)(Button, {
|
|
14668
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14734
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14669
14735
|
target: "e1bn4x3g9"
|
|
14670
14736
|
})((props) => {
|
|
14671
14737
|
var _iconSizes$l3, _iconSizes$s, _iconSizes$l4, _iconSizes$s2, _semanticColors$base32, _semanticColors$base33, _semanticColors$accen6;
|
|
@@ -14707,7 +14773,7 @@ const StyledHoverDrawerItem = /*#__PURE__*/ (0, _emotion_styled_base.default)(Bu
|
|
|
14707
14773
|
`;
|
|
14708
14774
|
}, ";");
|
|
14709
14775
|
const StyledHoverDrawerItemContent = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14710
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14776
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14711
14777
|
target: "e1bn4x3g8"
|
|
14712
14778
|
})((props) => {
|
|
14713
14779
|
const spaces = getSpaces(props);
|
|
@@ -14719,7 +14785,7 @@ const StyledHoverDrawerItemContent = /*#__PURE__*/ (0, _emotion_styled_base.defa
|
|
|
14719
14785
|
`;
|
|
14720
14786
|
}, ";");
|
|
14721
14787
|
const StyledHoverDrawerItemIcon = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14722
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14788
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14723
14789
|
target: "e1bn4x3g7"
|
|
14724
14790
|
})((props) => {
|
|
14725
14791
|
var _semanticColors$accen7, _semanticColors$accen8;
|
|
@@ -14739,7 +14805,7 @@ const StyledHoverDrawerItemIcon = /*#__PURE__*/ (0, _emotion_styled_base.default
|
|
|
14739
14805
|
`;
|
|
14740
14806
|
}, ";");
|
|
14741
14807
|
const StyledHoverDrawerItemText = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14742
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14808
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14743
14809
|
target: "e1bn4x3g6"
|
|
14744
14810
|
})(() => {
|
|
14745
14811
|
return _mui_material.css`
|
|
@@ -14751,7 +14817,7 @@ const StyledHoverDrawerItemText = /*#__PURE__*/ (0, _emotion_styled_base.default
|
|
|
14751
14817
|
`;
|
|
14752
14818
|
}, ";");
|
|
14753
14819
|
const EmptyIcon = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14754
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14820
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14755
14821
|
target: "e1bn4x3g5"
|
|
14756
14822
|
})((props) => {
|
|
14757
14823
|
var _iconSize$l, _iconSize$s, _iconSize$l2, _iconSize$s2;
|
|
@@ -14766,7 +14832,7 @@ const EmptyIcon = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
|
14766
14832
|
`;
|
|
14767
14833
|
}, ";");
|
|
14768
14834
|
const StyledHoverDrawerItemTitle = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14769
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14835
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14770
14836
|
target: "e1bn4x3g4"
|
|
14771
14837
|
})((props) => {
|
|
14772
14838
|
const { hasInvertedStyle, hasDetails } = props;
|
|
@@ -14786,7 +14852,7 @@ const StyledHoverDrawerItemTitle = /*#__PURE__*/ (0, _emotion_styled_base.defaul
|
|
|
14786
14852
|
`;
|
|
14787
14853
|
}, ";");
|
|
14788
14854
|
const StyledHoverDrawerItemDetails = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14789
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14855
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14790
14856
|
target: "e1bn4x3g3"
|
|
14791
14857
|
})((props) => {
|
|
14792
14858
|
const { hasInvertedStyle } = props;
|
|
@@ -14801,7 +14867,7 @@ const StyledHoverDrawerItemDetails = /*#__PURE__*/ (0, _emotion_styled_base.defa
|
|
|
14801
14867
|
`;
|
|
14802
14868
|
}, ";");
|
|
14803
14869
|
const StyledHoverDrawerActions = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14804
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14870
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14805
14871
|
target: "e1bn4x3g2"
|
|
14806
14872
|
})((props) => {
|
|
14807
14873
|
const spaces = getSpaces(props);
|
|
@@ -14830,7 +14896,7 @@ const StyledButton = /*#__PURE__*/ (0, _emotion_styled_base.default)(Button, { t
|
|
|
14830
14896
|
`;
|
|
14831
14897
|
}, ";");
|
|
14832
14898
|
const StyledHoverDrawerContainer = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14833
|
-
shouldForwardProp: (prop) => ![...doNotForwardProps$
|
|
14899
|
+
shouldForwardProp: (prop) => ![...doNotForwardProps$10, "sdsStyle"].includes(prop),
|
|
14834
14900
|
target: "e1bn4x3g0"
|
|
14835
14901
|
})(process.env.NODE_ENV === "production" ? {
|
|
14836
14902
|
name: "bjn8wh",
|
|
@@ -14847,7 +14913,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__$9() {
|
|
|
14847
14913
|
}
|
|
14848
14914
|
process.env.NODE_ENV;
|
|
14849
14915
|
process.env.NODE_ENV;
|
|
14850
|
-
const StyledTag$
|
|
14916
|
+
const StyledTag$2 = /*#__PURE__*/ (0, _emotion_styled_base.default)(Tag, { target: "etq4jsl1" })(process.env.NODE_ENV === "production" ? {
|
|
14851
14917
|
name: "ti75j2",
|
|
14852
14918
|
styles: "margin:0"
|
|
14853
14919
|
} : {
|
|
@@ -14860,7 +14926,7 @@ const StyledTag$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)(Tag, { targe
|
|
|
14860
14926
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$8() {
|
|
14861
14927
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
14862
14928
|
}
|
|
14863
|
-
const doNotForwardProps$
|
|
14929
|
+
const doNotForwardProps$9 = [
|
|
14864
14930
|
"active",
|
|
14865
14931
|
"hasInvertedStyle",
|
|
14866
14932
|
"isNarrow",
|
|
@@ -14899,7 +14965,7 @@ const NarrowNavItemStyles = (props) => {
|
|
|
14899
14965
|
return /*#__PURE__*/ (0, _emotion_react.css)(active ? fontBodySemiboldL(props) : fontBodyMediumL(props), " border-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.m, "px!important;", navVariant === "primary" ? "justify-content: start;" : "", " ", innerSdsStyle === "drawer" ? _ref2$1 : /*#__PURE__*/ (0, _emotion_react.css)("background-color:", active ? hasInvertedStyle ? semanticColors === null || semanticColors === void 0 || (_semanticColors$base3 = semanticColors.base) === null || _semanticColors$base3 === void 0 ? void 0 : _semanticColors$base3.fillPrimaryPressedOnDark : semanticColors === null || semanticColors === void 0 || (_semanticColors$base4 = semanticColors.base) === null || _semanticColors$base4 === void 0 ? void 0 : _semanticColors$base4.fillPrimaryPressed : "transparent", ";"), " width:100%;height:unset!important;&:hover{", innerSdsStyle === "drawer" ? _ref$1 : /*#__PURE__*/ (0, _emotion_react.css)("background:", hasInvertedStyle ? semanticColors === null || semanticColors === void 0 || (_semanticColors$base5 = semanticColors.base) === null || _semanticColors$base5 === void 0 ? void 0 : _semanticColors$base5.fillPrimaryInteractionOnDark : semanticColors === null || semanticColors === void 0 || (_semanticColors$base6 = semanticColors.base) === null || _semanticColors$base6 === void 0 ? void 0 : _semanticColors$base6.fillPrimaryInteraction, ";"), " box-shadow:none;", navVariant === "primary" && StyledLabel, "{color:", hasInvertedStyle ? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryOnDark : semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary, ";}svg{color:", ChevronHoverColor, "!important;}}");
|
|
14900
14966
|
};
|
|
14901
14967
|
const UnifiedNavItem = /*#__PURE__*/ (0, _emotion_styled_base.default)(Button, {
|
|
14902
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
14968
|
+
shouldForwardProp: (prop) => !doNotForwardProps$9.includes(prop),
|
|
14903
14969
|
target: "e810m81"
|
|
14904
14970
|
})("display:flex;align-items:center;min-width:fit-content;border:none;background:transparent;height:unset!important;", (props) => {
|
|
14905
14971
|
var _semanticColors$base7, _semanticColors$base8, _semanticColors$base9, _semanticColors$base10, _semanticColors$base11;
|
|
@@ -14915,7 +14981,7 @@ const UnifiedNavItem = /*#__PURE__*/ (0, _emotion_styled_base.default)(Button, {
|
|
|
14915
14981
|
return [navVariant === "secondary" && (active ? fontBodySemiboldS(props) : fontBodyMediumS(props)), /*#__PURE__*/ (0, _emotion_react.css)("padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xxxs, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;border-radius:", corners === null || corners === void 0 ? void 0 : corners.l, "px;background-color:", active ? hasInvertedStyle ? semanticColors === null || semanticColors === void 0 || (_semanticColors$base8 = semanticColors.base) === null || _semanticColors$base8 === void 0 ? void 0 : _semanticColors$base8.fillPrimaryPressedOnDark : semanticColors === null || semanticColors === void 0 || (_semanticColors$base9 = semanticColors.base) === null || _semanticColors$base9 === void 0 ? void 0 : _semanticColors$base9.fillPrimaryPressed : "transparent", ";", navVariant === "secondary" ? /*#__PURE__*/ (0, _emotion_react.css)("gap:", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;color:", active ? textActiveColor : textDefaultColor, ";justify-content:flex-start;width:fit-content;&>span{gap:", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px!important;}") : "", " svg{color:", active ? ChevronOpenColor : ChevronDefaultColor, ";}&:hover{background:", hasInvertedStyle ? semanticColors === null || semanticColors === void 0 || (_semanticColors$base10 = semanticColors.base) === null || _semanticColors$base10 === void 0 ? void 0 : _semanticColors$base10.fillPrimaryInteractionOnDark : semanticColors === null || semanticColors === void 0 || (_semanticColors$base11 = semanticColors.base) === null || _semanticColors$base11 === void 0 ? void 0 : _semanticColors$base11.fillPrimaryInteraction, "!important;box-shadow:none;", navVariant === "primary" && StyledLabel, "{color:", hasInvertedStyle ? semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimaryOnDark : semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors.base.textPrimary, ";}svg{color:", ChevronHoverColor, "!important;}}", isNarrow && NarrowNavItemStyles(props), ";")];
|
|
14916
14982
|
}, ";");
|
|
14917
14983
|
const StyledLabel = /*#__PURE__*/ (0, _emotion_styled_base.default)("span", {
|
|
14918
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
14984
|
+
shouldForwardProp: (prop) => !doNotForwardProps$9.includes(prop),
|
|
14919
14985
|
target: "e810m80"
|
|
14920
14986
|
})((props) => {
|
|
14921
14987
|
const { hasInvertedStyle, active, isNarrow } = props;
|
|
@@ -14930,7 +14996,7 @@ const StyledLabel = /*#__PURE__*/ (0, _emotion_styled_base.default)("span", {
|
|
|
14930
14996
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$7() {
|
|
14931
14997
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
14932
14998
|
}
|
|
14933
|
-
const doNotForwardProps$
|
|
14999
|
+
const doNotForwardProps$8 = [
|
|
14934
15000
|
"isNarrow",
|
|
14935
15001
|
"hasSection",
|
|
14936
15002
|
"hasInvertedStyle",
|
|
@@ -14942,7 +15008,7 @@ const NarrowStyledSection = (props) => {
|
|
|
14942
15008
|
return /*#__PURE__*/ (0, _emotion_react.css)("align-items:start;flex-direction:column;margin-top:", spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;");
|
|
14943
15009
|
};
|
|
14944
15010
|
const StyledSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("section", {
|
|
14945
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15011
|
+
shouldForwardProp: (prop) => !doNotForwardProps$8.includes(prop),
|
|
14946
15012
|
target: "e13tbovl6"
|
|
14947
15013
|
})("display:flex;align-items:center;", (props) => {
|
|
14948
15014
|
const { isNarrow } = props;
|
|
@@ -14950,7 +15016,7 @@ const StyledSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("section",
|
|
|
14950
15016
|
return /*#__PURE__*/ (0, _emotion_react.css)("column-gap:", spaces === null || spaces === void 0 ? void 0 : spaces.m, "px;row-gap:", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;", isNarrow && NarrowStyledSection(props), ";");
|
|
14951
15017
|
}, ";");
|
|
14952
15018
|
const StyledSectionHeader = /*#__PURE__*/ (0, _emotion_styled_base.default)(ListSubheader, {
|
|
14953
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15019
|
+
shouldForwardProp: (prop) => !doNotForwardProps$8.includes(prop),
|
|
14954
15020
|
target: "e13tbovl5"
|
|
14955
15021
|
})((props) => {
|
|
14956
15022
|
const { isNarrow, hasInvertedStyle, sdsStyle } = props;
|
|
@@ -14970,7 +15036,7 @@ const StyledSectionHeader = /*#__PURE__*/ (0, _emotion_styled_base.default)(List
|
|
|
14970
15036
|
return /*#__PURE__*/ (0, _emotion_react.css)("&.MuiListSubheader-root{", fontCapsXxxxs(props), " top:0;color:", getTextColor(), ";background-color:", getBackgroundColor(), ";padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px ", isNarrow ? spaces === null || spaces === void 0 ? void 0 : spaces.xl : spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;margin-bottom:0;}");
|
|
14971
15037
|
}, ";");
|
|
14972
15038
|
const StyledAccordionDetails = /*#__PURE__*/ (0, _emotion_styled_base.default)(AccordionDetails, {
|
|
14973
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15039
|
+
shouldForwardProp: (prop) => !doNotForwardProps$8.includes(prop),
|
|
14974
15040
|
target: "e13tbovl4"
|
|
14975
15041
|
})((props) => {
|
|
14976
15042
|
const { sdsStyle } = props;
|
|
@@ -14986,7 +15052,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
14986
15052
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
|
|
14987
15053
|
};
|
|
14988
15054
|
const StyledAccordionSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
14989
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15055
|
+
shouldForwardProp: (prop) => !doNotForwardProps$8.includes(prop),
|
|
14990
15056
|
target: "e13tbovl3"
|
|
14991
15057
|
})((props) => {
|
|
14992
15058
|
const { sdsStyle, hasInvertedStyle } = props;
|
|
@@ -15000,7 +15066,7 @@ const StyledAccordionSection = /*#__PURE__*/ (0, _emotion_styled_base.default)("
|
|
|
15000
15066
|
return _ref2;
|
|
15001
15067
|
}, ";");
|
|
15002
15068
|
const StyledDivider = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Divider, {
|
|
15003
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15069
|
+
shouldForwardProp: (prop) => !doNotForwardProps$8.includes(prop),
|
|
15004
15070
|
target: "e13tbovl2"
|
|
15005
15071
|
})((props) => {
|
|
15006
15072
|
const { hasSection, isNarrow, hasInvertedStyle } = props;
|
|
@@ -15125,7 +15191,7 @@ function DrawerContent({ drawerItems, sectionProps, section, hasMultipleSections
|
|
|
15125
15191
|
}
|
|
15126
15192
|
//#endregion
|
|
15127
15193
|
//#region src/core/NavigationHeader/components/shared/AccordionNavItemStyle.ts
|
|
15128
|
-
const doNotForwardProps$
|
|
15194
|
+
const doNotForwardProps$7 = [
|
|
15129
15195
|
"hasInvertedStyle",
|
|
15130
15196
|
"hasCaption",
|
|
15131
15197
|
"iconSize",
|
|
@@ -15134,7 +15200,7 @@ const doNotForwardProps$6 = [
|
|
|
15134
15200
|
"sdsStyle"
|
|
15135
15201
|
];
|
|
15136
15202
|
const StyledDrawerNavItem = /*#__PURE__*/ (0, _emotion_styled_base.default)(Button, {
|
|
15137
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15203
|
+
shouldForwardProp: (prop) => !doNotForwardProps$7.includes(prop),
|
|
15138
15204
|
target: "e1s6tb7t4"
|
|
15139
15205
|
})((props) => {
|
|
15140
15206
|
var _semanticColors$base, _semanticColors$base2, _iconSizes$l, _iconSizes$s, _iconSizes$l2, _iconSizes$s2;
|
|
@@ -15145,14 +15211,14 @@ const StyledDrawerNavItem = /*#__PURE__*/ (0, _emotion_styled_base.default)(Butt
|
|
|
15145
15211
|
return /*#__PURE__*/ (0, _emotion_react.css)("display:flex;justify-content:start;background-color:transparent!important;background-image:none!important;border:none!important;outline:none!important;box-shadow:none!important;align-items:center;text-align:left;gap:", spaces === null || spaces === void 0 ? void 0 : spaces.l, "px!important;padding:", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px 0!important;&>span{gap:", spaces === null || spaces === void 0 ? void 0 : spaces.l, "px!important;}cursor:pointer;border-radius:8px;transition:background-color 150ms;color:", textColor, ";height:unset!important;svg{width:", props.hasCaption ? iconSizes === null || iconSizes === void 0 || (_iconSizes$l = iconSizes.l) === null || _iconSizes$l === void 0 ? void 0 : _iconSizes$l.width : iconSizes === null || iconSizes === void 0 || (_iconSizes$s = iconSizes.s) === null || _iconSizes$s === void 0 ? void 0 : _iconSizes$s.width, "px!important;height:", props.hasCaption ? iconSizes === null || iconSizes === void 0 || (_iconSizes$l2 = iconSizes.l) === null || _iconSizes$l2 === void 0 ? void 0 : _iconSizes$l2.height : iconSizes === null || iconSizes === void 0 || (_iconSizes$s2 = iconSizes.s) === null || _iconSizes$s2 === void 0 ? void 0 : _iconSizes$s2.height, "px!important;}&:hover{background-color:transparent;background-image:none;border:none;outline:none;box-shadow:none;}");
|
|
15146
15212
|
}, ";");
|
|
15147
15213
|
const StyledDrawerNavItemContent = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
15148
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15214
|
+
shouldForwardProp: (prop) => !doNotForwardProps$7.includes(prop),
|
|
15149
15215
|
target: "e1s6tb7t3"
|
|
15150
15216
|
})((props) => {
|
|
15151
15217
|
const spaces = getSpaces(props);
|
|
15152
15218
|
return /*#__PURE__*/ (0, _emotion_react.css)("display:flex;flex-direction:column;gap:0!important;flex:1;min-width:0;padding-top:", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;");
|
|
15153
15219
|
}, ";");
|
|
15154
15220
|
const StyledDrawerNavItemText = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
15155
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15221
|
+
shouldForwardProp: (prop) => !doNotForwardProps$7.includes(prop),
|
|
15156
15222
|
target: "e1s6tb7t2"
|
|
15157
15223
|
})((props) => {
|
|
15158
15224
|
var _semanticColors$base3, _semanticColors$base4;
|
|
@@ -15162,7 +15228,7 @@ const StyledDrawerNavItemText = /*#__PURE__*/ (0, _emotion_styled_base.default)(
|
|
|
15162
15228
|
return /*#__PURE__*/ (0, _emotion_react.css)(hasDetails ? fontBodySemiboldS(props) : fontBodyMediumS(props), " color:", textColor, ";overflow:hidden;text-overflow:ellipsis;white-space:normal;line-height:24px;");
|
|
15163
15229
|
}, ";");
|
|
15164
15230
|
const StyledDrawerNavItemCaption = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
15165
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15231
|
+
shouldForwardProp: (prop) => !doNotForwardProps$7.includes(prop),
|
|
15166
15232
|
target: "e1s6tb7t1"
|
|
15167
15233
|
})((props) => {
|
|
15168
15234
|
var _semanticColors$base5, _semanticColors$base6;
|
|
@@ -15171,7 +15237,7 @@ const StyledDrawerNavItemCaption = /*#__PURE__*/ (0, _emotion_styled_base.defaul
|
|
|
15171
15237
|
return /*#__PURE__*/ (0, _emotion_react.css)(fontBodyXs(props), " color:", captionColor, ";white-space:normal;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;");
|
|
15172
15238
|
}, ";");
|
|
15173
15239
|
const StyledIconWrapper = /*#__PURE__*/ (0, _emotion_styled_base.default)("div", {
|
|
15174
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
15240
|
+
shouldForwardProp: (prop) => !doNotForwardProps$7.includes(prop),
|
|
15175
15241
|
target: "e1s6tb7t0"
|
|
15176
15242
|
})((props) => {
|
|
15177
15243
|
const { iconSize } = props;
|
|
@@ -15640,10 +15706,10 @@ function NavigationHeaderPrimaryNav({ menuProps, hasInvertedStyle, isNarrow, ite
|
|
|
15640
15706
|
isNarrow,
|
|
15641
15707
|
children: label
|
|
15642
15708
|
}),
|
|
15643
|
-
tag && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag$
|
|
15709
|
+
tag && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag$2, {
|
|
15644
15710
|
label: tag,
|
|
15645
15711
|
color: tagColor,
|
|
15646
|
-
|
|
15712
|
+
size: "small"
|
|
15647
15713
|
})
|
|
15648
15714
|
]
|
|
15649
15715
|
})
|
|
@@ -15740,7 +15806,7 @@ function NavigationHeaderPrimaryNav({ menuProps, hasInvertedStyle, isNarrow, ite
|
|
|
15740
15806
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$6() {
|
|
15741
15807
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
15742
15808
|
}
|
|
15743
|
-
const StyledTag = /*#__PURE__*/ (0, _emotion_styled_base.default)(Tag, { target: "es7myp0" })(process.env.NODE_ENV === "production" ? {
|
|
15809
|
+
const StyledTag$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)(Tag, { target: "es7myp0" })(process.env.NODE_ENV === "production" ? {
|
|
15744
15810
|
name: "ti75j2",
|
|
15745
15811
|
styles: "margin:0"
|
|
15746
15812
|
} : {
|
|
@@ -15931,10 +15997,10 @@ function NavigationHeaderSecondaryNav({ menuProps, items, hasInvertedStyle, isNa
|
|
|
15931
15997
|
sdsStyle: "minimal",
|
|
15932
15998
|
navVariant: "secondary",
|
|
15933
15999
|
size: "medium",
|
|
15934
|
-
children: [label, tag && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag, {
|
|
16000
|
+
children: [label, tag && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag$1, {
|
|
15935
16001
|
label: tag,
|
|
15936
16002
|
color: tagColor,
|
|
15937
|
-
|
|
16003
|
+
size: "small"
|
|
15938
16004
|
})]
|
|
15939
16005
|
}), key);
|
|
15940
16006
|
};
|
|
@@ -16205,10 +16271,10 @@ const NavigationHeader = (0, react.forwardRef)((props, ref) => {
|
|
|
16205
16271
|
let logoNode = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledTitleContainer, {
|
|
16206
16272
|
hasInvertedStyle,
|
|
16207
16273
|
isNarrow: dimensions.isNarrow,
|
|
16208
|
-
children: [logo && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLogoWrapper, { children: logo }), (title || tag) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledTitleTagWrapper, { children: [title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: title }), tag && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag$
|
|
16274
|
+
children: [logo && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLogoWrapper, { children: logo }), (title || tag) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(StyledTitleTagWrapper, { children: [title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: title }), tag && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag$3, {
|
|
16209
16275
|
color: tagColor,
|
|
16210
16276
|
label: tag,
|
|
16211
|
-
|
|
16277
|
+
size: "small"
|
|
16212
16278
|
})] })]
|
|
16213
16279
|
});
|
|
16214
16280
|
if (logoLinkComponent || logoUrl) logoNode = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledLogoLinkWrapper, _objectSpread2(_objectSpread2({
|
|
@@ -16452,14 +16518,14 @@ const useScrollStopListener = (callback, timeout = 50) => {
|
|
|
16452
16518
|
};
|
|
16453
16519
|
//#endregion
|
|
16454
16520
|
//#region src/core/NavigationJumpTo/style.ts
|
|
16455
|
-
const doNotForwardProps$
|
|
16521
|
+
const doNotForwardProps$6 = [
|
|
16456
16522
|
"items",
|
|
16457
16523
|
"sdsIndicatorColor",
|
|
16458
16524
|
"width",
|
|
16459
16525
|
"isSubItem"
|
|
16460
16526
|
];
|
|
16461
16527
|
const StyledTabs$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Tabs, {
|
|
16462
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
16528
|
+
shouldForwardProp: (prop) => !doNotForwardProps$6.includes(prop),
|
|
16463
16529
|
target: "e1svjln41"
|
|
16464
16530
|
})((props) => {
|
|
16465
16531
|
var _semanticColors$base, _semanticColors$accen;
|
|
@@ -16498,7 +16564,7 @@ const StyledTabs$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_materi
|
|
|
16498
16564
|
`;
|
|
16499
16565
|
}, ";");
|
|
16500
16566
|
const StyledTab$1 = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Tab, {
|
|
16501
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
16567
|
+
shouldForwardProp: (prop) => !doNotForwardProps$6.includes(prop),
|
|
16502
16568
|
target: "e1svjln40"
|
|
16503
16569
|
})(fontBodyMediumXs, " ", (props) => {
|
|
16504
16570
|
var _semanticColors$base2, _semanticColors$base3, _semanticColors$base4, _semanticColors$base5;
|
|
@@ -16734,9 +16800,9 @@ const NavigationJumpTo = (0, react.forwardRef)((props, ref) => {
|
|
|
16734
16800
|
//#endregion
|
|
16735
16801
|
//#region src/core/Notification/style.ts
|
|
16736
16802
|
const fontBodyXs$1 = fontBody("xs");
|
|
16737
|
-
const doNotForwardProps$
|
|
16803
|
+
const doNotForwardProps$5 = ["slideDirection"];
|
|
16738
16804
|
const StyledNotification = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Alert, {
|
|
16739
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
16805
|
+
shouldForwardProp: (prop) => !doNotForwardProps$5.includes(prop),
|
|
16740
16806
|
target: "e1ktql9t2"
|
|
16741
16807
|
})(fontBodyXs$1, " ", (props) => {
|
|
16742
16808
|
var _semanticColors$inten, _semanticColors$inten2, _semanticColors$inten3, _semanticColors$inten4, _semanticColors$base, _semanticColors$inten5;
|
|
@@ -16919,7 +16985,7 @@ const Notification = (_ref) => {
|
|
|
16919
16985
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$5() {
|
|
16920
16986
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
16921
16987
|
}
|
|
16922
|
-
const doNotForwardProps$
|
|
16988
|
+
const doNotForwardProps$4 = [
|
|
16923
16989
|
"sdsStyle",
|
|
16924
16990
|
"selected",
|
|
16925
16991
|
"onPageChange",
|
|
@@ -16953,7 +17019,7 @@ const StyledPaginationButton = /*#__PURE__*/ (0, _emotion_styled_base.default)(B
|
|
|
16953
17019
|
`;
|
|
16954
17020
|
}, ";");
|
|
16955
17021
|
const StyledPaginationChevronList = /*#__PURE__*/ (0, _emotion_styled_base.default)("li", {
|
|
16956
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
17022
|
+
shouldForwardProp: (prop) => !doNotForwardProps$4.includes(prop),
|
|
16957
17023
|
target: "e61vbx3"
|
|
16958
17024
|
})((props) => {
|
|
16959
17025
|
var _semanticColors$base3, _semanticColors$base4, _semanticColors$base5, _semanticColors$base6, _semanticColors$base7;
|
|
@@ -16994,7 +17060,7 @@ const StyledPaginationChevronList = /*#__PURE__*/ (0, _emotion_styled_base.defau
|
|
|
16994
17060
|
`;
|
|
16995
17061
|
}, ";");
|
|
16996
17062
|
const StyledPagination = /*#__PURE__*/ (0, _emotion_styled_base.default)("ul", {
|
|
16997
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
17063
|
+
shouldForwardProp: (prop) => !doNotForwardProps$4.includes(prop),
|
|
16998
17064
|
target: "e61vbx2"
|
|
16999
17065
|
})(fontBodyS, " display:flex;flex-wrap:wrap;padding:0;margin:0;& li{list-style:none;}");
|
|
17000
17066
|
const selectedPageStyle = (props) => {
|
|
@@ -17003,7 +17069,7 @@ const selectedPageStyle = (props) => {
|
|
|
17003
17069
|
return /*#__PURE__*/ (0, _emotion_react.css)("background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base8 = semanticColors.base) === null || _semanticColors$base8 === void 0 ? void 0 : _semanticColors$base8.fillPrimaryInteraction, ";color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base9 = semanticColors.base) === null || _semanticColors$base9 === void 0 ? void 0 : _semanticColors$base9.textPrimary, ";box-shadow:inset 0 0 0 1px ", semanticColors === null || semanticColors === void 0 || (_semanticColors$base10 = semanticColors.base) === null || _semanticColors$base10 === void 0 ? void 0 : _semanticColors$base10.borderSecondary, ";&:hover{box-shadow:inset 0 0 0 1px ", semanticColors === null || semanticColors === void 0 || (_semanticColors$base11 = semanticColors.base) === null || _semanticColors$base11 === void 0 ? void 0 : _semanticColors$base11.borderSecondary, ";}", fontTabularSemiboldS(props), ";");
|
|
17004
17070
|
};
|
|
17005
17071
|
const Page = /*#__PURE__*/ (0, _emotion_styled_base.default)("li", {
|
|
17006
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
17072
|
+
shouldForwardProp: (prop) => !doNotForwardProps$4.includes(prop),
|
|
17007
17073
|
target: "e61vbx1"
|
|
17008
17074
|
})(fontTabularMediumS, " ", (props) => {
|
|
17009
17075
|
var _semanticColors$base12, _semanticColors$base13, _semanticColors$base14;
|
|
@@ -17231,7 +17297,7 @@ const PANEL_TRANSITION_DURATION_MS = {
|
|
|
17231
17297
|
};
|
|
17232
17298
|
//#endregion
|
|
17233
17299
|
//#region src/core/Panel/style.ts
|
|
17234
|
-
const doNotForwardProps$
|
|
17300
|
+
const doNotForwardProps$3 = [
|
|
17235
17301
|
"sdsType",
|
|
17236
17302
|
"position",
|
|
17237
17303
|
"width",
|
|
@@ -17256,7 +17322,7 @@ const overlayPanelStyles = (props) => {
|
|
|
17256
17322
|
return /*#__PURE__*/ (0, _emotion_react.css)("pointer-events:none;.", _mui_material.drawerClasses.paper, ",.", _mui_material.backdropClasses.root, "{pointer-events:auto;}.", _mui_material.drawerClasses.paper, "{background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base2 = semanticColors.base) === null || _semanticColors$base2 === void 0 ? void 0 : _semanticColors$base2.backgroundPrimary, ";padding:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.xl, "px;min-width:", 320, "px;min-height:", 320, "px;box-shadow:", shadows === null || shadows === void 0 ? void 0 : shadows.l, ";background-image:none;}");
|
|
17257
17323
|
};
|
|
17258
17324
|
const StyledDrawer = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Drawer, {
|
|
17259
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
17325
|
+
shouldForwardProp: (prop) => !doNotForwardProps$3.includes(prop),
|
|
17260
17326
|
target: "ejokiai1"
|
|
17261
17327
|
})((props) => {
|
|
17262
17328
|
const { sdsType = "basic", anchor = "left", width } = props;
|
|
@@ -17389,46 +17455,6 @@ const Panel = react.default.forwardRef((props, ref) => {
|
|
|
17389
17455
|
);
|
|
17390
17456
|
});
|
|
17391
17457
|
//#endregion
|
|
17392
|
-
//#region src/core/Popover/style.ts
|
|
17393
|
-
const StyledPopover = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Popover, { target: "e89mz5z0" })("& .", _mui_material.popoverClasses.paper, "{", (props) => {
|
|
17394
|
-
var _semanticColors$base, _semanticColors$base2, _props$theme$zIndex$t, _props$theme;
|
|
17395
|
-
const corners = getCorners(props);
|
|
17396
|
-
const shadows = getShadows(props);
|
|
17397
|
-
const semanticColors = getSemanticColors(props);
|
|
17398
|
-
const borders = getBorders(props);
|
|
17399
|
-
const spaces = getSpaces(props);
|
|
17400
|
-
return `
|
|
17401
|
-
background-color: ${semanticColors === null || semanticColors === void 0 || (_semanticColors$base = semanticColors.base) === null || _semanticColors$base === void 0 ? void 0 : _semanticColors$base.surfacePrimary};
|
|
17402
|
-
background-image: none;
|
|
17403
|
-
border-radius: ${corners === null || corners === void 0 ? void 0 : corners.l}px;
|
|
17404
|
-
padding: ${spaces === null || spaces === void 0 ? void 0 : spaces.xs}px ${spaces === null || spaces === void 0 ? void 0 : spaces.m}px;
|
|
17405
|
-
border: ${borders === null || borders === void 0 ? void 0 : borders.none};
|
|
17406
|
-
outline: 1px solid ${addOpacityToHex((semanticColors === null || semanticColors === void 0 || (_semanticColors$base2 = semanticColors.base) === null || _semanticColors$base2 === void 0 ? void 0 : _semanticColors$base2.borderSecondary) || "#000000", 15)};
|
|
17407
|
-
box-shadow: ${shadows === null || shadows === void 0 ? void 0 : shadows.m};
|
|
17408
|
-
box-sizing: border-box;
|
|
17409
|
-
z-index: ${(_props$theme$zIndex$t = props === null || props === void 0 || (_props$theme = props.theme) === null || _props$theme === void 0 || (_props$theme = _props$theme.zIndex) === null || _props$theme === void 0 ? void 0 : _props$theme.tooltip) !== null && _props$theme$zIndex$t !== void 0 ? _props$theme$zIndex$t : 1400};
|
|
17410
|
-
`;
|
|
17411
|
-
}, ";}");
|
|
17412
|
-
//#endregion
|
|
17413
|
-
//#region src/core/Popover/index.tsx
|
|
17414
|
-
/**
|
|
17415
|
-
* @see https://mui.com/material-ui/react-popover/
|
|
17416
|
-
*/
|
|
17417
|
-
const Popover = (0, react.forwardRef)(function Popover(props, ref) {
|
|
17418
|
-
const spaces = getSpaces({ theme: (0, _mui_material.useTheme)() });
|
|
17419
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledPopover, _objectSpread2({
|
|
17420
|
-
ref,
|
|
17421
|
-
anchorOrigin: {
|
|
17422
|
-
horizontal: "left",
|
|
17423
|
-
vertical: "bottom"
|
|
17424
|
-
},
|
|
17425
|
-
transformOrigin: {
|
|
17426
|
-
vertical: -((spaces === null || spaces === void 0 ? void 0 : spaces.s) || 8),
|
|
17427
|
-
horizontal: 0
|
|
17428
|
-
}
|
|
17429
|
-
}, props));
|
|
17430
|
-
});
|
|
17431
|
-
//#endregion
|
|
17432
17458
|
//#region src/core/Table/style.ts
|
|
17433
17459
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$3() {
|
|
17434
17460
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
@@ -17449,7 +17475,7 @@ const Table = (0, react.forwardRef)((props, ref) => {
|
|
|
17449
17475
|
});
|
|
17450
17476
|
//#endregion
|
|
17451
17477
|
//#region src/core/TableRow/style.ts
|
|
17452
|
-
const doNotForwardProps$
|
|
17478
|
+
const doNotForwardProps$2 = [
|
|
17453
17479
|
"rowHeight",
|
|
17454
17480
|
"useDivider",
|
|
17455
17481
|
"shouldShowTooltipOnHover",
|
|
@@ -17533,7 +17559,7 @@ const selectedStyled = (props) => {
|
|
|
17533
17559
|
`;
|
|
17534
17560
|
};
|
|
17535
17561
|
const StyledTableRow = /*#__PURE__*/ (0, _emotion_styled_base.default)("tr", {
|
|
17536
|
-
shouldForwardProp: (prop) => !doNotForwardProps$
|
|
17562
|
+
shouldForwardProp: (prop) => !doNotForwardProps$2.includes(prop),
|
|
17537
17563
|
target: "euwrjwp0"
|
|
17538
17564
|
})(fontHeaderS, " ", focusVisibleA11yStyle, " ", (props) => {
|
|
17539
17565
|
var _semanticColors$base15, _semanticColors$base16, _semanticColors$base17;
|
|
@@ -18302,9 +18328,9 @@ const PreComposedTable = (0, react.forwardRef)(PreComposedTableInner);
|
|
|
18302
18328
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$1() {
|
|
18303
18329
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
18304
18330
|
}
|
|
18305
|
-
const doNotForwardProps = ["buttonDefinition"];
|
|
18331
|
+
const doNotForwardProps$1 = ["buttonDefinition"];
|
|
18306
18332
|
const StyledSegmentedControl = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.ToggleButtonGroup, {
|
|
18307
|
-
shouldForwardProp: (prop) => !doNotForwardProps.includes(prop),
|
|
18333
|
+
shouldForwardProp: (prop) => !doNotForwardProps$1.includes(prop),
|
|
18308
18334
|
target: "enkxsnk3"
|
|
18309
18335
|
})((props) => {
|
|
18310
18336
|
var _semanticColors$base, _semanticColors$base2, _semanticColors$base3, _semanticColors$accen, _semanticColors$base4, _semanticColors$base5, _semanticColors$base6, _semanticColors$base7, _semanticColors$base8, _semanticColors$base9, _semanticColors$base10;
|
|
@@ -18358,7 +18384,7 @@ const StyledSegmentedControl = /*#__PURE__*/ (0, _emotion_styled_base.default)(_
|
|
|
18358
18384
|
`;
|
|
18359
18385
|
}, ";");
|
|
18360
18386
|
const StyledToggleButton = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.ToggleButton, {
|
|
18361
|
-
shouldForwardProp: (prop) => !doNotForwardProps.includes(prop),
|
|
18387
|
+
shouldForwardProp: (prop) => !doNotForwardProps$1.includes(prop),
|
|
18362
18388
|
target: "enkxsnk2"
|
|
18363
18389
|
})((props) => {
|
|
18364
18390
|
var _semanticColors$base11;
|
|
@@ -18551,6 +18577,158 @@ const Tab = (0, react.forwardRef)(function Tab(props, ref) {
|
|
|
18551
18577
|
}, rest), context));
|
|
18552
18578
|
});
|
|
18553
18579
|
//#endregion
|
|
18580
|
+
//#region src/core/TagLegacy/style.ts
|
|
18581
|
+
const tagSizeS = (props) => {
|
|
18582
|
+
var _semanticColors$base;
|
|
18583
|
+
const spaces = getSpaces(props);
|
|
18584
|
+
const iconSizes = getIconSizes(props);
|
|
18585
|
+
const semanticColors = getSemanticColors(props);
|
|
18586
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("height:unset;.MuiChip-label{", fontBodyXxxs(props), " padding:0;}.MuiSvgIcon-root{height:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xs.height, "px;width:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.xs.width, "px;margin:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px 0 0;}.MuiChip-deleteIcon{", fontHeaderXs(props), " color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base = semanticColors.base) === null || _semanticColors$base === void 0 ? void 0 : _semanticColors$base.ornamentPrimaryInverse, ";margin:0 0 0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;height:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;width:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.width, "px;}");
|
|
18587
|
+
};
|
|
18588
|
+
const tagSizeL = (props) => {
|
|
18589
|
+
var _semanticColors$base2;
|
|
18590
|
+
const spaces = getSpaces(props);
|
|
18591
|
+
const iconSizes = getIconSizes(props);
|
|
18592
|
+
const semanticColors = getSemanticColors(props);
|
|
18593
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("height:unset;.MuiChip-label{", fontBodyXs(props), " padding:0;}.MuiSvgIcon-root{height:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.height, "px;width:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.width, "px;margin:0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px 0 0px;}.MuiChip-deleteIcon{", fontHeaderXs(props), " color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base2 = semanticColors.base) === null || _semanticColors$base2 === void 0 ? void 0 : _semanticColors$base2.ornamentPrimaryInverse, ";margin:0 0 0 ", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px;height:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.height, "px;width:", iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.s.width, "px;}");
|
|
18594
|
+
};
|
|
18595
|
+
const rounded = (props) => {
|
|
18596
|
+
const corners = getCorners(props);
|
|
18597
|
+
const spaces = getSpaces(props);
|
|
18598
|
+
const { sdsSize = "s", icon } = props;
|
|
18599
|
+
const topBottomPadding = sdsSize === "s" ? spaces === null || spaces === void 0 ? void 0 : spaces.xxxs : icon ? spaces === null || spaces === void 0 ? void 0 : spaces.xxs : spaces === null || spaces === void 0 ? void 0 : spaces.xs;
|
|
18600
|
+
const rightPadding = sdsSize === "l" && icon ? spaces === null || spaces === void 0 ? void 0 : spaces.s : spaces === null || spaces === void 0 ? void 0 : spaces.xs;
|
|
18601
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("border-radius:", corners === null || corners === void 0 ? void 0 : corners.rounded, "px;padding:", topBottomPadding, "px ", rightPadding, "px ", topBottomPadding, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;&:after{content:\"\";border-radius:", corners === null || corners === void 0 ? void 0 : corners.rounded, "px;}");
|
|
18602
|
+
};
|
|
18603
|
+
const square = (props) => {
|
|
18604
|
+
const corners = getCorners(props);
|
|
18605
|
+
const spaces = getSpaces(props);
|
|
18606
|
+
const { sdsSize = "s", icon } = props;
|
|
18607
|
+
const topBottomPadding = sdsSize === "s" ? spaces === null || spaces === void 0 ? void 0 : spaces.xxxs : icon ? spaces === null || spaces === void 0 ? void 0 : spaces.xxs : spaces === null || spaces === void 0 ? void 0 : spaces.xs;
|
|
18608
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("border-radius:", corners === null || corners === void 0 ? void 0 : corners.m, "px;padding:", topBottomPadding, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.xs, "px;&:after{content:\"\";border-radius:", corners === null || corners === void 0 ? void 0 : corners.m, "px;}");
|
|
18609
|
+
};
|
|
18610
|
+
const withHover = (props) => {
|
|
18611
|
+
var _semanticColors$base3;
|
|
18612
|
+
const semanticColors = getSemanticColors(props);
|
|
18613
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("&:hover{cursor:pointer;}&:hover,&:focus-visible{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base3 = semanticColors.base) === null || _semanticColors$base3 === void 0 ? void 0 : _semanticColors$base3.textPrimaryInverse, ";}");
|
|
18614
|
+
};
|
|
18615
|
+
const primary = (props) => {
|
|
18616
|
+
return createTypeCss(props, "primary");
|
|
18617
|
+
};
|
|
18618
|
+
const secondary = (props) => {
|
|
18619
|
+
return createTypeCss(props, "secondary");
|
|
18620
|
+
};
|
|
18621
|
+
function generatePrimaryTagColors(intent, colors, semanticColors) {
|
|
18622
|
+
var _semanticColors$base4, _semanticColors$base5, _semanticColors$neutr;
|
|
18623
|
+
const intentColors = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors[intent || "neutral"];
|
|
18624
|
+
const hasCustomColors = colors.length >= 2;
|
|
18625
|
+
return {
|
|
18626
|
+
background: hasCustomColors ? colors[1] : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillPrimary,
|
|
18627
|
+
backgroundClicked: hasCustomColors ? (0, _mui_material.darken)(colors[1], .3) : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillPressed,
|
|
18628
|
+
backgroundHover: hasCustomColors ? (0, _mui_material.darken)(colors[1], .15) : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillInteraction,
|
|
18629
|
+
iconColor: hasCustomColors ? colors[2] : semanticColors === null || semanticColors === void 0 || (_semanticColors$base4 = semanticColors.base) === null || _semanticColors$base4 === void 0 ? void 0 : _semanticColors$base4.ornamentOnFill,
|
|
18630
|
+
label: colors.length > 0 ? colors[0] : semanticColors === null || semanticColors === void 0 || (_semanticColors$base5 = semanticColors.base) === null || _semanticColors$base5 === void 0 ? void 0 : _semanticColors$base5.textOnFill,
|
|
18631
|
+
borderColor: (0, _mui_material.alpha)((semanticColors === null || semanticColors === void 0 || (_semanticColors$neutr = semanticColors.neutral) === null || _semanticColors$neutr === void 0 ? void 0 : _semanticColors$neutr.foreground) || "#000", .6)
|
|
18632
|
+
};
|
|
18633
|
+
}
|
|
18634
|
+
function getSecondaryBorderColor(effectiveIntent, theme, intentColors) {
|
|
18635
|
+
if (!theme || !theme.palette) return (0, _mui_material.alpha)((intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground) || "#000", .6);
|
|
18636
|
+
if (effectiveIntent === "negative" && theme.palette.mode === "dark") return (0, _mui_material.alpha)((intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground) || "#000", .65);
|
|
18637
|
+
if (effectiveIntent === "notice" && theme.palette.mode === "light") return (0, _mui_material.alpha)((intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground) || "#000", .85);
|
|
18638
|
+
return (0, _mui_material.alpha)((intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground) || "#000", .6);
|
|
18639
|
+
}
|
|
18640
|
+
function generateSecondaryTagColors(intent, colors, semanticColors, theme = defaultTheme) {
|
|
18641
|
+
const effectiveIntent = intent || "neutral";
|
|
18642
|
+
const intentColors = semanticColors === null || semanticColors === void 0 ? void 0 : semanticColors[effectiveIntent];
|
|
18643
|
+
const hasCustomColors = colors.length >= 2;
|
|
18644
|
+
return {
|
|
18645
|
+
background: hasCustomColors ? colors[1] : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillSecondary,
|
|
18646
|
+
backgroundClicked: hasCustomColors ? (0, _mui_material.darken)(colors[1], .3) : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillPressed,
|
|
18647
|
+
backgroundHover: hasCustomColors ? (0, _mui_material.darken)(colors[1], .15) : intentColors === null || intentColors === void 0 ? void 0 : intentColors.fillInteraction,
|
|
18648
|
+
iconColor: hasCustomColors ? colors[2] : intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground,
|
|
18649
|
+
label: colors.length > 0 ? colors[0] : intentColors === null || intentColors === void 0 ? void 0 : intentColors.foreground,
|
|
18650
|
+
borderColor: hasCustomColors ? (0, _mui_material.alpha)(colors[1], .6) : getSecondaryBorderColor(effectiveIntent, theme, intentColors)
|
|
18651
|
+
};
|
|
18652
|
+
}
|
|
18653
|
+
function createTypeCss(props, type) {
|
|
18654
|
+
var _semanticColors$base6, _semanticColors$base7;
|
|
18655
|
+
const semanticColors = getSemanticColors(props);
|
|
18656
|
+
const intent = typeof props.tagColor === "string" ? props.tagColor : null;
|
|
18657
|
+
const colors = Array.isArray(props.tagColor) ? [...props.tagColor] : [];
|
|
18658
|
+
const typeColors = {
|
|
18659
|
+
primary: generatePrimaryTagColors(intent, colors, semanticColors),
|
|
18660
|
+
secondary: generateSecondaryTagColors(intent, colors, semanticColors, props.theme)
|
|
18661
|
+
}[type];
|
|
18662
|
+
return /*#__PURE__*/ (0, _emotion_react.css)(focusVisibleA11yStyle(props), " ", type === "secondary" && /*#__PURE__*/ (0, _emotion_react.css)("box-shadow:inset 0 0 0 1px ", typeColors.borderColor, ";"), " background-color:", typeColors.background, ";position:relative;.MuiChip-label{color:", typeColors.label, ";}svg{fill:", typeColors.iconColor, ";}&:hover,&:active{box-shadow:none;.MuiChip-label{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base6 = semanticColors.base) === null || _semanticColors$base6 === void 0 ? void 0 : _semanticColors$base6.textPrimaryInverse, ";}svg{fill:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base7 = semanticColors.base) === null || _semanticColors$base7 === void 0 ? void 0 : _semanticColors$base7.ornamentPrimaryInverse, ";}}&:hover{background-color:", typeColors.backgroundHover, ";}&:active{background-color:", typeColors.backgroundClicked, ";}&.Mui-focusVisible{background-color:", typeColors.backgroundHover, ";}");
|
|
18663
|
+
}
|
|
18664
|
+
const typeToCss = {
|
|
18665
|
+
primary,
|
|
18666
|
+
secondary
|
|
18667
|
+
};
|
|
18668
|
+
const doNotForwardProps = [
|
|
18669
|
+
"sdsType",
|
|
18670
|
+
"sdsStyle",
|
|
18671
|
+
"sdsSize",
|
|
18672
|
+
"tagColor",
|
|
18673
|
+
"hover"
|
|
18674
|
+
];
|
|
18675
|
+
const StyledTagLegacy = /*#__PURE__*/ (0, _emotion_styled_base.default)(_mui_material.Chip, {
|
|
18676
|
+
shouldForwardProp: (prop) => !doNotForwardProps.includes(prop),
|
|
18677
|
+
target: "e47sx6f0"
|
|
18678
|
+
})("border:none;", (props) => {
|
|
18679
|
+
const { hover = true, sdsType, sdsStyle, sdsSize = "s" } = props;
|
|
18680
|
+
const isRounded = sdsStyle === "rounded";
|
|
18681
|
+
const type = sdsType || "primary";
|
|
18682
|
+
return /*#__PURE__*/ (0, _emotion_react.css)(sdsSize === "l" ? tagSizeL(props) : tagSizeS(props), " ", typeToCss[type](props), " ", isRounded ? rounded(props) : square(props), " ", hover ? withHover(props) : `pointer-events: none;`, ";");
|
|
18683
|
+
}, ";");
|
|
18684
|
+
//#endregion
|
|
18685
|
+
//#region src/core/TagLegacy/index.tsx
|
|
18686
|
+
/**
|
|
18687
|
+
* @see https://mui.com/material-ui/react-chip/
|
|
18688
|
+
*
|
|
18689
|
+
* @deprecated Use Tag instead. TagLegacy will be removed in a future release.
|
|
18690
|
+
*
|
|
18691
|
+
* @props color: {string} - applies color for tag based on default theme color values
|
|
18692
|
+
* [string, string] - applies custom colors for [font, background]
|
|
18693
|
+
* [string, string, string] - applies custom colors for [font, background, icon]
|
|
18694
|
+
*/
|
|
18695
|
+
const TagLegacy = (props) => {
|
|
18696
|
+
const { color } = props;
|
|
18697
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTagLegacy, _objectSpread2(_objectSpread2({ tagColor: color }, props), {}, { color: "primary" }));
|
|
18698
|
+
};
|
|
18699
|
+
//#endregion
|
|
18700
|
+
//#region src/core/TagFilter/style.ts
|
|
18701
|
+
const StyledTag = /*#__PURE__*/ (0, _emotion_styled_base.default)(TagLegacy, { target: "e19crzu0" })((props) => {
|
|
18702
|
+
var _semanticColors$accen, _iconSizes$xs, _iconSizes$xs2, _iconSizes$xs3, _iconSizes$xs4, _semanticColors$accen2, _semanticColors$base, _semanticColors$base2, _semanticColors$accen3;
|
|
18703
|
+
const spaces = getSpaces(props);
|
|
18704
|
+
const iconSizes = getIconSizes(props);
|
|
18705
|
+
const semanticColors = getSemanticColors(props);
|
|
18706
|
+
return /*#__PURE__*/ (0, _emotion_react.css)("padding:", spaces === null || spaces === void 0 ? void 0 : spaces.xxs, "px ", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen = semanticColors.accent) === null || _semanticColors$accen === void 0 ? void 0 : _semanticColors$accen.fillPrimary, ";.MuiChip-label{", fontHeaderXs(props), " z-index:auto;}.MuiChip-deleteIcon{margin:0 0 0 ", spaces === null || spaces === void 0 ? void 0 : spaces.s, "px;width:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs = iconSizes.xs) === null || _iconSizes$xs === void 0 ? void 0 : _iconSizes$xs.width, "px!important;height:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs2 = iconSizes.xs) === null || _iconSizes$xs2 === void 0 ? void 0 : _iconSizes$xs2.height, "px!important;}.MuiSvgIcon-root{margin:0;width:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs3 = iconSizes.xs) === null || _iconSizes$xs3 === void 0 ? void 0 : _iconSizes$xs3.width, "px!important;height:", iconSizes === null || iconSizes === void 0 || (_iconSizes$xs4 = iconSizes.xs) === null || _iconSizes$xs4 === void 0 ? void 0 : _iconSizes$xs4.height, "px!important;}svg{z-index:auto;}&:hover,&:focus,&:focus-within{background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen2 = semanticColors.accent) === null || _semanticColors$accen2 === void 0 ? void 0 : _semanticColors$accen2.fillInteraction, ";.MuiChip-label{color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base = semanticColors.base) === null || _semanticColors$base === void 0 ? void 0 : _semanticColors$base.textPrimaryInverse, "!important;}.MuiChip-deleteIcon svg{fill:", semanticColors === null || semanticColors === void 0 || (_semanticColors$base2 = semanticColors.base) === null || _semanticColors$base2 === void 0 ? void 0 : _semanticColors$base2.ornamentPrimaryInverse, "!important;}}&:active{background-color:", semanticColors === null || semanticColors === void 0 || (_semanticColors$accen3 = semanticColors.accent) === null || _semanticColors$accen3 === void 0 ? void 0 : _semanticColors$accen3.fillPressed, ";}&:after{content:\"\";display:none;}");
|
|
18707
|
+
}, ";");
|
|
18708
|
+
//#endregion
|
|
18709
|
+
//#region src/core/TagFilter/index.tsx
|
|
18710
|
+
/**
|
|
18711
|
+
* @see https://mui.com/material-ui/react-chip/
|
|
18712
|
+
*
|
|
18713
|
+
* @deprecated Use Chip instead. TagFilter will be removed in a future release.
|
|
18714
|
+
*/
|
|
18715
|
+
const TagFilter = (props) => {
|
|
18716
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledTag, _objectSpread2(_objectSpread2({ role: "none presentation" }, props), {}, {
|
|
18717
|
+
deleteIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
18718
|
+
"aria-label": "Delete Tag",
|
|
18719
|
+
sdsStyle: "minimal",
|
|
18720
|
+
sdsType: "secondary",
|
|
18721
|
+
size: "medium",
|
|
18722
|
+
backgroundOnHover: false,
|
|
18723
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
18724
|
+
sdsIcon: "XMark",
|
|
18725
|
+
sdsSize: "s"
|
|
18726
|
+
})
|
|
18727
|
+
}),
|
|
18728
|
+
color: "info"
|
|
18729
|
+
}));
|
|
18730
|
+
};
|
|
18731
|
+
//#endregion
|
|
18554
18732
|
//#region src/core/TooltipCondensed/style.ts
|
|
18555
18733
|
const indicatorCSS = (props) => {
|
|
18556
18734
|
const { indicatorColor } = props;
|
|
@@ -22041,6 +22219,8 @@ exports.SDSLightThemeColors = SDSLightThemeColors;
|
|
|
22041
22219
|
exports.SDSPaletteDark = SDSPaletteDark;
|
|
22042
22220
|
exports.SDSPaletteLight = SDSPaletteLight;
|
|
22043
22221
|
exports.SegmentedControl = SegmentedControl;
|
|
22222
|
+
exports.TAG_LABEL_TEXT_CLASS = TAG_LABEL_TEXT_CLASS;
|
|
22223
|
+
exports.TAG_LINK_ICON_CLASS = TAG_LINK_ICON_CLASS;
|
|
22044
22224
|
exports.Tab = Tab;
|
|
22045
22225
|
exports.Table = Table;
|
|
22046
22226
|
exports.TableHeader = TableHeader;
|
|
@@ -22048,6 +22228,7 @@ exports.TableRow = TableRow;
|
|
|
22048
22228
|
exports.Tabs = Tabs;
|
|
22049
22229
|
exports.Tag = Tag;
|
|
22050
22230
|
exports.TagFilter = TagFilter;
|
|
22231
|
+
exports.TagLegacy = TagLegacy;
|
|
22051
22232
|
exports.Theme = Theme;
|
|
22052
22233
|
exports.Tooltip = Tooltip;
|
|
22053
22234
|
exports.TooltipCondensed = TooltipCondensed;
|