@yakad/ui 1.2.68-beta → 1.2.70-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 (129) hide show
  1. package/appBar/appBar.module.css +14 -14
  2. package/appBar/appBar.tsx +15 -15
  3. package/button/button.module.css +167 -167
  4. package/button/button.tsx +85 -85
  5. package/card/card.module.css +11 -11
  6. package/card/card.tsx +15 -15
  7. package/clickAwayListener/clickAwayListener.tsx +27 -27
  8. package/client.tsx +4 -4
  9. package/codeField/codeField.module.css +23 -23
  10. package/codeField/codeField.tsx +32 -32
  11. package/container/container.module.css +24 -24
  12. package/container/container.tsx +27 -27
  13. package/footer/footer.module.css +9 -9
  14. package/footer/footer.tsx +15 -15
  15. package/form/form.module.css +6 -6
  16. package/form/form.tsx +23 -23
  17. package/gridContainer/gridContainer.module.css +5 -5
  18. package/gridContainer/gridContainer.tsx +28 -28
  19. package/gridItem/gridItem.module.css +192 -192
  20. package/gridItem/gridItem.tsx +31 -31
  21. package/historyBack/historyBack.tsx +20 -20
  22. package/hr/hr.module.css +19 -19
  23. package/hr/hr.tsx +32 -32
  24. package/index.tsx +46 -46
  25. package/inputField/inputField.module.css +167 -167
  26. package/inputField/inputField.tsx +38 -38
  27. package/list/list.module.css +22 -22
  28. package/list/list.tsx +25 -25
  29. package/listItem/listItem.module.css +6 -6
  30. package/listItem/listItem.tsx +12 -12
  31. package/loading/loading.module.css +91 -91
  32. package/loading/loading.tsx +25 -25
  33. package/main/main.module.css +19 -19
  34. package/main/main.tsx +25 -25
  35. package/navigation/navigation.module.css +61 -58
  36. package/navigation/navigation.tsx +24 -24
  37. package/package.json +32 -32
  38. package/page/page.module.css +10 -10
  39. package/page/page.tsx +15 -15
  40. package/row/row.module.css +7 -7
  41. package/row/row.tsx +15 -15
  42. package/spacer/spacer.module.css +5 -5
  43. package/spacer/spacer.tsx +8 -8
  44. package/stack/stack.module.css +6 -6
  45. package/stack/stack.tsx +15 -15
  46. package/svgIcon/svgIcon.module.css +5 -5
  47. package/svgIcon/svgIcon.tsx +26 -26
  48. package/theme/theme.module.css +397 -397
  49. package/theme/theme.tsx +29 -28
  50. package/theme/zoom.css +3 -3
  51. package/tsconfig.json +13 -13
  52. package/appBar/appBar.d.ts +0 -3
  53. package/appBar/appBar.js +0 -9
  54. package/appBar/appBar.js.map +0 -1
  55. package/button/button.d.ts +0 -14
  56. package/button/button.js +0 -25
  57. package/button/button.js.map +0 -1
  58. package/card/card.d.ts +0 -3
  59. package/card/card.js +0 -9
  60. package/card/card.js.map +0 -1
  61. package/clickAwayListener/clickAwayListener.d.ts +0 -6
  62. package/clickAwayListener/clickAwayListener.js +0 -17
  63. package/clickAwayListener/clickAwayListener.js.map +0 -1
  64. package/client.d.ts +0 -3
  65. package/client.js +0 -4
  66. package/client.js.map +0 -1
  67. package/codeField/codeField.d.ts +0 -8
  68. package/codeField/codeField.js +0 -10
  69. package/codeField/codeField.js.map +0 -1
  70. package/container/container.d.ts +0 -8
  71. package/container/container.js +0 -9
  72. package/container/container.js.map +0 -1
  73. package/footer/footer.d.ts +0 -3
  74. package/footer/footer.js +0 -9
  75. package/footer/footer.js.map +0 -1
  76. package/form/form.d.ts +0 -3
  77. package/form/form.js +0 -12
  78. package/form/form.js.map +0 -1
  79. package/gridContainer/gridContainer.d.ts +0 -7
  80. package/gridContainer/gridContainer.js +0 -11
  81. package/gridContainer/gridContainer.js.map +0 -1
  82. package/gridItem/gridItem.d.ts +0 -10
  83. package/gridItem/gridItem.js +0 -10
  84. package/gridItem/gridItem.js.map +0 -1
  85. package/historyBack/historyBack.d.ts +0 -3
  86. package/historyBack/historyBack.js +0 -11
  87. package/historyBack/historyBack.js.map +0 -1
  88. package/hr/hr.d.ts +0 -8
  89. package/hr/hr.js +0 -12
  90. package/hr/hr.js.map +0 -1
  91. package/index.d.ts +0 -23
  92. package/index.js +0 -24
  93. package/index.js.map +0 -1
  94. package/inputField/inputField.d.ts +0 -12
  95. package/inputField/inputField.js +0 -11
  96. package/inputField/inputField.js.map +0 -1
  97. package/list/list.d.ts +0 -7
  98. package/list/list.js +0 -9
  99. package/list/list.js.map +0 -1
  100. package/listItem/listItem.d.ts +0 -3
  101. package/listItem/listItem.js +0 -7
  102. package/listItem/listItem.js.map +0 -1
  103. package/loading/loading.d.ts +0 -7
  104. package/loading/loading.js +0 -10
  105. package/loading/loading.js.map +0 -1
  106. package/main/main.d.ts +0 -6
  107. package/main/main.js +0 -10
  108. package/main/main.js.map +0 -1
  109. package/navigation/navigation.d.ts +0 -7
  110. package/navigation/navigation.js +0 -9
  111. package/navigation/navigation.js.map +0 -1
  112. package/page/page.d.ts +0 -3
  113. package/page/page.js +0 -9
  114. package/page/page.js.map +0 -1
  115. package/row/row.d.ts +0 -3
  116. package/row/row.js +0 -9
  117. package/row/row.js.map +0 -1
  118. package/spacer/spacer.d.ts +0 -3
  119. package/spacer/spacer.js +0 -7
  120. package/spacer/spacer.js.map +0 -1
  121. package/stack/stack.d.ts +0 -3
  122. package/stack/stack.js +0 -9
  123. package/stack/stack.js.map +0 -1
  124. package/svgIcon/svgIcon.d.ts +0 -6
  125. package/svgIcon/svgIcon.js +0 -12
  126. package/svgIcon/svgIcon.js.map +0 -1
  127. package/theme/theme.d.ts +0 -9
  128. package/theme/theme.js +0 -11
  129. package/theme/theme.js.map +0 -1
