@streamlayer/react-ui 0.66.0 → 0.67.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 (76) hide show
  1. package/lib/LeaderBoard_p8tnz3-4ed993c7.js +1 -0
  2. package/lib/assets/style.css +1 -0
  3. package/lib/index.js +4 -5
  4. package/lib/index_1ujx5m0-4ed993c7.js +1 -0
  5. package/lib/masters_18kvgvj-4ed993c7.js +1 -0
  6. package/lib/ui/app/Features/Gamification/Question.js +47 -34
  7. package/lib/ui/app/Features/Gamification/index.js +51 -37
  8. package/lib/ui/app/Navigation/MastersNavigation/index.js +13 -10
  9. package/lib/ui/app/Navigation/index.js +3 -2
  10. package/lib/ui/app/Notifications/Onboarding/Notification/index.d.ts +8 -0
  11. package/lib/ui/app/Notifications/Onboarding/Notification/index.js +21 -0
  12. package/lib/ui/app/Notifications/Onboarding/Notification/styles.d.ts +10 -0
  13. package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +52 -0
  14. package/lib/ui/app/Notifications/Onboarding/index.js +96 -74
  15. package/lib/ui/app/Notifications/index.js +37 -13
  16. package/lib/ui/app/Notifications/styles.js +8 -13
  17. package/lib/ui/app/masters.js +32 -13
  18. package/lib/ui/app/styles.js +21 -36
  19. package/lib/ui/app/useMastersApp.js +4 -4
  20. package/lib/ui/button/styles.js +12 -42
  21. package/lib/ui/gamification/detail/header/styles.js +33 -55
  22. package/lib/ui/gamification/detail/sponsor/index.js +19 -12
  23. package/lib/ui/gamification/insight/styles.js +42 -63
  24. package/lib/ui/gamification/insight-list/styles.js +12 -18
  25. package/lib/ui/gamification/invite-link/styles.js +31 -45
  26. package/lib/ui/gamification/leaderboard/list-item/styles.js +40 -62
  27. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +32 -45
  28. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +70 -97
  29. package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.js +40 -79
  30. package/lib/ui/gamification/onboarding/styles.js +39 -49
  31. package/lib/ui/gamification/points/index.js +4 -6
  32. package/lib/ui/gamification/points/styles.js +31 -80
  33. package/lib/ui/gamification/question/insight/styles.js +11 -51
  34. package/lib/ui/gamification/question/list/styles.js +7 -9
  35. package/lib/ui/gamification/question/notification/insight/styles.js +26 -63
  36. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.js +82 -163
  37. package/lib/ui/gamification/question/notification/prediction-result/styles.js +53 -128
  38. package/lib/ui/gamification/question/notification/styles.js +43 -83
  39. package/lib/ui/gamification/question/notification/tweet/styles.js +36 -65
  40. package/lib/ui/gamification/question/styles.js +66 -92
  41. package/lib/ui/gamification/question/twitter/styles.js +13 -23
  42. package/lib/ui/gamification/tabs/styles.js +22 -65
  43. package/lib/ui/gamification/user-statistics/components/rank/styles.js +17 -23
  44. package/lib/ui/gamification/user-statistics/components/statistic/styles.js +16 -20
  45. package/lib/ui/gamification/user-statistics/styles.js +84 -119
  46. package/lib/ui/gamification/vote/expired-alert/styles.js +17 -27
  47. package/lib/ui/gamification/vote/feedback/styles.js +36 -64
  48. package/lib/ui/gamification/vote/insight-details/styles.js +12 -23
  49. package/lib/ui/gamification/vote/styles.js +21 -30
  50. package/lib/ui/gamification/vote/twitter-details/styles.js +6 -8
  51. package/lib/ui/gamification/vote/vote-option/styles.js +63 -147
  52. package/lib/ui/gamification/vote/win-bar/styles.js +37 -45
  53. package/lib/ui/icons/index.js +35 -20
  54. package/lib/ui/login/styles.js +36 -68
  55. package/lib/ui/navigation/button/Channels.js +18 -26
  56. package/lib/ui/navigation/button/FeaturedGroups.js +19 -27
  57. package/lib/ui/navigation/button/LeaderBoard.js +22 -23
  58. package/lib/ui/navigation/button/styles.js +16 -56
  59. package/lib/ui/navigation/index.js +13 -7
  60. package/lib/ui/navigation/masters.js +8 -32
  61. package/lib/ui/questions/insight/styles.js +26 -30
  62. package/lib/ui/questions/twitter/account/styles.js +30 -35
  63. package/lib/ui/questions/twitter/styles.js +31 -42
  64. package/lib/ui/show-in/index.js +18 -63
  65. package/lib/ui/theme/index.js +3 -4
  66. package/lib/ui/theme/masters.js +2 -9
  67. package/lib/ui/theme/theme.js +31 -27
  68. package/lib/ui/timer/index.js +38 -34
  69. package/lib/ui/video-player/styles.js +21 -26
  70. package/lib/utils/debug/components/bypassLogin.js +44 -60
  71. package/lib/utils/debug/components/developer.js +55 -87
  72. package/lib/utils/debug/components/envToggle.js +33 -58
  73. package/lib/utils/debug/components/styles.js +7 -49
  74. package/lib/utils/decorators/container.js +3 -4
  75. package/lib/utils/decorators/styles.js +7 -21
  76. package/package.json +7 -3
