fansunited-frontend-components 0.0.92 → 0.0.94

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.
Files changed (139) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +139 -146
  3. package/ClassicQuizPlay.js +1 -1
  4. package/CollectLead.js +14 -20
  5. package/CompetitionStatistics.js +27 -27
  6. package/CompetitorCard.js +895 -891
  7. package/Discussion.js +1 -1
  8. package/EitherOrPlay.js +1 -1
  9. package/EventCard.js +1494 -1571
  10. package/EventGamePlay.js +1 -1
  11. package/Leaderboard.js +249 -257
  12. package/List.js +319 -436
  13. package/MatchQuizPlay.js +1 -1
  14. package/Odds.js +30 -30
  15. package/PersonalityQuizPlay.js +1 -1
  16. package/PickThePair.js +627 -693
  17. package/PlayerOfTheMatch.js +256 -279
  18. package/PollVote.js +1 -1
  19. package/Predictor.js +19443 -2
  20. package/README.md +2 -1
  21. package/Standings.js +94 -99
  22. package/TopX.js +5871 -6988
  23. package/chunks/ChanceGameEmbedVariant-C3NGwvTF.js +21 -0
  24. package/chunks/OddsSkeleton-Bav8FHHN.js +26 -0
  25. package/chunks/{OddsStrip-B159Nivm.js → OddsStrip-CviVfQI4.js} +51 -53
  26. package/chunks/{PickOneOfX-D9qlxKTD.js → PickOneOfX-a6Dv0-rR.js} +210 -212
  27. package/chunks/index-B1d9q8fX.js +4 -0
  28. package/chunks/index-BP0pvFJ4.js +4 -0
  29. package/chunks/index-CHZyL_g_.js +4 -0
  30. package/chunks/index-CeCUdRmF.js +4 -0
  31. package/chunks/index-Ckyyw-I8.js +4 -0
  32. package/chunks/index-DGvCP5G8.js +4 -0
  33. package/chunks/index-yjMVOgwO.js +4 -0
  34. package/chunks/{main-CcPVuc5G.js → main-CFwRpvUi.js} +219 -238
  35. package/chunks/{main-By2Fg4Us.js → main-D9tFZv2q.js} +272 -309
  36. package/chunks/{main-Db4YC1C9.js → main-Dj4Manb5.js} +386 -407
  37. package/chunks/{main-BhONg691.js → main-DjiQz1dv.js} +764 -1125
  38. package/chunks/{main-BoLNJccN.js → main-Dys2_Jt2.js} +1625 -1954
  39. package/chunks/{main-JAewg2VD.js → main-dwV_55lz.js} +409 -432
  40. package/chunks/main-eAQMCxQ7.js +1949 -0
  41. package/chunks/{main-CWfREbUv.js → main-gexg6lc-.js} +959 -977
  42. package/index.js +40 -44
  43. package/package.json +13 -5
  44. package/chunks/AccessTime-B7Q_InTi.js +0 -10
  45. package/chunks/AlertMessage-CTbc9daZ.js +0 -318
  46. package/chunks/Avatar-Ve0m4ut_.js +0 -353
  47. package/chunks/Button-x1sQVMH2.js +0 -665
  48. package/chunks/Card-DfxnA3Cz.js +0 -196
  49. package/chunks/CardActions-TMBAbk8a.js +0 -140
  50. package/chunks/CardContent-CLQHztIU.js +0 -106
  51. package/chunks/ChanceGameEmbedVariant-C3TKbPI4.js +0 -913
  52. package/chunks/CheckCircle-DW1VzjQO.js +0 -8
  53. package/chunks/Chip-BUoNpinI.js +0 -365
  54. package/chunks/CircularProgress-D88LgW2V.js +0 -317
  55. package/chunks/Close-BxLZcPtb.js +0 -9
  56. package/chunks/Close-DVx6f5-e.js +0 -8
  57. package/chunks/CollectLeadForm-DtUFKk99.js +0 -3419
  58. package/chunks/ConsentsList-BcIMKviP.js +0 -339
  59. package/chunks/DirectionScope-CK0duYt8.js +0 -36
  60. package/chunks/Divider-D_ALv2uC.js +0 -166
  61. package/chunks/Edit-CiKqhDom.js +0 -99
  62. package/chunks/EmojiEvents-BYoxruEl.js +0 -8
  63. package/chunks/FavoriteBorder-YhT6RHv5.js +0 -11
  64. package/chunks/FormControl-BNG04EhC.js +0 -656
  65. package/chunks/FormControlContext-Ct0huDDM.js +0 -6
  66. package/chunks/FormLabel-Bl7hTa8O.js +0 -130
  67. package/chunks/GlobalStyles-PokSS9bO.js +0 -12
  68. package/chunks/InlineSpinner-BhKW6lxZ.js +0 -28
  69. package/chunks/Input-B7kPqO0b.js +0 -391
  70. package/chunks/KeyboardArrowDown-OGGGLEnE.js +0 -8
  71. package/chunks/KeyboardArrowRight-DN7qrp17.js +0 -11
  72. package/chunks/KeyboardArrowUp-jvN5m_A0.js +0 -8
  73. package/chunks/Link-brb09X-6.js +0 -319
  74. package/chunks/ListItemButton-BFG5QJbo.js +0 -1151
  75. package/chunks/ModalClose-D3i-AyMB.js +0 -153
  76. package/chunks/ModalDialog-Be6w76fh.js +0 -880
  77. package/chunks/NotFoundSkeleton-BHRVG8yg.js +0 -83
  78. package/chunks/Notification-CC66HKXb.js +0 -614
  79. package/chunks/OddsSkeleton-BBOVhfsn.js +0 -137
  80. package/chunks/OverlayScoreStateSkeleton-D5rnBJ_w.js +0 -154
  81. package/chunks/OverlayScoreStateWrapperSkeleton-CTXzD0bm.js +0 -81
  82. package/chunks/OverlaySignInSkeleton-T8A_9Tco.js +0 -518
  83. package/chunks/OverlaySkeleton-y02LRXZy.js +0 -1193
  84. package/chunks/Person-BD-IO4aX.js +0 -8
  85. package/chunks/PersonOutline-Nxl_9g9S.js +0 -8
  86. package/chunks/Popper-CGfJHTbM.js +0 -1263
  87. package/chunks/Portal-DQQSLiON.js +0 -74
  88. package/chunks/Portal-X8O64KaQ.js +0 -66
  89. package/chunks/Predictor-BJBBwZ6R.js +0 -19513
  90. package/chunks/PrizeCard-B2tBhY45.js +0 -36400
  91. package/chunks/Search-jaDXe8g7.js +0 -14
  92. package/chunks/Select-CzBMHr7z.js +0 -1165
  93. package/chunks/Sheet-x-YGYOYz.js +0 -132
  94. package/chunks/SignInCta-3NFxIOuf.js +0 -79
  95. package/chunks/Spinner-_5U881sC.js +0 -39
  96. package/chunks/SportsSoccer-DLUgspA-.js +0 -20
  97. package/chunks/Stack-CDpKA1D-.js +0 -169
  98. package/chunks/StandardContentSkeleton-DaZftDxZ.js +0 -57
  99. package/chunks/Table-IJ9-D2DF.js +0 -394
  100. package/chunks/Tabs-iyOvjGfd.js +0 -1084
  101. package/chunks/Textarea-Dv_Z4l5j.js +0 -475
  102. package/chunks/TimerOutlined-jNsK__Zz.js +0 -8
  103. package/chunks/Tooltip-clSjN1oC.js +0 -535
  104. package/chunks/Typography-BsucZNXl.js +0 -775
  105. package/chunks/areArraysEqual-B3mXtHvh.js +0 -6
  106. package/chunks/colorInversionUtils-AoR_6ghW.js +0 -347
  107. package/chunks/createSvgIcon-BWoHeNkc.js +0 -2813
  108. package/chunks/createSvgIcon-DBkOhFdn.js +0 -206
  109. package/chunks/dividerClasses-BkQMLbsL.js +0 -9
  110. package/chunks/elementAcceptingRef-DjUfkpLB.js +0 -25
  111. package/chunks/enums-B1lTCQvC.js +0 -15
  112. package/chunks/formLabelClasses-N0g8NZ67.js +0 -9
  113. package/chunks/getReactElementRef-B3MFPBbS.js +0 -21
  114. package/chunks/helpers-CKFwVhwj.js +0 -558
  115. package/chunks/index-Bg5jypgn.js +0 -11
  116. package/chunks/index-Bnad45hB.js +0 -4
  117. package/chunks/index-C6rtfeRX.js +0 -4
  118. package/chunks/index-CFc0WTOi.js +0 -848
  119. package/chunks/index-C_kf8WZI.js +0 -4
  120. package/chunks/index-CaVpDbdC.js +0 -4
  121. package/chunks/index-DJJVbXn_.js +0 -4
  122. package/chunks/index-DQO7VDRC.js +0 -4
  123. package/chunks/index-Kgehqf8J.js +0 -4
  124. package/chunks/main-W_W6YBtr.js +0 -3280
  125. package/chunks/ownerWindow-PI509BpA.js +0 -7
  126. package/chunks/searchEntities-SJcoznz0.js +0 -38
  127. package/chunks/sportsEvents-CGX-WkNB.js +0 -27
  128. package/chunks/useButton-C9taTgFS.js +0 -106
  129. package/chunks/useConsents-BLhgfEDf.js +0 -1168
  130. package/chunks/useControlled-BYdyS7Pn.js +0 -31
  131. package/chunks/useEmbedCode-DCWnWGak.js +0 -31
  132. package/chunks/useEventCallback-C9W0M_8l.js +0 -14
  133. package/chunks/useForwardedInput-CkAnayh_.js +0 -180
  134. package/chunks/useImageVariant-B62O7iLC.js +0 -15
  135. package/chunks/useInfoPage-BHdgKdme.js +0 -50
  136. package/chunks/useParticipationDraft-Brnd_p3w.js +0 -307
  137. package/chunks/useSwitch-DLSSqtcZ.js +0 -66
  138. package/chunks/variantColorInheritance-DZr7CNx6.js +0 -30
  139. package/chunks/visuallyHidden-B8J7BVSJ.js +0 -14
