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