@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.
@@ -1,8 +1,9 @@
1
1
  import { styled as o } from "@linaria/react";
2
- const r = o.div`
2
+ const t = o.div`
3
3
  height: 100%;
4
4
  background: #fff;
5
+ font-family: var(--font-regular);
5
6
  `;
6
7
  export {
7
- r as SDKContainer
8
+ t as SDKContainer
8
9
  };
@@ -1,5 +1,15 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- const o = () => /* @__PURE__ */ r("div", { children: "ThemeTypography" });
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
- o as ThemeTypography
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
- FAMILY: "Roboto, sans-serif",
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];
@@ -1,27 +1,29 @@
1
- import { jsx as t, jsxs as e } from "react/jsx-runtime";
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 d, FONT as n } from "./constants.js";
3
+ import { colors as s, FONT as t } from "./constants.js";
4
4
  const l = `
5
- ${d}
6
- --font-family: ${n.FAMILY};
7
- --font-color: ${n.COLOR};
8
- `, p = h`
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
- `, f = () => /* @__PURE__ */ t("table", { children: /* @__PURE__ */ e("table", { children: [
11
- /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ e("tr", { children: [
12
- /* @__PURE__ */ t("th", { children: "name" }),
13
- /* @__PURE__ */ t("th", { children: "value" })
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__ */ t("tbody", { children: l.split(";").map((o) => {
16
- const r = o.trim(), [c, i] = r.split(":");
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__ */ t("td", { children: c }),
19
- /* @__PURE__ */ t("td", { children: i })
20
- ] }, r);
20
+ /* @__PURE__ */ r("td", { children: i }),
21
+ /* @__PURE__ */ r("td", { children: c })
22
+ ] }, n);
21
23
  }) })
22
24
  ] }) });
23
25
  export {
24
- f as ThemeVariables,
25
- p as theme,
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.28.1",
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.0",
26
- "@streamlayer/sdk-web": "^0.27.1",
27
- "@streamlayer/sdk-web-anonymous-auth": "^0.10.6",
28
- "@streamlayer/sdk-web-api": "^0.0.2",
29
- "@streamlayer/sdk-web-core": "^0.13.0",
30
- "@streamlayer/sdk-web-features": "^0.10.0",
31
- "@streamlayer/sdk-web-interfaces": "^0.18.0",
32
- "@streamlayer/sdk-web-notifications": "^0.9.4",
33
- "@streamlayer/sdk-web-storage": "^0.3.2",
34
- "@streamlayer/sdk-web-types": "^0.16.0"
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",