@@ -1,353 +0,0 @@
1
- import { G as C, F as k, _ as c, P as o, H as R, I as L, J as G } from "./PrizeCard-B2tBhY45.js";
2
- import * as p from "react";
3
- import { s as z, a as j, b as h, c as F } from "./Typography-BsucZNXl.js";
4
- import { c as V } from "./createSvgIcon-DBkOhFdn.js";
5
- import { jsx as v } from "react/jsx-runtime";
6
- const H = V(/* @__PURE__ */ v("path", {
7
- d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
8
- }), "Person");
9
- function W(r) {
10
- return C("MuiAvatar", r);
11
- }
12
- k("MuiAvatar", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "fallback", "sizeSm", "sizeMd", "sizeLg", "img", "variantOutlined", "variantSoft", "variantSolid"]);
13
- function q(r) {
14
- return C("MuiAvatarGroup", r);
15
- }
16
- k("MuiAvatarGroup", ["root"]);
17
- const B = ["className", "color", "component", "size", "variant", "children", "slots", "slotProps"], I = /* @__PURE__ */ p.createContext(void 0);
18
- process.env.NODE_ENV !== "production" && (I.displayName = "AvatarGroupContext");
19
- const K = () => F({
20
- root: ["root"]
21
- }, q, {}), Q = z("div", {
22
- name: "JoyAvatarGroup",
23
- slot: "Root",
24
- overridesResolver: (r, e) => e.root
25
- })(({
26
- ownerState: r,
27
- theme: e
28
- }) => c({}, r.size === "sm" && {
29
- "--AvatarGroup-gap": "-0.375rem",
30
- "--Avatar-ringSize": "2px"
31
- }, r.size === "md" && {
32
- "--AvatarGroup-gap": "-0.5rem",
33
- "--Avatar-ringSize": "2px"
34
- }, r.size === "lg" && {
35
- "--AvatarGroup-gap": "-0.625rem",
36
- "--Avatar-ringSize": "4px"
37
- }, {
38
- "--Avatar-ring": `0 0 0 var(--Avatar-ringSize) var(--Avatar-ringColor, ${e.vars.palette.background.surface})`,
39
- "--Avatar-marginInlineStart": "var(--AvatarGroup-gap)",
40
- display: "flex",
41
- marginInlineStart: "calc(-1 * var(--AvatarGroup-gap))"
42
- })), X = /* @__PURE__ */ p.forwardRef(function(e, a) {
43
- const t = j({
44
- props: e,
45
- name: "JoyAvatarGroup"
46
- }), {
47
- className: s,
48
- color: n,
49
- component: i = "div",
50
- size: l = "md",
51
- variant: f,
52
- children: d,
53
- slots: m = {},
54
- slotProps: g = {}
55
- } = t, b = R(t, B), y = p.useMemo(() => c({}, t, {
56
- color: n,
57
- component: i,
58
- size: l,
59
- variant: f
60
- }), [n, i, t, l, f]), T = K(), [x, O] = h("root", {
61
- ref: a,
62
- className: L(T.root, s),
63
- elementType: Q,
64
- externalForwardedProps: c({}, b, {
65
- component: i,
66
- slots: m,
67
- slotProps: g
68
- }),
69
- ownerState: y
70
- });
71
- return /* @__PURE__ */ v(I.Provider, {
72
- value: y,
73
- children: /* @__PURE__ */ v(x, c({}, O, {
74
- children: d
75
- }))
76
- });
77
- });
78
- process.env.NODE_ENV !== "production" && (X.propTypes = {
79
- // ┌────────────────────────────── Warning ──────────────────────────────┐
80
- // │ These PropTypes are generated from the TypeScript type definitions. │
81
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
82
- // └─────────────────────────────────────────────────────────────────────┘
83
- /**
84
- * Used to render icon or text elements inside the AvatarGroup if `src` is not set.
85
- * This can be an element, or just a string.
86
- */
87
- children: o.node,
88
- /**
89
- * @ignore
90
- */
91
- className: o.string,
92
- /**
93
- * The color of the component. It supports those theme colors that make sense for this component.
94
- * @default 'neutral'
95
- */
96
- color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
97
- /**
98
- * The component used for the root node.
99
- * Either a string to use a HTML element or a component.
100
- */
101
- component: o.elementType,
102
- /**
103
- * The size of the component.
104
- * It accepts theme values between 'sm' and 'lg'.
105
- * @default 'md'
106
- */
107
- size: o.oneOfType([o.oneOf(["lg", "md", "sm"]), o.string]),
108
- /**
109
- * The props used for each slot inside.
110
- * @default {}
111
- */
112
- slotProps: o.shape({
113
- root: o.oneOfType([o.func, o.object])
114
- }),
115
- /**
116
- * The components used for each slot inside.
117
- * @default {}
118
- */
119
- slots: o.shape({
120
- root: o.elementType
121
- }),
122
- /**
123
- * The system prop that allows defining system overrides as well as additional CSS styles.
124
- */
125
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
126
- /**
127
- * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
128
- * @default 'soft'
129
- */
130
- variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
131
- });
132
- const Y = ["alt", "color", "size", "variant", "src", "srcSet", "children", "component", "slots", "slotProps"], Z = (r) => {
133
- const {
134
- size: e,
135
- variant: a,
136
- color: t,
137
- src: s,
138
- srcSet: n
139
- } = r, i = {
140
- root: ["root", a && `variant${G(a)}`, t && `color${G(t)}`, e && `size${G(e)}`],
141
- img: [(s || n) && "img"],
142
- fallback: ["fallback"]
143
- };
144
- return F(i, W, {});
145
- }, oo = z("div", {
146
- name: "JoyAvatar",
147
- slot: "Root",
148
- overridesResolver: (r, e) => e.root
149
- })(({
150
- theme: r,
151
- ownerState: e
152
- }) => {
153
- var a;
154
- return c({
155
- "--Icon-color": e.color !== "neutral" || e.variant === "solid" ? "currentColor" : r.vars.palette.text.icon
156
- }, r.typography[`title-${e.size}`], e.size === "sm" && {
157
- width: "var(--Avatar-size, 2rem)",
158
- height: "var(--Avatar-size, 2rem)",
159
- fontSize: "calc(var(--Avatar-size, 2rem) * 0.4375)"
160
- // default as 14px
161
- }, e.size === "md" && {
162
- width: "var(--Avatar-size, 2.5rem)",
163
- height: "var(--Avatar-size, 2.5rem)",
164
- fontSize: "calc(var(--Avatar-size, 2.5rem) * 0.4)"
165
- // default as 16px
166
- }, e.size === "lg" && {
167
- width: "var(--Avatar-size, 3rem)",
168
- height: "var(--Avatar-size, 3rem)",
169
- fontSize: "calc(var(--Avatar-size, 3rem) * 0.375)"
170
- // default as 18px
171
- }, {
172
- marginInlineStart: "var(--Avatar-marginInlineStart)",
173
- boxShadow: "var(--Avatar-ring)",
174
- position: "relative",
175
- display: "flex",
176
- alignItems: "center",
177
- justifyContent: "center",
178
- flexShrink: 0,
179
- lineHeight: 1,
180
- overflow: "hidden",
181
- borderRadius: "var(--Avatar-radius, 50%)",
182
- userSelect: "none"
183
- }, (a = r.variants[e.variant]) == null ? void 0 : a[e.color]);
184
- }), eo = z("img", {
185
- name: "JoyAvatar",
186
- slot: "Img",
187
- overridesResolver: (r, e) => e.img
188
- })({
189
- width: "100%",
190
- height: "100%",
191
- textAlign: "center",
192
- // Handle non-square image. The property isn't supported by IE11.
193
- objectFit: "cover",
194
- // Hide alt text.
195
- color: "transparent",
196
- // Hide the image broken icon, only works on Chrome.
197
- textIndent: 1e4
198
- }), ro = z(H, {
199
- name: "JoyAvatar",
200
- slot: "Fallback",
201
- overridesResolver: (r, e) => e.fallback
202
- })({
203
- width: "64%",
204
- height: "64%"
205
- });
206
- function to({
207
- crossOrigin: r,
208
- referrerPolicy: e,
209
- src: a,
210
- srcSet: t
211
- }) {
212
- const [s, n] = p.useState(!1);
213
- return p.useEffect(() => {
214
- if (!a && !t)
215
- return;
216
- n(!1);
217
- let i = !0;
218
- const l = new Image();
219
- return l.onload = () => {
220
- i && n("loaded");
221
- }, l.onerror = () => {
222
- i && n("error");
223
- }, l.crossOrigin = r, l.referrerPolicy = e, a && (l.src = a), t && (l.srcset = t), () => {
224
- i = !1;
225
- };
226
- }, [r, e, a, t]), s;
227
- }
228
- const ao = /* @__PURE__ */ p.forwardRef(function(e, a) {
229
- const t = j({
230
- props: e,
231
- name: "JoyAvatar"
232
- }), s = p.useContext(I), {
233
- alt: n,
234
- color: i = "neutral",
235
- size: l = "md",
236
- variant: f = "soft",
237
- src: d,
238
- srcSet: m,
239
- children: g,
240
- component: b,
241
- slots: y = {},
242
- slotProps: T = {}
243
- } = t, x = R(t, Y), O = e.variant || (s == null ? void 0 : s.variant) || f, _ = e.color || (s == null ? void 0 : s.color) || i, $ = e.size || (s == null ? void 0 : s.size) || l;
244
- let u = null;
245
- const A = c({}, t, {
246
- color: _,
247
- size: $,
248
- variant: O,
249
- grouped: !!s
250
- }), P = Z(A), S = c({}, x, {
251
- component: b,
252
- slots: y,
253
- slotProps: T
254
- }), [w, E] = h("root", {
255
- ref: a,
256
- className: P.root,
257
- elementType: oo,
258
- externalForwardedProps: S,
259
- ownerState: A
260
- }), [J, N] = h("img", {
261
- additionalProps: {
262
- alt: n,
263
- src: d,
264
- srcSet: m
265
- },
266
- className: P.img,
267
- elementType: eo,
268
- externalForwardedProps: S,
269
- ownerState: A
270
- }), [M, U] = h("fallback", {
271
- className: P.fallback,
272
- elementType: ro,
273
- externalForwardedProps: S,
274
- ownerState: A
275
- }), D = to(c({}, N, {
276
- src: d,
277
- srcSet: m
278
- }));
279
- return (d || m) && D !== "error" ? u = /* @__PURE__ */ v(J, c({}, N)) : g != null ? u = g : n ? u = n[0] : u = /* @__PURE__ */ v(M, c({}, U)), /* @__PURE__ */ v(w, c({}, E, {
280
- children: u
281
- }));
282
- });
283
- process.env.NODE_ENV !== "production" && (ao.propTypes = {
284
- // ┌────────────────────────────── Warning ──────────────────────────────┐
285
- // │ These PropTypes are generated from the TypeScript type definitions. │
286
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
287
- // └─────────────────────────────────────────────────────────────────────┘
288
- /**
289
- * Used in combination with `src` or `srcSet` to
290
- * provide an alt attribute for the rendered `img` element.
291
- */
292
- alt: o.string,
293
- /**
294
- * Used to render icon or text elements inside the Avatar if `src` is not set.
295
- * This can be an element, or just a string.
296
- */
297
- children: o.node,
298
- /**
299
- * The color of the component. It supports those theme colors that make sense for this component.
300
- * @default 'neutral'
301
- */
302
- color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
303
- /**
304
- * The component used for the root node.
305
- * Either a string to use a HTML element or a component.
306
- */
307
- component: o.elementType,
308
- /**
309
- * The size of the component.
310
- * It accepts theme values between 'sm' and 'lg'.
311
- * @default 'md'
312
- */
313
- size: o.oneOfType([o.oneOf(["lg", "md", "sm"]), o.string]),
314
- /**
315
- * The props used for each slot inside.
316
- * @default {}
317
- */
318
- slotProps: o.shape({
319
- fallback: o.oneOfType([o.func, o.object]),
320
- img: o.oneOfType([o.func, o.object]),
321
- root: o.oneOfType([o.func, o.object])
322
- }),
323
- /**
324
- * The components used for each slot inside.
325
- * @default {}
326
- */
327
- slots: o.shape({
328
- fallback: o.elementType,
329
- img: o.elementType,
330
- root: o.elementType
331
- }),
332
- /**
333
- * The `src` attribute for the `img` element.
334
- */
335
- src: o.string,
336
- /**
337
- * The `srcSet` attribute for the `img` element.
338
- * Use this attribute for responsive image display.
339
- */
340
- srcSet: o.string,
341
- /**
342
- * The system prop that allows defining system overrides as well as additional CSS styles.
343
- */
344
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
345
- /**
346
- * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
347
- * @default 'soft'
348
- */
349
- variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
350
- });
351
- export {
352
- ao as A
353
- };