@@ -1,9 +1,11 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { styled as g } from "@linaria/react";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { styled as u } from "@linaria/react";
3
+ import { useStore as g } from "@nanostores/react";
3
4
  import { useState as y } from "react";
4
5
  import { FeatureType as k } from "@streamlayer/sdk-web-types";
5
6
  import { Onboarding as w } from "../../../gamification/onboarding/index.js";
6
- import { ShowIn as f } from "../../../show-in/index.js";
7
+ import { ShowIn as C } from "../../../show-in/index.js";
8
+ import { Onboarding as f } from "./Notification/index.js";
7
9
  import "react-virtualized-auto-sizer";
8
10
  import "../../../gamification/onboarding/slides/onboarding-instructions/index.js";
9
11
  import "../../../lottie/index.js";
@@ -18,79 +20,99 @@ import "../../../gamification/onboarding/styles.js";
18
20
  import "../../../button/index.js";
19
21
  import "../../../button/styles.js";
20
22
  import "@linaria/core";
21
- const C = g(f)`
22
- height: 100%;
23
-
24
- animation-duration: var(--animation-duration);
25
- `, $ = ({ sdk: b, hiding: o, notification: t, NotificationContainer: h }) => {
26
- var n, a, p, d, l, c;
27
- const [u, i] = y(!1), s = b.getFeature(k.GAMES), e = t.data.onboarding;
28
- return u && s && e ? /* @__PURE__ */ r(C, { hiding: o, children: /* @__PURE__ */ r(
29
- w,
30
- {
31
- rules: [
32
- {
33
- label: "Answer as many questions as you like.",
34
- icon: "icon-btn-feature-groups"
35
- },
36
- {
37
- label: "Win points for each correct trivia or prediction answer.",
38
- icon: "icon-thumb-up"
39
- },
40
- {
41
- label: "Top the leader board and best your friends.",
42
- icon: "icon-trophy"
43
- }
44
- ],
45
- rulesBtnLabel: (n = e.rules) == null ? void 0 : n.buttonLabel,
46
- rulesTitle: (a = e.rules) == null ? void 0 : a.heading,
47
- steps: [
48
- {
49
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_01.json",
50
- headline: "Welcome to the Featured Groups +"
51
- },
52
- {
53
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_02.json",
54
- headline: "Get real-time insights"
55
- },
56
- {
57
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_03.json",
58
- headline: "Predictions, trivia & polls synced to match play"
59
- },
60
- {
61
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_04.json",
62
- headline: "Win points for every answer you get right"
63
- },
64
- {
65
- graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_05.json",
66
- headline: "Compete against friends on the leaderboard"
67
- }
68
- ],
69
- primaryColor: (p = e.inviteCard) == null ? void 0 : p.iconColor,
70
- inviteLink: "masters.com/baf/5Ukwo245io",
71
- inviteCardTitle: (d = e.inviteCard) == null ? void 0 : d.heading,
72
- inviteCardSubtext: (l = e.inviteCard) == null ? void 0 : l.subtext,
73
- inviteCardBtnLabel: (c = e.inviteCard) == null ? void 0 : c.buttonLabel,
23
+ import "./Notification/styles.js";
24
+ const v = () => C, S = /* @__PURE__ */ u(v())({
25
+ name: "OnboardingContainer",
26
+ class: "OnboardingContainer_o9squag",
27
+ propsAsIs: !0
28
+ }), L = ({
29
+ hiding: n,
30
+ deepLink: a,
31
+ onboardingOpts: e,
32
+ setOpened: p,
33
+ notification: s,
34
+ gamification: i
35
+ }) => {
36
+ var t, d, l, c, m, b;
37
+ const {
38
+ data: r
39
+ } = g(a.$store);
40
+ return /* @__PURE__ */ o(S, {
41
+ hiding: n,
42
+ children: /* @__PURE__ */ o(w, {
43
+ rules: [{
44
+ label: "Answer as many questions as you like.",
45
+ icon: "icon-btn-feature-groups"
46
+ }, {
47
+ label: "Win points for each correct trivia or prediction answer.",
48
+ icon: "icon-thumb-up"
49
+ }, {
50
+ label: "Top the leader board and best your friends.",
51
+ icon: "icon-trophy"
52
+ }],
53
+ rulesBtnLabel: (t = e.rules) == null ? void 0 : t.buttonLabel,
54
+ rulesTitle: (d = e.rules) == null ? void 0 : d.heading,
55
+ steps: [{
56
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_01.json",
57
+ headline: "Welcome to the Featured Groups +"
58
+ }, {
59
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_02.json",
60
+ headline: "Get real-time insights"
61
+ }, {
62
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_03.json",
63
+ headline: "Predictions, trivia & polls synced to match play"
64
+ }, {
65
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_04.json",
66
+ headline: "Win points for every answer you get right"
67
+ }, {
68
+ graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_05.json",
69
+ headline: "Compete against friends on the leaderboard"
70
+ }],
71
+ primaryColor: (l = e.inviteCard) == null ? void 0 : l.iconColor,
72
+ inviteLink: r == null ? void 0 : r.url,
73
+ inviteCardTitle: (c = e.inviteCard) == null ? void 0 : c.heading,
74
+ inviteCardSubtext: (m = e.inviteCard) == null ? void 0 : m.subtext,
75
+ inviteCardBtnLabel: (b = e.inviteCard) == null ? void 0 : b.buttonLabel,
74
76
  onClose: () => {
75
- var m;
76
- i(!1), (m = t.close) == null || m.call(t);
77
+ var h;
78
+ p(!1), (h = s.close) == null || h.call(s);
77
79
  },
78
- socialLinks: [
79
- {
80
- icon: "icon-facebook",
81
- link: "https://www.facebook.com/TheMasters",
82
- label: "Facebook"
83
- },
84
- {
85
- icon: "icon-twitter",
86
- link: "https://twitter.com/@TheMasters",
87
- label: "X"
88
- }
89
- ],
90
- gamification: s
91
- }
92
- ) }) : /* @__PURE__ */ r(h, { hiding: o, children: /* @__PURE__ */ r("button", { onClick: () => i(!0), children: "go onboarding" }) });
80
+ socialLinks: [{
81
+ icon: "icon-facebook",
82
+ link: "https://www.facebook.com/TheMasters",
83
+ label: "Facebook"
84
+ }, {
85
+ icon: "icon-twitter",
86
+ link: "https://twitter.com/@TheMasters",
87
+ label: "X"
88
+ }],
89
+ gamification: i
90
+ })
91
+ });
92
+ }, Q = ({
93
+ sdk: n,
94
+ hiding: a,
95
+ notification: e,
96
+ NotificationContainer: p
97
+ }) => {
98
+ const [s, i] = y(!1), r = n.getFeature(k.GAMES), t = e.data.onboarding;
99
+ return s && r && t ? /* @__PURE__ */ o(L, {
100
+ notification: e,
101
+ setOpened: i,
102
+ gamification: r,
103
+ onboardingOpts: t,
104
+ deepLink: r.deepLink
105
+ }) : /* @__PURE__ */ o(p, {
106
+ hiding: a,
107
+ children: /* @__PURE__ */ o("div", {
108
+ children: /* @__PURE__ */ o(f, {
109
+ close: e.close,
110
+ action: () => i(!0),
111
+ onboarding: t
112
+ })
113
+ })
114
+ });
93
115
  };
94
116
  export {
95
- $ as Onboarding
117
+ Q as Onboarding
96
118
  };
@@ -1,9 +1,10 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useStore as c } from "@nanostores/react";
3
- import { useMemo as s } from "react";
4
- import { NotificationType as r } from "@streamlayer/sdk-web-notifications";
5
- import { Notification as p } from "../../gamification/question/notification/index.js";
6
- import { Container as n } from "./styles.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useStore as u } from "@nanostores/react";
3
+ import { useMemo as c } from "react";
4
+ import { NotificationType as o } from "@streamlayer/sdk-web-notifications";
5
+ import { Notification as e } from "../../gamification/question/notification/index.js";
6
+ import { Onboarding as s } from "./Onboarding/index.js";
7
+ import { Container as m } from "./styles.js";
7
8
  import "@streamlayer/sdk-web-types";
