@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,68 +1,39 @@
1
- import { styled as o } from "@linaria/react";
2
- const t = o.div`
3
- box-sizing: border-box;
4
- background-color: var(--color-neutrals-white);
5
- border-radius: 8px;
6
- width: 100%;
7
- `, e = o.button`
8
- border: none;
9
- outline: none;
10
- background-color: var(--color-primary-green1);
11
- color: var(--color-white);
12
- border-radius: 40px;
13
- display: flex;
14
- justify-content: center;
15
- align-items: center;
16
- font-size: 14px;
17
- font-weight: 550;
18
- width: 100%;
19
- padding: 0px 16px;
20
- height: 44px;
21
-
22
- &:hover {
23
- background-color: var(--color-primary-green2);
24
- cursor: pointer;
25
- }
26
- `, i = o.div`
27
- color: var(--color-neutrals-gray9);
28
- font-size: 12px;
29
- font-weight: var(--font-weight-default);
30
- line-height: 18px;
31
- `, n = o.img`
32
- max-width: 100%;
33
- border-radius: 8px;
34
- `, a = o.div`
35
- display: flex;
36
- flex-direction: column;
37
- row-gap: 12px;
38
- color: var(--color-neutrals-gray9);
39
- font-weight: var(--font-weight-default);
40
- margin-bottom: 16px;
41
- `, l = o.div`
42
- padding-bottom: 12px;
43
- border-bottom: 0.7px solid var(--color-neutrals-gray3);
44
- margin-bottom: 12px;
45
- `, d = o.blockquote`
46
- padding: 0px 24px 0px 12px;
47
- color: var(--color-primary-green2);
48
- border-left: 2px solid var(--color-primary-green2);
49
- font-size: 12px;
50
- font-family: var(--font-serif);
51
- font-weight: var(--font-weight-default);
52
- display: -webkit-box;
53
- -webkit-box-orient: vertical;
54
- -webkit-line-clamp: 2;
55
- overflow: hidden;
56
- word-break: break-word;
57
- text-overflow: ellipsis;
58
- max-height: 32px;
59
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const a = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "c1t4f0x4",
5
+ propsAsIs: !1
6
+ }), e = /* @__PURE__ */ s("button")({
7
+ name: "ActionBtn",
8
+ class: "a16w1nl6",
9
+ propsAsIs: !1
10
+ }), t = /* @__PURE__ */ s("div")({
11
+ name: "Body",
12
+ class: "b14u54rf",
13
+ propsAsIs: !1
14
+ }), n = /* @__PURE__ */ s("img")({
15
+ name: "Image",
16
+ class: "i1hxm6zo",
17
+ propsAsIs: !1
18
+ }), l = /* @__PURE__ */ s("div")({
19
+ name: "Details",
20
+ class: "d1s19yop",
21
+ propsAsIs: !1
22
+ }), c = /* @__PURE__ */ s("div")({
23
+ name: "QuoteWrap",
24
+ class: "q1qyx94r",
25
+ propsAsIs: !1
26
+ }), p = /* @__PURE__ */ s("blockquote")({
27
+ name: "Quote",
28
+ class: "qs97clu",
29
+ propsAsIs: !1
30
+ });
60
31
  export {
61
32
  e as ActionBtn,
62
- i as Body,
63
- t as Container,
64
- a as Details,
33
+ t as Body,
34
+ a as Container,
35
+ l as Details,
65
36
  n as Image,
66
- d as Quote,
67
- l as QuoteWrap
37
+ p as Quote,
38
+ c as QuoteWrap
68
39
  };
@@ -1,98 +1,72 @@
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 s = o.div`
6
- border-radius: var(--border-radius);
7
- padding: var(--container-padding);
8
- background-color: var(--color-neutrals-white);
9
- display: flex;
10
- align-items: center;
11
- justify-content: space-between;
12
- gap: 12px;
13
- border: 1px solid var(--color-neutrals-white);
14
-
15
- &:hover {
16
- border-color: var(--color-neutrals-gray4);
17
- }
18
- `, a = o.div`
19
- display: flex;
20
- align-items: center;
21
- justify-content: flex-start;
22
-
23
- font-size: 12px;
24
- font-weight: 500;
25
- margin-bottom: 8px;
26
- `, p = o.div`
27
- font-family: var(--font-serif);
28
- color: var(--color-primary-green2);
29
- font-size: 14px;
30
- font-weight: 400;
31
- `, l = o.div``, c = o(t)`
32
- width: 24px;
33
- height: 24px;
34
- `, d = o(t)`
35
- width: 16px;
36
- height: 16px;
37
-
38
- path {
39
- fill: var(--color-primary-green1);
40
- fill-opacity: 1;
41
- }
42
- `, f = o.div`
43
- color: var(--color-neutrals-gray7);
44
- font-size: 12px;
45
- overflow: hidden;
46
- text-overflow: ellipsis;
47
- white-space: nowrap;
48
- font-weight: 500;
49
-
50
- margin-left: 6px;
51
- `, u = o.div`
52
- font-weight: 700;
53
- flex: 1;
54
- display: flex;
55
- flex-direction: column;
56
- overflow: hidden;
57
- `, x = o.div`
58
- color: var(--color-white);
59
- font-size: 12px;
60
- overflow: hidden;
61
- text-overflow: ellipsis;
62
- white-space: nowrap;
63
- `, g = o.button`
64
- background-color: var(--color-blue-question-action-btn);
65
- border: none;
66
- border-radius: 2px;
67
- font-size: 8px;
68
- padding: 6px;
69
- height: 20px;
70
- text-transform: uppercase;
71
- color: #fff;
72
- cursor: pointer;
73
- `, v = o.img`
74
- width: 16px;
75
- height: 16px;
76
- `, h = o.span`
77
- text-transform: uppercase;
78
- `, m = o.span`
79
- text-transform: uppercase;
80
- border-left: 1px solid var(--color-grey-primary);
81
- padding-left: 5px;
82
- margin-left: 5px;
83
- `;
5
+ const a = /* @__PURE__ */ s("div")({
6
+ name: "QuestionItem",
7
+ class: "q1w97g3p",
8
+ propsAsIs: !1
9
+ }), u = /* @__PURE__ */ s("div")({
10
+ name: "QuestionCaption",
11
+ class: "q2sl39u",
12
+ propsAsIs: !1
13
+ }), l = /* @__PURE__ */ s("div")({
14
+ name: "QuestionBody",
15
+ class: "qd5h0uc",
16
+ propsAsIs: !1
17
+ }), Q = /* @__PURE__ */ s("div")({
18
+ name: "QuestionAction",
19
+ class: "q105uluy",
20
+ propsAsIs: !1
21
+ }), e = () => o, r = /* @__PURE__ */ s(e())({
22
+ name: "QuestionActionIcon",
23
+ class: "q1fa0b9h",
24
+ propsAsIs: !0
25
+ }), n = () => o, m = /* @__PURE__ */ s(n())({
26
+ name: "QuestionTypeIcon",
27
+ class: "qxlt78s",
28
+ propsAsIs: !0
29
+ }), I = /* @__PURE__ */ s("div")({
30
+ name: "QuestionTypeLabel",
31
+ class: "qmg0vkx",
32
+ propsAsIs: !1
33
+ }), A = /* @__PURE__ */ s("div")({
34
+ name: "QuestionContent",
35
+ class: "q1uz5j1g",
36
+ propsAsIs: !1
37
+ }), d = /* @__PURE__ */ s("div")({
38
+ name: "QuestionSubject",
39
+ class: "qc3icwa",
40
+ propsAsIs: !1
41
+ }), f = /* @__PURE__ */ s("button")({
42
+ name: "QuestionActionTitle",
43
+ class: "qmx43d1",
44
+ propsAsIs: !1
45
+ }), q = /* @__PURE__ */ s("img")({
46
+ name: "QuestionStatusIcon",
47
+ class: "q1uc7n5z",
48
+ propsAsIs: !1
49
+ }), y = /* @__PURE__ */ s("span")({
50
+ name: "QuestionTypeTitle",
51
+ class: "qcpp4y6",
52
+ propsAsIs: !1
53
+ }), T = /* @__PURE__ */ s("span")({
54
+ name: "ExpiredQuestion",
55
+ class: "e1rdw3wd",
56
+ propsAsIs: !1
57
+ });
84
58
  export {
85
- m as ExpiredQuestion,
86
- l as QuestionAction,
87
- c as QuestionActionIcon,
88
- g as QuestionActionTitle,
89
- p as QuestionBody,
90
- a as QuestionCaption,
91
- u as QuestionContent,
92
- s as QuestionItem,
93
- v as QuestionStatusIcon,
94
- x as QuestionSubject,
95
- d as QuestionTypeIcon,
96
- f as QuestionTypeLabel,
97
- h as QuestionTypeTitle
59
+ T as ExpiredQuestion,
60
+ Q as QuestionAction,
61
+ r as QuestionActionIcon,
62
+ f as QuestionActionTitle,
63
+ l as QuestionBody,
64
+ u as QuestionCaption,
65
+ A as QuestionContent,
66
+ a as QuestionItem,
67
+ q as QuestionStatusIcon,
68
+ d as QuestionSubject,
69
+ m as QuestionTypeIcon,
70
+ I as QuestionTypeLabel,
71
+ y as QuestionTypeTitle
98
72
  };
@@ -1,27 +1,17 @@
1
- import { styled as o } from "@linaria/react";
2
- import { Button as r } from "../../../button/index.js";
1
+ import { styled as t } from "@linaria/react";
2
+ import { Button as o } from "../../../button/index.js";
3
3
  import "react/jsx-runtime";
4
4
  import "../../../button/styles.js";
5
- const n = o.div`
6
- display: flex;
7
- flex-direction: column;
8
- row-gap: 16px;
9
- padding: 12px 16px 16px 16px;
10
- border: 1px solid var(--color-neutrals-white);
11
- border-radius: 8px;
12
- background-color: var(--color-neutrals-white);
13
-
14
- &:hover {
15
- border-color: var(--color-neutrals-gray4);
16
- }
17
- `, l = o(r)`
18
- height: 44px;
19
- padding: 0 16px;
20
- font-size: 14px;
21
- line-height: 20px;
22
- cursor: pointer;
23
- `;
5
+ const c = /* @__PURE__ */ t("div")({
6
+ name: "Container",
7
+ class: "cl56x6b",
8
+ propsAsIs: !1
9
+ }), s = () => o, i = /* @__PURE__ */ t(s())({
10
+ name: "ActionButton",
11
+ class: "a11pzf92",
12
+ propsAsIs: !0
13
+ });
24
14
  export {
25
- l as ActionButton,
26
- n as Container
15
+ i as ActionButton,
16
+ c as Container
27
17
  };
@@ -1,67 +1,24 @@
1
- import { styled as o } from "@linaria/react";
2
- const t = o.div``, e = o.div`
3
- position: relative;
4
- box-sizing: border-box;
5
- width: 100%;
6
- display: flex;
7
- overflow: hidden;
8
- border-radius: 8px;
9
- background-color: var(--color-neutrals-gray2);
10
- padding: 4px;
11
-
12
- &:before {
13
- content: '';
14
- position: absolute;
15
- background-color: var(--color-white);
16
- border-radius: 6px;
17
- height: 28px;
18
- left: 4px;
19
- width: calc(50% - 4px);
20
- transition: transform var(--animation-duration) var(--animation-function);
21
- }
22
-
23
- &[data-position='left'] {
24
- &:before {
25
- transform: translateX(0);
26
- }
27
- }
28
-
29
- &[data-position='right'] {
30
- &:before {
31
- transform: translateX(100%);
32
- }
33
- }
34
- `, n = o.button`
35
- border: none;
36
- outline: none;
37
- background-color: transparent;
38
- color: var(--color-neutrals-gray7);
39
- display: flex;
40
- justify-content: center;
41
- align-items: center;
42
- font-size: 12px;
43
- font-weight: 550;
44
- width: 50%;
45
- box-sizing: border-box;
46
- padding: 4px 10px;
47
- height: 28px;
48
- cursor: pointer;
49
-
50
- &:hover {
51
- color: var(--color-primary-green1);
52
- }
53
-
54
- &[data-selected='true'] {
55
- color: var(--color-primary-green1);
56
- cursor: default;
57
- }
58
- `, i = o.span`
59
- position: relative;
60
- z-index: 2;
61
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const a = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "c115qtkr",
5
+ propsAsIs: !1
6
+ }), n = /* @__PURE__ */ s("div")({
7
+ name: "STabs",
8
+ class: "sxnslc8",
9
+ propsAsIs: !1
10
+ }), o = /* @__PURE__ */ s("button")({
11
+ name: "Button",
12
+ class: "b1umzux0",
13
+ propsAsIs: !1
14
+ }), e = /* @__PURE__ */ s("span")({
15
+ name: "Title",
16
+ class: "tspsaas",
17
+ propsAsIs: !1
18
+ });
62
19
  export {
63
- n as Button,
64
- t as Container,
65
- e as STabs,
66
- i as Title
20
+ o as Button,
21
+ a as Container,
22
+ n as STabs,
23
+ e as Title
67
24
  };
