jcicl 0.0.147 → 0.0.151
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 +6 -5
- package/.chunks/DefaultPropsProvider.js +6 -6
- package/.chunks/Grow.js +214 -0
- package/.chunks/Paper.js +1247 -0
- package/.chunks/Portal.js +223 -429
- package/.chunks/TextField.js +1555 -2785
- package/.chunks/TransitionGroupContext.js +33 -74
- package/.chunks/index.js +25 -102
- package/.chunks/resolveComponentProps.js +80 -0
- package/.chunks/useSlot.js +1 -1
- package/.chunks/useTimeout.js +44 -0
- package/AppContainer/AppContainer.js +16 -15
- package/Modal/Modal.d.ts +6 -0
- package/Modal/Modal.js +405 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +4 -0
- package/Pagination/Pagination.js +136 -139
- package/Pagination/index.d.ts +1 -1
- package/Pagination/index.js +4 -1
- package/Tooltip/Tooltip.js +25 -22
- package/package.json +1 -1
package/.chunks/Portal.js
CHANGED
|
@@ -1,260 +1,239 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { T as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
function yt(n) {
|
|
1
|
+
import { i as _, P as i, T as L, j as V } from "./DefaultPropsProvider.js";
|
|
2
|
+
import { c as I } from "./chainPropTypes.js";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import T from "react";
|
|
5
|
+
import { T as $ } from "./emotion-styled.browser.esm.js";
|
|
6
|
+
import { _ as U, b as j, T as k, u as q, a as D, s as O } from "./TransitionGroupContext.js";
|
|
7
|
+
import * as F from "react-dom";
|
|
8
|
+
import b from "react-dom";
|
|
9
|
+
import { jsx as R } from "react/jsx-runtime";
|
|
10
|
+
function G(n) {
|
|
12
11
|
return Object.keys(n).length === 0;
|
|
13
12
|
}
|
|
14
|
-
function
|
|
15
|
-
const s =
|
|
16
|
-
return !s ||
|
|
13
|
+
function H(n = null) {
|
|
14
|
+
const s = c.useContext($);
|
|
15
|
+
return !s || G(s) ? n : s;
|
|
17
16
|
}
|
|
18
|
-
const
|
|
19
|
-
function
|
|
20
|
-
return
|
|
17
|
+
const A = _();
|
|
18
|
+
function X(n = A) {
|
|
19
|
+
return H(n);
|
|
21
20
|
}
|
|
22
|
-
function
|
|
21
|
+
function W(n) {
|
|
23
22
|
const {
|
|
24
23
|
prototype: s = {}
|
|
25
24
|
} = n;
|
|
26
25
|
return !!s.isReactComponent;
|
|
27
26
|
}
|
|
28
|
-
function
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
27
|
+
function w(n, s, a, o, t) {
|
|
28
|
+
const e = n[s], r = t || s;
|
|
29
|
+
if (e == null || // When server-side rendering React doesn't warn either.
|
|
31
30
|
// This is not an accurate check for SSR.
|
|
32
31
|
// This is only in place for Emotion compat.
|
|
33
32
|
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
34
33
|
typeof window > "u")
|
|
35
34
|
return null;
|
|
36
35
|
let u;
|
|
37
|
-
const
|
|
38
|
-
return typeof
|
|
36
|
+
const l = e.type;
|
|
37
|
+
return typeof l == "function" && !W(l) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${o} \`${r}\` 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
38
|
}
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
function
|
|
39
|
+
const B = I(i.element, w);
|
|
40
|
+
B.isRequired = I(i.element.isRequired, w);
|
|
41
|
+
const z = "exact-prop: ";
|
|
42
|
+
function J(n) {
|
|
44
43
|
return process.env.NODE_ENV === "production" ? n : {
|
|
45
44
|
...n,
|
|
46
|
-
[
|
|
47
|
-
const a = Object.keys(s).filter((
|
|
48
|
-
return a.length > 0 ? new Error(`The following props are not supported: ${a.map((
|
|
45
|
+
[z]: (s) => {
|
|
46
|
+
const a = Object.keys(s).filter((o) => !n.hasOwnProperty(o));
|
|
47
|
+
return a.length > 0 ? new Error(`The following props are not supported: ${a.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
|
|
49
48
|
}
|
|
50
49
|
};
|
|
51
50
|
}
|
|
52
|
-
function
|
|
51
|
+
function K(n, s, a, o, t) {
|
|
53
52
|
if (process.env.NODE_ENV === "production")
|
|
54
53
|
return null;
|
|
55
|
-
const
|
|
56
|
-
return
|
|
54
|
+
const e = n[s], r = t || s;
|
|
55
|
+
return e == null ? null : e && e.nodeType !== 1 ? new Error(`Invalid ${o} \`${r}\` supplied to \`${a}\`. Expected an HTMLElement.`) : null;
|
|
57
56
|
}
|
|
58
|
-
function
|
|
57
|
+
function ce(n) {
|
|
59
58
|
return n && n.ownerDocument || document;
|
|
60
59
|
}
|
|
61
|
-
let
|
|
62
|
-
function
|
|
63
|
-
const [s, a] =
|
|
64
|
-
return
|
|
65
|
-
s == null && (
|
|
66
|
-
}, [s]),
|
|
60
|
+
let S = 0;
|
|
61
|
+
function Q(n) {
|
|
62
|
+
const [s, a] = c.useState(n), o = n || s;
|
|
63
|
+
return c.useEffect(() => {
|
|
64
|
+
s == null && (S += 1, a(`mui-${S}`));
|
|
65
|
+
}, [s]), o;
|
|
67
66
|
}
|
|
68
|
-
const
|
|
69
|
-
...
|
|
70
|
-
},
|
|
71
|
-
function
|
|
72
|
-
if (
|
|
73
|
-
const s =
|
|
67
|
+
const Y = {
|
|
68
|
+
...c
|
|
69
|
+
}, C = Y.useId;
|
|
70
|
+
function pe(n) {
|
|
71
|
+
if (C !== void 0) {
|
|
72
|
+
const s = C();
|
|
74
73
|
return n ?? s;
|
|
75
74
|
}
|
|
76
|
-
return
|
|
75
|
+
return Q(n);
|
|
77
76
|
}
|
|
78
|
-
function
|
|
79
|
-
var h;
|
|
80
|
-
const {
|
|
81
|
-
elementType: s,
|
|
82
|
-
externalSlotProps: a,
|
|
83
|
-
ownerState: r,
|
|
84
|
-
skipResolvingSlotProps: o = !1,
|
|
85
|
-
...t
|
|
86
|
-
} = n, i = o ? {} : lt(a, r), {
|
|
87
|
-
props: u,
|
|
88
|
-
internalRef: c
|
|
89
|
-
} = pt({
|
|
90
|
-
...t,
|
|
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, {
|
|
94
|
-
...u,
|
|
95
|
-
ref: f
|
|
96
|
-
}, r);
|
|
97
|
-
}
|
|
98
|
-
function Y(n) {
|
|
77
|
+
function Z(n) {
|
|
99
78
|
var s;
|
|
100
|
-
return parseInt(
|
|
79
|
+
return parseInt(c.version, 10) >= 19 ? ((s = n == null ? void 0 : n.props) == null ? void 0 : s.ref) || null : (n == null ? void 0 : n.ref) || null;
|
|
101
80
|
}
|
|
102
|
-
function
|
|
103
|
-
const n =
|
|
104
|
-
return process.env.NODE_ENV !== "production" &&
|
|
81
|
+
function fe() {
|
|
82
|
+
const n = X(V);
|
|
83
|
+
return process.env.NODE_ENV !== "production" && c.useDebugValue(n), n[L] || n;
|
|
105
84
|
}
|
|
106
|
-
const
|
|
85
|
+
const P = {
|
|
107
86
|
disabled: !1
|
|
108
87
|
};
|
|
109
|
-
var
|
|
110
|
-
enter:
|
|
111
|
-
exit:
|
|
112
|
-
appear:
|
|
88
|
+
var ee = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
89
|
+
enter: i.number,
|
|
90
|
+
exit: i.number,
|
|
91
|
+
appear: i.number
|
|
113
92
|
}).isRequired]) : null;
|
|
114
|
-
process.env.NODE_ENV !== "production" &&
|
|
115
|
-
enter:
|
|
116
|
-
exit:
|
|
117
|
-
active:
|
|
118
|
-
}),
|
|
119
|
-
enter:
|
|
120
|
-
enterDone:
|
|
121
|
-
enterActive:
|
|
122
|
-
exit:
|
|
123
|
-
exitDone:
|
|
124
|
-
exitActive:
|
|
93
|
+
process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({
|
|
94
|
+
enter: i.string,
|
|
95
|
+
exit: i.string,
|
|
96
|
+
active: i.string
|
|
97
|
+
}), i.shape({
|
|
98
|
+
enter: i.string,
|
|
99
|
+
enterDone: i.string,
|
|
100
|
+
enterActive: i.string,
|
|
101
|
+
exit: i.string,
|
|
102
|
+
exitDone: i.string,
|
|
103
|
+
exitActive: i.string
|
|
125
104
|
})]);
|
|
126
|
-
var
|
|
105
|
+
var te = function(s) {
|
|
127
106
|
return s.scrollTop;
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
function s(
|
|
131
|
-
var
|
|
132
|
-
|
|
133
|
-
var
|
|
134
|
-
return
|
|
135
|
-
status:
|
|
136
|
-
},
|
|
107
|
+
}, v = "unmounted", d = "exited", E = "entering", h = "entered", g = "exiting", f = /* @__PURE__ */ function(n) {
|
|
108
|
+
U(s, n);
|
|
109
|
+
function s(o, t) {
|
|
110
|
+
var e;
|
|
111
|
+
e = n.call(this, o, t) || this;
|
|
112
|
+
var r = t, u = r && !r.isMounting ? o.enter : o.appear, l;
|
|
113
|
+
return e.appearStatus = null, o.in ? u ? (l = d, e.appearStatus = E) : l = h : o.unmountOnExit || o.mountOnEnter ? l = v : l = d, e.state = {
|
|
114
|
+
status: l
|
|
115
|
+
}, e.nextCallback = null, e;
|
|
137
116
|
}
|
|
138
|
-
s.getDerivedStateFromProps = function(
|
|
139
|
-
var
|
|
140
|
-
return
|
|
141
|
-
status:
|
|
117
|
+
s.getDerivedStateFromProps = function(t, e) {
|
|
118
|
+
var r = t.in;
|
|
119
|
+
return r && e.status === v ? {
|
|
120
|
+
status: d
|
|
142
121
|
} : null;
|
|
143
122
|
};
|
|
144
123
|
var a = s.prototype;
|
|
145
124
|
return a.componentDidMount = function() {
|
|
146
125
|
this.updateStatus(!0, this.appearStatus);
|
|
147
|
-
}, a.componentDidUpdate = function(
|
|
148
|
-
var
|
|
149
|
-
if (
|
|
150
|
-
var
|
|
151
|
-
this.props.in ?
|
|
126
|
+
}, a.componentDidUpdate = function(t) {
|
|
127
|
+
var e = null;
|
|
128
|
+
if (t !== this.props) {
|
|
129
|
+
var r = this.state.status;
|
|
130
|
+
this.props.in ? r !== E && r !== h && (e = E) : (r === E || r === h) && (e = g);
|
|
152
131
|
}
|
|
153
|
-
this.updateStatus(!1,
|
|
132
|
+
this.updateStatus(!1, e);
|
|
154
133
|
}, a.componentWillUnmount = function() {
|
|
155
134
|
this.cancelNextCallback();
|
|
156
135
|
}, a.getTimeouts = function() {
|
|
157
|
-
var
|
|
158
|
-
return
|
|
159
|
-
exit:
|
|
160
|
-
enter:
|
|
136
|
+
var t = this.props.timeout, e, r, u;
|
|
137
|
+
return e = r = u = t, t != null && typeof t != "number" && (e = t.exit, r = t.enter, u = t.appear !== void 0 ? t.appear : r), {
|
|
138
|
+
exit: e,
|
|
139
|
+
enter: r,
|
|
161
140
|
appear: u
|
|
162
141
|
};
|
|
163
|
-
}, a.updateStatus = function(
|
|
164
|
-
if (
|
|
165
|
-
if (this.cancelNextCallback(),
|
|
142
|
+
}, a.updateStatus = function(t, e) {
|
|
143
|
+
if (t === void 0 && (t = !1), e !== null)
|
|
144
|
+
if (this.cancelNextCallback(), e === E) {
|
|
166
145
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
167
|
-
var
|
|
168
|
-
|
|
146
|
+
var r = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this);
|
|
147
|
+
r && te(r);
|
|
169
148
|
}
|
|
170
|
-
this.performEnter(
|
|
149
|
+
this.performEnter(t);
|
|
171
150
|
} else
|
|
172
151
|
this.performExit();
|
|
173
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
174
|
-
status:
|
|
152
|
+
else this.props.unmountOnExit && this.state.status === d && this.setState({
|
|
153
|
+
status: v
|
|
175
154
|
});
|
|
176
|
-
}, a.performEnter = function(
|
|
177
|
-
var
|
|
178
|
-
if (!
|
|
155
|
+
}, a.performEnter = function(t) {
|
|
156
|
+
var e = this, r = this.props.enter, u = this.context ? this.context.isMounting : t, l = this.props.nodeRef ? [u] : [b.findDOMNode(this), u], p = l[0], x = l[1], y = this.getTimeouts(), M = u ? y.appear : y.enter;
|
|
157
|
+
if (!t && !r || P.disabled) {
|
|
179
158
|
this.safeSetState({
|
|
180
|
-
status:
|
|
159
|
+
status: h
|
|
181
160
|
}, function() {
|
|
182
|
-
|
|
161
|
+
e.props.onEntered(p);
|
|
183
162
|
});
|
|
184
163
|
return;
|
|
185
164
|
}
|
|
186
|
-
this.props.onEnter(
|
|
187
|
-
status:
|
|
165
|
+
this.props.onEnter(p, x), this.safeSetState({
|
|
166
|
+
status: E
|
|
188
167
|
}, function() {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
status:
|
|
168
|
+
e.props.onEntering(p, x), e.onTransitionEnd(M, function() {
|
|
169
|
+
e.safeSetState({
|
|
170
|
+
status: h
|
|
192
171
|
}, function() {
|
|
193
|
-
|
|
172
|
+
e.props.onEntered(p, x);
|
|
194
173
|
});
|
|
195
174
|
});
|
|
196
175
|
});
|
|
197
176
|
}, a.performExit = function() {
|
|
198
|
-
var
|
|
199
|
-
if (!
|
|
177
|
+
var t = this, e = this.props.exit, r = this.getTimeouts(), u = this.props.nodeRef ? void 0 : b.findDOMNode(this);
|
|
178
|
+
if (!e || P.disabled) {
|
|
200
179
|
this.safeSetState({
|
|
201
|
-
status:
|
|
180
|
+
status: d
|
|
202
181
|
}, function() {
|
|
203
|
-
|
|
182
|
+
t.props.onExited(u);
|
|
204
183
|
});
|
|
205
184
|
return;
|
|
206
185
|
}
|
|
207
186
|
this.props.onExit(u), this.safeSetState({
|
|
208
|
-
status:
|
|
187
|
+
status: g
|
|
209
188
|
}, function() {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
status:
|
|
189
|
+
t.props.onExiting(u), t.onTransitionEnd(r.exit, function() {
|
|
190
|
+
t.safeSetState({
|
|
191
|
+
status: d
|
|
213
192
|
}, function() {
|
|
214
|
-
|
|
193
|
+
t.props.onExited(u);
|
|
215
194
|
});
|
|
216
195
|
});
|
|
217
196
|
});
|
|
218
197
|
}, a.cancelNextCallback = function() {
|
|
219
198
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
220
|
-
}, a.safeSetState = function(
|
|
221
|
-
|
|
222
|
-
}, a.setNextCallback = function(
|
|
223
|
-
var
|
|
199
|
+
}, a.safeSetState = function(t, e) {
|
|
200
|
+
e = this.setNextCallback(e), this.setState(t, e);
|
|
201
|
+
}, a.setNextCallback = function(t) {
|
|
202
|
+
var e = this, r = !0;
|
|
224
203
|
return this.nextCallback = function(u) {
|
|
225
|
-
|
|
204
|
+
r && (r = !1, e.nextCallback = null, t(u));
|
|
226
205
|
}, this.nextCallback.cancel = function() {
|
|
227
|
-
|
|
206
|
+
r = !1;
|
|
228
207
|
}, this.nextCallback;
|
|
229
|
-
}, a.onTransitionEnd = function(
|
|
230
|
-
this.setNextCallback(
|
|
231
|
-
var
|
|
232
|
-
if (!
|
|
208
|
+
}, a.onTransitionEnd = function(t, e) {
|
|
209
|
+
this.setNextCallback(e);
|
|
210
|
+
var r = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this), u = t == null && !this.props.addEndListener;
|
|
211
|
+
if (!r || u) {
|
|
233
212
|
setTimeout(this.nextCallback, 0);
|
|
234
213
|
return;
|
|
235
214
|
}
|
|
236
215
|
if (this.props.addEndListener) {
|
|
237
|
-
var
|
|
238
|
-
this.props.addEndListener(
|
|
216
|
+
var l = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback], p = l[0], x = l[1];
|
|
217
|
+
this.props.addEndListener(p, x);
|
|
239
218
|
}
|
|
240
|
-
|
|
219
|
+
t != null && setTimeout(this.nextCallback, t);
|
|
241
220
|
}, a.render = function() {
|
|
242
|
-
var
|
|
243
|
-
if (
|
|
221
|
+
var t = this.state.status;
|
|
222
|
+
if (t === v)
|
|
244
223
|
return null;
|
|
245
|
-
var
|
|
246
|
-
|
|
247
|
-
var u =
|
|
224
|
+
var e = this.props, r = e.children;
|
|
225
|
+
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;
|
|
226
|
+
var u = j(e, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
248
227
|
return (
|
|
249
228
|
// allows for nested Transitions
|
|
250
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ T.createElement(k.Provider, {
|
|
251
230
|
value: null
|
|
252
|
-
}, typeof
|
|
231
|
+
}, typeof r == "function" ? r(t, u) : T.cloneElement(T.Children.only(r), u))
|
|
253
232
|
);
|
|
254
233
|
}, s;
|
|
255
|
-
}(
|
|
256
|
-
|
|
257
|
-
|
|
234
|
+
}(T.Component);
|
|
235
|
+
f.contextType = k;
|
|
236
|
+
f.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
258
237
|
/**
|
|
259
238
|
* A React reference to DOM element that need to transition:
|
|
260
239
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -266,10 +245,10 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
266
245
|
* (see
|
|
267
246
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
268
247
|
*/
|
|
269
|
-
nodeRef:
|
|
270
|
-
current: typeof Element > "u" ?
|
|
271
|
-
var
|
|
272
|
-
return
|
|
248
|
+
nodeRef: i.shape({
|
|
249
|
+
current: typeof Element > "u" ? i.any : function(n, s, a, o, t, e) {
|
|
250
|
+
var r = n[s];
|
|
251
|
+
return i.instanceOf(r && "ownerDocument" in r ? r.ownerDocument.defaultView.Element : Element)(n, s, a, o, t, e);
|
|
273
252
|
}
|
|
274
253
|
}),
|
|
275
254
|
/**
|
|
@@ -286,23 +265,23 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
286
265
|
* </Transition>
|
|
287
266
|
* ```
|
|
288
267
|
*/
|
|
289
|
-
children:
|
|
268
|
+
children: i.oneOfType([i.func.isRequired, i.element.isRequired]).isRequired,
|
|
290
269
|
/**
|
|
291
270
|
* Show the component; triggers the enter or exit states
|
|
292
271
|
*/
|
|
293
|
-
in:
|
|
272
|
+
in: i.bool,
|
|
294
273
|
/**
|
|
295
274
|
* By default the child component is mounted immediately along with
|
|
296
275
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
297
276
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
298
277
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
299
278
|
*/
|
|
300
|
-
mountOnEnter:
|
|
279
|
+
mountOnEnter: i.bool,
|
|
301
280
|
/**
|
|
302
281
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
303
282
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
304
283
|
*/
|
|
305
|
-
unmountOnExit:
|
|
284
|
+
unmountOnExit: i.bool,
|
|
306
285
|
/**
|
|
307
286
|
* By default the child component does not perform the enter transition when
|
|
308
287
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -314,15 +293,15 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
314
293
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
315
294
|
* > differently.
|
|
316
295
|
*/
|
|
317
|
-
appear:
|
|
296
|
+
appear: i.bool,
|
|
318
297
|
/**
|
|
319
298
|
* Enable or disable enter transitions.
|
|
320
299
|
*/
|
|
321
|
-
enter:
|
|
300
|
+
enter: i.bool,
|
|
322
301
|
/**
|
|
323
302
|
* Enable or disable exit transitions.
|
|
324
303
|
*/
|
|
325
|
-
exit:
|
|
304
|
+
exit: i.bool,
|
|
326
305
|
/**
|
|
327
306
|
* The duration of the transition, in milliseconds.
|
|
328
307
|
* Required unless `addEndListener` is provided.
|
|
@@ -350,11 +329,11 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
350
329
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
351
330
|
*/
|
|
352
331
|
timeout: function(s) {
|
|
353
|
-
var a =
|
|
332
|
+
var a = ee;
|
|
354
333
|
s.addEndListener || (a = a.isRequired);
|
|
355
|
-
for (var
|
|
356
|
-
|
|
357
|
-
return a.apply(void 0, [s].concat(
|
|
334
|
+
for (var o = arguments.length, t = new Array(o > 1 ? o - 1 : 0), e = 1; e < o; e++)
|
|
335
|
+
t[e - 1] = arguments[e];
|
|
336
|
+
return a.apply(void 0, [s].concat(t));
|
|
358
337
|
},
|
|
359
338
|
/**
|
|
360
339
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -370,7 +349,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
370
349
|
* }}
|
|
371
350
|
* ```
|
|
372
351
|
*/
|
|
373
|
-
addEndListener:
|
|
352
|
+
addEndListener: i.func,
|
|
374
353
|
/**
|
|
375
354
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
376
355
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -379,7 +358,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
379
358
|
*
|
|
380
359
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
381
360
|
*/
|
|
382
|
-
onEnter:
|
|
361
|
+
onEnter: i.func,
|
|
383
362
|
/**
|
|
384
363
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
385
364
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -388,7 +367,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
388
367
|
*
|
|
389
368
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
390
369
|
*/
|
|
391
|
-
onEntering:
|
|
370
|
+
onEntering: i.func,
|
|
392
371
|
/**
|
|
393
372
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
394
373
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -397,7 +376,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
397
376
|
*
|
|
398
377
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
399
378
|
*/
|
|
400
|
-
onEntered:
|
|
379
|
+
onEntered: i.func,
|
|
401
380
|
/**
|
|
402
381
|
* Callback fired before the "exiting" status is applied.
|
|
403
382
|
*
|
|
@@ -405,7 +384,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
405
384
|
*
|
|
406
385
|
* @type Function(node: HtmlElement) -> void
|
|
407
386
|
*/
|
|
408
|
-
onExit:
|
|
387
|
+
onExit: i.func,
|
|
409
388
|
/**
|
|
410
389
|
* Callback fired after the "exiting" status is applied.
|
|
411
390
|
*
|
|
@@ -413,7 +392,7 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
413
392
|
*
|
|
414
393
|
* @type Function(node: HtmlElement) -> void
|
|
415
394
|
*/
|
|
416
|
-
onExiting:
|
|
395
|
+
onExiting: i.func,
|
|
417
396
|
/**
|
|
418
397
|
* Callback fired after the "exited" status is applied.
|
|
419
398
|
*
|
|
@@ -421,257 +400,74 @@ E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
421
400
|
*
|
|
422
401
|
* @type Function(node: HtmlElement) -> void
|
|
423
402
|
*/
|
|
424
|
-
onExited:
|
|
403
|
+
onExited: i.func
|
|
425
404
|
} : {};
|
|
426
|
-
function
|
|
405
|
+
function m() {
|
|
427
406
|
}
|
|
428
|
-
|
|
407
|
+
f.defaultProps = {
|
|
429
408
|
in: !1,
|
|
430
409
|
mountOnEnter: !1,
|
|
431
410
|
unmountOnExit: !1,
|
|
432
411
|
appear: !1,
|
|
433
412
|
enter: !0,
|
|
434
413
|
exit: !0,
|
|
435
|
-
onEnter:
|
|
436
|
-
onEntering:
|
|
437
|
-
onEntered:
|
|
438
|
-
onExit:
|
|
439
|
-
onExiting:
|
|
440
|
-
onExited:
|
|
414
|
+
onEnter: m,
|
|
415
|
+
onEntering: m,
|
|
416
|
+
onEntered: m,
|
|
417
|
+
onExit: m,
|
|
418
|
+
onExiting: m,
|
|
419
|
+
onExited: m
|
|
441
420
|
};
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
const
|
|
448
|
-
function
|
|
421
|
+
f.UNMOUNTED = v;
|
|
422
|
+
f.EXITED = d;
|
|
423
|
+
f.ENTERING = E;
|
|
424
|
+
f.ENTERED = h;
|
|
425
|
+
f.EXITING = g;
|
|
426
|
+
const de = (n) => n.scrollTop;
|
|
427
|
+
function Ee(n, s) {
|
|
449
428
|
const {
|
|
450
429
|
timeout: a,
|
|
451
|
-
easing:
|
|
452
|
-
style:
|
|
430
|
+
easing: o,
|
|
431
|
+
style: t = {}
|
|
453
432
|
} = n;
|
|
454
433
|
return {
|
|
455
|
-
duration:
|
|
456
|
-
easing:
|
|
457
|
-
delay:
|
|
434
|
+
duration: t.transitionDuration ?? (typeof a == "number" ? a : a[s.mode] || 0),
|
|
435
|
+
easing: t.transitionTimingFunction ?? (typeof o == "object" ? o[s.mode] : o),
|
|
436
|
+
delay: t.transitionDelay
|
|
458
437
|
};
|
|
459
438
|
}
|
|
460
|
-
function
|
|
461
|
-
return `scale(${n}, ${n ** 2})`;
|
|
462
|
-
}
|
|
463
|
-
const Mt = {
|
|
464
|
-
entering: {
|
|
465
|
-
opacity: 1,
|
|
466
|
-
transform: A(1)
|
|
467
|
-
},
|
|
468
|
-
entered: {
|
|
469
|
-
opacity: 1,
|
|
470
|
-
transform: "none"
|
|
471
|
-
}
|
|
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) {
|
|
473
|
-
const {
|
|
474
|
-
addEndListener: r,
|
|
475
|
-
appear: o = !0,
|
|
476
|
-
children: t,
|
|
477
|
-
easing: i,
|
|
478
|
-
in: u,
|
|
479
|
-
onEnter: c,
|
|
480
|
-
onEntered: f,
|
|
481
|
-
onEntering: m,
|
|
482
|
-
onExit: h,
|
|
483
|
-
onExited: _,
|
|
484
|
-
onExiting: Z,
|
|
485
|
-
style: k,
|
|
486
|
-
timeout: v = "auto",
|
|
487
|
-
// eslint-disable-next-line react/prop-types
|
|
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);
|
|
494
|
-
}
|
|
495
|
-
}, it = N(m), rt = N((l, x) => {
|
|
496
|
-
Lt(l);
|
|
497
|
-
const {
|
|
498
|
-
duration: g,
|
|
499
|
-
delay: C,
|
|
500
|
-
easing: d
|
|
501
|
-
} = z({
|
|
502
|
-
style: k,
|
|
503
|
-
timeout: v,
|
|
504
|
-
easing: i
|
|
505
|
-
}, {
|
|
506
|
-
mode: "enter"
|
|
507
|
-
});
|
|
508
|
-
let D;
|
|
509
|
-
v === "auto" ? (D = b.transitions.getAutoHeightDuration(l.clientHeight), L.current = D) : D = g, l.style.transition = [b.transitions.create("opacity", {
|
|
510
|
-
duration: D,
|
|
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) => {
|
|
518
|
-
const {
|
|
519
|
-
duration: x,
|
|
520
|
-
delay: g,
|
|
521
|
-
easing: C
|
|
522
|
-
} = z({
|
|
523
|
-
style: k,
|
|
524
|
-
timeout: v,
|
|
525
|
-
easing: i
|
|
526
|
-
}, {
|
|
527
|
-
mode: "exit"
|
|
528
|
-
});
|
|
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,
|
|
541
|
-
in: u,
|
|
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);
|
|
551
|
-
},
|
|
552
|
-
timeout: v === "auto" ? null : v,
|
|
553
|
-
...et,
|
|
554
|
-
children: (l, x) => /* @__PURE__ */ p.cloneElement(t, {
|
|
555
|
-
style: {
|
|
556
|
-
opacity: 0,
|
|
557
|
-
transform: A(0.75),
|
|
558
|
-
visibility: l === "exited" && !u ? "hidden" : void 0,
|
|
559
|
-
...Mt[l],
|
|
560
|
-
...k,
|
|
561
|
-
...t.props.style
|
|
562
|
-
},
|
|
563
|
-
ref: ot,
|
|
564
|
-
...x
|
|
565
|
-
})
|
|
566
|
-
});
|
|
567
|
-
});
|
|
568
|
-
process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
569
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
570
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
571
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
572
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
573
|
-
/**
|
|
574
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
575
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
576
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
577
|
-
*/
|
|
578
|
-
addEndListener: e.func,
|
|
579
|
-
/**
|
|
580
|
-
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
581
|
-
* Set this to `false` to disable this behavior.
|
|
582
|
-
* @default true
|
|
583
|
-
*/
|
|
584
|
-
appear: e.bool,
|
|
585
|
-
/**
|
|
586
|
-
* A single child content element.
|
|
587
|
-
*/
|
|
588
|
-
children: Q.isRequired,
|
|
589
|
-
/**
|
|
590
|
-
* The transition timing function.
|
|
591
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
592
|
-
*/
|
|
593
|
-
easing: e.oneOfType([e.shape({
|
|
594
|
-
enter: e.string,
|
|
595
|
-
exit: e.string
|
|
596
|
-
}), e.string]),
|
|
597
|
-
/**
|
|
598
|
-
* If `true`, the component will transition in.
|
|
599
|
-
*/
|
|
600
|
-
in: e.bool,
|
|
601
|
-
/**
|
|
602
|
-
* @ignore
|
|
603
|
-
*/
|
|
604
|
-
onEnter: e.func,
|
|
605
|
-
/**
|
|
606
|
-
* @ignore
|
|
607
|
-
*/
|
|
608
|
-
onEntered: e.func,
|
|
609
|
-
/**
|
|
610
|
-
* @ignore
|
|
611
|
-
*/
|
|
612
|
-
onEntering: e.func,
|
|
613
|
-
/**
|
|
614
|
-
* @ignore
|
|
615
|
-
*/
|
|
616
|
-
onExit: e.func,
|
|
617
|
-
/**
|
|
618
|
-
* @ignore
|
|
619
|
-
*/
|
|
620
|
-
onExited: e.func,
|
|
621
|
-
/**
|
|
622
|
-
* @ignore
|
|
623
|
-
*/
|
|
624
|
-
onExiting: e.func,
|
|
625
|
-
/**
|
|
626
|
-
* @ignore
|
|
627
|
-
*/
|
|
628
|
-
style: e.object,
|
|
629
|
-
/**
|
|
630
|
-
* The duration for the transition, in milliseconds.
|
|
631
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
632
|
-
*
|
|
633
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
634
|
-
* @default 'auto'
|
|
635
|
-
*/
|
|
636
|
-
timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
637
|
-
appear: e.number,
|
|
638
|
-
enter: e.number,
|
|
639
|
-
exit: e.number
|
|
640
|
-
})])
|
|
641
|
-
});
|
|
642
|
-
j && (j.muiSupportAuto = !0);
|
|
643
|
-
function $t(n) {
|
|
439
|
+
function ne(n) {
|
|
644
440
|
return typeof n == "function" ? n() : n;
|
|
645
441
|
}
|
|
646
|
-
const
|
|
442
|
+
const N = /* @__PURE__ */ c.forwardRef(function(s, a) {
|
|
647
443
|
const {
|
|
648
|
-
children:
|
|
649
|
-
container:
|
|
650
|
-
disablePortal:
|
|
651
|
-
} = s, [
|
|
652
|
-
if (
|
|
653
|
-
|
|
654
|
-
}, [
|
|
655
|
-
if (
|
|
656
|
-
return
|
|
657
|
-
|
|
444
|
+
children: o,
|
|
445
|
+
container: t,
|
|
446
|
+
disablePortal: e = !1
|
|
447
|
+
} = s, [r, u] = c.useState(null), l = q(/* @__PURE__ */ c.isValidElement(o) ? Z(o) : null, a);
|
|
448
|
+
if (D(() => {
|
|
449
|
+
e || u(ne(t) || document.body);
|
|
450
|
+
}, [t, e]), D(() => {
|
|
451
|
+
if (r && !e)
|
|
452
|
+
return O(a, r), () => {
|
|
453
|
+
O(a, null);
|
|
658
454
|
};
|
|
659
|
-
}, [a,
|
|
660
|
-
if (/* @__PURE__ */
|
|
661
|
-
const
|
|
662
|
-
ref:
|
|
455
|
+
}, [a, r, e]), e) {
|
|
456
|
+
if (/* @__PURE__ */ c.isValidElement(o)) {
|
|
457
|
+
const p = {
|
|
458
|
+
ref: l
|
|
663
459
|
};
|
|
664
|
-
return /* @__PURE__ */
|
|
460
|
+
return /* @__PURE__ */ c.cloneElement(o, p);
|
|
665
461
|
}
|
|
666
|
-
return /* @__PURE__ */
|
|
667
|
-
children:
|
|
462
|
+
return /* @__PURE__ */ R(c.Fragment, {
|
|
463
|
+
children: o
|
|
668
464
|
});
|
|
669
465
|
}
|
|
670
|
-
return /* @__PURE__ */
|
|
671
|
-
children:
|
|
466
|
+
return /* @__PURE__ */ R(c.Fragment, {
|
|
467
|
+
children: r && /* @__PURE__ */ F.createPortal(o, r)
|
|
672
468
|
});
|
|
673
469
|
});
|
|
674
|
-
process.env.NODE_ENV !== "production" && (
|
|
470
|
+
process.env.NODE_ENV !== "production" && (N.propTypes = {
|
|
675
471
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
676
472
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
677
473
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -679,7 +475,7 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
679
475
|
/**
|
|
680
476
|
* The children to render into the `container`.
|
|
681
477
|
*/
|
|
682
|
-
children:
|
|
478
|
+
children: i.node,
|
|
683
479
|
/**
|
|
684
480
|
* An HTML element or function that returns one.
|
|
685
481
|
* The `container` will have the portal children appended to it.
|
|
@@ -690,28 +486,26 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
690
486
|
* By default, it uses the body of the top-level document object,
|
|
691
487
|
* so it's simply `document.body` most of the time.
|
|
692
488
|
*/
|
|
693
|
-
container:
|
|
489
|
+
container: i.oneOfType([K, i.func]),
|
|
694
490
|
/**
|
|
695
491
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
696
492
|
* @default false
|
|
697
493
|
*/
|
|
698
|
-
disablePortal:
|
|
494
|
+
disablePortal: i.bool
|
|
699
495
|
});
|
|
700
|
-
process.env.NODE_ENV !== "production" && (
|
|
496
|
+
process.env.NODE_ENV !== "production" && (N.propTypes = J(N.propTypes));
|
|
701
497
|
export {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
Lt as r,
|
|
716
|
-
bt as u
|
|
498
|
+
K as H,
|
|
499
|
+
N as P,
|
|
500
|
+
f as T,
|
|
501
|
+
Ee as a,
|
|
502
|
+
pe as b,
|
|
503
|
+
H as c,
|
|
504
|
+
J as d,
|
|
505
|
+
B as e,
|
|
506
|
+
X as f,
|
|
507
|
+
Z as g,
|
|
508
|
+
ce as o,
|
|
509
|
+
de as r,
|
|
510
|
+
fe as u
|
|
717
511
|
};
|