fansunited-widgets-cdn 0.0.86-RC4 → 0.0.86-RC6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{Alert-DuMXT9be.js → Alert-B6o66mYo.js} +39 -39
- package/chunks/{CardContent-COgjZl3_.js → CardContent-NCZhfGcZ.js} +16 -16
- package/chunks/{Snackbar-DJz-WddP.js → ChevronRight-1pLZ7T0v.js} +100 -94
- package/chunks/{ClassicQuizWrapper-C7svf4eh.js → ClassicQuizWrapper-n2epPO4k.js} +201 -205
- package/chunks/CollectLeadForm-C_3plJtn-Dr8J3eDw.js +3918 -0
- package/chunks/{CollectLeadWrapper-DACvBsa_.js → CollectLeadWrapper-CCtTZAxL.js} +55 -56
- package/chunks/EitherOrById-ClGwMK0b.js +6820 -0
- package/chunks/EitherOrPreviewWrapper-BYiKyYwi.js +46 -0
- package/chunks/Error-BurPfBJw-DWYn31sK.js +1119 -0
- package/chunks/{EventGameWrapper-DmjaKr3I.js → EventGameWrapper-BphusLTk.js} +208 -219
- package/chunks/{Grid-BbegUe2J.js → Grid-yjqNNhEx.js} +32 -32
- package/chunks/{IconButton-zh1RLwcE.js → IconButton-D7onwgY0.js} +22 -22
- package/chunks/{List-CA3L6bUS.js → List-8Vy9IZiv.js} +26 -29
- package/chunks/{MatchPredictionContainer-CmHKsJ_z.js → MatchPredictionContainer-BGytBwLo.js} +52 -54
- package/chunks/{MatchQuizWrapper-BxHHl4a5.js → MatchQuizWrapper-BGjldBpF.js} +73 -85
- package/chunks/{OverlayLeadAfterCollection-DnqztPJ5-CJnicIes.js → OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js} +104 -105
- package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd-CZ7cct30.js → OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js} +18 -19
- package/chunks/{PersonalityQuizWrapper-B-Rkzvc0.js → PersonalityQuizWrapper-BgLFw5tM.js} +3 -3
- package/chunks/{PlayerOfTheMatch-CzGMT1jr.js → PlayerOfTheMatch-CImBLG3T.js} +1008 -609
- package/chunks/{PollWrapper-Cdl3AbXE.js → PollWrapper-QpIKCCVF.js} +30 -34
- package/chunks/Portal-DegkUXpU-ByGP9zS1.js +19236 -0
- package/chunks/{PreviewQuizById-CPiwewW_.js → PreviewQuizById-Ba6yhxKV.js} +11 -14
- package/chunks/Sheet-U5EnSrgg.js +282 -0
- package/chunks/{Stack-BBjT-MoB.js → Stack-DbDi7kPO.js} +30 -30
- package/chunks/Tabs-leN3Fb8D--YMyy3EM.js +783 -0
- package/chunks/{TeamNextMatchPrediction-BOOGeVEv.js → TeamNextMatchPrediction-9VSQOCcC.js} +2 -2
- package/chunks/Tutorial-CRJLOovs.js +1072 -0
- package/chunks/createLucideIcon-CMWOQsDL.js +381 -0
- package/chunks/{createSvgIcon-cOpRx8M1.js → createSvgIcon-D9D4a1R9.js} +412 -390
- package/chunks/default-quiz-bg-ADjjIfPj.js +126 -0
- package/chunks/{index-CNAE4RYY.js → index-0ADq_9jd.js} +1 -1
- package/chunks/{index-D9kNvflO.js → index-B74jHeYm.js} +2 -2
- package/chunks/{index-Dr-yGqo_.js → index-BfVvJg5R.js} +1 -1
- package/chunks/{index-D3wDyWq_.js → index-BycLbIYY.js} +1 -1
- package/chunks/{index-BKyd0MUt.js → index-C6KAc5B_.js} +1 -1
- package/chunks/{index-BkU2GDR4.js → index-CHV6tlpH.js} +5 -5
- package/chunks/{index-Uv42o9aR.js → index-CILd3yUc.js} +1 -1
- package/chunks/index-CJqcqbHq.js +5 -0
- package/chunks/{index-DrlzgjUf.js → index-CK2RXrJm.js} +1 -1
- package/chunks/{index-DFXrZaoM.js → index-CPTAlr_t.js} +1 -1
- package/chunks/{index-D1SEUyHT.js → index-CiB_Gqim.js} +1 -1
- package/chunks/{index-CNukXTLi.js → index-CvGJXa6l.js} +1 -1
- package/chunks/{index-CpFMxpj1.js → index-CviTG4Nv.js} +1 -1
- package/chunks/index-DUQ2LFod-Cw45tHim.js +4510 -0
- package/chunks/{index-DbZ10tsY.js → index-Da0AXb_O.js} +1 -1
- package/chunks/{index-CiI_vSMR.js → index-DwR4J2nN.js} +1 -1
- package/chunks/{index-CMhbRdLz.js → index-UwW9niUj.js} +1 -1
- package/chunks/index.es-wHqA4PHm.js +11480 -0
- package/chunks/{init-DYY4CJtu.js → init-C-gCorsh.js} +1 -1
- package/chunks/{main-NO9IQFuY.js → main-Bh6iw92_.js} +94 -110
- package/chunks/{Button-DJj0KOh3.js → resolveProps-Bgg0H6c2.js} +471 -313
- package/chunks/{users-C-6eqEb6.js → users-CXdzg3DM.js} +1 -1
- package/fu-widgets.es.js +2 -2
- package/fu-widgets.iife.js +310 -257
- package/manifest.json +56 -72
- package/package.json +1 -1
- package/chunks/AspectRatio-CKWgGwn-.js +0 -125
- package/chunks/Avatar-Cv70g9HX.js +0 -186
- package/chunks/Card-BDn3dk3E.js +0 -129
- package/chunks/ChevronRight-BwGivLSL.js +0 -11
- package/chunks/Chip-BkY7Uww3.js +0 -281
- package/chunks/CollectLeadForm-DtmR2Vuf-DvAoHDnn.js +0 -1560
- package/chunks/DialogActions-CuXgjeCi.js +0 -45
- package/chunks/DialogContent-CyQJ8yz-.js +0 -60
- package/chunks/EitherOrById-B8v0nJmv.js +0 -1496
- package/chunks/EitherOrPreviewWrapper-C9O6TEVe.js +0 -47
- package/chunks/Error-DhQL89pn-DD0O1kEt.js +0 -418
- package/chunks/Link-Cw8ci6QQ.js +0 -228
- package/chunks/ListItemDecorator-DwvO_ty1.js +0 -1882
- package/chunks/ModalDialog-DLPhSR9-.js +0 -619
- package/chunks/NotFoundSkeleton-BYJTzYJR-JURKfNZv.js +0 -2764
- package/chunks/Portal-BWqqFvVm-pvatNKfM.js +0 -12717
- package/chunks/Portal-BsATdUrC.js +0 -41
- package/chunks/Select-Cewujqtd.js +0 -3418
- package/chunks/Sheet-B8wNvQTa.js +0 -167
- package/chunks/Tabs-BP1RMTCA.js +0 -784
- package/chunks/Tutorial-B1LWDD9l.js +0 -427
- package/chunks/createLucideIcon-nPUeaUEe.js +0 -79
- package/chunks/createSvgIcon-DhITitgm.js +0 -119
- package/chunks/default-quiz-bg-CTzaADn7.js +0 -4
- package/chunks/getReactElementRef-66jU_By9.js +0 -25
- package/chunks/index-BPH9IX2Q.js +0 -5
- package/chunks/index.es-BZbN3xaq.js +0 -6162
- package/chunks/resolveProps-BfYZubfk.js +0 -37
- package/chunks/variantColorInheritance-DVZ9CGcB.js +0 -28
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
return /* @__PURE__ */
|
|
1
|
+
import { aa as xt, r as u, m as ct, _ as v, v as nt, ab as pt, g as Q, d as w, e as tt, f as U, l as Dt, h as M, s as N, j as E, i as W, k as et, C as kt, w as St } from "./main-Bh6iw92_.js";
|
|
2
|
+
const $e = xt();
|
|
3
|
+
function ut(t, a) {
|
|
4
|
+
var o, n;
|
|
5
|
+
return /* @__PURE__ */ u.isValidElement(t) && a.indexOf(
|
|
6
6
|
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
7
7
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
8
8
|
// eslint-disable-next-line no-underscore-dangle
|
|
9
|
-
(
|
|
9
|
+
(o = t.type.muiName) != null ? o : (n = t.type) == null || (n = n._payload) == null || (n = n.value) == null ? void 0 : n.muiName
|
|
10
10
|
) !== -1;
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
return
|
|
12
|
+
const lt = {};
|
|
13
|
+
function Rt(t, a) {
|
|
14
|
+
const o = u.useRef(lt);
|
|
15
|
+
return o.current === lt && (o.current = t(a)), o;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
|
|
17
|
+
const Pt = [];
|
|
18
|
+
function Tt(t) {
|
|
19
|
+
u.useEffect(t, Pt);
|
|
20
20
|
}
|
|
21
|
-
class
|
|
21
|
+
class J {
|
|
22
22
|
constructor() {
|
|
23
23
|
this.currentId = null, this.clear = () => {
|
|
24
24
|
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
25
25
|
}, this.disposeEffect = () => this.clear;
|
|
26
26
|
}
|
|
27
27
|
static create() {
|
|
28
|
-
return new
|
|
28
|
+
return new J();
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
32
32
|
*/
|
|
33
|
-
start(a,
|
|
33
|
+
start(a, o) {
|
|
34
34
|
this.clear(), this.currentId = setTimeout(() => {
|
|
35
|
-
this.currentId = null,
|
|
35
|
+
this.currentId = null, o();
|
|
36
36
|
}, a);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const t =
|
|
41
|
-
return
|
|
39
|
+
function he() {
|
|
40
|
+
const t = Rt(J.create).current;
|
|
41
|
+
return Tt(t.disposeEffect), t;
|
|
42
42
|
}
|
|
43
|
-
let
|
|
44
|
-
const
|
|
43
|
+
let G = !0, q = !1;
|
|
44
|
+
const It = new J(), _t = {
|
|
45
45
|
text: !0,
|
|
46
46
|
search: !0,
|
|
47
47
|
url: !0,
|
|
@@ -56,24 +56,24 @@ const Rt = new K(), Ht = {
|
|
|
56
56
|
datetime: !0,
|
|
57
57
|
"datetime-local": !0
|
|
58
58
|
};
|
|
59
|
-
function
|
|
59
|
+
function Ht(t) {
|
|
60
60
|
const {
|
|
61
61
|
type: a,
|
|
62
|
-
tagName:
|
|
62
|
+
tagName: o
|
|
63
63
|
} = t;
|
|
64
|
-
return !!(
|
|
64
|
+
return !!(o === "INPUT" && _t[a] && !t.readOnly || o === "TEXTAREA" && !t.readOnly || t.isContentEditable);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
t.metaKey || t.altKey || t.ctrlKey || (
|
|
66
|
+
function Et(t) {
|
|
67
|
+
t.metaKey || t.altKey || t.ctrlKey || (G = !0);
|
|
68
68
|
}
|
|
69
69
|
function Z() {
|
|
70
|
-
|
|
70
|
+
G = !1;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
this.visibilityState === "hidden" &&
|
|
72
|
+
function zt() {
|
|
73
|
+
this.visibilityState === "hidden" && q && (G = !0);
|
|
74
74
|
}
|
|
75
75
|
function Vt(t) {
|
|
76
|
-
t.addEventListener("keydown",
|
|
76
|
+
t.addEventListener("keydown", Et, !0), t.addEventListener("mousedown", Z, !0), t.addEventListener("pointerdown", Z, !0), t.addEventListener("touchstart", Z, !0), t.addEventListener("visibilitychange", zt, !0);
|
|
77
77
|
}
|
|
78
78
|
function Nt(t) {
|
|
79
79
|
const {
|
|
@@ -83,149 +83,149 @@ function Nt(t) {
|
|
|
83
83
|
return a.matches(":focus-visible");
|
|
84
84
|
} catch {
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return G || Ht(a);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
const t =
|
|
88
|
+
function At() {
|
|
89
|
+
const t = u.useCallback((r) => {
|
|
90
90
|
r != null && Vt(r.ownerDocument);
|
|
91
|
-
}, []), a =
|
|
92
|
-
function
|
|
93
|
-
return a.current ? (
|
|
94
|
-
|
|
91
|
+
}, []), a = u.useRef(!1);
|
|
92
|
+
function o() {
|
|
93
|
+
return a.current ? (q = !0, It.start(100, () => {
|
|
94
|
+
q = !1;
|
|
95
95
|
}), a.current = !1, !0) : !1;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function n(r) {
|
|
98
98
|
return Nt(r) ? (a.current = !0, !0) : !1;
|
|
99
99
|
}
|
|
100
100
|
return {
|
|
101
101
|
isFocusVisibleRef: a,
|
|
102
|
-
onFocus:
|
|
103
|
-
onBlur:
|
|
102
|
+
onFocus: n,
|
|
103
|
+
onBlur: o,
|
|
104
104
|
ref: t
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Mt(t) {
|
|
108
108
|
const {
|
|
109
109
|
rootElementName: a = ""
|
|
110
|
-
} = t, [
|
|
110
|
+
} = t, [o, n] = u.useState(a.toUpperCase()), r = u.useCallback((e) => {
|
|
111
111
|
var i;
|
|
112
|
-
|
|
112
|
+
n((i = e == null ? void 0 : e.tagName) != null ? i : "");
|
|
113
113
|
}, []);
|
|
114
|
-
return [
|
|
114
|
+
return [o, r];
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Wt(t = {}) {
|
|
117
117
|
const {
|
|
118
118
|
disabled: a = !1,
|
|
119
|
-
focusableWhenDisabled:
|
|
120
|
-
href:
|
|
119
|
+
focusableWhenDisabled: o,
|
|
120
|
+
href: n,
|
|
121
121
|
rootRef: r,
|
|
122
122
|
tabIndex: e,
|
|
123
123
|
to: i,
|
|
124
124
|
type: p,
|
|
125
|
-
rootElementName:
|
|
126
|
-
} = t, B =
|
|
125
|
+
rootElementName: m
|
|
126
|
+
} = t, B = u.useRef(null), [b, x] = u.useState(!1), {
|
|
127
127
|
isFocusVisibleRef: S,
|
|
128
|
-
onFocus:
|
|
129
|
-
onBlur:
|
|
130
|
-
ref:
|
|
131
|
-
} =
|
|
132
|
-
a && !
|
|
133
|
-
S.current =
|
|
134
|
-
}, [
|
|
135
|
-
const [
|
|
136
|
-
rootElementName:
|
|
128
|
+
onFocus: C,
|
|
129
|
+
onBlur: D,
|
|
130
|
+
ref: I
|
|
131
|
+
} = At(), [$, R] = u.useState(!1);
|
|
132
|
+
a && !o && $ && R(!1), u.useEffect(() => {
|
|
133
|
+
S.current = $;
|
|
134
|
+
}, [$, S]);
|
|
135
|
+
const [y, f] = Mt({
|
|
136
|
+
rootElementName: m ?? (n || i ? "a" : void 0)
|
|
137
137
|
}), P = (s) => (l) => {
|
|
138
138
|
var c;
|
|
139
|
-
|
|
140
|
-
},
|
|
139
|
+
$ && l.preventDefault(), (c = s.onMouseLeave) == null || c.call(s, l);
|
|
140
|
+
}, T = (s) => (l) => {
|
|
141
141
|
var c;
|
|
142
|
-
|
|
143
|
-
},
|
|
142
|
+
D(l), S.current === !1 && R(!1), (c = s.onBlur) == null || c.call(s, l);
|
|
143
|
+
}, g = (s) => (l) => {
|
|
144
144
|
var c;
|
|
145
|
-
if (B.current || (B.current = l.currentTarget),
|
|
146
|
-
var
|
|
147
|
-
|
|
145
|
+
if (B.current || (B.current = l.currentTarget), C(l), S.current === !0) {
|
|
146
|
+
var k;
|
|
147
|
+
R(!0), (k = s.onFocusVisible) == null || k.call(s, l);
|
|
148
148
|
}
|
|
149
149
|
(c = s.onFocus) == null || c.call(s, l);
|
|
150
150
|
}, d = () => {
|
|
151
151
|
const s = B.current;
|
|
152
|
-
return
|
|
153
|
-
},
|
|
152
|
+
return y === "BUTTON" || y === "INPUT" && ["button", "submit", "reset"].includes(s == null ? void 0 : s.type) || y === "A" && (s == null ? void 0 : s.href);
|
|
153
|
+
}, H = (s) => (l) => {
|
|
154
154
|
if (!a) {
|
|
155
155
|
var c;
|
|
156
156
|
(c = s.onClick) == null || c.call(s, l);
|
|
157
157
|
}
|
|
158
|
-
},
|
|
158
|
+
}, _ = (s) => (l) => {
|
|
159
159
|
var c;
|
|
160
|
-
a || (
|
|
161
|
-
|
|
160
|
+
a || (x(!0), document.addEventListener("mouseup", () => {
|
|
161
|
+
x(!1);
|
|
162
162
|
}, {
|
|
163
163
|
once: !0
|
|
164
164
|
})), (c = s.onMouseDown) == null || c.call(s, l);
|
|
165
165
|
}, z = (s) => (l) => {
|
|
166
166
|
var c;
|
|
167
|
-
if ((c = s.onKeyDown) == null || c.call(s, l), !l.defaultMuiPrevented && (l.target === l.currentTarget && !d() && l.key === " " && l.preventDefault(), l.target === l.currentTarget && l.key === " " && !a &&
|
|
168
|
-
var
|
|
169
|
-
(
|
|
167
|
+
if ((c = s.onKeyDown) == null || c.call(s, l), !l.defaultMuiPrevented && (l.target === l.currentTarget && !d() && l.key === " " && l.preventDefault(), l.target === l.currentTarget && l.key === " " && !a && x(!0), l.target === l.currentTarget && !d() && l.key === "Enter" && !a)) {
|
|
168
|
+
var k;
|
|
169
|
+
(k = s.onClick) == null || k.call(s, l), l.preventDefault();
|
|
170
170
|
}
|
|
171
|
-
},
|
|
171
|
+
}, V = (s) => (l) => {
|
|
172
172
|
var c;
|
|
173
|
-
if (l.target === l.currentTarget &&
|
|
174
|
-
var
|
|
175
|
-
(
|
|
173
|
+
if (l.target === l.currentTarget && x(!1), (c = s.onKeyUp) == null || c.call(s, l), l.target === l.currentTarget && !d() && !a && l.key === " " && !l.defaultMuiPrevented) {
|
|
174
|
+
var k;
|
|
175
|
+
(k = s.onClick) == null || k.call(s, l);
|
|
176
176
|
}
|
|
177
|
-
},
|
|
178
|
-
return e !== void 0 && (
|
|
177
|
+
}, A = ct(f, r, I, B), h = {};
|
|
178
|
+
return e !== void 0 && (h.tabIndex = e), y === "BUTTON" ? (h.type = p ?? "button", o ? h["aria-disabled"] = a : h.disabled = a) : y === "INPUT" ? p && ["button", "submit", "reset"].includes(p) && (o ? h["aria-disabled"] = a : h.disabled = a) : y !== "" && (!n && !i && (h.role = "button", h.tabIndex = e ?? 0), a && (h["aria-disabled"] = a, h.tabIndex = o ? e ?? 0 : -1)), {
|
|
179
179
|
getRootProps: (s = {}) => {
|
|
180
|
-
const l =
|
|
180
|
+
const l = v({}, nt(t), nt(s)), c = v({
|
|
181
181
|
type: p
|
|
182
|
-
}, l,
|
|
183
|
-
onBlur:
|
|
184
|
-
onClick:
|
|
185
|
-
onFocus:
|
|
182
|
+
}, l, h, s, {
|
|
183
|
+
onBlur: T(l),
|
|
184
|
+
onClick: H(l),
|
|
185
|
+
onFocus: g(l),
|
|
186
186
|
onKeyDown: z(l),
|
|
187
|
-
onKeyUp:
|
|
188
|
-
onMouseDown:
|
|
187
|
+
onKeyUp: V(l),
|
|
188
|
+
onMouseDown: _(l),
|
|
189
189
|
onMouseLeave: P(l),
|
|
190
|
-
ref:
|
|
190
|
+
ref: A
|
|
191
191
|
});
|
|
192
192
|
return delete c.onFocusVisible, c;
|
|
193
193
|
},
|
|
194
|
-
focusVisible:
|
|
195
|
-
setFocusVisible:
|
|
196
|
-
active:
|
|
197
|
-
rootRef:
|
|
194
|
+
focusVisible: $,
|
|
195
|
+
setFocusVisible: R,
|
|
196
|
+
active: b,
|
|
197
|
+
rootRef: A
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const Ot = ({
|
|
201
201
|
theme: t,
|
|
202
202
|
ownerState: a
|
|
203
|
-
},
|
|
204
|
-
let
|
|
203
|
+
}, o) => {
|
|
204
|
+
let n = {};
|
|
205
205
|
function r(e) {
|
|
206
206
|
if (typeof e == "function") {
|
|
207
207
|
const i = e(t);
|
|
208
208
|
r(i);
|
|
209
209
|
} else Array.isArray(e) ? e.forEach((i) => {
|
|
210
210
|
typeof i != "boolean" && r(i);
|
|
211
|
-
}) : typeof e == "object" && (
|
|
211
|
+
}) : typeof e == "object" && (n = v({}, n, e));
|
|
212
212
|
}
|
|
213
|
-
return a.sx && (r(a.sx),
|
|
214
|
-
const i =
|
|
213
|
+
return a.sx && (r(a.sx), o.forEach((e) => {
|
|
214
|
+
const i = n[e];
|
|
215
215
|
if (typeof i == "string" || typeof i == "number")
|
|
216
216
|
if (e === "borderRadius")
|
|
217
217
|
if (typeof i == "number")
|
|
218
|
-
|
|
218
|
+
n[e] = `${i}px`;
|
|
219
219
|
else {
|
|
220
220
|
var p;
|
|
221
|
-
|
|
221
|
+
n[e] = ((p = t.vars) == null ? void 0 : p.radius[i]) || i;
|
|
222
222
|
}
|
|
223
|
-
else ["p", "padding", "m", "margin"].indexOf(e) !== -1 && typeof i == "number" ?
|
|
224
|
-
else typeof i == "function" ?
|
|
225
|
-
})),
|
|
226
|
-
},
|
|
227
|
-
var a,
|
|
228
|
-
const d =
|
|
223
|
+
else ["p", "padding", "m", "margin"].indexOf(e) !== -1 && typeof i == "number" ? n[e] = t.spacing(i) : n[e] = i;
|
|
224
|
+
else typeof i == "function" ? n[e] = i(t) : n[e] = void 0;
|
|
225
|
+
})), n;
|
|
226
|
+
}, at = (t) => (a) => `--${t ? `${t}-` : ""}${a.replace(/^--/, "")}`, K = "data-skip-inverted-colors", vt = `& :not([${K}], [${K}] *)`, gt = (t) => {
|
|
227
|
+
var a, o, n, r, e, i, p, m, B, b, x, S, C, D, I, $, R, y, f, P, T, g;
|
|
228
|
+
const d = at(t.cssVarPrefix);
|
|
229
229
|
return {
|
|
230
230
|
"--variant-plainColor": "var(--variant-plainColor) !important",
|
|
231
231
|
"--variant-plainHoverColor": "var(--variant-plainHoverColor) !important",
|
|
@@ -258,45 +258,45 @@ const ce = ({
|
|
|
258
258
|
colorScheme: "unset",
|
|
259
259
|
[t.getColorSchemeSelector("light")]: {
|
|
260
260
|
[d("--palette-focusVisible")]: `${(a = t.colorSchemes.light) == null ? void 0 : a.palette.focusVisible} !important`,
|
|
261
|
-
[d("--palette-background-body")]: `${(
|
|
262
|
-
[d("--palette-background-surface")]: `${(
|
|
261
|
+
[d("--palette-background-body")]: `${(o = t.colorSchemes.light) == null ? void 0 : o.palette.background.body} !important`,
|
|
262
|
+
[d("--palette-background-surface")]: `${(n = t.colorSchemes.light) == null ? void 0 : n.palette.background.surface} !important`,
|
|
263
263
|
[d("--palette-background-popup")]: `${(r = t.colorSchemes.light) == null ? void 0 : r.palette.background.popup} !important`,
|
|
264
264
|
[d("--palette-background-level1")]: `${(e = t.colorSchemes.light) == null ? void 0 : e.palette.background.level1} !important`,
|
|
265
265
|
[d("--palette-background-level2")]: `${(i = t.colorSchemes.light) == null ? void 0 : i.palette.background.level2} !important`,
|
|
266
266
|
[d("--palette-background-level3")]: `${(p = t.colorSchemes.light) == null ? void 0 : p.palette.background.level3} !important`,
|
|
267
|
-
[d("--palette-text-primary")]: `${(
|
|
267
|
+
[d("--palette-text-primary")]: `${(m = t.colorSchemes.light) == null ? void 0 : m.palette.text.primary} !important`,
|
|
268
268
|
[d("--palette-text-secondary")]: `${(B = t.colorSchemes.light) == null ? void 0 : B.palette.text.secondary} !important`,
|
|
269
|
-
[d("--palette-text-tertiary")]: `${(
|
|
270
|
-
[d("--palette-divider")]: `${(
|
|
269
|
+
[d("--palette-text-tertiary")]: `${(b = t.colorSchemes.light) == null ? void 0 : b.palette.text.tertiary} !important`,
|
|
270
|
+
[d("--palette-divider")]: `${(x = t.colorSchemes.light) == null ? void 0 : x.palette.divider} !important`
|
|
271
271
|
},
|
|
272
272
|
[t.getColorSchemeSelector("dark")]: {
|
|
273
273
|
[d("--palette-focusVisible")]: `${(S = t.colorSchemes.dark) == null ? void 0 : S.palette.focusVisible} !important`,
|
|
274
|
-
[d("--palette-background-body")]: `${(
|
|
275
|
-
[d("--palette-background-surface")]: `${(
|
|
276
|
-
[d("--palette-background-popup")]: `${(
|
|
277
|
-
[d("--palette-background-level1")]: `${(
|
|
278
|
-
[d("--palette-background-level2")]: `${(
|
|
279
|
-
[d("--palette-background-level3")]: `${(
|
|
280
|
-
[d("--palette-text-primary")]: `${(
|
|
274
|
+
[d("--palette-background-body")]: `${(C = t.colorSchemes.dark) == null ? void 0 : C.palette.background.body} !important`,
|
|
275
|
+
[d("--palette-background-surface")]: `${(D = t.colorSchemes.dark) == null ? void 0 : D.palette.background.surface} !important`,
|
|
276
|
+
[d("--palette-background-popup")]: `${(I = t.colorSchemes.dark) == null ? void 0 : I.palette.background.popup} !important`,
|
|
277
|
+
[d("--palette-background-level1")]: `${($ = t.colorSchemes.dark) == null ? void 0 : $.palette.background.level1} !important`,
|
|
278
|
+
[d("--palette-background-level2")]: `${(R = t.colorSchemes.dark) == null ? void 0 : R.palette.background.level2} !important`,
|
|
279
|
+
[d("--palette-background-level3")]: `${(y = t.colorSchemes.dark) == null ? void 0 : y.palette.background.level3} !important`,
|
|
280
|
+
[d("--palette-text-primary")]: `${(f = t.colorSchemes.dark) == null ? void 0 : f.palette.text.primary} !important`,
|
|
281
281
|
[d("--palette-text-secondary")]: `${(P = t.colorSchemes.dark) == null ? void 0 : P.palette.text.secondary} !important`,
|
|
282
|
-
[d("--palette-text-tertiary")]: `${(
|
|
283
|
-
[d("--palette-divider")]: `${(
|
|
282
|
+
[d("--palette-text-tertiary")]: `${(T = t.colorSchemes.dark) == null ? void 0 : T.palette.text.tertiary} !important`,
|
|
283
|
+
[d("--palette-divider")]: `${(g = t.colorSchemes.dark) == null ? void 0 : g.palette.divider} !important`
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
};
|
|
287
|
-
function
|
|
287
|
+
function Ft(t) {
|
|
288
288
|
return t.theme !== void 0;
|
|
289
289
|
}
|
|
290
|
-
const
|
|
291
|
-
const
|
|
290
|
+
const Lt = (t) => (a) => {
|
|
291
|
+
const o = Ft(a) ? a.theme : a, n = pt(o.cssVarPrefix), r = at(o.cssVarPrefix), e = (i) => {
|
|
292
292
|
const p = i.split("-");
|
|
293
|
-
return
|
|
293
|
+
return n(i, o.palette[p[1]][p[2]]);
|
|
294
294
|
};
|
|
295
295
|
return {
|
|
296
|
-
[
|
|
296
|
+
[vt]: {
|
|
297
297
|
"--Badge-ringColor": e(`palette-${t}-solidBg`),
|
|
298
298
|
"--Icon-color": "currentColor",
|
|
299
|
-
[`${
|
|
299
|
+
[`${o.getColorSchemeSelector("light")}, ${o.getColorSchemeSelector("dark")}`]: {
|
|
300
300
|
colorScheme: "dark",
|
|
301
301
|
[r("--palette-focusVisible")]: e(`palette-${t}-200`),
|
|
302
302
|
[r("--palette-background-body")]: "rgba(0 0 0 / 0.1)",
|
|
@@ -339,20 +339,20 @@ const de = (t) => (a) => {
|
|
|
339
339
|
"--variant-solidDisabledBg": `rgba(${e(`palette-${t}-lightChannel`)} / 0.1)`
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
|
-
[`&, & [${
|
|
342
|
+
[`&, & [${K}]`]: gt(o)
|
|
343
343
|
};
|
|
344
|
-
},
|
|
344
|
+
}, jt = (t) => (a) => {
|
|
345
345
|
const {
|
|
346
|
-
theme:
|
|
347
|
-
} = a,
|
|
346
|
+
theme: o = a
|
|
347
|
+
} = a, n = pt(o.cssVarPrefix), r = at(o.cssVarPrefix), e = (i) => {
|
|
348
348
|
const p = i.split("-");
|
|
349
|
-
return
|
|
349
|
+
return n(i, o.palette[p[1]][p[2]]);
|
|
350
350
|
};
|
|
351
351
|
return {
|
|
352
|
-
[
|
|
352
|
+
[vt]: {
|
|
353
353
|
"--Badge-ringColor": e(`palette-${t}-softBg`),
|
|
354
354
|
"--Icon-color": "currentColor",
|
|
355
|
-
[
|
|
355
|
+
[o.getColorSchemeSelector("dark")]: {
|
|
356
356
|
[r("--palette-focusVisible")]: e(`palette-${t}-300`),
|
|
357
357
|
[r("--palette-background-body")]: `rgba(${e(`palette-${t}-mainChannel`)} / 0.1)`,
|
|
358
358
|
[r("--palette-background-surface")]: `rgba(${e(`palette-${t}-mainChannel`)} / 0.08)`,
|
|
@@ -394,7 +394,7 @@ const de = (t) => (a) => {
|
|
|
394
394
|
"--variant-solidDisabledBg": `rgba(${e(`palette-${t}-mainChannel`)} / 0.12)`
|
|
395
395
|
},
|
|
396
396
|
// `light` (default color scheme) should come last in case that `theme.getColorSchemeSelector()` return the same value
|
|
397
|
-
[
|
|
397
|
+
[o.getColorSchemeSelector("light")]: {
|
|
398
398
|
[r("--palette-focusVisible")]: e(`palette-${t}-500`),
|
|
399
399
|
[r("--palette-background-body")]: `rgba(${e(`palette-${t}-mainChannel`)} / 0.1)`,
|
|
400
400
|
[r("--palette-background-surface")]: `rgba(${e(`palette-${t}-mainChannel`)} / 0.08)`,
|
|
@@ -435,41 +435,41 @@ const de = (t) => (a) => {
|
|
|
435
435
|
"--variant-solidDisabledBg": `rgba(${e(`palette-${t}-mainChannel`)} / 0.08)`
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
|
-
[`&, & [${
|
|
438
|
+
[`&, & [${K}]`]: gt(o)
|
|
439
439
|
};
|
|
440
|
-
},
|
|
441
|
-
function
|
|
442
|
-
return
|
|
440
|
+
}, Ut = /* @__PURE__ */ u.createContext({}), Kt = /* @__PURE__ */ u.createContext(void 0);
|
|
441
|
+
function Jt(t) {
|
|
442
|
+
return Q("MuiTypography", t);
|
|
443
443
|
}
|
|
444
|
-
|
|
445
|
-
const
|
|
444
|
+
w("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"]);
|
|
445
|
+
const Gt = ["color", "textColor"], Xt = ["component", "gutterBottom", "noWrap", "level", "levelMapping", "children", "endDecorator", "startDecorator", "variant", "slots", "slotProps"], it = /* @__PURE__ */ u.createContext(!1), Yt = /* @__PURE__ */ u.createContext(!1), Zt = (t) => {
|
|
446
446
|
const {
|
|
447
447
|
gutterBottom: a,
|
|
448
|
-
noWrap:
|
|
449
|
-
level:
|
|
448
|
+
noWrap: o,
|
|
449
|
+
level: n,
|
|
450
450
|
color: r,
|
|
451
451
|
variant: e
|
|
452
452
|
} = t, i = {
|
|
453
|
-
root: ["root",
|
|
453
|
+
root: ["root", n, a && "gutterBottom", o && "noWrap", r && `color${W(r)}`, e && `variant${W(e)}`],
|
|
454
454
|
startDecorator: ["startDecorator"],
|
|
455
455
|
endDecorator: ["endDecorator"]
|
|
456
456
|
};
|
|
457
|
-
return
|
|
458
|
-
},
|
|
457
|
+
return et(i, Jt, {});
|
|
458
|
+
}, qt = N("span", {
|
|
459
459
|
name: "JoyTypography",
|
|
460
460
|
slot: "StartDecorator",
|
|
461
461
|
overridesResolver: (t, a) => a.startDecorator
|
|
462
462
|
})({
|
|
463
463
|
display: "inline-flex",
|
|
464
464
|
marginInlineEnd: "clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"
|
|
465
|
-
}),
|
|
465
|
+
}), Qt = N("span", {
|
|
466
466
|
name: "JoyTypography",
|
|
467
467
|
slot: "endDecorator",
|
|
468
468
|
overridesResolver: (t, a) => a.endDecorator
|
|
469
469
|
})({
|
|
470
470
|
display: "inline-flex",
|
|
471
471
|
marginInlineStart: "clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"
|
|
472
|
-
}),
|
|
472
|
+
}), wt = N("span", {
|
|
473
473
|
name: "JoyTypography",
|
|
474
474
|
slot: "Root",
|
|
475
475
|
overridesResolver: (t, a) => a.root
|
|
@@ -477,9 +477,9 @@ const Ut = ["color", "textColor"], jt = ["component", "gutterBottom", "noWrap",
|
|
|
477
477
|
theme: t,
|
|
478
478
|
ownerState: a
|
|
479
479
|
}) => {
|
|
480
|
-
var
|
|
481
|
-
const p = a.level !== "inherit" ? (
|
|
482
|
-
return
|
|
480
|
+
var o, n, r, e, i;
|
|
481
|
+
const p = a.level !== "inherit" ? (o = t.typography[a.level]) == null ? void 0 : o.lineHeight : "1";
|
|
482
|
+
return v({
|
|
483
483
|
"--Icon-fontSize": `calc(1em * ${p})`
|
|
484
484
|
}, a.color && {
|
|
485
485
|
"--Icon-color": "currentColor"
|
|
@@ -488,20 +488,20 @@ const Ut = ["color", "textColor"], jt = ["component", "gutterBottom", "noWrap",
|
|
|
488
488
|
}, a.nesting ? {
|
|
489
489
|
display: "inline"
|
|
490
490
|
// looks better than `inline-block` when using with `variant` prop.
|
|
491
|
-
} :
|
|
491
|
+
} : v({
|
|
492
492
|
display: "block"
|
|
493
493
|
}, a.unstable_hasSkeleton && {
|
|
494
494
|
position: "relative"
|
|
495
|
-
}), (a.startDecorator || a.endDecorator) &&
|
|
495
|
+
}), (a.startDecorator || a.endDecorator) && v({
|
|
496
496
|
display: "flex",
|
|
497
497
|
alignItems: "center"
|
|
498
|
-
}, a.nesting &&
|
|
498
|
+
}, a.nesting && v({
|
|
499
499
|
display: "inline-flex"
|
|
500
500
|
}, a.startDecorator && {
|
|
501
501
|
verticalAlign: "bottom"
|
|
502
502
|
// to make the text align with the parent's content
|
|
503
503
|
})), a.level && a.level !== "inherit" && t.typography[a.level], {
|
|
504
|
-
fontSize: `var(--Typography-fontSize, ${a.level && a.level !== "inherit" && (
|
|
504
|
+
fontSize: `var(--Typography-fontSize, ${a.level && a.level !== "inherit" && (n = (r = t.typography[a.level]) == null ? void 0 : r.fontSize) != null ? n : "inherit"})`
|
|
505
505
|
}, a.noWrap && {
|
|
506
506
|
overflow: "hidden",
|
|
507
507
|
textOverflow: "ellipsis",
|
|
@@ -510,14 +510,14 @@ const Ut = ["color", "textColor"], jt = ["component", "gutterBottom", "noWrap",
|
|
|
510
510
|
marginBottom: "0.35em"
|
|
511
511
|
}, a.color && {
|
|
512
512
|
color: `var(--variant-plainColor, rgba(${(e = t.vars.palette[a.color]) == null ? void 0 : e.mainChannel} / 1))`
|
|
513
|
-
}, a.variant &&
|
|
513
|
+
}, a.variant && v({
|
|
514
514
|
borderRadius: t.vars.radius.xs,
|
|
515
515
|
paddingBlock: "min(0.1em, 4px)",
|
|
516
516
|
paddingInline: "0.25em"
|
|
517
517
|
}, !a.nesting && {
|
|
518
518
|
marginInline: "-0.25em"
|
|
519
519
|
}, (i = t.variants[a.variant]) == null ? void 0 : i[a.color]));
|
|
520
|
-
}),
|
|
520
|
+
}), st = {
|
|
521
521
|
h1: "h1",
|
|
522
522
|
h2: "h2",
|
|
523
523
|
h3: "h3",
|
|
@@ -530,93 +530,93 @@ const Ut = ["color", "textColor"], jt = ["component", "gutterBottom", "noWrap",
|
|
|
530
530
|
"body-sm": "p",
|
|
531
531
|
"body-xs": "span",
|
|
532
532
|
inherit: "p"
|
|
533
|
-
},
|
|
534
|
-
var
|
|
535
|
-
const r =
|
|
533
|
+
}, te = /* @__PURE__ */ u.forwardRef(function(a, o) {
|
|
534
|
+
var n;
|
|
535
|
+
const r = tt({
|
|
536
536
|
props: a,
|
|
537
537
|
name: "JoyTypography"
|
|
538
538
|
}), {
|
|
539
539
|
color: e,
|
|
540
540
|
textColor: i
|
|
541
|
-
} = r, p =
|
|
541
|
+
} = r, p = U(r, Gt), m = u.useContext(it), B = u.useContext(Yt), b = Dt(v({}, p, {
|
|
542
542
|
color: i
|
|
543
543
|
})), {
|
|
544
|
-
component:
|
|
544
|
+
component: x,
|
|
545
545
|
gutterBottom: S = !1,
|
|
546
|
-
noWrap:
|
|
547
|
-
level:
|
|
548
|
-
levelMapping:
|
|
549
|
-
children:
|
|
550
|
-
endDecorator:
|
|
551
|
-
startDecorator:
|
|
552
|
-
variant:
|
|
546
|
+
noWrap: C = !1,
|
|
547
|
+
level: D = "body-md",
|
|
548
|
+
levelMapping: I = st,
|
|
549
|
+
children: $,
|
|
550
|
+
endDecorator: R,
|
|
551
|
+
startDecorator: y,
|
|
552
|
+
variant: f,
|
|
553
553
|
slots: P = {},
|
|
554
|
-
slotProps:
|
|
555
|
-
} =
|
|
556
|
-
level:
|
|
554
|
+
slotProps: T = {}
|
|
555
|
+
} = b, g = U(b, Xt), d = (n = a.color) != null ? n : f ? e ?? "neutral" : e, H = m || B ? a.level || "inherit" : D, _ = ut($, ["Skeleton"]), z = x || (m ? "span" : I[H] || st[H] || "span"), V = v({}, b, {
|
|
556
|
+
level: H,
|
|
557
557
|
component: z,
|
|
558
558
|
color: d,
|
|
559
559
|
gutterBottom: S,
|
|
560
|
-
noWrap:
|
|
561
|
-
nesting:
|
|
562
|
-
variant:
|
|
563
|
-
unstable_hasSkeleton:
|
|
564
|
-
}),
|
|
560
|
+
noWrap: C,
|
|
561
|
+
nesting: m,
|
|
562
|
+
variant: f,
|
|
563
|
+
unstable_hasSkeleton: _
|
|
564
|
+
}), A = Zt(V), h = v({}, g, {
|
|
565
565
|
component: z,
|
|
566
566
|
slots: P,
|
|
567
|
-
slotProps:
|
|
568
|
-
}), [
|
|
569
|
-
ref:
|
|
570
|
-
className:
|
|
571
|
-
elementType:
|
|
572
|
-
externalForwardedProps:
|
|
573
|
-
ownerState:
|
|
574
|
-
}), [l, c] =
|
|
575
|
-
className:
|
|
576
|
-
elementType:
|
|
577
|
-
externalForwardedProps:
|
|
578
|
-
ownerState:
|
|
579
|
-
}), [
|
|
580
|
-
className:
|
|
581
|
-
elementType:
|
|
582
|
-
externalForwardedProps:
|
|
583
|
-
ownerState:
|
|
567
|
+
slotProps: T
|
|
568
|
+
}), [O, s] = M("root", {
|
|
569
|
+
ref: o,
|
|
570
|
+
className: A.root,
|
|
571
|
+
elementType: wt,
|
|
572
|
+
externalForwardedProps: h,
|
|
573
|
+
ownerState: V
|
|
574
|
+
}), [l, c] = M("startDecorator", {
|
|
575
|
+
className: A.startDecorator,
|
|
576
|
+
elementType: qt,
|
|
577
|
+
externalForwardedProps: h,
|
|
578
|
+
ownerState: V
|
|
579
|
+
}), [k, X] = M("endDecorator", {
|
|
580
|
+
className: A.endDecorator,
|
|
581
|
+
elementType: Qt,
|
|
582
|
+
externalForwardedProps: h,
|
|
583
|
+
ownerState: V
|
|
584
584
|
});
|
|
585
|
-
return /* @__PURE__ */
|
|
585
|
+
return /* @__PURE__ */ E.jsx(it.Provider, {
|
|
586
586
|
value: !0,
|
|
587
|
-
children: /* @__PURE__ */
|
|
588
|
-
children: [
|
|
589
|
-
children:
|
|
590
|
-
})),
|
|
591
|
-
variant:
|
|
592
|
-
}) :
|
|
593
|
-
children:
|
|
587
|
+
children: /* @__PURE__ */ E.jsxs(O, v({}, s, {
|
|
588
|
+
children: [y && /* @__PURE__ */ E.jsx(l, v({}, c, {
|
|
589
|
+
children: y
|
|
590
|
+
})), _ ? /* @__PURE__ */ u.cloneElement($, {
|
|
591
|
+
variant: $.props.variant || "inline"
|
|
592
|
+
}) : $, R && /* @__PURE__ */ E.jsx(k, v({}, X, {
|
|
593
|
+
children: R
|
|
594
594
|
}))]
|
|
595
595
|
}))
|
|
596
596
|
});
|
|
597
597
|
});
|
|
598
|
-
|
|
599
|
-
function
|
|
600
|
-
return
|
|
598
|
+
te.muiName = "Typography";
|
|
599
|
+
function ee(t) {
|
|
600
|
+
return Q("MuiButton", t);
|
|
601
601
|
}
|
|
602
|
-
const
|
|
602
|
+
const dt = w("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "focusVisible", "disabled", "sizeSm", "sizeMd", "sizeLg", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingIndicatorCenter"]), ae = ["children", "action", "color", "variant", "size", "fullWidth", "startDecorator", "endDecorator", "loading", "loadingPosition", "loadingIndicator", "disabled", "component", "slots", "slotProps"], re = (t) => {
|
|
603
603
|
const {
|
|
604
604
|
color: a,
|
|
605
|
-
disabled:
|
|
606
|
-
focusVisible:
|
|
605
|
+
disabled: o,
|
|
606
|
+
focusVisible: n,
|
|
607
607
|
focusVisibleClassName: r,
|
|
608
608
|
fullWidth: e,
|
|
609
609
|
size: i,
|
|
610
610
|
variant: p,
|
|
611
|
-
loading:
|
|
611
|
+
loading: m
|
|
612
612
|
} = t, B = {
|
|
613
|
-
root: ["root",
|
|
613
|
+
root: ["root", o && "disabled", n && "focusVisible", e && "fullWidth", p && `variant${W(p)}`, a && `color${W(a)}`, i && `size${W(i)}`, m && "loading"],
|
|
614
614
|
startDecorator: ["startDecorator"],
|
|
615
615
|
endDecorator: ["endDecorator"],
|
|
616
616
|
loadingIndicatorCenter: ["loadingIndicatorCenter"]
|
|
617
|
-
},
|
|
618
|
-
return
|
|
619
|
-
},
|
|
617
|
+
}, b = et(B, ee, {});
|
|
618
|
+
return n && r && (b.root += ` ${r}`), b;
|
|
619
|
+
}, oe = N("span", {
|
|
620
620
|
name: "JoyButton",
|
|
621
621
|
slot: "StartDecorator",
|
|
622
622
|
overridesResolver: (t, a) => a.startDecorator
|
|
@@ -625,7 +625,7 @@ const ot = ct("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
625
625
|
"--CircularProgress-margin": "0 0 0 calc(var(--Button-gap) / -2)",
|
|
626
626
|
display: "inherit",
|
|
627
627
|
marginRight: "var(--Button-gap)"
|
|
628
|
-
}),
|
|
628
|
+
}), ne = N("span", {
|
|
629
629
|
name: "JoyButton",
|
|
630
630
|
slot: "EndDecorator",
|
|
631
631
|
overridesResolver: (t, a) => a.endDecorator
|
|
@@ -634,7 +634,7 @@ const ot = ct("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
634
634
|
"--CircularProgress-margin": "0 calc(var(--Button-gap) / -2) 0 0",
|
|
635
635
|
display: "inherit",
|
|
636
636
|
marginLeft: "var(--Button-gap)"
|
|
637
|
-
}),
|
|
637
|
+
}), le = N("span", {
|
|
638
638
|
name: "JoyButton",
|
|
639
639
|
slot: "LoadingCenter",
|
|
640
640
|
overridesResolver: (t, a) => a.loadingIndicatorCenter
|
|
@@ -642,22 +642,22 @@ const ot = ct("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
642
642
|
theme: t,
|
|
643
643
|
ownerState: a
|
|
644
644
|
}) => {
|
|
645
|
-
var
|
|
646
|
-
return
|
|
645
|
+
var o, n;
|
|
646
|
+
return v({
|
|
647
647
|
display: "inherit",
|
|
648
648
|
position: "absolute",
|
|
649
649
|
left: "50%",
|
|
650
650
|
transform: "translateX(-50%)",
|
|
651
|
-
color: (
|
|
651
|
+
color: (o = t.variants[a.variant]) == null || (o = o[a.color]) == null ? void 0 : o.color
|
|
652
652
|
}, a.disabled && {
|
|
653
|
-
color: (
|
|
653
|
+
color: (n = t.variants[`${a.variant}Disabled`]) == null || (n = n[a.color]) == null ? void 0 : n.color
|
|
654
654
|
});
|
|
655
|
-
}),
|
|
655
|
+
}), ie = ({
|
|
656
656
|
theme: t,
|
|
657
657
|
ownerState: a
|
|
658
658
|
}) => {
|
|
659
|
-
var
|
|
660
|
-
return [
|
|
659
|
+
var o, n, r, e;
|
|
660
|
+
return [v({
|
|
661
661
|
"--Icon-margin": "initial",
|
|
662
662
|
// reset the icon's margin.
|
|
663
663
|
"--Icon-color": a.color !== "neutral" || a.variant === "solid" ? "currentColor" : t.vars.palette.text.icon
|
|
@@ -718,141 +718,299 @@ const ot = ct("MuiButton", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
718
718
|
width: "100%"
|
|
719
719
|
}, {
|
|
720
720
|
[t.focus.selector]: t.focus.default
|
|
721
|
-
}),
|
|
721
|
+
}), v({}, (o = t.variants[a.variant]) == null ? void 0 : o[a.color], {
|
|
722
722
|
"&:hover": {
|
|
723
|
-
"@media (hover: hover)": (
|
|
723
|
+
"@media (hover: hover)": (n = t.variants[`${a.variant}Hover`]) == null ? void 0 : n[a.color]
|
|
724
724
|
},
|
|
725
725
|
'&:active, &[aria-pressed="true"]': (r = t.variants[`${a.variant}Active`]) == null ? void 0 : r[a.color],
|
|
726
|
-
[`&.${
|
|
726
|
+
[`&.${dt.disabled}`]: (e = t.variants[`${a.variant}Disabled`]) == null ? void 0 : e[a.color]
|
|
727
727
|
}, a.loadingPosition === "center" && {
|
|
728
728
|
// this has to come after the variant styles to take effect.
|
|
729
|
-
[`&.${
|
|
729
|
+
[`&.${dt.loading}`]: {
|
|
730
730
|
color: "transparent"
|
|
731
731
|
}
|
|
732
732
|
})];
|
|
733
|
-
},
|
|
733
|
+
}, se = N("button", {
|
|
734
734
|
name: "JoyButton",
|
|
735
735
|
slot: "Root",
|
|
736
736
|
overridesResolver: (t, a) => a.root
|
|
737
|
-
})(
|
|
738
|
-
var
|
|
739
|
-
const r =
|
|
737
|
+
})(ie), de = /* @__PURE__ */ u.forwardRef(function(a, o) {
|
|
738
|
+
var n;
|
|
739
|
+
const r = tt({
|
|
740
740
|
props: a,
|
|
741
741
|
name: "JoyButton"
|
|
742
742
|
}), {
|
|
743
743
|
children: e,
|
|
744
744
|
action: i,
|
|
745
745
|
color: p = "primary",
|
|
746
|
-
variant:
|
|
746
|
+
variant: m = "solid",
|
|
747
747
|
size: B = "md",
|
|
748
|
-
fullWidth:
|
|
749
|
-
startDecorator:
|
|
748
|
+
fullWidth: b = !1,
|
|
749
|
+
startDecorator: x,
|
|
750
750
|
endDecorator: S,
|
|
751
|
-
loading:
|
|
752
|
-
loadingPosition:
|
|
753
|
-
loadingIndicator:
|
|
754
|
-
disabled:
|
|
755
|
-
component:
|
|
756
|
-
slots:
|
|
757
|
-
slotProps:
|
|
758
|
-
} = r, P =
|
|
759
|
-
focusVisible:
|
|
760
|
-
setFocusVisible:
|
|
751
|
+
loading: C = !1,
|
|
752
|
+
loadingPosition: D = "center",
|
|
753
|
+
loadingIndicator: I,
|
|
754
|
+
disabled: $,
|
|
755
|
+
component: R,
|
|
756
|
+
slots: y = {},
|
|
757
|
+
slotProps: f = {}
|
|
758
|
+
} = r, P = U(r, ae), T = u.useContext(Ut), g = u.useContext(Kt), d = a.variant || T.variant || m, H = a.size || T.size || B, _ = a.color || T.color || p, z = (n = a.loading || a.disabled) != null ? n : T.disabled || C || $, V = u.useRef(null), A = ct(V, o), {
|
|
759
|
+
focusVisible: h,
|
|
760
|
+
setFocusVisible: O,
|
|
761
761
|
getRootProps: s
|
|
762
|
-
} =
|
|
762
|
+
} = Wt(v({}, r, {
|
|
763
763
|
disabled: z,
|
|
764
|
-
rootRef:
|
|
765
|
-
})), l =
|
|
766
|
-
color:
|
|
764
|
+
rootRef: A
|
|
765
|
+
})), l = I ?? /* @__PURE__ */ E.jsx(kt, {
|
|
766
|
+
color: _,
|
|
767
767
|
thickness: {
|
|
768
768
|
sm: 2,
|
|
769
769
|
md: 3,
|
|
770
770
|
lg: 4
|
|
771
|
-
}[
|
|
771
|
+
}[H] || 3
|
|
772
772
|
});
|
|
773
|
-
|
|
773
|
+
u.useImperativeHandle(i, () => ({
|
|
774
774
|
focusVisible: () => {
|
|
775
|
-
var
|
|
776
|
-
|
|
775
|
+
var L;
|
|
776
|
+
O(!0), (L = V.current) == null || L.focus();
|
|
777
777
|
}
|
|
778
|
-
}), [
|
|
779
|
-
const c =
|
|
780
|
-
color:
|
|
781
|
-
fullWidth:
|
|
778
|
+
}), [O]);
|
|
779
|
+
const c = v({}, r, {
|
|
780
|
+
color: _,
|
|
781
|
+
fullWidth: b,
|
|
782
782
|
variant: d,
|
|
783
|
-
size:
|
|
784
|
-
focusVisible:
|
|
785
|
-
loading:
|
|
786
|
-
loadingPosition:
|
|
783
|
+
size: H,
|
|
784
|
+
focusVisible: h,
|
|
785
|
+
loading: C,
|
|
786
|
+
loadingPosition: D,
|
|
787
787
|
disabled: z
|
|
788
|
-
}),
|
|
789
|
-
var
|
|
790
|
-
let
|
|
791
|
-
if (typeof
|
|
792
|
-
var
|
|
793
|
-
(
|
|
788
|
+
}), k = re(c), X = (L) => {
|
|
789
|
+
var rt;
|
|
790
|
+
let Y = r.onClick;
|
|
791
|
+
if (typeof f.root == "function" ? Y = f.root(c).onClick : f.root && (Y = f.root.onClick), (rt = Y) == null || rt(L), g) {
|
|
792
|
+
var ot;
|
|
793
|
+
(ot = g.onClick) == null || ot.call(g, L, r.value);
|
|
794
794
|
}
|
|
795
795
|
};
|
|
796
|
-
let
|
|
797
|
-
typeof
|
|
798
|
-
const
|
|
799
|
-
component:
|
|
800
|
-
slots:
|
|
801
|
-
slotProps:
|
|
802
|
-
}), [
|
|
803
|
-
ref:
|
|
804
|
-
className:
|
|
805
|
-
elementType:
|
|
806
|
-
externalForwardedProps:
|
|
796
|
+
let F = r["aria-pressed"];
|
|
797
|
+
typeof f.root == "function" ? F = f.root(c)["aria-pressed"] : f.root && (F = f.root["aria-pressed"]), g != null && g.value && (Array.isArray(g.value) ? F = g.value.indexOf(r.value) !== -1 : F = g.value === r.value);
|
|
798
|
+
const j = v({}, P, {
|
|
799
|
+
component: R,
|
|
800
|
+
slots: y,
|
|
801
|
+
slotProps: f
|
|
802
|
+
}), [mt, ft] = M("root", {
|
|
803
|
+
ref: o,
|
|
804
|
+
className: k.root,
|
|
805
|
+
elementType: se,
|
|
806
|
+
externalForwardedProps: j,
|
|
807
807
|
getSlotProps: s,
|
|
808
808
|
ownerState: c,
|
|
809
809
|
additionalProps: {
|
|
810
|
-
onClick:
|
|
811
|
-
"aria-pressed":
|
|
810
|
+
onClick: X,
|
|
811
|
+
"aria-pressed": F
|
|
812
812
|
}
|
|
813
|
-
}), [
|
|
814
|
-
className:
|
|
815
|
-
elementType:
|
|
816
|
-
externalForwardedProps:
|
|
813
|
+
}), [$t, ht] = M("startDecorator", {
|
|
814
|
+
className: k.startDecorator,
|
|
815
|
+
elementType: oe,
|
|
816
|
+
externalForwardedProps: j,
|
|
817
817
|
ownerState: c
|
|
818
|
-
}), [
|
|
819
|
-
className:
|
|
820
|
-
elementType:
|
|
821
|
-
externalForwardedProps:
|
|
818
|
+
}), [bt, Ct] = M("endDecorator", {
|
|
819
|
+
className: k.endDecorator,
|
|
820
|
+
elementType: ne,
|
|
821
|
+
externalForwardedProps: j,
|
|
822
822
|
ownerState: c
|
|
823
|
-
}), [
|
|
824
|
-
className:
|
|
825
|
-
elementType:
|
|
826
|
-
externalForwardedProps:
|
|
823
|
+
}), [yt, Bt] = M("loadingIndicatorCenter", {
|
|
824
|
+
className: k.loadingIndicatorCenter,
|
|
825
|
+
elementType: le,
|
|
826
|
+
externalForwardedProps: j,
|
|
827
827
|
ownerState: c
|
|
828
828
|
});
|
|
829
|
-
return /* @__PURE__ */
|
|
830
|
-
children: [(
|
|
831
|
-
children:
|
|
832
|
-
})), e,
|
|
829
|
+
return /* @__PURE__ */ E.jsxs(mt, v({}, ft, {
|
|
830
|
+
children: [(x || C && D === "start") && /* @__PURE__ */ E.jsx($t, v({}, ht, {
|
|
831
|
+
children: C && D === "start" ? l : x
|
|
832
|
+
})), e, C && D === "center" && /* @__PURE__ */ E.jsx(yt, v({}, Bt, {
|
|
833
833
|
children: l
|
|
834
|
-
})), (S ||
|
|
835
|
-
children:
|
|
834
|
+
})), (S || C && D === "end") && /* @__PURE__ */ E.jsx(bt, v({}, Ct, {
|
|
835
|
+
children: C && D === "end" ? l : S
|
|
836
836
|
}))]
|
|
837
837
|
}));
|
|
838
838
|
});
|
|
839
|
-
|
|
839
|
+
de.muiName = "Button";
|
|
840
|
+
function ce(t) {
|
|
841
|
+
return Q("MuiCard", t);
|
|
842
|
+
}
|
|
843
|
+
const be = w("MuiCard", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "horizontal", "vertical"]), pe = ["className", "color", "component", "invertedColors", "size", "variant", "children", "orientation", "slots", "slotProps"], ue = (t) => {
|
|
844
|
+
const {
|
|
845
|
+
size: a,
|
|
846
|
+
variant: o,
|
|
847
|
+
color: n,
|
|
848
|
+
orientation: r
|
|
849
|
+
} = t, e = {
|
|
850
|
+
root: ["root", r, o && `variant${W(o)}`, n && `color${W(n)}`, a && `size${W(a)}`]
|
|
851
|
+
};
|
|
852
|
+
return et(e, ce, {});
|
|
853
|
+
}, ve = N("div")(({
|
|
854
|
+
theme: t,
|
|
855
|
+
ownerState: a
|
|
856
|
+
}) => {
|
|
857
|
+
var o;
|
|
858
|
+
const {
|
|
859
|
+
p: n,
|
|
860
|
+
padding: r,
|
|
861
|
+
borderRadius: e
|
|
862
|
+
} = Ot({
|
|
863
|
+
theme: t,
|
|
864
|
+
ownerState: a
|
|
865
|
+
}, ["p", "padding", "borderRadius"]);
|
|
866
|
+
return [v({
|
|
867
|
+
"--Icon-color": a.color !== "neutral" || a.variant === "solid" ? "currentColor" : t.vars.palette.text.icon,
|
|
868
|
+
// a context variable for any child component
|
|
869
|
+
"--Card-childRadius": "max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))",
|
|
870
|
+
// AspectRatio integration
|
|
871
|
+
"--AspectRatio-radius": "var(--Card-childRadius)",
|
|
872
|
+
// Link integration
|
|
873
|
+
"--unstable_actionMargin": "calc(-1 * var(--variant-borderWidth, 0px))",
|
|
874
|
+
// Link, Radio, Checkbox integration
|
|
875
|
+
"--unstable_actionRadius": "var(--Card-radius)",
|
|
876
|
+
// CardCover integration
|
|
877
|
+
"--CardCover-radius": "calc(var(--Card-radius) - var(--variant-borderWidth, 0px))",
|
|
878
|
+
// CardOverflow integration
|
|
879
|
+
"--CardOverflow-offset": "calc(-1 * var(--Card-padding))",
|
|
880
|
+
"--CardOverflow-radius": "calc(var(--Card-radius) - var(--variant-borderWidth, 0px))",
|
|
881
|
+
// Divider integration
|
|
882
|
+
"--Divider-inset": "calc(-1 * var(--Card-padding))"
|
|
883
|
+
}, a.size === "sm" && {
|
|
884
|
+
"--Card-radius": t.vars.radius.sm,
|
|
885
|
+
"--Card-padding": "0.625rem",
|
|
886
|
+
gap: "0.5rem"
|
|
887
|
+
}, a.size === "md" && {
|
|
888
|
+
"--Card-radius": t.vars.radius.md,
|
|
889
|
+
"--Card-padding": "1rem",
|
|
890
|
+
gap: "0.75rem 1rem"
|
|
891
|
+
}, a.size === "lg" && {
|
|
892
|
+
"--Card-radius": t.vars.radius.lg,
|
|
893
|
+
"--Card-padding": "1.5rem",
|
|
894
|
+
gap: "1rem 1.5rem"
|
|
895
|
+
}, {
|
|
896
|
+
padding: "var(--Card-padding)",
|
|
897
|
+
borderRadius: "var(--Card-radius)",
|
|
898
|
+
backgroundColor: t.vars.palette.background.surface,
|
|
899
|
+
position: "relative",
|
|
900
|
+
display: "flex",
|
|
901
|
+
flexDirection: a.orientation === "horizontal" ? "row" : "column"
|
|
902
|
+
}, t.typography[`body-${a.size}`], a.variant === "solid" && a.color && a.invertedColors && Lt(a.color)(t), a.variant === "soft" && a.color && a.invertedColors && jt(a.color)(t), (o = t.variants[a.variant]) == null ? void 0 : o[a.color]), n !== void 0 && {
|
|
903
|
+
"--Card-padding": n
|
|
904
|
+
}, r !== void 0 && {
|
|
905
|
+
"--Card-padding": r
|
|
906
|
+
}, e !== void 0 && {
|
|
907
|
+
"--Card-radius": e
|
|
908
|
+
}];
|
|
909
|
+
}), ge = N(ve, {
|
|
910
|
+
name: "JoyCard",
|
|
911
|
+
slot: "Root",
|
|
912
|
+
overridesResolver: (t, a) => a.root
|
|
913
|
+
})({}), Ce = /* @__PURE__ */ u.forwardRef(function(a, o) {
|
|
914
|
+
const n = tt({
|
|
915
|
+
props: a,
|
|
916
|
+
name: "JoyCard"
|
|
917
|
+
}), {
|
|
918
|
+
className: r,
|
|
919
|
+
color: e = "neutral",
|
|
920
|
+
component: i = "div",
|
|
921
|
+
invertedColors: p = !1,
|
|
922
|
+
size: m = "md",
|
|
923
|
+
variant: B = "outlined",
|
|
924
|
+
children: b,
|
|
925
|
+
orientation: x = "vertical",
|
|
926
|
+
slots: S = {},
|
|
927
|
+
slotProps: C = {}
|
|
928
|
+
} = n, D = U(n, pe), I = v({}, n, {
|
|
929
|
+
color: e,
|
|
930
|
+
component: i,
|
|
931
|
+
orientation: x,
|
|
932
|
+
size: m,
|
|
933
|
+
variant: B,
|
|
934
|
+
invertedColors: p
|
|
935
|
+
}), $ = ue(I), R = v({}, D, {
|
|
936
|
+
component: i,
|
|
937
|
+
slots: S,
|
|
938
|
+
slotProps: C
|
|
939
|
+
}), [y, f] = M("root", {
|
|
940
|
+
ref: o,
|
|
941
|
+
className: St($.root, r),
|
|
942
|
+
elementType: ge,
|
|
943
|
+
externalForwardedProps: R,
|
|
944
|
+
ownerState: I
|
|
945
|
+
});
|
|
946
|
+
return /* @__PURE__ */ E.jsx(y, v({}, f, {
|
|
947
|
+
children: u.Children.map(b, (P, T) => {
|
|
948
|
+
if (!/* @__PURE__ */ u.isValidElement(P))
|
|
949
|
+
return P;
|
|
950
|
+
const g = {};
|
|
951
|
+
if (ut(P, ["Divider"])) {
|
|
952
|
+
var d, H;
|
|
953
|
+
const _ = P.props;
|
|
954
|
+
g.inset = (d = _ == null ? void 0 : _.inset) != null ? d : "context";
|
|
955
|
+
const z = x === "vertical" ? "horizontal" : "vertical";
|
|
956
|
+
g.orientation = (H = _ == null ? void 0 : _.orientation) != null ? H : z;
|
|
957
|
+
}
|
|
958
|
+
return T === 0 && (g["data-first-child"] = ""), T === u.Children.count(b) - 1 && (g["data-last-child"] = ""), /* @__PURE__ */ u.cloneElement(P, g);
|
|
959
|
+
})
|
|
960
|
+
}));
|
|
961
|
+
}), ye = "$$material";
|
|
962
|
+
function me(t, a) {
|
|
963
|
+
const o = {
|
|
964
|
+
...a
|
|
965
|
+
};
|
|
966
|
+
for (const n in t)
|
|
967
|
+
if (Object.prototype.hasOwnProperty.call(t, n)) {
|
|
968
|
+
const r = n;
|
|
969
|
+
if (r === "components" || r === "slots")
|
|
970
|
+
o[r] = {
|
|
971
|
+
...t[r],
|
|
972
|
+
...o[r]
|
|
973
|
+
};
|
|
974
|
+
else if (r === "componentsProps" || r === "slotProps") {
|
|
975
|
+
const e = t[r], i = a[r];
|
|
976
|
+
if (!i)
|
|
977
|
+
o[r] = e || {};
|
|
978
|
+
else if (!e)
|
|
979
|
+
o[r] = i;
|
|
980
|
+
else {
|
|
981
|
+
o[r] = {
|
|
982
|
+
...i
|
|
983
|
+
};
|
|
984
|
+
for (const p in e)
|
|
985
|
+
if (Object.prototype.hasOwnProperty.call(e, p)) {
|
|
986
|
+
const m = p;
|
|
987
|
+
o[r][m] = me(e[m], i[m]);
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
} else o[r] === void 0 && (o[r] = t[r]);
|
|
991
|
+
}
|
|
992
|
+
return o;
|
|
993
|
+
}
|
|
840
994
|
export {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
995
|
+
de as B,
|
|
996
|
+
Ce as C,
|
|
997
|
+
K as I,
|
|
998
|
+
ve as S,
|
|
999
|
+
te as T,
|
|
1000
|
+
it as a,
|
|
1001
|
+
Yt as b,
|
|
1002
|
+
he as c,
|
|
1003
|
+
Lt as d,
|
|
1004
|
+
jt as e,
|
|
1005
|
+
Wt as f,
|
|
1006
|
+
me as g,
|
|
1007
|
+
ye as h,
|
|
1008
|
+
ut as i,
|
|
1009
|
+
be as j,
|
|
1010
|
+
dt as k,
|
|
1011
|
+
Ut as l,
|
|
1012
|
+
Kt as m,
|
|
1013
|
+
Ot as r,
|
|
1014
|
+
$e as s,
|
|
1015
|
+
At as u
|
|
858
1016
|
};
|