@@ -1,25 +1,19 @@
1
- import { styled as e } from "@linaria/react";
2
- const t = e.div`
3
- display: flex;
4
- align-items: center;
5
- flex: 1;
6
- justify-content: space-between;
7
- padding: 9px 8px;
8
- color: var(--color-neutrals-white);
9
- border-radius: 4px;
10
- background-color: var(--color-primary-green2);
11
- overflow: hidden;
12
- `, r = e.div`
13
- font-size: 9px;
14
- line-height: 14px;
15
- text-transform: uppercase;
16
- opacity: 0.8;
17
- `, i = e.div`
18
- font-size: 14px;
19
- line-height: 16px;
20
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const a = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "c1zy8a",
5
+ propsAsIs: !1
6
+ }), n = /* @__PURE__ */ s("div")({
7
+ name: "Title",
8
+ class: "t1vih9p5",
9
+ propsAsIs: !1
10
+ }), o = /* @__PURE__ */ s("div")({
11
+ name: "Indicator",
12
+ class: "i1fbnvpb",
13
+ propsAsIs: !1
14
+ });
21
15
  export {
22
- t as Container,
23
- i as Indicator,
24
- r as Title
16
+ a as Container,
17
+ o as Indicator,
18
+ n as Title
25
19
  };
@@ -1,23 +1,19 @@
1
- import { styled as t } from "@linaria/react";
2
- const i = t.div`
3
- display: flex;
4
- align-items: center;
5
- flex-direction: column;
6
- row-gap: 4px;
7
- padding-top: 2px;
8
- color: var(--color-neutrals-white);
9
- text-align: center;
10
- `, o = t.div`
11
- font-size: 14px;
12
- line-height: 16px;
13
- `, n = t.div`
14
- font-size: 9px;
15
- line-height: 14px;
16
- text-transform: uppercase;
17
- opacity: 0.8;
18
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const o = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "ctmhwyc",
5
+ propsAsIs: !1
6
+ }), a = /* @__PURE__ */ s("div")({
7
+ name: "Indicator",
8
+ class: "i1jri200",
9
+ propsAsIs: !1
10
+ }), e = /* @__PURE__ */ s("div")({
11
+ name: "Title",
12
+ class: "t8s05oq",
13
+ propsAsIs: !1
14
+ });
19
15
  export {
20
- i as Container,
21
- o as Indicator,
22
- n as Title
16
+ o as Container,
17
+ a as Indicator,
18
+ e as Title
23
19
  };