@streamlayer/react-ui 0.91.1 → 0.93.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/assets/style.css +1 -1
- package/lib/index-keh7OLCY.js +67 -0
- package/lib/index.js +5 -4
- package/lib/ui/app/Features/Gamification/Friends.d.ts +2 -1
- package/lib/ui/app/Features/Gamification/Friends.js +6 -6
- package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +3 -2
- package/lib/ui/app/Features/Gamification/Leaderboard.js +26 -24
- package/lib/ui/app/Features/Gamification/Question.js +1 -1
- package/lib/ui/app/Features/Gamification/Tabs.d.ts +7 -2
- package/lib/ui/app/Features/Gamification/Tabs.js +42 -31
- package/lib/ui/app/Features/Gamification/gamification-feature.js +5 -2
- package/lib/ui/app/Features/Gamification/index.d.ts +6 -2
- package/lib/ui/app/Features/Gamification/index.js +86 -45
- package/lib/ui/app/Features/index.d.ts +6 -2
- package/lib/ui/app/Features/index.js +13 -11
- package/lib/ui/app/Navigation/MastersNavigation/index.d.ts +3 -2
- package/lib/ui/app/Navigation/MastersNavigation/index.js +37 -31
- package/lib/ui/app/Navigation/index.js +6 -7
- package/lib/ui/app/Notifications/Onboarding/index.d.ts +2 -1
- package/lib/ui/app/Notifications/Onboarding/index.js +91 -73
- package/lib/ui/app/Notifications/index.d.ts +6 -2
- package/lib/ui/app/Notifications/index.js +120 -91
- package/lib/ui/app/Points/index.js +6 -5
- package/lib/ui/app/masters.d.ts +7 -0
- package/lib/ui/app/masters.js +73 -51
- package/lib/ui/app/styles.d.ts +1 -0
- package/lib/ui/app/styles.js +6 -1
- package/lib/ui/app/useClipboardCopy.d.ts +2 -1
- package/lib/ui/app/useImagesPreload.d.ts +4 -0
- package/lib/ui/app/useImagesPreload.js +23 -0
- package/lib/ui/app/useMastersApp.js +15 -14
- package/lib/ui/app/useSdkResponsive.d.ts +14 -0
- package/lib/ui/app/useSdkResponsive.js +46 -0
- package/lib/ui/app/useSdkScroll.d.ts +4 -1
- package/lib/ui/app/useSdkScroll.js +36 -85
- package/lib/ui/gamification/detail/header/index.js +11 -11
- package/lib/ui/gamification/detail/header/styles.d.ts +1 -1
- package/lib/ui/gamification/detail/header/styles.js +11 -11
- package/lib/ui/gamification/leaderboard/static.d.ts +2 -1
- package/lib/ui/gamification/onboarding/index.d.ts +5 -0
- package/lib/ui/gamification/onboarding/index.js +69 -42
- package/lib/ui/gamification/onboarding/invitingUser/index.d.ts +7 -0
- package/lib/ui/gamification/onboarding/invitingUser/index.js +16 -0
- package/lib/ui/gamification/onboarding/invitingUser/styles.d.ts +5 -0
- package/lib/ui/gamification/onboarding/invitingUser/styles.js +24 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +15 -13
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +9 -9
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +2 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +2 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.js +18 -12
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.d.ts +7 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.js +10 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.d.ts +5 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.js +24 -0
- package/lib/ui/gamification/points/index.js +5 -4
- package/lib/ui/gamification/question/insight/index.js +5 -5
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.js +17 -17
- package/lib/ui/gamification/question/notification/prediction-result/index.js +37 -39
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +1 -1
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +12 -12
- package/lib/ui/gamification/vote/index.js +55 -54
- package/lib/ui/gamification/vote/insight-details/index.js +1 -1
- package/lib/ui/gamification/vote/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/styles.js +17 -11
- package/lib/ui/gamification/vote/vote-option/index.js +62 -58
- package/lib/ui/gamification/vote/win-bar/index.d.ts +1 -0
- package/lib/ui/gamification/vote/win-bar/index.js +21 -20
- package/lib/ui/navigation/button/LeaderBoard.js +5 -6
- package/lib/ui/navigation/index.js +6 -7
- package/lib/ui/navigation/masters.d.ts +2 -1
- package/lib/ui/navigation/masters.js +9 -6
- package/lib/ui/questions/insight/index.d.ts +1 -1
- package/lib/ui/questions/insight/index.js +18 -25
- package/lib/ui/skeleton/index.d.ts +7 -0
- package/lib/ui/skeleton/index.js +7 -0
- package/lib/ui/skeleton/styles.d.ts +2 -0
- package/lib/ui/skeleton/styles.js +9 -0
- package/lib/ui/theme/breakpoints.d.ts +4 -1
- package/lib/ui/theme/breakpoints.js +24 -12
- package/lib/ui/theme/constants.d.ts +4 -0
- package/lib/ui/theme/constants.js +6 -2
- package/lib/ui/theme/index.js +4 -3
- package/lib/ui/theme/theme.js +29 -21
- package/lib/utils/createDemo.js +12 -13
- package/lib/utils/debug/components/copyLogs.js +10 -9
- package/lib/utils/decorators/container.js +4 -3
- package/package.json +18 -18
- package/lib/LeaderBoard_fzzlxb-w40geAFS.js +0 -1
- package/lib/index_ej4hfx-w40geAFS.js +0 -1
- package/lib/masters_m6itlr-w40geAFS.js +0 -1
- package/lib/utils/useStreamLayerApp.js +0 -25
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "./slides/onboarding-
|
|
1
|
+
import { jsx as t, jsxs as O } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c, useEffect as j, useMemo as H, useCallback as z } from "react";
|
|
3
|
+
import E from "react-virtualized-auto-sizer";
|
|
4
|
+
import { Skeleton as F } from "../../skeleton/index.js";
|
|
5
|
+
import { OnboardingInstructions as G } from "./slides/onboarding-instructions/index.js";
|
|
6
|
+
import { OnboardingInviteCard as M } from "./slides/onboarding-invite-card/index.js";
|
|
7
|
+
import { OnboardingRules as P } from "./slides/onboarding-rules/index.js";
|
|
8
|
+
import { OnboardingTerms as R } from "./slides/onboarding-terms/index.js";
|
|
9
|
+
import { Container as q, OnboardingHeader as J, CloseBtn as K, IconClose as Q, Content as U, OnboardingFooter as V, OnboardingActionBtn as W } from "./styles.js";
|
|
10
|
+
import "../../skeleton/styles.js";
|
|
9
11
|
import "@linaria/react";
|
|
12
|
+
import "./slides/onboarding-instructions/styles.js";
|
|
10
13
|
import "../../../useClipboardCopy-E5rEe6It.js";
|
|
11
14
|
import "../../../index-uEuzH3jr.js";
|
|
12
15
|
import "../copyNotification/index.js";
|
|
@@ -14,54 +17,78 @@ import "../../icons/index.js";
|
|
|
14
17
|
import "../copyNotification/styles.js";
|
|
15
18
|
import "./slides/onboarding-invite-card/styles.js";
|
|
16
19
|
import "./slides/onboarding-rules/styles.js";
|
|
20
|
+
import "./slides/onboarding-terms/styles.js";
|
|
17
21
|
import "../../button/index.js";
|
|
18
22
|
import "../../button/styles.js";
|
|
19
|
-
const
|
|
23
|
+
const m = {
|
|
20
24
|
steps: !1,
|
|
21
25
|
rules: !1,
|
|
22
26
|
inviteCard: !1
|
|
23
|
-
},
|
|
24
|
-
gamification:
|
|
27
|
+
}, bi = ({
|
|
28
|
+
gamification: S,
|
|
25
29
|
steps: i,
|
|
26
|
-
rules:
|
|
27
|
-
rulesBtnLabel:
|
|
28
|
-
rulesTitle:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
rules: r,
|
|
31
|
+
rulesBtnLabel: a,
|
|
32
|
+
rulesTitle: y,
|
|
33
|
+
termsTitle: s,
|
|
34
|
+
termsText: f,
|
|
35
|
+
primaryColor: g,
|
|
36
|
+
inviteLink: v,
|
|
37
|
+
socialLinks: T,
|
|
38
|
+
inviteCardTitle: k,
|
|
39
|
+
inviteCardSubtext: x,
|
|
40
|
+
inviteCardBtnLabel: h,
|
|
41
|
+
loading: u,
|
|
42
|
+
renderToNode: I,
|
|
43
|
+
onClose: N
|
|
36
44
|
}) => {
|
|
37
|
-
const [
|
|
38
|
-
|
|
39
|
-
i != null && i.length ?
|
|
45
|
+
const [e, b] = c(0), [l, p] = c(!1), [n, o] = c(m);
|
|
46
|
+
j(() => {
|
|
47
|
+
i != null && i.length ? o({ ...m, steps: !0 }) : r != null && r.length ? o({ ...m, rules: !0 }) : o({ ...m, inviteCard: !0 });
|
|
40
48
|
}, []);
|
|
41
|
-
const
|
|
42
|
-
i != null && i.length &&
|
|
43
|
-
}, [
|
|
44
|
-
await
|
|
49
|
+
const w = H(() => n.steps && e === 0 ? "Continue" : n.rules ? l || !a ? "Got it" : a : n.inviteCard ? h || "Play Now" : "Next", [n, e, l, a, h]), A = z(() => {
|
|
50
|
+
i != null && i.length && e < i.length - 1 ? b((d) => ++d) : r != null && r.length && n.steps ? o({ ...m, rules: !0 }) : n.rules && o({ ...m, inviteCard: !0 });
|
|
51
|
+
}, [e, i == null ? void 0 : i.length, r == null ? void 0 : r.length, n, b, o]), D = async () => {
|
|
52
|
+
n.inviteCard ? await S.onboardingStatus.submitInplay() : n.rules && l ? p(!1) : A();
|
|
45
53
|
};
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
n.steps && (i == null ? void 0 : i.length) && /* @__PURE__ */
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
return /* @__PURE__ */ t(E, { children: ({ width: d, height: C }) => /* @__PURE__ */ O(q, { style: { width: d, height: C, maxHeight: C }, children: [
|
|
55
|
+
/* @__PURE__ */ t(J, { children: /* @__PURE__ */ t(K, { onClick: N, children: /* @__PURE__ */ t(Q, { name: "icon-close-btn-gray" }) }) }),
|
|
56
|
+
/* @__PURE__ */ O(U, { children: [
|
|
57
|
+
n.steps && (i == null ? void 0 : i.length) && /* @__PURE__ */ t(
|
|
58
|
+
G,
|
|
59
|
+
{
|
|
60
|
+
loading: u,
|
|
61
|
+
stepsCount: i.length,
|
|
62
|
+
currentStep: e,
|
|
63
|
+
...i[e]
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
n.rules && !l && /* @__PURE__ */ t(
|
|
67
|
+
P,
|
|
68
|
+
{
|
|
69
|
+
rules: r,
|
|
70
|
+
rulesTitle: y,
|
|
71
|
+
termsText: f,
|
|
72
|
+
primaryColor: g,
|
|
73
|
+
openTerms: () => p(!0)
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
n.rules && l && /* @__PURE__ */ t(R, { termsTitle: s, termsText: f }),
|
|
77
|
+
n.inviteCard && /* @__PURE__ */ t(
|
|
78
|
+
M,
|
|
53
79
|
{
|
|
54
|
-
inviteLink:
|
|
55
|
-
inviteCardTitle:
|
|
56
|
-
inviteCardSubtext:
|
|
57
|
-
primaryColor:
|
|
58
|
-
socialLinks:
|
|
80
|
+
inviteLink: v,
|
|
81
|
+
inviteCardTitle: k,
|
|
82
|
+
inviteCardSubtext: x,
|
|
83
|
+
primaryColor: g,
|
|
84
|
+
socialLinks: T,
|
|
85
|
+
renderToNode: I
|
|
59
86
|
}
|
|
60
87
|
)
|
|
61
88
|
] }),
|
|
62
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ t(V, { children: /* @__PURE__ */ t(F, { loading: u, style: { width: "100%" }, children: /* @__PURE__ */ t(W, { onClick: D, children: w }) }) })
|
|
63
90
|
] }) });
|
|
64
91
|
};
|
|
65
92
|
export {
|
|
66
|
-
|
|
93
|
+
bi as Onboarding
|
|
67
94
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Container as t, Avatar as e, Content as s, Name as m } from "./styles.js";
|
|
3
|
+
import "@linaria/react";
|
|
4
|
+
const f = ({ avatar: i, name: n }) => /* @__PURE__ */ r(t, { children: [
|
|
5
|
+
i && /* @__PURE__ */ o(e, { src: i }),
|
|
6
|
+
/* @__PURE__ */ r(s, { children: [
|
|
7
|
+
/* @__PURE__ */ r(m, { children: [
|
|
8
|
+
n,
|
|
9
|
+
" "
|
|
10
|
+
] }),
|
|
11
|
+
"is waiting for you!"
|
|
12
|
+
] })
|
|
13
|
+
] });
|
|
14
|
+
export {
|
|
15
|
+
f as InvitingUser
|
|
16
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const Avatar: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const Name: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const n = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "cl51m2q",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), e = /* @__PURE__ */ s("img")({
|
|
7
|
+
name: "Avatar",
|
|
8
|
+
class: "a2yhhhr",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
11
|
+
name: "Content",
|
|
12
|
+
class: "c1dtxxlr",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
}), o = /* @__PURE__ */ s("span")({
|
|
15
|
+
name: "Name",
|
|
16
|
+
class: "n12clm3w",
|
|
17
|
+
propsAsIs: !1
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
e as Avatar,
|
|
21
|
+
n as Container,
|
|
22
|
+
t as Content,
|
|
23
|
+
o as Name
|
|
24
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
type OnboardingInstructionsProps = OnboardingStep & {
|
|
3
|
+
loading: boolean;
|
|
3
4
|
stepsCount: number;
|
|
4
5
|
currentStep: number;
|
|
5
6
|
};
|
|
6
7
|
export type OnboardingStep = {
|
|
7
8
|
graphicSrc: string;
|
|
8
9
|
headline?: string;
|
|
9
|
-
width?: number;
|
|
10
10
|
};
|
|
11
11
|
export declare const OnboardingInstructions: React.FC<OnboardingInstructionsProps>;
|
|
12
12
|
export {};
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Skeleton as c } from "../../../../skeleton/index.js";
|
|
3
|
+
import { Container as m, Content as p, Graphic as s, Headline as a, StepsContainer as l, StepIndicator as x } from "./styles.js";
|
|
4
|
+
import "../../../../skeleton/styles.js";
|
|
3
5
|
import "@linaria/react";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
graphicSrc:
|
|
7
|
-
headline:
|
|
8
|
-
stepsCount:
|
|
9
|
-
currentStep:
|
|
10
|
-
}) => /* @__PURE__ */ o(
|
|
11
|
-
/* @__PURE__ */ o(
|
|
12
|
-
/* @__PURE__ */ r(s, { "
|
|
13
|
-
|
|
6
|
+
const v = ({
|
|
7
|
+
loading: t,
|
|
8
|
+
graphicSrc: d,
|
|
9
|
+
headline: i,
|
|
10
|
+
stepsCount: h,
|
|
11
|
+
currentStep: e
|
|
12
|
+
}) => /* @__PURE__ */ o(m, { children: [
|
|
13
|
+
/* @__PURE__ */ o(p, { "data-centered": e === 0, children: [
|
|
14
|
+
/* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(c, { loading: t, style: { width: "80px", height: "80px" }, children: /* @__PURE__ */ r("img", { src: d, alt: i }) }) }),
|
|
15
|
+
i && /* @__PURE__ */ r(c, { loading: t, children: /* @__PURE__ */ r(a, { children: i }) })
|
|
14
16
|
] }),
|
|
15
|
-
/* @__PURE__ */ r(
|
|
17
|
+
/* @__PURE__ */ r(l, { style: t ? { visibility: "hidden" } : {}, children: Array.from({ length: h }).map((f, n) => /* @__PURE__ */ r(x, { "data-active": e === n }, n)) })
|
|
16
18
|
] });
|
|
17
19
|
export {
|
|
18
|
-
|
|
20
|
+
v as OnboardingInstructions
|
|
19
21
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
3
|
export declare const Graphic: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
4
|
export declare const Headline: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
6
|
export declare const StepsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
7
|
export declare const StepIndicator: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
@@ -4,16 +4,16 @@ const a = /* @__PURE__ */ s("div")({
|
|
|
4
4
|
class: "c1htq1lb",
|
|
5
5
|
propsAsIs: !1
|
|
6
6
|
}), e = /* @__PURE__ */ s("div")({
|
|
7
|
-
name: "
|
|
8
|
-
class: "
|
|
7
|
+
name: "Graphic",
|
|
8
|
+
class: "gjyzpp7",
|
|
9
9
|
propsAsIs: !1
|
|
10
10
|
}), o = /* @__PURE__ */ s("div")({
|
|
11
|
-
name: "
|
|
12
|
-
class: "
|
|
11
|
+
name: "Headline",
|
|
12
|
+
class: "h16mldgz",
|
|
13
13
|
propsAsIs: !1
|
|
14
14
|
}), t = /* @__PURE__ */ s("div")({
|
|
15
|
-
name: "
|
|
16
|
-
class: "
|
|
15
|
+
name: "Content",
|
|
16
|
+
class: "c69js65",
|
|
17
17
|
propsAsIs: !1
|
|
18
18
|
}), p = /* @__PURE__ */ s("div")({
|
|
19
19
|
name: "StepsContainer",
|
|
@@ -26,9 +26,9 @@ const a = /* @__PURE__ */ s("div")({
|
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
28
|
a as Container,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
t as Content,
|
|
30
|
+
e as Graphic,
|
|
31
|
+
o as Headline,
|
|
32
32
|
c as StepIndicator,
|
|
33
33
|
p as StepsContainer
|
|
34
34
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { HeaderNodeRef, type AppNodeRef } from '../../../../app/masters';
|
|
2
3
|
import { icons } from '../../../../icons';
|
|
3
4
|
export type OnboardingInviteCardProps = {
|
|
4
|
-
|
|
5
|
+
renderToNode: AppNodeRef | HeaderNodeRef;
|
|
5
6
|
inviteLink?: string;
|
|
6
7
|
inviteCardTitle?: string;
|
|
7
8
|
inviteCardSubtext?: string;
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { SvgIcon as
|
|
3
|
-
import { Container as
|
|
1
|
+
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { SvgIcon as a } from "../../../../icons/index.js";
|
|
3
|
+
import { Container as h, Content as s, Title as p, RulesList as C, RulesItem as R, RuleIcon as u, RuleText as x, TermsButton as T } from "./styles.js";
|
|
4
4
|
import "@linaria/react";
|
|
5
5
|
import "react";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
const k = ({
|
|
7
|
+
rules: e,
|
|
8
|
+
rulesTitle: t,
|
|
9
|
+
termsText: i,
|
|
10
|
+
primaryColor: d,
|
|
11
|
+
openTerms: l
|
|
12
|
+
}) => /* @__PURE__ */ r(h, { children: [
|
|
13
|
+
/* @__PURE__ */ r(s, { children: [
|
|
14
|
+
/* @__PURE__ */ n(p, { children: t }),
|
|
15
|
+
/* @__PURE__ */ n(C, { children: e == null ? void 0 : e.map(({ label: m, icon: o }, c) => /* @__PURE__ */ r(R, { children: [
|
|
16
|
+
o && /* @__PURE__ */ n(u, { style: { backgroundColor: d }, children: /* @__PURE__ */ n(a, { name: o, "data-icon": o }) }),
|
|
17
|
+
/* @__PURE__ */ n(x, { children: m })
|
|
18
|
+
] }, c)) })
|
|
13
19
|
] }),
|
|
14
|
-
/* @__PURE__ */ n(
|
|
20
|
+
i && /* @__PURE__ */ n(T, { onClick: l, children: "See Terms and Conditions" })
|
|
15
21
|
] });
|
|
16
22
|
export {
|
|
17
|
-
|
|
23
|
+
k as OnboardingRules
|
|
18
24
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Container as o, Content as t, Title as l, ScrollingText as c } from "./styles.js";
|
|
3
|
+
import "@linaria/react";
|
|
4
|
+
const h = ({ termsTitle: n, termsText: e }) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ i(t, { children: [
|
|
5
|
+
/* @__PURE__ */ r(l, { children: n }),
|
|
6
|
+
/* @__PURE__ */ r(c, { children: e })
|
|
7
|
+
] }) });
|
|
8
|
+
export {
|
|
9
|
+
h as OnboardingTerms
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const ScrollingText: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const t = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "cj0g35h",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), e = /* @__PURE__ */ s("div")({
|
|
7
|
+
name: "Content",
|
|
8
|
+
class: "c1xkhrbn",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), o = /* @__PURE__ */ s("div")({
|
|
11
|
+
name: "Title",
|
|
12
|
+
class: "tifzb8b",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
}), l = /* @__PURE__ */ s("div")({
|
|
15
|
+
name: "ScrollingText",
|
|
16
|
+
class: "stduw5c",
|
|
17
|
+
propsAsIs: !1
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
t as Container,
|
|
21
|
+
e as Content,
|
|
22
|
+
l as ScrollingText,
|
|
23
|
+
o as Title
|
|
24
|
+
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { AnimatedCounter as r } from "../../animated-counter/index.js";
|
|
3
3
|
import { resetCss as n } from "../../theme/theme.js";
|
|
4
|
-
import { PointsContainer as e, PointsIcon as
|
|
4
|
+
import { PointsContainer as e, PointsIcon as m, PointsSvg as s, PointsBody as p, PointsTitle as l, PointsValue as c } from "./styles.js";
|
|
5
5
|
import "react-countup";
|
|
6
|
+
import "../../theme/breakpoints.js";
|
|
6
7
|
import "../../theme/constants.js";
|
|
7
8
|
import "@linaria/react";
|
|
8
9
|
import "../../icons/index.js";
|
|
9
10
|
import "react";
|
|
10
|
-
const
|
|
11
|
-
/* @__PURE__ */ o(
|
|
11
|
+
const y = ({ points: i }) => /* @__PURE__ */ t(e, { className: n, children: [
|
|
12
|
+
/* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(s, { name: "icon-trophy" }) }),
|
|
12
13
|
/* @__PURE__ */ t(p, { children: [
|
|
13
14
|
/* @__PURE__ */ o(l, { children: "Total points" }),
|
|
14
15
|
/* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(r, { value: i }) })
|
|
15
16
|
] })
|
|
16
17
|
] });
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
y as Points
|
|
19
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { InsightContent as n } from "../../../questions/insight/index.js";
|
|
3
|
-
import { Container as p, ActionBtn as
|
|
3
|
+
import { Container as p, ActionBtn as c } from "./styles.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../../video-player/index.js";
|
|
6
6
|
import "../../../icons/index.js";
|
|
@@ -8,14 +8,14 @@ import "@linaria/react";
|
|
|
8
8
|
import "../../../video-player/styles.js";
|
|
9
9
|
import "../../../../utils/common.js";
|
|
10
10
|
import "../../../questions/insight/styles.js";
|
|
11
|
-
const
|
|
11
|
+
const d = ({
|
|
12
12
|
openInsight: r,
|
|
13
13
|
questionId: t,
|
|
14
14
|
...o
|
|
15
15
|
}) => /* @__PURE__ */ m(p, { children: [
|
|
16
|
-
/* @__PURE__ */ i(n, { questionId: t, ...o
|
|
17
|
-
r && /* @__PURE__ */ i(
|
|
16
|
+
/* @__PURE__ */ i(n, { questionId: t, ...o }),
|
|
17
|
+
r && /* @__PURE__ */ i(c, { onClick: () => r(t), children: "View Insight" })
|
|
18
18
|
] });
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
d as Insight
|
|
21
21
|
};
|
package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsxs as r, Fragment as
|
|
2
|
-
import { BGWrap as n, BGOneLineOne as T, BGOneLineTwo as l, BGOneLineThree as
|
|
1
|
+
import { jsxs as r, Fragment as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { BGWrap as n, BGOneLineOne as T, BGOneLineTwo as l, BGOneLineThree as u, BGTwoLineOne as t, BGTwoLineTwo as o, BGTwoLineThree as c, BGThreeLineOne as d, BGThreeLineTwo as h, BGThreeLineThree as B, BGThreeLineFour as G, BGFourLineOne as m, BGFourLineTwo as w, BGFourLineThree as F, BGFourLineFour as O } from "./styles.js";
|
|
3
3
|
import "@linaria/react";
|
|
4
|
-
const x = ({ step:
|
|
5
|
-
/* @__PURE__ */ r(n, { "data-active":
|
|
4
|
+
const x = ({ step: i, correct: L }) => /* @__PURE__ */ r(a, { children: [
|
|
5
|
+
/* @__PURE__ */ r(n, { "data-active": i === 1, "data-first-screen": "true", children: [
|
|
6
6
|
/* @__PURE__ */ e(T, {}),
|
|
7
7
|
/* @__PURE__ */ e(l, {}),
|
|
8
|
-
/* @__PURE__ */ e(
|
|
8
|
+
/* @__PURE__ */ e(u, {})
|
|
9
9
|
] }),
|
|
10
|
-
/* @__PURE__ */ r(n, { "data-active":
|
|
10
|
+
/* @__PURE__ */ r(n, { "data-active": i === 2, children: [
|
|
11
11
|
/* @__PURE__ */ e(t, {}),
|
|
12
|
-
/* @__PURE__ */ e(
|
|
13
|
-
/* @__PURE__ */ e(
|
|
12
|
+
/* @__PURE__ */ e(o, {}),
|
|
13
|
+
/* @__PURE__ */ e(c, {})
|
|
14
14
|
] }),
|
|
15
|
-
/* @__PURE__ */ r(n, { "data-active":
|
|
15
|
+
/* @__PURE__ */ r(n, { "data-active": i === 3, children: [
|
|
16
16
|
/* @__PURE__ */ e(t, {}),
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
/* @__PURE__ */ e(
|
|
17
|
+
/* @__PURE__ */ e(o, {}),
|
|
18
|
+
/* @__PURE__ */ e(c, {})
|
|
19
19
|
] }),
|
|
20
|
-
L ? /* @__PURE__ */ r(
|
|
21
|
-
/* @__PURE__ */ r(n, { "data-active":
|
|
20
|
+
L ? /* @__PURE__ */ r(a, { children: [
|
|
21
|
+
/* @__PURE__ */ r(n, { "data-active": i === 4, "data-correct": "true", children: [
|
|
22
22
|
/* @__PURE__ */ e(d, {}),
|
|
23
23
|
/* @__PURE__ */ e(h, {}),
|
|
24
24
|
/* @__PURE__ */ e(B, {}),
|
|
25
25
|
/* @__PURE__ */ e(G, {})
|
|
26
26
|
] }),
|
|
27
|
-
/* @__PURE__ */ r(n, { "data-active":
|
|
27
|
+
/* @__PURE__ */ r(n, { "data-active": i === 5, "data-correct": "true", children: [
|
|
28
28
|
/* @__PURE__ */ e(d, {}),
|
|
29
29
|
/* @__PURE__ */ e(h, {}),
|
|
30
30
|
/* @__PURE__ */ e(B, {}),
|
|
31
31
|
/* @__PURE__ */ e(G, {})
|
|
32
32
|
] })
|
|
33
|
-
] }) : /* @__PURE__ */ r(n, { "data-active":
|
|
34
|
-
/* @__PURE__ */ e(u, {}),
|
|
33
|
+
] }) : /* @__PURE__ */ r(n, { "data-active": i === 4, "data-correct": "false", children: [
|
|
35
34
|
/* @__PURE__ */ e(m, {}),
|
|
36
35
|
/* @__PURE__ */ e(w, {}),
|
|
37
|
-
/* @__PURE__ */ e(F, {})
|
|
36
|
+
/* @__PURE__ */ e(F, {}),
|
|
37
|
+
/* @__PURE__ */ e(O, {})
|
|
38
38
|
] })
|
|
39
39
|
] });
|
|
40
40
|
export {
|