fansunited-frontend-components 0.0.39 → 0.0.40
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/ChanceGame.js +104 -102
- package/ClassicQuizPlay.js +45 -42
- package/CollectLead.js +25 -24
- package/Discussion.js +376 -378
- package/EitherOrPlay.d.ts +4 -0
- package/EitherOrPlay.d.ts.map +1 -0
- package/EitherOrPlay.js +2533 -0
- package/EventGamePlay.js +59 -54
- package/MatchQuizPlay.js +63 -57
- package/PersonalityQuizPlay.js +7935 -7201
- package/PickThePair.js +153 -151
- package/PollVote.js +108 -104
- package/chunks/{AlertMessage-C2aBXCrl.js → AlertMessage-cjTHrMUK.js} +51 -51
- package/chunks/ArrowRightAlt-88jKjh6A.js +8 -0
- package/chunks/Avatar-CQCrd1m-.js +352 -0
- package/chunks/ChanceGameEmbedVariant-DWqOTf4o.js +1051 -0
- package/chunks/{CheckCircle-D-GH16Lb.js → CheckCircle-ClY-iOQ5.js} +105 -105
- package/chunks/{CollectLeadForm-o9NdYQgu.js → CollectLeadForm-0vVnu4DL.js} +5 -5
- package/chunks/FavoriteBorder-BHnvGBrn.js +11 -0
- package/chunks/{useInfoPage-v91yL5SS.js → NotFoundSkeleton-B3RNa8KJ.js} +451 -646
- package/chunks/Notification-BTtUhfZQ.js +615 -0
- package/chunks/OverlayLeadAfterCollection-CaBbwZVo.js +480 -0
- package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi.js → OverlayScoreStateSkeleton-DJn0Rim3.js} +3 -3
- package/chunks/Person-D0Im9_zE.js +522 -0
- package/chunks/{PickOneOfX-C2YpLk40.js → PickOneOfX-DYQ4c1o2.js} +7 -7
- package/chunks/{Portal-DWAr8MhA.js → Portal-B9wkUnY2.js} +7 -7
- package/chunks/{ConstantsProvider-BPJJz9fq.js → PrizeCard-gMp7I66d.js} +3593 -2860
- package/chunks/{Spinner-m59ZJZ35.js → Spinner-BBA89t5s.js} +50 -50
- package/chunks/StandardLeadAfterCollection-L1cOGfS6.js +432 -0
- package/chunks/{Tabs-BGihvj9C.js → Tabs-D_n8rNw3.js} +28 -28
- package/chunks/{Textarea-Bzlb89Zp.js → Textarea-BdN2xj4j.js} +44 -44
- package/chunks/{TimerOutlined-DiX8hCoC.js → TimerOutlined-DmKZDDI-.js} +1 -1
- package/chunks/chevron-right-DGEksBI7.js +330 -0
- package/chunks/default-quiz-bg-vertical-CT7rrg9o.js +5 -0
- package/chunks/index-2s5UkG1y.js +1607 -0
- package/chunks/useImageVariant-pnFelF9A.js +535 -0
- package/chunks/useInfoPage-DPkzE5Gn.js +204 -0
- package/components.d.ts +2 -1
- package/components.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +4 -2
- package/package.json +1 -1
- package/chunks/ChanceGameEmbedVariant-BvIKBhq_.js +0 -2609
- package/chunks/Notification-Bwcoljir.js +0 -961
- package/chunks/OverlayLeadAfterCollection-B3D5ct0J.js +0 -901
- package/chunks/chevron-right-Dlc9ZKhv.js +0 -846
- package/chunks/useImageVariant-Do8kOVs2.js +0 -537
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
import { l as k, m as B, s as $, r as I, n as R, _ as b, o as E, p as j, q as O, t as W, v as _, w as A, P as o, x as u, y as P, z as D, c as M } from "./PrizeCard-gMp7I66d.js";
|
|
2
|
+
import * as F from "react";
|
|
3
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
4
|
+
function U(e) {
|
|
5
|
+
return k("MuiSheet", e);
|
|
6
|
+
}
|
|
7
|
+
B("MuiSheet", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
8
|
+
const X = ["className", "color", "component", "variant", "invertedColors", "slots", "slotProps"], Y = (e) => {
|
|
9
|
+
const {
|
|
10
|
+
variant: t,
|
|
11
|
+
color: a
|
|
12
|
+
} = e, r = {
|
|
13
|
+
root: ["root", t && `variant${u(t)}`, a && `color${u(a)}`]
|
|
14
|
+
};
|
|
15
|
+
return P(r, U, {});
|
|
16
|
+
}, J = $("div", {
|
|
17
|
+
name: "JoySheet",
|
|
18
|
+
slot: "Root",
|
|
19
|
+
overridesResolver: (e, t) => t.root
|
|
20
|
+
})(({
|
|
21
|
+
theme: e,
|
|
22
|
+
ownerState: t
|
|
23
|
+
}) => {
|
|
24
|
+
var a, r;
|
|
25
|
+
const s = (a = e.variants[t.variant]) == null ? void 0 : a[t.color], {
|
|
26
|
+
borderRadius: n,
|
|
27
|
+
bgcolor: d,
|
|
28
|
+
backgroundColor: c,
|
|
29
|
+
background: p
|
|
30
|
+
} = I({
|
|
31
|
+
theme: e,
|
|
32
|
+
ownerState: t
|
|
33
|
+
}, ["borderRadius", "bgcolor", "backgroundColor", "background"]), i = R(e, `palette.${d}`) || d || R(e, `palette.${c}`) || c || p || (s == null ? void 0 : s.backgroundColor) || (s == null ? void 0 : s.background) || e.vars.palette.background.surface;
|
|
34
|
+
return [b({
|
|
35
|
+
"--Icon-color": t.color !== "neutral" || t.variant === "solid" ? "currentColor" : e.vars.palette.text.icon,
|
|
36
|
+
"--ListItem-stickyBackground": i === "transparent" ? "initial" : i,
|
|
37
|
+
// for sticky List
|
|
38
|
+
"--Sheet-background": i === "transparent" ? "initial" : i
|
|
39
|
+
}, n !== void 0 && {
|
|
40
|
+
"--List-radius": `calc(${n} - var(--variant-borderWidth, 0px))`,
|
|
41
|
+
"--unstable_actionRadius": `calc(${n} - var(--variant-borderWidth, 0px))`
|
|
42
|
+
}, {
|
|
43
|
+
backgroundColor: e.vars.palette.background.surface,
|
|
44
|
+
position: "relative"
|
|
45
|
+
}), b({}, e.typography["body-md"], t.variant === "solid" && t.color && t.invertedColors && E(t.color)(e), t.variant === "soft" && t.color && t.invertedColors && j(t.color)(e), (r = e.variants[t.variant]) == null ? void 0 : r[t.color], s)];
|
|
46
|
+
}), V = /* @__PURE__ */ F.forwardRef(function(t, a) {
|
|
47
|
+
const r = O({
|
|
48
|
+
props: t,
|
|
49
|
+
name: "JoySheet"
|
|
50
|
+
}), {
|
|
51
|
+
className: s,
|
|
52
|
+
color: n = "neutral",
|
|
53
|
+
component: d = "div",
|
|
54
|
+
variant: c = "plain",
|
|
55
|
+
invertedColors: p = !1,
|
|
56
|
+
slots: i = {},
|
|
57
|
+
slotProps: y = {}
|
|
58
|
+
} = r, h = W(r, X), v = b({}, r, {
|
|
59
|
+
color: n,
|
|
60
|
+
component: d,
|
|
61
|
+
invertedColors: p,
|
|
62
|
+
variant: c
|
|
63
|
+
}), f = Y(v), C = b({}, h, {
|
|
64
|
+
component: d,
|
|
65
|
+
slots: i,
|
|
66
|
+
slotProps: y
|
|
67
|
+
}), [T, x] = _("root", {
|
|
68
|
+
ref: a,
|
|
69
|
+
className: A(f.root, s),
|
|
70
|
+
elementType: J,
|
|
71
|
+
externalForwardedProps: C,
|
|
72
|
+
ownerState: v
|
|
73
|
+
});
|
|
74
|
+
return /* @__PURE__ */ g(T, b({}, x));
|
|
75
|
+
});
|
|
76
|
+
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
77
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
78
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
79
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
80
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
81
|
+
/**
|
|
82
|
+
* The content of the component.
|
|
83
|
+
*/
|
|
84
|
+
children: o.node,
|
|
85
|
+
/**
|
|
86
|
+
* @ignore
|
|
87
|
+
*/
|
|
88
|
+
className: o.string,
|
|
89
|
+
/**
|
|
90
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
91
|
+
* @default 'neutral'
|
|
92
|
+
*/
|
|
93
|
+
color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
|
|
94
|
+
/**
|
|
95
|
+
* The component used for the root node.
|
|
96
|
+
* Either a string to use a HTML element or a component.
|
|
97
|
+
*/
|
|
98
|
+
component: o.elementType,
|
|
99
|
+
/**
|
|
100
|
+
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
|
|
101
|
+
* @default false
|
|
102
|
+
*/
|
|
103
|
+
invertedColors: o.bool,
|
|
104
|
+
/**
|
|
105
|
+
* The props used for each slot inside.
|
|
106
|
+
* @default {}
|
|
107
|
+
*/
|
|
108
|
+
slotProps: o.shape({
|
|
109
|
+
root: o.oneOfType([o.func, o.object])
|
|
110
|
+
}),
|
|
111
|
+
/**
|
|
112
|
+
* The components used for each slot inside.
|
|
113
|
+
* @default {}
|
|
114
|
+
*/
|
|
115
|
+
slots: o.shape({
|
|
116
|
+
root: o.elementType
|
|
117
|
+
}),
|
|
118
|
+
/**
|
|
119
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
120
|
+
*/
|
|
121
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
122
|
+
/**
|
|
123
|
+
* The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
|
|
124
|
+
* @default 'plain'
|
|
125
|
+
*/
|
|
126
|
+
variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
|
|
127
|
+
});
|
|
128
|
+
function q(e) {
|
|
129
|
+
return k("MuiTable", e);
|
|
130
|
+
}
|
|
131
|
+
B("MuiTable", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "stickyHeader", "stickyFooter", "noWrap", "hoverRow", "borderAxisNone", "borderAxisX", "borderAxisXBetween", "borderAxisY", "borderAxisYBetween", "borderAxisBoth", "borderAxisBothBetween"]);
|
|
132
|
+
const G = ["className", "component", "children", "borderAxis", "hoverRow", "noWrap", "size", "variant", "color", "stripe", "stickyHeader", "stickyFooter", "slots", "slotProps"], K = (e) => {
|
|
133
|
+
const {
|
|
134
|
+
size: t,
|
|
135
|
+
variant: a,
|
|
136
|
+
color: r,
|
|
137
|
+
borderAxis: s,
|
|
138
|
+
stickyHeader: n,
|
|
139
|
+
stickyFooter: d,
|
|
140
|
+
noWrap: c,
|
|
141
|
+
hoverRow: p
|
|
142
|
+
} = e, i = {
|
|
143
|
+
root: ["root", n && "stickyHeader", d && "stickyFooter", c && "noWrap", p && "hoverRow", s && `borderAxis${u(s)}`, a && `variant${u(a)}`, r && `color${u(r)}`, t && `size${u(t)}`]
|
|
144
|
+
};
|
|
145
|
+
return P(i, q, {});
|
|
146
|
+
}, l = {
|
|
147
|
+
/**
|
|
148
|
+
* According to https://www.w3.org/TR/2014/REC-html5-20141028/tabular-data.html#the-tr-element,
|
|
149
|
+
* `tr` can only have `td | th` as children, so using :first-of-type is better than :first-child to prevent emotion SSR warning
|
|
150
|
+
*/
|
|
151
|
+
getColumnExceptFirst() {
|
|
152
|
+
return "& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th";
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* Every cell in the table
|
|
156
|
+
*/
|
|
157
|
+
getCell() {
|
|
158
|
+
return "& th, & td";
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* `th` cell of the table (could exist in the body)
|
|
162
|
+
*/
|
|
163
|
+
getHeadCell() {
|
|
164
|
+
return "& th";
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* Only the cell of `thead`
|
|
168
|
+
*/
|
|
169
|
+
getHeaderCell() {
|
|
170
|
+
return "& thead th";
|
|
171
|
+
},
|
|
172
|
+
getHeaderCellOfRow(e) {
|
|
173
|
+
return `& thead tr:nth-of-type(${e}) th`;
|
|
174
|
+
},
|
|
175
|
+
getBottomHeaderCell() {
|
|
176
|
+
return "& thead th:not([colspan])";
|
|
177
|
+
},
|
|
178
|
+
getHeaderNestedFirstColumn() {
|
|
179
|
+
return "& thead tr:not(:first-of-type) th:not([colspan]):first-of-type";
|
|
180
|
+
},
|
|
181
|
+
/**
|
|
182
|
+
* The body cell that contains data
|
|
183
|
+
*/
|
|
184
|
+
getDataCell() {
|
|
185
|
+
return "& td";
|
|
186
|
+
},
|
|
187
|
+
getDataCellExceptLastRow() {
|
|
188
|
+
return "& tr:not(:last-of-type) > td";
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* The body cell either `td` or `th`
|
|
192
|
+
*/
|
|
193
|
+
getBodyCellExceptLastRow() {
|
|
194
|
+
return `${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`;
|
|
195
|
+
},
|
|
196
|
+
getBodyCellOfRow(e) {
|
|
197
|
+
return typeof e == "number" && e < 0 ? `& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]` : `& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`;
|
|
198
|
+
},
|
|
199
|
+
getBodyRow(e) {
|
|
200
|
+
return e === void 0 ? "& tbody tr" : `& tbody tr:nth-of-type(${e})`;
|
|
201
|
+
},
|
|
202
|
+
getFooterCell() {
|
|
203
|
+
return "& tfoot th, & tfoot td";
|
|
204
|
+
},
|
|
205
|
+
getFooterFirstRowCell() {
|
|
206
|
+
return "& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td";
|
|
207
|
+
}
|
|
208
|
+
}, Q = $("table", {
|
|
209
|
+
name: "JoyTable",
|
|
210
|
+
slot: "Root",
|
|
211
|
+
overridesResolver: (e, t) => t.root
|
|
212
|
+
})(({
|
|
213
|
+
theme: e,
|
|
214
|
+
ownerState: t
|
|
215
|
+
}) => {
|
|
216
|
+
var a, r, s, n, d, c, p;
|
|
217
|
+
const i = (a = e.variants[t.variant]) == null ? void 0 : a[t.color];
|
|
218
|
+
return [b({
|
|
219
|
+
"--Table-headerUnderlineThickness": "2px",
|
|
220
|
+
"--TableCell-borderColor": (r = i == null ? void 0 : i.borderColor) != null ? r : e.vars.palette.divider,
|
|
221
|
+
"--TableCell-headBackground": `var(--Sheet-background, ${e.vars.palette.background.surface})`
|
|
222
|
+
}, t.size === "sm" && {
|
|
223
|
+
"--unstable_TableCell-height": "var(--TableCell-height, 32px)",
|
|
224
|
+
"--TableCell-paddingX": "0.25rem",
|
|
225
|
+
"--TableCell-paddingY": "0.25rem"
|
|
226
|
+
}, t.size === "md" && {
|
|
227
|
+
"--unstable_TableCell-height": "var(--TableCell-height, 40px)",
|
|
228
|
+
"--TableCell-paddingX": "0.5rem",
|
|
229
|
+
"--TableCell-paddingY": "0.375rem"
|
|
230
|
+
}, t.size === "lg" && {
|
|
231
|
+
"--unstable_TableCell-height": "var(--TableCell-height, 48px)",
|
|
232
|
+
"--TableCell-paddingX": "0.75rem",
|
|
233
|
+
"--TableCell-paddingY": "0.5rem"
|
|
234
|
+
}, {
|
|
235
|
+
tableLayout: "fixed",
|
|
236
|
+
width: "100%",
|
|
237
|
+
borderSpacing: "0px",
|
|
238
|
+
borderCollapse: "separate",
|
|
239
|
+
borderRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
|
|
240
|
+
}, e.typography[`body-${{
|
|
241
|
+
sm: "xs",
|
|
242
|
+
md: "sm",
|
|
243
|
+
lg: "md"
|
|
244
|
+
}[t.size]}`], (s = e.variants[t.variant]) == null ? void 0 : s[t.color], {
|
|
245
|
+
"& caption": {
|
|
246
|
+
color: e.vars.palette.text.tertiary,
|
|
247
|
+
padding: "calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"
|
|
248
|
+
},
|
|
249
|
+
[l.getDataCell()]: b({
|
|
250
|
+
padding: "var(--TableCell-paddingY) var(--TableCell-paddingX)",
|
|
251
|
+
height: "var(--unstable_TableCell-height)",
|
|
252
|
+
borderColor: "var(--TableCell-borderColor)",
|
|
253
|
+
// must come after border bottom
|
|
254
|
+
backgroundColor: "var(--TableCell-dataBackground)"
|
|
255
|
+
}, t.noWrap && {
|
|
256
|
+
textOverflow: "ellipsis",
|
|
257
|
+
whiteSpace: "nowrap",
|
|
258
|
+
overflow: "hidden"
|
|
259
|
+
}),
|
|
260
|
+
[l.getHeadCell()]: {
|
|
261
|
+
textAlign: "left",
|
|
262
|
+
padding: "var(--TableCell-paddingY) var(--TableCell-paddingX)",
|
|
263
|
+
backgroundColor: "var(--TableCell-headBackground)",
|
|
264
|
+
// use `background-color` in case the Sheet has gradient background
|
|
265
|
+
height: "var(--unstable_TableCell-height)",
|
|
266
|
+
fontWeight: e.vars.fontWeight.lg,
|
|
267
|
+
borderColor: "var(--TableCell-borderColor)",
|
|
268
|
+
color: e.vars.palette.text.secondary,
|
|
269
|
+
textOverflow: "ellipsis",
|
|
270
|
+
whiteSpace: "nowrap",
|
|
271
|
+
overflow: "hidden"
|
|
272
|
+
},
|
|
273
|
+
[l.getHeaderCell()]: {
|
|
274
|
+
verticalAlign: "bottom",
|
|
275
|
+
// Automatic radius adjustment with Sheet
|
|
276
|
+
"&:first-of-type": {
|
|
277
|
+
borderTopLeftRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
|
|
278
|
+
},
|
|
279
|
+
"&:last-of-type": {
|
|
280
|
+
borderTopRightRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"& tfoot tr > *": {
|
|
284
|
+
backgroundColor: `var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,
|
|
285
|
+
// Automatic radius adjustment with Sheet
|
|
286
|
+
"&:first-of-type": {
|
|
287
|
+
borderBottomLeftRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
|
|
288
|
+
},
|
|
289
|
+
"&:last-of-type": {
|
|
290
|
+
borderBottomRightRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}), (((n = t.borderAxis) == null ? void 0 : n.startsWith("x")) || ((d = t.borderAxis) == null ? void 0 : d.startsWith("both"))) && {
|
|
294
|
+
// insert border between rows
|
|
295
|
+
[l.getHeaderCell()]: {
|
|
296
|
+
borderBottomWidth: 1,
|
|
297
|
+
borderBottomStyle: "solid"
|
|
298
|
+
},
|
|
299
|
+
[l.getBottomHeaderCell()]: {
|
|
300
|
+
borderBottomWidth: "var(--Table-headerUnderlineThickness)",
|
|
301
|
+
borderBottomStyle: "solid"
|
|
302
|
+
},
|
|
303
|
+
[l.getBodyCellExceptLastRow()]: {
|
|
304
|
+
borderBottomWidth: 1,
|
|
305
|
+
borderBottomStyle: "solid"
|
|
306
|
+
},
|
|
307
|
+
[l.getFooterCell()]: {
|
|
308
|
+
borderTopWidth: 1,
|
|
309
|
+
borderTopStyle: "solid"
|
|
310
|
+
}
|
|
311
|
+
}, (((c = t.borderAxis) == null ? void 0 : c.startsWith("y")) || ((p = t.borderAxis) == null ? void 0 : p.startsWith("both"))) && {
|
|
312
|
+
// insert border between columns
|
|
313
|
+
[`${l.getColumnExceptFirst()}, ${l.getHeaderNestedFirstColumn()}`]: {
|
|
314
|
+
borderLeftWidth: 1,
|
|
315
|
+
borderLeftStyle: "solid"
|
|
316
|
+
}
|
|
317
|
+
}, (t.borderAxis === "x" || t.borderAxis === "both") && {
|
|
318
|
+
// insert border at the top of header and bottom of body
|
|
319
|
+
[l.getHeaderCellOfRow(1)]: {
|
|
320
|
+
borderTopWidth: 1,
|
|
321
|
+
borderTopStyle: "solid"
|
|
322
|
+
},
|
|
323
|
+
[l.getBodyCellOfRow(-1)]: {
|
|
324
|
+
borderBottomWidth: 1,
|
|
325
|
+
borderBottomStyle: "solid"
|
|
326
|
+
},
|
|
327
|
+
[l.getFooterCell()]: {
|
|
328
|
+
borderBottomWidth: 1,
|
|
329
|
+
borderBottomStyle: "solid"
|
|
330
|
+
}
|
|
331
|
+
}, (t.borderAxis === "y" || t.borderAxis === "both") && {
|
|
332
|
+
// insert border on the left of first column and right of the last column
|
|
333
|
+
"& tr > *:first-of-type": {
|
|
334
|
+
borderLeftWidth: 1,
|
|
335
|
+
borderLeftStyle: "solid"
|
|
336
|
+
},
|
|
337
|
+
"& tr > *:last-of-type:not(:first-of-type)": {
|
|
338
|
+
borderRightWidth: 1,
|
|
339
|
+
borderRightStyle: "solid"
|
|
340
|
+
}
|
|
341
|
+
}, t.stripe && {
|
|
342
|
+
[l.getBodyRow(t.stripe)]: {
|
|
343
|
+
// For customization, a table cell can look for this variable with a fallback value.
|
|
344
|
+
background: `var(--TableRow-stripeBackground, ${e.vars.palette.background.level2})`,
|
|
345
|
+
color: e.vars.palette.text.primary
|
|
346
|
+
}
|
|
347
|
+
}, t.hoverRow && {
|
|
348
|
+
[l.getBodyRow()]: {
|
|
349
|
+
"&:hover": {
|
|
350
|
+
background: `var(--TableRow-hoverBackground, ${e.vars.palette.background.level3})`
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}, t.stickyHeader && {
|
|
354
|
+
// The column header
|
|
355
|
+
[l.getHeaderCell()]: {
|
|
356
|
+
position: "sticky",
|
|
357
|
+
top: 0,
|
|
358
|
+
zIndex: e.vars.zIndex.table
|
|
359
|
+
},
|
|
360
|
+
[l.getHeaderCellOfRow(2)]: {
|
|
361
|
+
// support upto 2 rows for the sticky header
|
|
362
|
+
top: "var(--unstable_TableCell-height)"
|
|
363
|
+
}
|
|
364
|
+
}, t.stickyFooter && {
|
|
365
|
+
// The column header
|
|
366
|
+
[l.getFooterCell()]: {
|
|
367
|
+
position: "sticky",
|
|
368
|
+
bottom: 0,
|
|
369
|
+
zIndex: e.vars.zIndex.table,
|
|
370
|
+
color: e.vars.palette.text.secondary,
|
|
371
|
+
fontWeight: e.vars.fontWeight.lg
|
|
372
|
+
},
|
|
373
|
+
[l.getFooterFirstRowCell()]: {
|
|
374
|
+
// support upto 2 rows for the sticky footer
|
|
375
|
+
bottom: "var(--unstable_TableCell-height)"
|
|
376
|
+
}
|
|
377
|
+
}];
|
|
378
|
+
}), Z = /* @__PURE__ */ F.forwardRef(function(t, a) {
|
|
379
|
+
const r = O({
|
|
380
|
+
props: t,
|
|
381
|
+
name: "JoyTable"
|
|
382
|
+
}), {
|
|
383
|
+
className: s,
|
|
384
|
+
component: n,
|
|
385
|
+
children: d,
|
|
386
|
+
borderAxis: c = "xBetween",
|
|
387
|
+
hoverRow: p = !1,
|
|
388
|
+
noWrap: i = !1,
|
|
389
|
+
size: y = "md",
|
|
390
|
+
variant: h = "plain",
|
|
391
|
+
color: v = "neutral",
|
|
392
|
+
stripe: f,
|
|
393
|
+
stickyHeader: C = !1,
|
|
394
|
+
stickyFooter: T = !1,
|
|
395
|
+
slots: x = {},
|
|
396
|
+
slotProps: H = {}
|
|
397
|
+
} = r, z = W(r, G), m = b({}, r, {
|
|
398
|
+
borderAxis: c,
|
|
399
|
+
hoverRow: p,
|
|
400
|
+
noWrap: i,
|
|
401
|
+
component: n,
|
|
402
|
+
size: y,
|
|
403
|
+
color: v,
|
|
404
|
+
variant: h,
|
|
405
|
+
stripe: f,
|
|
406
|
+
stickyHeader: C,
|
|
407
|
+
stickyFooter: T
|
|
408
|
+
}), N = K(m), L = b({}, z, {
|
|
409
|
+
component: n,
|
|
410
|
+
slots: x,
|
|
411
|
+
slotProps: H
|
|
412
|
+
}), [w, S] = _("root", {
|
|
413
|
+
ref: a,
|
|
414
|
+
className: A(N.root, s),
|
|
415
|
+
elementType: Q,
|
|
416
|
+
externalForwardedProps: L,
|
|
417
|
+
ownerState: m
|
|
418
|
+
});
|
|
419
|
+
return /* @__PURE__ */ g(D.Provider, {
|
|
420
|
+
value: !0,
|
|
421
|
+
children: /* @__PURE__ */ g(w, b({}, S, {
|
|
422
|
+
children: d
|
|
423
|
+
}))
|
|
424
|
+
});
|
|
425
|
+
});
|
|
426
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
427
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
428
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
429
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
430
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
431
|
+
/**
|
|
432
|
+
* The axis to display a border on the table cell.
|
|
433
|
+
* @default 'xBetween'
|
|
434
|
+
*/
|
|
435
|
+
borderAxis: o.oneOfType([o.oneOf(["both", "bothBetween", "none", "x", "xBetween", "y", "yBetween"]), o.string]),
|
|
436
|
+
/**
|
|
437
|
+
* Children of the table
|
|
438
|
+
*/
|
|
439
|
+
children: o.node,
|
|
440
|
+
/**
|
|
441
|
+
* @ignore
|
|
442
|
+
*/
|
|
443
|
+
className: o.string,
|
|
444
|
+
/**
|
|
445
|
+
* The color of the component. It supports those theme colors that make sense for this component.
|
|
446
|
+
* @default 'neutral'
|
|
447
|
+
*/
|
|
448
|
+
color: o.oneOfType([o.oneOf(["danger", "neutral", "primary", "success", "warning"]), o.string]),
|
|
449
|
+
/**
|
|
450
|
+
* The component used for the root node.
|
|
451
|
+
* Either a string to use a HTML element or a component.
|
|
452
|
+
*/
|
|
453
|
+
component: o.elementType,
|
|
454
|
+
/**
|
|
455
|
+
* If `true`, the table row will shade on hover.
|
|
456
|
+
* @default false
|
|
457
|
+
*/
|
|
458
|
+
hoverRow: o.bool,
|
|
459
|
+
/**
|
|
460
|
+
* If `true`, the body cells will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
461
|
+
*
|
|
462
|
+
* Note: Header cells are always truncated with overflow ellipsis.
|
|
463
|
+
*
|
|
464
|
+
* @default false
|
|
465
|
+
*/
|
|
466
|
+
noWrap: o.bool,
|
|
467
|
+
/**
|
|
468
|
+
* The size of the component.
|
|
469
|
+
* It accepts theme values between 'sm' and 'lg'.
|
|
470
|
+
* @default 'md'
|
|
471
|
+
*/
|
|
472
|
+
size: o.oneOfType([o.oneOf(["sm", "md", "lg"]), o.string]),
|
|
473
|
+
/**
|
|
474
|
+
* The props used for each slot inside.
|
|
475
|
+
* @default {}
|
|
476
|
+
*/
|
|
477
|
+
slotProps: o.shape({
|
|
478
|
+
root: o.oneOfType([o.func, o.object])
|
|
479
|
+
}),
|
|
480
|
+
/**
|
|
481
|
+
* The components used for each slot inside.
|
|
482
|
+
* @default {}
|
|
483
|
+
*/
|
|
484
|
+
slots: o.shape({
|
|
485
|
+
root: o.elementType
|
|
486
|
+
}),
|
|
487
|
+
/**
|
|
488
|
+
* If `true`, the footer always appear at the bottom of the overflow table.
|
|
489
|
+
*
|
|
490
|
+
* ⚠️ It doesn't work with IE11.
|
|
491
|
+
* @default false
|
|
492
|
+
*/
|
|
493
|
+
stickyFooter: o.bool,
|
|
494
|
+
/**
|
|
495
|
+
* If `true`, the header always appear at the top of the overflow table.
|
|
496
|
+
*
|
|
497
|
+
* ⚠️ It doesn't work with IE11.
|
|
498
|
+
* @default false
|
|
499
|
+
*/
|
|
500
|
+
stickyHeader: o.bool,
|
|
501
|
+
/**
|
|
502
|
+
* The odd or even row of the table body will have subtle background color.
|
|
503
|
+
*/
|
|
504
|
+
stripe: o.oneOfType([o.oneOf(["odd", "even"]), o.string]),
|
|
505
|
+
/**
|
|
506
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
507
|
+
*/
|
|
508
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
509
|
+
/**
|
|
510
|
+
* The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
|
|
511
|
+
* @default 'plain'
|
|
512
|
+
*/
|
|
513
|
+
variant: o.oneOfType([o.oneOf(["outlined", "plain", "soft", "solid"]), o.string])
|
|
514
|
+
});
|
|
515
|
+
const to = M(/* @__PURE__ */ g("path", {
|
|
516
|
+
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
|
|
517
|
+
}), "Person");
|
|
518
|
+
export {
|
|
519
|
+
to as P,
|
|
520
|
+
V as S,
|
|
521
|
+
Z as T
|
|
522
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as w, jsx as t, Fragment as q } from "react/jsx-runtime";
|
|
2
|
-
import { e as Q,
|
|
2
|
+
import { e as Q, k as tt, j as ot, h as rt, f as dt, B as d, T as D, D as ct, ao as gt, ab as mt } from "./PrizeCard-gMp7I66d.js";
|
|
3
3
|
import Mt, { useState as Y, useEffect as ft, useRef as At } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
const it = (e, y) => (o) => {
|
|
@@ -4194,14 +4194,14 @@ export {
|
|
|
4194
4194
|
Ft as D,
|
|
4195
4195
|
ne as F,
|
|
4196
4196
|
ee as O,
|
|
4197
|
-
|
|
4197
|
+
le as P,
|
|
4198
4198
|
nt as S,
|
|
4199
4199
|
jt as W,
|
|
4200
|
-
|
|
4201
|
-
|
|
4200
|
+
de as a,
|
|
4201
|
+
ce as b,
|
|
4202
4202
|
it as c,
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4203
|
+
Dt as d,
|
|
4204
|
+
Ht as e,
|
|
4205
|
+
te as f,
|
|
4206
4206
|
Et as u
|
|
4207
4207
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { i as E,
|
|
1
|
+
import { jsx as o, jsxs as C, Fragment as y } from "react/jsx-runtime";
|
|
2
|
+
import { i as E, a as w, W as P, C as v, b as I, E as k, d as x, B as S } from "./PrizeCard-gMp7I66d.js";
|
|
3
3
|
import n from "react";
|
|
4
4
|
import { createPortal as B } from "react-dom";
|
|
5
5
|
const L = (t) => {
|
|
6
6
|
var i;
|
|
7
7
|
const [f, l] = n.useState(!1), [m, h] = n.useState(!1), s = n.useRef(
|
|
8
8
|
`${t.packageName}-shadow-root-${Math.random().toString(36).substring(2, 11)}`
|
|
9
|
-
), r = n.useRef(null), a = n.useRef(null), e = n.useRef(null),
|
|
9
|
+
), r = n.useRef(null), a = n.useRef(null), e = n.useRef(null), c = n.useRef(null);
|
|
10
10
|
n.useEffect(() => {
|
|
11
11
|
E(t.language || "en").finally(() => h(!0));
|
|
12
12
|
}, [t.language]), n.useEffect(() => {
|
|
13
13
|
if (r.current)
|
|
14
14
|
return r.current.shadowRoot ? (a.current = r.current.shadowRoot, e.current = a.current.getElementById(
|
|
15
15
|
s.current
|
|
16
|
-
), e.current || (e.current = document.createElement("div"), e.current.id = s.current, a.current.appendChild(e.current))) : (a.current = r.current.attachShadow({ mode: "open" }), e.current = document.createElement("div"), e.current.id = s.current, a.current.appendChild(e.current)),
|
|
16
|
+
), e.current || (e.current = document.createElement("div"), e.current.id = s.current, a.current.appendChild(e.current))) : (a.current = r.current.attachShadow({ mode: "open" }), e.current = document.createElement("div"), e.current.id = s.current, a.current.appendChild(e.current)), c.current || (c.current = w({
|
|
17
17
|
key: `${t.packageName}-css`,
|
|
18
18
|
prepend: !0,
|
|
19
19
|
container: a.current
|
|
@@ -24,14 +24,14 @@ const L = (t) => {
|
|
|
24
24
|
const u = t.themeOptions, d = {
|
|
25
25
|
...u,
|
|
26
26
|
mode: t.template === P.OVERLAY ? "dark" : u == null ? void 0 : u.mode
|
|
27
|
-
}, R = /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
27
|
+
}, R = /* @__PURE__ */ o(S, { ref: r }), g = f && m && e.current && c.current ? B(
|
|
28
|
+
/* @__PURE__ */ o(v, { value: c.current, children: /* @__PURE__ */ o(I, { containerRef: r, children: /* @__PURE__ */ o(
|
|
29
29
|
k,
|
|
30
30
|
{
|
|
31
31
|
customTheme: d,
|
|
32
32
|
mode: d == null ? void 0 : d.mode,
|
|
33
33
|
shadowRootElement: e.current,
|
|
34
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ o(
|
|
35
35
|
x,
|
|
36
36
|
{
|
|
37
37
|
shadowRootElement: e.current,
|