@yakad/ui 1.2.66-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.2.66-beta",
3
+ "version": "1.2.68-beta",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
package/theme/theme.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
+ import "./zoom.css";
2
3
  interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
3
4
  mode?: "light" | "dark" | "system";
4
- color?: "green" | "pink" | "yellow" | "blue" | "purple";
5
+ color?: "green" | "red" | "yellow" | "blue" | "purple";
5
6
  zoom?: number;
6
7
  }
7
8
  declare function Theme(props: ThemeProps): JSX.Element;
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
  }
@@ -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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AAC,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"}
@@ -118,7 +118,7 @@
118
118
  --DarkOutlineVariantColor: 68 71 70;
119
119
  }
120
120
 
121
- .pink {
121
+ .red {
122
122
  --LightPrimaryColor: 156 65 70;
123
123
  --LightPrimaryContainerColor: 255 218 219;
124
124
  --LightSecondaryColor: 98 91 113;
@@ -178,7 +178,7 @@
178
178
  --DarkOutlineVariantColor: 68 71 70;
179
179
  }
180
180
 
181
- .growth {
181
+ .yellow {
182
182
  --LightPrimaryColor: 97 98 0;
183
183
  --LightPrimaryContainerColor: 232 233 113;
184
184
  --LightSecondaryColor: 98 91 113;
@@ -394,4 +394,4 @@
394
394
  --outlineColor: var(--DarkOutlineColor);
395
395
  --outlineVariantColor: var(--DarkOutlineVariantColor);
396
396
  }
397
- }
397
+ }
package/theme/theme.tsx CHANGED
@@ -1,19 +1,16 @@
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";
7
- color?: "green" | "pink" | "yellow" | "blue" | "purple";
7
+ color?: "green" | "red" | "yellow" | "blue" | "purple";
8
8
  zoom?: number;
9
9
  }
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
@@ -0,0 +1,3 @@
1
+ :root {
2
+ font-size: 62.5%;
3
+ }