@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,70 +1,42 @@
1
- import { styled as r } from "@linaria/react";
2
- import { SvgIcon as e } from "../../../icons/index.js";
1
+ import { styled as e } from "@linaria/react";
2
+ import { SvgIcon as s } 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 r = /* @__PURE__ */ e("div")({
6
+ name: "Container",
7
+ class: "Container_c16sbdnm",
8
+ propsAsIs: !1
9
+ }), a = () => s, p = /* @__PURE__ */ e(a())({
10
+ name: "IconPrediction",
11
+ class: "IconPrediction_ibhorgl",
12
+ propsAsIs: !0
13
+ }), d = /* @__PURE__ */ e("div")({
14
+ name: "FeedbackIconWrap",
15
+ class: "FeedbackIconWrap_f1g20ja7",
16
+ propsAsIs: !1
17
+ }), i = /* @__PURE__ */ e("div")({
18
+ name: "FeedbackHeader",
19
+ class: "FeedbackHeader_f455ozj",
20
+ propsAsIs: !1
21
+ }), l = /* @__PURE__ */ e("span")({
22
+ name: "FeedbackTitle",
23
+ class: "FeedbackTitle_f1913njx",
24
+ propsAsIs: !1
25
+ }), b = /* @__PURE__ */ e("span")({
26
+ name: "FeedbackDescription",
27
+ class: "FeedbackDescription_fzfk69z",
28
+ propsAsIs: !1
29
+ }), f = /* @__PURE__ */ e("div")({
30
+ name: "FeedbackText",
31
+ class: "FeedbackText_fx87qaj",
32
+ propsAsIs: !1
33
+ });
62
34
  export {
63
- c as Container,
64
- g as FeedbackDescription,
65
- p as FeedbackHeader,
35
+ r as Container,
36
+ b as FeedbackDescription,
37
+ i as FeedbackHeader,
66
38
  d as FeedbackIconWrap,
67
- s as FeedbackText,
39
+ f as FeedbackText,
68
40
  l as FeedbackTitle,
69
- n as IconPrediction
41
+ p 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: "Container_c1euiow",
5
+ propsAsIs: !1
6
+ }), t = /* @__PURE__ */ s("a")({
7
+ name: "WebLinkBtn",
8
+ class: "WebLinkBtn_w19zie3h",
9
+ propsAsIs: !1
10
+ });
22
11
  export {
23
- o as Container,
24
- n as WebLinkBtn
12
+ e as Container,
13
+ t 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: "Container_c14ielyq",
5
+ propsAsIs: !1
6
+ }), o = /* @__PURE__ */ s("div")({
7
+ name: "Content",
8
+ class: "Content_c1tlqx57",
9
+ propsAsIs: !1
10
+ }), e = /* @__PURE__ */ s("div")({
11
+ name: "Title",
12
+ class: "Title_t1hq58md",
13
+ propsAsIs: !1
14
+ }), a = /* @__PURE__ */ s("div")({
15
+ name: "Options",
16
+ class: "Options_o1c8nxcx",
17
+ propsAsIs: !1
18
+ });
28
19
  export {
29
- o as Container,
30
- n as Content,
31
- p as Options,
20
+ n as Container,
21
+ o as Content,
22
+ a as Options,
32
23
  e 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 n = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "Container_c1dcxmvf",
5
+ propsAsIs: !1
6
+ });
9
7
  export {
10
8
  n as Container
11
9
  };
