@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.
Files changed (76) hide show
  1. package/lib/LeaderBoard_p8tnz3-4ed993c7.js +1 -0
  2. package/lib/assets/style.css +1 -0
  3. package/lib/index.js +4 -5
  4. package/lib/index_1ujx5m0-4ed993c7.js +1 -0
  5. package/lib/masters_18kvgvj-4ed993c7.js +1 -0
  6. package/lib/ui/app/Features/Gamification/Question.js +47 -34
  7. package/lib/ui/app/Features/Gamification/index.js +51 -37
  8. package/lib/ui/app/Navigation/MastersNavigation/index.js +13 -10
  9. package/lib/ui/app/Navigation/index.js +3 -2
  10. package/lib/ui/app/Notifications/Onboarding/Notification/index.d.ts +8 -0
  11. package/lib/ui/app/Notifications/Onboarding/Notification/index.js +21 -0
  12. package/lib/ui/app/Notifications/Onboarding/Notification/styles.d.ts +10 -0
  13. package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +52 -0
  14. package/lib/ui/app/Notifications/Onboarding/index.js +96 -74
  15. package/lib/ui/app/Notifications/index.js +37 -13
  16. package/lib/ui/app/Notifications/styles.js +8 -13
  17. package/lib/ui/app/masters.js +32 -13
  18. package/lib/ui/app/styles.js +21 -36
  19. package/lib/ui/app/useMastersApp.js +4 -4
  20. package/lib/ui/button/styles.js +12 -42
  21. package/lib/ui/gamification/detail/header/styles.js +33 -55
  22. package/lib/ui/gamification/detail/sponsor/index.js +19 -12
  23. package/lib/ui/gamification/insight/styles.js +42 -63
  24. package/lib/ui/gamification/insight-list/styles.js +12 -18
  25. package/lib/ui/gamification/invite-link/styles.js +31 -45
  26. package/lib/ui/gamification/leaderboard/list-item/styles.js +40 -62
  27. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +32 -45
  28. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +70 -97
  29. package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.js +40 -79
  30. package/lib/ui/gamification/onboarding/styles.js +39 -49
  31. package/lib/ui/gamification/points/index.js +4 -6
  32. package/lib/ui/gamification/points/styles.js +31 -80
  33. package/lib/ui/gamification/question/insight/styles.js +11 -51
  34. package/lib/ui/gamification/question/list/styles.js +7 -9
  35. package/lib/ui/gamification/question/notification/insight/styles.js +26 -63
  36. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.js +82 -163
  37. package/lib/ui/gamification/question/notification/prediction-result/styles.js +53 -128
  38. package/lib/ui/gamification/question/notification/styles.js +43 -83
  39. package/lib/ui/gamification/question/notification/tweet/styles.js +36 -65
  40. package/lib/ui/gamification/question/styles.js +66 -92
  41. package/lib/ui/gamification/question/twitter/styles.js +13 -23
  42. package/lib/ui/gamification/tabs/styles.js +22 -65
  43. package/lib/ui/gamification/user-statistics/components/rank/styles.js +17 -23
  44. package/lib/ui/gamification/user-statistics/components/statistic/styles.js +16 -20
  45. package/lib/ui/gamification/user-statistics/styles.js +84 -119
  46. package/lib/ui/gamification/vote/expired-alert/styles.js +17 -27
  47. package/lib/ui/gamification/vote/feedback/styles.js +36 -64
  48. package/lib/ui/gamification/vote/insight-details/styles.js +12 -23
  49. package/lib/ui/gamification/vote/styles.js +21 -30
  50. package/lib/ui/gamification/vote/twitter-details/styles.js +6 -8
  51. package/lib/ui/gamification/vote/vote-option/styles.js +63 -147
  52. package/lib/ui/gamification/vote/win-bar/styles.js +37 -45
  53. package/lib/ui/icons/index.js +35 -20
  54. package/lib/ui/login/styles.js +36 -68
  55. package/lib/ui/navigation/button/Channels.js +18 -26
  56. package/lib/ui/navigation/button/FeaturedGroups.js +19 -27
  57. package/lib/ui/navigation/button/LeaderBoard.js +22 -23
  58. package/lib/ui/navigation/button/styles.js +16 -56
  59. package/lib/ui/navigation/index.js +13 -7
  60. package/lib/ui/navigation/masters.js +8 -32
  61. package/lib/ui/questions/insight/styles.js +26 -30
  62. package/lib/ui/questions/twitter/account/styles.js +30 -35
  63. package/lib/ui/questions/twitter/styles.js +31 -42
  64. package/lib/ui/show-in/index.js +18 -63
  65. package/lib/ui/theme/index.js +3 -4
  66. package/lib/ui/theme/masters.js +2 -9
  67. package/lib/ui/theme/theme.js +31 -27
  68. package/lib/ui/timer/index.js +38 -34
  69. package/lib/ui/video-player/styles.js +21 -26
  70. package/lib/utils/debug/components/bypassLogin.js +44 -60
  71. package/lib/utils/debug/components/developer.js +55 -87
  72. package/lib/utils/debug/components/envToggle.js +33 -58
  73. package/lib/utils/debug/components/styles.js +7 -49
  74. package/lib/utils/decorators/container.js +3 -4
  75. package/lib/utils/decorators/styles.js +7 -21
  76. package/package.json +7 -3
