@cgi-learning-hub/ui 1.3.3 → 1.3.4-dev.1733911143
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/Backdrop-DqUdx8FP.cjs +1 -0
- package/dist/Backdrop-ZqzrnV2E.js +360 -0
- package/dist/Box-Be6jhcmK.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DN_2fcm9.js} +9 -9
- package/dist/Button-C6UXybBV.cjs +1 -0
- package/dist/{Button-Bjy0iPNm.js → Button-CL9rFoOY.js} +152 -118
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-CYkLbJ0U.js} +232 -240
- package/dist/ButtonBase-DzK1n18b.cjs +74 -0
- package/dist/Card-DO4cAmNC.js +74 -0
- package/dist/Card-DsmqVSx1.cjs +1 -0
- package/dist/Checkbox-Btg05OjV.cjs +1 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-CLM5GjuC.js} +27 -26
- package/dist/CircularProgress-BfbGcmHT.cjs +28 -0
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-C4xtwh4E.js} +28 -27
- package/dist/DatePicker-BXTOQETi.cjs +14 -0
- package/dist/DatePicker-D9suyaUZ.js +10846 -0
- package/dist/DefaultPropsProvider-DE-Tx_ov.cjs +17 -0
- package/dist/DefaultPropsProvider-DUWovK-8.js +454 -0
- package/dist/Delete-CpADFuIX.cjs +1 -0
- package/dist/Delete-DWXEW4-c.js +8 -0
- package/dist/DialogContent-D_JmqJt6.js +603 -0
- package/dist/DialogContent-gRISmOoj.cjs +1 -0
- package/dist/DialogTitle-CID6RFNo.js +134 -0
- package/dist/DialogTitle-Dhxh1DVb.cjs +1 -0
- package/dist/Divider-BjxxEFnr.cjs +1 -0
- package/dist/Divider-HhF8ckeh.js +296 -0
- package/dist/FormControlLabel-0-cflTuo.js +262 -0
- package/dist/FormControlLabel-C-eZV5Xc.cjs +1 -0
- package/dist/FormGroup-Ck7StJ6i.cjs +1 -0
- package/dist/FormGroup-DIP4u-gv.js +95 -0
- package/dist/FormLabel-Ch103TK-.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-X7FN1eBV.js} +39 -44
- package/dist/Grow-BgMSa0P2.js +193 -0
- package/dist/Grow-D7OAahbU.cjs +1 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-CMwpC2Co.js} +10 -9
- package/dist/IconButton-DbWtCGLB.cjs +2 -0
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-B4hI0-Jz.js} +9 -8
- package/dist/InputAdornment-Cl2OaKlw.cjs +1 -0
- package/dist/InputBase-BuVAuMNp.cjs +3 -0
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-DrofJ7xL.js} +60 -59
- package/dist/Link-AXhb0uJT.cjs +1 -0
- package/dist/Link-Bdupo_fW.js +267 -0
- package/dist/Menu-DR-xtxpt.js +966 -0
- package/dist/Menu-_chQG-Za.cjs +7 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-C_d0Sc_L.js} +69 -74
- package/dist/MenuItem-De6eStq9.cjs +1 -0
- package/dist/Modal-C4Jb6sd1.js +750 -0
- package/dist/Modal-GXSEk85U.cjs +2 -0
- package/dist/Paper-CH4BABUB.cjs +2 -0
- package/dist/Paper-nlWPEgQh.js +185 -0
- package/dist/Popper-CjTplNLW.cjs +4 -0
- package/dist/Popper-CkAj_qw_.js +1407 -0
- package/dist/Portal-BcFwfiTx.js +86 -0
- package/dist/Portal-BruYsISj.cjs +1 -0
- package/dist/Radio-B0v6nDvz.js +313 -0
- package/dist/Radio-BbZnB74m.cjs +1 -0
- package/dist/Select-BFGwwKap.cjs +3 -0
- package/dist/Select-D9fwtA9U.js +2604 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-C1i6_V9e.js} +105 -60
- package/dist/Stack-DMNZvXss.cjs +1 -0
- package/dist/SwitchBase-BpMNk4XV.cjs +1 -0
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DfbwljzN.js} +25 -24
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-DwnLOHOy.js} +2645 -3965
- package/dist/TableSortLabel-lnTBXy-V.cjs +98 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BoFP2RHv.js} +333 -329
- package/dist/Tabs-DEvwJheI.cjs +4 -0
- package/dist/{TextField-C-B529_r.js → TextField-kwhzNVAL.js} +35 -34
- package/dist/TextField-waKWSLD4.cjs +1 -0
- package/dist/Tooltip-CFyOA9CT.cjs +4 -0
- package/dist/Tooltip-tgkiC77d.js +721 -0
- package/dist/Typography-B6KFjCtE.cjs +1 -0
- package/dist/{Typography-C_ESP41L.js → Typography-DWXYj92v.js} +13 -12
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/capitalize-DASFtB-F.cjs +1 -0
- package/dist/capitalize-NmHVRYy8.js +9 -0
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +28 -27
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -22
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.es.js +276 -262
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- 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 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +53 -0
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +379 -0
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +47 -11
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +50 -0
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- package/dist/components/stories/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -0
- package/dist/components/stories/Paper.stories.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- 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 +140 -90
- 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 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CeuAoIMQ.js} +6 -5
- package/dist/createSvgIcon-eUfAcV0x.cjs +1 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CSD96RzX.cjs +1 -0
- package/dist/dividerClasses-DrJ5oIdP.js +9 -0
- package/dist/elementTypeAcceptingRef-Cz_FeG92.cjs +1 -0
- package/dist/elementTypeAcceptingRef-HBfwF2vD.js +23 -0
- package/dist/extendSxProp-Fr1MMO0I.cjs +1 -0
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-NjjUyYdB.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/fr-ChrHtTbj.cjs +1 -0
- package/dist/fr-rmVQsNbI.js +312 -0
- package/dist/{identifier-BqadgaK7.js → generateUtilityClasses--6MLb_cS.js} +990 -956
- package/dist/generateUtilityClasses-DEQ18TAF.cjs +59 -0
- package/dist/{index-BUxqDIr9.js → index-B4GmPutS.js} +6 -5
- package/dist/index-BGCIdIru.js +2152 -0
- package/dist/index-BoQHt8iN.cjs +1 -0
- package/dist/index-CRdsZkOC.cjs +17 -0
- package/dist/index-CmEzEdk2.cjs +5 -0
- package/dist/index-XYfXmNqA.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +276 -262
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-D99chbOP.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-o8RCKrNG.js} +1 -1
- package/dist/mergeSlotProps-DSv3FKLb.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → mergeSlotProps-KHPCviGJ.js} +7 -7
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/useEnhancedEffect-C9MKL5N4.cjs +1 -0
- package/dist/useEnhancedEffect-DlS7O_-p.js +7 -0
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/useSlot-DsW0udy9.cjs +1 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-eWxwpnv1.js} +2 -2
- package/dist/useSlotProps--FPRW1CI.cjs +1 -0
- package/dist/{index-CRT92bm7.js → useSlotProps-C7zjg7t9.js} +26 -26
- package/dist/useTheme-B1YEBlI0.cjs +1 -0
- package/dist/useTheme-BXzyKigM.js +11 -0
- package/dist/{useTheme-oM_SFWy4.js → useTheme-D0ITn2Re.js} +1 -1
- package/dist/useTheme-DFJNv-zn.cjs +1 -0
- package/dist/useThemeProps-BwyYDczI.cjs +1 -0
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-DrCROxdY.js} +2 -2
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-DsDeaP0E.js} +3 -3
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-j-HQOOfB.cjs} +1 -1
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-FkIxJmTC.js} +4 -4
- package/dist/useTimeout-NIA-3R5R.cjs +1 -0
- package/dist/utils-70jLtOQP.js +391 -0
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/utils-DlWHEABQ.cjs +1 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/Box-H49yQEt_.cjs +0 -1
- package/dist/Button-qc45QbX6.cjs +0 -1
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/Checkbox-CuYTY0gd.cjs +0 -1
- package/dist/CircularProgress-BPHINMQw.cjs +0 -28
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- package/dist/DefaultPropsProvider-CaRoy5OV.js +0 -484
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputAdornment-BJfpEQAa.cjs +0 -1
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Stack-CEjx3KHM.cjs +0 -1
- package/dist/SwitchBase-URM3X3YZ.cjs +0 -1
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/TextField-BVAkADOb.cjs +0 -1
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/Typography-5OodZ94T.cjs +0 -1
- package/dist/createSvgIcon-GU7fqNnI.cjs +0 -1
- package/dist/extendSxProp-D11-pC6h.cjs +0 -1
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/fr-B8_MxRl5.js +0 -307
- package/dist/fr-Nvp7C-vS.cjs +0 -1
- package/dist/identifier-BQH88SE0.cjs +0 -59
- package/dist/index-CNv8ppur.cjs +0 -1
- package/dist/index-D7nFYLYq.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/resolveComponentProps-DTv6xPbb.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
- package/dist/useSlot-42jgZftI.cjs +0 -1
- package/dist/useTheme-CtT7O-Wk.js +0 -11
- package/dist/useTheme-cVN-YQNB.cjs +0 -1
- package/dist/useTheme-tZYpFplW.cjs +0 -1
- package/dist/useThemeProps-r0DnR8FJ.cjs +0 -1
- package/dist/useTimeout-DWEGwfTA.cjs +0 -1
|
@@ -1,744 +0,0 @@
|
|
|
1
|
-
import * as O from "react";
|
|
2
|
-
import k from "react";
|
|
3
|
-
import { P as t, I as Y, J as Z, K as tt } from "./identifier-BqadgaK7.js";
|
|
4
|
-
import { u as A } from "./useSlot-Co14PUn6.js";
|
|
5
|
-
import { jsx as q } from "react/jsx-runtime";
|
|
6
|
-
import { s as et, u as nt, c as ot } from "./DefaultPropsProvider-CaRoy5OV.js";
|
|
7
|
-
import { u as it } from "./useTheme-CtT7O-Wk.js";
|
|
8
|
-
import { c as W, u as rt } from "./useForkRef-D-DyzOXj.js";
|
|
9
|
-
import { _ as st, a as at, T as X } from "./TransitionGroupContext-DMJLhY9-.js";
|
|
10
|
-
import P from "react-dom";
|
|
11
|
-
function pt(a) {
|
|
12
|
-
const {
|
|
13
|
-
prototype: s = {}
|
|
14
|
-
} = a;
|
|
15
|
-
return !!s.isReactComponent;
|
|
16
|
-
}
|
|
17
|
-
function $(a, s, r, o, n) {
|
|
18
|
-
const e = a[s], i = n || s;
|
|
19
|
-
if (e == null || // When server-side rendering React doesn't warn either.
|
|
20
|
-
// This is not an accurate check for SSR.
|
|
21
|
-
// This is only in place for Emotion compat.
|
|
22
|
-
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
23
|
-
typeof window > "u")
|
|
24
|
-
return null;
|
|
25
|
-
let p;
|
|
26
|
-
const u = e.type;
|
|
27
|
-
return typeof u == "function" && !pt(u) && (p = "Did you accidentally use a plain function component for an element instead?"), p !== void 0 ? new Error(`Invalid ${o} \`${i}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${p} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
28
|
-
}
|
|
29
|
-
const H = W(t.element, $);
|
|
30
|
-
H.isRequired = W(t.element.isRequired, $);
|
|
31
|
-
function ut(a) {
|
|
32
|
-
var s;
|
|
33
|
-
return parseInt(O.version, 10) >= 19 ? ((s = a == null ? void 0 : a.props) == null ? void 0 : s.ref) || null : (a == null ? void 0 : a.ref) || null;
|
|
34
|
-
}
|
|
35
|
-
const G = {
|
|
36
|
-
disabled: !1
|
|
37
|
-
};
|
|
38
|
-
var ct = process.env.NODE_ENV !== "production" ? t.oneOfType([t.number, t.shape({
|
|
39
|
-
enter: t.number,
|
|
40
|
-
exit: t.number,
|
|
41
|
-
appear: t.number
|
|
42
|
-
}).isRequired]) : null, kt = process.env.NODE_ENV !== "production" ? t.oneOfType([t.string, t.shape({
|
|
43
|
-
enter: t.string,
|
|
44
|
-
exit: t.string,
|
|
45
|
-
active: t.string
|
|
46
|
-
}), t.shape({
|
|
47
|
-
enter: t.string,
|
|
48
|
-
enterDone: t.string,
|
|
49
|
-
enterActive: t.string,
|
|
50
|
-
exit: t.string,
|
|
51
|
-
exitDone: t.string,
|
|
52
|
-
exitActive: t.string
|
|
53
|
-
})]) : null, lt = function(s) {
|
|
54
|
-
return s.scrollTop;
|
|
55
|
-
}, S = "unmounted", v = "exited", b = "entering", R = "entered", F = "exiting", m = /* @__PURE__ */ function(a) {
|
|
56
|
-
st(s, a);
|
|
57
|
-
function s(o, n) {
|
|
58
|
-
var e;
|
|
59
|
-
e = a.call(this, o, n) || this;
|
|
60
|
-
var i = n, p = i && !i.isMounting ? o.enter : o.appear, u;
|
|
61
|
-
return e.appearStatus = null, o.in ? p ? (u = v, e.appearStatus = b) : u = R : o.unmountOnExit || o.mountOnEnter ? u = S : u = v, e.state = {
|
|
62
|
-
status: u
|
|
63
|
-
}, e.nextCallback = null, e;
|
|
64
|
-
}
|
|
65
|
-
s.getDerivedStateFromProps = function(n, e) {
|
|
66
|
-
var i = n.in;
|
|
67
|
-
return i && e.status === S ? {
|
|
68
|
-
status: v
|
|
69
|
-
} : null;
|
|
70
|
-
};
|
|
71
|
-
var r = s.prototype;
|
|
72
|
-
return r.componentDidMount = function() {
|
|
73
|
-
this.updateStatus(!0, this.appearStatus);
|
|
74
|
-
}, r.componentDidUpdate = function(n) {
|
|
75
|
-
var e = null;
|
|
76
|
-
if (n !== this.props) {
|
|
77
|
-
var i = this.state.status;
|
|
78
|
-
this.props.in ? i !== b && i !== R && (e = b) : (i === b || i === R) && (e = F);
|
|
79
|
-
}
|
|
80
|
-
this.updateStatus(!1, e);
|
|
81
|
-
}, r.componentWillUnmount = function() {
|
|
82
|
-
this.cancelNextCallback();
|
|
83
|
-
}, r.getTimeouts = function() {
|
|
84
|
-
var n = this.props.timeout, e, i, p;
|
|
85
|
-
return e = i = p = n, n != null && typeof n != "number" && (e = n.exit, i = n.enter, p = n.appear !== void 0 ? n.appear : i), {
|
|
86
|
-
exit: e,
|
|
87
|
-
enter: i,
|
|
88
|
-
appear: p
|
|
89
|
-
};
|
|
90
|
-
}, r.updateStatus = function(n, e) {
|
|
91
|
-
if (n === void 0 && (n = !1), e !== null)
|
|
92
|
-
if (this.cancelNextCallback(), e === b) {
|
|
93
|
-
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
94
|
-
var i = this.props.nodeRef ? this.props.nodeRef.current : P.findDOMNode(this);
|
|
95
|
-
i && lt(i);
|
|
96
|
-
}
|
|
97
|
-
this.performEnter(n);
|
|
98
|
-
} else
|
|
99
|
-
this.performExit();
|
|
100
|
-
else this.props.unmountOnExit && this.state.status === v && this.setState({
|
|
101
|
-
status: S
|
|
102
|
-
});
|
|
103
|
-
}, r.performEnter = function(n) {
|
|
104
|
-
var e = this, i = this.props.enter, p = this.context ? this.context.isMounting : n, u = this.props.nodeRef ? [p] : [P.findDOMNode(this), p], l = u[0], d = u[1], g = this.getTimeouts(), C = p ? g.appear : g.enter;
|
|
105
|
-
if (!n && !i || G.disabled) {
|
|
106
|
-
this.safeSetState({
|
|
107
|
-
status: R
|
|
108
|
-
}, function() {
|
|
109
|
-
e.props.onEntered(l);
|
|
110
|
-
});
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
this.props.onEnter(l, d), this.safeSetState({
|
|
114
|
-
status: b
|
|
115
|
-
}, function() {
|
|
116
|
-
e.props.onEntering(l, d), e.onTransitionEnd(C, function() {
|
|
117
|
-
e.safeSetState({
|
|
118
|
-
status: R
|
|
119
|
-
}, function() {
|
|
120
|
-
e.props.onEntered(l, d);
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
});
|
|
124
|
-
}, r.performExit = function() {
|
|
125
|
-
var n = this, e = this.props.exit, i = this.getTimeouts(), p = this.props.nodeRef ? void 0 : P.findDOMNode(this);
|
|
126
|
-
if (!e || G.disabled) {
|
|
127
|
-
this.safeSetState({
|
|
128
|
-
status: v
|
|
129
|
-
}, function() {
|
|
130
|
-
n.props.onExited(p);
|
|
131
|
-
});
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
this.props.onExit(p), this.safeSetState({
|
|
135
|
-
status: F
|
|
136
|
-
}, function() {
|
|
137
|
-
n.props.onExiting(p), n.onTransitionEnd(i.exit, function() {
|
|
138
|
-
n.safeSetState({
|
|
139
|
-
status: v
|
|
140
|
-
}, function() {
|
|
141
|
-
n.props.onExited(p);
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
}, r.cancelNextCallback = function() {
|
|
146
|
-
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
147
|
-
}, r.safeSetState = function(n, e) {
|
|
148
|
-
e = this.setNextCallback(e), this.setState(n, e);
|
|
149
|
-
}, r.setNextCallback = function(n) {
|
|
150
|
-
var e = this, i = !0;
|
|
151
|
-
return this.nextCallback = function(p) {
|
|
152
|
-
i && (i = !1, e.nextCallback = null, n(p));
|
|
153
|
-
}, this.nextCallback.cancel = function() {
|
|
154
|
-
i = !1;
|
|
155
|
-
}, this.nextCallback;
|
|
156
|
-
}, r.onTransitionEnd = function(n, e) {
|
|
157
|
-
this.setNextCallback(e);
|
|
158
|
-
var i = this.props.nodeRef ? this.props.nodeRef.current : P.findDOMNode(this), p = n == null && !this.props.addEndListener;
|
|
159
|
-
if (!i || p) {
|
|
160
|
-
setTimeout(this.nextCallback, 0);
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
if (this.props.addEndListener) {
|
|
164
|
-
var u = this.props.nodeRef ? [this.nextCallback] : [i, this.nextCallback], l = u[0], d = u[1];
|
|
165
|
-
this.props.addEndListener(l, d);
|
|
166
|
-
}
|
|
167
|
-
n != null && setTimeout(this.nextCallback, n);
|
|
168
|
-
}, r.render = function() {
|
|
169
|
-
var n = this.state.status;
|
|
170
|
-
if (n === S)
|
|
171
|
-
return null;
|
|
172
|
-
var e = this.props, i = e.children;
|
|
173
|
-
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;
|
|
174
|
-
var p = at(e, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
175
|
-
return (
|
|
176
|
-
// allows for nested Transitions
|
|
177
|
-
/* @__PURE__ */ k.createElement(X.Provider, {
|
|
178
|
-
value: null
|
|
179
|
-
}, typeof i == "function" ? i(n, p) : k.cloneElement(k.Children.only(i), p))
|
|
180
|
-
);
|
|
181
|
-
}, s;
|
|
182
|
-
}(k.Component);
|
|
183
|
-
m.contextType = X;
|
|
184
|
-
m.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
185
|
-
/**
|
|
186
|
-
* A React reference to DOM element that need to transition:
|
|
187
|
-
* https://stackoverflow.com/a/51127130/4671932
|
|
188
|
-
*
|
|
189
|
-
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
190
|
-
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
191
|
-
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
192
|
-
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
193
|
-
* (see
|
|
194
|
-
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
195
|
-
*/
|
|
196
|
-
nodeRef: t.shape({
|
|
197
|
-
current: typeof Element > "u" ? t.any : function(a, s, r, o, n, e) {
|
|
198
|
-
var i = a[s];
|
|
199
|
-
return t.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(a, s, r, o, n, e);
|
|
200
|
-
}
|
|
201
|
-
}),
|
|
202
|
-
/**
|
|
203
|
-
* A `function` child can be used instead of a React element. This function is
|
|
204
|
-
* called with the current transition status (`'entering'`, `'entered'`,
|
|
205
|
-
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
206
|
-
* specific props to a component.
|
|
207
|
-
*
|
|
208
|
-
* ```jsx
|
|
209
|
-
* <Transition in={this.state.in} timeout={150}>
|
|
210
|
-
* {state => (
|
|
211
|
-
* <MyComponent className={`fade fade-${state}`} />
|
|
212
|
-
* )}
|
|
213
|
-
* </Transition>
|
|
214
|
-
* ```
|
|
215
|
-
*/
|
|
216
|
-
children: t.oneOfType([t.func.isRequired, t.element.isRequired]).isRequired,
|
|
217
|
-
/**
|
|
218
|
-
* Show the component; triggers the enter or exit states
|
|
219
|
-
*/
|
|
220
|
-
in: t.bool,
|
|
221
|
-
/**
|
|
222
|
-
* By default the child component is mounted immediately along with
|
|
223
|
-
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
224
|
-
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
225
|
-
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
226
|
-
*/
|
|
227
|
-
mountOnEnter: t.bool,
|
|
228
|
-
/**
|
|
229
|
-
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
230
|
-
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
231
|
-
*/
|
|
232
|
-
unmountOnExit: t.bool,
|
|
233
|
-
/**
|
|
234
|
-
* By default the child component does not perform the enter transition when
|
|
235
|
-
* it first mounts, regardless of the value of `in`. If you want this
|
|
236
|
-
* behavior, set both `appear` and `in` to `true`.
|
|
237
|
-
*
|
|
238
|
-
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
239
|
-
* > only adds an additional enter transition. However, in the
|
|
240
|
-
* > `<CSSTransition>` component that first enter transition does result in
|
|
241
|
-
* > additional `.appear-*` classes, that way you can choose to style it
|
|
242
|
-
* > differently.
|
|
243
|
-
*/
|
|
244
|
-
appear: t.bool,
|
|
245
|
-
/**
|
|
246
|
-
* Enable or disable enter transitions.
|
|
247
|
-
*/
|
|
248
|
-
enter: t.bool,
|
|
249
|
-
/**
|
|
250
|
-
* Enable or disable exit transitions.
|
|
251
|
-
*/
|
|
252
|
-
exit: t.bool,
|
|
253
|
-
/**
|
|
254
|
-
* The duration of the transition, in milliseconds.
|
|
255
|
-
* Required unless `addEndListener` is provided.
|
|
256
|
-
*
|
|
257
|
-
* You may specify a single timeout for all transitions:
|
|
258
|
-
*
|
|
259
|
-
* ```jsx
|
|
260
|
-
* timeout={500}
|
|
261
|
-
* ```
|
|
262
|
-
*
|
|
263
|
-
* or individually:
|
|
264
|
-
*
|
|
265
|
-
* ```jsx
|
|
266
|
-
* timeout={{
|
|
267
|
-
* appear: 500,
|
|
268
|
-
* enter: 300,
|
|
269
|
-
* exit: 500,
|
|
270
|
-
* }}
|
|
271
|
-
* ```
|
|
272
|
-
*
|
|
273
|
-
* - `appear` defaults to the value of `enter`
|
|
274
|
-
* - `enter` defaults to `0`
|
|
275
|
-
* - `exit` defaults to `0`
|
|
276
|
-
*
|
|
277
|
-
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
278
|
-
*/
|
|
279
|
-
timeout: function(s) {
|
|
280
|
-
var r = ct;
|
|
281
|
-
s.addEndListener || (r = r.isRequired);
|
|
282
|
-
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), e = 1; e < o; e++)
|
|
283
|
-
n[e - 1] = arguments[e];
|
|
284
|
-
return r.apply(void 0, [s].concat(n));
|
|
285
|
-
},
|
|
286
|
-
/**
|
|
287
|
-
* Add a custom transition end trigger. Called with the transitioning
|
|
288
|
-
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
289
|
-
* logic. Timeouts are still used as a fallback if provided.
|
|
290
|
-
*
|
|
291
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
292
|
-
*
|
|
293
|
-
* ```jsx
|
|
294
|
-
* addEndListener={(node, done) => {
|
|
295
|
-
* // use the css transitionend event to mark the finish of a transition
|
|
296
|
-
* node.addEventListener('transitionend', done, false);
|
|
297
|
-
* }}
|
|
298
|
-
* ```
|
|
299
|
-
*/
|
|
300
|
-
addEndListener: t.func,
|
|
301
|
-
/**
|
|
302
|
-
* Callback fired before the "entering" status is applied. An extra parameter
|
|
303
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
304
|
-
*
|
|
305
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
306
|
-
*
|
|
307
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
308
|
-
*/
|
|
309
|
-
onEnter: t.func,
|
|
310
|
-
/**
|
|
311
|
-
* Callback fired after the "entering" status is applied. An extra parameter
|
|
312
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
313
|
-
*
|
|
314
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
315
|
-
*
|
|
316
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
317
|
-
*/
|
|
318
|
-
onEntering: t.func,
|
|
319
|
-
/**
|
|
320
|
-
* Callback fired after the "entered" status is applied. An extra parameter
|
|
321
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
322
|
-
*
|
|
323
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
324
|
-
*
|
|
325
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
326
|
-
*/
|
|
327
|
-
onEntered: t.func,
|
|
328
|
-
/**
|
|
329
|
-
* Callback fired before the "exiting" status is applied.
|
|
330
|
-
*
|
|
331
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
332
|
-
*
|
|
333
|
-
* @type Function(node: HtmlElement) -> void
|
|
334
|
-
*/
|
|
335
|
-
onExit: t.func,
|
|
336
|
-
/**
|
|
337
|
-
* Callback fired after the "exiting" status is applied.
|
|
338
|
-
*
|
|
339
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
340
|
-
*
|
|
341
|
-
* @type Function(node: HtmlElement) -> void
|
|
342
|
-
*/
|
|
343
|
-
onExiting: t.func,
|
|
344
|
-
/**
|
|
345
|
-
* Callback fired after the "exited" status is applied.
|
|
346
|
-
*
|
|
347
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
348
|
-
*
|
|
349
|
-
* @type Function(node: HtmlElement) -> void
|
|
350
|
-
*/
|
|
351
|
-
onExited: t.func
|
|
352
|
-
} : {};
|
|
353
|
-
function T() {
|
|
354
|
-
}
|
|
355
|
-
m.defaultProps = {
|
|
356
|
-
in: !1,
|
|
357
|
-
mountOnEnter: !1,
|
|
358
|
-
unmountOnExit: !1,
|
|
359
|
-
appear: !1,
|
|
360
|
-
enter: !0,
|
|
361
|
-
exit: !0,
|
|
362
|
-
onEnter: T,
|
|
363
|
-
onEntering: T,
|
|
364
|
-
onEntered: T,
|
|
365
|
-
onExit: T,
|
|
366
|
-
onExiting: T,
|
|
367
|
-
onExited: T
|
|
368
|
-
};
|
|
369
|
-
m.UNMOUNTED = S;
|
|
370
|
-
m.EXITED = v;
|
|
371
|
-
m.ENTERING = b;
|
|
372
|
-
m.ENTERED = R;
|
|
373
|
-
m.EXITING = F;
|
|
374
|
-
const dt = (a) => a.scrollTop;
|
|
375
|
-
function V(a, s) {
|
|
376
|
-
const {
|
|
377
|
-
timeout: r,
|
|
378
|
-
easing: o,
|
|
379
|
-
style: n = {}
|
|
380
|
-
} = a;
|
|
381
|
-
return {
|
|
382
|
-
duration: n.transitionDuration ?? (typeof r == "number" ? r : r[s.mode] || 0),
|
|
383
|
-
easing: n.transitionTimingFunction ?? (typeof o == "object" ? o[s.mode] : o),
|
|
384
|
-
delay: n.transitionDelay
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
const ft = {
|
|
388
|
-
entering: {
|
|
389
|
-
opacity: 1
|
|
390
|
-
},
|
|
391
|
-
entered: {
|
|
392
|
-
opacity: 1
|
|
393
|
-
}
|
|
394
|
-
}, z = /* @__PURE__ */ O.forwardRef(function(s, r) {
|
|
395
|
-
const o = it(), n = {
|
|
396
|
-
enter: o.transitions.duration.enteringScreen,
|
|
397
|
-
exit: o.transitions.duration.leavingScreen
|
|
398
|
-
}, {
|
|
399
|
-
addEndListener: e,
|
|
400
|
-
appear: i = !0,
|
|
401
|
-
children: p,
|
|
402
|
-
easing: u,
|
|
403
|
-
in: l,
|
|
404
|
-
onEnter: d,
|
|
405
|
-
onEntered: g,
|
|
406
|
-
onEntering: C,
|
|
407
|
-
onExit: D,
|
|
408
|
-
onExited: w,
|
|
409
|
-
onExiting: L,
|
|
410
|
-
style: h,
|
|
411
|
-
timeout: y = n,
|
|
412
|
-
// eslint-disable-next-line react/prop-types
|
|
413
|
-
TransitionComponent: M = m,
|
|
414
|
-
...I
|
|
415
|
-
} = s, x = O.useRef(null), U = rt(x, ut(p), r), E = (c) => (f) => {
|
|
416
|
-
if (c) {
|
|
417
|
-
const N = x.current;
|
|
418
|
-
f === void 0 ? c(N) : c(N, f);
|
|
419
|
-
}
|
|
420
|
-
}, _ = E(C), j = E((c, f) => {
|
|
421
|
-
dt(c);
|
|
422
|
-
const N = V({
|
|
423
|
-
style: h,
|
|
424
|
-
timeout: y,
|
|
425
|
-
easing: u
|
|
426
|
-
}, {
|
|
427
|
-
mode: "enter"
|
|
428
|
-
});
|
|
429
|
-
c.style.webkitTransition = o.transitions.create("opacity", N), c.style.transition = o.transitions.create("opacity", N), d && d(c, f);
|
|
430
|
-
}), B = E(g), J = E(L), K = E((c) => {
|
|
431
|
-
const f = V({
|
|
432
|
-
style: h,
|
|
433
|
-
timeout: y,
|
|
434
|
-
easing: u
|
|
435
|
-
}, {
|
|
436
|
-
mode: "exit"
|
|
437
|
-
});
|
|
438
|
-
c.style.webkitTransition = o.transitions.create("opacity", f), c.style.transition = o.transitions.create("opacity", f), D && D(c);
|
|
439
|
-
}), Q = E(w);
|
|
440
|
-
return /* @__PURE__ */ q(M, {
|
|
441
|
-
appear: i,
|
|
442
|
-
in: l,
|
|
443
|
-
nodeRef: x,
|
|
444
|
-
onEnter: j,
|
|
445
|
-
onEntered: B,
|
|
446
|
-
onEntering: _,
|
|
447
|
-
onExit: K,
|
|
448
|
-
onExited: Q,
|
|
449
|
-
onExiting: J,
|
|
450
|
-
addEndListener: (c) => {
|
|
451
|
-
e && e(x.current, c);
|
|
452
|
-
},
|
|
453
|
-
timeout: y,
|
|
454
|
-
...I,
|
|
455
|
-
children: (c, f) => /* @__PURE__ */ O.cloneElement(p, {
|
|
456
|
-
style: {
|
|
457
|
-
opacity: 0,
|
|
458
|
-
visibility: c === "exited" && !l ? "hidden" : void 0,
|
|
459
|
-
...ft[c],
|
|
460
|
-
...h,
|
|
461
|
-
...p.props.style
|
|
462
|
-
},
|
|
463
|
-
ref: U,
|
|
464
|
-
...f
|
|
465
|
-
})
|
|
466
|
-
});
|
|
467
|
-
});
|
|
468
|
-
process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
469
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
470
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
471
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
472
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
473
|
-
/**
|
|
474
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
475
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
476
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
477
|
-
*/
|
|
478
|
-
addEndListener: t.func,
|
|
479
|
-
/**
|
|
480
|
-
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
481
|
-
* Set this to `false` to disable this behavior.
|
|
482
|
-
* @default true
|
|
483
|
-
*/
|
|
484
|
-
appear: t.bool,
|
|
485
|
-
/**
|
|
486
|
-
* A single child content element.
|
|
487
|
-
*/
|
|
488
|
-
children: H.isRequired,
|
|
489
|
-
/**
|
|
490
|
-
* The transition timing function.
|
|
491
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
492
|
-
*/
|
|
493
|
-
easing: t.oneOfType([t.shape({
|
|
494
|
-
enter: t.string,
|
|
495
|
-
exit: t.string
|
|
496
|
-
}), t.string]),
|
|
497
|
-
/**
|
|
498
|
-
* If `true`, the component will transition in.
|
|
499
|
-
*/
|
|
500
|
-
in: t.bool,
|
|
501
|
-
/**
|
|
502
|
-
* @ignore
|
|
503
|
-
*/
|
|
504
|
-
onEnter: t.func,
|
|
505
|
-
/**
|
|
506
|
-
* @ignore
|
|
507
|
-
*/
|
|
508
|
-
onEntered: t.func,
|
|
509
|
-
/**
|
|
510
|
-
* @ignore
|
|
511
|
-
*/
|
|
512
|
-
onEntering: t.func,
|
|
513
|
-
/**
|
|
514
|
-
* @ignore
|
|
515
|
-
*/
|
|
516
|
-
onExit: t.func,
|
|
517
|
-
/**
|
|
518
|
-
* @ignore
|
|
519
|
-
*/
|
|
520
|
-
onExited: t.func,
|
|
521
|
-
/**
|
|
522
|
-
* @ignore
|
|
523
|
-
*/
|
|
524
|
-
onExiting: t.func,
|
|
525
|
-
/**
|
|
526
|
-
* @ignore
|
|
527
|
-
*/
|
|
528
|
-
style: t.object,
|
|
529
|
-
/**
|
|
530
|
-
* The duration for the transition, in milliseconds.
|
|
531
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
532
|
-
* @default {
|
|
533
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
534
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
535
|
-
* }
|
|
536
|
-
*/
|
|
537
|
-
timeout: t.oneOfType([t.number, t.shape({
|
|
538
|
-
appear: t.number,
|
|
539
|
-
enter: t.number,
|
|
540
|
-
exit: t.number
|
|
541
|
-
})])
|
|
542
|
-
});
|
|
543
|
-
function mt(a) {
|
|
544
|
-
return Y("MuiBackdrop", a);
|
|
545
|
-
}
|
|
546
|
-
const Pt = Z("MuiBackdrop", ["root", "invisible"]), Et = (a) => {
|
|
547
|
-
const {
|
|
548
|
-
ownerState: s,
|
|
549
|
-
...r
|
|
550
|
-
} = a;
|
|
551
|
-
return r;
|
|
552
|
-
}, ht = (a) => {
|
|
553
|
-
const {
|
|
554
|
-
classes: s,
|
|
555
|
-
invisible: r
|
|
556
|
-
} = a;
|
|
557
|
-
return ot({
|
|
558
|
-
root: ["root", r && "invisible"]
|
|
559
|
-
}, mt, s);
|
|
560
|
-
}, xt = et("div", {
|
|
561
|
-
name: "MuiBackdrop",
|
|
562
|
-
slot: "Root",
|
|
563
|
-
overridesResolver: (a, s) => {
|
|
564
|
-
const {
|
|
565
|
-
ownerState: r
|
|
566
|
-
} = a;
|
|
567
|
-
return [s.root, r.invisible && s.invisible];
|
|
568
|
-
}
|
|
569
|
-
})({
|
|
570
|
-
position: "fixed",
|
|
571
|
-
display: "flex",
|
|
572
|
-
alignItems: "center",
|
|
573
|
-
justifyContent: "center",
|
|
574
|
-
right: 0,
|
|
575
|
-
bottom: 0,
|
|
576
|
-
top: 0,
|
|
577
|
-
left: 0,
|
|
578
|
-
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
579
|
-
WebkitTapHighlightColor: "transparent",
|
|
580
|
-
variants: [{
|
|
581
|
-
props: {
|
|
582
|
-
invisible: !0
|
|
583
|
-
},
|
|
584
|
-
style: {
|
|
585
|
-
backgroundColor: "transparent"
|
|
586
|
-
}
|
|
587
|
-
}]
|
|
588
|
-
}), vt = /* @__PURE__ */ O.forwardRef(function(s, r) {
|
|
589
|
-
const o = nt({
|
|
590
|
-
props: s,
|
|
591
|
-
name: "MuiBackdrop"
|
|
592
|
-
}), {
|
|
593
|
-
children: n,
|
|
594
|
-
className: e,
|
|
595
|
-
component: i = "div",
|
|
596
|
-
invisible: p = !1,
|
|
597
|
-
open: u,
|
|
598
|
-
components: l = {},
|
|
599
|
-
componentsProps: d = {},
|
|
600
|
-
slotProps: g = {},
|
|
601
|
-
slots: C = {},
|
|
602
|
-
TransitionComponent: D,
|
|
603
|
-
transitionDuration: w,
|
|
604
|
-
...L
|
|
605
|
-
} = o, h = {
|
|
606
|
-
...o,
|
|
607
|
-
component: i,
|
|
608
|
-
invisible: p
|
|
609
|
-
}, y = ht(h), M = {
|
|
610
|
-
transition: D,
|
|
611
|
-
root: l.Root,
|
|
612
|
-
...C
|
|
613
|
-
}, I = {
|
|
614
|
-
...d,
|
|
615
|
-
...g
|
|
616
|
-
}, x = {
|
|
617
|
-
slots: M,
|
|
618
|
-
slotProps: I
|
|
619
|
-
}, [U, E] = A("root", {
|
|
620
|
-
elementType: xt,
|
|
621
|
-
externalForwardedProps: x,
|
|
622
|
-
className: tt(y.root, e),
|
|
623
|
-
ownerState: h
|
|
624
|
-
}), [_, j] = A("transition", {
|
|
625
|
-
elementType: z,
|
|
626
|
-
externalForwardedProps: x,
|
|
627
|
-
ownerState: h
|
|
628
|
-
}), B = Et(j);
|
|
629
|
-
return /* @__PURE__ */ q(_, {
|
|
630
|
-
in: u,
|
|
631
|
-
timeout: w,
|
|
632
|
-
...L,
|
|
633
|
-
...B,
|
|
634
|
-
children: /* @__PURE__ */ q(U, {
|
|
635
|
-
"aria-hidden": !0,
|
|
636
|
-
...E,
|
|
637
|
-
classes: y,
|
|
638
|
-
ref: r,
|
|
639
|
-
children: n
|
|
640
|
-
})
|
|
641
|
-
});
|
|
642
|
-
});
|
|
643
|
-
process.env.NODE_ENV !== "production" && (vt.propTypes = {
|
|
644
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
645
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
646
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
647
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
648
|
-
/**
|
|
649
|
-
* The content of the component.
|
|
650
|
-
*/
|
|
651
|
-
children: t.node,
|
|
652
|
-
/**
|
|
653
|
-
* Override or extend the styles applied to the component.
|
|
654
|
-
*/
|
|
655
|
-
classes: t.object,
|
|
656
|
-
/**
|
|
657
|
-
* @ignore
|
|
658
|
-
*/
|
|
659
|
-
className: t.string,
|
|
660
|
-
/**
|
|
661
|
-
* The component used for the root node.
|
|
662
|
-
* Either a string to use a HTML element or a component.
|
|
663
|
-
*/
|
|
664
|
-
component: t.elementType,
|
|
665
|
-
/**
|
|
666
|
-
* The components used for each slot inside.
|
|
667
|
-
*
|
|
668
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
669
|
-
*
|
|
670
|
-
* @default {}
|
|
671
|
-
*/
|
|
672
|
-
components: t.shape({
|
|
673
|
-
Root: t.elementType
|
|
674
|
-
}),
|
|
675
|
-
/**
|
|
676
|
-
* The extra props for the slot components.
|
|
677
|
-
* You can override the existing props or add new ones.
|
|
678
|
-
*
|
|
679
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
680
|
-
*
|
|
681
|
-
* @default {}
|
|
682
|
-
*/
|
|
683
|
-
componentsProps: t.shape({
|
|
684
|
-
root: t.object
|
|
685
|
-
}),
|
|
686
|
-
/**
|
|
687
|
-
* If `true`, the backdrop is invisible.
|
|
688
|
-
* It can be used when rendering a popover or a custom select component.
|
|
689
|
-
* @default false
|
|
690
|
-
*/
|
|
691
|
-
invisible: t.bool,
|
|
692
|
-
/**
|
|
693
|
-
* If `true`, the component is shown.
|
|
694
|
-
*/
|
|
695
|
-
open: t.bool.isRequired,
|
|
696
|
-
/**
|
|
697
|
-
* The props used for each slot inside.
|
|
698
|
-
* @default {}
|
|
699
|
-
*/
|
|
700
|
-
slotProps: t.shape({
|
|
701
|
-
root: t.oneOfType([t.func, t.object]),
|
|
702
|
-
transition: t.oneOfType([t.func, t.object])
|
|
703
|
-
}),
|
|
704
|
-
/**
|
|
705
|
-
* The components used for each slot inside.
|
|
706
|
-
* @default {}
|
|
707
|
-
*/
|
|
708
|
-
slots: t.shape({
|
|
709
|
-
root: t.elementType,
|
|
710
|
-
transition: t.elementType
|
|
711
|
-
}),
|
|
712
|
-
/**
|
|
713
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
714
|
-
*/
|
|
715
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
716
|
-
/**
|
|
717
|
-
* The component used for the transition.
|
|
718
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
719
|
-
* @default Fade
|
|
720
|
-
*/
|
|
721
|
-
TransitionComponent: t.elementType,
|
|
722
|
-
/**
|
|
723
|
-
* The duration for the transition, in milliseconds.
|
|
724
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
725
|
-
*/
|
|
726
|
-
transitionDuration: t.oneOfType([t.number, t.shape({
|
|
727
|
-
appear: t.number,
|
|
728
|
-
enter: t.number,
|
|
729
|
-
exit: t.number
|
|
730
|
-
})])
|
|
731
|
-
});
|
|
732
|
-
export {
|
|
733
|
-
vt as B,
|
|
734
|
-
z as F,
|
|
735
|
-
m as T,
|
|
736
|
-
ut as a,
|
|
737
|
-
Pt as b,
|
|
738
|
-
V as c,
|
|
739
|
-
kt as d,
|
|
740
|
-
H as e,
|
|
741
|
-
lt as f,
|
|
742
|
-
mt as g,
|
|
743
|
-
dt as r
|
|
744
|
-
};
|