@cgi-learning-hub/ui 1.2.0-dev.1730801938 → 1.2.0-dev.1730802047
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-Br80Nd7t.cjs +1 -0
- package/dist/{Backdrop-NYR-wJpx.js → Backdrop-DZxABi0e.js} +290 -289
- package/dist/{Box-BOwB0WGP.js → Box-CCNJo4xc.js} +3 -3
- package/dist/Box-CHgIMOMk.cjs +1 -0
- package/dist/Button-BZ3CM4Ou.cjs +1 -0
- package/dist/{Button-DOz72eRZ.js → Button-BbB53SmV.js} +76 -78
- package/dist/{ButtonBase-Cc4QJr0W.js → ButtonBase-CWK9_uNc.js} +78 -79
- package/dist/ButtonBase-CfGA-YGO.cjs +75 -0
- package/dist/{CircularProgress-CQAqrfVo.js → CircularProgress-CCcQGuv7.js} +60 -59
- package/dist/CircularProgress-CjmXu0NI.cjs +28 -0
- package/dist/DatePicker-BSHPkMOi.cjs +17 -0
- package/dist/{DatePicker-DLbJ-Y35.js → DatePicker-DhT2Azgz.js} +3796 -3827
- package/dist/DefaultButton-BDGm3E32.cjs +1 -0
- package/dist/{DefaultButton-xBiX39mb.js → DefaultButton-DRX60ZWo.js} +22 -23
- package/dist/DefaultPropsProvider-BL9ahJBw.cjs +17 -0
- package/dist/{DefaultPropsProvider-3gIWHkeE.js → DefaultPropsProvider-DtDY-TZb.js} +2 -1
- package/dist/{IconButton-DQ115lN0.js → IconButton-CJADlk4N.js} +60 -70
- package/dist/IconButton-CQIpnm5Y.cjs +2 -0
- package/dist/{InputAdornment-CQEOPpj_.cjs → InputAdornment-BgclYUXK.cjs} +1 -1
- package/dist/{InputAdornment-C91s059c.js → InputAdornment-DB3IsWy6.js} +5 -5
- package/dist/InputBase-BgPlZIwC.cjs +3 -0
- package/dist/{InputBase-BqiRpsZm.js → InputBase-D4oDoC6z.js} +76 -77
- package/dist/{Stack-CRf_NOj5.js → Stack-DkKYFn95.js} +13 -13
- package/dist/Stack-h0ulkByu.cjs +1 -0
- package/dist/{Tabs-ClaQRksF.js → Tabs-COdZZ9QD.js} +13 -14
- package/dist/Tabs-CVG205ba.cjs +4 -0
- package/dist/TextField-DYHbqOp9.cjs +14 -0
- package/dist/{TextField-poQmKhLJ.js → TextField-PKXBC85g.js} +1457 -1415
- package/dist/{Tooltip-h4eHRca2.js → Tooltip-Bjvuk-Lb.js} +1117 -1099
- package/dist/Tooltip-D8bjRAAW.cjs +100 -0
- package/dist/Typography-Ddo2XgEF.cjs +1 -0
- package/dist/{Typography-Brk7us7e.js → Typography-NOCV1w8B.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/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/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +15 -14
- package/dist/components/DefaultButton/index.cjs.js +1 -1
- package/dist/components/DefaultButton/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/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/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +13 -19
- 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/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.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/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.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.es.js +17 -17
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
- package/dist/{createSvgIcon-BHNwYp0k.cjs → createSvgIcon-BH5C6nT9.cjs} +1 -1
- package/dist/{createSvgIcon-CWZXMIY6.js → createSvgIcon-CCVUTVqS.js} +3 -3
- package/dist/{extendSxProp-h_vH_Efx.cjs → extendSxProp-CxNq_K9W.cjs} +1 -1
- package/dist/{extendSxProp-Cr6SqfyU.js → extendSxProp-ZFHbVaVf.js} +1 -1
- package/dist/{fr-CrUmNQ8y.js → fr-D-ljiFMc.js} +1 -1
- package/dist/{fr-Dh4vpkIL.cjs → fr-W-CTnhjw.cjs} +1 -1
- package/dist/identifier-8mtH7ZcP.cjs +59 -0
- package/dist/{identifier-vL3mZxtO.js → identifier-C_jicJ2R.js} +1001 -1013
- package/dist/{index-PJSlkMUh.js → index-1jrO2HSs.js} +3 -3
- package/dist/{index-DJfvQgvG.cjs → index-8rVsYib2.cjs} +1 -1
- package/dist/{index-CrWaTytV.js → index-C-X1cQ2Z.js} +4 -4
- package/dist/index-DoBWXbUD.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +17 -17
- package/dist/memoTheme-B1D0RO58.js +15 -0
- package/dist/memoTheme-K38b4dAY.cjs +1 -0
- package/dist/{refType-CslmN23s.js → useEnhancedEffect-De8QYV_L.js} +11 -9
- package/dist/useEnhancedEffect-Dl7COs_u.cjs +1 -0
- package/dist/useForkRef-D-DyzOXj.js +21 -0
- package/dist/useForkRef-D81w5oMb.cjs +1 -0
- package/dist/{useTheme-BZN9T64v.js → useTheme-C18aJRpp.js} +1 -1
- package/dist/{useTheme-Cy30-54x.cjs → useTheme-D0cUaNbZ.cjs} +1 -1
- package/dist/{useTheme-BcsinTgi.cjs → useTheme-DMgnO6le.cjs} +1 -1
- package/dist/{useTheme-Cs6W-67J.js → useTheme-DR3unGHQ.js} +3 -3
- package/dist/useThemeProps-9fosi2Au.cjs +1 -0
- package/dist/useThemeProps-B8ZTH6Oh.cjs +1 -0
- package/dist/useThemeProps-BcqXKsD0.js +24 -0
- package/dist/useThemeProps-BwLSmftx.js +27 -0
- package/dist/useTimeout-CUZ4CtvQ.js +53 -0
- package/dist/useTimeout-Dfi8FwFc.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/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
|
@@ -1,102 +1,97 @@
|
|
|
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-C_jicJ2R.js";
|
|
4
|
+
import { r as nt, m as ot, a as it, u as rt } from "./useTheme-DR3unGHQ.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-DtDY-TZb.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
|
-
const
|
|
34
|
+
const A = {
|
|
40
35
|
disabled: !1
|
|
41
36
|
};
|
|
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
|
-
},
|
|
37
|
+
var ft = process.env.NODE_ENV !== "production" ? t.oneOfType([t.number, t.shape({
|
|
38
|
+
enter: t.number,
|
|
39
|
+
exit: t.number,
|
|
40
|
+
appear: t.number
|
|
41
|
+
}).isRequired]) : null, wt = process.env.NODE_ENV !== "production" ? t.oneOfType([t.string, t.shape({
|
|
42
|
+
enter: t.string,
|
|
43
|
+
exit: t.string,
|
|
44
|
+
active: t.string
|
|
45
|
+
}), t.shape({
|
|
46
|
+
enter: t.string,
|
|
47
|
+
enterDone: t.string,
|
|
48
|
+
enterActive: t.string,
|
|
49
|
+
exit: t.string,
|
|
50
|
+
exitDone: t.string,
|
|
51
|
+
exitActive: t.string
|
|
52
|
+
})]) : null, mt = function(s) {
|
|
53
|
+
return s.scrollTop;
|
|
54
|
+
}, M = "unmounted", S = "exited", R = "entering", D = "entered", q = "exiting", x = /* @__PURE__ */ function(r) {
|
|
55
|
+
ut(s, r);
|
|
56
|
+
function s(i, n) {
|
|
57
|
+
var e;
|
|
58
|
+
e = r.call(this, i, n) || this;
|
|
59
|
+
var o = n, p = o && !o.isMounting ? i.enter : i.appear, u;
|
|
60
|
+
return e.appearStatus = null, i.in ? p ? (u = S, e.appearStatus = R) : u = D : i.unmountOnExit || i.mountOnEnter ? u = M : u = S, e.state = {
|
|
61
|
+
status: u
|
|
62
|
+
}, e.nextCallback = null, e;
|
|
68
63
|
}
|
|
69
|
-
|
|
64
|
+
s.getDerivedStateFromProps = function(n, e) {
|
|
70
65
|
var o = n.in;
|
|
71
|
-
return o &&
|
|
66
|
+
return o && e.status === M ? {
|
|
72
67
|
status: S
|
|
73
68
|
} : null;
|
|
74
69
|
};
|
|
75
|
-
var
|
|
76
|
-
return
|
|
70
|
+
var a = s.prototype;
|
|
71
|
+
return a.componentDidMount = function() {
|
|
77
72
|
this.updateStatus(!0, this.appearStatus);
|
|
78
|
-
},
|
|
79
|
-
var
|
|
73
|
+
}, a.componentDidUpdate = function(n) {
|
|
74
|
+
var e = null;
|
|
80
75
|
if (n !== this.props) {
|
|
81
76
|
var o = this.state.status;
|
|
82
|
-
this.props.in ? o !== R && o !== D && (
|
|
77
|
+
this.props.in ? o !== R && o !== D && (e = R) : (o === R || o === D) && (e = q);
|
|
83
78
|
}
|
|
84
|
-
this.updateStatus(!1,
|
|
85
|
-
},
|
|
79
|
+
this.updateStatus(!1, e);
|
|
80
|
+
}, a.componentWillUnmount = function() {
|
|
86
81
|
this.cancelNextCallback();
|
|
87
|
-
},
|
|
88
|
-
var n = this.props.timeout,
|
|
89
|
-
return
|
|
90
|
-
exit:
|
|
82
|
+
}, a.getTimeouts = function() {
|
|
83
|
+
var n = this.props.timeout, e, o, p;
|
|
84
|
+
return e = o = p = n, n != null && typeof n != "number" && (e = n.exit, o = n.enter, p = n.appear !== void 0 ? n.appear : o), {
|
|
85
|
+
exit: e,
|
|
91
86
|
enter: o,
|
|
92
|
-
appear:
|
|
87
|
+
appear: p
|
|
93
88
|
};
|
|
94
|
-
},
|
|
95
|
-
if (n === void 0 && (n = !1),
|
|
96
|
-
if (this.cancelNextCallback(),
|
|
89
|
+
}, a.updateStatus = function(n, e) {
|
|
90
|
+
if (n === void 0 && (n = !1), e !== null)
|
|
91
|
+
if (this.cancelNextCallback(), e === R) {
|
|
97
92
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
98
|
-
var o = this.props.nodeRef ? this.props.nodeRef.current :
|
|
99
|
-
o &&
|
|
93
|
+
var o = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this);
|
|
94
|
+
o && mt(o);
|
|
100
95
|
}
|
|
101
96
|
this.performEnter(n);
|
|
102
97
|
} else
|
|
@@ -104,87 +99,87 @@ var fe = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
|
|
|
104
99
|
else this.props.unmountOnExit && this.state.status === S && this.setState({
|
|
105
100
|
status: M
|
|
106
101
|
});
|
|
107
|
-
},
|
|
108
|
-
var
|
|
109
|
-
if (!n && !o ||
|
|
102
|
+
}, a.performEnter = function(n) {
|
|
103
|
+
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;
|
|
104
|
+
if (!n && !o || A.disabled) {
|
|
110
105
|
this.safeSetState({
|
|
111
106
|
status: D
|
|
112
107
|
}, function() {
|
|
113
|
-
|
|
108
|
+
e.props.onEntered(l);
|
|
114
109
|
});
|
|
115
110
|
return;
|
|
116
111
|
}
|
|
117
|
-
this.props.onEnter(
|
|
112
|
+
this.props.onEnter(l, d), this.safeSetState({
|
|
118
113
|
status: R
|
|
119
114
|
}, function() {
|
|
120
|
-
|
|
121
|
-
|
|
115
|
+
e.props.onEntering(l, d), e.onTransitionEnd(y, function() {
|
|
116
|
+
e.safeSetState({
|
|
122
117
|
status: D
|
|
123
118
|
}, function() {
|
|
124
|
-
|
|
119
|
+
e.props.onEntered(l, d);
|
|
125
120
|
});
|
|
126
121
|
});
|
|
127
122
|
});
|
|
128
|
-
},
|
|
129
|
-
var n = this,
|
|
130
|
-
if (!
|
|
123
|
+
}, a.performExit = function() {
|
|
124
|
+
var n = this, e = this.props.exit, o = this.getTimeouts(), p = this.props.nodeRef ? void 0 : I.findDOMNode(this);
|
|
125
|
+
if (!e || A.disabled) {
|
|
131
126
|
this.safeSetState({
|
|
132
127
|
status: S
|
|
133
128
|
}, function() {
|
|
134
|
-
n.props.onExited(
|
|
129
|
+
n.props.onExited(p);
|
|
135
130
|
});
|
|
136
131
|
return;
|
|
137
132
|
}
|
|
138
|
-
this.props.onExit(
|
|
139
|
-
status:
|
|
133
|
+
this.props.onExit(p), this.safeSetState({
|
|
134
|
+
status: q
|
|
140
135
|
}, function() {
|
|
141
|
-
n.props.onExiting(
|
|
136
|
+
n.props.onExiting(p), n.onTransitionEnd(o.exit, function() {
|
|
142
137
|
n.safeSetState({
|
|
143
138
|
status: S
|
|
144
139
|
}, function() {
|
|
145
|
-
n.props.onExited(
|
|
140
|
+
n.props.onExited(p);
|
|
146
141
|
});
|
|
147
142
|
});
|
|
148
143
|
});
|
|
149
|
-
},
|
|
144
|
+
}, a.cancelNextCallback = function() {
|
|
150
145
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
var
|
|
155
|
-
return this.nextCallback = function(
|
|
156
|
-
o && (o = !1,
|
|
146
|
+
}, a.safeSetState = function(n, e) {
|
|
147
|
+
e = this.setNextCallback(e), this.setState(n, e);
|
|
148
|
+
}, a.setNextCallback = function(n) {
|
|
149
|
+
var e = this, o = !0;
|
|
150
|
+
return this.nextCallback = function(p) {
|
|
151
|
+
o && (o = !1, e.nextCallback = null, n(p));
|
|
157
152
|
}, this.nextCallback.cancel = function() {
|
|
158
153
|
o = !1;
|
|
159
154
|
}, this.nextCallback;
|
|
160
|
-
},
|
|
161
|
-
this.setNextCallback(
|
|
162
|
-
var o = this.props.nodeRef ? this.props.nodeRef.current :
|
|
163
|
-
if (!o ||
|
|
155
|
+
}, a.onTransitionEnd = function(n, e) {
|
|
156
|
+
this.setNextCallback(e);
|
|
157
|
+
var o = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this), p = n == null && !this.props.addEndListener;
|
|
158
|
+
if (!o || p) {
|
|
164
159
|
setTimeout(this.nextCallback, 0);
|
|
165
160
|
return;
|
|
166
161
|
}
|
|
167
162
|
if (this.props.addEndListener) {
|
|
168
|
-
var
|
|
169
|
-
this.props.addEndListener(
|
|
163
|
+
var u = this.props.nodeRef ? [this.nextCallback] : [o, this.nextCallback], l = u[0], d = u[1];
|
|
164
|
+
this.props.addEndListener(l, d);
|
|
170
165
|
}
|
|
171
166
|
n != null && setTimeout(this.nextCallback, n);
|
|
172
|
-
},
|
|
167
|
+
}, a.render = function() {
|
|
173
168
|
var n = this.state.status;
|
|
174
169
|
if (n === M)
|
|
175
170
|
return null;
|
|
176
|
-
var
|
|
177
|
-
|
|
178
|
-
var
|
|
171
|
+
var e = this.props, o = e.children;
|
|
172
|
+
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;
|
|
173
|
+
var p = ct(e, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
179
174
|
return (
|
|
180
175
|
// allows for nested Transitions
|
|
181
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ F.createElement($.Provider, {
|
|
182
177
|
value: null
|
|
183
|
-
}, typeof o == "function" ? o(n,
|
|
178
|
+
}, typeof o == "function" ? o(n, p) : F.cloneElement(F.Children.only(o), p))
|
|
184
179
|
);
|
|
185
|
-
},
|
|
186
|
-
}(
|
|
187
|
-
x.contextType =
|
|
180
|
+
}, s;
|
|
181
|
+
}(F.Component);
|
|
182
|
+
x.contextType = $;
|
|
188
183
|
x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
189
184
|
/**
|
|
190
185
|
* A React reference to DOM element that need to transition:
|
|
@@ -197,10 +192,10 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
197
192
|
* (see
|
|
198
193
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
199
194
|
*/
|
|
200
|
-
nodeRef:
|
|
201
|
-
current: typeof Element > "u" ?
|
|
202
|
-
var o = r[
|
|
203
|
-
return
|
|
195
|
+
nodeRef: t.shape({
|
|
196
|
+
current: typeof Element > "u" ? t.any : function(r, s, a, i, n, e) {
|
|
197
|
+
var o = r[s];
|
|
198
|
+
return t.instanceOf(o && "ownerDocument" in o ? o.ownerDocument.defaultView.Element : Element)(r, s, a, i, n, e);
|
|
204
199
|
}
|
|
205
200
|
}),
|
|
206
201
|
/**
|
|
@@ -217,23 +212,23 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
217
212
|
* </Transition>
|
|
218
213
|
* ```
|
|
219
214
|
*/
|
|
220
|
-
children:
|
|
215
|
+
children: t.oneOfType([t.func.isRequired, t.element.isRequired]).isRequired,
|
|
221
216
|
/**
|
|
222
217
|
* Show the component; triggers the enter or exit states
|
|
223
218
|
*/
|
|
224
|
-
in:
|
|
219
|
+
in: t.bool,
|
|
225
220
|
/**
|
|
226
221
|
* By default the child component is mounted immediately along with
|
|
227
222
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
228
223
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
229
224
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
230
225
|
*/
|
|
231
|
-
mountOnEnter:
|
|
226
|
+
mountOnEnter: t.bool,
|
|
232
227
|
/**
|
|
233
228
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
234
229
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
235
230
|
*/
|
|
236
|
-
unmountOnExit:
|
|
231
|
+
unmountOnExit: t.bool,
|
|
237
232
|
/**
|
|
238
233
|
* By default the child component does not perform the enter transition when
|
|
239
234
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -245,15 +240,15 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
245
240
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
246
241
|
* > differently.
|
|
247
242
|
*/
|
|
248
|
-
appear:
|
|
243
|
+
appear: t.bool,
|
|
249
244
|
/**
|
|
250
245
|
* Enable or disable enter transitions.
|
|
251
246
|
*/
|
|
252
|
-
enter:
|
|
247
|
+
enter: t.bool,
|
|
253
248
|
/**
|
|
254
249
|
* Enable or disable exit transitions.
|
|
255
250
|
*/
|
|
256
|
-
exit:
|
|
251
|
+
exit: t.bool,
|
|
257
252
|
/**
|
|
258
253
|
* The duration of the transition, in milliseconds.
|
|
259
254
|
* Required unless `addEndListener` is provided.
|
|
@@ -280,12 +275,12 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
280
275
|
*
|
|
281
276
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
282
277
|
*/
|
|
283
|
-
timeout: function(
|
|
284
|
-
var
|
|
285
|
-
|
|
286
|
-
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0),
|
|
287
|
-
n[
|
|
288
|
-
return
|
|
278
|
+
timeout: function(s) {
|
|
279
|
+
var a = ft;
|
|
280
|
+
s.addEndListener || (a = a.isRequired);
|
|
281
|
+
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), e = 1; e < i; e++)
|
|
282
|
+
n[e - 1] = arguments[e];
|
|
283
|
+
return a.apply(void 0, [s].concat(n));
|
|
289
284
|
},
|
|
290
285
|
/**
|
|
291
286
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -301,7 +296,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
301
296
|
* }}
|
|
302
297
|
* ```
|
|
303
298
|
*/
|
|
304
|
-
addEndListener:
|
|
299
|
+
addEndListener: t.func,
|
|
305
300
|
/**
|
|
306
301
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
307
302
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -310,7 +305,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
310
305
|
*
|
|
311
306
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
312
307
|
*/
|
|
313
|
-
onEnter:
|
|
308
|
+
onEnter: t.func,
|
|
314
309
|
/**
|
|
315
310
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
316
311
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -319,7 +314,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
319
314
|
*
|
|
320
315
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
321
316
|
*/
|
|
322
|
-
onEntering:
|
|
317
|
+
onEntering: t.func,
|
|
323
318
|
/**
|
|
324
319
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
325
320
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -328,7 +323,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
328
323
|
*
|
|
329
324
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
330
325
|
*/
|
|
331
|
-
onEntered:
|
|
326
|
+
onEntered: t.func,
|
|
332
327
|
/**
|
|
333
328
|
* Callback fired before the "exiting" status is applied.
|
|
334
329
|
*
|
|
@@ -336,7 +331,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
336
331
|
*
|
|
337
332
|
* @type Function(node: HtmlElement) -> void
|
|
338
333
|
*/
|
|
339
|
-
onExit:
|
|
334
|
+
onExit: t.func,
|
|
340
335
|
/**
|
|
341
336
|
* Callback fired after the "exiting" status is applied.
|
|
342
337
|
*
|
|
@@ -344,7 +339,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
344
339
|
*
|
|
345
340
|
* @type Function(node: HtmlElement) -> void
|
|
346
341
|
*/
|
|
347
|
-
onExiting:
|
|
342
|
+
onExiting: t.func,
|
|
348
343
|
/**
|
|
349
344
|
* Callback fired after the "exited" status is applied.
|
|
350
345
|
*
|
|
@@ -352,7 +347,7 @@ x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
352
347
|
*
|
|
353
348
|
* @type Function(node: HtmlElement) -> void
|
|
354
349
|
*/
|
|
355
|
-
onExited:
|
|
350
|
+
onExited: t.func
|
|
356
351
|
} : {};
|
|
357
352
|
function P() {
|
|
358
353
|
}
|
|
@@ -374,147 +369,147 @@ x.UNMOUNTED = M;
|
|
|
374
369
|
x.EXITED = S;
|
|
375
370
|
x.ENTERING = R;
|
|
376
371
|
x.ENTERED = D;
|
|
377
|
-
x.EXITING =
|
|
378
|
-
function
|
|
372
|
+
x.EXITING = q;
|
|
373
|
+
function G(r, s) {
|
|
379
374
|
const {
|
|
380
|
-
className:
|
|
375
|
+
className: a,
|
|
381
376
|
elementType: i,
|
|
382
377
|
ownerState: n,
|
|
383
|
-
externalForwardedProps:
|
|
378
|
+
externalForwardedProps: e,
|
|
384
379
|
getSlotOwnerState: o,
|
|
385
|
-
internalForwardedProps:
|
|
386
|
-
...
|
|
387
|
-
} =
|
|
388
|
-
component:
|
|
380
|
+
internalForwardedProps: p,
|
|
381
|
+
...u
|
|
382
|
+
} = s, {
|
|
383
|
+
component: l,
|
|
389
384
|
slots: d = {
|
|
390
385
|
[r]: void 0
|
|
391
386
|
},
|
|
392
|
-
slotProps:
|
|
387
|
+
slotProps: v = {
|
|
393
388
|
[r]: void 0
|
|
394
389
|
},
|
|
395
390
|
...y
|
|
396
|
-
} =
|
|
391
|
+
} = e, T = d[r] || i, b = nt(v[r], n), {
|
|
397
392
|
props: {
|
|
398
393
|
component: C,
|
|
399
394
|
...m
|
|
400
395
|
},
|
|
401
396
|
internalRef: g
|
|
402
|
-
} =
|
|
403
|
-
className:
|
|
404
|
-
...
|
|
397
|
+
} = ot({
|
|
398
|
+
className: a,
|
|
399
|
+
...u,
|
|
405
400
|
externalForwardedProps: r === "root" ? y : void 0,
|
|
406
|
-
externalSlotProps:
|
|
407
|
-
}), k =
|
|
401
|
+
externalSlotProps: b
|
|
402
|
+
}), k = X(g, b == null ? void 0 : b.ref, s.ref), O = o ? o(m) : {}, E = {
|
|
408
403
|
...n,
|
|
409
|
-
...
|
|
410
|
-
},
|
|
411
|
-
...r === "root" && !
|
|
412
|
-
...r !== "root" && !d[r] &&
|
|
404
|
+
...O
|
|
405
|
+
}, N = r === "root" ? C || l : C, f = it(T, {
|
|
406
|
+
...r === "root" && !l && !d[r] && p,
|
|
407
|
+
...r !== "root" && !d[r] && p,
|
|
413
408
|
...m,
|
|
414
|
-
...
|
|
415
|
-
as:
|
|
409
|
+
...N && {
|
|
410
|
+
as: N
|
|
416
411
|
},
|
|
417
412
|
ref: k
|
|
418
413
|
}, E);
|
|
419
|
-
return Object.keys(
|
|
414
|
+
return Object.keys(O).forEach((w) => {
|
|
420
415
|
delete f[w];
|
|
421
416
|
}), [T, f];
|
|
422
417
|
}
|
|
423
|
-
const
|
|
424
|
-
function
|
|
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] = G("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] = G("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
|
-
|
|
787
|
-
|
|
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,
|
|
788
|
+
G as u
|
|
788
789
|
};
|