@streamlayer/react-ui 0.28.1 → 0.29.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/ui/app/styles.js +3 -2
- package/lib/ui/theme/ThemeTypography.js +13 -3
- package/lib/ui/theme/constants.js +2 -1
- package/lib/ui/theme/theme.js +19 -17
- package/package.json +11 -11
package/lib/ui/app/styles.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { styled as e } from "@linaria/react";
|
|
3
|
+
const n = e.p`
|
|
4
|
+
font-family: var(--font-serif);
|
|
5
|
+
font-size: 32px;
|
|
6
|
+
`, i = e.p`
|
|
7
|
+
font-family: var(--font-regular);
|
|
8
|
+
font-size: 32px;
|
|
9
|
+
`, s = () => /* @__PURE__ */ o("div", { children: [
|
|
10
|
+
/* @__PURE__ */ r(i, { children: "Regular (Benton Sans Serif)" }),
|
|
11
|
+
/* @__PURE__ */ r(n, { children: "Serif (Tiempos)" })
|
|
12
|
+
] });
|
|
3
13
|
export {
|
|
4
|
-
|
|
14
|
+
s as ThemeTypography
|
|
5
15
|
};
|
|
@@ -50,7 +50,8 @@ const N = {
|
|
|
50
50
|
NEUTRALS_GRAY9: "#25282A",
|
|
51
51
|
NEUTRALS_BLACK: "#000000"
|
|
52
52
|
}, E = Object.assign({}, N, T), S = {
|
|
53
|
-
|
|
53
|
+
REGULAR: "'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",
|
|
54
|
+
SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
|
|
54
55
|
COLOR: "#fff"
|
|
55
56
|
}, O = Object.keys(E).reduce((_, R) => {
|
|
56
57
|
const A = E[R];
|
package/lib/ui/theme/theme.js
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import { css as h } from "@linaria/core";
|
|
3
|
-
import { colors as
|
|
3
|
+
import { colors as s, FONT as t } from "./constants.js";
|
|
4
4
|
const l = `
|
|
5
|
-
${
|
|
6
|
-
--font-family: ${
|
|
7
|
-
--font-
|
|
8
|
-
|
|
5
|
+
${s}
|
|
6
|
+
--font-family: ${t.REGULAR};
|
|
7
|
+
--font-regular: ${t.REGULAR};
|
|
8
|
+
--font-color: ${t.COLOR};
|
|
9
|
+
--font-serif: ${t.SERIF};
|
|
10
|
+
`, f = h`
|
|
9
11
|
${l}
|
|
10
|
-
`,
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
12
|
+
`, p = () => /* @__PURE__ */ r("table", { children: /* @__PURE__ */ e("table", { children: [
|
|
13
|
+
/* @__PURE__ */ r("thead", { children: /* @__PURE__ */ e("tr", { children: [
|
|
14
|
+
/* @__PURE__ */ r("th", { children: "name" }),
|
|
15
|
+
/* @__PURE__ */ r("th", { children: "value" })
|
|
14
16
|
] }) }),
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
const
|
|
17
|
+
/* @__PURE__ */ r("tbody", { children: l.split(";").map((o) => {
|
|
18
|
+
const n = o.trim(), [i, c] = n.split(":");
|
|
17
19
|
return /* @__PURE__ */ e("tr", { children: [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
] },
|
|
20
|
+
/* @__PURE__ */ r("td", { children: i }),
|
|
21
|
+
/* @__PURE__ */ r("td", { children: c })
|
|
22
|
+
] }, n);
|
|
21
23
|
}) })
|
|
22
24
|
] }) });
|
|
23
25
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
p as ThemeVariables,
|
|
27
|
+
f as theme,
|
|
26
28
|
l as themeStr
|
|
27
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
],
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@streamlayer/sl-eslib": "^5.45.1",
|
|
25
|
-
"@streamlayer/feature-gamification": "^0.17.
|
|
26
|
-
"@streamlayer/sdk-web": "^0.27.
|
|
27
|
-
"@streamlayer/sdk-web-anonymous-auth": "^0.10.
|
|
28
|
-
"@streamlayer/sdk-web-api": "^0.0.
|
|
29
|
-
"@streamlayer/sdk-web-core": "^0.13.
|
|
30
|
-
"@streamlayer/sdk-web-features": "^0.10.
|
|
31
|
-
"@streamlayer/sdk-web-interfaces": "^0.18.
|
|
32
|
-
"@streamlayer/sdk-web-notifications": "^0.
|
|
33
|
-
"@streamlayer/sdk-web-storage": "^0.3.
|
|
34
|
-
"@streamlayer/sdk-web-types": "^0.16.
|
|
25
|
+
"@streamlayer/feature-gamification": "^0.17.1",
|
|
26
|
+
"@streamlayer/sdk-web": "^0.27.2",
|
|
27
|
+
"@streamlayer/sdk-web-anonymous-auth": "^0.10.7",
|
|
28
|
+
"@streamlayer/sdk-web-api": "^0.0.3",
|
|
29
|
+
"@streamlayer/sdk-web-core": "^0.13.1",
|
|
30
|
+
"@streamlayer/sdk-web-features": "^0.10.1",
|
|
31
|
+
"@streamlayer/sdk-web-interfaces": "^0.18.1",
|
|
32
|
+
"@streamlayer/sdk-web-notifications": "^0.10.0",
|
|
33
|
+
"@streamlayer/sdk-web-storage": "^0.3.3",
|
|
34
|
+
"@streamlayer/sdk-web-types": "^0.16.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@connectrpc/connect": "^1.1.3",
|