fansunited-frontend-components 0.0.78 → 0.0.80
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.js +1 -1
- package/ChanceGame.js +12 -11
- package/ClassicQuizPlay.js +1 -1
- package/CollectLead.js +39 -38
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +1 -1
- package/EventCard.js +61 -61
- package/EventGamePlay.js +1 -1
- package/Leaderboard.js +13 -13
- package/List.js +93 -82
- package/MatchQuizPlay.js +1 -1
- package/PersonalityQuizPlay.js +1 -1
- package/PickThePair.js +13 -12
- package/PlayerOfTheMatch.js +22 -22
- package/PollVote.js +1 -1
- package/Predictor.js +1 -1
- package/README.md +131 -16
- package/Standings.js +26 -26
- package/TopX.js +27 -27
- package/chunks/{AccessTime-B30dztb0.js → AccessTime-BoYoyig3.js} +1 -1
- package/chunks/{AlertMessage-DioJxnEH.js → AlertMessage-DBbObbCr.js} +13 -13
- package/chunks/{Avatar-BDK_vO0c.js → Avatar-Bs2ODH24.js} +25 -25
- package/chunks/{Button-CsvEgUxT.js → Button-By0gW9vl.js} +17 -17
- package/chunks/{Card-Bp7sboHu.js → Card-Bbq-568c.js} +17 -17
- package/chunks/{CardActions-ehD6I2GZ.js → CardActions-DntJimyi.js} +14 -14
- package/chunks/{CardContent-BZDBKTQD.js → CardContent-JrB_z1Or.js} +5 -5
- package/chunks/{ChanceGameEmbedVariant-DMI7i2Me.js → ChanceGameEmbedVariant-D8b8PZnU.js} +21 -20
- package/chunks/{CheckCircle-BXhOrVkK.js → CheckCircle-BVTGl0Ft.js} +1 -1
- package/chunks/{Chip-Bm-Ccjvy.js → Chip-WC9No4h9.js} +10 -10
- package/chunks/{Close-CG_aSJDO.js → Close-CKW5gQRw.js} +1 -1
- package/chunks/{Close-AaOgLIme.js → Close-tWsMMKfA.js} +1 -1
- package/chunks/{CollectLeadForm-DZe1Ymdq.js → CollectLeadForm-CwcEETPM.js} +90 -90
- package/chunks/{ConsentsList-DooBFFmw.js → ConsentsList-D1KKdfOJ.js} +39 -39
- package/chunks/{DirectionScope-oLk_U3C_.js → DirectionScope-BYGJWPAq.js} +1 -1
- package/chunks/{Divider-CAgadBhD.js → Divider-4Rcw4h05.js} +5 -5
- package/chunks/{Edit-kXDl-pRS.js → Edit-D7yPt8sV.js} +13 -13
- package/chunks/{EditOutlined-BX5qBF8L.js → EditOutlined-DvZLGuHA.js} +1 -1
- package/chunks/{EmojiEvents-xseHOk4b.js → EmojiEvents-YHRdPnXx.js} +1 -1
- package/chunks/{FavoriteBorder-BMOLtK7X.js → FavoriteBorder-BXLiJyTv.js} +1 -1
- package/chunks/{FormControl-BTDS6ct5.js → FormControl-yhrIQ7ci.js} +17 -17
- package/chunks/{FormLabel-Ddvg7Uaw.js → FormLabel-COGIjfEx.js} +10 -10
- package/chunks/{InlineSpinner-CvwR2FB_.js → InlineSpinner-CyqM_yQn.js} +2 -2
- package/chunks/{Input-aCtmZdRk.js → Input-Dm3GnI0X.js} +10 -10
- package/chunks/{KeyboardArrowDown-BFuNjWbC.js → KeyboardArrowDown-CCFl-_Cw.js} +1 -1
- package/chunks/{KeyboardArrowRight-DaukpNJR.js → KeyboardArrowRight-387qOqAR.js} +1 -1
- package/chunks/{Link-lifAyVr-.js → Link-ByX_uwKs.js} +16 -16
- package/chunks/{ListItemButton-BSg2RH3G.js → ListItemButton-CxWpt9SR.js} +52 -52
- package/chunks/{ModalClose-C-dgGCpP.js → ModalClose-Cm8vOuk-.js} +17 -17
- package/chunks/{ModalDialog-DyJQmPgR.js → ModalDialog-CXSBeWlQ.js} +42 -42
- package/chunks/{NotFoundSkeleton-CPrI2SnC.js → NotFoundSkeleton-BV0mXA7z.js} +40 -39
- package/chunks/{Notification-1ogsNUiX.js → Notification-preGSwrO.js} +12 -12
- package/chunks/{OverlayScoreStateSkeleton-DALoMahw.js → OverlayScoreStateSkeleton-CA4yxhzc.js} +4 -4
- package/chunks/{OverlayScoreStateWrapperSkeleton-BDDNd4hM.js → OverlayScoreStateWrapperSkeleton-BwDWj5VX.js} +1 -1
- package/chunks/{OverlaySignInSkeleton-BUiNvDRX.js → OverlaySignInSkeleton-C0gpFLV4.js} +11 -10
- package/chunks/{Person-CtBkSz4s.js → Person-DFs8t3vY.js} +1 -1
- package/chunks/{PersonOutline-ftsY5SqE.js → PersonOutline-BHHHU-iP.js} +1 -1
- package/chunks/{PickOneOfX-ASPYutVw.js → PickOneOfX-eEOpXC-f.js} +3 -3
- package/chunks/{Popper-Bj1kl7y_.js → Popper-BJbMQoEj.js} +19 -19
- package/chunks/{Portal-B5LOp_VA.js → Portal-0HYQP6vC.js} +9 -8
- package/chunks/{Portal-DxNZWqOV.js → Portal-Cd3abSBt.js} +2 -2
- package/chunks/{Predictor-o1ZtxfmB.js → Predictor-Db1YZFlF.js} +27 -27
- package/chunks/{PrizeCard-DG54vy2l.js → PrizeCard-YH9jftwY.js} +1773 -1611
- package/chunks/{Search-Jq0gJI9j.js → Search-CWYaTHth.js} +1 -1
- package/chunks/{Select-Dvq1fOJv.js → Select-osvV4zXY.js} +82 -82
- package/chunks/{Sheet-emOLchyd.js → Sheet-Bj4wdH5F.js} +14 -14
- package/chunks/{SignInCta-DUarOlDT.js → SignInCta-3q_FTCgs.js} +3 -3
- package/chunks/{Spinner-CfnxZwI6.js → Spinner-CP7juuny.js} +2 -2
- package/chunks/{Stack-Ck9Xjygq.js → Stack-DuL71jRI.js} +27 -27
- package/chunks/{StandardContentSkeleton-Bx2HVrwG.js → StandardContentSkeleton-CsYymZyn.js} +1 -1
- package/chunks/{Table-DU0BCrKV.js → Table-DvjSYLKy.js} +5 -5
- package/chunks/{Tabs-Dx0bzmUT.js → Tabs-D44eIyd1.js} +19 -19
- package/chunks/{Textarea-CrulPENr.js → Textarea-Cjks7P0A.js} +27 -27
- package/chunks/{TimerOutlined-C3LRF5_A.js → TimerOutlined-D-ySNoFF.js} +1 -1
- package/chunks/{Tooltip-C8hJsZr9.js → Tooltip-C9OhGeHY.js} +52 -52
- package/chunks/{Typography-ECqxGAdq.js → Typography-Ce4eGDV-.js} +29 -29
- package/chunks/{WorkspacePremiumOutlined-DZe6H7gK.js → WorkspacePremiumOutlined-mcdyqu4a.js} +1 -1
- package/chunks/{createSvgIcon-SFvnySaS.js → createSvgIcon-D2EzyIzB.js} +12 -12
- package/chunks/{createSvgIcon-ZK1E4tSQ.js → createSvgIcon-D9F_KILu.js} +40 -40
- package/chunks/{dividerClasses-vQL1-lZZ.js → dividerClasses-D7_NXMv_.js} +1 -1
- package/chunks/{elementAcceptingRef-BQjX8_HI.js → elementAcceptingRef-z3i9EgXj.js} +1 -1
- package/chunks/enums-B1lTCQvC.js +15 -0
- package/chunks/{formLabelClasses-C6bWt8jt.js → formLabelClasses-DWH0zNVd.js} +1 -1
- package/chunks/{helpers-DK7NIWA3.js → helpers-B4K14VMy.js} +1 -1
- package/chunks/index-7P5xWKpe.js +4 -0
- package/chunks/index-BU6n6VAs.js +4 -0
- package/chunks/index-BeAwxbb7.js +4 -0
- package/chunks/index-CYbzrOCD.js +4 -0
- package/chunks/{index-D5NQUqT3.js → index-D6_vWz9t.js} +1 -1
- package/chunks/index-DfmHCVlq.js +4 -0
- package/chunks/index-Do8G2ehs.js +4 -0
- package/chunks/index-bI2wtknX.js +4 -0
- package/chunks/{main-CsgyDzQn.js → main-3TaPwm3t.js} +21 -20
- package/chunks/{main-BFR2-Jev.js → main-ChI4MrZS.js} +3788 -1553
- package/chunks/{main-t-kBnJfd.js → main-Cn8QJIGS.js} +190 -189
- package/chunks/{main-CMaUkaQg.js → main-D1KgLv-3.js} +36 -35
- package/chunks/{main-BpEXHrXG.js → main-D3vY3EZB.js} +177 -176
- package/chunks/{main-DXZDk8yw.js → main-eplFgf8K.js} +3 -3
- package/chunks/{main-XzVztuyY.js → main-la4AkVWG.js} +32 -31
- package/chunks/{main-BqzP5wNI.js → main-ndsgeKK2.js} +43 -43
- package/chunks/{useButton-BuGBhKba.js → useButton-BkNIp1Dt.js} +2 -2
- package/chunks/{useConsents-CTrXjPMT.js → useConsents-G3YImrA0.js} +27 -26
- package/chunks/{useEventCallback-BL4OQp0i.js → useEventCallback-Bpmr_fht.js} +1 -1
- package/chunks/{useForwardedInput-87iBLSE1.js → useForwardedInput-BnX6YP2x.js} +27 -27
- package/chunks/{useImageVariant-BpkocGDo.js → useImageVariant-CHZmm8-4.js} +6 -5
- package/chunks/{useParticipationDraft-C39xos8n.js → useParticipationDraft-CLycICaf.js} +6 -6
- package/chunks/{useSwitch-wS7XLrgV.js → useSwitch-C5TzU7zu.js} +2 -2
- package/index.js +4 -4
- package/package.json +2 -2
- package/chunks/index--sCTbryp.js +0 -4
- package/chunks/index-629uVyFa.js +0 -4
- package/chunks/index-BJfy__18.js +0 -4
- package/chunks/index-DD09ekhb.js +0 -4
- package/chunks/index-Dbxw2Q2L.js +0 -4
- package/chunks/index-GkKP5Yym.js +0 -4
- package/chunks/index-Ke1RX9Pb.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "./createSvgIcon-
|
|
2
|
+
import { c as t } from "./createSvgIcon-D9F_KILu.js";
|
|
3
3
|
const a = t(/* @__PURE__ */ o("path", {
|
|
4
4
|
d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
5
5
|
}), "ChevronLeft"), e = t(/* @__PURE__ */ o("path", {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as Ae, _ as u, D as tt, F as Ne, G as Fe, P as o, H as We, I as ot, J as Le } from "./PrizeCard-YH9jftwY.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { a as se, e as me, s as G, b as
|
|
4
|
-
import { n as rt, f as lt, o as he, k as Be, m as Te, q as at, h as it, i as ie, u as st, j as ct, e as ut, b as dt, R as pt, S as ft, s as bt, G as gt, L as vt } from "./ListItemButton-
|
|
3
|
+
import { a as se, e as me, s as G, b as Ue, c as K, d as qe, r as nt } from "./Typography-Ce4eGDV-.js";
|
|
4
|
+
import { n as rt, f as lt, o as he, k as Be, m as Te, q as at, h as it, i as ie, u as st, j as ct, e as ut, b as dt, R as pt, S as ft, s as bt, G as gt, L as vt } from "./ListItemButton-CxWpt9SR.js";
|
|
5
5
|
import { u as mt, V as ht } from "./variantColorInheritance-DZr7CNx6.js";
|
|
6
|
-
import { jsx as h, jsxs as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as St } from "./createSvgIcon-
|
|
6
|
+
import { jsx as h, jsxs as Me } from "react/jsx-runtime";
|
|
7
|
+
import { u as Je } from "./useButton-BkNIp1Dt.js";
|
|
8
|
+
import { c as St } from "./createSvgIcon-D2EzyIzB.js";
|
|
9
9
|
import { F as yt } from "./FormControlContext-Ct0huDDM.js";
|
|
10
10
|
import { v as xt } from "./visuallyHidden-B8J7BVSJ.js";
|
|
11
|
-
import { P as Ct } from "./Popper-
|
|
11
|
+
import { P as Ct } from "./Popper-BJbMQoEj.js";
|
|
12
12
|
function Rt(e) {
|
|
13
13
|
const {
|
|
14
14
|
value: t,
|
|
@@ -25,7 +25,7 @@ function Rt(e) {
|
|
|
25
25
|
}), {
|
|
26
26
|
getRootProps: x,
|
|
27
27
|
rootRef: T
|
|
28
|
-
} =
|
|
28
|
+
} = Je({
|
|
29
29
|
disabled: a,
|
|
30
30
|
focusableWhenDisabled: !0
|
|
31
31
|
}), y = Ae(p), O = l.useRef(null), k = l.useMemo(() => ({
|
|
@@ -185,28 +185,28 @@ function Vt(e) {
|
|
|
185
185
|
return f ? g : g == null ? [] : [g];
|
|
186
186
|
}, [g, f]), {
|
|
187
187
|
subitems: _,
|
|
188
|
-
contextValue:
|
|
188
|
+
contextValue: Q
|
|
189
189
|
} = st(), I = l.useMemo(() => V != null ? new Map(V.map((n, r) => [n.value, {
|
|
190
190
|
value: n.value,
|
|
191
191
|
label: n.label,
|
|
192
192
|
disabled: n.disabled,
|
|
193
193
|
ref: /* @__PURE__ */ l.createRef(),
|
|
194
194
|
id: `${z}_${r}`
|
|
195
|
-
}])) : _, [V, _, z]),
|
|
195
|
+
}])) : _, [V, _, z]), U = se(d, D), {
|
|
196
196
|
getRootProps: ee,
|
|
197
197
|
active: ce,
|
|
198
198
|
focusVisible: ue,
|
|
199
199
|
rootRef: de
|
|
200
|
-
} =
|
|
200
|
+
} = Je({
|
|
201
201
|
disabled: p,
|
|
202
202
|
rootRef: Z
|
|
203
|
-
}),
|
|
203
|
+
}), q = l.useMemo(() => Array.from(I.keys()), [I]), $ = l.useCallback((n) => {
|
|
204
204
|
if (t !== void 0) {
|
|
205
|
-
const r =
|
|
205
|
+
const r = q.find((s) => t(s, n));
|
|
206
206
|
return I.get(r);
|
|
207
207
|
}
|
|
208
208
|
return I.get(n);
|
|
209
|
-
}, [I, t,
|
|
209
|
+
}, [I, t, q]), pe = l.useCallback((n) => {
|
|
210
210
|
var r;
|
|
211
211
|
const s = $(n);
|
|
212
212
|
return (r = s == null ? void 0 : s.disabled) != null ? r : !1;
|
|
@@ -251,14 +251,14 @@ function Vt(e) {
|
|
|
251
251
|
getItemDomElement: m,
|
|
252
252
|
itemComparer: t,
|
|
253
253
|
isItemDisabled: pe,
|
|
254
|
-
rootRef:
|
|
254
|
+
rootRef: U,
|
|
255
255
|
onChange: ye,
|
|
256
256
|
onHighlightChange: xe,
|
|
257
257
|
onStateChange: Ce,
|
|
258
258
|
reducerActionContext: l.useMemo(() => ({
|
|
259
259
|
multiple: f
|
|
260
260
|
}), [f]),
|
|
261
|
-
items:
|
|
261
|
+
items: q,
|
|
262
262
|
getItemAsString: fe,
|
|
263
263
|
selectionMode: f ? "multiple" : "single",
|
|
264
264
|
stateReducer: Ot,
|
|
@@ -268,16 +268,16 @@ function Vt(e) {
|
|
|
268
268
|
getRootProps: ge,
|
|
269
269
|
contextValue: oe,
|
|
270
270
|
state: {
|
|
271
|
-
open:
|
|
272
|
-
highlightedValue:
|
|
271
|
+
open: w,
|
|
272
|
+
highlightedValue: J,
|
|
273
273
|
selectedValues: j
|
|
274
274
|
},
|
|
275
275
|
rootRef: ne
|
|
276
|
-
} = ct(Re), Ie = l.useRef(
|
|
276
|
+
} = ct(Re), Ie = l.useRef(w);
|
|
277
277
|
tt(() => {
|
|
278
|
-
if (
|
|
278
|
+
if (w && J !== null) {
|
|
279
279
|
var n;
|
|
280
|
-
const r = (n = $(
|
|
280
|
+
const r = (n = $(J)) == null ? void 0 : n.ref;
|
|
281
281
|
if (!D.current || !(r != null && r.current))
|
|
282
282
|
return;
|
|
283
283
|
Ie.current || r.current.focus({
|
|
@@ -286,7 +286,7 @@ function Vt(e) {
|
|
|
286
286
|
const s = D.current.getBoundingClientRect(), S = r.current.getBoundingClientRect();
|
|
287
287
|
S.top < s.top ? D.current.scrollTop -= s.top - S.top : S.bottom > s.bottom && (D.current.scrollTop += S.bottom - s.bottom);
|
|
288
288
|
}
|
|
289
|
-
}, [
|
|
289
|
+
}, [w, J, $]);
|
|
290
290
|
const re = l.useCallback((n) => $(n), [$]), Pe = (n) => (r) => {
|
|
291
291
|
var s;
|
|
292
292
|
if (n == null || (s = n.onClick) == null || s.call(n, r), !r.defaultMuiPrevented) {
|
|
@@ -308,7 +308,7 @@ function Vt(e) {
|
|
|
308
308
|
onKeyDown: Oe(n)
|
|
309
309
|
}), Ve = (n = {}) => u({}, n, ke(n), {
|
|
310
310
|
role: "combobox",
|
|
311
|
-
"aria-expanded":
|
|
311
|
+
"aria-expanded": w,
|
|
312
312
|
"aria-controls": z
|
|
313
313
|
}), De = (n = {}) => {
|
|
314
314
|
const r = me(n), s = he(Ve, ee);
|
|
@@ -328,18 +328,18 @@ function Vt(e) {
|
|
|
328
328
|
};
|
|
329
329
|
l.useDebugValue({
|
|
330
330
|
selectedOptions: j,
|
|
331
|
-
highlightedOption:
|
|
332
|
-
open:
|
|
331
|
+
highlightedOption: J,
|
|
332
|
+
open: w
|
|
333
333
|
});
|
|
334
|
-
const ve = l.useMemo(() => u({}, oe,
|
|
334
|
+
const ve = l.useMemo(() => u({}, oe, Q), [oe, Q]);
|
|
335
335
|
let L;
|
|
336
336
|
e.multiple ? L = j : L = j.length > 0 ? j[0] : null;
|
|
337
337
|
let P;
|
|
338
338
|
if (f)
|
|
339
339
|
P = L.map((n) => re(n)).filter((n) => n !== void 0);
|
|
340
340
|
else {
|
|
341
|
-
var
|
|
342
|
-
P = (
|
|
341
|
+
var M;
|
|
342
|
+
P = (M = re(L)) != null ? M : null;
|
|
343
343
|
}
|
|
344
344
|
const F = (n) => (r) => {
|
|
345
345
|
var s;
|
|
@@ -378,10 +378,10 @@ function Vt(e) {
|
|
|
378
378
|
getListboxProps: le,
|
|
379
379
|
getOptionMetadata: re,
|
|
380
380
|
listboxRef: ne,
|
|
381
|
-
open:
|
|
382
|
-
options:
|
|
381
|
+
open: w,
|
|
382
|
+
options: q,
|
|
383
383
|
value: L,
|
|
384
|
-
highlightedOption:
|
|
384
|
+
highlightedOption: J
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
387
|
function Dt(e) {
|
|
@@ -420,7 +420,7 @@ const Ht = Ne("MuiOption", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
420
420
|
highlighted: i,
|
|
421
421
|
selected: a
|
|
422
422
|
} = e;
|
|
423
|
-
return
|
|
423
|
+
return qe({
|
|
424
424
|
root: ["root", t && "disabled", i && "highlighted", a && "selected"]
|
|
425
425
|
}, zt, {});
|
|
426
426
|
}, Tt = G(dt, {
|
|
@@ -440,7 +440,7 @@ const Ht = Ne("MuiOption", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
440
440
|
};
|
|
441
441
|
}), Bt = /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef(function(t, i) {
|
|
442
442
|
var a;
|
|
443
|
-
const c =
|
|
443
|
+
const c = Ue({
|
|
444
444
|
props: t,
|
|
445
445
|
name: "JoyOption"
|
|
446
446
|
}), {
|
|
@@ -475,19 +475,19 @@ const Ht = Ne("MuiOption", ["root", "colorPrimary", "colorNeutral", "colorDanger
|
|
|
475
475
|
variant: B,
|
|
476
476
|
color: W,
|
|
477
477
|
row: V
|
|
478
|
-
}), _ = Lt(A),
|
|
478
|
+
}), _ = Lt(A), Q = u({}, E, {
|
|
479
479
|
component: p,
|
|
480
480
|
slots: O,
|
|
481
481
|
slotProps: k
|
|
482
|
-
}), [I,
|
|
482
|
+
}), [I, U] = K("root", {
|
|
483
483
|
ref: i,
|
|
484
484
|
getSlotProps: Z,
|
|
485
485
|
elementType: Tt,
|
|
486
|
-
externalForwardedProps:
|
|
486
|
+
externalForwardedProps: Q,
|
|
487
487
|
className: _.root,
|
|
488
488
|
ownerState: A
|
|
489
489
|
});
|
|
490
|
-
return /* @__PURE__ */ h(I, u({},
|
|
490
|
+
return /* @__PURE__ */ h(I, u({}, U, {
|
|
491
491
|
children: b
|
|
492
492
|
}));
|
|
493
493
|
})), _t = /* @__PURE__ */ l.forwardRef(function(t, i) {
|
|
@@ -539,13 +539,13 @@ process.env.NODE_ENV !== "production" && (_t.propTypes = {
|
|
|
539
539
|
*/
|
|
540
540
|
variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
|
|
541
541
|
});
|
|
542
|
-
const
|
|
542
|
+
const wt = St(/* @__PURE__ */ h("path", {
|
|
543
543
|
d: "m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"
|
|
544
544
|
}), "Unfold");
|
|
545
|
-
function
|
|
545
|
+
function Mt(e) {
|
|
546
546
|
return Fe("MuiSelect", e);
|
|
547
547
|
}
|
|
548
|
-
const
|
|
548
|
+
const Y = Ne("MuiSelect", ["root", "button", "indicator", "startDecorator", "endDecorator", "popper", "listbox", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "focusVisible", "disabled", "expanded", "multiple"]);
|
|
549
549
|
var Ee;
|
|
550
550
|
const Et = ["action", "autoFocus", "children", "defaultValue", "defaultListboxOpen", "disabled", "getSerializedValue", "placeholder", "listboxId", "listboxOpen", "onChange", "onListboxOpenChange", "onClose", "renderValue", "required", "value", "size", "variant", "color", "startDecorator", "endDecorator", "indicator", "aria-describedby", "aria-label", "aria-labelledby", "id", "name", "multiple", "slots", "slotProps"];
|
|
551
551
|
function At(e) {
|
|
@@ -587,7 +587,7 @@ const Nt = [{
|
|
|
587
587
|
indicator: ["indicator", b && "expanded"],
|
|
588
588
|
listbox: ["listbox", b && "expanded", i && "disabled"]
|
|
589
589
|
};
|
|
590
|
-
return
|
|
590
|
+
return qe(f, Mt, {});
|
|
591
591
|
}, Wt = G("div", {
|
|
592
592
|
name: "JoySelect",
|
|
593
593
|
slot: "Root",
|
|
@@ -680,22 +680,22 @@ const Nt = [{
|
|
|
680
680
|
margin: "calc(var(--variant-borderWidth, 0px) * -1)"
|
|
681
681
|
// for outlined variant
|
|
682
682
|
},
|
|
683
|
-
[`&.${
|
|
683
|
+
[`&.${Y.focusVisible}`]: {
|
|
684
684
|
"--Select-indicatorColor": d == null ? void 0 : d.color,
|
|
685
685
|
"&::before": {
|
|
686
686
|
boxShadow: "inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"
|
|
687
687
|
}
|
|
688
688
|
},
|
|
689
|
-
[`&.${
|
|
689
|
+
[`&.${Y.disabled}`]: {
|
|
690
690
|
"--Select-indicatorColor": "inherit"
|
|
691
691
|
}
|
|
692
692
|
}), {
|
|
693
693
|
"&:hover": (p = e.variants[`${t.variant}Hover`]) == null ? void 0 : p[t.color],
|
|
694
|
-
[`&.${
|
|
694
|
+
[`&.${Y.disabled}`]: (b = e.variants[`${t.variant}Disabled`]) == null ? void 0 : b[t.color]
|
|
695
695
|
}, f !== void 0 && {
|
|
696
696
|
"--Select-radius": f
|
|
697
697
|
}];
|
|
698
|
-
}),
|
|
698
|
+
}), Ut = G("button", {
|
|
699
699
|
name: "JoySelect",
|
|
700
700
|
slot: "Button",
|
|
701
701
|
overridesResolver: (e, t) => t.button
|
|
@@ -732,7 +732,7 @@ const Nt = [{
|
|
|
732
732
|
bottom: "calc(-1 * var(--variant-borderWidth, 0px))",
|
|
733
733
|
borderRadius: "var(--Select-radius)"
|
|
734
734
|
}
|
|
735
|
-
})),
|
|
735
|
+
})), qt = G(ft, {
|
|
736
736
|
name: "JoySelect",
|
|
737
737
|
slot: "Listbox",
|
|
738
738
|
overridesResolver: (e, t) => t.listbox
|
|
@@ -761,7 +761,7 @@ const Nt = [{
|
|
|
761
761
|
}, !(a != null && a.backgroundColor) && {
|
|
762
762
|
backgroundColor: e.vars.palette.background.popup
|
|
763
763
|
});
|
|
764
|
-
}),
|
|
764
|
+
}), Jt = G("span", {
|
|
765
765
|
name: "JoySelect",
|
|
766
766
|
slot: "StartDecorator",
|
|
767
767
|
overridesResolver: (e, t) => t.startDecorator
|
|
@@ -803,15 +803,15 @@ const Nt = [{
|
|
|
803
803
|
alignItems: "center",
|
|
804
804
|
marginInlineStart: "var(--Select-gap)",
|
|
805
805
|
marginInlineEnd: "calc(var(--Select-paddingInline) / -4)",
|
|
806
|
-
[`.${
|
|
806
|
+
[`.${Y.endDecorator} + &`]: {
|
|
807
807
|
marginInlineStart: "calc(var(--Select-gap) / 2)"
|
|
808
808
|
},
|
|
809
|
-
[`&.${
|
|
809
|
+
[`&.${Y.expanded}, .${Y.disabled} > &`]: {
|
|
810
810
|
"--Icon-color": "currentColor"
|
|
811
811
|
}
|
|
812
812
|
})), Gt = /* @__PURE__ */ l.forwardRef(function(t, i) {
|
|
813
813
|
var a, c, p, b, d, f, x;
|
|
814
|
-
const T =
|
|
814
|
+
const T = Ue({
|
|
815
815
|
props: t,
|
|
816
816
|
name: "JoySelect"
|
|
817
817
|
}), y = T, {
|
|
@@ -830,15 +830,15 @@ const Nt = [{
|
|
|
830
830
|
onClose: H,
|
|
831
831
|
renderValue: A,
|
|
832
832
|
required: _ = !1,
|
|
833
|
-
value:
|
|
833
|
+
value: Q,
|
|
834
834
|
size: I = "md",
|
|
835
|
-
variant:
|
|
835
|
+
variant: U = "outlined",
|
|
836
836
|
color: ee = "neutral",
|
|
837
837
|
startDecorator: ce,
|
|
838
838
|
endDecorator: ue,
|
|
839
|
-
indicator: de = Ee || (Ee = /* @__PURE__ */ h(
|
|
839
|
+
indicator: de = Ee || (Ee = /* @__PURE__ */ h(wt, {})),
|
|
840
840
|
// props to forward to the button (all handlers should go through slotProps.button)
|
|
841
|
-
"aria-describedby":
|
|
841
|
+
"aria-describedby": q,
|
|
842
842
|
"aria-label": $,
|
|
843
843
|
"aria-labelledby": pe,
|
|
844
844
|
id: fe,
|
|
@@ -854,14 +854,14 @@ const Nt = [{
|
|
|
854
854
|
return v();
|
|
855
855
|
}, [v]);
|
|
856
856
|
}
|
|
857
|
-
const Re = (a = (c = t.disabled) != null ? c : m == null ? void 0 : m.disabled) != null ? a : W, N = (p = (b = t.size) != null ? b : m == null ? void 0 : m.size) != null ? p : I, ge = (d = t.color) != null ? d : m != null && m.error ? "danger" : (f = m == null ? void 0 : m.color) != null ? f : ee, oe = A ?? At, [
|
|
857
|
+
const Re = (a = (c = t.disabled) != null ? c : m == null ? void 0 : m.disabled) != null ? a : W, N = (p = (b = t.size) != null ? b : m == null ? void 0 : m.size) != null ? p : I, ge = (d = t.color) != null ? d : m != null && m.error ? "danger" : (f = m == null ? void 0 : m.color) != null ? f : ee, oe = A ?? At, [w, J] = l.useState(null), j = l.useRef(null), ne = l.useRef(null), Ie = se(i, j);
|
|
858
858
|
l.useImperativeHandle(O, () => ({
|
|
859
859
|
focusVisible: () => {
|
|
860
860
|
var v;
|
|
861
861
|
(v = ne.current) == null || v.focus();
|
|
862
862
|
}
|
|
863
863
|
}), []), l.useEffect(() => {
|
|
864
|
-
|
|
864
|
+
J(j.current);
|
|
865
865
|
}, []), l.useEffect(() => {
|
|
866
866
|
k && ne.current.focus();
|
|
867
867
|
}, [k]);
|
|
@@ -891,7 +891,7 @@ const Nt = [{
|
|
|
891
891
|
onChange: D,
|
|
892
892
|
onOpenChange: re,
|
|
893
893
|
open: Z,
|
|
894
|
-
value:
|
|
894
|
+
value: Q
|
|
895
895
|
}), P = u({}, T, {
|
|
896
896
|
active: Pe,
|
|
897
897
|
defaultListboxOpen: B,
|
|
@@ -901,49 +901,49 @@ const Nt = [{
|
|
|
901
901
|
renderValue: oe,
|
|
902
902
|
value: L,
|
|
903
903
|
size: N,
|
|
904
|
-
variant:
|
|
904
|
+
variant: U,
|
|
905
905
|
color: ge
|
|
906
|
-
}),
|
|
906
|
+
}), M = Ft(P), F = u({}, Ce, {
|
|
907
907
|
slots: ye,
|
|
908
908
|
slotProps: xe
|
|
909
|
-
}),
|
|
909
|
+
}), X = l.useMemo(() => {
|
|
910
910
|
let v;
|
|
911
911
|
if (te)
|
|
912
912
|
v = L.map(($e) => le($e)).filter(($e) => $e !== void 0);
|
|
913
913
|
else {
|
|
914
|
-
var
|
|
915
|
-
v = (
|
|
914
|
+
var we;
|
|
915
|
+
v = (we = le(L)) != null ? we : null;
|
|
916
916
|
}
|
|
917
917
|
return v;
|
|
918
918
|
}, [le, L, te]), [n, r] = K("root", {
|
|
919
919
|
ref: Ie,
|
|
920
|
-
className:
|
|
920
|
+
className: M.root,
|
|
921
921
|
elementType: Wt,
|
|
922
922
|
externalForwardedProps: F,
|
|
923
923
|
ownerState: P
|
|
924
924
|
}), [s, S] = K("button", {
|
|
925
925
|
additionalProps: {
|
|
926
|
-
"aria-describedby":
|
|
926
|
+
"aria-describedby": q ?? (m == null ? void 0 : m["aria-describedby"]),
|
|
927
927
|
"aria-label": $,
|
|
928
928
|
"aria-labelledby": pe ?? (m == null ? void 0 : m.labelId),
|
|
929
929
|
"aria-required": _ ? "true" : void 0,
|
|
930
930
|
id: fe ?? (m == null ? void 0 : m.htmlFor),
|
|
931
931
|
name: be
|
|
932
932
|
},
|
|
933
|
-
className:
|
|
934
|
-
elementType:
|
|
933
|
+
className: M.button,
|
|
934
|
+
elementType: Ut,
|
|
935
935
|
externalForwardedProps: F,
|
|
936
936
|
getSlotProps: De,
|
|
937
937
|
ownerState: P
|
|
938
938
|
}), [je, ae] = K("listbox", {
|
|
939
939
|
additionalProps: {
|
|
940
|
-
anchorEl:
|
|
940
|
+
anchorEl: w,
|
|
941
941
|
open: ve,
|
|
942
942
|
placement: "bottom",
|
|
943
943
|
keepMounted: !0
|
|
944
944
|
},
|
|
945
|
-
className:
|
|
946
|
-
elementType:
|
|
945
|
+
className: M.listbox,
|
|
946
|
+
elementType: qt,
|
|
947
947
|
externalForwardedProps: F,
|
|
948
948
|
getSlotProps: ze,
|
|
949
949
|
ownerState: u({}, P, {
|
|
@@ -953,39 +953,39 @@ const Nt = [{
|
|
|
953
953
|
}),
|
|
954
954
|
getSlotOwnerState: (v) => ({
|
|
955
955
|
size: v.size || N,
|
|
956
|
-
variant: v.variant ||
|
|
956
|
+
variant: v.variant || U,
|
|
957
957
|
color: v.color || (v.disablePortal ? ge : ee),
|
|
958
958
|
disableColorInversion: !v.disablePortal
|
|
959
959
|
})
|
|
960
960
|
}), [Ke, Ge] = K("startDecorator", {
|
|
961
|
-
className:
|
|
962
|
-
elementType:
|
|
961
|
+
className: M.startDecorator,
|
|
962
|
+
elementType: Jt,
|
|
963
963
|
externalForwardedProps: F,
|
|
964
964
|
ownerState: P
|
|
965
|
-
}), [
|
|
966
|
-
className:
|
|
965
|
+
}), [Qe, Xe] = K("endDecorator", {
|
|
966
|
+
className: M.endDecorator,
|
|
967
967
|
elementType: jt,
|
|
968
968
|
externalForwardedProps: F,
|
|
969
969
|
ownerState: P
|
|
970
|
-
}), [
|
|
971
|
-
className:
|
|
970
|
+
}), [Ye, Ze] = K("indicator", {
|
|
971
|
+
className: M.indicator,
|
|
972
972
|
elementType: Kt,
|
|
973
973
|
externalForwardedProps: F,
|
|
974
974
|
ownerState: P
|
|
975
975
|
}), et = l.useMemo(() => [...Nt, ...ae.modifiers || []], [ae.modifiers]);
|
|
976
976
|
let _e = C;
|
|
977
|
-
return (Array.isArray(
|
|
978
|
-
children: [/* @__PURE__ */
|
|
977
|
+
return (Array.isArray(X) && X.length > 0 || !Array.isArray(X) && X) && (_e = oe(X)), /* @__PURE__ */ Me(l.Fragment, {
|
|
978
|
+
children: [/* @__PURE__ */ Me(n, u({}, r, {
|
|
979
979
|
children: [ce && /* @__PURE__ */ h(Ke, u({}, Ge, {
|
|
980
980
|
children: ce
|
|
981
981
|
})), /* @__PURE__ */ h(s, u({}, S, {
|
|
982
982
|
children: _e
|
|
983
|
-
})), ue && /* @__PURE__ */ h(
|
|
983
|
+
})), ue && /* @__PURE__ */ h(Qe, u({}, Xe, {
|
|
984
984
|
children: ue
|
|
985
|
-
})), de && /* @__PURE__ */ h(
|
|
985
|
+
})), de && /* @__PURE__ */ h(Ye, u({}, Ze, {
|
|
986
986
|
children: de
|
|
987
987
|
})), /* @__PURE__ */ h("input", u({}, He()))]
|
|
988
|
-
})),
|
|
988
|
+
})), w && /* @__PURE__ */ h(je, u({}, ae, {
|
|
989
989
|
className: ot(ae.className),
|
|
990
990
|
modifiers: et
|
|
991
991
|
}, !((x = T.slots) != null && x.listbox) && {
|
|
@@ -997,7 +997,7 @@ const Nt = [{
|
|
|
997
997
|
children: /* @__PURE__ */ h(Dt, {
|
|
998
998
|
value: ke,
|
|
999
999
|
children: /* @__PURE__ */ h(ht, {
|
|
1000
|
-
variant:
|
|
1000
|
+
variant: U,
|
|
1001
1001
|
color: ee,
|
|
1002
1002
|
children: /* @__PURE__ */ h(gt.Provider, {
|
|
1003
1003
|
value: "select",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as k, F as x, a5 as v, _ as c, H as P, I as T, P as o, J as f } from "./PrizeCard-YH9jftwY.js";
|
|
2
2
|
import * as O from "react";
|
|
3
|
-
import { s as R, r as _, h as $, j as N, b as j, c as S, d as I } from "./Typography-
|
|
4
|
-
import { jsx as
|
|
5
|
-
function
|
|
3
|
+
import { s as R, r as _, h as $, j as N, b as j, c as S, d as I } from "./Typography-Ce4eGDV-.js";
|
|
4
|
+
import { jsx as U } from "react/jsx-runtime";
|
|
5
|
+
function W(s) {
|
|
6
6
|
return k("MuiSheet", s);
|
|
7
7
|
}
|
|
8
8
|
x("MuiSheet", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
9
|
-
const
|
|
9
|
+
const J = ["className", "color", "component", "variant", "invertedColors", "slots", "slotProps"], L = (s) => {
|
|
10
10
|
const {
|
|
11
11
|
variant: r,
|
|
12
12
|
color: t
|
|
13
13
|
} = s, a = {
|
|
14
14
|
root: ["root", r && `variant${f(r)}`, t && `color${f(t)}`]
|
|
15
15
|
};
|
|
16
|
-
return I(a,
|
|
17
|
-
},
|
|
16
|
+
return I(a, W, {});
|
|
17
|
+
}, B = R("div", {
|
|
18
18
|
name: "JoySheet",
|
|
19
19
|
slot: "Root",
|
|
20
20
|
overridesResolver: (s, r) => r.root
|
|
@@ -44,7 +44,7 @@ const W = ["className", "color", "component", "variant", "invertedColors", "slot
|
|
|
44
44
|
backgroundColor: s.vars.palette.background.surface,
|
|
45
45
|
position: "relative"
|
|
46
46
|
}), c({}, s.typography["body-md"], r.variant === "solid" && r.color && r.invertedColors && $(r.color)(s), r.variant === "soft" && r.color && r.invertedColors && N(r.color)(s), (a = s.variants[r.variant]) == null ? void 0 : a[r.color], e)];
|
|
47
|
-
}),
|
|
47
|
+
}), D = /* @__PURE__ */ O.forwardRef(function(r, t) {
|
|
48
48
|
const a = j({
|
|
49
49
|
props: r,
|
|
50
50
|
name: "JoySheet"
|
|
@@ -56,25 +56,25 @@ const W = ["className", "color", "component", "variant", "invertedColors", "slot
|
|
|
56
56
|
invertedColors: p = !1,
|
|
57
57
|
slots: n = {},
|
|
58
58
|
slotProps: y = {}
|
|
59
|
-
} = a, g = P(a,
|
|
59
|
+
} = a, g = P(a, J), u = c({}, a, {
|
|
60
60
|
color: l,
|
|
61
61
|
component: i,
|
|
62
62
|
invertedColors: p,
|
|
63
63
|
variant: d
|
|
64
|
-
}), b =
|
|
64
|
+
}), b = L(u), m = c({}, g, {
|
|
65
65
|
component: i,
|
|
66
66
|
slots: n,
|
|
67
67
|
slotProps: y
|
|
68
68
|
}), [C, h] = S("root", {
|
|
69
69
|
ref: t,
|
|
70
70
|
className: T(b.root, e),
|
|
71
|
-
elementType:
|
|
71
|
+
elementType: B,
|
|
72
72
|
externalForwardedProps: m,
|
|
73
73
|
ownerState: u
|
|
74
74
|
});
|
|
75
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ U(C, c({}, h));
|
|
76
76
|
});
|
|
77
|
-
process.env.NODE_ENV !== "production" && (
|
|
77
|
+
process.env.NODE_ENV !== "production" && (D.propTypes = {
|
|
78
78
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
79
79
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
80
80
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -127,5 +127,5 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
127
127
|
variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
|
|
128
128
|
});
|
|
129
129
|
export {
|
|
130
|
-
|
|
130
|
+
D as S
|
|
131
131
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, Fragment as C } from "react/jsx-runtime";
|
|
2
|
-
import { a as y, g as h, u as b, f as p, B as I } from "./PrizeCard-
|
|
3
|
-
import { B as l } from "./Button-
|
|
4
|
-
import { T as t } from "./Typography-
|
|
2
|
+
import { a as y, g as h, u as b, f as p, B as I } from "./PrizeCard-YH9jftwY.js";
|
|
3
|
+
import { B as l } from "./Button-By0gW9vl.js";
|
|
4
|
+
import { T as t } from "./Typography-Ce4eGDV-.js";
|
|
5
5
|
const v = (n) => {
|
|
6
6
|
var u;
|
|
7
7
|
const { t: m } = y(), f = h(), g = b().primary, x = p().xl, i = n.primaryColor || f.palette.primary.plainColor, a = f.palette.primary.onPrimary, s = ((u = n.signInCTA) == null ? void 0 : u.defaultLabel) || m("common.signIn"), e = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { g as l, B as n } from "./PrizeCard-
|
|
3
|
-
import { C as a } from "./Typography-
|
|
2
|
+
import { g as l, B as n } from "./PrizeCard-YH9jftwY.js";
|
|
3
|
+
import { C as a } from "./Typography-Ce4eGDV-.js";
|
|
4
4
|
const g = ({ my: s }) => {
|
|
5
5
|
const r = l(), t = r.palette.neutral.softBg, e = r.palette.neutral.solidBg;
|
|
6
6
|
return /* @__PURE__ */ o(
|