fansunited-widgets-cdn 0.0.86-RC4 → 0.0.86-RC5
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,13 +1,10 @@
|
|
|
1
|
-
import { r as P, j as A, u as oo, B as Nt, a as ro, b as ao } from "./main-
|
|
2
|
-
import { u as lo } from "./index-
|
|
3
|
-
import { d as uo } from "./default-quiz-bg-
|
|
4
|
-
import { S as Bt } from "./Stack-
|
|
5
|
-
import {
|
|
6
|
-
import { C as
|
|
7
|
-
import {
|
|
8
|
-
import { c as Le } from "./createLucideIcon-nPUeaUEe.js";
|
|
9
|
-
import { U as mo } from "./users-C-6eqEb6.js";
|
|
10
|
-
import { C as po } from "./Card-BDn3dk3E.js";
|
|
1
|
+
import { r as P, j as A, u as oo, B as Nt, a as ro, b as ao } from "./main-Bh6iw92_.js";
|
|
2
|
+
import { u as lo } from "./index-CHV6tlpH.js";
|
|
3
|
+
import { d as uo, A as co } from "./default-quiz-bg-ADjjIfPj.js";
|
|
4
|
+
import { S as Bt } from "./Stack-DbDi7kPO.js";
|
|
5
|
+
import { c as Le, C as ho } from "./createLucideIcon-CMWOQsDL.js";
|
|
6
|
+
import { T as vt, B as fo, C as mo } from "./resolveProps-Bgg0H6c2.js";
|
|
7
|
+
import { U as po } from "./users-CXdzg3DM.js";
|
|
11
8
|
const Ms = P.createContext({});
|
|
12
9
|
function go(t) {
|
|
13
10
|
const e = P.useRef(null);
|
|
@@ -4813,7 +4810,7 @@ function Zu({ quiz: t, onStart: e }) {
|
|
|
4813
4810
|
title: n("quizzes.participant", { count: t.participationCount }),
|
|
4814
4811
|
level: "body-sm",
|
|
4815
4812
|
textColor: "white",
|
|
4816
|
-
startDecorator: /* @__PURE__ */ A.jsx(
|
|
4813
|
+
startDecorator: /* @__PURE__ */ A.jsx(po, { size: 16, color: "white" }),
|
|
4817
4814
|
children: t.participationCount
|
|
4818
4815
|
}
|
|
4819
4816
|
)
|
|
@@ -4828,7 +4825,7 @@ function Zu({ quiz: t, onStart: e }) {
|
|
|
4828
4825
|
/* @__PURE__ */ A.jsx(Bt, { spacing: 1, children: /* @__PURE__ */ A.jsx(fo, { fullWidth: !0, size: "sm", onClick: e, startDecorator: /* @__PURE__ */ A.jsx(Hu, {}), sx: rt.startButtonContainer, children: s }) })
|
|
4829
4826
|
] }) : null;
|
|
4830
4827
|
}
|
|
4831
|
-
const
|
|
4828
|
+
const lc = ({ initialQuizId: t, url: e }) => {
|
|
4832
4829
|
const [n, s] = P.useState(null), [i, r] = P.useState({}), [o, a] = P.useState(!0), [l, u] = P.useState(null), c = ro();
|
|
4833
4830
|
return P.useEffect(() => {
|
|
4834
4831
|
t && s(t);
|
|
@@ -4839,7 +4836,7 @@ const hc = ({ initialQuizId: t, url: e }) => {
|
|
|
4839
4836
|
console.error("Failed to fetch quiz:", h), u("Failed to load quiz. Please try again."), a(!1);
|
|
4840
4837
|
}));
|
|
4841
4838
|
}, [n]), /* @__PURE__ */ A.jsx(A.Fragment, { children: o ? /* @__PURE__ */ A.jsx(Nt, { minHeight: "200px", display: "flex", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ A.jsx(ao, {}) }) : l ? /* @__PURE__ */ A.jsx(A.Fragment, {}) : i ? /* @__PURE__ */ A.jsx(
|
|
4842
|
-
|
|
4839
|
+
mo,
|
|
4843
4840
|
{
|
|
4844
4841
|
sx: {
|
|
4845
4842
|
borderColor: "divider",
|
|
@@ -4860,5 +4857,5 @@ const hc = ({ initialQuizId: t, url: e }) => {
|
|
|
4860
4857
|
) : /* @__PURE__ */ A.jsx(vt, { children: "No quiz data available" }) });
|
|
4861
4858
|
};
|
|
4862
4859
|
export {
|
|
4863
|
-
|
|
4860
|
+
lc as default
|
|
4864
4861
|
};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { g as x, d as y, r as f, e as I, f as R, _ as i, h as P, s as b, w as k, j as S, i as h, k as _, Z as A } from "./main-Bh6iw92_.js";
|
|
2
|
+
import { j as W, k as F, r as L, d as X, e as T } from "./resolveProps-Bgg0H6c2.js";
|
|
3
|
+
import { i as V } from "./IconButton-D7onwgY0.js";
|
|
4
|
+
import { a as E } from "./CardContent-NCZhfGcZ.js";
|
|
5
|
+
function O(t) {
|
|
6
|
+
return x("MuiSvgIcon", t);
|
|
7
|
+
}
|
|
8
|
+
y("MuiSvgIcon", ["root", "colorInherit", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "fontSizeInherit", "fontSizeXs", "fontSizeSm", "fontSizeMd", "fontSizeLg", "fontSizeXl", "fontSizeXl2", "fontSizeXl3", "fontSizeXl4", "sizeSm", "sizeMd", "sizeLg"]);
|
|
9
|
+
const Z = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox", "size", "slots", "slotProps"], q = (t) => {
|
|
10
|
+
const {
|
|
11
|
+
color: o,
|
|
12
|
+
size: s,
|
|
13
|
+
fontSize: r
|
|
14
|
+
} = t, n = {
|
|
15
|
+
root: ["root", o && o !== "inherit" && `color${h(o)}`, s && `size${h(s)}`, r && `fontSize${h(r)}`]
|
|
16
|
+
};
|
|
17
|
+
return _(n, O, {});
|
|
18
|
+
}, M = {
|
|
19
|
+
sm: "xl",
|
|
20
|
+
md: "xl2",
|
|
21
|
+
lg: "xl3"
|
|
22
|
+
}, G = b("svg", {
|
|
23
|
+
name: "JoySvgIcon",
|
|
24
|
+
slot: "Root",
|
|
25
|
+
overridesResolver: (t, o) => o.root
|
|
26
|
+
})(({
|
|
27
|
+
theme: t,
|
|
28
|
+
ownerState: o
|
|
29
|
+
}) => {
|
|
30
|
+
var s;
|
|
31
|
+
return i({}, o.instanceSize && {
|
|
32
|
+
"--Icon-fontSize": t.vars.fontSize[M[o.instanceSize]]
|
|
33
|
+
}, o.instanceFontSize && o.instanceFontSize !== "inherit" && {
|
|
34
|
+
"--Icon-fontSize": t.vars.fontSize[o.instanceFontSize]
|
|
35
|
+
}, {
|
|
36
|
+
userSelect: "none",
|
|
37
|
+
margin: "var(--Icon-margin)",
|
|
38
|
+
width: "1em",
|
|
39
|
+
height: "1em",
|
|
40
|
+
display: "inline-block",
|
|
41
|
+
// the <svg> will define the property that has `currentColor`
|
|
42
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
43
|
+
fill: o.hasSvgAsChild ? void 0 : "currentColor",
|
|
44
|
+
flexShrink: 0,
|
|
45
|
+
fontSize: `var(--Icon-fontSize, ${t.vars.fontSize[M[o.size]] || "unset"})`
|
|
46
|
+
}, o.fontSize && o.fontSize !== "inherit" && {
|
|
47
|
+
fontSize: `var(--Icon-fontSize, ${t.fontSize[o.fontSize]})`
|
|
48
|
+
}, !o.htmlColor && i({
|
|
49
|
+
color: `var(--Icon-color, ${t.vars.palette.text.icon})`
|
|
50
|
+
}, o.color === "inherit" && {
|
|
51
|
+
color: "inherit"
|
|
52
|
+
}, o.color !== "inherit" && t.vars.palette[o.color] && {
|
|
53
|
+
color: `rgba(${(s = t.vars.palette[o.color]) == null ? void 0 : s.mainChannel} / 1)`
|
|
54
|
+
}));
|
|
55
|
+
}), j = /* @__PURE__ */ f.forwardRef(function(o, s) {
|
|
56
|
+
const r = I({
|
|
57
|
+
props: o,
|
|
58
|
+
name: "JoySvgIcon"
|
|
59
|
+
}), {
|
|
60
|
+
children: n,
|
|
61
|
+
className: e,
|
|
62
|
+
color: l,
|
|
63
|
+
component: c = "svg",
|
|
64
|
+
fontSize: u,
|
|
65
|
+
htmlColor: a,
|
|
66
|
+
inheritViewBox: p = !1,
|
|
67
|
+
titleAccess: d,
|
|
68
|
+
viewBox: v = "0 0 24 24",
|
|
69
|
+
size: g = "md",
|
|
70
|
+
slots: z = {},
|
|
71
|
+
slotProps: m = {}
|
|
72
|
+
} = r, C = R(r, Z), $ = /* @__PURE__ */ f.isValidElement(n) && n.type === "svg", N = i({}, r, {
|
|
73
|
+
color: l,
|
|
74
|
+
component: c,
|
|
75
|
+
size: g,
|
|
76
|
+
instanceSize: o.size,
|
|
77
|
+
fontSize: u,
|
|
78
|
+
instanceFontSize: o.fontSize,
|
|
79
|
+
inheritViewBox: p,
|
|
80
|
+
viewBox: v,
|
|
81
|
+
hasSvgAsChild: $
|
|
82
|
+
}), B = q(N), U = i({}, C, {
|
|
83
|
+
component: c,
|
|
84
|
+
slots: z,
|
|
85
|
+
slotProps: m
|
|
86
|
+
}), [D, J] = P("root", {
|
|
87
|
+
ref: s,
|
|
88
|
+
className: k(B.root, e),
|
|
89
|
+
elementType: G,
|
|
90
|
+
externalForwardedProps: U,
|
|
91
|
+
ownerState: N,
|
|
92
|
+
additionalProps: i({
|
|
93
|
+
color: a,
|
|
94
|
+
focusable: !1
|
|
95
|
+
}, d && {
|
|
96
|
+
role: "img"
|
|
97
|
+
}, !d && {
|
|
98
|
+
"aria-hidden": !0
|
|
99
|
+
}, !p && {
|
|
100
|
+
viewBox: v
|
|
101
|
+
}, $ && n.props)
|
|
102
|
+
});
|
|
103
|
+
return /* @__PURE__ */ S.jsxs(D, i({}, J, {
|
|
104
|
+
children: [$ ? n.props.children : n, d ? /* @__PURE__ */ S.jsx("title", {
|
|
105
|
+
children: d
|
|
106
|
+
}) : null]
|
|
107
|
+
}));
|
|
108
|
+
});
|
|
109
|
+
function co(t, o) {
|
|
110
|
+
function s(r, n) {
|
|
111
|
+
return /* @__PURE__ */ S.jsx(j, i({
|
|
112
|
+
"data-testid": `${o}Icon`,
|
|
113
|
+
ref: n
|
|
114
|
+
}, r, {
|
|
115
|
+
children: t
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
return s.muiName = j.muiName, /* @__PURE__ */ f.memo(/* @__PURE__ */ f.forwardRef(s));
|
|
119
|
+
}
|
|
120
|
+
function H(t) {
|
|
121
|
+
return x("MuiCardActions", t);
|
|
122
|
+
}
|
|
123
|
+
y("MuiCardActions", ["root"]);
|
|
124
|
+
function uo(t) {
|
|
125
|
+
return x("MuiDivider", t);
|
|
126
|
+
}
|
|
127
|
+
const K = y("MuiDivider", ["root", "horizontal", "vertical", "insetContext", "insetNone"]), Q = ["className", "component", "children", "buttonFlex", "orientation", "slots", "slotProps"], Y = () => _({
|
|
128
|
+
root: ["root"]
|
|
129
|
+
}, H, {}), w = b("div")(({
|
|
130
|
+
ownerState: t
|
|
131
|
+
}) => {
|
|
132
|
+
var o;
|
|
133
|
+
return i({
|
|
134
|
+
"--Button-radius": "var(--Card-childRadius)",
|
|
135
|
+
"--IconButton-radius": "var(--Card-childRadius)",
|
|
136
|
+
display: "flex"
|
|
137
|
+
}, ((o = t.orientation) == null ? void 0 : o.startsWith("horizontal")) && {
|
|
138
|
+
alignItems: "center"
|
|
139
|
+
// it is common to have children aligned center in horizontal orientation, but not vertically.
|
|
140
|
+
}, {
|
|
141
|
+
flexDirection: t.orientation === "horizontal" ? "row" : "column"
|
|
142
|
+
}, t.orientation === "horizontal-reverse" && {
|
|
143
|
+
flexDirection: "row-reverse"
|
|
144
|
+
}, {
|
|
145
|
+
zIndex: 1,
|
|
146
|
+
// render above Link's overlay
|
|
147
|
+
gap: "calc(0.625 * var(--Card-padding))",
|
|
148
|
+
padding: "var(--unstable_padding)",
|
|
149
|
+
"--unstable_padding": "calc(0.75 * var(--Card-padding)) 0 0 0",
|
|
150
|
+
[`.${E.root} > &`]: {
|
|
151
|
+
"--unstable_padding": "calc(0.75 * var(--Card-padding)) 0 var(--Card-padding)"
|
|
152
|
+
},
|
|
153
|
+
[`.${W.root} > .${K.root} + &`]: {
|
|
154
|
+
"--unstable_padding": "0"
|
|
155
|
+
}
|
|
156
|
+
}, t.buttonFlex ? {
|
|
157
|
+
[`& > :not(.${V.root})`]: {
|
|
158
|
+
flex: t.buttonFlex
|
|
159
|
+
},
|
|
160
|
+
[`& > :not(button) > .${F.root}`]: {
|
|
161
|
+
width: "100%"
|
|
162
|
+
// for button to fill its wrapper.
|
|
163
|
+
}
|
|
164
|
+
} : {
|
|
165
|
+
[`& > .${F.root}:only-child`]: {
|
|
166
|
+
flex: "auto"
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}), oo = b(w, {
|
|
170
|
+
name: "JoyCardActions",
|
|
171
|
+
slot: "Root",
|
|
172
|
+
overridesResolver: (t, o) => o.root
|
|
173
|
+
})({}), vo = /* @__PURE__ */ f.forwardRef(function(o, s) {
|
|
174
|
+
const r = I({
|
|
175
|
+
props: o,
|
|
176
|
+
name: "JoyCardActions"
|
|
177
|
+
}), {
|
|
178
|
+
className: n,
|
|
179
|
+
component: e = "div",
|
|
180
|
+
children: l,
|
|
181
|
+
buttonFlex: c,
|
|
182
|
+
orientation: u = "horizontal",
|
|
183
|
+
slots: a = {},
|
|
184
|
+
slotProps: p = {}
|
|
185
|
+
} = r, d = R(r, Q), v = i({}, d, {
|
|
186
|
+
component: e,
|
|
187
|
+
slots: a,
|
|
188
|
+
slotProps: p
|
|
189
|
+
}), g = i({}, r, {
|
|
190
|
+
component: e,
|
|
191
|
+
buttonFlex: c,
|
|
192
|
+
orientation: u
|
|
193
|
+
}), z = Y(), [m, C] = P("root", {
|
|
194
|
+
ref: s,
|
|
195
|
+
className: k(z.root, n),
|
|
196
|
+
elementType: oo,
|
|
197
|
+
externalForwardedProps: v,
|
|
198
|
+
ownerState: g
|
|
199
|
+
});
|
|
200
|
+
return /* @__PURE__ */ S.jsx(m, i({}, C, {
|
|
201
|
+
children: l
|
|
202
|
+
}));
|
|
203
|
+
});
|
|
204
|
+
function to(t) {
|
|
205
|
+
return x("MuiSheet", t);
|
|
206
|
+
}
|
|
207
|
+
y("MuiSheet", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
208
|
+
const ro = ["className", "color", "component", "variant", "invertedColors", "slots", "slotProps"], so = (t) => {
|
|
209
|
+
const {
|
|
210
|
+
variant: o,
|
|
211
|
+
color: s
|
|
212
|
+
} = t, r = {
|
|
213
|
+
root: ["root", o && `variant${h(o)}`, s && `color${h(s)}`]
|
|
214
|
+
};
|
|
215
|
+
return _(r, to, {});
|
|
216
|
+
}, no = b("div", {
|
|
217
|
+
name: "JoySheet",
|
|
218
|
+
slot: "Root",
|
|
219
|
+
overridesResolver: (t, o) => o.root
|
|
220
|
+
})(({
|
|
221
|
+
theme: t,
|
|
222
|
+
ownerState: o
|
|
223
|
+
}) => {
|
|
224
|
+
var s, r;
|
|
225
|
+
const n = (s = t.variants[o.variant]) == null ? void 0 : s[o.color], {
|
|
226
|
+
borderRadius: e,
|
|
227
|
+
bgcolor: l,
|
|
228
|
+
backgroundColor: c,
|
|
229
|
+
background: u
|
|
230
|
+
} = L({
|
|
231
|
+
theme: t,
|
|
232
|
+
ownerState: o
|
|
233
|
+
}, ["borderRadius", "bgcolor", "backgroundColor", "background"]), a = A(t, `palette.${l}`) || l || A(t, `palette.${c}`) || c || u || (n == null ? void 0 : n.backgroundColor) || (n == null ? void 0 : n.background) || t.vars.palette.background.surface;
|
|
234
|
+
return [i({
|
|
235
|
+
"--Icon-color": o.color !== "neutral" || o.variant === "solid" ? "currentColor" : t.vars.palette.text.icon,
|
|
236
|
+
"--ListItem-stickyBackground": a === "transparent" ? "initial" : a,
|
|
237
|
+
// for sticky List
|
|
238
|
+
"--Sheet-background": a === "transparent" ? "initial" : a
|
|
239
|
+
}, e !== void 0 && {
|
|
240
|
+
"--List-radius": `calc(${e} - var(--variant-borderWidth, 0px))`,
|
|
241
|
+
"--unstable_actionRadius": `calc(${e} - var(--variant-borderWidth, 0px))`
|
|
242
|
+
}, {
|
|
243
|
+
backgroundColor: t.vars.palette.background.surface,
|
|
244
|
+
position: "relative"
|
|
245
|
+
}), i({}, t.typography["body-md"], o.variant === "solid" && o.color && o.invertedColors && X(o.color)(t), o.variant === "soft" && o.color && o.invertedColors && T(o.color)(t), (r = t.variants[o.variant]) == null ? void 0 : r[o.color], n)];
|
|
246
|
+
}), po = /* @__PURE__ */ f.forwardRef(function(o, s) {
|
|
247
|
+
const r = I({
|
|
248
|
+
props: o,
|
|
249
|
+
name: "JoySheet"
|
|
250
|
+
}), {
|
|
251
|
+
className: n,
|
|
252
|
+
color: e = "neutral",
|
|
253
|
+
component: l = "div",
|
|
254
|
+
variant: c = "plain",
|
|
255
|
+
invertedColors: u = !1,
|
|
256
|
+
slots: a = {},
|
|
257
|
+
slotProps: p = {}
|
|
258
|
+
} = r, d = R(r, ro), v = i({}, r, {
|
|
259
|
+
color: e,
|
|
260
|
+
component: l,
|
|
261
|
+
invertedColors: u,
|
|
262
|
+
variant: c
|
|
263
|
+
}), g = so(v), z = i({}, d, {
|
|
264
|
+
component: l,
|
|
265
|
+
slots: a,
|
|
266
|
+
slotProps: p
|
|
267
|
+
}), [m, C] = P("root", {
|
|
268
|
+
ref: s,
|
|
269
|
+
className: k(g.root, n),
|
|
270
|
+
elementType: no,
|
|
271
|
+
externalForwardedProps: z,
|
|
272
|
+
ownerState: v
|
|
273
|
+
});
|
|
274
|
+
return /* @__PURE__ */ S.jsx(m, i({}, C));
|
|
275
|
+
});
|
|
276
|
+
export {
|
|
277
|
+
vo as C,
|
|
278
|
+
po as S,
|
|
279
|
+
w as a,
|
|
280
|
+
co as c,
|
|
281
|
+
uo as g
|
|
282
|
+
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { r as d,
|
|
2
|
-
import { s as A } from "./
|
|
3
|
-
const J = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"], L = M(),
|
|
1
|
+
import { r as d, l as V, f as b, j as F, _ as k, w as B, $ as D, a0 as v, a1 as p, a2 as $, a3 as E, a4 as G, k as N, a5 as _, a6 as M, a7 as h, s as O, e as U } from "./main-Bh6iw92_.js";
|
|
2
|
+
import { s as A } from "./resolveProps-Bgg0H6c2.js";
|
|
3
|
+
const J = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"], L = M(), I = A("div", {
|
|
4
4
|
name: "MuiStack",
|
|
5
5
|
slot: "Root",
|
|
6
6
|
overridesResolver: (e, s) => s.root
|
|
7
7
|
});
|
|
8
|
-
function
|
|
9
|
-
return
|
|
8
|
+
function W(e) {
|
|
9
|
+
return D({
|
|
10
10
|
props: e,
|
|
11
11
|
name: "MuiStack",
|
|
12
12
|
defaultTheme: L
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function q(e, s) {
|
|
16
16
|
const n = d.Children.toArray(e).filter(Boolean);
|
|
17
17
|
return n.reduce((a, c, t) => (a.push(c), t < n.length - 1 && a.push(/* @__PURE__ */ d.cloneElement(s, {
|
|
18
18
|
key: `separator-${t}`
|
|
19
19
|
})), a), []);
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const z = (e) => ({
|
|
22
22
|
row: "Left",
|
|
23
23
|
"row-reverse": "Right",
|
|
24
24
|
column: "Top",
|
|
25
25
|
"column-reverse": "Bottom"
|
|
26
|
-
})[e],
|
|
26
|
+
})[e], H = ({
|
|
27
27
|
ownerState: e,
|
|
28
28
|
theme: s
|
|
29
29
|
}) => {
|
|
30
30
|
let n = k({
|
|
31
31
|
display: "flex",
|
|
32
32
|
flexDirection: "column"
|
|
33
|
-
},
|
|
33
|
+
}, v({
|
|
34
34
|
theme: s
|
|
35
35
|
}, p({
|
|
36
36
|
values: e.direction,
|
|
@@ -39,7 +39,7 @@ const q = (e) => ({
|
|
|
39
39
|
flexDirection: a
|
|
40
40
|
})));
|
|
41
41
|
if (e.spacing) {
|
|
42
|
-
const a =
|
|
42
|
+
const a = $(s), c = Object.keys(s.breakpoints.values).reduce((o, r) => ((typeof e.spacing == "object" && e.spacing[r] != null || typeof e.direction == "object" && e.direction[r] != null) && (o[r] = !0), o), {}), t = p({
|
|
43
43
|
values: e.direction,
|
|
44
44
|
base: c
|
|
45
45
|
}), m = p({
|
|
@@ -51,7 +51,7 @@ const q = (e) => ({
|
|
|
51
51
|
const u = r > 0 ? t[i[r - 1]] : "column";
|
|
52
52
|
t[o] = u;
|
|
53
53
|
}
|
|
54
|
-
}), n =
|
|
54
|
+
}), n = E(n, v({
|
|
55
55
|
theme: s
|
|
56
56
|
}, m, (o, r) => e.useFlexGap ? {
|
|
57
57
|
gap: h(a, o)
|
|
@@ -62,46 +62,46 @@ const q = (e) => ({
|
|
|
62
62
|
margin: 0
|
|
63
63
|
},
|
|
64
64
|
"& > :not(style) ~ :not(style)": {
|
|
65
|
-
[`margin${
|
|
65
|
+
[`margin${z(r ? t[r] : e.direction)}`]: h(a, o)
|
|
66
66
|
}
|
|
67
67
|
}));
|
|
68
68
|
}
|
|
69
|
-
return n =
|
|
69
|
+
return n = G(s.breakpoints, n), n;
|
|
70
70
|
};
|
|
71
|
-
function
|
|
71
|
+
function K(e = {}) {
|
|
72
72
|
const {
|
|
73
73
|
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
74
|
-
createStyledComponent: s =
|
|
75
|
-
useThemeProps: n =
|
|
74
|
+
createStyledComponent: s = I,
|
|
75
|
+
useThemeProps: n = W,
|
|
76
76
|
componentName: a = "MuiStack"
|
|
77
|
-
} = e, c = () =>
|
|
77
|
+
} = e, c = () => N({
|
|
78
78
|
root: ["root"]
|
|
79
|
-
}, (o) =>
|
|
79
|
+
}, (o) => _(a, o), {}), t = s(H);
|
|
80
80
|
return /* @__PURE__ */ d.forwardRef(function(o, r) {
|
|
81
|
-
const i = n(o), l =
|
|
81
|
+
const i = n(o), l = V(i), {
|
|
82
82
|
component: u = "div",
|
|
83
83
|
direction: x = "column",
|
|
84
84
|
spacing: j = 0,
|
|
85
85
|
divider: y,
|
|
86
|
-
children:
|
|
86
|
+
children: g,
|
|
87
87
|
className: P,
|
|
88
|
-
useFlexGap:
|
|
89
|
-
} = l,
|
|
88
|
+
useFlexGap: C = !1
|
|
89
|
+
} = l, S = b(l, J), R = {
|
|
90
90
|
direction: x,
|
|
91
91
|
spacing: j,
|
|
92
|
-
useFlexGap:
|
|
93
|
-
},
|
|
94
|
-
return /* @__PURE__ */
|
|
92
|
+
useFlexGap: C
|
|
93
|
+
}, T = c();
|
|
94
|
+
return /* @__PURE__ */ F.jsx(t, k({
|
|
95
95
|
as: u,
|
|
96
|
-
ownerState:
|
|
96
|
+
ownerState: R,
|
|
97
97
|
ref: r,
|
|
98
|
-
className:
|
|
99
|
-
},
|
|
100
|
-
children: y ?
|
|
98
|
+
className: B(T.root, P)
|
|
99
|
+
}, S, {
|
|
100
|
+
children: y ? q(g, y) : g
|
|
101
101
|
}));
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
const Y =
|
|
104
|
+
const Y = K({
|
|
105
105
|
createStyledComponent: O("div", {
|
|
106
106
|
name: "JoyStack",
|
|
107
107
|
slot: "Root",
|