@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,37 +1,41 @@
1
- import { jsx as R } from "react/jsx-runtime";
2
- import { styled as E } from "@linaria/react";
3
- import { useState as O, useCallback as n } from "react";
4
- import { CountdownCircleTimer as S } from "react-countdown-circle-timer";
5
- import { COLORS as t } from "../theme/constants.js";
6
- const f = [t.PRIMARY_GREEN1, t.SECONDARY_RED1, t.SECONDARY_RED1], _ = [10, 10, 0], A = E.div`
7
- font-weight: var(--font-weight-default);
8
- `, D = t.SECONDARY_GREEN6, c = t.SECONDARY_RED3, N = t.NEUTRALS_GRAY3, T = ({ isPlaying: l = !0, duration: s = 30, onTimerExpired: o }) => {
9
- const [i, r] = O(s > 10 ? D : c), C = ({ remainingTime: e }) => /* @__PURE__ */ R(A, { children: e }), m = n(() => {
10
- o == null || o(), r(N);
11
- }, [o, r]), a = n(
12
- (e) => {
13
- e === 10 && r(c);
14
- },
15
- [r]
16
- );
17
- return /* @__PURE__ */ R(
18
- S,
19
- {
20
- isPlaying: l,
21
- duration: s,
22
- colors: f,
23
- colorsTime: _,
24
- size: 32,
25
- strokeWidth: 2,
26
- trailStrokeWidth: 2,
27
- trailColor: i,
28
- onComplete: m,
29
- onUpdate: a,
30
- children: C
31
- }
32
- );
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { styled as _ } from "@linaria/react";
3
+ import { useState as E, useCallback as R } from "react";
4
+ import { CountdownCircleTimer as O } from "react-countdown-circle-timer";
5
+ import { COLORS as o } from "../theme/constants.js";
6
+ const S = [o.PRIMARY_GREEN1, o.SECONDARY_RED1, o.SECONDARY_RED1], A = [10, 10, 0], f = /* @__PURE__ */ _("div")({
7
+ name: "RemainingTime",
8
+ class: "RemainingTime_r165427",
9
+ propsAsIs: !1
10
+ }), D = o.SECONDARY_GREEN6, c = o.SECONDARY_RED3, N = o.NEUTRALS_GRAY3, I = ({
11
+ isPlaying: i = !0,
12
+ duration: r = 30,
13
+ onTimerExpired: t
14
+ }) => {
15
+ const [m, s] = E(r > 10 ? D : c), l = ({
16
+ remainingTime: e
17
+ }) => /* @__PURE__ */ n(f, {
18
+ children: e
19
+ }), a = R(() => {
20
+ t == null || t(), s(N);
21
+ }, [t, s]), C = R((e) => {
22
+ e === 10 && s(c);
23
+ }, [s]);
24
+ return /* @__PURE__ */ n(O, {
25
+ isPlaying: i,
26
+ duration: r,
27
+ colors: S,
28
+ colorsTime: A,
29
+ size: 32,
30
+ strokeWidth: 2,
31
+ trailStrokeWidth: 2,
32
+ trailColor: m,
33
+ onComplete: a,
34
+ onUpdate: C,
35
+ children: l
36
+ });
33
37
  };
34
38
  export {
35
- A as RemainingTime,
36
- T as Timer
39
+ f as RemainingTime,
40
+ I as Timer
37
41
  };
@@ -1,29 +1,24 @@
1
- import { styled as o } from "@linaria/react";
2
- const i = o.div`
3
- display: flex;
4
- position: relative;
5
- border-radius: 8px;
6
- overflow: hidden;
7
- cursor: pointer;
8
- `, e = o.video`
9
- width: 100%;
10
- `, r = o.img`
11
- position: absolute;
12
- top: 0;
13
- left: 0;
14
- width: 100%;
15
- height: 100%;
16
- `, s = o.div`
17
- display: flex;
18
- position: absolute;
19
- top: 50%;
20
- left: 50%;
21
- transform: translate(-50%, -50%);
22
- cursor: pointer;
23
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const e = /* @__PURE__ */ s("div")({
3
+ name: "Container",
4
+ class: "Container_c1bgb86j",
5
+ propsAsIs: !1
6
+ }), a = /* @__PURE__ */ s("video")({
7
+ name: "Player",
8
+ class: "Player_p6703cq",
9
+ propsAsIs: !1
10
+ }), r = /* @__PURE__ */ s("img")({
11
+ name: "Poster",
12
+ class: "Poster_p12ow7zo",
13
+ propsAsIs: !1
14
+ }), t = /* @__PURE__ */ s("div")({
15
+ name: "Control",
16
+ class: "Control_cdpal9o",
17
+ propsAsIs: !1
18
+ });
24
19
  export {
25
- i as Container,
26
- s as Control,
27
- e as Player,
20
+ e as Container,
21
+ t as Control,
22
+ a as Player,
28
23
  r as Poster
29
24
  };
@@ -1,63 +1,47 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { styled as c } from "@linaria/react";
3
- import { useState as a } from "react";
4
- const d = c.div`
5
- display: flex;
6
- background: rgb(29, 123, 255);
7
- padding: 4px 6px;
8
- border-radius: 5px;
9
- font-size: 16px;
10
-
11
- input {
12
- display: block;
13
- width: 100%;
14
- color: #fff;
15
- font-size: 24px;
16
- border: none;
17
- padding: 2px;
18
- padding-left: 10px;
19
- background: linear-gradient(136.45deg, rgba(60, 139, 251, 0.3) 0.57%, rgba(0, 79, 190, 0.3) 100%);
20
- border: 1px solid transparent;
21
- outline: none;
22
-
23
- &:focus {
24
- border-color: rgb(29, 123, 255);
25
- }
26
- }
27
-
28
- label {
29
- margin-right: 4px;
30
- }
31
-
32
- button {
33
- width: 150px;
34
- color: #fff;
35
- background: transparent;
36
- margin: 0;
37
- padding: 0;
38
- cursor: pointer;
39
- border: none;
40
- text-transform: uppercase;
41
- }
42
-
43
- margin-bottom: 2px;
44
- `, x = ({ sdk: l, storage: t }) => {
45
- const [n, s] = a(t.getSchema() || ""), [o, p] = a(t.getToken() || "");
46
- return /* @__PURE__ */ i("div", { children: [
47
- /* @__PURE__ */ i(d, { children: [
48
- /* @__PURE__ */ e("label", { children: "Bypass Schema" }),
49
- /* @__PURE__ */ e("input", { type: "text", value: n, onChange: (r) => s(r.target.value) }),
50
- /* @__PURE__ */ e("button", { style: { visibility: "hidden" }, children: "login" })
51
- ] }),
52
- /* @__PURE__ */ i(d, { children: [
53
- /* @__PURE__ */ e("label", { children: "Bypass Token" }),
54
- /* @__PURE__ */ e("input", { type: "text", disabled: !n, value: o, onChange: (r) => p(r.target.value) }),
55
- /* @__PURE__ */ e("button", { disabled: !n || !o, onClick: async () => {
56
- await l.authorizationBypass(n, o), t.setSchema(n), t.setToken(o);
57
- }, children: "login" })
58
- ] })
59
- ] });
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { styled as r } from "@linaria/react";
3
+ import { useState as o } from "react";
4
+ const a = /* @__PURE__ */ r("div")({
5
+ name: "InputField",
6
+ class: "InputField_i1vlsnk4",
7
+ propsAsIs: !1
8
+ }), b = ({
9
+ sdk: c,
10
+ storage: t
11
+ }) => {
12
+ const [n, d] = o(t.getSchema() || ""), [i, p] = o(t.getToken() || "");
13
+ return /* @__PURE__ */ l("div", {
14
+ children: [/* @__PURE__ */ l(a, {
15
+ children: [/* @__PURE__ */ e("label", {
16
+ children: "Bypass Schema"
17
+ }), /* @__PURE__ */ e("input", {
18
+ type: "text",
19
+ value: n,
20
+ onChange: (s) => d(s.target.value)
21
+ }), /* @__PURE__ */ e("button", {
22
+ style: {
23
+ visibility: "hidden"
24
+ },
25
+ children: "login"
26
+ })]
27
+ }), /* @__PURE__ */ l(a, {
28
+ children: [/* @__PURE__ */ e("label", {
29
+ children: "Bypass Token"
30
+ }), /* @__PURE__ */ e("input", {
31
+ type: "text",
32
+ disabled: !n,
33
+ value: i,
34
+ onChange: (s) => p(s.target.value)
35
+ }), /* @__PURE__ */ e("button", {
36
+ disabled: !n || !i,
37
+ onClick: async () => {
38
+ await c.authorizationBypass(n, i), t.setSchema(n), t.setToken(i);
39
+ },
40
+ children: "login"
41
+ })]
42
+ })]
43
+ });
60
44
  };
61
45
  export {
62
- x as BypassLogin
46
+ b as BypassLogin
63
47
  };
@@ -1,96 +1,64 @@
1
- import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
- import { styled as p } from "@linaria/react";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { styled as s } from "@linaria/react";
3
3
  import { useMemo as g, useState as u } from "react";
4
- import { DeveloperStorage as b } from "../../storage.js";
5
- import { BypassLogin as h } from "./bypassLogin.js";
6
- import { EnvToggle as v } from "./envToggle.js";
7
- import { EventInput as y } from "./eventInput.js";
8
- import { SdkKey as w } from "./sdkKey.js";
4
+ import { DeveloperStorage as D } from "../../storage.js";
5
+ import { BypassLogin as B } from "./bypassLogin.js";
6
+ import { EnvToggle as I } from "./envToggle.js";
7
+ import { EventInput as x } from "./eventInput.js";
8
+ import { SdkKey as C } from "./sdkKey.js";
9
9
  import "@streamlayer/sdk-web-storage";
10
10
  import "@nanostores/react";
11
11
  import "@streamlayer/sdk-web-core";
12
12
  import "./styles.js";
13
- const D = p.div`
14
- position: fixed;
15
- bottom: 0;
16
- right: 0;
17
- max-width: 600px;
18
-
19
- font-family: system-ui;
20
- background: rgba(29, 123, 255, 0.5);
21
- border-top-left-radius: 10px;
22
- backdrop-filter: blur(5px);
23
- `, j = p.div`
24
- flex-direction: column;
25
- gap: 10px;
26
- margin-right: 60px;
27
- display: flex;
28
- margin-left: 10px;
29
- margin-top: 10px;
30
- `, k = p.button`
31
- position: absolute;
32
- z-index: 10000;
33
- bottom: 10px;
34
- right: 10px;
35
- width: 40px;
36
- height: 40px;
37
- display: flex;
38
- flex-direction: column;
39
- justify-content: space-around;
40
- background: rgb(29, 123, 255);
41
- border: none;
42
- border-radius: 6px;
43
- padding: 10px;
44
- cursor: pointer;
45
- transition: all 0.1s ease;
46
-
47
- &:hover {
48
- padding-top: 8px;
49
- padding-bottom: 8px;
50
- }
51
-
52
- &:active {
53
- transform: translateY(4px);
54
- }
55
-
56
- &[data-opened='true'] {
57
- span:nth-child(odd) {
58
- opacity: 0;
59
- }
60
- }
61
-
62
- span {
63
- display: block;
64
- background: #fff;
65
- border-radius: 4px;
66
- width: 100%;
67
- height: 4px;
68
- }
69
- `, A = ({
70
- sdk: t,
71
- sdkKey: d,
72
- setSdkKey: i,
73
- env: s,
74
- setEnv: n,
75
- event: m,
76
- setEvent: l,
77
- hideAuth: x
13
+ const _ = /* @__PURE__ */ s("div")({
14
+ name: "DeveloperContainer",
15
+ class: "DeveloperContainer_d1sqxt7l",
16
+ propsAsIs: !1
17
+ }), h = /* @__PURE__ */ s("div")({
18
+ name: "DeveloperItems",
19
+ class: "DeveloperItems_d1a3478s",
20
+ propsAsIs: !1
21
+ }), j = /* @__PURE__ */ s("button")({
22
+ name: "BurgerBtn",
23
+ class: "BurgerBtn_butjcq8",
24
+ propsAsIs: !1
25
+ }), F = ({
26
+ sdk: o,
27
+ sdkKey: i,
28
+ setSdkKey: n,
29
+ env: a,
30
+ setEnv: p,
31
+ event: l,
32
+ setEvent: c,
33
+ hideAuth: f
78
34
  }) => {
79
- const r = g(() => new b(), []), [a, c] = u(!1);
80
- return /* @__PURE__ */ e(D, { children: [
81
- /* @__PURE__ */ e(k, { "data-opened": a.toString(), onClick: () => c((f) => !f), children: [
82
- /* @__PURE__ */ o("span", {}),
83
- /* @__PURE__ */ o("span", {}),
84
- /* @__PURE__ */ o("span", {})
85
- ] }),
86
- a && /* @__PURE__ */ e(j, { children: [
87
- n && /* @__PURE__ */ o(v, { env: s, setEnv: n, storage: r }),
88
- i && /* @__PURE__ */ o(w, { sdkKey: d, setSdkKey: i, storage: r }),
89
- t && /* @__PURE__ */ o(y, { sdk: t, storage: r, event: m, setEvent: l }),
90
- !x && t && /* @__PURE__ */ o(h, { sdk: t, storage: r })
91
- ] })
92
- ] });
35
+ const r = g(() => new D(), []), [m, v] = u(!1);
36
+ return /* @__PURE__ */ t(_, {
37
+ children: [/* @__PURE__ */ t(j, {
38
+ "data-opened": m.toString(),
39
+ onClick: () => v((d) => !d),
40
+ children: [/* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {}), /* @__PURE__ */ e("span", {})]
41
+ }), m && /* @__PURE__ */ t(h, {
42
+ children: [p && /* @__PURE__ */ e(I, {
43
+ env: a,
44
+ setEnv: p,
45
+ storage: r
46
+ }), n && /* @__PURE__ */ e(C, {
47
+ sdkKey: i,
48
+ setSdkKey: n,
49
+ storage: r
50
+ }), o && /* @__PURE__ */ e(x, {
51
+ sdk: o,
52
+ storage: r,
53
+ event: l,
54
+ setEvent: c
55
+ }), !f && o && /* @__PURE__ */ e(B, {
56
+ sdk: o,
57
+ storage: r
58
+ })]
59
+ })]
60
+ });
93
61
  };
94
62
  export {
95
- A as Developer
63
+ F as Developer
96
64
  };
@@ -1,60 +1,35 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { styled as o } from "@linaria/react";
3
- const d = o.div`
4
- display: flex;
5
- align-items: center;
6
- padding: 4px 6px;
7
- font-size: 16px;
8
- user-select: none;
9
-
10
- label {
11
- cursor: pointer;
12
- }
13
- `, a = o.div`
14
- width: 2rem;
15
- height: 1rem;
16
- background: #fff;
17
- border-radius: 1em;
18
- position: relative;
19
- margin-left: 5px;
20
-
21
- input {
22
- opacity: 0;
23
- position: relative;
24
- z-index: 1;
25
- width: 100%;
26
- cursor: pointer;
27
-
28
- &:checked + span {
29
- transform: translate3d(100%, 0, 0);
30
- background: green;
31
- }
32
- }
33
-
34
- span {
35
- display: block;
36
- position: absolute;
37
- top: 0;
38
- left: 0;
39
- height: 1rem;
40
- width: 1rem;
41
- border-radius: 1em;
42
- background: gray;
43
- box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.3);
44
- transition: all 300ms;
45
- }
46
- `, m = ({ env: r, setEnv: i, storage: s }) => /* @__PURE__ */ t(d, { children: [
47
- /* @__PURE__ */ e("label", { htmlFor: "slEnvCheckbox", children: "Production:" }),
48
- /* @__PURE__ */ t(a, { children: [
49
- /* @__PURE__ */ e("input", { id: "slEnvCheckbox", type: "checkbox", checked: r === "production", onChange: () => {
50
- i((c) => {
51
- const n = c === "production" ? "development" : "production";
52
- return s.setEnv(n), n;
53
- });
54
- } }),
55
- /* @__PURE__ */ e("span", {})
56
- ] })
57
- ] });
1
+ import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
+ import { styled as c } from "@linaria/react";
3
+ const h = /* @__PURE__ */ c("div")({
4
+ name: "Switch",
5
+ class: "Switch_s14ex8bw",
6
+ propsAsIs: !1
7
+ }), p = /* @__PURE__ */ c("div")({
8
+ name: "SwitchInput",
9
+ class: "SwitchInput_s1fwty0k",
10
+ propsAsIs: !1
11
+ }), w = ({
12
+ env: o,
13
+ setEnv: e,
14
+ storage: i
15
+ }) => /* @__PURE__ */ s(h, {
16
+ children: [/* @__PURE__ */ n("label", {
17
+ htmlFor: "slEnvCheckbox",
18
+ children: "Production:"
19
+ }), /* @__PURE__ */ s(p, {
20
+ children: [/* @__PURE__ */ n("input", {
21
+ id: "slEnvCheckbox",
22
+ type: "checkbox",
23
+ checked: o === "production",
24
+ onChange: () => {
25
+ e((r) => {
26
+ const t = r === "production" ? "development" : "production";
27
+ return i.setEnv(t), t;
28
+ });
29
+ }
30
+ }), /* @__PURE__ */ n("span", {})]
31
+ })]
32
+ });
58
33
  export {
59
- m as EnvToggle
34
+ w as EnvToggle
60
35
  };
@@ -1,51 +1,9 @@
1
- import { styled as r } from "@linaria/react";
2
- const n = r.div`
3
- display: flex;
4
- background: rgb(29, 123, 255);
5
- padding: 4px 6px;
6
- border-radius: 5px;
7
- font-size: 16px;
8
-
9
- input {
10
- display: block;
11
- width: 100%;
12
- color: #fff;
13
- font-size: 24px;
14
- border: none;
15
- padding: 2px;
16
- padding-left: 10px;
17
- background: linear-gradient(136.45deg, rgba(60, 139, 251, 0.3) 0.57%, rgba(0, 79, 190, 0.3) 100%);
18
- border: 1px solid transparent;
19
- outline: none;
20
-
21
- &:focus {
22
- border-color: rgb(29, 123, 255);
23
- }
24
- }
25
-
26
- label {
27
- margin-right: 4px;
28
- }
29
-
30
- button {
31
- width: 150px;
32
- color: #fff;
33
- background: transparent;
34
- margin: 0;
35
- padding: 0;
36
- cursor: pointer;
37
- border: none;
38
- text-transform: uppercase;
39
-
40
- &:hover {
41
- transform: scale(1.1);
42
- }
43
-
44
- &:active {
45
- transform: scale(0.9);
46
- }
47
- }
48
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const e = /* @__PURE__ */ s("div")({
3
+ name: "InputField",
4
+ class: "InputField_iwjhb00",
5
+ propsAsIs: !1
6
+ });
49
7
  export {
50
- n as InputField
8
+ e as InputField
51
9
  };