@@ -1,83 +1,44 @@
1
- import { styled as t } from "@linaria/react";
2
- const e = t.div`
3
- display: flex;
4
- flex-grow: 1;
5
- flex-direction: column;
6
- padding-bottom: 16px;
7
- `, n = t.div`
8
- display: flex;
9
- flex-direction: column;
10
- align-items: center;
11
- justify-content: center;
12
- row-gap: 24px;
13
- height: 100%;
14
- padding: 0 32px 32px;
15
- `, o = t.div`
16
- color: var(--color-primary-green1);
17
- font-family: var(--font-serif);
18
- font-size: 22px;
19
- font-weight: 400;
20
- line-height: 30px;
21
- text-align: center;
22
- `, r = t.div`
23
- display: flex;
24
- flex-direction: column;
25
- row-gap: 24px;
26
- `, l = t.div`
27
- display: flex;
28
- align-items: center;
29
- column-gap: 16px;
30
- `, a = t.div`
31
- display: flex;
32
- flex-shrink: 0;
33
- align-items: center;
34
- justify-content: center;
35
- width: 36px;
36
- height: 36px;
37
- border-radius: 50%;
38
- background-color: var(--color-primary-green1);
39
-
40
- & [data-icon='icon-trophy'] {
41
- width: 18px;
42
- height: 18px;
43
-
44
- path {
45
- fill: var(--color-neutrals-white);
46
- }
47
- }
48
-
49
- & [data-icon='icon-btn-feature-groups'] path {
50
- &:first-child {
51
- stroke: var(--color-neutrals-white);
52
- }
53
- &:not(:first-child) {
54
- fill: var(--color-neutrals-white);
55
- }
56
- }
57
- `, c = t.div`
58
- font-size: 14px;
59
- font-weight: var(--font-weight-default);
60
- line-height: 18px;
61
- letter-spacing: -0.154px;
62
- `, p = t.button`
63
- margin: 0 auto;
64
- padding: 8px 16px;
65
- color: var(--color-primary-green1);
66
- font-size: 12px;
67
- font-weight: 400;
68
- line-height: 16px;
69
- border: initial;
70
- background: initial;
71
- outline: initial;
72
- cursor: pointer;
73
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const t = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "Container_cm0bev",
5
+ propsAsIs: !1
6
+ }), n = /* @__PURE__ */ s("div")({
7
+ name: "Content",
8
+ class: "Content_ce7x737",
9
+ propsAsIs: !1
10
+ }), l = /* @__PURE__ */ s("div")({
11
+ name: "Title",
12
+ class: "Title_tc2tor6",
13
+ propsAsIs: !1
14
+ }), o = /* @__PURE__ */ s("div")({
15
+ name: "RulesList",
16
+ class: "RulesList_r1k5klql",
17
+ propsAsIs: !1
18
+ }), a = /* @__PURE__ */ s("div")({
19
+ name: "RulesItem",
20
+ class: "RulesItem_r1tf3ft2",
21
+ propsAsIs: !1
22
+ }), c = /* @__PURE__ */ s("div")({
23
+ name: "RuleIcon",
24
+ class: "RuleIcon_rwpvg1k",
25
+ propsAsIs: !1
26
+ }), r = /* @__PURE__ */ s("div")({
27
+ name: "RuleText",
28
+ class: "RuleText_rbxiag0",
29
+ propsAsIs: !1
30
+ }), p = /* @__PURE__ */ s("button")({
31
+ name: "TermsButton",
32
+ class: "TermsButton_t6cyrry",
33
+ propsAsIs: !1
34
+ });
74
35
  export {
75
- e as Container,
36
+ t as Container,
76
37
  n as Content,
77
- a as RuleIcon,
78
- c as RuleText,
79
- l as RulesItem,
80
- r as RulesList,
38
+ c as RuleIcon,
39
+ r as RuleText,
40
+ a as RulesItem,
41
+ o as RulesList,
81
42
  p as TermsButton,
82
- o as Title
43
+ l as Title
83
44
  };
@@ -1,54 +1,44 @@
1
- import { styled as n } from "@linaria/react";
2
- import { Button as o } from "../../button/index.js";
3
- import { SvgIcon as t } from "../../icons/index.js";
1
+ import { styled as o } from "@linaria/react";
2
+ import { Button as n } from "../../button/index.js";
3
+ import { SvgIcon as s } from "../../icons/index.js";
4
4
  import "react/jsx-runtime";
5
5
  import "../../button/styles.js";
6
6
  import "react";
7
- const c = n.div`
8
- display: flex;
9
- flex-direction: column;
10
- background-color: var(--color-neutrals-white);
11
- `, a = n.div`
12
- display: flex;
13
- flex-grow: 1;
14
- flex-direction: column;
15
- `, s = n.div`
16
- display: flex;
17
- align-items: center;
18
- justify-content: space-between;
19
- padding: 12px 12px 12px 16px;
20
- `, x = n.button`
21
- display: flex;
22
- align-items: center;
23
- justify-content: center;
24
- margin-left: auto;
25
- padding: 0;
26
- width: 24px;
27
- height: 24px;
28
- border: none;
29
- background-color: transparent;
30
- outline: none;
31
- cursor: pointer;
32
- `, g = n(t)`
33
- width: 10px;
34
- height: 10px;
35
- `, f = n.div`
36
- display: flex;
37
- padding: 0 16px 16px 16px;
38
- `, m = n(o)`
39
- flex-grow: 1;
40
- padding: 0 16px;
41
- height: 44px;
42
- font-size: 14px;
43
- line-height: 20px;
44
- cursor: pointer;
45
- `;
7
+ const d = /* @__PURE__ */ o("div")({
8
+ name: "Container",
9
+ class: "Container_c18uddbs",
10
+ propsAsIs: !1
11
+ }), m = /* @__PURE__ */ o("div")({
12
+ name: "Content",
13
+ class: "Content_cvcfjf6",
14
+ propsAsIs: !1
15
+ }), f = /* @__PURE__ */ o("div")({
16
+ name: "OnboardingHeader",
17
+ class: "OnboardingHeader_o1ie27lw",
18
+ propsAsIs: !1
19
+ }), C = /* @__PURE__ */ o("button")({
20
+ name: "CloseBtn",
21
+ class: "CloseBtn_c15cjkwi",
22
+ propsAsIs: !1
23
+ }), t = () => s, b = /* @__PURE__ */ o(t())({
24
+ name: "IconClose",
25
+ class: "IconClose_i1mavjt2",
26
+ propsAsIs: !0
27
+ }), g = /* @__PURE__ */ o("div")({
28
+ name: "OnboardingFooter",
29
+ class: "OnboardingFooter_o1x0dyzv",
30
+ propsAsIs: !1
31
+ }), e = () => n, I = /* @__PURE__ */ o(e())({
32
+ name: "OnboardingActionBtn",
33
+ class: "OnboardingActionBtn_o1jfi9c3",
34
+ propsAsIs: !0
35
+ });
46
36
  export {
47
- x as CloseBtn,
48
- c as Container,
49
- a as Content,
50
- g as IconClose,
51
- m as OnboardingActionBtn,
52
- f as OnboardingFooter,
53
- s as OnboardingHeader
37
+ C as CloseBtn,
38
+ d as Container,
39
+ m as Content,
40
+ b as IconClose,
41
+ I as OnboardingActionBtn,
42
+ g as OnboardingFooter,
43
+ f as OnboardingHeader
54
44
  };
@@ -1,20 +1,18 @@
1
1
  import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
2
  import { resetCss as r } from "../../theme/theme.js";
3
3
  import { formatDecimals as n } from "../../../utils/common.js";
4
- import { PointsContainer as m, PointsIcon as s, PointsSvg as e, PointsBody as p, PointsTitle as c, PointsValue as l } from "./styles.js";
5
- import "@linaria/core";
4
+ import { PointsContainer as s, PointsIcon as m, PointsSvg as e, PointsBody as p, PointsTitle as c, PointsValue as l } from "./styles.js";
6
5
  import "../../theme/constants.js";
7
6
  import "@linaria/react";
8
7
  import "../../icons/index.js";
9
8
  import "react";
10
- import "../../theme/breakpoints.js";
11
- const T = ({ points: t }) => /* @__PURE__ */ i(m, { className: r, children: [
12
- /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(e, { name: "icon-trophy" }) }),
9
+ const y = ({ points: t }) => /* @__PURE__ */ i(s, { className: r, children: [
10
+ /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(e, { name: "icon-trophy" }) }),
13
11
  /* @__PURE__ */ i(p, { children: [
14
12
  /* @__PURE__ */ o(c, { children: "Total points" }),
15
13
  /* @__PURE__ */ o(l, { children: n(t) })
16
14
  ] })
17
15
  ] });
18
16
  export {
19
- T as Points
17
+ y as Points
20
18
  };
@@ -1,86 +1,37 @@
1
- import { styled as t } from "@linaria/react";
1
+ import { styled as s } from "@linaria/react";
2
2
  import { SvgIcon as o } from "../../icons/index.js";
3
- import { breakpoints as i } from "../../theme/breakpoints.js";
4
3
  import "react/jsx-runtime";
5
4
  import "react";
6
- import "../../theme/constants.js";
7
- const l = t.div`
8
- position: relative;
9
- display: inline-flex;
10
- align-items: center;
11
- column-gap: 8px;
12
- padding: 4px 17px 4px 4px;
13
- border-radius: 40px;
14
-
15
- &:before {
16
- content: '';
17
- position: absolute;
18
- top: 0;
19
- left: 0;
20
- bottom: 0;
21
- right: 0;
22
- border-radius: 40px;
23
- border: 1px solid var(--color-neutrals-white);
24
- opacity: 0.4;
25
- z-index: -1;
26
- }
27
-
28
- ${i.down("md")`
29
- padding-right: 10px;
30
- `}
31
- `, a = t.div`
32
- display: flex;
33
- flex-shrink: 0;
34
- align-items: center;
35
- justify-content: center;
36
- width: 40px;
37
- height: 40px;
38
- border-radius: 50%;
39
- background: var(--color-primary-green2);
40
-
41
- ${i.down("md")`
42
- width: 28px;
43
- height: 28px;
44
- `}
45
- `, x = t(o)`
46
- width: 20px;
47
- height: 20px;
48
-
49
- path {
50
- fill: var(--color-neutrals-white);
51
- }
52
-
53
- ${i.down("md")`
54
- width: 14px;
55
- height: 14px;
56
- `}
57
- `, h = t.div`
58
- display: flex;
59
- flex-direction: column;
60
- color: var(--color-neutrals-white);
61
- font-weight: var(--font-weight-default);
62
- `, c = t.div`
63
- margin-bottom: 1px;
64
- font-size: 9px;
65
- text-transform: uppercase;
66
-
67
- ${i.down("md")`
68
- display: none;
69
- `}
70
- `, m = t.div`
71
- font-size: 18px;
72
- line-height: 20px;
73
-
74
- ${i.down("md")`
75
- font-size: 14px;
76
- line-height: 22px;
77
- `}
78
- `;
5
+ const a = /* @__PURE__ */ s("div")({
6
+ name: "PointsContainer",
7
+ class: "PointsContainer_psiob9b",
8
+ propsAsIs: !1
9
+ }), l = /* @__PURE__ */ s("div")({
10
+ name: "PointsIcon",
11
+ class: "PointsIcon_p1gqe4lh",
12
+ propsAsIs: !1
13
+ }), n = () => o, c = /* @__PURE__ */ s(n())({
14
+ name: "PointsSvg",
15
+ class: "PointsSvg_p15syg2y",
16
+ propsAsIs: !0
17
+ }), r = /* @__PURE__ */ s("div")({
18
+ name: "PointsBody",
19
+ class: "PointsBody_p12n4f2h",
20
+ propsAsIs: !1
21
+ }), P = /* @__PURE__ */ s("div")({
22
+ name: "PointsTitle",
23
+ class: "PointsTitle_poqmx89",
24
+ propsAsIs: !1
25
+ }), m = /* @__PURE__ */ s("div")({
26
+ name: "PointsValue",
27
+ class: "PointsValue_prj9b3v",
28
+ propsAsIs: !1
29
+ });
79
30
  export {
80
- h as PointsBody,
81
- l as PointsContainer,
82
- a as PointsIcon,
83
- x as PointsSvg,
84
- c as PointsTitle,
31
+ r as PointsBody,
32
+ a as PointsContainer,
33
+ l as PointsIcon,
34
+ c as PointsSvg,
35
+ P as PointsTitle,
85
36
  m as PointsValue
86
37
  };
@@ -1,54 +1,14 @@
1
- import { styled as r } from "@linaria/react";
2
- import { Title as o, Description as e } from "../../../questions/insight/styles.js";
3
- const n = r.div`
4
- display: flex;
5
- flex-direction: column;
6
- row-gap: 12px;
7
- padding: var(--container-padding);
8
- border: 1px solid var(--color-neutrals-white);
9
- border-radius: 8px;
10
- background-color: var(--color-neutrals-white);
11
-
12
- &:hover {
13
- border-color: var(--color-neutrals-gray4);
14
- }
15
-
16
- ${o} {
17
- font-weight: 400;
18
- line-height: 24px;
19
- }
20
-
21
- ${e} {
22
- display: -webkit-box;
23
- font-size: 12px;
24
- line-height: 18px;
25
- text-overflow: ellipsis;
26
- word-break: break-all;
27
- overflow: hidden;
28
- -webkit-box-orient: vertical;
29
- -webkit-line-clamp: 2;
30
- }
31
- `, l = r.button`
32
- border: none;
33
- outline: none;
34
- background-color: var(--color-primary-green1);
35
- color: var(--color-white);
36
- border-radius: 40px;
37
- display: flex;
38
- justify-content: center;
39
- align-items: center;
40
- font-size: 14px;
41
- font-weight: 550;
42
- width: 100%;
43
- padding: 0px 16px;
44
- height: 44px;
45
-
46
- &:hover {
47
- background-color: var(--color-primary-green2);
48
- cursor: pointer;
49
- }
50
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const n = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "Container_cll3md7",
5
+ propsAsIs: !1
6
+ }), o = /* @__PURE__ */ s("button")({
7
+ name: "ActionBtn",
8
+ class: "ActionBtn_a10g1iik",
9
+ propsAsIs: !1
10
+ });
51
11
  export {
52
- l as ActionBtn,
12
+ o as ActionBtn,
53
13
  n as Container
54
14
  };