8
9
  import "../../gamification/constants.js";
9
10
  import "../../gamification/question/notification/insight/index.js";
@@ -21,19 +22,42 @@ import "../../gamification/question/notification/tweet/index.js";
21
22
  import "../../questions/twitter/account/index.js";
22
23
  import "../../questions/twitter/account/styles.js";
23
24
  import "../../gamification/question/notification/tweet/styles.js";
25
+ import "../../gamification/onboarding/index.js";
26
+ import "react-virtualized-auto-sizer";
27
+ import "../../gamification/onboarding/slides/onboarding-instructions/index.js";
28
+ import "../../lottie/index.js";
29
+ import "@lottiefiles/react-lottie-player";
30
+ import "../../gamification/onboarding/slides/onboarding-instructions/styles.js";
31
+ import "../../gamification/onboarding/slides/onboarding-invite-card/index.js";
32
+ import "../../gamification/onboarding/slides/onboarding-invite-card/styles.js";
33
+ import "../../gamification/onboarding/slides/onboarding-rules/index.js";
34
+ import "../../gamification/onboarding/slides/onboarding-rules/styles.js";
35
+ import "../../gamification/onboarding/styles.js";
36
+ import "../../button/index.js";
37
+ import "../../button/styles.js";
24
38
  import "../../show-in/index.js";
