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,8 +0,0 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { c as r } from "./createSvgIcon-BWoHeNkc.js";
3
- const t = r(/* @__PURE__ */ c("path", {
4
- d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
5
- }), "CheckCircle");
6
- export {
7
- t as C
8
- };
@@ -1,365 +0,0 @@
1
- import { F as G, G as q, _ as t, H as K, I as Q, S as X, P as o, J as f } from "./PrizeCard-B2tBhY45.js";
2
- import * as g from "react";
3
- import { s as u, a as Y, b as C, c as Z } from "./Typography-BsucZNXl.js";
4
- import { V as w } from "./variantColorInheritance-DZr7CNx6.js";
5
- import { r as oo } from "./colorInversionUtils-AoR_6ghW.js";
6
- import { jsx as d, jsxs as ro } from "react/jsx-runtime";
7
- import { u as io } from "./useButton-C9taTgFS.js";
8
- function eo(i) {
9
- return q("MuiChip", i);
10
- }
11
- const x = G("MuiChip", ["root", "clickable", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "disabled", "endDecorator", "focusVisible", "label", "labelSm", "labelMd", "labelLg", "sizeSm", "sizeMd", "sizeLg", "startDecorator", "variantPlain", "variantSolid", "variantSoft", "variantOutlined"]), H = /* @__PURE__ */ g.createContext({
12
- disabled: void 0,
13
- variant: void 0,
14
- color: void 0
15
- });
16
- process.env.NODE_ENV !== "production" && (H.displayName = "ChipColorContext");
17
- const ao = ["children", "className", "color", "onClick", "disabled", "size", "variant", "startDecorator", "endDecorator", "component", "slots", "slotProps"], to = (i) => {
18
- const {
19
- disabled: r,
20
- size: a,
21
- color: e,
22
- clickable: s,
23
- variant: n,
24
- focusVisible: c
25
- } = i, m = {
26
- root: ["root", r && "disabled", e && `color${f(e)}`, a && `size${f(a)}`, n && `variant${f(n)}`, s && "clickable"],
27
- action: ["action", r && "disabled", c && "focusVisible"],
28
- label: ["label", a && `label${f(a)}`],
29
- startDecorator: ["startDecorator"],
30
- endDecorator: ["endDecorator"]
31
- };
32
- return Z(m, eo, {});
33
- }, no = u("div", {
34
- name: "JoyChip",
35
- slot: "Root",
36
- overridesResolver: (i, r) => r.root
37
- })(({
38
- theme: i,
39
- ownerState: r
40
- }) => {
41
- var a, e, s;
42
- const n = (a = i.variants[r.variant]) == null ? void 0 : a[r.color], {
43
- borderRadius: c
44
- } = oo({
45
- theme: i,
46
- ownerState: r
47
- }, ["borderRadius"]);
48
- return [t({
49
- // for controlling chip delete margin offset
50
- "--Chip-decoratorChildOffset": "min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))",
51
- "--Chip-decoratorChildRadius": "max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))",
52
- "--Chip-deleteRadius": "var(--Chip-decoratorChildRadius)",
53
- "--Chip-deleteSize": "var(--Chip-decoratorChildHeight)",
54
- "--Avatar-radius": "var(--Chip-decoratorChildRadius)",
55
- "--Avatar-size": "var(--Chip-decoratorChildHeight)",
56
- "--Icon-margin": "initial",
57
- // reset the icon's margin.
58
- "--Icon-color": "currentColor",
59
- "--unstable_actionRadius": "var(--_Chip-radius)"
60
- }, r.size === "sm" && {
61
- "--Chip-paddingInline": "0.375rem",
62
- "--Chip-decoratorChildHeight": "calc(var(--_Chip-minHeight) - 2 * var(--variant-borderWidth))",
63
- "--Icon-fontSize": i.vars.fontSize.sm,
64
- "--_Chip-minHeight": "var(--Chip-minHeight, 1.25rem)",
65
- // 20px
66
- gap: "3px"
67
- }, r.size === "md" && {
68
- "--Chip-paddingInline": "0.5rem",
69
- "--Chip-decoratorChildHeight": "calc(var(--_Chip-minHeight) - 0.25rem - 2 * var(--variant-borderWidth))",
70
- "--Icon-fontSize": i.vars.fontSize.md,
71
- "--_Chip-minHeight": "var(--Chip-minHeight, 1.5rem)",
72
- // 26px
73
- gap: "0.25rem"
74
- }, r.size === "lg" && {
75
- "--Chip-paddingInline": "0.75rem",
76
- "--Chip-decoratorChildHeight": "calc(var(--_Chip-minHeight) - 0.375rem - 2 * var(--variant-borderWidth))",
77
- "--Icon-fontSize": i.vars.fontSize.lg,
78
- "--_Chip-minHeight": "var(--Chip-minHeight, 1.75rem)",
79
- // 28px
80
- gap: "0.375rem"
81
- }, {
82
- "--_Chip-radius": "var(--Chip-radius, 1.5rem)",
83
- "--_Chip-paddingBlock": "max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",
84
- minHeight: "var(--_Chip-minHeight)",
85
- maxWidth: "max-content",
86
- // to prevent Chip from stretching to full width when used with flexbox
87
- paddingInline: "var(--Chip-paddingInline)",
88
- borderRadius: "var(--_Chip-radius)",
89
- position: "relative",
90
- display: "inline-flex",
91
- alignItems: "center",
92
- justifyContent: "center",
93
- whiteSpace: "nowrap",
94
- textDecoration: "none",
95
- verticalAlign: "middle",
96
- boxSizing: "border-box"
97
- }, i.typography[`body-${{
98
- sm: "xs",
99
- md: "sm",
100
- lg: "md"
101
- }[r.size]}`], {
102
- fontWeight: i.vars.fontWeight.md,
103
- [`&.${x.disabled}`]: {
104
- color: (e = i.variants[`${r.variant}Disabled`]) == null || (e = e[r.color]) == null ? void 0 : e.color
105
- }
106
- }), ...r.clickable ? [{
107
- "--variant-borderWidth": "0px",
108
- color: n == null ? void 0 : n.color
109
- }] : [t({
110
- backgroundColor: i.vars.palette.background.surface
111
- }, n, {
112
- [`&.${x.disabled}`]: (s = i.variants[`${r.variant}Disabled`]) == null ? void 0 : s[r.color]
113
- })], c !== void 0 && {
114
- "--_Chip-radius": c
115
- }];
116
- }), so = u("span", {
117
- name: "JoyChip",
118
- slot: "Label",
119
- overridesResolver: (i, r) => r.label
120
- })(({
121
- ownerState: i
122
- }) => t({
123
- display: "inline-block",
124
- overflow: "hidden",
125
- textOverflow: "ellipsis",
126
- order: 1,
127
- minInlineSize: 0,
128
- flexGrow: 1
129
- }, i.clickable && {
130
- zIndex: 1,
131
- pointerEvents: "none"
132
- })), lo = u("button", {
133
- name: "JoyChip",
134
- slot: "Action",
135
- overridesResolver: (i, r) => r.action
136
- })(({
137
- theme: i,
138
- ownerState: r
139
- }) => {
140
- var a, e, s, n;
141
- return [{
142
- "--Icon-color": r.color !== "neutral" || r.variant === "solid" ? "currentColor" : i.vars.palette.text.icon,
143
- position: "absolute",
144
- zIndex: 0,
145
- top: 0,
146
- left: 0,
147
- bottom: 0,
148
- right: 0,
149
- width: "100%",
150
- // To fix Firefox issue (https://github.com/mui/material-ui/issues/36877)
151
- border: "none",
152
- cursor: "pointer",
153
- padding: "initial",
154
- margin: "initial",
155
- backgroundColor: "initial",
156
- textDecoration: "none",
157
- borderRadius: "inherit",
158
- [i.focus.selector]: i.focus.default
159
- }, t({
160
- backgroundColor: i.vars.palette.background.surface
161
- }, (a = i.variants[r.variant]) == null ? void 0 : a[r.color]), {
162
- "&:hover": {
163
- "@media (hover: hover)": (e = i.variants[`${r.variant}Hover`]) == null ? void 0 : e[r.color]
164
- }
165
- }, {
166
- "&:active": (s = i.variants[`${r.variant}Active`]) == null ? void 0 : s[r.color]
167
- }, {
168
- [`&.${x.disabled}`]: (n = i.variants[`${r.variant}Disabled`]) == null ? void 0 : n[r.color]
169
- }];
170
- }), co = u("span", {
171
- name: "JoyChip",
172
- slot: "StartDecorator",
173
- overridesResolver: (i, r) => r.startDecorator
174
- })({
175
- "--Avatar-marginInlineStart": "calc(var(--Chip-decoratorChildOffset) * -1)",
176
- "--IconButton-margin": "0 calc(-1 * var(--Chip-paddingInline) / 3) 0 calc(var(--Chip-decoratorChildOffset) * -1)",
177
- "--Icon-margin": "0 0 0 calc(var(--Chip-paddingInline) / -4)",
178
- display: "inherit",
179
- // set zIndex to 1 with order to stay on top of other controls, for example Checkbox, Radio
180
- order: 0,
181
- zIndex: 1,
182
- pointerEvents: "none"
183
- }), po = u("span", {
184
- name: "JoyChip",
185
- slot: "EndDecorator",
186
- overridesResolver: (i, r) => r.endDecorator
187
- })({
188
- "--IconButton-margin": "0 calc(var(--Chip-decoratorChildOffset) * -1) 0 calc(-1 * var(--Chip-paddingInline) / 3)",
189
- "--Icon-margin": "0 calc(var(--Chip-paddingInline) / -4) 0 0",
190
- display: "inherit",
191
- // set zIndex to 1 with order to stay on top of other controls, for example Checkbox, Radio
192
- order: 2,
193
- zIndex: 1,
194
- pointerEvents: "none"
195
- }), vo = /* @__PURE__ */ g.forwardRef(function(r, a) {
196
- const e = Y({
197
- props: r,
198
- name: "JoyChip"
199
- }), {
200
- children: s,
201
- className: n,
202
- color: c = "neutral",
203
- onClick: m,
204
- disabled: b = !1,
205
- size: O = "md",
206
- variant: D = "soft",
207
- startDecorator: _,
208
- endDecorator: I,
209
- component: P,
210
- slots: $ = {},
211
- slotProps: p = {}
212
- } = e, k = K(e, ao), z = !!m || !!p.action, l = t({}, e, {
213
- disabled: b,
214
- size: O,
215
- color: c,
216
- variant: D,
217
- clickable: z,
218
- focusVisible: !1
219
- }), y = typeof p.action == "function" ? p.action(l) : p.action, N = g.useRef(null), {
220
- focusVisible: W,
221
- getRootProps: V
222
- } = io(t({}, y, {
223
- disabled: b,
224
- rootRef: N
225
- }));
226
- l.focusVisible = W;
227
- const v = to(l), h = t({}, k, {
228
- component: P,
229
- slots: $,
230
- slotProps: p
231
- }), [j, E] = C("root", {
232
- ref: a,
233
- className: Q(v.root, n),
234
- elementType: no,
235
- externalForwardedProps: h,
236
- ownerState: l
237
- }), [S, T] = C("label", {
238
- className: v.label,
239
- elementType: so,
240
- externalForwardedProps: h,
241
- ownerState: l
242
- }), R = X(T.id), [A, J] = C("action", {
243
- className: v.action,
244
- elementType: lo,
245
- externalForwardedProps: h,
246
- ownerState: l,
247
- getSlotProps: V,
248
- additionalProps: {
249
- "aria-labelledby": R,
250
- as: y == null ? void 0 : y.component,
251
- onClick: m
252
- }
253
- }), [B, L] = C("startDecorator", {
254
- className: v.startDecorator,
255
- elementType: co,
256
- externalForwardedProps: h,
257
- ownerState: l
258
- }), [M, U] = C("endDecorator", {
259
- className: v.endDecorator,
260
- elementType: po,
261
- externalForwardedProps: h,
262
- ownerState: l
263
- }), F = g.useMemo(() => ({
264
- disabled: b
265
- }), [b]);
266
- return /* @__PURE__ */ d(H.Provider, {
267
- value: F,
268
- children: /* @__PURE__ */ d(w, {
269
- variant: D,
270
- color: c,
271
- children: /* @__PURE__ */ ro(j, t({}, E, {
272
- children: [z && /* @__PURE__ */ d(A, t({}, J)), /* @__PURE__ */ d(S, t({}, T, {
273
- id: R,
274
- children: s
275
- })), _ && /* @__PURE__ */ d(B, t({}, L, {
276
- children: _
277
- })), I && /* @__PURE__ */ d(M, t({}, U, {
278
- children: I
279
- }))]
280
- }))
281
- })
282
- });
283
- });
284
- process.env.NODE_ENV !== "production" && (vo.propTypes = {
285
- // ┌────────────────────────────── Warning ──────────────────────────────┐
286
- // │ These PropTypes are generated from the TypeScript type definitions. │
287
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
288
- // └─────────────────────────────────────────────────────────────────────┘
289
- /**
290
- * The content of the component.
291
- */
292
- children: o.node,
293
- /**
294
- * @ignore
295
- */
296
- className: o.string,
297
- /**
298
- * The color of the component. It supports those theme colors that make sense for this component.
299
- * @default 'neutral'
300
- */
301
- color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
302
- /**
303
- * The component used for the root node.
304
- * Either a string to use a HTML element or a component.
305
- */
306
- component: o.elementType,
307
- /**
308
- * If `true`, the component is disabled.
309
- * @default false
310
- */
311
- disabled: o.bool,
312
- /**
313
- * Element placed after the children.
314
- */
315
- endDecorator: o.node,
316
- /**
317
- * Element action click handler.
318
- */
319
- onClick: o.func,
320
- /**
321
- * The size of the component.
322
- * It accepts theme values between 'sm' and 'lg'.
323
- * @default 'md'
324
- */
325
- size: o.oneOfType([o.oneOf(["lg", "md", "sm"]), o.string]),
326
- /**
327
- * The props used for each slot inside.
328
- * @default {}
329
- */
330
- slotProps: o.shape({
331
- action: o.oneOfType([o.func, o.object]),
332
- endDecorator: o.oneOfType([o.func, o.object]),
333
- label: o.oneOfType([o.func, o.object]),
334
- root: o.oneOfType([o.func, o.object]),
335
- startDecorator: o.oneOfType([o.func, o.object])
336
- }),
337
- /**
338
- * The components used for each slot inside.
339
- * @default {}
340
- */
341
- slots: o.shape({
342
- action: o.elementType,
343
- endDecorator: o.elementType,
344
- label: o.elementType,
345
- root: o.elementType,
346
- startDecorator: o.elementType
347
- }),
348
- /**
349
- * Element placed before the children.
350
- */
351
- startDecorator: o.node,
352
- /**
353
- * The system prop that allows defining system overrides as well as additional CSS styles.
354
- */
355
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
356
- /**
357
- * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
358
- * @default 'soft'
359
- */
360
- variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
361
- });
362
- export {
363
- vo as C,
364
- H as a
365
- };
@@ -1,317 +0,0 @@
1
- import { G as L, F as S, L as U, H as x, _ as a, N as H, P as r, I, J as _ } from "./PrizeCard-B2tBhY45.js";
2
- import * as E from "react";
3
- import { s as f, a as G, b as m, c as V } from "./Typography-BsucZNXl.js";
4
- import { jsxs as P, jsx as y } from "react/jsx-runtime";
5
- function q(s) {
6
- return L("MuiCircularProgress", s);
7
- }
8
- S("MuiCircularProgress", ["root", "determinate", "svg", "track", "progress", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
9
- let A = (s) => s, z;
10
- const B = ["color", "backgroundColor"], K = ["children", "className", "color", "size", "variant", "thickness", "determinate", "value", "component", "slots", "slotProps"], Q = U({
11
- "0%": {
12
- // let the progress start at the top of the ring
13
- transform: "rotate(-90deg)"
14
- },
15
- "100%": {
16
- transform: "rotate(270deg)"
17
- }
18
- }), X = (s) => {
19
- const {
20
- determinate: e,
21
- color: i,
22
- variant: o,
23
- size: t
24
- } = s, n = {
25
- root: ["root", e && "determinate", i && `color${_(i)}`, o && `variant${_(o)}`, t && `size${_(t)}`],
26
- svg: ["svg"],
27
- track: ["track"],
28
- progress: ["progress"]
29
- };
30
- return V(n, q, {});
31
- };
32
- function l(s, e) {
33
- return `var(--CircularProgress-${s}Thickness, var(--CircularProgress-thickness, ${e}))`;
34
- }
35
- const Y = f("span", {
36
- name: "JoyCircularProgress",
37
- slot: "Root",
38
- overridesResolver: (s, e) => e.root
39
- })(({
40
- ownerState: s,
41
- theme: e
42
- }) => {
43
- var i, o, t, n;
44
- const g = ((i = e.variants[s.variant]) == null ? void 0 : i[s.color]) || {}, {
45
- color: u,
46
- backgroundColor: h
47
- } = g, v = x(g, B);
48
- return a({
49
- // integration with icon
50
- "--Icon-fontSize": "calc(0.4 * var(--_root-size))",
51
- // public variables
52
- "--CircularProgress-trackColor": h,
53
- "--CircularProgress-progressColor": u,
54
- "--CircularProgress-percent": s.value,
55
- // 0 - 100
56
- "--CircularProgress-linecap": "round"
57
- }, s.size === "sm" && {
58
- "--_root-size": "var(--CircularProgress-size, 24px)",
59
- // use --_root-size to let other components overrides via --CircularProgress-size
60
- "--_track-thickness": l("track", "3px"),
61
- "--_progress-thickness": l("progress", "3px")
62
- }, s.instanceSize === "sm" && {
63
- "--CircularProgress-size": "24px"
64
- }, s.size === "md" && {
65
- "--_track-thickness": l("track", "6px"),
66
- "--_progress-thickness": l("progress", "6px"),
67
- "--_root-size": "var(--CircularProgress-size, 40px)"
68
- }, s.instanceSize === "md" && {
69
- "--CircularProgress-size": "40px"
70
- }, s.size === "lg" && {
71
- "--_track-thickness": l("track", "8px"),
72
- "--_progress-thickness": l("progress", "8px"),
73
- "--_root-size": "var(--CircularProgress-size, 64px)"
74
- }, s.instanceSize === "lg" && {
75
- "--CircularProgress-size": "64px"
76
- }, s.thickness && {
77
- "--_track-thickness": `${s.thickness}px`,
78
- "--_progress-thickness": `${s.thickness}px`
79
- }, {
80
- // internal variables
81
- "--_thickness-diff": "calc(var(--_track-thickness) - var(--_progress-thickness))",
82
- "--_inner-size": "calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))",
83
- "--_outlined-inset": "max(var(--_track-thickness), var(--_progress-thickness))",
84
- width: "var(--_root-size)",
85
- height: "var(--_root-size)",
86
- borderRadius: "var(--_root-size)",
87
- margin: "var(--CircularProgress-margin)",
88
- boxSizing: "border-box",
89
- display: "inline-flex",
90
- justifyContent: "center",
91
- alignItems: "center",
92
- flexShrink: 0,
93
- // prevent from shrinking when CircularProgress is in a flex container.
94
- position: "relative",
95
- color: u
96
- }, s.children && {
97
- // only add font related properties when there is a child.
98
- // so that when there is no child, the size can be controlled by the parent font-size e.g. Link
99
- fontFamily: e.vars.fontFamily.body,
100
- fontWeight: e.vars.fontWeight.md,
101
- fontSize: "calc(0.2 * var(--_root-size))"
102
- }, v, s.variant === "outlined" && {
103
- "&::before": a({
104
- content: '""',
105
- display: "block",
106
- position: "absolute",
107
- borderRadius: "inherit",
108
- top: "var(--_outlined-inset)",
109
- left: "var(--_outlined-inset)",
110
- right: "var(--_outlined-inset)",
111
- bottom: "var(--_outlined-inset)"
112
- }, v)
113
- }, s.variant === "soft" && {
114
- "--CircularProgress-trackColor": e.variants.soft.neutral.backgroundColor,
115
- "--CircularProgress-progressColor": (o = e.variants.solid) == null ? void 0 : o[s.color].backgroundColor
116
- }, s.variant === "solid" && {
117
- "--CircularProgress-trackColor": (t = e.variants.softHover) == null ? void 0 : t[s.color].backgroundColor,
118
- "--CircularProgress-progressColor": (n = e.variants.solid) == null ? void 0 : n[s.color].backgroundColor
119
- });
120
- }), Z = f("svg", {
121
- name: "JoyCircularProgress",
122
- slot: "Svg",
123
- overridesResolver: (s, e) => e.svg
124
- })({
125
- width: "inherit",
126
- height: "inherit",
127
- display: "inherit",
128
- boxSizing: "inherit",
129
- position: "absolute",
130
- top: "calc(-1 * var(--variant-borderWidth, 0px))",
131
- // centered align
132
- left: "calc(-1 * var(--variant-borderWidth, 0px))"
133
- // centered align
134
- }), w = f("circle", {
135
- name: "JoyCircularProgress",
136
- slot: "track",
137
- overridesResolver: (s, e) => e.track
138
- })({
139
- cx: "50%",
140
- cy: "50%",
141
- r: "calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",
142
- fill: "transparent",
143
- strokeWidth: "var(--_track-thickness)",
144
- stroke: "var(--CircularProgress-trackColor)"
145
- }), rr = f("circle", {
146
- name: "JoyCircularProgress",
147
- slot: "progress",
148
- overridesResolver: (s, e) => e.progress
149
- })({
150
- "--_progress-radius": "calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))",
151
- "--_progress-length": "calc(2 * 3.1415926535 * var(--_progress-radius))",
152
- // the circumference around the progress
153
- cx: "50%",
154
- cy: "50%",
155
- r: "var(--_progress-radius)",
156
- fill: "transparent",
157
- strokeWidth: "var(--_progress-thickness)",
158
- stroke: "var(--CircularProgress-progressColor)",
159
- strokeLinecap: "var(--CircularProgress-linecap, round)",
160
- // can't use CSS variable directly, need to cast type.
161
- strokeDasharray: "var(--_progress-length)",
162
- strokeDashoffset: "calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",
163
- transformOrigin: "center",
164
- transform: "rotate(-90deg)"
165
- // to initially appear at the top-center of the circle.
166
- }, ({
167
- ownerState: s
168
- }) => !s.determinate && H(z || (z = A`
169
- animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
170
- ${0};
171
- `), Q)), sr = /* @__PURE__ */ E.forwardRef(function(e, i) {
172
- const o = G({
173
- props: e,
174
- name: "JoyCircularProgress"
175
- }), {
176
- children: t,
177
- className: n,
178
- color: g = "primary",
179
- size: u = "md",
180
- variant: h = "soft",
181
- thickness: v,
182
- determinate: C = !1,
183
- value: c = C ? 0 : 25,
184
- // `25` is the 1/4 of the circle.
185
- component: b,
186
- slots: T = {},
187
- slotProps: O = {}
188
- } = o, $ = x(o, K), p = a({}, o, {
189
- color: g,
190
- size: u,
191
- variant: h,
192
- thickness: v,
193
- value: c,
194
- determinate: C,
195
- instanceSize: e.size
196
- }), d = X(p), k = a({}, $, {
197
- component: b,
198
- slots: T,
199
- slotProps: O
200
- }), [N, R] = m("root", {
201
- ref: i,
202
- className: I(d.root, n),
203
- elementType: Y,
204
- externalForwardedProps: k,
205
- ownerState: p,
206
- additionalProps: a({
207
- role: "progressbar",
208
- style: {
209
- // Setting this CSS variable via inline-style
210
- // prevents the generation of new CSS every time
211
- // `value` prop updates
212
- "--CircularProgress-percent": c
213
- }
214
- }, c && C && {
215
- "aria-valuenow": Math.round(typeof c == "number" ? c : Number(c || 0))
216
- })
217
- }), [j, W] = m("svg", {
218
- className: d.svg,
219
- elementType: Z,
220
- externalForwardedProps: k,
221
- ownerState: p
222
- }), [J, M] = m("track", {
223
- className: d.track,
224
- elementType: w,
225
- externalForwardedProps: k,
226
- ownerState: p
227
- }), [D, F] = m("progress", {
228
- className: d.progress,
229
- elementType: rr,
230
- externalForwardedProps: k,
231
- ownerState: p
232
- });
233
- return /* @__PURE__ */ P(N, a({}, R, {
234
- children: [/* @__PURE__ */ P(j, a({}, W, {
235
- children: [/* @__PURE__ */ y(J, a({}, M)), /* @__PURE__ */ y(D, a({}, F))]
236
- })), t]
237
- }));
238
- });
239
- process.env.NODE_ENV !== "production" && (sr.propTypes = {
240
- // ┌────────────────────────────── Warning ──────────────────────────────┐
241
- // │ These PropTypes are generated from the TypeScript type definitions. │
242
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
243
- // └─────────────────────────────────────────────────────────────────────┘
244
- /**
245
- * @ignore
246
- */
247
- children: r.node,
248
- /**
249
- * @ignore
250
- */
251
- className: r.string,
252
- /**
253
- * The color of the component. It supports those theme colors that make sense for this component.
254
- * @default 'primary'
255
- */
256
- color: r.oneOfType([r.oneOf(["danger", "neutral", "primary", "success", "warning"]), r.string]),
257
- /**
258
- * The component used for the root node.
259
- * Either a string to use a HTML element or a component.
260
- */
261
- component: r.elementType,
262
- /**
263
- * The boolean to select a variant.
264
- * Use indeterminate when there is no progress value.
265
- * @default false
266
- */
267
- determinate: r.bool,
268
- /**
269
- * The size of the component.
270
- * It accepts theme values between 'sm' and 'lg'.
271
- * @default 'md'
272
- */
273
- size: r.oneOfType([r.oneOf(["sm", "md", "lg"]), r.string]),
274
- /**
275
- * The props used for each slot inside.
276
- * @default {}
277
- */
278
- slotProps: r.shape({
279
- progress: r.oneOfType([r.func, r.object]),
280
- root: r.oneOfType([r.func, r.object]),
281
- svg: r.oneOfType([r.func, r.object]),
282
- track: r.oneOfType([r.func, r.object])
283
- }),
284
- /**
285
- * The components used for each slot inside.
286
- * @default {}
287
- */
288
- slots: r.shape({
289
- progress: r.elementType,
290
- root: r.elementType,
291
- svg: r.elementType,
292
- track: r.elementType
293
- }),
294
- /**
295
- * The system prop that allows defining system overrides as well as additional CSS styles.
296
- */
297
- sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
298
- /**
299
- * The thickness of the circle.
300
- */
301
- thickness: r.number,
302
- /**
303
- * The value of the progress indicator for the determinate variant.
304
- * Value between 0 and 100.
305
- *
306
- * @default determinate ? 0 : 25
307
- */
308
- value: r.number,
309
- /**
310
- * The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
311
- * @default 'soft'
312
- */
313
- variant: r.oneOfType([r.oneOf(["outlined", "plain", "soft", "solid"]), r.string])
314
- });
315
- export {
316
- sr as C
317
- };
@@ -1,9 +0,0 @@
1
- import "react";
2
- import { c as o } from "./createSvgIcon-DBkOhFdn.js";
3
- import { jsx as r } from "react/jsx-runtime";
4
- const e = o(/* @__PURE__ */ r("path", {
5
- d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
6
- }), "Close");
7
- export {
8
- e as C
9
- };