@@ -2,11 +2,10 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import { StreamLayerThemeProvider as o } from "../../ui/theme/index.js";
3
3
  import { AppContainer as t } from "./styles.js";
4
4
  import "../../ui/theme/theme.js";
5
- import "@linaria/core";
6
5
  import "../../ui/theme/constants.js";
7
6
  import "@linaria/react";
8
- const a = (e) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(e, {}) }), l = (e) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(e, {}) }) }) });
7
+ const h = (e) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(e, {}) }), a = (e) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(e, {}) }) }) });
9
8
  export {
10
- l as container,
11
- a as theme
9
+ a as container,
10
+ h as theme
12
11
  };
@@ -1,23 +1,9 @@
1
- import { styled as o } from "@linaria/react";
2
- const i = o.div`
3
- width: 100vw;
4
- height: 100vh;
5
- padding: 20px;
6
- box-sizing: border-box;
7
- margin: 0;
8
- font-family: var(--font-family);
9
- color: var(--font-color);
10
-
11
- & > div {
12
- box-sizing: border-box;
13
- width: 370px;
14
- height: 100%;
15
- border-radius: 12px;
16
- overflow: auto;
17
- padding: 10px;
18
- background-color: var(--color-bg-transparent);
19
- }
20
- `;
1
+ import { styled as s } from "@linaria/react";
2
+ const a = /* @__PURE__ */ s("div")({
3
+ name: "AppContainer",
4
+ class: "AppContainer_azqfrs3",
5
+ propsAsIs: !1
6
+ });
21
7
  export {
22
- i as AppContainer
8
+ a as AppContainer
23
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "0.66.0",
3
+ "version": "0.67.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -24,6 +24,10 @@
24
24
  "import": "./lib/*/index.js",
25
25
  "default": "./lib/*/index.js",
26
26
  "types": "./lib/*/index.d.js"
27
+ },
28
+ "./style.css": {
29
+ "import": "./lib/assets/style.css",
30
+ "require": "./lib/assets/style.css"
27
31
  }
28
32
  },
29
33
  "files": [
@@ -40,8 +44,8 @@
40
44
  "@streamlayer/sdk-web": "^0.28.23",
41
45
  "@streamlayer/sdk-web-anonymous-auth": "^0.11.18",
42
46
  "@streamlayer/sdk-web-api": "^0.0.1",
43
- "@streamlayer/sdk-web-features": "^0.10.26",
44
47
  "@streamlayer/sdk-web-core": "^0.17.8",
48
+ "@streamlayer/sdk-web-features": "^0.10.26",
45
49
  "@streamlayer/sdk-web-interfaces": "^0.18.15",
46
50
  "@streamlayer/sdk-web-notifications": "^0.13.0",
47
51
  "@streamlayer/sdk-web-storage": "^0.0.4",
@@ -84,6 +88,6 @@
84
88
  "vite-plugin-svgr": "^4.1.0",
85
89
  "vite-svg-loader": "^4.0.0",
86
90
  "vite-tsconfig-paths": "^4.2.1",
87
- "@streamlayer/react": "^0.29.11"
91
+ "@streamlayer/react": "^0.30.0"
88
92
  }
89
93
  }