25
39
  import "@linaria/core";
26
- const L = ({ sdk: e }) => {
27
- const f = e.getNotificationsStore(), t = c(f), i = s(() => {
40
+ import "./Onboarding/Notification/index.js";
41
+ import "./Onboarding/Notification/styles.js";
42
+ const ii = ({ sdk: p }) => {
43
+ const f = p.getNotificationsStore(), t = u(f), i = c(() => {
28
44
  if (!(t != null && t.size))
29
45
  return null;
30
- for (const m of t.values())
31
- if (m.type === r.ONBOARDING)
32
- return m;
46
+ for (const n of t.values())
47
+ if (n.type === o.ONBOARDING)
48
+ return n;
33
49
  return t.values().next().value;
34
50
  }, [t]);
35
- return (i == null ? void 0 : i.type) === r.QUESTION ? /* @__PURE__ */ o(n, { hiding: i.hiding, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(p, { ...i }) }) }) : (i == null ? void 0 : i.type) === r.QUESTION_RESOLVED ? /* @__PURE__ */ o(n, { hiding: i.hiding, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(p, { ...i }) }) }) : null;
51
+ return (i == null ? void 0 : i.type) === o.QUESTION ? /* @__PURE__ */ r(m, { hiding: i.hiding, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(e, { ...i }) }) }) : (i == null ? void 0 : i.type) === o.QUESTION_RESOLVED ? /* @__PURE__ */ r(m, { hiding: i.hiding, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(e, { ...i }) }) }) : (i == null ? void 0 : i.type) === o.ONBOARDING ? /* @__PURE__ */ r(
52
+ s,
53
+ {
54
+ NotificationContainer: m,
55
+ sdk: p,
56
+ notification: i,
57
+ hiding: i.hiding
58
+ }
59
+ ) : null;
36
60
  };
