@streamlayer/react-ui 0.5.7 → 0.23.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/README.md +1 -1
- package/lib/icon-chevron-138a557c.js +4 -0
- package/lib/icon-exit-d3f9fc80.js +4 -0
- package/lib/index-d5620d2c.js +71 -0
- package/lib/index.js +91 -0
- package/lib/lib/demo/Gamification.js +95 -0
- package/lib/lib/demo/Highlights.js +59 -0
- package/lib/lib/demo/Login.js +25 -0
- package/lib/lib/demo/components/EventProvider.js +5 -0
- package/lib/lib/demo/components/Insight.js +31 -0
- package/lib/lib/demo/components/Insights.js +16 -0
- package/lib/lib/demo/components/Question.js +101 -0
- package/lib/lib/demo/components/QuestionsList.js +16 -0
- package/lib/lib/demo/components/UserSummary.js +32 -0
- package/lib/lib/demo/components/index.js +59 -0
- package/lib/lib/demo/index.js +126 -0
- package/lib/lib/demo/styles.js +58 -0
- package/lib/lib/gamification/common-header/index.js +14 -0
- package/lib/lib/gamification/common-header/styles.js +31 -0
- package/lib/lib/gamification/detailed-insight/index.js +29 -0
- package/lib/lib/gamification/detailed-insight/styles.js +62 -0
- package/lib/lib/gamification/insight/index.js +26 -0
- package/lib/lib/gamification/insight/styles.js +65 -0
- package/lib/lib/gamification/insight-list/index.js +11 -0
- package/lib/lib/gamification/insight-list/styles.js +20 -0
- package/lib/lib/gamification/onboarding/components/onboarding-slides/onboarding-instructions/index.js +10 -0
- package/lib/lib/gamification/onboarding/components/onboarding-slides/onboarding-instructions/styles.js +30 -0
- package/lib/lib/gamification/onboarding/components/onboarding-slides/onboarding-invite-card/index.js +17 -0
- package/lib/lib/gamification/onboarding/components/onboarding-slides/onboarding-invite-card/styles.js +55 -0
- package/lib/lib/gamification/onboarding/components/onboarding-slides/onboarding-rules/index.js +13 -0
- package/lib/lib/gamification/onboarding/components/onboarding-slides/onboarding-rules/styles.js +43 -0
- package/lib/lib/gamification/onboarding/index.js +66 -0
- package/lib/lib/gamification/onboarding/styles.js +69 -0
- package/lib/lib/gamification/question/index.js +39 -0
- package/{src → lib}/lib/gamification/question/styles.js +30 -28
- package/lib/lib/gamification/question-list/index.js +14 -0
- package/{src → lib}/lib/gamification/question-list/styles.js +11 -9
- package/lib/lib/gamification/user-statistics/components/rank/index.js +10 -0
- package/{src → lib}/lib/gamification/user-statistics/components/rank/styles.js +9 -7
- package/lib/lib/gamification/user-statistics/components/statistics/index.js +10 -0
- package/{src → lib}/lib/gamification/user-statistics/components/statistics/styles.js +7 -5
- package/lib/lib/gamification/user-statistics/index.js +57 -0
- package/{src → lib}/lib/gamification/user-statistics/styles.js +52 -37
- package/lib/lib/gamification/vote/components/voting-header/components/points/index.js +13 -0
- package/{src → lib}/lib/gamification/vote/components/voting-header/components/points/styles.js +13 -11
- package/lib/lib/gamification/vote/components/voting-header/components/timer/index.js +28 -0
- package/lib/lib/gamification/vote/components/voting-header/components/timer/styles.js +8 -0
- package/lib/lib/gamification/vote/components/voting-header/index.js +44 -0
- package/{src → lib}/lib/gamification/vote/components/voting-header/styles.js +22 -19
- package/lib/lib/gamification/vote/components/voting-option/index.js +8 -0
- package/lib/lib/gamification/vote/components/voting-option/styles.js +96 -0
- package/lib/lib/gamification/vote/index.js +51 -0
- package/{src → lib}/lib/gamification/vote/styles.js +21 -19
- package/lib/lib/gamification/vote/types.d.js +1 -0
- package/lib/lib/login/index.js +70 -0
- package/{src/lib/gamification → lib/lib}/login/styles.js +24 -20
- package/lib/lib/notifications/decorator.js +64 -0
- package/lib/lib/notifications/index.js +28 -0
- package/lib/lib/notifications/notification/index.js +36 -0
- package/lib/lib/notifications/notification/onboarding-inapp/index.js +25 -0
- package/lib/lib/notifications/notification/onboarding-inapp/styles.js +77 -0
- package/lib/lib/notifications/notification/question-inapp/index.js +23 -0
- package/lib/lib/notifications/notification/question-inapp/styles.js +61 -0
- package/lib/lib/notifications/notification/styles.js +32 -0
- package/lib/lib/notifications/styles.js +15 -0
- package/lib/lib/theme/constants.js +38 -0
- package/lib/lib/theme/index.js +8 -0
- package/lib/lib/theme/theme.js +27 -0
- package/lib/lib/user-account/index.js +27 -0
- package/lib/lib/user-account/styles.js +80 -0
- package/lib/utils/common.js +4 -0
- package/lib/utils/components/bypassLogin.js +63 -0
- package/lib/utils/components/developer.js +76 -0
- package/lib/utils/components/eventInput.js +56 -0
- package/lib/utils/createDemo.js +46 -0
- package/lib/utils/decorators/container.js +11 -0
- package/lib/utils/decorators/styles.js +27 -0
- package/lib/utils/login.js +25 -0
- package/lib/utils/storage.js +36 -0
- package/lib/utils/useStreamLayerApp.js +25 -0
- package/package.json +49 -23
- package/src/assets/demo-bg.webp +0 -0
- package/src/assets/icons/fedex.svg +0 -7
- package/src/assets/icons/icon-check-green.svg +0 -5
- package/src/assets/icons/icon-check-white.svg +0 -5
- package/src/assets/icons/icon-check.svg +0 -5
- package/src/assets/icons/icon-chevron.svg +0 -5
- package/src/assets/icons/icon-circle-arrow-right.svg +0 -4
- package/src/assets/icons/icon-close.svg +0 -5
- package/src/assets/icons/icon-cross.svg +0 -6
- package/src/assets/icons/icon-exit.svg +0 -5
- package/src/assets/icons/icon-poll.svg +0 -5
- package/src/assets/icons/icon-prediction.svg +0 -5
- package/src/assets/icons/icon-thumb-down.svg +0 -3
- package/src/assets/icons/icon-trivia.svg +0 -5
- package/src/assets/icons/icon-trophy-green.svg +0 -5
- package/src/assets/icons/icon-trophy.svg +0 -5
- package/src/index.d.ts +0 -10
- package/src/index.js +0 -11
- package/src/index.js.map +0 -1
- package/src/lib/demo/Gamification.d.ts +0 -7
- package/src/lib/demo/Gamification.js +0 -30
- package/src/lib/demo/Gamification.js.map +0 -1
- package/src/lib/demo/Login.d.ts +0 -5
- package/src/lib/demo/Login.js +0 -15
- package/src/lib/demo/Login.js.map +0 -1
- package/src/lib/demo/components/InPlayGame.d.ts +0 -6
- package/src/lib/demo/components/InPlayGame.js +0 -6
- package/src/lib/demo/components/InPlayGame.js.map +0 -1
- package/src/lib/demo/components/Notifications.d.ts +0 -6
- package/src/lib/demo/components/Notifications.js +0 -37
- package/src/lib/demo/components/Notifications.js.map +0 -1
- package/src/lib/demo/components/Question.d.ts +0 -7
- package/src/lib/demo/components/Question.js +0 -61
- package/src/lib/demo/components/Question.js.map +0 -1
- package/src/lib/demo/components/QuestionsList.d.ts +0 -6
- package/src/lib/demo/components/QuestionsList.js +0 -13
- package/src/lib/demo/components/QuestionsList.js.map +0 -1
- package/src/lib/demo/components/UserSummary.d.ts +0 -5
- package/src/lib/demo/components/UserSummary.js +0 -11
- package/src/lib/demo/components/UserSummary.js.map +0 -1
- package/src/lib/demo/components/index.d.ts +0 -5
- package/src/lib/demo/components/index.js +0 -6
- package/src/lib/demo/components/index.js.map +0 -1
- package/src/lib/demo/index.d.ts +0 -5
- package/src/lib/demo/index.js +0 -26
- package/src/lib/demo/index.js.map +0 -1
- package/src/lib/demo/styles.d.ts +0 -13
- package/src/lib/demo/styles.js +0 -14
- package/src/lib/demo/styles.js.map +0 -1
- package/src/lib/gamification/inapp/index.d.ts +0 -13
- package/src/lib/gamification/inapp/index.js +0 -12
- package/src/lib/gamification/inapp/index.js.map +0 -1
- package/src/lib/gamification/inapp/styles.d.ts +0 -37
- package/src/lib/gamification/inapp/styles.js +0 -74
- package/src/lib/gamification/inapp/styles.js.map +0 -1
- package/src/lib/gamification/login/index.d.ts +0 -7
- package/src/lib/gamification/login/index.js +0 -54
- package/src/lib/gamification/login/index.js.map +0 -1
- package/src/lib/gamification/login/styles.d.ts +0 -29
- package/src/lib/gamification/login/styles.js.map +0 -1
- package/src/lib/gamification/onboarding/index.d.ts +0 -6
- package/src/lib/gamification/onboarding/index.js +0 -4
- package/src/lib/gamification/onboarding/index.js.map +0 -1
- package/src/lib/gamification/onboarding/styles.d.ts +0 -21
- package/src/lib/gamification/onboarding/styles.js +0 -41
- package/src/lib/gamification/onboarding/styles.js.map +0 -1
- package/src/lib/gamification/question/index.d.ts +0 -5
- package/src/lib/gamification/question/index.js +0 -28
- package/src/lib/gamification/question/index.js.map +0 -1
- package/src/lib/gamification/question/styles.d.ts +0 -45
- package/src/lib/gamification/question/styles.js.map +0 -1
- package/src/lib/gamification/question-list/index.d.ts +0 -8
- package/src/lib/gamification/question-list/index.js +0 -7
- package/src/lib/gamification/question-list/index.js.map +0 -1
- package/src/lib/gamification/question-list/styles.d.ts +0 -13
- package/src/lib/gamification/question-list/styles.js.map +0 -1
- package/src/lib/gamification/user-statistics/components/rank/index.d.ts +0 -7
- package/src/lib/gamification/user-statistics/components/rank/index.js +0 -4
- package/src/lib/gamification/user-statistics/components/rank/index.js.map +0 -1
- package/src/lib/gamification/user-statistics/components/rank/styles.d.ts +0 -13
- package/src/lib/gamification/user-statistics/components/rank/styles.js.map +0 -1
- package/src/lib/gamification/user-statistics/components/statistics/index.d.ts +0 -7
- package/src/lib/gamification/user-statistics/components/statistics/index.js +0 -4
- package/src/lib/gamification/user-statistics/components/statistics/index.js.map +0 -1
- package/src/lib/gamification/user-statistics/components/statistics/styles.d.ts +0 -9
- package/src/lib/gamification/user-statistics/components/statistics/styles.js.map +0 -1
- package/src/lib/gamification/user-statistics/index.d.ts +0 -15
- package/src/lib/gamification/user-statistics/index.js +0 -14
- package/src/lib/gamification/user-statistics/index.js.map +0 -1
- package/src/lib/gamification/user-statistics/styles.d.ts +0 -57
- package/src/lib/gamification/user-statistics/styles.js.map +0 -1
- package/src/lib/gamification/vote/components/voting-header/components/points/index.d.ts +0 -6
- package/src/lib/gamification/vote/components/voting-header/components/points/index.js +0 -4
- package/src/lib/gamification/vote/components/voting-header/components/points/index.js.map +0 -1
- package/src/lib/gamification/vote/components/voting-header/components/points/styles.d.ts +0 -21
- package/src/lib/gamification/vote/components/voting-header/components/points/styles.js.map +0 -1
- package/src/lib/gamification/vote/components/voting-header/components/timer/index.d.ts +0 -8
- package/src/lib/gamification/vote/components/voting-header/components/timer/index.js +0 -19
- package/src/lib/gamification/vote/components/voting-header/components/timer/index.js.map +0 -1
- package/src/lib/gamification/vote/components/voting-header/components/timer/styles.d.ts +0 -7
- package/src/lib/gamification/vote/components/voting-header/components/timer/styles.js +0 -6
- package/src/lib/gamification/vote/components/voting-header/components/timer/styles.js.map +0 -1
- package/src/lib/gamification/vote/components/voting-header/index.d.ts +0 -12
- package/src/lib/gamification/vote/components/voting-header/index.js +0 -17
- package/src/lib/gamification/vote/components/voting-header/index.js.map +0 -1
- package/src/lib/gamification/vote/components/voting-header/styles.d.ts +0 -35
- package/src/lib/gamification/vote/components/voting-header/styles.js.map +0 -1
- package/src/lib/gamification/vote/components/voting-option/index.d.ts +0 -17
- package/src/lib/gamification/vote/components/voting-option/index.js +0 -14
- package/src/lib/gamification/vote/components/voting-option/index.js.map +0 -1
- package/src/lib/gamification/vote/components/voting-option/styles.d.ts +0 -49
- package/src/lib/gamification/vote/components/voting-option/styles.js +0 -85
- package/src/lib/gamification/vote/components/voting-option/styles.js.map +0 -1
- package/src/lib/gamification/vote/index.d.ts +0 -13
- package/src/lib/gamification/vote/index.js +0 -22
- package/src/lib/gamification/vote/index.js.map +0 -1
- package/src/lib/gamification/vote/styles.d.ts +0 -33
- package/src/lib/gamification/vote/styles.js.map +0 -1
- package/src/lib/theme/index.d.ts +0 -4
- package/src/lib/theme/index.js +0 -5
- package/src/lib/theme/index.js.map +0 -1
- package/src/lib/theme/theme.d.ts +0 -41
- package/src/lib/theme/theme.js +0 -35
- package/src/lib/theme/theme.js.map +0 -1
- package/src/utils/login.d.ts +0 -3
- package/src/utils/login.js +0 -28
- package/src/utils/login.js.map +0 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { jsx as i, jsxs as s, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { FeatureStatus as l } from "@streamlayer/sdk-web-interfaces";
|
|
3
|
+
import { AvailableFeatures as y } from "@streamlayer/sdk-web-features";
|
|
4
|
+
import { Gamification as S, Highlights as b } from "@streamlayer/feature-gamification";
|
|
5
|
+
import { useState as C, useMemo as u, useEffect as F } from "react";
|
|
6
|
+
import { useStore as c } from "@nanostores/react";
|
|
7
|
+
import { Notifications as B } from "../notifications/index.js";
|
|
8
|
+
import { GamificationComponent as w } from "./Gamification.js";
|
|
9
|
+
import { HighlightsComponent as x } from "./Highlights.js";
|
|
10
|
+
import { LoginComponent as R } from "./Login.js";
|
|
11
|
+
import { Buttons as j, Button as d } from "./styles.js";
|
|
12
|
+
import "../notifications/notification/index.js";
|
|
13
|
+
import "@streamlayer/sdk-web-notifications";
|
|
14
|
+
import "../notifications/notification/onboarding-inapp/index.js";
|
|
15
|
+
import "../notifications/notification/onboarding-inapp/styles.js";
|
|
16
|
+
import "@linaria/react";
|
|
17
|
+
import "../notifications/notification/question-inapp/index.js";
|
|
18
|
+
import "../../icon-exit-d3f9fc80.js";
|
|
19
|
+
import "../notifications/notification/question-inapp/styles.js";
|
|
20
|
+
import "../notifications/notification/styles.js";
|
|
21
|
+
import "../notifications/styles.js";
|
|
22
|
+
import "./components/UserSummary.js";
|
|
23
|
+
import "../gamification/user-statistics/index.js";
|
|
24
|
+
import "../../utils/common.js";
|
|
25
|
+
import "../gamification/user-statistics/components/statistics/index.js";
|
|
26
|
+
import "../gamification/user-statistics/components/statistics/styles.js";
|
|
27
|
+
import "../gamification/user-statistics/components/rank/index.js";
|
|
28
|
+
import "../gamification/user-statistics/components/rank/styles.js";
|
|
29
|
+
import "../gamification/user-statistics/styles.js";
|
|
30
|
+
import "./components/QuestionsList.js";
|
|
31
|
+
import "../gamification/question-list/index.js";
|
|
32
|
+
import "../gamification/question/index.js";
|
|
33
|
+
import "@streamlayer/sdk-web-types";
|
|
34
|
+
import "../../icon-chevron-138a557c.js";
|
|
35
|
+
import "../gamification/question/styles.js";
|
|
36
|
+
import "../gamification/question-list/styles.js";
|
|
37
|
+
import "./components/Question.js";
|
|
38
|
+
import "../gamification/vote/index.js";
|
|
39
|
+
import "../../index-d5620d2c.js";
|
|
40
|
+
import "../gamification/vote/components/voting-option/styles.js";
|
|
41
|
+
import "../gamification/vote/styles.js";
|
|
42
|
+
import "../gamification/vote/components/voting-header/index.js";
|
|
43
|
+
import "../gamification/vote/components/voting-header/components/timer/index.js";
|
|
44
|
+
import "react-countdown-circle-timer";
|
|
45
|
+
import "../theme/constants.js";
|
|
46
|
+
import "../gamification/vote/components/voting-header/components/timer/styles.js";
|
|
47
|
+
import "../gamification/vote/components/voting-header/styles.js";
|
|
48
|
+
import "../gamification/vote/components/voting-header/components/points/index.js";
|
|
49
|
+
import "../gamification/vote/components/voting-header/components/points/styles.js";
|
|
50
|
+
import "../gamification/onboarding/index.js";
|
|
51
|
+
import "../gamification/onboarding/styles.js";
|
|
52
|
+
import "../gamification/onboarding/components/onboarding-slides/onboarding-instructions/index.js";
|
|
53
|
+
import "../gamification/onboarding/components/onboarding-slides/onboarding-instructions/styles.js";
|
|
54
|
+
import "../gamification/onboarding/components/onboarding-slides/onboarding-rules/index.js";
|
|
55
|
+
import "../gamification/onboarding/components/onboarding-slides/onboarding-rules/styles.js";
|
|
56
|
+
import "../gamification/onboarding/components/onboarding-slides/onboarding-invite-card/index.js";
|
|
57
|
+
import "../gamification/onboarding/components/onboarding-slides/onboarding-invite-card/styles.js";
|
|
58
|
+
import "../gamification/insight/styles.js";
|
|
59
|
+
import "../gamification/insight-list/styles.js";
|
|
60
|
+
import "../gamification/common-header/styles.js";
|
|
61
|
+
import "../gamification/detailed-insight/styles.js";
|
|
62
|
+
import "./components/Insights.js";
|
|
63
|
+
import "../gamification/insight-list/index.js";
|
|
64
|
+
import "../gamification/insight/index.js";
|
|
65
|
+
import "./components/Insight.js";
|
|
66
|
+
import "../gamification/detailed-insight/index.js";
|
|
67
|
+
import "../gamification/common-header/index.js";
|
|
68
|
+
import "../login/index.js";
|
|
69
|
+
import "react-phone-number-input";
|
|
70
|
+
import "react-auth-code-input";
|
|
71
|
+
import "../../utils/login.js";
|
|
72
|
+
import "@connectrpc/connect-web";
|
|
73
|
+
import "@connectrpc/connect";
|
|
74
|
+
import "@streamlayer/sl-eslib/users/users_connect";
|
|
75
|
+
import "../login/styles.js";
|
|
76
|
+
const A = ({ activeFeature: o, sdk: r }) => {
|
|
77
|
+
const [e, p] = C(null), { organizationSettings: a, streamSettings: f } = c(r.sdkStore), g = u(() => {
|
|
78
|
+
const t = (f == null ? void 0 : f.data) || (a == null ? void 0 : a.data);
|
|
79
|
+
return t != null && t.overlays ? t.overlays : [];
|
|
80
|
+
}, [a, f]);
|
|
81
|
+
F(() => {
|
|
82
|
+
const t = r.getFeatures();
|
|
83
|
+
if (o)
|
|
84
|
+
for (const [m, n] of t)
|
|
85
|
+
m === o ? n.status.get() === l.Suspended && (n.enable(), p(n)) : n.status.get() === l.Ready && n.disable();
|
|
86
|
+
else {
|
|
87
|
+
for (const [, m] of t)
|
|
88
|
+
m.status.get() === l.Ready && m.disable();
|
|
89
|
+
p(null);
|
|
90
|
+
}
|
|
91
|
+
return () => {
|
|
92
|
+
for (const [, m] of t)
|
|
93
|
+
m.status.get() === l.Ready && m.disable();
|
|
94
|
+
};
|
|
95
|
+
}, [o, r]);
|
|
96
|
+
const h = u(() => e instanceof S ? e ? /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(w, { gamification: e, sdk: r }) }) : /* @__PURE__ */ i("div", { children: "wait gamification..." }) : e instanceof b ? e ? /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(x, { highlights: e, sdk: r }) }) : /* @__PURE__ */ i("div", { children: "wait highlights..." }) : null, [r, e]);
|
|
97
|
+
return /* @__PURE__ */ s("div", { children: [
|
|
98
|
+
/* @__PURE__ */ s(j, { children: [
|
|
99
|
+
/* @__PURE__ */ i(d, { onClick: () => r.logout(), children: "logout" }),
|
|
100
|
+
g.map((t) => /* @__PURE__ */ s(
|
|
101
|
+
d,
|
|
102
|
+
{
|
|
103
|
+
onClick: () => r.openFeature(t.type),
|
|
104
|
+
disabled: !(t.type in y),
|
|
105
|
+
"data-enableSdkButton": t.enableSdkButton.toString(),
|
|
106
|
+
"data-selected": t.type === o,
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ i("img", { src: t.icon, alt: "" }),
|
|
109
|
+
t.name
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
t.name
|
|
113
|
+
))
|
|
114
|
+
] }),
|
|
115
|
+
h
|
|
116
|
+
] });
|
|
117
|
+
}, _t = ({ sdk: o }) => {
|
|
118
|
+
const r = c(o.organizationStore()), e = c(o.getUserStore()), p = c(o.getActiveFeature());
|
|
119
|
+
return r.loading ? /* @__PURE__ */ i("div", { children: "authentication..." }) : r.data ? e.loading ? /* @__PURE__ */ i("div", { children: "authentication..." }) : e.data ? /* @__PURE__ */ s(v, { children: [
|
|
120
|
+
/* @__PURE__ */ i(B, { notificationsStore: o.getNotificationsStore() }),
|
|
121
|
+
/* @__PURE__ */ i(A, { sdk: o, activeFeature: p })
|
|
122
|
+
] }) : /* @__PURE__ */ i(R, { sdk: o }) : /* @__PURE__ */ i("div", { children: "wrong sdk key..." });
|
|
123
|
+
};
|
|
124
|
+
export {
|
|
125
|
+
_t as Demo
|
|
126
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { styled as o } from "@linaria/react";
|
|
2
|
+
const e = o.div`
|
|
3
|
+
position: relative;
|
|
4
|
+
height: 100%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
`, i = o.div`
|
|
7
|
+
margin-bottom: 15px;
|
|
8
|
+
`, r = o.div`
|
|
9
|
+
position: relative;
|
|
10
|
+
height: calc(100% - 160px);
|
|
11
|
+
`, n = o.div`
|
|
12
|
+
display: flex;
|
|
13
|
+
margin-bottom: 10px;
|
|
14
|
+
`, a = o.button`
|
|
15
|
+
background: rgb(29, 123, 255);
|
|
16
|
+
border: none;
|
|
17
|
+
color: #fff;
|
|
18
|
+
padding: 5px 6px;
|
|
19
|
+
border-radius: 3px;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
margin-right: 5px;
|
|
22
|
+
transition: all 0.3s ease-in;
|
|
23
|
+
|
|
24
|
+
& > img {
|
|
25
|
+
max-width: 10px;
|
|
26
|
+
max-height: 10px;
|
|
27
|
+
margin-right: 5px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:enabled:hover {
|
|
31
|
+
box-shadow: inset 0 0 0 2em rgb(2, 88, 208);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[data-selected='true'] {
|
|
35
|
+
box-shadow: inset 0 0 0 2em rgb(0, 60, 145);
|
|
36
|
+
|
|
37
|
+
&:enabled:hover {
|
|
38
|
+
box-shadow: inset 0 0 0 2em rgb(0, 60, 145);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:disabled {
|
|
43
|
+
opacity: 0.5;
|
|
44
|
+
background-color: gray;
|
|
45
|
+
cursor: default;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-enableSdkButton='false'] {
|
|
49
|
+
opacity: 0.7;
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
export {
|
|
53
|
+
a as Button,
|
|
54
|
+
n as Buttons,
|
|
55
|
+
e as DemoContainer,
|
|
56
|
+
r as QuestionsContainer,
|
|
57
|
+
i as UserStatisticsContainer
|
|
58
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs as j, jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import { c as A } from "../../../icon-exit-d3f9fc80.js";
|
|
3
|
+
import { Container as z, Button as g, HeaderIcon as i } from "./styles.js";
|
|
4
|
+
import "@linaria/react";
|
|
5
|
+
const x = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNNiAxMS45OTlDNiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4NTUgMTQuNTMyMyAyMSAxNC44NDU5IDIxQzE1LjA2MDcgMjEgMTUuMjU0NCAyMC45NDc1IDE1LjQyNzEgMjAuODQyNkMxNS41OTk4IDIwLjczNzcgMTUuNzM4NCAyMC41OTY1IDE1Ljg0MzEgMjAuNDE5MUMxNS45NDc3IDIwLjI0MTYgMTYgMjAuMDQyNSAxNiAxOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MTYgNC43ODcwOSAxNiA0LjUwMjMgMTYgNC4xNzgzNEMxNiAzLjk1NzQ5IDE1Ljk0NzcgMy43NTgzNSAxNS44NDMxIDMuNTgwOTFDMTUuNzM4NCAzLjQwMzQ3IDE1LjU5OTggMy4yNjIyOSAxNS40MjcxIDMuMTU3MzhDMTUuMjU0NCAzLjA1MjQ2IDE1LjA2MDcgMyAxNC44NDU5IDNDMTQuNTMyMyAzIDE0LjI2NDggMy4xMTE2OSAxNC4wNDM2IDMuMzM1MDhMNi4zODY4IDExLjA4NzhDNi4yNTU1MSAxMS4yMjI1IDYuMTU4NTMgMTEuMzY0NCA2LjA5NTg2IDExLjUxMzRDNi4wMzMxOCAxMS42NjI1IDYuMDAxMjMgMTEuODI0NCA2IDExLjk5OVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==", y = ({ icon: N, comeBack: D, close: I }) => /* @__PURE__ */ j(z, { children: [
|
|
6
|
+
/* @__PURE__ */ j("div", { children: [
|
|
7
|
+
D && /* @__PURE__ */ M(g, { onClick: D, children: /* @__PURE__ */ M("img", { alt: "header-back-icon", src: x }) }),
|
|
8
|
+
N && /* @__PURE__ */ M(i, { alt: "header-icon", src: N })
|
|
9
|
+
] }),
|
|
10
|
+
/* @__PURE__ */ M("div", { children: I && /* @__PURE__ */ M(g, { onClick: I, children: /* @__PURE__ */ M("img", { alt: "header-close-icon", src: A }) }) })
|
|
11
|
+
] });
|
|
12
|
+
export {
|
|
13
|
+
y as CommonHeader
|
|
14
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { styled as t } from "@linaria/react";
|
|
2
|
+
const o = t.div`
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
min-height: 35px;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
width: 100%;
|
|
8
|
+
align-items: center;
|
|
9
|
+
border-top-left-radius: 8px;
|
|
10
|
+
border-bottom-left-radius: 8px;
|
|
11
|
+
border-bottom: 1px solid #22262b;
|
|
12
|
+
margin-bottom: 20px;
|
|
13
|
+
`, n = t.button`
|
|
14
|
+
border: none;
|
|
15
|
+
outline: none;
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
padding: 5px;
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
`, r = t.img`
|
|
24
|
+
width: 24px;
|
|
25
|
+
height: 24px;
|
|
26
|
+
`;
|
|
27
|
+
export {
|
|
28
|
+
n as Button,
|
|
29
|
+
o as Container,
|
|
30
|
+
r as HeaderIcon
|
|
31
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as I, jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import { CommonHeader as Z } from "../common-header/index.js";
|
|
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-d3f9fc80.js";
|
|
5
|
+
import "../common-header/styles.js";
|
|
6
|
+
import "@linaria/react";
|
|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
+
closeInsight: N
|
|
15
|
+
}) => /* @__PURE__ */ I(g, { children: [
|
|
16
|
+
/* @__PURE__ */ M(Z, { close: t, comeBack: N }),
|
|
17
|
+
i && /* @__PURE__ */ M(l, { alt: "detail-insight-image", src: i }),
|
|
18
|
+
/* @__PURE__ */ I(o, { children: [
|
|
19
|
+
j && /* @__PURE__ */ M(n, { children: j }),
|
|
20
|
+
m && /* @__PURE__ */ M(d, { children: m })
|
|
21
|
+
] }),
|
|
22
|
+
c && z && /* @__PURE__ */ I(r, { href: c, target: "_blank", children: [
|
|
23
|
+
z,
|
|
24
|
+
/* @__PURE__ */ M(a, { alt: "link-icon", src: u })
|
|
25
|
+
] })
|
|
26
|
+
] });
|
|
27
|
+
export {
|
|
28
|
+
C as DetailedInsight
|
|
29
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { styled as o } from "@linaria/react";
|
|
2
|
+
const t = o.div`
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
color: var(--color-white);
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
padding: 16px 12px;
|
|
11
|
+
`, e = o.img`
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
width: 130px;
|
|
14
|
+
height: 130px;
|
|
15
|
+
border: 1px solid #7e7e7f;
|
|
16
|
+
margin-bottom: 8px;
|
|
17
|
+
`, n = o.div`
|
|
18
|
+
width: 100%;
|
|
19
|
+
margin-bottom: 8px;
|
|
20
|
+
`, r = o.div`
|
|
21
|
+
font-weight: 700;
|
|
22
|
+
margin-bottom: 8px;
|
|
23
|
+
`, d = o.div`
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
`, c = o.a`
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
color: var(--color-white);
|
|
29
|
+
font-size: 13px;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
background-color: var(--color-blue-question-action-btn);
|
|
32
|
+
padding: 10px 5px;
|
|
33
|
+
border-radius: 6px;
|
|
34
|
+
width: 100%;
|
|
35
|
+
display: inline-block;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
text-overflow: ellipsis;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
text-align: center;
|
|
41
|
+
|
|
42
|
+
&:active,
|
|
43
|
+
&:hover,
|
|
44
|
+
&:visited {
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
color: var(--color-white);
|
|
47
|
+
}
|
|
48
|
+
`, l = o.img`
|
|
49
|
+
width: 17px;
|
|
50
|
+
height: 16px;
|
|
51
|
+
vertical-align: middle;
|
|
52
|
+
margin-left: 10px;
|
|
53
|
+
`;
|
|
54
|
+
export {
|
|
55
|
+
c as AdditionalBtn,
|
|
56
|
+
n as AdditionalContent,
|
|
57
|
+
t as Container,
|
|
58
|
+
d as Description,
|
|
59
|
+
e as Image,
|
|
60
|
+
l as LinkIcon,
|
|
61
|
+
r as Title
|
|
62
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionImages as i } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { i as l } from "../../../icon-chevron-138a557c.js";
|
|
4
|
+
import { Container as h, Graphic as I, Content as a, Title as u, NextIcon as m, InsightIconDefault as p, InsightIconAbsolute as f, InsightIconCircle as g } from "./styles.js";
|
|
5
|
+
import "@linaria/react";
|
|
6
|
+
const C = (r, n) => {
|
|
7
|
+
switch (r) {
|
|
8
|
+
case i.ROUNDED:
|
|
9
|
+
return /* @__PURE__ */ t(g, { alt: "insight-icon", src: n });
|
|
10
|
+
case i.TRANSPARENT:
|
|
11
|
+
return /* @__PURE__ */ t(f, { alt: "insight-icon", src: n });
|
|
12
|
+
case i.CENTERED:
|
|
13
|
+
return /* @__PURE__ */ t(p, { alt: "insight-icon", src: n });
|
|
14
|
+
default:
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
}, R = ({ title: r, image: n, questionId: c, imageMode: s, openInsight: e }) => /* @__PURE__ */ o(h, { onClick: () => e(c), children: [
|
|
18
|
+
/* @__PURE__ */ t(I, { children: n && C(s, n) }),
|
|
19
|
+
/* @__PURE__ */ o(a, { children: [
|
|
20
|
+
/* @__PURE__ */ t(u, { children: r || "" }),
|
|
21
|
+
/* @__PURE__ */ t(m, { alt: "next-icon", src: l })
|
|
22
|
+
] })
|
|
23
|
+
] });
|
|
24
|
+
export {
|
|
25
|
+
R as Insight
|
|
26
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { styled as t } from "@linaria/react";
|
|
2
|
+
const e = t.div`
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-height: 55px;
|
|
7
|
+
height: 55px;
|
|
8
|
+
background-color: var(--color-transparent-item);
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
`, o = t.div`
|
|
12
|
+
display: flex;
|
|
13
|
+
flex: 1;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: center;
|
|
16
|
+
padding: 9px;
|
|
17
|
+
`, n = t.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
border-top-left-radius: 8px;
|
|
22
|
+
border-bottom-left-radius: 8px;
|
|
23
|
+
min-width: 60px;
|
|
24
|
+
width: 60px;
|
|
25
|
+
height: 100%;
|
|
26
|
+
background-color: var(--color-blue-question-action-btn);
|
|
27
|
+
position: relative;
|
|
28
|
+
`, r = t.img`
|
|
29
|
+
width: 35px;
|
|
30
|
+
height: 35px;
|
|
31
|
+
`, l = t.img`
|
|
32
|
+
width: 35px;
|
|
33
|
+
height: 35px;
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
`, s = t.img`
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 0;
|
|
38
|
+
bottom: 0;
|
|
39
|
+
width: 60px;
|
|
40
|
+
`, p = t.div`
|
|
41
|
+
color: var(--color-white);
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
font-weight: 400px;
|
|
44
|
+
display: -webkit-box;
|
|
45
|
+
-webkit-box-orient: vertical;
|
|
46
|
+
-webkit-line-clamp: 2;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
word-break: break-all;
|
|
49
|
+
text-overflow: ellipsis;
|
|
50
|
+
max-height: 100%;
|
|
51
|
+
margin-right: 35px;
|
|
52
|
+
`, a = t.img`
|
|
53
|
+
width: 16px;
|
|
54
|
+
height: 16px;
|
|
55
|
+
`;
|
|
56
|
+
export {
|
|
57
|
+
e as Container,
|
|
58
|
+
o as Content,
|
|
59
|
+
n as Graphic,
|
|
60
|
+
s as InsightIconAbsolute,
|
|
61
|
+
l as InsightIconCircle,
|
|
62
|
+
r as InsightIconDefault,
|
|
63
|
+
a as NextIcon,
|
|
64
|
+
p as Title
|
|
65
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Insight as e } from "../insight/index.js";
|
|
3
|
+
import { Container as i, ItemsContainer as n } from "./styles.js";
|
|
4
|
+
import "@streamlayer/sdk-web-types";
|
|
5
|
+
import "../../../icon-chevron-138a557c.js";
|
|
6
|
+
import "../insight/styles.js";
|
|
7
|
+
import "@linaria/react";
|
|
8
|
+
const u = ({ insights: r, openInsight: m }) => /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o(n, { children: r == null ? void 0 : r.map((t) => /* @__PURE__ */ o(e, { openInsight: m, ...t }, t.questionId)) }) });
|
|
9
|
+
export {
|
|
10
|
+
u as InsightList
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { styled as o } from "@linaria/react";
|
|
2
|
+
const e = o.div`
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
border-radius: 13px;
|
|
6
|
+
height: 100%;
|
|
7
|
+
`, t = o.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
max-height: 100%;
|
|
12
|
+
|
|
13
|
+
& > div {
|
|
14
|
+
margin-bottom: 8px;
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
export {
|
|
18
|
+
e as Container,
|
|
19
|
+
t as ItemsContainer
|
|
20
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { Container as o, Content as c, Graphic as e, Headline as s } from "./styles.js";
|
|
3
|
+
import "@linaria/react";
|
|
4
|
+
const d = ({ graphic: n, headline: i }) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ t(c, { children: [
|
|
5
|
+
/* @__PURE__ */ r(e, { alt: "graphic-img-instructions", src: n }),
|
|
6
|
+
/* @__PURE__ */ r(s, { children: i })
|
|
7
|
+
] }) });
|
|
8
|
+
export {
|
|
9
|
+
d as OnboardingInstructions
|
|
10
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { styled as t } from "@linaria/react";
|
|
2
|
+
const i = t.div`
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
`, n = t.div`
|
|
9
|
+
width: 80%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
`, o = t.img`
|
|
16
|
+
margin-bottom: 24px;
|
|
17
|
+
width: 100%;
|
|
18
|
+
`, d = t.div`
|
|
19
|
+
word-break: break-word;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
font-size: 17px;
|
|
22
|
+
padding: 0px 20px;
|
|
23
|
+
text-align: center;
|
|
24
|
+
`;
|
|
25
|
+
export {
|
|
26
|
+
i as Container,
|
|
27
|
+
n as Content,
|
|
28
|
+
o as Graphic,
|
|
29
|
+
d as Headline
|
|
30
|
+
};
|
package/lib/lib/gamification/onboarding/components/onboarding-slides/onboarding-invite-card/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as M, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { Container as z, Content as g, InviteGameIconWrap as A, InviteGameIcon as T, Heading as x, Subtext as E, InviteBtn as L } from "./styles.js";
|
|
3
|
+
import "@linaria/react";
|
|
4
|
+
const u = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyaWVuZHMiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNNC4xOTIzMSA3LjAzMTI1QzIuNjYzNDYgNy4wMzEyNSAxLjQyMzA4IDguMTk5NzMgMS40MjMwOCA5LjYzOTk0QzEuNDIzMDggMTEuMDgwMiAyLjY2MzQ2IDEyLjI0ODYgNC4xOTIzMSAxMi4yNDg2QzUuNzIxMTUgMTIuMjQ4NiA2Ljk2MTU0IDExLjA4MDIgNi45NjE1NCA5LjYzOTk0QzYuOTYxNTQgOC4xOTk3MyA1LjcyMTE1IDcuMDMxMjUgNC4xOTIzMSA3LjAzMTI1Wk00LjE5MjMxIDEyLjI0ODZDMi4xNjIyNiAxMi4yNDg2IDAuNSAxMy44MTQ1IDAuNSAxNS43MjY5VjE3LjYyOUMwLjUgMTcuNjI5IDEuNDIzMDggMTguMzM1NiA0LjE5MjMxIDE4LjMzNTZDNi45NjE1NCAxOC4zMzU2IDcuODg0NjEgMTcuNjI5IDcuODg0NjEgM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Ni40MTM1IDEuNVpNMTYuNDEzNSA3LjAzMTIxQzE0Ljk0NTYgNy4wMzEyMSAxMy42NzI3IDcuNzY5NDIgMTIuOTg4NCA4Ljg3NDk0QzE0LjQ1NjMgOS4wNTg1OSAxNS43MjE2IDkuNzg2MDEgMTYuNTA1MyAxMC44OTE1QzE2LjUwNTMgMTAuNTI0MiAxNi40MTM1IDEwLjE2NDEgMTYuNDEzNSA5Ljc5NjgxQzE2LjQxMzUgOC43ODEzMSAxNi43MTE3IDcuODU1ODQgMTcuMzAwNCA3LjExNzYzQzE3LjAwNiA3LjAyNCAxNi43MDc5IDcuMDMxMjEgMTYuNDEzNSA3LjAzMTIxWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC40Ii8+CjwvZz4KPC9zdmc+Cg==", c = ({
|
|
5
|
+
inviteCardTitle: j,
|
|
6
|
+
inviteCardSubtext: D,
|
|
7
|
+
primaryColor: N
|
|
8
|
+
}) => /* @__PURE__ */ M(z, { children: /* @__PURE__ */ I(g, { children: [
|
|
9
|
+
/* @__PURE__ */ M(A, { style: { backgroundColor: N }, children: /* @__PURE__ */ M(T, { alt: "invite-game-icon", src: u }) }),
|
|
10
|
+
/* @__PURE__ */ M(x, { children: j || "" }),
|
|
11
|
+
/* @__PURE__ */ M(E, { children: D || "" }),
|
|
12
|
+
/* @__PURE__ */ M(L, { onClick: () => {
|
|
13
|
+
}, style: { backgroundColor: N }, children: "Invite friends!" })
|
|
14
|
+
] }) });
|
|
15
|
+
export {
|
|
16
|
+
c as OnboardingInviteCard
|
|
17
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { styled as t } from "@linaria/react";
|
|
2
|
+
const e = t.div`
|
|
3
|
+
width: 100%;
|
|
4
|
+
flex: 1;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
`, o = t.div`
|
|
9
|
+
color: #fff;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
`, i = t.div`
|
|
14
|
+
width: 48px;
|
|
15
|
+
height: 48px;
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
margin-bottom: 24px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
background-color: var(--color-green-primary-btn);
|
|
22
|
+
`, r = t.img`
|
|
23
|
+
width: 24px;
|
|
24
|
+
height: 24px;
|
|
25
|
+
`, c = t.div`
|
|
26
|
+
font-size: 20px;
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
text-align: center;
|
|
29
|
+
margin-bottom: 8px;
|
|
30
|
+
`, a = t.div`
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
text-align: center;
|
|
34
|
+
`, p = t.button`
|
|
35
|
+
border: none;
|
|
36
|
+
outline: none;
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
border: 2px solid var(--color-green-primary-btn);
|
|
39
|
+
padding: 12px 16px;
|
|
40
|
+
color: #fff;
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
border-radius: 6px;
|
|
45
|
+
margin-top: 24px;
|
|
46
|
+
`;
|
|
47
|
+
export {
|
|
48
|
+
e as Container,
|
|
49
|
+
o as Content,
|
|
50
|
+
c as Heading,
|
|
51
|
+
p as InviteBtn,
|
|
52
|
+
r as InviteGameIcon,
|
|
53
|
+
i as InviteGameIconWrap,
|
|
54
|
+
a as Subtext
|
|
55
|
+
};
|
package/lib/lib/gamification/onboarding/components/onboarding-slides/onboarding-rules/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Container as c, Title as m, RulesList as d, RulesItem as h, RuleNumber as p, RuleText as s } from "./styles.js";
|
|
3
|
+
import "@linaria/react";
|
|
4
|
+
const b = ({ rules: e, rulesTitle: o, primaryColor: t }) => /* @__PURE__ */ n(c, { children: [
|
|
5
|
+
/* @__PURE__ */ r(m, { children: o }),
|
|
6
|
+
/* @__PURE__ */ r(d, { children: e == null ? void 0 : e.map((l, i) => /* @__PURE__ */ n(h, { children: [
|
|
7
|
+
/* @__PURE__ */ r(p, { style: { backgroundColor: t }, children: i + 1 }),
|
|
8
|
+
/* @__PURE__ */ r(s, { children: l })
|
|
9
|
+
] }, i)) })
|
|
10
|
+
] });
|
|
11
|
+
export {
|
|
12
|
+
b as OnboardingRules
|
|
13
|
+
};
|
package/lib/lib/gamification/onboarding/components/onboarding-slides/onboarding-rules/styles.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { styled as e } from "@linaria/react";
|
|
2
|
+
const t = e.div`
|
|
3
|
+
width: 100%;
|
|
4
|
+
flex: 1;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
color: #fff;
|
|
9
|
+
padding: 0px 8px;
|
|
10
|
+
`, o = e.div`
|
|
11
|
+
font-size: 20px;
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
`, r = e.div`
|
|
14
|
+
max-height: 190px;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
`, n = e.div`
|
|
17
|
+
display: flex;
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
margin-top: 24px;
|
|
20
|
+
`, d = e.div`
|
|
21
|
+
background-color: var(--color-green-primary-btn);
|
|
22
|
+
margin-right: 16px;
|
|
23
|
+
width: 36px;
|
|
24
|
+
height: 36px;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
`, l = e.div`
|
|
30
|
+
word-break: break-word;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
padding-right: 30px;
|
|
33
|
+
flex: 1;
|
|
34
|
+
max-height: 39px;
|
|
35
|
+
`;
|
|
36
|
+
export {
|
|
37
|
+
t as Container,
|
|
38
|
+
d as RuleNumber,
|
|
39
|
+
l as RuleText,
|
|
40
|
+
n as RulesItem,
|
|
41
|
+
r as RulesList,
|
|
42
|
+
o as Title
|
|
43
|
+
};
|