@cgi-learning-hub/ui 1.2.0-dev.1730801938 → 1.2.0-dev.1730814068
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-NYR-wJpx.js → Backdrop-CxHwPsCX.js} +313 -312
- package/dist/Backdrop-ZCTs-Ws8.cjs +1 -0
- package/dist/Box-D61CmHcZ.cjs +1 -0
- package/dist/{Box-BOwB0WGP.js → Box-a6v7fn61.js} +3 -3
- package/dist/{Button-DOz72eRZ.js → Button-B8Vr_qVd.js} +72 -76
- package/dist/Button-elp97nQ8.cjs +1 -0
- package/dist/ButtonBase-S0mFlojL.cjs +75 -0
- package/dist/{ButtonBase-Cc4QJr0W.js → ButtonBase-Y5TK5SRu.js} +140 -141
- package/dist/CircularProgress-DDIZxeFH.cjs +28 -0
- package/dist/{CircularProgress-CQAqrfVo.js → CircularProgress-DU3DJQfF.js} +60 -59
- package/dist/{DatePicker-DLbJ-Y35.js → DatePicker-CALU8PZA.js} +5492 -5523
- package/dist/DatePicker-Dxu_4hra.cjs +17 -0
- package/dist/{DefaultPropsProvider-3gIWHkeE.js → DefaultPropsProvider-7QnSWHxy.js} +47 -46
- package/dist/DefaultPropsProvider-eEVEiLDf.cjs +17 -0
- package/dist/{IconButton-DQ115lN0.js → IconButton-C7H_G1LX.js} +60 -70
- package/dist/IconButton-DfmbM9nO.cjs +2 -0
- package/dist/{InputAdornment-CQEOPpj_.cjs → InputAdornment-C-EbfNtT.cjs} +1 -1
- package/dist/{InputAdornment-C91s059c.js → InputAdornment-CPJFY_m_.js} +5 -5
- package/dist/{InputBase-BqiRpsZm.js → InputBase-5GB2c2J6.js} +76 -77
- package/dist/InputBase-CPtGhJye.cjs +3 -0
- package/dist/Stack-656bqKiW.cjs +1 -0
- package/dist/{Stack-CRf_NOj5.js → Stack-CutIWKkG.js} +13 -13
- package/dist/{Tabs-ClaQRksF.js → Tabs-CKic46Op.js} +13 -14
- package/dist/Tabs-DzrxYlm-.cjs +4 -0
- package/dist/TextField-CnyxYYzR.cjs +14 -0
- package/dist/{TextField-poQmKhLJ.js → TextField-DjQM2ffb.js} +1457 -1415
- package/dist/Tooltip-DmCabXFN.cjs +100 -0
- package/dist/{Tooltip-h4eHRca2.js → Tooltip-kMJPjug-.js} +1422 -1404
- package/dist/Typography-CreZW2v6.cjs +1 -0
- package/dist/{Typography-Brk7us7e.js → Typography-DsJC595c.js} +38 -37
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.stories.cjs.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -0
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/{DefaultButton-xBiX39mb.js → components/Button/Button.es.js} +90 -110
- package/dist/components/Button/Button.stories.cjs.js +1 -0
- package/dist/components/{PrimaryButton/PrimaryButton.stories.d.ts → Button/Button.stories.d.ts} +3 -1
- package/dist/components/Button/Button.stories.es.js +45 -0
- package/dist/components/Button/index.cjs.js +1 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.es.js +4 -0
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.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/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +1675 -679
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -1
- 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 -33
- package/dist/components/Heading/Heading.cjs.js +1 -0
- package/dist/components/{PaperHeader/PaperHeader.d.ts → Heading/Heading.d.ts} +3 -3
- package/dist/components/{PaperHeader/PaperHeader.es.js → Heading/Heading.es.js} +15 -15
- package/dist/components/Heading/Heading.stories.cjs.js +1 -0
- package/dist/components/Heading/Heading.stories.es.js +22 -0
- package/dist/components/Heading/index.cjs.js +1 -0
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/index.es.js +4 -0
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +11 -17
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/Loader/Loader.stories.cjs.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 +5 -5
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.es.js +11 -12
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +2 -8
- package/dist/components/index.es.js +174 -185
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
- package/dist/{createSvgIcon-CWZXMIY6.js → createSvgIcon-Ae1vF9Lv.js} +3 -3
- package/dist/{createSvgIcon-BHNwYp0k.cjs → createSvgIcon-PXjVOXDY.cjs} +1 -1
- package/dist/{extendSxProp-Cr6SqfyU.js → extendSxProp-BzTGWWcy.js} +1 -1
- package/dist/{extendSxProp-h_vH_Efx.cjs → extendSxProp-DLhbnNxc.cjs} +1 -1
- package/dist/{fr-CrUmNQ8y.js → fr-B0c4Eu-I.js} +1 -1
- package/dist/{fr-Dh4vpkIL.cjs → fr-BtINyNRC.cjs} +1 -1
- package/dist/identifier-B_IiMbpZ.cjs +59 -0
- package/dist/{identifier-vL3mZxtO.js → identifier-Bu3vgTzE.js} +1041 -1053
- package/dist/{index-DJfvQgvG.cjs → index-BDy6VH40.cjs} +1 -1
- package/dist/{index-PJSlkMUh.js → index-D4YvqRSh.js} +3 -3
- package/dist/{index-CrWaTytV.js → index-DNmEgr4X.js} +4 -4
- package/dist/index-Dl4BXU0b.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +174 -185
- package/dist/memoTheme-C4_nd-x4.js +15 -0
- package/dist/memoTheme-DvW891YJ.cjs +1 -0
- package/dist/refType-DYRsy3ld.cjs +1 -0
- package/dist/{refType-CslmN23s.js → refType-DvOnKTmB.js} +12 -9
- package/dist/useForkRef-D-DyzOXj.js +21 -0
- package/dist/useForkRef-D81w5oMb.cjs +1 -0
- package/dist/{useTheme-Cs6W-67J.js → useTheme-B_3HWqyi.js} +3 -3
- package/dist/{useTheme-Cy30-54x.cjs → useTheme-BvsnROiB.cjs} +1 -1
- package/dist/{useTheme-BZN9T64v.js → useTheme-DhYab2-0.js} +1 -1
- package/dist/{useTheme-BcsinTgi.cjs → useTheme-vN32oV1t.cjs} +1 -1
- package/dist/useThemeProps-5hp2m3Xl.cjs +1 -0
- package/dist/useThemeProps-Bmkt_XOR.js +27 -0
- package/dist/useThemeProps-D_gKWuk1.cjs +1 -0
- package/dist/useThemeProps-DftpgVZ0.js +24 -0
- package/dist/useTimeout-Bx22KOcH.js +53 -0
- package/dist/useTimeout-gEG15bRo.cjs +1 -0
- package/package.json +10 -10
- package/dist/Backdrop-2u2eUNhW.cjs +0 -1
- package/dist/Box-BM-kEZ6w.cjs +0 -1
- package/dist/Button-DF4FLm9c.cjs +0 -1
- package/dist/ButtonBase-D-LBunY3.cjs +0 -75
- package/dist/CircularProgress-Bc4Jb-wh.cjs +0 -28
- package/dist/DatePicker-B7Kxulzh.cjs +0 -19
- package/dist/DefaultButton-BiytyhNr.cjs +0 -1
- package/dist/DefaultPropsProvider-D5gdl0ZP.cjs +0 -17
- package/dist/IconButton-C1Q6F-WI.cjs +0 -2
- package/dist/InputBase-BhTvM4pD.cjs +0 -3
- package/dist/Stack-C-pSEK_U.cjs +0 -1
- package/dist/Tabs-DQQR_Rej.cjs +0 -4
- package/dist/TextField-ESuNQ6_j.cjs +0 -12
- package/dist/Tooltip-iexr64ud.cjs +0 -100
- package/dist/Typography-DXUkMq5K.cjs +0 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/components/DefaultButton/DefaultButton.cjs.js +0 -1
- package/dist/components/DefaultButton/DefaultButton.d.ts +0 -8
- package/dist/components/DefaultButton/DefaultButton.es.js +0 -8
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +0 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.d.ts +0 -8
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +0 -185
- package/dist/components/DefaultButton/index.cjs.js +0 -1
- package/dist/components/DefaultButton/index.d.ts +0 -2
- package/dist/components/DefaultButton/index.es.js +0 -4
- package/dist/components/PaperHeader/PaperHeader.cjs.js +0 -1
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +0 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +0 -28
- package/dist/components/PaperHeader/index.cjs.js +0 -1
- package/dist/components/PaperHeader/index.d.ts +0 -2
- package/dist/components/PaperHeader/index.es.js +0 -4
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +0 -1
- package/dist/components/PrimaryButton/PrimaryButton.d.ts +0 -5
- package/dist/components/PrimaryButton/PrimaryButton.es.js +0 -13
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +0 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +0 -25
- package/dist/components/PrimaryButton/index.cjs.js +0 -1
- package/dist/components/PrimaryButton/index.d.ts +0 -2
- package/dist/components/PrimaryButton/index.es.js +0 -4
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +0 -1
- package/dist/components/SecondaryButton/SecondaryButton.d.ts +0 -5
- package/dist/components/SecondaryButton/SecondaryButton.es.js +0 -6
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +0 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.d.ts +0 -4
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +0 -25
- package/dist/components/SecondaryButton/index.cjs.js +0 -1
- package/dist/components/SecondaryButton/index.d.ts +0 -2
- package/dist/components/SecondaryButton/index.es.js +0 -4
- package/dist/composeClasses-B_ETVugV.cjs +0 -1
- package/dist/composeClasses-zmPRtZOg.js +0 -16
- package/dist/createSvgIcon-C9v8HKxu.cjs +0 -2
- package/dist/createSvgIcon-ampgkdBR.js +0 -89
- package/dist/identifier-lU3TQXv0.cjs +0 -59
- package/dist/index-B4-7REI3.cjs +0 -1
- package/dist/memoTheme-B2EWpIp3.cjs +0 -1
- package/dist/memoTheme-O-hJ9iBh.js +0 -13
- package/dist/refType-xt9KmJ1e.cjs +0 -1
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-Bf7_InaL.cjs +0 -3
- package/dist/useControlled-D59BLg1S.js +0 -48
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useThemeProps-CjDUEYiA.js +0 -40
- package/dist/useThemeProps-DxowsTec.cjs +0 -1
- package/dist/useTimeout-COCrDKz-.cjs +0 -1
- package/dist/useTimeout-CcRdgCDK.js +0 -42
- /package/dist/components/{PaperHeader/PaperHeader.stories.d.ts → Heading/Heading.stories.d.ts} +0 -0
|
@@ -1,102 +1,142 @@
|
|
|
1
1
|
import * as j from "react";
|
|
2
|
-
import
|
|
3
|
-
import { P as
|
|
4
|
-
import { r as
|
|
5
|
-
import { u as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { s as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
function ce(r) {
|
|
2
|
+
import F from "react";
|
|
3
|
+
import { P as t, I as Z, J as tt, L as et } from "./identifier-Bu3vgTzE.js";
|
|
4
|
+
import { r as nt, m as ot, a as it, u as rt } from "./useTheme-B_3HWqyi.js";
|
|
5
|
+
import { c as W, u as X } from "./useForkRef-D-DyzOXj.js";
|
|
6
|
+
import { jsx as B } from "react/jsx-runtime";
|
|
7
|
+
import { s as st, u as at, c as pt } from "./DefaultPropsProvider-7QnSWHxy.js";
|
|
8
|
+
import { _ as ut, a as ct, T as $ } from "./TransitionGroupContext-DMJLhY9-.js";
|
|
9
|
+
import I from "react-dom";
|
|
10
|
+
function lt(r) {
|
|
12
11
|
const {
|
|
13
|
-
prototype:
|
|
12
|
+
prototype: s = {}
|
|
14
13
|
} = r;
|
|
15
|
-
return !!
|
|
14
|
+
return !!s.isReactComponent;
|
|
16
15
|
}
|
|
17
|
-
function
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
16
|
+
function H(r, s, a, i, n) {
|
|
17
|
+
const e = r[s], o = n || s;
|
|
18
|
+
if (e == null || // When server-side rendering React doesn't warn either.
|
|
20
19
|
// This is not an accurate check for SSR.
|
|
21
20
|
// This is only in place for Emotion compat.
|
|
22
21
|
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
23
22
|
typeof window > "u")
|
|
24
23
|
return null;
|
|
25
|
-
let
|
|
26
|
-
const
|
|
27
|
-
return typeof
|
|
24
|
+
let p;
|
|
25
|
+
const u = e.type;
|
|
26
|
+
return typeof u == "function" && !lt(u) && (p = "Did you accidentally use a plain function component for an element instead?"), p !== void 0 ? new Error(`Invalid ${i} \`${o}\` supplied to \`${a}\`. Expected an element that can hold a ref. ${p} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
28
27
|
}
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// We cannot check for it, but isValidElement is true at this point
|
|
35
|
-
// https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/70189
|
|
36
|
-
r.ref
|
|
37
|
-
);
|
|
28
|
+
const z = W(t.element, H);
|
|
29
|
+
z.isRequired = W(t.element.isRequired, H);
|
|
30
|
+
function dt(r) {
|
|
31
|
+
var s;
|
|
32
|
+
return parseInt(j.version, 10) >= 19 ? ((s = r == null ? void 0 : r.props) == null ? void 0 : s.ref) || null : (r == null ? void 0 : r.ref) || null;
|
|
38
33
|
}
|
|
39
|
-
|
|
34
|
+
function A(r, s) {
|
|
35
|
+
const {
|
|
36
|
+
className: a,
|
|
37
|
+
elementType: i,
|
|
38
|
+
ownerState: n,
|
|
39
|
+
externalForwardedProps: e,
|
|
40
|
+
getSlotOwnerState: o,
|
|
41
|
+
internalForwardedProps: p,
|
|
42
|
+
...u
|
|
43
|
+
} = s, {
|
|
44
|
+
component: l,
|
|
45
|
+
slots: d = {
|
|
46
|
+
[r]: void 0
|
|
47
|
+
},
|
|
48
|
+
slotProps: v = {
|
|
49
|
+
[r]: void 0
|
|
50
|
+
},
|
|
51
|
+
...y
|
|
52
|
+
} = e, T = d[r] || i, b = nt(v[r], n), {
|
|
53
|
+
props: {
|
|
54
|
+
component: C,
|
|
55
|
+
...m
|
|
56
|
+
},
|
|
57
|
+
internalRef: g
|
|
58
|
+
} = ot({
|
|
59
|
+
className: a,
|
|
60
|
+
...u,
|
|
61
|
+
externalForwardedProps: r === "root" ? y : void 0,
|
|
62
|
+
externalSlotProps: b
|
|
63
|
+
}), k = X(g, b == null ? void 0 : b.ref, s.ref), O = o ? o(m) : {}, E = {
|
|
64
|
+
...n,
|
|
65
|
+
...O
|
|
66
|
+
}, N = r === "root" ? C || l : C, f = it(T, {
|
|
67
|
+
...r === "root" && !l && !d[r] && p,
|
|
68
|
+
...r !== "root" && !d[r] && p,
|
|
69
|
+
...m,
|
|
70
|
+
...N && {
|
|
71
|
+
as: N
|
|
72
|
+
},
|
|
73
|
+
ref: k
|
|
74
|
+
}, E);
|
|
75
|
+
return Object.keys(O).forEach((w) => {
|
|
76
|
+
delete f[w];
|
|
77
|
+
}), [T, f];
|
|
78
|
+
}
|
|
79
|
+
const G = {
|
|
40
80
|
disabled: !1
|
|
41
81
|
};
|
|
42
|
-
var
|
|
43
|
-
enter:
|
|
44
|
-
exit:
|
|
45
|
-
appear:
|
|
46
|
-
}).isRequired]) : null,
|
|
47
|
-
enter:
|
|
48
|
-
exit:
|
|
49
|
-
active:
|
|
50
|
-
}),
|
|
51
|
-
enter:
|
|
52
|
-
enterDone:
|
|
53
|
-
enterActive:
|
|
54
|
-
exit:
|
|
55
|
-
exitDone:
|
|
56
|
-
exitActive:
|
|
57
|
-
})]) : null,
|
|
58
|
-
return
|
|
59
|
-
}, M = "unmounted", S = "exited", R = "entering", D = "entered",
|
|
60
|
-
|
|
61
|
-
function
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
var o = n,
|
|
65
|
-
return
|
|
66
|
-
status:
|
|
67
|
-
},
|
|
82
|
+
var ft = process.env.NODE_ENV !== "production" ? t.oneOfType([t.number, t.shape({
|
|
83
|
+
enter: t.number,
|
|
84
|
+
exit: t.number,
|
|
85
|
+
appear: t.number
|
|
86
|
+
}).isRequired]) : null, wt = process.env.NODE_ENV !== "production" ? t.oneOfType([t.string, t.shape({
|
|
87
|
+
enter: t.string,
|
|
88
|
+
exit: t.string,
|
|
89
|
+
active: t.string
|
|
90
|
+
}), t.shape({
|
|
91
|
+
enter: t.string,
|
|
92
|
+
enterDone: t.string,
|
|
93
|
+
enterActive: t.string,
|
|
94
|
+
exit: t.string,
|
|
95
|
+
exitDone: t.string,
|
|
96
|
+
exitActive: t.string
|
|
97
|
+
})]) : null, mt = function(s) {
|
|
98
|
+
return s.scrollTop;
|
|
99
|
+
}, M = "unmounted", S = "exited", R = "entering", D = "entered", q = "exiting", x = /* @__PURE__ */ function(r) {
|
|
100
|
+
ut(s, r);
|
|
101
|
+
function s(i, n) {
|
|
102
|
+
var e;
|
|
103
|
+
e = r.call(this, i, n) || this;
|
|
104
|
+
var o = n, p = o && !o.isMounting ? i.enter : i.appear, u;
|
|
105
|
+
return e.appearStatus = null, i.in ? p ? (u = S, e.appearStatus = R) : u = D : i.unmountOnExit || i.mountOnEnter ? u = M : u = S, e.state = {
|
|
106
|
+
status: u
|
|
107
|
+
}, e.nextCallback = null, e;
|
|
68
108
|
}
|
|
69
|
-
|
|
109
|
+
s.getDerivedStateFromProps = function(n, e) {
|
|
70
110
|
var o = n.in;
|
|
71
|
-
return o &&
|
|
111
|
+
return o && e.status === M ? {
|
|
72
112
|
status: S
|
|
73
113
|
} : null;
|
|
74
114
|
};
|
|
75
|
-
var
|
|
76
|
-
return
|
|
115
|
+
var a = s.prototype;
|
|
116
|
+
return a.componentDidMount = function() {
|
|
77
117
|
this.updateStatus(!0, this.appearStatus);
|
|
78
|
-
},
|
|
79
|
-
var
|
|
118
|
+
}, a.componentDidUpdate = function(n) {
|
|
119
|
+
var e = null;
|
|
80
120
|
if (n !== this.props) {
|
|
81
121
|
var o = this.state.status;
|
|
82
|
-
this.props.in ? o !== R && o !== D && (
|
|
122
|
+
this.props.in ? o !== R && o !== D && (e = R) : (o === R || o === D) && (e = q);
|
|
83
123
|
}
|
|
84
|
-
this.updateStatus(!1,
|
|
85
|
-
},
|
|
124
|
+
this.updateStatus(!1, e);
|
|
125
|
+
}, a.componentWillUnmount = function() {
|
|
86
126
|
this.cancelNextCallback();
|
|
87
|
-
},
|
|
88
|
-
var n = this.props.timeout,
|
|
89
|
-
return
|
|
90
|
-
exit:
|
|
127
|
+
}, a.getTimeouts = function() {
|
|
128
|
+
var n = this.props.timeout, e, o, p;
|
|
129
|
+
return e = o = p = n, n != null && typeof n != "number" && (e = n.exit, o = n.enter, p = n.appear !== void 0 ? n.appear : o), {
|
|
130
|
+
exit: e,
|
|
91
131
|
enter: o,
|
|
92
|
-
appear:
|
|
132
|
+
appear: p
|
|
93
133
|
};
|
|
94
|
-
},
|
|
95
|
-
if (n === void 0 && (n = !1),
|
|
96
|
-
if (this.cancelNextCallback(),
|
|
134
|
+
}, a.updateStatus = function(n, e) {
|
|
135
|
+
if (n === void 0 && (n = !1), e !== null)
|
|
136
|
+
if (this.cancelNextCallback(), e === R) {
|
|
97
137
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
98
|
-
var o = this.props.nodeRef ? this.props.nodeRef.current :
|
|
99
|
-
o &&
|
|
138
|
+
var o = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this);
|
|
139
|
+
o && mt(o);
|
|
100
140
|
}
|
|
101
141
|
this.performEnter(n);
|
|
102
142
|
} else
|
|
@@ -104,87 +144,87 @@ var fe = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
104
144
|
else this.props.unmountOnExit && this.state.status === S && this.setState({
|
|
105
145
|
status: M
|
|
106
146
|
});
|
|
107
|
-
},
|
|
108
|
-
var
|
|
109
|
-
if (!n && !o ||
|
|
147
|
+
}, a.performEnter = function(n) {
|
|
148
|
+
var e = this, o = this.props.enter, p = this.context ? this.context.isMounting : n, u = this.props.nodeRef ? [p] : [I.findDOMNode(this), p], l = u[0], d = u[1], v = this.getTimeouts(), y = p ? v.appear : v.enter;
|
|
149
|
+
if (!n && !o || G.disabled) {
|
|
110
150
|
this.safeSetState({
|
|
111
151
|
status: D
|
|
112
152
|
}, function() {
|
|
113
|
-
|
|
153
|
+
e.props.onEntered(l);
|
|
114
154
|
});
|
|
115
155
|
return;
|
|
116
156
|
}
|
|
117
|
-
this.props.onEnter(
|
|
157
|
+
this.props.onEnter(l, d), this.safeSetState({
|
|
118
158
|
status: R
|
|
119
159
|
}, function() {
|
|
120
|
-
|
|
121
|
-
|
|
160
|
+
e.props.onEntering(l, d), e.onTransitionEnd(y, function() {
|
|
161
|
+
e.safeSetState({
|
|
122
162
|
status: D
|
|
123
163
|
}, function() {
|
|
124
|
-
|
|
164
|
+
e.props.onEntered(l, d);
|
|
125
165
|
});
|
|
126
166
|
});
|
|
127
167
|
});
|
|
128
|
-
},
|
|
129
|
-
var n = this,
|
|
130
|
-
if (!
|
|
168
|
+
}, a.performExit = function() {
|
|
169
|
+
var n = this, e = this.props.exit, o = this.getTimeouts(), p = this.props.nodeRef ? void 0 : I.findDOMNode(this);
|
|
170
|
+
if (!e || G.disabled) {
|
|
131
171
|
this.safeSetState({
|
|
132
172
|
status: S
|
|
133
173
|
}, function() {
|
|
134
|
-
n.props.onExited(
|
|
174
|
+
n.props.onExited(p);
|
|
135
175
|
});
|
|
136
176
|
return;
|
|
137
177
|
}
|
|
138
|
-
this.props.onExit(
|
|
139
|
-
status:
|
|
178
|
+
this.props.onExit(p), this.safeSetState({
|
|
179
|
+
status: q
|
|
140
180
|
}, function() {
|
|
141
|
-
n.props.onExiting(
|
|
181
|
+
n.props.onExiting(p), n.onTransitionEnd(o.exit, function() {
|
|
142
182
|
n.safeSetState({
|
|
143
183
|
status: S
|
|
144
184
|
}, function() {
|
|
145
|
-
n.props.onExited(
|
|
185
|
+
n.props.onExited(p);
|
|
146
186
|
});
|
|
147
187
|
});
|
|
148
188
|
});
|
|
149
|
-
},
|
|
189
|
+
}, a.cancelNextCallback = function() {
|
|
150
190
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
var
|
|
155
|
-
return this.nextCallback = function(
|
|
156
|
-
o && (o = !1,
|
|
191
|
+
}, a.safeSetState = function(n, e) {
|
|
192
|
+
e = this.setNextCallback(e), this.setState(n, e);
|
|
193
|
+
}, a.setNextCallback = function(n) {
|
|
194
|
+
var e = this, o = !0;
|
|
195
|
+
return this.nextCallback = function(p) {
|
|
196
|
+
o && (o = !1, e.nextCallback = null, n(p));
|
|
157
197
|
}, this.nextCallback.cancel = function() {
|
|
158
198
|
o = !1;
|
|
159
199
|
}, this.nextCallback;
|
|
160
|
-
},
|
|
161
|
-
this.setNextCallback(
|
|
162
|
-
var o = this.props.nodeRef ? this.props.nodeRef.current :
|
|
163
|
-
if (!o ||
|
|
200
|
+
}, a.onTransitionEnd = function(n, e) {
|
|
201
|
+
this.setNextCallback(e);
|
|
202
|
+
var o = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this), p = n == null && !this.props.addEndListener;
|
|
203
|
+
if (!o || p) {
|
|
164
204
|
setTimeout(this.nextCallback, 0);
|
|
165
205
|
return;
|
|
166
206
|
}
|
|
167
207
|
if (this.props.addEndListener) {
|
|
168
|
-
var
|
|
169
|
-
this.props.addEndListener(
|
|
208
|
+
var u = this.props.nodeRef ? [this.nextCallback] : [o, this.nextCallback], l = u[0], d = u[1];
|
|
209
|
+
this.props.addEndListener(l, d);
|
|
170
210
|
}
|
|
171
211
|
n != null && setTimeout(this.nextCallback, n);
|
|
172
|
-
},
|
|
212
|
+
}, a.render = function() {
|
|
173
213
|
var n = this.state.status;
|
|
174
214
|
if (n === M)
|
|
175
215
|
return null;
|
|
176
|
-
var
|
|
177
|
-
|
|
178
|
-
var
|
|
216
|
+
var e = this.props, o = e.children;
|
|
217
|
+
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;
|
|
218
|
+
var p = ct(e, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
179
219
|
return (
|
|
180
220
|
// allows for nested Transitions
|
|
181
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ F.createElement($.Provider, {
|
|
182
222
|
value: null
|
|
183
|
-
}, typeof o == "function" ? o(n,
|
|
223
|
+
}, typeof o == "function" ? o(n, p) : F.cloneElement(F.Children.only(o), p))
|
|
184
224
|
);
|
|
185
|
-
},
|
|
186
|
-
}(
|
|
187
|
-
x.contextType =
|
|
225
|
+
}, s;
|
|
226
|
+
}(F.Component);
|
|
227
|
+
x.contextType = $;
|
|
188
228
|
x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
189
229
|
/**
|
|
190
230
|
* A React reference to DOM element that need to transition:
|
|
@@ -197,10 +237,10 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
197
237
|
* (see
|
|
198
238
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
199
239
|
*/
|
|
200
|
-
nodeRef:
|
|
201
|
-
current: typeof Element > "u" ?
|
|
202
|
-
var o = r[
|
|
203
|
-
return
|
|
240
|
+
nodeRef: t.shape({
|
|
241
|
+
current: typeof Element > "u" ? t.any : function(r, s, a, i, n, e) {
|
|
242
|
+
var o = r[s];
|
|
243
|
+
return t.instanceOf(o && "ownerDocument" in o ? o.ownerDocument.defaultView.Element : Element)(r, s, a, i, n, e);
|
|
204
244
|
}
|
|
205
245
|
}),
|
|
206
246
|
/**
|
|
@@ -217,23 +257,23 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
217
257
|
* </Transition>
|
|
218
258
|
* ```
|
|
219
259
|
*/
|
|
220
|
-
children:
|
|
260
|
+
children: t.oneOfType([t.func.isRequired, t.element.isRequired]).isRequired,
|
|
221
261
|
/**
|
|
222
262
|
* Show the component; triggers the enter or exit states
|
|
223
263
|
*/
|
|
224
|
-
in:
|
|
264
|
+
in: t.bool,
|
|
225
265
|
/**
|
|
226
266
|
* By default the child component is mounted immediately along with
|
|
227
267
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
228
268
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
229
269
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
230
270
|
*/
|
|
231
|
-
mountOnEnter:
|
|
271
|
+
mountOnEnter: t.bool,
|
|
232
272
|
/**
|
|
233
273
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
234
274
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
235
275
|
*/
|
|
236
|
-
unmountOnExit:
|
|
276
|
+
unmountOnExit: t.bool,
|
|
237
277
|
/**
|
|
238
278
|
* By default the child component does not perform the enter transition when
|
|
239
279
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -245,15 +285,15 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
245
285
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
246
286
|
* > differently.
|
|
247
287
|
*/
|
|
248
|
-
appear:
|
|
288
|
+
appear: t.bool,
|
|
249
289
|
/**
|
|
250
290
|
* Enable or disable enter transitions.
|
|
251
291
|
*/
|
|
252
|
-
enter:
|
|
292
|
+
enter: t.bool,
|
|
253
293
|
/**
|
|
254
294
|
* Enable or disable exit transitions.
|
|
255
295
|
*/
|
|
256
|
-
exit:
|
|
296
|
+
exit: t.bool,
|
|
257
297
|
/**
|
|
258
298
|
* The duration of the transition, in milliseconds.
|
|
259
299
|
* Required unless `addEndListener` is provided.
|
|
@@ -280,12 +320,12 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
280
320
|
*
|
|
281
321
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
282
322
|
*/
|
|
283
|
-
timeout: function(
|
|
284
|
-
var
|
|
285
|
-
|
|
286
|
-
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0),
|
|
287
|
-
n[
|
|
288
|
-
return
|
|
323
|
+
timeout: function(s) {
|
|
324
|
+
var a = ft;
|
|
325
|
+
s.addEndListener || (a = a.isRequired);
|
|
326
|
+
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), e = 1; e < i; e++)
|
|
327
|
+
n[e - 1] = arguments[e];
|
|
328
|
+
return a.apply(void 0, [s].concat(n));
|
|
289
329
|
},
|
|
290
330
|
/**
|
|
291
331
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -301,7 +341,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
301
341
|
* }}
|
|
302
342
|
* ```
|
|
303
343
|
*/
|
|
304
|
-
addEndListener:
|
|
344
|
+
addEndListener: t.func,
|
|
305
345
|
/**
|
|
306
346
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
307
347
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -310,7 +350,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
310
350
|
*
|
|
311
351
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
312
352
|
*/
|
|
313
|
-
onEnter:
|
|
353
|
+
onEnter: t.func,
|
|
314
354
|
/**
|
|
315
355
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
316
356
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -319,7 +359,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
319
359
|
*
|
|
320
360
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
321
361
|
*/
|
|
322
|
-
onEntering:
|
|
362
|
+
onEntering: t.func,
|
|
323
363
|
/**
|
|
324
364
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
325
365
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -328,7 +368,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
328
368
|
*
|
|
329
369
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
330
370
|
*/
|
|
331
|
-
onEntered:
|
|
371
|
+
onEntered: t.func,
|
|
332
372
|
/**
|
|
333
373
|
* Callback fired before the "exiting" status is applied.
|
|
334
374
|
*
|
|
@@ -336,7 +376,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
336
376
|
*
|
|
337
377
|
* @type Function(node: HtmlElement) -> void
|
|
338
378
|
*/
|
|
339
|
-
onExit:
|
|
379
|
+
onExit: t.func,
|
|
340
380
|
/**
|
|
341
381
|
* Callback fired after the "exiting" status is applied.
|
|
342
382
|
*
|
|
@@ -344,7 +384,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
344
384
|
*
|
|
345
385
|
* @type Function(node: HtmlElement) -> void
|
|
346
386
|
*/
|
|
347
|
-
onExiting:
|
|
387
|
+
onExiting: t.func,
|
|
348
388
|
/**
|
|
349
389
|
* Callback fired after the "exited" status is applied.
|
|
350
390
|
*
|
|
@@ -352,7 +392,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
352
392
|
*
|
|
353
393
|
* @type Function(node: HtmlElement) -> void
|
|
354
394
|
*/
|
|
355
|
-
onExited:
|
|
395
|
+
onExited: t.func
|
|
356
396
|
} : {};
|
|
357
397
|
function P() {
|
|
358
398
|
}
|
|
@@ -374,147 +414,102 @@ x.UNMOUNTED = M;
|
|
|
374
414
|
x.EXITED = S;
|
|
375
415
|
x.ENTERING = R;
|
|
376
416
|
x.ENTERED = D;
|
|
377
|
-
x.EXITING =
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
className: s,
|
|
381
|
-
elementType: i,
|
|
382
|
-
ownerState: n,
|
|
383
|
-
externalForwardedProps: t,
|
|
384
|
-
getSlotOwnerState: o,
|
|
385
|
-
internalForwardedProps: a,
|
|
386
|
-
...l
|
|
387
|
-
} = p, {
|
|
388
|
-
component: c,
|
|
389
|
-
slots: d = {
|
|
390
|
-
[r]: void 0
|
|
391
|
-
},
|
|
392
|
-
slotProps: b = {
|
|
393
|
-
[r]: void 0
|
|
394
|
-
},
|
|
395
|
-
...y
|
|
396
|
-
} = t, T = d[r] || i, v = ne(b[r], n), {
|
|
397
|
-
props: {
|
|
398
|
-
component: C,
|
|
399
|
-
...m
|
|
400
|
-
},
|
|
401
|
-
internalRef: g
|
|
402
|
-
} = oe({
|
|
403
|
-
className: s,
|
|
404
|
-
...l,
|
|
405
|
-
externalForwardedProps: r === "root" ? y : void 0,
|
|
406
|
-
externalSlotProps: v
|
|
407
|
-
}), k = V(g, v == null ? void 0 : v.ref, p.ref), N = o ? o(m) : {}, E = {
|
|
408
|
-
...n,
|
|
409
|
-
...N
|
|
410
|
-
}, O = r === "root" ? C || c : C, f = ie(T, {
|
|
411
|
-
...r === "root" && !c && !d[r] && a,
|
|
412
|
-
...r !== "root" && !d[r] && a,
|
|
413
|
-
...m,
|
|
414
|
-
...O && {
|
|
415
|
-
as: O
|
|
416
|
-
},
|
|
417
|
-
ref: k
|
|
418
|
-
}, E);
|
|
419
|
-
return Object.keys(N).forEach((w) => {
|
|
420
|
-
delete f[w];
|
|
421
|
-
}), [T, f];
|
|
422
|
-
}
|
|
423
|
-
const Ee = (r) => r.scrollTop;
|
|
424
|
-
function G(r, p) {
|
|
417
|
+
x.EXITING = q;
|
|
418
|
+
const Et = (r) => r.scrollTop;
|
|
419
|
+
function V(r, s) {
|
|
425
420
|
const {
|
|
426
|
-
timeout:
|
|
421
|
+
timeout: a,
|
|
427
422
|
easing: i,
|
|
428
423
|
style: n = {}
|
|
429
424
|
} = r;
|
|
430
425
|
return {
|
|
431
|
-
duration: n.transitionDuration ?? (typeof
|
|
432
|
-
easing: n.transitionTimingFunction ?? (typeof i == "object" ? i[
|
|
426
|
+
duration: n.transitionDuration ?? (typeof a == "number" ? a : a[s.mode] || 0),
|
|
427
|
+
easing: n.transitionTimingFunction ?? (typeof i == "object" ? i[s.mode] : i),
|
|
433
428
|
delay: n.transitionDelay
|
|
434
429
|
};
|
|
435
430
|
}
|
|
436
|
-
const
|
|
431
|
+
const ht = {
|
|
437
432
|
entering: {
|
|
438
433
|
opacity: 1
|
|
439
434
|
},
|
|
440
435
|
entered: {
|
|
441
436
|
opacity: 1
|
|
442
437
|
}
|
|
443
|
-
},
|
|
444
|
-
const i =
|
|
438
|
+
}, J = /* @__PURE__ */ j.forwardRef(function(s, a) {
|
|
439
|
+
const i = rt(), n = {
|
|
445
440
|
enter: i.transitions.duration.enteringScreen,
|
|
446
441
|
exit: i.transitions.duration.leavingScreen
|
|
447
442
|
}, {
|
|
448
|
-
addEndListener:
|
|
443
|
+
addEndListener: e,
|
|
449
444
|
appear: o = !0,
|
|
450
|
-
children:
|
|
451
|
-
easing:
|
|
452
|
-
in:
|
|
445
|
+
children: p,
|
|
446
|
+
easing: u,
|
|
447
|
+
in: l,
|
|
453
448
|
onEnter: d,
|
|
454
|
-
onEntered:
|
|
449
|
+
onEntered: v,
|
|
455
450
|
onEntering: y,
|
|
456
451
|
onExit: T,
|
|
457
|
-
onExited:
|
|
452
|
+
onExited: b,
|
|
458
453
|
onExiting: C,
|
|
459
454
|
style: m,
|
|
460
455
|
timeout: g = n,
|
|
461
456
|
// eslint-disable-next-line react/prop-types
|
|
462
457
|
TransitionComponent: k = x,
|
|
463
|
-
...
|
|
464
|
-
} =
|
|
465
|
-
if (
|
|
458
|
+
...O
|
|
459
|
+
} = s, E = j.useRef(null), N = X(E, dt(p), a), f = (c) => (h) => {
|
|
460
|
+
if (c) {
|
|
466
461
|
const L = E.current;
|
|
467
|
-
h === void 0 ?
|
|
462
|
+
h === void 0 ? c(L) : c(L, h);
|
|
468
463
|
}
|
|
469
|
-
}, w = f(y),
|
|
470
|
-
|
|
471
|
-
const L =
|
|
464
|
+
}, w = f(y), U = f((c, h) => {
|
|
465
|
+
Et(c);
|
|
466
|
+
const L = V({
|
|
472
467
|
style: m,
|
|
473
468
|
timeout: g,
|
|
474
|
-
easing:
|
|
469
|
+
easing: u
|
|
475
470
|
}, {
|
|
476
471
|
mode: "enter"
|
|
477
472
|
});
|
|
478
|
-
|
|
479
|
-
}),
|
|
480
|
-
const h =
|
|
473
|
+
c.style.webkitTransition = i.transitions.create("opacity", L), c.style.transition = i.transitions.create("opacity", L), d && d(c, h);
|
|
474
|
+
}), _ = f(v), K = f(C), Q = f((c) => {
|
|
475
|
+
const h = V({
|
|
481
476
|
style: m,
|
|
482
477
|
timeout: g,
|
|
483
|
-
easing:
|
|
478
|
+
easing: u
|
|
484
479
|
}, {
|
|
485
480
|
mode: "exit"
|
|
486
481
|
});
|
|
487
|
-
|
|
488
|
-
}), Y = f(
|
|
489
|
-
return /* @__PURE__ */
|
|
482
|
+
c.style.webkitTransition = i.transitions.create("opacity", h), c.style.transition = i.transitions.create("opacity", h), T && T(c);
|
|
483
|
+
}), Y = f(b);
|
|
484
|
+
return /* @__PURE__ */ B(k, {
|
|
490
485
|
appear: o,
|
|
491
|
-
in:
|
|
486
|
+
in: l,
|
|
492
487
|
nodeRef: E,
|
|
493
|
-
onEnter:
|
|
494
|
-
onEntered:
|
|
488
|
+
onEnter: U,
|
|
489
|
+
onEntered: _,
|
|
495
490
|
onEntering: w,
|
|
496
491
|
onExit: Q,
|
|
497
492
|
onExited: Y,
|
|
498
493
|
onExiting: K,
|
|
499
|
-
addEndListener: (
|
|
500
|
-
|
|
494
|
+
addEndListener: (c) => {
|
|
495
|
+
e && e(E.current, c);
|
|
501
496
|
},
|
|
502
497
|
timeout: g,
|
|
503
|
-
...
|
|
504
|
-
children: (
|
|
498
|
+
...O,
|
|
499
|
+
children: (c, h) => /* @__PURE__ */ j.cloneElement(p, {
|
|
505
500
|
style: {
|
|
506
501
|
opacity: 0,
|
|
507
|
-
visibility:
|
|
508
|
-
...
|
|
502
|
+
visibility: c === "exited" && !l ? "hidden" : void 0,
|
|
503
|
+
...ht[c],
|
|
509
504
|
...m,
|
|
510
|
-
...
|
|
505
|
+
...p.props.style
|
|
511
506
|
},
|
|
512
|
-
ref:
|
|
507
|
+
ref: N,
|
|
513
508
|
...h
|
|
514
509
|
})
|
|
515
510
|
});
|
|
516
511
|
});
|
|
517
|
-
process.env.NODE_ENV !== "production" && (
|
|
512
|
+
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
518
513
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
519
514
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
520
515
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -524,57 +519,57 @@ process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
|
524
519
|
* node and a done callback. Allows for more fine grained transition end
|
|
525
520
|
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
526
521
|
*/
|
|
527
|
-
addEndListener:
|
|
522
|
+
addEndListener: t.func,
|
|
528
523
|
/**
|
|
529
524
|
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
530
525
|
* Set this to `false` to disable this behavior.
|
|
531
526
|
* @default true
|
|
532
527
|
*/
|
|
533
|
-
appear:
|
|
528
|
+
appear: t.bool,
|
|
534
529
|
/**
|
|
535
530
|
* A single child content element.
|
|
536
531
|
*/
|
|
537
|
-
children:
|
|
532
|
+
children: z.isRequired,
|
|
538
533
|
/**
|
|
539
534
|
* The transition timing function.
|
|
540
535
|
* You may specify a single easing or a object containing enter and exit values.
|
|
541
536
|
*/
|
|
542
|
-
easing:
|
|
543
|
-
enter:
|
|
544
|
-
exit:
|
|
545
|
-
}),
|
|
537
|
+
easing: t.oneOfType([t.shape({
|
|
538
|
+
enter: t.string,
|
|
539
|
+
exit: t.string
|
|
540
|
+
}), t.string]),
|
|
546
541
|
/**
|
|
547
542
|
* If `true`, the component will transition in.
|
|
548
543
|
*/
|
|
549
|
-
in:
|
|
544
|
+
in: t.bool,
|
|
550
545
|
/**
|
|
551
546
|
* @ignore
|
|
552
547
|
*/
|
|
553
|
-
onEnter:
|
|
548
|
+
onEnter: t.func,
|
|
554
549
|
/**
|
|
555
550
|
* @ignore
|
|
556
551
|
*/
|
|
557
|
-
onEntered:
|
|
552
|
+
onEntered: t.func,
|
|
558
553
|
/**
|
|
559
554
|
* @ignore
|
|
560
555
|
*/
|
|
561
|
-
onEntering:
|
|
556
|
+
onEntering: t.func,
|
|
562
557
|
/**
|
|
563
558
|
* @ignore
|
|
564
559
|
*/
|
|
565
|
-
onExit:
|
|
560
|
+
onExit: t.func,
|
|
566
561
|
/**
|
|
567
562
|
* @ignore
|
|
568
563
|
*/
|
|
569
|
-
onExited:
|
|
564
|
+
onExited: t.func,
|
|
570
565
|
/**
|
|
571
566
|
* @ignore
|
|
572
567
|
*/
|
|
573
|
-
onExiting:
|
|
568
|
+
onExiting: t.func,
|
|
574
569
|
/**
|
|
575
570
|
* @ignore
|
|
576
571
|
*/
|
|
577
|
-
style:
|
|
572
|
+
style: t.object,
|
|
578
573
|
/**
|
|
579
574
|
* The duration for the transition, in milliseconds.
|
|
580
575
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -583,31 +578,37 @@ process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
|
583
578
|
* exit: theme.transitions.duration.leavingScreen,
|
|
584
579
|
* }
|
|
585
580
|
*/
|
|
586
|
-
timeout:
|
|
587
|
-
appear:
|
|
588
|
-
enter:
|
|
589
|
-
exit:
|
|
581
|
+
timeout: t.oneOfType([t.number, t.shape({
|
|
582
|
+
appear: t.number,
|
|
583
|
+
enter: t.number,
|
|
584
|
+
exit: t.number
|
|
590
585
|
})])
|
|
591
586
|
});
|
|
592
|
-
function
|
|
587
|
+
function xt(r) {
|
|
593
588
|
return Z("MuiBackdrop", r);
|
|
594
589
|
}
|
|
595
|
-
const
|
|
590
|
+
const Lt = tt("MuiBackdrop", ["root", "invisible"]), vt = (r) => {
|
|
591
|
+
const {
|
|
592
|
+
ownerState: s,
|
|
593
|
+
...a
|
|
594
|
+
} = r;
|
|
595
|
+
return a;
|
|
596
|
+
}, bt = (r) => {
|
|
596
597
|
const {
|
|
597
|
-
classes:
|
|
598
|
-
invisible:
|
|
598
|
+
classes: s,
|
|
599
|
+
invisible: a
|
|
599
600
|
} = r;
|
|
600
|
-
return
|
|
601
|
-
root: ["root",
|
|
602
|
-
},
|
|
603
|
-
},
|
|
601
|
+
return pt({
|
|
602
|
+
root: ["root", a && "invisible"]
|
|
603
|
+
}, xt, s);
|
|
604
|
+
}, gt = st("div", {
|
|
604
605
|
name: "MuiBackdrop",
|
|
605
606
|
slot: "Root",
|
|
606
|
-
overridesResolver: (r,
|
|
607
|
+
overridesResolver: (r, s) => {
|
|
607
608
|
const {
|
|
608
|
-
ownerState:
|
|
609
|
+
ownerState: a
|
|
609
610
|
} = r;
|
|
610
|
-
return [
|
|
611
|
+
return [s.root, a.invisible && s.invisible];
|
|
611
612
|
}
|
|
612
613
|
})({
|
|
613
614
|
position: "fixed",
|
|
@@ -628,62 +629,62 @@ const Le = ee("MuiBackdrop", ["root", "invisible"]), be = (r) => {
|
|
|
628
629
|
backgroundColor: "transparent"
|
|
629
630
|
}
|
|
630
631
|
}]
|
|
631
|
-
}),
|
|
632
|
-
const i =
|
|
633
|
-
props:
|
|
632
|
+
}), yt = /* @__PURE__ */ j.forwardRef(function(s, a) {
|
|
633
|
+
const i = at({
|
|
634
|
+
props: s,
|
|
634
635
|
name: "MuiBackdrop"
|
|
635
636
|
}), {
|
|
636
637
|
children: n,
|
|
637
|
-
className:
|
|
638
|
+
className: e,
|
|
638
639
|
component: o = "div",
|
|
639
|
-
invisible:
|
|
640
|
-
open:
|
|
641
|
-
components:
|
|
640
|
+
invisible: p = !1,
|
|
641
|
+
open: u,
|
|
642
|
+
components: l = {},
|
|
642
643
|
componentsProps: d = {},
|
|
643
|
-
slotProps:
|
|
644
|
+
slotProps: v = {},
|
|
644
645
|
slots: y = {},
|
|
645
646
|
TransitionComponent: T,
|
|
646
|
-
transitionDuration:
|
|
647
|
+
transitionDuration: b,
|
|
647
648
|
...C
|
|
648
649
|
} = i, m = {
|
|
649
650
|
...i,
|
|
650
651
|
component: o,
|
|
651
|
-
invisible:
|
|
652
|
-
}, g =
|
|
652
|
+
invisible: p
|
|
653
|
+
}, g = bt(m), k = {
|
|
653
654
|
transition: T,
|
|
654
|
-
root:
|
|
655
|
+
root: l.Root,
|
|
655
656
|
...y
|
|
656
|
-
},
|
|
657
|
+
}, O = {
|
|
657
658
|
...d,
|
|
658
|
-
...
|
|
659
|
+
...v
|
|
659
660
|
}, E = {
|
|
660
661
|
slots: k,
|
|
661
|
-
slotProps:
|
|
662
|
-
}, [
|
|
663
|
-
elementType:
|
|
662
|
+
slotProps: O
|
|
663
|
+
}, [N, f] = A("root", {
|
|
664
|
+
elementType: gt,
|
|
664
665
|
externalForwardedProps: E,
|
|
665
|
-
className:
|
|
666
|
+
className: et(g.root, e),
|
|
666
667
|
ownerState: m
|
|
667
|
-
}), [w,
|
|
668
|
-
elementType:
|
|
668
|
+
}), [w, U] = A("transition", {
|
|
669
|
+
elementType: J,
|
|
669
670
|
externalForwardedProps: E,
|
|
670
671
|
ownerState: m
|
|
671
|
-
});
|
|
672
|
-
return
|
|
673
|
-
in:
|
|
674
|
-
timeout:
|
|
672
|
+
}), _ = vt(U);
|
|
673
|
+
return /* @__PURE__ */ B(w, {
|
|
674
|
+
in: u,
|
|
675
|
+
timeout: b,
|
|
675
676
|
...C,
|
|
676
|
-
...
|
|
677
|
-
children: /* @__PURE__ */
|
|
677
|
+
..._,
|
|
678
|
+
children: /* @__PURE__ */ B(N, {
|
|
678
679
|
"aria-hidden": !0,
|
|
679
680
|
...f,
|
|
680
681
|
classes: g,
|
|
681
|
-
ref:
|
|
682
|
+
ref: a,
|
|
682
683
|
children: n
|
|
683
684
|
})
|
|
684
685
|
});
|
|
685
686
|
});
|
|
686
|
-
process.env.NODE_ENV !== "production" && (
|
|
687
|
+
process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
687
688
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
688
689
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
689
690
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -691,20 +692,20 @@ process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
|
691
692
|
/**
|
|
692
693
|
* The content of the component.
|
|
693
694
|
*/
|
|
694
|
-
children:
|
|
695
|
+
children: t.node,
|
|
695
696
|
/**
|
|
696
697
|
* Override or extend the styles applied to the component.
|
|
697
698
|
*/
|
|
698
|
-
classes:
|
|
699
|
+
classes: t.object,
|
|
699
700
|
/**
|
|
700
701
|
* @ignore
|
|
701
702
|
*/
|
|
702
|
-
className:
|
|
703
|
+
className: t.string,
|
|
703
704
|
/**
|
|
704
705
|
* The component used for the root node.
|
|
705
706
|
* Either a string to use a HTML element or a component.
|
|
706
707
|
*/
|
|
707
|
-
component:
|
|
708
|
+
component: t.elementType,
|
|
708
709
|
/**
|
|
709
710
|
* The components used for each slot inside.
|
|
710
711
|
*
|
|
@@ -712,8 +713,8 @@ process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
|
712
713
|
*
|
|
713
714
|
* @default {}
|
|
714
715
|
*/
|
|
715
|
-
components:
|
|
716
|
-
Root:
|
|
716
|
+
components: t.shape({
|
|
717
|
+
Root: t.elementType
|
|
717
718
|
}),
|
|
718
719
|
/**
|
|
719
720
|
* The extra props for the slot components.
|
|
@@ -723,66 +724,66 @@ process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
|
723
724
|
*
|
|
724
725
|
* @default {}
|
|
725
726
|
*/
|
|
726
|
-
componentsProps:
|
|
727
|
-
root:
|
|
727
|
+
componentsProps: t.shape({
|
|
728
|
+
root: t.object
|
|
728
729
|
}),
|
|
729
730
|
/**
|
|
730
731
|
* If `true`, the backdrop is invisible.
|
|
731
732
|
* It can be used when rendering a popover or a custom select component.
|
|
732
733
|
* @default false
|
|
733
734
|
*/
|
|
734
|
-
invisible:
|
|
735
|
+
invisible: t.bool,
|
|
735
736
|
/**
|
|
736
737
|
* If `true`, the component is shown.
|
|
737
738
|
*/
|
|
738
|
-
open:
|
|
739
|
+
open: t.bool.isRequired,
|
|
739
740
|
/**
|
|
740
741
|
* The props used for each slot inside.
|
|
741
742
|
* @default {}
|
|
742
743
|
*/
|
|
743
|
-
slotProps:
|
|
744
|
-
root:
|
|
745
|
-
transition:
|
|
744
|
+
slotProps: t.shape({
|
|
745
|
+
root: t.oneOfType([t.func, t.object]),
|
|
746
|
+
transition: t.oneOfType([t.func, t.object])
|
|
746
747
|
}),
|
|
747
748
|
/**
|
|
748
749
|
* The components used for each slot inside.
|
|
749
750
|
* @default {}
|
|
750
751
|
*/
|
|
751
|
-
slots:
|
|
752
|
-
root:
|
|
753
|
-
transition:
|
|
752
|
+
slots: t.shape({
|
|
753
|
+
root: t.elementType,
|
|
754
|
+
transition: t.elementType
|
|
754
755
|
}),
|
|
755
756
|
/**
|
|
756
757
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
757
758
|
*/
|
|
758
|
-
sx:
|
|
759
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
759
760
|
/**
|
|
760
761
|
* The component used for the transition.
|
|
761
762
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
762
763
|
* @default Fade
|
|
763
764
|
*/
|
|
764
|
-
TransitionComponent:
|
|
765
|
+
TransitionComponent: t.elementType,
|
|
765
766
|
/**
|
|
766
767
|
* The duration for the transition, in milliseconds.
|
|
767
768
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
768
769
|
*/
|
|
769
|
-
transitionDuration:
|
|
770
|
-
appear:
|
|
771
|
-
enter:
|
|
772
|
-
exit:
|
|
770
|
+
transitionDuration: t.oneOfType([t.number, t.shape({
|
|
771
|
+
appear: t.number,
|
|
772
|
+
enter: t.number,
|
|
773
|
+
exit: t.number
|
|
773
774
|
})])
|
|
774
775
|
});
|
|
775
776
|
export {
|
|
776
|
-
|
|
777
|
-
|
|
777
|
+
yt as B,
|
|
778
|
+
J as F,
|
|
778
779
|
x as T,
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
780
|
+
dt as a,
|
|
781
|
+
Lt as b,
|
|
782
|
+
V as c,
|
|
783
|
+
wt as d,
|
|
784
|
+
z as e,
|
|
785
|
+
mt as f,
|
|
786
|
+
xt as g,
|
|
787
|
+
Et as r,
|
|
787
788
|
A as u
|
|
788
789
|
};
|