@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.
Files changed (83) hide show
  1. package/lib/LeaderBoard_16p26hz-4ed993c7.js +1 -0
  2. package/lib/assets/style.css +1 -0
  3. package/lib/index.js +4 -5
  4. package/lib/index_4nhkck-4ed993c7.js +1 -0
  5. package/lib/masters_k70xsy-4ed993c7.js +1 -0
  6. package/lib/ui/app/Features/FeatureProvider.js +1 -1
  7. package/lib/ui/app/Features/Gamification/Question.js +47 -34
  8. package/lib/ui/app/Features/Gamification/gamification-feature.d.ts +2 -0
  9. package/lib/ui/app/Features/Gamification/gamification-feature.js +66 -0
  10. package/lib/ui/app/Features/Gamification/index.d.ts +0 -1
  11. package/lib/ui/app/Features/Gamification/index.js +51 -38
  12. package/lib/ui/app/Features/index.js +1 -1
  13. package/lib/ui/app/Navigation/MastersNavigation/index.js +13 -10
  14. package/lib/ui/app/Navigation/index.js +13 -12
  15. package/lib/ui/app/Notifications/Onboarding/Notification/index.d.ts +8 -0
  16. package/lib/ui/app/Notifications/Onboarding/Notification/index.js +21 -0
  17. package/lib/ui/app/Notifications/Onboarding/Notification/styles.d.ts +10 -0
  18. package/lib/ui/app/Notifications/Onboarding/Notification/styles.js +52 -0
  19. package/lib/ui/app/Notifications/Onboarding/index.js +95 -73
  20. package/lib/ui/app/Notifications/index.js +37 -13
  21. package/lib/ui/app/Notifications/styles.js +8 -13
  22. package/lib/ui/app/masters.js +49 -28
  23. package/lib/ui/app/styles.js +20 -35
  24. package/lib/ui/app/useMastersApp.js +52 -36
  25. package/lib/ui/button/styles.js +12 -42
  26. package/lib/ui/gamification/detail/header/styles.js +33 -55
  27. package/lib/ui/gamification/detail/sponsor/index.js +18 -11
  28. package/lib/ui/gamification/insight/styles.js +40 -61
  29. package/lib/ui/gamification/insight-list/styles.js +11 -17
  30. package/lib/ui/gamification/invite-link/styles.js +31 -45
  31. package/lib/ui/gamification/leaderboard/list-item/styles.js +42 -64
  32. package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.js +31 -44
  33. package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.js +72 -99
  34. package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.js +41 -80
  35. package/lib/ui/gamification/onboarding/styles.js +38 -48
  36. package/lib/ui/gamification/points/index.d.ts +1 -1
  37. package/lib/ui/gamification/points/index.js +4 -6
  38. package/lib/ui/gamification/points/styles.js +32 -81
  39. package/lib/ui/gamification/question/insight/styles.js +11 -51
  40. package/lib/ui/gamification/question/list/styles.js +7 -9
  41. package/lib/ui/gamification/question/notification/insight/styles.js +27 -64
  42. package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.js +82 -163
  43. package/lib/ui/gamification/question/notification/prediction-result/styles.js +53 -128
  44. package/lib/ui/gamification/question/notification/styles.js +43 -83
  45. package/lib/ui/gamification/question/notification/tweet/styles.js +35 -64
  46. package/lib/ui/gamification/question/styles.js +68 -94
  47. package/lib/ui/gamification/question/twitter/styles.js +13 -23
  48. package/lib/ui/gamification/tabs/styles.js +22 -65
  49. package/lib/ui/gamification/user-statistics/components/rank/styles.js +17 -23
  50. package/lib/ui/gamification/user-statistics/components/statistic/styles.js +17 -21
  51. package/lib/ui/gamification/user-statistics/styles.js +85 -120
  52. package/lib/ui/gamification/vote/expired-alert/styles.js +17 -27
  53. package/lib/ui/gamification/vote/feedback/styles.js +36 -64
  54. package/lib/ui/gamification/vote/insight-details/styles.js +12 -23
  55. package/lib/ui/gamification/vote/styles.js +22 -31
  56. package/lib/ui/gamification/vote/twitter-details/styles.js +7 -9
  57. package/lib/ui/gamification/vote/vote-option/styles.js +63 -147
  58. package/lib/ui/gamification/vote/win-bar/styles.js +37 -45
  59. package/lib/ui/icons/index.js +29 -14
  60. package/lib/ui/login/styles.js +37 -69
  61. package/lib/ui/navigation/button/Channels.js +19 -27
  62. package/lib/ui/navigation/button/FeaturedGroups.js +18 -26
  63. package/lib/ui/navigation/button/LeaderBoard.js +20 -21
  64. package/lib/ui/navigation/button/styles.js +16 -56
  65. package/lib/ui/navigation/index.js +13 -7
  66. package/lib/ui/navigation/masters.js +8 -32
  67. package/lib/ui/questions/insight/styles.js +26 -30
  68. package/lib/ui/questions/twitter/account/styles.js +30 -35
  69. package/lib/ui/questions/twitter/styles.js +31 -42
  70. package/lib/ui/show-in/index.js +18 -63
  71. package/lib/ui/theme/index.js +3 -4
  72. package/lib/ui/theme/masters.js +2 -9
  73. package/lib/ui/theme/theme.js +36 -32
  74. package/lib/ui/timer/index.js +36 -32
  75. package/lib/ui/video-player/styles.js +22 -27
  76. package/lib/utils/debug/components/bypassLogin.js +44 -60
  77. package/lib/utils/debug/components/developer.js +54 -86
  78. package/lib/utils/debug/components/envToggle.js +33 -58
  79. package/lib/utils/debug/components/eventInput.js +4 -4
  80. package/lib/utils/debug/components/styles.js +7 -49
  81. package/lib/utils/decorators/container.js +3 -4
  82. package/lib/utils/decorators/styles.js +7 -21
  83. package/package.json +13 -9
