@yakad/ui 1.2.76-beta → 1.2.78-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.d.ts +3 -3
- package/appBar/appBar.js +8 -8
- package/appBar/appBar.module.css +15 -15
- package/appBar/appBar.tsx +15 -15
- package/button/button.d.ts +13 -13
- package/button/button.js +27 -27
- package/button/button.module.css +170 -170
- package/button/button.tsx +87 -87
- package/card/card.d.ts +3 -3
- package/card/card.js +8 -8
- package/card/card.module.css +11 -11
- package/card/card.tsx +15 -15
- package/clickAwayListener/clickAwayListener.d.ts +6 -6
- package/clickAwayListener/clickAwayListener.js +17 -16
- package/clickAwayListener/clickAwayListener.js.map +1 -1
- package/clickAwayListener/clickAwayListener.tsx +29 -27
- package/codeField/codeField.d.ts +8 -8
- package/codeField/codeField.js +9 -9
- package/codeField/codeField.module.css +23 -23
- package/codeField/codeField.tsx +32 -32
- package/container/container.d.ts +8 -8
- package/container/container.js +8 -8
- package/container/container.module.css +24 -24
- package/container/container.tsx +27 -27
- package/declarations.d.ts +1 -1
- package/footer/footer.d.ts +3 -3
- package/footer/footer.js +8 -8
- package/footer/footer.module.css +9 -9
- package/footer/footer.tsx +15 -15
- package/form/form.d.ts +3 -3
- package/form/form.js +11 -11
- package/form/form.module.css +6 -6
- package/form/form.tsx +23 -23
- package/gridContainer/gridContainer.d.ts +7 -7
- package/gridContainer/gridContainer.js +10 -10
- package/gridContainer/gridContainer.module.css +6 -5
- package/gridContainer/gridContainer.tsx +28 -28
- package/gridItem/gridItem.d.ts +10 -10
- package/gridItem/gridItem.js +9 -9
- package/gridItem/gridItem.module.css +192 -192
- package/gridItem/gridItem.tsx +31 -31
- package/hr/hr.d.ts +8 -8
- package/hr/hr.js +11 -11
- package/hr/hr.module.css +19 -19
- package/hr/hr.tsx +32 -32
- package/index.d.ts +24 -24
- package/index.js +24 -24
- package/index.tsx +48 -48
- package/inputField/inputField.d.ts +12 -12
- package/inputField/inputField.js +10 -10
- package/inputField/inputField.module.css +167 -167
- package/inputField/inputField.tsx +38 -38
- package/list/list.d.ts +7 -7
- package/list/list.js +8 -8
- package/list/list.module.css +22 -22
- package/list/list.tsx +25 -25
- package/listItem/listItem.d.ts +3 -3
- package/listItem/listItem.js +6 -6
- package/listItem/listItem.module.css +6 -6
- package/listItem/listItem.tsx +12 -12
- package/loading/loading.d.ts +7 -7
- package/loading/loading.js +9 -9
- package/loading/loading.module.css +91 -91
- package/loading/loading.tsx +25 -25
- package/main/main.d.ts +6 -6
- package/main/main.js +9 -9
- package/main/main.module.css +19 -19
- package/main/main.tsx +25 -25
- package/navigation/navigation.d.ts +7 -7
- package/navigation/navigation.js +8 -8
- package/navigation/navigation.module.css +61 -61
- package/navigation/navigation.tsx +24 -24
- package/package.json +31 -31
- package/page/page.d.ts +3 -3
- package/page/page.js +8 -8
- package/page/page.module.css +10 -10
- package/page/page.tsx +15 -15
- package/row/row.d.ts +3 -3
- package/row/row.js +8 -8
- package/row/row.module.css +7 -7
- package/row/row.tsx +15 -15
- package/spacer/spacer.d.ts +3 -3
- package/spacer/spacer.js +6 -6
- package/spacer/spacer.module.css +5 -5
- package/spacer/spacer.tsx +8 -8
- package/stack/stack.d.ts +3 -3
- package/stack/stack.js +8 -8
- package/stack/stack.module.css +6 -6
- package/stack/stack.tsx +15 -15
- package/svgIcon/svgIcon.d.ts +6 -6
- package/svgIcon/svgIcon.js +11 -11
- package/svgIcon/svgIcon.module.css +5 -5
- package/svgIcon/svgIcon.tsx +26 -26
- package/theme/theme.d.ts +9 -9
- package/theme/theme.js +11 -11
- package/theme/theme.module.css +397 -397
- package/theme/theme.tsx +29 -29
- package/theme/zoom.css +3 -3
- package/tsconfig.json +13 -13
|
@@ -1,61 +1,61 @@
|
|
|
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
|
+
.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,31 +1,31 @@
|
|
|
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
|
-
"typescript": "4.8.4"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"typescript-plugin-css-modules": "3.4.0"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@yakad/ui",
|
|
3
|
+
"version": "1.2.78-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
|
+
"typescript": "4.8.4"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"typescript-plugin-css-modules": "3.4.0"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/page/page.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare function Page(props: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
3
|
-
export default Page;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare function Page(props: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
3
|
+
export default Page;
|
package/page/page.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames } from "@yakad/lib";
|
|
3
|
-
import styles from "./page.module.css";
|
|
4
|
-
function Page(props) {
|
|
5
|
-
const joinedClassNames = joinClassNames(styles.page, props.className);
|
|
6
|
-
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
-
}
|
|
8
|
-
export default Page;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./page.module.css";
|
|
4
|
+
function Page(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.page, props.className);
|
|
6
|
+
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
+
}
|
|
8
|
+
export default Page;
|
|
9
9
|
//# sourceMappingURL=page.js.map
|
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.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare function Row(props: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
3
|
-
export default Row;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare function Row(props: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
3
|
+
export default Row;
|
package/row/row.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames } from "@yakad/lib";
|
|
3
|
-
import styles from "./row.module.css";
|
|
4
|
-
function Row(props) {
|
|
5
|
-
const joinedClassNames = joinClassNames(styles.row, props.className);
|
|
6
|
-
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
-
}
|
|
8
|
-
export default Row;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./row.module.css";
|
|
4
|
+
function Row(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.row, props.className);
|
|
6
|
+
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
+
}
|
|
8
|
+
export default Row;
|
|
9
9
|
//# sourceMappingURL=row.js.map
|
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.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare function Spacer(): JSX.Element;
|
|
3
|
-
export default Spacer;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare function Spacer(): JSX.Element;
|
|
3
|
+
export default Spacer;
|
package/spacer/spacer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styles from "./spacer.module.css";
|
|
3
|
-
function Spacer() {
|
|
4
|
-
return React.createElement("div", { className: styles.spacer });
|
|
5
|
-
}
|
|
6
|
-
export default Spacer;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styles from "./spacer.module.css";
|
|
3
|
+
function Spacer() {
|
|
4
|
+
return React.createElement("div", { className: styles.spacer });
|
|
5
|
+
}
|
|
6
|
+
export default Spacer;
|
|
7
7
|
//# sourceMappingURL=spacer.js.map
|
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
|
+
}
|
package/spacer/spacer.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styles from "./spacer.module.css";
|
|
3
|
-
|
|
4
|
-
function Spacer() {
|
|
5
|
-
return <div className={styles.spacer}></div>;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export default Spacer;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styles from "./spacer.module.css";
|
|
3
|
+
|
|
4
|
+
function Spacer() {
|
|
5
|
+
return <div className={styles.spacer}></div>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default Spacer;
|
package/stack/stack.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare function Stack(props: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
3
|
-
export default Stack;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare function Stack(props: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
3
|
+
export default Stack;
|
package/stack/stack.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames } from "@yakad/lib";
|
|
3
|
-
import styles from "./stack.module.css";
|
|
4
|
-
function Stack(props) {
|
|
5
|
-
const joinedClassNames = joinClassNames(styles.stack, props.className);
|
|
6
|
-
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
-
}
|
|
8
|
-
export default Stack;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./stack.module.css";
|
|
4
|
+
function Stack(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.stack, props.className);
|
|
6
|
+
return (React.createElement("div", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
+
}
|
|
8
|
+
export default Stack;
|
|
9
9
|
//# sourceMappingURL=stack.js.map
|
package/stack/stack.module.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.stack {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 1.5rem;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
}
|
|
1
|
+
.stack {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 1.5rem;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
package/stack/stack.tsx
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
-
import styles from "./stack.module.css";
|
|
4
|
-
|
|
5
|
-
function Stack(props: React.HTMLAttributes<HTMLDivElement>) {
|
|
6
|
-
const joinedClassNames = joinClassNames(styles.stack, props.className!);
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<div {...props} className={joinedClassNames}>
|
|
10
|
-
{props.children}
|
|
11
|
-
</div>
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default Stack;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./stack.module.css";
|
|
4
|
+
|
|
5
|
+
function Stack(props: React.HTMLAttributes<HTMLDivElement>) {
|
|
6
|
+
const joinedClassNames = joinClassNames(styles.stack, props.className!);
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<div {...props} className={joinedClassNames}>
|
|
10
|
+
{props.children}
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default Stack;
|
package/svgIcon/svgIcon.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface SvgIconProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
-
size?: number;
|
|
4
|
-
}
|
|
5
|
-
declare function SvgIcon(props: SvgIconProps): JSX.Element;
|
|
6
|
-
export default SvgIcon;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SvgIconProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
size?: number;
|
|
4
|
+
}
|
|
5
|
+
declare function SvgIcon(props: SvgIconProps): JSX.Element;
|
|
6
|
+
export default SvgIcon;
|
package/svgIcon/svgIcon.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
-
import styles from "./svgIcon.module.css";
|
|
4
|
-
function SvgIcon(props) {
|
|
5
|
-
const joinedClassNames = joinClassNames(styles.svg, props.className);
|
|
6
|
-
const joinedStyles = joinStyles(props.size
|
|
7
|
-
? { width: props.size + "rem", height: props.size + "rem" }
|
|
8
|
-
: {}, props.style);
|
|
9
|
-
return (React.createElement("div", { ...props, className: joinedClassNames, style: joinedStyles }, props.children));
|
|
10
|
-
}
|
|
11
|
-
export default SvgIcon;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./svgIcon.module.css";
|
|
4
|
+
function SvgIcon(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.svg, props.className);
|
|
6
|
+
const joinedStyles = joinStyles(props.size
|
|
7
|
+
? { width: props.size + "rem", height: props.size + "rem" }
|
|
8
|
+
: {}, props.style);
|
|
9
|
+
return (React.createElement("div", { ...props, className: joinedClassNames, style: joinedStyles }, props.children));
|
|
10
|
+
}
|
|
11
|
+
export default SvgIcon;
|
|
12
12
|
//# sourceMappingURL=svgIcon.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.svg svg {
|
|
2
|
-
display: block;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
}
|
|
1
|
+
.svg svg {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
package/svgIcon/svgIcon.tsx
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
-
import styles from "./svgIcon.module.css";
|
|
4
|
-
|
|
5
|
-
interface SvgIconProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
-
size?: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
function SvgIcon(props: SvgIconProps) {
|
|
10
|
-
const joinedClassNames = joinClassNames(styles.svg, props.className!);
|
|
11
|
-
|
|
12
|
-
const joinedStyles = joinStyles(
|
|
13
|
-
props.size
|
|
14
|
-
? { width: props.size + "rem", height: props.size + "rem" }
|
|
15
|
-
: {},
|
|
16
|
-
props.style!
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<div {...props} className={joinedClassNames} style={joinedStyles}>
|
|
21
|
-
{props.children}
|
|
22
|
-
</div>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default SvgIcon;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames, joinStyles } from "@yakad/lib";
|
|
3
|
+
import styles from "./svgIcon.module.css";
|
|
4
|
+
|
|
5
|
+
interface SvgIconProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
size?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function SvgIcon(props: SvgIconProps) {
|
|
10
|
+
const joinedClassNames = joinClassNames(styles.svg, props.className!);
|
|
11
|
+
|
|
12
|
+
const joinedStyles = joinStyles(
|
|
13
|
+
props.size
|
|
14
|
+
? { width: props.size + "rem", height: props.size + "rem" }
|
|
15
|
+
: {},
|
|
16
|
+
props.style!
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div {...props} className={joinedClassNames} style={joinedStyles}>
|
|
21
|
+
{props.children}
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default SvgIcon;
|
package/theme/theme.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./zoom.css";
|
|
3
|
-
interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
mode?: "light" | "dark" | "system";
|
|
5
|
-
color?: "green" | "red" | "yellow" | "blue" | "purple";
|
|
6
|
-
zoom?: number;
|
|
7
|
-
}
|
|
8
|
-
declare function Theme(props: ThemeProps): JSX.Element;
|
|
9
|
-
export default Theme;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./zoom.css";
|
|
3
|
+
interface ThemeProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
mode?: "light" | "dark" | "system";
|
|
5
|
+
color?: "green" | "red" | "yellow" | "blue" | "purple";
|
|
6
|
+
zoom?: number;
|
|
7
|
+
}
|
|
8
|
+
declare function Theme(props: ThemeProps): JSX.Element;
|
|
9
|
+
export default Theme;
|