fansunited-frontend-components 0.0.78 → 0.0.80
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 +12 -11
- package/ClassicQuizPlay.js +1 -1
- package/CollectLead.js +39 -38
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +1 -1
- package/EventCard.js +61 -61
- package/EventGamePlay.js +1 -1
- package/Leaderboard.js +13 -13
- package/List.js +93 -82
- package/MatchQuizPlay.js +1 -1
- package/PersonalityQuizPlay.js +1 -1
- package/PickThePair.js +13 -12
- package/PlayerOfTheMatch.js +22 -22
- package/PollVote.js +1 -1
- package/Predictor.js +1 -1
- package/README.md +131 -16
- package/Standings.js +26 -26
- package/TopX.js +27 -27
- package/chunks/{AccessTime-B30dztb0.js → AccessTime-BoYoyig3.js} +1 -1
- package/chunks/{AlertMessage-DioJxnEH.js → AlertMessage-DBbObbCr.js} +13 -13
- package/chunks/{Avatar-BDK_vO0c.js → Avatar-Bs2ODH24.js} +25 -25
- package/chunks/{Button-CsvEgUxT.js → Button-By0gW9vl.js} +17 -17
- package/chunks/{Card-Bp7sboHu.js → Card-Bbq-568c.js} +17 -17
- package/chunks/{CardActions-ehD6I2GZ.js → CardActions-DntJimyi.js} +14 -14
- package/chunks/{CardContent-BZDBKTQD.js → CardContent-JrB_z1Or.js} +5 -5
- package/chunks/{ChanceGameEmbedVariant-DMI7i2Me.js → ChanceGameEmbedVariant-D8b8PZnU.js} +21 -20
- package/chunks/{CheckCircle-BXhOrVkK.js → CheckCircle-BVTGl0Ft.js} +1 -1
- package/chunks/{Chip-Bm-Ccjvy.js → Chip-WC9No4h9.js} +10 -10
- package/chunks/{Close-CG_aSJDO.js → Close-CKW5gQRw.js} +1 -1
- package/chunks/{Close-AaOgLIme.js → Close-tWsMMKfA.js} +1 -1
- package/chunks/{CollectLeadForm-DZe1Ymdq.js → CollectLeadForm-CwcEETPM.js} +90 -90
- package/chunks/{ConsentsList-DooBFFmw.js → ConsentsList-D1KKdfOJ.js} +39 -39
- package/chunks/{DirectionScope-oLk_U3C_.js → DirectionScope-BYGJWPAq.js} +1 -1
- package/chunks/{Divider-CAgadBhD.js → Divider-4Rcw4h05.js} +5 -5
- package/chunks/{Edit-kXDl-pRS.js → Edit-D7yPt8sV.js} +13 -13
- package/chunks/{EditOutlined-BX5qBF8L.js → EditOutlined-DvZLGuHA.js} +1 -1
- package/chunks/{EmojiEvents-xseHOk4b.js → EmojiEvents-YHRdPnXx.js} +1 -1
- package/chunks/{FavoriteBorder-BMOLtK7X.js → FavoriteBorder-BXLiJyTv.js} +1 -1
- package/chunks/{FormControl-BTDS6ct5.js → FormControl-yhrIQ7ci.js} +17 -17
- package/chunks/{FormLabel-Ddvg7Uaw.js → FormLabel-COGIjfEx.js} +10 -10
- package/chunks/{InlineSpinner-CvwR2FB_.js → InlineSpinner-CyqM_yQn.js} +2 -2
- package/chunks/{Input-aCtmZdRk.js → Input-Dm3GnI0X.js} +10 -10
- package/chunks/{KeyboardArrowDown-BFuNjWbC.js → KeyboardArrowDown-CCFl-_Cw.js} +1 -1
- package/chunks/{KeyboardArrowRight-DaukpNJR.js → KeyboardArrowRight-387qOqAR.js} +1 -1
- package/chunks/{Link-lifAyVr-.js → Link-ByX_uwKs.js} +16 -16
- package/chunks/{ListItemButton-BSg2RH3G.js → ListItemButton-CxWpt9SR.js} +52 -52
- package/chunks/{ModalClose-C-dgGCpP.js → ModalClose-Cm8vOuk-.js} +17 -17
- package/chunks/{ModalDialog-DyJQmPgR.js → ModalDialog-CXSBeWlQ.js} +42 -42
- package/chunks/{NotFoundSkeleton-CPrI2SnC.js → NotFoundSkeleton-BV0mXA7z.js} +40 -39
- package/chunks/{Notification-1ogsNUiX.js → Notification-preGSwrO.js} +12 -12
- package/chunks/{OverlayScoreStateSkeleton-DALoMahw.js → OverlayScoreStateSkeleton-CA4yxhzc.js} +4 -4
- package/chunks/{OverlayScoreStateWrapperSkeleton-BDDNd4hM.js → OverlayScoreStateWrapperSkeleton-BwDWj5VX.js} +1 -1
- package/chunks/{OverlaySignInSkeleton-BUiNvDRX.js → OverlaySignInSkeleton-C0gpFLV4.js} +11 -10
- package/chunks/{Person-CtBkSz4s.js → Person-DFs8t3vY.js} +1 -1
- package/chunks/{PersonOutline-ftsY5SqE.js → PersonOutline-BHHHU-iP.js} +1 -1
- package/chunks/{PickOneOfX-ASPYutVw.js → PickOneOfX-eEOpXC-f.js} +3 -3
- package/chunks/{Popper-Bj1kl7y_.js → Popper-BJbMQoEj.js} +19 -19
- package/chunks/{Portal-B5LOp_VA.js → Portal-0HYQP6vC.js} +9 -8
- package/chunks/{Portal-DxNZWqOV.js → Portal-Cd3abSBt.js} +2 -2
- package/chunks/{Predictor-o1ZtxfmB.js → Predictor-Db1YZFlF.js} +27 -27
- package/chunks/{PrizeCard-DG54vy2l.js → PrizeCard-YH9jftwY.js} +1773 -1611
- package/chunks/{Search-Jq0gJI9j.js → Search-CWYaTHth.js} +1 -1
- package/chunks/{Select-Dvq1fOJv.js → Select-osvV4zXY.js} +82 -82
- package/chunks/{Sheet-emOLchyd.js → Sheet-Bj4wdH5F.js} +14 -14
- package/chunks/{SignInCta-DUarOlDT.js → SignInCta-3q_FTCgs.js} +3 -3
- package/chunks/{Spinner-CfnxZwI6.js → Spinner-CP7juuny.js} +2 -2
- package/chunks/{Stack-Ck9Xjygq.js → Stack-DuL71jRI.js} +27 -27
- package/chunks/{StandardContentSkeleton-Bx2HVrwG.js → StandardContentSkeleton-CsYymZyn.js} +1 -1
- package/chunks/{Table-DU0BCrKV.js → Table-DvjSYLKy.js} +5 -5
- package/chunks/{Tabs-Dx0bzmUT.js → Tabs-D44eIyd1.js} +19 -19
- package/chunks/{Textarea-CrulPENr.js → Textarea-Cjks7P0A.js} +27 -27
- package/chunks/{TimerOutlined-C3LRF5_A.js → TimerOutlined-D-ySNoFF.js} +1 -1
- package/chunks/{Tooltip-C8hJsZr9.js → Tooltip-C9OhGeHY.js} +52 -52
- package/chunks/{Typography-ECqxGAdq.js → Typography-Ce4eGDV-.js} +29 -29
- package/chunks/{WorkspacePremiumOutlined-DZe6H7gK.js → WorkspacePremiumOutlined-mcdyqu4a.js} +1 -1
- package/chunks/{createSvgIcon-SFvnySaS.js → createSvgIcon-D2EzyIzB.js} +12 -12
- package/chunks/{createSvgIcon-ZK1E4tSQ.js → createSvgIcon-D9F_KILu.js} +40 -40
- package/chunks/{dividerClasses-vQL1-lZZ.js → dividerClasses-D7_NXMv_.js} +1 -1
- package/chunks/{elementAcceptingRef-BQjX8_HI.js → elementAcceptingRef-z3i9EgXj.js} +1 -1
- package/chunks/enums-B1lTCQvC.js +15 -0
- package/chunks/{formLabelClasses-C6bWt8jt.js → formLabelClasses-DWH0zNVd.js} +1 -1
- package/chunks/{helpers-DK7NIWA3.js → helpers-B4K14VMy.js} +1 -1
- package/chunks/index-7P5xWKpe.js +4 -0
- package/chunks/index-BU6n6VAs.js +4 -0
- package/chunks/index-BeAwxbb7.js +4 -0
- package/chunks/index-CYbzrOCD.js +4 -0
- package/chunks/{index-D5NQUqT3.js → index-D6_vWz9t.js} +1 -1
- package/chunks/index-DfmHCVlq.js +4 -0
- package/chunks/index-Do8G2ehs.js +4 -0
- package/chunks/index-bI2wtknX.js +4 -0
- package/chunks/{main-CsgyDzQn.js → main-3TaPwm3t.js} +21 -20
- package/chunks/{main-BFR2-Jev.js → main-ChI4MrZS.js} +3788 -1553
- package/chunks/{main-t-kBnJfd.js → main-Cn8QJIGS.js} +190 -189
- package/chunks/{main-CMaUkaQg.js → main-D1KgLv-3.js} +36 -35
- package/chunks/{main-BpEXHrXG.js → main-D3vY3EZB.js} +177 -176
- package/chunks/{main-DXZDk8yw.js → main-eplFgf8K.js} +3 -3
- package/chunks/{main-XzVztuyY.js → main-la4AkVWG.js} +32 -31
- package/chunks/{main-BqzP5wNI.js → main-ndsgeKK2.js} +43 -43
- package/chunks/{useButton-BuGBhKba.js → useButton-BkNIp1Dt.js} +2 -2
- package/chunks/{useConsents-CTrXjPMT.js → useConsents-G3YImrA0.js} +27 -26
- package/chunks/{useEventCallback-BL4OQp0i.js → useEventCallback-Bpmr_fht.js} +1 -1
- package/chunks/{useForwardedInput-87iBLSE1.js → useForwardedInput-BnX6YP2x.js} +27 -27
- package/chunks/{useImageVariant-BpkocGDo.js → useImageVariant-CHZmm8-4.js} +6 -5
- package/chunks/{useParticipationDraft-C39xos8n.js → useParticipationDraft-CLycICaf.js} +6 -6
- package/chunks/{useSwitch-wS7XLrgV.js → useSwitch-C5TzU7zu.js} +2 -2
- package/index.js +4 -4
- package/package.json +2 -2
- package/chunks/index--sCTbryp.js +0 -4
- package/chunks/index-629uVyFa.js +0 -4
- package/chunks/index-BJfy__18.js +0 -4
- package/chunks/index-DD09ekhb.js +0 -4
- package/chunks/index-Dbxw2Q2L.js +0 -4
- package/chunks/index-GkKP5Yym.js +0 -4
- package/chunks/index-Ke1RX9Pb.js +0 -4
package/README.md
CHANGED
|
@@ -19,7 +19,10 @@ yarn add fansunited-frontend-components fansunited-frontend-core
|
|
|
19
19
|
```tsx
|
|
20
20
|
import React from "react";
|
|
21
21
|
import { ClassicQuizPlay } from "fansunited-frontend-components";
|
|
22
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
ClassicQuizPlayProps,
|
|
24
|
+
ClassicQuizTemplate,
|
|
25
|
+
} from "fansunited-frontend-core";
|
|
23
26
|
import { FansUnitedSDK } from "fansunited-sdk-esm";
|
|
24
27
|
|
|
25
28
|
const sdk = FansUnitedSDK({
|
|
@@ -30,7 +33,7 @@ const App: React.FC = () => {
|
|
|
30
33
|
const props: ClassicQuizPlayProps = {
|
|
31
34
|
entityId: "your-quiz-id",
|
|
32
35
|
sdk,
|
|
33
|
-
template:
|
|
36
|
+
template: ClassicQuizTemplate.STANDARD, // Also SPLIT, OVERLAY and DECK are available
|
|
34
37
|
language: "en", // "ar" | "bg" | "en" | "ro" | "pt" | "sr" | "fr" | "de" | "it" | "fr-be" | "pl" | "pt-br" | "sk
|
|
35
38
|
};
|
|
36
39
|
|
|
@@ -414,16 +417,19 @@ window.dataLayer.filter((e) => String(e.event).startsWith("fu_"));
|
|
|
414
417
|
|
|
415
418
|
### ClassicQuizPlay
|
|
416
419
|
|
|
417
|
-
Interactive quiz component with
|
|
420
|
+
Interactive quiz component with four templates (Standard, Split, Overlay, Deck) and customization options.
|
|
418
421
|
|
|
419
422
|
#### Required Props
|
|
420
423
|
|
|
421
|
-
| Prop | Type
|
|
422
|
-
| ---------- |
|
|
423
|
-
| `entityId` | `string`
|
|
424
|
-
| `sdk` | `FansUnitedSDKModel`
|
|
425
|
-
| `template` | `
|
|
426
|
-
| `language` | `LanguageType`
|
|
424
|
+
| Prop | Type | Description |
|
|
425
|
+
| ---------- | --------------------- | ---------------------------------------------------------- |
|
|
426
|
+
| `entityId` | `string` | Classic Quiz identifier |
|
|
427
|
+
| `sdk` | `FansUnitedSDKModel` | SDK instance |
|
|
428
|
+
| `template` | `ClassicQuizTemplate` | Layout template — `STANDARD`, `SPLIT`, `OVERLAY` or `DECK` |
|
|
429
|
+
| `language` | `LanguageType` | Display language |
|
|
430
|
+
|
|
431
|
+
> **Note:** `ClassicQuizTemplate` extends the shared `WidgetTemplate` with `DECK`, which
|
|
432
|
+
> is available on this component only.
|
|
427
433
|
|
|
428
434
|
#### Optional Props
|
|
429
435
|
|
|
@@ -433,6 +439,7 @@ Interactive quiz component with multiple templates and customization options.
|
|
|
433
439
|
| `showAnswerExplanations` | `boolean` | Show explanations after quiz completion |
|
|
434
440
|
| `leads` | `LeadsOptions` | Lead collection settings |
|
|
435
441
|
| `imagePosition` | `"left" \| "right"` | Image position (STANDARD template only) |
|
|
442
|
+
| `deck` | `DeckOptions` | Card entrance and open-card mark (DECK template only) — see [Templates](#templates) below |
|
|
436
443
|
| `defaultImagePlaceholderUrl` | `string` | URL for default image placeholder |
|
|
437
444
|
| `userIsLoggedIn` | `boolean` | Determine if the user is logged in |
|
|
438
445
|
| `signInCTA` | `SignInCTADetails` | Sign in call to action button configuration |
|
|
@@ -445,23 +452,99 @@ Interactive quiz component with multiple templates and customization options.
|
|
|
445
452
|
#### Templates
|
|
446
453
|
|
|
447
454
|
```tsx
|
|
448
|
-
import {
|
|
455
|
+
import {
|
|
456
|
+
ClassicQuizTemplate,
|
|
457
|
+
ClassicQuizPlayProps,
|
|
458
|
+
} from "fansunited-frontend-core";
|
|
449
459
|
|
|
450
460
|
// Standard template with optional image positioning
|
|
451
461
|
const standardProps: ClassicQuizPlayProps = {
|
|
452
|
-
template:
|
|
462
|
+
template: ClassicQuizTemplate.STANDARD,
|
|
453
463
|
imagePosition: "left", // or 'right'
|
|
454
464
|
// ... other props
|
|
455
465
|
};
|
|
456
466
|
|
|
457
467
|
// Other templates
|
|
458
468
|
const overlayProps: ClassicQuizPlayProps = {
|
|
459
|
-
template:
|
|
469
|
+
template: ClassicQuizTemplate.OVERLAY, // ClassicQuizTemplate.SPLIT
|
|
460
470
|
// imagePosition not available for non-standard templates
|
|
461
471
|
// ... other props
|
|
462
472
|
};
|
|
463
473
|
```
|
|
464
474
|
|
|
475
|
+
##### Deck template
|
|
476
|
+
|
|
477
|
+
`DECK` lays the quiz out as a casino table: every question is a face-down card, and the
|
|
478
|
+
player turns them over in whatever order they like. Picking an answer reveals the result
|
|
479
|
+
and the explanation immediately, on the card itself — there is no Next button. Once every
|
|
480
|
+
card has been played, the Finish button submits the participation.
|
|
481
|
+
|
|
482
|
+
```tsx
|
|
483
|
+
import {
|
|
484
|
+
ClassicQuizTemplate,
|
|
485
|
+
ClassicQuizPlayProps,
|
|
486
|
+
DeckOptions,
|
|
487
|
+
} from "fansunited-frontend-core";
|
|
488
|
+
|
|
489
|
+
const deckProps: ClassicQuizPlayProps = {
|
|
490
|
+
template: ClassicQuizTemplate.DECK,
|
|
491
|
+
deck: {
|
|
492
|
+
entrance: "deal", // "deal" | "flip" | "none"
|
|
493
|
+
openIcon: "chevron", // "chevron" | "eye" | "flip" | "dot"
|
|
494
|
+
},
|
|
495
|
+
// ... other props
|
|
496
|
+
};
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
| `deck` key | Type | Default | Description |
|
|
500
|
+
| ---------- | --------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
501
|
+
| `entrance` | `"deal" \| "flip" \| "none"` | `"deal"` | How the cards arrive. `deal` slides them in from the dealer's side, `flip` turns them over in place, `none` skips the animation. |
|
|
502
|
+
| `openIcon` | `"chevron" \| "eye" \| "flip" \| "dot" \| string` | `"chevron"` | The mark shown on the open card, pointing at the question panel beneath it. A preset name or an image URL — see below. |
|
|
503
|
+
|
|
504
|
+
Both keys are optional, and so is `deck` itself — omit it for the defaults above.
|
|
505
|
+
|
|
506
|
+
###### Custom open-card mark
|
|
507
|
+
|
|
508
|
+
Pass a URL instead of a preset name to use your own artwork:
|
|
509
|
+
|
|
510
|
+
```tsx
|
|
511
|
+
const deckProps: ClassicQuizPlayProps = {
|
|
512
|
+
template: ClassicQuizTemplate.DECK,
|
|
513
|
+
deck: { openIcon: "https://cdn.example.com/icons/reveal.svg" },
|
|
514
|
+
// ... other props
|
|
515
|
+
};
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
| | Recommendation |
|
|
519
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
520
|
+
| Format | SVG. It stays sharp at any density and inherits no colour, so supply the fill you want. |
|
|
521
|
+
| Display size | Rendered in a **36 × 36 px** box, matching the presets |
|
|
522
|
+
| Artwork ratio | Square. Non-square art is contained, not cropped, so it fits the box's shorter side and looks smaller. |
|
|
523
|
+
| Raster fallback | PNG at **72 × 72** (2x) or **108 × 108** (3x), transparent background |
|
|
524
|
+
| Orientation | Vertical or neutral. The mark sits on the card and the question panel opens _beneath_ it, so a downward or non-directional glyph reads correctly. |
|
|
525
|
+
| Colour | Bake it into the asset. A custom mark is not tinted from the palette the way the presets are. |
|
|
526
|
+
| RTL | Not mirrored — the widget cannot tell whether your artwork is directional. Supply a direction-neutral mark, or two assets chosen by `language`. |
|
|
527
|
+
|
|
528
|
+
The mark is decorative (`aria-hidden`), so it needs no alt text, and it inherits the same
|
|
529
|
+
gentle nudge animation as the presets.
|
|
530
|
+
|
|
531
|
+
Colours, radius, fonts and spacing all come from `themeOptions` as usual. The table felt
|
|
532
|
+
and the card backs are tinted from the palette's primary colour (or the quiz's branding
|
|
533
|
+
colour when it has one), and the card front shows the sponsor logo when one is configured
|
|
534
|
+
or a `?` mark when it is not. The banner gradient is themeable through
|
|
535
|
+
`imageBackgroundGradient.light.deck` and `imageBackgroundGradient.dark.deck`.
|
|
536
|
+
|
|
537
|
+
Two behaviours differ from the other templates:
|
|
538
|
+
|
|
539
|
+
- **`optionsLayout` is ignored.** The open card draws its own auto-fitting option grid.
|
|
540
|
+
- **Timing is per card.** On a `countdown` quiz the clock restarts each time a card is
|
|
541
|
+
turned over, and expiry banks a blank answer for that card. On a `timed` quiz the clock
|
|
542
|
+
only runs while a card is open, so browsing the table between cards is free and the
|
|
543
|
+
reported total is time spent answering rather than wall-clock time.
|
|
544
|
+
|
|
545
|
+
A `signInCTA` with `gate: { position: "step", afterStep: n }` fires after the player has
|
|
546
|
+
closed their _n_-th card, so the gate never interrupts a result they are still reading.
|
|
547
|
+
|
|
465
548
|
#### Theming
|
|
466
549
|
|
|
467
550
|
Customize the appearance using theme options:
|
|
@@ -609,12 +692,14 @@ const themeOptions: CustomThemeOptions = {
|
|
|
609
692
|
size: "2px",
|
|
610
693
|
},
|
|
611
694
|
},
|
|
695
|
+
// Every key is optional; anything omitted falls back to its default
|
|
612
696
|
imageBackgroundGradient: {
|
|
613
697
|
light: {
|
|
614
698
|
standard:
|
|
615
699
|
"linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)",
|
|
616
700
|
split:
|
|
617
701
|
"linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)",
|
|
702
|
+
deck: "linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)",
|
|
618
703
|
},
|
|
619
704
|
dark: {
|
|
620
705
|
standard:
|
|
@@ -623,6 +708,7 @@ const themeOptions: CustomThemeOptions = {
|
|
|
623
708
|
"linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)",
|
|
624
709
|
overlay:
|
|
625
710
|
"linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)",
|
|
711
|
+
deck: "linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(18, 18, 18, 0.8) 100%)",
|
|
626
712
|
},
|
|
627
713
|
},
|
|
628
714
|
};
|
|
@@ -630,6 +716,9 @@ const themeOptions: CustomThemeOptions = {
|
|
|
630
716
|
<ClassicQuizPlay {...otherProps} themeOptions={themeOptions} />;
|
|
631
717
|
```
|
|
632
718
|
|
|
719
|
+
The `deck` gradient tints the DECK template's banner band. `standard` and `split` apply to
|
|
720
|
+
their own templates, and `overlay` is read from the dark scheme regardless of mode.
|
|
721
|
+
|
|
633
722
|
#### Lead Collection
|
|
634
723
|
|
|
635
724
|
Enable lead capture functionality:
|
|
@@ -894,7 +983,7 @@ const rulesDisplay: RulesDisplay = {
|
|
|
894
983
|
**Features:**
|
|
895
984
|
|
|
896
985
|
- **Info Icon**: Displays a small info icon (ⓘ) next to the component headline
|
|
897
|
-
- **Responsive**: Adapts to all
|
|
986
|
+
- **Responsive**: Adapts to all four templates (Standard, Split, Overlay, Deck)
|
|
898
987
|
- **Theme-Aware**: Automatically adjusts colors based on theme mode and variant
|
|
899
988
|
- **Accessible**: Keyboard navigable and screen reader friendly
|
|
900
989
|
- **Non-Intrusive**: Icon only appears when rules are configured
|
|
@@ -912,6 +1001,8 @@ This package is built with TypeScript and provides full type definitions. Import
|
|
|
912
1001
|
```tsx
|
|
913
1002
|
import {
|
|
914
1003
|
ClassicQuizPlayProps,
|
|
1004
|
+
ClassicQuizTemplate,
|
|
1005
|
+
DeckOptions,
|
|
915
1006
|
WidgetTemplate,
|
|
916
1007
|
MainProps,
|
|
917
1008
|
CustomThemeOptions,
|
|
@@ -926,6 +1017,9 @@ import {
|
|
|
926
1017
|
} from "fansunited-frontend-core";
|
|
927
1018
|
```
|
|
928
1019
|
|
|
1020
|
+
`ClassicQuizTemplate` types ClassicQuizPlay's `template`; `WidgetTemplate` types every
|
|
1021
|
+
other component's.
|
|
1022
|
+
|
|
929
1023
|
#### Peer Dependencies
|
|
930
1024
|
|
|
931
1025
|
```json
|
|
@@ -945,12 +1039,12 @@ The component uses shadow DOM and emotion for isolated styling, ensuring no CSS
|
|
|
945
1039
|
|
|
946
1040
|
```tsx
|
|
947
1041
|
import { ClassicQuizPlay } from "fansunited-frontend-components";
|
|
948
|
-
import {
|
|
1042
|
+
import { ClassicQuizTemplate } from "fansunited-frontend-core";
|
|
949
1043
|
|
|
950
1044
|
<ClassicQuizPlay
|
|
951
1045
|
entityId="quiz-123"
|
|
952
1046
|
sdk={sdkInstance}
|
|
953
|
-
template={
|
|
1047
|
+
template={ClassicQuizTemplate.STANDARD}
|
|
954
1048
|
language="en"
|
|
955
1049
|
/>;
|
|
956
1050
|
```
|
|
@@ -961,7 +1055,7 @@ import { WidgetTemplate } from "fansunited-frontend-core";
|
|
|
961
1055
|
<ClassicQuizPlay
|
|
962
1056
|
entityId="quiz-123"
|
|
963
1057
|
sdk={sdkInstance}
|
|
964
|
-
template={
|
|
1058
|
+
template={ClassicQuizTemplate.STANDARD}
|
|
965
1059
|
imagePosition="right"
|
|
966
1060
|
language="en"
|
|
967
1061
|
showAnswerExplanations={true}
|
|
@@ -975,6 +1069,27 @@ import { WidgetTemplate } from "fansunited-frontend-core";
|
|
|
975
1069
|
/>
|
|
976
1070
|
```
|
|
977
1071
|
|
|
1072
|
+
##### Deck Quiz
|
|
1073
|
+
|
|
1074
|
+
```tsx
|
|
1075
|
+
<ClassicQuizPlay
|
|
1076
|
+
entityId="quiz-123"
|
|
1077
|
+
sdk={sdkInstance}
|
|
1078
|
+
template={ClassicQuizTemplate.DECK}
|
|
1079
|
+
language="en"
|
|
1080
|
+
showAnswerExplanations={true}
|
|
1081
|
+
deck={{ entrance: "flip", openIcon: "eye" }}
|
|
1082
|
+
themeOptions={{
|
|
1083
|
+
mode: "dark",
|
|
1084
|
+
imageBackgroundGradient: {
|
|
1085
|
+
dark: {
|
|
1086
|
+
deck: "linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(18,18,18,0.9) 100%)",
|
|
1087
|
+
},
|
|
1088
|
+
},
|
|
1089
|
+
}}
|
|
1090
|
+
/>
|
|
1091
|
+
```
|
|
1092
|
+
|
|
978
1093
|
### PollVote
|
|
979
1094
|
|
|
980
1095
|
Interactive poll voting component with real-time results, multiple choice support, and customizable templates. Perfect for engaging audiences with opinion polls, surveys, and voting campaigns.
|
package/Standings.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as w, jsx as r, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import P, { useState as
|
|
3
|
-
import { g as D, u as F, d as $, B as x,
|
|
4
|
-
import { S as
|
|
2
|
+
import P, { useState as N, useEffect as me, useMemo as V, useRef as ke } from "react";
|
|
3
|
+
import { g as D, u as F, d as $, B as x, z as q, y as Y, a as Q, f as H, b as Le, v as Re, A as Te, p as De, o as ve, q as Ee, r as Pe, C as Fe, s as Ke, E as Ae, t as Oe, w as ze } from "./chunks/PrizeCard-YH9jftwY.js";
|
|
4
|
+
import { S as Ne } from "./chunks/Spinner-CP7juuny.js";
|
|
5
5
|
import { createPortal as pe } from "react-dom";
|
|
6
|
-
import { h as ee, b as Ie } from "./chunks/helpers-
|
|
6
|
+
import { h as ee, b as Ie } from "./chunks/helpers-B4K14VMy.js";
|
|
7
7
|
import { f as le } from "./chunks/index-YA7wEdrb.js";
|
|
8
|
-
import { E as $e } from "./chunks/EmojiEvents-
|
|
9
|
-
import { T as k } from "./chunks/Typography-
|
|
10
|
-
import { C as Me } from "./chunks/Chip-
|
|
11
|
-
import { I as Be } from "./chunks/InlineSpinner-
|
|
12
|
-
import { S as fe } from "./chunks/Sheet-
|
|
13
|
-
import { T as Ue } from "./chunks/Table-
|
|
14
|
-
import { T as ge, a as he, b as ye, c as xe } from "./chunks/Tabs-
|
|
8
|
+
import { E as $e } from "./chunks/EmojiEvents-YHRdPnXx.js";
|
|
9
|
+
import { T as k } from "./chunks/Typography-Ce4eGDV-.js";
|
|
10
|
+
import { C as Me } from "./chunks/Chip-WC9No4h9.js";
|
|
11
|
+
import { I as Be } from "./chunks/InlineSpinner-CyqM_yQn.js";
|
|
12
|
+
import { S as fe } from "./chunks/Sheet-Bj4wdH5F.js";
|
|
13
|
+
import { T as Ue } from "./chunks/Table-DvjSYLKy.js";
|
|
14
|
+
import { T as ge, a as he, b as ye, c as xe } from "./chunks/Tabs-D44eIyd1.js";
|
|
15
15
|
const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().replace(
|
|
16
16
|
/\S+/g,
|
|
17
17
|
(n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()
|
|
@@ -204,7 +204,7 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
204
204
|
stages: c
|
|
205
205
|
};
|
|
206
206
|
}, st = (e, t, n, o, a, l, d, i, p) => {
|
|
207
|
-
const [c, s] =
|
|
207
|
+
const [c, s] = N(null), [u, f] = N(!0), [h, b] = N(null);
|
|
208
208
|
return me(() => {
|
|
209
209
|
if (!e || !t) return;
|
|
210
210
|
let g = !1;
|
|
@@ -279,7 +279,7 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
279
279
|
)
|
|
280
280
|
)).forEach((s) => l.push(...s)), l;
|
|
281
281
|
}, pt = (e, t, n, o) => {
|
|
282
|
-
const [a, l] =
|
|
282
|
+
const [a, l] = N({}), [d, i] = N(!1), p = ut(t);
|
|
283
283
|
return me(() => {
|
|
284
284
|
if (!o || !t.length) {
|
|
285
285
|
l({}), i(!1);
|
|
@@ -649,7 +649,7 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
649
649
|
matches: n,
|
|
650
650
|
loading: o
|
|
651
651
|
}) => {
|
|
652
|
-
const { t: a, i18n: l } = Q("common"), d = D(), i = F(), p = H(), { shadowRootElement: c } = Le(Re), s = Te(), [u, f] =
|
|
652
|
+
const { t: a, i18n: l } = Q("common"), d = D(), i = F(), p = H(), { shadowRootElement: c } = Le(Re), s = Te(), [u, f] = N(null), h = ke([]), b = [...n].reverse();
|
|
653
653
|
if (o)
|
|
654
654
|
return /* @__PURE__ */ r(x, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(Be, {}) });
|
|
655
655
|
if (!b.length)
|
|
@@ -1128,7 +1128,7 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
1128
1128
|
formLoading: i,
|
|
1129
1129
|
sport: p
|
|
1130
1130
|
}) => {
|
|
1131
|
-
const c = D(), s = F(), u = H(), f = $(), [h, b] =
|
|
1131
|
+
const c = D(), s = F(), u = H(), f = $(), [h, b] = N(0);
|
|
1132
1132
|
return /* @__PURE__ */ w(
|
|
1133
1133
|
ge,
|
|
1134
1134
|
{
|
|
@@ -1330,7 +1330,7 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
1330
1330
|
formLoading: p,
|
|
1331
1331
|
sport: c
|
|
1332
1332
|
}) => {
|
|
1333
|
-
const s = D(), u = F(), f = H(), h = $(), [b, S] =
|
|
1333
|
+
const s = D(), u = F(), f = H(), h = $(), [b, S] = N(0);
|
|
1334
1334
|
return /* @__PURE__ */ w(
|
|
1335
1335
|
ge,
|
|
1336
1336
|
{
|
|
@@ -1458,7 +1458,7 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
1458
1458
|
b,
|
|
1459
1459
|
o
|
|
1460
1460
|
), L = !s || s.includes("form"), E = ((se = y == null ? void 0 : y.sport) == null ? void 0 : se.toLowerCase()) === "football", M = V(() => !y || !L ? [] : y.stages.map((v) => {
|
|
1461
|
-
var B,
|
|
1461
|
+
var B, z;
|
|
1462
1462
|
const O = /* @__PURE__ */ new Set();
|
|
1463
1463
|
return v.groups.forEach(
|
|
1464
1464
|
(X) => X.rows.forEach((Z) => O.add(Z.competitorId))
|
|
@@ -1471,16 +1471,16 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
1471
1471
|
// missing, default the upper bound to today rather than sending no `toDate` at
|
|
1472
1472
|
// all, which would let "last 5 matches" spill into a later season.
|
|
1473
1473
|
fromDate: v.startDate || ((B = y.season) == null ? void 0 : B.startDate) || null,
|
|
1474
|
-
toDate: v.endDate || ((
|
|
1474
|
+
toDate: v.endDate || ((z = y.season) == null ? void 0 : z.endDate) || (/* @__PURE__ */ new Date()).toISOString()
|
|
1475
1475
|
};
|
|
1476
1476
|
}), [y, L]), _ = V(() => {
|
|
1477
1477
|
const v = /* @__PURE__ */ new Map();
|
|
1478
1478
|
return y == null || y.stages.forEach(
|
|
1479
1479
|
(O) => O.groups.forEach(
|
|
1480
|
-
(B) => B.rows.forEach((
|
|
1481
|
-
v.set(
|
|
1482
|
-
name:
|
|
1483
|
-
logoUrl:
|
|
1480
|
+
(B) => B.rows.forEach((z) => {
|
|
1481
|
+
v.set(z.competitorId, {
|
|
1482
|
+
name: z.teamName,
|
|
1483
|
+
logoUrl: z.logoUrl
|
|
1484
1484
|
});
|
|
1485
1485
|
})
|
|
1486
1486
|
)
|
|
@@ -1491,8 +1491,8 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
1491
1491
|
Object.entries(G).map(([O, B]) => [
|
|
1492
1492
|
O,
|
|
1493
1493
|
Object.fromEntries(
|
|
1494
|
-
Object.entries(B).map(([
|
|
1495
|
-
|
|
1494
|
+
Object.entries(B).map(([z, X]) => [
|
|
1495
|
+
z,
|
|
1496
1496
|
X.map((Z) => {
|
|
1497
1497
|
const U = _.get(Z.opponentId);
|
|
1498
1498
|
return {
|
|
@@ -1527,7 +1527,7 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
1527
1527
|
borderColor: g.outlineEnabledBorder
|
|
1528
1528
|
},
|
|
1529
1529
|
children: [
|
|
1530
|
-
K && /* @__PURE__ */ r(
|
|
1530
|
+
K && /* @__PURE__ */ r(Ne, { my: 10 }),
|
|
1531
1531
|
!K && A && /* @__PURE__ */ r(k, { sx: ae, children: S("standings.loadFailed") }),
|
|
1532
1532
|
!K && !A && re && /* @__PURE__ */ r(k, { sx: ae, children: S("standings.noStandingsAvailable") }),
|
|
1533
1533
|
!K && !A && y && !re && /* @__PURE__ */ w(W, { children: [
|
|
@@ -1584,7 +1584,7 @@ const We = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
|
|
|
1584
1584
|
i.current.shadowRoot ? (p.current = i.current.shadowRoot, c.current = p.current.getElementById(
|
|
1585
1585
|
d.current
|
|
1586
1586
|
), c.current || (c.current = document.createElement("div"), c.current.id = d.current, c.current.style.height = "100%", p.current.appendChild(c.current))) : (p.current = i.current.attachShadow({ mode: "open" }), c.current = document.createElement("div"), c.current.id = d.current, c.current.style.height = "100%", p.current.appendChild(c.current)), Ee(c.current, l);
|
|
1587
|
-
const S =
|
|
1587
|
+
const S = ze("standings", l);
|
|
1588
1588
|
return u(
|
|
1589
1589
|
(g) => (g == null ? void 0 : g.key) === S ? g : Pe(
|
|
1590
1590
|
"standings",
|
package/TopX.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { jsxs as p, jsx as e, Fragment as Ee } from "react/jsx-runtime";
|
|
2
2
|
import * as lt from "react";
|
|
3
3
|
import Pe, { createContext as en, useContext as tn, useState as P, useRef as je, useMemo as Ce, useCallback as de, useEffect as me, lazy as on, Suspense as rn, useLayoutEffect as Lr } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { P as pn } from "./chunks/Portal-
|
|
4
|
+
import { D as nn, _ as Ie, F as an, G as sn, H as ln, I as qt, P as U, J as Co, g as be, d as xe, B as r, a as We, f as ve, u as ke, z as eo, y as zr, b as zt, v as $t, i as yo, c as cn, m as $r, h as dn, A as Rr } from "./chunks/PrizeCard-YH9jftwY.js";
|
|
5
|
+
import { P as pn } from "./chunks/Portal-0HYQP6vC.js";
|
|
6
6
|
import { createPortal as un } from "react-dom";
|
|
7
|
-
import { b as Tr, M as mn } from "./chunks/main-
|
|
8
|
-
import { b as tt, h as Pt, c as fn } from "./chunks/helpers-
|
|
9
|
-
import { N as to } from "./chunks/Notification-
|
|
7
|
+
import { b as Tr, M as mn } from "./chunks/main-eplFgf8K.js";
|
|
8
|
+
import { b as tt, h as Pt, c as fn } from "./chunks/helpers-B4K14VMy.js";
|
|
9
|
+
import { N as to } from "./chunks/Notification-preGSwrO.js";
|
|
10
10
|
import { Y as xn, X as hn, J as gn, j as yn, o as bn } from "./chunks/index-YA7wEdrb.js";
|
|
11
|
-
import { S as Sn } from "./chunks/Stack-
|
|
12
|
-
import { F as Cn, C as vn } from "./chunks/FormControl-
|
|
13
|
-
import { u as kn, a as er, e as vo, s as Rt, b as wn, c as Lt, i as In, d as Ln, T as S } from "./chunks/Typography-
|
|
14
|
-
import { B as Ne, I as vt } from "./chunks/Button-
|
|
15
|
-
import { S as Fr, W as zn, E as Qt, M as $n, A as Rn, a as Tn, G as xo, C as ho, b as Mo, c as Fn, d as En, e as Er, L as Pn, V as Fo, f as Wn, g as Xn, h as Pr, i as An, P as Bn, j as Dn, k as Wt, l as Mn, B as Nn, H as tr, m as Hn, R as Wr, n as or, o as On, p as jn, q as Vn, r as rr, T as _n, s as Yn, t as Gn, N as Un, u as Kn, v as qn, w as Jn } from "./chunks/WorkspacePremiumOutlined-
|
|
16
|
-
import { D as ht } from "./chunks/DirectionScope-
|
|
11
|
+
import { S as Sn } from "./chunks/Stack-DuL71jRI.js";
|
|
12
|
+
import { F as Cn, C as vn } from "./chunks/FormControl-yhrIQ7ci.js";
|
|
13
|
+
import { u as kn, a as er, e as vo, s as Rt, b as wn, c as Lt, i as In, d as Ln, T as S } from "./chunks/Typography-Ce4eGDV-.js";
|
|
14
|
+
import { B as Ne, I as vt } from "./chunks/Button-By0gW9vl.js";
|
|
15
|
+
import { S as Fr, W as zn, E as Qt, M as $n, A as Rn, a as Tn, G as xo, C as ho, b as Mo, c as Fn, d as En, e as Er, L as Pn, V as Fo, f as Wn, g as Xn, h as Pr, i as An, P as Bn, j as Dn, k as Wt, l as Mn, B as Nn, H as tr, m as Hn, R as Wr, n as or, o as On, p as jn, q as Vn, r as rr, T as _n, s as Yn, t as Gn, N as Un, u as Kn, v as qn, w as Jn } from "./chunks/WorkspacePremiumOutlined-mcdyqu4a.js";
|
|
16
|
+
import { D as ht } from "./chunks/DirectionScope-BYGJWPAq.js";
|
|
17
17
|
import { u as Zn } from "./chunks/useControlled-BYdyS7Pn.js";
|
|
18
|
-
import { u as ko } from "./chunks/useEventCallback-
|
|
18
|
+
import { u as ko } from "./chunks/useEventCallback-Bpmr_fht.js";
|
|
19
19
|
import { o as mo } from "./chunks/getReactElementRef-B3MFPBbS.js";
|
|
20
20
|
import { a as Qn } from "./chunks/areArraysEqual-B3mXtHvh.js";
|
|
21
21
|
import { v as ei } from "./chunks/visuallyHidden-B8J7BVSJ.js";
|
|
22
|
-
import { P as Xt } from "./chunks/Person-
|
|
23
|
-
import { A as oo } from "./chunks/Avatar-
|
|
24
|
-
import { S as ti } from "./chunks/Spinner-
|
|
22
|
+
import { P as Xt } from "./chunks/Person-DFs8t3vY.js";
|
|
23
|
+
import { A as oo } from "./chunks/Avatar-Bs2ODH24.js";
|
|
24
|
+
import { S as ti } from "./chunks/Spinner-CP7juuny.js";
|
|
25
25
|
import { C as oi, a as ri } from "./chunks/chevrons-right-CXSpQt9w.js";
|
|
26
26
|
import { C as ni, a as ii } from "./chunks/chevron-right-eZEqQ93O.js";
|
|
27
|
-
import { S as Eo } from "./chunks/Sheet-
|
|
28
|
-
import { T as Po } from "./chunks/Table-
|
|
29
|
-
import { E as At } from "./chunks/EmojiEvents-
|
|
30
|
-
import { D as Xr, C as Ar, E as ai } from "./chunks/EditOutlined-
|
|
31
|
-
import { C as Br, a as Dr, S as No } from "./chunks/Search-
|
|
32
|
-
import { M as Ho, a as Oo } from "./chunks/ModalDialog-
|
|
33
|
-
import { C as Mr } from "./chunks/Close-
|
|
34
|
-
import { I as Nt } from "./chunks/Input-
|
|
35
|
-
import { T as Nr } from "./chunks/Textarea-
|
|
36
|
-
import { a as si, K as li } from "./chunks/KeyboardArrowDown-
|
|
37
|
-
import { D as ci } from "./chunks/Divider-
|
|
27
|
+
import { S as Eo } from "./chunks/Sheet-Bj4wdH5F.js";
|
|
28
|
+
import { T as Po } from "./chunks/Table-DvjSYLKy.js";
|
|
29
|
+
import { E as At } from "./chunks/EmojiEvents-YHRdPnXx.js";
|
|
30
|
+
import { D as Xr, C as Ar, E as ai } from "./chunks/EditOutlined-DvZLGuHA.js";
|
|
31
|
+
import { C as Br, a as Dr, S as No } from "./chunks/Search-CWYaTHth.js";
|
|
32
|
+
import { M as Ho, a as Oo } from "./chunks/ModalDialog-CXSBeWlQ.js";
|
|
33
|
+
import { C as Mr } from "./chunks/Close-CKW5gQRw.js";
|
|
34
|
+
import { I as Nt } from "./chunks/Input-Dm3GnI0X.js";
|
|
35
|
+
import { T as Nr } from "./chunks/Textarea-Cjks7P0A.js";
|
|
36
|
+
import { a as si, K as li } from "./chunks/KeyboardArrowDown-CCFl-_Cw.js";
|
|
37
|
+
import { D as ci } from "./chunks/Divider-4Rcw4h05.js";
|
|
38
38
|
function Jt(t, o = Number.MIN_SAFE_INTEGER, a = Number.MAX_SAFE_INTEGER) {
|
|
39
39
|
return Math.max(o, Math.min(t, a));
|
|
40
40
|
}
|
|
@@ -14786,7 +14786,7 @@ const xs = ({
|
|
|
14786
14786
|
]
|
|
14787
14787
|
}
|
|
14788
14788
|
);
|
|
14789
|
-
}, Xs = Pe.memo(Ws), As = on(() => import("./chunks/index-
|
|
14789
|
+
}, Xs = Pe.memo(Ws), As = on(() => import("./chunks/index-bI2wtknX.js")), Bs = ({
|
|
14790
14790
|
league: t,
|
|
14791
14791
|
onBack: o,
|
|
14792
14792
|
onLeagueLeft: a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "./createSvgIcon-
|
|
2
|
+
import { c } from "./createSvgIcon-D9F_KILu.js";
|
|
3
3
|
const t = c([/* @__PURE__ */ s("path", {
|
|
4
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
5
|
}, "0"), /* @__PURE__ */ s("path", {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as D, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { C as M } from "./CheckCircle-
|
|
3
|
-
import { c as z } from "./createSvgIcon-
|
|
4
|
-
import {
|
|
2
|
+
import { C as M } from "./CheckCircle-BVTGl0Ft.js";
|
|
3
|
+
import { c as z } from "./createSvgIcon-D9F_KILu.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-YH9jftwY.js";
|
|
5
5
|
import * as U from "react";
|
|
6
|
-
import { s as h, r as V, h as
|
|
7
|
-
import { S as X } from "./Stack-
|
|
6
|
+
import { s as h, r as V, h as G, j as q, b as K, c as v, d as Q, T as g } from "./Typography-Ce4eGDV-.js";
|
|
7
|
+
import { S as X } from "./Stack-DuL71jRI.js";
|
|
8
8
|
function Y(e) {
|
|
9
9
|
return _("MuiAlert", e);
|
|
10
10
|
}
|
|
@@ -73,7 +73,7 @@ const Z = ["children", "className", "color", "invertedColors", "role", "variant"
|
|
|
73
73
|
lg: "md"
|
|
74
74
|
}[o.size]}`], {
|
|
75
75
|
fontWeight: e.vars.fontWeight.md
|
|
76
|
-
}, o.variant === "solid" && o.color && o.invertedColors &&
|
|
76
|
+
}, o.variant === "solid" && o.color && o.invertedColors && G(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 && {
|
|
77
77
|
"--Alert-padding": t
|
|
78
78
|
}, n !== void 0 && {
|
|
79
79
|
"--Alert-padding": n
|
|
@@ -96,7 +96,7 @@ const Z = ["children", "className", "color", "invertedColors", "role", "variant"
|
|
|
96
96
|
flex: "none",
|
|
97
97
|
marginLeft: "auto"
|
|
98
98
|
}), C = /* @__PURE__ */ U.forwardRef(function(o, a) {
|
|
99
|
-
const t =
|
|
99
|
+
const t = K({
|
|
100
100
|
props: o,
|
|
101
101
|
name: "JoyAlert"
|
|
102
102
|
}), {
|
|
@@ -123,28 +123,28 @@ const Z = ["children", "className", "color", "invertedColors", "role", "variant"
|
|
|
123
123
|
slotProps: R
|
|
124
124
|
}), [P, W] = v("root", {
|
|
125
125
|
ref: a,
|
|
126
|
-
className:
|
|
126
|
+
className: $(m.root, l),
|
|
127
127
|
elementType: rr,
|
|
128
128
|
externalForwardedProps: u,
|
|
129
129
|
ownerState: p,
|
|
130
130
|
additionalProps: {
|
|
131
131
|
role: x
|
|
132
132
|
}
|
|
133
|
-
}), [j,
|
|
133
|
+
}), [j, F] = v("startDecorator", {
|
|
134
134
|
className: m.startDecorator,
|
|
135
135
|
elementType: or,
|
|
136
136
|
externalForwardedProps: u,
|
|
137
137
|
ownerState: p
|
|
138
|
-
}), [
|
|
138
|
+
}), [N, H] = v("endDecorator", {
|
|
139
139
|
className: m.endDecorator,
|
|
140
140
|
elementType: er,
|
|
141
141
|
externalForwardedProps: u,
|
|
142
142
|
ownerState: p
|
|
143
143
|
});
|
|
144
144
|
return /* @__PURE__ */ D(P, i({}, W, {
|
|
145
|
-
children: [y && /* @__PURE__ */ s(j, i({},
|
|
145
|
+
children: [y && /* @__PURE__ */ s(j, i({}, F, {
|
|
146
146
|
children: y
|
|
147
|
-
})), n, A && /* @__PURE__ */ s(
|
|
147
|
+
})), n, A && /* @__PURE__ */ s(N, i({}, H, {
|
|
148
148
|
children: A
|
|
149
149
|
}))]
|
|
150
150
|
}));
|
|
@@ -254,7 +254,7 @@ const tr = z(/* @__PURE__ */ s("path", {
|
|
|
254
254
|
message: a,
|
|
255
255
|
description: t
|
|
256
256
|
}) => {
|
|
257
|
-
const n =
|
|
257
|
+
const n = k(), l = B(), c = L().secondary, d = nr(e);
|
|
258
258
|
return /* @__PURE__ */ s(
|
|
259
259
|
C,
|
|
260
260
|
{
|