@@ -1,124 +1,89 @@
1
- import { styled as e } from "@linaria/react";
2
- const o = e.div`
3
- padding: 12px;
4
- font-weight: var(--font-weight-default);
5
- background-color: var(--color-primary-green1);
6
- border-radius: 12px;
7
- `, i = e.div`
8
- margin-bottom: 12px;
9
- display: flex;
10
- align-items: center;
11
- justify-content: space-between;
12
- column-gap: 8px;
13
- `, n = e.div`
14
- display: flex;
15
- flex-direction: column;
16
- row-gap: 8px;
17
- `, r = e.div`
18
- display: flex;
19
- column-gap: 8px;
20
- flex: 1;
21
- overflow: hidden;
22
- `, a = e.img`
23
- width: 48px;
24
- height: 48px;
25
- border-radius: 50%;
26
- object-fit: cover;
27
- object-position: center;
28
- flex-shrink: 0;
29
- `, s = e.div`
30
- display: flex;
31
- flex-direction: column;
32
- row-gap: 6px;
33
- overflow: hidden;
34
- `, c = e.div`
35
- color: var(--color-white);
36
- font-size: 16px;
37
- font-weight: 400;
38
- line-height: 24px;
39
- overflow: hidden;
40
- text-overflow: ellipsis;
41
- white-space: nowrap;
42
- `, p = e.div`
43
- display: flex;
44
- align-items: center;
45
- column-gap: 8px;
46
- height: 14px;
47
- color: var(--color-neutrals-white);
48
- font-size: 14px;
49
- text-transform: uppercase;
50
- `, l = e.img`
51
- width: 15px;
52
- height: 15px;
53
- `, d = e.div`
54
- display: flex;
55
- align-items: center;
56
- column-gap: 4px;
57
- `, x = e.div`
58
- display: flex;
59
- align-items: baseline;
60
- column-gap: 4px;
61
- `, f = e.div`
62
- font-size: 9px;
63
- opacity: 0.8;
64
- `, g = e.div`
65
- width: 1px;
66
- height: 10px;
67
- background-color: var(--color-white);
68
- opacity: 0.2;
69
- `, h = e.div`
70
- display: flex;
71
- column-gap: 8px;
72
- `, u = e.div`
73
- display: flex;
74
- justify-content: space-between;
75
- padding: 8px 12px;
76
- border-radius: 4px;
77
- background-color: var(--color-primary-green2);
78
- `, m = e.div`
79
- background: #2d6ffd;
80
- border-radius: 50%;
81
- width: 48px;
82
- height: 48px;
83
- text-align: center;
84
- text-transform: uppercase;
85
- display: flex;
86
- align-items: center;
87
- justify-content: center;
88
- color: #fff;
89
- font-size: 18px;
90
- flex-shrink: 0;
91
- `, v = e.button`
92
- border: none;
93
- outline: none;
94
- background-color: transparent;
95
- cursor: pointer;
96
- padding: 0px;
97
- display: flex;
98
- justify-content: center;
99
- align-items: center;
100
- border-radius: 50%;
101
- width: 100%;
102
- height: 100%;
103
- max-width: 48px;
104
- max-height: 48px;
105
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const o = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "c1yrpn9o",
5
+ propsAsIs: !1
6
+ }), n = /* @__PURE__ */ s("div")({
7
+ name: "TopInfo",
8
+ class: "t17fwahh",
9
+ propsAsIs: !1
10
+ }), e = /* @__PURE__ */ s("div")({
11
+ name: "BottomInfo",
12
+ class: "by6w7e9",
13
+ propsAsIs: !1
14
+ }), t = /* @__PURE__ */ s("div")({
15
+ name: "User",
16
+ class: "u1g7arbm",
17
+ propsAsIs: !1
18
+ }), r = /* @__PURE__ */ s("img")({
19
+ name: "Avatar",
20
+ class: "a1ldeata",
21
+ propsAsIs: !1
22
+ }), c = /* @__PURE__ */ s("div")({
23
+ name: "UserInfo",
24
+ class: "u10d4koz",
25
+ propsAsIs: !1
26
+ }), l = /* @__PURE__ */ s("div")({
27
+ name: "UserName",
28
+ class: "u1q6roj0",
29
+ propsAsIs: !1
30
+ }), p = /* @__PURE__ */ s("div")({
31
+ name: "UserRating",
32
+ class: "ui0m425",
33
+ propsAsIs: !1
34
+ }), i = /* @__PURE__ */ s("img")({
35
+ name: "TrophyIcon",
36
+ class: "t1el3mrn",
37
+ propsAsIs: !1
38
+ }), m = /* @__PURE__ */ s("div")({
39
+ name: "Rts",
40
+ class: "r2vgnxv",
41
+ propsAsIs: !1
42
+ }), I = /* @__PURE__ */ s("div")({
43
+ name: "RtsIndicator",
44
+ class: "roqn06j",
45
+ propsAsIs: !1
46
+ }), d = /* @__PURE__ */ s("div")({
47
+ name: "RtsLabel",
48
+ class: "r15adx7c",
49
+ propsAsIs: !1
50
+ }), f = /* @__PURE__ */ s("div")({
51
+ name: "Divider",
52
+ class: "dv59lta",
53
+ propsAsIs: !1
54
+ }), v = /* @__PURE__ */ s("div")({
55
+ name: "Ranks",
56
+ class: "r55lotb",
57
+ propsAsIs: !1
58
+ }), A = /* @__PURE__ */ s("div")({
59
+ name: "Statistics",
60
+ class: "s1knfgqt",
61
+ propsAsIs: !1
62
+ }), R = /* @__PURE__ */ s("div")({
63
+ name: "AvatarPlaceholder",
64
+ class: "a1mqo824",
65
+ propsAsIs: !1
66
+ }), U = /* @__PURE__ */ s("button")({
67
+ name: "UserAccountBtn",
68
+ class: "uxareh6",
69
+ propsAsIs: !1
70
+ });
106
71
  export {
107
- a as Avatar,
108
- m as AvatarPlaceholder,
109
- n as BottomInfo,
72
+ r as Avatar,
73
+ R as AvatarPlaceholder,
74
+ e as BottomInfo,
110
75
  o as Container,
111
- g as Divider,
112
- h as Ranks,
113
- d as Rts,
114
- x as RtsIndicator,
115
- f as RtsLabel,
116
- u as Statistics,
117
- i as TopInfo,
118
- l as TrophyIcon,
119
- r as User,
120
- v as UserAccountBtn,
121
- s as UserInfo,
122
- c as UserName,
76
+ f as Divider,
77
+ v as Ranks,
78
+ m as Rts,
79
+ I as RtsIndicator,
80
+ d as RtsLabel,
81
+ A as Statistics,
82
+ n as TopInfo,
83
+ i as TrophyIcon,
84
+ t as User,
85
+ U as UserAccountBtn,
86
+ c as UserInfo,
87
+ l as UserName,
123
88
  p as UserRating
124
89
  };
@@ -1,29 +1,19 @@
1
- import { styled as t } from "@linaria/react";
2
- const i = t.div`
3
- display: flex;
4
- flex-grow: 1;
5
- flex-direction: column;
6
- justify-content: center;
7
- align-items: center;
8
- row-gap: 12px;
9
- padding-bottom: 32px;
10
- `, n = t.div`
11
- color: var(--color-primary-green2);
12
- font-size: 20px;
13
- font-family: var(--font-serif);
14
- font-weight: 400;
15
- line-height: 26px;
16
- text-align: center;
17
- `, o = t.div`
18
- color: var(--color-neutrals-gray9);
19
- font-size: 14px;
20
- font-weight: var(--font-weight-default);
21
- line-height: 20px;
22
- letter-spacing: -0.154px;
23
- text-align: center;
24
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const e = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "c38csyt",
5
+ propsAsIs: !1
6
+ }), o = /* @__PURE__ */ s("div")({
7
+ name: "Title",
8
+ class: "ty221rx",
9
+ propsAsIs: !1
10
+ }), a = /* @__PURE__ */ s("div")({
11
+ name: "Description",
12
+ class: "dlaj9xp",
13
+ propsAsIs: !1
14
+ });
25
15
  export {
26
- i as Container,
27
- o as Description,
28
- n as Title
16
+ e as Container,
17
+ a as Description,
18
+ o as Title
29
19
  };
