@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.
- package/lib/LeaderBoard_p8tnz3-4ed993c7.js +1 -0
- package/lib/assets/style.css +1 -0
- package/lib/index.js +4 -5
- package/lib/index_1ujx5m0-4ed993c7.js +1 -0
- package/lib/masters_18kvgvj-4ed993c7.js +1 -0
- package/lib/ui/app/Features/Gamification/Question.js +47 -34
- package/lib/ui/app/Features/Gamification/index.js +51 -37
- package/lib/ui/app/Navigation/MastersNavigation/index.js +13 -10
- package/lib/ui/app/Navigation/index.js +3 -2
- package/lib/ui/app/Notifications/Onboarding/Notification/index.d.ts +8 -0
- package/lib/ui/app/Notifications/Onboarding/Notification/index.js +21 -0
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.d.ts +10 -0
- package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +52 -0
- package/lib/ui/app/Notifications/Onboarding/index.js +96 -74
- package/lib/ui/app/Notifications/index.js +37 -13
- package/lib/ui/app/Notifications/styles.js +8 -13
- package/lib/ui/app/masters.js +32 -13
- package/lib/ui/app/styles.js +21 -36
- package/lib/ui/app/useMastersApp.js +4 -4
- package/lib/ui/button/styles.js +12 -42
- package/lib/ui/gamification/detail/header/styles.js +33 -55
- package/lib/ui/gamification/detail/sponsor/index.js +19 -12
- package/lib/ui/gamification/insight/styles.js +42 -63
- package/lib/ui/gamification/insight-list/styles.js +12 -18
- package/lib/ui/gamification/invite-link/styles.js +31 -45
- package/lib/ui/gamification/leaderboard/list-item/styles.js +40 -62
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +32 -45
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +70 -97
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.js +40 -79
- package/lib/ui/gamification/onboarding/styles.js +39 -49
- package/lib/ui/gamification/points/index.js +4 -6
- package/lib/ui/gamification/points/styles.js +31 -80
- package/lib/ui/gamification/question/insight/styles.js +11 -51
- package/lib/ui/gamification/question/list/styles.js +7 -9
- package/lib/ui/gamification/question/notification/insight/styles.js +26 -63
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.js +82 -163
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +53 -128
- package/lib/ui/gamification/question/notification/styles.js +43 -83
- package/lib/ui/gamification/question/notification/tweet/styles.js +36 -65
- package/lib/ui/gamification/question/styles.js +66 -92
- package/lib/ui/gamification/question/twitter/styles.js +13 -23
- package/lib/ui/gamification/tabs/styles.js +22 -65
- package/lib/ui/gamification/user-statistics/components/rank/styles.js +17 -23
- package/lib/ui/gamification/user-statistics/components/statistic/styles.js +16 -20
- package/lib/ui/gamification/user-statistics/styles.js +84 -119
- package/lib/ui/gamification/vote/expired-alert/styles.js +17 -27
- package/lib/ui/gamification/vote/feedback/styles.js +36 -64
- package/lib/ui/gamification/vote/insight-details/styles.js +12 -23
- package/lib/ui/gamification/vote/styles.js +21 -30
- package/lib/ui/gamification/vote/twitter-details/styles.js +6 -8
- package/lib/ui/gamification/vote/vote-option/styles.js +63 -147
- package/lib/ui/gamification/vote/win-bar/styles.js +37 -45
- package/lib/ui/icons/index.js +35 -20
- package/lib/ui/login/styles.js +36 -68
- package/lib/ui/navigation/button/Channels.js +18 -26
- package/lib/ui/navigation/button/FeaturedGroups.js +19 -27
- package/lib/ui/navigation/button/LeaderBoard.js +22 -23
- package/lib/ui/navigation/button/styles.js +16 -56
- package/lib/ui/navigation/index.js +13 -7
- package/lib/ui/navigation/masters.js +8 -32
- package/lib/ui/questions/insight/styles.js +26 -30
- package/lib/ui/questions/twitter/account/styles.js +30 -35
- package/lib/ui/questions/twitter/styles.js +31 -42
- package/lib/ui/show-in/index.js +18 -63
- package/lib/ui/theme/index.js +3 -4
- package/lib/ui/theme/masters.js +2 -9
- package/lib/ui/theme/theme.js +31 -27
- package/lib/ui/timer/index.js +38 -34
- package/lib/ui/video-player/styles.js +21 -26
- package/lib/utils/debug/components/bypassLogin.js +44 -60
- package/lib/utils/debug/components/developer.js +55 -87
- package/lib/utils/debug/components/envToggle.js +33 -58
- package/lib/utils/debug/components/styles.js +7 -49
- package/lib/utils/decorators/container.js +3 -4
- package/lib/utils/decorators/styles.js +7 -21
- package/package.json +7 -3
package/lib/ui/timer/index.js
CHANGED
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { styled as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { CountdownCircleTimer as
|
|
5
|
-
import { COLORS as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { styled as _ } from "@linaria/react";
|
|
3
|
+
import { useState as E, useCallback as R } from "react";
|
|
4
|
+
import { CountdownCircleTimer as O } from "react-countdown-circle-timer";
|
|
5
|
+
import { COLORS as o } from "../theme/constants.js";
|
|
6
|
+
const S = [o.PRIMARY_GREEN1, o.SECONDARY_RED1, o.SECONDARY_RED1], A = [10, 10, 0], f = /* @__PURE__ */ _("div")({
|
|
7
|
+
name: "RemainingTime",
|
|
8
|
+
class: "RemainingTime_r165427",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), D = o.SECONDARY_GREEN6, c = o.SECONDARY_RED3, N = o.NEUTRALS_GRAY3, I = ({
|
|
11
|
+
isPlaying: i = !0,
|
|
12
|
+
duration: r = 30,
|
|
13
|
+
onTimerExpired: t
|
|
14
|
+
}) => {
|
|
15
|
+
const [m, s] = E(r > 10 ? D : c), l = ({
|
|
16
|
+
remainingTime: e
|
|
17
|
+
}) => /* @__PURE__ */ n(f, {
|
|
18
|
+
children: e
|
|
19
|
+
}), a = R(() => {
|
|
20
|
+
t == null || t(), s(N);
|
|
21
|
+
}, [t, s]), C = R((e) => {
|
|
22
|
+
e === 10 && s(c);
|
|
23
|
+
}, [s]);
|
|
24
|
+
return /* @__PURE__ */ n(O, {
|
|
25
|
+
isPlaying: i,
|
|
26
|
+
duration: r,
|
|
27
|
+
colors: S,
|
|
28
|
+
colorsTime: A,
|
|
29
|
+
size: 32,
|
|
30
|
+
strokeWidth: 2,
|
|
31
|
+
trailStrokeWidth: 2,
|
|
32
|
+
trailColor: m,
|
|
33
|
+
onComplete: a,
|
|
34
|
+
onUpdate: C,
|
|
35
|
+
children: l
|
|
36
|
+
});
|
|
33
37
|
};
|
|
34
38
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
f as RemainingTime,
|
|
40
|
+
I as Timer
|
|
37
41
|
};
|
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
top: 50%;
|
|
20
|
-
left: 50%;
|
|
21
|
-
transform: translate(-50%, -50%);
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const e = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "Container_c1bgb86j",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), a = /* @__PURE__ */ s("video")({
|
|
7
|
+
name: "Player",
|
|
8
|
+
class: "Player_p6703cq",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), r = /* @__PURE__ */ s("img")({
|
|
11
|
+
name: "Poster",
|
|
12
|
+
class: "Poster_p12ow7zo",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
15
|
+
name: "Control",
|
|
16
|
+
class: "Control_cdpal9o",
|
|
17
|
+
propsAsIs: !1
|
|
18
|
+
});
|
|
24
19
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
e as Container,
|
|
21
|
+
t as Control,
|
|
22
|
+
a as Player,
|
|
28
23
|
r as Poster
|
|
29
24
|
};
|
|
@@ -1,63 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { styled as
|
|
3
|
-
import { useState as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
`, x = ({ sdk: l, storage: t }) => {
|
|
45
|
-
const [n, s] = a(t.getSchema() || ""), [o, p] = a(t.getToken() || "");
|
|
46
|
-
return /* @__PURE__ */ i("div", { children: [
|
|
47
|
-
/* @__PURE__ */ i(d, { children: [
|
|
48
|
-
/* @__PURE__ */ e("label", { children: "Bypass Schema" }),
|
|
49
|
-
/* @__PURE__ */ e("input", { type: "text", value: n, onChange: (r) => s(r.target.value) }),
|
|
50
|
-
/* @__PURE__ */ e("button", { style: { visibility: "hidden" }, children: "login" })
|
|
51
|
-
] }),
|
|
52
|
-
/* @__PURE__ */ i(d, { children: [
|
|
53
|
-
/* @__PURE__ */ e("label", { children: "Bypass Token" }),
|
|
54
|
-
/* @__PURE__ */ e("input", { type: "text", disabled: !n, value: o, onChange: (r) => p(r.target.value) }),
|
|
55
|
-
/* @__PURE__ */ e("button", { disabled: !n || !o, onClick: async () => {
|
|
56
|
-
await l.authorizationBypass(n, o), t.setSchema(n), t.setToken(o);
|
|
57
|
-
}, children: "login" })
|
|
58
|
-
] })
|
|
59
|
-
] });
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { styled as r } from "@linaria/react";
|
|
3
|
+
import { useState as o } from "react";
|
|
4
|
+
const a = /* @__PURE__ */ r("div")({
|
|
5
|
+
name: "InputField",
|
|
6
|
+
class: "InputField_i1vlsnk4",
|
|
7
|
+
propsAsIs: !1
|
|
8
|
+
}), b = ({
|
|
9
|
+
sdk: c,
|
|
10
|
+
storage: t
|
|
11
|
+
}) => {
|
|
12
|
+
const [n, d] = o(t.getSchema() || ""), [i, p] = o(t.getToken() || "");
|
|
13
|
+
return /* @__PURE__ */ l("div", {
|
|
14
|
+
children: [/* @__PURE__ */ l(a, {
|
|
15
|
+
children: [/* @__PURE__ */ e("label", {
|
|
16
|
+
children: "Bypass Schema"
|
|
17
|
+
}), /* @__PURE__ */ e("input", {
|
|
18
|
+
type: "text",
|
|
19
|
+
value: n,
|
|
20
|
+
onChange: (s) => d(s.target.value)
|
|
21
|
+
}), /* @__PURE__ */ e("button", {
|
|
22
|
+
style: {
|
|
23
|
+
visibility: "hidden"
|
|
24
|
+
},
|
|
25
|
+
children: "login"
|
|
26
|
+
})]
|
|
27
|
+
}), /* @__PURE__ */ l(a, {
|
|
28
|
+
children: [/* @__PURE__ */ e("label", {
|
|
29
|
+
children: "Bypass Token"
|
|
30
|
+
}), /* @__PURE__ */ e("input", {
|
|
31
|
+
type: "text",
|
|
32
|
+
disabled: !n,
|
|
33
|
+
value: i,
|
|
34
|
+
onChange: (s) => p(s.target.value)
|
|
35
|
+
}), /* @__PURE__ */ e("button", {
|
|
36
|
+
disabled: !n || !i,
|
|
37
|
+
onClick: async () => {
|
|
38
|
+
await c.authorizationBypass(n, i), t.setSchema(n), t.setToken(i);
|
|
39
|
+
},
|
|
40
|
+
children: "login"
|
|
41
|
+
})]
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
60
44
|
};
|
|
61
45
|
export {
|
|
62
|
-
|
|
46
|
+
b as BypassLogin
|
|
63
47
|
};
|
|
@@ -1,96 +1,64 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { styled as
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { styled as s } from "@linaria/react";
|
|
3
3
|
import { useMemo as g, useState as u } from "react";
|
|
4
|
-
import { DeveloperStorage as
|
|
5
|
-
import { BypassLogin as
|
|
6
|
-
import { EnvToggle as
|
|
7
|
-
import { EventInput as
|
|
8
|
-
import { SdkKey as
|
|
4
|
+
import { DeveloperStorage as D } from "../../storage.js";
|
|
5
|
+
import { BypassLogin as B } from "./bypassLogin.js";
|
|
6
|
+
import { EnvToggle as I } from "./envToggle.js";
|
|
7
|
+
import { EventInput as x } from "./eventInput.js";
|
|
8
|
+
import { SdkKey as C } from "./sdkKey.js";
|
|
9
9
|
import "@streamlayer/sdk-web-storage";
|
|
10
10
|
import "@nanostores/react";
|
|
11
11
|
import "@streamlayer/sdk-web-core";
|
|
12
12
|
import "./styles.js";
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
right: 10px;
|
|
35
|
-
width: 40px;
|
|
36
|
-
height: 40px;
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
justify-content: space-around;
|
|
40
|
-
background: rgb(29, 123, 255);
|
|
41
|
-
border: none;
|
|
42
|
-
border-radius: 6px;
|
|
43
|
-
padding: 10px;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
transition: all 0.1s ease;
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
padding-top: 8px;
|
|
49
|
-
padding-bottom: 8px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:active {
|
|
53
|
-
transform: translateY(4px);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&[data-opened='true'] {
|
|
57
|
-
span:nth-child(odd) {
|
|
58
|
-
opacity: 0;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
span {
|
|
63
|
-
display: block;
|
|
64
|
-
background: #fff;
|
|
65
|
-
border-radius: 4px;
|
|
66
|
-
width: 100%;
|
|
67
|
-
height: 4px;
|
|
68
|
-
}
|
|
69
|
-
`, A = ({
|
|
70
|
-
sdk: t,
|
|
71
|
-
sdkKey: d,
|
|
72
|
-
setSdkKey: i,
|
|
73
|
-
env: s,
|
|
74
|
-
setEnv: n,
|
|
75
|
-
event: m,
|
|
76
|
-
setEvent: l,
|
|
77
|
-
hideAuth: x
|
|
13
|
+
const _ = /* @__PURE__ */ s("div")({
|
|
14
|
+
name: "DeveloperContainer",
|
|
15
|
+
class: "DeveloperContainer_d1sqxt7l",
|
|
16
|
+
propsAsIs: !1
|
|
17
|
+
}), h = /* @__PURE__ */ s("div")({
|
|
18
|
+
name: "DeveloperItems",
|
|
19
|
+
class: "DeveloperItems_d1a3478s",
|
|
20
|
+
propsAsIs: !1
|
|
21
|
+
}), j = /* @__PURE__ */ s("button")({
|
|
22
|
+
name: "BurgerBtn",
|
|
23
|
+
class: "BurgerBtn_butjcq8",
|
|
24
|
+
propsAsIs: !1
|
|
25
|
+
}), F = ({
|
|
26
|
+
sdk: o,
|
|
27
|
+
sdkKey: i,
|
|
28
|
+
setSdkKey: n,
|
|
29
|
+
env: a,
|
|
30
|
+
setEnv: p,
|
|
31
|
+
event: l,
|
|
32
|
+
setEvent: c,
|
|
33
|
+
hideAuth: f
|
|
78
34
|
}) => {
|
|
79
|
-
const r = g(() => new
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
35
|
+
const r = g(() => new D(), []), [m, v] = u(!1);
|
|
36
|
+
return /* @__PURE__ */ t(_, {
|
|
37
|
+
children: [/* @__PURE__ */ t(j, {
|
|
38
|
+
"data-opened": m.toString(),
|
|
39
|
+
onClick: () => v((d) => !d),
|
|
40
|
+
children: [/* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {})]
|
|
41
|
+
}), m && /* @__PURE__ */ t(h, {
|
|
42
|
+
children: [p && /* @__PURE__ */ e(I, {
|
|
43
|
+
env: a,
|
|
44
|
+
setEnv: p,
|
|
45
|
+
storage: r
|
|
46
|
+
}), n && /* @__PURE__ */ e(C, {
|
|
47
|
+
sdkKey: i,
|
|
48
|
+
setSdkKey: n,
|
|
49
|
+
storage: r
|
|
50
|
+
}), o && /* @__PURE__ */ e(x, {
|
|
51
|
+
sdk: o,
|
|
52
|
+
storage: r,
|
|
53
|
+
event: l,
|
|
54
|
+
setEvent: c
|
|
55
|
+
}), !f && o && /* @__PURE__ */ e(B, {
|
|
56
|
+
sdk: o,
|
|
57
|
+
storage: r
|
|
58
|
+
})]
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
93
61
|
};
|
|
94
62
|
export {
|
|
95
|
-
|
|
63
|
+
F as Developer
|
|
96
64
|
};
|
|
@@ -1,60 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { styled as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
span {
|
|
35
|
-
display: block;
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: 0;
|
|
38
|
-
left: 0;
|
|
39
|
-
height: 1rem;
|
|
40
|
-
width: 1rem;
|
|
41
|
-
border-radius: 1em;
|
|
42
|
-
background: gray;
|
|
43
|
-
box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.3);
|
|
44
|
-
transition: all 300ms;
|
|
45
|
-
}
|
|
46
|
-
`, m = ({ env: r, setEnv: i, storage: s }) => /* @__PURE__ */ t(d, { children: [
|
|
47
|
-
/* @__PURE__ */ e("label", { htmlFor: "slEnvCheckbox", children: "Production:" }),
|
|
48
|
-
/* @__PURE__ */ t(a, { children: [
|
|
49
|
-
/* @__PURE__ */ e("input", { id: "slEnvCheckbox", type: "checkbox", checked: r === "production", onChange: () => {
|
|
50
|
-
i((c) => {
|
|
51
|
-
const n = c === "production" ? "development" : "production";
|
|
52
|
-
return s.setEnv(n), n;
|
|
53
|
-
});
|
|
54
|
-
} }),
|
|
55
|
-
/* @__PURE__ */ e("span", {})
|
|
56
|
-
] })
|
|
57
|
-
] });
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { styled as c } from "@linaria/react";
|
|
3
|
+
const h = /* @__PURE__ */ c("div")({
|
|
4
|
+
name: "Switch",
|
|
5
|
+
class: "Switch_s14ex8bw",
|
|
6
|
+
propsAsIs: !1
|
|
7
|
+
}), p = /* @__PURE__ */ c("div")({
|
|
8
|
+
name: "SwitchInput",
|
|
9
|
+
class: "SwitchInput_s1fwty0k",
|
|
10
|
+
propsAsIs: !1
|
|
11
|
+
}), w = ({
|
|
12
|
+
env: o,
|
|
13
|
+
setEnv: e,
|
|
14
|
+
storage: i
|
|
15
|
+
}) => /* @__PURE__ */ s(h, {
|
|
16
|
+
children: [/* @__PURE__ */ n("label", {
|
|
17
|
+
htmlFor: "slEnvCheckbox",
|
|
18
|
+
children: "Production:"
|
|
19
|
+
}), /* @__PURE__ */ s(p, {
|
|
20
|
+
children: [/* @__PURE__ */ n("input", {
|
|
21
|
+
id: "slEnvCheckbox",
|
|
22
|
+
type: "checkbox",
|
|
23
|
+
checked: o === "production",
|
|
24
|
+
onChange: () => {
|
|
25
|
+
e((r) => {
|
|
26
|
+
const t = r === "production" ? "development" : "production";
|
|
27
|
+
return i.setEnv(t), t;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}), /* @__PURE__ */ n("span", {})]
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
58
33
|
export {
|
|
59
|
-
|
|
34
|
+
w as EnvToggle
|
|
60
35
|
};
|
|
@@ -1,51 +1,9 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
font-size: 16px;
|
|
8
|
-
|
|
9
|
-
input {
|
|
10
|
-
display: block;
|
|
11
|
-
width: 100%;
|
|
12
|
-
color: #fff;
|
|
13
|
-
font-size: 24px;
|
|
14
|
-
border: none;
|
|
15
|
-
padding: 2px;
|
|
16
|
-
padding-left: 10px;
|
|
17
|
-
background: linear-gradient(136.45deg, rgba(60, 139, 251, 0.3) 0.57%, rgba(0, 79, 190, 0.3) 100%);
|
|
18
|
-
border: 1px solid transparent;
|
|
19
|
-
outline: none;
|
|
20
|
-
|
|
21
|
-
&:focus {
|
|
22
|
-
border-color: rgb(29, 123, 255);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
label {
|
|
27
|
-
margin-right: 4px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
button {
|
|
31
|
-
width: 150px;
|
|
32
|
-
color: #fff;
|
|
33
|
-
background: transparent;
|
|
34
|
-
margin: 0;
|
|
35
|
-
padding: 0;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
border: none;
|
|
38
|
-
text-transform: uppercase;
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
transform: scale(1.1);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&:active {
|
|
45
|
-
transform: scale(0.9);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const e = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "InputField",
|
|
4
|
+
class: "InputField_iwjhb00",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
});
|
|
49
7
|
export {
|
|
50
|
-
|
|
8
|
+
e as InputField
|
|
51
9
|
};
|
|
@@ -2,11 +2,10 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { StreamLayerThemeProvider as o } from "../../ui/theme/index.js";
|
|
3
3
|
import { AppContainer as t } from "./styles.js";
|
|
4
4
|
import "../../ui/theme/theme.js";
|
|
5
|
-
import "@linaria/core";
|
|
6
5
|
import "../../ui/theme/constants.js";
|
|
7
6
|
import "@linaria/react";
|
|
8
|
-
const
|
|
7
|
+
const h = (e) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(e, {}) }), a = (e) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(e, {}) }) }) });
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
a as container,
|
|
10
|
+
h as theme
|
|
12
11
|
};
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
margin: 0;
|
|
8
|
-
font-family: var(--font-family);
|
|
9
|
-
color: var(--font-color);
|
|
10
|
-
|
|
11
|
-
& > div {
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
width: 370px;
|
|
14
|
-
height: 100%;
|
|
15
|
-
border-radius: 12px;
|
|
16
|
-
overflow: auto;
|
|
17
|
-
padding: 10px;
|
|
18
|
-
background-color: var(--color-bg-transparent);
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const a = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "AppContainer",
|
|
4
|
+
class: "AppContainer_azqfrs3",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
});
|
|
21
7
|
export {
|
|
22
|
-
|
|
8
|
+
a as AppContainer
|
|
23
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"import": "./lib/*/index.js",
|
|
25
25
|
"default": "./lib/*/index.js",
|
|
26
26
|
"types": "./lib/*/index.d.js"
|
|
27
|
+
},
|
|
28
|
+
"./style.css": {
|
|
29
|
+
"import": "./lib/assets/style.css",
|
|
30
|
+
"require": "./lib/assets/style.css"
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
"files": [
|
|
@@ -40,8 +44,8 @@
|
|
|
40
44
|
"@streamlayer/sdk-web": "^0.28.23",
|
|
41
45
|
"@streamlayer/sdk-web-anonymous-auth": "^0.11.18",
|
|
42
46
|
"@streamlayer/sdk-web-api": "^0.0.1",
|
|
43
|
-
"@streamlayer/sdk-web-features": "^0.10.26",
|
|
44
47
|
"@streamlayer/sdk-web-core": "^0.17.8",
|
|
48
|
+
"@streamlayer/sdk-web-features": "^0.10.26",
|
|
45
49
|
"@streamlayer/sdk-web-interfaces": "^0.18.15",
|
|
46
50
|
"@streamlayer/sdk-web-notifications": "^0.13.0",
|
|
47
51
|
"@streamlayer/sdk-web-storage": "^0.0.4",
|
|
@@ -84,6 +88,6 @@
|
|
|
84
88
|
"vite-plugin-svgr": "^4.1.0",
|
|
85
89
|
"vite-svg-loader": "^4.0.0",
|
|
86
90
|
"vite-tsconfig-paths": "^4.2.1",
|
|
87
|
-
"@streamlayer/react": "^0.
|
|
91
|
+
"@streamlayer/react": "^0.30.0"
|
|
88
92
|
}
|
|
89
93
|
}
|