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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as de, H as ue, I as J, _ as f, t as L, J as M, K as A, P as r, m as pe, l as xe, s as F, q as fe, v as $, x as V, y as ge } from "./PrizeCard-gMp7I66d.js";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import { c as
|
|
4
|
-
import { jsxs as
|
|
3
|
+
import { c as ve, u as he } from "./CheckCircle-ClY-iOQ5.js";
|
|
4
|
+
import { jsxs as U, jsx as w } from "react/jsx-runtime";
|
|
5
5
|
function me(a, e = 166) {
|
|
6
6
|
let u;
|
|
7
7
|
function i(...s) {
|
|
@@ -21,18 +21,18 @@ function _e(a) {
|
|
|
21
21
|
disabled: i,
|
|
22
22
|
onBlur: s,
|
|
23
23
|
onChange: l,
|
|
24
|
-
onFocus:
|
|
25
|
-
onFocusVisible:
|
|
24
|
+
onFocus: v,
|
|
25
|
+
onFocusVisible: h,
|
|
26
26
|
readOnly: m,
|
|
27
|
-
required:
|
|
28
|
-
} = a, [y,
|
|
27
|
+
required: H
|
|
28
|
+
} = a, [y, S] = de({
|
|
29
29
|
controlled: e,
|
|
30
30
|
default: !!u,
|
|
31
31
|
name: "Switch",
|
|
32
32
|
state: "checked"
|
|
33
33
|
}), k = (n) => (t) => {
|
|
34
34
|
var x;
|
|
35
|
-
t.nativeEvent.defaultPrevented || (
|
|
35
|
+
t.nativeEvent.defaultPrevented || (S(t.target.checked), l == null || l(t), (x = n.onChange) == null || x.call(n, t));
|
|
36
36
|
}, {
|
|
37
37
|
isFocusVisibleRef: b,
|
|
38
38
|
onBlur: C,
|
|
@@ -44,7 +44,7 @@ function _e(a) {
|
|
|
44
44
|
}, [p, b]);
|
|
45
45
|
const d = g.useRef(null), R = (n) => (t) => {
|
|
46
46
|
var x;
|
|
47
|
-
d.current || (d.current = t.currentTarget), I(t), b.current === !0 && (o(!0),
|
|
47
|
+
d.current || (d.current = t.currentTarget), I(t), b.current === !0 && (o(!0), h == null || h(t)), v == null || v(t), (x = n.onFocus) == null || x.call(n, t);
|
|
48
48
|
}, z = (n) => (t) => {
|
|
49
49
|
var x;
|
|
50
50
|
C(t), b.current === !1 && o(!1), s == null || s(t), (x = n.onBlur) == null || x.call(n, t);
|
|
@@ -59,7 +59,7 @@ function _e(a) {
|
|
|
59
59
|
disabled: i,
|
|
60
60
|
readOnly: m,
|
|
61
61
|
ref: T,
|
|
62
|
-
required:
|
|
62
|
+
required: H,
|
|
63
63
|
type: "checkbox",
|
|
64
64
|
role: "switch",
|
|
65
65
|
"aria-checked": e
|
|
@@ -94,16 +94,16 @@ const be = {
|
|
|
94
94
|
function ye(a) {
|
|
95
95
|
return a == null || Object.keys(a).length === 0 || a.outerHeightStyle === 0 && !a.overflowing;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const j = /* @__PURE__ */ g.forwardRef(function(e, u) {
|
|
98
98
|
const {
|
|
99
99
|
onChange: i,
|
|
100
100
|
maxRows: s,
|
|
101
101
|
minRows: l = 1,
|
|
102
|
-
style:
|
|
103
|
-
value:
|
|
104
|
-
} = e, m =
|
|
105
|
-
current:
|
|
106
|
-
} = g.useRef(
|
|
102
|
+
style: v,
|
|
103
|
+
value: h
|
|
104
|
+
} = e, m = L(e, Te), {
|
|
105
|
+
current: H
|
|
106
|
+
} = g.useRef(h != null), y = g.useRef(null), S = J(u, y), k = g.useRef(null), b = g.useCallback(() => {
|
|
107
107
|
const c = y.current, o = M(c).getComputedStyle(c);
|
|
108
108
|
if (o.width === "0px")
|
|
109
109
|
return {
|
|
@@ -149,29 +149,29 @@ const U = /* @__PURE__ */ g.forwardRef(function(e, u) {
|
|
|
149
149
|
C();
|
|
150
150
|
});
|
|
151
151
|
const I = (c) => {
|
|
152
|
-
|
|
152
|
+
H || C(), i && i(c);
|
|
153
153
|
};
|
|
154
|
-
return /* @__PURE__ */
|
|
154
|
+
return /* @__PURE__ */ U(g.Fragment, {
|
|
155
155
|
children: [/* @__PURE__ */ w("textarea", f({
|
|
156
|
-
value:
|
|
156
|
+
value: h,
|
|
157
157
|
onChange: I,
|
|
158
|
-
ref:
|
|
158
|
+
ref: S,
|
|
159
159
|
rows: l,
|
|
160
|
-
style:
|
|
160
|
+
style: v
|
|
161
161
|
}, m)), /* @__PURE__ */ w("textarea", {
|
|
162
162
|
"aria-hidden": !0,
|
|
163
163
|
className: e.className,
|
|
164
164
|
readOnly: !0,
|
|
165
165
|
ref: k,
|
|
166
166
|
tabIndex: -1,
|
|
167
|
-
style: f({}, be.shadow,
|
|
167
|
+
style: f({}, be.shadow, v, {
|
|
168
168
|
paddingTop: 0,
|
|
169
169
|
paddingBottom: 0
|
|
170
170
|
})
|
|
171
171
|
})]
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
|
-
process.env.NODE_ENV !== "production" && (
|
|
174
|
+
process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
175
175
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
176
176
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
177
177
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -206,7 +206,7 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
|
206
206
|
*/
|
|
207
207
|
value: r.oneOfType([r.arrayOf(r.string), r.number, r.string])
|
|
208
208
|
});
|
|
209
|
-
const $e =
|
|
209
|
+
const $e = ve(/* @__PURE__ */ w("path", {
|
|
210
210
|
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"
|
|
211
211
|
}), "Close");
|
|
212
212
|
function Ce(a) {
|
|
@@ -233,7 +233,7 @@ const q = pe("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
233
233
|
theme: a,
|
|
234
234
|
ownerState: e
|
|
235
235
|
}) => {
|
|
236
|
-
var u, i, s, l,
|
|
236
|
+
var u, i, s, l, v, h;
|
|
237
237
|
const m = (u = a.variants[`${e.variant}`]) == null ? void 0 : u[e.color];
|
|
238
238
|
return [f({
|
|
239
239
|
"--Textarea-radius": a.vars.radius.sm,
|
|
@@ -312,17 +312,17 @@ const q = pe("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
312
312
|
boxShadow: "var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"
|
|
313
313
|
}
|
|
314
314
|
}), {
|
|
315
|
-
"&:hover": f({}, (
|
|
315
|
+
"&:hover": f({}, (v = a.variants[`${e.variant}Hover`]) == null ? void 0 : v[e.color], {
|
|
316
316
|
backgroundColor: null,
|
|
317
317
|
// it is not common to change background on hover for Textarea
|
|
318
318
|
cursor: "text"
|
|
319
319
|
}),
|
|
320
|
-
[`&.${q.disabled}`]: (
|
|
320
|
+
[`&.${q.disabled}`]: (h = a.variants[`${e.variant}Disabled`]) == null ? void 0 : h[e.color],
|
|
321
321
|
"&:focus-within::before": {
|
|
322
322
|
"--Textarea-focused": "1"
|
|
323
323
|
}
|
|
324
324
|
}];
|
|
325
|
-
}),
|
|
325
|
+
}), He = F(j, {
|
|
326
326
|
name: "JoyTextarea",
|
|
327
327
|
slot: "Textarea",
|
|
328
328
|
overridesResolver: (a, e) => e.textarea
|
|
@@ -365,7 +365,7 @@ const q = pe("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
365
365
|
color: "var(--Textarea-placeholderColor)",
|
|
366
366
|
opacity: "var(--Textarea-placeholderOpacity)"
|
|
367
367
|
}
|
|
368
|
-
}),
|
|
368
|
+
}), Se = F("div", {
|
|
369
369
|
name: "JoyTextarea",
|
|
370
370
|
slot: "StartDecorator",
|
|
371
371
|
overridesResolver: (a, e) => e.startDecorator
|
|
@@ -388,11 +388,11 @@ const q = pe("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
388
388
|
color: "var(--Textarea-decoratorColor)",
|
|
389
389
|
cursor: "initial"
|
|
390
390
|
}), Ie = /* @__PURE__ */ g.forwardRef(function(e, u) {
|
|
391
|
-
var i, s, l,
|
|
392
|
-
const
|
|
391
|
+
var i, s, l, v, h, m, H, y;
|
|
392
|
+
const S = fe({
|
|
393
393
|
props: e,
|
|
394
394
|
name: "JoyTextarea"
|
|
395
|
-
}), k =
|
|
395
|
+
}), k = he(S, q), {
|
|
396
396
|
propsToForward: b,
|
|
397
397
|
rootStateClasses: C,
|
|
398
398
|
inputStateClasses: I,
|
|
@@ -408,11 +408,11 @@ const q = pe("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
408
408
|
startDecorator: t,
|
|
409
409
|
endDecorator: x,
|
|
410
410
|
minRows: P,
|
|
411
|
-
maxRows:
|
|
412
|
-
component:
|
|
413
|
-
slots:
|
|
411
|
+
maxRows: G,
|
|
412
|
+
component: K,
|
|
413
|
+
slots: Z = {},
|
|
414
414
|
slotProps: Q = {}
|
|
415
|
-
} = k, X =
|
|
415
|
+
} = k, X = L(k, Re);
|
|
416
416
|
if (process.env.NODE_ENV !== "production") {
|
|
417
417
|
const W = o == null ? void 0 : o.registerEffect;
|
|
418
418
|
g.useEffect(() => {
|
|
@@ -420,9 +420,9 @@ const q = pe("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
420
420
|
return W();
|
|
421
421
|
}, [W]);
|
|
422
422
|
}
|
|
423
|
-
const Y = (i = (s = e.disabled) != null ? s : o == null ? void 0 : o.disabled) != null ? i : z, N = (l = (
|
|
423
|
+
const Y = (i = (s = e.disabled) != null ? s : o == null ? void 0 : o.disabled) != null ? i : z, N = (l = (v = e.error) != null ? v : o == null ? void 0 : o.error) != null ? l : R, ee = (h = (m = e.size) != null ? m : o == null ? void 0 : o.size) != null ? h : T, re = (H = e.color) != null ? H : N ? "danger" : (y = o == null ? void 0 : o.color) != null ? y : B, D = f({
|
|
424
424
|
instanceColor: N ? "danger" : e.color
|
|
425
|
-
},
|
|
425
|
+
}, S, {
|
|
426
426
|
color: re,
|
|
427
427
|
disabled: Y,
|
|
428
428
|
error: N,
|
|
@@ -430,8 +430,8 @@ const q = pe("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
430
430
|
size: ee,
|
|
431
431
|
variant: n
|
|
432
432
|
}), O = ze(D), _ = f({}, X, {
|
|
433
|
-
component:
|
|
434
|
-
slots:
|
|
433
|
+
component: K,
|
|
434
|
+
slots: Z,
|
|
435
435
|
slotProps: Q
|
|
436
436
|
}), [ae, oe] = $("root", {
|
|
437
437
|
ref: u,
|
|
@@ -446,17 +446,17 @@ const q = pe("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
446
446
|
"aria-describedby": o == null ? void 0 : o["aria-describedby"]
|
|
447
447
|
},
|
|
448
448
|
className: [O.textarea, I],
|
|
449
|
-
elementType:
|
|
449
|
+
elementType: He,
|
|
450
450
|
internalForwardedProps: f({}, b, {
|
|
451
451
|
minRows: P,
|
|
452
|
-
maxRows:
|
|
452
|
+
maxRows: G
|
|
453
453
|
}),
|
|
454
454
|
externalForwardedProps: _,
|
|
455
455
|
getSlotProps: p,
|
|
456
456
|
ownerState: D
|
|
457
457
|
}), [ie, se] = $("startDecorator", {
|
|
458
458
|
className: O.startDecorator,
|
|
459
|
-
elementType:
|
|
459
|
+
elementType: Se,
|
|
460
460
|
externalForwardedProps: _,
|
|
461
461
|
ownerState: D
|
|
462
462
|
}), [le, ce] = $("endDecorator", {
|
|
@@ -465,7 +465,7 @@ const q = pe("MuiTextarea", ["root", "textarea", "startDecorator", "endDecorator
|
|
|
465
465
|
externalForwardedProps: _,
|
|
466
466
|
ownerState: D
|
|
467
467
|
});
|
|
468
|
-
return /* @__PURE__ */
|
|
468
|
+
return /* @__PURE__ */ U(ae, f({}, oe, {
|
|
469
469
|
children: [t && /* @__PURE__ */ w(ie, f({}, se, {
|
|
470
470
|
children: t
|
|
471
471
|
})), /* @__PURE__ */ w(te, f({}, ne)), x && /* @__PURE__ */ w(le, f({}, ce, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { c as m } from "./PrizeCard-gMp7I66d.js";
|
|
3
3
|
const t = m(/* @__PURE__ */ c("path", {
|
|
4
4
|
d: "M15 1H9v2h6zm-4 13h2V8h-2zm8.03-6.61 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"
|
|
5
5
|
}), "TimerOutlined");
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { m as w, l as R, s as x, _ as i, a8 as F, a9 as A, P as o, q as T, t as O, v as z, w as I, y as P, c as m } from "./PrizeCard-gMp7I66d.js";
|
|
2
|
+
import * as D from "react";
|
|
3
|
+
import { forwardRef as $, createElement as b } from "react";
|
|
4
|
+
import { c as M } from "./Spinner-BBA89t5s.js";
|
|
5
|
+
import { a as E } from "./NotFoundSkeleton-B3RNa8KJ.js";
|
|
6
|
+
import { d as k } from "./Notification-BTtUhfZQ.js";
|
|
7
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
8
|
+
function K(t) {
|
|
9
|
+
return R("MuiCardActions", t);
|
|
10
|
+
}
|
|
11
|
+
w("MuiCardActions", ["root"]);
|
|
12
|
+
const U = ["className", "component", "children", "buttonFlex", "orientation", "slots", "slotProps"], B = () => P({
|
|
13
|
+
root: ["root"]
|
|
14
|
+
}, K, {}), _ = x("div")(({
|
|
15
|
+
ownerState: t
|
|
16
|
+
}) => {
|
|
17
|
+
var e;
|
|
18
|
+
return i({
|
|
19
|
+
"--Button-radius": "var(--Card-childRadius)",
|
|
20
|
+
"--IconButton-radius": "var(--Card-childRadius)",
|
|
21
|
+
display: "flex"
|
|
22
|
+
}, ((e = t.orientation) == null ? void 0 : e.startsWith("horizontal")) && {
|
|
23
|
+
alignItems: "center"
|
|
24
|
+
// it is common to have children aligned center in horizontal orientation, but not vertically.
|
|
25
|
+
}, {
|
|
26
|
+
flexDirection: t.orientation === "horizontal" ? "row" : "column"
|
|
27
|
+
}, t.orientation === "horizontal-reverse" && {
|
|
28
|
+
flexDirection: "row-reverse"
|
|
29
|
+
}, {
|
|
30
|
+
zIndex: 1,
|
|
31
|
+
// render above Link's overlay
|
|
32
|
+
gap: "calc(0.625 * var(--Card-padding))",
|
|
33
|
+
padding: "var(--unstable_padding)",
|
|
34
|
+
"--unstable_padding": "calc(0.75 * var(--Card-padding)) 0 0 0",
|
|
35
|
+
[`.${E.root} > &`]: {
|
|
36
|
+
"--unstable_padding": "calc(0.75 * var(--Card-padding)) 0 var(--Card-padding)"
|
|
37
|
+
},
|
|
38
|
+
[`.${M.root} > .${k.root} + &`]: {
|
|
39
|
+
"--unstable_padding": "0"
|
|
40
|
+
}
|
|
41
|
+
}, t.buttonFlex ? {
|
|
42
|
+
[`& > :not(.${F.root})`]: {
|
|
43
|
+
flex: t.buttonFlex
|
|
44
|
+
},
|
|
45
|
+
[`& > :not(button) > .${A.root}`]: {
|
|
46
|
+
width: "100%"
|
|
47
|
+
// for button to fill its wrapper.
|
|
48
|
+
}
|
|
49
|
+
} : {
|
|
50
|
+
[`& > .${A.root}:only-child`]: {
|
|
51
|
+
flex: "auto"
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}), S = x(_, {
|
|
55
|
+
name: "JoyCardActions",
|
|
56
|
+
slot: "Root",
|
|
57
|
+
overridesResolver: (t, e) => e.root
|
|
58
|
+
})({}), J = /* @__PURE__ */ D.forwardRef(function(e, r) {
|
|
59
|
+
const s = T({
|
|
60
|
+
props: e,
|
|
61
|
+
name: "JoyCardActions"
|
|
62
|
+
}), {
|
|
63
|
+
className: a,
|
|
64
|
+
component: n = "div",
|
|
65
|
+
children: c,
|
|
66
|
+
buttonFlex: d,
|
|
67
|
+
orientation: p = "horizontal",
|
|
68
|
+
slots: u = {},
|
|
69
|
+
slotProps: h = {}
|
|
70
|
+
} = s, f = O(s, U), y = i({}, f, {
|
|
71
|
+
component: n,
|
|
72
|
+
slots: u,
|
|
73
|
+
slotProps: h
|
|
74
|
+
}), g = i({}, s, {
|
|
75
|
+
component: n,
|
|
76
|
+
buttonFlex: d,
|
|
77
|
+
orientation: p
|
|
78
|
+
}), v = B(), [C, j] = z("root", {
|
|
79
|
+
ref: r,
|
|
80
|
+
className: I(v.root, a),
|
|
81
|
+
elementType: S,
|
|
82
|
+
externalForwardedProps: y,
|
|
83
|
+
ownerState: g
|
|
84
|
+
});
|
|
85
|
+
return /* @__PURE__ */ l(C, i({}, j, {
|
|
86
|
+
children: c
|
|
87
|
+
}));
|
|
88
|
+
});
|
|
89
|
+
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
90
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
91
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
92
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
93
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
94
|
+
/**
|
|
95
|
+
* The CSS `flex` for the Button and its wrapper.
|
|
96
|
+
*/
|
|
97
|
+
buttonFlex: o.oneOfType([o.number, o.string]),
|
|
98
|
+
/**
|
|
99
|
+
* Used to render icon or text elements inside the CardActions if `src` is not set.
|
|
100
|
+
* This can be an element, or just a string.
|
|
101
|
+
*/
|
|
102
|
+
children: o.node,
|
|
103
|
+
/**
|
|
104
|
+
* @ignore
|
|
105
|
+
*/
|
|
106
|
+
className: o.string,
|
|
107
|
+
/**
|
|
108
|
+
* The component used for the root node.
|
|
109
|
+
* Either a string to use a HTML element or a component.
|
|
110
|
+
*/
|
|
111
|
+
component: o.elementType,
|
|
112
|
+
/**
|
|
113
|
+
* The component orientation.
|
|
114
|
+
* @default 'horizontal'
|
|
115
|
+
*/
|
|
116
|
+
orientation: o.oneOf(["horizontal-reverse", "horizontal", "vertical"]),
|
|
117
|
+
/**
|
|
118
|
+
* The props used for each slot inside.
|
|
119
|
+
* @default {}
|
|
120
|
+
*/
|
|
121
|
+
slotProps: o.shape({
|
|
122
|
+
root: o.oneOfType([o.func, o.object])
|
|
123
|
+
}),
|
|
124
|
+
/**
|
|
125
|
+
* The components used for each slot inside.
|
|
126
|
+
* @default {}
|
|
127
|
+
*/
|
|
128
|
+
slots: o.shape({
|
|
129
|
+
root: o.elementType
|
|
130
|
+
}),
|
|
131
|
+
/**
|
|
132
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
133
|
+
*/
|
|
134
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
135
|
+
});
|
|
136
|
+
function H(t) {
|
|
137
|
+
return R("MuiDialogActions", t);
|
|
138
|
+
}
|
|
139
|
+
w("MuiDialogActions", ["root"]);
|
|
140
|
+
const V = ["component", "children", "buttonFlex", "orientation", "slots", "slotProps"], W = () => P({
|
|
141
|
+
root: ["root"]
|
|
142
|
+
}, H, {}), q = x(_, {
|
|
143
|
+
name: "JoyDialogActions",
|
|
144
|
+
slot: "Root",
|
|
145
|
+
overridesResolver: (t, e) => e.root
|
|
146
|
+
})({}), Z = /* @__PURE__ */ D.forwardRef(function(e, r) {
|
|
147
|
+
const s = T({
|
|
148
|
+
props: e,
|
|
149
|
+
name: "JoyDialogActions"
|
|
150
|
+
}), {
|
|
151
|
+
component: a = "div",
|
|
152
|
+
children: n,
|
|
153
|
+
buttonFlex: c,
|
|
154
|
+
orientation: d = "horizontal-reverse",
|
|
155
|
+
slots: p = {},
|
|
156
|
+
slotProps: u = {}
|
|
157
|
+
} = s, h = O(s, V), f = i({}, h, {
|
|
158
|
+
component: a,
|
|
159
|
+
slots: p,
|
|
160
|
+
slotProps: u
|
|
161
|
+
}), y = i({}, s, {
|
|
162
|
+
component: a,
|
|
163
|
+
buttonFlex: c,
|
|
164
|
+
orientation: d
|
|
165
|
+
}), g = W(), [v, C] = z("root", {
|
|
166
|
+
ref: r,
|
|
167
|
+
className: g.root,
|
|
168
|
+
elementType: q,
|
|
169
|
+
externalForwardedProps: f,
|
|
170
|
+
ownerState: y
|
|
171
|
+
});
|
|
172
|
+
return /* @__PURE__ */ l(v, i({}, C, {
|
|
173
|
+
children: n
|
|
174
|
+
}));
|
|
175
|
+
});
|
|
176
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
177
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
178
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
179
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
180
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
181
|
+
/**
|
|
182
|
+
* The CSS `flex` for the Button and its wrapper.
|
|
183
|
+
*/
|
|
184
|
+
buttonFlex: o.oneOfType([o.number, o.string]),
|
|
185
|
+
/**
|
|
186
|
+
* Used to render icon or text elements inside the DialogActions if `src` is not set.
|
|
187
|
+
* This can be an element, or just a string.
|
|
188
|
+
*/
|
|
189
|
+
children: o.node,
|
|
190
|
+
/**
|
|
191
|
+
* The component used for the root node.
|
|
192
|
+
* Either a string to use a HTML element or a component.
|
|
193
|
+
*/
|
|
194
|
+
component: o.elementType,
|
|
195
|
+
/**
|
|
196
|
+
* The component orientation.
|
|
197
|
+
* @default 'horizontal-reverse'
|
|
198
|
+
*/
|
|
199
|
+
orientation: o.oneOf(["horizontal-reverse", "horizontal", "vertical"]),
|
|
200
|
+
/**
|
|
201
|
+
* The props used for each slot inside.
|
|
202
|
+
* @default {}
|
|
203
|
+
*/
|
|
204
|
+
slotProps: o.shape({
|
|
205
|
+
root: o.oneOfType([o.func, o.object])
|
|
206
|
+
}),
|
|
207
|
+
/**
|
|
208
|
+
* The components used for each slot inside.
|
|
209
|
+
* @default {}
|
|
210
|
+
*/
|
|
211
|
+
slots: o.shape({
|
|
212
|
+
root: o.elementType
|
|
213
|
+
}),
|
|
214
|
+
/**
|
|
215
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
216
|
+
*/
|
|
217
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
218
|
+
});
|
|
219
|
+
const no = m(/* @__PURE__ */ l("path", {
|
|
220
|
+
d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"
|
|
221
|
+
}), "KeyboardArrowLeft"), ao = m(/* @__PURE__ */ l("path", {
|
|
222
|
+
d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
|
|
223
|
+
}), "KeyboardArrowRight"), io = m(/* @__PURE__ */ l("path", {
|
|
224
|
+
d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
|
|
225
|
+
}), "HelpOutline"), lo = m(/* @__PURE__ */ l("path", {
|
|
226
|
+
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
|
|
227
|
+
}), "Edit");
|
|
228
|
+
/**
|
|
229
|
+
* @license lucide-react v0.454.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/
|
|
234
|
+
const G = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), L = (...t) => t.filter((e, r, s) => !!e && e.trim() !== "" && s.indexOf(e) === r).join(" ").trim();
|
|
235
|
+
/**
|
|
236
|
+
* @license lucide-react v0.454.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/
|
|
241
|
+
var Q = {
|
|
242
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
243
|
+
width: 24,
|
|
244
|
+
height: 24,
|
|
245
|
+
viewBox: "0 0 24 24",
|
|
246
|
+
fill: "none",
|
|
247
|
+
stroke: "currentColor",
|
|
248
|
+
strokeWidth: 2,
|
|
249
|
+
strokeLinecap: "round",
|
|
250
|
+
strokeLinejoin: "round"
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* @license lucide-react v0.454.0 - ISC
|
|
254
|
+
*
|
|
255
|
+
* This source code is licensed under the ISC license.
|
|
256
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
257
|
+
*/
|
|
258
|
+
const X = $(
|
|
259
|
+
({
|
|
260
|
+
color: t = "currentColor",
|
|
261
|
+
size: e = 24,
|
|
262
|
+
strokeWidth: r = 2,
|
|
263
|
+
absoluteStrokeWidth: s,
|
|
264
|
+
className: a = "",
|
|
265
|
+
children: n,
|
|
266
|
+
iconNode: c,
|
|
267
|
+
...d
|
|
268
|
+
}, p) => b(
|
|
269
|
+
"svg",
|
|
270
|
+
{
|
|
271
|
+
ref: p,
|
|
272
|
+
...Q,
|
|
273
|
+
width: e,
|
|
274
|
+
height: e,
|
|
275
|
+
stroke: t,
|
|
276
|
+
strokeWidth: s ? Number(r) * 24 / Number(e) : r,
|
|
277
|
+
className: L("lucide", a),
|
|
278
|
+
...d
|
|
279
|
+
},
|
|
280
|
+
[
|
|
281
|
+
...c.map(([u, h]) => b(u, h)),
|
|
282
|
+
...Array.isArray(n) ? n : [n]
|
|
283
|
+
]
|
|
284
|
+
)
|
|
285
|
+
);
|
|
286
|
+
/**
|
|
287
|
+
* @license lucide-react v0.454.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/
|
|
292
|
+
const N = (t, e) => {
|
|
293
|
+
const r = $(
|
|
294
|
+
({ className: s, ...a }, n) => b(X, {
|
|
295
|
+
ref: n,
|
|
296
|
+
iconNode: e,
|
|
297
|
+
className: L(`lucide-${G(t)}`, s),
|
|
298
|
+
...a
|
|
299
|
+
})
|
|
300
|
+
);
|
|
301
|
+
return r.displayName = `${t}`, r;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* @license lucide-react v0.454.0 - ISC
|
|
305
|
+
*
|
|
306
|
+
* This source code is licensed under the ISC license.
|
|
307
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
+
*/
|
|
309
|
+
const co = N("ChevronLeft", [
|
|
310
|
+
["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
|
|
311
|
+
]);
|
|
312
|
+
/**
|
|
313
|
+
* @license lucide-react v0.454.0 - ISC
|
|
314
|
+
*
|
|
315
|
+
* This source code is licensed under the ISC license.
|
|
316
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
317
|
+
*/
|
|
318
|
+
const po = N("ChevronRight", [
|
|
319
|
+
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
320
|
+
]);
|
|
321
|
+
export {
|
|
322
|
+
co as C,
|
|
323
|
+
Z as D,
|
|
324
|
+
lo as E,
|
|
325
|
+
io as H,
|
|
326
|
+
no as K,
|
|
327
|
+
ao as a,
|
|
328
|
+
po as b,
|
|
329
|
+
N as c
|
|
330
|
+
};
|