@yakad/ui 1.2.75-beta → 1.2.77-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.
Files changed (98) hide show
  1. package/appBar/appBar.d.ts +3 -3
  2. package/appBar/appBar.js +8 -8
  3. package/appBar/appBar.module.css +15 -15
  4. package/appBar/appBar.tsx +15 -15
  5. package/button/button.d.ts +13 -13
  6. package/button/button.js +27 -27
  7. package/button/button.module.css +170 -170
  8. package/button/button.tsx +87 -87
  9. package/card/card.d.ts +3 -3
  10. package/card/card.js +8 -8
  11. package/card/card.module.css +11 -11
  12. package/card/card.tsx +15 -15
  13. package/clickAwayListener/clickAwayListener.d.ts +6 -6
  14. package/clickAwayListener/clickAwayListener.js +16 -16
  15. package/clickAwayListener/clickAwayListener.tsx +27 -27
  16. package/codeField/codeField.d.ts +8 -8
  17. package/codeField/codeField.js +9 -9
  18. package/codeField/codeField.module.css +23 -23
  19. package/codeField/codeField.tsx +32 -32
  20. package/container/container.d.ts +8 -8
  21. package/container/container.js +8 -8
  22. package/container/container.module.css +24 -24
  23. package/container/container.tsx +27 -27
  24. package/declarations.d.ts +1 -1
  25. package/footer/footer.d.ts +3 -3
  26. package/footer/footer.js +8 -8
  27. package/footer/footer.module.css +9 -9
  28. package/footer/footer.tsx +15 -15
  29. package/form/form.d.ts +3 -3
  30. package/form/form.js +11 -11
  31. package/form/form.module.css +6 -6
  32. package/form/form.tsx +23 -23
  33. package/gridContainer/gridContainer.d.ts +7 -7
  34. package/gridContainer/gridContainer.js +10 -10
  35. package/gridContainer/gridContainer.module.css +6 -5
  36. package/gridContainer/gridContainer.tsx +28 -28
  37. package/gridItem/gridItem.d.ts +10 -10
  38. package/gridItem/gridItem.js +9 -9
  39. package/gridItem/gridItem.module.css +192 -192
  40. package/gridItem/gridItem.tsx +31 -31
  41. package/hr/hr.d.ts +8 -8
  42. package/hr/hr.js +11 -11
  43. package/hr/hr.module.css +19 -19
  44. package/hr/hr.tsx +32 -32
  45. package/index.d.ts +24 -24
  46. package/index.js +24 -24
  47. package/index.tsx +48 -48
  48. package/inputField/inputField.d.ts +12 -12
  49. package/inputField/inputField.js +10 -10
  50. package/inputField/inputField.module.css +167 -167
  51. package/inputField/inputField.tsx +38 -38
  52. package/list/list.d.ts +7 -7
  53. package/list/list.js +8 -8
  54. package/list/list.module.css +22 -22
  55. package/list/list.tsx +25 -25
  56. package/listItem/listItem.d.ts +3 -3
  57. package/listItem/listItem.js +6 -6
  58. package/listItem/listItem.module.css +6 -6
  59. package/listItem/listItem.tsx +12 -12
  60. package/loading/loading.d.ts +7 -7
  61. package/loading/loading.js +9 -9
  62. package/loading/loading.module.css +91 -91
  63. package/loading/loading.tsx +25 -25
  64. package/main/main.d.ts +6 -6
  65. package/main/main.js +9 -9
  66. package/main/main.module.css +19 -19
  67. package/main/main.tsx +25 -25
  68. package/navigation/navigation.d.ts +7 -7
  69. package/navigation/navigation.js +8 -8
  70. package/navigation/navigation.module.css +61 -61
  71. package/navigation/navigation.tsx +24 -24
  72. package/package.json +31 -31
  73. package/page/page.d.ts +3 -3
  74. package/page/page.js +8 -8
  75. package/page/page.module.css +10 -10
  76. package/page/page.tsx +15 -15
  77. package/row/row.d.ts +3 -3
  78. package/row/row.js +8 -8
  79. package/row/row.module.css +7 -7
  80. package/row/row.tsx +15 -15
  81. package/spacer/spacer.d.ts +3 -3
  82. package/spacer/spacer.js +6 -6
  83. package/spacer/spacer.module.css +5 -5
  84. package/spacer/spacer.tsx +8 -8
  85. package/stack/stack.d.ts +3 -3
  86. package/stack/stack.js +8 -8
  87. package/stack/stack.module.css +6 -6
  88. package/stack/stack.tsx +15 -15
  89. package/svgIcon/svgIcon.d.ts +6 -6
  90. package/svgIcon/svgIcon.js +11 -11
  91. package/svgIcon/svgIcon.module.css +5 -5
  92. package/svgIcon/svgIcon.tsx +26 -26
  93. package/theme/theme.d.ts +9 -9
  94. package/theme/theme.js +11 -11
  95. package/theme/theme.module.css +397 -397
  96. package/theme/theme.tsx +29 -29
  97. package/theme/zoom.css +3 -3
  98. package/tsconfig.json +13 -13