@@ -1,151 +1,67 @@
1
- import { styled as o } from "@linaria/react";
2
- import { SvgIcon as t } from "../../../icons/index.js";
1
+ import { styled as s } from "@linaria/react";
2
+ import { SvgIcon as o } from "../../../icons/index.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
- const c = o.button`
6
- background-color: var(--color-neutrals-gray2);
7
- border: 1px solid transparent;
8
- box-sizing: border-box;
9
- border-radius: 4px;
10
- position: relative;
11
- max-height: 44px;
12
- min-height: 44px;
13
- height: 44px;
14
- width: 100%;
15
-
16
- &:hover:not(:disabled) {
17
- border-color: var(--color-neutrals-gray5);
18
- cursor: pointer;
19
- }
20
-
21
- &[data-selected='true'] {
22
- border-color: var(--color-neutrals-gray9);
23
- background-color: var(--color-white);
24
- }
25
-
26
- &[data-answerState='correct'] {
27
- position: relative;
28
- border-color: var(--color-primary-green1);
29
-
30
- &:before {
31
- content: '';
32
- top: 0;
33
- left: 0;
34
- opacity: 0.1;
35
- display: block;
36
- width: 100%;
37
- height: 100%;
38
- position: absolute;
39
- background-color: var(--color-primary-green1);
40
- }
41
- }
42
-
43
- &[data-answerState='incorrect'] {
44
- position: relative;
45
- border-color: var(--color-secondary-red1);
46
-
47
- &:before {
48
- content: '';
49
- top: 0;
50
- left: 0;
51
- opacity: 0.1;
52
- display: block;
53
- width: 100%;
54
- height: 100%;
55
- position: absolute;
56
- background-color: var(--color-secondary-red1);
57
- }
58
- }
59
-
60
- &[data-isNotChecked='true'] {
61
- border-color: var(--color-neutrals-gray3);
62
- background-color: var(--color-white);
63
- }
64
- `, l = o.div`
65
- transition: width 1s ease-in;
66
- position: absolute;
67
- border-radius: 3px;
68
- height: 100%;
69
- z-index: 0;
70
- left: 0;
71
- top: 0;
72
-
73
- background-color: var(--color-neutrals-gray3);
74
-
75
- &[data-answerState='correct'] {
76
- background-color: var(--color-primary-green1);
77
- opacity: 0.3;
78
- }
79
-
80
- &[data-answerState='incorrect'] {
81
- background-color: var(--color-secondary-red1);
82
- opacity: 0.3;
83
- }
84
-
85
- &[data-answerState='unset'] {
86
- background-color: var(--color-neutrals-gray3);
87
- }
88
- `, d = o.span`
89
- font-weight: var(--font-weight-default);
90
- color: var(--color-neutrals-gray9);
91
- font-family: var(--font-regular);
92
- background-color: transparent;
93
- padding: 5px 15px 5px 9px;
94
- align-items: center;
95
- border-radius: 2px;
96
- position: relative;
97
- font-size: 12px;
98
- outline: none;
99
- display: flex;
100
- height: 100%;
101
- border: none;
102
- width: 100%;
103
- `, s = o.div`
104
- width: 60px;
105
- `, p = o.div`
106
- position: absolute;
107
- left: 0;
108
- bottom: -1px;
109
- background-repeat: no-repeat;
110
- background-size: contain;
111
- width: 52px;
112
- height: 52px;
113
- `, r = o.img`
114
- margin-right: 8px;
115
- `, g = o(r)`
116
- height: 32px;
117
- width: 32px;
118
- `, h = o(r)`
119
- border-radius: 50%;
120
- height: 32px;
121
- width: 32px;
122
- `, u = o.span`
123
- overflow: hidden;
124
- text-align: left;
125
- white-space: nowrap;
126
- text-overflow: ellipsis;
127
- flex: 1;
128
- `, b = o.span`
129
- display: flex;
130
- `, x = o.span`
131
- margin-left: 8px;
132
- line-height: 17px;
133
- `, v = o(t)`
134
- margin-left: 8px;
135
- height: 16px;
136
- width: 16px;
137
- `;
5
+ const I = /* @__PURE__ */ s("button")({
6
+ name: "ButtonContainer",
7
+ class: "ButtonContainer_b1b6dl8t",
8
+ propsAsIs: !1
9
+ }), i = /* @__PURE__ */ s("div")({
10
+ name: "ButtonPct",
11
+ class: "ButtonPct_b4iik8i",
12
+ propsAsIs: !1
13
+ }), m = /* @__PURE__ */ s("span")({
14
+ name: "ButtonBody",
15
+ class: "ButtonBody_b1gq1lnf",
16
+ propsAsIs: !1
17
+ }), u = /* @__PURE__ */ s("div")({
18
+ name: "IconContainer",
19
+ class: "IconContainer_i1j65z51",
20
+ propsAsIs: !1
21
+ }), f = /* @__PURE__ */ s("div")({
22
+ name: "IconWrap",
23
+ class: "IconWrap_i19tpfua",
24
+ propsAsIs: !1
25
+ }), n = /* @__PURE__ */ s("img")({
26
+ name: "Icon",
27
+ class: "Icon_i1tubmma",
28
+ propsAsIs: !1
29
+ }), t = () => n, _ = /* @__PURE__ */ s(t())({
30
+ name: "IconDefault",
31
+ class: "IconDefault_i1grrgwj",
32
+ propsAsIs: !0
33
+ }), c = () => n, d = /* @__PURE__ */ s(c())({
34
+ name: "IconCircle",
35
+ class: "IconCircle_ibemyq8",
36
+ propsAsIs: !0
37
+ }), A = /* @__PURE__ */ s("span")({
38
+ name: "Title",
39
+ class: "Title_t1dceht",
40
+ propsAsIs: !1
41
+ }), B = /* @__PURE__ */ s("span")({
42
+ name: "Indicators",
43
+ class: "Indicators_i116q4vq",
44
+ propsAsIs: !1
45
+ }), C = /* @__PURE__ */ s("span")({
46
+ name: "Percentage",
47
+ class: "Percentage_p17ajcu2",
48
+ propsAsIs: !1
49
+ }), e = () => o, b = /* @__PURE__ */ s(e())({
50
+ name: "CheckIcon",
51
+ class: "CheckIcon_cu9kmlb",
52
+ propsAsIs: !0
53
+ });
138
54
  export {
139
- d as ButtonBody,
140
- c as ButtonContainer,
141
- l as ButtonPct,
142
- v as CheckIcon,
143
- r as Icon,
144
- h as IconCircle,
145
- s as IconContainer,
146
- g as IconDefault,
147
- p as IconWrap,
148
- b as Indicators,
149
- x as Percentage,
150
- u as Title
55
+ m as ButtonBody,
56
+ I as ButtonContainer,
57
+ i as ButtonPct,
58
+ b as CheckIcon,
59
+ n as Icon,
60
+ d as IconCircle,
61
+ u as IconContainer,
62
+ _ as IconDefault,
63
+ f as IconWrap,
64
+ B as Indicators,
65
+ C as Percentage,
66
+ A as Title
151
67
  };
