@streamlayer/react-ui 0.28.1 → 0.29.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/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
|
};
|