@cgi-learning-hub/ui 1.10.0-dev.1763395229 → 1.10.0-dev.1764669566
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +443 -126
- package/dist/index.d.ts +3 -27
- package/dist/index.es.js +444 -127
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -9,7 +9,7 @@ import { css as css2, keyframes as keyframes2 } from "@emotion/react";
|
|
|
9
9
|
import emStyled from "@emotion/styled";
|
|
10
10
|
import * as ReactDOM from "react-dom";
|
|
11
11
|
import ReactDOM__default from "react-dom";
|
|
12
|
-
import { useTheme as useTheme$4, styled as styled$3,
|
|
12
|
+
import { useTheme as useTheme$4, styled as styled$3, Box as Box$1, ClickAwayListener as ClickAwayListener$1, IconButton as IconButton$1, Stack as Stack$1, ListItem as ListItem$1, CircularProgress as CircularProgress$1, ListItemButton as ListItemButton$1, List as List$2, Divider as Divider$1, Card as Card$1, CardMedia as CardMedia$1, CardContent as CardContent$1, Tooltip as Tooltip$1 } from "@mui/material";
|
|
13
13
|
import { CirclePicker } from "react-color";
|
|
14
14
|
import dayjs from "dayjs";
|
|
15
15
|
import { useDropzone } from "react-dropzone";
|
|
@@ -5971,7 +5971,7 @@ const useThemePropsDefault$2 = (inProps) => useThemeProps$3({
|
|
|
5971
5971
|
name: "MuiContainer",
|
|
5972
5972
|
defaultTheme: defaultTheme$4
|
|
5973
5973
|
});
|
|
5974
|
-
const useUtilityClasses$
|
|
5974
|
+
const useUtilityClasses$1X = (ownerState, componentName) => {
|
|
5975
5975
|
const getContainerUtilityClass2 = (slot) => {
|
|
5976
5976
|
return generateUtilityClass$1(componentName, slot);
|
|
5977
5977
|
};
|
|
@@ -6061,7 +6061,7 @@ function createContainer(options = {}) {
|
|
|
6061
6061
|
fixed,
|
|
6062
6062
|
maxWidth: maxWidth2
|
|
6063
6063
|
};
|
|
6064
|
-
const classes = useUtilityClasses$
|
|
6064
|
+
const classes = useUtilityClasses$1X(ownerState, componentName);
|
|
6065
6065
|
return (
|
|
6066
6066
|
// @ts-ignore theme is injected by the styled util
|
|
6067
6067
|
/* @__PURE__ */ jsx(ContainerRoot, {
|
|
@@ -8247,7 +8247,7 @@ function getSvgIconUtilityClass(slot) {
|
|
|
8247
8247
|
return generateUtilityClass("MuiSvgIcon", slot);
|
|
8248
8248
|
}
|
|
8249
8249
|
const svgIconClasses = generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
8250
|
-
const useUtilityClasses$
|
|
8250
|
+
const useUtilityClasses$1W = (ownerState) => {
|
|
8251
8251
|
const {
|
|
8252
8252
|
color: color2,
|
|
8253
8253
|
fontSize,
|
|
@@ -8392,7 +8392,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
|
|
|
8392
8392
|
if (!inheritViewBox) {
|
|
8393
8393
|
more.viewBox = viewBox;
|
|
8394
8394
|
}
|
|
8395
|
-
const classes = useUtilityClasses$
|
|
8395
|
+
const classes = useUtilityClasses$1W(ownerState);
|
|
8396
8396
|
return /* @__PURE__ */ jsxs(SvgIconRoot, {
|
|
8397
8397
|
as: component,
|
|
8398
8398
|
className: clsx(classes.root, className),
|
|
@@ -10252,7 +10252,7 @@ function getButtonBaseUtilityClass(slot) {
|
|
|
10252
10252
|
return generateUtilityClass("MuiButtonBase", slot);
|
|
10253
10253
|
}
|
|
10254
10254
|
const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disabled", "focusVisible"]);
|
|
10255
|
-
const useUtilityClasses$
|
|
10255
|
+
const useUtilityClasses$1V = (ownerState) => {
|
|
10256
10256
|
const {
|
|
10257
10257
|
disabled,
|
|
10258
10258
|
focusVisible,
|
|
@@ -10468,7 +10468,7 @@ const ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(inProps
|
|
|
10468
10468
|
tabIndex,
|
|
10469
10469
|
focusVisible
|
|
10470
10470
|
};
|
|
10471
|
-
const classes = useUtilityClasses$
|
|
10471
|
+
const classes = useUtilityClasses$1V(ownerState);
|
|
10472
10472
|
return /* @__PURE__ */ jsxs(ButtonBaseRoot, {
|
|
10473
10473
|
as: ComponentProp,
|
|
10474
10474
|
className: clsx(classes.root, className),
|
|
@@ -10671,7 +10671,7 @@ function getTabScrollButtonUtilityClass(slot) {
|
|
|
10671
10671
|
return generateUtilityClass("MuiTabScrollButton", slot);
|
|
10672
10672
|
}
|
|
10673
10673
|
const tabScrollButtonClasses = generateUtilityClasses("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]);
|
|
10674
|
-
const useUtilityClasses$
|
|
10674
|
+
const useUtilityClasses$1U = (ownerState) => {
|
|
10675
10675
|
const {
|
|
10676
10676
|
classes,
|
|
10677
10677
|
orientation,
|
|
@@ -10730,7 +10730,7 @@ const TabScrollButton = /* @__PURE__ */ React.forwardRef(function TabScrollButto
|
|
|
10730
10730
|
isRtl,
|
|
10731
10731
|
...props
|
|
10732
10732
|
};
|
|
10733
|
-
const classes = useUtilityClasses$
|
|
10733
|
+
const classes = useUtilityClasses$1U(ownerState);
|
|
10734
10734
|
const StartButtonIcon = slots.StartScrollButtonIcon ?? KeyboardArrowLeft;
|
|
10735
10735
|
const EndButtonIcon = slots.EndScrollButtonIcon ?? KeyboardArrowRight;
|
|
10736
10736
|
const startButtonIconProps = useSlotProps({
|
|
@@ -10917,7 +10917,7 @@ const moveFocus$1 = (list, currentFocus, traversalFunction) => {
|
|
|
10917
10917
|
}
|
|
10918
10918
|
}
|
|
10919
10919
|
};
|
|
10920
|
-
const useUtilityClasses$
|
|
10920
|
+
const useUtilityClasses$1T = (ownerState) => {
|
|
10921
10921
|
const {
|
|
10922
10922
|
vertical,
|
|
10923
10923
|
fixed,
|
|
@@ -11169,7 +11169,7 @@ const Tabs = /* @__PURE__ */ React.forwardRef(function Tabs2(inProps, ref) {
|
|
|
11169
11169
|
centered: centered && !scrollable,
|
|
11170
11170
|
scrollButtonsHideMobile: !allowScrollButtonsMobile
|
|
11171
11171
|
};
|
|
11172
|
-
const classes = useUtilityClasses$
|
|
11172
|
+
const classes = useUtilityClasses$1T(ownerState);
|
|
11173
11173
|
const startScrollButtonIconProps = useSlotProps({
|
|
11174
11174
|
elementType: slots.StartScrollButtonIcon,
|
|
11175
11175
|
externalSlotProps: slotProps.startScrollButtonIcon,
|
|
@@ -12215,7 +12215,7 @@ function getTabPanelUtilityClass(slot) {
|
|
|
12215
12215
|
return generateUtilityClass("MuiTabPanel", slot);
|
|
12216
12216
|
}
|
|
12217
12217
|
const tabPanelClasses = generateUtilityClasses("MuiTabPanel", ["root", "hidden"]);
|
|
12218
|
-
const useUtilityClasses$
|
|
12218
|
+
const useUtilityClasses$1S = (ownerState) => {
|
|
12219
12219
|
const {
|
|
12220
12220
|
classes,
|
|
12221
12221
|
hidden
|
|
@@ -12248,7 +12248,7 @@ const TabPanel = /* @__PURE__ */ React.forwardRef(function TabPanel2(inProps, re
|
|
|
12248
12248
|
const ownerState = {
|
|
12249
12249
|
...props
|
|
12250
12250
|
};
|
|
12251
|
-
const classes = useUtilityClasses$
|
|
12251
|
+
const classes = useUtilityClasses$1S(ownerState);
|
|
12252
12252
|
const context = useTabContext();
|
|
12253
12253
|
if (context === null) {
|
|
12254
12254
|
throw new TypeError("No TabContext provided");
|
|
@@ -12316,7 +12316,7 @@ function getCollapseUtilityClass(slot) {
|
|
|
12316
12316
|
return generateUtilityClass("MuiCollapse", slot);
|
|
12317
12317
|
}
|
|
12318
12318
|
const collapseClasses = generateUtilityClasses("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
12319
|
-
const useUtilityClasses$
|
|
12319
|
+
const useUtilityClasses$1R = (ownerState) => {
|
|
12320
12320
|
const {
|
|
12321
12321
|
orientation,
|
|
12322
12322
|
classes
|
|
@@ -12442,7 +12442,7 @@ const Collapse = /* @__PURE__ */ React.forwardRef(function Collapse2(inProps, re
|
|
|
12442
12442
|
orientation,
|
|
12443
12443
|
collapsedSize: collapsedSizeProp
|
|
12444
12444
|
};
|
|
12445
|
-
const classes = useUtilityClasses$
|
|
12445
|
+
const classes = useUtilityClasses$1R(ownerState);
|
|
12446
12446
|
const theme = useTheme();
|
|
12447
12447
|
const timer = useTimeout$1();
|
|
12448
12448
|
const wrapperRef = React.useRef(null);
|
|
@@ -12742,7 +12742,7 @@ function getPaperUtilityClass(slot) {
|
|
|
12742
12742
|
return generateUtilityClass("MuiPaper", slot);
|
|
12743
12743
|
}
|
|
12744
12744
|
const paperClasses = generateUtilityClasses("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
12745
|
-
const useUtilityClasses$
|
|
12745
|
+
const useUtilityClasses$1Q = (ownerState) => {
|
|
12746
12746
|
const {
|
|
12747
12747
|
square,
|
|
12748
12748
|
elevation,
|
|
@@ -12815,7 +12815,7 @@ const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
|
|
|
12815
12815
|
square,
|
|
12816
12816
|
variant
|
|
12817
12817
|
};
|
|
12818
|
-
const classes = useUtilityClasses$
|
|
12818
|
+
const classes = useUtilityClasses$1Q(ownerState);
|
|
12819
12819
|
if (process.env.NODE_ENV !== "production") {
|
|
12820
12820
|
if (theme.shadows[elevation] === void 0) {
|
|
12821
12821
|
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join("\n"));
|
|
@@ -12905,7 +12905,7 @@ function getAccordionUtilityClass(slot) {
|
|
|
12905
12905
|
return generateUtilityClass("MuiAccordion", slot);
|
|
12906
12906
|
}
|
|
12907
12907
|
const accordionClasses = generateUtilityClasses("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]);
|
|
12908
|
-
const useUtilityClasses$
|
|
12908
|
+
const useUtilityClasses$1P = (ownerState) => {
|
|
12909
12909
|
const {
|
|
12910
12910
|
classes,
|
|
12911
12911
|
square,
|
|
@@ -13064,7 +13064,7 @@ const Accordion = /* @__PURE__ */ React.forwardRef(function Accordion2(inProps,
|
|
|
13064
13064
|
disableGutters,
|
|
13065
13065
|
expanded
|
|
13066
13066
|
};
|
|
13067
|
-
const classes = useUtilityClasses$
|
|
13067
|
+
const classes = useUtilityClasses$1P(ownerState);
|
|
13068
13068
|
const backwardCompatibleSlots = {
|
|
13069
13069
|
transition: TransitionComponentProp,
|
|
13070
13070
|
...slots
|
|
@@ -13231,7 +13231,7 @@ function getAccordionActionsUtilityClass(slot) {
|
|
|
13231
13231
|
return generateUtilityClass("MuiAccordionActions", slot);
|
|
13232
13232
|
}
|
|
13233
13233
|
const accordionActionsClasses = generateUtilityClasses("MuiAccordionActions", ["root", "spacing"]);
|
|
13234
|
-
const useUtilityClasses$
|
|
13234
|
+
const useUtilityClasses$1O = (ownerState) => {
|
|
13235
13235
|
const {
|
|
13236
13236
|
classes,
|
|
13237
13237
|
disableSpacing
|
|
@@ -13278,7 +13278,7 @@ const AccordionActions = /* @__PURE__ */ React.forwardRef(function AccordionActi
|
|
|
13278
13278
|
...props,
|
|
13279
13279
|
disableSpacing
|
|
13280
13280
|
};
|
|
13281
|
-
const classes = useUtilityClasses$
|
|
13281
|
+
const classes = useUtilityClasses$1O(ownerState);
|
|
13282
13282
|
return /* @__PURE__ */ jsx(AccordionActionsRoot, {
|
|
13283
13283
|
className: clsx(classes.root, className),
|
|
13284
13284
|
ref,
|
|
@@ -13317,7 +13317,7 @@ function getAccordionDetailsUtilityClass(slot) {
|
|
|
13317
13317
|
return generateUtilityClass("MuiAccordionDetails", slot);
|
|
13318
13318
|
}
|
|
13319
13319
|
const accordionDetailsClasses = generateUtilityClasses("MuiAccordionDetails", ["root"]);
|
|
13320
|
-
const useUtilityClasses$
|
|
13320
|
+
const useUtilityClasses$1N = (ownerState) => {
|
|
13321
13321
|
const {
|
|
13322
13322
|
classes
|
|
13323
13323
|
} = ownerState;
|
|
@@ -13344,7 +13344,7 @@ const AccordionDetails = /* @__PURE__ */ React.forwardRef(function AccordionDeta
|
|
|
13344
13344
|
...other
|
|
13345
13345
|
} = props;
|
|
13346
13346
|
const ownerState = props;
|
|
13347
|
-
const classes = useUtilityClasses$
|
|
13347
|
+
const classes = useUtilityClasses$1N(ownerState);
|
|
13348
13348
|
return /* @__PURE__ */ jsx(AccordionDetailsRoot, {
|
|
13349
13349
|
className: clsx(classes.root, className),
|
|
13350
13350
|
ref,
|
|
@@ -13378,7 +13378,7 @@ function getAccordionSummaryUtilityClass(slot) {
|
|
|
13378
13378
|
return generateUtilityClass("MuiAccordionSummary", slot);
|
|
13379
13379
|
}
|
|
13380
13380
|
const accordionSummaryClasses = generateUtilityClasses("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]);
|
|
13381
|
-
const useUtilityClasses$
|
|
13381
|
+
const useUtilityClasses$1M = (ownerState) => {
|
|
13382
13382
|
const {
|
|
13383
13383
|
classes,
|
|
13384
13384
|
expanded,
|
|
@@ -13500,7 +13500,7 @@ const AccordionSummary = /* @__PURE__ */ React.forwardRef(function AccordionSumm
|
|
|
13500
13500
|
disabled,
|
|
13501
13501
|
disableGutters
|
|
13502
13502
|
};
|
|
13503
|
-
const classes = useUtilityClasses$
|
|
13503
|
+
const classes = useUtilityClasses$1M(ownerState);
|
|
13504
13504
|
const externalForwardedProps = {
|
|
13505
13505
|
slots,
|
|
13506
13506
|
slotProps
|
|
@@ -13644,7 +13644,7 @@ const v6Colors$1 = {
|
|
|
13644
13644
|
textDisabled: true
|
|
13645
13645
|
};
|
|
13646
13646
|
const extendSxProp = internal_createExtendSxProp();
|
|
13647
|
-
const useUtilityClasses$
|
|
13647
|
+
const useUtilityClasses$1L = (ownerState) => {
|
|
13648
13648
|
const {
|
|
13649
13649
|
align,
|
|
13650
13650
|
gutterBottom,
|
|
@@ -13787,7 +13787,7 @@ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps
|
|
|
13787
13787
|
variantMapping
|
|
13788
13788
|
};
|
|
13789
13789
|
const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
13790
|
-
const classes = useUtilityClasses$
|
|
13790
|
+
const classes = useUtilityClasses$1L(ownerState);
|
|
13791
13791
|
return /* @__PURE__ */ jsx(TypographyRoot, {
|
|
13792
13792
|
as: Component,
|
|
13793
13793
|
ref,
|
|
@@ -13892,7 +13892,7 @@ function getAlertTitleUtilityClass(slot) {
|
|
|
13892
13892
|
return generateUtilityClass("MuiAlertTitle", slot);
|
|
13893
13893
|
}
|
|
13894
13894
|
const alertTitleClasses = generateUtilityClasses("MuiAlertTitle", ["root"]);
|
|
13895
|
-
const useUtilityClasses$
|
|
13895
|
+
const useUtilityClasses$1K = (ownerState) => {
|
|
13896
13896
|
const {
|
|
13897
13897
|
classes
|
|
13898
13898
|
} = ownerState;
|
|
@@ -13922,7 +13922,7 @@ const AlertTitle = /* @__PURE__ */ React.forwardRef(function AlertTitle2(inProps
|
|
|
13922
13922
|
...other
|
|
13923
13923
|
} = props;
|
|
13924
13924
|
const ownerState = props;
|
|
13925
|
-
const classes = useUtilityClasses$
|
|
13925
|
+
const classes = useUtilityClasses$1K(ownerState);
|
|
13926
13926
|
return /* @__PURE__ */ jsx(AlertTitleRoot, {
|
|
13927
13927
|
gutterBottom: true,
|
|
13928
13928
|
component: "div",
|
|
@@ -13958,7 +13958,7 @@ function getAppBarUtilityClass(slot) {
|
|
|
13958
13958
|
return generateUtilityClass("MuiAppBar", slot);
|
|
13959
13959
|
}
|
|
13960
13960
|
const appBarClasses = generateUtilityClasses("MuiAppBar", ["root", "positionFixed", "positionAbsolute", "positionSticky", "positionStatic", "positionRelative", "colorDefault", "colorPrimary", "colorSecondary", "colorInherit", "colorTransparent", "colorError", "colorInfo", "colorSuccess", "colorWarning"]);
|
|
13961
|
-
const useUtilityClasses$
|
|
13961
|
+
const useUtilityClasses$1J = (ownerState) => {
|
|
13962
13962
|
const {
|
|
13963
13963
|
color: color2,
|
|
13964
13964
|
position: position2,
|
|
@@ -14115,7 +14115,7 @@ const AppBar = /* @__PURE__ */ React.forwardRef(function AppBar2(inProps, ref) {
|
|
|
14115
14115
|
position: position2,
|
|
14116
14116
|
enableColorOnDark
|
|
14117
14117
|
};
|
|
14118
|
-
const classes = useUtilityClasses$
|
|
14118
|
+
const classes = useUtilityClasses$1J(ownerState);
|
|
14119
14119
|
return /* @__PURE__ */ jsx(AppBarRoot, {
|
|
14120
14120
|
square: true,
|
|
14121
14121
|
component: "header",
|
|
@@ -16607,7 +16607,7 @@ function isHTMLElement(element) {
|
|
|
16607
16607
|
function isVirtualElement(element) {
|
|
16608
16608
|
return !isHTMLElement(element);
|
|
16609
16609
|
}
|
|
16610
|
-
const useUtilityClasses$
|
|
16610
|
+
const useUtilityClasses$1I = (ownerState) => {
|
|
16611
16611
|
const {
|
|
16612
16612
|
classes
|
|
16613
16613
|
} = ownerState;
|
|
@@ -16716,7 +16716,7 @@ const PopperTooltip = /* @__PURE__ */ React.forwardRef(function PopperTooltip2(p
|
|
|
16716
16716
|
if (TransitionProps !== null) {
|
|
16717
16717
|
childProps.TransitionProps = TransitionProps;
|
|
16718
16718
|
}
|
|
16719
|
-
const classes = useUtilityClasses$
|
|
16719
|
+
const classes = useUtilityClasses$1I(props);
|
|
16720
16720
|
const Root2 = slots.root ?? "div";
|
|
16721
16721
|
const rootProps = useSlotProps({
|
|
16722
16722
|
elementType: Root2,
|
|
@@ -17115,7 +17115,7 @@ function getListSubheaderUtilityClass(slot) {
|
|
|
17115
17115
|
return generateUtilityClass("MuiListSubheader", slot);
|
|
17116
17116
|
}
|
|
17117
17117
|
const listSubheaderClasses = generateUtilityClasses("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
|
|
17118
|
-
const useUtilityClasses$
|
|
17118
|
+
const useUtilityClasses$1H = (ownerState) => {
|
|
17119
17119
|
const {
|
|
17120
17120
|
classes,
|
|
17121
17121
|
color: color2,
|
|
@@ -17210,7 +17210,7 @@ const ListSubheader = /* @__PURE__ */ React.forwardRef(function ListSubheader2(i
|
|
|
17210
17210
|
disableSticky,
|
|
17211
17211
|
inset
|
|
17212
17212
|
};
|
|
17213
|
-
const classes = useUtilityClasses$
|
|
17213
|
+
const classes = useUtilityClasses$1H(ownerState);
|
|
17214
17214
|
return /* @__PURE__ */ jsx(ListSubheaderRoot, {
|
|
17215
17215
|
as: component,
|
|
17216
17216
|
className: clsx(classes.root, className),
|
|
@@ -17305,7 +17305,7 @@ const rotateAnimation = typeof circularRotateKeyframe !== "string" ? css`
|
|
|
17305
17305
|
const dashAnimation = typeof circularDashKeyframe !== "string" ? css`
|
|
17306
17306
|
animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;
|
|
17307
17307
|
` : null;
|
|
17308
|
-
const useUtilityClasses$
|
|
17308
|
+
const useUtilityClasses$1G = (ownerState) => {
|
|
17309
17309
|
const {
|
|
17310
17310
|
classes,
|
|
17311
17311
|
variant,
|
|
@@ -17439,7 +17439,7 @@ const CircularProgress = /* @__PURE__ */ React.forwardRef(function CircularProgr
|
|
|
17439
17439
|
variant,
|
|
17440
17440
|
enableTrackSlot
|
|
17441
17441
|
};
|
|
17442
|
-
const classes = useUtilityClasses$
|
|
17442
|
+
const classes = useUtilityClasses$1G(ownerState);
|
|
17443
17443
|
const circleStyle = {};
|
|
17444
17444
|
const rootStyle = {};
|
|
17445
17445
|
const rootProps = {};
|
|
@@ -17563,7 +17563,7 @@ function getIconButtonUtilityClass(slot) {
|
|
|
17563
17563
|
return generateUtilityClass("MuiIconButton", slot);
|
|
17564
17564
|
}
|
|
17565
17565
|
const iconButtonClasses = generateUtilityClasses("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]);
|
|
17566
|
-
const useUtilityClasses$
|
|
17566
|
+
const useUtilityClasses$1F = (ownerState) => {
|
|
17567
17567
|
const {
|
|
17568
17568
|
classes,
|
|
17569
17569
|
disabled,
|
|
@@ -17748,7 +17748,7 @@ const IconButton = /* @__PURE__ */ React.forwardRef(function IconButton2(inProps
|
|
|
17748
17748
|
loadingIndicator,
|
|
17749
17749
|
size
|
|
17750
17750
|
};
|
|
17751
|
-
const classes = useUtilityClasses$
|
|
17751
|
+
const classes = useUtilityClasses$1F(ownerState);
|
|
17752
17752
|
return /* @__PURE__ */ jsxs(IconButtonRoot, {
|
|
17753
17753
|
id: loading ? loadingId : idProp,
|
|
17754
17754
|
className: clsx(classes.root, className),
|
|
@@ -17863,7 +17863,7 @@ function getChipUtilityClass(slot) {
|
|
|
17863
17863
|
return generateUtilityClass("MuiChip", slot);
|
|
17864
17864
|
}
|
|
17865
17865
|
const chipClasses = generateUtilityClasses("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]);
|
|
17866
|
-
const useUtilityClasses$
|
|
17866
|
+
const useUtilityClasses$1E = (ownerState) => {
|
|
17867
17867
|
const {
|
|
17868
17868
|
classes,
|
|
17869
17869
|
disabled,
|
|
@@ -18257,7 +18257,7 @@ const Chip = /* @__PURE__ */ React.forwardRef(function Chip2(inProps, ref) {
|
|
|
18257
18257
|
clickable,
|
|
18258
18258
|
variant
|
|
18259
18259
|
};
|
|
18260
|
-
const classes = useUtilityClasses$
|
|
18260
|
+
const classes = useUtilityClasses$1E(ownerState);
|
|
18261
18261
|
const moreProps = component === ButtonBase ? {
|
|
18262
18262
|
component: ComponentProp || "div",
|
|
18263
18263
|
focusVisibleClassName: classes.focusVisible,
|
|
@@ -18725,7 +18725,7 @@ const inputOverridesResolver = (props, styles2) => {
|
|
|
18725
18725
|
} = props;
|
|
18726
18726
|
return [styles2.input, ownerState.size === "small" && styles2.inputSizeSmall, ownerState.multiline && styles2.inputMultiline, ownerState.type === "search" && styles2.inputTypeSearch, ownerState.startAdornment && styles2.inputAdornedStart, ownerState.endAdornment && styles2.inputAdornedEnd, ownerState.hiddenLabel && styles2.inputHiddenLabel];
|
|
18727
18727
|
};
|
|
18728
|
-
const useUtilityClasses$
|
|
18728
|
+
const useUtilityClasses$1D = (ownerState) => {
|
|
18729
18729
|
const {
|
|
18730
18730
|
classes,
|
|
18731
18731
|
color: color2,
|
|
@@ -19129,7 +19129,7 @@ const InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(inProps,
|
|
|
19129
19129
|
startAdornment,
|
|
19130
19130
|
type
|
|
19131
19131
|
};
|
|
19132
|
-
const classes = useUtilityClasses$
|
|
19132
|
+
const classes = useUtilityClasses$1D(ownerState);
|
|
19133
19133
|
const Root2 = slots.root || components.Root || InputBaseRoot;
|
|
19134
19134
|
const rootProps = slotProps.root || componentsProps.root || {};
|
|
19135
19135
|
const Input3 = slots.input || components.Input || InputBaseInput;
|
|
@@ -19453,7 +19453,7 @@ function getAutocompleteUtilityClass(slot) {
|
|
|
19453
19453
|
}
|
|
19454
19454
|
const autocompleteClasses = generateUtilityClasses("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
|
|
19455
19455
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
19456
|
-
const useUtilityClasses$
|
|
19456
|
+
const useUtilityClasses$1C = (ownerState) => {
|
|
19457
19457
|
const {
|
|
19458
19458
|
classes,
|
|
19459
19459
|
disablePortal,
|
|
@@ -19942,7 +19942,7 @@ const Autocomplete = /* @__PURE__ */ React.forwardRef(function Autocomplete2(inP
|
|
|
19942
19942
|
popupOpen,
|
|
19943
19943
|
size
|
|
19944
19944
|
};
|
|
19945
|
-
const classes = useUtilityClasses$
|
|
19945
|
+
const classes = useUtilityClasses$1C(ownerState);
|
|
19946
19946
|
const externalForwardedProps = {
|
|
19947
19947
|
slots: {
|
|
19948
19948
|
paper: PaperComponentProp,
|
|
@@ -20625,7 +20625,7 @@ function getAvatarUtilityClass(slot) {
|
|
|
20625
20625
|
return generateUtilityClass("MuiAvatar", slot);
|
|
20626
20626
|
}
|
|
20627
20627
|
const avatarClasses = generateUtilityClasses("MuiAvatar", ["root", "colorDefault", "circular", "rounded", "square", "img", "fallback"]);
|
|
20628
|
-
const useUtilityClasses$
|
|
20628
|
+
const useUtilityClasses$1B = (ownerState) => {
|
|
20629
20629
|
const {
|
|
20630
20630
|
classes,
|
|
20631
20631
|
variant,
|
|
@@ -20788,7 +20788,7 @@ const Avatar = /* @__PURE__ */ React.forwardRef(function Avatar2(inProps, ref) {
|
|
|
20788
20788
|
const hasImgNotFailing = hasImg && loaded !== "error";
|
|
20789
20789
|
ownerState.colorDefault = !hasImgNotFailing;
|
|
20790
20790
|
delete ownerState.ownerState;
|
|
20791
|
-
const classes = useUtilityClasses$
|
|
20791
|
+
const classes = useUtilityClasses$1B(ownerState);
|
|
20792
20792
|
const [RootSlot, rootSlotProps] = useSlot("root", {
|
|
20793
20793
|
ref,
|
|
20794
20794
|
className: clsx(classes.root, className),
|
|
@@ -21144,7 +21144,7 @@ function getBackdropUtilityClass(slot) {
|
|
|
21144
21144
|
return generateUtilityClass("MuiBackdrop", slot);
|
|
21145
21145
|
}
|
|
21146
21146
|
const backdropClasses = generateUtilityClasses("MuiBackdrop", ["root", "invisible"]);
|
|
21147
|
-
const useUtilityClasses$
|
|
21147
|
+
const useUtilityClasses$1A = (ownerState) => {
|
|
21148
21148
|
const {
|
|
21149
21149
|
classes,
|
|
21150
21150
|
invisible
|
|
@@ -21207,7 +21207,7 @@ const Backdrop = /* @__PURE__ */ React.forwardRef(function Backdrop2(inProps, re
|
|
|
21207
21207
|
component,
|
|
21208
21208
|
invisible
|
|
21209
21209
|
};
|
|
21210
|
-
const classes = useUtilityClasses$
|
|
21210
|
+
const classes = useUtilityClasses$1A(ownerState);
|
|
21211
21211
|
const backwardCompatibleSlots = {
|
|
21212
21212
|
transition: TransitionComponentProp,
|
|
21213
21213
|
root: components.Root,
|
|
@@ -21397,7 +21397,7 @@ const badgeClasses = generateUtilityClasses("MuiBadge", [
|
|
|
21397
21397
|
]);
|
|
21398
21398
|
const RADIUS_STANDARD = 10;
|
|
21399
21399
|
const RADIUS_DOT = 4;
|
|
21400
|
-
const useUtilityClasses$
|
|
21400
|
+
const useUtilityClasses$1z = (ownerState) => {
|
|
21401
21401
|
const {
|
|
21402
21402
|
color: color2,
|
|
21403
21403
|
anchorOrigin,
|
|
@@ -21659,7 +21659,7 @@ const Badge = /* @__PURE__ */ React.forwardRef(function Badge2(inProps, ref) {
|
|
|
21659
21659
|
overlap,
|
|
21660
21660
|
variant
|
|
21661
21661
|
};
|
|
21662
|
-
const classes = useUtilityClasses$
|
|
21662
|
+
const classes = useUtilityClasses$1z(ownerState);
|
|
21663
21663
|
const externalForwardedProps = {
|
|
21664
21664
|
slots: {
|
|
21665
21665
|
root: (slots == null ? void 0 : slots.root) ?? components.Root,
|
|
@@ -21921,7 +21921,7 @@ function getBreadcrumbsUtilityClass(slot) {
|
|
|
21921
21921
|
return generateUtilityClass("MuiBreadcrumbs", slot);
|
|
21922
21922
|
}
|
|
21923
21923
|
const breadcrumbsClasses = generateUtilityClasses("MuiBreadcrumbs", ["root", "ol", "li", "separator"]);
|
|
21924
|
-
const useUtilityClasses$
|
|
21924
|
+
const useUtilityClasses$1y = (ownerState) => {
|
|
21925
21925
|
const {
|
|
21926
21926
|
classes
|
|
21927
21927
|
} = ownerState;
|
|
@@ -22006,7 +22006,7 @@ const Breadcrumbs = /* @__PURE__ */ React.forwardRef(function Breadcrumbs2(inPro
|
|
|
22006
22006
|
maxItems,
|
|
22007
22007
|
separator
|
|
22008
22008
|
};
|
|
22009
|
-
const classes = useUtilityClasses$
|
|
22009
|
+
const classes = useUtilityClasses$1y(ownerState);
|
|
22010
22010
|
const collapsedIconSlotProps = useSlotProps({
|
|
22011
22011
|
elementType: slots.CollapsedIcon,
|
|
22012
22012
|
externalSlotProps: slotProps.collapsedIcon,
|
|
@@ -22135,6 +22135,393 @@ process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes = {
|
|
|
22135
22135
|
*/
|
|
22136
22136
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
22137
22137
|
} : void 0;
|
|
22138
|
+
function getValidReactChildren(children) {
|
|
22139
|
+
return React.Children.toArray(children).filter((child) => /* @__PURE__ */ React.isValidElement(child));
|
|
22140
|
+
}
|
|
22141
|
+
function getButtonGroupUtilityClass(slot) {
|
|
22142
|
+
return generateUtilityClass("MuiButtonGroup", slot);
|
|
22143
|
+
}
|
|
22144
|
+
const buttonGroupClasses = generateUtilityClasses("MuiButtonGroup", ["root", "contained", "outlined", "text", "disableElevation", "disabled", "firstButton", "fullWidth", "horizontal", "vertical", "colorPrimary", "colorSecondary", "grouped", "groupedHorizontal", "groupedVertical", "groupedText", "groupedTextHorizontal", "groupedTextVertical", "groupedTextPrimary", "groupedTextSecondary", "groupedOutlined", "groupedOutlinedHorizontal", "groupedOutlinedVertical", "groupedOutlinedPrimary", "groupedOutlinedSecondary", "groupedContained", "groupedContainedHorizontal", "groupedContainedVertical", "groupedContainedPrimary", "groupedContainedSecondary", "lastButton", "middleButton"]);
|
|
22145
|
+
const ButtonGroupContext = /* @__PURE__ */ React.createContext({});
|
|
22146
|
+
if (process.env.NODE_ENV !== "production") {
|
|
22147
|
+
ButtonGroupContext.displayName = "ButtonGroupContext";
|
|
22148
|
+
}
|
|
22149
|
+
const ButtonGroupButtonContext = /* @__PURE__ */ React.createContext(void 0);
|
|
22150
|
+
if (process.env.NODE_ENV !== "production") {
|
|
22151
|
+
ButtonGroupButtonContext.displayName = "ButtonGroupButtonContext";
|
|
22152
|
+
}
|
|
22153
|
+
const overridesResolver$7 = (props, styles2) => {
|
|
22154
|
+
const {
|
|
22155
|
+
ownerState
|
|
22156
|
+
} = props;
|
|
22157
|
+
return [{
|
|
22158
|
+
[`& .${buttonGroupClasses.grouped}`]: styles2.grouped
|
|
22159
|
+
}, {
|
|
22160
|
+
[`& .${buttonGroupClasses.grouped}`]: styles2[`grouped${capitalize(ownerState.orientation)}`]
|
|
22161
|
+
}, {
|
|
22162
|
+
[`& .${buttonGroupClasses.grouped}`]: styles2[`grouped${capitalize(ownerState.variant)}`]
|
|
22163
|
+
}, {
|
|
22164
|
+
[`& .${buttonGroupClasses.grouped}`]: styles2[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.orientation)}`]
|
|
22165
|
+
}, {
|
|
22166
|
+
[`& .${buttonGroupClasses.grouped}`]: styles2[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.color)}`]
|
|
22167
|
+
}, {
|
|
22168
|
+
[`& .${buttonGroupClasses.firstButton}`]: styles2.firstButton
|
|
22169
|
+
}, {
|
|
22170
|
+
[`& .${buttonGroupClasses.lastButton}`]: styles2.lastButton
|
|
22171
|
+
}, {
|
|
22172
|
+
[`& .${buttonGroupClasses.middleButton}`]: styles2.middleButton
|
|
22173
|
+
}, styles2.root, styles2[ownerState.variant], ownerState.disableElevation === true && styles2.disableElevation, ownerState.fullWidth && styles2.fullWidth, ownerState.orientation === "vertical" && styles2.vertical];
|
|
22174
|
+
};
|
|
22175
|
+
const useUtilityClasses$1x = (ownerState) => {
|
|
22176
|
+
const {
|
|
22177
|
+
classes,
|
|
22178
|
+
color: color2,
|
|
22179
|
+
disabled,
|
|
22180
|
+
disableElevation,
|
|
22181
|
+
fullWidth,
|
|
22182
|
+
orientation,
|
|
22183
|
+
variant
|
|
22184
|
+
} = ownerState;
|
|
22185
|
+
const slots = {
|
|
22186
|
+
root: ["root", variant, orientation, fullWidth && "fullWidth", disableElevation && "disableElevation", `color${capitalize(color2)}`],
|
|
22187
|
+
grouped: ["grouped", `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color2)}`, disabled && "disabled"],
|
|
22188
|
+
firstButton: ["firstButton"],
|
|
22189
|
+
lastButton: ["lastButton"],
|
|
22190
|
+
middleButton: ["middleButton"]
|
|
22191
|
+
};
|
|
22192
|
+
return composeClasses$1(slots, getButtonGroupUtilityClass, classes);
|
|
22193
|
+
};
|
|
22194
|
+
const ButtonGroupRoot = styled("div", {
|
|
22195
|
+
name: "MuiButtonGroup",
|
|
22196
|
+
slot: "Root",
|
|
22197
|
+
overridesResolver: overridesResolver$7
|
|
22198
|
+
})(memoTheme(({
|
|
22199
|
+
theme
|
|
22200
|
+
}) => ({
|
|
22201
|
+
display: "inline-flex",
|
|
22202
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
22203
|
+
variants: [{
|
|
22204
|
+
props: {
|
|
22205
|
+
variant: "contained"
|
|
22206
|
+
},
|
|
22207
|
+
style: {
|
|
22208
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
22209
|
+
}
|
|
22210
|
+
}, {
|
|
22211
|
+
props: {
|
|
22212
|
+
disableElevation: true
|
|
22213
|
+
},
|
|
22214
|
+
style: {
|
|
22215
|
+
boxShadow: "none"
|
|
22216
|
+
}
|
|
22217
|
+
}, {
|
|
22218
|
+
props: {
|
|
22219
|
+
fullWidth: true
|
|
22220
|
+
},
|
|
22221
|
+
style: {
|
|
22222
|
+
width: "100%"
|
|
22223
|
+
}
|
|
22224
|
+
}, {
|
|
22225
|
+
props: {
|
|
22226
|
+
orientation: "vertical"
|
|
22227
|
+
},
|
|
22228
|
+
style: {
|
|
22229
|
+
flexDirection: "column",
|
|
22230
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22231
|
+
borderTopRightRadius: 0,
|
|
22232
|
+
borderTopLeftRadius: 0
|
|
22233
|
+
},
|
|
22234
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22235
|
+
borderBottomRightRadius: 0,
|
|
22236
|
+
borderBottomLeftRadius: 0
|
|
22237
|
+
}
|
|
22238
|
+
}
|
|
22239
|
+
}, {
|
|
22240
|
+
props: {
|
|
22241
|
+
orientation: "horizontal"
|
|
22242
|
+
},
|
|
22243
|
+
style: {
|
|
22244
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22245
|
+
borderTopRightRadius: 0,
|
|
22246
|
+
borderBottomRightRadius: 0
|
|
22247
|
+
},
|
|
22248
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22249
|
+
borderTopLeftRadius: 0,
|
|
22250
|
+
borderBottomLeftRadius: 0
|
|
22251
|
+
}
|
|
22252
|
+
}
|
|
22253
|
+
}, {
|
|
22254
|
+
props: {
|
|
22255
|
+
variant: "text",
|
|
22256
|
+
orientation: "horizontal"
|
|
22257
|
+
},
|
|
22258
|
+
style: {
|
|
22259
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22260
|
+
borderRight: theme.vars ? `1px solid ${theme.alpha(theme.vars.palette.common.onBackground, 0.23)}` : `1px solid ${theme.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
22261
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
22262
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
22263
|
+
}
|
|
22264
|
+
}
|
|
22265
|
+
}
|
|
22266
|
+
}, {
|
|
22267
|
+
props: {
|
|
22268
|
+
variant: "text",
|
|
22269
|
+
orientation: "vertical"
|
|
22270
|
+
},
|
|
22271
|
+
style: {
|
|
22272
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22273
|
+
borderBottom: theme.vars ? `1px solid ${theme.alpha(theme.vars.palette.common.onBackground, 0.23)}` : `1px solid ${theme.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
22274
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
22275
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
22276
|
+
}
|
|
22277
|
+
}
|
|
22278
|
+
}
|
|
22279
|
+
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).flatMap(([color2]) => [{
|
|
22280
|
+
props: {
|
|
22281
|
+
variant: "text",
|
|
22282
|
+
color: color2
|
|
22283
|
+
},
|
|
22284
|
+
style: {
|
|
22285
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22286
|
+
borderColor: theme.alpha((theme.vars || theme).palette[color2].main, 0.5)
|
|
22287
|
+
}
|
|
22288
|
+
}
|
|
22289
|
+
}]), {
|
|
22290
|
+
props: {
|
|
22291
|
+
variant: "outlined",
|
|
22292
|
+
orientation: "horizontal"
|
|
22293
|
+
},
|
|
22294
|
+
style: {
|
|
22295
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22296
|
+
borderRightColor: "transparent",
|
|
22297
|
+
"&:hover": {
|
|
22298
|
+
borderRightColor: "currentColor"
|
|
22299
|
+
}
|
|
22300
|
+
},
|
|
22301
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22302
|
+
marginLeft: -1
|
|
22303
|
+
}
|
|
22304
|
+
}
|
|
22305
|
+
}, {
|
|
22306
|
+
props: {
|
|
22307
|
+
variant: "outlined",
|
|
22308
|
+
orientation: "vertical"
|
|
22309
|
+
},
|
|
22310
|
+
style: {
|
|
22311
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22312
|
+
borderBottomColor: "transparent",
|
|
22313
|
+
"&:hover": {
|
|
22314
|
+
borderBottomColor: "currentColor"
|
|
22315
|
+
}
|
|
22316
|
+
},
|
|
22317
|
+
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22318
|
+
marginTop: -1
|
|
22319
|
+
}
|
|
22320
|
+
}
|
|
22321
|
+
}, {
|
|
22322
|
+
props: {
|
|
22323
|
+
variant: "contained",
|
|
22324
|
+
orientation: "horizontal"
|
|
22325
|
+
},
|
|
22326
|
+
style: {
|
|
22327
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22328
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
22329
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
22330
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
22331
|
+
}
|
|
22332
|
+
}
|
|
22333
|
+
}
|
|
22334
|
+
}, {
|
|
22335
|
+
props: {
|
|
22336
|
+
variant: "contained",
|
|
22337
|
+
orientation: "vertical"
|
|
22338
|
+
},
|
|
22339
|
+
style: {
|
|
22340
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22341
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
22342
|
+
[`&.${buttonGroupClasses.disabled}`]: {
|
|
22343
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
22344
|
+
}
|
|
22345
|
+
}
|
|
22346
|
+
}
|
|
22347
|
+
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(["dark"])).map(([color2]) => ({
|
|
22348
|
+
props: {
|
|
22349
|
+
variant: "contained",
|
|
22350
|
+
color: color2
|
|
22351
|
+
},
|
|
22352
|
+
style: {
|
|
22353
|
+
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
22354
|
+
borderColor: (theme.vars || theme).palette[color2].dark
|
|
22355
|
+
}
|
|
22356
|
+
}
|
|
22357
|
+
}))],
|
|
22358
|
+
[`& .${buttonGroupClasses.grouped}`]: {
|
|
22359
|
+
minWidth: 40,
|
|
22360
|
+
boxShadow: "none",
|
|
22361
|
+
props: {
|
|
22362
|
+
variant: "contained"
|
|
22363
|
+
},
|
|
22364
|
+
style: {
|
|
22365
|
+
"&:hover": {
|
|
22366
|
+
boxShadow: "none"
|
|
22367
|
+
}
|
|
22368
|
+
}
|
|
22369
|
+
}
|
|
22370
|
+
})));
|
|
22371
|
+
const ButtonGroup = /* @__PURE__ */ React.forwardRef(function ButtonGroup2(inProps, ref) {
|
|
22372
|
+
const props = useDefaultProps({
|
|
22373
|
+
props: inProps,
|
|
22374
|
+
name: "MuiButtonGroup"
|
|
22375
|
+
});
|
|
22376
|
+
const {
|
|
22377
|
+
children,
|
|
22378
|
+
className,
|
|
22379
|
+
color: color2 = "primary",
|
|
22380
|
+
component = "div",
|
|
22381
|
+
disabled = false,
|
|
22382
|
+
disableElevation = false,
|
|
22383
|
+
disableFocusRipple = false,
|
|
22384
|
+
disableRipple = false,
|
|
22385
|
+
fullWidth = false,
|
|
22386
|
+
orientation = "horizontal",
|
|
22387
|
+
size = "medium",
|
|
22388
|
+
variant = "outlined",
|
|
22389
|
+
...other
|
|
22390
|
+
} = props;
|
|
22391
|
+
const ownerState = {
|
|
22392
|
+
...props,
|
|
22393
|
+
color: color2,
|
|
22394
|
+
component,
|
|
22395
|
+
disabled,
|
|
22396
|
+
disableElevation,
|
|
22397
|
+
disableFocusRipple,
|
|
22398
|
+
disableRipple,
|
|
22399
|
+
fullWidth,
|
|
22400
|
+
orientation,
|
|
22401
|
+
size,
|
|
22402
|
+
variant
|
|
22403
|
+
};
|
|
22404
|
+
const classes = useUtilityClasses$1x(ownerState);
|
|
22405
|
+
const context = React.useMemo(() => ({
|
|
22406
|
+
className: classes.grouped,
|
|
22407
|
+
color: color2,
|
|
22408
|
+
disabled,
|
|
22409
|
+
disableElevation,
|
|
22410
|
+
disableFocusRipple,
|
|
22411
|
+
disableRipple,
|
|
22412
|
+
fullWidth,
|
|
22413
|
+
size,
|
|
22414
|
+
variant
|
|
22415
|
+
}), [color2, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
22416
|
+
const validChildren = getValidReactChildren(children);
|
|
22417
|
+
const childrenCount = validChildren.length;
|
|
22418
|
+
const getButtonPositionClassName = (index) => {
|
|
22419
|
+
const isFirstButton = index === 0;
|
|
22420
|
+
const isLastButton = index === childrenCount - 1;
|
|
22421
|
+
if (isFirstButton && isLastButton) {
|
|
22422
|
+
return "";
|
|
22423
|
+
}
|
|
22424
|
+
if (isFirstButton) {
|
|
22425
|
+
return classes.firstButton;
|
|
22426
|
+
}
|
|
22427
|
+
if (isLastButton) {
|
|
22428
|
+
return classes.lastButton;
|
|
22429
|
+
}
|
|
22430
|
+
return classes.middleButton;
|
|
22431
|
+
};
|
|
22432
|
+
return /* @__PURE__ */ jsx(ButtonGroupRoot, {
|
|
22433
|
+
as: component,
|
|
22434
|
+
role: "group",
|
|
22435
|
+
className: clsx(classes.root, className),
|
|
22436
|
+
ref,
|
|
22437
|
+
ownerState,
|
|
22438
|
+
...other,
|
|
22439
|
+
children: /* @__PURE__ */ jsx(ButtonGroupContext.Provider, {
|
|
22440
|
+
value: context,
|
|
22441
|
+
children: validChildren.map((child, index) => {
|
|
22442
|
+
return /* @__PURE__ */ jsx(ButtonGroupButtonContext.Provider, {
|
|
22443
|
+
value: getButtonPositionClassName(index),
|
|
22444
|
+
children: child
|
|
22445
|
+
}, index);
|
|
22446
|
+
})
|
|
22447
|
+
})
|
|
22448
|
+
});
|
|
22449
|
+
});
|
|
22450
|
+
process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes = {
|
|
22451
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
22452
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
22453
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
22454
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
22455
|
+
/**
|
|
22456
|
+
* The content of the component.
|
|
22457
|
+
*/
|
|
22458
|
+
children: PropTypes.node,
|
|
22459
|
+
/**
|
|
22460
|
+
* Override or extend the styles applied to the component.
|
|
22461
|
+
*/
|
|
22462
|
+
classes: PropTypes.object,
|
|
22463
|
+
/**
|
|
22464
|
+
* @ignore
|
|
22465
|
+
*/
|
|
22466
|
+
className: PropTypes.string,
|
|
22467
|
+
/**
|
|
22468
|
+
* The color of the component.
|
|
22469
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
22470
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
22471
|
+
* @default 'primary'
|
|
22472
|
+
*/
|
|
22473
|
+
color: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), PropTypes.string]),
|
|
22474
|
+
/**
|
|
22475
|
+
* The component used for the root node.
|
|
22476
|
+
* Either a string to use a HTML element or a component.
|
|
22477
|
+
*/
|
|
22478
|
+
component: PropTypes.elementType,
|
|
22479
|
+
/**
|
|
22480
|
+
* If `true`, the component is disabled.
|
|
22481
|
+
* @default false
|
|
22482
|
+
*/
|
|
22483
|
+
disabled: PropTypes.bool,
|
|
22484
|
+
/**
|
|
22485
|
+
* If `true`, no elevation is used.
|
|
22486
|
+
* @default false
|
|
22487
|
+
*/
|
|
22488
|
+
disableElevation: PropTypes.bool,
|
|
22489
|
+
/**
|
|
22490
|
+
* If `true`, the button keyboard focus ripple is disabled.
|
|
22491
|
+
* @default false
|
|
22492
|
+
*/
|
|
22493
|
+
disableFocusRipple: PropTypes.bool,
|
|
22494
|
+
/**
|
|
22495
|
+
* If `true`, the button ripple effect is disabled.
|
|
22496
|
+
* @default false
|
|
22497
|
+
*/
|
|
22498
|
+
disableRipple: PropTypes.bool,
|
|
22499
|
+
/**
|
|
22500
|
+
* If `true`, the buttons will take up the full width of its container.
|
|
22501
|
+
* @default false
|
|
22502
|
+
*/
|
|
22503
|
+
fullWidth: PropTypes.bool,
|
|
22504
|
+
/**
|
|
22505
|
+
* The component orientation (layout flow direction).
|
|
22506
|
+
* @default 'horizontal'
|
|
22507
|
+
*/
|
|
22508
|
+
orientation: PropTypes.oneOf(["horizontal", "vertical"]),
|
|
22509
|
+
/**
|
|
22510
|
+
* The size of the component.
|
|
22511
|
+
* `small` is equivalent to the dense button styling.
|
|
22512
|
+
* @default 'medium'
|
|
22513
|
+
*/
|
|
22514
|
+
size: PropTypes.oneOfType([PropTypes.oneOf(["small", "medium", "large"]), PropTypes.string]),
|
|
22515
|
+
/**
|
|
22516
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
22517
|
+
*/
|
|
22518
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
22519
|
+
/**
|
|
22520
|
+
* The variant to use.
|
|
22521
|
+
* @default 'outlined'
|
|
22522
|
+
*/
|
|
22523
|
+
variant: PropTypes.oneOfType([PropTypes.oneOf(["contained", "outlined", "text"]), PropTypes.string])
|
|
22524
|
+
} : void 0;
|
|
22138
22525
|
function getCardUtilityClass(slot) {
|
|
22139
22526
|
return generateUtilityClass("MuiCard", slot);
|
|
22140
22527
|
}
|
|
@@ -40382,9 +40769,6 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes = {
|
|
|
40382
40769
|
*/
|
|
40383
40770
|
value: PropTypes.any.isRequired
|
|
40384
40771
|
} : void 0;
|
|
40385
|
-
function getValidReactChildren(children) {
|
|
40386
|
-
return React.Children.toArray(children).filter((child) => /* @__PURE__ */ React.isValidElement(child));
|
|
40387
|
-
}
|
|
40388
40772
|
function getToggleButtonGroupUtilityClass(slot) {
|
|
40389
40773
|
return generateUtilityClass("MuiToggleButtonGroup", slot);
|
|
40390
40774
|
}
|
|
@@ -41689,14 +42073,6 @@ function getButtonUtilityClass(slot) {
|
|
|
41689
42073
|
return generateUtilityClass("MuiButton", slot);
|
|
41690
42074
|
}
|
|
41691
42075
|
const buttonClasses = generateUtilityClasses("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]);
|
|
41692
|
-
const ButtonGroupContext = /* @__PURE__ */ React.createContext({});
|
|
41693
|
-
if (process.env.NODE_ENV !== "production") {
|
|
41694
|
-
ButtonGroupContext.displayName = "ButtonGroupContext";
|
|
41695
|
-
}
|
|
41696
|
-
const ButtonGroupButtonContext = /* @__PURE__ */ React.createContext(void 0);
|
|
41697
|
-
if (process.env.NODE_ENV !== "production") {
|
|
41698
|
-
ButtonGroupButtonContext.displayName = "ButtonGroupButtonContext";
|
|
41699
|
-
}
|
|
41700
42076
|
const useUtilityClasses$r = (ownerState) => {
|
|
41701
42077
|
const {
|
|
41702
42078
|
color: color2,
|
|
@@ -42914,69 +43290,6 @@ const Alert2 = ({
|
|
|
42914
43290
|
}
|
|
42915
43291
|
);
|
|
42916
43292
|
};
|
|
42917
|
-
const StyledToggleButtonGroup = styled$3(ToggleButtonGroup$1, {
|
|
42918
|
-
shouldForwardProp: (prop) => prop !== "colorvariant"
|
|
42919
|
-
})(({ theme, colorvariant }) => ({
|
|
42920
|
-
borderColor: colorvariant === "primary" ? theme.palette.primary.light : theme.palette.secondary.light
|
|
42921
|
-
}));
|
|
42922
|
-
const StyledToggleButton = styled$3(ToggleButton$1, {
|
|
42923
|
-
shouldForwardProp: (prop) => prop !== "colorvariant"
|
|
42924
|
-
})(({ theme, colorvariant }) => {
|
|
42925
|
-
const mainColor = colorvariant === "primary" ? theme.palette.primary.main : theme.palette.secondary.main;
|
|
42926
|
-
const lighterColor = colorvariant === "primary" ? theme.palette.primary.light : theme.palette.secondary.light;
|
|
42927
|
-
return {
|
|
42928
|
-
color: theme.palette.text.secondary,
|
|
42929
|
-
"&.Mui-selected": {
|
|
42930
|
-
backgroundColor: mainColor,
|
|
42931
|
-
color: theme.palette.common.white
|
|
42932
|
-
},
|
|
42933
|
-
"&:hover": {
|
|
42934
|
-
backgroundColor: lighterColor,
|
|
42935
|
-
color: theme.palette.text.secondary
|
|
42936
|
-
},
|
|
42937
|
-
"&.Mui-selected:hover": {
|
|
42938
|
-
backgroundColor: mainColor,
|
|
42939
|
-
color: theme.palette.common.white
|
|
42940
|
-
}
|
|
42941
|
-
};
|
|
42942
|
-
});
|
|
42943
|
-
const ButtonGroup = ({
|
|
42944
|
-
viewMode,
|
|
42945
|
-
buttonList,
|
|
42946
|
-
onChange,
|
|
42947
|
-
colorVariant = "primary",
|
|
42948
|
-
size = "small",
|
|
42949
|
-
orientation = "horizontal"
|
|
42950
|
-
}) => {
|
|
42951
|
-
return /* @__PURE__ */ jsx(
|
|
42952
|
-
StyledToggleButtonGroup,
|
|
42953
|
-
{
|
|
42954
|
-
value: viewMode,
|
|
42955
|
-
exclusive: true,
|
|
42956
|
-
onChange: (event, value) => {
|
|
42957
|
-
if (value !== null) {
|
|
42958
|
-
onChange(value);
|
|
42959
|
-
}
|
|
42960
|
-
},
|
|
42961
|
-
size,
|
|
42962
|
-
orientation,
|
|
42963
|
-
colorvariant: colorVariant,
|
|
42964
|
-
children: buttonList.map((button) => /* @__PURE__ */ jsxs(
|
|
42965
|
-
StyledToggleButton,
|
|
42966
|
-
{
|
|
42967
|
-
value: button.value,
|
|
42968
|
-
colorvariant: colorVariant,
|
|
42969
|
-
disabled: button.disabled,
|
|
42970
|
-
children: [
|
|
42971
|
-
button.icon,
|
|
42972
|
-
button.text && /* @__PURE__ */ jsx("span", { style: { marginLeft: 8 }, children: button.text })
|
|
42973
|
-
]
|
|
42974
|
-
},
|
|
42975
|
-
button.value
|
|
42976
|
-
))
|
|
42977
|
-
}
|
|
42978
|
-
);
|
|
42979
|
-
};
|
|
42980
43293
|
const CheckRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
42981
43294
|
d: "M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
|
|
42982
43295
|
}), "CheckRounded");
|
|
@@ -63316,6 +63629,8 @@ export {
|
|
|
63316
63629
|
Breadcrumbs,
|
|
63317
63630
|
Button2 as Button,
|
|
63318
63631
|
ButtonGroup,
|
|
63632
|
+
ButtonGroupButtonContext,
|
|
63633
|
+
ButtonGroupContext,
|
|
63319
63634
|
Card,
|
|
63320
63635
|
CardActionArea,
|
|
63321
63636
|
CardActions,
|
|
@@ -63445,6 +63760,7 @@ export {
|
|
|
63445
63760
|
boxClasses,
|
|
63446
63761
|
breadcrumbsClasses,
|
|
63447
63762
|
brown,
|
|
63763
|
+
buttonGroupClasses,
|
|
63448
63764
|
cardActionAreaClasses,
|
|
63449
63765
|
cardActionsClasses,
|
|
63450
63766
|
cardClasses,
|
|
@@ -63496,6 +63812,7 @@ export {
|
|
|
63496
63812
|
getBackdropUtilityClass,
|
|
63497
63813
|
getBadgeUtilityClass,
|
|
63498
63814
|
getBreadcrumbsUtilityClass,
|
|
63815
|
+
getButtonGroupUtilityClass,
|
|
63499
63816
|
getCardActionAreaUtilityClass,
|
|
63500
63817
|
getCardActionsUtilityClass,
|
|
63501
63818
|
getCardContentUtilityClass,
|