fansunited-frontend-components 0.0.49 → 0.0.52
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/Betslip.d.ts +5 -0
- package/Betslip.d.ts.map +1 -0
- package/Betslip.js +5 -0
- package/ChanceGame.js +87 -86
- package/ClassicQuizPlay.js +174 -173
- package/CollectLead.js +33 -32
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +171 -170
- package/EventGamePlay.js +25 -24
- package/Leaderboard.js +88 -87
- package/MatchQuizPlay.js +28 -27
- package/PersonalityQuizPlay.js +21 -20
- package/PickThePair.js +87 -86
- package/PollVote.js +19 -18
- package/Predictor.js +4756 -4693
- package/README.md +523 -1
- package/chunks/{AlertMessage-Ds45MBHB.js → AlertMessage-CQ9WJHSb.js} +25 -24
- package/chunks/{ArrowRightAlt-DKADQN2o.js → ArrowRightAlt-C1U8SNu-.js} +5 -5
- package/chunks/{Avatar-K1EWhhkA.js → Avatar-COVJnfGS.js} +79 -78
- package/chunks/Button-COvmPv4P.js +2270 -0
- package/chunks/{ChanceGameEmbedVariant-DqFg4YKU.js → ChanceGameEmbedVariant-lfZlSATv.js} +44 -43
- package/chunks/{CheckCircle-CV9iMpkZ.js → CheckCircle-h7-xLUq-.js} +27 -26
- package/chunks/{Close-C6Cw96SJ.js → Close-BTC6xyyj.js} +1 -1
- package/chunks/{Close-BHp4N1-6.js → Close-DBaorsP1.js} +1 -1
- package/chunks/{CollectLeadForm-DnLKA8qz.js → CollectLeadForm-O7Cpe0ix.js} +128 -127
- package/chunks/{Divider-BvUimRFw.js → Divider-DBCeQt9x.js} +15 -14
- package/chunks/{Edit-CZ3ni-Ur.js → Edit-BwwxJdNv.js} +35 -34
- package/chunks/{EmojiEvents-DpmLq98V.js → EmojiEvents-DVPGlTU_.js} +3 -3
- package/chunks/{FavoriteBorder-DUK_DrY4.js → FavoriteBorder-BnhfbKy1.js} +1 -1
- package/chunks/{FormControl-BUItlVIg.js → FormControl-COjw1gQd.js} +38 -37
- package/chunks/{FormLabel-CeTNPUn7.js → FormLabel-e5_v5cjP.js} +18 -17
- package/chunks/{Input-MJCQcYzo.js → Input-er-Yyqtt.js} +17 -16
- package/chunks/{KeyboardArrowDown-SZpn2GhJ.js → KeyboardArrowDown-BeaYH92n.js} +1 -1
- package/chunks/{ModalDialog-Cfgv9UAA.js → ModalDialog-XkhZtgYm.js} +58 -57
- package/chunks/{NotFoundSkeleton-Cs6DtD9u.js → NotFoundSkeleton-C71TRYl5.js} +95 -94
- package/chunks/{Notification-pcKtlRms.js → Notification-CkPupg9q.js} +57 -56
- package/chunks/{OverlayApiErrorSkeleton-Dl3s5Oaf.js → OverlayApiErrorSkeleton-CkuDu9uV.js} +20 -19
- package/chunks/{OverlayLeadAfterCollection-F2TAV9wK.js → OverlayLeadAfterCollection-Dkxl4cKn.js} +28 -27
- package/chunks/{OverlayScoreStateSkeleton-LQ0svzeX.js → OverlayScoreStateSkeleton-RauDjIg5.js} +16 -15
- package/chunks/{Person-BGdniS_p.js → Person-WCt2MN5j.js} +32 -31
- package/chunks/{PickOneOfX-Ci4ZJf7G.js → PickOneOfX-DabfTR2W.js} +8 -7
- package/chunks/{Popper-DOVSI4rJ.js → Popper-OPgbZzY7.js} +127 -126
- package/chunks/{Portal-Cs0dgwmH.js → Portal-BQilulgu.js} +5 -5
- package/chunks/{PrizeCard-DF3QxwQJ.js → PrizeCard-DgHyperX.js} +5238 -6653
- package/chunks/{Select-BHeTdOYr.js → Select-9gmhEo71.js} +133 -132
- package/chunks/{Spinner-DbUB64Gj.js → Spinner-BoysVPn7.js} +12 -11
- package/chunks/{SplitLeadAfterCollection-DSw6X5fx.js → SplitLeadAfterCollection-C5oCDYT1.js} +15 -14
- package/chunks/{Stack-BpHk5eb0.js → Stack-INH9bhkC.js} +30 -29
- package/chunks/{StandardContentSkeleton-Bae1LLQ_.js → StandardContentSkeleton-DsAhzMfU.js} +1 -1
- package/chunks/{Tabs-hwJ7jsUl.js → Tabs-DaVatjCJ.js} +60 -59
- package/chunks/{Textarea-zOtMdgc5.js → Textarea-DeMxp3Zn.js} +48 -47
- package/chunks/{TimerOutlined-DWE7f0YX.js → TimerOutlined-DJh2vL3s.js} +3 -3
- package/chunks/{helpers-NuC1SzL3.js → helpers-Bd9FT9hj.js} +1 -1
- package/chunks/{index-D1K1OB4p.js → index-5MPtbA_r.js} +255 -239
- package/chunks/index-BjfKDjAM.js +4 -0
- package/chunks/main-DDb9jezz.js +1758 -0
- package/chunks/{main-hB01WcoP.js → main-DWw1vqVY.js} +38 -37
- package/chunks/{useEventCallback-CizlfWBo.js → useEventCallback-vbTEFVPa.js} +8 -7
- package/chunks/{useForwardedInput-RWDntqBU.js → useForwardedInput-DumYVfgj.js} +26 -25
- package/chunks/{useImageVariant-Cex1eIqq.js → useImageVariant-B1ObJh_B.js} +1 -1
- package/components.d.ts +2 -1
- package/components.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +5 -3
- package/package.json +5 -1
- package/chunks/index-BaypiKlO.js +0 -4
|
@@ -0,0 +1,2270 @@
|
|
|
1
|
+
import * as b from "react";
|
|
2
|
+
import * as rt from "react-dom";
|
|
3
|
+
import { Q as ot, Z as nt, t as Y, $ as at, _ as c, J as U, a0 as ke, a1 as it, a2 as st, a3 as lt, v as ve, a4 as Me, a5 as Le, N as xe, P as o, M as ct, a6 as We, s as ae, r as ie, H as ut, a7 as dt, L as pt } from "./PrizeCard-DgHyperX.js";
|
|
4
|
+
import { jsx as M, jsxs as oe } from "react/jsx-runtime";
|
|
5
|
+
var ge = { exports: {} }, k = {};
|
|
6
|
+
/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react-is.production.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
var Be;
|
|
16
|
+
function ft() {
|
|
17
|
+
if (Be) return k;
|
|
18
|
+
Be = 1;
|
|
19
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.consumer"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), P = Symbol.for("react.view_transition"), S = Symbol.for("react.client.reference");
|
|
20
|
+
function y(s) {
|
|
21
|
+
if (typeof s == "object" && s !== null) {
|
|
22
|
+
var T = s.$$typeof;
|
|
23
|
+
switch (T) {
|
|
24
|
+
case e:
|
|
25
|
+
switch (s = s.type, s) {
|
|
26
|
+
case n:
|
|
27
|
+
case i:
|
|
28
|
+
case a:
|
|
29
|
+
case f:
|
|
30
|
+
case u:
|
|
31
|
+
case P:
|
|
32
|
+
return s;
|
|
33
|
+
default:
|
|
34
|
+
switch (s = s && s.$$typeof, s) {
|
|
35
|
+
case l:
|
|
36
|
+
case d:
|
|
37
|
+
case v:
|
|
38
|
+
case h:
|
|
39
|
+
return s;
|
|
40
|
+
case r:
|
|
41
|
+
return s;
|
|
42
|
+
default:
|
|
43
|
+
return T;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
case t:
|
|
47
|
+
return T;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return k.ContextConsumer = r, k.ContextProvider = l, k.Element = e, k.ForwardRef = d, k.Fragment = n, k.Lazy = v, k.Memo = h, k.Portal = t, k.Profiler = i, k.StrictMode = a, k.Suspense = f, k.SuspenseList = u, k.isContextConsumer = function(s) {
|
|
52
|
+
return y(s) === r;
|
|
53
|
+
}, k.isContextProvider = function(s) {
|
|
54
|
+
return y(s) === l;
|
|
55
|
+
}, k.isElement = function(s) {
|
|
56
|
+
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
57
|
+
}, k.isForwardRef = function(s) {
|
|
58
|
+
return y(s) === d;
|
|
59
|
+
}, k.isFragment = function(s) {
|
|
60
|
+
return y(s) === n;
|
|
61
|
+
}, k.isLazy = function(s) {
|
|
62
|
+
return y(s) === v;
|
|
63
|
+
}, k.isMemo = function(s) {
|
|
64
|
+
return y(s) === h;
|
|
65
|
+
}, k.isPortal = function(s) {
|
|
66
|
+
return y(s) === t;
|
|
67
|
+
}, k.isProfiler = function(s) {
|
|
68
|
+
return y(s) === i;
|
|
69
|
+
}, k.isStrictMode = function(s) {
|
|
70
|
+
return y(s) === a;
|
|
71
|
+
}, k.isSuspense = function(s) {
|
|
72
|
+
return y(s) === f;
|
|
73
|
+
}, k.isSuspenseList = function(s) {
|
|
74
|
+
return y(s) === u;
|
|
75
|
+
}, k.isValidElementType = function(s) {
|
|
76
|
+
return typeof s == "string" || typeof s == "function" || s === n || s === i || s === a || s === f || s === u || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === h || s.$$typeof === l || s.$$typeof === r || s.$$typeof === d || s.$$typeof === S || s.getModuleId !== void 0);
|
|
77
|
+
}, k.typeOf = y, k;
|
|
78
|
+
}
|
|
79
|
+
var x = {};
|
|
80
|
+
/**
|
|
81
|
+
* @license React
|
|
82
|
+
* react-is.development.js
|
|
83
|
+
*
|
|
84
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the MIT license found in the
|
|
87
|
+
* LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/
|
|
89
|
+
var Re;
|
|
90
|
+
function vt() {
|
|
91
|
+
return Re || (Re = 1, process.env.NODE_ENV !== "production" && function() {
|
|
92
|
+
function e(s) {
|
|
93
|
+
if (typeof s == "object" && s !== null) {
|
|
94
|
+
var T = s.$$typeof;
|
|
95
|
+
switch (T) {
|
|
96
|
+
case t:
|
|
97
|
+
switch (s = s.type, s) {
|
|
98
|
+
case a:
|
|
99
|
+
case r:
|
|
100
|
+
case i:
|
|
101
|
+
case u:
|
|
102
|
+
case h:
|
|
103
|
+
case S:
|
|
104
|
+
return s;
|
|
105
|
+
default:
|
|
106
|
+
switch (s = s && s.$$typeof, s) {
|
|
107
|
+
case d:
|
|
108
|
+
case f:
|
|
109
|
+
case P:
|
|
110
|
+
case v:
|
|
111
|
+
return s;
|
|
112
|
+
case l:
|
|
113
|
+
return s;
|
|
114
|
+
default:
|
|
115
|
+
return T;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
case n:
|
|
119
|
+
return T;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), l = Symbol.for("react.consumer"), d = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), S = Symbol.for("react.view_transition"), y = Symbol.for("react.client.reference");
|
|
124
|
+
x.ContextConsumer = l, x.ContextProvider = d, x.Element = t, x.ForwardRef = f, x.Fragment = a, x.Lazy = P, x.Memo = v, x.Portal = n, x.Profiler = r, x.StrictMode = i, x.Suspense = u, x.SuspenseList = h, x.isContextConsumer = function(s) {
|
|
125
|
+
return e(s) === l;
|
|
126
|
+
}, x.isContextProvider = function(s) {
|
|
127
|
+
return e(s) === d;
|
|
128
|
+
}, x.isElement = function(s) {
|
|
129
|
+
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
130
|
+
}, x.isForwardRef = function(s) {
|
|
131
|
+
return e(s) === f;
|
|
132
|
+
}, x.isFragment = function(s) {
|
|
133
|
+
return e(s) === a;
|
|
134
|
+
}, x.isLazy = function(s) {
|
|
135
|
+
return e(s) === P;
|
|
136
|
+
}, x.isMemo = function(s) {
|
|
137
|
+
return e(s) === v;
|
|
138
|
+
}, x.isPortal = function(s) {
|
|
139
|
+
return e(s) === n;
|
|
140
|
+
}, x.isProfiler = function(s) {
|
|
141
|
+
return e(s) === r;
|
|
142
|
+
}, x.isStrictMode = function(s) {
|
|
143
|
+
return e(s) === i;
|
|
144
|
+
}, x.isSuspense = function(s) {
|
|
145
|
+
return e(s) === u;
|
|
146
|
+
}, x.isSuspenseList = function(s) {
|
|
147
|
+
return e(s) === h;
|
|
148
|
+
}, x.isValidElementType = function(s) {
|
|
149
|
+
return typeof s == "string" || typeof s == "function" || s === a || s === r || s === i || s === u || s === h || typeof s == "object" && s !== null && (s.$$typeof === P || s.$$typeof === v || s.$$typeof === d || s.$$typeof === l || s.$$typeof === f || s.$$typeof === y || s.getModuleId !== void 0);
|
|
150
|
+
}, x.typeOf = e;
|
|
151
|
+
}()), x;
|
|
152
|
+
}
|
|
153
|
+
process.env.NODE_ENV === "production" ? ge.exports = ft() : ge.exports = vt();
|
|
154
|
+
var De = ge.exports;
|
|
155
|
+
const gt = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
156
|
+
function mt(e) {
|
|
157
|
+
const t = `${e}`.match(gt);
|
|
158
|
+
return t && t[1] || "";
|
|
159
|
+
}
|
|
160
|
+
function Ye(e, t = "") {
|
|
161
|
+
return e.displayName || e.name || mt(e) || t;
|
|
162
|
+
}
|
|
163
|
+
function Ie(e, t, n) {
|
|
164
|
+
const a = Ye(t);
|
|
165
|
+
return e.displayName || (a !== "" ? `${n}(${a})` : n);
|
|
166
|
+
}
|
|
167
|
+
function ht(e) {
|
|
168
|
+
if (e != null) {
|
|
169
|
+
if (typeof e == "string")
|
|
170
|
+
return e;
|
|
171
|
+
if (typeof e == "function")
|
|
172
|
+
return Ye(e, "Component");
|
|
173
|
+
if (typeof e == "object")
|
|
174
|
+
switch (e.$$typeof) {
|
|
175
|
+
case De.ForwardRef:
|
|
176
|
+
return Ie(e, e.render, "ForwardRef");
|
|
177
|
+
case De.Memo:
|
|
178
|
+
return Ie(e, e.type, "memo");
|
|
179
|
+
default:
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const yt = ["ownerState"], bt = ["variants"], $t = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
185
|
+
function Ct(e) {
|
|
186
|
+
return Object.keys(e).length === 0;
|
|
187
|
+
}
|
|
188
|
+
function Tt(e) {
|
|
189
|
+
return typeof e == "string" && // 96 is one less than the char code
|
|
190
|
+
// for "a" so this is checking that
|
|
191
|
+
// it's a lowercase character
|
|
192
|
+
e.charCodeAt(0) > 96;
|
|
193
|
+
}
|
|
194
|
+
function pe(e) {
|
|
195
|
+
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
196
|
+
}
|
|
197
|
+
function Oe(e, t) {
|
|
198
|
+
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
199
|
+
}
|
|
200
|
+
const _t = ot(), Ne = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
201
|
+
function te({
|
|
202
|
+
defaultTheme: e,
|
|
203
|
+
theme: t,
|
|
204
|
+
themeId: n
|
|
205
|
+
}) {
|
|
206
|
+
return Ct(t) ? e : t[n] || t;
|
|
207
|
+
}
|
|
208
|
+
function Et(e) {
|
|
209
|
+
return e ? (t, n) => n[e] : null;
|
|
210
|
+
}
|
|
211
|
+
function re(e, t, n) {
|
|
212
|
+
let {
|
|
213
|
+
ownerState: a
|
|
214
|
+
} = t, i = Y(t, yt);
|
|
215
|
+
const r = typeof e == "function" ? e(c({
|
|
216
|
+
ownerState: a
|
|
217
|
+
}, i)) : e;
|
|
218
|
+
if (Array.isArray(r))
|
|
219
|
+
return r.flatMap((l) => re(l, c({
|
|
220
|
+
ownerState: a
|
|
221
|
+
}, i), n));
|
|
222
|
+
if (r && typeof r == "object" && Array.isArray(r.variants)) {
|
|
223
|
+
const {
|
|
224
|
+
variants: l = []
|
|
225
|
+
} = r;
|
|
226
|
+
let f = Y(r, bt);
|
|
227
|
+
return l.forEach((u) => {
|
|
228
|
+
let h = !0;
|
|
229
|
+
if (typeof u.props == "function" ? h = u.props(c({
|
|
230
|
+
ownerState: a
|
|
231
|
+
}, i, a)) : Object.keys(u.props).forEach((v) => {
|
|
232
|
+
(a == null ? void 0 : a[v]) !== u.props[v] && i[v] !== u.props[v] && (h = !1);
|
|
233
|
+
}), h) {
|
|
234
|
+
Array.isArray(f) || (f = [f]);
|
|
235
|
+
const v = typeof u.style == "function" ? u.style(c({
|
|
236
|
+
ownerState: a
|
|
237
|
+
}, i, a)) : u.style;
|
|
238
|
+
f.push(n ? Oe(ke(v), n) : v);
|
|
239
|
+
}
|
|
240
|
+
}), f;
|
|
241
|
+
}
|
|
242
|
+
return n ? Oe(ke(r), n) : r;
|
|
243
|
+
}
|
|
244
|
+
function Pt(e = {}) {
|
|
245
|
+
const {
|
|
246
|
+
themeId: t,
|
|
247
|
+
defaultTheme: n = _t,
|
|
248
|
+
rootShouldForwardProp: a = pe,
|
|
249
|
+
slotShouldForwardProp: i = pe
|
|
250
|
+
} = e, r = (l) => it(c({}, l, {
|
|
251
|
+
theme: te(c({}, l, {
|
|
252
|
+
defaultTheme: n,
|
|
253
|
+
themeId: t
|
|
254
|
+
}))
|
|
255
|
+
}));
|
|
256
|
+
return r.__mui_systemSx = !0, (l, d = {}) => {
|
|
257
|
+
nt(l, (C) => C.filter((g) => !(g != null && g.__mui_systemSx)));
|
|
258
|
+
const {
|
|
259
|
+
name: f,
|
|
260
|
+
slot: u,
|
|
261
|
+
skipVariantsResolver: h,
|
|
262
|
+
skipSx: v,
|
|
263
|
+
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
264
|
+
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
265
|
+
overridesResolver: P = Et(Ne(u))
|
|
266
|
+
} = d, S = Y(d, $t), y = f && f.startsWith("Mui") || u ? "components" : "custom", s = h !== void 0 ? h : (
|
|
267
|
+
// TODO v6: remove `Root` in the next major release
|
|
268
|
+
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
269
|
+
u && u !== "Root" && u !== "root" || !1
|
|
270
|
+
), T = v || !1;
|
|
271
|
+
let B;
|
|
272
|
+
process.env.NODE_ENV !== "production" && f && (B = `${f}-${Ne(u || "Root")}`);
|
|
273
|
+
let _ = pe;
|
|
274
|
+
u === "Root" || u === "root" ? _ = a : u ? _ = i : Tt(l) && (_ = void 0);
|
|
275
|
+
const R = at(l, c({
|
|
276
|
+
shouldForwardProp: _,
|
|
277
|
+
label: B
|
|
278
|
+
}, S)), N = (C) => typeof C == "function" && C.__emotion_real !== C || st(C) ? (g) => {
|
|
279
|
+
const O = te({
|
|
280
|
+
theme: g.theme,
|
|
281
|
+
defaultTheme: n,
|
|
282
|
+
themeId: t
|
|
283
|
+
});
|
|
284
|
+
return re(C, c({}, g, {
|
|
285
|
+
theme: O
|
|
286
|
+
}), O.modularCssLayers ? y : void 0);
|
|
287
|
+
} : C, I = (C, ...g) => {
|
|
288
|
+
let O = N(C);
|
|
289
|
+
const z = g ? g.map(N) : [];
|
|
290
|
+
f && P && z.push((D) => {
|
|
291
|
+
const E = te(c({}, D, {
|
|
292
|
+
defaultTheme: n,
|
|
293
|
+
themeId: t
|
|
294
|
+
}));
|
|
295
|
+
if (!E.components || !E.components[f] || !E.components[f].styleOverrides)
|
|
296
|
+
return null;
|
|
297
|
+
const F = E.components[f].styleOverrides, m = {};
|
|
298
|
+
return Object.entries(F).forEach(([p, $]) => {
|
|
299
|
+
m[p] = re($, c({}, D, {
|
|
300
|
+
theme: E
|
|
301
|
+
}), E.modularCssLayers ? "theme" : void 0);
|
|
302
|
+
}), P(D, m);
|
|
303
|
+
}), f && !s && z.push((D) => {
|
|
304
|
+
var E;
|
|
305
|
+
const F = te(c({}, D, {
|
|
306
|
+
defaultTheme: n,
|
|
307
|
+
themeId: t
|
|
308
|
+
})), m = F == null || (E = F.components) == null || (E = E[f]) == null ? void 0 : E.variants;
|
|
309
|
+
return re({
|
|
310
|
+
variants: m
|
|
311
|
+
}, c({}, D, {
|
|
312
|
+
theme: F
|
|
313
|
+
}), F.modularCssLayers ? "theme" : void 0);
|
|
314
|
+
}), T || z.push(r);
|
|
315
|
+
const V = z.length - g.length;
|
|
316
|
+
if (Array.isArray(C) && V > 0) {
|
|
317
|
+
const D = new Array(V).fill("");
|
|
318
|
+
O = [...C, ...D], O.raw = [...C.raw, ...D];
|
|
319
|
+
}
|
|
320
|
+
const H = R(O, ...z);
|
|
321
|
+
if (process.env.NODE_ENV !== "production") {
|
|
322
|
+
let D;
|
|
323
|
+
f && (D = `${f}${U(u || "")}`), D === void 0 && (D = `Styled(${ht(l)})`), H.displayName = D;
|
|
324
|
+
}
|
|
325
|
+
return l.muiName && (H.muiName = l.muiName), H;
|
|
326
|
+
};
|
|
327
|
+
return R.withConfig && (I.withConfig = R.withConfig), I;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function Ue(e, t) {
|
|
331
|
+
const n = c({}, t);
|
|
332
|
+
return Object.keys(e).forEach((a) => {
|
|
333
|
+
if (a.toString().match(/^(components|slots)$/))
|
|
334
|
+
n[a] = c({}, e[a], n[a]);
|
|
335
|
+
else if (a.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
336
|
+
const i = e[a] || {}, r = t[a];
|
|
337
|
+
n[a] = {}, !r || !Object.keys(r) ? n[a] = i : !i || !Object.keys(i) ? n[a] = r : (n[a] = c({}, r), Object.keys(i).forEach((l) => {
|
|
338
|
+
n[a][l] = Ue(i[l], r[l]);
|
|
339
|
+
}));
|
|
340
|
+
} else n[a] === void 0 && (n[a] = e[a]);
|
|
341
|
+
}), n;
|
|
342
|
+
}
|
|
343
|
+
function St(e) {
|
|
344
|
+
const {
|
|
345
|
+
theme: t,
|
|
346
|
+
name: n,
|
|
347
|
+
props: a
|
|
348
|
+
} = e;
|
|
349
|
+
return !t || !t.components || !t.components[n] || !t.components[n].defaultProps ? a : Ue(t.components[n].defaultProps, a);
|
|
350
|
+
}
|
|
351
|
+
function kt({
|
|
352
|
+
props: e,
|
|
353
|
+
name: t,
|
|
354
|
+
defaultTheme: n,
|
|
355
|
+
themeId: a
|
|
356
|
+
}) {
|
|
357
|
+
let i = lt(n);
|
|
358
|
+
return a && (i = i[a] || i), St({
|
|
359
|
+
theme: i,
|
|
360
|
+
name: t,
|
|
361
|
+
props: e
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
function Dr(e, t) {
|
|
365
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...a) {
|
|
366
|
+
return e(...a) || t(...a);
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
function xt(e, t, n, a, i) {
|
|
370
|
+
if (process.env.NODE_ENV === "production")
|
|
371
|
+
return null;
|
|
372
|
+
const r = e[t], l = i || t;
|
|
373
|
+
return r == null ? null : r && r.nodeType !== 1 ? new Error(`Invalid ${a} \`${l}\` supplied to \`${n}\`. Expected an HTMLElement.`) : null;
|
|
374
|
+
}
|
|
375
|
+
function Bt(e, t) {
|
|
376
|
+
var n, a;
|
|
377
|
+
return /* @__PURE__ */ b.isValidElement(e) && t.indexOf(
|
|
378
|
+
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
379
|
+
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
380
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
381
|
+
(n = e.type.muiName) != null ? n : (a = e.type) == null || (a = a._payload) == null || (a = a.value) == null ? void 0 : a.muiName
|
|
382
|
+
) !== -1;
|
|
383
|
+
}
|
|
384
|
+
function Ir(e) {
|
|
385
|
+
return e && e.ownerDocument || document;
|
|
386
|
+
}
|
|
387
|
+
function me(e, t) {
|
|
388
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
389
|
+
}
|
|
390
|
+
function X(...e) {
|
|
391
|
+
return b.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
392
|
+
e.forEach((n) => {
|
|
393
|
+
me(n, t);
|
|
394
|
+
});
|
|
395
|
+
}, e);
|
|
396
|
+
}
|
|
397
|
+
const ze = {};
|
|
398
|
+
function Rt(e, t) {
|
|
399
|
+
const n = b.useRef(ze);
|
|
400
|
+
return n.current === ze && (n.current = e(t)), n;
|
|
401
|
+
}
|
|
402
|
+
const Dt = [];
|
|
403
|
+
function It(e) {
|
|
404
|
+
b.useEffect(e, Dt);
|
|
405
|
+
}
|
|
406
|
+
class se {
|
|
407
|
+
constructor() {
|
|
408
|
+
this.currentId = null, this.clear = () => {
|
|
409
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
410
|
+
}, this.disposeEffect = () => this.clear;
|
|
411
|
+
}
|
|
412
|
+
static create() {
|
|
413
|
+
return new se();
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
417
|
+
*/
|
|
418
|
+
start(t, n) {
|
|
419
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
420
|
+
this.currentId = null, n();
|
|
421
|
+
}, t);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
function Or() {
|
|
425
|
+
const e = Rt(se.create).current;
|
|
426
|
+
return It(e.disposeEffect), e;
|
|
427
|
+
}
|
|
428
|
+
let le = !0, he = !1;
|
|
429
|
+
const Ot = new se(), Nt = {
|
|
430
|
+
text: !0,
|
|
431
|
+
search: !0,
|
|
432
|
+
url: !0,
|
|
433
|
+
tel: !0,
|
|
434
|
+
email: !0,
|
|
435
|
+
password: !0,
|
|
436
|
+
number: !0,
|
|
437
|
+
date: !0,
|
|
438
|
+
month: !0,
|
|
439
|
+
week: !0,
|
|
440
|
+
time: !0,
|
|
441
|
+
datetime: !0,
|
|
442
|
+
"datetime-local": !0
|
|
443
|
+
};
|
|
444
|
+
function zt(e) {
|
|
445
|
+
const {
|
|
446
|
+
type: t,
|
|
447
|
+
tagName: n
|
|
448
|
+
} = e;
|
|
449
|
+
return !!(n === "INPUT" && Nt[t] && !e.readOnly || n === "TEXTAREA" && !e.readOnly || e.isContentEditable);
|
|
450
|
+
}
|
|
451
|
+
function At(e) {
|
|
452
|
+
e.metaKey || e.altKey || e.ctrlKey || (le = !0);
|
|
453
|
+
}
|
|
454
|
+
function fe() {
|
|
455
|
+
le = !1;
|
|
456
|
+
}
|
|
457
|
+
function Vt() {
|
|
458
|
+
this.visibilityState === "hidden" && he && (le = !0);
|
|
459
|
+
}
|
|
460
|
+
function Ht(e) {
|
|
461
|
+
e.addEventListener("keydown", At, !0), e.addEventListener("mousedown", fe, !0), e.addEventListener("pointerdown", fe, !0), e.addEventListener("touchstart", fe, !0), e.addEventListener("visibilitychange", Vt, !0);
|
|
462
|
+
}
|
|
463
|
+
function Ft(e) {
|
|
464
|
+
const {
|
|
465
|
+
target: t
|
|
466
|
+
} = e;
|
|
467
|
+
try {
|
|
468
|
+
return t.matches(":focus-visible");
|
|
469
|
+
} catch {
|
|
470
|
+
}
|
|
471
|
+
return le || zt(t);
|
|
472
|
+
}
|
|
473
|
+
function Mt() {
|
|
474
|
+
const e = b.useCallback((i) => {
|
|
475
|
+
i != null && Ht(i.ownerDocument);
|
|
476
|
+
}, []), t = b.useRef(!1);
|
|
477
|
+
function n() {
|
|
478
|
+
return t.current ? (he = !0, Ot.start(100, () => {
|
|
479
|
+
he = !1;
|
|
480
|
+
}), t.current = !1, !0) : !1;
|
|
481
|
+
}
|
|
482
|
+
function a(i) {
|
|
483
|
+
return Ft(i) ? (t.current = !0, !0) : !1;
|
|
484
|
+
}
|
|
485
|
+
return {
|
|
486
|
+
isFocusVisibleRef: t,
|
|
487
|
+
onFocus: a,
|
|
488
|
+
onBlur: n,
|
|
489
|
+
ref: e
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
function ce(e, t, n = void 0) {
|
|
493
|
+
const a = {};
|
|
494
|
+
return Object.keys(e).forEach(
|
|
495
|
+
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
496
|
+
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
|
|
497
|
+
(i) => {
|
|
498
|
+
a[i] = e[i].reduce((r, l) => {
|
|
499
|
+
if (l) {
|
|
500
|
+
const d = t(l);
|
|
501
|
+
d !== "" && r.push(d), n && n[l] && r.push(n[l]);
|
|
502
|
+
}
|
|
503
|
+
return r;
|
|
504
|
+
}, []).join(" ");
|
|
505
|
+
}
|
|
506
|
+
), a;
|
|
507
|
+
}
|
|
508
|
+
function Lt(e) {
|
|
509
|
+
return typeof e == "string";
|
|
510
|
+
}
|
|
511
|
+
function Wt(e, t, n) {
|
|
512
|
+
return e === void 0 || Lt(e) ? t : c({}, t, {
|
|
513
|
+
ownerState: c({}, t.ownerState, n)
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
function ye(e, t = []) {
|
|
517
|
+
if (e === void 0)
|
|
518
|
+
return {};
|
|
519
|
+
const n = {};
|
|
520
|
+
return Object.keys(e).filter((a) => a.match(/^on[A-Z]/) && typeof e[a] == "function" && !t.includes(a)).forEach((a) => {
|
|
521
|
+
n[a] = e[a];
|
|
522
|
+
}), n;
|
|
523
|
+
}
|
|
524
|
+
function Ae(e) {
|
|
525
|
+
if (e === void 0)
|
|
526
|
+
return {};
|
|
527
|
+
const t = {};
|
|
528
|
+
return Object.keys(e).filter((n) => !(n.match(/^on[A-Z]/) && typeof e[n] == "function")).forEach((n) => {
|
|
529
|
+
t[n] = e[n];
|
|
530
|
+
}), t;
|
|
531
|
+
}
|
|
532
|
+
function Yt(e) {
|
|
533
|
+
const {
|
|
534
|
+
getSlotProps: t,
|
|
535
|
+
additionalProps: n,
|
|
536
|
+
externalSlotProps: a,
|
|
537
|
+
externalForwardedProps: i,
|
|
538
|
+
className: r
|
|
539
|
+
} = e;
|
|
540
|
+
if (!t) {
|
|
541
|
+
const S = ve(n == null ? void 0 : n.className, r, i == null ? void 0 : i.className, a == null ? void 0 : a.className), y = c({}, n == null ? void 0 : n.style, i == null ? void 0 : i.style, a == null ? void 0 : a.style), s = c({}, n, i, a);
|
|
542
|
+
return S.length > 0 && (s.className = S), Object.keys(y).length > 0 && (s.style = y), {
|
|
543
|
+
props: s,
|
|
544
|
+
internalRef: void 0
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
const l = ye(c({}, i, a)), d = Ae(a), f = Ae(i), u = t(l), h = ve(u == null ? void 0 : u.className, n == null ? void 0 : n.className, r, i == null ? void 0 : i.className, a == null ? void 0 : a.className), v = c({}, u == null ? void 0 : u.style, n == null ? void 0 : n.style, i == null ? void 0 : i.style, a == null ? void 0 : a.style), P = c({}, u, n, f, d);
|
|
548
|
+
return h.length > 0 && (P.className = h), Object.keys(v).length > 0 && (P.style = v), {
|
|
549
|
+
props: P,
|
|
550
|
+
internalRef: u.ref
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
function Ut(e, t, n) {
|
|
554
|
+
return typeof e == "function" ? e(t, n) : e;
|
|
555
|
+
}
|
|
556
|
+
function wt(e) {
|
|
557
|
+
if (parseInt(b.version, 10) >= 19) {
|
|
558
|
+
var t;
|
|
559
|
+
return (e == null || (t = e.props) == null ? void 0 : t.ref) || null;
|
|
560
|
+
}
|
|
561
|
+
return (e == null ? void 0 : e.ref) || null;
|
|
562
|
+
}
|
|
563
|
+
const L = Pt({
|
|
564
|
+
defaultTheme: Me,
|
|
565
|
+
themeId: Le
|
|
566
|
+
});
|
|
567
|
+
function ue({
|
|
568
|
+
props: e,
|
|
569
|
+
name: t
|
|
570
|
+
}) {
|
|
571
|
+
return kt({
|
|
572
|
+
props: e,
|
|
573
|
+
name: t,
|
|
574
|
+
defaultTheme: c({}, Me, {
|
|
575
|
+
components: {}
|
|
576
|
+
}),
|
|
577
|
+
themeId: Le
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
function jt(e) {
|
|
581
|
+
const {
|
|
582
|
+
rootElementName: t = "",
|
|
583
|
+
componentName: n
|
|
584
|
+
} = e, [a, i] = b.useState(t.toUpperCase());
|
|
585
|
+
process.env.NODE_ENV !== "production" && b.useEffect(() => {
|
|
586
|
+
t && a !== t.toUpperCase() && console.error(`useRootElementName: the \`rootElementName\` prop of ${n ? `the ${n} component` : "a component"} expected the '${t}' element, but a '${a.toLowerCase()}' was rendered instead`, "This may cause hydration issues in an SSR context, for example in a Next.js app");
|
|
587
|
+
}, [t, a, n]);
|
|
588
|
+
const r = b.useCallback((l) => {
|
|
589
|
+
var d;
|
|
590
|
+
i((d = l == null ? void 0 : l.tagName) != null ? d : "");
|
|
591
|
+
}, []);
|
|
592
|
+
return [a, r];
|
|
593
|
+
}
|
|
594
|
+
function we(e = {}) {
|
|
595
|
+
const {
|
|
596
|
+
disabled: t = !1,
|
|
597
|
+
focusableWhenDisabled: n,
|
|
598
|
+
href: a,
|
|
599
|
+
rootRef: i,
|
|
600
|
+
tabIndex: r,
|
|
601
|
+
to: l,
|
|
602
|
+
type: d,
|
|
603
|
+
rootElementName: f
|
|
604
|
+
} = e, u = b.useRef(null), [h, v] = b.useState(!1), {
|
|
605
|
+
isFocusVisibleRef: P,
|
|
606
|
+
onFocus: S,
|
|
607
|
+
onBlur: y,
|
|
608
|
+
ref: s
|
|
609
|
+
} = Mt(), [T, B] = b.useState(!1);
|
|
610
|
+
t && !n && T && B(!1), b.useEffect(() => {
|
|
611
|
+
P.current = T;
|
|
612
|
+
}, [T, P]);
|
|
613
|
+
const [_, R] = jt({
|
|
614
|
+
rootElementName: f ?? (a || l ? "a" : void 0),
|
|
615
|
+
componentName: "Button"
|
|
616
|
+
}), N = (m) => (p) => {
|
|
617
|
+
var $;
|
|
618
|
+
T && p.preventDefault(), ($ = m.onMouseLeave) == null || $.call(m, p);
|
|
619
|
+
}, I = (m) => (p) => {
|
|
620
|
+
var $;
|
|
621
|
+
y(p), P.current === !1 && B(!1), ($ = m.onBlur) == null || $.call(m, p);
|
|
622
|
+
}, C = (m) => (p) => {
|
|
623
|
+
var $;
|
|
624
|
+
if (u.current || (u.current = p.currentTarget), S(p), P.current === !0) {
|
|
625
|
+
var A;
|
|
626
|
+
B(!0), (A = m.onFocusVisible) == null || A.call(m, p);
|
|
627
|
+
}
|
|
628
|
+
($ = m.onFocus) == null || $.call(m, p);
|
|
629
|
+
}, g = () => {
|
|
630
|
+
const m = u.current;
|
|
631
|
+
return _ === "BUTTON" || _ === "INPUT" && ["button", "submit", "reset"].includes(m == null ? void 0 : m.type) || _ === "A" && (m == null ? void 0 : m.href);
|
|
632
|
+
}, O = (m) => (p) => {
|
|
633
|
+
if (!t) {
|
|
634
|
+
var $;
|
|
635
|
+
($ = m.onClick) == null || $.call(m, p);
|
|
636
|
+
}
|
|
637
|
+
}, z = (m) => (p) => {
|
|
638
|
+
var $;
|
|
639
|
+
t || (v(!0), document.addEventListener("mouseup", () => {
|
|
640
|
+
v(!1);
|
|
641
|
+
}, {
|
|
642
|
+
once: !0
|
|
643
|
+
})), ($ = m.onMouseDown) == null || $.call(m, p);
|
|
644
|
+
}, V = (m) => (p) => {
|
|
645
|
+
var $;
|
|
646
|
+
if (($ = m.onKeyDown) == null || $.call(m, p), !p.defaultMuiPrevented && (p.target === p.currentTarget && !g() && p.key === " " && p.preventDefault(), p.target === p.currentTarget && p.key === " " && !t && v(!0), p.target === p.currentTarget && !g() && p.key === "Enter" && !t)) {
|
|
647
|
+
var A;
|
|
648
|
+
(A = m.onClick) == null || A.call(m, p), p.preventDefault();
|
|
649
|
+
}
|
|
650
|
+
}, H = (m) => (p) => {
|
|
651
|
+
var $;
|
|
652
|
+
if (p.target === p.currentTarget && v(!1), ($ = m.onKeyUp) == null || $.call(m, p), p.target === p.currentTarget && !g() && !t && p.key === " " && !p.defaultMuiPrevented) {
|
|
653
|
+
var A;
|
|
654
|
+
(A = m.onClick) == null || A.call(m, p);
|
|
655
|
+
}
|
|
656
|
+
}, D = X(R, i, s, u), E = {};
|
|
657
|
+
return r !== void 0 && (E.tabIndex = r), _ === "BUTTON" ? (E.type = d ?? "button", n ? E["aria-disabled"] = t : E.disabled = t) : _ === "INPUT" ? d && ["button", "submit", "reset"].includes(d) && (n ? E["aria-disabled"] = t : E.disabled = t) : _ !== "" && (!a && !l && (E.role = "button", E.tabIndex = r ?? 0), t && (E["aria-disabled"] = t, E.tabIndex = n ? r ?? 0 : -1)), {
|
|
658
|
+
getRootProps: (m = {}) => {
|
|
659
|
+
const p = c({}, ye(e), ye(m)), $ = c({
|
|
660
|
+
type: d
|
|
661
|
+
}, p, E, m, {
|
|
662
|
+
onBlur: I(p),
|
|
663
|
+
onClick: O(p),
|
|
664
|
+
onFocus: C(p),
|
|
665
|
+
onKeyDown: V(p),
|
|
666
|
+
onKeyUp: H(p),
|
|
667
|
+
onMouseDown: z(p),
|
|
668
|
+
onMouseLeave: N(p),
|
|
669
|
+
ref: D
|
|
670
|
+
});
|
|
671
|
+
return delete $.onFocusVisible, $;
|
|
672
|
+
},
|
|
673
|
+
focusVisible: T,
|
|
674
|
+
setFocusVisible: B,
|
|
675
|
+
active: h,
|
|
676
|
+
rootRef: D
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function Jt(e) {
|
|
680
|
+
return typeof e == "function" ? e() : e;
|
|
681
|
+
}
|
|
682
|
+
const be = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
683
|
+
const {
|
|
684
|
+
children: a,
|
|
685
|
+
container: i,
|
|
686
|
+
disablePortal: r = !1
|
|
687
|
+
} = t, [l, d] = b.useState(null), f = X(/* @__PURE__ */ b.isValidElement(a) ? wt(a) : null, n);
|
|
688
|
+
if (xe(() => {
|
|
689
|
+
r || d(Jt(i) || document.body);
|
|
690
|
+
}, [i, r]), xe(() => {
|
|
691
|
+
if (l && !r)
|
|
692
|
+
return me(n, l), () => {
|
|
693
|
+
me(n, null);
|
|
694
|
+
};
|
|
695
|
+
}, [n, l, r]), r) {
|
|
696
|
+
if (/* @__PURE__ */ b.isValidElement(a)) {
|
|
697
|
+
const u = {
|
|
698
|
+
ref: f
|
|
699
|
+
};
|
|
700
|
+
return /* @__PURE__ */ b.cloneElement(a, u);
|
|
701
|
+
}
|
|
702
|
+
return /* @__PURE__ */ M(b.Fragment, {
|
|
703
|
+
children: a
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
return /* @__PURE__ */ M(b.Fragment, {
|
|
707
|
+
children: l && /* @__PURE__ */ rt.createPortal(a, l)
|
|
708
|
+
});
|
|
709
|
+
});
|
|
710
|
+
process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
711
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
712
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
713
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
714
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
715
|
+
/**
|
|
716
|
+
* The children to render into the `container`.
|
|
717
|
+
*/
|
|
718
|
+
children: o.node,
|
|
719
|
+
/**
|
|
720
|
+
* An HTML element or function that returns one.
|
|
721
|
+
* The `container` will have the portal children appended to it.
|
|
722
|
+
*
|
|
723
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
724
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
725
|
+
*
|
|
726
|
+
* By default, it uses the body of the top-level document object,
|
|
727
|
+
* so it's simply `document.body` most of the time.
|
|
728
|
+
*/
|
|
729
|
+
container: o.oneOfType([xt, o.func]),
|
|
730
|
+
/**
|
|
731
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
732
|
+
* @default false
|
|
733
|
+
*/
|
|
734
|
+
disablePortal: o.bool
|
|
735
|
+
});
|
|
736
|
+
process.env.NODE_ENV !== "production" && (be.propTypes = ct(be.propTypes));
|
|
737
|
+
const Kt = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], Gt = ["component", "slots", "slotProps"], qt = ["component"];
|
|
738
|
+
function W(e, t) {
|
|
739
|
+
const {
|
|
740
|
+
className: n,
|
|
741
|
+
elementType: a,
|
|
742
|
+
ownerState: i,
|
|
743
|
+
externalForwardedProps: r,
|
|
744
|
+
getSlotOwnerState: l,
|
|
745
|
+
internalForwardedProps: d
|
|
746
|
+
} = t, f = Y(t, Kt), {
|
|
747
|
+
component: u,
|
|
748
|
+
slots: h = {
|
|
749
|
+
[e]: void 0
|
|
750
|
+
},
|
|
751
|
+
slotProps: v = {
|
|
752
|
+
[e]: void 0
|
|
753
|
+
}
|
|
754
|
+
} = r, P = Y(r, Gt), S = h[e] || a, y = Ut(v[e], i), s = Yt(c({
|
|
755
|
+
className: n
|
|
756
|
+
}, f, {
|
|
757
|
+
externalForwardedProps: e === "root" ? P : void 0,
|
|
758
|
+
externalSlotProps: y
|
|
759
|
+
})), {
|
|
760
|
+
props: {
|
|
761
|
+
component: T
|
|
762
|
+
},
|
|
763
|
+
internalRef: B
|
|
764
|
+
} = s, _ = Y(s.props, qt), R = X(B, y == null ? void 0 : y.ref, t.ref), N = l ? l(_) : {}, I = c({}, i, N), C = e === "root" ? T || u : T, g = Wt(S, c({}, e === "root" && !u && !h[e] && d, e !== "root" && !h[e] && d, _, C && {
|
|
765
|
+
as: C
|
|
766
|
+
}, {
|
|
767
|
+
ref: R
|
|
768
|
+
}), I);
|
|
769
|
+
return Object.keys(N).forEach((O) => {
|
|
770
|
+
delete g[O];
|
|
771
|
+
}), [S, g];
|
|
772
|
+
}
|
|
773
|
+
const Nr = ({
|
|
774
|
+
theme: e,
|
|
775
|
+
ownerState: t
|
|
776
|
+
}, n) => {
|
|
777
|
+
let a = {};
|
|
778
|
+
function i(r) {
|
|
779
|
+
if (typeof r == "function") {
|
|
780
|
+
const l = r(e);
|
|
781
|
+
i(l);
|
|
782
|
+
} else Array.isArray(r) ? r.forEach((l) => {
|
|
783
|
+
typeof l != "boolean" && i(l);
|
|
784
|
+
}) : typeof r == "object" && (a = c({}, a, r));
|
|
785
|
+
}
|
|
786
|
+
return t.sx && (i(t.sx), n.forEach((r) => {
|
|
787
|
+
const l = a[r];
|
|
788
|
+
if (typeof l == "string" || typeof l == "number")
|
|
789
|
+
if (r === "borderRadius")
|
|
790
|
+
if (typeof l == "number")
|
|
791
|
+
a[r] = `${l}px`;
|
|
792
|
+
else {
|
|
793
|
+
var d;
|
|
794
|
+
a[r] = ((d = e.vars) == null ? void 0 : d.radius[l]) || l;
|
|
795
|
+
}
|
|
796
|
+
else ["p", "padding", "m", "margin"].indexOf(r) !== -1 && typeof l == "number" ? a[r] = e.spacing(l) : a[r] = l;
|
|
797
|
+
else typeof l == "function" ? a[r] = l(e) : a[r] = void 0;
|
|
798
|
+
})), a;
|
|
799
|
+
}, Ce = (e) => (t) => `--${e ? `${e}-` : ""}${t.replace(/^--/, "")}`, ne = "data-skip-inverted-colors", je = `& :not([${ne}], [${ne}] *)`, Je = (e) => {
|
|
800
|
+
var t, n, a, i, r, l, d, f, u, h, v, P, S, y, s, T, B, _, R, N, I, C;
|
|
801
|
+
const g = Ce(e.cssVarPrefix);
|
|
802
|
+
return {
|
|
803
|
+
"--variant-plainColor": "var(--variant-plainColor) !important",
|
|
804
|
+
"--variant-plainHoverColor": "var(--variant-plainHoverColor) !important",
|
|
805
|
+
"--variant-plainHoverBg": "var(--variant-plainHoverBg) !important",
|
|
806
|
+
"--variant-plainActiveBg": "var(--variant-plainActiveBg) !important",
|
|
807
|
+
"--variant-plainDisabledColor": "var(--variant-plainDisabledColor) !important",
|
|
808
|
+
"--variant-outlinedColor": "var(--variant-outlinedColor) !important",
|
|
809
|
+
"--variant-outlinedBorder": "var(--variant-outlinedBorder) !important",
|
|
810
|
+
"--variant-outlinedHoverColor": "var(--variant-outlinedHoverColor) !important",
|
|
811
|
+
"--variant-outlinedHoverBorder": "var(--variant-outlinedHoverBorder) !important",
|
|
812
|
+
"--variant-outlinedHoverBg": "var(--variant-outlinedHoverBg) !important",
|
|
813
|
+
"--variant-outlinedActiveBg": "var(--variant-outlinedActiveBg) !important",
|
|
814
|
+
"--variant-outlinedDisabledColor": "var(--variant-outlinedDisabledColor) !important",
|
|
815
|
+
"--variant-outlinedDisabledBorder": "var(--variant-outlinedDisabledBorder) !important",
|
|
816
|
+
"--variant-softColor": "var(--variant-softColor) !important",
|
|
817
|
+
"--variant-softHoverColor": "var(--variant-softHoverColor) !important",
|
|
818
|
+
"--variant-softBg": "var(--variant-softBg) !important",
|
|
819
|
+
"--variant-softHoverBg": "var(--variant-softHoverBg) !important",
|
|
820
|
+
"--variant-softActiveBg": "var(--variant-softActiveBg) !important",
|
|
821
|
+
"--variant-softActiveColor": "var(--variant-softActiveColor) !important",
|
|
822
|
+
"--variant-softDisabledColor": "var(--variant-softDisabledColor) !important",
|
|
823
|
+
"--variant-softDisabledBg": "var(--variant-softDisabledBg) !important",
|
|
824
|
+
"--variant-solidColor": "var(--variant-solidColor) !important",
|
|
825
|
+
"--variant-solidBg": "var(--variant-solidBg) !important",
|
|
826
|
+
"--variant-solidHoverBg": "var(--variant-solidHoverBg) !important",
|
|
827
|
+
"--variant-solidActiveBg": "var(--variant-solidActiveBg) !important",
|
|
828
|
+
"--variant-solidDisabledColor": "var(--variant-solidDisabledColor) !important",
|
|
829
|
+
"--variant-solidDisabledBg": "var(--variant-solidDisabledBg) !important",
|
|
830
|
+
"--Badge-ringColor": "var(--Badge-ringColor) !important",
|
|
831
|
+
colorScheme: "unset",
|
|
832
|
+
[e.getColorSchemeSelector("light")]: {
|
|
833
|
+
[g("--palette-focusVisible")]: `${(t = e.colorSchemes.light) == null ? void 0 : t.palette.focusVisible} !important`,
|
|
834
|
+
[g("--palette-background-body")]: `${(n = e.colorSchemes.light) == null ? void 0 : n.palette.background.body} !important`,
|
|
835
|
+
[g("--palette-background-surface")]: `${(a = e.colorSchemes.light) == null ? void 0 : a.palette.background.surface} !important`,
|
|
836
|
+
[g("--palette-background-popup")]: `${(i = e.colorSchemes.light) == null ? void 0 : i.palette.background.popup} !important`,
|
|
837
|
+
[g("--palette-background-level1")]: `${(r = e.colorSchemes.light) == null ? void 0 : r.palette.background.level1} !important`,
|
|
838
|
+
[g("--palette-background-level2")]: `${(l = e.colorSchemes.light) == null ? void 0 : l.palette.background.level2} !important`,
|
|
839
|
+
[g("--palette-background-level3")]: `${(d = e.colorSchemes.light) == null ? void 0 : d.palette.background.level3} !important`,
|
|
840
|
+
[g("--palette-text-primary")]: `${(f = e.colorSchemes.light) == null ? void 0 : f.palette.text.primary} !important`,
|
|
841
|
+
[g("--palette-text-secondary")]: `${(u = e.colorSchemes.light) == null ? void 0 : u.palette.text.secondary} !important`,
|
|
842
|
+
[g("--palette-text-tertiary")]: `${(h = e.colorSchemes.light) == null ? void 0 : h.palette.text.tertiary} !important`,
|
|
843
|
+
[g("--palette-divider")]: `${(v = e.colorSchemes.light) == null ? void 0 : v.palette.divider} !important`
|
|
844
|
+
},
|
|
845
|
+
[e.getColorSchemeSelector("dark")]: {
|
|
846
|
+
[g("--palette-focusVisible")]: `${(P = e.colorSchemes.dark) == null ? void 0 : P.palette.focusVisible} !important`,
|
|
847
|
+
[g("--palette-background-body")]: `${(S = e.colorSchemes.dark) == null ? void 0 : S.palette.background.body} !important`,
|
|
848
|
+
[g("--palette-background-surface")]: `${(y = e.colorSchemes.dark) == null ? void 0 : y.palette.background.surface} !important`,
|
|
849
|
+
[g("--palette-background-popup")]: `${(s = e.colorSchemes.dark) == null ? void 0 : s.palette.background.popup} !important`,
|
|
850
|
+
[g("--palette-background-level1")]: `${(T = e.colorSchemes.dark) == null ? void 0 : T.palette.background.level1} !important`,
|
|
851
|
+
[g("--palette-background-level2")]: `${(B = e.colorSchemes.dark) == null ? void 0 : B.palette.background.level2} !important`,
|
|
852
|
+
[g("--palette-background-level3")]: `${(_ = e.colorSchemes.dark) == null ? void 0 : _.palette.background.level3} !important`,
|
|
853
|
+
[g("--palette-text-primary")]: `${(R = e.colorSchemes.dark) == null ? void 0 : R.palette.text.primary} !important`,
|
|
854
|
+
[g("--palette-text-secondary")]: `${(N = e.colorSchemes.dark) == null ? void 0 : N.palette.text.secondary} !important`,
|
|
855
|
+
[g("--palette-text-tertiary")]: `${(I = e.colorSchemes.dark) == null ? void 0 : I.palette.text.tertiary} !important`,
|
|
856
|
+
[g("--palette-divider")]: `${(C = e.colorSchemes.dark) == null ? void 0 : C.palette.divider} !important`
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
function Zt(e) {
|
|
861
|
+
return e.theme !== void 0;
|
|
862
|
+
}
|
|
863
|
+
const zr = (e) => (t) => {
|
|
864
|
+
const n = Zt(t) ? t.theme : t, a = We(n.cssVarPrefix), i = Ce(n.cssVarPrefix), r = (l) => {
|
|
865
|
+
const d = l.split("-");
|
|
866
|
+
return a(l, n.palette[d[1]][d[2]]);
|
|
867
|
+
};
|
|
868
|
+
return {
|
|
869
|
+
[je]: {
|
|
870
|
+
"--Badge-ringColor": r(`palette-${e}-solidBg`),
|
|
871
|
+
"--Icon-color": "currentColor",
|
|
872
|
+
[`${n.getColorSchemeSelector("light")}, ${n.getColorSchemeSelector("dark")}`]: {
|
|
873
|
+
colorScheme: "dark",
|
|
874
|
+
[i("--palette-focusVisible")]: r(`palette-${e}-200`),
|
|
875
|
+
[i("--palette-background-body")]: "rgba(0 0 0 / 0.1)",
|
|
876
|
+
[i("--palette-background-surface")]: "rgba(0 0 0 / 0.06)",
|
|
877
|
+
[i("--palette-background-popup")]: r(`palette-${e}-700`),
|
|
878
|
+
[i("--palette-background-level1")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.2)`,
|
|
879
|
+
[i("--palette-background-level2")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.36)`,
|
|
880
|
+
[i("--palette-background-level3")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.6)`,
|
|
881
|
+
[i("--palette-text-primary")]: r("palette-common-white"),
|
|
882
|
+
[i("--palette-text-secondary")]: r(`palette-${e}-200`),
|
|
883
|
+
[i("--palette-text-tertiary")]: r(`palette-${e}-300`),
|
|
884
|
+
[i("--palette-text-icon")]: r(`palette-${e}-200`),
|
|
885
|
+
[i("--palette-divider")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.32)`,
|
|
886
|
+
"--variant-plainColor": r(`palette-${e}-50`),
|
|
887
|
+
"--variant-plainHoverColor": "#fff",
|
|
888
|
+
"--variant-plainHoverBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.12)`,
|
|
889
|
+
"--variant-plainActiveBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.32)`,
|
|
890
|
+
"--variant-plainDisabledColor": `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
|
|
891
|
+
"--variant-outlinedColor": r(`palette-${e}-50`),
|
|
892
|
+
"--variant-outlinedBorder": `rgba(${r(`palette-${e}-lightChannel`)} / 0.5)`,
|
|
893
|
+
"--variant-outlinedHoverColor": "#fff",
|
|
894
|
+
"--variant-outlinedHoverBorder": r(`palette-${e}-300`),
|
|
895
|
+
"--variant-outlinedHoverBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.12)`,
|
|
896
|
+
"--variant-outlinedActiveBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.32)`,
|
|
897
|
+
"--variant-outlinedDisabledColor": `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
|
|
898
|
+
"--variant-outlinedDisabledBorder": "rgba(255 255 255 / 0.2)",
|
|
899
|
+
"--variant-softColor": r("palette-common-white"),
|
|
900
|
+
"--variant-softHoverColor": r("palette-common-white"),
|
|
901
|
+
"--variant-softBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.24)`,
|
|
902
|
+
"--variant-softHoverBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.36)`,
|
|
903
|
+
"--variant-softActiveBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.16)`,
|
|
904
|
+
"--variant-softActiveColor": "#fff",
|
|
905
|
+
"--variant-softDisabledColor": `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
|
|
906
|
+
"--variant-softDisabledBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.1)`,
|
|
907
|
+
"--variant-solidColor": r(`palette-${e}-${e === "neutral" ? "600" : "500"}`),
|
|
908
|
+
"--variant-solidBg": r("palette-common-white"),
|
|
909
|
+
"--variant-solidHoverBg": r("palette-common-white"),
|
|
910
|
+
"--variant-solidActiveBg": r(`palette-${e}-100`),
|
|
911
|
+
"--variant-solidDisabledColor": `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
|
|
912
|
+
"--variant-solidDisabledBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.1)`
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
[`&, & [${ne}]`]: Je(n)
|
|
916
|
+
};
|
|
917
|
+
}, Ar = (e) => (t) => {
|
|
918
|
+
const {
|
|
919
|
+
theme: n = t
|
|
920
|
+
} = t, a = We(n.cssVarPrefix), i = Ce(n.cssVarPrefix), r = (l) => {
|
|
921
|
+
const d = l.split("-");
|
|
922
|
+
return a(l, n.palette[d[1]][d[2]]);
|
|
923
|
+
};
|
|
924
|
+
return {
|
|
925
|
+
[je]: {
|
|
926
|
+
"--Badge-ringColor": r(`palette-${e}-softBg`),
|
|
927
|
+
"--Icon-color": "currentColor",
|
|
928
|
+
[n.getColorSchemeSelector("dark")]: {
|
|
929
|
+
[i("--palette-focusVisible")]: r(`palette-${e}-300`),
|
|
930
|
+
[i("--palette-background-body")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.1)`,
|
|
931
|
+
[i("--palette-background-surface")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.08)`,
|
|
932
|
+
[i("--palette-background-level1")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.2)`,
|
|
933
|
+
[i("--palette-background-level2")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.4)`,
|
|
934
|
+
[i("--palette-background-level3")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
|
|
935
|
+
[i("--palette-text-primary")]: r(`palette-${e}-100`),
|
|
936
|
+
[i("--palette-text-secondary")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.72)`,
|
|
937
|
+
[i("--palette-text-tertiary")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.6)`,
|
|
938
|
+
[i("--palette-text-icon")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.6)`,
|
|
939
|
+
[i("--palette-divider")]: `rgba(${r(`palette-${e}-lightChannel`)} / 0.2)`,
|
|
940
|
+
"--variant-plainColor": `rgba(${r(`palette-${e}-lightChannel`)} / 1)`,
|
|
941
|
+
"--variant-plainHoverColor": r(`palette-${e}-50`),
|
|
942
|
+
"--variant-plainHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.16)`,
|
|
943
|
+
"--variant-plainActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
|
|
944
|
+
"--variant-plainDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.72)`,
|
|
945
|
+
"--variant-outlinedColor": `rgba(${r(`palette-${e}-lightChannel`)} / 1)`,
|
|
946
|
+
"--variant-outlinedHoverColor": r(`palette-${e}-50`),
|
|
947
|
+
"--variant-outlinedBg": "initial",
|
|
948
|
+
"--variant-outlinedBorder": `rgba(${r(`palette-${e}-mainChannel`)} / 0.4)`,
|
|
949
|
+
"--variant-outlinedHoverBorder": r(`palette-${e}-600`),
|
|
950
|
+
"--variant-outlinedHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.16)`,
|
|
951
|
+
"--variant-outlinedActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
|
|
952
|
+
"--variant-outlinedDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.72)`,
|
|
953
|
+
"--variant-outlinedDisabledBorder": `rgba(${r(`palette-${e}-mainChannel`)} / 0.2)`,
|
|
954
|
+
"--variant-softColor": r(`palette-${e}-200`),
|
|
955
|
+
"--variant-softBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.24)`,
|
|
956
|
+
"--variant-softHoverColor": "#fff",
|
|
957
|
+
"--variant-softHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
|
|
958
|
+
"--variant-softActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.48)`,
|
|
959
|
+
"--variant-softDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.72)`,
|
|
960
|
+
"--variant-softDisabledBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`,
|
|
961
|
+
"--variant-solidColor": "#fff",
|
|
962
|
+
"--variant-solidBg": r(`palette-${e}-500`),
|
|
963
|
+
"--variant-solidHoverColor": "#fff",
|
|
964
|
+
"--variant-solidHoverBg": r(`palette-${e}-600`),
|
|
965
|
+
"--variant-solidActiveBg": r(`palette-${e}-600`),
|
|
966
|
+
"--variant-solidDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.72)`,
|
|
967
|
+
"--variant-solidDisabledBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`
|
|
968
|
+
},
|
|
969
|
+
// `light` (default color scheme) should come last in case that `theme.getColorSchemeSelector()` return the same value
|
|
970
|
+
[n.getColorSchemeSelector("light")]: {
|
|
971
|
+
[i("--palette-focusVisible")]: r(`palette-${e}-500`),
|
|
972
|
+
[i("--palette-background-body")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.1)`,
|
|
973
|
+
[i("--palette-background-surface")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.08)`,
|
|
974
|
+
[i("--palette-background-level1")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.2)`,
|
|
975
|
+
[i("--palette-background-level2")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
|
|
976
|
+
[i("--palette-background-level3")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.48)`,
|
|
977
|
+
[i("--palette-text-primary")]: r(`palette-${e}-700`),
|
|
978
|
+
[i("--palette-text-secondary")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.8)`,
|
|
979
|
+
[i("--palette-text-tertiary")]: `rgba(${r(`palette-${e}-darkChannel`)} / 0.68)`,
|
|
980
|
+
[i("--palette-text-icon")]: r(`palette-${e}-500`),
|
|
981
|
+
[i("--palette-divider")]: `rgba(${r(`palette-${e}-mainChannel`)} / 0.32)`,
|
|
982
|
+
"--variant-plainColor": `rgba(${r(`palette-${e}-darkChannel`)} / 0.8)`,
|
|
983
|
+
"--variant-plainHoverColor": `rgba(${r(`palette-${e}-darkChannel`)} / 1)`,
|
|
984
|
+
"--variant-plainHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`,
|
|
985
|
+
"--variant-plainActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.24)`,
|
|
986
|
+
"--variant-plainDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
|
|
987
|
+
"--variant-outlinedColor": `rgba(${r(`palette-${e}-mainChannel`)} / 1)`,
|
|
988
|
+
"--variant-outlinedBorder": `rgba(${r(`palette-${e}-mainChannel`)} / 0.4)`,
|
|
989
|
+
"--variant-outlinedHoverColor": r(`palette-${e}-600`),
|
|
990
|
+
"--variant-outlinedHoverBorder": r(`palette-${e}-300`),
|
|
991
|
+
"--variant-outlinedHoverBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`,
|
|
992
|
+
"--variant-outlinedActiveBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.24)`,
|
|
993
|
+
"--variant-outlinedDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
|
|
994
|
+
"--variant-outlinedDisabledBorder": `rgba(${r(`palette-${e}-mainChannel`)} / 0.12)`,
|
|
995
|
+
"--variant-softColor": r(`palette-${e}-600`),
|
|
996
|
+
"--variant-softBg": `rgba(${r(`palette-${e}-lightChannel`)} / 0.8)`,
|
|
997
|
+
"--variant-softHoverColor": r(`palette-${e}-700`),
|
|
998
|
+
"--variant-softHoverBg": r(`palette-${e}-200`),
|
|
999
|
+
"--variant-softActiveBg": r(`palette-${e}-300`),
|
|
1000
|
+
"--variant-softDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
|
|
1001
|
+
"--variant-softDisabledBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.08)`,
|
|
1002
|
+
"--variant-solidColor": r("palette-common-white"),
|
|
1003
|
+
"--variant-solidBg": r(`palette-${e}-${e === "neutral" ? "700" : "500"}`),
|
|
1004
|
+
"--variant-solidHoverColor": r("palette-common-white"),
|
|
1005
|
+
"--variant-solidHoverBg": r(`palette-${e}-600`),
|
|
1006
|
+
"--variant-solidActiveBg": r(`palette-${e}-600`),
|
|
1007
|
+
"--variant-solidDisabledColor": `rgba(${r(`palette-${e}-mainChannel`)} / 0.6)`,
|
|
1008
|
+
"--variant-solidDisabledBg": `rgba(${r(`palette-${e}-mainChannel`)} / 0.08)`
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
[`&, & [${ne}]`]: Je(n)
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
function Xt(e) {
|
|
1015
|
+
return ae("MuiIconButton", e);
|
|
1016
|
+
}
|
|
1017
|
+
const Vr = ie("MuiIconButton", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "focusVisible", "disabled", "sizeSm", "sizeMd", "sizeLg", "loading", "loadingIndicator"]), Te = /* @__PURE__ */ b.createContext({});
|
|
1018
|
+
process.env.NODE_ENV !== "production" && (Te.displayName = "ButtonGroupContext");
|
|
1019
|
+
const _e = /* @__PURE__ */ b.createContext(void 0);
|
|
1020
|
+
process.env.NODE_ENV !== "production" && (_e.displayName = "ToggleButtonGroupContext");
|
|
1021
|
+
function Qt(e) {
|
|
1022
|
+
return ae("MuiCircularProgress", e);
|
|
1023
|
+
}
|
|
1024
|
+
ie("MuiCircularProgress", ["root", "determinate", "svg", "track", "progress", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
1025
|
+
let er = (e) => e, Ve;
|
|
1026
|
+
const tr = ["color", "backgroundColor"], rr = ["children", "className", "color", "size", "variant", "thickness", "determinate", "value", "component", "slots", "slotProps"], or = ut({
|
|
1027
|
+
"0%": {
|
|
1028
|
+
// let the progress start at the top of the ring
|
|
1029
|
+
transform: "rotate(-90deg)"
|
|
1030
|
+
},
|
|
1031
|
+
"100%": {
|
|
1032
|
+
transform: "rotate(270deg)"
|
|
1033
|
+
}
|
|
1034
|
+
}), nr = (e) => {
|
|
1035
|
+
const {
|
|
1036
|
+
determinate: t,
|
|
1037
|
+
color: n,
|
|
1038
|
+
variant: a,
|
|
1039
|
+
size: i
|
|
1040
|
+
} = e, r = {
|
|
1041
|
+
root: ["root", t && "determinate", n && `color${U(n)}`, a && `variant${U(a)}`, i && `size${U(i)}`],
|
|
1042
|
+
svg: ["svg"],
|
|
1043
|
+
track: ["track"],
|
|
1044
|
+
progress: ["progress"]
|
|
1045
|
+
};
|
|
1046
|
+
return ce(r, Qt, {});
|
|
1047
|
+
};
|
|
1048
|
+
function K(e, t) {
|
|
1049
|
+
return `var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`;
|
|
1050
|
+
}
|
|
1051
|
+
const ar = L("span", {
|
|
1052
|
+
name: "JoyCircularProgress",
|
|
1053
|
+
slot: "Root",
|
|
1054
|
+
overridesResolver: (e, t) => t.root
|
|
1055
|
+
})(({
|
|
1056
|
+
ownerState: e,
|
|
1057
|
+
theme: t
|
|
1058
|
+
}) => {
|
|
1059
|
+
var n, a, i, r;
|
|
1060
|
+
const l = ((n = t.variants[e.variant]) == null ? void 0 : n[e.color]) || {}, {
|
|
1061
|
+
color: d,
|
|
1062
|
+
backgroundColor: f
|
|
1063
|
+
} = l, u = Y(l, tr);
|
|
1064
|
+
return c({
|
|
1065
|
+
// integration with icon
|
|
1066
|
+
"--Icon-fontSize": "calc(0.4 * var(--_root-size))",
|
|
1067
|
+
// public variables
|
|
1068
|
+
"--CircularProgress-trackColor": f,
|
|
1069
|
+
"--CircularProgress-progressColor": d,
|
|
1070
|
+
"--CircularProgress-percent": e.value,
|
|
1071
|
+
// 0 - 100
|
|
1072
|
+
"--CircularProgress-linecap": "round"
|
|
1073
|
+
}, e.size === "sm" && {
|
|
1074
|
+
"--_root-size": "var(--CircularProgress-size, 24px)",
|
|
1075
|
+
// use --_root-size to let other components overrides via --CircularProgress-size
|
|
1076
|
+
"--_track-thickness": K("track", "3px"),
|
|
1077
|
+
"--_progress-thickness": K("progress", "3px")
|
|
1078
|
+
}, e.instanceSize === "sm" && {
|
|
1079
|
+
"--CircularProgress-size": "24px"
|
|
1080
|
+
}, e.size === "md" && {
|
|
1081
|
+
"--_track-thickness": K("track", "6px"),
|
|
1082
|
+
"--_progress-thickness": K("progress", "6px"),
|
|
1083
|
+
"--_root-size": "var(--CircularProgress-size, 40px)"
|
|
1084
|
+
}, e.instanceSize === "md" && {
|
|
1085
|
+
"--CircularProgress-size": "40px"
|
|
1086
|
+
}, e.size === "lg" && {
|
|
1087
|
+
"--_track-thickness": K("track", "8px"),
|
|
1088
|
+
"--_progress-thickness": K("progress", "8px"),
|
|
1089
|
+
"--_root-size": "var(--CircularProgress-size, 64px)"
|
|
1090
|
+
}, e.instanceSize === "lg" && {
|
|
1091
|
+
"--CircularProgress-size": "64px"
|
|
1092
|
+
}, e.thickness && {
|
|
1093
|
+
"--_track-thickness": `${e.thickness}px`,
|
|
1094
|
+
"--_progress-thickness": `${e.thickness}px`
|
|
1095
|
+
}, {
|
|
1096
|
+
// internal variables
|
|
1097
|
+
"--_thickness-diff": "calc(var(--_track-thickness) - var(--_progress-thickness))",
|
|
1098
|
+
"--_inner-size": "calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))",
|
|
1099
|
+
"--_outlined-inset": "max(var(--_track-thickness), var(--_progress-thickness))",
|
|
1100
|
+
width: "var(--_root-size)",
|
|
1101
|
+
height: "var(--_root-size)",
|
|
1102
|
+
borderRadius: "var(--_root-size)",
|
|
1103
|
+
margin: "var(--CircularProgress-margin)",
|
|
1104
|
+
boxSizing: "border-box",
|
|
1105
|
+
display: "inline-flex",
|
|
1106
|
+
justifyContent: "center",
|
|
1107
|
+
alignItems: "center",
|
|
1108
|
+
flexShrink: 0,
|
|
1109
|
+
// prevent from shrinking when CircularProgress is in a flex container.
|
|
1110
|
+
position: "relative",
|
|
1111
|
+
color: d
|
|
1112
|
+
}, e.children && {
|
|
1113
|
+
// only add font related properties when there is a child.
|
|
1114
|
+
// so that when there is no child, the size can be controlled by the parent font-size e.g. Link
|
|
1115
|
+
fontFamily: t.vars.fontFamily.body,
|
|
1116
|
+
fontWeight: t.vars.fontWeight.md,
|
|
1117
|
+
fontSize: "calc(0.2 * var(--_root-size))"
|
|
1118
|
+
}, u, e.variant === "outlined" && {
|
|
1119
|
+
"&::before": c({
|
|
1120
|
+
content: '""',
|
|
1121
|
+
display: "block",
|
|
1122
|
+
position: "absolute",
|
|
1123
|
+
borderRadius: "inherit",
|
|
1124
|
+
top: "var(--_outlined-inset)",
|
|
1125
|
+
left: "var(--_outlined-inset)",
|
|
1126
|
+
right: "var(--_outlined-inset)",
|
|
1127
|
+
bottom: "var(--_outlined-inset)"
|
|
1128
|
+
}, u)
|
|
1129
|
+
}, e.variant === "soft" && {
|
|
1130
|
+
"--CircularProgress-trackColor": t.variants.soft.neutral.backgroundColor,
|
|
1131
|
+
"--CircularProgress-progressColor": (a = t.variants.solid) == null ? void 0 : a[e.color].backgroundColor
|
|
1132
|
+
}, e.variant === "solid" && {
|
|
1133
|
+
"--CircularProgress-trackColor": (i = t.variants.softHover) == null ? void 0 : i[e.color].backgroundColor,
|
|
1134
|
+
"--CircularProgress-progressColor": (r = t.variants.solid) == null ? void 0 : r[e.color].backgroundColor
|
|
1135
|
+
});
|
|
1136
|
+
}), ir = L("svg", {
|
|
1137
|
+
name: "JoyCircularProgress",
|
|
1138
|
+
slot: "Svg",
|
|
1139
|
+
overridesResolver: (e, t) => t.svg
|
|
1140
|
+
})({
|
|
1141
|
+
width: "inherit",
|
|
1142
|
+
height: "inherit",
|
|
1143
|
+
display: "inherit",
|
|
1144
|
+
boxSizing: "inherit",
|
|
1145
|
+
position: "absolute",
|
|
1146
|
+
top: "calc(-1 * var(--variant-borderWidth, 0px))",
|
|
1147
|
+
// centered align
|
|
1148
|
+
left: "calc(-1 * var(--variant-borderWidth, 0px))"
|
|
1149
|
+
// centered align
|
|
1150
|
+
}), sr = L("circle", {
|
|
1151
|
+
name: "JoyCircularProgress",
|
|
1152
|
+
slot: "track",
|
|
1153
|
+
overridesResolver: (e, t) => t.track
|
|
1154
|
+
})({
|
|
1155
|
+
cx: "50%",
|
|
1156
|
+
cy: "50%",
|
|
1157
|
+
r: "calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",
|
|
1158
|
+
fill: "transparent",
|
|
1159
|
+
strokeWidth: "var(--_track-thickness)",
|
|
1160
|
+
stroke: "var(--CircularProgress-trackColor)"
|
|
1161
|
+
}), lr = L("circle", {
|
|
1162
|
+
name: "JoyCircularProgress",
|
|
1163
|
+
slot: "progress",
|
|
1164
|
+
overridesResolver: (e, t) => t.progress
|
|
1165
|
+
})({
|
|
1166
|
+
"--_progress-radius": "calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))",
|
|
1167
|
+
"--_progress-length": "calc(2 * 3.1415926535 * var(--_progress-radius))",
|
|
1168
|
+
// the circumference around the progress
|
|
1169
|
+
cx: "50%",
|
|
1170
|
+
cy: "50%",
|
|
1171
|
+
r: "var(--_progress-radius)",
|
|
1172
|
+
fill: "transparent",
|
|
1173
|
+
strokeWidth: "var(--_progress-thickness)",
|
|
1174
|
+
stroke: "var(--CircularProgress-progressColor)",
|
|
1175
|
+
strokeLinecap: "var(--CircularProgress-linecap, round)",
|
|
1176
|
+
// can't use CSS variable directly, need to cast type.
|
|
1177
|
+
strokeDasharray: "var(--_progress-length)",
|
|
1178
|
+
strokeDashoffset: "calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",
|
|
1179
|
+
transformOrigin: "center",
|
|
1180
|
+
transform: "rotate(-90deg)"
|
|
1181
|
+
// to initially appear at the top-center of the circle.
|
|
1182
|
+
}, ({
|
|
1183
|
+
ownerState: e
|
|
1184
|
+
}) => !e.determinate && dt(Ve || (Ve = er`
|
|
1185
|
+
animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
|
|
1186
|
+
${0};
|
|
1187
|
+
`), or)), Ee = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
1188
|
+
const a = ue({
|
|
1189
|
+
props: t,
|
|
1190
|
+
name: "JoyCircularProgress"
|
|
1191
|
+
}), {
|
|
1192
|
+
children: i,
|
|
1193
|
+
className: r,
|
|
1194
|
+
color: l = "primary",
|
|
1195
|
+
size: d = "md",
|
|
1196
|
+
variant: f = "soft",
|
|
1197
|
+
thickness: u,
|
|
1198
|
+
determinate: h = !1,
|
|
1199
|
+
value: v = h ? 0 : 25,
|
|
1200
|
+
// `25` is the 1/4 of the circle.
|
|
1201
|
+
component: P,
|
|
1202
|
+
slots: S = {},
|
|
1203
|
+
slotProps: y = {}
|
|
1204
|
+
} = a, s = Y(a, rr), T = c({}, a, {
|
|
1205
|
+
color: l,
|
|
1206
|
+
size: d,
|
|
1207
|
+
variant: f,
|
|
1208
|
+
thickness: u,
|
|
1209
|
+
value: v,
|
|
1210
|
+
determinate: h,
|
|
1211
|
+
instanceSize: t.size
|
|
1212
|
+
}), B = nr(T), _ = c({}, s, {
|
|
1213
|
+
component: P,
|
|
1214
|
+
slots: S,
|
|
1215
|
+
slotProps: y
|
|
1216
|
+
}), [R, N] = W("root", {
|
|
1217
|
+
ref: n,
|
|
1218
|
+
className: ve(B.root, r),
|
|
1219
|
+
elementType: ar,
|
|
1220
|
+
externalForwardedProps: _,
|
|
1221
|
+
ownerState: T,
|
|
1222
|
+
additionalProps: c({
|
|
1223
|
+
role: "progressbar",
|
|
1224
|
+
style: {
|
|
1225
|
+
// Setting this CSS variable via inline-style
|
|
1226
|
+
// prevents the generation of new CSS every time
|
|
1227
|
+
// `value` prop updates
|
|
1228
|
+
"--CircularProgress-percent": v
|
|
1229
|
+
}
|
|
1230
|
+
}, v && h && {
|
|
1231
|
+
"aria-valuenow": Math.round(typeof v == "number" ? v : Number(v || 0))
|
|
1232
|
+
})
|
|
1233
|
+
}), [I, C] = W("svg", {
|
|
1234
|
+
className: B.svg,
|
|
1235
|
+
elementType: ir,
|
|
1236
|
+
externalForwardedProps: _,
|
|
1237
|
+
ownerState: T
|
|
1238
|
+
}), [g, O] = W("track", {
|
|
1239
|
+
className: B.track,
|
|
1240
|
+
elementType: sr,
|
|
1241
|
+
externalForwardedProps: _,
|
|
1242
|
+
ownerState: T
|
|
1243
|
+
}), [z, V] = W("progress", {
|
|
1244
|
+
className: B.progress,
|
|
1245
|
+
elementType: lr,
|
|
1246
|
+
externalForwardedProps: _,
|
|
1247
|
+
ownerState: T
|
|
1248
|
+
});
|
|
1249
|
+
return /* @__PURE__ */ oe(R, c({}, N, {
|
|
1250
|
+
children: [/* @__PURE__ */ oe(I, c({}, C, {
|
|
1251
|
+
children: [/* @__PURE__ */ M(g, c({}, O)), /* @__PURE__ */ M(z, c({}, V))]
|
|
1252
|
+
})), i]
|
|
1253
|
+
}));
|
|
1254
|
+
});
|
|
1255
|
+
process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
1256
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1257
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1258
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1259
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1260
|
+
/**
|
|
1261
|
+
* @ignore
|
|
1262
|
+
*/
|
|
1263
|
+
children: o.node,
|
|
1264
|
+
/**
|
|
1265
|
+
* @ignore
|
|
1266
|
+
*/
|
|
1267
|
+
className: o.string,
|
|
1268
|
+
/**
|
|
1269
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
1270
|
+
* @default 'primary'
|
|
1271
|
+
*/
|
|
1272
|
+
color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
|
|
1273
|
+
/**
|
|
1274
|
+
* The component used for the root node.
|
|
1275
|
+
* Either a string to use a HTML element or a component.
|
|
1276
|
+
*/
|
|
1277
|
+
component: o.elementType,
|
|
1278
|
+
/**
|
|
1279
|
+
* The boolean to select a variant.
|
|
1280
|
+
* Use indeterminate when there is no progress value.
|
|
1281
|
+
* @default false
|
|
1282
|
+
*/
|
|
1283
|
+
determinate: o.bool,
|
|
1284
|
+
/**
|
|
1285
|
+
* The size of the component.
|
|
1286
|
+
* It accepts theme values between 'sm' and 'lg'.
|
|
1287
|
+
* @default 'md'
|
|
1288
|
+
*/
|
|
1289
|
+
size: o.oneOfType([o.oneOf(["sm", "md", "lg"]), o.string]),
|
|
1290
|
+
/**
|
|
1291
|
+
* The props used for each slot inside.
|
|
1292
|
+
* @default {}
|
|
1293
|
+
*/
|
|
1294
|
+
slotProps: o.shape({
|
|
1295
|
+
progress: o.oneOfType([o.func, o.object]),
|
|
1296
|
+
root: o.oneOfType([o.func, o.object]),
|
|
1297
|
+
svg: o.oneOfType([o.func, o.object]),
|
|
1298
|
+
track: o.oneOfType([o.func, o.object])
|
|
1299
|
+
}),
|
|
1300
|
+
/**
|
|
1301
|
+
* The components used for each slot inside.
|
|
1302
|
+
* @default {}
|
|
1303
|
+
*/
|
|
1304
|
+
slots: o.shape({
|
|
1305
|
+
progress: o.elementType,
|
|
1306
|
+
root: o.elementType,
|
|
1307
|
+
svg: o.elementType,
|
|
1308
|
+
track: o.elementType
|
|
1309
|
+
}),
|
|
1310
|
+
/**
|
|
1311
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1312
|
+
*/
|
|
1313
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
1314
|
+
/**
|
|
1315
|
+
* The thickness of the circle.
|
|
1316
|
+
*/
|
|
1317
|
+
thickness: o.number,
|
|
1318
|
+
/**
|
|
1319
|
+
* The value of the progress indicator for the determinate variant.
|
|
1320
|
+
* Value between 0 and 100.
|
|
1321
|
+
*
|
|
1322
|
+
* @default determinate ? 0 : 25
|
|
1323
|
+
*/
|
|
1324
|
+
value: o.number,
|
|
1325
|
+
/**
|
|
1326
|
+
* The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
|
|
1327
|
+
* @default 'soft'
|
|
1328
|
+
*/
|
|
1329
|
+
variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
|
|
1330
|
+
});
|
|
1331
|
+
const cr = ["children", "action", "component", "color", "disabled", "variant", "loading", "loadingIndicator", "size", "slots", "slotProps"], ur = (e) => {
|
|
1332
|
+
const {
|
|
1333
|
+
color: t,
|
|
1334
|
+
disabled: n,
|
|
1335
|
+
focusVisible: a,
|
|
1336
|
+
focusVisibleClassName: i,
|
|
1337
|
+
size: r,
|
|
1338
|
+
variant: l,
|
|
1339
|
+
loading: d
|
|
1340
|
+
} = e, f = {
|
|
1341
|
+
root: ["root", n && "disabled", a && "focusVisible", l && `variant${U(l)}`, t && `color${U(t)}`, r && `size${U(r)}`, d && "loading"],
|
|
1342
|
+
loadingIndicator: ["loadingIndicator"]
|
|
1343
|
+
}, u = ce(f, Xt, {});
|
|
1344
|
+
return a && i && (u.root += ` ${i}`), u;
|
|
1345
|
+
}, dr = L("button")(({
|
|
1346
|
+
theme: e,
|
|
1347
|
+
ownerState: t
|
|
1348
|
+
}) => {
|
|
1349
|
+
var n, a, i, r;
|
|
1350
|
+
return [c({
|
|
1351
|
+
"--Icon-margin": "initial",
|
|
1352
|
+
// reset the icon's margin.
|
|
1353
|
+
"--Icon-color": t.color !== "neutral" || t.variant === "solid" ? "currentColor" : e.vars.palette.text.icon
|
|
1354
|
+
}, t.instanceSize && {
|
|
1355
|
+
"--IconButton-size": {
|
|
1356
|
+
sm: "2rem",
|
|
1357
|
+
md: "2.25rem",
|
|
1358
|
+
lg: "2.75rem"
|
|
1359
|
+
}[t.instanceSize]
|
|
1360
|
+
}, t.size === "sm" && {
|
|
1361
|
+
"--Icon-fontSize": "calc(var(--IconButton-size, 2rem) / 1.6)",
|
|
1362
|
+
// 1.25rem by default
|
|
1363
|
+
"--CircularProgress-size": "20px",
|
|
1364
|
+
"--CircularProgress-thickness": "2px",
|
|
1365
|
+
minWidth: "var(--IconButton-size, 2rem)",
|
|
1366
|
+
// use min-width instead of height to make the button resilient to its content
|
|
1367
|
+
minHeight: "var(--IconButton-size, 2rem)",
|
|
1368
|
+
// use min-height instead of height to make the button resilient to its content
|
|
1369
|
+
fontSize: e.vars.fontSize.sm,
|
|
1370
|
+
paddingInline: "2px"
|
|
1371
|
+
// add a gap, in case the content is long, for example multiple icons
|
|
1372
|
+
}, t.size === "md" && {
|
|
1373
|
+
"--Icon-fontSize": "calc(var(--IconButton-size, 2.25rem) / 1.5)",
|
|
1374
|
+
// 1.5rem by default
|
|
1375
|
+
"--CircularProgress-size": "20px",
|
|
1376
|
+
"--CircularProgress-thickness": "2px",
|
|
1377
|
+
minWidth: "var(--IconButton-size, 2.25rem)",
|
|
1378
|
+
minHeight: "var(--IconButton-size, 2.25rem)",
|
|
1379
|
+
fontSize: e.vars.fontSize.md,
|
|
1380
|
+
paddingInline: "0.25rem"
|
|
1381
|
+
}, t.size === "lg" && {
|
|
1382
|
+
"--Icon-fontSize": "calc(var(--IconButton-size, 2.75rem) / 1.571)",
|
|
1383
|
+
// 1.75rem by default
|
|
1384
|
+
"--CircularProgress-size": "28px",
|
|
1385
|
+
"--CircularProgress-thickness": "4px",
|
|
1386
|
+
minWidth: "var(--IconButton-size, 2.75rem)",
|
|
1387
|
+
minHeight: "var(--IconButton-size, 2.75rem)",
|
|
1388
|
+
fontSize: e.vars.fontSize.lg,
|
|
1389
|
+
paddingInline: "0.375rem"
|
|
1390
|
+
}, {
|
|
1391
|
+
WebkitTapHighlightColor: "transparent",
|
|
1392
|
+
paddingBlock: 0,
|
|
1393
|
+
fontFamily: e.vars.fontFamily.body,
|
|
1394
|
+
fontWeight: e.vars.fontWeight.md,
|
|
1395
|
+
margin: "var(--IconButton-margin)",
|
|
1396
|
+
// to be controlled by other components, for example Input
|
|
1397
|
+
borderRadius: `var(--IconButton-radius, ${e.vars.radius.sm})`,
|
|
1398
|
+
// to be controlled by other components, for example Input
|
|
1399
|
+
border: "none",
|
|
1400
|
+
boxSizing: "border-box",
|
|
1401
|
+
backgroundColor: "transparent",
|
|
1402
|
+
cursor: "pointer",
|
|
1403
|
+
display: "inline-flex",
|
|
1404
|
+
alignItems: "center",
|
|
1405
|
+
justifyContent: "center",
|
|
1406
|
+
position: "relative",
|
|
1407
|
+
[e.focus.selector]: c({
|
|
1408
|
+
"--Icon-color": "currentColor"
|
|
1409
|
+
}, e.focus.default)
|
|
1410
|
+
}), c({}, (n = e.variants[t.variant]) == null ? void 0 : n[t.color], {
|
|
1411
|
+
"&:hover": {
|
|
1412
|
+
"@media (hover: hover)": c({
|
|
1413
|
+
"--Icon-color": "currentColor"
|
|
1414
|
+
}, (a = e.variants[`${t.variant}Hover`]) == null ? void 0 : a[t.color])
|
|
1415
|
+
},
|
|
1416
|
+
'&:active, &[aria-pressed="true"]': c({
|
|
1417
|
+
"--Icon-color": "currentColor"
|
|
1418
|
+
}, (i = e.variants[`${t.variant}Active`]) == null ? void 0 : i[t.color]),
|
|
1419
|
+
"&:disabled": (r = e.variants[`${t.variant}Disabled`]) == null ? void 0 : r[t.color]
|
|
1420
|
+
})];
|
|
1421
|
+
}), pr = L(dr, {
|
|
1422
|
+
name: "JoyIconButton",
|
|
1423
|
+
slot: "Root",
|
|
1424
|
+
overridesResolver: (e, t) => t.root
|
|
1425
|
+
})({}), fr = L("span", {
|
|
1426
|
+
name: "JoyIconButton",
|
|
1427
|
+
slot: "LoadingIndicator",
|
|
1428
|
+
overridesResolver: (e, t) => t.loadingIndicator
|
|
1429
|
+
})(({
|
|
1430
|
+
theme: e,
|
|
1431
|
+
ownerState: t
|
|
1432
|
+
}) => {
|
|
1433
|
+
var n, a;
|
|
1434
|
+
return c({
|
|
1435
|
+
display: "inherit",
|
|
1436
|
+
position: "absolute",
|
|
1437
|
+
left: "50%",
|
|
1438
|
+
transform: "translateX(-50%)",
|
|
1439
|
+
color: (n = e.variants[t.variant]) == null || (n = n[t.color]) == null ? void 0 : n.color
|
|
1440
|
+
}, t.disabled && {
|
|
1441
|
+
color: (a = e.variants[`${t.variant}Disabled`]) == null || (a = a[t.color]) == null ? void 0 : a.color
|
|
1442
|
+
});
|
|
1443
|
+
}), Ke = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
1444
|
+
var a;
|
|
1445
|
+
const i = ue({
|
|
1446
|
+
props: t,
|
|
1447
|
+
name: "JoyIconButton"
|
|
1448
|
+
}), {
|
|
1449
|
+
children: r,
|
|
1450
|
+
action: l,
|
|
1451
|
+
component: d = "button",
|
|
1452
|
+
color: f = "neutral",
|
|
1453
|
+
disabled: u,
|
|
1454
|
+
variant: h = "plain",
|
|
1455
|
+
loading: v = !1,
|
|
1456
|
+
loadingIndicator: P,
|
|
1457
|
+
size: S = "md",
|
|
1458
|
+
slots: y = {},
|
|
1459
|
+
slotProps: s = {}
|
|
1460
|
+
} = i, T = Y(i, cr), B = b.useContext(Te), _ = b.useContext(_e), R = t.variant || B.variant || h, N = t.size || B.size || S, I = t.color || B.color || f, C = (a = t.loading || t.disabled) != null ? a : B.disabled || v || u, g = b.useRef(null), O = X(g, n), {
|
|
1461
|
+
focusVisible: z,
|
|
1462
|
+
setFocusVisible: V,
|
|
1463
|
+
getRootProps: H
|
|
1464
|
+
} = we(c({}, i, {
|
|
1465
|
+
disabled: C,
|
|
1466
|
+
rootRef: O
|
|
1467
|
+
})), D = P ?? /* @__PURE__ */ M(Ee, {
|
|
1468
|
+
color: I,
|
|
1469
|
+
thickness: {
|
|
1470
|
+
sm: 2,
|
|
1471
|
+
md: 3,
|
|
1472
|
+
lg: 4
|
|
1473
|
+
}[N] || 3
|
|
1474
|
+
});
|
|
1475
|
+
b.useImperativeHandle(l, () => ({
|
|
1476
|
+
focusVisible: () => {
|
|
1477
|
+
var j;
|
|
1478
|
+
V(!0), (j = g.current) == null || j.focus();
|
|
1479
|
+
}
|
|
1480
|
+
}), [V]);
|
|
1481
|
+
const E = c({}, i, {
|
|
1482
|
+
component: d,
|
|
1483
|
+
color: I,
|
|
1484
|
+
disabled: C,
|
|
1485
|
+
variant: R,
|
|
1486
|
+
loading: v,
|
|
1487
|
+
size: N,
|
|
1488
|
+
focusVisible: z,
|
|
1489
|
+
instanceSize: t.size
|
|
1490
|
+
}), F = ur(E), m = (j) => {
|
|
1491
|
+
var Q;
|
|
1492
|
+
let q = i.onClick;
|
|
1493
|
+
if (typeof s.root == "function" ? q = s.root(E).onClick : s.root && (q = s.root.onClick), (Q = q) == null || Q(j), _) {
|
|
1494
|
+
var ee;
|
|
1495
|
+
(ee = _.onClick) == null || ee.call(_, j, i.value);
|
|
1496
|
+
}
|
|
1497
|
+
};
|
|
1498
|
+
let p = i["aria-pressed"];
|
|
1499
|
+
typeof s.root == "function" ? p = s.root(E)["aria-pressed"] : s.root && (p = s.root["aria-pressed"]), _ != null && _.value && (Array.isArray(_.value) ? p = _.value.indexOf(i.value) !== -1 : p = _.value === i.value);
|
|
1500
|
+
const $ = c({}, T, {
|
|
1501
|
+
component: d,
|
|
1502
|
+
slots: y,
|
|
1503
|
+
slotProps: s
|
|
1504
|
+
}), [A, G] = W("root", {
|
|
1505
|
+
ref: n,
|
|
1506
|
+
className: F.root,
|
|
1507
|
+
elementType: pr,
|
|
1508
|
+
getSlotProps: H,
|
|
1509
|
+
externalForwardedProps: $,
|
|
1510
|
+
ownerState: E,
|
|
1511
|
+
additionalProps: {
|
|
1512
|
+
onClick: m,
|
|
1513
|
+
"aria-pressed": p
|
|
1514
|
+
}
|
|
1515
|
+
}), [w, J] = W("loadingIndicator", {
|
|
1516
|
+
className: F.loadingIndicator,
|
|
1517
|
+
elementType: fr,
|
|
1518
|
+
externalForwardedProps: $,
|
|
1519
|
+
ownerState: E
|
|
1520
|
+
});
|
|
1521
|
+
return /* @__PURE__ */ M(A, c({}, G, {
|
|
1522
|
+
children: v ? /* @__PURE__ */ M(w, c({}, J, {
|
|
1523
|
+
children: D
|
|
1524
|
+
})) : r
|
|
1525
|
+
}));
|
|
1526
|
+
});
|
|
1527
|
+
process.env.NODE_ENV !== "production" && (Ke.propTypes = {
|
|
1528
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1529
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1530
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1531
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1532
|
+
/**
|
|
1533
|
+
* A ref for imperative actions. It currently only supports `focusVisible()` action.
|
|
1534
|
+
*/
|
|
1535
|
+
action: o.oneOfType([o.func, o.shape({
|
|
1536
|
+
current: o.shape({
|
|
1537
|
+
focusVisible: o.func.isRequired
|
|
1538
|
+
})
|
|
1539
|
+
})]),
|
|
1540
|
+
/**
|
|
1541
|
+
* @ignore
|
|
1542
|
+
*/
|
|
1543
|
+
children: o.node,
|
|
1544
|
+
/**
|
|
1545
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
1546
|
+
* @default 'neutral'
|
|
1547
|
+
*/
|
|
1548
|
+
color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
|
|
1549
|
+
/**
|
|
1550
|
+
* The component used for the root node.
|
|
1551
|
+
* Either a string to use a HTML element or a component.
|
|
1552
|
+
*/
|
|
1553
|
+
component: o.elementType,
|
|
1554
|
+
/**
|
|
1555
|
+
* If `true`, the component is disabled.
|
|
1556
|
+
* @default false
|
|
1557
|
+
*/
|
|
1558
|
+
disabled: o.bool,
|
|
1559
|
+
/**
|
|
1560
|
+
* This prop can help identify which element has keyboard focus.
|
|
1561
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
1562
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
1563
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
1564
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
1565
|
+
* if needed.
|
|
1566
|
+
*/
|
|
1567
|
+
focusVisibleClassName: o.string,
|
|
1568
|
+
/**
|
|
1569
|
+
* If `true`, the loading indicator is shown and the icon button becomes disabled.
|
|
1570
|
+
* @default false
|
|
1571
|
+
*/
|
|
1572
|
+
loading: o.bool,
|
|
1573
|
+
/**
|
|
1574
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
1575
|
+
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
1576
|
+
* @default <CircularProgress />
|
|
1577
|
+
*/
|
|
1578
|
+
loadingIndicator: o.node,
|
|
1579
|
+
/**
|
|
1580
|
+
* @ignore
|
|
1581
|
+
*/
|
|
1582
|
+
onClick: o.func,
|
|
1583
|
+
/**
|
|
1584
|
+
* The size of the component.
|
|
1585
|
+
* @default 'md'
|
|
1586
|
+
*/
|
|
1587
|
+
size: o.oneOfType([o.oneOf(["sm", "md", "lg"]), o.string]),
|
|
1588
|
+
/**
|
|
1589
|
+
* The props used for each slot inside.
|
|
1590
|
+
* @default {}
|
|
1591
|
+
*/
|
|
1592
|
+
slotProps: o.shape({
|
|
1593
|
+
loadingIndicator: o.oneOfType([o.func, o.object]),
|
|
1594
|
+
root: o.oneOfType([o.func, o.object])
|
|
1595
|
+
}),
|
|
1596
|
+
/**
|
|
1597
|
+
* The components used for each slot inside.
|
|
1598
|
+
* @default {}
|
|
1599
|
+
*/
|
|
1600
|
+
slots: o.shape({
|
|
1601
|
+
loadingIndicator: o.elementType,
|
|
1602
|
+
root: o.elementType
|
|
1603
|
+
}),
|
|
1604
|
+
/**
|
|
1605
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1606
|
+
*/
|
|
1607
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
1608
|
+
/**
|
|
1609
|
+
* @default 0
|
|
1610
|
+
*/
|
|
1611
|
+
tabIndex: o.number,
|
|
1612
|
+
/**
|
|
1613
|
+
* @ignore
|
|
1614
|
+
*/
|
|
1615
|
+
value: o.oneOfType([o.arrayOf(o.string), o.number, o.string]),
|
|
1616
|
+
/**
|
|
1617
|
+
* The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
|
|
1618
|
+
* @default 'plain'
|
|
1619
|
+
*/
|
|
1620
|
+
variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
|
|
1621
|
+
});
|
|
1622
|
+
Ke.muiName = "IconButton";
|
|
1623
|
+
function vr(e) {
|
|
1624
|
+
return ae("MuiTypography", e);
|
|
1625
|
+
}
|
|
1626
|
+
ie("MuiTypography", ["root", "h1", "h2", "h3", "h4", "title-lg", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body-xs", "noWrap", "gutterBottom", "startDecorator", "endDecorator", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
1627
|
+
const gr = ["color", "textColor"], mr = ["component", "gutterBottom", "noWrap", "level", "levelMapping", "children", "endDecorator", "startDecorator", "variant", "slots", "slotProps"], $e = /* @__PURE__ */ b.createContext(!1);
|
|
1628
|
+
process.env.NODE_ENV !== "production" && ($e.displayName = "TypographyNestedContext");
|
|
1629
|
+
const Ge = /* @__PURE__ */ b.createContext(!1);
|
|
1630
|
+
process.env.NODE_ENV !== "production" && (Ge.displayName = "TypographyInheritContext");
|
|
1631
|
+
const hr = (e) => {
|
|
1632
|
+
const {
|
|
1633
|
+
gutterBottom: t,
|
|
1634
|
+
noWrap: n,
|
|
1635
|
+
level: a,
|
|
1636
|
+
color: i,
|
|
1637
|
+
variant: r
|
|
1638
|
+
} = e, l = {
|
|
1639
|
+
root: ["root", a, t && "gutterBottom", n && "noWrap", i && `color${U(i)}`, r && `variant${U(r)}`],
|
|
1640
|
+
startDecorator: ["startDecorator"],
|
|
1641
|
+
endDecorator: ["endDecorator"]
|
|
1642
|
+
};
|
|
1643
|
+
return ce(l, vr, {});
|
|
1644
|
+
}, yr = L("span", {
|
|
1645
|
+
name: "JoyTypography",
|
|
1646
|
+
slot: "StartDecorator",
|
|
1647
|
+
overridesResolver: (e, t) => t.startDecorator
|
|
1648
|
+
})({
|
|
1649
|
+
display: "inline-flex",
|
|
1650
|
+
marginInlineEnd: "clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"
|
|
1651
|
+
}), br = L("span", {
|
|
1652
|
+
name: "JoyTypography",
|
|
1653
|
+
slot: "endDecorator",
|
|
1654
|
+
overridesResolver: (e, t) => t.endDecorator
|
|
1655
|
+
})({
|
|
1656
|
+
display: "inline-flex",
|
|
1657
|
+
marginInlineStart: "clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"
|
|
1658
|
+
}), $r = L("span", {
|
|
1659
|
+
name: "JoyTypography",
|
|
1660
|
+
slot: "Root",
|
|
1661
|
+
overridesResolver: (e, t) => t.root
|
|
1662
|
+
})(({
|
|
1663
|
+
theme: e,
|
|
1664
|
+
ownerState: t
|
|
1665
|
+
}) => {
|
|
1666
|
+
var n, a, i, r, l;
|
|
1667
|
+
const d = t.level !== "inherit" ? (n = e.typography[t.level]) == null ? void 0 : n.lineHeight : "1";
|
|
1668
|
+
return c({
|
|
1669
|
+
"--Icon-fontSize": `calc(1em * ${d})`
|
|
1670
|
+
}, t.color && {
|
|
1671
|
+
"--Icon-color": "currentColor"
|
|
1672
|
+
}, {
|
|
1673
|
+
margin: "var(--Typography-margin, 0px)"
|
|
1674
|
+
}, t.nesting ? {
|
|
1675
|
+
display: "inline"
|
|
1676
|
+
// looks better than `inline-block` when using with `variant` prop.
|
|
1677
|
+
} : c({
|
|
1678
|
+
display: "block"
|
|
1679
|
+
}, t.unstable_hasSkeleton && {
|
|
1680
|
+
position: "relative"
|
|
1681
|
+
}), (t.startDecorator || t.endDecorator) && c({
|
|
1682
|
+
display: "flex",
|
|
1683
|
+
alignItems: "center"
|
|
1684
|
+
}, t.nesting && c({
|
|
1685
|
+
display: "inline-flex"
|
|
1686
|
+
}, t.startDecorator && {
|
|
1687
|
+
verticalAlign: "bottom"
|
|
1688
|
+
// to make the text align with the parent's content
|
|
1689
|
+
})), t.level && t.level !== "inherit" && e.typography[t.level], {
|
|
1690
|
+
fontSize: `var(--Typography-fontSize, ${t.level && t.level !== "inherit" && (a = (i = e.typography[t.level]) == null ? void 0 : i.fontSize) != null ? a : "inherit"})`
|
|
1691
|
+
}, t.noWrap && {
|
|
1692
|
+
overflow: "hidden",
|
|
1693
|
+
textOverflow: "ellipsis",
|
|
1694
|
+
whiteSpace: "nowrap"
|
|
1695
|
+
}, t.gutterBottom && {
|
|
1696
|
+
marginBottom: "0.35em"
|
|
1697
|
+
}, t.color && {
|
|
1698
|
+
color: `var(--variant-plainColor, rgba(${(r = e.vars.palette[t.color]) == null ? void 0 : r.mainChannel} / 1))`
|
|
1699
|
+
}, t.variant && c({
|
|
1700
|
+
borderRadius: e.vars.radius.xs,
|
|
1701
|
+
paddingBlock: "min(0.1em, 4px)",
|
|
1702
|
+
paddingInline: "0.25em"
|
|
1703
|
+
}, !t.nesting && {
|
|
1704
|
+
marginInline: "-0.25em"
|
|
1705
|
+
}, (l = e.variants[t.variant]) == null ? void 0 : l[t.color]));
|
|
1706
|
+
}), He = {
|
|
1707
|
+
h1: "h1",
|
|
1708
|
+
h2: "h2",
|
|
1709
|
+
h3: "h3",
|
|
1710
|
+
h4: "h4",
|
|
1711
|
+
"title-lg": "p",
|
|
1712
|
+
"title-md": "p",
|
|
1713
|
+
"title-sm": "p",
|
|
1714
|
+
"body-lg": "p",
|
|
1715
|
+
"body-md": "p",
|
|
1716
|
+
"body-sm": "p",
|
|
1717
|
+
"body-xs": "span",
|
|
1718
|
+
inherit: "p"
|
|
1719
|
+
}, qe = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
1720
|
+
var a;
|
|
1721
|
+
const i = ue({
|
|
1722
|
+
props: t,
|
|
1723
|
+
name: "JoyTypography"
|
|
1724
|
+
}), {
|
|
1725
|
+
color: r,
|
|
1726
|
+
textColor: l
|
|
1727
|
+
} = i, d = Y(i, gr), f = b.useContext($e), u = b.useContext(Ge), h = pt(c({}, d, {
|
|
1728
|
+
color: l
|
|
1729
|
+
})), {
|
|
1730
|
+
component: v,
|
|
1731
|
+
gutterBottom: P = !1,
|
|
1732
|
+
noWrap: S = !1,
|
|
1733
|
+
level: y = "body-md",
|
|
1734
|
+
levelMapping: s = He,
|
|
1735
|
+
children: T,
|
|
1736
|
+
endDecorator: B,
|
|
1737
|
+
startDecorator: _,
|
|
1738
|
+
variant: R,
|
|
1739
|
+
slots: N = {},
|
|
1740
|
+
slotProps: I = {}
|
|
1741
|
+
} = h, C = Y(h, mr), g = (a = t.color) != null ? a : R ? r ?? "neutral" : r, O = f || u ? t.level || "inherit" : y, z = Bt(T, ["Skeleton"]), V = v || (f ? "span" : s[O] || He[O] || "span"), H = c({}, h, {
|
|
1742
|
+
level: O,
|
|
1743
|
+
component: V,
|
|
1744
|
+
color: g,
|
|
1745
|
+
gutterBottom: P,
|
|
1746
|
+
noWrap: S,
|
|
1747
|
+
nesting: f,
|
|
1748
|
+
variant: R,
|
|
1749
|
+
unstable_hasSkeleton: z
|
|
1750
|
+
}), D = hr(H), E = c({}, C, {
|
|
1751
|
+
component: V,
|
|
1752
|
+
slots: N,
|
|
1753
|
+
slotProps: I
|
|
1754
|
+
}), [F, m] = W("root", {
|
|
1755
|
+
ref: n,
|
|
1756
|
+
className: D.root,
|
|
1757
|
+
elementType: $r,
|
|
1758
|
+
externalForwardedProps: E,
|
|
1759
|
+
ownerState: H
|
|
1760
|
+
}), [p, $] = W("startDecorator", {
|
|
1761
|
+
className: D.startDecorator,
|
|
1762
|
+
elementType: yr,
|
|
1763
|
+
externalForwardedProps: E,
|
|
1764
|
+
ownerState: H
|
|
1765
|
+
}), [A, G] = W("endDecorator", {
|
|
1766
|
+
className: D.endDecorator,
|
|
1767
|
+
elementType: br,
|
|
1768
|
+
externalForwardedProps: E,
|
|
1769
|
+
ownerState: H
|
|
1770
|
+
});
|
|
1771
|
+
return /* @__PURE__ */ M($e.Provider, {
|
|
1772
|
+
value: !0,
|
|
1773
|
+
children: /* @__PURE__ */ oe(F, c({}, m, {
|
|
1774
|
+
children: [_ && /* @__PURE__ */ M(p, c({}, $, {
|
|
1775
|
+
children: _
|
|
1776
|
+
})), z ? /* @__PURE__ */ b.cloneElement(T, {
|
|
1777
|
+
variant: T.props.variant || "inline"
|
|
1778
|
+
}) : T, B && /* @__PURE__ */ M(A, c({}, G, {
|
|
1779
|
+
children: B
|
|
1780
|
+
}))]
|
|
1781
|
+
}))
|
|
1782
|
+
});
|
|
1783
|
+
});
|
|
1784
|
+
process.env.NODE_ENV !== "production" && (qe.propTypes = {
|
|
1785
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1786
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1787
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1788
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1789
|
+
/**
|
|
1790
|
+
* The content of the component.
|
|
1791
|
+
*/
|
|
1792
|
+
children: o.node,
|
|
1793
|
+
/**
|
|
1794
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
1795
|
+
*/
|
|
1796
|
+
color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
|
|
1797
|
+
/**
|
|
1798
|
+
* The component used for the root node.
|
|
1799
|
+
* Either a string to use a HTML element or a component.
|
|
1800
|
+
*/
|
|
1801
|
+
component: o.elementType,
|
|
1802
|
+
/**
|
|
1803
|
+
* Element placed after the children.
|
|
1804
|
+
*/
|
|
1805
|
+
endDecorator: o.node,
|
|
1806
|
+
/**
|
|
1807
|
+
* If `true`, the text will have a bottom margin.
|
|
1808
|
+
* @default false
|
|
1809
|
+
*/
|
|
1810
|
+
gutterBottom: o.bool,
|
|
1811
|
+
/**
|
|
1812
|
+
* Applies the theme typography styles.
|
|
1813
|
+
* @default 'body-md'
|
|
1814
|
+
*/
|
|
1815
|
+
level: o.oneOfType([o.oneOf(["h1", "h2", "h3", "h4", "title-lg", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body-xs", "inherit"]), o.string]),
|
|
1816
|
+
/**
|
|
1817
|
+
* The component maps the variant prop to a range of different HTML element types.
|
|
1818
|
+
* For instance, body1 to `<h6>`.
|
|
1819
|
+
* If you wish to change that mapping, you can provide your own.
|
|
1820
|
+
* Alternatively, you can use the `component` prop.
|
|
1821
|
+
* @default {
|
|
1822
|
+
* h1: 'h1',
|
|
1823
|
+
* h2: 'h2',
|
|
1824
|
+
* h3: 'h3',
|
|
1825
|
+
* h4: 'h4',
|
|
1826
|
+
* 'title-lg': 'p',
|
|
1827
|
+
* 'title-md': 'p',
|
|
1828
|
+
* 'title-sm': 'p',
|
|
1829
|
+
* 'body-lg': 'p',
|
|
1830
|
+
* 'body-md': 'p',
|
|
1831
|
+
* 'body-sm': 'p',
|
|
1832
|
+
* 'body-xs': 'span',
|
|
1833
|
+
* inherit: 'p',
|
|
1834
|
+
* }
|
|
1835
|
+
*/
|
|
1836
|
+
levelMapping: o.object,
|
|
1837
|
+
/**
|
|
1838
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
1839
|
+
*
|
|
1840
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
1841
|
+
* (the element needs to have a width in order to overflow).
|
|
1842
|
+
* @default false
|
|
1843
|
+
*/
|
|
1844
|
+
noWrap: o.bool,
|
|
1845
|
+
/**
|
|
1846
|
+
* The props used for each slot inside.
|
|
1847
|
+
* @default {}
|
|
1848
|
+
*/
|
|
1849
|
+
slotProps: o.shape({
|
|
1850
|
+
endDecorator: o.oneOfType([o.func, o.object]),
|
|
1851
|
+
root: o.oneOfType([o.func, o.object]),
|
|
1852
|
+
startDecorator: o.oneOfType([o.func, o.object])
|
|
1853
|
+
}),
|
|
1854
|
+
/**
|
|
1855
|
+
* The components used for each slot inside.
|
|
1856
|
+
* @default {}
|
|
1857
|
+
*/
|
|
1858
|
+
slots: o.shape({
|
|
1859
|
+
endDecorator: o.elementType,
|
|
1860
|
+
root: o.elementType,
|
|
1861
|
+
startDecorator: o.elementType
|
|
1862
|
+
}),
|
|
1863
|
+
/**
|
|
1864
|
+
* Element placed before the children.
|
|
1865
|
+
*/
|
|
1866
|
+
startDecorator: o.node,
|
|
1867
|
+
/**
|
|
1868
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1869
|
+
*/
|
|
1870
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
1871
|
+
/**
|
|
1872
|
+
* The system color.
|
|
1873
|
+
*/
|
|
1874
|
+
textColor: o.any,
|
|
1875
|
+
/**
|
|
1876
|
+
* The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
|
|
1877
|
+
*/
|
|
1878
|
+
variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
|
|
1879
|
+
});
|
|
1880
|
+
qe.muiName = "Typography";
|
|
1881
|
+
function Cr(e) {
|
|
1882
|
+
return ae("MuiButton", e);
|
|
1883
|
+
}
|
|
1884
|
+
const Fe = ie("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "focusVisible", "disabled", "sizeSm", "sizeMd", "sizeLg", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingIndicatorCenter"]), Tr = ["children", "action", "color", "variant", "size", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingPosition", "loadingIndicator", "disabled", "component", "slots", "slotProps"], _r = (e) => {
|
|
1885
|
+
const {
|
|
1886
|
+
color: t,
|
|
1887
|
+
disabled: n,
|
|
1888
|
+
focusVisible: a,
|
|
1889
|
+
focusVisibleClassName: i,
|
|
1890
|
+
fullWidth: r,
|
|
1891
|
+
size: l,
|
|
1892
|
+
variant: d,
|
|
1893
|
+
loading: f
|
|
1894
|
+
} = e, u = {
|
|
1895
|
+
root: ["root", n && "disabled", a && "focusVisible", r && "fullWidth", d && `variant${U(d)}`, t && `color${U(t)}`, l && `size${U(l)}`, f && "loading"],
|
|
1896
|
+
startDecorator: ["startDecorator"],
|
|
1897
|
+
endDecorator: ["endDecorator"],
|
|
1898
|
+
loadingIndicatorCenter: ["loadingIndicatorCenter"]
|
|
1899
|
+
}, h = ce(u, Cr, {});
|
|
1900
|
+
return a && i && (h.root += ` ${i}`), h;
|
|
1901
|
+
}, Er = L("span", {
|
|
1902
|
+
name: "JoyButton",
|
|
1903
|
+
slot: "StartDecorator",
|
|
1904
|
+
overridesResolver: (e, t) => t.startDecorator
|
|
1905
|
+
})({
|
|
1906
|
+
"--Icon-margin": "0 0 0 calc(var(--Button-gap) / -2)",
|
|
1907
|
+
"--CircularProgress-margin": "0 0 0 calc(var(--Button-gap) / -2)",
|
|
1908
|
+
display: "inherit",
|
|
1909
|
+
marginRight: "var(--Button-gap)"
|
|
1910
|
+
}), Pr = L("span", {
|
|
1911
|
+
name: "JoyButton",
|
|
1912
|
+
slot: "EndDecorator",
|
|
1913
|
+
overridesResolver: (e, t) => t.endDecorator
|
|
1914
|
+
})({
|
|
1915
|
+
"--Icon-margin": "0 calc(var(--Button-gap) / -2) 0 0",
|
|
1916
|
+
"--CircularProgress-margin": "0 calc(var(--Button-gap) / -2) 0 0",
|
|
1917
|
+
display: "inherit",
|
|
1918
|
+
marginLeft: "var(--Button-gap)"
|
|
1919
|
+
}), Sr = L("span", {
|
|
1920
|
+
name: "JoyButton",
|
|
1921
|
+
slot: "LoadingCenter",
|
|
1922
|
+
overridesResolver: (e, t) => t.loadingIndicatorCenter
|
|
1923
|
+
})(({
|
|
1924
|
+
theme: e,
|
|
1925
|
+
ownerState: t
|
|
1926
|
+
}) => {
|
|
1927
|
+
var n, a;
|
|
1928
|
+
return c({
|
|
1929
|
+
display: "inherit",
|
|
1930
|
+
position: "absolute",
|
|
1931
|
+
left: "50%",
|
|
1932
|
+
transform: "translateX(-50%)",
|
|
1933
|
+
color: (n = e.variants[t.variant]) == null || (n = n[t.color]) == null ? void 0 : n.color
|
|
1934
|
+
}, t.disabled && {
|
|
1935
|
+
color: (a = e.variants[`${t.variant}Disabled`]) == null || (a = a[t.color]) == null ? void 0 : a.color
|
|
1936
|
+
});
|
|
1937
|
+
}), kr = ({
|
|
1938
|
+
theme: e,
|
|
1939
|
+
ownerState: t
|
|
1940
|
+
}) => {
|
|
1941
|
+
var n, a, i, r;
|
|
1942
|
+
return [c({
|
|
1943
|
+
"--Icon-margin": "initial",
|
|
1944
|
+
// reset the icon's margin.
|
|
1945
|
+
"--Icon-color": t.color !== "neutral" || t.variant === "solid" ? "currentColor" : e.vars.palette.text.icon
|
|
1946
|
+
}, t.size === "sm" && {
|
|
1947
|
+
"--Icon-fontSize": e.vars.fontSize.lg,
|
|
1948
|
+
"--CircularProgress-size": "20px",
|
|
1949
|
+
// must be `px` unit, otherwise the CircularProgress is broken in Safari
|
|
1950
|
+
"--CircularProgress-thickness": "2px",
|
|
1951
|
+
"--Button-gap": "0.375rem",
|
|
1952
|
+
minHeight: "var(--Button-minHeight, 2rem)",
|
|
1953
|
+
fontSize: e.vars.fontSize.sm,
|
|
1954
|
+
paddingBlock: "var(--Button-paddingBlock, 0.25rem)",
|
|
1955
|
+
paddingInline: "0.75rem"
|
|
1956
|
+
}, t.size === "md" && {
|
|
1957
|
+
"--Icon-fontSize": e.vars.fontSize.xl,
|
|
1958
|
+
"--CircularProgress-size": "20px",
|
|
1959
|
+
// must be `px` unit, otherwise the CircularProgress is broken in Safari
|
|
1960
|
+
"--CircularProgress-thickness": "2px",
|
|
1961
|
+
"--Button-gap": "0.5rem",
|
|
1962
|
+
minHeight: "var(--Button-minHeight, 2.25rem)",
|
|
1963
|
+
// use min-height instead of height to make the button resilient to its content
|
|
1964
|
+
fontSize: e.vars.fontSize.sm,
|
|
1965
|
+
// internal --Button-paddingBlock is used to control the padding-block of the button from the outside, for example as a decorator of an Input
|
|
1966
|
+
paddingBlock: "var(--Button-paddingBlock, 0.375rem)",
|
|
1967
|
+
// the padding-block act as a minimum spacing between content and root element
|
|
1968
|
+
paddingInline: "1rem"
|
|
1969
|
+
}, t.size === "lg" && {
|
|
1970
|
+
"--Icon-fontSize": e.vars.fontSize.xl2,
|
|
1971
|
+
"--CircularProgress-size": "28px",
|
|
1972
|
+
// must be `px` unit, otherwise the CircularProgress is broken in Safari
|
|
1973
|
+
"--CircularProgress-thickness": "4px",
|
|
1974
|
+
"--Button-gap": "0.75rem",
|
|
1975
|
+
minHeight: "var(--Button-minHeight, 2.75rem)",
|
|
1976
|
+
fontSize: e.vars.fontSize.md,
|
|
1977
|
+
paddingBlock: "var(--Button-paddingBlock, 0.5rem)",
|
|
1978
|
+
paddingInline: "1.5rem"
|
|
1979
|
+
}, {
|
|
1980
|
+
WebkitTapHighlightColor: "transparent",
|
|
1981
|
+
boxSizing: "border-box",
|
|
1982
|
+
borderRadius: `var(--Button-radius, ${e.vars.radius.sm})`,
|
|
1983
|
+
// to be controlled by other components, for example Input
|
|
1984
|
+
margin: "var(--Button-margin)",
|
|
1985
|
+
// to be controlled by other components, for example Input
|
|
1986
|
+
border: "none",
|
|
1987
|
+
backgroundColor: "transparent",
|
|
1988
|
+
cursor: "pointer",
|
|
1989
|
+
userSelect: "none",
|
|
1990
|
+
display: "inline-flex",
|
|
1991
|
+
alignItems: "center",
|
|
1992
|
+
justifyContent: "center",
|
|
1993
|
+
position: "relative",
|
|
1994
|
+
textDecoration: "none",
|
|
1995
|
+
// prevent user agent underline when used as anchor
|
|
1996
|
+
fontFamily: e.vars.fontFamily.body,
|
|
1997
|
+
fontWeight: e.vars.fontWeight.lg,
|
|
1998
|
+
lineHeight: e.vars.lineHeight.md
|
|
1999
|
+
}, t.fullWidth && {
|
|
2000
|
+
width: "100%"
|
|
2001
|
+
}, {
|
|
2002
|
+
[e.focus.selector]: e.focus.default
|
|
2003
|
+
}), c({}, (n = e.variants[t.variant]) == null ? void 0 : n[t.color], {
|
|
2004
|
+
"&:hover": {
|
|
2005
|
+
"@media (hover: hover)": (a = e.variants[`${t.variant}Hover`]) == null ? void 0 : a[t.color]
|
|
2006
|
+
},
|
|
2007
|
+
'&:active, &[aria-pressed="true"]': (i = e.variants[`${t.variant}Active`]) == null ? void 0 : i[t.color],
|
|
2008
|
+
[`&.${Fe.disabled}`]: (r = e.variants[`${t.variant}Disabled`]) == null ? void 0 : r[t.color]
|
|
2009
|
+
}, t.loadingPosition === "center" && {
|
|
2010
|
+
// this has to come after the variant styles to take effect.
|
|
2011
|
+
[`&.${Fe.loading}`]: {
|
|
2012
|
+
color: "transparent"
|
|
2013
|
+
}
|
|
2014
|
+
})];
|
|
2015
|
+
}, xr = L("button", {
|
|
2016
|
+
name: "JoyButton",
|
|
2017
|
+
slot: "Root",
|
|
2018
|
+
overridesResolver: (e, t) => t.root
|
|
2019
|
+
})(kr), Ze = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
2020
|
+
var a;
|
|
2021
|
+
const i = ue({
|
|
2022
|
+
props: t,
|
|
2023
|
+
name: "JoyButton"
|
|
2024
|
+
}), {
|
|
2025
|
+
children: r,
|
|
2026
|
+
action: l,
|
|
2027
|
+
color: d = "primary",
|
|
2028
|
+
variant: f = "solid",
|
|
2029
|
+
size: u = "md",
|
|
2030
|
+
fullWidth: h = !1,
|
|
2031
|
+
startDecorator: v,
|
|
2032
|
+
endDecorator: P,
|
|
2033
|
+
loading: S = !1,
|
|
2034
|
+
loadingPosition: y = "center",
|
|
2035
|
+
loadingIndicator: s,
|
|
2036
|
+
disabled: T,
|
|
2037
|
+
component: B,
|
|
2038
|
+
slots: _ = {},
|
|
2039
|
+
slotProps: R = {}
|
|
2040
|
+
} = i, N = Y(i, Tr), I = b.useContext(Te), C = b.useContext(_e), g = t.variant || I.variant || f, O = t.size || I.size || u, z = t.color || I.color || d, V = (a = t.loading || t.disabled) != null ? a : I.disabled || S || T, H = b.useRef(null), D = X(H, n), {
|
|
2041
|
+
focusVisible: E,
|
|
2042
|
+
setFocusVisible: F,
|
|
2043
|
+
getRootProps: m
|
|
2044
|
+
} = we(c({}, i, {
|
|
2045
|
+
disabled: V,
|
|
2046
|
+
rootRef: D
|
|
2047
|
+
})), p = s ?? /* @__PURE__ */ M(Ee, {
|
|
2048
|
+
color: z,
|
|
2049
|
+
thickness: {
|
|
2050
|
+
sm: 2,
|
|
2051
|
+
md: 3,
|
|
2052
|
+
lg: 4
|
|
2053
|
+
}[O] || 3
|
|
2054
|
+
});
|
|
2055
|
+
b.useImperativeHandle(l, () => ({
|
|
2056
|
+
focusVisible: () => {
|
|
2057
|
+
var Z;
|
|
2058
|
+
F(!0), (Z = H.current) == null || Z.focus();
|
|
2059
|
+
}
|
|
2060
|
+
}), [F]);
|
|
2061
|
+
const $ = c({}, i, {
|
|
2062
|
+
color: z,
|
|
2063
|
+
fullWidth: h,
|
|
2064
|
+
variant: g,
|
|
2065
|
+
size: O,
|
|
2066
|
+
focusVisible: E,
|
|
2067
|
+
loading: S,
|
|
2068
|
+
loadingPosition: y,
|
|
2069
|
+
disabled: V
|
|
2070
|
+
}), A = _r($), G = (Z) => {
|
|
2071
|
+
var Pe;
|
|
2072
|
+
let de = i.onClick;
|
|
2073
|
+
if (typeof R.root == "function" ? de = R.root($).onClick : R.root && (de = R.root.onClick), (Pe = de) == null || Pe(Z), C) {
|
|
2074
|
+
var Se;
|
|
2075
|
+
(Se = C.onClick) == null || Se.call(C, Z, i.value);
|
|
2076
|
+
}
|
|
2077
|
+
};
|
|
2078
|
+
let w = i["aria-pressed"];
|
|
2079
|
+
typeof R.root == "function" ? w = R.root($)["aria-pressed"] : R.root && (w = R.root["aria-pressed"]), C != null && C.value && (Array.isArray(C.value) ? w = C.value.indexOf(i.value) !== -1 : w = C.value === i.value);
|
|
2080
|
+
const J = c({}, N, {
|
|
2081
|
+
component: B,
|
|
2082
|
+
slots: _,
|
|
2083
|
+
slotProps: R
|
|
2084
|
+
}), [j, Q] = W("root", {
|
|
2085
|
+
ref: n,
|
|
2086
|
+
className: A.root,
|
|
2087
|
+
elementType: xr,
|
|
2088
|
+
externalForwardedProps: J,
|
|
2089
|
+
getSlotProps: m,
|
|
2090
|
+
ownerState: $,
|
|
2091
|
+
additionalProps: {
|
|
2092
|
+
onClick: G,
|
|
2093
|
+
"aria-pressed": w
|
|
2094
|
+
}
|
|
2095
|
+
}), [q, ee] = W("startDecorator", {
|
|
2096
|
+
className: A.startDecorator,
|
|
2097
|
+
elementType: Er,
|
|
2098
|
+
externalForwardedProps: J,
|
|
2099
|
+
ownerState: $
|
|
2100
|
+
}), [Xe, Qe] = W("endDecorator", {
|
|
2101
|
+
className: A.endDecorator,
|
|
2102
|
+
elementType: Pr,
|
|
2103
|
+
externalForwardedProps: J,
|
|
2104
|
+
ownerState: $
|
|
2105
|
+
}), [et, tt] = W("loadingIndicatorCenter", {
|
|
2106
|
+
className: A.loadingIndicatorCenter,
|
|
2107
|
+
elementType: Sr,
|
|
2108
|
+
externalForwardedProps: J,
|
|
2109
|
+
ownerState: $
|
|
2110
|
+
});
|
|
2111
|
+
return /* @__PURE__ */ oe(j, c({}, Q, {
|
|
2112
|
+
children: [(v || S && y === "start") && /* @__PURE__ */ M(q, c({}, ee, {
|
|
2113
|
+
children: S && y === "start" ? p : v
|
|
2114
|
+
})), r, S && y === "center" && /* @__PURE__ */ M(et, c({}, tt, {
|
|
2115
|
+
children: p
|
|
2116
|
+
})), (P || S && y === "end") && /* @__PURE__ */ M(Xe, c({}, Qe, {
|
|
2117
|
+
children: S && y === "end" ? p : P
|
|
2118
|
+
}))]
|
|
2119
|
+
}));
|
|
2120
|
+
});
|
|
2121
|
+
process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
2122
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2123
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2124
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
2125
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
2126
|
+
/**
|
|
2127
|
+
* A ref for imperative actions. It currently only supports `focusVisible()` action.
|
|
2128
|
+
*/
|
|
2129
|
+
action: o.oneOfType([o.func, o.shape({
|
|
2130
|
+
current: o.shape({
|
|
2131
|
+
focusVisible: o.func.isRequired
|
|
2132
|
+
})
|
|
2133
|
+
})]),
|
|
2134
|
+
/**
|
|
2135
|
+
* @ignore
|
|
2136
|
+
*/
|
|
2137
|
+
children: o.node,
|
|
2138
|
+
/**
|
|
2139
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
2140
|
+
* @default 'primary'
|
|
2141
|
+
*/
|
|
2142
|
+
color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
|
|
2143
|
+
/**
|
|
2144
|
+
* The component used for the root node.
|
|
2145
|
+
* Either a string to use a HTML element or a component.
|
|
2146
|
+
*/
|
|
2147
|
+
component: o.elementType,
|
|
2148
|
+
/**
|
|
2149
|
+
* If `true`, the component is disabled.
|
|
2150
|
+
* @default false
|
|
2151
|
+
*/
|
|
2152
|
+
disabled: o.bool,
|
|
2153
|
+
/**
|
|
2154
|
+
* Element placed after the children.
|
|
2155
|
+
*/
|
|
2156
|
+
endDecorator: o.node,
|
|
2157
|
+
/**
|
|
2158
|
+
* @ignore
|
|
2159
|
+
*/
|
|
2160
|
+
focusVisibleClassName: o.string,
|
|
2161
|
+
/**
|
|
2162
|
+
* If `true`, the button will take up the full width of its container.
|
|
2163
|
+
* @default false
|
|
2164
|
+
*/
|
|
2165
|
+
fullWidth: o.bool,
|
|
2166
|
+
/**
|
|
2167
|
+
* If `true`, the loading indicator is shown and the button becomes disabled.
|
|
2168
|
+
* @default false
|
|
2169
|
+
*/
|
|
2170
|
+
loading: o.bool,
|
|
2171
|
+
/**
|
|
2172
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
2173
|
+
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
2174
|
+
* @default <CircularProgress />
|
|
2175
|
+
*/
|
|
2176
|
+
loadingIndicator: o.node,
|
|
2177
|
+
/**
|
|
2178
|
+
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
2179
|
+
* @default 'center'
|
|
2180
|
+
*/
|
|
2181
|
+
loadingPosition: o.oneOf(["center", "end", "start"]),
|
|
2182
|
+
/**
|
|
2183
|
+
* @ignore
|
|
2184
|
+
*/
|
|
2185
|
+
onClick: o.func,
|
|
2186
|
+
/**
|
|
2187
|
+
* The size of the component.
|
|
2188
|
+
* @default 'md'
|
|
2189
|
+
*/
|
|
2190
|
+
size: o.oneOfType([o.oneOf(["sm", "md", "lg"]), o.string]),
|
|
2191
|
+
/**
|
|
2192
|
+
* The props used for each slot inside.
|
|
2193
|
+
* @default {}
|
|
2194
|
+
*/
|
|
2195
|
+
slotProps: o.shape({
|
|
2196
|
+
endDecorator: o.oneOfType([o.func, o.object]),
|
|
2197
|
+
loadingIndicatorCenter: o.oneOfType([o.func, o.object]),
|
|
2198
|
+
root: o.oneOfType([o.func, o.object]),
|
|
2199
|
+
startDecorator: o.oneOfType([o.func, o.object])
|
|
2200
|
+
}),
|
|
2201
|
+
/**
|
|
2202
|
+
* The components used for each slot inside.
|
|
2203
|
+
* @default {}
|
|
2204
|
+
*/
|
|
2205
|
+
slots: o.shape({
|
|
2206
|
+
endDecorator: o.elementType,
|
|
2207
|
+
loadingIndicatorCenter: o.elementType,
|
|
2208
|
+
root: o.elementType,
|
|
2209
|
+
startDecorator: o.elementType
|
|
2210
|
+
}),
|
|
2211
|
+
/**
|
|
2212
|
+
* Element placed before the children.
|
|
2213
|
+
*/
|
|
2214
|
+
startDecorator: o.node,
|
|
2215
|
+
/**
|
|
2216
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2217
|
+
*/
|
|
2218
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
2219
|
+
/**
|
|
2220
|
+
* @default 0
|
|
2221
|
+
*/
|
|
2222
|
+
tabIndex: o.number,
|
|
2223
|
+
/**
|
|
2224
|
+
* @ignore
|
|
2225
|
+
*/
|
|
2226
|
+
value: o.oneOfType([o.arrayOf(o.string), o.number, o.string]),
|
|
2227
|
+
/**
|
|
2228
|
+
* The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
|
|
2229
|
+
* @default 'solid'
|
|
2230
|
+
*/
|
|
2231
|
+
variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
|
|
2232
|
+
});
|
|
2233
|
+
Ze.muiName = "Button";
|
|
2234
|
+
export {
|
|
2235
|
+
Yt as A,
|
|
2236
|
+
Ze as B,
|
|
2237
|
+
Ee as C,
|
|
2238
|
+
Wt as D,
|
|
2239
|
+
xt as H,
|
|
2240
|
+
Ke as I,
|
|
2241
|
+
be as P,
|
|
2242
|
+
dr as S,
|
|
2243
|
+
qe as T,
|
|
2244
|
+
W as a,
|
|
2245
|
+
Fe as b,
|
|
2246
|
+
ce as c,
|
|
2247
|
+
X as d,
|
|
2248
|
+
we as e,
|
|
2249
|
+
ye as f,
|
|
2250
|
+
me as g,
|
|
2251
|
+
Bt as h,
|
|
2252
|
+
Vr as i,
|
|
2253
|
+
ne as j,
|
|
2254
|
+
Dr as k,
|
|
2255
|
+
$e as l,
|
|
2256
|
+
Ge as m,
|
|
2257
|
+
Mt as n,
|
|
2258
|
+
Or as o,
|
|
2259
|
+
wt as p,
|
|
2260
|
+
se as q,
|
|
2261
|
+
Nr as r,
|
|
2262
|
+
L as s,
|
|
2263
|
+
zr as t,
|
|
2264
|
+
ue as u,
|
|
2265
|
+
Ar as v,
|
|
2266
|
+
Ir as w,
|
|
2267
|
+
Pt as x,
|
|
2268
|
+
kt as y,
|
|
2269
|
+
Ut as z
|
|
2270
|
+
};
|