@streamlayer/react-ui 1.10.0 → 1.11.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.
- package/lib/app/app/Features/Gamification/Tabs.js +13 -13
- package/lib/app/app/Features/Gamification/index.js +66 -62
- package/lib/app/app/Navigation/index.d.ts +4 -0
- package/lib/app/app/Navigation/index.js +88 -48
- package/lib/app/app/index.js +82 -79
- package/lib/app/app/story/index.js +27 -24
- package/lib/app/app/useApp.d.ts +2 -0
- package/lib/app/app/useApp.js +8 -7
- package/lib/app/app/useAppContext.d.ts +2 -0
- package/lib/app/app/useAppContext.js +6 -5
- package/lib/assets/style.css +1 -1
- package/lib/ui/navigation/button/FeaturedGroups.d.ts +1 -1
- package/lib/ui/navigation/index.d.ts +5 -3
- package/lib/ui/navigation/index.js +11 -12
- package/lib/ui/navigation/masters.js +1 -1
- package/lib/ui/navigation/styles.d.ts +5 -0
- package/lib/ui/navigation/styles.js +16 -0
- package/lib/ui/theme/theme.js +8 -10
- package/package.json +14 -14
- package/lib/app/app/Navigation/SDKPillNode.d.ts +0 -1
- package/lib/app/app/Navigation/SDKPillNode.js +0 -9
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
1
|
+
export declare const Navigation: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const NavigationItems: {
|
|
3
|
+
__wyw_meta: unknown;
|
|
4
|
+
} & import('react').FC<{
|
|
5
|
+
children: React.ReactElement<import('./button').ButtonProps>[];
|
|
4
6
|
className?: string;
|
|
5
7
|
}>;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const n = /* @__PURE__ */
|
|
4
|
-
name: "
|
|
5
|
-
class: "
|
|
1
|
+
import { styled as a } from "@linaria/react";
|
|
2
|
+
import { Navigation as s } from "./styles.js";
|
|
3
|
+
const n = /* @__PURE__ */ a("div")({
|
|
4
|
+
name: "Navigation",
|
|
5
|
+
class: "n6tbwuy",
|
|
6
6
|
propsAsIs: !1
|
|
7
|
-
}),
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
className: s,
|
|
12
|
-
children: t
|
|
7
|
+
}), t = () => s, e = /* @__PURE__ */ a(t())({
|
|
8
|
+
name: "NavigationItems",
|
|
9
|
+
class: "n1up4z7v",
|
|
10
|
+
propsAsIs: !0
|
|
13
11
|
});
|
|
14
12
|
export {
|
|
15
|
-
|
|
13
|
+
n as Navigation,
|
|
14
|
+
e as NavigationItems
|
|
16
15
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { styled as r } from "@linaria/react";
|
|
3
|
+
const n = /* @__PURE__ */ r("div")({
|
|
4
|
+
name: "Buttons",
|
|
5
|
+
class: "b5o8qbl",
|
|
6
|
+
propsAsIs: !1
|
|
7
|
+
}), i = ({
|
|
8
|
+
children: o,
|
|
9
|
+
className: s
|
|
10
|
+
}) => /* @__PURE__ */ t(n, {
|
|
11
|
+
className: s,
|
|
12
|
+
children: o
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
i as Navigation
|
|
16
|
+
};
|
package/lib/ui/theme/theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { breakpoints as
|
|
2
|
+
import { breakpoints as n } from "./breakpoints.js";
|
|
3
3
|
import { colors as p, colorsAdvertisement as s, FONT as e } from "./constants.js";
|
|
4
4
|
const l = `
|
|
5
5
|
${p}
|
|
@@ -20,7 +20,6 @@ const l = `
|
|
|
20
20
|
|
|
21
21
|
--header-offset: 0px;
|
|
22
22
|
--header-height: 68px;
|
|
23
|
-
--watch-live-header: 0px;
|
|
24
23
|
--animation-duration: 0.5s;
|
|
25
24
|
--animation-function: ease;
|
|
26
25
|
--container-padding: 16px;
|
|
@@ -46,12 +45,11 @@ const l = `
|
|
|
46
45
|
--promo-animation-duration: 0.5s;
|
|
47
46
|
--promo-animation-function: ease-in;
|
|
48
47
|
|
|
49
|
-
${
|
|
48
|
+
${n.down("xl")`
|
|
50
49
|
--header-offset: 0px;
|
|
51
|
-
--watch-live-header: 46px;
|
|
52
50
|
`}
|
|
53
51
|
|
|
54
|
-
${
|
|
52
|
+
${n.intermediate("xl", "lg")`
|
|
55
53
|
--header-offset: 0px;
|
|
56
54
|
`}
|
|
57
55
|
|
|
@@ -87,7 +85,7 @@ const l = `
|
|
|
87
85
|
--adv-sponsor-logo-size: 28px;
|
|
88
86
|
--adv-sponsor-font-size: 12px;
|
|
89
87
|
}
|
|
90
|
-
`, m = "StreamLayerCSSReset",
|
|
88
|
+
`, m = "StreamLayerCSSReset", g = "ttkj0ah", c = () => /* @__PURE__ */ i("table", {
|
|
91
89
|
children: /* @__PURE__ */ t("table", {
|
|
92
90
|
children: [/* @__PURE__ */ i("thead", {
|
|
93
91
|
children: /* @__PURE__ */ t("tr", {
|
|
@@ -98,8 +96,8 @@ const l = `
|
|
|
98
96
|
})]
|
|
99
97
|
})
|
|
100
98
|
}), /* @__PURE__ */ i("tbody", {
|
|
101
|
-
children: l.split(";").map((
|
|
102
|
-
const a =
|
|
99
|
+
children: l.split(";").map((d) => {
|
|
100
|
+
const a = d.trim(), [o, r] = a.split(":");
|
|
103
101
|
return /* @__PURE__ */ t("tr", {
|
|
104
102
|
children: [/* @__PURE__ */ i("td", {
|
|
105
103
|
children: o
|
|
@@ -112,8 +110,8 @@ const l = `
|
|
|
112
110
|
})
|
|
113
111
|
});
|
|
114
112
|
export {
|
|
115
|
-
|
|
113
|
+
c as ThemeVariables,
|
|
116
114
|
m as resetCss,
|
|
117
|
-
|
|
115
|
+
g as theme,
|
|
118
116
|
l as themeStr
|
|
119
117
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
"react-virtualized-auto-sizer": "^1.0.24",
|
|
60
60
|
"react-window": "^1.8.10",
|
|
61
61
|
"react-window-infinite-loader": "^1.0.9",
|
|
62
|
-
"@streamlayer/feature-gamification": "^1.
|
|
63
|
-
"@streamlayer/sdk-web": "^1.
|
|
64
|
-
"@streamlayer/sdk-web-analytics": "^1.4.
|
|
65
|
-
"@streamlayer/sdk-web-anonymous-auth": "^1.1.
|
|
66
|
-
"@streamlayer/sdk-web-api": "^1.6.
|
|
67
|
-
"@streamlayer/sdk-web-core": "^1.
|
|
68
|
-
"@streamlayer/sdk-web-features": "^1.0.
|
|
69
|
-
"@streamlayer/sdk-web-interfaces": "^1.2.
|
|
70
|
-
"@streamlayer/sdk-web-logger": "^1.0.
|
|
71
|
-
"@streamlayer/sdk-web-notifications": "^1.2.
|
|
72
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
73
|
-
"@streamlayer/sdk-web-types": "^1.7.
|
|
62
|
+
"@streamlayer/feature-gamification": "^1.8.0",
|
|
63
|
+
"@streamlayer/sdk-web": "^1.5.0",
|
|
64
|
+
"@streamlayer/sdk-web-analytics": "^1.4.1",
|
|
65
|
+
"@streamlayer/sdk-web-anonymous-auth": "^1.1.1",
|
|
66
|
+
"@streamlayer/sdk-web-api": "^1.6.1",
|
|
67
|
+
"@streamlayer/sdk-web-core": "^1.6.0",
|
|
68
|
+
"@streamlayer/sdk-web-features": "^1.0.22",
|
|
69
|
+
"@streamlayer/sdk-web-interfaces": "^1.2.1",
|
|
70
|
+
"@streamlayer/sdk-web-logger": "^1.0.22",
|
|
71
|
+
"@streamlayer/sdk-web-notifications": "^1.2.1",
|
|
72
|
+
"@streamlayer/sdk-web-storage": "^1.0.22",
|
|
73
|
+
"@streamlayer/sdk-web-types": "^1.7.1"
|
|
74
74
|
},
|
|
75
75
|
"nx": {
|
|
76
76
|
"implicitDependencies": [
|
|
@@ -111,6 +111,6 @@
|
|
|
111
111
|
"vite-plugin-svgr": "^4.2.0",
|
|
112
112
|
"vite-svg-loader": "^5.1.0",
|
|
113
113
|
"vite-tsconfig-paths": "^5.0.1",
|
|
114
|
-
"@streamlayer/react": "^1.
|
|
114
|
+
"@streamlayer/react": "^1.8.0"
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SDKPillNode: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|