@yakad/ui 1.2.67-beta → 1.2.68-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 +1 -1
- package/theme/theme.d.ts +2 -1
- package/theme/theme.js +2 -2
- package/theme/theme.js.map +1 -1
- package/theme/theme.tsx +2 -5
- package/theme/zoom.css +3 -0
package/package.json
CHANGED
package/theme/theme.d.ts
CHANGED
package/theme/theme.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { joinClassNames } from "@yakad/lib";
|
|
3
2
|
import styles from "./theme.module.css";
|
|
3
|
+
import "./zoom.css";
|
|
4
4
|
function Theme(props) {
|
|
5
5
|
const zoomPercentage = props.zoom ? (props.zoom / 100) * 62.5 : 62.5;
|
|
6
|
-
document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
|
|
6
|
+
// document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
|
|
7
7
|
const joinedClassNames = joinClassNames(props.mode ? styles[props.mode] : styles.system, props.color ? styles[props.color] : styles.blue, props.className);
|
|
8
8
|
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
9
9
|
}
|
package/theme/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["theme.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,YAAY,CAAC;AAQpB,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,mFAAmF;IAEnF,MAAM,gBAAgB,GAAG,cAAc,CACnC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAC/C,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAC/C,KAAK,CAAC,SAAU,CACnB,CAAC;IAEF,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,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
2
|
import styles from "./theme.module.css";
|
|
3
|
+
import "./zoom.css";
|
|
4
4
|
|
|
5
5
|
interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
6
|
mode?: "light" | "dark" | "system";
|
|
@@ -10,10 +10,7 @@ interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
10
10
|
|
|
11
11
|
function Theme(props: ThemeProps) {
|
|
12
12
|
const zoomPercentage = props.zoom ? (props.zoom / 100) * 62.5 : 62.5;
|
|
13
|
-
document.documentElement.style.setProperty(
|
|
14
|
-
"font-size",
|
|
15
|
-
zoomPercentage + "%"
|
|
16
|
-
);
|
|
13
|
+
// document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
|
|
17
14
|
|
|
18
15
|
const joinedClassNames = joinClassNames(
|
|
19
16
|
props.mode ? styles[props.mode] : styles.system,
|
package/theme/zoom.css
ADDED