@yakad/ui 1.2.69-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.
- package/appBar/appBar.module.css +14 -14
- package/appBar/appBar.tsx +15 -15
- package/button/button.module.css +167 -167
- package/button/button.tsx +85 -85
- package/card/card.module.css +11 -11
- package/card/card.tsx +15 -15
- package/clickAwayListener/clickAwayListener.tsx +27 -27
- package/client.tsx +4 -4
- package/codeField/codeField.module.css +23 -23
- package/codeField/codeField.tsx +32 -32
- package/container/container.module.css +24 -24
- package/container/container.tsx +27 -27
- package/footer/footer.module.css +9 -9
- package/footer/footer.tsx +15 -15
- package/form/form.module.css +6 -6
- package/form/form.tsx +23 -23
- package/gridContainer/gridContainer.module.css +5 -5
- package/gridContainer/gridContainer.tsx +28 -28
- package/gridItem/gridItem.module.css +192 -192
- package/gridItem/gridItem.tsx +31 -31
- package/historyBack/historyBack.tsx +20 -20
- package/hr/hr.module.css +19 -19
- package/hr/hr.tsx +32 -32
- package/index.tsx +46 -46
- package/inputField/inputField.module.css +167 -167
- package/inputField/inputField.tsx +38 -38
- package/list/list.module.css +22 -22
- package/list/list.tsx +25 -25
- package/listItem/listItem.module.css +6 -6
- package/listItem/listItem.tsx +12 -12
- package/loading/loading.module.css +91 -91
- package/loading/loading.tsx +25 -25
- package/main/main.module.css +19 -19
- package/main/main.tsx +25 -25
- package/navigation/navigation.module.css +61 -58
- package/navigation/navigation.tsx +24 -24
- package/package.json +32 -32
- package/page/page.module.css +10 -10
- package/page/page.tsx +15 -15
- package/row/row.module.css +7 -7
- package/row/row.tsx +15 -15
- package/spacer/spacer.module.css +5 -5
- package/spacer/spacer.tsx +8 -8
- package/stack/stack.module.css +6 -6
- package/stack/stack.tsx +15 -15
- package/svgIcon/svgIcon.module.css +5 -5
- package/svgIcon/svgIcon.tsx +26 -26
- package/theme/theme.module.css +397 -397
- package/theme/theme.tsx +29 -29
- package/theme/zoom.css +3 -3
- package/tsconfig.json +13 -13
- package/appBar/appBar.d.ts +0 -3
- package/appBar/appBar.js +0 -9
- package/appBar/appBar.js.map +0 -1
- package/button/button.d.ts +0 -14
- package/button/button.js +0 -25
- package/button/button.js.map +0 -1
- package/card/card.d.ts +0 -3
- package/card/card.js +0 -9
- package/card/card.js.map +0 -1
- package/clickAwayListener/clickAwayListener.d.ts +0 -6
- package/clickAwayListener/clickAwayListener.js +0 -17
- package/clickAwayListener/clickAwayListener.js.map +0 -1
- package/client.d.ts +0 -3
- package/client.js +0 -4
- package/client.js.map +0 -1
- package/codeField/codeField.d.ts +0 -8
- package/codeField/codeField.js +0 -10
- package/codeField/codeField.js.map +0 -1
- package/container/container.d.ts +0 -8
- package/container/container.js +0 -9
- package/container/container.js.map +0 -1
- package/footer/footer.d.ts +0 -3
- package/footer/footer.js +0 -9
- package/footer/footer.js.map +0 -1
- package/form/form.d.ts +0 -3
- package/form/form.js +0 -12
- package/form/form.js.map +0 -1
- package/gridContainer/gridContainer.d.ts +0 -7
- package/gridContainer/gridContainer.js +0 -11
- package/gridContainer/gridContainer.js.map +0 -1
- package/gridItem/gridItem.d.ts +0 -10
- package/gridItem/gridItem.js +0 -10
- package/gridItem/gridItem.js.map +0 -1
- package/historyBack/historyBack.d.ts +0 -3
- package/historyBack/historyBack.js +0 -11
- package/historyBack/historyBack.js.map +0 -1
- package/hr/hr.d.ts +0 -8
- package/hr/hr.js +0 -12
- package/hr/hr.js.map +0 -1
- package/index.d.ts +0 -23
- package/index.js +0 -24
- package/index.js.map +0 -1
- package/inputField/inputField.d.ts +0 -12
- package/inputField/inputField.js +0 -11
- package/inputField/inputField.js.map +0 -1
- package/list/list.d.ts +0 -7
- package/list/list.js +0 -9
- package/list/list.js.map +0 -1
- package/listItem/listItem.d.ts +0 -3
- package/listItem/listItem.js +0 -7
- package/listItem/listItem.js.map +0 -1
- package/loading/loading.d.ts +0 -7
- package/loading/loading.js +0 -10
- package/loading/loading.js.map +0 -1
- package/main/main.d.ts +0 -6
- package/main/main.js +0 -10
- package/main/main.js.map +0 -1
- package/navigation/navigation.d.ts +0 -7
- package/navigation/navigation.js +0 -9
- package/navigation/navigation.js.map +0 -1
- package/page/page.d.ts +0 -3
- package/page/page.js +0 -9
- package/page/page.js.map +0 -1
- package/row/row.d.ts +0 -3
- package/row/row.js +0 -9
- package/row/row.js.map +0 -1
- package/spacer/spacer.d.ts +0 -3
- package/spacer/spacer.js +0 -7
- package/spacer/spacer.js.map +0 -1
- package/stack/stack.d.ts +0 -3
- package/stack/stack.js +0 -9
- package/stack/stack.js.map +0 -1
- package/svgIcon/svgIcon.d.ts +0 -6
- package/svgIcon/svgIcon.js +0 -12
- package/svgIcon/svgIcon.js.map +0 -1
- package/theme/theme.d.ts +0 -9
- package/theme/theme.js +0 -12
- 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
|
+
}
|
package/loading/loading.tsx
CHANGED
|
@@ -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;
|
package/main/main.module.css
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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.
|
|
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
|
+
}
|
package/page/page.module.css
CHANGED
|
@@ -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;
|
package/row/row.module.css
CHANGED
|
@@ -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;
|
package/spacer/spacer.module.css
CHANGED
|
@@ -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
|
+
}
|