@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
@@ -1,91 +1,91 @@
1
- .small {
2
- --size: 2rem;
3
- }
4
- .medium {
5
- --size: 2.4rem;
6
- }
7
- .large {
8
- --size: 3rem;
9
- }
10
-
11
- .loading {
12
- display: flex;
13
- align-items: center;
14
- justify-content: center;
15
- width: var(--size);
16
- height: var(--size);
17
- box-sizing: border-box;
18
- --color: #7d7d7d;
19
- }
20
- .spinner div {
21
- display: flex;
22
- width: 75%;
23
- height: 75%;
24
- --spinner-border: calc(var(--size) / 8);
25
- border-top: var(--spinner-border) solid var(--color);
26
- border-right: var(--spinner-border) solid transparent;
27
- border-bottom: none;
28
- border-left: none;
29
- border-radius: 50%;
30
- animation: spinner 1000ms linear infinite;
31
- }
32
- @keyframes spinner {
33
- to {
34
- transform: rotate(360deg);
35
- }
36
- }
37
-
38
- .dots div {
39
- width: 20%;
40
- height: 20%;
41
- border-radius: 50%;
42
- background-color: var(--color);
43
- --dots-space: calc(var(--size) / 3);
44
- --dots-space-negative: calc(0rem - (var(--size) / 3));
45
- box-shadow: var(--dots-space) 0 var(--color),
46
- var(--dots-space-negative) 0 var(--color);
47
- position: relative;
48
- animation: flash 0.6s ease-out infinite alternate;
49
- }
50
- @keyframes flash {
51
- 0% {
52
- background-color: var(--color);
53
- box-shadow: var(--dots-space) 0 var(--color),
54
- var(--dots-space-negative) 0 transparent;
55
- }
56
- 50% {
57
- background-color: transparent;
58
- box-shadow: var(--dots-space) 0 var(--color),
59
- var(--dots-space-negative) 0 var(--color);
60
- }
61
- 100% {
62
- background-color: var(--color);
63
- box-shadow: var(--dots-space) 0 transparent,
64
- var(--dots-space-negative) 0 var(--color);
65
- }
66
- }
67
-
68
- .scaleOut div {
69
- width: 90%;
70
- height: 90%;
71
- border-radius: 50%;
72
- background-color: var(--color);
73
- animation: sk-scaleout 1s infinite ease-in-out;
74
- }
75
- @keyframes sk-scaleout {
76
- 0% {
77
- transform: scale(0);
78
- opacity: 1;
79
- }
80
- 5% {
81
- transform: scale(0);
82
- opacity: 1;
83
- }
84
- 50% {
85
- opacity: 0.9;
86
- }
87
- 100% {
88
- transform: scale(1);
89
- opacity: 0;
90
- }
91
- }
1
+ .small {
2
+ --size: 2rem;
3
+ }
4
+ .medium {
5
+ --size: 2.4rem;
6
+ }
7
+ .large {
8
+ --size: 3rem;
9
+ }
10
+
11
+ .loading {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ width: var(--size);
16
+ height: var(--size);
17
+ box-sizing: border-box;
18
+ --color: #7d7d7d;
19
+ }
20
+ .spinner div {
21
+ display: flex;
22
+ width: 75%;
23
+ height: 75%;
24
+ --spinner-border: calc(var(--size) / 8);
25
+ border-top: var(--spinner-border) solid var(--color);
26
+ border-right: var(--spinner-border) solid transparent;
27
+ border-bottom: none;
28
+ border-left: none;
29
+ border-radius: 50%;
30
+ animation: spinner 1000ms linear infinite;
31
+ }
32
+ @keyframes spinner {
33
+ to {
34
+ transform: rotate(360deg);
35
+ }
36
+ }
37
+
38
+ .dots div {
39
+ width: 20%;
40
+ height: 20%;
41
+ border-radius: 50%;
42
+ background-color: var(--color);
43
+ --dots-space: calc(var(--size) / 3);
44
+ --dots-space-negative: calc(0rem - (var(--size) / 3));
45
+ box-shadow: var(--dots-space) 0 var(--color),
46
+ var(--dots-space-negative) 0 var(--color);
47
+ position: relative;
48
+ animation: flash 0.6s ease-out infinite alternate;
49
+ }
50
+ @keyframes flash {
51
+ 0% {
52
+ background-color: var(--color);
53
+ box-shadow: var(--dots-space) 0 var(--color),
54
+ var(--dots-space-negative) 0 transparent;
55
+ }
56
+ 50% {
57
+ background-color: transparent;
58
+ box-shadow: var(--dots-space) 0 var(--color),
59
+ var(--dots-space-negative) 0 var(--color);
60
+ }
61
+ 100% {
62
+ background-color: var(--color);
63
+ box-shadow: var(--dots-space) 0 transparent,
64
+ var(--dots-space-negative) 0 var(--color);
65
+ }
66
+ }
67
+
68
+ .scaleOut div {
69
+ width: 90%;
70
+ height: 90%;
71
+ border-radius: 50%;
72
+ background-color: var(--color);
73
+ animation: sk-scaleout 1s infinite ease-in-out;
74
+ }
75
+ @keyframes sk-scaleout {
76
+ 0% {
77
+ transform: scale(0);
78
+ opacity: 1;
79
+ }
80
+ 5% {
81
+ transform: scale(0);
82
+ opacity: 1;
83
+ }
84
+ 50% {
85
+ opacity: 0.9;
86
+ }
87
+ 100% {
88
+ transform: scale(1);
89
+ opacity: 0;
90
+ }
91
+ }
@@ -1,25 +1,25 @@
1
- import React from "react";
2
- import styles from "./loading.module.css";
3
- import { joinClassNames } from "@yakad/lib";
4
-
5
- interface LoadingProps extends React.HTMLAttributes<HTMLButtonElement> {
6
- size?: "small" | "medium" | "large";
7
- variant?: "scaleOut" | "dots" | "spinner";
8
- }
9
-
10
- function Loading(props: LoadingProps) {
11
- const joinedClassNames = joinClassNames(
12
- styles.loading,
13
- props.size ? styles[props.size] : styles.medium,
14
- props.variant ? styles[props.variant] : styles.spinner,
15
- props.className!
16
- );
17
-
18
- return (
19
- <div className={joinedClassNames}>
20
- <div></div>
21
- </div>
22
- );
23
- }
24
-
25
- export default Loading;
1
+ import React from "react";
2
+ import styles from "./loading.module.css";
3
+ import { joinClassNames } from "@yakad/lib";
4
+
5
+ interface LoadingProps extends React.HTMLAttributes<HTMLButtonElement> {
6
+ size?: "small" | "medium" | "large";
7
+ variant?: "scaleOut" | "dots" | "spinner";
8
+ }
9
+
10
+ function Loading(props: LoadingProps) {
11
+ const joinedClassNames = joinClassNames(
12
+ styles.loading,
13
+ props.size ? styles[props.size] : styles.medium,
14
+ props.variant ? styles[props.variant] : styles.spinner,
15
+ props.className!
16
+ );
17
+
18
+ return (
19
+ <div className={joinedClassNames}>
20
+ <div></div>
21
+ </div>
22
+ );
23
+ }
24
+
25
+ export default Loading;
@@ -1,19 +1,19 @@
1
- .main {
2
- display: flex;
3
- flex-direction: column;
4
- justify-content: center;
5
- align-self: flex-end;
6
- box-sizing: border-box;
7
- width: 100%;
8
- transition: width 0.3s;
9
- }
10
-
11
- .navOpen {
12
- width: calc(100% - 22rem);
13
- }
14
-
15
- @media screen and (max-width: 1000px) {
16
- .navOpen {
17
- width: 100%;
18
- }
19
- }
1
+ .main {
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ align-self: flex-end;
6
+ box-sizing: border-box;
7
+ width: 100%;
8
+ transition: width 0.3s;
9
+ }
10
+
11
+ .navOpen {
12
+ width: calc(100% - 22rem);
13
+ }
14
+
15
+ @media screen and (max-width: 1000px) {
16
+ .navOpen {
17
+ width: 100%;
18
+ }
19
+ }
package/main/main.tsx CHANGED
@@ -1,25 +1,25 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./main.module.css";
4
-
5
- interface MainProps extends React.HTMLAttributes<HTMLDivElement> {
6
- navOpen?: boolean;
7
- }
8
-
9
- function Main(props: MainProps) {
10
- const navOpenClass = props.navOpen ? styles.navOpen : "";
11
-
12
- const joinedClassNames = joinClassNames(
13
- styles.main,
14
- navOpenClass,
15
- props.className!
16
- );
17
-
18
- return (
19
- <main {...props} className={joinedClassNames}>
20
- {props.children}
21
- </main>
22
- );
23
- }
24
-
25
- export default Main;
1
+ import React from "react";
2
+ import { joinClassNames, joinStyles } from "@yakad/lib";
3
+ import styles from "./main.module.css";
4
+
5
+ interface MainProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ navOpen?: boolean;
7
+ }
8
+
9
+ function Main(props: MainProps) {
10
+ const navOpenClass = props.navOpen ? styles.navOpen : "";
11
+
12
+ const joinedClassNames = joinClassNames(
13
+ styles.main,
14
+ navOpenClass,
15
+ props.className!
16
+ );
17
+
18
+ return (
19
+ <main {...props} className={joinedClassNames}>
20
+ {props.children}
21
+ </main>
22
+ );
23
+ }
24
+
25
+ export default Main;
@@ -1,58 +1,61 @@
1
- .navigation {
2
- position: fixed;
3
- max-width: 100%;
4
- transition: transform 0.3s;
5
- background: rgb(var(--surfaceContainerColor, 243 237 247));
6
- color: rgb(var(--onSurfaceColor, 28 27 31));
7
- fill: rgb(var(--onSurfaceColor, 28 27 31));
8
- overflow-y: auto;
9
- }
10
-
11
- .auto,
12
- .left {
13
- top: 5.1rem;
14
- left: 0;
15
- width: 21.9rem;
16
- height: calc(100% - 5.1rem);
17
- max-height: 100%;
18
- border-inline-end: 0.2rem solid #7d7d7d40;
19
- transform: translate(-100%, 0);
20
- }
21
- [dir="rtl"] .auto,
22
- .right {
23
- right: 0;
24
- top: 5.1rem;
25
- width: 21.9rem;
26
- height: calc(100% - 5.1rem);
27
- max-height: 100%;
28
- border-inline-end: 0.2rem solid #7d7d7d40;
29
- transform: translate(100%, 0);
30
- }
31
-
32
- .top {
33
- top: 0;
34
- width: 100%;
35
- height: auto;
36
- border-bottom: 0.2rem solid #7d7d7d40;
37
- transform: translate(0, -100%);
38
- }
39
- .bottom {
40
- bottom: 0;
41
- width: 100%;
42
- height: auto;
43
- border-top: 0.2rem solid #7d7d7d40;
44
- transform: translate(0, 100%);
45
- }
46
-
47
- .open {
48
- transform: translate(0, 0);
49
- }
50
-
51
- @media screen and (max-width: 1000px) {
52
- .auto,
53
- .left,
54
- .right {
55
- top: 0;
56
- height: 100%;
57
- }
58
- }
1
+ .navigation {
2
+ position: fixed;
3
+ max-width: 100%;
4
+ transition: transform 0.3s;
5
+
6
+ background: rgb(var(--surfaceContainerColor, 243 237 247));
7
+ color: rgb(var(--onSurfaceColor, 28 27 31));
8
+ fill: rgb(var(--onSurfaceColor, 28 27 31));
9
+ overflow-y: auto;
10
+ }
11
+
12
+ .auto,
13
+ .left {
14
+ top: 5.1rem;
15
+ left: 0;
16
+ width: 21.9rem;
17
+ height: calc(100% - 5.1rem);
18
+ max-height: 100%;
19
+ margin-right: 1rem;
20
+ border-inline-end: 0.2rem solid #7d7d7d40;
21
+ transform: translate(-100%, 0);
22
+ }
23
+ [dir="rtl"] .auto,
24
+ .right {
25
+ right: 0;
26
+ top: 5.1rem;
27
+ width: 21.9rem;
28
+ height: calc(100% - 5.1rem);
29
+ max-height: 100%;
30
+ margin-left: 1rem;
31
+ border-inline-end: 0.2rem solid #7d7d7d40;
32
+ transform: translate(100%, 0);
33
+ }
34
+
35
+ .top {
36
+ top: 0;
37
+ width: 100%;
38
+ height: auto;
39
+ border-bottom: 0.2rem solid #7d7d7d40;
40
+ transform: translate(0, -100%);
41
+ }
42
+ .bottom {
43
+ bottom: 0;
44
+ width: 100%;
45
+ height: auto;
46
+ border-top: 0.2rem solid #7d7d7d40;
47
+ transform: translate(0, 100%);
48
+ }
49
+
50
+ .open {
51
+ transform: translate(0, 0);
52
+ }
53
+
54
+ @media screen and (max-width: 1000px) {
55
+ .auto,
56
+ .left,
57
+ .right {
58
+ top: 0;
59
+ height: 100%;
60
+ }
61
+ }
@@ -1,24 +1,24 @@
1
- import React from "react";
2
- import { joinClassNames } from "@yakad/lib";
3
- import styles from "./navigation.module.css";
4
-
5
- interface NavigationProps extends React.HTMLAttributes<HTMLElement> {
6
- anchor?: "left" | "right" | "top" | "bottom" | "auto";
7
- open: boolean;
8
- }
9
-
10
- function Navigation(props: NavigationProps) {
11
- const joinedClassNames = joinClassNames(
12
- styles.navigation,
13
- props.anchor ? styles[props.anchor] : styles.auto,
14
- props.open ? styles.open : ""
15
- );
16
-
17
- return (
18
- <nav {...props} className={joinedClassNames}>
19
- {props.children}
20
- </nav>
21
- );
22
- }
23
-
24
- export default Navigation;
1
+ import React from "react";
2
+ import { joinClassNames } from "@yakad/lib";
3
+ import styles from "./navigation.module.css";
4
+
5
+ interface NavigationProps extends React.HTMLAttributes<HTMLElement> {
6
+ anchor?: "left" | "right" | "top" | "bottom" | "auto";
7
+ open: boolean;
8
+ }
9
+
10
+ function Navigation(props: NavigationProps) {
11
+ const joinedClassNames = joinClassNames(
12
+ styles.navigation,
13
+ props.anchor ? styles[props.anchor] : styles.auto,
14
+ props.open ? styles.open : ""
15
+ );
16
+
17
+ return (
18
+ <nav {...props} className={joinedClassNames}>
19
+ {props.children}
20
+ </nav>
21
+ );
22
+ }
23
+
24
+ export default Navigation;
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "@yakad/ui",
3
- "version": "1.2.68-beta",
4
- "description": "",
5
- "main": "./src/index.js",
6
- "scripts": {
7
- "build": "tsc",
8
- "test": "echo hector test: not impl"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/NatiqQuran/yakad.git"
13
- },
14
- "author": "Natiq",
15
- "license": "GPL-3.0",
16
- "bugs": {
17
- "url": "https://github.com/NatiqQuran/yakad/issues"
18
- },
19
- "homepage": "https://github.com/NatiqQuran/yakad#readme",
20
- "dependencies": {
21
- "@types/react": "18.0.24",
22
- "@types/react-dom": "18.0.6",
23
- "@yakad/lib": "1.0.5",
24
- "react": "18.2.0",
25
- "react-dom": "18.2.0",
26
- "react-router-dom": "6.4.2",
27
- "typescript": "4.8.4"
28
- },
29
- "devDependencies": {
30
- "typescript-plugin-css-modules": "3.4.0"
31
- }
32
- }
1
+ {
2
+ "name": "@yakad/ui",
3
+ "version": "1.2.70-beta",
4
+ "description": "",
5
+ "main": "./src/index.js",
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "test": "echo hector test: not impl"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/NatiqQuran/yakad.git"
13
+ },
14
+ "author": "Natiq",
15
+ "license": "GPL-3.0",
16
+ "bugs": {
17
+ "url": "https://github.com/NatiqQuran/yakad/issues"
18
+ },
19
+ "homepage": "https://github.com/NatiqQuran/yakad#readme",
20
+ "dependencies": {
21
+ "@types/react": "18.0.24",
22
+ "@types/react-dom": "18.0.6",
23
+ "@yakad/lib": "1.0.5",
24
+ "react": "18.2.0",
25
+ "react-dom": "18.2.0",
26
+ "react-router-dom": "6.4.2",
27
+ "typescript": "4.8.4"
28
+ },
29
+ "devDependencies": {
30
+ "typescript-plugin-css-modules": "3.4.0"
31
+ }
32
+ }
@@ -1,10 +1,10 @@
1
- .page {
2
- display: flex;
3
- flex-direction: column;
4
- min-height: 100vh;
5
- box-sizing: border-box;
6
- width: 100%;
7
- background: rgb(var(--surfaceColor, 254 247 255));
8
- color: rgb(var(--onSurfaceColor, 28 27 31));
9
- fill: rgb(var(--onSurfaceColor, 28 27 31));
10
- }
1
+ .page {
2
+ display: flex;
3
+ flex-direction: column;
4
+ min-height: 100vh;
5
+ box-sizing: border-box;
6
+ width: 100%;
7
+ background: rgb(var(--surfaceColor, 254 247 255));
8
+ color: rgb(var(--onSurfaceColor, 28 27 31));
9
+ fill: rgb(var(--onSurfaceColor, 28 27 31));
10
+ }
package/page/page.tsx CHANGED
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./page.module.css";
4
-
5
- function Page(props: React.HTMLAttributes<HTMLDivElement>) {
6
- const joinedClassNames = joinClassNames(styles.page, props.className!);
7
-
8
- return (
9
- <div {...props} className={joinedClassNames}>
10
- {props.children}
11
- </div>
12
- );
13
- }
14
-
15
- export default Page;
1
+ import React from "react";
2
+ import { joinClassNames, joinStyles } from "@yakad/lib";
3
+ import styles from "./page.module.css";
4
+
5
+ function Page(props: React.HTMLAttributes<HTMLDivElement>) {
6
+ const joinedClassNames = joinClassNames(styles.page, props.className!);
7
+
8
+ return (
9
+ <div {...props} className={joinedClassNames}>
10
+ {props.children}
11
+ </div>
12
+ );
13
+ }
14
+
15
+ export default Page;
@@ -1,7 +1,7 @@
1
- .row {
2
- display: flex;
3
- flex-direction: row;
4
- align-items: center;
5
- gap: 1.5rem;
6
- box-sizing: border-box;
7
- }
1
+ .row {
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: center;
5
+ gap: 1.5rem;
6
+ box-sizing: border-box;
7
+ }
package/row/row.tsx CHANGED
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- import { joinClassNames, joinStyles } from "@yakad/lib";
3
- import styles from "./row.module.css";
4
-
5
- function Row(props: React.HTMLAttributes<HTMLDivElement>) {
6
- const joinedClassNames = joinClassNames(styles.row, props.className!);
7
-
8
- return (
9
- <div {...props} className={joinedClassNames}>
10
- {props.children}
11
- </div>
12
- );
13
- }
14
-
15
- export default Row;
1
+ import React from "react";
2
+ import { joinClassNames, joinStyles } from "@yakad/lib";
3
+ import styles from "./row.module.css";
4
+
5
+ function Row(props: React.HTMLAttributes<HTMLDivElement>) {
6
+ const joinedClassNames = joinClassNames(styles.row, props.className!);
7
+
8
+ return (
9
+ <div {...props} className={joinedClassNames}>
10
+ {props.children}
11
+ </div>
12
+ );
13
+ }
14
+
15
+ export default Row;
@@ -1,5 +1,5 @@
1
- .spacer {
2
- width: 0;
3
- height: 100%;
4
- margin: auto;
5
- }
1
+ .spacer {
2
+ width: 0;
3
+ height: 100%;
4
+ margin: auto;
5
+ }