jcicl 0.0.143 → 0.0.145
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/.chunks/ButtonBase.js +1 -1
- package/.chunks/Portal.js +332 -440
- package/.chunks/TextField.js +907 -979
- package/.chunks/TransitionGroupContext.js +2 -2
- package/.chunks/index.js +114 -0
- package/.chunks/useSlot.js +79 -0
- package/Accordion/Accordion.js +9 -10
- package/AppContainer/AppContainer.js +101 -99
- package/Pagination/Pagination.d.ts +6 -0
- package/Pagination/Pagination.js +781 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +1 -0
- package/Tooltip/Tooltip.js +80 -79
- package/package.json +1 -1
package/.chunks/Portal.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { T as
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as p from "react";
|
|
2
|
+
import w from "react";
|
|
3
|
+
import { r as lt, m as pt, a as ft } from "./index.js";
|
|
4
|
+
import { u as H, _ as dt, c as Et, T as B, d as mt, a as F, s as U } from "./TransitionGroupContext.js";
|
|
5
|
+
import { h as ht, P as e, T as xt, i as gt } from "./DefaultPropsProvider.js";
|
|
6
|
+
import { T as vt } from "./emotion-styled.browser.esm.js";
|
|
7
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
8
|
+
import { c as K } from "./chainPropTypes.js";
|
|
9
|
+
import * as Tt from "react-dom";
|
|
10
|
+
import I from "react-dom";
|
|
11
|
+
function yt(n) {
|
|
12
|
+
return Object.keys(n).length === 0;
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
-
const s =
|
|
15
|
-
return !s ||
|
|
14
|
+
function bt(n = null) {
|
|
15
|
+
const s = p.useContext(vt);
|
|
16
|
+
return !s || yt(s) ? n : s;
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
const Nt = ht();
|
|
19
|
+
function Dt(n = Nt) {
|
|
20
|
+
return bt(n);
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function Rt(n) {
|
|
22
23
|
const {
|
|
23
24
|
prototype: s = {}
|
|
24
|
-
} =
|
|
25
|
+
} = n;
|
|
25
26
|
return !!s.isReactComponent;
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
-
const t =
|
|
28
|
+
function J(n, s, a, r, o) {
|
|
29
|
+
const t = n[s], i = o || s;
|
|
29
30
|
if (t == null || // When server-side rendering React doesn't warn either.
|
|
30
31
|
// This is not an accurate check for SSR.
|
|
31
32
|
// This is only in place for Emotion compat.
|
|
@@ -34,329 +35,226 @@ function Y(e, s, o, i, n) {
|
|
|
34
35
|
return null;
|
|
35
36
|
let u;
|
|
36
37
|
const c = t.type;
|
|
37
|
-
return typeof c == "function" && !
|
|
38
|
+
return typeof c == "function" && !Rt(c) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${a}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
function
|
|
43
|
-
return process.env.NODE_ENV === "production" ?
|
|
44
|
-
...
|
|
45
|
-
[
|
|
46
|
-
const
|
|
47
|
-
return
|
|
40
|
+
const Q = K(e.element, J);
|
|
41
|
+
Q.isRequired = K(e.element.isRequired, J);
|
|
42
|
+
const Ot = "exact-prop: ";
|
|
43
|
+
function St(n) {
|
|
44
|
+
return process.env.NODE_ENV === "production" ? n : {
|
|
45
|
+
...n,
|
|
46
|
+
[Ot]: (s) => {
|
|
47
|
+
const a = Object.keys(s).filter((r) => !n.hasOwnProperty(r));
|
|
48
|
+
return a.length > 0 ? new Error(`The following props are not supported: ${a.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function Pt(n, s, a, r, o) {
|
|
52
53
|
if (process.env.NODE_ENV === "production")
|
|
53
54
|
return null;
|
|
54
|
-
const t =
|
|
55
|
-
return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${
|
|
56
|
-
}
|
|
57
|
-
function Je(e) {
|
|
58
|
-
return e && e.ownerDocument || document;
|
|
59
|
-
}
|
|
60
|
-
let z = 0;
|
|
61
|
-
function Se(e) {
|
|
62
|
-
const [s, o] = f.useState(e), i = e || s;
|
|
63
|
-
return f.useEffect(() => {
|
|
64
|
-
s == null && (z += 1, o(`mui-${z}`));
|
|
65
|
-
}, [s]), i;
|
|
66
|
-
}
|
|
67
|
-
const Ie = {
|
|
68
|
-
...f
|
|
69
|
-
}, F = Ie.useId;
|
|
70
|
-
function Ke(e) {
|
|
71
|
-
if (F !== void 0) {
|
|
72
|
-
const s = F();
|
|
73
|
-
return e ?? s;
|
|
74
|
-
}
|
|
75
|
-
return Se(e);
|
|
76
|
-
}
|
|
77
|
-
function Qe({
|
|
78
|
-
controlled: e,
|
|
79
|
-
default: s,
|
|
80
|
-
name: o,
|
|
81
|
-
state: i = "value"
|
|
82
|
-
}) {
|
|
83
|
-
const {
|
|
84
|
-
current: n
|
|
85
|
-
} = f.useRef(e !== void 0), [t, a] = f.useState(s), u = n ? e : t;
|
|
86
|
-
if (process.env.NODE_ENV !== "production") {
|
|
87
|
-
f.useEffect(() => {
|
|
88
|
-
n !== (e !== void 0) && console.error([`MUI: A component is changing the ${n ? "" : "un"}controlled ${i} state of ${o} to be ${n ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
89
|
-
`));
|
|
90
|
-
}, [i, o, e]);
|
|
91
|
-
const {
|
|
92
|
-
current: l
|
|
93
|
-
} = f.useRef(s);
|
|
94
|
-
f.useEffect(() => {
|
|
95
|
-
!n && !Object.is(l, s) && console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
96
|
-
`));
|
|
97
|
-
}, [JSON.stringify(s)]);
|
|
98
|
-
}
|
|
99
|
-
const c = f.useCallback((l) => {
|
|
100
|
-
n || a(l);
|
|
101
|
-
}, []);
|
|
102
|
-
return [u, c];
|
|
103
|
-
}
|
|
104
|
-
function ke(e) {
|
|
105
|
-
return typeof e == "string";
|
|
106
|
-
}
|
|
107
|
-
function $e(e, s, o) {
|
|
108
|
-
return e === void 0 || ke(e) ? s : {
|
|
109
|
-
...s,
|
|
110
|
-
ownerState: {
|
|
111
|
-
...s.ownerState,
|
|
112
|
-
...o
|
|
113
|
-
}
|
|
114
|
-
};
|
|
55
|
+
const t = n[s], i = o || s;
|
|
56
|
+
return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${a}\`. Expected an HTMLElement.`) : null;
|
|
115
57
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
-
return {};
|
|
119
|
-
const o = {};
|
|
120
|
-
return Object.keys(e).filter((i) => i.match(/^on[A-Z]/) && typeof e[i] == "function" && !s.includes(i)).forEach((i) => {
|
|
121
|
-
o[i] = e[i];
|
|
122
|
-
}), o;
|
|
58
|
+
function Xt(n) {
|
|
59
|
+
return n && n.ownerDocument || document;
|
|
123
60
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}), s;
|
|
61
|
+
let q = 0;
|
|
62
|
+
function Ct(n) {
|
|
63
|
+
const [s, a] = p.useState(n), r = n || s;
|
|
64
|
+
return p.useEffect(() => {
|
|
65
|
+
s == null && (q += 1, a(`mui-${q}`));
|
|
66
|
+
}, [s]), r;
|
|
131
67
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
} = e;
|
|
140
|
-
if (!s) {
|
|
141
|
-
const k = W(o == null ? void 0 : o.className, t, n == null ? void 0 : n.className, i == null ? void 0 : i.className), N = {
|
|
142
|
-
...o == null ? void 0 : o.style,
|
|
143
|
-
...n == null ? void 0 : n.style,
|
|
144
|
-
...i == null ? void 0 : i.style
|
|
145
|
-
}, E = {
|
|
146
|
-
...o,
|
|
147
|
-
...n,
|
|
148
|
-
...i
|
|
149
|
-
};
|
|
150
|
-
return k.length > 0 && (E.className = k), Object.keys(N).length > 0 && (E.style = N), {
|
|
151
|
-
props: E,
|
|
152
|
-
internalRef: void 0
|
|
153
|
-
};
|
|
68
|
+
const wt = {
|
|
69
|
+
...p
|
|
70
|
+
}, W = wt.useId;
|
|
71
|
+
function zt(n) {
|
|
72
|
+
if (W !== void 0) {
|
|
73
|
+
const s = W();
|
|
74
|
+
return n ?? s;
|
|
154
75
|
}
|
|
155
|
-
|
|
156
|
-
...n,
|
|
157
|
-
...i
|
|
158
|
-
}), u = Z(i), c = Z(n), l = s(a), p = W(l == null ? void 0 : l.className, o == null ? void 0 : o.className, t, n == null ? void 0 : n.className, i == null ? void 0 : i.className), m = {
|
|
159
|
-
...l == null ? void 0 : l.style,
|
|
160
|
-
...o == null ? void 0 : o.style,
|
|
161
|
-
...n == null ? void 0 : n.style,
|
|
162
|
-
...i == null ? void 0 : i.style
|
|
163
|
-
}, y = {
|
|
164
|
-
...l,
|
|
165
|
-
...o,
|
|
166
|
-
...c,
|
|
167
|
-
...u
|
|
168
|
-
};
|
|
169
|
-
return p.length > 0 && (y.className = p), Object.keys(m).length > 0 && (y.style = m), {
|
|
170
|
-
props: y,
|
|
171
|
-
internalRef: l.ref
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
function Me(e, s, o) {
|
|
175
|
-
return typeof e == "function" ? e(s, o) : e;
|
|
76
|
+
return Ct(n);
|
|
176
77
|
}
|
|
177
|
-
function
|
|
178
|
-
var
|
|
78
|
+
function Bt(n) {
|
|
79
|
+
var h;
|
|
179
80
|
const {
|
|
180
81
|
elementType: s,
|
|
181
|
-
externalSlotProps:
|
|
182
|
-
ownerState:
|
|
183
|
-
skipResolvingSlotProps:
|
|
82
|
+
externalSlotProps: a,
|
|
83
|
+
ownerState: r,
|
|
84
|
+
skipResolvingSlotProps: o = !1,
|
|
184
85
|
...t
|
|
185
|
-
} =
|
|
86
|
+
} = n, i = o ? {} : lt(a, r), {
|
|
186
87
|
props: u,
|
|
187
88
|
internalRef: c
|
|
188
|
-
} =
|
|
89
|
+
} = pt({
|
|
189
90
|
...t,
|
|
190
|
-
externalSlotProps:
|
|
191
|
-
}),
|
|
192
|
-
return
|
|
91
|
+
externalSlotProps: i
|
|
92
|
+
}), f = H(c, i == null ? void 0 : i.ref, (h = n.additionalProps) == null ? void 0 : h.ref);
|
|
93
|
+
return ft(s, {
|
|
193
94
|
...u,
|
|
194
|
-
ref:
|
|
195
|
-
},
|
|
95
|
+
ref: f
|
|
96
|
+
}, r);
|
|
196
97
|
}
|
|
197
|
-
function
|
|
98
|
+
function Y(n) {
|
|
198
99
|
var s;
|
|
199
|
-
return parseInt(
|
|
100
|
+
return parseInt(p.version, 10) >= 19 ? ((s = n == null ? void 0 : n.props) == null ? void 0 : s.ref) || null : (n == null ? void 0 : n.ref) || null;
|
|
200
101
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
function Le() {
|
|
205
|
-
const e = Ne(me);
|
|
206
|
-
return process.env.NODE_ENV !== "production" && f.useDebugValue(e), e[pe] || e;
|
|
102
|
+
function It() {
|
|
103
|
+
const n = Dt(gt);
|
|
104
|
+
return process.env.NODE_ENV !== "production" && p.useDebugValue(n), n[xt] || n;
|
|
207
105
|
}
|
|
208
|
-
const
|
|
106
|
+
const X = {
|
|
209
107
|
disabled: !1
|
|
210
108
|
};
|
|
211
|
-
var
|
|
212
|
-
enter:
|
|
213
|
-
exit:
|
|
214
|
-
appear:
|
|
109
|
+
var _t = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
|
|
110
|
+
enter: e.number,
|
|
111
|
+
exit: e.number,
|
|
112
|
+
appear: e.number
|
|
215
113
|
}).isRequired]) : null;
|
|
216
|
-
process.env.NODE_ENV !== "production" &&
|
|
217
|
-
enter:
|
|
218
|
-
exit:
|
|
219
|
-
active:
|
|
220
|
-
}),
|
|
221
|
-
enter:
|
|
222
|
-
enterDone:
|
|
223
|
-
enterActive:
|
|
224
|
-
exit:
|
|
225
|
-
exitDone:
|
|
226
|
-
exitActive:
|
|
114
|
+
process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
|
|
115
|
+
enter: e.string,
|
|
116
|
+
exit: e.string,
|
|
117
|
+
active: e.string
|
|
118
|
+
}), e.shape({
|
|
119
|
+
enter: e.string,
|
|
120
|
+
enterDone: e.string,
|
|
121
|
+
enterActive: e.string,
|
|
122
|
+
exit: e.string,
|
|
123
|
+
exitDone: e.string,
|
|
124
|
+
exitActive: e.string
|
|
227
125
|
})]);
|
|
228
|
-
var
|
|
126
|
+
var kt = function(s) {
|
|
229
127
|
return s.scrollTop;
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
function s(
|
|
128
|
+
}, S = "unmounted", T = "exited", y = "entering", O = "entered", V = "exiting", E = /* @__PURE__ */ function(n) {
|
|
129
|
+
dt(s, n);
|
|
130
|
+
function s(r, o) {
|
|
233
131
|
var t;
|
|
234
|
-
t =
|
|
235
|
-
var
|
|
236
|
-
return t.appearStatus = null,
|
|
132
|
+
t = n.call(this, r, o) || this;
|
|
133
|
+
var i = o, u = i && !i.isMounting ? r.enter : r.appear, c;
|
|
134
|
+
return t.appearStatus = null, r.in ? u ? (c = T, t.appearStatus = y) : c = O : r.unmountOnExit || r.mountOnEnter ? c = S : c = T, t.state = {
|
|
237
135
|
status: c
|
|
238
136
|
}, t.nextCallback = null, t;
|
|
239
137
|
}
|
|
240
|
-
s.getDerivedStateFromProps = function(
|
|
241
|
-
var
|
|
242
|
-
return
|
|
138
|
+
s.getDerivedStateFromProps = function(o, t) {
|
|
139
|
+
var i = o.in;
|
|
140
|
+
return i && t.status === S ? {
|
|
243
141
|
status: T
|
|
244
142
|
} : null;
|
|
245
143
|
};
|
|
246
|
-
var
|
|
247
|
-
return
|
|
144
|
+
var a = s.prototype;
|
|
145
|
+
return a.componentDidMount = function() {
|
|
248
146
|
this.updateStatus(!0, this.appearStatus);
|
|
249
|
-
},
|
|
147
|
+
}, a.componentDidUpdate = function(o) {
|
|
250
148
|
var t = null;
|
|
251
|
-
if (
|
|
252
|
-
var
|
|
253
|
-
this.props.in ?
|
|
149
|
+
if (o !== this.props) {
|
|
150
|
+
var i = this.state.status;
|
|
151
|
+
this.props.in ? i !== y && i !== O && (t = y) : (i === y || i === O) && (t = V);
|
|
254
152
|
}
|
|
255
153
|
this.updateStatus(!1, t);
|
|
256
|
-
},
|
|
154
|
+
}, a.componentWillUnmount = function() {
|
|
257
155
|
this.cancelNextCallback();
|
|
258
|
-
},
|
|
259
|
-
var
|
|
260
|
-
return t =
|
|
156
|
+
}, a.getTimeouts = function() {
|
|
157
|
+
var o = this.props.timeout, t, i, u;
|
|
158
|
+
return t = i = u = o, o != null && typeof o != "number" && (t = o.exit, i = o.enter, u = o.appear !== void 0 ? o.appear : i), {
|
|
261
159
|
exit: t,
|
|
262
|
-
enter:
|
|
160
|
+
enter: i,
|
|
263
161
|
appear: u
|
|
264
162
|
};
|
|
265
|
-
},
|
|
266
|
-
if (
|
|
267
|
-
if (this.cancelNextCallback(), t ===
|
|
163
|
+
}, a.updateStatus = function(o, t) {
|
|
164
|
+
if (o === void 0 && (o = !1), t !== null)
|
|
165
|
+
if (this.cancelNextCallback(), t === y) {
|
|
268
166
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
269
|
-
var
|
|
270
|
-
|
|
167
|
+
var i = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this);
|
|
168
|
+
i && kt(i);
|
|
271
169
|
}
|
|
272
|
-
this.performEnter(
|
|
170
|
+
this.performEnter(o);
|
|
273
171
|
} else
|
|
274
172
|
this.performExit();
|
|
275
173
|
else this.props.unmountOnExit && this.state.status === T && this.setState({
|
|
276
|
-
status:
|
|
174
|
+
status: S
|
|
277
175
|
});
|
|
278
|
-
},
|
|
279
|
-
var t = this,
|
|
280
|
-
if (!
|
|
176
|
+
}, a.performEnter = function(o) {
|
|
177
|
+
var t = this, i = this.props.enter, u = this.context ? this.context.isMounting : o, c = this.props.nodeRef ? [u] : [I.findDOMNode(this), u], f = c[0], m = c[1], h = this.getTimeouts(), _ = u ? h.appear : h.enter;
|
|
178
|
+
if (!o && !i || X.disabled) {
|
|
281
179
|
this.safeSetState({
|
|
282
|
-
status:
|
|
180
|
+
status: O
|
|
283
181
|
}, function() {
|
|
284
|
-
t.props.onEntered(
|
|
182
|
+
t.props.onEntered(f);
|
|
285
183
|
});
|
|
286
184
|
return;
|
|
287
185
|
}
|
|
288
|
-
this.props.onEnter(
|
|
289
|
-
status:
|
|
186
|
+
this.props.onEnter(f, m), this.safeSetState({
|
|
187
|
+
status: y
|
|
290
188
|
}, function() {
|
|
291
|
-
t.props.onEntering(
|
|
189
|
+
t.props.onEntering(f, m), t.onTransitionEnd(_, function() {
|
|
292
190
|
t.safeSetState({
|
|
293
|
-
status:
|
|
191
|
+
status: O
|
|
294
192
|
}, function() {
|
|
295
|
-
t.props.onEntered(
|
|
193
|
+
t.props.onEntered(f, m);
|
|
296
194
|
});
|
|
297
195
|
});
|
|
298
196
|
});
|
|
299
|
-
},
|
|
300
|
-
var
|
|
301
|
-
if (!t ||
|
|
197
|
+
}, a.performExit = function() {
|
|
198
|
+
var o = this, t = this.props.exit, i = this.getTimeouts(), u = this.props.nodeRef ? void 0 : I.findDOMNode(this);
|
|
199
|
+
if (!t || X.disabled) {
|
|
302
200
|
this.safeSetState({
|
|
303
201
|
status: T
|
|
304
202
|
}, function() {
|
|
305
|
-
|
|
203
|
+
o.props.onExited(u);
|
|
306
204
|
});
|
|
307
205
|
return;
|
|
308
206
|
}
|
|
309
207
|
this.props.onExit(u), this.safeSetState({
|
|
310
|
-
status:
|
|
208
|
+
status: V
|
|
311
209
|
}, function() {
|
|
312
|
-
|
|
313
|
-
|
|
210
|
+
o.props.onExiting(u), o.onTransitionEnd(i.exit, function() {
|
|
211
|
+
o.safeSetState({
|
|
314
212
|
status: T
|
|
315
213
|
}, function() {
|
|
316
|
-
|
|
214
|
+
o.props.onExited(u);
|
|
317
215
|
});
|
|
318
216
|
});
|
|
319
217
|
});
|
|
320
|
-
},
|
|
218
|
+
}, a.cancelNextCallback = function() {
|
|
321
219
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
322
|
-
},
|
|
323
|
-
t = this.setNextCallback(t), this.setState(
|
|
324
|
-
},
|
|
325
|
-
var t = this,
|
|
220
|
+
}, a.safeSetState = function(o, t) {
|
|
221
|
+
t = this.setNextCallback(t), this.setState(o, t);
|
|
222
|
+
}, a.setNextCallback = function(o) {
|
|
223
|
+
var t = this, i = !0;
|
|
326
224
|
return this.nextCallback = function(u) {
|
|
327
|
-
|
|
225
|
+
i && (i = !1, t.nextCallback = null, o(u));
|
|
328
226
|
}, this.nextCallback.cancel = function() {
|
|
329
|
-
|
|
227
|
+
i = !1;
|
|
330
228
|
}, this.nextCallback;
|
|
331
|
-
},
|
|
229
|
+
}, a.onTransitionEnd = function(o, t) {
|
|
332
230
|
this.setNextCallback(t);
|
|
333
|
-
var
|
|
334
|
-
if (!
|
|
231
|
+
var i = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this), u = o == null && !this.props.addEndListener;
|
|
232
|
+
if (!i || u) {
|
|
335
233
|
setTimeout(this.nextCallback, 0);
|
|
336
234
|
return;
|
|
337
235
|
}
|
|
338
236
|
if (this.props.addEndListener) {
|
|
339
|
-
var c = this.props.nodeRef ? [this.nextCallback] : [
|
|
340
|
-
this.props.addEndListener(
|
|
237
|
+
var c = this.props.nodeRef ? [this.nextCallback] : [i, this.nextCallback], f = c[0], m = c[1];
|
|
238
|
+
this.props.addEndListener(f, m);
|
|
341
239
|
}
|
|
342
|
-
|
|
343
|
-
},
|
|
344
|
-
var
|
|
345
|
-
if (
|
|
240
|
+
o != null && setTimeout(this.nextCallback, o);
|
|
241
|
+
}, a.render = function() {
|
|
242
|
+
var o = this.state.status;
|
|
243
|
+
if (o === S)
|
|
346
244
|
return null;
|
|
347
|
-
var t = this.props,
|
|
245
|
+
var t = this.props, i = t.children;
|
|
348
246
|
t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
|
|
349
|
-
var u =
|
|
247
|
+
var u = Et(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
350
248
|
return (
|
|
351
249
|
// allows for nested Transitions
|
|
352
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ w.createElement(B.Provider, {
|
|
353
251
|
value: null
|
|
354
|
-
}, typeof
|
|
252
|
+
}, typeof i == "function" ? i(o, u) : w.cloneElement(w.Children.only(i), u))
|
|
355
253
|
);
|
|
356
254
|
}, s;
|
|
357
|
-
}(
|
|
358
|
-
|
|
359
|
-
|
|
255
|
+
}(w.Component);
|
|
256
|
+
E.contextType = B;
|
|
257
|
+
E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
360
258
|
/**
|
|
361
259
|
* A React reference to DOM element that need to transition:
|
|
362
260
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -368,10 +266,10 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
368
266
|
* (see
|
|
369
267
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
370
268
|
*/
|
|
371
|
-
nodeRef:
|
|
372
|
-
current: typeof Element > "u" ?
|
|
373
|
-
var
|
|
374
|
-
return
|
|
269
|
+
nodeRef: e.shape({
|
|
270
|
+
current: typeof Element > "u" ? e.any : function(n, s, a, r, o, t) {
|
|
271
|
+
var i = n[s];
|
|
272
|
+
return e.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(n, s, a, r, o, t);
|
|
375
273
|
}
|
|
376
274
|
}),
|
|
377
275
|
/**
|
|
@@ -388,23 +286,23 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
388
286
|
* </Transition>
|
|
389
287
|
* ```
|
|
390
288
|
*/
|
|
391
|
-
children:
|
|
289
|
+
children: e.oneOfType([e.func.isRequired, e.element.isRequired]).isRequired,
|
|
392
290
|
/**
|
|
393
291
|
* Show the component; triggers the enter or exit states
|
|
394
292
|
*/
|
|
395
|
-
in:
|
|
293
|
+
in: e.bool,
|
|
396
294
|
/**
|
|
397
295
|
* By default the child component is mounted immediately along with
|
|
398
296
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
399
297
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
400
298
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
401
299
|
*/
|
|
402
|
-
mountOnEnter:
|
|
300
|
+
mountOnEnter: e.bool,
|
|
403
301
|
/**
|
|
404
302
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
405
303
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
406
304
|
*/
|
|
407
|
-
unmountOnExit:
|
|
305
|
+
unmountOnExit: e.bool,
|
|
408
306
|
/**
|
|
409
307
|
* By default the child component does not perform the enter transition when
|
|
410
308
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -416,15 +314,15 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
416
314
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
417
315
|
* > differently.
|
|
418
316
|
*/
|
|
419
|
-
appear:
|
|
317
|
+
appear: e.bool,
|
|
420
318
|
/**
|
|
421
319
|
* Enable or disable enter transitions.
|
|
422
320
|
*/
|
|
423
|
-
enter:
|
|
321
|
+
enter: e.bool,
|
|
424
322
|
/**
|
|
425
323
|
* Enable or disable exit transitions.
|
|
426
324
|
*/
|
|
427
|
-
exit:
|
|
325
|
+
exit: e.bool,
|
|
428
326
|
/**
|
|
429
327
|
* The duration of the transition, in milliseconds.
|
|
430
328
|
* Required unless `addEndListener` is provided.
|
|
@@ -452,11 +350,11 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
452
350
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
453
351
|
*/
|
|
454
352
|
timeout: function(s) {
|
|
455
|
-
var
|
|
456
|
-
s.addEndListener || (
|
|
457
|
-
for (var
|
|
458
|
-
|
|
459
|
-
return
|
|
353
|
+
var a = _t;
|
|
354
|
+
s.addEndListener || (a = a.isRequired);
|
|
355
|
+
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
|
|
356
|
+
o[t - 1] = arguments[t];
|
|
357
|
+
return a.apply(void 0, [s].concat(o));
|
|
460
358
|
},
|
|
461
359
|
/**
|
|
462
360
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -472,7 +370,7 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
472
370
|
* }}
|
|
473
371
|
* ```
|
|
474
372
|
*/
|
|
475
|
-
addEndListener:
|
|
373
|
+
addEndListener: e.func,
|
|
476
374
|
/**
|
|
477
375
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
478
376
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -481,7 +379,7 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
481
379
|
*
|
|
482
380
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
483
381
|
*/
|
|
484
|
-
onEnter:
|
|
382
|
+
onEnter: e.func,
|
|
485
383
|
/**
|
|
486
384
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
487
385
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -490,7 +388,7 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
490
388
|
*
|
|
491
389
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
492
390
|
*/
|
|
493
|
-
onEntering:
|
|
391
|
+
onEntering: e.func,
|
|
494
392
|
/**
|
|
495
393
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
496
394
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -499,7 +397,7 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
499
397
|
*
|
|
500
398
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
501
399
|
*/
|
|
502
|
-
onEntered:
|
|
400
|
+
onEntered: e.func,
|
|
503
401
|
/**
|
|
504
402
|
* Callback fired before the "exiting" status is applied.
|
|
505
403
|
*
|
|
@@ -507,7 +405,7 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
507
405
|
*
|
|
508
406
|
* @type Function(node: HtmlElement) -> void
|
|
509
407
|
*/
|
|
510
|
-
onExit:
|
|
408
|
+
onExit: e.func,
|
|
511
409
|
/**
|
|
512
410
|
* Callback fired after the "exiting" status is applied.
|
|
513
411
|
*
|
|
@@ -515,7 +413,7 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
515
413
|
*
|
|
516
414
|
* @type Function(node: HtmlElement) -> void
|
|
517
415
|
*/
|
|
518
|
-
onExiting:
|
|
416
|
+
onExiting: e.func,
|
|
519
417
|
/**
|
|
520
418
|
* Callback fired after the "exited" status is applied.
|
|
521
419
|
*
|
|
@@ -523,151 +421,151 @@ g.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
523
421
|
*
|
|
524
422
|
* @type Function(node: HtmlElement) -> void
|
|
525
423
|
*/
|
|
526
|
-
onExited:
|
|
424
|
+
onExited: e.func
|
|
527
425
|
} : {};
|
|
528
|
-
function
|
|
426
|
+
function R() {
|
|
529
427
|
}
|
|
530
|
-
|
|
428
|
+
E.defaultProps = {
|
|
531
429
|
in: !1,
|
|
532
430
|
mountOnEnter: !1,
|
|
533
431
|
unmountOnExit: !1,
|
|
534
432
|
appear: !1,
|
|
535
433
|
enter: !0,
|
|
536
434
|
exit: !0,
|
|
537
|
-
onEnter:
|
|
538
|
-
onEntering:
|
|
539
|
-
onEntered:
|
|
540
|
-
onExit:
|
|
541
|
-
onExiting:
|
|
542
|
-
onExited:
|
|
435
|
+
onEnter: R,
|
|
436
|
+
onEntering: R,
|
|
437
|
+
onEntered: R,
|
|
438
|
+
onExit: R,
|
|
439
|
+
onExiting: R,
|
|
440
|
+
onExited: R
|
|
543
441
|
};
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
function
|
|
442
|
+
E.UNMOUNTED = S;
|
|
443
|
+
E.EXITED = T;
|
|
444
|
+
E.ENTERING = y;
|
|
445
|
+
E.ENTERED = O;
|
|
446
|
+
E.EXITING = V;
|
|
447
|
+
const Lt = (n) => n.scrollTop;
|
|
448
|
+
function z(n, s) {
|
|
551
449
|
const {
|
|
552
|
-
timeout:
|
|
553
|
-
easing:
|
|
554
|
-
style:
|
|
555
|
-
} =
|
|
450
|
+
timeout: a,
|
|
451
|
+
easing: r,
|
|
452
|
+
style: o = {}
|
|
453
|
+
} = n;
|
|
556
454
|
return {
|
|
557
|
-
duration:
|
|
558
|
-
easing:
|
|
559
|
-
delay:
|
|
455
|
+
duration: o.transitionDuration ?? (typeof a == "number" ? a : a[s.mode] || 0),
|
|
456
|
+
easing: o.transitionTimingFunction ?? (typeof r == "object" ? r[s.mode] : r),
|
|
457
|
+
delay: o.transitionDelay
|
|
560
458
|
};
|
|
561
459
|
}
|
|
562
|
-
function
|
|
563
|
-
return `scale(${
|
|
460
|
+
function A(n) {
|
|
461
|
+
return `scale(${n}, ${n ** 2})`;
|
|
564
462
|
}
|
|
565
|
-
const
|
|
463
|
+
const Mt = {
|
|
566
464
|
entering: {
|
|
567
465
|
opacity: 1,
|
|
568
|
-
transform:
|
|
466
|
+
transform: A(1)
|
|
569
467
|
},
|
|
570
468
|
entered: {
|
|
571
469
|
opacity: 1,
|
|
572
470
|
transform: "none"
|
|
573
471
|
}
|
|
574
|
-
},
|
|
472
|
+
}, M = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), j = /* @__PURE__ */ p.forwardRef(function(s, a) {
|
|
575
473
|
const {
|
|
576
|
-
addEndListener:
|
|
577
|
-
appear:
|
|
474
|
+
addEndListener: r,
|
|
475
|
+
appear: o = !0,
|
|
578
476
|
children: t,
|
|
579
|
-
easing:
|
|
477
|
+
easing: i,
|
|
580
478
|
in: u,
|
|
581
479
|
onEnter: c,
|
|
582
|
-
onEntered:
|
|
583
|
-
onEntering:
|
|
584
|
-
onExit:
|
|
585
|
-
onExited:
|
|
586
|
-
onExiting:
|
|
587
|
-
style:
|
|
588
|
-
timeout:
|
|
480
|
+
onEntered: f,
|
|
481
|
+
onEntering: m,
|
|
482
|
+
onExit: h,
|
|
483
|
+
onExited: _,
|
|
484
|
+
onExiting: Z,
|
|
485
|
+
style: k,
|
|
486
|
+
timeout: v = "auto",
|
|
589
487
|
// eslint-disable-next-line react/prop-types
|
|
590
|
-
TransitionComponent:
|
|
591
|
-
...
|
|
592
|
-
} = s,
|
|
593
|
-
if (
|
|
594
|
-
const
|
|
595
|
-
|
|
488
|
+
TransitionComponent: tt = E,
|
|
489
|
+
...et
|
|
490
|
+
} = s, nt = mt(), L = p.useRef(), b = It(), P = p.useRef(null), ot = H(P, Y(t), a), N = (l) => (x) => {
|
|
491
|
+
if (l) {
|
|
492
|
+
const g = P.current;
|
|
493
|
+
x === void 0 ? l(g) : l(g, x);
|
|
596
494
|
}
|
|
597
|
-
},
|
|
598
|
-
|
|
495
|
+
}, it = N(m), rt = N((l, x) => {
|
|
496
|
+
Lt(l);
|
|
599
497
|
const {
|
|
600
|
-
duration:
|
|
601
|
-
delay:
|
|
602
|
-
easing:
|
|
603
|
-
} =
|
|
604
|
-
style:
|
|
605
|
-
timeout:
|
|
606
|
-
easing:
|
|
498
|
+
duration: g,
|
|
499
|
+
delay: C,
|
|
500
|
+
easing: d
|
|
501
|
+
} = z({
|
|
502
|
+
style: k,
|
|
503
|
+
timeout: v,
|
|
504
|
+
easing: i
|
|
607
505
|
}, {
|
|
608
506
|
mode: "enter"
|
|
609
507
|
});
|
|
610
508
|
let D;
|
|
611
|
-
|
|
509
|
+
v === "auto" ? (D = b.transitions.getAutoHeightDuration(l.clientHeight), L.current = D) : D = g, l.style.transition = [b.transitions.create("opacity", {
|
|
612
510
|
duration: D,
|
|
613
|
-
delay:
|
|
614
|
-
}),
|
|
615
|
-
duration:
|
|
616
|
-
delay:
|
|
617
|
-
easing:
|
|
618
|
-
})].join(","), c && c(
|
|
619
|
-
}),
|
|
511
|
+
delay: C
|
|
512
|
+
}), b.transitions.create("transform", {
|
|
513
|
+
duration: M ? D : D * 0.666,
|
|
514
|
+
delay: C,
|
|
515
|
+
easing: d
|
|
516
|
+
})].join(","), c && c(l, x);
|
|
517
|
+
}), st = N(f), at = N(Z), ut = N((l) => {
|
|
620
518
|
const {
|
|
621
|
-
duration:
|
|
622
|
-
delay:
|
|
623
|
-
easing:
|
|
624
|
-
} =
|
|
625
|
-
style:
|
|
626
|
-
timeout:
|
|
627
|
-
easing:
|
|
519
|
+
duration: x,
|
|
520
|
+
delay: g,
|
|
521
|
+
easing: C
|
|
522
|
+
} = z({
|
|
523
|
+
style: k,
|
|
524
|
+
timeout: v,
|
|
525
|
+
easing: i
|
|
628
526
|
}, {
|
|
629
527
|
mode: "exit"
|
|
630
528
|
});
|
|
631
|
-
let
|
|
632
|
-
|
|
633
|
-
duration:
|
|
634
|
-
delay:
|
|
635
|
-
}),
|
|
636
|
-
duration:
|
|
637
|
-
delay:
|
|
638
|
-
easing:
|
|
639
|
-
})].join(","),
|
|
640
|
-
}),
|
|
641
|
-
return /* @__PURE__ */
|
|
642
|
-
appear:
|
|
529
|
+
let d;
|
|
530
|
+
v === "auto" ? (d = b.transitions.getAutoHeightDuration(l.clientHeight), L.current = d) : d = x, l.style.transition = [b.transitions.create("opacity", {
|
|
531
|
+
duration: d,
|
|
532
|
+
delay: g
|
|
533
|
+
}), b.transitions.create("transform", {
|
|
534
|
+
duration: M ? d : d * 0.666,
|
|
535
|
+
delay: M ? g : g || d * 0.333,
|
|
536
|
+
easing: C
|
|
537
|
+
})].join(","), l.style.opacity = 0, l.style.transform = A(0.75), h && h(l);
|
|
538
|
+
}), ct = N(_);
|
|
539
|
+
return /* @__PURE__ */ $(tt, {
|
|
540
|
+
appear: o,
|
|
643
541
|
in: u,
|
|
644
|
-
nodeRef:
|
|
645
|
-
onEnter:
|
|
646
|
-
onEntered:
|
|
647
|
-
onEntering:
|
|
648
|
-
onExit:
|
|
649
|
-
onExited:
|
|
650
|
-
onExiting:
|
|
651
|
-
addEndListener: (
|
|
652
|
-
|
|
542
|
+
nodeRef: P,
|
|
543
|
+
onEnter: rt,
|
|
544
|
+
onEntered: st,
|
|
545
|
+
onEntering: it,
|
|
546
|
+
onExit: ut,
|
|
547
|
+
onExited: ct,
|
|
548
|
+
onExiting: at,
|
|
549
|
+
addEndListener: (l) => {
|
|
550
|
+
v === "auto" && nt.start(L.current || 0, l), r && r(P.current, l);
|
|
653
551
|
},
|
|
654
|
-
timeout:
|
|
655
|
-
...
|
|
656
|
-
children: (
|
|
552
|
+
timeout: v === "auto" ? null : v,
|
|
553
|
+
...et,
|
|
554
|
+
children: (l, x) => /* @__PURE__ */ p.cloneElement(t, {
|
|
657
555
|
style: {
|
|
658
556
|
opacity: 0,
|
|
659
|
-
transform:
|
|
660
|
-
visibility:
|
|
661
|
-
...
|
|
662
|
-
...
|
|
557
|
+
transform: A(0.75),
|
|
558
|
+
visibility: l === "exited" && !u ? "hidden" : void 0,
|
|
559
|
+
...Mt[l],
|
|
560
|
+
...k,
|
|
663
561
|
...t.props.style
|
|
664
562
|
},
|
|
665
|
-
ref:
|
|
666
|
-
...
|
|
563
|
+
ref: ot,
|
|
564
|
+
...x
|
|
667
565
|
})
|
|
668
566
|
});
|
|
669
567
|
});
|
|
670
|
-
process.env.NODE_ENV !== "production" && (
|
|
568
|
+
process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
671
569
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
672
570
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
673
571
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -677,57 +575,57 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
|
677
575
|
* node and a done callback. Allows for more fine grained transition end
|
|
678
576
|
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
679
577
|
*/
|
|
680
|
-
addEndListener:
|
|
578
|
+
addEndListener: e.func,
|
|
681
579
|
/**
|
|
682
580
|
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
683
581
|
* Set this to `false` to disable this behavior.
|
|
684
582
|
* @default true
|
|
685
583
|
*/
|
|
686
|
-
appear:
|
|
584
|
+
appear: e.bool,
|
|
687
585
|
/**
|
|
688
586
|
* A single child content element.
|
|
689
587
|
*/
|
|
690
|
-
children:
|
|
588
|
+
children: Q.isRequired,
|
|
691
589
|
/**
|
|
692
590
|
* The transition timing function.
|
|
693
591
|
* You may specify a single easing or a object containing enter and exit values.
|
|
694
592
|
*/
|
|
695
|
-
easing:
|
|
696
|
-
enter:
|
|
697
|
-
exit:
|
|
698
|
-
}),
|
|
593
|
+
easing: e.oneOfType([e.shape({
|
|
594
|
+
enter: e.string,
|
|
595
|
+
exit: e.string
|
|
596
|
+
}), e.string]),
|
|
699
597
|
/**
|
|
700
598
|
* If `true`, the component will transition in.
|
|
701
599
|
*/
|
|
702
|
-
in:
|
|
600
|
+
in: e.bool,
|
|
703
601
|
/**
|
|
704
602
|
* @ignore
|
|
705
603
|
*/
|
|
706
|
-
onEnter:
|
|
604
|
+
onEnter: e.func,
|
|
707
605
|
/**
|
|
708
606
|
* @ignore
|
|
709
607
|
*/
|
|
710
|
-
onEntered:
|
|
608
|
+
onEntered: e.func,
|
|
711
609
|
/**
|
|
712
610
|
* @ignore
|
|
713
611
|
*/
|
|
714
|
-
onEntering:
|
|
612
|
+
onEntering: e.func,
|
|
715
613
|
/**
|
|
716
614
|
* @ignore
|
|
717
615
|
*/
|
|
718
|
-
onExit:
|
|
616
|
+
onExit: e.func,
|
|
719
617
|
/**
|
|
720
618
|
* @ignore
|
|
721
619
|
*/
|
|
722
|
-
onExited:
|
|
620
|
+
onExited: e.func,
|
|
723
621
|
/**
|
|
724
622
|
* @ignore
|
|
725
623
|
*/
|
|
726
|
-
onExiting:
|
|
624
|
+
onExiting: e.func,
|
|
727
625
|
/**
|
|
728
626
|
* @ignore
|
|
729
627
|
*/
|
|
730
|
-
style:
|
|
628
|
+
style: e.object,
|
|
731
629
|
/**
|
|
732
630
|
* The duration for the transition, in milliseconds.
|
|
733
631
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -735,42 +633,42 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
|
735
633
|
* Set to 'auto' to automatically calculate transition time based on height.
|
|
736
634
|
* @default 'auto'
|
|
737
635
|
*/
|
|
738
|
-
timeout:
|
|
739
|
-
appear:
|
|
740
|
-
enter:
|
|
741
|
-
exit:
|
|
636
|
+
timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
637
|
+
appear: e.number,
|
|
638
|
+
enter: e.number,
|
|
639
|
+
exit: e.number
|
|
742
640
|
})])
|
|
743
641
|
});
|
|
744
|
-
|
|
745
|
-
function
|
|
746
|
-
return typeof
|
|
642
|
+
j && (j.muiSupportAuto = !0);
|
|
643
|
+
function $t(n) {
|
|
644
|
+
return typeof n == "function" ? n() : n;
|
|
747
645
|
}
|
|
748
|
-
const G = /* @__PURE__ */
|
|
646
|
+
const G = /* @__PURE__ */ p.forwardRef(function(s, a) {
|
|
749
647
|
const {
|
|
750
|
-
children:
|
|
751
|
-
container:
|
|
648
|
+
children: r,
|
|
649
|
+
container: o,
|
|
752
650
|
disablePortal: t = !1
|
|
753
|
-
} = s, [
|
|
754
|
-
if (
|
|
755
|
-
t || u(
|
|
756
|
-
}, [
|
|
757
|
-
if (
|
|
758
|
-
return
|
|
759
|
-
|
|
651
|
+
} = s, [i, u] = p.useState(null), c = H(/* @__PURE__ */ p.isValidElement(r) ? Y(r) : null, a);
|
|
652
|
+
if (F(() => {
|
|
653
|
+
t || u($t(o) || document.body);
|
|
654
|
+
}, [o, t]), F(() => {
|
|
655
|
+
if (i && !t)
|
|
656
|
+
return U(a, i), () => {
|
|
657
|
+
U(a, null);
|
|
760
658
|
};
|
|
761
|
-
}, [
|
|
762
|
-
if (/* @__PURE__ */
|
|
763
|
-
const
|
|
659
|
+
}, [a, i, t]), t) {
|
|
660
|
+
if (/* @__PURE__ */ p.isValidElement(r)) {
|
|
661
|
+
const f = {
|
|
764
662
|
ref: c
|
|
765
663
|
};
|
|
766
|
-
return /* @__PURE__ */
|
|
664
|
+
return /* @__PURE__ */ p.cloneElement(r, f);
|
|
767
665
|
}
|
|
768
|
-
return /* @__PURE__ */
|
|
769
|
-
children:
|
|
666
|
+
return /* @__PURE__ */ $(p.Fragment, {
|
|
667
|
+
children: r
|
|
770
668
|
});
|
|
771
669
|
}
|
|
772
|
-
return /* @__PURE__ */
|
|
773
|
-
children:
|
|
670
|
+
return /* @__PURE__ */ $(p.Fragment, {
|
|
671
|
+
children: i && /* @__PURE__ */ Tt.createPortal(r, i)
|
|
774
672
|
});
|
|
775
673
|
});
|
|
776
674
|
process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
@@ -781,7 +679,7 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
781
679
|
/**
|
|
782
680
|
* The children to render into the `container`.
|
|
783
681
|
*/
|
|
784
|
-
children:
|
|
682
|
+
children: e.node,
|
|
785
683
|
/**
|
|
786
684
|
* An HTML element or function that returns one.
|
|
787
685
|
* The `container` will have the portal children appended to it.
|
|
@@ -792,34 +690,28 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
792
690
|
* By default, it uses the body of the top-level document object,
|
|
793
691
|
* so it's simply `document.body` most of the time.
|
|
794
692
|
*/
|
|
795
|
-
container:
|
|
693
|
+
container: e.oneOfType([Pt, e.func]),
|
|
796
694
|
/**
|
|
797
695
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
798
696
|
* @default false
|
|
799
697
|
*/
|
|
800
|
-
disablePortal:
|
|
698
|
+
disablePortal: e.bool
|
|
801
699
|
});
|
|
802
|
-
process.env.NODE_ENV !== "production" && (G.propTypes =
|
|
700
|
+
process.env.NODE_ENV !== "production" && (G.propTypes = St(G.propTypes));
|
|
803
701
|
export {
|
|
804
|
-
|
|
805
|
-
|
|
702
|
+
j as G,
|
|
703
|
+
Pt as H,
|
|
806
704
|
G as P,
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
Me as l,
|
|
820
|
-
_e as m,
|
|
821
|
-
we as n,
|
|
822
|
-
Je as o,
|
|
823
|
-
je as r,
|
|
824
|
-
Te as u
|
|
705
|
+
E as T,
|
|
706
|
+
It as a,
|
|
707
|
+
z as b,
|
|
708
|
+
Bt as c,
|
|
709
|
+
zt as d,
|
|
710
|
+
Q as e,
|
|
711
|
+
Dt as f,
|
|
712
|
+
Y as g,
|
|
713
|
+
St as h,
|
|
714
|
+
Xt as o,
|
|
715
|
+
Lt as r,
|
|
716
|
+
bt as u
|
|
825
717
|
};
|