package/theme/theme.tsx CHANGED
@@ -1,29 +1,29 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./theme.module.css";
4
- import "./zoom.css";
5
-
6
- interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
7
- mode?: "light" | "dark" | "system";
8
- color?: "green" | "red" | "yellow" | "blue" | "purple";
9
- zoom?: number;
10
- }
11
-
12
- function Theme(props: ThemeProps) {
13
- const zoomPercentage = props.zoom ? (props.zoom / 100) * 62.5 : 62.5;
14
- // document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
15
-
16
- const joinedClassNames = joinClassNames(
17
- props.mode ? styles[props.mode] : styles.system,
18
- props.color ? styles[props.color] : styles.blue,
19
- props.className!
20
- );
21
-
22
- return (
23
- <div {...props} className={joinedClassNames}>
24
- {props.children}
25
- </div>
26
- );
27
- }
28
-
29
- export default Theme;
1
+ import React from "react";
2
+ import { joinClassNames, joinStyles } from "@yakad/lib";
3
+ import styles from "./theme.module.css";
4
+ import "./zoom.css";
5
+
6
+ interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
7
+ mode?: "light" | "dark" | "system";
8
+ color?: "green" | "red" | "yellow" | "blue" | "purple";
9
+ zoom?: number;
10
+ }
11
+
12
+ function Theme(props: ThemeProps) {
13
+ const zoomPercentage = props.zoom ? (props.zoom / 100) * 62.5 : 62.5;
14
+ // document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
15
+
16
+ const joinedClassNames = joinClassNames(
17
+ props.mode ? styles[props.mode] : styles.system,
18
+ props.color ? styles[props.color] : styles.blue,
19
+ props.className!
20
+ );
21
+
22
+ return (
23
+ <div {...props} className={joinedClassNames}>
24
+ {props.children}
25
+ </div>
26
+ );
27
+ }
28
+
29
+ export default Theme;
package/theme/zoom.css CHANGED
@@ -1,3 +1,3 @@
1
- :root {
2
- font-size: 62.5%;
3
- }
1
+ :root {
2
+ font-size: 62.5%;
3
+ }
package/tsconfig.json CHANGED
@@ -1,13 +1,13 @@
1
- {
2
- "compilerOptions": {
3
- "noImplicitAny": true,
4
- "module": "es2022",
5
- "target": "es2022",
6
- "jsx": "react",
7
- "allowJs": true,
8
- "moduleResolution": "node",
9
- "declaration": true,
10
- "sourceMap": true,
11
- "allowSyntheticDefaultImports": true
12
- }
13
- }
1
+ {
2
+ "compilerOptions": {
3
+ "noImplicitAny": true,
4
+ "module": "es2022",
5
+ "target": "es2022",
6
+ "jsx": "react",
7
+ "allowJs": true,
8
+ "moduleResolution": "node",
9
+ "declaration": true,
10
+ "sourceMap": true,
11
+ "allowSyntheticDefaultImports": true
12
+ }
13
+ }