37
61
  export {
38
- L as SDKNotifications
62
+ ii as SDKNotifications
39
63
  };
@@ -1,17 +1,12 @@
1
- import { styled as i } from "@linaria/react";
2
- import { ShowIn as o } from "../../show-in/index.js";
1
+ import { styled as o } from "@linaria/react";
2
+ import { ShowIn as t } from "../../show-in/index.js";
3
3
  import "react/jsx-runtime";
4
4
  import "@linaria/core";
5
- const d = i(o)`
6
- position: relative;
7
- top: var(--header-height);
8
-
9
- animation-duration: calc(var(--animation-duration) * 3);
10
-
11
- & > div {
12
- padding: var(--container-padding);
13
- }
14
- `;
5
+ const r = () => t, c = /* @__PURE__ */ o(r())({
6
+ name: "Container",
7
+ class: "Container_ctckejh",
8
+ propsAsIs: !0
9
+ });
15
10
  export {
16
- d as Container
11
+ c as Container
17
12
  };
@@ -9,7 +9,6 @@ import { useSdkFeature as A } from "./useSdkFeature.js";
9
9
  import { ChannelsButtonId as C } from "../navigation/button/Channels.js";
10
10
  import { LeaderBoardButtonId as s } from "../navigation/button/LeaderBoard.js";
11
11
  import { FeaturedGroupsButtonId as d } from "../navigation/button/FeaturedGroups.js";
12
- import "@linaria/core";
13
12
  import "../theme/constants.js";
14
13
  import "react";
15
14
  import "@streamlayer/sdk-web-types";
@@ -19,6 +18,8 @@ import "@streamlayer/sdk-web-interfaces";
19
18
  import "../navigation/masters.js";
20
19
  import "@linaria/react";
21
20
  import "../navigation/index.js";
21
+ import "../../index_1ujx5m0-4ed993c7.js";
22
+ import "../../masters_18kvgvj-4ed993c7.js";
22
23
  import "@streamlayer/sdk-web-notifications";
23
24
  import "../gamification/question/notification/index.js";
24
25
  import "../gamification/constants.js";
@@ -36,15 +37,33 @@ import "../gamification/question/notification/tweet/index.js";
36
37
  import "../questions/twitter/account/index.js";
37
38
  import "../questions/twitter/account/styles.js";
38
39
  import "../gamification/question/notification/tweet/styles.js";
39
- import "./Notifications/styles.js";
40
+ import "./Notifications/Onboarding/index.js";
41
+ import "../gamification/onboarding/index.js";
42
+ import "react-virtualized-auto-sizer";
43
+ import "../gamification/onboarding/slides/onboarding-instructions/index.js";
44
+ import "../lottie/index.js";
45
+ import "@lottiefiles/react-lottie-player";
46
+ import "../gamification/onboarding/slides/onboarding-instructions/styles.js";
47
+ import "../gamification/onboarding/slides/onboarding-invite-card/index.js";
48
+ import "../gamification/onboarding/slides/onboarding-invite-card/styles.js";
49
+ import "../gamification/onboarding/slides/onboarding-rules/index.js";
50
+ import "../gamification/onboarding/slides/onboarding-rules/styles.js";
51
+ import "../gamification/onboarding/styles.js";
52
+ import "../button/index.js";
53
+ import "../button/styles.js";
40
54
  import "../show-in/index.js";
41
- import "../navigation/button/index.js";
55
+ import "@linaria/core";
56
+ import "./Notifications/Onboarding/Notification/index.js";
57
+ import "./Notifications/Onboarding/Notification/styles.js";
58
+ import "./Notifications/styles.js";
42
59
  import "../navigation/button/styles.js";