@@ -1,70 +1,42 @@
1
- import { styled as r } from "@linaria/react";
1
+ import { styled as s } from "@linaria/react";
2
2
  import { SvgIcon as e } from "../../../icons/index.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
- const c = r.div`
6
- width: 100%;
7
- padding: 8px 0px;
8
- display: flex;
9
- align-items: center;
10
- margin-bottom: 16px;
11
- font-size: 14px;
12
-
13
- &[data-isPrediction='true'] {
14
- align-items: flex-start;
15
- }
16
- `, n = r(e)`
17
- min-width: 24px;
18
- width: 24px;
19
- height: 24px;
20
- margin-right: 14px;
21
- margin-left: 12px;
22
-
23
- g > path {
24
- fill: var(--color-primary-green1);
25
- fill-opacity: 1;
26
- }
27
- `, d = r.div`
28
- min-width: 32px;
29
- width: 32px;
30
- height: 32px;
31
- border-radius: 50%;
32
- display: flex;
33
- align-items: center;
34
- justify-content: center;
35
- margin-right: 16px;
36
-
37
- &[data-feedbackType='correct'] {
38
- background-color: var(--color-primary-green1);
39
- }
40
-
41
- &[data-feedbackType='incorrect'] {
42
- background-color: var(--color-secondary-red1);
43
- }
44
- `, p = r.div`
45
- font-weight: var(--font-weight-default);
46
- `, l = r.span`
47
- margin-right: 5px;
48
-
49
- &[data-feedbackType='correct'] {
50
- color: var(--color-primary-green1);
51
- }
52
-
53
- &[data-feedbackType='incorrect'] {
54
- color: var(--color-secondary-red1);
55
- }
56
- `, g = r.span`
57
- color: var(--color-neutrals-gray9);
58
- `, s = r.div`
59
- font-weight: 400;
60
- margin-top: 10px;
61
- `;
5
+ const p = /* @__PURE__ */ s("div")({
6
+ name: "Container",
7
+ class: "c16sbdnm",
8
+ propsAsIs: !1
9
+ }), a = () => e, r = /* @__PURE__ */ s(a())({
10
+ name: "IconPrediction",
11
+ class: "ibhorgl",
12
+ propsAsIs: !0
13
+ }), i = /* @__PURE__ */ s("div")({
14
+ name: "FeedbackIconWrap",
15
+ class: "f1g20ja7",
16
+ propsAsIs: !1
17
+ }), d = /* @__PURE__ */ s("div")({
18
+ name: "FeedbackHeader",
19
+ class: "f455ozj",
20
+ propsAsIs: !1
21
+ }), l = /* @__PURE__ */ s("span")({
22
+ name: "FeedbackTitle",
23
+ class: "f1913njx",
24
+ propsAsIs: !1
25
+ }), f = /* @__PURE__ */ s("span")({
26
+ name: "FeedbackDescription",
27
+ class: "fzfk69z",
28
+ propsAsIs: !1
29
+ }), m = /* @__PURE__ */ s("div")({
30
+ name: "FeedbackText",
31
+ class: "fx87qaj",
32
+ propsAsIs: !1
33
+ });
62
34
  export {
63
- c as Container,
64
- g as FeedbackDescription,
65
- p as FeedbackHeader,
66
- d as FeedbackIconWrap,
67
- s as FeedbackText,
35
+ p as Container,
36
+ f as FeedbackDescription,
37
+ d as FeedbackHeader,
38
+ i as FeedbackIconWrap,
39
+ m as FeedbackText,
68
40
  l as FeedbackTitle,
69
- n as IconPrediction
41
+ r as IconPrediction
70
42
  };
