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