@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,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: "b1b6dl8t",
8
+ propsAsIs: !1
9
+ }), I = /* @__PURE__ */ s("div")({
10
+ name: "ButtonPct",
11
+ class: "b4iik8i",
12
+ propsAsIs: !1
13
+ }), m = /* @__PURE__ */ s("span")({
14
+ name: "ButtonBody",
15
+ class: "b1gq1lnf",
16
+ propsAsIs: !1
17
+ }), u = /* @__PURE__ */ s("div")({
18
+ name: "IconContainer",
19
+ class: "i1j65z51",
20
+ propsAsIs: !1
21
+ }), f = /* @__PURE__ */ s("div")({
22
+ name: "IconWrap",
23
+ class: "i19tpfua",
24
+ propsAsIs: !1
25
+ }), n = /* @__PURE__ */ s("img")({
26
+ name: "Icon",
27
+ class: "i1tubmma",
28
+ propsAsIs: !1
29
+ }), t = () => n, A = /* @__PURE__ */ s(t())({
30
+ name: "IconDefault",
31
+ class: "i1grrgwj",
32
+ propsAsIs: !0
33
+ }), c = () => n, d = /* @__PURE__ */ s(c())({
34
+ name: "IconCircle",
35
+ class: "ibemyq8",
36
+ propsAsIs: !0
37
+ }), b = /* @__PURE__ */ s("span")({
38
+ name: "Title",
39
+ class: "t1dceht",
40
+ propsAsIs: !1
41
+ }), B = /* @__PURE__ */ s("span")({
42
+ name: "Indicators",
43
+ class: "i116q4vq",
44
+ propsAsIs: !1
45
+ }), C = /* @__PURE__ */ s("span")({
46
+ name: "Percentage",
47
+ class: "p17ajcu2",
48
+ propsAsIs: !1
49
+ }), a = () => o, g = /* @__PURE__ */ s(a())({
50
+ name: "CheckIcon",
51
+ class: "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
+ g as CheckIcon,
59
+ n as Icon,
60
+ d as IconCircle,
61
+ u as IconContainer,
62
+ A as IconDefault,
63
+ f as IconWrap,
64
+ B as Indicators,
65
+ C as Percentage,
66
+ b 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: "wie6cqo",
8
+ propsAsIs: !1
9
+ }), c = /* @__PURE__ */ s("div")({
10
+ name: "Content",
11
+ class: "cgizw4u",
12
+ propsAsIs: !1
13
+ }), l = /* @__PURE__ */ s("div")({
14
+ name: "Title",
15
+ class: "t1l3ucjp",
16
+ propsAsIs: !1
17
+ }), o = () => n, r = /* @__PURE__ */ s(o())({
18
+ name: "WinIcon",
19
+ class: "wx7j799",
20
+ propsAsIs: !0
21
+ }), m = /* @__PURE__ */ s("div")({
22
+ name: "Points",
23
+ class: "p4lwuj0",
24
+ propsAsIs: !1
25
+ }), I = /* @__PURE__ */ s("span")({
26
+ name: "PointsCount",
27
+ class: "po9i64o",
28
+ propsAsIs: !1
29
+ }), f = /* @__PURE__ */ s("span")({
30
+ name: "PointsUnits",
31
+ class: "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
+ f 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
  };