@streamlayer/react-ui 1.13.0 → 1.13.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.
- package/lib/app/app/Advertisement/index.js +40 -38
- package/lib/assets/style.css +1 -1
- package/lib/ui/advertisement/index.d.ts +2 -0
- package/lib/ui/advertisement/index.js +32 -26
- package/lib/ui/advertisement/overlay/index.d.ts +2 -0
- package/lib/ui/advertisement/overlay/index.js +73 -61
- package/lib/ui/gamification/question/notification/index.js +32 -24
- package/lib/ui/gamification/vote/vote-option/index.js +56 -54
- package/lib/ui/theme/constants.d.ts +3 -0
- package/lib/ui/theme/constants.js +20 -17
- package/lib/ui/theme/masters-theme.js +16 -10
- package/lib/ui/theme/theme.js +5 -3
- package/package.json +14 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { breakpoints as i } from "./breakpoints.js";
|
|
2
2
|
import { FONT as t } from "./constants.js";
|
|
3
|
-
const
|
|
3
|
+
const r = {
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5
5
|
// @ts-expect-error
|
|
6
6
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
@@ -32,11 +32,11 @@ const E = {
|
|
|
32
32
|
SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
|
|
33
33
|
COLOR: "#fff",
|
|
34
34
|
WEIGHT_DEFAULT: "500"
|
|
35
|
-
},
|
|
35
|
+
}, E = Object.entries(r).reduce((n, [o, a]) => `
|
|
36
36
|
${n}
|
|
37
|
-
--color-${
|
|
38
|
-
`, ""),
|
|
39
|
-
${
|
|
37
|
+
--color-${o.toLowerCase().replaceAll("_", "-")}: ${a};
|
|
38
|
+
`, ""), R = `
|
|
39
|
+
${E}
|
|
40
40
|
--font-family: ${e.REGULAR};
|
|
41
41
|
--font-regular: ${e.REGULAR};
|
|
42
42
|
--font-color: ${e.COLOR};
|
|
@@ -51,6 +51,11 @@ const E = {
|
|
|
51
51
|
--line-height-default: ${t.LINE_HEIGHT};
|
|
52
52
|
--margin-title-default: ${t.MARGIN_TITLE_DEFAULT};
|
|
53
53
|
--font-header-title: 0.75rem;
|
|
54
|
+
--color-vote-btn-border: transparent;
|
|
55
|
+
--color-vote-btn-not-selected-bg-unset: #fff;
|
|
56
|
+
--color-voted-answer-bg: #1D7BFF;
|
|
57
|
+
--color-voted-btn-rct-bg: #fff;
|
|
58
|
+
--color-prediction-bg-lines-correct: #095CD1;
|
|
54
59
|
|
|
55
60
|
--header-offset: 0px;
|
|
56
61
|
--header-height: 68px;
|
|
@@ -73,7 +78,8 @@ const E = {
|
|
|
73
78
|
--insight-image-display: inline;
|
|
74
79
|
--web-link-align-items: center;
|
|
75
80
|
--web-link-column-gap: 10px;
|
|
76
|
-
|
|
81
|
+
--welcome-screen-graphic-size: 80px;
|
|
82
|
+
--welcome-screen-graphic-size-xl: 125px;
|
|
77
83
|
--insight-image-ratio: 16/9;
|
|
78
84
|
|
|
79
85
|
${i.down("xl")`
|
|
@@ -84,9 +90,9 @@ const E = {
|
|
|
84
90
|
${i.intermediate("xl", "lg")`
|
|
85
91
|
--header-offset: 76px;
|
|
86
92
|
`}
|
|
87
|
-
`,
|
|
93
|
+
`, T = "m1ojpy2l";
|
|
88
94
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
95
|
+
r as MASTERS_COLORS,
|
|
96
|
+
T as mastersTheme,
|
|
97
|
+
R as mastersThemeStr
|
|
92
98
|
};
|
package/lib/ui/theme/theme.js
CHANGED
|
@@ -17,13 +17,14 @@ const l = `
|
|
|
17
17
|
--font-size-small: ${e.SIZE_DEFAULT2};
|
|
18
18
|
--line-height-default: ${e.LINE_HEIGHT};
|
|
19
19
|
--margin-title-default: ${e.MARGIN_TITLE_DEFAULT};
|
|
20
|
-
--font-header-title:
|
|
20
|
+
--font-header-title: 1.125rem;
|
|
21
21
|
|
|
22
22
|
--header-offset: 0px;
|
|
23
23
|
--header-height: 68px;
|
|
24
24
|
--animation-duration: 0.5s;
|
|
25
25
|
--animation-function: ease;
|
|
26
26
|
--container-padding: 16px;
|
|
27
|
+
--tabs-padding-top: 16px;
|
|
27
28
|
--summary-container-padding-bottom: 16px;
|
|
28
29
|
--max-tabs-width: 100%;
|
|
29
30
|
--border-radius: 8px;
|
|
@@ -35,6 +36,7 @@ const l = `
|
|
|
35
36
|
--padding-web-link-btn: 11px 16px;
|
|
36
37
|
--insight-content-padding: 0px;
|
|
37
38
|
--close-icon-size: 12px;
|
|
39
|
+
--close-icon-size: 1.125rem;
|
|
38
40
|
--close-icon-stroke-width: 1.5;
|
|
39
41
|
--padding-title-default: 0px;
|
|
40
42
|
--insight-image-display: inline;
|
|
@@ -42,8 +44,8 @@ const l = `
|
|
|
42
44
|
--web-link-column-gap: 10px;
|
|
43
45
|
--nav-border: 1px solid var(--color-neutrals-gray3);
|
|
44
46
|
--card-border: 1px solid var(--color-card-border);
|
|
45
|
-
--welcome-screen-graphic-size:
|
|
46
|
-
--welcome-screen-graphic-size-xl:
|
|
47
|
+
--welcome-screen-graphic-size: 144px;
|
|
48
|
+
--welcome-screen-graphic-size-xl: 144px;
|
|
47
49
|
|
|
48
50
|
--row-gap-default: 12px;
|
|
49
51
|
--row-gap-default1: 12px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
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
|
|
64
|
-
"@streamlayer/sdk-web": "^1.
|
|
65
|
-
"@streamlayer/sdk-web-anonymous-auth": "^1.1.
|
|
66
|
-
"@streamlayer/sdk-web-
|
|
67
|
-
"@streamlayer/sdk-web-
|
|
68
|
-
"@streamlayer/sdk-web-
|
|
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.8.
|
|
62
|
+
"@streamlayer/feature-gamification": "^1.10.0",
|
|
63
|
+
"@streamlayer/sdk-web": "^1.6.1",
|
|
64
|
+
"@streamlayer/sdk-web-analytics": "^1.4.9",
|
|
65
|
+
"@streamlayer/sdk-web-anonymous-auth": "^1.1.9",
|
|
66
|
+
"@streamlayer/sdk-web-api": "^1.6.9",
|
|
67
|
+
"@streamlayer/sdk-web-core": "^1.7.1",
|
|
68
|
+
"@streamlayer/sdk-web-features": "^1.0.30",
|
|
69
|
+
"@streamlayer/sdk-web-interfaces": "^1.2.9",
|
|
70
|
+
"@streamlayer/sdk-web-logger": "^1.0.30",
|
|
71
|
+
"@streamlayer/sdk-web-notifications": "^1.2.9",
|
|
72
|
+
"@streamlayer/sdk-web-storage": "^1.0.30",
|
|
73
|
+
"@streamlayer/sdk-web-types": "^1.8.3"
|
|
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.9.
|
|
114
|
+
"@streamlayer/react": "^1.9.1"
|
|
115
115
|
}
|
|
116
116
|
}
|