@streamlayer/react-ui 0.66.0 → 0.67.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/LeaderBoard_16p26hz-4ed993c7.js +1 -0
- package/lib/assets/style.css +1 -0
- package/lib/index.js +4 -5
- package/lib/index_4nhkck-4ed993c7.js +1 -0
- package/lib/masters_k70xsy-4ed993c7.js +1 -0
- package/lib/ui/app/Features/FeatureProvider.js +1 -1
- package/lib/ui/app/Features/Gamification/Question.js +47 -34
- package/lib/ui/app/Features/Gamification/gamification-feature.d.ts +2 -0
- package/lib/ui/app/Features/Gamification/gamification-feature.js +66 -0
- package/lib/ui/app/Features/Gamification/index.d.ts +0 -1
- package/lib/ui/app/Features/Gamification/index.js +51 -38
- package/lib/ui/app/Features/index.js +1 -1
- package/lib/ui/app/Navigation/MastersNavigation/index.js +13 -10
- package/lib/ui/app/Navigation/index.js +13 -12
- 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 +95 -73
- package/lib/ui/app/Notifications/index.js +37 -13
- package/lib/ui/app/Notifications/styles.js +8 -13
- package/lib/ui/app/masters.js +49 -28
- package/lib/ui/app/styles.js +20 -35
- package/lib/ui/app/useMastersApp.js +52 -36
- 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 +18 -11
- package/lib/ui/gamification/insight/styles.js +40 -61
- package/lib/ui/gamification/insight-list/styles.js +11 -17
- package/lib/ui/gamification/invite-link/styles.js +31 -45
- package/lib/ui/gamification/leaderboard/list-item/styles.js +42 -64
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +31 -44
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +72 -99
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.js +41 -80
- package/lib/ui/gamification/onboarding/styles.js +38 -48
- package/lib/ui/gamification/points/index.d.ts +1 -1
- package/lib/ui/gamification/points/index.js +4 -6
- package/lib/ui/gamification/points/styles.js +32 -81
- 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 +27 -64
- 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 +35 -64
- package/lib/ui/gamification/question/styles.js +68 -94
- 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 +17 -21
- package/lib/ui/gamification/user-statistics/styles.js +85 -120
- 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 +22 -31
- package/lib/ui/gamification/vote/twitter-details/styles.js +7 -9
- 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 +29 -14
- package/lib/ui/login/styles.js +37 -69
- package/lib/ui/navigation/button/Channels.js +19 -27
- package/lib/ui/navigation/button/FeaturedGroups.js +18 -26
- package/lib/ui/navigation/button/LeaderBoard.js +20 -21
- 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 +36 -32
- package/lib/ui/timer/index.js +36 -32
- package/lib/ui/video-player/styles.js +22 -27
- package/lib/utils/debug/components/bypassLogin.js +44 -60
- package/lib/utils/debug/components/developer.js +54 -86
- package/lib/utils/debug/components/envToggle.js +33 -58
- package/lib/utils/debug/components/eventInput.js +4 -4
- 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 +13 -9
|
@@ -1,59 +1,19 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
letter-spacing: -0.5px;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
|
|
18
|
-
&:hover {
|
|
19
|
-
border-color: var(--color-primary-green1);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&[data-selected='true'] {
|
|
23
|
-
color: var(--color-white);
|
|
24
|
-
background-color: var(--color-primary-green1);
|
|
25
|
-
border-color: var(--color-primary-green1);
|
|
26
|
-
|
|
27
|
-
&:hover {
|
|
28
|
-
cursor: default;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:disabled {
|
|
32
|
-
&:hover {
|
|
33
|
-
border-color: var(--color-primary-green1);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:disabled {
|
|
39
|
-
opacity: 0.5;
|
|
40
|
-
cursor: default;
|
|
41
|
-
|
|
42
|
-
&:hover {
|
|
43
|
-
cursor: default;
|
|
44
|
-
border-color: var(--color-neutrals-gray3);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`, t = r.span`
|
|
48
|
-
display: flex;
|
|
49
|
-
width: 22px;
|
|
50
|
-
height: 22px;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
align-items: center;
|
|
53
|
-
margin-right: 5px;
|
|
54
|
-
`, a = r.span``;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const o = /* @__PURE__ */ s("button")({
|
|
3
|
+
name: "SButton",
|
|
4
|
+
class: "sxxa0c",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), n = /* @__PURE__ */ s("span")({
|
|
7
|
+
name: "ButtonIcon",
|
|
8
|
+
class: "b193dcyu",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), a = /* @__PURE__ */ s("span")({
|
|
11
|
+
name: "ButtonLabel",
|
|
12
|
+
class: "b40tuix",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
});
|
|
55
15
|
export {
|
|
56
|
-
|
|
16
|
+
n as ButtonIcon,
|
|
57
17
|
a as ButtonLabel,
|
|
58
|
-
|
|
18
|
+
o as SButton
|
|
59
19
|
};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { styled as r } from "@linaria/react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import "../../index_4nhkck-4ed993c7.js";
|
|
4
|
+
const n = /* @__PURE__ */ r("div")({
|
|
5
|
+
name: "Buttons",
|
|
6
|
+
class: "b6tbwuy",
|
|
7
|
+
propsAsIs: !1
|
|
8
|
+
}), a = ({
|
|
9
|
+
children: t,
|
|
10
|
+
className: o
|
|
11
|
+
}) => /* @__PURE__ */ s(n, {
|
|
12
|
+
className: o,
|
|
13
|
+
children: t
|
|
14
|
+
});
|
|
9
15
|
export {
|
|
10
16
|
a as Navigation
|
|
11
17
|
};
|
|
@@ -1,37 +1,13 @@
|
|
|
1
1
|
import { styled as o } from "@linaria/react";
|
|
2
|
-
import { Navigation as
|
|
2
|
+
import { Navigation as t } from "./index.js";
|
|
3
|
+
import "../../masters_k70xsy-4ed993c7.js";
|
|
3
4
|
import "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
opacity: 0;
|
|
13
|
-
|
|
14
|
-
animation: show-nav 0.5s ease;
|
|
15
|
-
animation-fill-mode: forwards;
|
|
16
|
-
|
|
17
|
-
padding: var(--container-padding);
|
|
18
|
-
border-bottom: 1px solid var(--color-neutrals-gray3);
|
|
19
|
-
|
|
20
|
-
& > button:not(:last-child) {
|
|
21
|
-
margin-right: 8px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@keyframes show-nav {
|
|
25
|
-
90% {
|
|
26
|
-
opacity: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
100% {
|
|
30
|
-
height: 68px;
|
|
31
|
-
opacity: 1;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
5
|
+
import "../../index_4nhkck-4ed993c7.js";
|
|
6
|
+
const i = () => t, n = /* @__PURE__ */ o(i())({
|
|
7
|
+
name: "Navigation",
|
|
8
|
+
class: "n19lpak2",
|
|
9
|
+
propsAsIs: !0
|
|
10
|
+
});
|
|
35
11
|
export {
|
|
36
12
|
n as Navigation
|
|
37
13
|
};
|
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const e =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
font-size: 12px;
|
|
24
|
-
font-weight: var(--font-weight-default);
|
|
25
|
-
line-height: 18px;
|
|
26
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const e = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "cgn5uen",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
7
|
+
name: "Content",
|
|
8
|
+
class: "c1px8nt6",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), a = /* @__PURE__ */ s("h3")({
|
|
11
|
+
name: "Title",
|
|
12
|
+
class: "t5et2jt",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
}), o = /* @__PURE__ */ s("div")({
|
|
15
|
+
name: "Description",
|
|
16
|
+
class: "d1i2kpk2",
|
|
17
|
+
propsAsIs: !1
|
|
18
|
+
}), p = /* @__PURE__ */ s("div")({
|
|
19
|
+
name: "DateWrap",
|
|
20
|
+
class: "dd3lh3p",
|
|
21
|
+
propsAsIs: !1
|
|
22
|
+
});
|
|
27
23
|
export {
|
|
28
24
|
e as Container,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
n as Content,
|
|
26
|
+
p as DateWrap,
|
|
27
|
+
o as Description,
|
|
28
|
+
a as Title
|
|
33
29
|
};
|
|
@@ -1,39 +1,34 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
font-family: var(--font-serif);
|
|
28
|
-
`, l = e.div`
|
|
29
|
-
font-size: 12px;
|
|
30
|
-
line-height: 20px;
|
|
31
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const e = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "cjq447q",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
7
|
+
name: "ImageContainer",
|
|
8
|
+
class: "i14egogb",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), o = /* @__PURE__ */ s("img")({
|
|
11
|
+
name: "Image",
|
|
12
|
+
class: "i2g9g4l",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
}), l = /* @__PURE__ */ s("div")({
|
|
15
|
+
name: "Details",
|
|
16
|
+
class: "d1c454nm",
|
|
17
|
+
propsAsIs: !1
|
|
18
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
19
|
+
name: "Name",
|
|
20
|
+
class: "n11nigc3",
|
|
21
|
+
propsAsIs: !1
|
|
22
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
23
|
+
name: "UserName",
|
|
24
|
+
class: "urxa4k8",
|
|
25
|
+
propsAsIs: !1
|
|
26
|
+
});
|
|
32
27
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
e as Container,
|
|
29
|
+
l as Details,
|
|
35
30
|
o as Image,
|
|
36
31
|
n as ImageContainer,
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
m as Name,
|
|
33
|
+
t as UserName
|
|
39
34
|
};
|
|
@@ -1,45 +1,34 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
row-gap: 12px;
|
|
29
|
-
`, a = o.div`
|
|
30
|
-
color: var(--color-neutrals-gray9);
|
|
31
|
-
font-size: 12px;
|
|
32
|
-
font-weight: var(--font-weight-default);
|
|
33
|
-
line-height: 18px;
|
|
34
|
-
`, l = o.img`
|
|
35
|
-
max-width: 100%;
|
|
36
|
-
border-radius: 8px;
|
|
37
|
-
`;
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
const a = /* @__PURE__ */ s("div")({
|
|
3
|
+
name: "Container",
|
|
4
|
+
class: "c1kzqw87",
|
|
5
|
+
propsAsIs: !1
|
|
6
|
+
}), o = /* @__PURE__ */ s("div")({
|
|
7
|
+
name: "DateTime",
|
|
8
|
+
class: "d9r1hf9",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), t = /* @__PURE__ */ s("blockquote")({
|
|
11
|
+
name: "Quote",
|
|
12
|
+
class: "qezygt5",
|
|
13
|
+
propsAsIs: !1
|
|
14
|
+
}), n = /* @__PURE__ */ s("div")({
|
|
15
|
+
name: "Details",
|
|
16
|
+
class: "d1y8f7ym",
|
|
17
|
+
propsAsIs: !1
|
|
18
|
+
}), l = /* @__PURE__ */ s("div")({
|
|
19
|
+
name: "Body",
|
|
20
|
+
class: "b18gwonx",
|
|
21
|
+
propsAsIs: !1
|
|
22
|
+
}), c = /* @__PURE__ */ s("img")({
|
|
23
|
+
name: "Image",
|
|
24
|
+
class: "i3g0xjd",
|
|
25
|
+
propsAsIs: !1
|
|
26
|
+
});
|
|
38
27
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
l as Body,
|
|
29
|
+
a as Container,
|
|
30
|
+
o as DateTime,
|
|
42
31
|
n as Details,
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
c as Image,
|
|
33
|
+
t as Quote
|
|
45
34
|
};
|
package/lib/ui/show-in/index.js
CHANGED
|
@@ -1,65 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { styled as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
max-height: 0;
|
|
19
|
-
}
|
|
20
|
-
80% {
|
|
21
|
-
opacity: 0;
|
|
22
|
-
transform: scale(0.9);
|
|
23
|
-
max-height: 2500px;
|
|
24
|
-
}
|
|
25
|
-
85% {
|
|
26
|
-
transform: scale(0.9);
|
|
27
|
-
max-height: 2500px;
|
|
28
|
-
}
|
|
29
|
-
100% {
|
|
30
|
-
transform: scale(1);
|
|
31
|
-
opacity: 1;
|
|
32
|
-
max-height: 2500px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
`, c = r`
|
|
36
|
-
animation: containerHide ease-out;
|
|
37
|
-
animation-duration: var(--animation-duration);
|
|
38
|
-
animation-direction: reverse;
|
|
39
|
-
animation-fill-mode: forwards;
|
|
40
|
-
|
|
41
|
-
@keyframes containerHide {
|
|
42
|
-
0% {
|
|
43
|
-
transform: scale(0);
|
|
44
|
-
opacity: 0;
|
|
45
|
-
max-height: 0;
|
|
46
|
-
}
|
|
47
|
-
80% {
|
|
48
|
-
opacity: 0;
|
|
49
|
-
transform: scale(0.9);
|
|
50
|
-
max-height: 2500px;
|
|
51
|
-
}
|
|
52
|
-
85% {
|
|
53
|
-
transform: scale(0.9);
|
|
54
|
-
max-height: 2500px;
|
|
55
|
-
}
|
|
56
|
-
100% {
|
|
57
|
-
transform: scale(1);
|
|
58
|
-
opacity: 1;
|
|
59
|
-
max-height: 2500px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
`, f = ({ children: a, style: i, className: t, hiding: o }) => /* @__PURE__ */ n(s, { style: i, className: e(t, o && c), children: a });
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cx as i } from "@linaria/core";
|
|
3
|
+
import { styled as e } from "@linaria/react";
|
|
4
|
+
const m = /* @__PURE__ */ e("div")({
|
|
5
|
+
name: "Container",
|
|
6
|
+
class: "c1pgyo67",
|
|
7
|
+
propsAsIs: !1
|
|
8
|
+
}), a = "hx17qu6", d = ({
|
|
9
|
+
children: o,
|
|
10
|
+
style: n,
|
|
11
|
+
className: s,
|
|
12
|
+
hiding: t
|
|
13
|
+
}) => /* @__PURE__ */ r(m, {
|
|
14
|
+
style: n,
|
|
15
|
+
className: i(s, t && a),
|
|
16
|
+
children: o
|
|
17
|
+
});
|
|
63
18
|
export {
|
|
64
|
-
|
|
19
|
+
d as ShowIn
|
|
65
20
|
};
|
package/lib/ui/theme/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { theme as
|
|
3
|
-
import "@linaria/core";
|
|
2
|
+
import { theme as a } from "./theme.js";
|
|
4
3
|
import "./constants.js";
|
|
5
|
-
const
|
|
4
|
+
const s = ({ children: r, style: m }) => /* @__PURE__ */ e("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ e("div", { className: a, style: m, children: r }) });
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
s as StreamLayerThemeProvider
|
|
8
7
|
};
|
package/lib/ui/theme/masters.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const i = a`
|
|
3
|
-
--header-height: 68px;
|
|
4
|
-
--question-headers-height: 117px;
|
|
5
|
-
--animation-duration: 0.5s;
|
|
6
|
-
--animation-function: ease;
|
|
7
|
-
--container-padding: 16px;
|
|
8
|
-
`;
|
|
1
|
+
const s = "m17a8r9z";
|
|
9
2
|
export {
|
|
10
|
-
|
|
3
|
+
s as mastersVariables
|
|
11
4
|
};
|
package/lib/ui/theme/theme.js
CHANGED
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const i = `
|
|
1
|
+
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { colors as l, FONT as e } from "./constants.js";
|
|
3
|
+
const h = `
|
|
5
4
|
${l}
|
|
6
|
-
--font-family: ${
|
|
7
|
-
--font-regular: ${
|
|
8
|
-
--font-color: ${
|
|
9
|
-
--font-serif: ${
|
|
10
|
-
--font-weight-default: ${
|
|
5
|
+
--font-family: ${e.REGULAR};
|
|
6
|
+
--font-regular: ${e.REGULAR};
|
|
7
|
+
--font-color: ${e.COLOR};
|
|
8
|
+
--font-serif: ${e.SERIF};
|
|
9
|
+
--font-weight-default: ${e.WEIGHT_DEFAULT};
|
|
11
10
|
|
|
12
11
|
--header-height: 68px;
|
|
13
12
|
--animation-duration: 0.5s;
|
|
14
13
|
--animation-function: ease;
|
|
15
14
|
--container-padding: 16px;
|
|
16
15
|
--border-radius: 8px;
|
|
17
|
-
`,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
16
|
+
`, d = "StreamLayerCSSReset", m = "ttkj0ah", f = () => /* @__PURE__ */ t("table", {
|
|
17
|
+
children: /* @__PURE__ */ r("table", {
|
|
18
|
+
children: [/* @__PURE__ */ t("thead", {
|
|
19
|
+
children: /* @__PURE__ */ r("tr", {
|
|
20
|
+
children: [/* @__PURE__ */ t("th", {
|
|
21
|
+
children: "name"
|
|
22
|
+
}), /* @__PURE__ */ t("th", {
|
|
23
|
+
children: "value"
|
|
24
|
+
})]
|
|
25
|
+
})
|
|
26
|
+
}), /* @__PURE__ */ t("tbody", {
|
|
27
|
+
children: h.split(";").map((i) => {
|
|
28
|
+
const n = i.trim(), [o, a] = n.split(":");
|
|
29
|
+
return /* @__PURE__ */ r("tr", {
|
|
30
|
+
children: [/* @__PURE__ */ t("td", {
|
|
31
|
+
children: o
|
|
32
|
+
}), /* @__PURE__ */ t("td", {
|
|
33
|
+
children: a
|
|
34
|
+
})]
|
|
35
|
+
}, n);
|
|
36
|
+
})
|
|
37
|
+
})]
|
|
38
|
+
})
|
|
39
|
+
});
|
|
36
40
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
f as ThemeVariables,
|
|
42
|
+
d as resetCss,
|
|
43
|
+
m as theme,
|
|
44
|
+
h as themeStr
|
|
41
45
|
};
|
package/lib/ui/timer/index.js
CHANGED
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { styled as E } from "@linaria/react";
|
|
3
|
-
import { useState as O, useCallback as
|
|
3
|
+
import { useState as O, useCallback as c } from "react";
|
|
4
4
|
import { CountdownCircleTimer as S } from "react-countdown-circle-timer";
|
|
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
|
-
|
|
5
|
+
import { COLORS as o } from "../theme/constants.js";
|
|
6
|
+
const _ = [o.PRIMARY_GREEN1, o.SECONDARY_RED1, o.SECONDARY_RED1], A = [10, 10, 0], f = /* @__PURE__ */ E("div")({
|
|
7
|
+
name: "RemainingTime",
|
|
8
|
+
class: "r165427",
|
|
9
|
+
propsAsIs: !1
|
|
10
|
+
}), D = o.SECONDARY_GREEN6, R = o.SECONDARY_RED3, N = o.NEUTRALS_GRAY3, g = ({
|
|
11
|
+
isPlaying: i = !0,
|
|
12
|
+
duration: r = 30,
|
|
13
|
+
onTimerExpired: t
|
|
14
|
+
}) => {
|
|
15
|
+
const [l, s] = O(r > 10 ? D : R), m = ({
|
|
16
|
+
remainingTime: e
|
|
17
|
+
}) => /* @__PURE__ */ n(f, {
|
|
18
|
+
children: e
|
|
19
|
+
}), a = c(() => {
|
|
20
|
+
t == null || t(), s(N);
|
|
21
|
+
}, [t, s]), C = c((e) => {
|
|
22
|
+
e === 10 && s(R);
|
|
23
|
+
}, [s]);
|
|
24
|
+
return /* @__PURE__ */ n(S, {
|
|
25
|
+
isPlaying: i,
|
|
26
|
+
duration: r,
|
|
27
|
+
colors: _,
|
|
28
|
+
colorsTime: A,
|
|
29
|
+
size: 32,
|
|
30
|
+
strokeWidth: 2,
|
|
31
|
+
trailStrokeWidth: 2,
|
|
32
|
+
trailColor: l,
|
|
33
|
+
onComplete: a,
|
|
34
|
+
onUpdate: C,
|
|
35
|
+
children: m
|
|
36
|
+
});
|
|
33
37
|
};
|
|
34
38
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
f as RemainingTime,
|
|
40
|
+
g as Timer
|
|
37
41
|
};
|