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.
- package/Betslip.js +1 -1
- package/ChanceGame.js +139 -146
- package/ClassicQuizPlay.js +1 -1
- package/CollectLead.js +14 -20
- package/CompetitionStatistics.js +27 -27
- package/CompetitorCard.js +895 -891
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +1 -1
- package/EventCard.js +1494 -1571
- package/EventGamePlay.js +1 -1
- package/Leaderboard.js +249 -257
- package/List.js +319 -436
- package/MatchQuizPlay.js +1 -1
- package/Odds.js +30 -30
- package/PersonalityQuizPlay.js +1 -1
- package/PickThePair.js +627 -693
- package/PlayerOfTheMatch.js +256 -279
- package/PollVote.js +1 -1
- package/Predictor.js +19443 -2
- package/README.md +2 -1
- package/Standings.js +94 -99
- package/TopX.js +5871 -6988
- package/chunks/ChanceGameEmbedVariant-C3NGwvTF.js +21 -0
- package/chunks/OddsSkeleton-Bav8FHHN.js +26 -0
- package/chunks/{OddsStrip-B159Nivm.js → OddsStrip-CviVfQI4.js} +51 -53
- package/chunks/{PickOneOfX-D9qlxKTD.js → PickOneOfX-a6Dv0-rR.js} +210 -212
- package/chunks/index-B1d9q8fX.js +4 -0
- package/chunks/index-BP0pvFJ4.js +4 -0
- package/chunks/index-CHZyL_g_.js +4 -0
- package/chunks/index-CeCUdRmF.js +4 -0
- package/chunks/index-Ckyyw-I8.js +4 -0
- package/chunks/index-DGvCP5G8.js +4 -0
- package/chunks/index-yjMVOgwO.js +4 -0
- package/chunks/{main-CcPVuc5G.js → main-CFwRpvUi.js} +219 -238
- package/chunks/{main-By2Fg4Us.js → main-D9tFZv2q.js} +272 -309
- package/chunks/{main-Db4YC1C9.js → main-Dj4Manb5.js} +386 -407
- package/chunks/{main-BhONg691.js → main-DjiQz1dv.js} +764 -1125
- package/chunks/{main-BoLNJccN.js → main-Dys2_Jt2.js} +1625 -1954
- package/chunks/{main-JAewg2VD.js → main-dwV_55lz.js} +409 -432
- package/chunks/main-eAQMCxQ7.js +1949 -0
- package/chunks/{main-CWfREbUv.js → main-gexg6lc-.js} +959 -977
- package/index.js +40 -44
- package/package.json +13 -5
- package/chunks/AccessTime-B7Q_InTi.js +0 -10
- package/chunks/AlertMessage-CTbc9daZ.js +0 -318
- package/chunks/Avatar-Ve0m4ut_.js +0 -353
- package/chunks/Button-x1sQVMH2.js +0 -665
- package/chunks/Card-DfxnA3Cz.js +0 -196
- package/chunks/CardActions-TMBAbk8a.js +0 -140
- package/chunks/CardContent-CLQHztIU.js +0 -106
- package/chunks/ChanceGameEmbedVariant-C3TKbPI4.js +0 -913
- package/chunks/CheckCircle-DW1VzjQO.js +0 -8
- package/chunks/Chip-BUoNpinI.js +0 -365
- package/chunks/CircularProgress-D88LgW2V.js +0 -317
- package/chunks/Close-BxLZcPtb.js +0 -9
- package/chunks/Close-DVx6f5-e.js +0 -8
- package/chunks/CollectLeadForm-DtUFKk99.js +0 -3419
- package/chunks/ConsentsList-BcIMKviP.js +0 -339
- package/chunks/DirectionScope-CK0duYt8.js +0 -36
- package/chunks/Divider-D_ALv2uC.js +0 -166
- package/chunks/Edit-CiKqhDom.js +0 -99
- package/chunks/EmojiEvents-BYoxruEl.js +0 -8
- package/chunks/FavoriteBorder-YhT6RHv5.js +0 -11
- package/chunks/FormControl-BNG04EhC.js +0 -656
- package/chunks/FormControlContext-Ct0huDDM.js +0 -6
- package/chunks/FormLabel-Bl7hTa8O.js +0 -130
- package/chunks/GlobalStyles-PokSS9bO.js +0 -12
- package/chunks/InlineSpinner-BhKW6lxZ.js +0 -28
- package/chunks/Input-B7kPqO0b.js +0 -391
- package/chunks/KeyboardArrowDown-OGGGLEnE.js +0 -8
- package/chunks/KeyboardArrowRight-DN7qrp17.js +0 -11
- package/chunks/KeyboardArrowUp-jvN5m_A0.js +0 -8
- package/chunks/Link-brb09X-6.js +0 -319
- package/chunks/ListItemButton-BFG5QJbo.js +0 -1151
- package/chunks/ModalClose-D3i-AyMB.js +0 -153
- package/chunks/ModalDialog-Be6w76fh.js +0 -880
- package/chunks/NotFoundSkeleton-BHRVG8yg.js +0 -83
- package/chunks/Notification-CC66HKXb.js +0 -614
- package/chunks/OddsSkeleton-BBOVhfsn.js +0 -137
- package/chunks/OverlayScoreStateSkeleton-D5rnBJ_w.js +0 -154
- package/chunks/OverlayScoreStateWrapperSkeleton-CTXzD0bm.js +0 -81
- package/chunks/OverlaySignInSkeleton-T8A_9Tco.js +0 -518
- package/chunks/OverlaySkeleton-y02LRXZy.js +0 -1193
- package/chunks/Person-BD-IO4aX.js +0 -8
- package/chunks/PersonOutline-Nxl_9g9S.js +0 -8
- package/chunks/Popper-CGfJHTbM.js +0 -1263
- package/chunks/Portal-DQQSLiON.js +0 -74
- package/chunks/Portal-X8O64KaQ.js +0 -66
- package/chunks/Predictor-BJBBwZ6R.js +0 -19513
- package/chunks/PrizeCard-B2tBhY45.js +0 -36400
- package/chunks/Search-jaDXe8g7.js +0 -14
- package/chunks/Select-CzBMHr7z.js +0 -1165
- package/chunks/Sheet-x-YGYOYz.js +0 -132
- package/chunks/SignInCta-3NFxIOuf.js +0 -79
- package/chunks/Spinner-_5U881sC.js +0 -39
- package/chunks/SportsSoccer-DLUgspA-.js +0 -20
- package/chunks/Stack-CDpKA1D-.js +0 -169
- package/chunks/StandardContentSkeleton-DaZftDxZ.js +0 -57
- package/chunks/Table-IJ9-D2DF.js +0 -394
- package/chunks/Tabs-iyOvjGfd.js +0 -1084
- package/chunks/Textarea-Dv_Z4l5j.js +0 -475
- package/chunks/TimerOutlined-jNsK__Zz.js +0 -8
- package/chunks/Tooltip-clSjN1oC.js +0 -535
- package/chunks/Typography-BsucZNXl.js +0 -775
- package/chunks/areArraysEqual-B3mXtHvh.js +0 -6
- package/chunks/colorInversionUtils-AoR_6ghW.js +0 -347
- package/chunks/createSvgIcon-BWoHeNkc.js +0 -2813
- package/chunks/createSvgIcon-DBkOhFdn.js +0 -206
- package/chunks/dividerClasses-BkQMLbsL.js +0 -9
- package/chunks/elementAcceptingRef-DjUfkpLB.js +0 -25
- package/chunks/enums-B1lTCQvC.js +0 -15
- package/chunks/formLabelClasses-N0g8NZ67.js +0 -9
- package/chunks/getReactElementRef-B3MFPBbS.js +0 -21
- package/chunks/helpers-CKFwVhwj.js +0 -558
- package/chunks/index-Bg5jypgn.js +0 -11
- package/chunks/index-Bnad45hB.js +0 -4
- package/chunks/index-C6rtfeRX.js +0 -4
- package/chunks/index-CFc0WTOi.js +0 -848
- package/chunks/index-C_kf8WZI.js +0 -4
- package/chunks/index-CaVpDbdC.js +0 -4
- package/chunks/index-DJJVbXn_.js +0 -4
- package/chunks/index-DQO7VDRC.js +0 -4
- package/chunks/index-Kgehqf8J.js +0 -4
- package/chunks/main-W_W6YBtr.js +0 -3280
- package/chunks/ownerWindow-PI509BpA.js +0 -7
- package/chunks/searchEntities-SJcoznz0.js +0 -38
- package/chunks/sportsEvents-CGX-WkNB.js +0 -27
- package/chunks/useButton-C9taTgFS.js +0 -106
- package/chunks/useConsents-BLhgfEDf.js +0 -1168
- package/chunks/useControlled-BYdyS7Pn.js +0 -31
- package/chunks/useEmbedCode-DCWnWGak.js +0 -31
- package/chunks/useEventCallback-C9W0M_8l.js +0 -14
- package/chunks/useForwardedInput-CkAnayh_.js +0 -180
- package/chunks/useImageVariant-B62O7iLC.js +0 -15
- package/chunks/useInfoPage-BHdgKdme.js +0 -50
- package/chunks/useParticipationDraft-Brnd_p3w.js +0 -307
- package/chunks/useSwitch-DLSSqtcZ.js +0 -66
- package/chunks/variantColorInheritance-DZr7CNx6.js +0 -30
- package/chunks/visuallyHidden-B8J7BVSJ.js +0 -14
package/index.js
CHANGED
|
@@ -1,56 +1,52 @@
|
|
|
1
1
|
import { version as o } from "fansunited-frontend-core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { betslipApi as p, componentEvents as m } from "fansunited-frontend-core";
|
|
3
|
+
import { ClassicQuizPlay as f } from "./ClassicQuizPlay.js";
|
|
4
|
+
import { PollVote as a } from "./PollVote.js";
|
|
5
|
+
import { CollectLead as s } from "./CollectLead.js";
|
|
6
|
+
import { PersonalityQuizPlay as l } from "./PersonalityQuizPlay.js";
|
|
7
|
+
import { MatchQuizPlay as P } from "./MatchQuizPlay.js";
|
|
8
|
+
import { EventGamePlay as C } from "./EventGamePlay.js";
|
|
9
|
+
import { PickThePair as u } from "./PickThePair.js";
|
|
10
|
+
import { ChanceGame as w } from "./ChanceGame.js";
|
|
10
11
|
import { Discussion as z } from "./Discussion.js";
|
|
11
12
|
import { EitherOrPlay as O } from "./EitherOrPlay.js";
|
|
12
13
|
import { Leaderboard as T } from "./Leaderboard.js";
|
|
13
|
-
import {
|
|
14
|
-
import { TopX as
|
|
15
|
-
import { Betslip as
|
|
16
|
-
import { Standings as
|
|
17
|
-
import { EventCard as
|
|
18
|
-
import { CompetitorCard as
|
|
19
|
-
import { PlayerOfTheMatch as
|
|
20
|
-
import { List as
|
|
21
|
-
import { CompetitionStatistics as
|
|
22
|
-
import { Odds as
|
|
23
|
-
import { b as Z } from "./chunks/main-By2Fg4Us.js";
|
|
24
|
-
import "react";
|
|
25
|
-
import "./chunks/PrizeCard-B2tBhY45.js";
|
|
26
|
-
import "react/jsx-runtime";
|
|
27
|
-
import "react-dom";
|
|
14
|
+
import { Predictor as G } from "./Predictor.js";
|
|
15
|
+
import { TopX as S } from "./TopX.js";
|
|
16
|
+
import { Betslip as g } from "./Betslip.js";
|
|
17
|
+
import { Standings as A } from "./Standings.js";
|
|
18
|
+
import { EventCard as D } from "./EventCard.js";
|
|
19
|
+
import { CompetitorCard as X } from "./CompetitorCard.js";
|
|
20
|
+
import { PlayerOfTheMatch as q } from "./PlayerOfTheMatch.js";
|
|
21
|
+
import { List as H } from "./List.js";
|
|
22
|
+
import { CompetitionStatistics as J } from "./CompetitionStatistics.js";
|
|
23
|
+
import { Odds as N } from "./Odds.js";
|
|
28
24
|
typeof window < "u" && (window.fansUnitedComponentsVersions = {
|
|
29
|
-
components: "0.0.
|
|
25
|
+
components: "0.0.94",
|
|
30
26
|
core: o
|
|
31
27
|
});
|
|
32
28
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
g as Betslip,
|
|
30
|
+
w as ChanceGame,
|
|
31
|
+
f as ClassicQuizPlay,
|
|
32
|
+
s as CollectLead,
|
|
33
|
+
J as CompetitionStatistics,
|
|
34
|
+
X as CompetitorCard,
|
|
39
35
|
z as Discussion,
|
|
40
36
|
O as EitherOrPlay,
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
D as EventCard,
|
|
38
|
+
C as EventGamePlay,
|
|
43
39
|
T as Leaderboard,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
40
|
+
H as List,
|
|
41
|
+
P as MatchQuizPlay,
|
|
42
|
+
N as Odds,
|
|
43
|
+
l as PersonalityQuizPlay,
|
|
44
|
+
u as PickThePair,
|
|
45
|
+
q as PlayerOfTheMatch,
|
|
46
|
+
a as PollVote,
|
|
47
|
+
G as Predictor,
|
|
48
|
+
A as Standings,
|
|
49
|
+
S as TopX,
|
|
50
|
+
p as betslipApi,
|
|
51
|
+
m as componentEvents
|
|
56
52
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fansunited-frontend-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"description": "Various user centric components for Fans United features",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -92,9 +92,16 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"
|
|
96
|
-
"react": "
|
|
97
|
-
"
|
|
95
|
+
"@emotion/cache": "^11.13.1",
|
|
96
|
+
"@emotion/react": "^11.13.3",
|
|
97
|
+
"@emotion/styled": "^11.13.0",
|
|
98
|
+
"@mui/icons-material": "^6.1.6",
|
|
99
|
+
"@mui/joy": "^5.0.0-beta.52",
|
|
100
|
+
"@mui/material": "^6.1.6",
|
|
101
|
+
"fansunited-frontend-core": "0.0.94",
|
|
102
|
+
"i18next": "^25.2.1",
|
|
103
|
+
"i18next-browser-languagedetector": "^8.1.0",
|
|
104
|
+
"react-i18next": "^15.5.2"
|
|
98
105
|
},
|
|
99
106
|
"keywords": [
|
|
100
107
|
"fansunited",
|
|
@@ -109,6 +116,7 @@
|
|
|
109
116
|
},
|
|
110
117
|
"peerDependencies": {
|
|
111
118
|
"react": ">=16.8.0",
|
|
112
|
-
"react-dom": ">=16.8.0"
|
|
119
|
+
"react-dom": ">=16.8.0",
|
|
120
|
+
"fansunited-sdk-esm": ">=1.120.0"
|
|
113
121
|
}
|
|
114
122
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "./createSvgIcon-BWoHeNkc.js";
|
|
3
|
-
const t = c([/* @__PURE__ */ s("path", {
|
|
4
|
-
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"
|
|
5
|
-
}, "0"), /* @__PURE__ */ s("path", {
|
|
6
|
-
d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"
|
|
7
|
-
}, "1")], "AccessTime");
|
|
8
|
-
export {
|
|
9
|
-
t as A
|
|
10
|
-
};
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { jsxs as D, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { C as M } from "./CheckCircle-DW1VzjQO.js";
|
|
3
|
-
import { c as z } from "./createSvgIcon-BWoHeNkc.js";
|
|
4
|
-
import { G as _, F as E, _ as i, H as J, I as $, P as r, J as f, c as k, f as B, u as L } from "./PrizeCard-B2tBhY45.js";
|
|
5
|
-
import * as U from "react";
|
|
6
|
-
import { s as y, a as V, b as v, c as G, T as g } from "./Typography-BsucZNXl.js";
|
|
7
|
-
import { r as q, a as K, b as Q } from "./colorInversionUtils-AoR_6ghW.js";
|
|
8
|
-
import { S as X } from "./Stack-CDpKA1D-.js";
|
|
9
|
-
function Y(e) {
|
|
10
|
-
return _("MuiAlert", e);
|
|
11
|
-
}
|
|
12
|
-
E("MuiAlert", ["root", "startDecorator", "endDecorator", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
13
|
-
const Z = ["children", "className", "color", "invertedColors", "role", "variant", "size", "startDecorator", "endDecorator", "component", "slots", "slotProps"], w = (e) => {
|
|
14
|
-
const {
|
|
15
|
-
variant: o,
|
|
16
|
-
color: a,
|
|
17
|
-
size: t
|
|
18
|
-
} = e, n = {
|
|
19
|
-
root: ["root", t && `size${f(t)}`, a && `color${f(a)}`, o && `variant${f(o)}`],
|
|
20
|
-
startDecorator: ["startDecorator"],
|
|
21
|
-
endDecorator: ["endDecorator"]
|
|
22
|
-
};
|
|
23
|
-
return G(n, Y, {});
|
|
24
|
-
}, rr = y("div", {
|
|
25
|
-
name: "JoyAlert",
|
|
26
|
-
slot: "Root",
|
|
27
|
-
overridesResolver: (e, o) => o.root
|
|
28
|
-
})(({
|
|
29
|
-
theme: e,
|
|
30
|
-
ownerState: o
|
|
31
|
-
}) => {
|
|
32
|
-
var a;
|
|
33
|
-
const {
|
|
34
|
-
p: t,
|
|
35
|
-
padding: n,
|
|
36
|
-
borderRadius: l
|
|
37
|
-
} = q({
|
|
38
|
-
theme: e,
|
|
39
|
-
ownerState: o
|
|
40
|
-
}, ["p", "padding", "borderRadius"]);
|
|
41
|
-
return [i({
|
|
42
|
-
"--Alert-radius": e.vars.radius.sm,
|
|
43
|
-
"--Alert-decoratorChildRadius": "max((var(--Alert-radius) - var(--variant-borderWidth, 0px)) - var(--Alert-padding), min(var(--Alert-padding) + var(--variant-borderWidth, 0px), var(--Alert-radius) / 2))",
|
|
44
|
-
"--Button-minHeight": "var(--Alert-decoratorChildHeight)",
|
|
45
|
-
"--IconButton-size": "var(--Alert-decoratorChildHeight)",
|
|
46
|
-
"--Button-radius": "var(--Alert-decoratorChildRadius)",
|
|
47
|
-
"--IconButton-radius": "var(--Alert-decoratorChildRadius)",
|
|
48
|
-
"--Icon-color": "currentColor"
|
|
49
|
-
}, o.size === "sm" && {
|
|
50
|
-
"--Alert-padding": "0.5rem",
|
|
51
|
-
"--Alert-decoratorChildHeight": "1.5rem",
|
|
52
|
-
"--Icon-fontSize": e.vars.fontSize.xl,
|
|
53
|
-
gap: "0.5rem"
|
|
54
|
-
}, o.size === "md" && {
|
|
55
|
-
"--Alert-padding": "0.75rem",
|
|
56
|
-
"--Alert-decoratorChildHeight": "2rem",
|
|
57
|
-
"--Icon-fontSize": e.vars.fontSize.xl,
|
|
58
|
-
gap: "0.625rem"
|
|
59
|
-
}, o.size === "lg" && {
|
|
60
|
-
"--Alert-padding": "1rem",
|
|
61
|
-
"--Alert-decoratorChildHeight": "2.375rem",
|
|
62
|
-
"--Icon-fontSize": e.vars.fontSize.xl2,
|
|
63
|
-
gap: "0.875rem"
|
|
64
|
-
}, {
|
|
65
|
-
backgroundColor: e.vars.palette.background.surface,
|
|
66
|
-
display: "flex",
|
|
67
|
-
position: "relative",
|
|
68
|
-
alignItems: "center",
|
|
69
|
-
padding: "var(--Alert-padding)",
|
|
70
|
-
borderRadius: "var(--Alert-radius)"
|
|
71
|
-
}, e.typography[`body-${{
|
|
72
|
-
sm: "xs",
|
|
73
|
-
md: "sm",
|
|
74
|
-
lg: "md"
|
|
75
|
-
}[o.size]}`], {
|
|
76
|
-
fontWeight: e.vars.fontWeight.md
|
|
77
|
-
}, o.variant === "solid" && o.color && o.invertedColors && K(o.color)(e), o.variant === "soft" && o.color && o.invertedColors && Q(o.color)(e), (a = e.variants[o.variant]) == null ? void 0 : a[o.color]), t !== void 0 && {
|
|
78
|
-
"--Alert-padding": t
|
|
79
|
-
}, n !== void 0 && {
|
|
80
|
-
"--Alert-padding": n
|
|
81
|
-
}, l !== void 0 && {
|
|
82
|
-
"--Alert-radius": l
|
|
83
|
-
}];
|
|
84
|
-
}), or = y("span", {
|
|
85
|
-
name: "JoyAlert",
|
|
86
|
-
slot: "StartDecorator",
|
|
87
|
-
overridesResolver: (e, o) => o.startDecorator
|
|
88
|
-
})({
|
|
89
|
-
display: "inherit",
|
|
90
|
-
flex: "none"
|
|
91
|
-
}), er = y("span", {
|
|
92
|
-
name: "JoyAlert",
|
|
93
|
-
slot: "EndDecorator",
|
|
94
|
-
overridesResolver: (e, o) => o.endDecorator
|
|
95
|
-
})({
|
|
96
|
-
display: "inherit",
|
|
97
|
-
flex: "none",
|
|
98
|
-
marginLeft: "auto"
|
|
99
|
-
}), C = /* @__PURE__ */ U.forwardRef(function(o, a) {
|
|
100
|
-
const t = V({
|
|
101
|
-
props: o,
|
|
102
|
-
name: "JoyAlert"
|
|
103
|
-
}), {
|
|
104
|
-
children: n,
|
|
105
|
-
className: l,
|
|
106
|
-
color: c = "neutral",
|
|
107
|
-
invertedColors: d = !1,
|
|
108
|
-
role: x = "alert",
|
|
109
|
-
variant: b = "soft",
|
|
110
|
-
size: T = "md",
|
|
111
|
-
startDecorator: h,
|
|
112
|
-
endDecorator: A,
|
|
113
|
-
component: I,
|
|
114
|
-
slots: S = {},
|
|
115
|
-
slotProps: R = {}
|
|
116
|
-
} = t, O = J(t, Z), p = i({}, t, {
|
|
117
|
-
color: c,
|
|
118
|
-
invertedColors: d,
|
|
119
|
-
variant: b,
|
|
120
|
-
size: T
|
|
121
|
-
}), m = w(p), u = i({}, O, {
|
|
122
|
-
component: I,
|
|
123
|
-
slots: S,
|
|
124
|
-
slotProps: R
|
|
125
|
-
}), [P, W] = v("root", {
|
|
126
|
-
ref: a,
|
|
127
|
-
className: $(m.root, l),
|
|
128
|
-
elementType: rr,
|
|
129
|
-
externalForwardedProps: u,
|
|
130
|
-
ownerState: p,
|
|
131
|
-
additionalProps: {
|
|
132
|
-
role: x
|
|
133
|
-
}
|
|
134
|
-
}), [F, N] = v("startDecorator", {
|
|
135
|
-
className: m.startDecorator,
|
|
136
|
-
elementType: or,
|
|
137
|
-
externalForwardedProps: u,
|
|
138
|
-
ownerState: p
|
|
139
|
-
}), [j, H] = v("endDecorator", {
|
|
140
|
-
className: m.endDecorator,
|
|
141
|
-
elementType: er,
|
|
142
|
-
externalForwardedProps: u,
|
|
143
|
-
ownerState: p
|
|
144
|
-
});
|
|
145
|
-
return /* @__PURE__ */ D(P, i({}, W, {
|
|
146
|
-
children: [h && /* @__PURE__ */ s(F, i({}, N, {
|
|
147
|
-
children: h
|
|
148
|
-
})), n, A && /* @__PURE__ */ s(j, i({}, H, {
|
|
149
|
-
children: A
|
|
150
|
-
}))]
|
|
151
|
-
}));
|
|
152
|
-
});
|
|
153
|
-
process.env.NODE_ENV !== "production" && (C.propTypes = {
|
|
154
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
155
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
156
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
157
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
158
|
-
/**
|
|
159
|
-
* @ignore
|
|
160
|
-
*/
|
|
161
|
-
children: r.node,
|
|
162
|
-
/**
|
|
163
|
-
* @ignore
|
|
164
|
-
*/
|
|
165
|
-
className: r.string,
|
|
166
|
-
/**
|
|
167
|
-
* The color of the component. It supports those theme colors that make sense for this component.
|
|
168
|
-
* @default 'neutral'
|
|
169
|
-
*/
|
|
170
|
-
color: r.oneOfType([r.oneOf(["danger", "neutral", "primary", "success", "warning"]), r.string]),
|
|
171
|
-
/**
|
|
172
|
-
* The component used for the root node.
|
|
173
|
-
* Either a string to use a HTML element or a component.
|
|
174
|
-
*/
|
|
175
|
-
component: r.elementType,
|
|
176
|
-
/**
|
|
177
|
-
* Element placed after the children.
|
|
178
|
-
*/
|
|
179
|
-
endDecorator: r.node,
|
|
180
|
-
/**
|
|
181
|
-
* If `true`, the children with an implicit color prop invert their colors to match the component's variant and color.
|
|
182
|
-
* @default false
|
|
183
|
-
*/
|
|
184
|
-
invertedColors: r.bool,
|
|
185
|
-
/**
|
|
186
|
-
* The ARIA role attribute of the element.
|
|
187
|
-
* @default 'alert'
|
|
188
|
-
*/
|
|
189
|
-
role: r.string,
|
|
190
|
-
/**
|
|
191
|
-
* The size of the component.
|
|
192
|
-
* @default 'md'
|
|
193
|
-
*/
|
|
194
|
-
size: r.oneOfType([r.oneOf(["sm", "md", "lg"]), r.string]),
|
|
195
|
-
/**
|
|
196
|
-
* The props used for each slot inside.
|
|
197
|
-
* @default {}
|
|
198
|
-
*/
|
|
199
|
-
slotProps: r.shape({
|
|
200
|
-
endDecorator: r.oneOfType([r.func, r.object]),
|
|
201
|
-
root: r.oneOfType([r.func, r.object]),
|
|
202
|
-
startDecorator: r.oneOfType([r.func, r.object])
|
|
203
|
-
}),
|
|
204
|
-
/**
|
|
205
|
-
* The components used for each slot inside.
|
|
206
|
-
* @default {}
|
|
207
|
-
*/
|
|
208
|
-
slots: r.shape({
|
|
209
|
-
endDecorator: r.elementType,
|
|
210
|
-
root: r.elementType,
|
|
211
|
-
startDecorator: r.elementType
|
|
212
|
-
}),
|
|
213
|
-
/**
|
|
214
|
-
* Element placed before the children.
|
|
215
|
-
*/
|
|
216
|
-
startDecorator: r.node,
|
|
217
|
-
/**
|
|
218
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
219
|
-
*/
|
|
220
|
-
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
221
|
-
/**
|
|
222
|
-
* The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
|
|
223
|
-
* @default 'soft'
|
|
224
|
-
*/
|
|
225
|
-
variant: r.oneOfType([r.oneOf(["outlined", "plain", "soft", "solid"]), r.string])
|
|
226
|
-
});
|
|
227
|
-
const tr = z(/* @__PURE__ */ s("path", {
|
|
228
|
-
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"
|
|
229
|
-
}), "Info"), sr = z(/* @__PURE__ */ s("path", {
|
|
230
|
-
d: "M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"
|
|
231
|
-
}), "Warning"), ar = (e, o) => {
|
|
232
|
-
switch (e) {
|
|
233
|
-
case "success":
|
|
234
|
-
return /* @__PURE__ */ s(M, {});
|
|
235
|
-
case "error":
|
|
236
|
-
return /* @__PURE__ */ s(sr, { sx: { color: o } });
|
|
237
|
-
case "info":
|
|
238
|
-
case "neutral":
|
|
239
|
-
return /* @__PURE__ */ s(tr, {});
|
|
240
|
-
}
|
|
241
|
-
}, nr = (e) => {
|
|
242
|
-
switch (e) {
|
|
243
|
-
case "success":
|
|
244
|
-
return "success";
|
|
245
|
-
case "error":
|
|
246
|
-
return "danger";
|
|
247
|
-
case "info":
|
|
248
|
-
return "primary";
|
|
249
|
-
case "neutral":
|
|
250
|
-
return "neutral";
|
|
251
|
-
}
|
|
252
|
-
}, fr = ({
|
|
253
|
-
variant: e,
|
|
254
|
-
title: o,
|
|
255
|
-
message: a,
|
|
256
|
-
description: t
|
|
257
|
-
}) => {
|
|
258
|
-
const n = k(), l = B(), c = L().secondary, d = nr(e);
|
|
259
|
-
return /* @__PURE__ */ s(
|
|
260
|
-
C,
|
|
261
|
-
{
|
|
262
|
-
variant: "soft",
|
|
263
|
-
color: d,
|
|
264
|
-
startDecorator: ar(
|
|
265
|
-
e,
|
|
266
|
-
n.colorSchemes.light.palette.danger.plainColor
|
|
267
|
-
),
|
|
268
|
-
sx: {
|
|
269
|
-
gap: 1,
|
|
270
|
-
borderRadius: l.sm,
|
|
271
|
-
fontSize: "0.875em",
|
|
272
|
-
"--Icon-fontSize": "1.25em"
|
|
273
|
-
},
|
|
274
|
-
children: /* @__PURE__ */ D(
|
|
275
|
-
X,
|
|
276
|
-
{
|
|
277
|
-
sx: {
|
|
278
|
-
fontSize: "1.5em"
|
|
279
|
-
},
|
|
280
|
-
children: [
|
|
281
|
-
o && /* @__PURE__ */ s(
|
|
282
|
-
g,
|
|
283
|
-
{
|
|
284
|
-
level: "title-md",
|
|
285
|
-
color: d,
|
|
286
|
-
fontWeight: "bold",
|
|
287
|
-
sx: { fontFamily: c, fontSize: "0.875em" },
|
|
288
|
-
children: o
|
|
289
|
-
}
|
|
290
|
-
),
|
|
291
|
-
a && /* @__PURE__ */ s(
|
|
292
|
-
g,
|
|
293
|
-
{
|
|
294
|
-
level: "body-sm",
|
|
295
|
-
sx: { fontFamily: c, fontSize: "0.675em" },
|
|
296
|
-
children: a
|
|
297
|
-
}
|
|
298
|
-
),
|
|
299
|
-
t && /* @__PURE__ */ s(
|
|
300
|
-
g,
|
|
301
|
-
{
|
|
302
|
-
level: "body-xs",
|
|
303
|
-
sx: { fontFamily: c, fontSize: "0.6em" },
|
|
304
|
-
children: t
|
|
305
|
-
}
|
|
306
|
-
)
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
)
|
|
310
|
-
}
|
|
311
|
-
);
|
|
312
|
-
};
|
|
313
|
-
export {
|
|
314
|
-
fr as A,
|
|
315
|
-
tr as I,
|
|
316
|
-
sr as W,
|
|
317
|
-
C as a
|
|
318
|
-
};
|