@streamlayer/react-ui 0.24.2 → 0.25.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/{icon-exit-d3f9fc80.js → icon-exit-6a55bb8f.js} +1 -1
- package/lib/index.js +37 -23
- package/lib/lib/demo/Gamification.js +67 -49
- package/lib/lib/demo/Highlights.js +8 -4
- package/lib/lib/demo/components/Insight.js +1 -1
- package/lib/lib/demo/components/Leaderboard.js +48 -0
- package/lib/lib/demo/components/Question.js +1 -1
- package/lib/lib/demo/components/UserSummary.js +11 -20
- package/lib/lib/demo/components/index.js +23 -13
- package/lib/lib/demo/index.js +35 -24
- package/lib/lib/demo/styles.js +1 -1
- package/lib/lib/gamification/common-header/index.js +8 -8
- package/lib/lib/gamification/detailed-insight/index.js +1 -1
- package/lib/lib/gamification/leaderboard-invite-link/index.js +15 -0
- package/lib/lib/gamification/leaderboard-invite-link/styles.js +59 -0
- package/lib/lib/gamification/leaderboard-item/index.js +18 -0
- package/lib/lib/gamification/leaderboard-item/styles.js +80 -0
- package/lib/lib/gamification/leaderboard-item-detail/index.js +20 -0
- package/lib/lib/gamification/leaderboard-item-detail/styles.js +7 -0
- package/lib/lib/gamification/leaderboard-list/index.js +16 -0
- package/lib/lib/gamification/leaderboard-list/styles.js +18 -0
- package/lib/lib/gamification/navigation/index.js +34 -0
- package/lib/lib/gamification/navigation/styles.js +26 -0
- package/lib/lib/gamification/onboarding/index.js +18 -18
- package/lib/lib/gamification/user-statistics/index.js +16 -16
- package/lib/lib/gamification/user-statistics/styles.js +6 -6
- package/lib/lib/gamification/vote/components/voting-header/index.js +1 -1
- package/lib/lib/notifications/decorator.js +1 -1
- package/lib/lib/notifications/index.js +1 -1
- package/lib/lib/notifications/notification/index.js +1 -1
- package/lib/lib/notifications/notification/question-inapp/index.js +8 -8
- package/lib/lib/theme/constants.js +3 -2
- package/lib/lib/theme/theme.js +4 -2
- package/lib/utils/components/developer.js +35 -25
- package/lib/utils/components/envToggle.js +58 -0
- package/lib/utils/components/eventInput.js +17 -51
- package/lib/utils/components/sdkKey.js +23 -0
- package/lib/utils/components/styles.js +43 -0
- package/lib/utils/createDemo.js +27 -33
- package/lib/utils/storage.js +27 -11
- package/package.json +9 -9
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { Container as
|
|
1
|
+
import { jsxs as I, jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import { i } from "../../../icon-exit-6a55bb8f.js";
|
|
3
|
+
import { Container as A, Button as g, HeaderIcon as z } from "./styles.js";
|
|
4
4
|
import "@linaria/react";
|
|
5
|
-
const x = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNNiAxMS45OTlDNiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4NTUgMTQuNTMyMyAyMSAxNC44NDU5IDIxQzE1LjA2MDcgMjEgMTUuMjU0NCAyMC45NDc1IDE1LjQyNzEgMjAuODQyNkMxNS41OTk4IDIwLjczNzcgMTUuNzM4NCAyMC41OTY1IDE1Ljg0MzEgMjAuNDE5MUMxNS45NDc3IDIwLjI0MTYgMTYgMjAuMDQyNSAxNiAxOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MT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xOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MTYgNC43ODcwOSAxNiA0LjUwMjMgMTYgNC4xNzgzNEMxNiAzLjk1NzQ5IDE1Ljk0NzcgMy43NTgzNSAxNS44NDMxIDMuNTgwOTFDMTUuNzM4NCAzLjQwMzQ3IDE1LjU5OTggMy4yNjIyOSAxNS40MjcxIDMuMTU3MzhDMTUuMjU0NCAzLjA1MjQ2IDE1LjA2MDcgMyAxNC44NDU5IDNDMTQuNTMyMyAzIDE0LjI2NDggMy4xMTE2OSAxNC4wNDM2IDMuMzM1MDhMNi4zODY4IDExLjA4NzhDNi4yNTU1MSAxMS4yMjI1IDYuMTU4NTMgMTEuMzY0NCA2LjA5NTg2IDExLjUxMzRDNi4wMzMxOCAxMS42NjI1IDYuMDAxMjMgMTEuODI0NCA2IDExLjk5OVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==", E = ({ icon: N, comeBack: D, close: j }) => /* @__PURE__ */ I(A, { children: [
|
|
6
|
+
/* @__PURE__ */ I("div", { children: [
|
|
7
7
|
D && /* @__PURE__ */ M(g, { onClick: D, children: /* @__PURE__ */ M("img", { alt: "header-back-icon", src: x }) }),
|
|
8
|
-
N && /* @__PURE__ */ M(
|
|
8
|
+
N && /* @__PURE__ */ M(z, { alt: "header-icon", src: N })
|
|
9
9
|
] }),
|
|
10
|
-
/* @__PURE__ */ M("div", { children:
|
|
10
|
+
/* @__PURE__ */ M("div", { children: j && /* @__PURE__ */ M(g, { onClick: j, children: /* @__PURE__ */ M("img", { alt: "header-close-icon", src: i }) }) })
|
|
11
11
|
] });
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
E as CommonHeader
|
|
14
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as I, jsx as M } from "react/jsx-runtime";
|
|
2
2
|
import { CommonHeader as Z } from "../common-header/index.js";
|
|
3
3
|
import { Container as g, Image as l, AdditionalContent as o, Title as n, Description as d, AdditionalBtn as r, LinkIcon as a } from "./styles.js";
|
|
4
|
-
import "../../../icon-exit-
|
|
4
|
+
import "../../../icon-exit-6a55bb8f.js";
|
|
5
5
|
import "../common-header/styles.js";
|
|
6
6
|
import "@linaria/react";
|
|
7
7
|
const u = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNyAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBjbGFzcz0ic2MtQU5kc04ga1RWV0pFIj48cGF0aCBkPSJNNi42NjY1IDMuMTY2NjlINC45OTk4NEM0LjI2MzQ2IDMuMTY2NjkgMy42NjY1IDMuNzYzNjQgMy42NjY1IDQuNTAwMDJWMTEuNUMzLjY2NjUgMTIuMjM2NCA0LjI2MzQ2IDEyLjgzMzQgNC45OTk4NCAxMi44MzM0SDExLjk5OThDMTIuNzM2MiAxMi44MzM0IDEzLjMzMzIgMTIuMjM2NCAxMy4zMzMyIDExLjVWOS44MzMzNSIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BhdGg+PHBhdGggZD0iTTEzLjMzMzUgNi4xNjY2OVYzLjE2NjY5SDEwLjMzMzUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjxwYXRoIGQ9Ik0xMy4xNjY4IDMuMzMzMzFMOC4zMzM1IDguMTY2NjUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPgo=", C = ({
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsxs as N, jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import { Container as j, IconLink as T, FriendsIcon as A, Content as x, Title as y, Description as z, ArrowInviteIcon as E } from "./styles.js";
|
|
3
|
+
import "@linaria/react";
|
|
4
|
+
const L = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikh5cGVybGluayI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xLjUyIDhDMS41MiA2LjYzMiAyLjYzMiA1LjUyIDQgNS41Mkg3LjJWNEw0IDRDMS43OTIgNCAwIDUuNzkyIDAgOEMwIDEwLjIwOCAxLjc5MiAxMiA0IDEySDcuMkw3LjIgMTAuNDhINEMyLjYzMiAxMC40OCAxLjUyIDkuMzY4IDEuNTIgOFpNNC44IDguOEgxMS4yVjcuMkg0LjhWOC44Wk0xMiA0SDguOFY1LjUyTDEyIDUuNTJDMTMuMzY4IDUuNTIgMTQuNDggNi42MzIgMTQuNDggOEMxNC40OCA5LjM2OCAxMy4zNjggMTAuNDggMTIgMTAuNDhIOC44VjEySDEyQzE0LjIwOCAxMiAxNiAxMC4yMDggMTYgOEMxNiA1Ljc5MiAxNC4yMDggNCAxMiA0WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K", i = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMD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Mub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlNoYXJlIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTExIDQuOTY1VjEuMTI1TDE4IDcuODQ1TDExIDE0LjU2NVYxMC42MjlDNiAxMC42MjkgMi41IDEyLjE2NSAwIDE1LjUyNUMxIDEwLjcyNSA0IDUuOTI1IDExIDQuOTY1WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K", c = ({ title: I, description: D, onClick: g }) => /* @__PURE__ */ N(j, { onClick: g, children: [
|
|
5
|
+
/* @__PURE__ */ M(T, { alt: "icon-link", src: L }),
|
|
6
|
+
/* @__PURE__ */ M(A, { alt: "friends-icon", src: i }),
|
|
7
|
+
/* @__PURE__ */ N(x, { children: [
|
|
8
|
+
/* @__PURE__ */ M(y, { children: I }),
|
|
9
|
+
/* @__PURE__ */ M(z, { children: D })
|
|
10
|
+
] }),
|
|
11
|
+
/* @__PURE__ */ M(E, { alt: "arrow-invite-icon", src: u })
|
|
12
|
+
] });
|
|
13
|
+
export {
|
|
14
|
+
c as LeaderboardInviteLink
|
|
15
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { styled as i } from "@linaria/react";
|
|
2
|
+
const e = i.div`
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 4px 16px;
|
|
6
|
+
align-items: center;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 58px;
|
|
10
|
+
min-height: 58px;
|
|
11
|
+
max-height: 58px;
|
|
12
|
+
background-color: var(--color-blue-primary);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
`, t = i.img`
|
|
16
|
+
width: 16px;
|
|
17
|
+
height: 16px;
|
|
18
|
+
margin-right: 8px;
|
|
19
|
+
`, r = i.img`
|
|
20
|
+
width: 32px;
|
|
21
|
+
height: 32px;
|
|
22
|
+
margin-right: 4px;
|
|
23
|
+
`, n = i.div`
|
|
24
|
+
flex: 1;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
margin-right: 4px;
|
|
30
|
+
padding: 0px 4px;
|
|
31
|
+
`, p = i.div`
|
|
32
|
+
text-transform: uppercase;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
font-size: 10px;
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
color: var(--color-leaderboard-unit);
|
|
37
|
+
margin-bottom: 2px;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
`, d = i.div`
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
color: var(--color-white);
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
`, x = i.img`
|
|
48
|
+
width: 18px;
|
|
49
|
+
height: 18px;
|
|
50
|
+
`;
|
|
51
|
+
export {
|
|
52
|
+
x as ArrowInviteIcon,
|
|
53
|
+
e as Container,
|
|
54
|
+
n as Content,
|
|
55
|
+
d as Description,
|
|
56
|
+
r as FriendsIcon,
|
|
57
|
+
t as IconLink,
|
|
58
|
+
p as Title
|
|
59
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { abbreviate as d } from "../../../utils/common.js";
|
|
3
|
+
import { Container as l, RankPosition as c, Avatar as m, AvatarPlaceholder as h, Content as s, NameWrap as p, Name as b, Rank as f, Units as k } from "./styles.js";
|
|
4
|
+
import "@linaria/react";
|
|
5
|
+
const j = ({ rank: t, avatar: i, name: n, points: a, openItemDetail: o }) => /* @__PURE__ */ e(l, { onClick: o, children: [
|
|
6
|
+
/* @__PURE__ */ r(c, { children: t || 0 }),
|
|
7
|
+
i ? /* @__PURE__ */ r(m, { alt: "leaderboard-item-avatar", src: i }) : /* @__PURE__ */ r(h, { children: d(n || "") }),
|
|
8
|
+
/* @__PURE__ */ e(s, { children: [
|
|
9
|
+
/* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(b, { children: n || "" }) }),
|
|
10
|
+
/* @__PURE__ */ e(f, { children: [
|
|
11
|
+
/* @__PURE__ */ r(k, { children: "PTS" }),
|
|
12
|
+
a || 0
|
|
13
|
+
] })
|
|
14
|
+
] })
|
|
15
|
+
] });
|
|
16
|
+
export {
|
|
17
|
+
j as LeaderboardItem
|
|
18
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { styled as e } from "@linaria/react";
|
|
2
|
+
const t = e.div`
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 8px;
|
|
6
|
+
align-items: center;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-height: 50px;
|
|
10
|
+
max-height: 50px;
|
|
11
|
+
background-color: var(--color-bg-transparent-item-vote);
|
|
12
|
+
color: var(--color-white);
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
`, r = e.div`
|
|
18
|
+
width: 28px;
|
|
19
|
+
max-width: 28px;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
margin-right: 4px;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
`, n = e.img`
|
|
26
|
+
width: 32px;
|
|
27
|
+
height: 32px;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
`, o = e.div`
|
|
30
|
+
background: var(--color-grey-primary-onboarding-inapp);
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
width: 32px;
|
|
33
|
+
height: 32px;
|
|
34
|
+
text-align: center;
|
|
35
|
+
text-transform: uppercase;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
color: var(--color-white);
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
`, a = e.div`
|
|
43
|
+
flex: 1;
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
align-items: center;
|
|
47
|
+
padding: 4px 4px 4px 0px;
|
|
48
|
+
margin-right: 4px;
|
|
49
|
+
margin-left: 8px;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
`, p = e.div`
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
flex: 1;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
`, d = e.span`
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
text-overflow: ellipsis;
|
|
60
|
+
margin-right: 4px;
|
|
61
|
+
`, s = e.div`
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
max-width: 75px;
|
|
65
|
+
`, l = e.span`
|
|
66
|
+
font-size: 10px;
|
|
67
|
+
color: var(--color-leaderboard-unit);
|
|
68
|
+
margin-right: 4px;
|
|
69
|
+
`;
|
|
70
|
+
export {
|
|
71
|
+
n as Avatar,
|
|
72
|
+
o as AvatarPlaceholder,
|
|
73
|
+
t as Container,
|
|
74
|
+
a as Content,
|
|
75
|
+
d as Name,
|
|
76
|
+
p as NameWrap,
|
|
77
|
+
s as Rank,
|
|
78
|
+
r as RankPosition,
|
|
79
|
+
l as Units
|
|
80
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { CommonHeader as i } from "../common-header/index.js";
|
|
3
|
+
import { UserStatistics as p } from "../user-statistics/index.js";
|
|
4
|
+
import { Container as e } from "./styles.js";
|
|
5
|
+
import "../../../icon-exit-6a55bb8f.js";
|
|
6
|
+
import "../common-header/styles.js";
|
|
7
|
+
import "@linaria/react";
|
|
8
|
+
import "../../../utils/common.js";
|
|
9
|
+
import "../user-statistics/components/statistics/index.js";
|
|
10
|
+
import "../user-statistics/components/statistics/styles.js";
|
|
11
|
+
import "../user-statistics/components/rank/index.js";
|
|
12
|
+
import "../user-statistics/components/rank/styles.js";
|
|
13
|
+
import "../user-statistics/styles.js";
|
|
14
|
+
const D = ({ comeBack: o, ...t }) => /* @__PURE__ */ m(e, { children: [
|
|
15
|
+
/* @__PURE__ */ r(i, { comeBack: o }),
|
|
16
|
+
/* @__PURE__ */ r(p, { ...t })
|
|
17
|
+
] });
|
|
18
|
+
export {
|
|
19
|
+
D as LeaderboardItemDetail
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { LeaderboardInviteLink as n } from "../leaderboard-invite-link/index.js";
|
|
3
|
+
import { LeaderboardItem as m } from "../leaderboard-item/index.js";
|
|
4
|
+
import { Container as p } from "./styles.js";
|
|
5
|
+
import "../leaderboard-invite-link/styles.js";
|
|
6
|
+
import "@linaria/react";
|
|
7
|
+
import "../../../utils/common.js";
|
|
8
|
+
import "../leaderboard-item/styles.js";
|
|
9
|
+
const b = ({ items: o, openItemDetail: i }) => /* @__PURE__ */ t(p, { children: [
|
|
10
|
+
o.map((r) => /* @__PURE__ */ e(m, { ...r, openItemDetail: () => i(r.userId) }, r.userId)),
|
|
11
|
+
/* @__PURE__ */ e(n, { title: "Invite Link", description: "Challenge friends!", onClick: () => {
|
|
12
|
+
} })
|
|
13
|
+
] });
|
|
14
|
+
export {
|
|
15
|
+
b as LeaderboardList
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { styled as o } from "@linaria/react";
|
|
2
|
+
const t = o.div`
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: 100%;
|
|
7
|
+
max-height: 100%;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 12px 0px;
|
|
11
|
+
|
|
12
|
+
& > div {
|
|
13
|
+
margin-bottom: 8px;
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
export {
|
|
17
|
+
t as Container
|
|
18
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Container as m, PageTitle as l } from "./styles.js";
|
|
3
|
+
import "@linaria/react";
|
|
4
|
+
var t = /* @__PURE__ */ ((r) => (r[r.HOME = 1] = "HOME", r[r.LEADERBOARD = 2] = "LEADERBOARD", r))(t || {});
|
|
5
|
+
const E = ({ activePage: r = 1, toggleActivePage: o }) => /* @__PURE__ */ i(m, { children: [
|
|
6
|
+
/* @__PURE__ */ n(
|
|
7
|
+
l,
|
|
8
|
+
{
|
|
9
|
+
style: { borderBottom: r === 1 ? "2px solid var(--color-blue-primary)" : "none" },
|
|
10
|
+
onClick: () => o(
|
|
11
|
+
1
|
|
12
|
+
/* HOME */
|
|
13
|
+
),
|
|
14
|
+
children: "Home"
|
|
15
|
+
}
|
|
16
|
+
),
|
|
17
|
+
/* @__PURE__ */ n(
|
|
18
|
+
l,
|
|
19
|
+
{
|
|
20
|
+
style: {
|
|
21
|
+
borderBottom: r === 2 ? "2px solid var(--color-blue-primary)" : "none"
|
|
22
|
+
},
|
|
23
|
+
onClick: () => o(
|
|
24
|
+
2
|
|
25
|
+
/* LEADERBOARD */
|
|
26
|
+
),
|
|
27
|
+
children: "Leader Board"
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
] });
|
|
31
|
+
export {
|
|
32
|
+
t as ActivePages,
|
|
33
|
+
E as Navigation
|
|
34
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { styled as e } from "@linaria/react";
|
|
2
|
+
const o = e.div`
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
color: var(--color-white);
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
margin-bottom: 12px;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
`, i = e.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
text-overflow: ellipsis;
|
|
20
|
+
width: 49%;
|
|
21
|
+
padding: 4px;
|
|
22
|
+
`;
|
|
23
|
+
export {
|
|
24
|
+
o as Container,
|
|
25
|
+
i as PageTitle
|
|
26
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as g, useEffect as B, useCallback as w } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { Container as N, OnboardingHeader as T, LeftBlock as j, GameIcon as p, RightBlock as
|
|
3
|
+
import { i as D } from "../../../icon-exit-6a55bb8f.js";
|
|
4
|
+
import { Container as N, OnboardingHeader as T, LeftBlock as j, GameIcon as p, RightBlock as E, SponsorLogo as G, CloseBtn as R, IconClose as A, Content as H, OnboardingActionBtn as L } from "./styles.js";
|
|
5
5
|
import { OnboardingInstructions as P } from "./components/onboarding-slides/onboarding-instructions/index.js";
|
|
6
6
|
import { OnboardingRules as q } from "./components/onboarding-slides/onboarding-rules/index.js";
|
|
7
7
|
import { OnboardingInviteCard as z } from "./components/onboarding-slides/onboarding-invite-card/index.js";
|
|
@@ -27,29 +27,29 @@ const e = {
|
|
|
27
27
|
inviteCardSubtext: S,
|
|
28
28
|
inviteCardBtnLabel: y
|
|
29
29
|
}) => {
|
|
30
|
-
const
|
|
30
|
+
const O = async () => {
|
|
31
31
|
await f.submitInplay();
|
|
32
|
-
},
|
|
32
|
+
}, k = () => {
|
|
33
33
|
b();
|
|
34
|
-
}, [a, h] = g(0), [o,
|
|
34
|
+
}, [a, h] = g(0), [o, r] = g(e);
|
|
35
35
|
B(() => {
|
|
36
|
-
n != null && n.length ?
|
|
36
|
+
n != null && n.length ? r({ ...e, steps: !0 }) : i != null && i.length ? r({ ...e, rules: !0 }) : r({ ...e, inviteCard: !0 });
|
|
37
37
|
}, []);
|
|
38
|
-
const
|
|
39
|
-
n != null && n.length && a < n.length - 1 ? h((
|
|
40
|
-
}, [a, n == null ? void 0 : n.length, i == null ? void 0 : i.length, o, h,
|
|
38
|
+
const x = w(() => {
|
|
39
|
+
n != null && n.length && a < n.length - 1 ? h((I) => ++I) : i != null && i.length && o.steps ? r({ ...e, rules: !0 }) : o.rules && r({ ...e, inviteCard: !0 });
|
|
40
|
+
}, [a, n == null ? void 0 : n.length, i == null ? void 0 : i.length, o, h, r]);
|
|
41
41
|
return /* @__PURE__ */ l(N, { children: [
|
|
42
42
|
/* @__PURE__ */ l(T, { children: [
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */ l(
|
|
45
|
-
d && /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ t(j, { children: c && /* @__PURE__ */ t(p, { alt: "sponsor-one-onboarding-icon", src: c }) }),
|
|
44
|
+
/* @__PURE__ */ l(E, { children: [
|
|
45
|
+
d && /* @__PURE__ */ t(G, { alt: "sponsor-two-onboarding-icon", src: d }),
|
|
46
|
+
/* @__PURE__ */ t(R, { onClick: k, children: /* @__PURE__ */ t(A, { alt: "icon-close-onboarding", src: D }) })
|
|
47
47
|
] })
|
|
48
48
|
] }),
|
|
49
49
|
/* @__PURE__ */ l(H, { children: [
|
|
50
|
-
o.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */
|
|
51
|
-
o.rules && /* @__PURE__ */
|
|
52
|
-
o.inviteCard && /* @__PURE__ */
|
|
50
|
+
o.steps && (n == null ? void 0 : n.length) && /* @__PURE__ */ t(P, { graphic: n[a].graphic, headline: n[a].headline }),
|
|
51
|
+
o.rules && /* @__PURE__ */ t(q, { rules: i, rulesTitle: u, primaryColor: m }),
|
|
52
|
+
o.inviteCard && /* @__PURE__ */ t(
|
|
53
53
|
z,
|
|
54
54
|
{
|
|
55
55
|
inviteCardTitle: v,
|
|
@@ -58,7 +58,7 @@ const e = {
|
|
|
58
58
|
}
|
|
59
59
|
)
|
|
60
60
|
] }),
|
|
61
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ t(L, { onClick: o.inviteCard ? O : x, children: o.rules ? C || "Got it!" : o.inviteCard ? y || "Play now!" : "Next" })
|
|
62
62
|
] });
|
|
63
63
|
};
|
|
64
64
|
export {
|
|
@@ -10,46 +10,46 @@ const a = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXd
|
|
|
10
10
|
avatar: j,
|
|
11
11
|
name: I,
|
|
12
12
|
points: g,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
friendsRank: T,
|
|
14
|
+
rank: z,
|
|
15
|
+
streak: O,
|
|
16
|
+
correct: i,
|
|
17
|
+
incorrect: u,
|
|
18
|
+
inTop: L,
|
|
19
|
+
average: y
|
|
20
20
|
}) => /* @__PURE__ */ N(x, { children: [
|
|
21
21
|
/* @__PURE__ */ N(U, { children: [
|
|
22
22
|
/* @__PURE__ */ N(w, { children: [
|
|
23
23
|
/* @__PURE__ */ N(k, { children: [
|
|
24
24
|
j && /* @__PURE__ */ M(r, { alt: "avatar", src: j }),
|
|
25
|
-
!j && /* @__PURE__ */ M(E, { children: c(I) })
|
|
25
|
+
!j && /* @__PURE__ */ M(E, { children: c(I || "") })
|
|
26
26
|
] }),
|
|
27
27
|
/* @__PURE__ */ N(Q, { children: [
|
|
28
28
|
/* @__PURE__ */ M(S, { children: I }),
|
|
29
29
|
/* @__PURE__ */ N(t, { children: [
|
|
30
30
|
/* @__PURE__ */ M(C, { alt: "rank-icon", src: a }),
|
|
31
31
|
/* @__PURE__ */ N(Y, { children: [
|
|
32
|
-
/* @__PURE__ */ M(o, { children: g
|
|
32
|
+
/* @__PURE__ */ M(o, { children: g }),
|
|
33
33
|
"RTS"
|
|
34
34
|
] }),
|
|
35
35
|
/* @__PURE__ */ N(n, { children: [
|
|
36
36
|
"TOP ",
|
|
37
|
-
|
|
37
|
+
L || 0,
|
|
38
38
|
"%"
|
|
39
39
|
] })
|
|
40
40
|
] })
|
|
41
41
|
] })
|
|
42
42
|
] }),
|
|
43
43
|
/* @__PURE__ */ N(e, { children: [
|
|
44
|
-
/* @__PURE__ */ M(A, { title: "Friends rank", indicator:
|
|
45
|
-
/* @__PURE__ */ M(A, { title: "Global rank", indicator:
|
|
44
|
+
/* @__PURE__ */ M(A, { title: "Friends rank", indicator: T || 0 }),
|
|
45
|
+
/* @__PURE__ */ M(A, { title: "Global rank", indicator: z || 0 })
|
|
46
46
|
] })
|
|
47
47
|
] }),
|
|
48
48
|
/* @__PURE__ */ N(l, { children: [
|
|
49
|
-
/* @__PURE__ */ M(D, { indicator:
|
|
50
|
-
/* @__PURE__ */ M(D, { indicator:
|
|
51
|
-
/* @__PURE__ */ M(D, { indicator:
|
|
52
|
-
/* @__PURE__ */ M(D, { indicator: `${y ||
|
|
49
|
+
/* @__PURE__ */ M(D, { indicator: O || 0, title: "Win streak" }),
|
|
50
|
+
/* @__PURE__ */ M(D, { indicator: i || 0, title: "Correct" }),
|
|
51
|
+
/* @__PURE__ */ M(D, { indicator: u || 0, title: "Incorrect" }),
|
|
52
|
+
/* @__PURE__ */ M(D, { indicator: `${y || 0}%`, title: "Success rate" })
|
|
53
53
|
] })
|
|
54
54
|
] });
|
|
55
55
|
export {
|
|
@@ -23,14 +23,14 @@ const t = e.div`
|
|
|
23
23
|
column-gap: 8px;
|
|
24
24
|
flex: 1;
|
|
25
25
|
overflow: hidden;
|
|
26
|
-
`,
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
26
|
+
`, p = e.img`
|
|
27
|
+
width: 48px;
|
|
28
|
+
height: 48px;
|
|
29
29
|
border-radius: 50%;
|
|
30
30
|
object-fit: cover;
|
|
31
31
|
object-position: center;
|
|
32
32
|
flex-shrink: 0;
|
|
33
|
-
`,
|
|
33
|
+
`, a = e.div`
|
|
34
34
|
padding-top: 4px;
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
@@ -95,7 +95,7 @@ const t = e.div`
|
|
|
95
95
|
max-height: 48px;
|
|
96
96
|
`;
|
|
97
97
|
export {
|
|
98
|
-
|
|
98
|
+
p as Avatar,
|
|
99
99
|
h as AvatarPlaceholder,
|
|
100
100
|
i as BottomInfo,
|
|
101
101
|
t as Container,
|
|
@@ -107,7 +107,7 @@ export {
|
|
|
107
107
|
c as TrophyIcon,
|
|
108
108
|
n as User,
|
|
109
109
|
m as UserAccountBtn,
|
|
110
|
-
|
|
110
|
+
a as UserInfo,
|
|
111
111
|
s as UserName,
|
|
112
112
|
d as UserRating
|
|
113
113
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as N, jsx as M, Fragment as O } from "react/jsx-runtime";
|
|
2
2
|
import { QuestionType as j } from "@streamlayer/sdk-web-types";
|
|
3
|
-
import {
|
|
3
|
+
import { i as E } from "../../../../../icon-exit-6a55bb8f.js";
|
|
4
4
|
import { Timer as k } from "./components/timer/index.js";
|
|
5
5
|
import { Container as C, RightBlock as w, Interactive as Y, ReactionIconWrap as c, ReactionIcon as y, ExitBtn as o, ExitIcon as r, Logo as a } from "./styles.js";
|
|
6
6
|
import { Points as z } from "./components/points/index.js";
|
|
@@ -8,7 +8,7 @@ import "./notification/index.js";
|
|
|
8
8
|
import "./notification/onboarding-inapp/index.js";
|
|
9
9
|
import "./notification/onboarding-inapp/styles.js";
|
|
10
10
|
import "./notification/question-inapp/index.js";
|
|
11
|
-
import "../../icon-exit-
|
|
11
|
+
import "../../icon-exit-6a55bb8f.js";
|
|
12
12
|
import "./notification/question-inapp/styles.js";
|
|
13
13
|
import "./notification/styles.js";
|
|
14
14
|
import "./styles.js";
|
|
@@ -8,7 +8,7 @@ import "./notification/onboarding-inapp/index.js";
|
|
|
8
8
|
import "./notification/onboarding-inapp/styles.js";
|
|
9
9
|
import "@linaria/react";
|
|
10
10
|
import "./notification/question-inapp/index.js";
|
|
11
|
-
import "../../icon-exit-
|
|
11
|
+
import "../../icon-exit-6a55bb8f.js";
|
|
12
12
|
import "./notification/question-inapp/styles.js";
|
|
13
13
|
import "./notification/styles.js";
|
|
14
14
|
const S = ({ notificationsStore: i }) => {
|
|
@@ -6,7 +6,7 @@ import { QuestionInApp as e } from "./question-inapp/index.js";
|
|
|
6
6
|
import { NotificationContainer as a } from "./styles.js";
|
|
7
7
|
import "./onboarding-inapp/styles.js";
|
|
8
8
|
import "@linaria/react";
|
|
9
|
-
import "../../../icon-exit-
|
|
9
|
+
import "../../../icon-exit-6a55bb8f.js";
|
|
10
10
|
import "./question-inapp/styles.js";
|
|
11
11
|
const l = {
|
|
12
12
|
[i.ONBOARDING]: N,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as t, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import {
|
|
2
|
+
import { useCallback as c } from "react";
|
|
3
|
+
import { i as s } from "../../../../icon-exit-6a55bb8f.js";
|
|
4
4
|
import { Container as d, IconWrap as m, Icon as C, Content as h, TitleWrap as I, Title as f, CloseBtnWrap as k, CloseBtn as u, CloseIcon as x } from "./styles.js";
|
|
5
5
|
import "@linaria/react";
|
|
6
|
-
const B = ({ close:
|
|
7
|
-
const e =
|
|
6
|
+
const B = ({ close: i, action: p, data: { color: r, icon: o, title: a } }) => {
|
|
7
|
+
const e = c(
|
|
8
8
|
(l) => {
|
|
9
|
-
l.stopPropagation(),
|
|
9
|
+
l.stopPropagation(), i == null || i();
|
|
10
10
|
},
|
|
11
|
-
[
|
|
11
|
+
[i]
|
|
12
12
|
);
|
|
13
13
|
return /* @__PURE__ */ t(d, { onClick: p, children: [
|
|
14
|
-
/* @__PURE__ */ n(m, { style: r ? { backgroundColor: r } : {}, children:
|
|
14
|
+
/* @__PURE__ */ n(m, { style: r ? { backgroundColor: r } : {}, children: o && /* @__PURE__ */ n(C, { alt: "in-app-icon", src: o }) }),
|
|
15
15
|
/* @__PURE__ */ t(h, { children: [
|
|
16
|
-
/* @__PURE__ */ n(I, { children: /* @__PURE__ */ n(f, { id: "in-app-title", children:
|
|
16
|
+
/* @__PURE__ */ n(I, { children: /* @__PURE__ */ n(f, { id: "in-app-title", children: a || "" }) }),
|
|
17
17
|
/* @__PURE__ */ n(k, { children: /* @__PURE__ */ n(u, { onClick: e, children: /* @__PURE__ */ n(x, { alt: "close-in-app-icon", src: s }) }) })
|
|
18
18
|
] })
|
|
19
19
|
] });
|
|
@@ -10,6 +10,7 @@ const R = {
|
|
|
10
10
|
BG_TRANSPARENT_VOTE_PROGRESS_ERROR: "rgba(205, 37, 37, 0.5)",
|
|
11
11
|
BG_TRANSPARENT_USER_CONTAINER: "rgba(255, 255, 255, 0.05)",
|
|
12
12
|
BG_TRANSPARENT_ONBOARDING_INAPP: "rgba(138, 159, 182, 0.2)",
|
|
13
|
+
LEADERBOARD_UNIT: "rgba(255, 255, 255, 0.5)",
|
|
13
14
|
BLUE_PRIMARY: "#1589EE",
|
|
14
15
|
RED_PRIMARY: "#CD2525",
|
|
15
16
|
RED_SECONDARY: "#EB5757",
|
|
@@ -28,11 +29,11 @@ const R = {
|
|
|
28
29
|
DIVIDER_COLOR_PRIMARY: "#2d3135",
|
|
29
30
|
DIVIDER_COLOR_SECONDARY: "#53565a",
|
|
30
31
|
GREEN_PRIMARY_BTN: "#009B77"
|
|
31
|
-
},
|
|
32
|
+
}, E = {
|
|
32
33
|
FAMILY: "Roboto, sans-serif",
|
|
33
34
|
COLOR: "#fff"
|
|
34
35
|
};
|
|
35
36
|
export {
|
|
36
37
|
R as COLORS,
|
|
37
|
-
|
|
38
|
+
E as FONT
|
|
38
39
|
};
|
package/lib/lib/theme/theme.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css as R } from "@linaria/core";
|
|
2
2
|
import { COLORS as r, FONT as o } from "./constants.js";
|
|
3
|
-
const
|
|
3
|
+
const n = R`
|
|
4
4
|
--color-bg-transparent: ${r.BG_TRANSPARENT};
|
|
5
5
|
--color-transparent-vote-container: ${r.BG_TRANSPARENT_VOTE_CONTAINER};
|
|
6
6
|
--color-transparent-item: ${r.BG_TRANSPARENT_ITEM};
|
|
@@ -9,6 +9,7 @@ const _ = R`
|
|
|
9
9
|
--color-bg-transparent-item-vote: ${r.BG_TRANSPARENT_ITEM_VOTE};
|
|
10
10
|
--color-transparent-user-container: ${r.BG_TRANSPARENT_USER_CONTAINER};
|
|
11
11
|
--color-transparent-onboarding-inapp: ${r.BG_TRANSPARENT_ONBOARDING_INAPP};
|
|
12
|
+
--color-leaderboard-unit: ${r.LEADERBOARD_UNIT};
|
|
12
13
|
--color-blue-primary: ${r.BLUE_PRIMARY};
|
|
13
14
|
--color-red-primary: ${r.RED_PRIMARY};
|
|
14
15
|
--color-red-secondary: ${r.RED_SECONDARY};
|
|
@@ -16,6 +17,7 @@ const _ = R`
|
|
|
16
17
|
--color-white: ${r.WHITE};
|
|
17
18
|
--color-red-2: ${r.RED_2};
|
|
18
19
|
--color-grey-primary: ${r.GREY_PRIMARY};
|
|
20
|
+
--color-grey-primary-onboarding-inapp: ${r.GREY_PRIMARY_ONBOARDING_INAPP};
|
|
19
21
|
--color-divider-color-primary: ${r.DIVIDER_COLOR_PRIMARY};
|
|
20
22
|
--color-divider-color-secondary: ${r.DIVIDER_COLOR_SECONDARY};
|
|
21
23
|
--color-green-primary-btn: ${r.GREEN_PRIMARY_BTN};
|
|
@@ -23,5 +25,5 @@ const _ = R`
|
|
|
23
25
|
--font-color: ${o.COLOR};
|
|
24
26
|
`;
|
|
25
27
|
export {
|
|
26
|
-
|
|
28
|
+
n as theme
|
|
27
29
|
};
|