fansunited-frontend-components 0.0.92 → 0.0.93

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-0ezhEUTz.js +4 -0
  28. package/chunks/index-B1d9q8fX.js +4 -0
  29. package/chunks/index-BP0pvFJ4.js +4 -0
  30. package/chunks/index-CSrBHonD.js +4 -0
  31. package/chunks/index-Ckyyw-I8.js +4 -0
  32. package/chunks/index-DAu5SkP8.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-CWfREbUv.js → main-DPWm9Ema.js} +419 -434
  37. package/chunks/{main-Db4YC1C9.js → main-Dj4Manb5.js} +386 -407
  38. package/chunks/{main-BhONg691.js → main-Dmc68oMQ.js} +730 -1093
  39. package/chunks/{main-BoLNJccN.js → main-DsAnwwP4.js} +1677 -2002
  40. package/chunks/{main-JAewg2VD.js → main-dwV_55lz.js} +409 -432
  41. package/chunks/main-eAQMCxQ7.js +1949 -0
  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,319 +0,0 @@
1
- import { F as ee, G as oe, _ as n, H as O, a3 as re, P as o, J as h } from "./PrizeCard-B2tBhY45.js";
2
- import * as u from "react";
3
- import { s as D, a as ne, h as L, g as te, u as ae, b as g, d as se, c as ie } from "./Typography-BsucZNXl.js";
4
- import { jsx as x, jsxs as le } from "react/jsx-runtime";
5
- import { u as ce } from "./colorInversionUtils-AoR_6ghW.js";
6
- function de(r) {
7
- return oe("MuiLink", r);
8
- }
9
- const R = ee("MuiLink", ["root", "disabled", "focusVisible", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "focusVisible", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "underlineNone", "underlineHover", "underlineAlways", "h1", "h2", "h3", "h4", "title-lg", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body-xs", "startDecorator", "endDecorator"]), pe = ["color", "textColor", "variant"], ue = ["children", "disabled", "onBlur", "onFocus", "level", "overlay", "underline", "endDecorator", "startDecorator", "component", "slots", "slotProps"], ve = (r) => {
10
- const {
11
- level: e,
12
- color: a,
13
- variant: t,
14
- underline: s,
15
- focusVisible: i,
16
- disabled: l
17
- } = r, c = {
18
- root: ["root", a && `color${h(a)}`, l && "disabled", i && "focusVisible", e, s && `underline${h(s)}`, t && `variant${h(t)}`],
19
- startDecorator: ["startDecorator"],
20
- endDecorator: ["endDecorator"]
21
- };
22
- return ie(c, de, {});
23
- }, fe = D("span", {
24
- name: "JoyLink",
25
- slot: "StartDecorator",
26
- overridesResolver: (r, e) => e.startDecorator
27
- })(({
28
- ownerState: r
29
- }) => {
30
- var e;
31
- return n({
32
- display: "inline-flex",
33
- marginInlineEnd: "clamp(4px, var(--Link-gap, 0.375em), 0.75rem)"
34
- }, typeof r.startDecorator != "string" && (r.alignItems === "flex-start" || ((e = r.sx) == null ? void 0 : e.alignItems) === "flex-start") && {
35
- marginTop: "2px"
36
- // this makes the alignment perfect in most cases
37
- });
38
- }), me = D("span", {
39
- name: "JoyLink",
40
- slot: "endDecorator",
41
- overridesResolver: (r, e) => e.endDecorator
42
- })(({
43
- ownerState: r
44
- }) => {
45
- var e;
46
- return n({
47
- display: "inline-flex",
48
- marginInlineStart: "clamp(4px, var(--Link-gap, 0.25em), 0.5rem)"
49
- }, typeof r.startDecorator != "string" && (r.alignItems === "flex-start" || ((e = r.sx) == null ? void 0 : e.alignItems) === "flex-start") && {
50
- marginTop: "2px"
51
- // this makes the alignment perfect in most cases
52
- });
53
- }), ye = D("a", {
54
- name: "JoyLink",
55
- slot: "Root",
56
- overridesResolver: (r, e) => e.root
57
- })(({
58
- theme: r,
59
- ownerState: e
60
- }) => {
61
- var a, t, s, i, l, c, d;
62
- return [n({
63
- "--Icon-fontSize": "1.25em",
64
- "--Icon-color": "currentColor",
65
- "--CircularProgress-size": "1.25em",
66
- "--CircularProgress-thickness": "3px"
67
- }, e.level && e.level !== "inherit" && r.typography[e.level], e.level === "inherit" && {
68
- font: "inherit"
69
- }, e.underline === "none" && {
70
- textDecoration: "none"
71
- }, e.underline === "hover" && {
72
- textDecoration: "none",
73
- "&:hover": {
74
- "@media (hover: hover)": {
75
- textDecorationLine: "underline"
76
- }
77
- }
78
- }, e.underline === "always" && {
79
- textDecoration: "underline"
80
- }, e.startDecorator && {
81
- verticalAlign: "bottom"
82
- // to make the link align with the parent's content
83
- }, {
84
- textDecorationThickness: "max(0.08em, 1px)",
85
- // steal from https://moderncss.dev/modern-css-for-dynamic-component-based-architecture/#css-reset-additions
86
- textUnderlineOffset: "0.15em",
87
- // steal from https://moderncss.dev/modern-css-for-dynamic-component-based-architecture/#css-reset-additions
88
- display: "inline-flex",
89
- alignItems: "center",
90
- WebkitTapHighlightColor: "transparent",
91
- backgroundColor: "transparent",
92
- // Reset default value
93
- // We disable the focus ring for mouse, touch and keyboard users.
94
- outline: 0,
95
- border: 0,
96
- margin: 0,
97
- // Remove the margin in Safari
98
- borderRadius: r.vars.radius.xs,
99
- padding: 0,
100
- // Remove the padding in Firefox
101
- cursor: "pointer",
102
- textDecorationColor: `var(--variant-outlinedBorder, rgba(${(a = r.vars.palette[e.color]) == null ? void 0 : a.mainChannel} / var(--Link-underlineOpacity, 0.72)))`
103
- }, e.variant ? n({
104
- paddingBlock: "min(0.1em, 4px)",
105
- paddingInline: "0.25em"
106
- }, !e.nesting && {
107
- marginInline: "-0.25em"
108
- }) : {
109
- color: `var(--variant-plainColor, rgba(${(t = r.vars.palette[e.color]) == null ? void 0 : t.mainChannel} / 1))`,
110
- [`&.${R.disabled}`]: {
111
- pointerEvents: "none",
112
- color: `var(--variant-plainDisabledColor, rgba(${(s = r.vars.palette[e.color]) == null ? void 0 : s.mainChannel} / 0.6))`
113
- }
114
- }, {
115
- userSelect: e.component === "button" ? "none" : void 0,
116
- MozAppearance: "none",
117
- // Reset
118
- WebkitAppearance: "none",
119
- // Reset
120
- "&::-moz-focus-inner": {
121
- borderStyle: "none"
122
- // Remove Firefox dotted outline.
123
- }
124
- }, e.overlay ? {
125
- position: "initial",
126
- "&::after": {
127
- content: '""',
128
- display: "block",
129
- position: "absolute",
130
- top: 0,
131
- left: 0,
132
- bottom: 0,
133
- right: 0,
134
- borderRadius: "var(--unstable_actionRadius, inherit)",
135
- margin: "var(--unstable_actionMargin)"
136
- },
137
- [`${r.focus.selector}`]: {
138
- "&::after": r.focus.default
139
- }
140
- } : {
141
- position: "relative",
142
- [r.focus.selector]: r.focus.default
143
- }), e.variant && n({}, (i = r.variants[e.variant]) == null ? void 0 : i[e.color], {
144
- "&:hover": {
145
- "@media (hover: hover)": (l = r.variants[`${e.variant}Hover`]) == null ? void 0 : l[e.color]
146
- },
147
- "&:active": (c = r.variants[`${e.variant}Active`]) == null ? void 0 : c[e.color],
148
- [`&.${R.disabled}`]: (d = r.variants[`${e.variant}Disabled`]) == null ? void 0 : d[e.color]
149
- })];
150
- }), be = /* @__PURE__ */ u.forwardRef(function(e, a) {
151
- const t = ne({
152
- props: e,
153
- name: "JoyLink"
154
- }), {
155
- color: s = "primary",
156
- textColor: i,
157
- variant: l
158
- } = t, c = O(t, pe), d = u.useContext(L), F = u.useContext(te), m = re(n({}, c, {
159
- color: i
160
- })), {
161
- children: v,
162
- disabled: I = !1,
163
- onBlur: C,
164
- onFocus: T,
165
- level: V = "body-md",
166
- overlay: B = !1,
167
- underline: j = "hover",
168
- endDecorator: $,
169
- startDecorator: k,
170
- component: E,
171
- slots: N = {},
172
- slotProps: z = {}
173
- } = m, A = O(m, ue), J = d || F ? e.level || "inherit" : V, {
174
- isFocusVisibleRef: P,
175
- onBlur: M,
176
- onFocus: U,
177
- ref: H
178
- } = ce(), [W, _] = u.useState(!1), G = ae(a, H), q = (p) => {
179
- M(p), P.current === !1 && _(!1), C && C(p);
180
- }, K = (p) => {
181
- U(p), P.current === !0 && _(!0), T && T(p);
182
- }, f = n({}, m, {
183
- color: s,
184
- disabled: I,
185
- focusVisible: W,
186
- underline: j,
187
- variant: l,
188
- level: J,
189
- overlay: B,
190
- nesting: d
191
- }), y = ve(f), b = n({}, A, {
192
- component: E,
193
- slots: N,
194
- slotProps: z
195
- }), [Q, X] = g("root", {
196
- additionalProps: {
197
- onBlur: q,
198
- onFocus: K
199
- },
200
- ref: G,
201
- className: y.root,
202
- elementType: ye,
203
- externalForwardedProps: b,
204
- ownerState: f
205
- }), [Y, Z] = g("startDecorator", {
206
- className: y.startDecorator,
207
- elementType: fe,
208
- externalForwardedProps: b,
209
- ownerState: f
210
- }), [S, w] = g("endDecorator", {
211
- className: y.endDecorator,
212
- elementType: me,
213
- externalForwardedProps: b,
214
- ownerState: f
215
- });
216
- return /* @__PURE__ */ x(L.Provider, {
217
- value: !0,
218
- children: /* @__PURE__ */ le(Q, n({}, X, {
219
- children: [k && /* @__PURE__ */ x(Y, n({}, Z, {
220
- children: k
221
- })), se(v, ["Skeleton"]) ? /* @__PURE__ */ u.cloneElement(v, {
222
- variant: v.props.variant || "inline"
223
- }) : v, $ && /* @__PURE__ */ x(S, n({}, w, {
224
- children: $
225
- }))]
226
- }))
227
- });
228
- });
229
- process.env.NODE_ENV !== "production" && (be.propTypes = {
230
- // ┌────────────────────────────── Warning ──────────────────────────────┐
231
- // │ These PropTypes are generated from the TypeScript type definitions. │
232
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
233
- // └─────────────────────────────────────────────────────────────────────┘
234
- /**
235
- * The content of the component.
236
- */
237
- children: o.node,
238
- /**
239
- * The color of the link.
240
- * @default 'primary'
241
- */
242
- color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
243
- /**
244
- * The component used for the root node.
245
- * Either a string to use a HTML element or a component.
246
- */
247
- component: o.elementType,
248
- /**
249
- * If `true`, the component is disabled.
250
- * @default false
251
- */
252
- disabled: o.bool,
253
- /**
254
- * Element placed after the children.
255
- */
256
- endDecorator: o.node,
257
- /**
258
- * Applies the theme typography styles.
259
- * @default 'body-md'
260
- */
261
- level: o.oneOfType([o.oneOf(["body1", "body2", "body3", "h1", "h2", "h3", "h4", "h5", "h6", "inherit"]), o.string]),
262
- /**
263
- * @ignore
264
- */
265
- onBlur: o.func,
266
- /**
267
- * @ignore
268
- */
269
- onFocus: o.func,
270
- /**
271
- * If `true`, the ::after pseudo element is added to cover the area of interaction.
272
- * The parent of the overlay Link should have `relative` CSS position.
273
- * @default false
274
- */
275
- overlay: o.bool,
276
- /**
277
- * The props used for each slot inside.
278
- * @default {}
279
- */
280
- slotProps: o.shape({
281
- endDecorator: o.oneOfType([o.func, o.object]),
282
- root: o.oneOfType([o.func, o.object]),
283
- startDecorator: o.oneOfType([o.func, o.object])
284
- }),
285
- /**
286
- * The components used for each slot inside.
287
- * @default {}
288
- */
289
- slots: o.shape({
290
- endDecorator: o.elementType,
291
- root: o.elementType,
292
- startDecorator: o.elementType
293
- }),
294
- /**
295
- * Element placed before the children.
296
- */
297
- startDecorator: o.node,
298
- /**
299
- * The system prop that allows defining system overrides as well as additional CSS styles.
300
- */
301
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
302
- /**
303
- * The system color.
304
- */
305
- textColor: o.any,
306
- /**
307
- * Controls when the link should have an underline.
308
- * @default 'hover'
309
- */
310
- underline: o.oneOf(["always", "hover", "none"]),
311
- /**
312
- * Applies the theme link styles.
313
- * @default 'plain'
314
- */
315
- variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
316
- });
317
- export {
318
- be as L
319
- };