@@ -1,11 +1,9 @@
1
- import { styled as o } from "@linaria/react";
2
- const t = o.div`
3
- display: flex;
4
- flex-direction: column;
5
- overflow-y: auto;
6
- max-height: 100%;
7
- gap: 8px;
8
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const n = /* @__PURE__ */ s("div")({
3
+ name: "QuestionsContainer",
4
+ class: "QuestionsContainer_qvghv3l",
5
+ propsAsIs: !1
6
+ });
9
7
  export {
10
- t as QuestionsContainer
8
+ n as QuestionsContainer
11
9
  };
@@ -1,66 +1,29 @@
1
- import { styled as o } from "@linaria/react";
2
- const r = o.div`
3
- box-sizing: border-box;
4
- display: flex;
5
- flex-direction: column;
6
- row-gap: 16px;
7
- background-color: var(--color-neutrals-white);
8
- border-radius: 8px;
9
- width: 100%;
10
- `, i = o.div`
11
- display: flex;
12
- flex-direction: column;
13
- row-gap: 12px;
14
- `, t = o.h3`
15
- color: var(--color-primary-green2);
16
- font-size: 16px;
17
- line-height: 26px;
18
- font-weight: 400;
19
- font-family: var(--font-serif);
20
- font-weight: var(--font-weight-default);
21
- display: -webkit-box;
22
- -webkit-box-orient: vertical;
23
- -webkit-line-clamp: 2;
24
- overflow: hidden;
25
- word-break: break-all;
26
- text-overflow: ellipsis;
27
- max-height: 50px;
28
- `, n = o.div`
29
- color: var(--color-neutrals-gray9);
30
- font-size: 12px;
31
- line-height: 24px;
32
- font-weight: var(--font-weight-default);
33
- display: -webkit-box;
34
- -webkit-box-orient: vertical;
35
- -webkit-line-clamp: 2;
36
- overflow: hidden;
37
- word-break: break-all;
38
- text-overflow: ellipsis;
39
- max-height: 50px;
40
- `, l = o.button`
41
- border: none;
42
- outline: none;
43
- background-color: var(--color-primary-green1);
44
- color: var(--color-white);
45
- border-radius: 40px;
46
- display: flex;
47
- justify-content: center;
48
- align-items: center;
49
- font-size: 14px;
50
- font-weight: 550;
51
- width: 100%;
52
- padding: 0px 16px;
53
- height: 44px;
54
-
55
- &:hover {
56
- background-color: var(--color-primary-green2);
57
- cursor: pointer;
58
- }
59
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const n = /* @__PURE__ */ s("div")({
3
+ name: "InsightContainer",
4
+ class: "InsightContainer_i1pqqgpo",
5
+ propsAsIs: !1
6
+ }), i = /* @__PURE__ */ s("div")({
7
+ name: "InsightContent",
8
+ class: "InsightContent_igj7luu",
9
+ propsAsIs: !1
10
+ }), o = /* @__PURE__ */ s("h3")({
11
+ name: "Title",
12
+ class: "Title_t1qne9g6",
13
+ propsAsIs: !1
14
+ }), e = /* @__PURE__ */ s("div")({
15
+ name: "Description",
16
+ class: "Description_dtpr98r",
17
+ propsAsIs: !1
18
+ }), a = /* @__PURE__ */ s("button")({
19
+ name: "ActionBtn",
20
+ class: "ActionBtn_a17iaqp8",
21
+ propsAsIs: !1
22
+ });
60
23
  export {
61
- l as ActionBtn,
62
- n as Description,
63
- r as InsightContainer,
24
+ a as ActionBtn,
25
+ e as Description,
26
+ n as InsightContainer,
64
27
  i as InsightContent,
65
- t as Title
28
+ o as Title
66
29
  };