@open-ui-kit/core 2.0.4 → 2.2.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 +30 -9
- package/index.cjs.js +1342 -51
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1222 -1201
- package/index.esm.js +1342 -53
- package/index.esm.js.map +1 -1
- package/index.umd.js +1342 -51
- package/index.umd.js.map +1 -1
- package/package.json +11 -11
package/index.esm.js
CHANGED
|
@@ -10,7 +10,7 @@ import DoneIcon from '@mui/icons-material/Done';
|
|
|
10
10
|
import CloseIcon from '@mui/icons-material/Close';
|
|
11
11
|
import { Timeline as Timeline$1, TimelineItem, TimelineSeparator, TimelineConnector, TimelineContent } from '@mui/lab';
|
|
12
12
|
import * as React from 'react';
|
|
13
|
-
import React__default, { useCallback, Children, isValidElement, useState, useEffect, useMemo, useRef, createElement, Fragment as Fragment$1 } from 'react';
|
|
13
|
+
import React__default, { useCallback, forwardRef, Children, isValidElement, useState, useEffect, useMemo, useRef, createElement, useLayoutEffect, Fragment as Fragment$1 } from 'react';
|
|
14
14
|
import StarIcon from '@mui/icons-material/Star';
|
|
15
15
|
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
|
|
16
16
|
import WarningIcon from '@mui/icons-material/Warning';
|
|
@@ -6291,6 +6291,13 @@ const StyledButton$1 = styled(Button$1)(({ theme }) => ({
|
|
|
6291
6291
|
textTransform: "none",
|
|
6292
6292
|
transition: "none",
|
|
6293
6293
|
borderRadius: "4px",
|
|
6294
|
+
width: "max-content",
|
|
6295
|
+
maxWidth: "100%",
|
|
6296
|
+
whiteSpace: "normal",
|
|
6297
|
+
overflowWrap: "break-word",
|
|
6298
|
+
textAlign: "center",
|
|
6299
|
+
alignItems: "center",
|
|
6300
|
+
height: "auto",
|
|
6294
6301
|
"& .MuiButton-startIcon": {
|
|
6295
6302
|
marginLeft: "0px",
|
|
6296
6303
|
},
|
|
@@ -6302,16 +6309,22 @@ const StyledButton$1 = styled(Button$1)(({ theme }) => ({
|
|
|
6302
6309
|
padding: "8px",
|
|
6303
6310
|
minWidth: "40px",
|
|
6304
6311
|
width: "40px",
|
|
6312
|
+
height: "40px",
|
|
6313
|
+
minHeight: "40px",
|
|
6305
6314
|
},
|
|
6306
6315
|
"&.MuiButton-sizeMedium": {
|
|
6307
6316
|
padding: "6px",
|
|
6308
6317
|
minWidth: "32px",
|
|
6309
6318
|
width: "32px",
|
|
6319
|
+
height: "32px",
|
|
6320
|
+
minHeight: "32px",
|
|
6310
6321
|
},
|
|
6311
6322
|
"&.MuiButton-sizeSmall": {
|
|
6312
6323
|
padding: "2px",
|
|
6313
6324
|
minWidth: "24px",
|
|
6314
6325
|
width: "24px",
|
|
6326
|
+
height: "24px",
|
|
6327
|
+
minHeight: "24px",
|
|
6315
6328
|
},
|
|
6316
6329
|
},
|
|
6317
6330
|
"&.MuiButton-sizeLarge": {
|
|
@@ -6319,7 +6332,8 @@ const StyledButton$1 = styled(Button$1)(({ theme }) => ({
|
|
|
6319
6332
|
fontWeight: 600,
|
|
6320
6333
|
fontSize: "16px",
|
|
6321
6334
|
lineHeight: "125%",
|
|
6322
|
-
|
|
6335
|
+
minHeight: "40px",
|
|
6336
|
+
height: "auto",
|
|
6323
6337
|
padding: "10px 16px",
|
|
6324
6338
|
},
|
|
6325
6339
|
"&.OuiButton-hasIcon.MuiButton-sizeLarge": {
|
|
@@ -6330,7 +6344,8 @@ const StyledButton$1 = styled(Button$1)(({ theme }) => ({
|
|
|
6330
6344
|
fontWeight: 600,
|
|
6331
6345
|
fontSize: "14px",
|
|
6332
6346
|
lineHeight: "125%",
|
|
6333
|
-
|
|
6347
|
+
minHeight: "32px",
|
|
6348
|
+
height: "auto",
|
|
6334
6349
|
padding: "7px 16px",
|
|
6335
6350
|
},
|
|
6336
6351
|
"&.MuiButton-sizeSmall": {
|
|
@@ -6338,7 +6353,8 @@ const StyledButton$1 = styled(Button$1)(({ theme }) => ({
|
|
|
6338
6353
|
fontWeight: 600,
|
|
6339
6354
|
fontSize: "14px",
|
|
6340
6355
|
lineHeight: "125%",
|
|
6341
|
-
|
|
6356
|
+
minHeight: "24px",
|
|
6357
|
+
height: "auto",
|
|
6342
6358
|
padding: "3px 12px",
|
|
6343
6359
|
},
|
|
6344
6360
|
"&.MuiButton-sizeLarge svg": {
|
|
@@ -6557,7 +6573,7 @@ const isIconOnlyChild = (children) => {
|
|
|
6557
6573
|
}
|
|
6558
6574
|
return child.props.children == null;
|
|
6559
6575
|
};
|
|
6560
|
-
const Button = (_a) => {
|
|
6576
|
+
const Button = forwardRef((_a, ref) => {
|
|
6561
6577
|
var { children, className, disableRipple = true, endIcon, startIcon } = _a, props = __rest(_a, ["children", "className", "disableRipple", "endIcon", "startIcon"]);
|
|
6562
6578
|
const hasIcon = Boolean(startIcon || endIcon);
|
|
6563
6579
|
const isIconOnly = !hasIcon && isIconOnlyChild(children);
|
|
@@ -6568,8 +6584,9 @@ const Button = (_a) => {
|
|
|
6568
6584
|
]
|
|
6569
6585
|
.filter(Boolean)
|
|
6570
6586
|
.join(" ");
|
|
6571
|
-
return (jsx(StyledButton$1, Object.assign({ className: buttonClassName || undefined, disableRipple: disableRipple, endIcon: endIcon, startIcon: startIcon }, props, { children: children })));
|
|
6572
|
-
};
|
|
6587
|
+
return (jsx(StyledButton$1, Object.assign({ ref: ref, className: buttonClassName || undefined, disableRipple: disableRipple, endIcon: endIcon, startIcon: startIcon }, props, { children: children })));
|
|
6588
|
+
});
|
|
6589
|
+
Button.displayName = "Button";
|
|
6573
6590
|
|
|
6574
6591
|
const getSpinnerWrapperStyles = (size) => ({
|
|
6575
6592
|
position: "relative",
|
|
@@ -7588,18 +7605,48 @@ const SelectNodeListItem = ({ isLeaf, isSelectable = true, listItemProps = {}, o
|
|
|
7588
7605
|
}, children: [selectNodeElement, selectableLeavesCount && (jsx(Typography, { variant: "body2", sx: { cursor: "pointer", color: theme.palette.vars.baseTextWeak }, children: selectableLeavesCount }))] })));
|
|
7589
7606
|
};
|
|
7590
7607
|
|
|
7608
|
+
const TOOLTIP_ARROW_WIDTH = 10;
|
|
7609
|
+
const TOOLTIP_ARROW_HEIGHT = 6;
|
|
7591
7610
|
const baseTooltipStyles = (theme) => (Object.assign(Object.assign({}, theme.typography.captionMedium), { backgroundColor: theme.palette.vars.inactiveBackgroundActive, borderRadius: "4px", boxSizing: "border-box", color: theme.palette.vars.baseTextInverse, maxWidth: "none" }));
|
|
7592
7611
|
const tooltipArrowStyles = (theme) => ({
|
|
7593
7612
|
color: theme.palette.vars.inactiveBackgroundActive,
|
|
7594
|
-
height:
|
|
7595
|
-
width:
|
|
7613
|
+
height: `${TOOLTIP_ARROW_HEIGHT}px`,
|
|
7614
|
+
width: `${TOOLTIP_ARROW_WIDTH}px`,
|
|
7596
7615
|
"&::before": {
|
|
7597
7616
|
backgroundColor: "currentColor",
|
|
7598
|
-
|
|
7599
|
-
height: "
|
|
7600
|
-
width: "
|
|
7617
|
+
display: "block",
|
|
7618
|
+
height: "100%",
|
|
7619
|
+
width: "100%",
|
|
7601
7620
|
},
|
|
7602
7621
|
});
|
|
7622
|
+
const tooltipPopperSx = {
|
|
7623
|
+
[`&[data-popper-placement*="bottom"] .MuiTooltip-arrow`]: {
|
|
7624
|
+
marginTop: `-${TOOLTIP_ARROW_HEIGHT}px`,
|
|
7625
|
+
},
|
|
7626
|
+
[`&[data-popper-placement*="top"] .MuiTooltip-arrow`]: {
|
|
7627
|
+
marginBottom: `-${TOOLTIP_ARROW_HEIGHT}px`,
|
|
7628
|
+
},
|
|
7629
|
+
[`&[data-popper-placement*="left"] .MuiTooltip-arrow, &[data-popper-placement*="right"] .MuiTooltip-arrow`]: {
|
|
7630
|
+
height: `${TOOLTIP_ARROW_WIDTH}px`,
|
|
7631
|
+
width: `${TOOLTIP_ARROW_HEIGHT}px`,
|
|
7632
|
+
},
|
|
7633
|
+
[`&[data-popper-placement*="right"] .MuiTooltip-arrow`]: {
|
|
7634
|
+
marginLeft: `-${TOOLTIP_ARROW_HEIGHT}px`,
|
|
7635
|
+
marginRight: 0,
|
|
7636
|
+
},
|
|
7637
|
+
[`&[data-popper-placement*="left"] .MuiTooltip-arrow`]: {
|
|
7638
|
+
marginRight: `-${TOOLTIP_ARROW_HEIGHT}px`,
|
|
7639
|
+
marginLeft: 0,
|
|
7640
|
+
},
|
|
7641
|
+
'[dir="rtl"] &[data-popper-placement*="right"] .MuiTooltip-arrow': {
|
|
7642
|
+
marginLeft: 0,
|
|
7643
|
+
marginRight: `-${TOOLTIP_ARROW_HEIGHT}px`,
|
|
7644
|
+
},
|
|
7645
|
+
'[dir="rtl"] &[data-popper-placement*="left"] .MuiTooltip-arrow': {
|
|
7646
|
+
marginRight: 0,
|
|
7647
|
+
marginLeft: `-${TOOLTIP_ARROW_HEIGHT}px`,
|
|
7648
|
+
},
|
|
7649
|
+
};
|
|
7603
7650
|
const largeTooltipStyles = {
|
|
7604
7651
|
height: "32px",
|
|
7605
7652
|
padding: "8px 12px",
|
|
@@ -7624,12 +7671,7 @@ const tooltipPopper = {
|
|
|
7624
7671
|
},
|
|
7625
7672
|
},
|
|
7626
7673
|
],
|
|
7627
|
-
sx:
|
|
7628
|
-
'&[data-popper-placement*="left"] .MuiTooltip-arrow, &[data-popper-placement*="right"] .MuiTooltip-arrow': {
|
|
7629
|
-
height: "10px",
|
|
7630
|
-
width: "6px",
|
|
7631
|
-
},
|
|
7632
|
-
},
|
|
7674
|
+
sx: tooltipPopperSx,
|
|
7633
7675
|
};
|
|
7634
7676
|
const tooltipSlotProps = {
|
|
7635
7677
|
[TooltipSize.Medium]: {
|
|
@@ -10456,7 +10498,7 @@ const shadows$1 = [
|
|
|
10456
10498
|
darkModeFooterBottom,
|
|
10457
10499
|
...Array(17).fill("none"),
|
|
10458
10500
|
];
|
|
10459
|
-
const palette$
|
|
10501
|
+
const palette$2 = {
|
|
10460
10502
|
mode: "dark",
|
|
10461
10503
|
primary: bluePalette,
|
|
10462
10504
|
secondary: Object.assign(Object.assign({}, surfaceDarkPalette), { main: surfaceDarkPalette[500] }),
|
|
@@ -10486,7 +10528,7 @@ const palette$1 = {
|
|
|
10486
10528
|
};
|
|
10487
10529
|
const theme$1 = createTheme({
|
|
10488
10530
|
breakpoints,
|
|
10489
|
-
palette: palette$
|
|
10531
|
+
palette: palette$2,
|
|
10490
10532
|
typography,
|
|
10491
10533
|
mixins: commonMixins,
|
|
10492
10534
|
});
|
|
@@ -10523,6 +10565,519 @@ const darkThemeOptions = {
|
|
|
10523
10565
|
};
|
|
10524
10566
|
const darkTheme = createTheme(theme$1, darkThemeOptions);
|
|
10525
10567
|
|
|
10568
|
+
const iocSurface50 = "rgba(255, 255, 255, 0.02)";
|
|
10569
|
+
const iocSurface100 = "rgba(255, 255, 255, 0.035)";
|
|
10570
|
+
const iocSurface200 = "rgba(255, 255, 255, 0.06)";
|
|
10571
|
+
const iocSurface300 = "rgba(255, 255, 255, 0.09)";
|
|
10572
|
+
const iocSurface400 = "rgba(255, 255, 255, 0.12)";
|
|
10573
|
+
const iocSurface500 = "rgba(255, 255, 255, 0.16)";
|
|
10574
|
+
const iocSurfacePalette = {
|
|
10575
|
+
50: iocSurface50,
|
|
10576
|
+
100: iocSurface100,
|
|
10577
|
+
200: iocSurface200,
|
|
10578
|
+
300: iocSurface300,
|
|
10579
|
+
400: iocSurface400,
|
|
10580
|
+
500: iocSurface500,
|
|
10581
|
+
};
|
|
10582
|
+
const iocBackdrop900 = "#020508";
|
|
10583
|
+
const iocBackdrop800 = "#03080F";
|
|
10584
|
+
const iocBackdrop700 = "#050C18";
|
|
10585
|
+
const iocBackdrop600 = "#07111F";
|
|
10586
|
+
const iocBackdrop500 = "#091428";
|
|
10587
|
+
const iocBackdropPalette = {
|
|
10588
|
+
900: iocBackdrop900,
|
|
10589
|
+
800: iocBackdrop800,
|
|
10590
|
+
700: iocBackdrop700,
|
|
10591
|
+
600: iocBackdrop600,
|
|
10592
|
+
500: iocBackdrop500};
|
|
10593
|
+
const iocTeal50 = "#E6F9FE";
|
|
10594
|
+
const iocTeal100 = "#B3EEFB";
|
|
10595
|
+
const iocTeal200 = "#7DE0F8";
|
|
10596
|
+
const iocTeal300 = "#40D0F4";
|
|
10597
|
+
const iocTeal400 = "#1AC6F0";
|
|
10598
|
+
const iocTeal500 = "#00BCEB";
|
|
10599
|
+
const iocTeal600 = "#00A0D1";
|
|
10600
|
+
const iocTeal700 = "#0082AD";
|
|
10601
|
+
const iocTeal800 = "#006B8A";
|
|
10602
|
+
const iocTeal900 = "#003D54";
|
|
10603
|
+
const iocTealAlpha40 = "rgba(0, 188, 235, 0.40)";
|
|
10604
|
+
const iocTealAlpha20 = "rgba(0, 188, 235, 0.20)";
|
|
10605
|
+
const iocTealAlpha10 = "rgba(0, 188, 235, 0.10)";
|
|
10606
|
+
const iocTealAlpha05 = "rgba(0, 188, 235, 0.05)";
|
|
10607
|
+
const iocTealPalette = {
|
|
10608
|
+
50: iocTeal50,
|
|
10609
|
+
100: iocTeal100,
|
|
10610
|
+
200: iocTeal200,
|
|
10611
|
+
300: iocTeal300,
|
|
10612
|
+
400: iocTeal400,
|
|
10613
|
+
500: iocTeal500,
|
|
10614
|
+
600: iocTeal600,
|
|
10615
|
+
700: iocTeal700,
|
|
10616
|
+
800: iocTeal800,
|
|
10617
|
+
900: iocTeal900,
|
|
10618
|
+
alpha40: iocTealAlpha40,
|
|
10619
|
+
alpha20: iocTealAlpha20,
|
|
10620
|
+
alpha10: iocTealAlpha10,
|
|
10621
|
+
alpha05: iocTealAlpha05,
|
|
10622
|
+
};
|
|
10623
|
+
const iocBlue500 = "#2B82F6";
|
|
10624
|
+
const iocBlue400 = "#3B92FF";
|
|
10625
|
+
const iocBlue600 = "#1E6FD9";
|
|
10626
|
+
const iocBluePalette = {
|
|
10627
|
+
400: iocBlue400,
|
|
10628
|
+
500: iocBlue500,
|
|
10629
|
+
600: iocBlue600,
|
|
10630
|
+
};
|
|
10631
|
+
const iocBorder100 = "rgba(255, 255, 255, 0.05)";
|
|
10632
|
+
const iocBorder200 = "rgba(255, 255, 255, 0.07)";
|
|
10633
|
+
const iocBorder300 = "rgba(255, 255, 255, 0.09)";
|
|
10634
|
+
const iocBorder500 = "rgba(255, 255, 255, 0.18)";
|
|
10635
|
+
const iocBorderPalette = {
|
|
10636
|
+
100: iocBorder100,
|
|
10637
|
+
200: iocBorder200,
|
|
10638
|
+
300: iocBorder300,
|
|
10639
|
+
500: iocBorder500,
|
|
10640
|
+
};
|
|
10641
|
+
const iocTextPrimary = "rgba(255, 255, 255, 0.94)";
|
|
10642
|
+
const iocTextSecondary = "rgba(255, 255, 255, 0.55)";
|
|
10643
|
+
const iocTextTertiary = "rgba(255, 255, 255, 0.32)";
|
|
10644
|
+
const iocTextDisabled = "rgba(255, 255, 255, 0.22)";
|
|
10645
|
+
const iocPageBackground = `
|
|
10646
|
+
radial-gradient(ellipse 130% 90% at -15% -5%, rgba(0, 70, 160, 0.50) 0%, rgba(0, 40, 100, 0.15) 45%, transparent 65%),
|
|
10647
|
+
radial-gradient(ellipse 80% 60% at 60% 110%, rgba(0, 30, 80, 0.30) 0%, transparent 60%),
|
|
10648
|
+
linear-gradient(160deg, #07111F 0%, #050C18 40%, #030810 100%)
|
|
10649
|
+
`;
|
|
10650
|
+
const iocShadowSm = "0 2px 8px rgba(0, 0, 0, 0.30)";
|
|
10651
|
+
const iocShadowMd = "0 4px 16px rgba(0, 0, 0, 0.40)";
|
|
10652
|
+
const iocShadowLg = "0 8px 32px rgba(0, 0, 0, 0.50)";
|
|
10653
|
+
`linear-gradient(180deg, ${iocTealPalette[400]} 0%, ${iocTealPalette[600]} 100%)`;
|
|
10654
|
+
`linear-gradient(180deg, ${iocBluePalette[500]} 0%, ${iocBluePalette[600]} 100%)`;
|
|
10655
|
+
`linear-gradient(180deg, ${redPalette[400]} 0%, ${redPalette[500]} 100%)`;
|
|
10656
|
+
`linear-gradient(135deg, ${iocTealPalette[400]} 0%, ${iocBluePalette[500]} 100%)`;
|
|
10657
|
+
`0 0 6px ${iocTealPalette[500]}CC, 0 0 16px ${iocTealPalette[500]}77, 0 0 28px ${iocTealPalette[500]}33`;
|
|
10658
|
+
`0 0 6px ${iocBluePalette[500]}CC, 0 0 16px ${iocBluePalette[500]}77, 0 0 28px ${iocBluePalette[500]}33`;
|
|
10659
|
+
`0 0 6px ${greenPalette[500]}CC, 0 0 16px ${greenPalette[500]}77, 0 0 28px ${greenPalette[500]}33`;
|
|
10660
|
+
`0 0 6px ${lightOrangePalette[500]}CC, 0 0 16px ${lightOrangePalette[500]}77, 0 0 28px ${lightOrangePalette[500]}33`;
|
|
10661
|
+
`0 0 6px ${redPalette[500]}CC, 0 0 16px ${redPalette[500]}77, 0 0 28px ${redPalette[500]}33`;
|
|
10662
|
+
`0 0 6px ${orangePalette[500]}CC, 0 0 16px ${orangePalette[500]}77, 0 0 28px ${orangePalette[500]}33`;
|
|
10663
|
+
`0 0 6px ${lightBluePalette[500]}CC, 0 0 16px ${lightBluePalette[500]}77, 0 0 28px ${lightBluePalette[500]}33`;
|
|
10664
|
+
`0 0 6px ${iocTealPalette[600]}99, 0 0 14px ${iocTealPalette[600]}44`;
|
|
10665
|
+
|
|
10666
|
+
const iocVars = {
|
|
10667
|
+
brandOrange: lightOrangePalette[500],
|
|
10668
|
+
brandOrangeDark: lightOrangePalette[900],
|
|
10669
|
+
brandBlue: iocTealPalette[500],
|
|
10670
|
+
brandMidnightBlue: iocBackdropPalette[500],
|
|
10671
|
+
agentcyYellow: lightOrangePalette[500],
|
|
10672
|
+
agentcyBlue: iocTealPalette[500],
|
|
10673
|
+
agentcyDarkBlue: iocBackdropPalette[900],
|
|
10674
|
+
baseTextDark: iocBackdropPalette[900],
|
|
10675
|
+
baseTextStrong: iocTextPrimary,
|
|
10676
|
+
baseTextDefault: iocTextSecondary,
|
|
10677
|
+
baseTextMedium: iocTextTertiary,
|
|
10678
|
+
baseTextWeak: iocTextDisabled,
|
|
10679
|
+
baseTextInverse: iocBackdropPalette[900],
|
|
10680
|
+
baseTextDisabled: iocTextDisabled,
|
|
10681
|
+
baseBackgroundStrong: iocBackdropPalette[600],
|
|
10682
|
+
baseBackgroundMedium: iocSurfacePalette[200],
|
|
10683
|
+
baseBackgroundWeak: iocSurfacePalette[100],
|
|
10684
|
+
baseBackgroundHover: iocSurfacePalette[300],
|
|
10685
|
+
baseBorderDefault: iocBorderPalette[300],
|
|
10686
|
+
baseBorderStrong: iocBorderPalette[500],
|
|
10687
|
+
baseBorderMedium: iocBorderPalette[200],
|
|
10688
|
+
baseBorderWeak: iocBorderPalette[100],
|
|
10689
|
+
brandIconPrimaryDefault: iocTealPalette[500],
|
|
10690
|
+
brandIconPrimaryWeak: iocTealPalette[200],
|
|
10691
|
+
brandIconPrimaryMedium: iocTealPalette[400],
|
|
10692
|
+
brandIconPrimaryStrong: iocTealPalette[700],
|
|
10693
|
+
brandIconSecondaryDefault: iocBluePalette[500],
|
|
10694
|
+
brandIconSecondaryWeak: iocBluePalette[400],
|
|
10695
|
+
brandIconSecondaryMedium: iocBluePalette[500],
|
|
10696
|
+
brandIconTertiaryDefault: lightOrangePalette[500],
|
|
10697
|
+
brandIconTertiaryWeak: lightOrangePalette[200],
|
|
10698
|
+
brandIconTertiaryMedium: lightOrangePalette[400],
|
|
10699
|
+
brandBackgroundPrimaryDefault: iocTealPalette[500],
|
|
10700
|
+
brandBackgroundPrimaryWeak: iocTealPalette.alpha10,
|
|
10701
|
+
brandBackgroundPrimaryMedium: iocTealPalette.alpha20,
|
|
10702
|
+
brandBackgroundSecondaryDefault: iocBluePalette[500],
|
|
10703
|
+
brandLogoPrimary: iocTealPalette[400],
|
|
10704
|
+
brandLogoSecondary: iocTextPrimary,
|
|
10705
|
+
brandTextPrimary: iocTealPalette[400],
|
|
10706
|
+
brandTextSecondary: iocTextPrimary,
|
|
10707
|
+
brandTextTertiary: lightOrangePalette[500],
|
|
10708
|
+
controlBackgroundDefault: iocSurfacePalette[200],
|
|
10709
|
+
controlBackgroundDisabled: iocSurfacePalette[50],
|
|
10710
|
+
controlBackgroundWeak: iocSurfacePalette[300],
|
|
10711
|
+
controlBackgroundMedium: iocSurfacePalette[500],
|
|
10712
|
+
controlBorderDefault: iocBorderPalette[300],
|
|
10713
|
+
controlBorderStrong: iocBorderPalette[500],
|
|
10714
|
+
controlBorderMedium: iocBorderPalette[200],
|
|
10715
|
+
controlBorderWeak: iocBorderPalette[100],
|
|
10716
|
+
controlBorderHover: iocTealPalette[500],
|
|
10717
|
+
controlBorderActive: iocTealPalette[600],
|
|
10718
|
+
controlBorderNegative: redPalette[500],
|
|
10719
|
+
controlBorderDisabled: iocBorderPalette[100],
|
|
10720
|
+
controlIconDefault: iocTextSecondary,
|
|
10721
|
+
controlIconStrong: iocTextPrimary,
|
|
10722
|
+
controlIconMedium: iocTextTertiary,
|
|
10723
|
+
controlIconWeak: iocTextDisabled,
|
|
10724
|
+
controlIconHover: iocTealPalette[400],
|
|
10725
|
+
controlIconActive: iocTealPalette[500],
|
|
10726
|
+
controlIconDisabled: iocTextDisabled,
|
|
10727
|
+
controlFocusRingWeak: iocTealPalette.alpha10,
|
|
10728
|
+
controlFocusRingStrong: iocTealPalette.alpha20,
|
|
10729
|
+
interactivePrimaryDefaultDefault: iocTealPalette[500],
|
|
10730
|
+
interactivePrimaryDefaultHover: iocTealPalette[400],
|
|
10731
|
+
interactivePrimaryDefaultActive: iocTealPalette[600],
|
|
10732
|
+
interactivePrimaryDefaultDisabled: iocTealPalette.alpha40,
|
|
10733
|
+
interactivePrimaryWeakDefault: iocTealPalette.alpha10,
|
|
10734
|
+
interactivePrimaryWeakHover: iocTealPalette.alpha20,
|
|
10735
|
+
interactivePrimaryWeakActive: iocTealPalette.alpha40,
|
|
10736
|
+
interactivePrimaryWeakDisabled: iocTealPalette.alpha05,
|
|
10737
|
+
interactiveSecondaryDefaultDefault: iocBluePalette[500],
|
|
10738
|
+
interactiveSecondaryDefaultHover: iocBluePalette[400],
|
|
10739
|
+
interactiveSecondaryDefaultActive: iocBluePalette[600],
|
|
10740
|
+
interactiveSecondaryDefaultDisabled: "rgba(43,130,246,0.40)",
|
|
10741
|
+
interactiveSecondaryWeakDefault: iocSurfacePalette[200],
|
|
10742
|
+
interactiveSecondaryWeakHover: iocSurfacePalette[300],
|
|
10743
|
+
interactiveSecondaryWeakActive: iocSurfacePalette[400],
|
|
10744
|
+
interactiveSecondaryWeakDisabled: iocSurfacePalette[100],
|
|
10745
|
+
interactiveInverseBackgroundDefault: "rgba(255,255,255,0.90)",
|
|
10746
|
+
interactiveInverseBackgroundHover: "rgba(255,255,255,0.95)",
|
|
10747
|
+
interactiveInverseBackgroundActive: "rgba(255,255,255,0.85)",
|
|
10748
|
+
interactiveInverseBackgroundDisabled: "rgba(255,255,255,0.40)",
|
|
10749
|
+
interactiveInverseTextDefault: iocBackdropPalette[900],
|
|
10750
|
+
interactiveInverseTextHover: iocBackdropPalette[700],
|
|
10751
|
+
interactiveInverseTextActive: iocBackdropPalette[800],
|
|
10752
|
+
interactiveInverseTextDisabled: "rgba(0,0,0,0.30)",
|
|
10753
|
+
interactiveTextInDefault: iocTextPrimary,
|
|
10754
|
+
interactiveTextInHover: iocTextPrimary,
|
|
10755
|
+
interactiveTextInActive: iocTextPrimary,
|
|
10756
|
+
interactiveTextInDisabled: iocTextDisabled,
|
|
10757
|
+
interactiveTertiaryDefault: lightOrangePalette[500],
|
|
10758
|
+
interactiveTertiaryHover: lightOrangePalette[400],
|
|
10759
|
+
interactiveTertiaryActive: lightOrangePalette[600],
|
|
10760
|
+
interactiveTertiaryDisabled: lightOrangePalette["alpha40"],
|
|
10761
|
+
successBackgroundDefault: greenPalette[500],
|
|
10762
|
+
successBackgroundDisabled: greenPalette[40],
|
|
10763
|
+
successBackgroundHover: greenPalette[400],
|
|
10764
|
+
successBackgroundActive: greenPalette[600],
|
|
10765
|
+
successBackgroundWeak: "rgba(0, 185, 141, 0.10)",
|
|
10766
|
+
successIconActive: greenPalette[600],
|
|
10767
|
+
successIconDisabled: greenPalette[40],
|
|
10768
|
+
successIconHover: greenPalette[400],
|
|
10769
|
+
successIconDefault: greenPalette[500],
|
|
10770
|
+
successTextActive: greenPalette[300],
|
|
10771
|
+
successTextHover: greenPalette[200],
|
|
10772
|
+
successTextDefault: greenPalette[300],
|
|
10773
|
+
successTextInDisabled: greenPalette[10],
|
|
10774
|
+
successTextInDefault: greyPalette[900],
|
|
10775
|
+
successBorderDisabled: greenPalette[40],
|
|
10776
|
+
successBorderActive: greenPalette[600],
|
|
10777
|
+
successBorderHover: greenPalette[400],
|
|
10778
|
+
successBorderDefault: greenPalette[500],
|
|
10779
|
+
successBorderWeak: "rgba(0, 185, 141, 0.30)",
|
|
10780
|
+
successIconInDisabled: greenPalette[10],
|
|
10781
|
+
successIconInActive: greenPalette[200],
|
|
10782
|
+
successIconInHover: greenPalette[100],
|
|
10783
|
+
successIconInDefault: greenPalette[50],
|
|
10784
|
+
negativeBackgroundHover: redPalette[400],
|
|
10785
|
+
negativeBackgroundActive: redPalette[600],
|
|
10786
|
+
negativeBackgroundDisabled: redPalette["alpha40"],
|
|
10787
|
+
negativeBackgroundDefault: redPalette[500],
|
|
10788
|
+
negativeBackgroundWeak: "rgba(198, 41, 83, 0.10)",
|
|
10789
|
+
negativeTextDefault: redPalette[300],
|
|
10790
|
+
negativeTextHover: redPalette[200],
|
|
10791
|
+
negativeTextActive: redPalette[400],
|
|
10792
|
+
negativeBorderActive: redPalette[600],
|
|
10793
|
+
negativeBorderHover: redPalette[400],
|
|
10794
|
+
negativeBorderDisabled: redPalette["alpha40"],
|
|
10795
|
+
negativeBorderDefault: redPalette[500],
|
|
10796
|
+
negativeBorderWeak: "rgba(198, 41, 83, 0.30)",
|
|
10797
|
+
negativeIconDisabled: redPalette["alpha40"],
|
|
10798
|
+
negativeIconActive: redPalette[600],
|
|
10799
|
+
negativeIconHover: redPalette[400],
|
|
10800
|
+
negativeIconDefault: redPalette[500],
|
|
10801
|
+
negativeTextInDefault: redPalette[50],
|
|
10802
|
+
negativeTextInDisabled: redPalette["alpha10"],
|
|
10803
|
+
negativeIconInDefault: redPalette[50],
|
|
10804
|
+
negativeIconInHover: redPalette[100],
|
|
10805
|
+
negativeIconInActive: redPalette[200],
|
|
10806
|
+
negativeIconInDisabled: redPalette["alpha10"],
|
|
10807
|
+
excellentBackgroundDefault: lightBluePalette[600],
|
|
10808
|
+
excellentBackgroundWeak: "rgba(31, 210, 255, 0.10)",
|
|
10809
|
+
excellentBackgroundDisabled: lightBluePalette["alpha40"],
|
|
10810
|
+
excellentBackgroundHover: lightBluePalette[500],
|
|
10811
|
+
excellentBackgroundActive: lightBluePalette[700],
|
|
10812
|
+
excellentTextDefault: lightBluePalette[200],
|
|
10813
|
+
excellentTextHover: lightBluePalette[100],
|
|
10814
|
+
excellentTextActive: lightBluePalette[300],
|
|
10815
|
+
excellentTextInDefault: greyPalette[900],
|
|
10816
|
+
excellentTextInDisabled: lightBluePalette["alpha10"],
|
|
10817
|
+
excellentBorderDefault: lightBluePalette[600],
|
|
10818
|
+
excellentBorderHover: lightBluePalette[500],
|
|
10819
|
+
excellentBorderActive: lightBluePalette[700],
|
|
10820
|
+
excellentBorderDisabled: lightBluePalette["alpha40"],
|
|
10821
|
+
excellentBorderWeak: "rgba(31, 210, 255, 0.30)",
|
|
10822
|
+
excellentIconDefault: lightBluePalette[500],
|
|
10823
|
+
excellentIconHover: lightBluePalette[400],
|
|
10824
|
+
excellentIconActive: lightBluePalette[600],
|
|
10825
|
+
excellentIconDisabled: lightBluePalette["alpha40"],
|
|
10826
|
+
excellentIconInDefault: lightBluePalette[50],
|
|
10827
|
+
excellentIconInHover: lightBluePalette[100],
|
|
10828
|
+
excellentIconInActive: lightBluePalette[200],
|
|
10829
|
+
excellentIconInDisabled: lightBluePalette["alpha10"],
|
|
10830
|
+
neutralBackgroundDefault: iocTealPalette[600],
|
|
10831
|
+
neutralBackgroundWeak: iocTealPalette.alpha10,
|
|
10832
|
+
neutralBackgroundDisabled: iocTealPalette.alpha40,
|
|
10833
|
+
neutralBackgroundHover: iocTealPalette[500],
|
|
10834
|
+
neutralBackgroundActive: iocTealPalette[700],
|
|
10835
|
+
neutralTextDefault: iocTealPalette[200],
|
|
10836
|
+
neutralTextHover: iocTealPalette[100],
|
|
10837
|
+
neutralTextActive: iocTealPalette[300],
|
|
10838
|
+
neutralTextInDefault: greyPalette[900],
|
|
10839
|
+
neutralTextInDisabled: iocTealPalette.alpha10,
|
|
10840
|
+
neutralBorderDefault: iocTealPalette[600],
|
|
10841
|
+
neutralBorderHover: iocTealPalette[500],
|
|
10842
|
+
neutralBorderActive: iocTealPalette[700],
|
|
10843
|
+
neutralBorderDisabled: iocTealPalette.alpha40,
|
|
10844
|
+
neutralBorderWeak: iocTealPalette.alpha20,
|
|
10845
|
+
neutralIconDefault: iocTealPalette[500],
|
|
10846
|
+
neutralIconHover: iocTealPalette[400],
|
|
10847
|
+
neutralIconActive: iocTealPalette[600],
|
|
10848
|
+
neutralIconDisabled: iocTealPalette.alpha40,
|
|
10849
|
+
neutralIconInDefault: iocTealPalette[50],
|
|
10850
|
+
neutralIconInHover: iocTealPalette[100],
|
|
10851
|
+
neutralIconInActive: iocTealPalette[200],
|
|
10852
|
+
neutralIconInDisabled: iocTealPalette.alpha10,
|
|
10853
|
+
infoBackgroundDefault: iocBluePalette[600],
|
|
10854
|
+
infoBackgroundWeak: "rgba(43,130,246,0.10)",
|
|
10855
|
+
infoBackgroundDisabled: "rgba(43,130,246,0.40)",
|
|
10856
|
+
infoBackgroundHover: iocBluePalette[500],
|
|
10857
|
+
infoBackgroundActive: iocBluePalette[600],
|
|
10858
|
+
infoTextDefault: "#93C5FD",
|
|
10859
|
+
infoTextHover: "#BFDBFE",
|
|
10860
|
+
infoTextActive: "#60A5FA",
|
|
10861
|
+
infoTextInDefault: greyPalette[900],
|
|
10862
|
+
infoTextInDisabled: "rgba(43,130,246,0.10)",
|
|
10863
|
+
infoBorderDefault: iocBluePalette[600],
|
|
10864
|
+
infoBorderHover: iocBluePalette[500],
|
|
10865
|
+
infoBorderActive: iocBluePalette[600],
|
|
10866
|
+
infoBorderDisabled: "rgba(43,130,246,0.40)",
|
|
10867
|
+
infoBorderWeak: "rgba(43,130,246,0.20)",
|
|
10868
|
+
infoIconDefault: iocBluePalette[500],
|
|
10869
|
+
infoIconHover: iocBluePalette[400],
|
|
10870
|
+
infoIconActive: iocBluePalette[600],
|
|
10871
|
+
infoIconDisabled: "rgba(43,130,246,0.40)",
|
|
10872
|
+
infoIconInDefault: "#EFF6FF",
|
|
10873
|
+
infoIconInHover: "#BFDBFE",
|
|
10874
|
+
infoIconInActive: "#93C5FD",
|
|
10875
|
+
infoIconInDisabled: "rgba(43,130,246,0.10)",
|
|
10876
|
+
inactiveBackgroundDefault: greyPalette[600],
|
|
10877
|
+
inactiveBackgroundWeak: "rgba(60, 69, 81, 0.10)",
|
|
10878
|
+
inactiveBackgroundDisabled: greyPalette["alpha40"],
|
|
10879
|
+
inactiveBackgroundHover: greyPalette[500],
|
|
10880
|
+
inactiveBackgroundActive: greyPalette[700],
|
|
10881
|
+
inactiveTextDefault: greyPalette[200],
|
|
10882
|
+
inactiveTextHover: greyPalette[100],
|
|
10883
|
+
inactiveTextActive: greyPalette[300],
|
|
10884
|
+
inactiveTextInDefault: greyPalette[50],
|
|
10885
|
+
inactiveTextInDisabled: greyPalette["alpha40"],
|
|
10886
|
+
inactiveBorderDefault: greyPalette[600],
|
|
10887
|
+
inactiveBorderHover: greyPalette[500],
|
|
10888
|
+
inactiveBorderActive: greyPalette[700],
|
|
10889
|
+
inactiveBorderDisabled: greyPalette["alpha40"],
|
|
10890
|
+
inactiveBorderWeak: "rgba(60, 69, 81, 0.30)",
|
|
10891
|
+
inactiveIconDefault: greyPalette[400],
|
|
10892
|
+
inactiveIconHover: greyPalette[300],
|
|
10893
|
+
inactiveIconActive: greyPalette[500],
|
|
10894
|
+
inactiveIconDisabled: greyPalette["alpha40"],
|
|
10895
|
+
inactiveIconInDefault: greyPalette[0],
|
|
10896
|
+
inactiveIconInHover: greyPalette[50],
|
|
10897
|
+
inactiveIconInActive: greyPalette[100],
|
|
10898
|
+
inactiveIconInDisabled: greyPalette["alpha10"],
|
|
10899
|
+
warningBackgroundDefault: lightOrangePalette[500],
|
|
10900
|
+
warningBackgroundWeak: "rgba(251, 175, 69, 0.10)",
|
|
10901
|
+
warningBackgroundHover: lightOrangePalette[400],
|
|
10902
|
+
warningBackgroundActive: lightOrangePalette[600],
|
|
10903
|
+
warningBackgroundDisabled: lightOrangePalette["alpha40"],
|
|
10904
|
+
warningTextDefault: lightOrangePalette[200],
|
|
10905
|
+
warningTextHover: lightOrangePalette[100],
|
|
10906
|
+
warningTextActive: lightOrangePalette[300],
|
|
10907
|
+
warningTextInDefault: greyPalette[900],
|
|
10908
|
+
warningTextInDisabled: lightOrangePalette["alpha10"],
|
|
10909
|
+
warningBorderDefault: lightOrangePalette[500],
|
|
10910
|
+
warningBorderHover: lightOrangePalette[400],
|
|
10911
|
+
warningBorderActive: lightOrangePalette[600],
|
|
10912
|
+
warningBorderDisabled: lightOrangePalette["alpha40"],
|
|
10913
|
+
warningBorderWeak: "rgba(251, 175, 69, 0.30)",
|
|
10914
|
+
warningIconDefault: lightOrangePalette[500],
|
|
10915
|
+
warningIconHover: lightOrangePalette[400],
|
|
10916
|
+
warningIconActive: lightOrangePalette[600],
|
|
10917
|
+
warningIconDisabled: lightOrangePalette["alpha40"],
|
|
10918
|
+
warningIconInDefault: lightOrangePalette[50],
|
|
10919
|
+
warningIconInHover: lightOrangePalette[100],
|
|
10920
|
+
warningIconInActive: lightOrangePalette[200],
|
|
10921
|
+
warningIconInDisabled: lightOrangePalette["alpha10"],
|
|
10922
|
+
severeWarningBackgroundDefault: orangePalette[500],
|
|
10923
|
+
severeWarningBackgroundWeak: "rgba(242, 100, 61, 0.10)",
|
|
10924
|
+
severeWarningBackgroundHover: orangePalette[400],
|
|
10925
|
+
severeWarningBackgroundActive: orangePalette[600],
|
|
10926
|
+
severeWarningBackgroundDisabled: orangePalette["alpha40"],
|
|
10927
|
+
severeWarningTextDefault: orangePalette[200],
|
|
10928
|
+
severeWarningTextHover: orangePalette[100],
|
|
10929
|
+
severeWarningTextActive: orangePalette[300],
|
|
10930
|
+
severeWarningTextInDefault: greyPalette[900],
|
|
10931
|
+
severeWarningTextInDisabled: orangePalette["alpha10"],
|
|
10932
|
+
severeWarningBorderDefault: orangePalette[500],
|
|
10933
|
+
severeWarningBorderHover: orangePalette[400],
|
|
10934
|
+
severeWarningBorderActive: orangePalette[600],
|
|
10935
|
+
severeWarningBorderDisabled: orangePalette["alpha40"],
|
|
10936
|
+
severeWarningBorderWeak: "rgba(242, 100, 61, 0.30)",
|
|
10937
|
+
severeWarningIconDefault: orangePalette[500],
|
|
10938
|
+
severeWarningIconHover: orangePalette[400],
|
|
10939
|
+
severeWarningIconActive: orangePalette[600],
|
|
10940
|
+
severeWarningIconDisabled: orangePalette["alpha40"],
|
|
10941
|
+
severeWarningIconInDefault: orangePalette[50],
|
|
10942
|
+
severeWarningIconInHover: orangePalette[100],
|
|
10943
|
+
severeWarningIconInActive: orangePalette[200],
|
|
10944
|
+
severeWarningIconInDisabled: orangePalette["alpha10"],
|
|
10945
|
+
moderateBackgroundDefault: yellowPalette[500],
|
|
10946
|
+
moderateBackgroundWeak: "rgba(255, 230, 89, 0.10)",
|
|
10947
|
+
moderateBackgroundHover: yellowPalette[400],
|
|
10948
|
+
moderateBackgroundActive: yellowPalette[600],
|
|
10949
|
+
moderateBackgroundDisabled: yellowPalette["alpha40"],
|
|
10950
|
+
moderateTextDefault: yellowPalette[900],
|
|
10951
|
+
moderateTextHover: yellowPalette[800],
|
|
10952
|
+
moderateTextActive: yellowPalette[700],
|
|
10953
|
+
moderateTextInDefault: greyPalette[900],
|
|
10954
|
+
moderateTextInDisabled: yellowPalette["alpha10"],
|
|
10955
|
+
moderateBorderDefault: yellowPalette[500],
|
|
10956
|
+
moderateBorderHover: yellowPalette[400],
|
|
10957
|
+
moderateBorderActive: yellowPalette[600],
|
|
10958
|
+
moderateBorderDisabled: yellowPalette["alpha40"],
|
|
10959
|
+
moderateBorderWeak: "rgba(255, 230, 89, 0.30)",
|
|
10960
|
+
moderateIconDefault: yellowPalette[700],
|
|
10961
|
+
moderateIconHover: yellowPalette[600],
|
|
10962
|
+
moderateIconActive: yellowPalette[800],
|
|
10963
|
+
moderateIconDisabled: yellowPalette["alpha40"],
|
|
10964
|
+
moderateIconInDefault: yellowPalette[900],
|
|
10965
|
+
moderateIconInHover: yellowPalette[800],
|
|
10966
|
+
moderateIconInActive: yellowPalette[700],
|
|
10967
|
+
moderateIconInDisabled: yellowPalette["alpha10"],
|
|
10968
|
+
accentADefault: lavenderPalette[400],
|
|
10969
|
+
accentAWeak: "rgba(140, 149, 255, 0.15)",
|
|
10970
|
+
accentBDefault: sunsetPalette[300],
|
|
10971
|
+
accentBWeak: "rgba(233, 106, 141, 0.15)",
|
|
10972
|
+
accentCDefault: sunsetPalette[100],
|
|
10973
|
+
accentCWeak: "rgba(243, 172, 162, 0.15)",
|
|
10974
|
+
accentDDefault: purplePalette[400],
|
|
10975
|
+
accentDWeak: "rgba(192, 128, 255, 0.15)",
|
|
10976
|
+
accentEDefault: limePalette[400],
|
|
10977
|
+
accentEWeak: "rgba(164, 197, 71, 0.15)",
|
|
10978
|
+
accentFDefault: orangePalette[400],
|
|
10979
|
+
accentFWeak: "rgba(244, 123, 90, 0.15)",
|
|
10980
|
+
accentGDefault: nightPalette[200],
|
|
10981
|
+
accentGWeak: "rgba(70, 170, 206, 0.15)",
|
|
10982
|
+
accentHDefault: iocTealPalette[400],
|
|
10983
|
+
accentHWeak: iocTealPalette.alpha10,
|
|
10984
|
+
accentIDefault: pinkPalette[400],
|
|
10985
|
+
accentIWeak: "rgba(242, 99, 140, 0.15)",
|
|
10986
|
+
accentJDefault: tealPalette[400],
|
|
10987
|
+
accentJWeak: "rgba(62, 203, 209, 0.15)",
|
|
10988
|
+
};
|
|
10989
|
+
|
|
10990
|
+
const iocShadows = [
|
|
10991
|
+
"none",
|
|
10992
|
+
iocShadowSm,
|
|
10993
|
+
iocShadowMd,
|
|
10994
|
+
iocShadowLg,
|
|
10995
|
+
iocShadowLg,
|
|
10996
|
+
iocShadowLg,
|
|
10997
|
+
...Array(19).fill("none"),
|
|
10998
|
+
];
|
|
10999
|
+
const palette$1 = {
|
|
11000
|
+
mode: "dark",
|
|
11001
|
+
primary: Object.assign(Object.assign({}, iocTealPalette), { main: iocTealPalette[500], light: iocTealPalette[300], dark: iocTealPalette[700], contrastText: iocBackdropPalette[900] }),
|
|
11002
|
+
secondary: {
|
|
11003
|
+
main: iocBluePalette[500],
|
|
11004
|
+
light: iocBluePalette[400],
|
|
11005
|
+
dark: iocBluePalette[600],
|
|
11006
|
+
contrastText: "#ffffff",
|
|
11007
|
+
},
|
|
11008
|
+
tertiary: lightOrangePalette,
|
|
11009
|
+
error: redPalette,
|
|
11010
|
+
warning: lightOrangePalette,
|
|
11011
|
+
info: iocBluePalette,
|
|
11012
|
+
success: greenPalette,
|
|
11013
|
+
negative: redPalette,
|
|
11014
|
+
orange: orangePalette,
|
|
11015
|
+
grey: greyPalette,
|
|
11016
|
+
vars: iocVars,
|
|
11017
|
+
text: {
|
|
11018
|
+
primary: iocTextPrimary,
|
|
11019
|
+
secondary: iocTextSecondary,
|
|
11020
|
+
disabled: iocTextDisabled,
|
|
11021
|
+
},
|
|
11022
|
+
background: {
|
|
11023
|
+
paper: iocSurfacePalette[100],
|
|
11024
|
+
default: iocBackdropPalette[600],
|
|
11025
|
+
},
|
|
11026
|
+
action: {
|
|
11027
|
+
hoverOpacity: 0.08,
|
|
11028
|
+
selectedOpacity: 0.14,
|
|
11029
|
+
focusOpacity: 0.1,
|
|
11030
|
+
},
|
|
11031
|
+
};
|
|
11032
|
+
const baseTheme = createTheme({
|
|
11033
|
+
breakpoints,
|
|
11034
|
+
palette: palette$1,
|
|
11035
|
+
typography,
|
|
11036
|
+
mixins: commonMixins,
|
|
11037
|
+
});
|
|
11038
|
+
const iocCssBaselineComponent = {
|
|
11039
|
+
MuiCssBaseline: {
|
|
11040
|
+
styleOverrides: {
|
|
11041
|
+
html: {
|
|
11042
|
+
scrollbarWidth: "thin",
|
|
11043
|
+
scrollbarColor: `${baseTheme.palette.vars.baseTextMedium} ${baseTheme.palette.background.default}`,
|
|
11044
|
+
},
|
|
11045
|
+
body: {
|
|
11046
|
+
background: iocPageBackground,
|
|
11047
|
+
backgroundAttachment: "fixed",
|
|
11048
|
+
minHeight: "100vh",
|
|
11049
|
+
},
|
|
11050
|
+
"*::-webkit-scrollbar": { width: "12px", height: "12px" },
|
|
11051
|
+
"*::-webkit-scrollbar-track": {
|
|
11052
|
+
backgroundColor: baseTheme.palette.background.default,
|
|
11053
|
+
borderRadius: 8,
|
|
11054
|
+
},
|
|
11055
|
+
"*::-webkit-scrollbar-thumb": {
|
|
11056
|
+
backgroundColor: baseTheme.palette.vars.controlIconMedium,
|
|
11057
|
+
borderRadius: 8,
|
|
11058
|
+
border: "2px solid transparent",
|
|
11059
|
+
backgroundClip: "content-box",
|
|
11060
|
+
},
|
|
11061
|
+
"*::-webkit-scrollbar-thumb:hover": {
|
|
11062
|
+
backgroundColor: baseTheme.palette.vars.baseTextMedium,
|
|
11063
|
+
},
|
|
11064
|
+
"*::-webkit-scrollbar-corner": {
|
|
11065
|
+
backgroundColor: baseTheme.palette.background.default,
|
|
11066
|
+
},
|
|
11067
|
+
"::selection": {
|
|
11068
|
+
backgroundColor: baseTheme.palette.vars.controlFocusRingStrong,
|
|
11069
|
+
color: baseTheme.palette.vars.baseTextStrong,
|
|
11070
|
+
},
|
|
11071
|
+
},
|
|
11072
|
+
},
|
|
11073
|
+
};
|
|
11074
|
+
const iocThemeOptions = {
|
|
11075
|
+
shadows: iocShadows,
|
|
11076
|
+
components: Object.assign(Object.assign(Object.assign(Object.assign({}, buttonComponent(baseTheme)), inputComponents(baseTheme)), snackbarComponent(baseTheme)), iocCssBaselineComponent),
|
|
11077
|
+
};
|
|
11078
|
+
const iocTheme = createTheme(baseTheme, iocThemeOptions);
|
|
11079
|
+
iocTheme.palette.vars = iocVars;
|
|
11080
|
+
|
|
10526
11081
|
const lightVars = {
|
|
10527
11082
|
brandOrange: lightOrangePalette[500],
|
|
10528
11083
|
brandOrangeDark: lightOrangePalette[900],
|
|
@@ -10902,6 +11457,7 @@ var ThemeMode;
|
|
|
10902
11457
|
(function (ThemeMode) {
|
|
10903
11458
|
ThemeMode["Light"] = "light";
|
|
10904
11459
|
ThemeMode["Dark"] = "dark";
|
|
11460
|
+
ThemeMode["IoC"] = "ioc";
|
|
10905
11461
|
})(ThemeMode || (ThemeMode = {}));
|
|
10906
11462
|
const ThemeModeContext = React__default.createContext(null);
|
|
10907
11463
|
function useThemeMode() {
|
|
@@ -10911,17 +11467,23 @@ function useThemeMode() {
|
|
|
10911
11467
|
}
|
|
10912
11468
|
return ctx;
|
|
10913
11469
|
}
|
|
11470
|
+
function resolveBuiltInTheme(mode) {
|
|
11471
|
+
if (mode === ThemeMode.IoC) {
|
|
11472
|
+
return iocTheme;
|
|
11473
|
+
}
|
|
11474
|
+
return mode === ThemeMode.Dark ? darkTheme : lightTheme;
|
|
11475
|
+
}
|
|
10914
11476
|
const ThemeProvider = ({ children, defaultMode, customTheme, }) => {
|
|
10915
11477
|
const [mode, setMode] = React__default.useState(defaultMode !== null && defaultMode !== void 0 ? defaultMode : ThemeMode.Light);
|
|
10916
|
-
const
|
|
10917
|
-
setMode(
|
|
11478
|
+
const setTheme = React__default.useCallback((theme) => {
|
|
11479
|
+
setMode(theme);
|
|
10918
11480
|
}, []);
|
|
10919
|
-
const resolvedTheme = customTheme !== null && customTheme !== void 0 ? customTheme : (mode
|
|
11481
|
+
const resolvedTheme = customTheme !== null && customTheme !== void 0 ? customTheme : resolveBuiltInTheme(mode);
|
|
10920
11482
|
const themeModeValue = React__default.useMemo(() => ({
|
|
10921
11483
|
mode,
|
|
10922
11484
|
setMode,
|
|
10923
|
-
|
|
10924
|
-
}), [mode,
|
|
11485
|
+
setTheme,
|
|
11486
|
+
}), [mode, setTheme]);
|
|
10925
11487
|
return (jsx(ThemeModeContext.Provider, { value: themeModeValue, children: jsxs(ThemeProvider$1, { theme: resolvedTheme, children: [jsx(CssBaseline, {}), children] }) }));
|
|
10926
11488
|
};
|
|
10927
11489
|
|
|
@@ -12575,44 +13137,604 @@ const PickerItem = (_a) => {
|
|
|
12575
13137
|
], children: [jsx(Box, { className: "picker-icon", "aria-hidden": true, children: icon }), jsx(Box, { component: "span", className: "picker-label", children: label })] })));
|
|
12576
13138
|
};
|
|
12577
13139
|
|
|
13140
|
+
var PopoverPlacementSide;
|
|
13141
|
+
(function (PopoverPlacementSide) {
|
|
13142
|
+
PopoverPlacementSide["Top"] = "top";
|
|
13143
|
+
PopoverPlacementSide["Bottom"] = "bottom";
|
|
13144
|
+
PopoverPlacementSide["Left"] = "left";
|
|
13145
|
+
PopoverPlacementSide["Right"] = "right";
|
|
13146
|
+
})(PopoverPlacementSide || (PopoverPlacementSide = {}));
|
|
13147
|
+
var PopoverPlacementAlign;
|
|
13148
|
+
(function (PopoverPlacementAlign) {
|
|
13149
|
+
PopoverPlacementAlign["Start"] = "start";
|
|
13150
|
+
PopoverPlacementAlign["End"] = "end";
|
|
13151
|
+
PopoverPlacementAlign["Center"] = "center";
|
|
13152
|
+
})(PopoverPlacementAlign || (PopoverPlacementAlign = {}));
|
|
13153
|
+
var PopoverPlacement;
|
|
13154
|
+
(function (PopoverPlacement) {
|
|
13155
|
+
PopoverPlacement["Top"] = "top";
|
|
13156
|
+
PopoverPlacement["TopStart"] = "top-start";
|
|
13157
|
+
PopoverPlacement["TopEnd"] = "top-end";
|
|
13158
|
+
PopoverPlacement["Bottom"] = "bottom";
|
|
13159
|
+
PopoverPlacement["BottomStart"] = "bottom-start";
|
|
13160
|
+
PopoverPlacement["BottomEnd"] = "bottom-end";
|
|
13161
|
+
PopoverPlacement["Left"] = "left";
|
|
13162
|
+
PopoverPlacement["LeftStart"] = "left-start";
|
|
13163
|
+
PopoverPlacement["LeftEnd"] = "left-end";
|
|
13164
|
+
PopoverPlacement["Right"] = "right";
|
|
13165
|
+
PopoverPlacement["RightStart"] = "right-start";
|
|
13166
|
+
PopoverPlacement["RightEnd"] = "right-end";
|
|
13167
|
+
})(PopoverPlacement || (PopoverPlacement = {}));
|
|
13168
|
+
const POPOVER_PLACEMENTS = [
|
|
13169
|
+
PopoverPlacement.BottomStart,
|
|
13170
|
+
PopoverPlacement.Bottom,
|
|
13171
|
+
PopoverPlacement.BottomEnd,
|
|
13172
|
+
PopoverPlacement.TopStart,
|
|
13173
|
+
PopoverPlacement.Top,
|
|
13174
|
+
PopoverPlacement.TopEnd,
|
|
13175
|
+
PopoverPlacement.LeftStart,
|
|
13176
|
+
PopoverPlacement.Left,
|
|
13177
|
+
PopoverPlacement.LeftEnd,
|
|
13178
|
+
PopoverPlacement.RightStart,
|
|
13179
|
+
PopoverPlacement.Right,
|
|
13180
|
+
PopoverPlacement.RightEnd,
|
|
13181
|
+
];
|
|
13182
|
+
var PopoverVerticalPlacement;
|
|
13183
|
+
(function (PopoverVerticalPlacement) {
|
|
13184
|
+
PopoverVerticalPlacement["Above"] = "above";
|
|
13185
|
+
PopoverVerticalPlacement["Below"] = "below";
|
|
13186
|
+
})(PopoverVerticalPlacement || (PopoverVerticalPlacement = {}));
|
|
13187
|
+
var PopoverHorizontalPlacement;
|
|
13188
|
+
(function (PopoverHorizontalPlacement) {
|
|
13189
|
+
PopoverHorizontalPlacement["Left"] = "left";
|
|
13190
|
+
PopoverHorizontalPlacement["Center"] = "center";
|
|
13191
|
+
PopoverHorizontalPlacement["Right"] = "right";
|
|
13192
|
+
})(PopoverHorizontalPlacement || (PopoverHorizontalPlacement = {}));
|
|
13193
|
+
var PopoverSidePlacement;
|
|
13194
|
+
(function (PopoverSidePlacement) {
|
|
13195
|
+
PopoverSidePlacement["Left"] = "left";
|
|
13196
|
+
PopoverSidePlacement["Right"] = "right";
|
|
13197
|
+
})(PopoverSidePlacement || (PopoverSidePlacement = {}));
|
|
13198
|
+
var PopoverEdgeAlignment;
|
|
13199
|
+
(function (PopoverEdgeAlignment) {
|
|
13200
|
+
PopoverEdgeAlignment["Top"] = "top";
|
|
13201
|
+
PopoverEdgeAlignment["Center"] = "center";
|
|
13202
|
+
PopoverEdgeAlignment["Bottom"] = "bottom";
|
|
13203
|
+
})(PopoverEdgeAlignment || (PopoverEdgeAlignment = {}));
|
|
13204
|
+
var PopoverArrowAxisAlign;
|
|
13205
|
+
(function (PopoverArrowAxisAlign) {
|
|
13206
|
+
PopoverArrowAxisAlign["Left"] = "left";
|
|
13207
|
+
PopoverArrowAxisAlign["Right"] = "right";
|
|
13208
|
+
PopoverArrowAxisAlign["Top"] = "top";
|
|
13209
|
+
PopoverArrowAxisAlign["Bottom"] = "bottom";
|
|
13210
|
+
PopoverArrowAxisAlign["Center"] = "center";
|
|
13211
|
+
})(PopoverArrowAxisAlign || (PopoverArrowAxisAlign = {}));
|
|
13212
|
+
|
|
13213
|
+
const VIEWPORT_MARGIN = 16;
|
|
13214
|
+
const POPOVER_ARROW_HEIGHT = 8;
|
|
13215
|
+
const POPOVER_ARROW_WIDTH = POPOVER_ARROW_HEIGHT;
|
|
13216
|
+
const CENTER_PLACEMENTS = new Set([
|
|
13217
|
+
PopoverPlacement.Top,
|
|
13218
|
+
PopoverPlacement.Bottom,
|
|
13219
|
+
PopoverPlacement.Left,
|
|
13220
|
+
PopoverPlacement.Right,
|
|
13221
|
+
]);
|
|
13222
|
+
const OPPOSITE_PLACEMENT_SIDE = {
|
|
13223
|
+
[PopoverPlacementSide.Top]: PopoverPlacementSide.Bottom,
|
|
13224
|
+
[PopoverPlacementSide.Bottom]: PopoverPlacementSide.Top,
|
|
13225
|
+
[PopoverPlacementSide.Left]: PopoverPlacementSide.Right,
|
|
13226
|
+
[PopoverPlacementSide.Right]: PopoverPlacementSide.Left,
|
|
13227
|
+
};
|
|
13228
|
+
const VERTICAL_CENTER_PLACEMENT = {
|
|
13229
|
+
[PopoverPlacementSide.Top]: PopoverPlacement.Top,
|
|
13230
|
+
[PopoverPlacementSide.Bottom]: PopoverPlacement.Bottom,
|
|
13231
|
+
};
|
|
13232
|
+
const SIDE_CENTER_PLACEMENT = {
|
|
13233
|
+
[PopoverSidePlacement.Left]: PopoverPlacement.Left,
|
|
13234
|
+
[PopoverSidePlacement.Right]: PopoverPlacement.Right,
|
|
13235
|
+
};
|
|
13236
|
+
|
|
13237
|
+
const getOppositePlacementSide = (side) => OPPOSITE_PLACEMENT_SIDE[side];
|
|
13238
|
+
const getPlacementSide = (placement) => placement.split("-")[0];
|
|
13239
|
+
const getPlacementAlign = (placement) => {
|
|
13240
|
+
if (CENTER_PLACEMENTS.has(placement)) {
|
|
13241
|
+
return PopoverPlacementAlign.Center;
|
|
13242
|
+
}
|
|
13243
|
+
if (placement.endsWith(`-${PopoverPlacementAlign.Start}`)) {
|
|
13244
|
+
return PopoverPlacementAlign.Start;
|
|
13245
|
+
}
|
|
13246
|
+
return PopoverPlacementAlign.End;
|
|
13247
|
+
};
|
|
13248
|
+
const getArrowAxisAlign = (placement) => {
|
|
13249
|
+
const side = getPlacementSide(placement);
|
|
13250
|
+
const align = getPlacementAlign(placement);
|
|
13251
|
+
if (side === PopoverPlacementSide.Top ||
|
|
13252
|
+
side === PopoverPlacementSide.Bottom) {
|
|
13253
|
+
if (align === PopoverPlacementAlign.Start) {
|
|
13254
|
+
return PopoverArrowAxisAlign.Left;
|
|
13255
|
+
}
|
|
13256
|
+
if (align === PopoverPlacementAlign.End) {
|
|
13257
|
+
return PopoverArrowAxisAlign.Right;
|
|
13258
|
+
}
|
|
13259
|
+
return PopoverArrowAxisAlign.Center;
|
|
13260
|
+
}
|
|
13261
|
+
if (align === PopoverPlacementAlign.Start) {
|
|
13262
|
+
return PopoverArrowAxisAlign.Top;
|
|
13263
|
+
}
|
|
13264
|
+
if (align === PopoverPlacementAlign.End) {
|
|
13265
|
+
return PopoverArrowAxisAlign.Bottom;
|
|
13266
|
+
}
|
|
13267
|
+
return PopoverArrowAxisAlign.Center;
|
|
13268
|
+
};
|
|
13269
|
+
|
|
13270
|
+
const toHorizontalOrigin = (align) => {
|
|
13271
|
+
if (align === PopoverPlacementAlign.Start) {
|
|
13272
|
+
return PopoverHorizontalPlacement.Left;
|
|
13273
|
+
}
|
|
13274
|
+
if (align === PopoverPlacementAlign.End) {
|
|
13275
|
+
return PopoverHorizontalPlacement.Right;
|
|
13276
|
+
}
|
|
13277
|
+
return PopoverHorizontalPlacement.Center;
|
|
13278
|
+
};
|
|
13279
|
+
const toVerticalOrigin = (align) => {
|
|
13280
|
+
if (align === PopoverPlacementAlign.Start) {
|
|
13281
|
+
return PopoverEdgeAlignment.Top;
|
|
13282
|
+
}
|
|
13283
|
+
if (align === PopoverPlacementAlign.End) {
|
|
13284
|
+
return PopoverEdgeAlignment.Bottom;
|
|
13285
|
+
}
|
|
13286
|
+
return PopoverEdgeAlignment.Center;
|
|
13287
|
+
};
|
|
13288
|
+
const getOriginsForPlacement = (placement) => {
|
|
13289
|
+
const side = getPlacementSide(placement);
|
|
13290
|
+
const align = getPlacementAlign(placement);
|
|
13291
|
+
if (side === PopoverPlacementSide.Top) {
|
|
13292
|
+
const horizontal = toHorizontalOrigin(align);
|
|
13293
|
+
return {
|
|
13294
|
+
anchorOrigin: {
|
|
13295
|
+
vertical: PopoverPlacementSide.Top,
|
|
13296
|
+
horizontal,
|
|
13297
|
+
},
|
|
13298
|
+
transformOrigin: {
|
|
13299
|
+
vertical: PopoverPlacementSide.Bottom,
|
|
13300
|
+
horizontal,
|
|
13301
|
+
},
|
|
13302
|
+
};
|
|
13303
|
+
}
|
|
13304
|
+
if (side === PopoverPlacementSide.Bottom) {
|
|
13305
|
+
const horizontal = toHorizontalOrigin(align);
|
|
13306
|
+
return {
|
|
13307
|
+
anchorOrigin: {
|
|
13308
|
+
vertical: PopoverPlacementSide.Bottom,
|
|
13309
|
+
horizontal,
|
|
13310
|
+
},
|
|
13311
|
+
transformOrigin: {
|
|
13312
|
+
vertical: PopoverPlacementSide.Top,
|
|
13313
|
+
horizontal,
|
|
13314
|
+
},
|
|
13315
|
+
};
|
|
13316
|
+
}
|
|
13317
|
+
if (side === PopoverPlacementSide.Left) {
|
|
13318
|
+
const vertical = toVerticalOrigin(align);
|
|
13319
|
+
return {
|
|
13320
|
+
anchorOrigin: {
|
|
13321
|
+
vertical,
|
|
13322
|
+
horizontal: PopoverPlacementSide.Left,
|
|
13323
|
+
},
|
|
13324
|
+
transformOrigin: {
|
|
13325
|
+
vertical,
|
|
13326
|
+
horizontal: PopoverPlacementSide.Right,
|
|
13327
|
+
},
|
|
13328
|
+
};
|
|
13329
|
+
}
|
|
13330
|
+
const vertical = toVerticalOrigin(align);
|
|
13331
|
+
return {
|
|
13332
|
+
anchorOrigin: {
|
|
13333
|
+
vertical,
|
|
13334
|
+
horizontal: PopoverPlacementSide.Right,
|
|
13335
|
+
},
|
|
13336
|
+
transformOrigin: {
|
|
13337
|
+
vertical,
|
|
13338
|
+
horizontal: PopoverPlacementSide.Left,
|
|
13339
|
+
},
|
|
13340
|
+
};
|
|
13341
|
+
};
|
|
13342
|
+
const getOriginsForVerticalPlacement = (placement, horizontal = PopoverHorizontalPlacement.Center) => {
|
|
13343
|
+
if (placement === PopoverVerticalPlacement.Above) {
|
|
13344
|
+
return {
|
|
13345
|
+
anchorOrigin: {
|
|
13346
|
+
vertical: PopoverPlacementSide.Top,
|
|
13347
|
+
horizontal,
|
|
13348
|
+
},
|
|
13349
|
+
transformOrigin: {
|
|
13350
|
+
vertical: PopoverPlacementSide.Bottom,
|
|
13351
|
+
horizontal,
|
|
13352
|
+
},
|
|
13353
|
+
};
|
|
13354
|
+
}
|
|
13355
|
+
return {
|
|
13356
|
+
anchorOrigin: {
|
|
13357
|
+
vertical: PopoverPlacementSide.Bottom,
|
|
13358
|
+
horizontal,
|
|
13359
|
+
},
|
|
13360
|
+
transformOrigin: {
|
|
13361
|
+
vertical: PopoverPlacementSide.Top,
|
|
13362
|
+
horizontal,
|
|
13363
|
+
},
|
|
13364
|
+
};
|
|
13365
|
+
};
|
|
13366
|
+
const getVerticalPreference = (anchorOrigin, transformOrigin) => {
|
|
13367
|
+
if (transformOrigin.vertical === PopoverPlacementSide.Bottom &&
|
|
13368
|
+
anchorOrigin.vertical === PopoverPlacementSide.Top) {
|
|
13369
|
+
return PopoverVerticalPlacement.Above;
|
|
13370
|
+
}
|
|
13371
|
+
if (transformOrigin.vertical === PopoverPlacementSide.Top &&
|
|
13372
|
+
anchorOrigin.vertical === PopoverPlacementSide.Bottom) {
|
|
13373
|
+
return PopoverVerticalPlacement.Below;
|
|
13374
|
+
}
|
|
13375
|
+
return PopoverVerticalPlacement.Above;
|
|
13376
|
+
};
|
|
13377
|
+
const getHorizontalPreference = (anchorOrigin, transformOrigin) => {
|
|
13378
|
+
var _a, _b;
|
|
13379
|
+
const anchor = (_a = anchorOrigin.horizontal) !== null && _a !== void 0 ? _a : PopoverHorizontalPlacement.Center;
|
|
13380
|
+
const transform = (_b = transformOrigin.horizontal) !== null && _b !== void 0 ? _b : PopoverHorizontalPlacement.Center;
|
|
13381
|
+
if (anchor === PopoverHorizontalPlacement.Left &&
|
|
13382
|
+
transform === PopoverHorizontalPlacement.Left) {
|
|
13383
|
+
return PopoverHorizontalPlacement.Left;
|
|
13384
|
+
}
|
|
13385
|
+
if (anchor === PopoverHorizontalPlacement.Right &&
|
|
13386
|
+
transform === PopoverHorizontalPlacement.Right) {
|
|
13387
|
+
return PopoverHorizontalPlacement.Right;
|
|
13388
|
+
}
|
|
13389
|
+
return PopoverHorizontalPlacement.Center;
|
|
13390
|
+
};
|
|
13391
|
+
const getSidePreference = (placement) => getPlacementSide(placement) === PopoverPlacementSide.Right
|
|
13392
|
+
? PopoverSidePlacement.Right
|
|
13393
|
+
: PopoverSidePlacement.Left;
|
|
13394
|
+
const getEdgeAlignmentPreference = (placement) => {
|
|
13395
|
+
const align = getPlacementAlign(placement);
|
|
13396
|
+
if (align === PopoverPlacementAlign.Start) {
|
|
13397
|
+
return PopoverEdgeAlignment.Top;
|
|
13398
|
+
}
|
|
13399
|
+
if (align === PopoverPlacementAlign.End) {
|
|
13400
|
+
return PopoverEdgeAlignment.Bottom;
|
|
13401
|
+
}
|
|
13402
|
+
return PopoverEdgeAlignment.Center;
|
|
13403
|
+
};
|
|
13404
|
+
|
|
13405
|
+
const getPopoverHorizontalBounds = ({ anchorLeft, anchorRight, anchorWidth, popoverWidth, horizontal, }) => {
|
|
13406
|
+
switch (horizontal) {
|
|
13407
|
+
case PopoverHorizontalPlacement.Left:
|
|
13408
|
+
return { left: anchorLeft, right: anchorLeft + popoverWidth };
|
|
13409
|
+
case PopoverHorizontalPlacement.Right:
|
|
13410
|
+
return { left: anchorRight - popoverWidth, right: anchorRight };
|
|
13411
|
+
default: {
|
|
13412
|
+
const center = anchorLeft + anchorWidth / 2;
|
|
13413
|
+
return {
|
|
13414
|
+
left: center - popoverWidth / 2,
|
|
13415
|
+
right: center + popoverWidth / 2,
|
|
13416
|
+
};
|
|
13417
|
+
}
|
|
13418
|
+
}
|
|
13419
|
+
};
|
|
13420
|
+
const getPopoverVerticalBounds = ({ anchorTop, anchorBottom, anchorHeight, popoverHeight, vertical, }) => {
|
|
13421
|
+
switch (vertical) {
|
|
13422
|
+
case PopoverEdgeAlignment.Top:
|
|
13423
|
+
return { top: anchorTop, bottom: anchorTop + popoverHeight };
|
|
13424
|
+
case PopoverEdgeAlignment.Bottom:
|
|
13425
|
+
return { top: anchorBottom - popoverHeight, bottom: anchorBottom };
|
|
13426
|
+
default: {
|
|
13427
|
+
const center = anchorTop + anchorHeight / 2;
|
|
13428
|
+
return {
|
|
13429
|
+
top: center - popoverHeight / 2,
|
|
13430
|
+
bottom: center + popoverHeight / 2,
|
|
13431
|
+
};
|
|
13432
|
+
}
|
|
13433
|
+
}
|
|
13434
|
+
};
|
|
13435
|
+
|
|
13436
|
+
const resolveVerticalPlacement = ({ preferAbove, spaceAbove, spaceBelow, popoverHeight, hasArrow, margin = VIEWPORT_MARGIN, }) => {
|
|
13437
|
+
const clearance = hasArrow ? POPOVER_ARROW_HEIGHT : 0;
|
|
13438
|
+
const required = popoverHeight + clearance;
|
|
13439
|
+
const aboveRoom = spaceAbove - margin;
|
|
13440
|
+
const belowRoom = spaceBelow - margin;
|
|
13441
|
+
const fitsAbove = aboveRoom >= required;
|
|
13442
|
+
const fitsBelow = belowRoom >= required;
|
|
13443
|
+
if (preferAbove && fitsAbove)
|
|
13444
|
+
return PopoverVerticalPlacement.Above;
|
|
13445
|
+
if (!preferAbove && fitsBelow)
|
|
13446
|
+
return PopoverVerticalPlacement.Below;
|
|
13447
|
+
if (fitsAbove && !fitsBelow)
|
|
13448
|
+
return PopoverVerticalPlacement.Above;
|
|
13449
|
+
if (fitsBelow && !fitsAbove)
|
|
13450
|
+
return PopoverVerticalPlacement.Below;
|
|
13451
|
+
return aboveRoom >= belowRoom
|
|
13452
|
+
? PopoverVerticalPlacement.Above
|
|
13453
|
+
: PopoverVerticalPlacement.Below;
|
|
13454
|
+
};
|
|
13455
|
+
const resolveHorizontalPlacement = ({ preferHorizontal, anchorLeft, anchorRight, anchorWidth, popoverWidth, margin = VIEWPORT_MARGIN, viewportWidth, }) => {
|
|
13456
|
+
const fits = (horizontal) => {
|
|
13457
|
+
const { left, right } = getPopoverHorizontalBounds({
|
|
13458
|
+
anchorLeft,
|
|
13459
|
+
anchorRight,
|
|
13460
|
+
anchorWidth,
|
|
13461
|
+
popoverWidth,
|
|
13462
|
+
horizontal,
|
|
13463
|
+
});
|
|
13464
|
+
return left >= margin && right <= viewportWidth - margin;
|
|
13465
|
+
};
|
|
13466
|
+
if (fits(preferHorizontal))
|
|
13467
|
+
return preferHorizontal;
|
|
13468
|
+
const alternatives = (() => {
|
|
13469
|
+
if (preferHorizontal === PopoverHorizontalPlacement.Center) {
|
|
13470
|
+
const { left } = getPopoverHorizontalBounds({
|
|
13471
|
+
anchorLeft,
|
|
13472
|
+
anchorRight,
|
|
13473
|
+
anchorWidth,
|
|
13474
|
+
popoverWidth,
|
|
13475
|
+
horizontal: PopoverHorizontalPlacement.Center,
|
|
13476
|
+
});
|
|
13477
|
+
return left < margin
|
|
13478
|
+
? [PopoverHorizontalPlacement.Left, PopoverHorizontalPlacement.Right]
|
|
13479
|
+
: [PopoverHorizontalPlacement.Right, PopoverHorizontalPlacement.Left];
|
|
13480
|
+
}
|
|
13481
|
+
if (preferHorizontal === PopoverHorizontalPlacement.Left) {
|
|
13482
|
+
return [
|
|
13483
|
+
PopoverHorizontalPlacement.Right,
|
|
13484
|
+
PopoverHorizontalPlacement.Center,
|
|
13485
|
+
];
|
|
13486
|
+
}
|
|
13487
|
+
return [PopoverHorizontalPlacement.Left, PopoverHorizontalPlacement.Center];
|
|
13488
|
+
})();
|
|
13489
|
+
for (const horizontal of alternatives) {
|
|
13490
|
+
if (fits(horizontal))
|
|
13491
|
+
return horizontal;
|
|
13492
|
+
}
|
|
13493
|
+
const overflow = (horizontal) => {
|
|
13494
|
+
const { left, right } = getPopoverHorizontalBounds({
|
|
13495
|
+
anchorLeft,
|
|
13496
|
+
anchorRight,
|
|
13497
|
+
anchorWidth,
|
|
13498
|
+
popoverWidth,
|
|
13499
|
+
horizontal,
|
|
13500
|
+
});
|
|
13501
|
+
const leftOverflow = Math.max(0, margin - left);
|
|
13502
|
+
const rightOverflow = Math.max(0, right - (viewportWidth - margin));
|
|
13503
|
+
return leftOverflow + rightOverflow;
|
|
13504
|
+
};
|
|
13505
|
+
const all = [
|
|
13506
|
+
PopoverHorizontalPlacement.Left,
|
|
13507
|
+
PopoverHorizontalPlacement.Center,
|
|
13508
|
+
PopoverHorizontalPlacement.Right,
|
|
13509
|
+
];
|
|
13510
|
+
return all.reduce((best, current) => overflow(current) < overflow(best) ? current : best);
|
|
13511
|
+
};
|
|
13512
|
+
const resolveSidePlacement = ({ preferSide, spaceLeft, spaceRight, popoverWidth, hasArrow, margin = VIEWPORT_MARGIN, }) => {
|
|
13513
|
+
const clearance = POPOVER_ARROW_WIDTH ;
|
|
13514
|
+
const required = popoverWidth + clearance;
|
|
13515
|
+
const leftRoom = spaceLeft - margin;
|
|
13516
|
+
const rightRoom = spaceRight - margin;
|
|
13517
|
+
const fitsLeft = leftRoom >= required;
|
|
13518
|
+
const fitsRight = rightRoom >= required;
|
|
13519
|
+
if (preferSide === PopoverSidePlacement.Left && fitsLeft) {
|
|
13520
|
+
return PopoverSidePlacement.Left;
|
|
13521
|
+
}
|
|
13522
|
+
if (preferSide === PopoverSidePlacement.Right && fitsRight) {
|
|
13523
|
+
return PopoverSidePlacement.Right;
|
|
13524
|
+
}
|
|
13525
|
+
if (fitsLeft && !fitsRight)
|
|
13526
|
+
return PopoverSidePlacement.Left;
|
|
13527
|
+
if (fitsRight && !fitsLeft)
|
|
13528
|
+
return PopoverSidePlacement.Right;
|
|
13529
|
+
return leftRoom >= rightRoom
|
|
13530
|
+
? PopoverSidePlacement.Left
|
|
13531
|
+
: PopoverSidePlacement.Right;
|
|
13532
|
+
};
|
|
13533
|
+
const resolveEdgeAlignment = ({ preferAlignment, anchorTop, anchorBottom, anchorHeight, popoverHeight, margin = VIEWPORT_MARGIN, viewportHeight, }) => {
|
|
13534
|
+
const fits = (vertical) => {
|
|
13535
|
+
const { top, bottom } = getPopoverVerticalBounds({
|
|
13536
|
+
anchorTop,
|
|
13537
|
+
anchorBottom,
|
|
13538
|
+
anchorHeight,
|
|
13539
|
+
popoverHeight,
|
|
13540
|
+
vertical,
|
|
13541
|
+
});
|
|
13542
|
+
return top >= margin && bottom <= viewportHeight - margin;
|
|
13543
|
+
};
|
|
13544
|
+
if (fits(preferAlignment))
|
|
13545
|
+
return preferAlignment;
|
|
13546
|
+
const alternatives = (() => {
|
|
13547
|
+
if (preferAlignment === PopoverEdgeAlignment.Center) {
|
|
13548
|
+
const { top } = getPopoverVerticalBounds({
|
|
13549
|
+
anchorTop,
|
|
13550
|
+
anchorBottom,
|
|
13551
|
+
anchorHeight,
|
|
13552
|
+
popoverHeight,
|
|
13553
|
+
vertical: PopoverEdgeAlignment.Center,
|
|
13554
|
+
});
|
|
13555
|
+
return top < margin
|
|
13556
|
+
? [PopoverEdgeAlignment.Top, PopoverEdgeAlignment.Bottom]
|
|
13557
|
+
: [PopoverEdgeAlignment.Bottom, PopoverEdgeAlignment.Top];
|
|
13558
|
+
}
|
|
13559
|
+
if (preferAlignment === PopoverEdgeAlignment.Top) {
|
|
13560
|
+
return [PopoverEdgeAlignment.Bottom, PopoverEdgeAlignment.Center];
|
|
13561
|
+
}
|
|
13562
|
+
return [PopoverEdgeAlignment.Top, PopoverEdgeAlignment.Center];
|
|
13563
|
+
})();
|
|
13564
|
+
for (const vertical of alternatives) {
|
|
13565
|
+
if (fits(vertical))
|
|
13566
|
+
return vertical;
|
|
13567
|
+
}
|
|
13568
|
+
const overflow = (vertical) => {
|
|
13569
|
+
const { top, bottom } = getPopoverVerticalBounds({
|
|
13570
|
+
anchorTop,
|
|
13571
|
+
anchorBottom,
|
|
13572
|
+
anchorHeight,
|
|
13573
|
+
popoverHeight,
|
|
13574
|
+
vertical,
|
|
13575
|
+
});
|
|
13576
|
+
const topOverflow = Math.max(0, margin - top);
|
|
13577
|
+
const bottomOverflow = Math.max(0, bottom - (viewportHeight - margin));
|
|
13578
|
+
return topOverflow + bottomOverflow;
|
|
13579
|
+
};
|
|
13580
|
+
const all = [
|
|
13581
|
+
PopoverEdgeAlignment.Top,
|
|
13582
|
+
PopoverEdgeAlignment.Center,
|
|
13583
|
+
PopoverEdgeAlignment.Bottom,
|
|
13584
|
+
];
|
|
13585
|
+
return all.reduce((best, current) => overflow(current) < overflow(best) ? current : best);
|
|
13586
|
+
};
|
|
13587
|
+
|
|
13588
|
+
const placementSideToSidePlacement = (side) => side === PopoverPlacementSide.Right
|
|
13589
|
+
? PopoverSidePlacement.Right
|
|
13590
|
+
: PopoverSidePlacement.Left;
|
|
13591
|
+
const formatVerticalPlacement = (side, align) => {
|
|
13592
|
+
if (align === PopoverPlacementAlign.Center) {
|
|
13593
|
+
return VERTICAL_CENTER_PLACEMENT[side];
|
|
13594
|
+
}
|
|
13595
|
+
return `${side}-${align}`;
|
|
13596
|
+
};
|
|
13597
|
+
const formatSidePlacement = (side, align) => {
|
|
13598
|
+
if (align === PopoverPlacementAlign.Center) {
|
|
13599
|
+
return SIDE_CENTER_PLACEMENT[side];
|
|
13600
|
+
}
|
|
13601
|
+
return `${side}-${align}`;
|
|
13602
|
+
};
|
|
13603
|
+
const horizontalToPlacementAlign = (horizontal) => {
|
|
13604
|
+
if (horizontal === PopoverHorizontalPlacement.Left) {
|
|
13605
|
+
return PopoverPlacementAlign.Start;
|
|
13606
|
+
}
|
|
13607
|
+
if (horizontal === PopoverHorizontalPlacement.Right) {
|
|
13608
|
+
return PopoverPlacementAlign.End;
|
|
13609
|
+
}
|
|
13610
|
+
return PopoverPlacementAlign.Center;
|
|
13611
|
+
};
|
|
13612
|
+
const edgeToPlacementAlign = (edge) => {
|
|
13613
|
+
if (edge === PopoverEdgeAlignment.Top) {
|
|
13614
|
+
return PopoverPlacementAlign.Start;
|
|
13615
|
+
}
|
|
13616
|
+
if (edge === PopoverEdgeAlignment.Bottom) {
|
|
13617
|
+
return PopoverPlacementAlign.End;
|
|
13618
|
+
}
|
|
13619
|
+
return PopoverPlacementAlign.Center;
|
|
13620
|
+
};
|
|
13621
|
+
const placementForVerticalPlacement = (placement, verticalPlacement) => {
|
|
13622
|
+
const side = getPlacementSide(placement);
|
|
13623
|
+
if (side !== PopoverPlacementSide.Top &&
|
|
13624
|
+
side !== PopoverPlacementSide.Bottom) {
|
|
13625
|
+
return placement;
|
|
13626
|
+
}
|
|
13627
|
+
const align = getPlacementAlign(placement);
|
|
13628
|
+
return verticalPlacement === PopoverVerticalPlacement.Above
|
|
13629
|
+
? formatVerticalPlacement(PopoverPlacementSide.Top, align)
|
|
13630
|
+
: formatVerticalPlacement(PopoverPlacementSide.Bottom, align);
|
|
13631
|
+
};
|
|
13632
|
+
const placementForHorizontalPlacement = (placement, horizontal) => {
|
|
13633
|
+
const side = getPlacementSide(placement);
|
|
13634
|
+
if (side !== PopoverPlacementSide.Top &&
|
|
13635
|
+
side !== PopoverPlacementSide.Bottom) {
|
|
13636
|
+
return placement;
|
|
13637
|
+
}
|
|
13638
|
+
return formatVerticalPlacement(side, horizontalToPlacementAlign(horizontal));
|
|
13639
|
+
};
|
|
13640
|
+
const placementForSidePlacement = (placement, side) => {
|
|
13641
|
+
const placementSide = getPlacementSide(placement);
|
|
13642
|
+
if (placementSide !== PopoverPlacementSide.Left &&
|
|
13643
|
+
placementSide !== PopoverPlacementSide.Right) {
|
|
13644
|
+
return placement;
|
|
13645
|
+
}
|
|
13646
|
+
return formatSidePlacement(side, getPlacementAlign(placement));
|
|
13647
|
+
};
|
|
13648
|
+
const placementForEdgeAlignment = (placement, align) => {
|
|
13649
|
+
const side = getPlacementSide(placement);
|
|
13650
|
+
if (side !== PopoverPlacementSide.Left &&
|
|
13651
|
+
side !== PopoverPlacementSide.Right) {
|
|
13652
|
+
return placement;
|
|
13653
|
+
}
|
|
13654
|
+
return formatSidePlacement(placementSideToSidePlacement(side), edgeToPlacementAlign(align));
|
|
13655
|
+
};
|
|
13656
|
+
|
|
13657
|
+
const getArrowEdgeSide = (placement) => getOppositePlacementSide(getPlacementSide(placement));
|
|
12578
13658
|
const ARROW_SIZE = 16;
|
|
12579
13659
|
const ARROW_HALF = ARROW_SIZE / 2;
|
|
12580
|
-
const ARROW_HEIGHT =
|
|
13660
|
+
const ARROW_HEIGHT = POPOVER_ARROW_HEIGHT;
|
|
12581
13661
|
const ARROW_OFFSET = 12;
|
|
12582
13662
|
const popoverWidthBySize = {
|
|
12583
13663
|
medium: "228px",
|
|
12584
13664
|
large: "360px",
|
|
12585
13665
|
};
|
|
12586
|
-
const
|
|
12587
|
-
|
|
13666
|
+
const popoverContentLayoutBySize = {
|
|
13667
|
+
medium: { padding: "12px 16px", gap: "16px" },
|
|
13668
|
+
large: { padding: "16px 20px", gap: "20px" },
|
|
13669
|
+
};
|
|
13670
|
+
const getPaperArrowOffset = (placement, anchorOrigin = {
|
|
13671
|
+
vertical: PopoverPlacementSide.Top,
|
|
13672
|
+
}, transformOrigin = {
|
|
13673
|
+
vertical: PopoverPlacementSide.Top,
|
|
13674
|
+
}) => {
|
|
13675
|
+
if (!placement)
|
|
12588
13676
|
return {};
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
13677
|
+
const side = getPlacementSide(placement);
|
|
13678
|
+
if (side === PopoverPlacementSide.Top &&
|
|
13679
|
+
anchorOrigin.vertical === PopoverPlacementSide.Top &&
|
|
13680
|
+
transformOrigin.vertical === PopoverPlacementSide.Bottom) {
|
|
13681
|
+
return { marginTop: `-${ARROW_HEIGHT}px` };
|
|
13682
|
+
}
|
|
13683
|
+
if (side === PopoverPlacementSide.Bottom &&
|
|
13684
|
+
anchorOrigin.vertical === PopoverPlacementSide.Bottom &&
|
|
13685
|
+
transformOrigin.vertical === PopoverPlacementSide.Top) {
|
|
13686
|
+
return { marginTop: `${ARROW_HEIGHT}px` };
|
|
13687
|
+
}
|
|
13688
|
+
if (side === PopoverPlacementSide.Left &&
|
|
13689
|
+
anchorOrigin.horizontal === PopoverPlacementSide.Left &&
|
|
13690
|
+
transformOrigin.horizontal === PopoverPlacementSide.Right) {
|
|
13691
|
+
return { marginLeft: `-${ARROW_HEIGHT}px` };
|
|
13692
|
+
}
|
|
13693
|
+
if (side === PopoverPlacementSide.Right &&
|
|
13694
|
+
anchorOrigin.horizontal === PopoverPlacementSide.Right &&
|
|
13695
|
+
transformOrigin.horizontal === PopoverPlacementSide.Left) {
|
|
13696
|
+
return { marginLeft: `${ARROW_HEIGHT}px` };
|
|
13697
|
+
}
|
|
13698
|
+
return {};
|
|
12592
13699
|
};
|
|
12593
|
-
const getArrowStyles = (
|
|
13700
|
+
const getArrowStyles = (placement, bg) => {
|
|
13701
|
+
const edgeSide = getArrowEdgeSide(placement);
|
|
13702
|
+
const align = getArrowAxisAlign(placement);
|
|
12594
13703
|
const base = {
|
|
12595
13704
|
position: "absolute",
|
|
12596
|
-
width: `${ARROW_SIZE}px`,
|
|
12597
|
-
height: `${ARROW_HEIGHT}px`,
|
|
12598
13705
|
background: bg,
|
|
12599
|
-
zIndex:
|
|
13706
|
+
zIndex: 2,
|
|
13707
|
+
pointerEvents: "none",
|
|
12600
13708
|
};
|
|
12601
|
-
const horizontal =
|
|
13709
|
+
const horizontal = align === PopoverArrowAxisAlign.Center
|
|
12602
13710
|
? { left: `calc(50% - ${ARROW_HALF}px)` }
|
|
12603
|
-
:
|
|
13711
|
+
: align === PopoverArrowAxisAlign.Left
|
|
12604
13712
|
? { left: `${ARROW_OFFSET}px` }
|
|
12605
13713
|
: { right: `${ARROW_OFFSET}px` };
|
|
12606
|
-
|
|
12607
|
-
|
|
13714
|
+
const vertical = align === PopoverArrowAxisAlign.Center
|
|
13715
|
+
? { top: `calc(50% - ${ARROW_HALF}px)` }
|
|
13716
|
+
: align === PopoverArrowAxisAlign.Top
|
|
13717
|
+
? { top: `${ARROW_OFFSET}px` }
|
|
13718
|
+
: { bottom: `${ARROW_OFFSET}px` };
|
|
13719
|
+
if (edgeSide === PopoverPlacementSide.Bottom) {
|
|
13720
|
+
return Object.assign(Object.assign(Object.assign({}, base), horizontal), { width: `${ARROW_SIZE}px`, height: `${ARROW_HEIGHT}px`, bottom: `-${ARROW_HEIGHT}px`, clipPath: `polygon(50% 100%, 0 0, 100% 0)` });
|
|
13721
|
+
}
|
|
13722
|
+
if (edgeSide === PopoverPlacementSide.Top) {
|
|
13723
|
+
return Object.assign(Object.assign(Object.assign({}, base), horizontal), { width: `${ARROW_SIZE}px`, height: `${ARROW_HEIGHT}px`, top: `-${ARROW_HEIGHT}px`, clipPath: `polygon(0 100%, 50% 0, 100% 100%)` });
|
|
12608
13724
|
}
|
|
12609
|
-
|
|
13725
|
+
if (edgeSide === PopoverPlacementSide.Left) {
|
|
13726
|
+
return Object.assign(Object.assign(Object.assign({}, base), vertical), { width: `${ARROW_HEIGHT}px`, height: `${ARROW_SIZE}px`, left: `-${ARROW_HEIGHT}px`, clipPath: `polygon(0 50%, 100% 0, 100% 100%)` });
|
|
13727
|
+
}
|
|
13728
|
+
return Object.assign(Object.assign(Object.assign({}, base), vertical), { width: `${ARROW_HEIGHT}px`, height: `${ARROW_SIZE}px`, right: `-${ARROW_HEIGHT}px`, clipPath: `polygon(100% 50%, 0 0, 0 100%)` });
|
|
12610
13729
|
};
|
|
12611
13730
|
const getPopoverPaperStyles = (theme, size = "medium") => {
|
|
12612
13731
|
var _a;
|
|
12613
|
-
|
|
13732
|
+
const width = popoverWidthBySize[size];
|
|
13733
|
+
return {
|
|
12614
13734
|
boxSizing: "border-box",
|
|
12615
|
-
width
|
|
13735
|
+
width,
|
|
13736
|
+
minWidth: width,
|
|
13737
|
+
maxWidth: width,
|
|
12616
13738
|
background: (_a = theme.palette.vars) === null || _a === void 0 ? void 0 : _a.controlBackgroundDefault,
|
|
12617
13739
|
borderRadius: "6px",
|
|
12618
13740
|
boxShadow: "none",
|
|
@@ -12620,25 +13742,34 @@ const getPopoverPaperStyles = (theme, size = "medium") => {
|
|
|
12620
13742
|
? `drop-shadow(${darkModeCardFloating})`
|
|
12621
13743
|
: `drop-shadow(${lightModeCardFloating})`,
|
|
12622
13744
|
overflow: "visible",
|
|
12623
|
-
|
|
13745
|
+
overflowX: "visible",
|
|
13746
|
+
overflowY: "visible",
|
|
13747
|
+
};
|
|
12624
13748
|
};
|
|
12625
|
-
const
|
|
13749
|
+
const popoverSurfaceStyles = {
|
|
13750
|
+
position: "relative",
|
|
13751
|
+
boxSizing: "border-box",
|
|
13752
|
+
width: "100%",
|
|
13753
|
+
overflow: "visible",
|
|
13754
|
+
};
|
|
13755
|
+
const getPopoverContentStyles = (theme, featureHighlight = false, size = "medium") => {
|
|
12626
13756
|
var _a, _b;
|
|
12627
|
-
|
|
13757
|
+
const layout = popoverContentLayoutBySize[size];
|
|
13758
|
+
return {
|
|
12628
13759
|
boxSizing: "border-box",
|
|
12629
13760
|
display: "flex",
|
|
12630
13761
|
flexDirection: "row",
|
|
12631
13762
|
justifyContent: "flex-end",
|
|
12632
13763
|
alignItems: "flex-start",
|
|
12633
|
-
gap:
|
|
12634
|
-
padding:
|
|
13764
|
+
gap: layout.gap,
|
|
13765
|
+
padding: layout.padding,
|
|
12635
13766
|
width: "100%",
|
|
12636
13767
|
background: (_a = theme.palette.vars) === null || _a === void 0 ? void 0 : _a.controlBackgroundDefault,
|
|
12637
13768
|
border: featureHighlight
|
|
12638
13769
|
? `2px solid ${(_b = theme.palette.vars) === null || _b === void 0 ? void 0 : _b.controlBorderActive}`
|
|
12639
13770
|
: "0px solid transparent",
|
|
12640
13771
|
borderRadius: "6px",
|
|
12641
|
-
}
|
|
13772
|
+
};
|
|
12642
13773
|
};
|
|
12643
13774
|
const popoverColumnStyles = {
|
|
12644
13775
|
display: "flex",
|
|
@@ -12690,10 +13821,15 @@ const popoverBodyStyles = (theme) => {
|
|
|
12690
13821
|
const popoverActionsStyles = {
|
|
12691
13822
|
display: "flex",
|
|
12692
13823
|
flexDirection: "row",
|
|
13824
|
+
flexWrap: "wrap",
|
|
12693
13825
|
justifyContent: "flex-end",
|
|
12694
13826
|
alignItems: "center",
|
|
12695
13827
|
gap: "12px",
|
|
12696
13828
|
width: "100%",
|
|
13829
|
+
"& .MuiButton-root": {
|
|
13830
|
+
flexShrink: 0,
|
|
13831
|
+
whiteSpace: "nowrap",
|
|
13832
|
+
},
|
|
12697
13833
|
};
|
|
12698
13834
|
const closeButtonStyles = {
|
|
12699
13835
|
padding: "2px",
|
|
@@ -12701,21 +13837,174 @@ const closeButtonStyles = {
|
|
|
12701
13837
|
flexShrink: 0,
|
|
12702
13838
|
};
|
|
12703
13839
|
|
|
13840
|
+
const resolveAnchorRect = (anchorEl) => {
|
|
13841
|
+
var _a, _b;
|
|
13842
|
+
if (!anchorEl)
|
|
13843
|
+
return null;
|
|
13844
|
+
const resolved = typeof anchorEl === "function" ? anchorEl() : anchorEl;
|
|
13845
|
+
return (_b = (_a = resolved === null || resolved === void 0 ? void 0 : resolved.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(resolved)) !== null && _b !== void 0 ? _b : null;
|
|
13846
|
+
};
|
|
13847
|
+
const resolvePlacementState = ({ anchorOrigin, transformOrigin, placement, }) => {
|
|
13848
|
+
if (placement) {
|
|
13849
|
+
const origins = getOriginsForPlacement(placement);
|
|
13850
|
+
return {
|
|
13851
|
+
anchorOrigin: origins.anchorOrigin,
|
|
13852
|
+
transformOrigin: origins.transformOrigin,
|
|
13853
|
+
placement,
|
|
13854
|
+
};
|
|
13855
|
+
}
|
|
13856
|
+
return { anchorOrigin, transformOrigin, placement };
|
|
13857
|
+
};
|
|
13858
|
+
const isSameResolvedState = (current, next) => current.placement === next.placement &&
|
|
13859
|
+
current.anchorOrigin.vertical === next.anchorOrigin.vertical &&
|
|
13860
|
+
current.anchorOrigin.horizontal === next.anchorOrigin.horizontal &&
|
|
13861
|
+
current.transformOrigin.vertical === next.transformOrigin.vertical &&
|
|
13862
|
+
current.transformOrigin.horizontal === next.transformOrigin.horizontal;
|
|
13863
|
+
const getPreferenceOrigins = ({ anchorOrigin, transformOrigin, placement, }) => placement
|
|
13864
|
+
? getOriginsForPlacement(placement)
|
|
13865
|
+
: { anchorOrigin, transformOrigin };
|
|
13866
|
+
const useResolvedPopoverPlacement = ({ open, anchorEl, anchorOrigin, transformOrigin, placement, }) => {
|
|
13867
|
+
const paperRef = useRef(null);
|
|
13868
|
+
const [resolved, setResolved] = useState(() => resolvePlacementState({ anchorOrigin, transformOrigin, placement }));
|
|
13869
|
+
const updateResolved = (next) => {
|
|
13870
|
+
setResolved((current) => isSameResolvedState(current, next) ? current : next);
|
|
13871
|
+
};
|
|
13872
|
+
useLayoutEffect(() => {
|
|
13873
|
+
if (!open) {
|
|
13874
|
+
updateResolved(resolvePlacementState({ anchorOrigin, transformOrigin, placement }));
|
|
13875
|
+
return;
|
|
13876
|
+
}
|
|
13877
|
+
const anchorRect = resolveAnchorRect(anchorEl);
|
|
13878
|
+
if (!anchorRect)
|
|
13879
|
+
return;
|
|
13880
|
+
const { anchorOrigin: preferenceAnchorOrigin, transformOrigin: preferenceTransformOrigin, } = getPreferenceOrigins({ anchorOrigin, transformOrigin, placement });
|
|
13881
|
+
const measure = () => {
|
|
13882
|
+
const paper = paperRef.current;
|
|
13883
|
+
if (!paper)
|
|
13884
|
+
return;
|
|
13885
|
+
if (placement) {
|
|
13886
|
+
const placementSide = getPlacementSide(placement);
|
|
13887
|
+
if (placementSide === PopoverPlacementSide.Top ||
|
|
13888
|
+
placementSide === PopoverPlacementSide.Bottom) {
|
|
13889
|
+
const preferAbove = getVerticalPreference(preferenceAnchorOrigin, preferenceTransformOrigin) === "above";
|
|
13890
|
+
const preferHorizontal = getHorizontalPreference(preferenceAnchorOrigin, preferenceTransformOrigin);
|
|
13891
|
+
const verticalPlacement = resolveVerticalPlacement({
|
|
13892
|
+
preferAbove,
|
|
13893
|
+
spaceAbove: anchorRect.top,
|
|
13894
|
+
spaceBelow: window.innerHeight - anchorRect.bottom,
|
|
13895
|
+
popoverHeight: paper.offsetHeight,
|
|
13896
|
+
hasArrow: true,
|
|
13897
|
+
});
|
|
13898
|
+
const horizontalPlacement = resolveHorizontalPlacement({
|
|
13899
|
+
preferHorizontal,
|
|
13900
|
+
anchorLeft: anchorRect.left,
|
|
13901
|
+
anchorRight: anchorRect.right,
|
|
13902
|
+
anchorWidth: anchorRect.width,
|
|
13903
|
+
popoverWidth: paper.offsetWidth,
|
|
13904
|
+
viewportWidth: window.innerWidth,
|
|
13905
|
+
});
|
|
13906
|
+
const nextPlacement = placementForHorizontalPlacement(placementForVerticalPlacement(placement, verticalPlacement), horizontalPlacement);
|
|
13907
|
+
const origins = getOriginsForPlacement(nextPlacement);
|
|
13908
|
+
updateResolved({
|
|
13909
|
+
anchorOrigin: origins.anchorOrigin,
|
|
13910
|
+
transformOrigin: origins.transformOrigin,
|
|
13911
|
+
placement: nextPlacement,
|
|
13912
|
+
});
|
|
13913
|
+
return;
|
|
13914
|
+
}
|
|
13915
|
+
const preferSide = getSidePreference(placement);
|
|
13916
|
+
const preferAlignment = getEdgeAlignmentPreference(placement);
|
|
13917
|
+
const sidePlacement = resolveSidePlacement({
|
|
13918
|
+
preferSide,
|
|
13919
|
+
spaceLeft: anchorRect.left,
|
|
13920
|
+
spaceRight: window.innerWidth - anchorRect.right,
|
|
13921
|
+
popoverWidth: paper.offsetWidth,
|
|
13922
|
+
hasArrow: true,
|
|
13923
|
+
});
|
|
13924
|
+
const edgeAlignment = resolveEdgeAlignment({
|
|
13925
|
+
preferAlignment,
|
|
13926
|
+
anchorTop: anchorRect.top,
|
|
13927
|
+
anchorBottom: anchorRect.bottom,
|
|
13928
|
+
anchorHeight: anchorRect.height,
|
|
13929
|
+
popoverHeight: paper.offsetHeight,
|
|
13930
|
+
viewportHeight: window.innerHeight,
|
|
13931
|
+
});
|
|
13932
|
+
const nextPlacement = placementForEdgeAlignment(placementForSidePlacement(placement, sidePlacement), edgeAlignment);
|
|
13933
|
+
const origins = getOriginsForPlacement(nextPlacement);
|
|
13934
|
+
updateResolved({
|
|
13935
|
+
anchorOrigin: origins.anchorOrigin,
|
|
13936
|
+
transformOrigin: origins.transformOrigin,
|
|
13937
|
+
placement: nextPlacement,
|
|
13938
|
+
});
|
|
13939
|
+
return;
|
|
13940
|
+
}
|
|
13941
|
+
const preferAbove = getVerticalPreference(preferenceAnchorOrigin, preferenceTransformOrigin) === "above";
|
|
13942
|
+
const verticalPlacement = resolveVerticalPlacement({
|
|
13943
|
+
preferAbove,
|
|
13944
|
+
spaceAbove: anchorRect.top,
|
|
13945
|
+
spaceBelow: window.innerHeight - anchorRect.bottom,
|
|
13946
|
+
popoverHeight: paper.offsetHeight,
|
|
13947
|
+
hasArrow: false,
|
|
13948
|
+
});
|
|
13949
|
+
const horizontalPlacement = resolveHorizontalPlacement({
|
|
13950
|
+
preferHorizontal: getHorizontalPreference(preferenceAnchorOrigin, preferenceTransformOrigin),
|
|
13951
|
+
anchorLeft: anchorRect.left,
|
|
13952
|
+
anchorRight: anchorRect.right,
|
|
13953
|
+
anchorWidth: anchorRect.width,
|
|
13954
|
+
popoverWidth: paper.offsetWidth,
|
|
13955
|
+
viewportWidth: window.innerWidth,
|
|
13956
|
+
});
|
|
13957
|
+
const origins = getOriginsForVerticalPlacement(verticalPlacement, horizontalPlacement);
|
|
13958
|
+
updateResolved({
|
|
13959
|
+
anchorOrigin: origins.anchorOrigin,
|
|
13960
|
+
transformOrigin: origins.transformOrigin,
|
|
13961
|
+
placement,
|
|
13962
|
+
});
|
|
13963
|
+
};
|
|
13964
|
+
const frame = requestAnimationFrame(measure);
|
|
13965
|
+
return () => cancelAnimationFrame(frame);
|
|
13966
|
+
}, [open, anchorEl, anchorOrigin, transformOrigin, placement]);
|
|
13967
|
+
const paperOffsetSx = getPaperArrowOffset(resolved.placement, resolved.anchorOrigin, resolved.transformOrigin);
|
|
13968
|
+
return {
|
|
13969
|
+
paperRef,
|
|
13970
|
+
anchorOrigin: resolved.anchorOrigin,
|
|
13971
|
+
transformOrigin: resolved.transformOrigin,
|
|
13972
|
+
placement: resolved.placement,
|
|
13973
|
+
paperOffsetSx,
|
|
13974
|
+
};
|
|
13975
|
+
};
|
|
13976
|
+
|
|
13977
|
+
const DEFAULT_POPOVER_ANCHOR_ORIGIN = {
|
|
13978
|
+
vertical: PopoverPlacementSide.Top,
|
|
13979
|
+
horizontal: PopoverHorizontalPlacement.Left,
|
|
13980
|
+
};
|
|
13981
|
+
const DEFAULT_POPOVER_TRANSFORM_ORIGIN = {
|
|
13982
|
+
vertical: PopoverPlacementSide.Top,
|
|
13983
|
+
horizontal: PopoverHorizontalPlacement.Left,
|
|
13984
|
+
};
|
|
12704
13985
|
const Popover = (_a) => {
|
|
12705
|
-
var { title, body, actions, icon, showCloseButton = false, featureHighlight = false, size = "medium",
|
|
13986
|
+
var { title, body, actions, icon, showCloseButton = false, featureHighlight = false, size = "medium", placement, paperSx, onClose, children, anchorOrigin = DEFAULT_POPOVER_ANCHOR_ORIGIN, transformOrigin = DEFAULT_POPOVER_TRANSFORM_ORIGIN, open = false, disableScrollLock = true } = _a, props = __rest(_a, ["title", "body", "actions", "icon", "showCloseButton", "featureHighlight", "size", "placement", "paperSx", "onClose", "children", "anchorOrigin", "transformOrigin", "open", "disableScrollLock"]);
|
|
12706
13987
|
const theme = useTheme();
|
|
13988
|
+
const { paperRef, anchorOrigin: resolvedAnchorOrigin, transformOrigin: resolvedTransformOrigin, placement: resolvedPlacement, paperOffsetSx, } = useResolvedPopoverPlacement({
|
|
13989
|
+
open,
|
|
13990
|
+
anchorEl: props.anchorEl,
|
|
13991
|
+
anchorOrigin,
|
|
13992
|
+
transformOrigin,
|
|
13993
|
+
placement,
|
|
13994
|
+
});
|
|
12707
13995
|
const bg = featureHighlight
|
|
12708
13996
|
? theme.palette.vars.controlBorderActive
|
|
12709
13997
|
: theme.palette.vars.controlBackgroundDefault;
|
|
12710
|
-
return (
|
|
13998
|
+
return (jsx(Popover$1, Object.assign({}, props, { open: open, disableScrollLock: disableScrollLock, marginThreshold: null, anchorOrigin: resolvedAnchorOrigin, transformOrigin: resolvedTransformOrigin, onClose: onClose, slotProps: {
|
|
12711
13999
|
paper: {
|
|
14000
|
+
ref: paperRef,
|
|
12712
14001
|
sx: [
|
|
12713
14002
|
getPopoverPaperStyles(theme, size),
|
|
12714
|
-
|
|
14003
|
+
paperOffsetSx,
|
|
12715
14004
|
...(Array.isArray(paperSx) ? paperSx : paperSx ? [paperSx] : []),
|
|
12716
14005
|
],
|
|
12717
14006
|
},
|
|
12718
|
-
}, children: [
|
|
14007
|
+
}, children: jsxs(Box, { sx: popoverSurfaceStyles, children: [resolvedPlacement && (jsx(Box, { "aria-hidden": true, "data-slot": "popover-arrow", sx: getArrowStyles(resolvedPlacement, bg) })), children !== null && children !== void 0 ? children : (jsxs(Box, { sx: getPopoverContentStyles(theme, featureHighlight, size), children: [icon && jsx(Box, { sx: popoverIconStyles, children: icon }), jsxs(Box, { sx: popoverColumnStyles, children: [(title || body || showCloseButton) && (jsxs(Box, { sx: popoverTextStyles, children: [(title || showCloseButton) && (jsxs(Box, { sx: popoverHeaderStyles, children: [title && (jsx(Typography, { component: "div", sx: popoverTitleStyles(theme), children: title })), showCloseButton && (jsx(IconButton, { "aria-label": "Close popover", size: "small", onClick: () => onClose === null || onClose === void 0 ? void 0 : onClose({}, "escapeKeyDown"), sx: closeButtonStyles, children: jsx(CloseIcon, { fontSize: "small" }) }))] })), body && (jsx(Typography, { component: "div", sx: popoverBodyStyles(theme), children: body }))] })), actions && jsx(Box, { sx: popoverActionsStyles, children: actions })] })] }))] }) })));
|
|
12719
14008
|
};
|
|
12720
14009
|
|
|
12721
14010
|
const getRadioButtonStyles = (theme) => ({
|
|
@@ -15930,5 +17219,5 @@ const gradientsPalette = {
|
|
|
15930
17219
|
},
|
|
15931
17220
|
};
|
|
15932
17221
|
|
|
15933
|
-
export { Accordion, StyledAccordionSummary as AccordionSummary, ActionsDialog, ActivityTimeline, ActivityTimelineStepStatus, AddDomain, AddRepos, AnchorLinkMenu, AttackPathAnalysis, AttackPathAnalysisWalkThrough, Avatar, AvatarGroup, Backdrop, Badge, Banner, BarChart, BarGraph, BasePage, Breadcrumbs, Button, Card, CardActionArea, CardActions, CardContent, CardDescription, CardHeader, CardSubheader, Celebration, ChartType, ChartTypeComponents, ChartWidget, Checkbox, CiCd, Cloud, CloudSimple, CodeBlock, CopyButton, CreateTableInstance, Dashboard, Data, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogSubtitle, DialogTitle, Divider, DonutChart, EMPTY_FUNCTION, EmptyData, EmptyState, FiltersBar, FiltersDrawer, FloatingButton, Footer, GaugeChart, GeneralSize, Git, GitSimple, GlobalSearchInput, Header, HorizontalBarChart, Icon, IconPosition, index as Icons, IndicatorBadge, Info, InputField, KeyValuePairs, Kubernetes, LabelAndChildrenTooltipContent, Layout, LineChart, Link, LinkColorEnum, LinkType, List, ListItem, ListItemButton, ListItemIcon, ListItemText, ListSubheader, LoadingErrorState, LoadingStates, Menu, MenuItem, StyledMenuSubheader as MenuSubheader, Message, Navigation, NavigationDrawer, NavigationSubNavigation, Negative, NestedMenu, NestedMenuListbox, NoData, OS_LIGHT_COLORS, OverflowTooltip, PageTitle, Pagination, PathDisplay, PickerItem, Popover, Positive, RadioButton, RadioGroup, Recon, RemainingTags, SEVERITY_VALUE, ScrollArea, SearchInput, Select, SelectNode, SelectNodeListItem, Sent, Severity, SeverityBadge, SeverityBadgeLabel, SeverityBar, Shield, SideDrawer, Skeleton, Slider, SpiderChart, Spinner, StaticDatePicker, StaticDateTimePicker, StepperModal, StepperPanel, Success, Tab, Table, Tabs, Tag, TagAvatarSize, TagBackgroundColorVariants, TagStatus, Tags, ThemeMode, ThemeProvider, TimePicker, Toast, Toaster, Toggle, Tooltip, TooltipSize, Upload, ViewSwitcher, Warning, Widget, agentcyBlue, agentcyDarkBlue, agentcyYellow, augmentTreeData, blue100, blue200, blue300, blue400, blue50, blue500, blue600, blue700, blue800, blue900, blueAlpha10, blueAlpha40, blueFocusRingStrong, blueFocusRingWeak, bluePalette, brandColors, capitalize, darkModeCardFloating, darkModeCardLifted, darkModeCardRaised, darkModeCardSubtle, darkModeFooterBottom, darkModeSideDrawerLeft, darkModeSideDrawerRight, darkVars, deepCopyTree, flattenSelectTree, flattenSelectTreeWithSearch, flattenSelectTreeWithoutSearch, formatNodeValue, getAllSelectedLeaves, getAllSelectedParents, getChildrenOfTopLevelNode, getColorBySeverity, getLeafCounts, getTagStyle, gradientStopColors, gradientsPalette, green10, green100, green200, green300, green40, green400, green50, green500, green600, green700, green800, green900, greenPalette, grey0, grey100, grey200, grey300, grey400, grey50, grey500, grey600, grey700, grey800, grey900, greyAlpha10, greyAlpha40, greyPalette, illustrationGradientEnd, illustrationGradientStart, illustrationInfoGradientEnd, illustrationInfoGradientMiddle, illustrationInfoGradientStart, illustrationNegativeGradientStart, illustrationPositiveGradientEnd, illustrationPositiveGradientMiddle, illustrationPositiveGradientStart, illustrationRing, illustrationShell, illustrationStroke, illustrationSurface, illustrationSurfaceSubtle, illustrationWarningGradientEnd, illustrationWarningGradientStart, isLeaf, lavender10, lavender100, lavender200, lavender300, lavender400, lavender50, lavender500, lavender600, lavender700, lavender800, lavender900, lavenderPalette, lightAlphaOrange10, lightAlphaOrange40, lightBlue100, lightBlue200, lightBlue300, lightBlue400, lightBlue50, lightBlue500, lightBlue600, lightBlue700, lightBlue800, lightBlue900, lightBlueAlpha10, lightBlueAlpha40, lightBluePalette, lightModeCardFloating, lightModeCardLifted, lightModeCardRaised, lightModeCardSubtle, lightModeFooterBottom, lightModeSideDrawer, lightModeSideDrawerLeft, lightModeSideDrawerRight, lightOrange100, lightOrange200, lightOrange300, lightOrange400, lightOrange50, lightOrange500, lightOrange600, lightOrange700, lightOrange800, lightOrange900, lightOrangePalette, lightVars, lime10, lime100, lime200, lime300, lime400, lime50, lime500, lime600, lime700, lime800, lime900, limePalette, mergeNodeChildrenValueToText, night10, night100, night200, night300, night400, night50, night500, night600, night700, night800, night900, nightPalette, normalizeSeverity, orange100, orange200, orange300, orange400, orange50, orange500, orange600, orange700, orange800, orange900, orangeAlpha10, orangeAlpha40, orangePalette, outshiftBlue, outshiftLogoDark, outshiftLogoGreen, outshiftLogoLightBlue, outshiftLogoLightOrange, outshiftLogoOrange, outshiftLogoWhite, outshiftMidnightBlue, outshiftOrange, pink10, pink100, pink200, pink300, pink400, pink50, pink500, pink600, pink700, pink800, pink900, pinkPalette, purple100, purple200, purple300, purple400, purple50, purple500, purple600, purple700, purple800, purple900, purpleAlpha10, purpleAlpha40, purplePalette, red100, red200, red300, red400, red50, red500, red600, red700, red800, red900, redAlpha10, redAlpha40, redPalette, selectTagStyle, setSelectedMainSkillCategories, sortBySeverity, sunset10, sunset100, sunset200, sunset300, sunset400, sunset50, sunset500, sunset600, sunset700, sunset800, sunset900, sunsetPalette, surfaceDark100, surfaceDark200, surfaceDark300, surfaceDark400, surfaceDark50, surfaceDark500, surfaceDark600, surfaceDark700, surfaceDark800, surfaceDark800Alpha40, surfaceDark900, surfaceDark900Alpha10, surfaceDark900Alpha40, surfaceDarkPalette, surfaceLight100, surfaceLight200, surfaceLight300, surfaceLight400, surfaceLight50, surfaceLight500, surfaceLight50Alpha40, surfaceLight600, surfaceLight700, surfaceLight800, surfaceLight800Alpha40, surfaceLight900, surfaceLight900Alpha10, surfaceLight900Alpha40, surfaceLightPalette, teal10, teal100, teal200, teal300, teal400, teal50, teal500, teal600, teal700, teal800, teal900, tealPalette, toast, upwardsPush, useNestedMenu, useThemeMode, yellow100, yellow200, yellow300, yellow400, yellow50, yellow500, yellow600, yellow700, yellow800, yellow900, yellowAlpha10, yellowAlpha40, yellowPalette };
|
|
17222
|
+
export { Accordion, StyledAccordionSummary as AccordionSummary, ActionsDialog, ActivityTimeline, ActivityTimelineStepStatus, AddDomain, AddRepos, AnchorLinkMenu, AttackPathAnalysis, AttackPathAnalysisWalkThrough, Avatar, AvatarGroup, Backdrop, Badge, Banner, BarChart, BarGraph, BasePage, Breadcrumbs, Button, Card, CardActionArea, CardActions, CardContent, CardDescription, CardHeader, CardSubheader, Celebration, ChartType, ChartTypeComponents, ChartWidget, Checkbox, CiCd, Cloud, CloudSimple, CodeBlock, CopyButton, CreateTableInstance, Dashboard, Data, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogSubtitle, DialogTitle, Divider, DonutChart, EMPTY_FUNCTION, EmptyData, EmptyState, FiltersBar, FiltersDrawer, FloatingButton, Footer, GaugeChart, GeneralSize, Git, GitSimple, GlobalSearchInput, Header, HorizontalBarChart, Icon, IconPosition, index as Icons, IndicatorBadge, Info, InputField, KeyValuePairs, Kubernetes, LabelAndChildrenTooltipContent, Layout, LineChart, Link, LinkColorEnum, LinkType, List, ListItem, ListItemButton, ListItemIcon, ListItemText, ListSubheader, LoadingErrorState, LoadingStates, Menu, MenuItem, StyledMenuSubheader as MenuSubheader, Message, Navigation, NavigationDrawer, NavigationSubNavigation, Negative, NestedMenu, NestedMenuListbox, NoData, OS_LIGHT_COLORS, OverflowTooltip, POPOVER_PLACEMENTS, PageTitle, Pagination, PathDisplay, PickerItem, Popover, PopoverPlacement, PopoverPlacementAlign, PopoverPlacementSide, Positive, RadioButton, RadioGroup, Recon, RemainingTags, SEVERITY_VALUE, ScrollArea, SearchInput, Select, SelectNode, SelectNodeListItem, Sent, Severity, SeverityBadge, SeverityBadgeLabel, SeverityBar, Shield, SideDrawer, Skeleton, Slider, SpiderChart, Spinner, StaticDatePicker, StaticDateTimePicker, StepperModal, StepperPanel, Success, Tab, Table, Tabs, Tag, TagAvatarSize, TagBackgroundColorVariants, TagStatus, Tags, ThemeMode, ThemeProvider, TimePicker, Toast, Toaster, Toggle, Tooltip, TooltipSize, Upload, ViewSwitcher, Warning, Widget, agentcyBlue, agentcyDarkBlue, agentcyYellow, augmentTreeData, blue100, blue200, blue300, blue400, blue50, blue500, blue600, blue700, blue800, blue900, blueAlpha10, blueAlpha40, blueFocusRingStrong, blueFocusRingWeak, bluePalette, brandColors, capitalize, darkModeCardFloating, darkModeCardLifted, darkModeCardRaised, darkModeCardSubtle, darkModeFooterBottom, darkModeSideDrawerLeft, darkModeSideDrawerRight, darkVars, deepCopyTree, flattenSelectTree, flattenSelectTreeWithSearch, flattenSelectTreeWithoutSearch, formatNodeValue, getAllSelectedLeaves, getAllSelectedParents, getChildrenOfTopLevelNode, getColorBySeverity, getLeafCounts, getTagStyle, gradientStopColors, gradientsPalette, green10, green100, green200, green300, green40, green400, green50, green500, green600, green700, green800, green900, greenPalette, grey0, grey100, grey200, grey300, grey400, grey50, grey500, grey600, grey700, grey800, grey900, greyAlpha10, greyAlpha40, greyPalette, illustrationGradientEnd, illustrationGradientStart, illustrationInfoGradientEnd, illustrationInfoGradientMiddle, illustrationInfoGradientStart, illustrationNegativeGradientStart, illustrationPositiveGradientEnd, illustrationPositiveGradientMiddle, illustrationPositiveGradientStart, illustrationRing, illustrationShell, illustrationStroke, illustrationSurface, illustrationSurfaceSubtle, illustrationWarningGradientEnd, illustrationWarningGradientStart, iocVars, isLeaf, lavender10, lavender100, lavender200, lavender300, lavender400, lavender50, lavender500, lavender600, lavender700, lavender800, lavender900, lavenderPalette, lightAlphaOrange10, lightAlphaOrange40, lightBlue100, lightBlue200, lightBlue300, lightBlue400, lightBlue50, lightBlue500, lightBlue600, lightBlue700, lightBlue800, lightBlue900, lightBlueAlpha10, lightBlueAlpha40, lightBluePalette, lightModeCardFloating, lightModeCardLifted, lightModeCardRaised, lightModeCardSubtle, lightModeFooterBottom, lightModeSideDrawer, lightModeSideDrawerLeft, lightModeSideDrawerRight, lightOrange100, lightOrange200, lightOrange300, lightOrange400, lightOrange50, lightOrange500, lightOrange600, lightOrange700, lightOrange800, lightOrange900, lightOrangePalette, lightVars, lime10, lime100, lime200, lime300, lime400, lime50, lime500, lime600, lime700, lime800, lime900, limePalette, mergeNodeChildrenValueToText, night10, night100, night200, night300, night400, night50, night500, night600, night700, night800, night900, nightPalette, normalizeSeverity, orange100, orange200, orange300, orange400, orange50, orange500, orange600, orange700, orange800, orange900, orangeAlpha10, orangeAlpha40, orangePalette, outshiftBlue, outshiftLogoDark, outshiftLogoGreen, outshiftLogoLightBlue, outshiftLogoLightOrange, outshiftLogoOrange, outshiftLogoWhite, outshiftMidnightBlue, outshiftOrange, pink10, pink100, pink200, pink300, pink400, pink50, pink500, pink600, pink700, pink800, pink900, pinkPalette, purple100, purple200, purple300, purple400, purple50, purple500, purple600, purple700, purple800, purple900, purpleAlpha10, purpleAlpha40, purplePalette, red100, red200, red300, red400, red50, red500, red600, red700, red800, red900, redAlpha10, redAlpha40, redPalette, selectTagStyle, setSelectedMainSkillCategories, sortBySeverity, sunset10, sunset100, sunset200, sunset300, sunset400, sunset50, sunset500, sunset600, sunset700, sunset800, sunset900, sunsetPalette, surfaceDark100, surfaceDark200, surfaceDark300, surfaceDark400, surfaceDark50, surfaceDark500, surfaceDark600, surfaceDark700, surfaceDark800, surfaceDark800Alpha40, surfaceDark900, surfaceDark900Alpha10, surfaceDark900Alpha40, surfaceDarkPalette, surfaceLight100, surfaceLight200, surfaceLight300, surfaceLight400, surfaceLight50, surfaceLight500, surfaceLight50Alpha40, surfaceLight600, surfaceLight700, surfaceLight800, surfaceLight800Alpha40, surfaceLight900, surfaceLight900Alpha10, surfaceLight900Alpha40, surfaceLightPalette, teal10, teal100, teal200, teal300, teal400, teal50, teal500, teal600, teal700, teal800, teal900, tealPalette, toast, upwardsPush, useNestedMenu, useThemeMode, yellow100, yellow200, yellow300, yellow400, yellow50, yellow500, yellow600, yellow700, yellow800, yellow900, yellowAlpha10, yellowAlpha40, yellowPalette };
|
|
15934
17223
|
//# sourceMappingURL=index.esm.js.map
|