package/client.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import ClickAwayListener from "./clickAwayListener/clickAwayListener";
2
- import HistoryBack from "./historyBack/historyBack";
3
-
4
- export { ClickAwayListener, HistoryBack };
1
+ import ClickAwayListener from "./clickAwayListener/clickAwayListener";
2
+ import HistoryBack from "./historyBack/historyBack";
3
+
4
+ export { ClickAwayListener, HistoryBack };
@@ -1,23 +1,23 @@
1
- .input {
2
- box-sizing: border-box;
3
- display: block;
4
- border: none;
5
- padding: 0;
6
- margin: 0;
7
- margin-left: 0.5ch;
8
- background: repeating-linear-gradient(
9
- 90deg,
10
- #7d7d7d 0,
11
- #7d7d7d 1ch,
12
- transparent 0,
13
- transparent 1.5ch
14
- )
15
- 0 100%/100% 0.2rem no-repeat;
16
- color: transparent;
17
- text-shadow: 0 0 0 rgb(var(--secondaryColor, 98 91 113));
18
- font: 5ch consolas, monospace;
19
- letter-spacing: 0.5ch;
20
- }
21
- .input:focus {
22
- outline: none;
23
- }
1
+ .input {
2
+ box-sizing: border-box;
3
+ display: block;
4
+ border: none;
5
+ padding: 0;
6
+ margin: 0;
7
+ margin-left: 0.5ch;
8
+ background: repeating-linear-gradient(
9
+ 90deg,
10
+ #7d7d7d 0,
11
+ #7d7d7d 1ch,
12
+ transparent 0,
13
+ transparent 1.5ch
14
+ )
15
+ 0 100%/100% 0.2rem no-repeat;
16
+ color: transparent;
17
+ text-shadow: 0 0 0 rgb(var(--secondaryColor, 98 91 113));
18
+ font: 5ch consolas, monospace;
19
+ letter-spacing: 0.5ch;
20
+ }
21
+ .input:focus {
22
+ outline: none;
23
+ }
@@ -1,32 +1,32 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./codeField.module.css";
4
-
5
- interface CodeFieldsProps extends React.HTMLAttributes<HTMLInputElement> {
6
- length?: number;
7
- name?: string;
8
- type?: string;
9
- }
10
-
11
- function CodeField(props: CodeFieldsProps) {
12
- const joinedClassNames = joinClassNames(styles.input, props.className!);
13
-
14
- const joinedStyles = joinStyles(
15
- { width: "calc(1.5ch * " + props.length + ")" },
16
- props.style!
17
- );
18
-
19
- return (
20
- <input
21
- {...props}
22
- name={props.name}
23
- type={props.type}
24
- minLength={props.length}
25
- maxLength={props.length}
26
- className={joinedClassNames}
27
- style={joinedStyles}
28
- />
29
- );
30
- }
31
-
32
- export default CodeField;
1
+ import React from "react";
2
+ import { joinClassNames, joinStyles } from "@yakad/lib";
3
+ import styles from "./codeField.module.css";
4
+
5
+ interface CodeFieldsProps extends React.HTMLAttributes<HTMLInputElement> {
6
+ length?: number;
7
+ name?: string;
8
+ type?: string;
9
+ }
10
+
11
+ function CodeField(props: CodeFieldsProps) {
12
+ const joinedClassNames = joinClassNames(styles.input, props.className!);
13
+
14
+ const joinedStyles = joinStyles(
15
+ { width: "calc(1.5ch * " + props.length + ")" },
16
+ props.style!
17
+ );
18
+
19
+ return (
20
+ <input
21
+ {...props}
22
+ name={props.name}
23
+ type={props.type}
24
+ minLength={props.length}
25
+ maxLength={props.length}
26
+ className={joinedClassNames}
27
+ style={joinedStyles}
28
+ />
29
+ );
30
+ }
31
+
32
+ export default CodeField;
@@ -1,24 +1,24 @@
1
- div.container {
2
- display: flex;
3
- flex-direction: inherit;
4
- width: 100%;
5
- padding: 2rem;
6
- margin: auto;
7
- box-sizing: border-box;
8
- }
9
-
10
- div.container.xs {
11
- max-width: 44.4rem;
12
- }
13
- div.container.sm {
14
- max-width: 60rem;
15
- }
16
- div.container.md {
17
- max-width: 90rem;
18
- }
19
- div.container.lg {
20
- max-width: 120rem;
21
- }
22
- div.container.xl {
23
- max-width: 150rem;
24
- }
1
+ div.container {
2
+ display: flex;
3
+ flex-direction: inherit;
4
+ width: 100%;
5
+ padding: 2rem;
6
+ margin: auto;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ div.container.xs {
11
+ max-width: 44.4rem;
12
+ }
13
+ div.container.sm {
14
+ max-width: 60rem;
15
+ }
16
+ div.container.md {
17
+ max-width: 90rem;
18
+ }
19
+ div.container.lg {
20
+ max-width: 120rem;
21
+ }
22
+ div.container.xl {
23
+ max-width: 150rem;
24
+ }
@@ -1,27 +1,27 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./container.module.css";
4
-
5
- type ScreenSize = "xs" | "sm" | "md" | "lg" | "xl";
6
-
7
- interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
8
- maxWidth?: ScreenSize;
9
- background?: "dotted";
10
- }
11
-
12
- function Container(props: ContainerProps) {
13
- const joinedClassNames = joinClassNames(
14
- props.maxWidth ? styles[props.maxWidth] : "",
15
- props.background ? styles[props.background] : "",
16
- styles.container,
17
- props.className!
18
- );
19
-
20
- return (
21
- <div {...props} className={joinedClassNames}>
22
- {props.children}
23
- </div>
24
- );
25
- }
26
-
27
- export default Container;
1
+ import React from "react";
2
+ import { joinClassNames, joinStyles } from "@yakad/lib";
3
+ import styles from "./container.module.css";
4
+
5
+ type ScreenSize = "xs" | "sm" | "md" | "lg" | "xl";
6
+
7
+ interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
8
+ maxWidth?: ScreenSize;
9
+ background?: "dotted";
10
+ }
11
+
12
+ function Container(props: ContainerProps) {
13
+ const joinedClassNames = joinClassNames(
14
+ props.maxWidth ? styles[props.maxWidth] : "",
15
+ props.background ? styles[props.background] : "",
16
+ styles.container,
17
+ props.className!
18
+ );
19
+
20
+ return (
21
+ <div {...props} className={joinedClassNames}>
22
+ {props.children}
23
+ </div>
24
+ );
25
+ }
26
+
27
+ export default Container;
@@ -1,9 +1,9 @@
1
- .footer {
2
- background: rgb(var(--surfaceContainerColor, 243 237 247));
3
- color: rgb(var(--onSurfaceColor, 28 27 31));
4
- fill: rgb(var(--onSurfaceColor, 28 27 31));
5
- display: flex;
6
- flex-direction: row;
7
- width: 100%;
8
- box-sizing: border-box;
9
- }
1
+ .footer {
2
+ background: rgb(var(--surfaceContainerColor, 243 237 247));
3
+ color: rgb(var(--onSurfaceColor, 28 27 31));
4
+ fill: rgb(var(--onSurfaceColor, 28 27 31));
5
+ display: flex;
6
+ flex-direction: row;
7
+ width: 100%;
8
+ box-sizing: border-box;
9
+ }
package/footer/footer.tsx CHANGED
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- import { joinClassNames } from "@yakad/lib";
3
- import styles from "./footer.module.css";
4
-
5
- function Footer(props: React.HTMLAttributes<HTMLElement>) {
6
- const joinedClassNames = joinClassNames(styles.footer, props.className!);
7
-
8
- return (
9
- <footer {...props} className={joinedClassNames}>
10
- {props.children}
11
- </footer>
12
- );
13
- }
14
-
15
- export default Footer;
1
+ import React from "react";
2
+ import { joinClassNames } from "@yakad/lib";
3
+ import styles from "./footer.module.css";
4
+
5
+ function Footer(props: React.HTMLAttributes<HTMLElement>) {
6
+ const joinedClassNames = joinClassNames(styles.footer, props.className!);
7
+
8
+ return (
9
+ <footer {...props} className={joinedClassNames}>
10
+ {props.children}
11
+ </footer>
12
+ );
13
+ }
14
+
15
+ export default Footer;
@@ -1,6 +1,6 @@
1
- .form {
2
- display: flex;
3
- flex-direction: column;
4
- gap: 1.5rem;
5
- width: 100%;
6
- }
1
+ .form {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 1.5rem;
5
+ width: 100%;
6
+ }
package/form/form.tsx CHANGED
@@ -1,23 +1,23 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./form.module.css";
4
-
5
- function Form(props: React.HTMLAttributes<HTMLFormElement>) {
6
- const joinedClassNames = joinClassNames(styles.form, props.className!);
7
-
8
- return (
9
- <form
10
- {...props}
11
- className={joinedClassNames}
12
- onSubmit={(e) => {
13
- e.preventDefault();
14
-
15
- props.onSubmit!(null as any);
16
- }}
17
- >
18
- {props.children}
19
- </form>
20
- );
21
- }
22
-
23
- export default Form;
1
+ import React from "react";
2
+ import { joinClassNames, joinStyles } from "@yakad/lib";
3
+ import styles from "./form.module.css";
4
+
5
+ function Form(props: React.HTMLAttributes<HTMLFormElement>) {
6
+ const joinedClassNames = joinClassNames(styles.form, props.className!);
7
+
8
+ return (
9
+ <form
10
+ {...props}
11
+ className={joinedClassNames}
12
+ onSubmit={(e) => {
13
+ e.preventDefault();
14
+
15
+ props.onSubmit!(null as any);
16
+ }}
17
+ >
18
+ {props.children}
19
+ </form>
20
+ );
21
+ }
22
+
23
+ export default Form;
@@ -1,5 +1,5 @@
1
- .gridcontainer {
2
- display: grid;
3
- box-sizing: border-box;
4
- grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
5
- }
1
+ .gridcontainer {
2
+ display: grid;
3
+ box-sizing: border-box;
4
+ grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
5
+ }
@@ -1,28 +1,28 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./gridContainer.module.css";
4
-
5
- interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement> {
6
- rowGap?: number;
7
- columnGap?: number;
8
- }
9
-
10
- // Custom Button Element
11
- function GridContainer(props: GridContainerProps) {
12
- const joinedClassNames = joinClassNames(
13
- styles.gridcontainer,
14
- props.className!
15
- );
16
- const joinedStyles = joinStyles(
17
- { columnGap: props.columnGap ? props.columnGap + "rem" : "1.5rem" },
18
- { rowGap: props.rowGap ? props.rowGap + "rem" : "1.5rem" },
19
- props.style!
20
- );
21
- return (
22
- <div {...props} className={joinedClassNames} style={joinedStyles}>
23
- {props.children}
24
- </div>
25
- );
26
- }
27
-
28
- export default GridContainer;
1
+ import React from "react";
2
+ import { joinClassNames, joinStyles } from "@yakad/lib";
3
+ import styles from "./gridContainer.module.css";
4
+
5
+ interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ rowGap?: number;
7
+ columnGap?: number;
8
+ }
9
+
10
+ // Custom Button Element
11
+ function GridContainer(props: GridContainerProps) {
12
+ const joinedClassNames = joinClassNames(
13
+ styles.gridcontainer,
14
+ props.className!
15
+ );
16
+ const joinedStyles = joinStyles(
17
+ { columnGap: props.columnGap ? props.columnGap + "rem" : "1.5rem" },
18
+ { rowGap: props.rowGap ? props.rowGap + "rem" : "1.5rem" },
19
+ props.style!
20
+ );
21
+ return (
22
+ <div {...props} className={joinedClassNames} style={joinedStyles}>
23
+ {props.children}
24
+ </div>
25
+ );
26
+ }
27
+
28
+ export default GridContainer;