43
- const x = ({ sdk: i, className: e }) => {
44
- const [, m] = A(i);
45
- return /* @__PURE__ */ o(S, { className: e, feature: m, sdk: i });
46
- }, ft = ({ sdk: i, overlays: e, children: m }) => {
47
- const { sdkEnabled: t, sdkReady: l, activeOverlay: r, activateAndLoadOverlay: c, enableSdk: f, disableSdk: u, isLogged: p } = k(i);
60
+ import "../../LeaderBoard_p8tnz3-4ed993c7.js";
61
+ import "../navigation/button/index.js";
62
+ const x = ({ sdk: i, className: m }) => {
63
+ const [, p] = A(i);
64
+ return /* @__PURE__ */ o(S, { className: m, feature: p, sdk: i });
65
+ }, Lt = ({ sdk: i, overlays: m, children: p }) => {
66
+ const { sdkEnabled: t, sdkReady: l, activeOverlay: r, activateAndLoadOverlay: c, enableSdk: f, disableSdk: u, isLogged: e } = k(i);
48
67
  return /* @__PURE__ */ y(b, { children: [
49
68
  t && /* @__PURE__ */ o(
50
69
  g,
@@ -61,7 +80,7 @@ const x = ({ sdk: i, className: e }) => {
61
80
  {
62
81
  "data-nav": t.toString(),
63
82
  style: { display: !t || r === C ? "block" : "none" },
64
- children: m && m({ enableSdk: f, disableSdk: u })
83
+ children: p && p({ enableSdk: f, disableSdk: u })
65
84
  }
66
85
  ),
67
86
  /* @__PURE__ */ o(
@@ -69,13 +88,13 @@ const x = ({ sdk: i, className: e }) => {
69
88
  {
70
89
  "data-nav": t.toString(),
71
90
  style: { display: r === s ? "block" : "none" },
72
- children: e && r === s && e[r]
91
+ children: m && r === s && m[r]
73
92
  }
74
93
  ),
75
- p && t && r === d && /* @__PURE__ */ o(x, { className: a, sdk: i }),
76
- !p && t && r === d && /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
94
+ e && t && r === d && /* @__PURE__ */ o(x, { className: a, sdk: i }),
95
+ !e && t && r === d && /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%", height: "100%" }, children: "You are not logged in." })
77
96
  ] });
78
97
  };
79
98
  export {
80
- ft as MastersApp
99
+ Lt as MastersApp
81
100
  };
@@ -1,39 +1,24 @@
1
- import { styled as t } from "@linaria/react";
2
- const i = t.div`
3
- height: 100%;
4
- background: transparent;
5
- font-family: var(--font-regular);
6
- position: relative;
7
- min-width: 324px;
8
- overflow: hidden;
9
- `, r = t.div`
10
- width: 100%;
11
- overflow-y: auto;
12
- height: 100%;
13
- transition: transform;
14
- transition-duration: var(--animation-duration);
15
- transition-timing-function: var(--animation-function);
16
-
17
- &[data-nav='true'] {
18
- height: calc(100% - var(--header-height));
19
- transform: translateY(var(--header-height));
20
- }
21
-
22
- &[data-question-header='true'] {
23
- height: calc(100% - var(--question-headers-height, 0%));
24
- transform: translateY(var(--question-headers-height));
25
- }
26
- `, n = t.div`
27
- display: flex;
28
- flex-direction: column;
29
- padding: var(--container-padding);
30
- gap: var(--container-padding);
31
- `, e = t(n)`
32
- background-color: var(--color-neutrals-white);
33
- `;
1
+ import { styled as n } from "@linaria/react";
2
+ const e = /* @__PURE__ */ n("div")({
3
+ name: "SDKContainer",
4
+ class: "SDKContainer_stu11h7",
5
+ propsAsIs: !1
6
+ }), r = /* @__PURE__ */ n("div")({
7
+ name: "SDKScrollContainer",
8
+ class: "SDKScrollContainer_s1ucohr1",
9
+ propsAsIs: !1
10
+ }), s = /* @__PURE__ */ n("div")({
11
+ name: "SDKContentContainer",
12
+ class: "SDKContentContainer_s1el4wvm",
13
+ propsAsIs: !1
14
+ }), o = () => s, a = /* @__PURE__ */ n(o())({
15
+ name: "SDKWhiteContainer",
16
+ class: "SDKWhiteContainer_s1oe3036",
17
+ propsAsIs: !0
18
+ });
34
19
  export {
35
- i as SDKContainer,
36
- n as SDKContentContainer,
20
+ e as SDKContainer,
21
+ s as SDKContentContainer,
37
22
  r as SDKScrollContainer,
38
- e as SDKWhiteContainer
23
+ a as SDKWhiteContainer
39
24
  };
@@ -4,13 +4,13 @@ import { FeatureType as v } from "@streamlayer/sdk-web-types";
4
4
  import "react/jsx-runtime";
5
5
  import { ChannelsButtonId as m } from "../navigation/button/Channels.js";
6
6
  import { FeaturedGroupsButtonId as o } from "../navigation/button/FeaturedGroups.js";
7
- import "../navigation/button/LeaderBoard.js";
8
- import "../navigation/masters.js";
9
7
  import "@linaria/react";
10
8
  import "../icons/index.js";
11
- import "../navigation/button/index.js";
12
9
  import "../navigation/button/styles.js";
13
- import "../navigation/index.js";
10
+ import "../../LeaderBoard_p8tnz3-4ed993c7.js";
11
+ import "../../index_1ujx5m0-4ed993c7.js";
12
+ import "../../masters_18kvgvj-4ed993c7.js";
13
+ import "../navigation/button/index.js";
14
14
  const T = (e) => {
15
15
  const [c, n] = l(!1), d = u(e.status), { data: f } = u(e.getUserStore()), a = d === "ready", [i, p] = l(o), s = b(
16
16
  (t, r) => {
@@ -1,44 +1,14 @@
1
- import { styled as r } from "@linaria/react";
2
- const a = r.button`
3
- border-radius: 71px;
4
- padding: 14px 16px 12px;
5
- font-size: 12px;
6
- border: 1px solid;
7
- font-weight: var(--font-weight-default);
8
- outline: none;
9
-
10
- &[data-variant='primary'] {
11
- color: var(--color-neutrals-white);
12
- background-color: var(--color-primary-green1);
13
- border-color: var(--color-primary-green1);
14
-
15
- &:hover:enabled {
16
- background-color: var(--color-primary-green2);
17
- border-color: var(--color-primary-green2);
18
- }
19
- }
20
-
21
- &[data-variant='secondary'] {
22
- color: var(--color-primary-green1);
23
- background-color: transparent;
24
- border-color: var(--color-primary-green1);
25
-
26
- &:hover:enabled {
27
- color: var(--color-neutrals-white);
28
- background-color: var(--color-primary-green2);
29
- border-color: var(--color-primary-green2);
30
- }
31
- }
32
-
33
- &:disabled {
34
- opacity: 0.5;
35
-
36
- &:hover {
37
- cursor: default;
38
- }
39
- }
40
- `, e = r.span``;
1
+ import { styled as s } from "@linaria/react";
2
+ const o = /* @__PURE__ */ s("button")({
3
+ name: "SButton",
4
+ class: "SButton_s1nve60q",
5
+ propsAsIs: !1
6
+ }), n = /* @__PURE__ */ s("span")({
7
+ name: "ButtonLabel",
8
+ class: "ButtonLabel_b1xoswwx",
9
+ propsAsIs: !1
10
+ });
41
11
  export {
42
- e as ButtonLabel,
43
- a as SButton
12
+ n as ButtonLabel,
13
+ o as SButton
44
14
  };
@@ -1,59 +1,37 @@
1
- import { styled as o } from "@linaria/react";
2
- import { SvgIcon as t } from "../../../icons/index.js";
1
+ import { styled as s } from "@linaria/react";
2
+ import { SvgIcon as o } from "../../../icons/index.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
- const a = o.div`
6
- font-weight: var(--font-weight-default);
7
- color: var(--color-neutrals-gray7);
8
- border-bottom: 1px solid var(--color-neutrals-gray3);
9
- background: var(--color-neutrals-white);
10
- box-sizing: border-box;
11
- width: 100%;
12
- font-size: 12px;
13
- display: flex;
14
- justify-content: space-between;
15
- align-items: center;
16
- padding: 12px 12px 12px 16px;
17
- `, l = o.div`
18
- display: flex;
19
- align-items: center;
20
- `, p = o(t)`
21
- width: 16px;
22
- height: 16px;
23
-
24
- path {
25
- fill: var(--color-primary-green1);
26
- fill-opacity: 1;
27
- }
28
- `, s = o.span`
29
- font-family: var(--font-regular);
30
- margin-left: 8px;
31
- `, c = o.button`
32
- width: 24px;
33
- height: 24px;
34
- border: none;
35
- outline: none;
36
- background-color: transparent;
37
- display: flex;
38
- justify-content: center;
39
- align-items: center;
40
- cursor: pointer;
41
- `, g = o(t)`
42
- path {
43
- stroke: var(--color-neutrals-gray7);
44
- }
45
-
46
- &:hover {
47
- path {
48
- stroke: var(--color-primary-green2);
49
- }
50
- }
51
- `;
5
+ const l = /* @__PURE__ */ s("div")({
6
+ name: "Container",
7
+ class: "Container_c1vwopgc",
8
+ propsAsIs: !1
9
+ }), i = /* @__PURE__ */ s("div")({
10
+ name: "QuestionTypeWrap",
11
+ class: "QuestionTypeWrap_qyktpt0",
12
+ propsAsIs: !1
13
+ }), e = () => o, r = /* @__PURE__ */ s(e())({
14
+ name: "QuestionTypeIcon",
15
+ class: "QuestionTypeIcon_q951jdx",
16
+ propsAsIs: !0
17
+ }), u = /* @__PURE__ */ s("span")({
18
+ name: "QuestionTypeTitle",
19
+ class: "QuestionTypeTitle_qss5f0e",
20
+ propsAsIs: !1
21
+ }), y = /* @__PURE__ */ s("button")({
22
+ name: "CloseButton",
23
+ class: "CloseButton_c1ao1jtv",
24
+ propsAsIs: !1
25
+ }), t = () => o, I = /* @__PURE__ */ s(t())({
26
+ name: "CloseIcon",
27
+ class: "CloseIcon_cvsl7l3",
28
+ propsAsIs: !0
29
+ });
52
30
  export {
53
- c as CloseButton,
54
- g as CloseIcon,
55
- a as Container,
56
- p as QuestionTypeIcon,
57
- s as QuestionTypeTitle,
58
- l as QuestionTypeWrap
31
+ y as CloseButton,
32
+ I as CloseIcon,
33
+ l as Container,
34
+ r as QuestionTypeIcon,
35
+ u as QuestionTypeTitle,
36
+ i as QuestionTypeWrap
59
37
  };
@@ -1,14 +1,21 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { styled as p } from "@linaria/react";
3
- const r = p.div`
4
- width: 100%;
5
- height: 53px;
6
- display: flex;
7
- padding: 16px 0px;
8
- justify-content: center;
9
- `, i = p.img`
10
- max-width: 20px;
11
- `, d = ({ sponsorLogo: o }) => o && /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(i, { alt: "sponsor-logo", src: o }) });
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { styled as r } from "@linaria/react";
3
+ const p = /* @__PURE__ */ r("div")({
4
+ name: "SponsorLogoWrap",
5
+ class: "SponsorLogoWrap_s8p5v5z",
6
+ propsAsIs: !1
7
+ }), n = /* @__PURE__ */ r("img")({
8
+ name: "SponsorLogo",
9
+ class: "SponsorLogo_s755yti",
10
+ propsAsIs: !1
11
+ }), c = ({
12
+ sponsorLogo: o
13
+ }) => o && /* @__PURE__ */ s(p, {
14
+ children: /* @__PURE__ */ s(n, {
15
+ alt: "sponsor-logo",
16
+ src: o
17
+ })
18
+ });
12
19
  export {
13
- d as Sponsor
20
+ c as Sponsor
14
21
  };