@@ -1,25 +1,14 @@
1
- import { styled as r } from "@linaria/react";
2
- const o = r.div`
3
- display: flex;
4
- flex-direction: column;
5
- row-gap: 12px;
6
- padding: var(--container-padding);
7
- background-color: var(--color-neutrals-white);
8
- `, n = r.a`
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- column-gap: 10px;
13
- padding: 11px 16px;
14
- color: var(--color-primary-green1);
15
- font-size: 14px;
16
- font-weight: var(--font-weight-default);
17
- line-height: 20px;
18
- border-radius: 40px;
19
- border: 1px solid var(--color-primary-green1);
20
- text-decoration: none;
21
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const e = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "c1euiow",
5
+ propsAsIs: !1
6
+ }), o = /* @__PURE__ */ s("a")({
7
+ name: "WebLinkBtn",
8
+ class: "w19zie3h",
9
+ propsAsIs: !1
10
+ });
22
11
  export {
23
- o as Container,
24
- n as WebLinkBtn
12
+ e as Container,
13
+ o as WebLinkBtn
25
14
  };
@@ -1,33 +1,24 @@
1
- import { styled as i } from "@linaria/react";
2
- const o = i.div`
3
- width: 100%;
4
- height: 100%;
5
-
6
- & > div:not(:last-child) {
7
- margin-bottom: 16px;
8
- }
9
- `, n = i.div`
10
- display: flex;
11
- flex-direction: column;
12
- width: 100%;
13
- height: 100%;
14
- padding: 16px 16px 0px 16px;
15
- `, e = i.div`
16
- font-family: var(--font-serif);
17
- font-size: 16px;
18
- color: var(--color-primary-green2);
19
- font-weight: 400;
20
- margin: 16px 0px;
21
- margin-bottom: 16px;
22
- `, p = i.div`
23
- position: relative;
24
- gap: 8px;
25
- display: flex;
26
- flex-direction: column;
27
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const n = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "c14ielyq",
5
+ propsAsIs: !1
6
+ }), e = /* @__PURE__ */ s("div")({
7
+ name: "Content",
8
+ class: "c1tlqx57",
9
+ propsAsIs: !1
10
+ }), o = /* @__PURE__ */ s("div")({
11
+ name: "Title",
12
+ class: "t1hq58md",
13
+ propsAsIs: !1
14
+ }), l = /* @__PURE__ */ s("div")({
15
+ name: "Options",
16
+ class: "o1c8nxcx",
17
+ propsAsIs: !1
18
+ });
28
19
  export {
29
- o as Container,
30
- n as Content,
31
- p as Options,
32
- e as Title
20
+ n as Container,
21
+ e as Content,
22
+ l as Options,
23
+ o as Title
33
24
  };
@@ -1,11 +1,9 @@
1
- import { styled as o } from "@linaria/react";
2
- const n = o.div`
3
- display: flex;
4
- flex-direction: column;
5
- row-gap: 12px;
6
- padding: var(--container-padding);
7
- background-color: var(--color-neutrals-white);
8
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const t = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "c1dcxmvf",
5
+ propsAsIs: !1
6
+ });
9
7
  export {
10
- n as Container
8
+ t as Container
11
9
  };