jcicl 0.0.227 → 0.0.231
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/AppContainer.js +17 -15
- package/.chunks/DefaultPropsProvider.js +8 -6
- package/.chunks/Paper.js +155 -0
- package/.chunks/Popper.js +1 -1
- package/.chunks/Portal.js +183 -201
- package/.chunks/TextField.js +1067 -1209
- package/.chunks/index.js +6 -83
- package/.chunks/integerPropType.js +31 -0
- package/.chunks/resolveComponentProps.js +80 -0
- package/.chunks/useSlot.js +41 -70
- package/.chunks/useTheme.js +23 -0
- package/Button/Button.js +1 -1
- package/LabeledDropdown/LabeledDropdown.js +21 -19
- package/Pagination/Pagination.js +139 -138
- package/Stepper/Stepper.d.ts +9 -0
- package/Stepper/Stepper.js +688 -0
- package/Stepper/index.d.ts +1 -0
- package/Stepper/index.js +4 -0
- package/Tooltip/Tooltip.js +20 -18
- package/package.json +1 -1
package/.chunks/Portal.js
CHANGED
|
@@ -1,32 +1,21 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
2
|
import w from "react";
|
|
3
|
-
import { r as
|
|
4
|
-
import { u as H, _ as dt, e as Et, f as B, a as mt, c as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { r as ct, m as pt, a as ft } from "./resolveComponentProps.js";
|
|
4
|
+
import { u as H, _ as dt, e as Et, f as B, a as mt, c as U, s as j } from "./TransitionGroupContext.js";
|
|
5
|
+
import { P as e } from "./DefaultPropsProvider.js";
|
|
6
|
+
import { u as ht } from "./useTheme.js";
|
|
7
7
|
import { jsx as $ } from "react/jsx-runtime";
|
|
8
8
|
import { c as K } from "./chainPropTypes.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as xt from "react-dom";
|
|
10
10
|
import I from "react-dom";
|
|
11
|
-
function
|
|
12
|
-
return Object.keys(n).length === 0;
|
|
13
|
-
}
|
|
14
|
-
function bt(n = null) {
|
|
15
|
-
const s = p.useContext(vt);
|
|
16
|
-
return !s || yt(s) ? n : s;
|
|
17
|
-
}
|
|
18
|
-
const Nt = ht();
|
|
19
|
-
function Dt(n = Nt) {
|
|
20
|
-
return bt(n);
|
|
21
|
-
}
|
|
22
|
-
function Rt(n) {
|
|
11
|
+
function gt(r) {
|
|
23
12
|
const {
|
|
24
13
|
prototype: s = {}
|
|
25
|
-
} =
|
|
14
|
+
} = r;
|
|
26
15
|
return !!s.isReactComponent;
|
|
27
16
|
}
|
|
28
|
-
function J(
|
|
29
|
-
const t =
|
|
17
|
+
function J(r, s, a, o, n) {
|
|
18
|
+
const t = r[s], i = n || s;
|
|
30
19
|
if (t == null || // When server-side rendering React doesn't warn either.
|
|
31
20
|
// This is not an accurate check for SSR.
|
|
32
21
|
// This is only in place for Emotion compat.
|
|
@@ -34,79 +23,75 @@ function J(n, s, a, r, o) {
|
|
|
34
23
|
typeof window > "u")
|
|
35
24
|
return null;
|
|
36
25
|
let u;
|
|
37
|
-
const
|
|
38
|
-
return typeof
|
|
26
|
+
const l = t.type;
|
|
27
|
+
return typeof l == "function" && !gt(l) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${o} \`${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;
|
|
39
28
|
}
|
|
40
29
|
const Q = K(e.element, J);
|
|
41
30
|
Q.isRequired = K(e.element.isRequired, J);
|
|
42
|
-
const
|
|
43
|
-
function
|
|
44
|
-
return process.env.NODE_ENV === "production" ?
|
|
45
|
-
...
|
|
46
|
-
[
|
|
47
|
-
const a = Object.keys(s).filter((
|
|
48
|
-
return a.length > 0 ? new Error(`The following props are not supported: ${a.map((
|
|
31
|
+
const vt = "exact-prop: ";
|
|
32
|
+
function yt(r) {
|
|
33
|
+
return process.env.NODE_ENV === "production" ? r : {
|
|
34
|
+
...r,
|
|
35
|
+
[vt]: (s) => {
|
|
36
|
+
const a = Object.keys(s).filter((o) => !r.hasOwnProperty(o));
|
|
37
|
+
return a.length > 0 ? new Error(`The following props are not supported: ${a.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
|
|
49
38
|
}
|
|
50
39
|
};
|
|
51
40
|
}
|
|
52
|
-
function
|
|
41
|
+
function bt(r, s, a, o, n) {
|
|
53
42
|
if (process.env.NODE_ENV === "production")
|
|
54
43
|
return null;
|
|
55
|
-
const t =
|
|
56
|
-
return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${
|
|
44
|
+
const t = r[s], i = n || s;
|
|
45
|
+
return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${o} \`${i}\` supplied to \`${a}\`. Expected an HTMLElement.`) : null;
|
|
57
46
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
47
|
+
function Vt(r) {
|
|
48
|
+
return r && r.ownerDocument || document;
|
|
60
49
|
}
|
|
61
50
|
let q = 0;
|
|
62
|
-
function
|
|
63
|
-
const [s, a] = p.useState(
|
|
51
|
+
function Tt(r) {
|
|
52
|
+
const [s, a] = p.useState(r), o = r || s;
|
|
64
53
|
return p.useEffect(() => {
|
|
65
54
|
s == null && (q += 1, a(`mui-${q}`));
|
|
66
|
-
}, [s]),
|
|
55
|
+
}, [s]), o;
|
|
67
56
|
}
|
|
68
|
-
const
|
|
57
|
+
const Nt = {
|
|
69
58
|
...p
|
|
70
|
-
}, W =
|
|
71
|
-
function
|
|
59
|
+
}, W = Nt.useId;
|
|
60
|
+
function Gt(r) {
|
|
72
61
|
if (W !== void 0) {
|
|
73
62
|
const s = W();
|
|
74
|
-
return
|
|
63
|
+
return r ?? s;
|
|
75
64
|
}
|
|
76
|
-
return
|
|
65
|
+
return Tt(r);
|
|
77
66
|
}
|
|
78
|
-
function
|
|
67
|
+
function Ft(r) {
|
|
79
68
|
var h;
|
|
80
69
|
const {
|
|
81
70
|
elementType: s,
|
|
82
71
|
externalSlotProps: a,
|
|
83
|
-
ownerState:
|
|
84
|
-
skipResolvingSlotProps:
|
|
72
|
+
ownerState: o,
|
|
73
|
+
skipResolvingSlotProps: n = !1,
|
|
85
74
|
...t
|
|
86
|
-
} =
|
|
75
|
+
} = r, i = n ? {} : ct(a, o), {
|
|
87
76
|
props: u,
|
|
88
|
-
internalRef:
|
|
77
|
+
internalRef: l
|
|
89
78
|
} = pt({
|
|
90
79
|
...t,
|
|
91
80
|
externalSlotProps: i
|
|
92
|
-
}), f = H(
|
|
81
|
+
}), f = H(l, i == null ? void 0 : i.ref, (h = r.additionalProps) == null ? void 0 : h.ref);
|
|
93
82
|
return ft(s, {
|
|
94
83
|
...u,
|
|
95
84
|
ref: f
|
|
96
|
-
},
|
|
85
|
+
}, o);
|
|
97
86
|
}
|
|
98
|
-
function Y(
|
|
87
|
+
function Y(r) {
|
|
99
88
|
var s;
|
|
100
|
-
return parseInt(p.version, 10) >= 19 ? ((s =
|
|
101
|
-
}
|
|
102
|
-
function It() {
|
|
103
|
-
const n = Dt(gt);
|
|
104
|
-
return process.env.NODE_ENV !== "production" && p.useDebugValue(n), n[xt] || n;
|
|
89
|
+
return parseInt(p.version, 10) >= 19 ? ((s = r == null ? void 0 : r.props) == null ? void 0 : s.ref) || null : (r == null ? void 0 : r.ref) || null;
|
|
105
90
|
}
|
|
106
91
|
const X = {
|
|
107
92
|
disabled: !1
|
|
108
93
|
};
|
|
109
|
-
var
|
|
94
|
+
var Rt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
|
|
110
95
|
enter: e.number,
|
|
111
96
|
exit: e.number,
|
|
112
97
|
appear: e.number
|
|
@@ -123,124 +108,124 @@ process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
|
|
|
123
108
|
exitDone: e.string,
|
|
124
109
|
exitActive: e.string
|
|
125
110
|
})]);
|
|
126
|
-
var
|
|
111
|
+
var Dt = function(s) {
|
|
127
112
|
return s.scrollTop;
|
|
128
|
-
},
|
|
129
|
-
dt(s,
|
|
130
|
-
function s(
|
|
113
|
+
}, O = "unmounted", y = "exited", b = "entering", S = "entered", A = "exiting", E = /* @__PURE__ */ function(r) {
|
|
114
|
+
dt(s, r);
|
|
115
|
+
function s(o, n) {
|
|
131
116
|
var t;
|
|
132
|
-
t =
|
|
133
|
-
var i =
|
|
134
|
-
return t.appearStatus = null,
|
|
135
|
-
status:
|
|
117
|
+
t = r.call(this, o, n) || this;
|
|
118
|
+
var i = n, u = i && !i.isMounting ? o.enter : o.appear, l;
|
|
119
|
+
return t.appearStatus = null, o.in ? u ? (l = y, t.appearStatus = b) : l = S : o.unmountOnExit || o.mountOnEnter ? l = O : l = y, t.state = {
|
|
120
|
+
status: l
|
|
136
121
|
}, t.nextCallback = null, t;
|
|
137
122
|
}
|
|
138
|
-
s.getDerivedStateFromProps = function(
|
|
139
|
-
var i =
|
|
140
|
-
return i && t.status ===
|
|
141
|
-
status:
|
|
123
|
+
s.getDerivedStateFromProps = function(n, t) {
|
|
124
|
+
var i = n.in;
|
|
125
|
+
return i && t.status === O ? {
|
|
126
|
+
status: y
|
|
142
127
|
} : null;
|
|
143
128
|
};
|
|
144
129
|
var a = s.prototype;
|
|
145
130
|
return a.componentDidMount = function() {
|
|
146
131
|
this.updateStatus(!0, this.appearStatus);
|
|
147
|
-
}, a.componentDidUpdate = function(
|
|
132
|
+
}, a.componentDidUpdate = function(n) {
|
|
148
133
|
var t = null;
|
|
149
|
-
if (
|
|
134
|
+
if (n !== this.props) {
|
|
150
135
|
var i = this.state.status;
|
|
151
|
-
this.props.in ? i !==
|
|
136
|
+
this.props.in ? i !== b && i !== S && (t = b) : (i === b || i === S) && (t = A);
|
|
152
137
|
}
|
|
153
138
|
this.updateStatus(!1, t);
|
|
154
139
|
}, a.componentWillUnmount = function() {
|
|
155
140
|
this.cancelNextCallback();
|
|
156
141
|
}, a.getTimeouts = function() {
|
|
157
|
-
var
|
|
158
|
-
return t = i = u =
|
|
142
|
+
var n = this.props.timeout, t, i, u;
|
|
143
|
+
return t = i = u = n, n != null && typeof n != "number" && (t = n.exit, i = n.enter, u = n.appear !== void 0 ? n.appear : i), {
|
|
159
144
|
exit: t,
|
|
160
145
|
enter: i,
|
|
161
146
|
appear: u
|
|
162
147
|
};
|
|
163
|
-
}, a.updateStatus = function(
|
|
164
|
-
if (
|
|
165
|
-
if (this.cancelNextCallback(), t ===
|
|
148
|
+
}, a.updateStatus = function(n, t) {
|
|
149
|
+
if (n === void 0 && (n = !1), t !== null)
|
|
150
|
+
if (this.cancelNextCallback(), t === b) {
|
|
166
151
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
167
152
|
var i = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this);
|
|
168
|
-
i &&
|
|
153
|
+
i && Dt(i);
|
|
169
154
|
}
|
|
170
|
-
this.performEnter(
|
|
155
|
+
this.performEnter(n);
|
|
171
156
|
} else
|
|
172
157
|
this.performExit();
|
|
173
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
174
|
-
status:
|
|
158
|
+
else this.props.unmountOnExit && this.state.status === y && this.setState({
|
|
159
|
+
status: O
|
|
175
160
|
});
|
|
176
|
-
}, a.performEnter = function(
|
|
177
|
-
var t = this, i = this.props.enter, u = this.context ? this.context.isMounting :
|
|
178
|
-
if (!
|
|
161
|
+
}, a.performEnter = function(n) {
|
|
162
|
+
var t = this, i = this.props.enter, u = this.context ? this.context.isMounting : n, l = this.props.nodeRef ? [u] : [I.findDOMNode(this), u], f = l[0], m = l[1], h = this.getTimeouts(), L = u ? h.appear : h.enter;
|
|
163
|
+
if (!n && !i || X.disabled) {
|
|
179
164
|
this.safeSetState({
|
|
180
|
-
status:
|
|
165
|
+
status: S
|
|
181
166
|
}, function() {
|
|
182
167
|
t.props.onEntered(f);
|
|
183
168
|
});
|
|
184
169
|
return;
|
|
185
170
|
}
|
|
186
171
|
this.props.onEnter(f, m), this.safeSetState({
|
|
187
|
-
status:
|
|
172
|
+
status: b
|
|
188
173
|
}, function() {
|
|
189
|
-
t.props.onEntering(f, m), t.onTransitionEnd(
|
|
174
|
+
t.props.onEntering(f, m), t.onTransitionEnd(L, function() {
|
|
190
175
|
t.safeSetState({
|
|
191
|
-
status:
|
|
176
|
+
status: S
|
|
192
177
|
}, function() {
|
|
193
178
|
t.props.onEntered(f, m);
|
|
194
179
|
});
|
|
195
180
|
});
|
|
196
181
|
});
|
|
197
182
|
}, a.performExit = function() {
|
|
198
|
-
var
|
|
183
|
+
var n = this, t = this.props.exit, i = this.getTimeouts(), u = this.props.nodeRef ? void 0 : I.findDOMNode(this);
|
|
199
184
|
if (!t || X.disabled) {
|
|
200
185
|
this.safeSetState({
|
|
201
|
-
status:
|
|
186
|
+
status: y
|
|
202
187
|
}, function() {
|
|
203
|
-
|
|
188
|
+
n.props.onExited(u);
|
|
204
189
|
});
|
|
205
190
|
return;
|
|
206
191
|
}
|
|
207
192
|
this.props.onExit(u), this.safeSetState({
|
|
208
|
-
status:
|
|
193
|
+
status: A
|
|
209
194
|
}, function() {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
status:
|
|
195
|
+
n.props.onExiting(u), n.onTransitionEnd(i.exit, function() {
|
|
196
|
+
n.safeSetState({
|
|
197
|
+
status: y
|
|
213
198
|
}, function() {
|
|
214
|
-
|
|
199
|
+
n.props.onExited(u);
|
|
215
200
|
});
|
|
216
201
|
});
|
|
217
202
|
});
|
|
218
203
|
}, a.cancelNextCallback = function() {
|
|
219
204
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
220
|
-
}, a.safeSetState = function(
|
|
221
|
-
t = this.setNextCallback(t), this.setState(
|
|
222
|
-
}, a.setNextCallback = function(
|
|
205
|
+
}, a.safeSetState = function(n, t) {
|
|
206
|
+
t = this.setNextCallback(t), this.setState(n, t);
|
|
207
|
+
}, a.setNextCallback = function(n) {
|
|
223
208
|
var t = this, i = !0;
|
|
224
209
|
return this.nextCallback = function(u) {
|
|
225
|
-
i && (i = !1, t.nextCallback = null,
|
|
210
|
+
i && (i = !1, t.nextCallback = null, n(u));
|
|
226
211
|
}, this.nextCallback.cancel = function() {
|
|
227
212
|
i = !1;
|
|
228
213
|
}, this.nextCallback;
|
|
229
|
-
}, a.onTransitionEnd = function(
|
|
214
|
+
}, a.onTransitionEnd = function(n, t) {
|
|
230
215
|
this.setNextCallback(t);
|
|
231
|
-
var i = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this), u =
|
|
216
|
+
var i = this.props.nodeRef ? this.props.nodeRef.current : I.findDOMNode(this), u = n == null && !this.props.addEndListener;
|
|
232
217
|
if (!i || u) {
|
|
233
218
|
setTimeout(this.nextCallback, 0);
|
|
234
219
|
return;
|
|
235
220
|
}
|
|
236
221
|
if (this.props.addEndListener) {
|
|
237
|
-
var
|
|
222
|
+
var l = this.props.nodeRef ? [this.nextCallback] : [i, this.nextCallback], f = l[0], m = l[1];
|
|
238
223
|
this.props.addEndListener(f, m);
|
|
239
224
|
}
|
|
240
|
-
|
|
225
|
+
n != null && setTimeout(this.nextCallback, n);
|
|
241
226
|
}, a.render = function() {
|
|
242
|
-
var
|
|
243
|
-
if (
|
|
227
|
+
var n = this.state.status;
|
|
228
|
+
if (n === O)
|
|
244
229
|
return null;
|
|
245
230
|
var t = this.props, i = t.children;
|
|
246
231
|
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;
|
|
@@ -249,7 +234,7 @@ var kt = function(s) {
|
|
|
249
234
|
// allows for nested Transitions
|
|
250
235
|
/* @__PURE__ */ w.createElement(B.Provider, {
|
|
251
236
|
value: null
|
|
252
|
-
}, typeof i == "function" ? i(
|
|
237
|
+
}, typeof i == "function" ? i(n, u) : w.cloneElement(w.Children.only(i), u))
|
|
253
238
|
);
|
|
254
239
|
}, s;
|
|
255
240
|
}(w.Component);
|
|
@@ -267,9 +252,9 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
267
252
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
268
253
|
*/
|
|
269
254
|
nodeRef: e.shape({
|
|
270
|
-
current: typeof Element > "u" ? e.any : function(
|
|
271
|
-
var i =
|
|
272
|
-
return e.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(
|
|
255
|
+
current: typeof Element > "u" ? e.any : function(r, s, a, o, n, t) {
|
|
256
|
+
var i = r[s];
|
|
257
|
+
return e.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(r, s, a, o, n, t);
|
|
273
258
|
}
|
|
274
259
|
}),
|
|
275
260
|
/**
|
|
@@ -350,11 +335,11 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
350
335
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
351
336
|
*/
|
|
352
337
|
timeout: function(s) {
|
|
353
|
-
var a =
|
|
338
|
+
var a = Rt;
|
|
354
339
|
s.addEndListener || (a = a.isRequired);
|
|
355
|
-
for (var
|
|
356
|
-
|
|
357
|
-
return a.apply(void 0, [s].concat(
|
|
340
|
+
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), t = 1; t < o; t++)
|
|
341
|
+
n[t - 1] = arguments[t];
|
|
342
|
+
return a.apply(void 0, [s].concat(n));
|
|
358
343
|
},
|
|
359
344
|
/**
|
|
360
345
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -423,7 +408,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
423
408
|
*/
|
|
424
409
|
onExited: e.func
|
|
425
410
|
} : {};
|
|
426
|
-
function
|
|
411
|
+
function D() {
|
|
427
412
|
}
|
|
428
413
|
E.defaultProps = {
|
|
429
414
|
in: !1,
|
|
@@ -432,68 +417,68 @@ E.defaultProps = {
|
|
|
432
417
|
appear: !1,
|
|
433
418
|
enter: !0,
|
|
434
419
|
exit: !0,
|
|
435
|
-
onEnter:
|
|
436
|
-
onEntering:
|
|
437
|
-
onEntered:
|
|
438
|
-
onExit:
|
|
439
|
-
onExiting:
|
|
440
|
-
onExited:
|
|
420
|
+
onEnter: D,
|
|
421
|
+
onEntering: D,
|
|
422
|
+
onEntered: D,
|
|
423
|
+
onExit: D,
|
|
424
|
+
onExiting: D,
|
|
425
|
+
onExited: D
|
|
441
426
|
};
|
|
442
|
-
E.UNMOUNTED =
|
|
443
|
-
E.EXITED =
|
|
444
|
-
E.ENTERING =
|
|
445
|
-
E.ENTERED =
|
|
446
|
-
E.EXITING =
|
|
447
|
-
const
|
|
448
|
-
function z(
|
|
427
|
+
E.UNMOUNTED = O;
|
|
428
|
+
E.EXITED = y;
|
|
429
|
+
E.ENTERING = b;
|
|
430
|
+
E.ENTERED = S;
|
|
431
|
+
E.EXITING = A;
|
|
432
|
+
const St = (r) => r.scrollTop;
|
|
433
|
+
function z(r, s) {
|
|
449
434
|
const {
|
|
450
435
|
timeout: a,
|
|
451
|
-
easing:
|
|
452
|
-
style:
|
|
453
|
-
} =
|
|
436
|
+
easing: o,
|
|
437
|
+
style: n = {}
|
|
438
|
+
} = r;
|
|
454
439
|
return {
|
|
455
|
-
duration:
|
|
456
|
-
easing:
|
|
457
|
-
delay:
|
|
440
|
+
duration: n.transitionDuration ?? (typeof a == "number" ? a : a[s.mode] || 0),
|
|
441
|
+
easing: n.transitionTimingFunction ?? (typeof o == "object" ? o[s.mode] : o),
|
|
442
|
+
delay: n.transitionDelay
|
|
458
443
|
};
|
|
459
444
|
}
|
|
460
|
-
function
|
|
461
|
-
return `scale(${
|
|
445
|
+
function V(r) {
|
|
446
|
+
return `scale(${r}, ${r ** 2})`;
|
|
462
447
|
}
|
|
463
|
-
const
|
|
448
|
+
const Ot = {
|
|
464
449
|
entering: {
|
|
465
450
|
opacity: 1,
|
|
466
|
-
transform:
|
|
451
|
+
transform: V(1)
|
|
467
452
|
},
|
|
468
453
|
entered: {
|
|
469
454
|
opacity: 1,
|
|
470
455
|
transform: "none"
|
|
471
456
|
}
|
|
472
|
-
}, M = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent),
|
|
457
|
+
}, M = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), G = /* @__PURE__ */ p.forwardRef(function(s, a) {
|
|
473
458
|
const {
|
|
474
|
-
addEndListener:
|
|
475
|
-
appear:
|
|
459
|
+
addEndListener: o,
|
|
460
|
+
appear: n = !0,
|
|
476
461
|
children: t,
|
|
477
462
|
easing: i,
|
|
478
463
|
in: u,
|
|
479
|
-
onEnter:
|
|
464
|
+
onEnter: l,
|
|
480
465
|
onEntered: f,
|
|
481
466
|
onEntering: m,
|
|
482
467
|
onExit: h,
|
|
483
|
-
onExited:
|
|
468
|
+
onExited: L,
|
|
484
469
|
onExiting: Z,
|
|
485
470
|
style: k,
|
|
486
471
|
timeout: v = "auto",
|
|
487
472
|
// eslint-disable-next-line react/prop-types
|
|
488
473
|
TransitionComponent: tt = E,
|
|
489
474
|
...et
|
|
490
|
-
} = s, nt = mt(),
|
|
491
|
-
if (
|
|
475
|
+
} = s, nt = mt(), _ = p.useRef(), T = ht(), P = p.useRef(null), it = H(P, Y(t), a), N = (c) => (x) => {
|
|
476
|
+
if (c) {
|
|
492
477
|
const g = P.current;
|
|
493
|
-
x === void 0 ?
|
|
478
|
+
x === void 0 ? c(g) : c(g, x);
|
|
494
479
|
}
|
|
495
|
-
},
|
|
496
|
-
|
|
480
|
+
}, ot = N(m), rt = N((c, x) => {
|
|
481
|
+
St(c);
|
|
497
482
|
const {
|
|
498
483
|
duration: g,
|
|
499
484
|
delay: C,
|
|
@@ -505,16 +490,16 @@ const Mt = {
|
|
|
505
490
|
}, {
|
|
506
491
|
mode: "enter"
|
|
507
492
|
});
|
|
508
|
-
let
|
|
509
|
-
v === "auto" ? (
|
|
510
|
-
duration:
|
|
493
|
+
let R;
|
|
494
|
+
v === "auto" ? (R = T.transitions.getAutoHeightDuration(c.clientHeight), _.current = R) : R = g, c.style.transition = [T.transitions.create("opacity", {
|
|
495
|
+
duration: R,
|
|
511
496
|
delay: C
|
|
512
|
-
}),
|
|
513
|
-
duration: M ?
|
|
497
|
+
}), T.transitions.create("transform", {
|
|
498
|
+
duration: M ? R : R * 0.666,
|
|
514
499
|
delay: C,
|
|
515
500
|
easing: d
|
|
516
|
-
})].join(","),
|
|
517
|
-
}), st = N(f), at = N(Z), ut = N((
|
|
501
|
+
})].join(","), l && l(c, x);
|
|
502
|
+
}), st = N(f), at = N(Z), ut = N((c) => {
|
|
518
503
|
const {
|
|
519
504
|
duration: x,
|
|
520
505
|
delay: g,
|
|
@@ -527,45 +512,45 @@ const Mt = {
|
|
|
527
512
|
mode: "exit"
|
|
528
513
|
});
|
|
529
514
|
let d;
|
|
530
|
-
v === "auto" ? (d =
|
|
515
|
+
v === "auto" ? (d = T.transitions.getAutoHeightDuration(c.clientHeight), _.current = d) : d = x, c.style.transition = [T.transitions.create("opacity", {
|
|
531
516
|
duration: d,
|
|
532
517
|
delay: g
|
|
533
|
-
}),
|
|
518
|
+
}), T.transitions.create("transform", {
|
|
534
519
|
duration: M ? d : d * 0.666,
|
|
535
520
|
delay: M ? g : g || d * 0.333,
|
|
536
521
|
easing: C
|
|
537
|
-
})].join(","),
|
|
538
|
-
}),
|
|
522
|
+
})].join(","), c.style.opacity = 0, c.style.transform = V(0.75), h && h(c);
|
|
523
|
+
}), lt = N(L);
|
|
539
524
|
return /* @__PURE__ */ $(tt, {
|
|
540
|
-
appear:
|
|
525
|
+
appear: n,
|
|
541
526
|
in: u,
|
|
542
527
|
nodeRef: P,
|
|
543
528
|
onEnter: rt,
|
|
544
529
|
onEntered: st,
|
|
545
|
-
onEntering:
|
|
530
|
+
onEntering: ot,
|
|
546
531
|
onExit: ut,
|
|
547
|
-
onExited:
|
|
532
|
+
onExited: lt,
|
|
548
533
|
onExiting: at,
|
|
549
|
-
addEndListener: (
|
|
550
|
-
v === "auto" && nt.start(
|
|
534
|
+
addEndListener: (c) => {
|
|
535
|
+
v === "auto" && nt.start(_.current || 0, c), o && o(P.current, c);
|
|
551
536
|
},
|
|
552
537
|
timeout: v === "auto" ? null : v,
|
|
553
538
|
...et,
|
|
554
|
-
children: (
|
|
539
|
+
children: (c, x) => /* @__PURE__ */ p.cloneElement(t, {
|
|
555
540
|
style: {
|
|
556
541
|
opacity: 0,
|
|
557
|
-
transform:
|
|
558
|
-
visibility:
|
|
559
|
-
...
|
|
542
|
+
transform: V(0.75),
|
|
543
|
+
visibility: c === "exited" && !u ? "hidden" : void 0,
|
|
544
|
+
...Ot[c],
|
|
560
545
|
...k,
|
|
561
546
|
...t.props.style
|
|
562
547
|
},
|
|
563
|
-
ref:
|
|
548
|
+
ref: it,
|
|
564
549
|
...x
|
|
565
550
|
})
|
|
566
551
|
});
|
|
567
552
|
});
|
|
568
|
-
process.env.NODE_ENV !== "production" && (
|
|
553
|
+
process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
569
554
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
570
555
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
571
556
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -639,39 +624,39 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
639
624
|
exit: e.number
|
|
640
625
|
})])
|
|
641
626
|
});
|
|
642
|
-
|
|
643
|
-
function
|
|
644
|
-
return typeof
|
|
627
|
+
G && (G.muiSupportAuto = !0);
|
|
628
|
+
function Pt(r) {
|
|
629
|
+
return typeof r == "function" ? r() : r;
|
|
645
630
|
}
|
|
646
|
-
const
|
|
631
|
+
const F = /* @__PURE__ */ p.forwardRef(function(s, a) {
|
|
647
632
|
const {
|
|
648
|
-
children:
|
|
649
|
-
container:
|
|
633
|
+
children: o,
|
|
634
|
+
container: n,
|
|
650
635
|
disablePortal: t = !1
|
|
651
|
-
} = s, [i, u] = p.useState(null),
|
|
652
|
-
if (
|
|
653
|
-
t || u(
|
|
654
|
-
}, [
|
|
636
|
+
} = s, [i, u] = p.useState(null), l = H(/* @__PURE__ */ p.isValidElement(o) ? Y(o) : null, a);
|
|
637
|
+
if (U(() => {
|
|
638
|
+
t || u(Pt(n) || document.body);
|
|
639
|
+
}, [n, t]), U(() => {
|
|
655
640
|
if (i && !t)
|
|
656
|
-
return
|
|
657
|
-
|
|
641
|
+
return j(a, i), () => {
|
|
642
|
+
j(a, null);
|
|
658
643
|
};
|
|
659
644
|
}, [a, i, t]), t) {
|
|
660
|
-
if (/* @__PURE__ */ p.isValidElement(
|
|
645
|
+
if (/* @__PURE__ */ p.isValidElement(o)) {
|
|
661
646
|
const f = {
|
|
662
|
-
ref:
|
|
647
|
+
ref: l
|
|
663
648
|
};
|
|
664
|
-
return /* @__PURE__ */ p.cloneElement(
|
|
649
|
+
return /* @__PURE__ */ p.cloneElement(o, f);
|
|
665
650
|
}
|
|
666
651
|
return /* @__PURE__ */ $(p.Fragment, {
|
|
667
|
-
children:
|
|
652
|
+
children: o
|
|
668
653
|
});
|
|
669
654
|
}
|
|
670
655
|
return /* @__PURE__ */ $(p.Fragment, {
|
|
671
|
-
children: i && /* @__PURE__ */
|
|
656
|
+
children: i && /* @__PURE__ */ xt.createPortal(o, i)
|
|
672
657
|
});
|
|
673
658
|
});
|
|
674
|
-
process.env.NODE_ENV !== "production" && (
|
|
659
|
+
process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
675
660
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
676
661
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
677
662
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -690,28 +675,25 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
690
675
|
* By default, it uses the body of the top-level document object,
|
|
691
676
|
* so it's simply `document.body` most of the time.
|
|
692
677
|
*/
|
|
693
|
-
container: e.oneOfType([
|
|
678
|
+
container: e.oneOfType([bt, e.func]),
|
|
694
679
|
/**
|
|
695
680
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
696
681
|
* @default false
|
|
697
682
|
*/
|
|
698
683
|
disablePortal: e.bool
|
|
699
684
|
});
|
|
700
|
-
process.env.NODE_ENV !== "production" && (
|
|
685
|
+
process.env.NODE_ENV !== "production" && (F.propTypes = yt(F.propTypes));
|
|
701
686
|
export {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
687
|
+
G,
|
|
688
|
+
bt as H,
|
|
689
|
+
F as P,
|
|
705
690
|
E as T,
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
Bt as d,
|
|
691
|
+
z as a,
|
|
692
|
+
yt as b,
|
|
693
|
+
Ft as c,
|
|
710
694
|
Q as e,
|
|
711
|
-
Dt as f,
|
|
712
695
|
Y as g,
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
It as u
|
|
696
|
+
Vt as o,
|
|
697
|
+
St as r,
|
|
698
|
+
Gt as u
|
|
717
699
|
};
|