@@ -1,50 +1,42 @@
1
- import { styled as t } from "@linaria/react";
2
- import { SvgIcon as i } from "../../../icons/index.js";
1
+ import { styled as s } from "@linaria/react";
2
+ import { SvgIcon as n } from "../../../icons/index.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
- const a = t.div`
6
- border: 1px solid var(--color-neutrals-gray3);
7
- font-family: var(--font-regular);
8
- font-weight: var(--font-weight-default);
9
- color: var(--color-neutrals-gray9);
10
- width: 100%;
11
- min-height: 40px;
12
- border-radius: 100px;
13
- display: flex;
14
- justify-content: space-between;
15
- align-items: center;
16
- padding: 3px 3px 3px 11px;
17
- font-size: 14px;
18
- letter-spacing: -0.15px;
19
-
20
- > div:first-child:last-child {
21
- margin-left: auto;
22
- margin-right: auto;
23
- }
24
- `, s = t.div`
25
- display: flex;
26
- align-items: center;
27
- `, l = t.div`
28
- color: var(--color-neutrals-gray7);
29
- margin-right: 8px;
30
- `, p = t(i)`
31
- margin-right: 4px;
32
- `, g = t.div`
33
- display: flex;
34
- align-items: flex-end;
35
- `, c = t.span`
36
- margin-right: 6px;
37
- font-size: 14px;
38
- line-height: 14px;
39
- `, d = t.span`
40
- font-size: 10px;
41
- `;
5
+ const p = /* @__PURE__ */ s("div")({
6
+ name: "WinBarContainer",
7
+ class: "WinBarContainer_wie6cqo",
8
+ propsAsIs: !1
9
+ }), c = /* @__PURE__ */ s("div")({
10
+ name: "Content",
11
+ class: "Content_cgizw4u",
12
+ propsAsIs: !1
13
+ }), l = /* @__PURE__ */ s("div")({
14
+ name: "Title",
15
+ class: "Title_t1l3ucjp",
16
+ propsAsIs: !1
17
+ }), o = () => n, r = /* @__PURE__ */ s(o())({
18
+ name: "WinIcon",
19
+ class: "WinIcon_wx7j799",
20
+ propsAsIs: !0
21
+ }), m = /* @__PURE__ */ s("div")({
22
+ name: "Points",
23
+ class: "Points_p4lwuj0",
24
+ propsAsIs: !1
25
+ }), I = /* @__PURE__ */ s("span")({
26
+ name: "PointsCount",
27
+ class: "PointsCount_po9i64o",
28
+ propsAsIs: !1
29
+ }), C = /* @__PURE__ */ s("span")({
30
+ name: "PointsUnits",
31
+ class: "PointsUnits_pe5g05h",
32
+ propsAsIs: !1
33
+ });
42
34
  export {
43
- s as Content,
44
- g as Points,
45
- c as PointsCount,
46
- d as PointsUnits,
35
+ c as Content,
36
+ m as Points,
37
+ I as PointsCount,
38
+ C as PointsUnits,
47
39
  l as Title,
48
- a as WinBarContainer,
49
- p as WinIcon
40
+ p as WinBarContainer,
41
+ r as WinIcon
50
42
  };