@yakad/ui 1.2.67-beta → 1.2.69-beta

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.2.67-beta",
3
+ "version": "1.2.69-beta",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
package/theme/theme.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import "./zoom.css";
2
3
  interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
3
4
  mode?: "light" | "dark" | "system";
4
5
  color?: "green" | "red" | "yellow" | "blue" | "purple";
package/theme/theme.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import React from "react";
2
2
  import { joinClassNames } from "@yakad/lib";
3
3
  import styles from "./theme.module.css";
4
+ import "./zoom.css";
4
5
  function Theme(props) {
5
6
  const zoomPercentage = props.zoom ? (props.zoom / 100) * 62.5 : 62.5;
6
- document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
7
+ // document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
7
8
  const joinedClassNames = joinClassNames(props.mode ? styles[props.mode] : styles.system, props.color ? styles[props.color] : styles.blue, props.className);
8
9
  return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
9
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["theme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAQxC,SAAS,KAAK,CAAC,KAAiB;IAC5B,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACrE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,OAAO,CACH,gCAAS,KAAK,EAAE,SAAS,EAAE,gBAAgB,IACtC,KAAK,CAAC,QAAQ,CACb,CACT,CAAC;AACN,CAAC;AAED,eAAe,KAAK,CAAC"}
package/theme/theme.tsx CHANGED
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { joinClassNames, joinStyles } from "@yakad/lib";
3
3
  import styles from "./theme.module.css";
4
+ import "./zoom.css";
4
5
 
5
6
  interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
6
7
  mode?: "light" | "dark" | "system";
@@ -10,10 +11,7 @@ interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
10
11
 
11
12
  function Theme(props: ThemeProps) {
12
13
  const zoomPercentage = props.zoom ? (props.zoom / 100) * 62.5 : 62.5;
13
- document.documentElement.style.setProperty(
14
- "font-size",
15
- zoomPercentage + "%"
16
- );
14
+ // document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
17
15
 
18
16
  const joinedClassNames = joinClassNames(
19
17
  props.mode ? styles[props.mode] : styles.system,
package/theme/zoom.css ADDED
@@ -0,0 +1,3 @@
1
+ :root {
2
+ font-size: 62.5%;
3
+ }