@cgi-learning-hub/ui 1.4.0-dev.1742208889 → 1.4.0-dev.1742217009
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/{Alert-DdpAZix8.js → Alert-BCd1tHk0.js} +9 -9
- package/dist/{Backdrop-BctCVgLy.js → Backdrop-CjDitjBW.js} +20 -19
- package/dist/Backdrop-DOdBqGqq.cjs +1 -0
- package/dist/{Box-DgqaLb7j.js → Box-GMNejc_m.js} +7 -7
- package/dist/{Button-B7kOjNW1.js → Button-x5rtZxJN.js} +6 -6
- package/dist/{ButtonBase-IZ_QjbpE.js → ButtonBase-CU1npQuI.js} +4 -4
- package/dist/{CardContent-F4-KcZH8.js → CardContent-CL_61cm-.js} +3 -3
- package/dist/{Checkbox-qUSjau0g.js → Checkbox-CtRSDqOe.js} +7 -7
- package/dist/{Chip-OpRIs-sL.js → Chip-ZIBpWC4I.js} +6 -6
- package/dist/{CircularProgress-CQxzJquv.js → CircularProgress-B28FKeiH.js} +4 -4
- package/dist/{CloseRounded-BMEGLs8y.js → CloseRounded-pP8asZiP.js} +1 -1
- package/dist/Collapse-Bvxtq7n-.cjs +1 -0
- package/dist/Collapse-CcMCOZ3q.js +334 -0
- package/dist/CustomTreeItem-CG7mGHC9.cjs +3 -0
- package/dist/CustomTreeItem-PTf-e74x.js +1003 -0
- package/dist/DatePicker-64gpvkmk.cjs +13 -0
- package/dist/{DatePicker-fFsWvNFc.js → DatePicker-XdCuICxv.js} +2117 -2535
- package/dist/{DefaultPropsProvider-Cqcb4sws.js → DefaultPropsProvider-CQixa6JQ.js} +7 -7
- package/dist/Delete-BQA9--_t.js +8 -0
- package/dist/Delete-DmeDAs0n.cjs +1 -0
- package/dist/{Dialog-CKS7yjT5.js → Dialog-C-Ptqtq-.js} +9 -9
- package/dist/{Dialog-B1wnk5BT.cjs → Dialog-CgEvhrbZ.cjs} +1 -1
- package/dist/{DialogContent-BzPaz5G8.js → DialogContent-1sjO2rQK.js} +3 -3
- package/dist/{DialogTitle-D3E_lDHD.js → DialogTitle-CGpa_QH9.js} +5 -5
- package/dist/{DialogTitle-mr9xn4JZ.cjs → DialogTitle-F6JD1f_z.cjs} +1 -1
- package/dist/{Divider-D-pZeQTm.js → Divider-CNGfzZqD.js} +8 -8
- package/dist/Folder-DXybV_jP.js +8 -0
- package/dist/Folder-DiQqYwXI.cjs +1 -0
- package/dist/{FormLabel-3-CC-ZGw.js → FormLabel-BlaPVlwX.js} +67 -76
- package/dist/FormLabel-XpwTqbs8.cjs +2 -0
- package/dist/{Grow-DKgYCxiY.js → Grow-D5UIC41W.js} +14 -13
- package/dist/Grow-wjlsaPJ-.cjs +1 -0
- package/dist/{IconButton-CCNUMz2l.js → IconButton-CFUIddNg.js} +6 -6
- package/dist/{InputAdornment-DL8XIM8r.js → InputAdornment-GcbiriFv.js} +5 -5
- package/dist/{InputBase-By7jMrFP.js → InputBase-DJuF09Rf.js} +7 -7
- package/dist/{Link-C_GPIs0q.js → Link-DtsZ0d_s.js} +7 -7
- package/dist/List-BTPrBGqY.js +130 -0
- package/dist/List-Bo4pzQqG.cjs +1 -0
- package/dist/ListItem-C9OfYRAP.js +423 -0
- package/dist/ListItem-CB4JyjSb.cjs +1 -0
- package/dist/ListItemText-B_hEVsaT.js +928 -0
- package/dist/ListItemText-Bjd08uk4.cjs +1 -0
- package/dist/{Menu-BunOW0ot.js → Menu-DD_bqi6q.js} +306 -428
- package/dist/Menu-XypIRgTl.cjs +7 -0
- package/dist/{MenuItem-Cu3FTLl8.js → MenuItem-Byj-2QQd.js} +72 -77
- package/dist/MenuItem-vb36Ljmd.cjs +1 -0
- package/dist/{Modal-u82Ss4h_.cjs → Modal-BG3hPYyH.cjs} +1 -1
- package/dist/{Modal-DTJd7JJ6.js → Modal-S2P14Nsp.js} +8 -8
- package/dist/{MoreVert-CrM_1EkN.js → MoreVert-rsN-POLa.js} +1 -1
- package/dist/{Paper-BiZq6EF2.js → Paper-BrsaeLlu.js} +4 -4
- package/dist/{Popper-DjwR55WH.js → Popper-BNftxeQ5.js} +31 -30
- package/dist/Popper-BaxEpkdE.cjs +4 -0
- package/dist/{Portal-BByeByPq.js → Portal-BLEnzj1v.js} +2 -2
- package/dist/Portal-Bw9XOIah.cjs +1 -0
- package/dist/{Radio-DSRS-tjj.js → Radio-CRTKwNe5.js} +9 -9
- package/dist/{RadioGroup-cPdOWdYD.js → RadioGroup-NjI5PlIb.js} +3 -3
- package/dist/{Select-DZAzJA0y.cjs → Select-8kBUq_SZ.cjs} +1 -1
- package/dist/{Select-CZnKFG3o.js → Select-C0jrZLRg.js} +30 -30
- package/dist/{Stack-hbAJHQhq.js → Stack-Bm7M81n8.js} +22 -22
- package/dist/{Switch-B9uT9-d0.js → Switch-D5FnE7HW.js} +6 -6
- package/dist/{SwitchBase-CDkmnGAP.js → SwitchBase-91Mand9t.js} +5 -5
- package/dist/{Tabs-BYfDlOR9.js → Tabs-C5VIdTSp.js} +25 -24
- package/dist/Tabs-Csp29aqN.cjs +4 -0
- package/dist/{TextField-CwcPgdgD.cjs → TextField-BzqflYRV.cjs} +1 -1
- package/dist/{TextField-BKfXjPdH.js → TextField-D5jS5WjF.js} +8 -8
- package/dist/ToggleButtonGroup-Bpi3kmko.cjs +140 -0
- package/dist/{ToggleButtonGroup-B1yghh29.js → ToggleButtonGroup-CipWZLXf.js} +2641 -3875
- package/dist/Tooltip-DJmbLjU6.cjs +4 -0
- package/dist/{Tooltip-B1NGvrJP.js → Tooltip-DgTrUaHJ.js} +10 -10
- package/dist/{Typography-SIQ6eleU.js → Typography-Ct2Sc9KM.js} +5 -5
- package/dist/{capitalize-3KLkrEtk.js → capitalize-BJ0FEsU7.js} +1 -1
- package/dist/components/Alert/Alert.es.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +13 -15
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +45 -46
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +7 -0
- package/dist/components/TreeView/TreeView.d.ts +4 -0
- package/dist/components/TreeView/TreeView.es.js +1892 -0
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -0
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +6 -0
- package/dist/components/TreeView/components/CustomTreeItem.es.js +8 -0
- package/dist/components/TreeView/index.cjs.js +1 -0
- package/dist/components/TreeView/index.d.ts +2 -0
- package/dist/components/TreeView/index.es.js +6 -0
- package/dist/components/TreeView/style.cjs.js +1 -0
- package/dist/components/TreeView/style.d.ts +12 -0
- package/dist/components/TreeView/style.es.js +24 -0
- package/dist/components/TreeView/types.cjs.js +1 -0
- package/dist/components/TreeView/types.d.ts +37 -0
- package/dist/components/TreeView/types.es.js +4 -0
- package/dist/components/TreeView/utils.cjs.js +1 -0
- package/dist/components/TreeView/utils.d.ts +6 -0
- package/dist/components/TreeView/utils.es.js +50 -0
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +350 -345
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +4 -4
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +63 -0
- package/dist/components/stories/TreeView.stories.d.ts +12 -0
- package/dist/components/stories/TreeView.stories.es.js +663 -0
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-K2ZAdASa.js → createSvgIcon-B62eln-G.js} +6 -6
- package/dist/{dividerClasses-afsB3Yy1.js → dividerClasses-DjJZQ2Lt.js} +1 -1
- package/dist/{elementTypeAcceptingRef-5ESWTE79.js → elementTypeAcceptingRef-B04tk6ag.js} +1 -1
- package/dist/{extendSxProp-dlShX1xL.js → extendSxProp-CgS-3O19.js} +1 -1
- package/dist/{generateUtilityClasses-DotvgSDH.js → generateUtilityClasses-EXBFO7eY.js} +9 -9
- package/dist/getReactElementRef-CTRMtaOQ.cjs +1 -0
- package/dist/getReactElementRef-DjLvttrJ.js +31 -0
- package/dist/{index-DTTmpNYg.js → index-BZ7ldAwE.js} +4 -4
- package/dist/index-Cr54V0sz.cjs +1 -0
- package/dist/index-D_xl88AE.js +22 -0
- package/dist/{index-B1u7G33_.js → index-DcwdJ8a_.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +350 -345
- package/dist/isMuiElement-BzDAj3yJ.cjs +1 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/listItemTextClasses-BCuJjsDp.cjs +1 -0
- package/dist/listItemTextClasses-Kxu3VILo.js +9 -0
- package/dist/{memoTheme-CqmIydD-.js → memoTheme-DJWQ754x.js} +1 -1
- package/dist/{refType-C210ipRY.js → refType-Bpj8bod6.js} +1 -1
- package/dist/{resolveComponentProps-CPmhKPdH.js → resolveComponentProps-CIdMNno4.js} +1 -1
- package/dist/{useSlot-GZu0V5wJ.js → useSlot-RbAtahZu.js} +1 -1
- package/dist/useSlotProps-BTRhbYwP.cjs +1 -0
- package/dist/useSlotProps-U2Iu6E0j.js +25 -0
- package/dist/{useTheme-tdgDVH1p.js → useTheme-CUKf8NYA.js} +1 -1
- package/dist/useTheme-Czi7oO55.js +11 -0
- package/dist/{useThemeProps-BQlPXzo3.js → useThemeProps-Bxjrhw9q.js} +2 -2
- package/dist/useThemeProps-v-SfXuGn.js +17 -0
- package/dist/{utils-CXhh35wP.js → utils-B2jSugkj.js} +76 -104
- package/dist/utils-lBmb5bp_.cjs +1 -0
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +2 -1
- package/dist/Backdrop-DWp3AktL.cjs +0 -1
- package/dist/DatePicker-DrLKgvkx.cjs +0 -14
- package/dist/FormLabel-BV7-a0i5.cjs +0 -2
- package/dist/Grow-Z3KzFaK5.cjs +0 -1
- package/dist/Menu-Cngt8Va9.cjs +0 -7
- package/dist/MenuItem-Bha8aBMr.cjs +0 -1
- package/dist/Popper-BVYscbsI.cjs +0 -4
- package/dist/Portal-DUHpWdY1.cjs +0 -1
- package/dist/Tabs-AyJ_tKtV.cjs +0 -4
- package/dist/ToggleButtonGroup-NqurNgWT.cjs +0 -140
- package/dist/Tooltip-oNmnF7Bc.cjs +0 -4
- package/dist/useSlotProps-C9tsxDNg.js +0 -45
- package/dist/useSlotProps-CvOxvhyy.cjs +0 -1
- package/dist/useTheme-BA7tMglY.js +0 -11
- package/dist/useThemeProps-BTfGtNci.js +0 -17
- package/dist/utils-CFI_-FMV.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("react");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=u(a);function o(e,n){var t,i,r;return c.isValidElement(e)&&n.indexOf(e.type.muiName??((r=(i=(t=e.type)==null?void 0:t._payload)==null?void 0:i.value)==null?void 0:r.muiName))!==-1}exports.isMuiElement=o;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
function o(i, m) {
|
|
3
|
+
var a, e, t;
|
|
4
|
+
return /* @__PURE__ */ u.isValidElement(i) && m.indexOf(
|
|
5
|
+
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
6
|
+
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
7
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
8
|
+
i.type.muiName ?? ((t = (e = (a = i.type) == null ? void 0 : a._payload) == null ? void 0 : e.value) == null ? void 0 : t.muiName)
|
|
9
|
+
) !== -1;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
o as i
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./generateUtilityClasses-De8NU9_E.cjs");function s(e){return t.generateUtilityClass("MuiListItemText",e)}const i=t.generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);exports.getListItemTextUtilityClass=s;exports.listItemTextClasses=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./resolveComponentProps-PuUs-PsA.cjs"),f=require("./useForkRef-CTI33h-3.cjs");function S(r){var t;const{elementType:n,externalSlotProps:p,ownerState:s,skipResolvingSlotProps:l=!1,...c}=r,e=l?{}:o.resolveComponentProps(p,s),{props:i,internalRef:u}=o.mergeSlotProps({...c,externalSlotProps:e}),P=f.useForkRef(u,e==null?void 0:e.ref,(t=r.additionalProps)==null?void 0:t.ref);return o.appendOwnerState(n,{...i,ref:P},s)}exports.useSlotProps=S;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as m, m as P, a as S } from "./resolveComponentProps-CIdMNno4.js";
|
|
2
|
+
import { u as c } from "./useForkRef-C_4o__cU.js";
|
|
3
|
+
function x(e) {
|
|
4
|
+
var t;
|
|
5
|
+
const {
|
|
6
|
+
elementType: s,
|
|
7
|
+
externalSlotProps: p,
|
|
8
|
+
ownerState: r,
|
|
9
|
+
skipResolvingSlotProps: n = !1,
|
|
10
|
+
...a
|
|
11
|
+
} = e, o = n ? {} : m(p, r), {
|
|
12
|
+
props: l,
|
|
13
|
+
internalRef: f
|
|
14
|
+
} = P({
|
|
15
|
+
...a,
|
|
16
|
+
externalSlotProps: o
|
|
17
|
+
}), i = c(f, o == null ? void 0 : o.ref, (t = e.additionalProps) == null ? void 0 : t.ref);
|
|
18
|
+
return S(s, {
|
|
19
|
+
...l,
|
|
20
|
+
ref: i
|
|
21
|
+
}, r);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
x as u
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { d as r } from "./DefaultPropsProvider-CQixa6JQ.js";
|
|
3
|
+
import { T as m } from "./generateUtilityClasses-EXBFO7eY.js";
|
|
4
|
+
import { u as t } from "./useTheme-CUKf8NYA.js";
|
|
5
|
+
function f() {
|
|
6
|
+
const e = t(r);
|
|
7
|
+
return process.env.NODE_ENV !== "production" && o.useDebugValue(e), e[m] || e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
f as u
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { d as m } from "./DefaultPropsProvider-CQixa6JQ.js";
|
|
2
|
+
import { T as o } from "./generateUtilityClasses-EXBFO7eY.js";
|
|
3
|
+
import { u as s } from "./useThemeProps-Bxjrhw9q.js";
|
|
4
|
+
function a({
|
|
5
|
+
props: e,
|
|
6
|
+
name: r
|
|
7
|
+
}) {
|
|
8
|
+
return s({
|
|
9
|
+
props: e,
|
|
10
|
+
name: r,
|
|
11
|
+
defaultTheme: m,
|
|
12
|
+
themeId: o
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
a as u
|
|
17
|
+
};
|
|
@@ -1,41 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import * as y from "react";
|
|
1
|
+
import { _ as D, a as C, T as S } from "./TransitionGroupContext-DbLioz_6.js";
|
|
2
|
+
import { P as n } from "./generateUtilityClasses-EXBFO7eY.js";
|
|
4
3
|
import v from "react";
|
|
5
|
-
import
|
|
6
|
-
import g from "react-dom";
|
|
7
|
-
function w(u) {
|
|
8
|
-
const {
|
|
9
|
-
prototype: s = {}
|
|
10
|
-
} = u;
|
|
11
|
-
return !!s.isReactComponent;
|
|
12
|
-
}
|
|
13
|
-
function O(u, s, a, r, e) {
|
|
14
|
-
const t = u[s], i = e || s;
|
|
15
|
-
if (t == null || // When server-side rendering React doesn't warn either.
|
|
16
|
-
// This is not an accurate check for SSR.
|
|
17
|
-
// This is only in place for Emotion compat.
|
|
18
|
-
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
19
|
-
typeof window > "u")
|
|
20
|
-
return null;
|
|
21
|
-
let o;
|
|
22
|
-
const p = t.type;
|
|
23
|
-
return typeof p == "function" && !w(p) && (o = "Did you accidentally use a plain function component for an element instead?"), o !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${a}\`. Expected an element that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
24
|
-
}
|
|
25
|
-
const I = R(n.element, O);
|
|
26
|
-
I.isRequired = R(n.element.isRequired, O);
|
|
27
|
-
function A(u) {
|
|
28
|
-
var s;
|
|
29
|
-
return parseInt(y.version, 10) >= 19 ? ((s = u == null ? void 0 : u.props) == null ? void 0 : s.ref) || null : (u == null ? void 0 : u.ref) || null;
|
|
30
|
-
}
|
|
4
|
+
import b from "react-dom";
|
|
31
5
|
const N = {
|
|
32
6
|
disabled: !1
|
|
33
7
|
};
|
|
34
|
-
var
|
|
8
|
+
var R = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
35
9
|
enter: n.number,
|
|
36
10
|
exit: n.number,
|
|
37
11
|
appear: n.number
|
|
38
|
-
}).isRequired]) : null,
|
|
12
|
+
}).isRequired]) : null, I = process.env.NODE_ENV !== "production" ? n.oneOfType([n.string, n.shape({
|
|
39
13
|
enter: n.string,
|
|
40
14
|
exit: n.string,
|
|
41
15
|
active: n.string
|
|
@@ -46,58 +20,58 @@ var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
|
46
20
|
exit: n.string,
|
|
47
21
|
exitDone: n.string,
|
|
48
22
|
exitActive: n.string
|
|
49
|
-
})]) : null,
|
|
50
|
-
return
|
|
51
|
-
}, x = "unmounted",
|
|
52
|
-
|
|
53
|
-
function
|
|
23
|
+
})]) : null, y = function(a) {
|
|
24
|
+
return a.scrollTop;
|
|
25
|
+
}, x = "unmounted", f = "exited", c = "entering", h = "entered", g = "exiting", l = /* @__PURE__ */ function(u) {
|
|
26
|
+
D(a, u);
|
|
27
|
+
function a(r, e) {
|
|
54
28
|
var t;
|
|
55
29
|
t = u.call(this, r, e) || this;
|
|
56
|
-
var i = e,
|
|
57
|
-
return t.appearStatus = null, r.in ?
|
|
30
|
+
var i = e, s = i && !i.isMounting ? r.enter : r.appear, p;
|
|
31
|
+
return t.appearStatus = null, r.in ? s ? (p = f, t.appearStatus = c) : p = h : r.unmountOnExit || r.mountOnEnter ? p = x : p = f, t.state = {
|
|
58
32
|
status: p
|
|
59
33
|
}, t.nextCallback = null, t;
|
|
60
34
|
}
|
|
61
|
-
|
|
35
|
+
a.getDerivedStateFromProps = function(e, t) {
|
|
62
36
|
var i = e.in;
|
|
63
37
|
return i && t.status === x ? {
|
|
64
|
-
status:
|
|
38
|
+
status: f
|
|
65
39
|
} : null;
|
|
66
40
|
};
|
|
67
|
-
var
|
|
68
|
-
return
|
|
41
|
+
var o = a.prototype;
|
|
42
|
+
return o.componentDidMount = function() {
|
|
69
43
|
this.updateStatus(!0, this.appearStatus);
|
|
70
|
-
},
|
|
44
|
+
}, o.componentDidUpdate = function(e) {
|
|
71
45
|
var t = null;
|
|
72
46
|
if (e !== this.props) {
|
|
73
47
|
var i = this.state.status;
|
|
74
|
-
this.props.in ? i !== c && i !== h && (t = c) : (i === c || i === h) && (t =
|
|
48
|
+
this.props.in ? i !== c && i !== h && (t = c) : (i === c || i === h) && (t = g);
|
|
75
49
|
}
|
|
76
50
|
this.updateStatus(!1, t);
|
|
77
|
-
},
|
|
51
|
+
}, o.componentWillUnmount = function() {
|
|
78
52
|
this.cancelNextCallback();
|
|
79
|
-
},
|
|
80
|
-
var e = this.props.timeout, t, i,
|
|
81
|
-
return t = i =
|
|
53
|
+
}, o.getTimeouts = function() {
|
|
54
|
+
var e = this.props.timeout, t, i, s;
|
|
55
|
+
return t = i = s = e, e != null && typeof e != "number" && (t = e.exit, i = e.enter, s = e.appear !== void 0 ? e.appear : i), {
|
|
82
56
|
exit: t,
|
|
83
57
|
enter: i,
|
|
84
|
-
appear:
|
|
58
|
+
appear: s
|
|
85
59
|
};
|
|
86
|
-
},
|
|
60
|
+
}, o.updateStatus = function(e, t) {
|
|
87
61
|
if (e === void 0 && (e = !1), t !== null)
|
|
88
62
|
if (this.cancelNextCallback(), t === c) {
|
|
89
63
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
90
|
-
var i = this.props.nodeRef ? this.props.nodeRef.current :
|
|
91
|
-
i &&
|
|
64
|
+
var i = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this);
|
|
65
|
+
i && y(i);
|
|
92
66
|
}
|
|
93
67
|
this.performEnter(e);
|
|
94
68
|
} else
|
|
95
69
|
this.performExit();
|
|
96
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
70
|
+
else this.props.unmountOnExit && this.state.status === f && this.setState({
|
|
97
71
|
status: x
|
|
98
72
|
});
|
|
99
|
-
},
|
|
100
|
-
var t = this, i = this.props.enter,
|
|
73
|
+
}, o.performEnter = function(e) {
|
|
74
|
+
var t = this, i = this.props.enter, s = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [s] : [b.findDOMNode(this), s], d = p[0], m = p[1], T = this.getTimeouts(), O = s ? T.appear : T.enter;
|
|
101
75
|
if (!e && !i || N.disabled) {
|
|
102
76
|
this.safeSetState({
|
|
103
77
|
status: h
|
|
@@ -109,7 +83,7 @@ var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
|
109
83
|
this.props.onEnter(d, m), this.safeSetState({
|
|
110
84
|
status: c
|
|
111
85
|
}, function() {
|
|
112
|
-
t.props.onEntering(d, m), t.onTransitionEnd(
|
|
86
|
+
t.props.onEntering(d, m), t.onTransitionEnd(O, function() {
|
|
113
87
|
t.safeSetState({
|
|
114
88
|
status: h
|
|
115
89
|
}, function() {
|
|
@@ -117,42 +91,42 @@ var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
|
117
91
|
});
|
|
118
92
|
});
|
|
119
93
|
});
|
|
120
|
-
},
|
|
121
|
-
var e = this, t = this.props.exit, i = this.getTimeouts(),
|
|
94
|
+
}, o.performExit = function() {
|
|
95
|
+
var e = this, t = this.props.exit, i = this.getTimeouts(), s = this.props.nodeRef ? void 0 : b.findDOMNode(this);
|
|
122
96
|
if (!t || N.disabled) {
|
|
123
97
|
this.safeSetState({
|
|
124
|
-
status:
|
|
98
|
+
status: f
|
|
125
99
|
}, function() {
|
|
126
|
-
e.props.onExited(
|
|
100
|
+
e.props.onExited(s);
|
|
127
101
|
});
|
|
128
102
|
return;
|
|
129
103
|
}
|
|
130
|
-
this.props.onExit(
|
|
131
|
-
status:
|
|
104
|
+
this.props.onExit(s), this.safeSetState({
|
|
105
|
+
status: g
|
|
132
106
|
}, function() {
|
|
133
|
-
e.props.onExiting(
|
|
107
|
+
e.props.onExiting(s), e.onTransitionEnd(i.exit, function() {
|
|
134
108
|
e.safeSetState({
|
|
135
|
-
status:
|
|
109
|
+
status: f
|
|
136
110
|
}, function() {
|
|
137
|
-
e.props.onExited(
|
|
111
|
+
e.props.onExited(s);
|
|
138
112
|
});
|
|
139
113
|
});
|
|
140
114
|
});
|
|
141
|
-
},
|
|
115
|
+
}, o.cancelNextCallback = function() {
|
|
142
116
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
143
|
-
},
|
|
117
|
+
}, o.safeSetState = function(e, t) {
|
|
144
118
|
t = this.setNextCallback(t), this.setState(e, t);
|
|
145
|
-
},
|
|
119
|
+
}, o.setNextCallback = function(e) {
|
|
146
120
|
var t = this, i = !0;
|
|
147
|
-
return this.nextCallback = function(
|
|
148
|
-
i && (i = !1, t.nextCallback = null, e(
|
|
121
|
+
return this.nextCallback = function(s) {
|
|
122
|
+
i && (i = !1, t.nextCallback = null, e(s));
|
|
149
123
|
}, this.nextCallback.cancel = function() {
|
|
150
124
|
i = !1;
|
|
151
125
|
}, this.nextCallback;
|
|
152
|
-
},
|
|
126
|
+
}, o.onTransitionEnd = function(e, t) {
|
|
153
127
|
this.setNextCallback(t);
|
|
154
|
-
var i = this.props.nodeRef ? this.props.nodeRef.current :
|
|
155
|
-
if (!i ||
|
|
128
|
+
var i = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this), s = e == null && !this.props.addEndListener;
|
|
129
|
+
if (!i || s) {
|
|
156
130
|
setTimeout(this.nextCallback, 0);
|
|
157
131
|
return;
|
|
158
132
|
}
|
|
@@ -161,23 +135,23 @@ var M = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
|
161
135
|
this.props.addEndListener(d, m);
|
|
162
136
|
}
|
|
163
137
|
e != null && setTimeout(this.nextCallback, e);
|
|
164
|
-
},
|
|
138
|
+
}, o.render = function() {
|
|
165
139
|
var e = this.state.status;
|
|
166
140
|
if (e === x)
|
|
167
141
|
return null;
|
|
168
142
|
var t = this.props, i = t.children;
|
|
169
143
|
t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
|
|
170
|
-
var
|
|
144
|
+
var s = C(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
171
145
|
return (
|
|
172
146
|
// allows for nested Transitions
|
|
173
147
|
/* @__PURE__ */ v.createElement(S.Provider, {
|
|
174
148
|
value: null
|
|
175
|
-
}, typeof i == "function" ? i(e,
|
|
149
|
+
}, typeof i == "function" ? i(e, s) : v.cloneElement(v.Children.only(i), s))
|
|
176
150
|
);
|
|
177
|
-
},
|
|
151
|
+
}, a;
|
|
178
152
|
}(v.Component);
|
|
179
|
-
|
|
180
|
-
|
|
153
|
+
l.contextType = S;
|
|
154
|
+
l.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
181
155
|
/**
|
|
182
156
|
* A React reference to DOM element that need to transition:
|
|
183
157
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -190,9 +164,9 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
190
164
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
191
165
|
*/
|
|
192
166
|
nodeRef: n.shape({
|
|
193
|
-
current: typeof Element > "u" ? n.any : function(u,
|
|
194
|
-
var i = u[
|
|
195
|
-
return n.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(u,
|
|
167
|
+
current: typeof Element > "u" ? n.any : function(u, a, o, r, e, t) {
|
|
168
|
+
var i = u[a];
|
|
169
|
+
return n.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(u, a, o, r, e, t);
|
|
196
170
|
}
|
|
197
171
|
}),
|
|
198
172
|
/**
|
|
@@ -272,12 +246,12 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
272
246
|
*
|
|
273
247
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
274
248
|
*/
|
|
275
|
-
timeout: function(
|
|
276
|
-
var
|
|
277
|
-
|
|
249
|
+
timeout: function(a) {
|
|
250
|
+
var o = R;
|
|
251
|
+
a.addEndListener || (o = o.isRequired);
|
|
278
252
|
for (var r = arguments.length, e = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
|
|
279
253
|
e[t - 1] = arguments[t];
|
|
280
|
-
return
|
|
254
|
+
return o.apply(void 0, [a].concat(e));
|
|
281
255
|
},
|
|
282
256
|
/**
|
|
283
257
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -348,7 +322,7 @@ f.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
348
322
|
} : {};
|
|
349
323
|
function E() {
|
|
350
324
|
}
|
|
351
|
-
|
|
325
|
+
l.defaultProps = {
|
|
352
326
|
in: !1,
|
|
353
327
|
mountOnEnter: !1,
|
|
354
328
|
unmountOnExit: !1,
|
|
@@ -362,30 +336,28 @@ f.defaultProps = {
|
|
|
362
336
|
onExiting: E,
|
|
363
337
|
onExited: E
|
|
364
338
|
};
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
const
|
|
371
|
-
function
|
|
339
|
+
l.UNMOUNTED = x;
|
|
340
|
+
l.EXITED = f;
|
|
341
|
+
l.ENTERING = c;
|
|
342
|
+
l.ENTERED = h;
|
|
343
|
+
l.EXITING = g;
|
|
344
|
+
const P = (u) => u.scrollTop;
|
|
345
|
+
function U(u, a) {
|
|
372
346
|
const {
|
|
373
|
-
timeout:
|
|
347
|
+
timeout: o,
|
|
374
348
|
easing: r,
|
|
375
349
|
style: e = {}
|
|
376
350
|
} = u;
|
|
377
351
|
return {
|
|
378
|
-
duration: e.transitionDuration ?? (typeof
|
|
379
|
-
easing: e.transitionTimingFunction ?? (typeof r == "object" ? r[
|
|
352
|
+
duration: e.transitionDuration ?? (typeof o == "number" ? o : o[a.mode] || 0),
|
|
353
|
+
easing: e.transitionTimingFunction ?? (typeof r == "object" ? r[a.mode] : r),
|
|
380
354
|
delay: e.transitionDelay
|
|
381
355
|
};
|
|
382
356
|
}
|
|
383
357
|
export {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
P as
|
|
389
|
-
A as g,
|
|
390
|
-
X as r
|
|
358
|
+
l as T,
|
|
359
|
+
I as c,
|
|
360
|
+
y as f,
|
|
361
|
+
U as g,
|
|
362
|
+
P as r
|
|
391
363
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const y=require("./TransitionGroupContext-Zt4NoR0u.cjs"),n=require("./generateUtilityClasses-De8NU9_E.cjs"),m=require("react"),v=require("react-dom"),g={disabled:!1};var O=process.env.NODE_ENV!=="production"?n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.shape({enter:n.PropTypes.number,exit:n.PropTypes.number,appear:n.PropTypes.number}).isRequired]):null,D=process.env.NODE_ENV!=="production"?n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.shape({enter:n.PropTypes.string,exit:n.PropTypes.string,active:n.PropTypes.string}),n.PropTypes.shape({enter:n.PropTypes.string,enterDone:n.PropTypes.string,enterActive:n.PropTypes.string,exit:n.PropTypes.string,exitDone:n.PropTypes.string,exitActive:n.PropTypes.string})]):null,N=function(a){return a.scrollTop},x="unmounted",f="exited",c="entering",h="entered",P="exiting",l=function(p){y._inheritsLoose(a,p);function a(i,t){var e;e=p.call(this,i,t)||this;var r=t,s=r&&!r.isMounting?i.enter:i.appear,u;return e.appearStatus=null,i.in?s?(u=f,e.appearStatus=c):u=h:i.unmountOnExit||i.mountOnEnter?u=x:u=f,e.state={status:u},e.nextCallback=null,e}a.getDerivedStateFromProps=function(t,e){var r=t.in;return r&&e.status===x?{status:f}:null};var o=a.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==c&&r!==h&&(e=c):(r===c||r===h)&&(e=P)}this.updateStatus(!1,e)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var t=this.props.timeout,e,r,s;return e=r=s=t,t!=null&&typeof t!="number"&&(e=t.exit,r=t.enter,s=t.appear!==void 0?t.appear:r),{exit:e,enter:r,appear:s}},o.updateStatus=function(t,e){if(t===void 0&&(t=!1),e!==null)if(this.cancelNextCallback(),e===c){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:v.findDOMNode(this);r&&N(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:x})},o.performEnter=function(t){var e=this,r=this.props.enter,s=this.context?this.context.isMounting:t,u=this.props.nodeRef?[s]:[v.findDOMNode(this),s],d=u[0],T=u[1],b=this.getTimeouts(),S=s?b.appear:b.enter;if(!t&&!r||g.disabled){this.safeSetState({status:h},function(){e.props.onEntered(d)});return}this.props.onEnter(d,T),this.safeSetState({status:c},function(){e.props.onEntering(d,T),e.onTransitionEnd(S,function(){e.safeSetState({status:h},function(){e.props.onEntered(d,T)})})})},o.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),s=this.props.nodeRef?void 0:v.findDOMNode(this);if(!e||g.disabled){this.safeSetState({status:f},function(){t.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:P},function(){t.props.onExiting(s),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:f},function(){t.props.onExited(s)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},o.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(s){r&&(r=!1,e.nextCallback=null,t(s))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:v.findDOMNode(this),s=t==null&&!this.props.addEndListener;if(!r||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],d=u[0],T=u[1];this.props.addEndListener(d,T)}t!=null&&setTimeout(this.nextCallback,t)},o.render=function(){var t=this.state.status;if(t===x)return null;var e=this.props,r=e.children;e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef;var s=y._objectWithoutPropertiesLoose(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(y.TransitionGroupContext.Provider,{value:null},typeof r=="function"?r(t,s):m.cloneElement(m.Children.only(r),s))},a}(m.Component);l.contextType=y.TransitionGroupContext;l.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:n.PropTypes.shape({current:typeof Element>"u"?n.PropTypes.any:function(p,a,o,i,t,e){var r=p[a];return n.PropTypes.instanceOf(r&&"ownerDocument"in r?r.ownerDocument.defaultView.Element:Element)(p,a,o,i,t,e)}}),children:n.PropTypes.oneOfType([n.PropTypes.func.isRequired,n.PropTypes.element.isRequired]).isRequired,in:n.PropTypes.bool,mountOnEnter:n.PropTypes.bool,unmountOnExit:n.PropTypes.bool,appear:n.PropTypes.bool,enter:n.PropTypes.bool,exit:n.PropTypes.bool,timeout:function(a){var o=O;a.addEndListener||(o=o.isRequired);for(var i=arguments.length,t=new Array(i>1?i-1:0),e=1;e<i;e++)t[e-1]=arguments[e];return o.apply(void 0,[a].concat(t))},addEndListener:n.PropTypes.func,onEnter:n.PropTypes.func,onEntering:n.PropTypes.func,onEntered:n.PropTypes.func,onExit:n.PropTypes.func,onExiting:n.PropTypes.func,onExited:n.PropTypes.func}:{};function E(){}l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:E,onEntering:E,onEntered:E,onExit:E,onExiting:E,onExited:E};l.UNMOUNTED=x;l.EXITED=f;l.ENTERING=c;l.ENTERED=h;l.EXITING=P;const C=p=>p.scrollTop;function R(p,a){const{timeout:o,easing:i,style:t={}}=p;return{duration:t.transitionDuration??(typeof o=="number"?o:o[a.mode]||0),easing:t.transitionTimingFunction??(typeof i=="object"?i[a.mode]:i),delay:t.transitionDelay}}exports.Transition=l;exports.classNamesShape=D;exports.forceReflow=N;exports.getTransitionProps=R;exports.reflow=C;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const e = /* @__PURE__ */ new Set();
|
|
2
|
+
function c(r, o = "warning") {
|
|
3
|
+
if (process.env.NODE_ENV === "production")
|
|
4
|
+
return;
|
|
5
|
+
const n = Array.isArray(r) ? r.join(`
|
|
6
|
+
`) : r;
|
|
7
|
+
e.has(n) || (e.add(n), o === "error" ? console.error(n) : console.warn(n));
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
c as w
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.1742217009",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "CGI Learning-hub Team",
|
|
6
6
|
"description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@mui/icons-material": "6.4.5",
|
|
34
34
|
"@mui/lab": "6.0.0-beta.28",
|
|
35
35
|
"@mui/x-date-pickers": "7.27.0",
|
|
36
|
+
"@mui/x-tree-view": "^7.26.0",
|
|
36
37
|
"dayjs": "1.11.13",
|
|
37
38
|
"react-dropzone": "14.3.5"
|
|
38
39
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const A=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),N=require("./useSlot-CC2AaOjN.cjs"),q=require("react/jsx-runtime"),B=require("./DefaultPropsProvider-wpBXjN8r.cjs"),H=require("./useTheme-CIf2b2wK.cjs"),d=require("./utils-CFI_-FMV.cjs"),W=require("./useForkRef-CTI33h-3.cjs");function G(n){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(s,r,t.get?t:{enumerable:!0,get:()=>n[r]})}}return s.default=n,Object.freeze(s)}const g=G(A),I={entering:{opacity:1},entered:{opacity:1}},D=g.forwardRef(function(s,r){const t=H.useTheme(),E={enter:t.transitions.duration.enteringScreen,exit:t.transitions.duration.leavingScreen},{addEndListener:T,appear:h=!0,children:u,easing:P,in:f,onEnter:m,onEntered:x,onEntering:R,onExit:b,onExited:k,onExiting:v,style:a,timeout:y=E,TransitionComponent:C=d.Transition,...j}=s,c=g.useRef(null),O=W.useForkRef(c,d.getReactElementRef(u),r),i=o=>p=>{if(o){const l=c.current;p===void 0?o(l):o(l,p)}},S=i(R),w=i((o,p)=>{d.reflow(o);const l=d.getTransitionProps({style:a,timeout:y,easing:P},{mode:"enter"});o.style.webkitTransition=t.transitions.create("opacity",l),o.style.transition=t.transitions.create("opacity",l),m&&m(o,p)}),M=i(x),_=i(v),L=i(o=>{const p=d.getTransitionProps({style:a,timeout:y,easing:P},{mode:"exit"});o.style.webkitTransition=t.transitions.create("opacity",p),o.style.transition=t.transitions.create("opacity",p),b&&b(o)}),z=i(k),V=o=>{T&&T(c.current,o)};return q.jsx(C,{appear:h,in:f,nodeRef:c,onEnter:w,onEntered:M,onEntering:S,onExit:L,onExited:z,onExiting:_,addEndListener:V,timeout:y,...j,children:(o,{ownerState:p,...l})=>g.cloneElement(u,{style:{opacity:0,visibility:o==="exited"&&!f?"hidden":void 0,...I[o],...a,...u.props.style},ref:O,...l})})});process.env.NODE_ENV!=="production"&&(D.propTypes={addEndListener:e.PropTypes.func,appear:e.PropTypes.bool,children:d.elementAcceptingRef.isRequired,easing:e.PropTypes.oneOfType([e.PropTypes.shape({enter:e.PropTypes.string,exit:e.PropTypes.string}),e.PropTypes.string]),in:e.PropTypes.bool,onEnter:e.PropTypes.func,onEntered:e.PropTypes.func,onEntering:e.PropTypes.func,onExit:e.PropTypes.func,onExited:e.PropTypes.func,onExiting:e.PropTypes.func,style:e.PropTypes.object,timeout:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});function F(n){return e.generateUtilityClass("MuiBackdrop",n)}const J=e.generateUtilityClasses("MuiBackdrop",["root","invisible"]),K=n=>{const{classes:s,invisible:r}=n,t={root:["root",r&&"invisible"]};return B.composeClasses(t,F,s)},Q=B.styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(n,s)=>{const{ownerState:r}=n;return[s.root,r.invisible&&s.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),U=g.forwardRef(function(s,r){const t=B.useDefaultProps({props:s,name:"MuiBackdrop"}),{children:E,className:T,component:h="div",invisible:u=!1,open:P,components:f={},componentsProps:m={},slotProps:x={},slots:R={},TransitionComponent:b,transitionDuration:k,...v}=t,a={...t,component:h,invisible:u},y=K(a),C={transition:b,root:f.Root,...R},j={...m,...x},c={slots:C,slotProps:j},[O,i]=N.useSlot("root",{elementType:Q,externalForwardedProps:c,className:e.clsx(y.root,T),ownerState:a}),[S,w]=N.useSlot("transition",{elementType:D,externalForwardedProps:c,ownerState:a});return q.jsx(S,{in:P,timeout:k,...v,...w,children:q.jsx(O,{"aria-hidden":!0,...i,classes:y,ref:r,children:E})})});process.env.NODE_ENV!=="production"&&(U.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,components:e.PropTypes.shape({Root:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({root:e.PropTypes.object}),invisible:e.PropTypes.bool,open:e.PropTypes.bool.isRequired,slotProps:e.PropTypes.shape({root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),transition:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({root:e.PropTypes.elementType,transition:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});exports.Backdrop=U;exports.Fade=D;exports.backdropClasses=J;exports.getBackdropUtilityClass=F;
|