fansunited-frontend-components 0.0.31-RC4 → 0.0.31-RC5
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/ClassicQuizPlay.js +5 -0
- package/CollectLead.js +5 -0
- package/EventGamePlay.js +5 -0
- package/MatchQuizPlay.js +5 -0
- package/PersonalityQuizPlay.js +5 -0
- package/PollVote.js +5 -0
- package/_virtual/_commonjsHelpers.js +6 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/jsx-runtime.js +4 -0
- package/_virtual/react-is.development.js +4 -0
- package/_virtual/react-is.development2.js +4 -0
- package/_virtual/react-is.production.min.js +4 -0
- package/_virtual/react-is.production.min2.js +4 -0
- package/_virtual/react-jsx-runtime.development.js +4 -0
- package/_virtual/react-jsx-runtime.production.js +4 -0
- package/index.js +14 -0
- package/package.json +37 -4
- package/packages/classic-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/classic-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-bookmark-fav-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-crow-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-fire-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-flag-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-medal-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-rocket-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-target-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/3dicons-thumb-down-dynamic-color.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/bottle-with-popping-cork.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/crown.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/direct-hit.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/hundred-points.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/person-facepalming.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/sports-medal.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/thumbs-down.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/trophy.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/emojis/upside-down-face.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-danger.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-success.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/hexagons/shape-hexagon-warning.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/info.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/classic-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizNotFound.js +23 -0
- package/packages/classic-quiz-play/src/components/ClassicQuizPlay.js +353 -0
- package/packages/classic-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/classic-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Answers.js +80 -0
- package/packages/classic-quiz-play/src/components/Shared/Answers/Option.js +130 -0
- package/packages/classic-quiz-play/src/components/Shared/Button.js +67 -0
- package/packages/classic-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/classic-quiz-play/src/components/Shared/PresentedBy.js +122 -0
- package/packages/classic-quiz-play/src/components/Shared/ScoreStateWrapper.js +443 -0
- package/packages/classic-quiz-play/src/components/Shared/Stepper.js +59 -0
- package/packages/classic-quiz-play/src/components/Shared/Stopwatch.js +109 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/Error/OverlayError.js +45 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.js +170 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/OverlayVariant.styles.js +190 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.js +177 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/ScoreState/OverlayScoreState.styles.js +373 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.js +120 -0
- package/packages/classic-quiz-play/src/components/Variants/Overlay/SignIn/OverlaySignIn.styles.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/Error/SplitError.js +42 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.js +231 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/ScoreState/SplitScoreState.styles.js +353 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.js +118 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SignIn/SplitSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.js +183 -0
- package/packages/classic-quiz-play/src/components/Variants/Split/SplitVariant.styles.js +145 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/Error/StandardError.js +43 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.js +220 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/ScoreState/StandardScoreState.styles.js +347 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.js +117 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/SignIn/StandardSignIn.styles.js +52 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.js +209 -0
- package/packages/classic-quiz-play/src/components/Variants/Standard/StandardVariant.styles.js +182 -0
- package/packages/classic-quiz-play/src/constants/constants.js +4 -0
- package/packages/classic-quiz-play/src/hooks/useClassicQuizById.js +18 -0
- package/packages/classic-quiz-play/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/classic-quiz-play/src/hooks/useMyParticipation.js +40 -0
- package/packages/classic-quiz-play/src/hooks/useScoreStateHelpers.js +117 -0
- package/packages/classic-quiz-play/src/index.js +4 -0
- package/packages/classic-quiz-play/src/main.js +7 -0
- package/packages/collect-lead/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/collect-lead/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/collect-lead/src/components/CollectLead.js +18 -0
- package/packages/collect-lead/src/components/Leads/CollectLeadWrapper.js +63 -0
- package/packages/collect-lead/src/components/Shared/MainCard.js +31 -0
- package/packages/collect-lead/src/components/Shared/PresentedBy.js +118 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.js +72 -0
- package/packages/collect-lead/src/components/Variants/Overlay/LeadOverlayVariant.styles.js +187 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.js +81 -0
- package/packages/collect-lead/src/components/Variants/Split/LeadSplitVariant.styles.js +338 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.js +82 -0
- package/packages/collect-lead/src/components/Variants/Standard/LeadStandardVariant.styles.js +313 -0
- package/packages/collect-lead/src/index.js +4 -0
- package/packages/collect-lead/src/main.js +39 -0
- package/packages/collect-lead/src/providers/ConfigurationProvider.js +50 -0
- package/packages/common/src/components/AdditionalCTA.js +24 -0
- package/packages/common/src/components/AlertMessage.js +88 -0
- package/packages/common/src/components/LeadCollection/OverlayLeadAfterCollection.js +111 -0
- package/packages/common/src/components/LeadCollection/SplitLeadAfterCollection.js +103 -0
- package/packages/common/src/components/LeadCollection/StandardLeadAfterCollection.js +101 -0
- package/packages/common/src/components/Leads/CollectLeadForm.js +72 -0
- package/packages/common/src/components/Leads/ConsentsCheckboxes.js +82 -0
- package/packages/common/src/components/Leads/LeadAgreementCheckbox.js +104 -0
- package/packages/common/src/components/Leads/LeadForm.js +498 -0
- package/packages/common/src/components/Portal.js +62 -0
- package/packages/common/src/components/Rules.js +299 -0
- package/packages/common/src/components/Skeletons/NotFoundSkeleton.js +83 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.js +80 -0
- package/packages/common/src/components/Skeletons/Overlay/ApiError/OverlayApiErrorSkeleton.styles.js +190 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.js +68 -0
- package/packages/common/src/components/Skeletons/Overlay/OverlaySkeleton.styles.js +100 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.js +65 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateSkeleton.styles.js +90 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.js +34 -0
- package/packages/common/src/components/Skeletons/Overlay/ScoreState/OverlayScoreStateWrapperSkeleton.styles.js +55 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.js +58 -0
- package/packages/common/src/components/Skeletons/Overlay/SignIn/OverlaySignInSkeleton.styles.js +105 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.js +98 -0
- package/packages/common/src/components/Skeletons/Split/ApiError/SplitApiErrorSkeleton.styles.js +167 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.js +64 -0
- package/packages/common/src/components/Skeletons/Split/ScoreState/SplitScoreStateSkeleton.styles.js +107 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.js +55 -0
- package/packages/common/src/components/Skeletons/Split/SignIn/SplitSignInSkeleton.styles.js +94 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.js +186 -0
- package/packages/common/src/components/Skeletons/Split/SplitSkeleton.styles.js +181 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.js +173 -0
- package/packages/common/src/components/Skeletons/Standard/ApiError/StandardApiErrorSkeleton.styles.js +275 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.js +23 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardContentSkeleton.styles.js +40 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.js +142 -0
- package/packages/common/src/components/Skeletons/Standard/ScoreState/StandardScoreStateSkeleton.styles.js +203 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.js +157 -0
- package/packages/common/src/components/Skeletons/Standard/SignIn/StandardSignInSkeleton.styles.js +194 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.js +238 -0
- package/packages/common/src/components/Skeletons/Standard/StandardSkeleton.styles.js +211 -0
- package/packages/common/src/components/Spinner.js +36 -0
- package/packages/common/src/constants/constants.js +457 -0
- package/packages/common/src/enums/enums.js +4 -0
- package/packages/common/src/functions/helpers.js +58 -0
- package/packages/common/src/functions/i18n.js +69 -0
- package/packages/common/src/functions/theme.js +301 -0
- package/packages/common/src/hooks/useConstantContext.js +10 -0
- package/packages/common/src/hooks/useImageUrl.js +8 -0
- package/packages/common/src/hooks/useImageVariant.js +11 -0
- package/packages/common/src/hooks/useLeadForm.js +129 -0
- package/packages/common/src/hooks/useThemeMode.js +30 -0
- package/packages/common/src/locales/bg.json.js +363 -0
- package/packages/common/src/locales/de.json.js +362 -0
- package/packages/common/src/locales/el.json.js +362 -0
- package/packages/common/src/locales/en.json.js +368 -0
- package/packages/common/src/locales/es.json.js +362 -0
- package/packages/common/src/locales/fr-be.json.js +362 -0
- package/packages/common/src/locales/fr.json.js +362 -0
- package/packages/common/src/locales/it.json.js +362 -0
- package/packages/common/src/locales/pl.json.js +362 -0
- package/packages/common/src/locales/pt-br.json.js +362 -0
- package/packages/common/src/locales/pt.json.js +362 -0
- package/packages/common/src/locales/ro.json.js +362 -0
- package/packages/common/src/locales/sk.json.js +362 -0
- package/packages/common/src/locales/sr.json.js +362 -0
- package/packages/common/src/providers/ConstantsProvider.js +29 -0
- package/packages/common/src/providers/ContainerProvider.js +35 -0
- package/packages/common/src/providers/FontProvider.js +25 -0
- package/packages/common/src/providers/ThemeProvider.js +80 -0
- package/packages/event-game-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/event-game-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/event-game-play/src/assets/school.svg.js +4 -0
- package/packages/event-game-play/src/assets/sports_score.svg.js +4 -0
- package/packages/event-game-play/src/components/EventGameNotFound.js +23 -0
- package/packages/event-game-play/src/components/EventGamePlay.js +318 -0
- package/packages/event-game-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/event-game-play/src/components/Shared/Countdown.js +125 -0
- package/packages/event-game-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +574 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.js +60 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.js +108 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Boolean/BooleanSelector.styles.js +44 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberFixture.styles.js +37 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.js +82 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Number/NumberSelector.styles.js +64 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.js +62 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextFixture.styles.js +29 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.js +344 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/Text/TextSelector.styles.js +70 -0
- package/packages/event-game-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/event-game-play/src/components/Shared/Leaderboard/LeaderboardPagination.js +88 -0
- package/packages/event-game-play/src/components/Shared/MainCard.js +34 -0
- package/packages/event-game-play/src/components/Shared/Notification.js +67 -0
- package/packages/event-game-play/src/components/Shared/Stepper.js +151 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.js +163 -0
- package/packages/event-game-play/src/components/Shared/Summary/EditPredictionModal.styles.js +110 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.js +118 -0
- package/packages/event-game-play/src/components/Shared/Summary/PredictionSummary.styles.js +180 -0
- package/packages/event-game-play/src/components/Variants/Overlay/Error/EventGameOverlayError.js +30 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.js +348 -0
- package/packages/event-game-play/src/components/Variants/Overlay/EventGameOverlayVariant.styles.js +213 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.js +130 -0
- package/packages/event-game-play/src/components/Variants/Overlay/FinishedGame/EventGameOverlayFinishedGame.styles.js +712 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.js +141 -0
- package/packages/event-game-play/src/components/Variants/Overlay/ScoreState/EventGameOverlayScoreState.styles.js +156 -0
- package/packages/event-game-play/src/components/Variants/Split/Error/EventGameSplitError.js +28 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.js +347 -0
- package/packages/event-game-play/src/components/Variants/Split/EventGameSplitVariant.styles.js +149 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.js +119 -0
- package/packages/event-game-play/src/components/Variants/Split/FinishedGame/EventGameSplitFinishedGame.styles.js +230 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.js +139 -0
- package/packages/event-game-play/src/components/Variants/Split/ScoreState/EventGameSplitScoreState.styles.js +45 -0
- package/packages/event-game-play/src/components/Variants/Standard/Error/EventGameStandardError.js +29 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.js +329 -0
- package/packages/event-game-play/src/components/Variants/Standard/EventGameStandardVariant.styles.js +373 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.js +219 -0
- package/packages/event-game-play/src/components/Variants/Standard/FinishedGame/EventGameStandardFinishedGame.styles.js +548 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.js +117 -0
- package/packages/event-game-play/src/components/Variants/Standard/ScoreState/EventGameStandardScoreState.styles.js +259 -0
- package/packages/event-game-play/src/helpers/helpers.js +11 -0
- package/packages/event-game-play/src/hooks/useEventGameById.js +27 -0
- package/packages/event-game-play/src/hooks/useEventGamePrediction.js +54 -0
- package/packages/event-game-play/src/hooks/useEventRankings.js +61 -0
- package/packages/event-game-play/src/index.js +4 -0
- package/packages/event-game-play/src/main.js +7 -0
- package/packages/event-game-play/src/providers/ConstantsProvider.js +17 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/match-quiz-play/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/match-quiz-play/src/assets/school.svg.js +4 -0
- package/packages/match-quiz-play/src/assets/sports_score.svg.js +4 -0
- package/packages/match-quiz-play/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/match-quiz-play/src/components/MatchQuizNotFound.js +23 -0
- package/packages/match-quiz-play/src/components/MatchQuizPlay.js +490 -0
- package/packages/match-quiz-play/src/components/Shared/AlertMessage.js +93 -0
- package/packages/match-quiz-play/src/components/Shared/Countdown.js +125 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/EarnedPointsDisplay.js +64 -0
- package/packages/match-quiz-play/src/components/Shared/FinishedGameWrapper/FinishedGameWrapper.js +854 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.js +143 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelector.styles.js +101 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.js +97 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/1X2/OneXTwoSelectorSplit.styles.js +77 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.js +61 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js +41 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.styles.js +30 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.js +179 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js +163 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js +103 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.styles.js +86 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.js +79 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.js +213 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/Players/PlayersSelector.styles.js +293 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.js +116 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/PointsDisplay/PointsDisplay.styles.js +98 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.js +72 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoFixture.styles.js +29 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.js +108 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/YesNo/YesNoSelector.styles.js +44 -0
- package/packages/match-quiz-play/src/components/Shared/Fixtures/shared.styles.js +63 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/LeaderboardComponent.js +220 -0
- package/packages/match-quiz-play/src/components/Shared/Leaderboard/RoundedPagination.js +207 -0
- package/packages/match-quiz-play/src/components/Shared/MainCard.js +34 -0
- package/packages/match-quiz-play/src/components/Shared/Notification.js +67 -0
- package/packages/match-quiz-play/src/components/Shared/PresentedBy.js +118 -0
- package/packages/match-quiz-play/src/components/Shared/Stepper.js +151 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.js +172 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/EditPredictionModal.styles.js +109 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.js +235 -0
- package/packages/match-quiz-play/src/components/Shared/Summary/PredictionSummary.styles.js +219 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/Error/MatchQuizOverlayError.js +45 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.js +157 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/FinishedGame/MatchQuizOverlayFinishedGame.styles.js +710 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.js +499 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/MatchQuizOverlayVariant.styles.js +213 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.js +178 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/ScoreState/MatchQuizOverlayScoreState.styles.js +128 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.js +120 -0
- package/packages/match-quiz-play/src/components/Variants/Overlay/SignIn/MatchQuizOverlaySignIn.styles.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/Error/MatchQuizSplitError.js +42 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.js +185 -0
- package/packages/match-quiz-play/src/components/Variants/Split/FinishedGame/MatchQuizSplitFinishedGame.styles.js +233 -0
- package/packages/match-quiz-play/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +37 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.js +511 -0
- package/packages/match-quiz-play/src/components/Variants/Split/MatchQuizSplitVariant.styles.js +149 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.js +164 -0
- package/packages/match-quiz-play/src/components/Variants/Split/ScoreState/MatchQuizSplitScoreState.styles.js +27 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.js +118 -0
- package/packages/match-quiz-play/src/components/Variants/Split/SignIn/MatchQuizSplitSignIn.styles.js +52 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/Error/MatchQuizStandardError.js +43 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.js +234 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/FinishedGame/MatchQuizStandardFinishedGame.styles.js +548 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +35 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.js +513 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/MatchQuizStandardVariant.styles.js +376 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.js +135 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/ScoreState/MatchQuizStandardScoreState.styles.js +259 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.js +129 -0
- package/packages/match-quiz-play/src/components/Variants/Standard/SignIn/MatchQuizStandardSignIn.styles.js +239 -0
- package/packages/match-quiz-play/src/helpers/helpers.js +9 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuiz.js +42 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizLeaderboard.js +53 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizMarketsResults.js +29 -0
- package/packages/match-quiz-play/src/hooks/useMatchQuizPrediction.js +38 -0
- package/packages/match-quiz-play/src/index.js +4 -0
- package/packages/match-quiz-play/src/main.js +7 -0
- package/packages/match-quiz-play/src/providers/ConstantsProvider.js +26 -0
- package/packages/personality-quiz-play/dist/personality-quiz-play.es.js +39513 -0
- package/packages/poll-vote/src/assets/default-quiz-bg-vertical.jpg.js +4 -0
- package/packages/poll-vote/src/assets/default-quiz-bg.png.js +4 -0
- package/packages/poll-vote/src/components/Leads/CollectLeadWrapper.js +65 -0
- package/packages/poll-vote/src/components/PollNotFound.js +23 -0
- package/packages/poll-vote/src/components/PollVote.js +270 -0
- package/packages/poll-vote/src/components/Shared/AlertMessage.js +93 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOption.js +132 -0
- package/packages/poll-vote/src/components/Shared/Answers/PollOptions.js +82 -0
- package/packages/poll-vote/src/components/Shared/Button.js +76 -0
- package/packages/poll-vote/src/components/Shared/MainCard.js +36 -0
- package/packages/poll-vote/src/components/Shared/PresentedBy.js +118 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionResult.js +257 -0
- package/packages/poll-vote/src/components/Shared/Results/PollOptionsResults.js +232 -0
- package/packages/poll-vote/src/components/Variants/Overlay/Error/PollOverlayError.js +45 -0
- package/packages/poll-vote/src/components/Variants/Overlay/LeadCollection/OverlayLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.js +137 -0
- package/packages/poll-vote/src/components/Variants/Overlay/PollOverlayVariant.styles.js +105 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.js +107 -0
- package/packages/poll-vote/src/components/Variants/Overlay/ScoreState/PollOverlayScoreState.styles.js +178 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.js +120 -0
- package/packages/poll-vote/src/components/Variants/Overlay/SignIn/PollOverlaySignIn.styles.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/Error/PollSplitError.js +42 -0
- package/packages/poll-vote/src/components/Variants/Split/LeadCollection/SplitLeadAfterCollection.js +36 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.js +231 -0
- package/packages/poll-vote/src/components/Variants/Split/PollSplitVariant.styles.js +332 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.js +155 -0
- package/packages/poll-vote/src/components/Variants/Split/ScoreState/PollSplitScoreState.styles.js +156 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.js +117 -0
- package/packages/poll-vote/src/components/Variants/Split/SignIn/PollSplitSignIn.styles.js +52 -0
- package/packages/poll-vote/src/components/Variants/Standard/Error/PollStandardError.js +43 -0
- package/packages/poll-vote/src/components/Variants/Standard/LeadCollection/StandardLeadAfterCollection.js +34 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.js +138 -0
- package/packages/poll-vote/src/components/Variants/Standard/PollStandardVariant.styles.js +92 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.js +146 -0
- package/packages/poll-vote/src/components/Variants/Standard/ScoreState/PollStandardScoreState.styles.js +164 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.js +129 -0
- package/packages/poll-vote/src/components/Variants/Standard/SignIn/PollStandardSignIn.styles.js +248 -0
- package/packages/poll-vote/src/hooks/useEmbedCodeContainer.js +30 -0
- package/packages/poll-vote/src/hooks/useMyPollVote.js +43 -0
- package/packages/poll-vote/src/hooks/usePollById.js +16 -0
- package/packages/poll-vote/src/hooks/usePollOptionsImages.js +19 -0
- package/packages/poll-vote/src/index.js +4 -0
- package/packages/poll-vote/src/main.js +7 -0
- package/components.js +0 -86783
package/packages/match-quiz-play/src/components/Shared/Fixtures/Corners/CornersSelector.styles.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const i = (e) => ({
|
|
2
|
+
container: {
|
|
3
|
+
display: "flex",
|
|
4
|
+
alignItems: "center",
|
|
5
|
+
justifyContent: "center",
|
|
6
|
+
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg,
|
|
7
|
+
pt: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
8
|
+
},
|
|
9
|
+
cornersInputContainer: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: "row",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
gap: e.spacingScale.sm
|
|
14
|
+
},
|
|
15
|
+
cornersButton: {
|
|
16
|
+
borderRadius: e.borderRadius.sm,
|
|
17
|
+
minHeight: e.isMobile ? "28px" : "32px",
|
|
18
|
+
minWidth: e.isMobile ? "28px" : "32px",
|
|
19
|
+
borderColor: e.neutralOutlinedBorder,
|
|
20
|
+
color: e.textPrimary,
|
|
21
|
+
"&:hover": {
|
|
22
|
+
backgroundColor: e.neutralPlainHoverBg,
|
|
23
|
+
color: e.textPrimary
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
cornersDisplay: {
|
|
27
|
+
fontFamily: e.fontFamilyPrimary,
|
|
28
|
+
fontWeight: 600,
|
|
29
|
+
fontSize: e.isMobile ? "1.5em" : "2em",
|
|
30
|
+
color: e.textPrimary,
|
|
31
|
+
minWidth: e.isMobile ? "2.5rem" : "3rem",
|
|
32
|
+
textAlign: "center",
|
|
33
|
+
bgcolor: e.neutralSoftBg,
|
|
34
|
+
borderRadius: e.borderRadius.sm,
|
|
35
|
+
px: e.spacingScale.sm,
|
|
36
|
+
py: e.spacingScale.xs
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
i as createStyles
|
|
41
|
+
};
|
package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/CorrectScoreFixture.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Box as i, Typography as y } from "@mui/joy";
|
|
3
|
+
import { useColors as f, useCornerRadius as d, useFontFamily as h, useSpacingScale as C, isExtraSmall as g } from "../../../../../../common/src/functions/theme.js";
|
|
4
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { useConstantContext as j } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
import E from "./ScoreSelector.js";
|
|
11
|
+
import F from "./ScoreSelectorSplit.js";
|
|
12
|
+
import { createStyles as w } from "./CorrectScoreFixture.styles.js";
|
|
13
|
+
import P from "../PointsDisplay/PointsDisplay.js";
|
|
14
|
+
import { MatchQuizConstantsContext as T } from "../../../../providers/ConstantsProvider.js";
|
|
15
|
+
import { useTranslation as H } from "../../../../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
16
|
+
const q = (t) => {
|
|
17
|
+
const { t: o } = H(), r = f(), c = d(), a = h(), m = C(), s = g(), { points: x } = j(T), n = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : s, S = t.showPoints === void 0, l = w({
|
|
18
|
+
spacingScale: m,
|
|
19
|
+
borderRadius: c,
|
|
20
|
+
fontFamilyPrimary: a.primary,
|
|
21
|
+
fontFamilySecondary: a.secondary,
|
|
22
|
+
textPrimary: r.textPrimary,
|
|
23
|
+
textSecondary: r.textSecondary,
|
|
24
|
+
isExtraSmall: n
|
|
25
|
+
}), u = () => t.market === "CORRECT_SCORE_HT" ? o("matchQuiz.fixtures.correctScoreFixtureTitleHT") : o("matchQuiz.fixtures.correctScoreFixtureTitle");
|
|
26
|
+
return /* @__PURE__ */ e.jsxs(i, { sx: l.container, children: [
|
|
27
|
+
/* @__PURE__ */ e.jsxs(
|
|
28
|
+
i,
|
|
29
|
+
{
|
|
30
|
+
sx: {
|
|
31
|
+
display: "flex",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "space-between",
|
|
34
|
+
width: "100%"
|
|
35
|
+
},
|
|
36
|
+
children: [
|
|
37
|
+
n ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsx(i, { sx: { flex: 1 } }),
|
|
38
|
+
/* @__PURE__ */ e.jsx(y, { level: "h3", sx: l.title, children: u() }),
|
|
39
|
+
/* @__PURE__ */ e.jsx(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: S && x.length > 0 && /* @__PURE__ */ e.jsx(
|
|
40
|
+
P,
|
|
41
|
+
{
|
|
42
|
+
market: t.market,
|
|
43
|
+
brandingPrimaryColor: t.brandingPrimaryColor,
|
|
44
|
+
isSplitVariant: t.isSplitVariant
|
|
45
|
+
}
|
|
46
|
+
) })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
t.isSplitVariant ? /* @__PURE__ */ e.jsx(
|
|
51
|
+
F,
|
|
52
|
+
{
|
|
53
|
+
matchModel: t.matchModel,
|
|
54
|
+
onScoreChange: t.onScoreChange,
|
|
55
|
+
initialHomeScore: t.initialHomeScore,
|
|
56
|
+
initialAwayScore: t.initialAwayScore
|
|
57
|
+
}
|
|
58
|
+
) : /* @__PURE__ */ e.jsx(
|
|
59
|
+
E,
|
|
60
|
+
{
|
|
61
|
+
matchModel: t.matchModel,
|
|
62
|
+
onScoreChange: t.onScoreChange,
|
|
63
|
+
initialHomeScore: t.initialHomeScore,
|
|
64
|
+
initialAwayScore: t.initialAwayScore,
|
|
65
|
+
useExtraSmallLayout: t.useExtraSmallLayout
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] });
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
q as default
|
|
72
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isMobile as e } from "../../../../../../common/src/functions/theme.js";
|
|
2
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
3
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
4
|
+
import "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
5
|
+
import "@mui/joy";
|
|
6
|
+
import "react";
|
|
7
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
8
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
9
|
+
const p = (t) => {
|
|
10
|
+
const i = e();
|
|
11
|
+
return {
|
|
12
|
+
container: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
alignItems: "center"
|
|
16
|
+
},
|
|
17
|
+
title: {
|
|
18
|
+
fontFamily: t.fontFamilyPrimary,
|
|
19
|
+
fontWeight: 600,
|
|
20
|
+
fontSize: i ? "1.125em" : "1.25em",
|
|
21
|
+
lineHeight: 1.2,
|
|
22
|
+
color: t.textPrimary,
|
|
23
|
+
textAlign: t.isExtraSmall ? "left" : "center",
|
|
24
|
+
marginLeft: "auto"
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
p as createStyles
|
|
30
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { memo as M, useState as p } from "react";
|
|
3
|
+
import { Box as a, Typography as c, IconButton as j } from "@mui/joy";
|
|
4
|
+
import { useColors as L, useCornerRadius as z, useFontFamily as D, useSpacingScale as F, isMobile as R, isExtraSmall as A } from "../../../../../../common/src/functions/theme.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
+
import { useConstantContext as H } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
import k from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowUp.js";
|
|
11
|
+
import E from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowDown.js";
|
|
12
|
+
import K from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowLeft.js";
|
|
13
|
+
import P from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowRight.js";
|
|
14
|
+
import { createStyles as N } from "./ScoreSelector.styles.js";
|
|
15
|
+
import { MatchQuizConstantsContext as O } from "../../../../providers/ConstantsProvider.js";
|
|
16
|
+
const S = M(({ team: t, isHome: l, styles: i, showTeamLabels: d }) => {
|
|
17
|
+
var u;
|
|
18
|
+
return /* @__PURE__ */ e.jsxs(a, { sx: l ? i.homeTeamColumn : i.awayTeamColumn, children: [
|
|
19
|
+
/* @__PURE__ */ e.jsx(a, { sx: i.teamLogo, children: (u = t.assets) != null && u.logo ? /* @__PURE__ */ e.jsx(
|
|
20
|
+
"img",
|
|
21
|
+
{
|
|
22
|
+
src: t.assets.logo,
|
|
23
|
+
alt: t.name,
|
|
24
|
+
style: {
|
|
25
|
+
width: "100%",
|
|
26
|
+
height: "100%",
|
|
27
|
+
objectFit: "contain"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
) : /* @__PURE__ */ e.jsx(c, { level: "body-sm", sx: i.teamLogoText, children: t.name }) }),
|
|
31
|
+
d && /* @__PURE__ */ e.jsx(c, { level: "body-sm", sx: i.teamName, children: t.name })
|
|
32
|
+
] });
|
|
33
|
+
});
|
|
34
|
+
S.displayName = "TeamLogo";
|
|
35
|
+
const se = (t) => {
|
|
36
|
+
const l = L(), i = z(), d = D(), u = F(), C = R(), b = A(), { showTeamLabels: y } = H(O), T = t.useExtraSmallLayout !== void 0 ? t.useExtraSmallLayout : b, [x, v] = p(t.initialHomeScore ?? 0), [h, I] = p(t.initialAwayScore ?? 0), o = N({
|
|
37
|
+
spacingScale: u,
|
|
38
|
+
borderRadius: i,
|
|
39
|
+
fontFamilyPrimary: d.primary,
|
|
40
|
+
fontFamilySecondary: d.secondary,
|
|
41
|
+
textPrimary: l.textPrimary,
|
|
42
|
+
textSecondary: l.textSecondary,
|
|
43
|
+
neutralSoftBg: l.palette.neutral.softBg,
|
|
44
|
+
neutralOutlinedBorder: l.palette.neutral.outlinedBorder,
|
|
45
|
+
neutralPlainHoverBg: l.palette.neutral.plainHoverBg,
|
|
46
|
+
isMobile: C
|
|
47
|
+
}), r = (s, m) => {
|
|
48
|
+
if (s === "home") {
|
|
49
|
+
const n = m ? Math.min(x + 1, 99) : Math.max(x - 1, 0);
|
|
50
|
+
v(n), t.onScoreChange(n, h);
|
|
51
|
+
} else {
|
|
52
|
+
const n = m ? Math.min(h + 1, 99) : Math.max(h - 1, 0);
|
|
53
|
+
I(n), t.onScoreChange(x, n);
|
|
54
|
+
}
|
|
55
|
+
}, f = ({ score: s, onIncrement: m, onDecrement: n }) => /* @__PURE__ */ e.jsxs(a, { sx: o.scoreInputContainer, children: [
|
|
56
|
+
/* @__PURE__ */ e.jsx(
|
|
57
|
+
j,
|
|
58
|
+
{
|
|
59
|
+
size: "sm",
|
|
60
|
+
variant: "plain",
|
|
61
|
+
onClick: m,
|
|
62
|
+
sx: o.scoreButton,
|
|
63
|
+
children: /* @__PURE__ */ e.jsx(k, { fontSize: "small" })
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ e.jsx(c, { level: "h2", sx: o.scoreDisplay, children: s }),
|
|
67
|
+
/* @__PURE__ */ e.jsx(
|
|
68
|
+
j,
|
|
69
|
+
{
|
|
70
|
+
size: "sm",
|
|
71
|
+
variant: "plain",
|
|
72
|
+
onClick: n,
|
|
73
|
+
sx: o.scoreButton,
|
|
74
|
+
disabled: s === 0,
|
|
75
|
+
children: /* @__PURE__ */ e.jsx(E, { fontSize: "small" })
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] }), g = ({ team: s, score: m, onIncrement: n, onDecrement: B }) => {
|
|
79
|
+
var w;
|
|
80
|
+
return /* @__PURE__ */ e.jsxs(a, { sx: o.xsRow, children: [
|
|
81
|
+
/* @__PURE__ */ e.jsxs(a, { sx: o.xsTeamInfo, children: [
|
|
82
|
+
/* @__PURE__ */ e.jsx(a, { sx: o.xsTeamLogo, children: (w = s.assets) != null && w.logo ? /* @__PURE__ */ e.jsx(
|
|
83
|
+
"img",
|
|
84
|
+
{
|
|
85
|
+
src: s.assets.logo,
|
|
86
|
+
alt: s.name,
|
|
87
|
+
style: { width: "100%", height: "100%", objectFit: "contain" }
|
|
88
|
+
}
|
|
89
|
+
) : /* @__PURE__ */ e.jsx(c, { level: "body-sm", sx: o.teamLogoText, children: s.name }) }),
|
|
90
|
+
y && /* @__PURE__ */ e.jsx(c, { level: "body-sm", sx: o.teamNameInline, children: s.name })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ e.jsxs(a, { sx: o.scoreInputRow, children: [
|
|
93
|
+
/* @__PURE__ */ e.jsx(
|
|
94
|
+
j,
|
|
95
|
+
{
|
|
96
|
+
size: "sm",
|
|
97
|
+
variant: "plain",
|
|
98
|
+
onClick: B,
|
|
99
|
+
sx: o.scoreButton,
|
|
100
|
+
disabled: m === 0,
|
|
101
|
+
children: /* @__PURE__ */ e.jsx(K, { fontSize: "small" })
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ e.jsx(c, { level: "h2", sx: o.scoreDisplay, children: m }),
|
|
105
|
+
/* @__PURE__ */ e.jsx(
|
|
106
|
+
j,
|
|
107
|
+
{
|
|
108
|
+
size: "sm",
|
|
109
|
+
variant: "plain",
|
|
110
|
+
onClick: n,
|
|
111
|
+
sx: o.scoreButton,
|
|
112
|
+
children: /* @__PURE__ */ e.jsx(P, { fontSize: "small" })
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
] })
|
|
116
|
+
] });
|
|
117
|
+
};
|
|
118
|
+
return T ? /* @__PURE__ */ e.jsxs(a, { sx: o.xsContainer, children: [
|
|
119
|
+
/* @__PURE__ */ e.jsx(
|
|
120
|
+
g,
|
|
121
|
+
{
|
|
122
|
+
team: t.matchModel.homeTeam,
|
|
123
|
+
score: x,
|
|
124
|
+
onIncrement: () => r("home", !0),
|
|
125
|
+
onDecrement: () => r("home", !1)
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
/* @__PURE__ */ e.jsx(
|
|
129
|
+
g,
|
|
130
|
+
{
|
|
131
|
+
team: t.matchModel.awayTeam,
|
|
132
|
+
score: h,
|
|
133
|
+
onIncrement: () => r("away", !0),
|
|
134
|
+
onDecrement: () => r("away", !1)
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
] }) : /* @__PURE__ */ e.jsxs(a, { sx: o.container, children: [
|
|
138
|
+
/* @__PURE__ */ e.jsx(
|
|
139
|
+
S,
|
|
140
|
+
{
|
|
141
|
+
team: t.matchModel.homeTeam,
|
|
142
|
+
isHome: !0,
|
|
143
|
+
styles: o,
|
|
144
|
+
showTeamLabels: y
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ e.jsxs(a, { sx: o.scoreContainer, children: [
|
|
148
|
+
/* @__PURE__ */ e.jsx(
|
|
149
|
+
f,
|
|
150
|
+
{
|
|
151
|
+
score: x,
|
|
152
|
+
onIncrement: () => r("home", !0),
|
|
153
|
+
onDecrement: () => r("home", !1)
|
|
154
|
+
}
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ e.jsx(c, { level: "h2", sx: o.separator, children: ":" }),
|
|
157
|
+
/* @__PURE__ */ e.jsx(
|
|
158
|
+
f,
|
|
159
|
+
{
|
|
160
|
+
score: h,
|
|
161
|
+
onIncrement: () => r("away", !0),
|
|
162
|
+
onDecrement: () => r("away", !1)
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ e.jsx(
|
|
167
|
+
S,
|
|
168
|
+
{
|
|
169
|
+
team: t.matchModel.awayTeam,
|
|
170
|
+
isHome: !1,
|
|
171
|
+
styles: o,
|
|
172
|
+
showTeamLabels: y
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
] });
|
|
176
|
+
};
|
|
177
|
+
export {
|
|
178
|
+
se as default
|
|
179
|
+
};
|
package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelector.styles.js
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { createTeamLogoStyles as t } from "../shared.styles.js";
|
|
2
|
+
const n = (e) => {
|
|
3
|
+
const i = t({
|
|
4
|
+
spacingScale: e.spacingScale,
|
|
5
|
+
neutralSoftBg: e.neutralSoftBg,
|
|
6
|
+
neutralPlainHoverBg: e.neutralPlainHoverBg,
|
|
7
|
+
isMobile: e.isMobile
|
|
8
|
+
});
|
|
9
|
+
return {
|
|
10
|
+
// Default (non-extra-small) layout: 3-column grid for true centering
|
|
11
|
+
container: {
|
|
12
|
+
display: "grid",
|
|
13
|
+
gridTemplateColumns: "1fr auto 1fr",
|
|
14
|
+
alignItems: "start",
|
|
15
|
+
// Changed from "center" to "start" for consistent logo alignment
|
|
16
|
+
pt: e.isMobile ? e.spacingScale.md : e.spacingScale.lg,
|
|
17
|
+
width: "100%"
|
|
18
|
+
},
|
|
19
|
+
// Extra-small layout container: two stacked rows
|
|
20
|
+
xsContainer: {
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
gap: e.spacingScale.sm,
|
|
24
|
+
pt: e.spacingScale.md,
|
|
25
|
+
width: "100%"
|
|
26
|
+
},
|
|
27
|
+
// One row: left team info + right score control
|
|
28
|
+
xsRow: {
|
|
29
|
+
display: "flex",
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
justifyContent: "space-between",
|
|
32
|
+
gap: e.spacingScale.sm,
|
|
33
|
+
width: "100%"
|
|
34
|
+
},
|
|
35
|
+
// Left side: logo + team name inline
|
|
36
|
+
xsTeamInfo: {
|
|
37
|
+
display: "flex",
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
gap: e.spacingScale.sm,
|
|
40
|
+
minWidth: 0,
|
|
41
|
+
flex: 1
|
|
42
|
+
},
|
|
43
|
+
teamColumn: {
|
|
44
|
+
display: "flex",
|
|
45
|
+
flexDirection: "column",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
gap: e.spacingScale.xs,
|
|
48
|
+
minHeight: "80px"
|
|
49
|
+
// Ensure consistent minimum height for alignment
|
|
50
|
+
},
|
|
51
|
+
// Grid positioning for home team (first column, right-aligned)
|
|
52
|
+
homeTeamColumn: {
|
|
53
|
+
display: "flex",
|
|
54
|
+
flexDirection: "column",
|
|
55
|
+
alignItems: "center",
|
|
56
|
+
gap: e.spacingScale.xs,
|
|
57
|
+
justifySelf: "end",
|
|
58
|
+
minHeight: "80px"
|
|
59
|
+
// Ensure consistent minimum height for alignment
|
|
60
|
+
},
|
|
61
|
+
// Grid positioning for away team (third column, left-aligned)
|
|
62
|
+
awayTeamColumn: {
|
|
63
|
+
display: "flex",
|
|
64
|
+
flexDirection: "column",
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
gap: e.spacingScale.xs,
|
|
67
|
+
justifySelf: "start",
|
|
68
|
+
minHeight: "80px"
|
|
69
|
+
// Ensure consistent minimum height for alignment
|
|
70
|
+
},
|
|
71
|
+
teamName: {
|
|
72
|
+
fontFamily: e.fontFamilySecondary,
|
|
73
|
+
color: e.textPrimary,
|
|
74
|
+
fontSize: e.isMobile ? "0.75em" : "0.875em",
|
|
75
|
+
fontWeight: 600,
|
|
76
|
+
textAlign: "center",
|
|
77
|
+
maxWidth: "120px",
|
|
78
|
+
wordWrap: "break-word",
|
|
79
|
+
lineHeight: 1.2
|
|
80
|
+
},
|
|
81
|
+
teamNameInline: {
|
|
82
|
+
fontFamily: e.fontFamilySecondary,
|
|
83
|
+
color: e.textPrimary,
|
|
84
|
+
fontSize: "0.75em",
|
|
85
|
+
fontWeight: 600,
|
|
86
|
+
textAlign: "left",
|
|
87
|
+
overflow: "hidden"
|
|
88
|
+
},
|
|
89
|
+
teamLogo: i.base,
|
|
90
|
+
// Extra-small: smaller logo with no background
|
|
91
|
+
xsTeamLogo: {
|
|
92
|
+
width: "24px",
|
|
93
|
+
height: "24px",
|
|
94
|
+
backgroundColor: "transparent",
|
|
95
|
+
boxShadow: "none",
|
|
96
|
+
display: "flex",
|
|
97
|
+
alignItems: "center",
|
|
98
|
+
justifyContent: "center",
|
|
99
|
+
padding: 0,
|
|
100
|
+
flexShrink: 0
|
|
101
|
+
},
|
|
102
|
+
teamLogoText: {
|
|
103
|
+
fontFamily: e.fontFamilySecondary,
|
|
104
|
+
color: e.textSecondary,
|
|
105
|
+
fontSize: e.isMobile ? "0.625em" : "0.75em",
|
|
106
|
+
fontWeight: 600,
|
|
107
|
+
textAlign: "center"
|
|
108
|
+
},
|
|
109
|
+
scoreInputContainer: {
|
|
110
|
+
display: "flex",
|
|
111
|
+
flexDirection: "column",
|
|
112
|
+
alignItems: "center",
|
|
113
|
+
gap: e.spacingScale["2xs"]
|
|
114
|
+
},
|
|
115
|
+
// Extra-small: horizontal score input row
|
|
116
|
+
scoreInputRow: {
|
|
117
|
+
display: "flex",
|
|
118
|
+
flexDirection: "row",
|
|
119
|
+
alignItems: "center",
|
|
120
|
+
gap: e.spacingScale["2xs"]
|
|
121
|
+
},
|
|
122
|
+
scoreButton: {
|
|
123
|
+
borderRadius: e.borderRadius.sm,
|
|
124
|
+
minHeight: e.isMobile ? "24px" : "28px",
|
|
125
|
+
minWidth: e.isMobile ? "24px" : "28px",
|
|
126
|
+
borderColor: e.neutralOutlinedBorder,
|
|
127
|
+
color: e.textPrimary,
|
|
128
|
+
"&:hover": {
|
|
129
|
+
backgroundColor: e.neutralPlainHoverBg,
|
|
130
|
+
color: e.textPrimary
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
scoreDisplay: {
|
|
134
|
+
fontFamily: e.fontFamilyPrimary,
|
|
135
|
+
fontWeight: 600,
|
|
136
|
+
fontSize: e.isMobile ? "1.25em" : "1.5em",
|
|
137
|
+
color: e.textPrimary,
|
|
138
|
+
minWidth: e.isMobile ? "1.5rem" : "1.75rem",
|
|
139
|
+
// Much more compact display
|
|
140
|
+
textAlign: "center",
|
|
141
|
+
bgcolor: e.neutralSoftBg,
|
|
142
|
+
borderRadius: e.borderRadius.sm,
|
|
143
|
+
padding: e.isMobile ? "4px 8px" : "6px 12px"
|
|
144
|
+
},
|
|
145
|
+
separator: {
|
|
146
|
+
fontFamily: e.fontFamilyPrimary,
|
|
147
|
+
fontWeight: 400,
|
|
148
|
+
fontSize: e.isMobile ? "1.25em" : "1.5em",
|
|
149
|
+
color: e.textSecondary
|
|
150
|
+
},
|
|
151
|
+
// Central score container with home score, separator, away score
|
|
152
|
+
scoreContainer: {
|
|
153
|
+
display: "flex",
|
|
154
|
+
alignItems: "center",
|
|
155
|
+
justifyContent: "center",
|
|
156
|
+
gap: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
157
|
+
mx: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
export {
|
|
162
|
+
n as createStyles
|
|
163
|
+
};
|
package/packages/match-quiz-play/src/components/Shared/Fixtures/CorrectScore/ScoreSelectorSplit.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { j as e } from "../../../../../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { memo as C, useState as p } from "react";
|
|
3
|
+
import { Box as s, Typography as S, IconButton as y } from "@mui/joy";
|
|
4
|
+
import { useColors as B, useCornerRadius as b, useFontFamily as v, useSpacingScale as I, isExtraSmall as M } from "../../../../../../common/src/functions/theme.js";
|
|
5
|
+
import "../../../../../../../node_modules/i18next/dist/esm/i18next.js";
|
|
6
|
+
import "../../../../../../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js";
|
|
7
|
+
import { useConstantContext as R } from "../../../../../../common/src/hooks/useConstantContext.js";
|
|
8
|
+
import "../../../../../../common/src/providers/ConstantsProvider.js";
|
|
9
|
+
import "../../../../../../common/src/providers/ContainerProvider.js";
|
|
10
|
+
import T from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowLeft.js";
|
|
11
|
+
import F from "../../../../../../../node_modules/@mui/icons-material/esm/KeyboardArrowRight.js";
|
|
12
|
+
import { createSplitStyles as z } from "./ScoreSelectorSplit.styles.js";
|
|
13
|
+
import { MatchQuizConstantsContext as A } from "../../../../providers/ConstantsProvider.js";
|
|
14
|
+
const u = C(({ team: o, score: a, onIncrement: x, onDecrement: i, styles: t, showTeamLabels: d }) => {
|
|
15
|
+
var r;
|
|
16
|
+
return /* @__PURE__ */ e.jsxs(s, { sx: t.row, children: [
|
|
17
|
+
/* @__PURE__ */ e.jsxs(s, { sx: t.teamInfo, children: [
|
|
18
|
+
/* @__PURE__ */ e.jsx(s, { sx: t.teamLogo, children: (r = o.assets) != null && r.logo ? /* @__PURE__ */ e.jsx(
|
|
19
|
+
"img",
|
|
20
|
+
{
|
|
21
|
+
src: o.assets.logo,
|
|
22
|
+
alt: o.name,
|
|
23
|
+
style: { width: "100%", height: "100%", objectFit: "contain" }
|
|
24
|
+
}
|
|
25
|
+
) : /* @__PURE__ */ e.jsx(S, { level: "body-sm", sx: t.teamLogoText, children: o.name }) }),
|
|
26
|
+
d && /* @__PURE__ */ e.jsx(S, { level: "body-sm", sx: t.teamName, children: o.name })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ e.jsxs(s, { sx: t.scoreInputRow, children: [
|
|
29
|
+
/* @__PURE__ */ e.jsx(
|
|
30
|
+
y,
|
|
31
|
+
{
|
|
32
|
+
size: "sm",
|
|
33
|
+
variant: "plain",
|
|
34
|
+
onClick: i,
|
|
35
|
+
sx: t.scoreButton,
|
|
36
|
+
disabled: a === 0,
|
|
37
|
+
children: /* @__PURE__ */ e.jsx(T, { fontSize: "small" })
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ e.jsx(S, { level: "h2", sx: t.scoreDisplay, children: a }),
|
|
41
|
+
/* @__PURE__ */ e.jsx(
|
|
42
|
+
y,
|
|
43
|
+
{
|
|
44
|
+
size: "sm",
|
|
45
|
+
variant: "plain",
|
|
46
|
+
onClick: x,
|
|
47
|
+
sx: t.scoreButton,
|
|
48
|
+
children: /* @__PURE__ */ e.jsx(F, { fontSize: "small" })
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] })
|
|
52
|
+
] });
|
|
53
|
+
});
|
|
54
|
+
u.displayName = "TeamRow";
|
|
55
|
+
const U = (o) => {
|
|
56
|
+
const a = B(), x = b(), i = v(), t = I(), d = M(), { showTeamLabels: r } = R(A), [m, j] = p(o.initialHomeScore ?? 0), [c, g] = p(o.initialAwayScore ?? 0), h = z({
|
|
57
|
+
spacingScale: t,
|
|
58
|
+
borderRadius: x,
|
|
59
|
+
fontFamilyPrimary: i.primary,
|
|
60
|
+
fontFamilySecondary: i.secondary,
|
|
61
|
+
textPrimary: a.textPrimary,
|
|
62
|
+
textSecondary: a.textSecondary,
|
|
63
|
+
neutralSoftBg: a.palette.neutral.softBg,
|
|
64
|
+
neutralOutlinedBorder: a.palette.neutral.outlinedBorder,
|
|
65
|
+
neutralPlainHoverBg: a.palette.neutral.plainHoverBg,
|
|
66
|
+
isExtraSmall: d
|
|
67
|
+
}), l = (w, f) => {
|
|
68
|
+
if (w === "home") {
|
|
69
|
+
const n = f ? Math.min(m + 1, 99) : Math.max(m - 1, 0);
|
|
70
|
+
j(n), o.onScoreChange(n, c);
|
|
71
|
+
} else {
|
|
72
|
+
const n = f ? Math.min(c + 1, 99) : Math.max(c - 1, 0);
|
|
73
|
+
g(n), o.onScoreChange(m, n);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ e.jsxs(s, { sx: h.container, children: [
|
|
77
|
+
/* @__PURE__ */ e.jsx(
|
|
78
|
+
u,
|
|
79
|
+
{
|
|
80
|
+
team: o.matchModel.homeTeam,
|
|
81
|
+
score: m,
|
|
82
|
+
onIncrement: () => l("home", !0),
|
|
83
|
+
onDecrement: () => l("home", !1),
|
|
84
|
+
styles: h,
|
|
85
|
+
showTeamLabels: r
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ e.jsx(
|
|
89
|
+
u,
|
|
90
|
+
{
|
|
91
|
+
team: o.matchModel.awayTeam,
|
|
92
|
+
score: c,
|
|
93
|
+
onIncrement: () => l("away", !0),
|
|
94
|
+
onDecrement: () => l("away", !1),
|
|
95
|
+
styles: h,
|
|
96
|
+
showTeamLabels: r
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] });
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
U as default
|
|
103
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const t = (e) => ({
|
|
2
|
+
// Split variant layout container: two stacked rows
|
|
3
|
+
container: {
|
|
4
|
+
display: "flex",
|
|
5
|
+
flexDirection: "column",
|
|
6
|
+
gap: e.spacingScale.sm,
|
|
7
|
+
pt: e.spacingScale.md,
|
|
8
|
+
width: "100%"
|
|
9
|
+
},
|
|
10
|
+
// One row: left team info + right score control
|
|
11
|
+
row: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "space-between",
|
|
15
|
+
gap: e.spacingScale.sm,
|
|
16
|
+
width: "100%"
|
|
17
|
+
},
|
|
18
|
+
// Left side: logo + team name inline
|
|
19
|
+
teamInfo: {
|
|
20
|
+
display: "flex",
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
gap: e.spacingScale.sm,
|
|
23
|
+
minWidth: 0,
|
|
24
|
+
flex: 1
|
|
25
|
+
},
|
|
26
|
+
teamName: {
|
|
27
|
+
fontFamily: e.fontFamilySecondary,
|
|
28
|
+
color: e.textPrimary,
|
|
29
|
+
// Keep desktop font size for split variant, only use smaller on extra small
|
|
30
|
+
fontSize: e.isExtraSmall ? "0.75em" : "0.875em",
|
|
31
|
+
fontWeight: 600,
|
|
32
|
+
textAlign: "left",
|
|
33
|
+
overflow: "hidden"
|
|
34
|
+
},
|
|
35
|
+
// Team logo - use smaller size like mobile but keep desktop size for non-extra-small
|
|
36
|
+
teamLogo: {
|
|
37
|
+
width: e.isExtraSmall ? "24px" : "32px",
|
|
38
|
+
height: e.isExtraSmall ? "24px" : "32px",
|
|
39
|
+
backgroundColor: "transparent",
|
|
40
|
+
boxShadow: "none",
|
|
41
|
+
display: "flex",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
justifyContent: "center",
|
|
44
|
+
padding: 0,
|
|
45
|
+
flexShrink: 0
|
|
46
|
+
},
|
|
47
|
+
teamLogoText: {
|
|
48
|
+
fontFamily: e.fontFamilySecondary,
|
|
49
|
+
color: e.textSecondary,
|
|
50
|
+
// Keep desktop font size for split variant, only use smaller on extra small
|
|
51
|
+
fontSize: e.isExtraSmall ? "0.625em" : "0.75em",
|
|
52
|
+
fontWeight: 600,
|
|
53
|
+
textAlign: "center"
|
|
54
|
+
},
|
|
55
|
+
// Horizontal score input row
|
|
56
|
+
scoreInputRow: {
|
|
57
|
+
display: "flex",
|
|
58
|
+
flexDirection: "row",
|
|
59
|
+
alignItems: "center"
|
|
60
|
+
},
|
|
61
|
+
scoreButton: {
|
|
62
|
+
borderRadius: e.borderRadius.sm,
|
|
63
|
+
// Keep desktop size for split variant, only use smaller on extra small
|
|
64
|
+
minHeight: e.isExtraSmall ? "28px" : "32px",
|
|
65
|
+
minWidth: e.isExtraSmall ? "28px" : "32px",
|
|
66
|
+
borderColor: e.neutralOutlinedBorder,
|
|
67
|
+
color: e.textPrimary,
|
|
68
|
+
"&:hover": {
|
|
69
|
+
backgroundColor: e.neutralPlainHoverBg
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
scoreDisplay: {
|
|
73
|
+
fontFamily: e.fontFamilyPrimary,
|
|
74
|
+
fontWeight: 600,
|
|
75
|
+
// Keep desktop font size for split variant, only use smaller on extra small
|
|
76
|
+
fontSize: e.isExtraSmall ? "1.5em" : "2em",
|
|
77
|
+
color: e.textPrimary,
|
|
78
|
+
minWidth: e.isExtraSmall ? "2.5rem" : "3rem",
|
|
79
|
+
textAlign: "center",
|
|
80
|
+
bgcolor: e.neutralSoftBg,
|
|
81
|
+
borderRadius: e.borderRadius.sm
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
t as createSplitStyles
|
|
86
|
+
};
|