@streamlayer/react-ui 0.64.0 → 0.64.1
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/ui/app/Notifications/Onboarding/index.js +1 -1
- package/lib/ui/gamification/onboarding/index.js +8 -9
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.js +12 -13
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +13 -14
- package/package.json +2 -2
|
@@ -9,7 +9,6 @@ import "../../../gamification/onboarding/slides/onboarding-instructions/index.js
|
|
|
9
9
|
import "../../../lottie/index.js";
|
|
10
10
|
import "@lottiefiles/react-lottie-player";
|
|
11
11
|
import "../../../gamification/onboarding/slides/onboarding-instructions/styles.js";
|
|
12
|
-
import "@linaria/core";
|
|
13
12
|
import "../../../gamification/onboarding/slides/onboarding-invite-card/index.js";
|
|
14
13
|
import "../../../icons/index.js";
|
|
15
14
|
import "../../../gamification/onboarding/slides/onboarding-invite-card/styles.js";
|
|
@@ -18,6 +17,7 @@ import "../../../gamification/onboarding/slides/onboarding-rules/styles.js";
|
|
|
18
17
|
import "../../../gamification/onboarding/styles.js";
|
|
19
18
|
import "../../../button/index.js";
|
|
20
19
|
import "../../../button/styles.js";
|
|
20
|
+
import "@linaria/core";
|
|
21
21
|
const C = g(f)`
|
|
22
22
|
height: 100%;
|
|
23
23
|
|
|
@@ -8,7 +8,6 @@ import { Container as A, OnboardingHeader as B, CloseBtn as z, IconClose as E, C
|
|
|
8
8
|
import "../../lottie/index.js";
|
|
9
9
|
import "@lottiefiles/react-lottie-player";
|
|
10
10
|
import "./slides/onboarding-instructions/styles.js";
|
|
11
|
-
import "@linaria/core";
|
|
12
11
|
import "@linaria/react";
|
|
13
12
|
import "../../icons/index.js";
|
|
14
13
|
import "./slides/onboarding-invite-card/styles.js";
|
|
@@ -19,13 +18,13 @@ const e = {
|
|
|
19
18
|
steps: !1,
|
|
20
19
|
rules: !1,
|
|
21
20
|
inviteCard: !1
|
|
22
|
-
},
|
|
21
|
+
}, s = ({
|
|
23
22
|
gamification: f,
|
|
24
23
|
steps: i,
|
|
25
24
|
rules: n,
|
|
26
25
|
rulesBtnLabel: h,
|
|
27
26
|
rulesTitle: b,
|
|
28
|
-
primaryColor:
|
|
27
|
+
primaryColor: d,
|
|
29
28
|
inviteLink: C,
|
|
30
29
|
socialLinks: u,
|
|
31
30
|
inviteCardTitle: S,
|
|
@@ -33,27 +32,27 @@ const e = {
|
|
|
33
32
|
inviteCardBtnLabel: v,
|
|
34
33
|
onClose: O
|
|
35
34
|
}) => {
|
|
36
|
-
const [a,
|
|
35
|
+
const [a, m] = g(0), [t, r] = g(e);
|
|
37
36
|
N(() => {
|
|
38
37
|
i != null && i.length ? r({ ...e, steps: !0 }) : n != null && n.length ? r({ ...e, rules: !0 }) : r({ ...e, inviteCard: !0 });
|
|
39
38
|
}, []);
|
|
40
39
|
const p = k(() => {
|
|
41
|
-
i != null && i.length && a < i.length - 1 ?
|
|
42
|
-
}, [a, i == null ? void 0 : i.length, n == null ? void 0 : n.length, t,
|
|
40
|
+
i != null && i.length && a < i.length - 1 ? m((l) => ++l) : n != null && n.length && t.steps ? r({ ...e, rules: !0 }) : t.rules && r({ ...e, inviteCard: !0 });
|
|
41
|
+
}, [a, i == null ? void 0 : i.length, n == null ? void 0 : n.length, t, m, r]), I = async () => {
|
|
43
42
|
await f.onboardingStatus.submitInplay();
|
|
44
43
|
};
|
|
45
44
|
return /* @__PURE__ */ o(D, { children: ({ width: l, height: x }) => /* @__PURE__ */ c(A, { style: { width: l, height: x }, children: [
|
|
46
45
|
/* @__PURE__ */ o(B, { children: /* @__PURE__ */ o(z, { onClick: O, children: /* @__PURE__ */ o(E, { name: "icon-close-btn-gray" }) }) }),
|
|
47
46
|
/* @__PURE__ */ c(F, { children: [
|
|
48
47
|
t.steps && (i == null ? void 0 : i.length) && /* @__PURE__ */ o(T, { stepsCount: i.length, currentStep: a, ...i[a] }),
|
|
49
|
-
t.rules && /* @__PURE__ */ o(w, { rules: n, rulesTitle: b, primaryColor:
|
|
48
|
+
t.rules && /* @__PURE__ */ o(w, { rules: n, rulesTitle: b, primaryColor: d }),
|
|
50
49
|
t.inviteCard && /* @__PURE__ */ o(
|
|
51
50
|
j,
|
|
52
51
|
{
|
|
53
52
|
inviteLink: C,
|
|
54
53
|
inviteCardTitle: S,
|
|
55
54
|
inviteCardSubtext: y,
|
|
56
|
-
primaryColor:
|
|
55
|
+
primaryColor: d,
|
|
57
56
|
socialLinks: u
|
|
58
57
|
}
|
|
59
58
|
)
|
|
@@ -62,5 +61,5 @@ const e = {
|
|
|
62
61
|
] }) });
|
|
63
62
|
};
|
|
64
63
|
export {
|
|
65
|
-
|
|
64
|
+
s as Onboarding
|
|
66
65
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Lottie as
|
|
3
|
-
import { Container as p, Content as
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Lottie as m } from "../../../../lottie/index.js";
|
|
3
|
+
import { Container as p, Content as a, Graphic as d, Headline as s, StepsContainer as h, StepIndicator as l } from "./styles.js";
|
|
4
4
|
import "@lottiefiles/react-lottie-player";
|
|
5
5
|
import "react-virtualized-auto-sizer";
|
|
6
|
-
import "@linaria/core";
|
|
7
6
|
import "@linaria/react";
|
|
8
|
-
const
|
|
9
|
-
graphicSrc:
|
|
7
|
+
const S = ({
|
|
8
|
+
graphicSrc: i,
|
|
10
9
|
headline: t,
|
|
11
10
|
stepsCount: e,
|
|
12
|
-
currentStep:
|
|
13
|
-
}) => /* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */ r(
|
|
16
|
-
t && /* @__PURE__ */ r(
|
|
11
|
+
currentStep: c
|
|
12
|
+
}) => /* @__PURE__ */ o(p, { children: [
|
|
13
|
+
/* @__PURE__ */ o(a, { children: [
|
|
14
|
+
/* @__PURE__ */ r(d, { children: /* @__PURE__ */ r(m, { src: i }) }),
|
|
15
|
+
t && /* @__PURE__ */ r(s, { children: t })
|
|
17
16
|
] }),
|
|
18
|
-
/* @__PURE__ */ r(
|
|
17
|
+
/* @__PURE__ */ r(h, { children: Array.from({ length: e }).map((f, n) => /* @__PURE__ */ r(l, { "data-active": c === n }, n)) })
|
|
19
18
|
] });
|
|
20
19
|
export {
|
|
21
|
-
|
|
20
|
+
S as OnboardingInstructions
|
|
22
21
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
3
|
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const Graphic: import("@linaria/
|
|
4
|
+
export declare const Graphic: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
5
|
export declare const Headline: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
6
|
export declare const StepsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
7
|
export declare const StepIndicator: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { css as e } from "@linaria/core";
|
|
2
1
|
import { styled as t } from "@linaria/react";
|
|
3
|
-
const
|
|
2
|
+
const o = t.div`
|
|
4
3
|
display: flex;
|
|
5
4
|
flex-grow: 1;
|
|
6
5
|
flex-direction: column;
|
|
7
6
|
padding-bottom: 24px;
|
|
8
|
-
`,
|
|
7
|
+
`, n = t.div`
|
|
9
8
|
display: flex;
|
|
10
9
|
flex-direction: column;
|
|
11
10
|
justify-content: center;
|
|
12
11
|
align-items: center;
|
|
13
12
|
height: 100%;
|
|
14
13
|
padding: 0 16px 32px;
|
|
15
|
-
`,
|
|
14
|
+
`, i = t.div`
|
|
16
15
|
display: flex;
|
|
17
16
|
flex-grow: 1;
|
|
18
|
-
|
|
19
|
-
`,
|
|
17
|
+
width: 100%;
|
|
18
|
+
`, r = t.div`
|
|
20
19
|
max-width: 270px;
|
|
21
20
|
color: var(--color-primary-green1);
|
|
22
21
|
font-family: var(--font-serif);
|
|
@@ -24,11 +23,11 @@ const r = t.div`
|
|
|
24
23
|
font-weight: 400;
|
|
25
24
|
line-height: 30px;
|
|
26
25
|
text-align: center;
|
|
27
|
-
`,
|
|
26
|
+
`, a = t.div`
|
|
28
27
|
display: flex;
|
|
29
28
|
justify-content: center;
|
|
30
29
|
column-gap: 8px;
|
|
31
|
-
`,
|
|
30
|
+
`, c = t.span`
|
|
32
31
|
width: 6px;
|
|
33
32
|
height: 6px;
|
|
34
33
|
border-radius: 50%;
|
|
@@ -39,10 +38,10 @@ const r = t.div`
|
|
|
39
38
|
}
|
|
40
39
|
`;
|
|
41
40
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
o as Container,
|
|
42
|
+
n as Content,
|
|
43
|
+
i as Graphic,
|
|
44
|
+
r as Headline,
|
|
45
|
+
c as StepIndicator,
|
|
46
|
+
a as StepsContainer
|
|
48
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"vite-plugin-svgr": "^4.1.0",
|
|
85
85
|
"vite-svg-loader": "^4.0.0",
|
|
86
86
|
"vite-tsconfig-paths": "^4.2.1",
|
|
87
|
-
"@streamlayer/react": "^0.29.
|
|
87
|
+
"@streamlayer/react": "^0.29.6"
|
|
88
88
|
}
|
|
89
89
|
}
|