@streamlayer/react-ui 1.26.0 → 1.27.0
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/lib/app/app/Advertisement/index.d.ts +1 -0
- package/lib/app/app/Advertisement/index.js +125 -92
- package/lib/app/app/Banner/index.d.ts +6 -0
- package/lib/app/app/Banner/index.js +6 -0
- package/lib/app/app/Features/Gamification/Question.d.ts +4 -0
- package/lib/app/app/Features/Gamification/Question.js +79 -50
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.d.ts +6 -0
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.js +46 -0
- package/lib/app/app/Features/Gamification/Tabs.js +12 -12
- package/lib/app/app/Features/Gamification/index.d.ts +3 -0
- package/lib/app/app/Features/Gamification/index.js +56 -52
- package/lib/app/app/Features/index.d.ts +1 -0
- package/lib/app/app/Features/index.js +6 -4
- package/lib/app/app/InApp/index.d.ts +1 -0
- package/lib/app/app/InApp/index.js +44 -17
- package/lib/app/app/Insight/index.d.ts +3 -0
- package/lib/app/app/Insight/index.js +33 -30
- package/lib/app/app/Layout/index.d.ts +17 -0
- package/lib/app/app/Layout/index.js +105 -0
- package/lib/app/app/Layout/styles.d.ts +12 -0
- package/lib/app/app/Layout/styles.js +64 -0
- package/lib/app/app/Notifications/Onboarding/Notification/styles.d.ts +7 -1
- package/lib/app/app/Notifications/styles.d.ts +18 -2
- package/lib/app/app/index.d.ts +1 -0
- package/lib/app/app/index.js +91 -85
- package/lib/app/app/story/index.js +56 -58
- package/lib/app/app/story/promotion/index.js +31 -36
- package/lib/app/app/story/promotion/styles.d.ts +3 -1
- package/lib/app/app/story/promotion/video.js +63 -81
- package/lib/app/app/story/promotion-notification/styles.d.ts +3 -1
- package/lib/app/app/story/styles.d.ts +5 -1
- package/lib/app/app/story/styles.js +36 -16
- package/lib/app/app/story/video.d.ts +5 -1
- package/lib/app/app/story/video.js +70 -33
- package/lib/app/app/useApp.d.ts +1 -2
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +7 -1
- package/lib/app/masters/BetPack/BetPackContent/index.js +175 -187
- package/lib/app/masters/BetPack/BetPackContent/styles.d.ts +84 -84
- package/lib/app/masters/BetPack/BetPackOverlay/styles.d.ts +14 -2
- package/lib/app/masters/Features/Gamification/Question.js +19 -17
- package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +7 -1
- package/lib/app/masters/Notifications/styles.d.ts +18 -2
- package/lib/app/masters/masters.d.ts +4 -1
- package/lib/app/masters/useMastersApp.d.ts +1 -1
- package/lib/app/tgl/styles.d.ts +3 -1
- package/lib/app/{tvos → webos/Advertisement}/AdvertisementUI.d.ts +7 -1
- package/lib/app/webos/Advertisement/AdvertisementUI.js +63 -0
- package/lib/app/{tvos/Advertisement.d.ts → webos/Advertisement/index.d.ts} +3 -1
- package/lib/app/webos/Advertisement/index.js +119 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +15 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +93 -0
- package/lib/app/webos/ExposedPauseAd/styles.d.ts +12 -0
- package/lib/app/webos/ExposedPauseAd/styles.js +64 -0
- package/lib/app/webos/Question/index.d.ts +9 -0
- package/lib/app/webos/Question/index.js +56 -0
- package/lib/app/webos/index.d.ts +24 -0
- package/lib/app/webos/index.js +65 -0
- package/lib/app/webos/story.d.ts +9 -0
- package/lib/app/webos/story.js +74 -0
- package/lib/app/webos/styles.js +4 -0
- package/lib/app/webos/ui/Layout/index.js +78 -0
- package/lib/app/{tvos → webos}/ui/Layout/styles.js +25 -25
- package/lib/app/webos/ui/Sidebar/PromoAction.d.ts +7 -0
- package/lib/app/webos/ui/Sidebar/PromoAction.js +63 -0
- package/lib/app/{tvos → webos}/ui/Sidebar/index.d.ts +6 -0
- package/lib/app/webos/ui/Sidebar/index.js +176 -0
- package/lib/app/{tvos → webos}/ui/Sidebar/styles.d.ts +7 -3
- package/lib/app/{tvos → webos}/ui/Sidebar/styles.js +175 -170
- package/lib/app/webos/ui/insight/index.d.ts +9 -0
- package/lib/app/webos/ui/insight/index.js +100 -0
- package/lib/app/webos/ui/insight/styles.d.ts +12 -0
- package/lib/app/webos/ui/insight/styles.js +51 -0
- package/lib/app/webos/useTvButton.d.ts +9 -0
- package/lib/app/webos/useTvButton.js +23 -0
- package/lib/assets/style.css +1 -1
- package/lib/hooks/analytics.d.ts +14 -0
- package/lib/hooks/showIn.d.ts +9 -0
- package/lib/hooks/useKeyboardNavigation.d.ts +15 -0
- package/lib/hooks/useKeyboardNavigation.js +74 -0
- package/lib/index-T1iiS0ZO.js +17 -0
- package/lib/ui/advertisement/banner/index.d.ts +3 -0
- package/lib/ui/advertisement/banner/index.js +29 -17
- package/lib/ui/advertisement/banner/styles.d.ts +5 -1
- package/lib/ui/advertisement/index.d.ts +4 -1
- package/lib/ui/advertisement/index.js +56 -44
- package/lib/ui/advertisement/notification/index.d.ts +2 -0
- package/lib/ui/advertisement/notification/index.js +50 -34
- package/lib/ui/advertisement/notification/lower-third/index.d.ts +2 -0
- package/lib/ui/advertisement/notification/lower-third/index.js +42 -26
- package/lib/ui/advertisement/notification/lower-third/styles.d.ts +11 -0
- package/lib/ui/advertisement/notification/lower-third/styles.js +39 -24
- package/lib/ui/advertisement/notification/styles.d.ts +18 -1
- package/lib/ui/advertisement/notification/styles.js +48 -33
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +2 -2
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +1 -1
- package/lib/ui/advertisement/overlay/index.d.ts +4 -1
- package/lib/ui/advertisement/overlay/index.js +135 -77
- package/lib/ui/gamification/detail/header/index.d.ts +2 -0
- package/lib/ui/gamification/detail/header/index.js +19 -16
- package/lib/ui/gamification/detail/header/styles.d.ts +15 -3
- package/lib/ui/gamification/detail/header/styles.js +1 -1
- package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -0
- package/lib/ui/gamification/detail/sponsor/index.js +25 -13
- package/lib/ui/gamification/invite-link/styles.d.ts +14 -2
- package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +14 -2
- package/lib/ui/gamification/onboarding/styles.d.ts +10 -2
- package/lib/ui/gamification/points/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +48 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.js +94 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +99 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.d.ts +42 -0
- package/lib/ui/gamification/question/inapp/notification/AdNotification/styles.js +117 -0
- package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.js +9 -8
- package/lib/ui/gamification/question/inapp/notification/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/onboarding/index.js +12 -12
- package/lib/ui/gamification/question/inapp/onboarding/styles.d.ts +18 -2
- package/lib/ui/gamification/question/inapp/prediction-result/frames/content.js +9 -9
- package/lib/ui/gamification/question/inapp/prediction-result/frames/styles.d.ts +7 -1
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.d.ts +5 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/content.js +49 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.d.ts +12 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.js +56 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/lines.js +34 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step1.js +19 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.d.ts +4 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step2.js +34 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.d.ts +7 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/step3.js +43 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/styles.js +20 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +10 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/index.js +20 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.d.ts +11 -0
- package/lib/ui/gamification/question/inapp/prediction-result-ad/styles.js +34 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +38 -5
- package/lib/ui/gamification/question/notification/styles.d.ts +14 -2
- package/lib/ui/gamification/question/styles.d.ts +26 -4
- package/lib/ui/gamification/vote/alert/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/feedback/styles.d.ts +19 -2
- package/lib/ui/gamification/vote/feedbackAlert/index.d.ts +9 -0
- package/lib/ui/gamification/vote/feedbackAlert/index.js +11 -0
- package/lib/ui/gamification/vote/feedbackAlert/styles.d.ts +11 -0
- package/lib/ui/gamification/vote/feedbackAlert/styles.js +30 -0
- package/lib/ui/gamification/vote/index.d.ts +3 -1
- package/lib/ui/gamification/vote/index.js +160 -130
- package/lib/ui/gamification/vote/insight-details/index.js +8 -7
- package/lib/ui/gamification/vote/insight-details/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/styles.d.ts +29 -4
- package/lib/ui/gamification/vote/vote-option/index.d.ts +3 -0
- package/lib/ui/gamification/vote/vote-option/index.js +72 -64
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +7 -1
- package/lib/ui/gamification/vote/win-bar/styles.d.ts +19 -2
- package/lib/ui/icons/index.d.ts +1 -0
- package/lib/ui/icons/index.js +80 -79
- package/lib/ui/modal/index.js +12 -17
- package/lib/ui/questions/insight/index.d.ts +4 -1
- package/lib/ui/questions/insight/index.js +29 -26
- package/lib/ui/questions/twitter/account/styles.d.ts +7 -1
- package/lib/ui/questions/twitter/index.d.ts +1 -0
- package/lib/ui/questions/twitter/index.js +27 -19
- package/lib/ui/theme/constants.d.ts +2 -0
- package/lib/ui/theme/constants.js +2 -0
- package/lib/ui/theme/masters-theme.js +1 -0
- package/lib/ui/theme/utils.d.ts +10 -0
- package/lib/ui/theme/utils.js +77 -0
- package/lib/ui/video-player/index.d.ts +10 -2
- package/lib/ui/video-player/index.js +189 -110
- package/lib/ui/video-player/styles.d.ts +36 -0
- package/lib/ui/video-player/styles.js +59 -11
- package/lib/utils/common.d.ts +6 -0
- package/lib/utils/createDemo.d.ts +12 -0
- package/lib/utils/debug/components/bypassLogin.d.ts +6 -0
- package/lib/utils/debug/components/copyLogs.d.ts +1 -0
- package/lib/utils/debug/components/developer.d.ts +14 -0
- package/lib/utils/debug/components/envToggle.d.ts +6 -0
- package/lib/utils/debug/components/eventInput.d.ts +8 -0
- package/lib/utils/debug/components/sdkKey.d.ts +6 -0
- package/lib/utils/debug/components/styles.d.ts +1 -0
- package/lib/utils/debug/index.d.ts +36 -0
- package/lib/utils/debug/storage.d.ts +14 -0
- package/lib/utils/decorators/container.d.ts +6 -0
- package/lib/utils/decorators/container.js +5 -5
- package/lib/utils/decorators/masters.d.ts +2 -0
- package/lib/utils/decorators/styles.d.ts +2 -0
- package/lib/utils/login.d.ts +3 -0
- package/lib/utils/storage.d.ts +14 -0
- package/package.json +27 -20
- package/lib/app/tvos/Advertisement.js +0 -88
- package/lib/app/tvos/AdvertisementUI.js +0 -40
- package/lib/app/tvos/index.d.ts +0 -16
- package/lib/app/tvos/index.js +0 -23
- package/lib/app/tvos/story.d.ts +0 -6
- package/lib/app/tvos/story.js +0 -34
- package/lib/app/tvos/styles.js +0 -4
- package/lib/app/tvos/ui/Layout/index.js +0 -76
- package/lib/app/tvos/ui/Sidebar/PromoAction.d.ts +0 -2
- package/lib/app/tvos/ui/Sidebar/PromoAction.js +0 -62
- package/lib/app/tvos/ui/Sidebar/index.js +0 -114
- /package/lib/app/{tvos → webos}/styles.d.ts +0 -0
- /package/lib/app/{tvos → webos}/ui/Layout/index.d.ts +0 -0
- /package/lib/app/{tvos → webos}/ui/Layout/styles.d.ts +0 -0
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
-
export declare const QuestionScrollContainer:
|
|
2
|
+
export declare const QuestionScrollContainer: {
|
|
3
|
+
__wyw_meta: unknown;
|
|
4
|
+
} & import('react').FunctionComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
}>;
|
|
3
7
|
export declare const TopShadow: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
8
|
export declare const BottomShadow: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
9
|
export declare const SponsorLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -7,7 +11,28 @@ export declare const Content: import('@linaria/react').StyledComponent<import('r
|
|
|
7
11
|
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
12
|
export declare const OptionsWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
13
|
export declare const Options: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
|
-
export declare const AlertContainer:
|
|
14
|
+
export declare const AlertContainer: {
|
|
15
|
+
__wyw_meta: unknown;
|
|
16
|
+
} & import('react').FC<{
|
|
17
|
+
children: React.ReactNode | React.ReactNode[];
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
className?: string;
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
hiding?: boolean;
|
|
22
|
+
onAnimationEnd?: React.AnimationEventHandler;
|
|
23
|
+
}>;
|
|
11
24
|
export declare const EarlyPrediction: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
12
|
-
export declare const EarlyPredictionIcon:
|
|
13
|
-
|
|
25
|
+
export declare const EarlyPredictionIcon: {
|
|
26
|
+
__wyw_meta: unknown;
|
|
27
|
+
} & import('react').FC<{
|
|
28
|
+
name: keyof typeof import('../../icons').icons;
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
className?: string;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const SponsorIcon: {
|
|
33
|
+
__wyw_meta: unknown;
|
|
34
|
+
} & import('react').FC<{
|
|
35
|
+
name: keyof typeof import('../../icons').icons;
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
className?: string;
|
|
38
|
+
}>;
|
|
@@ -3,6 +3,7 @@ export type VotingOptionProps = ExtendedQuestionAnswer & {
|
|
|
3
3
|
questionVoted: boolean;
|
|
4
4
|
youSelected: boolean;
|
|
5
5
|
isLoading: boolean;
|
|
6
|
+
firstOption: boolean;
|
|
6
7
|
hasCorrectAnswer?: boolean;
|
|
7
8
|
questionType: QuestionType;
|
|
8
9
|
imageMode?: QuestionImages;
|
|
@@ -15,5 +16,7 @@ export type VotingOptionProps = ExtendedQuestionAnswer & {
|
|
|
15
16
|
markThatVoted: (votedAfterQuestionClosed: boolean) => void;
|
|
16
17
|
onPercentsAnimated?: () => void;
|
|
17
18
|
isEarlyPrediction?: boolean;
|
|
19
|
+
isAd?: boolean;
|
|
20
|
+
webos?: boolean;
|
|
18
21
|
};
|
|
19
22
|
export declare const VotingOption: React.FC<VotingOptionProps>;
|
|
@@ -1,98 +1,106 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { withFocusable as U } from "../../../../app/webos/useTvButton.js";
|
|
3
|
+
import { useState as V, useLayoutEffect as $ } from "react";
|
|
4
|
+
import { QuestionImages as c, QuestionType as o, QuestionStatus as O } from "@streamlayer/sdk-web-types";
|
|
5
|
+
import { AnimatedCounter as M } from "../../../animated-counter/index.js";
|
|
6
|
+
import { IconDefault as z, IconContainer as G, IconWrap as H, IconCircle as J, ButtonPctWrap as K, ButtonPct as X, ButtonBody as Y, Title as Z, PtsWrap as _, Pts as q, Indicators as tt, CheckIcon as et, Percentage as nt, ButtonContainer as it } from "./styles.js";
|
|
6
7
|
const E = {
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
},
|
|
13
|
-
if (t === o.POLL &&
|
|
8
|
+
[c.CENTERED]: (t) => /* @__PURE__ */ e(z, { "data-testid": "vote-icon", alt: "option-icon", src: t }),
|
|
9
|
+
[c.TRANSPARENT]: (t) => /* @__PURE__ */ e(G, { "data-testid": "vote-icon", children: /* @__PURE__ */ e(H, { style: { backgroundImage: `url(${t})` } }) }),
|
|
10
|
+
[c.ROUNDED]: (t) => /* @__PURE__ */ e(J, { "data-testid": "vote-icon", alt: "option-icon", src: t }),
|
|
11
|
+
[c.NONE]: () => null,
|
|
12
|
+
[c.UNSET]: () => null
|
|
13
|
+
}, rt = ({ questionType: t, hasCorrectAnswer: a, correct: n, youVoted: i, questionVoted: r }) => {
|
|
14
|
+
if (t === o.POLL && i)
|
|
14
15
|
return "voted";
|
|
15
16
|
if (t === o.PREDICTION) {
|
|
16
|
-
if (!a &&
|
|
17
|
-
return
|
|
18
|
-
if (a &&
|
|
19
|
-
return
|
|
20
|
-
if (
|
|
17
|
+
if (!a && r)
|
|
18
|
+
return i ? "voted" : "unset";
|
|
19
|
+
if (a && r)
|
|
20
|
+
return i ? n ? "correct" : "incorrect" : "unset";
|
|
21
|
+
if (i)
|
|
21
22
|
return "correct";
|
|
22
23
|
}
|
|
23
|
-
return t === o.TRIVIA &&
|
|
24
|
-
},
|
|
24
|
+
return t === o.TRIVIA && r && i ? n ? "correct" : "incorrect" : "unset";
|
|
25
|
+
}, ot = ({
|
|
25
26
|
questionType: t,
|
|
26
27
|
questionVoted: a,
|
|
27
28
|
correct: n,
|
|
28
|
-
hasCorrectAnswer:
|
|
29
|
-
questionStatus:
|
|
30
|
-
}) => t === o.TRIVIA ? a && n : t === o.PREDICTION ? a && n &&
|
|
29
|
+
hasCorrectAnswer: i,
|
|
30
|
+
questionStatus: r
|
|
31
|
+
}) => t === o.TRIVIA ? a && n : t === o.PREDICTION ? a && n && i || r === O.RESOLVED && n : !1, at = U(it), mt = (t) => {
|
|
31
32
|
var N;
|
|
32
33
|
const {
|
|
33
34
|
// option props
|
|
34
35
|
id: a,
|
|
35
36
|
icon: n,
|
|
36
|
-
text:
|
|
37
|
-
percentageDecimal:
|
|
38
|
-
points:
|
|
37
|
+
text: i,
|
|
38
|
+
percentageDecimal: r,
|
|
39
|
+
points: w,
|
|
39
40
|
// extra props
|
|
40
|
-
onVote:
|
|
41
|
+
onVote: D,
|
|
41
42
|
markThatVoted: g,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
firstOption: k,
|
|
44
|
+
onPercentsAnimated: l,
|
|
45
|
+
youSelected: P,
|
|
46
|
+
youVoted: v,
|
|
47
|
+
questionVoted: s,
|
|
48
|
+
imageMode: C,
|
|
49
|
+
answerTimeExpired: A,
|
|
50
|
+
questionStatus: p,
|
|
51
|
+
isLoading: B,
|
|
50
52
|
questionType: d,
|
|
51
|
-
correct:
|
|
52
|
-
hasCorrectAnswer:
|
|
53
|
+
correct: x,
|
|
54
|
+
hasCorrectAnswer: L,
|
|
53
55
|
marketClosed: f,
|
|
54
|
-
isEarlyPrediction:
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
isEarlyPrediction: b,
|
|
57
|
+
isAd: m,
|
|
58
|
+
webos: W
|
|
59
|
+
} = t, [F, R] = V(0), I = rt(t), Q = ot({ questionType: d, questionVoted: s, correct: x, hasCorrectAnswer: L, questionStatus: p }), h = f && d === o.PREDICTION, S = s || h, j = d === o.PREDICTION && !s && !f && !m, T = s && !P && I !== "incorrect" && !v;
|
|
60
|
+
return $(() => {
|
|
57
61
|
R(0), requestAnimationFrame(() => {
|
|
58
|
-
R(
|
|
62
|
+
R(r);
|
|
59
63
|
});
|
|
60
|
-
}, [
|
|
61
|
-
|
|
64
|
+
}, [r]), /* @__PURE__ */ u(
|
|
65
|
+
at,
|
|
62
66
|
{
|
|
63
67
|
value: a,
|
|
64
|
-
|
|
68
|
+
webos: W,
|
|
69
|
+
autoFocus: k,
|
|
70
|
+
"data-selected": P,
|
|
65
71
|
"data-answer-state": I,
|
|
66
|
-
disabled:
|
|
67
|
-
"data-is-not-checked":
|
|
72
|
+
disabled: s || B || A || h,
|
|
73
|
+
"data-is-not-checked": T,
|
|
68
74
|
"data-a": "intr",
|
|
69
|
-
onClick: (
|
|
75
|
+
onClick: (y) => {
|
|
70
76
|
g(
|
|
71
|
-
d === o.PREDICTION ? f :
|
|
72
|
-
),
|
|
77
|
+
d === o.PREDICTION ? f : p === O.RESOLVED
|
|
78
|
+
), D(y);
|
|
73
79
|
},
|
|
80
|
+
"data-is-ad": m,
|
|
74
81
|
children: [
|
|
75
|
-
/* @__PURE__ */ e(
|
|
76
|
-
|
|
82
|
+
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(
|
|
83
|
+
X,
|
|
77
84
|
{
|
|
78
85
|
"data-answer-state": I,
|
|
79
|
-
"data-is-not-checked":
|
|
80
|
-
style: { width: `${
|
|
86
|
+
"data-is-not-checked": T,
|
|
87
|
+
style: { width: `${S ? F : 0}%` },
|
|
81
88
|
onTransitionEnd: () => {
|
|
82
|
-
|
|
83
|
-
}
|
|
89
|
+
h || l == null || l();
|
|
90
|
+
},
|
|
91
|
+
"data-is-ad": m
|
|
84
92
|
}
|
|
85
93
|
) }),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
n &&
|
|
88
|
-
/* @__PURE__ */ e(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/* @__PURE__ */ e(
|
|
94
|
+
/* @__PURE__ */ u(Y, { "data-a": "intr", children: [
|
|
95
|
+
n && C && ((N = E[C]) == null ? void 0 : N.call(E, n)),
|
|
96
|
+
/* @__PURE__ */ e(Z, { "data-a": "intr", children: i }),
|
|
97
|
+
j && /* @__PURE__ */ u(_, { children: [
|
|
98
|
+
w,
|
|
99
|
+
/* @__PURE__ */ e(q, { children: "pts" })
|
|
92
100
|
] }),
|
|
93
|
-
|
|
94
|
-
Q && /* @__PURE__ */ e(
|
|
95
|
-
/* @__PURE__ */ e(
|
|
101
|
+
S && /* @__PURE__ */ u(tt, { children: [
|
|
102
|
+
Q && /* @__PURE__ */ e(et, { name: b ? "selectedBetPack" : "selected" }),
|
|
103
|
+
/* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(M, { value: r, suffix: "%" }) })
|
|
96
104
|
] })
|
|
97
105
|
] })
|
|
98
106
|
]
|
|
@@ -100,5 +108,5 @@ const E = {
|
|
|
100
108
|
);
|
|
101
109
|
};
|
|
102
110
|
export {
|
|
103
|
-
|
|
111
|
+
mt as VotingOption
|
|
104
112
|
};
|
|
@@ -20,4 +20,10 @@ export declare const Indicators: import('@linaria/react').StyledComponent<import
|
|
|
20
20
|
export declare const PtsWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
21
21
|
export declare const Pts: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
22
22
|
export declare const Percentage: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
23
|
-
export declare const CheckIcon:
|
|
23
|
+
export declare const CheckIcon: {
|
|
24
|
+
__wyw_meta: unknown;
|
|
25
|
+
} & import('react').FC<{
|
|
26
|
+
name: keyof typeof import('../../../icons').icons;
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
className?: string;
|
|
29
|
+
}>;
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
export declare const ShowInContainer:
|
|
1
|
+
export declare const ShowInContainer: {
|
|
2
|
+
__wyw_meta: unknown;
|
|
3
|
+
} & import('react').FC<{
|
|
4
|
+
children: React.ReactNode | React.ReactNode[];
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
className?: string;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
hiding?: boolean;
|
|
9
|
+
onAnimationEnd?: React.AnimationEventHandler;
|
|
10
|
+
} & {
|
|
11
|
+
animate?: boolean;
|
|
12
|
+
}>;
|
|
2
13
|
export declare const WinBarContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
14
|
export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
15
|
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const WinIcon:
|
|
16
|
+
export declare const WinIcon: {
|
|
17
|
+
__wyw_meta: unknown;
|
|
18
|
+
} & import('react').FC<{
|
|
19
|
+
name: keyof typeof import('../../../icons').icons;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
className?: string;
|
|
22
|
+
}>;
|
|
6
23
|
export declare const Points: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
24
|
export declare const PointsCount: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
8
25
|
export declare const PointsUnits: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
package/lib/ui/icons/index.d.ts
CHANGED