@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
package/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import Button from "./button/button";
|
|
2
|
-
import AppBar from "./appBar/appBar";
|
|
3
|
-
import Card from "./card/card";
|
|
4
|
-
import Container from "./container/container";
|
|
5
|
-
import Footer from "./footer/footer";
|
|
6
|
-
import Form from "./form/form";
|
|
7
|
-
import GridContainer from "./gridContainer/gridContainer";
|
|
8
|
-
import GridItem from "./gridItem/gridItem";
|
|
9
|
-
import Hr from "./hr/hr";
|
|
10
|
-
import List from "./list/list";
|
|
11
|
-
import ListItem from "./listItem/listItem";
|
|
12
|
-
import Main from "./main/main";
|
|
13
|
-
import Navigation from "./navigation/navigation";
|
|
14
|
-
import Page from "./page/page";
|
|
15
|
-
import Row from "./row/row";
|
|
16
|
-
import Spacer from "./spacer/spacer";
|
|
17
|
-
import Stack from "./stack/stack";
|
|
18
|
-
import SvgIcon from "./svgIcon/svgIcon";
|
|
19
|
-
import Loading from "./loading/loading";
|
|
20
|
-
import CodeField from "./codeField/codeField";
|
|
21
|
-
import InputField from "./inputField/inputField";
|
|
22
|
-
import Theme from "./theme/theme";
|
|
23
|
-
import ClickAwayListener from "./clickAwayListener/clickAwayListener";
|
|
24
|
-
export { Button, AppBar, Card, Container, Footer, Form, GridContainer, GridItem, Hr, List, ListItem, Main, Navigation, Page, Row, Stack, Spacer, SvgIcon, Loading, CodeField, InputField, Theme, ClickAwayListener, };
|
|
1
|
+
import Button from "./button/button";
|
|
2
|
+
import AppBar from "./appBar/appBar";
|
|
3
|
+
import Card from "./card/card";
|
|
4
|
+
import Container from "./container/container";
|
|
5
|
+
import Footer from "./footer/footer";
|
|
6
|
+
import Form from "./form/form";
|
|
7
|
+
import GridContainer from "./gridContainer/gridContainer";
|
|
8
|
+
import GridItem from "./gridItem/gridItem";
|
|
9
|
+
import Hr from "./hr/hr";
|
|
10
|
+
import List from "./list/list";
|
|
11
|
+
import ListItem from "./listItem/listItem";
|
|
12
|
+
import Main from "./main/main";
|
|
13
|
+
import Navigation from "./navigation/navigation";
|
|
14
|
+
import Page from "./page/page";
|
|
15
|
+
import Row from "./row/row";
|
|
16
|
+
import Spacer from "./spacer/spacer";
|
|
17
|
+
import Stack from "./stack/stack";
|
|
18
|
+
import SvgIcon from "./svgIcon/svgIcon";
|
|
19
|
+
import Loading from "./loading/loading";
|
|
20
|
+
import CodeField from "./codeField/codeField";
|
|
21
|
+
import InputField from "./inputField/inputField";
|
|
22
|
+
import Theme from "./theme/theme";
|
|
23
|
+
import ClickAwayListener from "./clickAwayListener/clickAwayListener";
|
|
24
|
+
export { Button, AppBar, Card, Container, Footer, Form, GridContainer, GridItem, Hr, List, ListItem, Main, Navigation, Page, Row, Stack, Spacer, SvgIcon, Loading, CodeField, InputField, Theme, ClickAwayListener, };
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/index.tsx
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import Button from "./button/button";
|
|
2
|
-
import AppBar from "./appBar/appBar";
|
|
3
|
-
import Card from "./card/card";
|
|
4
|
-
import Container from "./container/container";
|
|
5
|
-
import Footer from "./footer/footer";
|
|
6
|
-
import Form from "./form/form";
|
|
7
|
-
import GridContainer from "./gridContainer/gridContainer";
|
|
8
|
-
import GridItem from "./gridItem/gridItem";
|
|
9
|
-
import Hr from "./hr/hr";
|
|
10
|
-
import List from "./list/list";
|
|
11
|
-
import ListItem from "./listItem/listItem";
|
|
12
|
-
import Main from "./main/main";
|
|
13
|
-
import Navigation from "./navigation/navigation";
|
|
14
|
-
import Page from "./page/page";
|
|
15
|
-
import Row from "./row/row";
|
|
16
|
-
import Spacer from "./spacer/spacer";
|
|
17
|
-
import Stack from "./stack/stack";
|
|
18
|
-
import SvgIcon from "./svgIcon/svgIcon";
|
|
19
|
-
import Loading from "./loading/loading";
|
|
20
|
-
import CodeField from "./codeField/codeField";
|
|
21
|
-
import InputField from "./inputField/inputField";
|
|
22
|
-
import Theme from "./theme/theme";
|
|
23
|
-
import ClickAwayListener from "./clickAwayListener/clickAwayListener";
|
|
24
|
-
export {
|
|
25
|
-
Button,
|
|
26
|
-
AppBar,
|
|
27
|
-
Card,
|
|
28
|
-
Container,
|
|
29
|
-
Footer,
|
|
30
|
-
Form,
|
|
31
|
-
GridContainer,
|
|
32
|
-
GridItem,
|
|
33
|
-
Hr,
|
|
34
|
-
List,
|
|
35
|
-
ListItem,
|
|
36
|
-
Main,
|
|
37
|
-
Navigation,
|
|
38
|
-
Page,
|
|
39
|
-
Row,
|
|
40
|
-
Stack,
|
|
41
|
-
Spacer,
|
|
42
|
-
SvgIcon,
|
|
43
|
-
Loading,
|
|
44
|
-
CodeField,
|
|
45
|
-
InputField,
|
|
46
|
-
Theme,
|
|
47
|
-
ClickAwayListener,
|
|
48
|
-
};
|
|
1
|
+
import Button from "./button/button";
|
|
2
|
+
import AppBar from "./appBar/appBar";
|
|
3
|
+
import Card from "./card/card";
|
|
4
|
+
import Container from "./container/container";
|
|
5
|
+
import Footer from "./footer/footer";
|
|
6
|
+
import Form from "./form/form";
|
|
7
|
+
import GridContainer from "./gridContainer/gridContainer";
|
|
8
|
+
import GridItem from "./gridItem/gridItem";
|
|
9
|
+
import Hr from "./hr/hr";
|
|
10
|
+
import List from "./list/list";
|
|
11
|
+
import ListItem from "./listItem/listItem";
|
|
12
|
+
import Main from "./main/main";
|
|
13
|
+
import Navigation from "./navigation/navigation";
|
|
14
|
+
import Page from "./page/page";
|
|
15
|
+
import Row from "./row/row";
|
|
16
|
+
import Spacer from "./spacer/spacer";
|
|
17
|
+
import Stack from "./stack/stack";
|
|
18
|
+
import SvgIcon from "./svgIcon/svgIcon";
|
|
19
|
+
import Loading from "./loading/loading";
|
|
20
|
+
import CodeField from "./codeField/codeField";
|
|
21
|
+
import InputField from "./inputField/inputField";
|
|
22
|
+
import Theme from "./theme/theme";
|
|
23
|
+
import ClickAwayListener from "./clickAwayListener/clickAwayListener";
|
|
24
|
+
export {
|
|
25
|
+
Button,
|
|
26
|
+
AppBar,
|
|
27
|
+
Card,
|
|
28
|
+
Container,
|
|
29
|
+
Footer,
|
|
30
|
+
Form,
|
|
31
|
+
GridContainer,
|
|
32
|
+
GridItem,
|
|
33
|
+
Hr,
|
|
34
|
+
List,
|
|
35
|
+
ListItem,
|
|
36
|
+
Main,
|
|
37
|
+
Navigation,
|
|
38
|
+
Page,
|
|
39
|
+
Row,
|
|
40
|
+
Stack,
|
|
41
|
+
Spacer,
|
|
42
|
+
SvgIcon,
|
|
43
|
+
Loading,
|
|
44
|
+
CodeField,
|
|
45
|
+
InputField,
|
|
46
|
+
Theme,
|
|
47
|
+
ClickAwayListener,
|
|
48
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface InputFieldProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
3
|
-
variant?: "standard" | "outlined" | "filled";
|
|
4
|
-
type?: string;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
name?: string;
|
|
8
|
-
value?: string;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare function InputField(props: InputFieldProps): JSX.Element;
|
|
12
|
-
export default InputField;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface InputFieldProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
3
|
+
variant?: "standard" | "outlined" | "filled";
|
|
4
|
+
type?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function InputField(props: InputFieldProps): JSX.Element;
|
|
12
|
+
export default InputField;
|
package/inputField/inputField.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames } from "@yakad/lib";
|
|
3
|
-
import styles from "./inputField.module.css";
|
|
4
|
-
function InputField(props) {
|
|
5
|
-
const joinedClassNames = joinClassNames(styles.input, props.variant ? styles[props.variant] : styles.standard, props.className);
|
|
6
|
-
return (React.createElement("label", { className: styles.label },
|
|
7
|
-
React.createElement("input", { ...props, name: props.name, disabled: props.disabled, placeholder: " ", type: props.type, value: props.value, className: joinedClassNames }),
|
|
8
|
-
React.createElement("span", { className: styles.span }, props.placeholder)));
|
|
9
|
-
}
|
|
10
|
-
export default InputField;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./inputField.module.css";
|
|
4
|
+
function InputField(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.input, props.variant ? styles[props.variant] : styles.standard, props.className);
|
|
6
|
+
return (React.createElement("label", { className: styles.label },
|
|
7
|
+
React.createElement("input", { ...props, name: props.name, disabled: props.disabled, placeholder: " ", type: props.type, value: props.value, className: joinedClassNames }),
|
|
8
|
+
React.createElement("span", { className: styles.span }, props.placeholder)));
|
|
9
|
+
}
|
|
10
|
+
export default InputField;
|
|
11
11
|
//# sourceMappingURL=inputField.js.map
|
|
@@ -1,167 +1,167 @@
|
|
|
1
|
-
.label {
|
|
2
|
-
padding-top: 0.6rem;
|
|
3
|
-
font-size: 1.3rem;
|
|
4
|
-
position: relative;
|
|
5
|
-
display: inline-block;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
}
|
|
8
|
-
.input {
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
margin: 0rem;
|
|
11
|
-
border-image: initial;
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: inherit;
|
|
14
|
-
color: rgb(var(--onSurfaceColor, 28 27 31) / 0.87);
|
|
15
|
-
box-shadow: none;
|
|
16
|
-
font-family: inherit;
|
|
17
|
-
font-size: inherit;
|
|
18
|
-
line-height: inherit;
|
|
19
|
-
caret-color: rgb(var(--primaryColor, 11 87 208));
|
|
20
|
-
}
|
|
21
|
-
.input.outlined {
|
|
22
|
-
border-top-color: transparent;
|
|
23
|
-
background-color: transparent;
|
|
24
|
-
border-width: 0.1rem;
|
|
25
|
-
border-style: solid;
|
|
26
|
-
border-radius: 0.4rem;
|
|
27
|
-
padding: 1.5rem 1.3rem;
|
|
28
|
-
transition: border 0.2s ease 0s, box-shadow 0.2s ease 0s;
|
|
29
|
-
text-rendering: auto;
|
|
30
|
-
letter-spacing: normal;
|
|
31
|
-
word-spacing: normal;
|
|
32
|
-
line-height: normal;
|
|
33
|
-
text-transform: none;
|
|
34
|
-
text-indent: 0rem;
|
|
35
|
-
text-shadow: none;
|
|
36
|
-
display: inline-block;
|
|
37
|
-
text-align: start;
|
|
38
|
-
appearance: auto;
|
|
39
|
-
-webkit-rtl-ordering: logical;
|
|
40
|
-
cursor: text;
|
|
41
|
-
}
|
|
42
|
-
.input.filled {
|
|
43
|
-
display: block;
|
|
44
|
-
border-right: none;
|
|
45
|
-
border-left: none;
|
|
46
|
-
border-top: 2.7rem solid transparent;
|
|
47
|
-
border-bottom: solid 0.1rem rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
48
|
-
border-radius: 0.4rem 0.4rem 0rem 0rem;
|
|
49
|
-
padding: 0rem 1.2rem 1rem;
|
|
50
|
-
background-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.04);
|
|
51
|
-
transition: border-bottom 0.2s ease 0s, background-color 0.2s ease 0s;
|
|
52
|
-
}
|
|
53
|
-
.input:focus {
|
|
54
|
-
outline: none;
|
|
55
|
-
}
|
|
56
|
-
.input.outlined:focus {
|
|
57
|
-
border-top-color: transparent;
|
|
58
|
-
box-shadow: inset 1px 0 rgb(var(--primaryColor, 11 87 208)),
|
|
59
|
-
inset -1px 0 rgb(var(--primaryColor, 11 87 208)),
|
|
60
|
-
inset 0 -1px rgb(var(--primaryColor, 11 87 208));
|
|
61
|
-
}
|
|
62
|
-
.input:focus + .span {
|
|
63
|
-
color: rgb(var(--primaryColor, 11 87 208));
|
|
64
|
-
}
|
|
65
|
-
.input.outlined:focus + .span::after {
|
|
66
|
-
box-shadow: inset 0 1px rgb(var(--primaryColor, 11 87 208));
|
|
67
|
-
border-top-color: rgb(var(--primaryColor, 11 87 208)) !important;
|
|
68
|
-
}
|
|
69
|
-
.input.filled:focus + .span::after {
|
|
70
|
-
transform: scale(1);
|
|
71
|
-
}
|
|
72
|
-
.input.outlined:focus + .span::before {
|
|
73
|
-
box-shadow: inset 0 1px rgb(var(--primaryColor, 11 87 208));
|
|
74
|
-
border-top-color: rgb(var(--primaryColor, 11 87 208)) !important;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.input.outlined:not(:focus):placeholder-shown {
|
|
78
|
-
border-top-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
79
|
-
}
|
|
80
|
-
.input.outlined:not(:focus):placeholder-shown + .span {
|
|
81
|
-
font-size: inherit;
|
|
82
|
-
line-height: 6.2rem;
|
|
83
|
-
}
|
|
84
|
-
.input.filled:not(:focus):placeholder-shown + .span {
|
|
85
|
-
font-size: inherit;
|
|
86
|
-
line-height: 4.8rem;
|
|
87
|
-
}
|
|
88
|
-
.input + .span {
|
|
89
|
-
position: absolute;
|
|
90
|
-
color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
91
|
-
font-size: 75%;
|
|
92
|
-
transition: color 0.2s ease 0s, font-size 0.2s ease 0s,
|
|
93
|
-
line-height 0.2s ease 0s;
|
|
94
|
-
}
|
|
95
|
-
.input.outlined + .span {
|
|
96
|
-
top: 0rem;
|
|
97
|
-
left: 0rem;
|
|
98
|
-
display: flex;
|
|
99
|
-
border-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
100
|
-
width: 100%;
|
|
101
|
-
max-height: 100%;
|
|
102
|
-
line-height: 1.5rem;
|
|
103
|
-
cursor: text;
|
|
104
|
-
}
|
|
105
|
-
.input.filled + .span {
|
|
106
|
-
inset: 0rem;
|
|
107
|
-
display: block;
|
|
108
|
-
box-sizing: border-box;
|
|
109
|
-
padding: 0.7rem 1.2rem 0rem;
|
|
110
|
-
line-height: 18px;
|
|
111
|
-
pointer-events: none;
|
|
112
|
-
}
|
|
113
|
-
.input.outlined:not(:focus):placeholder-shown + .span::before {
|
|
114
|
-
border-top-color: transparent;
|
|
115
|
-
}
|
|
116
|
-
.input.outlined + .span::before {
|
|
117
|
-
margin-right: 0.4rem;
|
|
118
|
-
border-left: 0.1 solid transparent;
|
|
119
|
-
border-radius: 0.4rem 0rem;
|
|
120
|
-
content: "";
|
|
121
|
-
display: block;
|
|
122
|
-
box-sizing: border-box;
|
|
123
|
-
margin-top: 0.6rem;
|
|
124
|
-
border-top-width: 0.1rem;
|
|
125
|
-
border-top-style: solid;
|
|
126
|
-
border-top-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
127
|
-
min-width: 1rem;
|
|
128
|
-
height: 0.8rem;
|
|
129
|
-
pointer-events: none;
|
|
130
|
-
box-shadow: transparent 0px 1px inset;
|
|
131
|
-
transition: border-color 0.2s ease 0s, box-shadow 0.2s ease 0s;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.input.outlined:not(:focus):placeholder-shown + .span::after {
|
|
135
|
-
border-top-color: transparent;
|
|
136
|
-
}
|
|
137
|
-
.input + .span::after {
|
|
138
|
-
content: "";
|
|
139
|
-
display: block;
|
|
140
|
-
}
|
|
141
|
-
.input.outlined + .span::after {
|
|
142
|
-
flex-grow: 1;
|
|
143
|
-
margin-left: 0.4rem;
|
|
144
|
-
border-right: 0.1rem solid transparent;
|
|
145
|
-
border-radius: 0rem 0.4rem;
|
|
146
|
-
box-sizing: border-box;
|
|
147
|
-
margin-top: 0.6rem;
|
|
148
|
-
border-top-width: 0.1rem;
|
|
149
|
-
border-top-style: solid;
|
|
150
|
-
border-top-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
151
|
-
min-width: 1rem;
|
|
152
|
-
height: 0.8rem;
|
|
153
|
-
pointer-events: none;
|
|
154
|
-
box-shadow: transparent 0px 1px inset;
|
|
155
|
-
transition: border-color 0.2s ease 0s, box-shadow 0.2s ease 0s;
|
|
156
|
-
}
|
|
157
|
-
.input.filled + .span::after {
|
|
158
|
-
position: absolute;
|
|
159
|
-
left: 0rem;
|
|
160
|
-
bottom: 0rem;
|
|
161
|
-
width: 100%;
|
|
162
|
-
height: 0.2rem;
|
|
163
|
-
background-color: rgb(var(--primaryColor, 11 87 208));
|
|
164
|
-
transform-origin: center bottom;
|
|
165
|
-
transform: scaleX(0);
|
|
166
|
-
transition: transform 0.3s ease 0s;
|
|
167
|
-
}
|
|
1
|
+
.label {
|
|
2
|
+
padding-top: 0.6rem;
|
|
3
|
+
font-size: 1.3rem;
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
.input {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
margin: 0rem;
|
|
11
|
+
border-image: initial;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: inherit;
|
|
14
|
+
color: rgb(var(--onSurfaceColor, 28 27 31) / 0.87);
|
|
15
|
+
box-shadow: none;
|
|
16
|
+
font-family: inherit;
|
|
17
|
+
font-size: inherit;
|
|
18
|
+
line-height: inherit;
|
|
19
|
+
caret-color: rgb(var(--primaryColor, 11 87 208));
|
|
20
|
+
}
|
|
21
|
+
.input.outlined {
|
|
22
|
+
border-top-color: transparent;
|
|
23
|
+
background-color: transparent;
|
|
24
|
+
border-width: 0.1rem;
|
|
25
|
+
border-style: solid;
|
|
26
|
+
border-radius: 0.4rem;
|
|
27
|
+
padding: 1.5rem 1.3rem;
|
|
28
|
+
transition: border 0.2s ease 0s, box-shadow 0.2s ease 0s;
|
|
29
|
+
text-rendering: auto;
|
|
30
|
+
letter-spacing: normal;
|
|
31
|
+
word-spacing: normal;
|
|
32
|
+
line-height: normal;
|
|
33
|
+
text-transform: none;
|
|
34
|
+
text-indent: 0rem;
|
|
35
|
+
text-shadow: none;
|
|
36
|
+
display: inline-block;
|
|
37
|
+
text-align: start;
|
|
38
|
+
appearance: auto;
|
|
39
|
+
-webkit-rtl-ordering: logical;
|
|
40
|
+
cursor: text;
|
|
41
|
+
}
|
|
42
|
+
.input.filled {
|
|
43
|
+
display: block;
|
|
44
|
+
border-right: none;
|
|
45
|
+
border-left: none;
|
|
46
|
+
border-top: 2.7rem solid transparent;
|
|
47
|
+
border-bottom: solid 0.1rem rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
48
|
+
border-radius: 0.4rem 0.4rem 0rem 0rem;
|
|
49
|
+
padding: 0rem 1.2rem 1rem;
|
|
50
|
+
background-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.04);
|
|
51
|
+
transition: border-bottom 0.2s ease 0s, background-color 0.2s ease 0s;
|
|
52
|
+
}
|
|
53
|
+
.input:focus {
|
|
54
|
+
outline: none;
|
|
55
|
+
}
|
|
56
|
+
.input.outlined:focus {
|
|
57
|
+
border-top-color: transparent;
|
|
58
|
+
box-shadow: inset 1px 0 rgb(var(--primaryColor, 11 87 208)),
|
|
59
|
+
inset -1px 0 rgb(var(--primaryColor, 11 87 208)),
|
|
60
|
+
inset 0 -1px rgb(var(--primaryColor, 11 87 208));
|
|
61
|
+
}
|
|
62
|
+
.input:focus + .span {
|
|
63
|
+
color: rgb(var(--primaryColor, 11 87 208));
|
|
64
|
+
}
|
|
65
|
+
.input.outlined:focus + .span::after {
|
|
66
|
+
box-shadow: inset 0 1px rgb(var(--primaryColor, 11 87 208));
|
|
67
|
+
border-top-color: rgb(var(--primaryColor, 11 87 208)) !important;
|
|
68
|
+
}
|
|
69
|
+
.input.filled:focus + .span::after {
|
|
70
|
+
transform: scale(1);
|
|
71
|
+
}
|
|
72
|
+
.input.outlined:focus + .span::before {
|
|
73
|
+
box-shadow: inset 0 1px rgb(var(--primaryColor, 11 87 208));
|
|
74
|
+
border-top-color: rgb(var(--primaryColor, 11 87 208)) !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.input.outlined:not(:focus):placeholder-shown {
|
|
78
|
+
border-top-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
79
|
+
}
|
|
80
|
+
.input.outlined:not(:focus):placeholder-shown + .span {
|
|
81
|
+
font-size: inherit;
|
|
82
|
+
line-height: 6.2rem;
|
|
83
|
+
}
|
|
84
|
+
.input.filled:not(:focus):placeholder-shown + .span {
|
|
85
|
+
font-size: inherit;
|
|
86
|
+
line-height: 4.8rem;
|
|
87
|
+
}
|
|
88
|
+
.input + .span {
|
|
89
|
+
position: absolute;
|
|
90
|
+
color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
91
|
+
font-size: 75%;
|
|
92
|
+
transition: color 0.2s ease 0s, font-size 0.2s ease 0s,
|
|
93
|
+
line-height 0.2s ease 0s;
|
|
94
|
+
}
|
|
95
|
+
.input.outlined + .span {
|
|
96
|
+
top: 0rem;
|
|
97
|
+
left: 0rem;
|
|
98
|
+
display: flex;
|
|
99
|
+
border-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
100
|
+
width: 100%;
|
|
101
|
+
max-height: 100%;
|
|
102
|
+
line-height: 1.5rem;
|
|
103
|
+
cursor: text;
|
|
104
|
+
}
|
|
105
|
+
.input.filled + .span {
|
|
106
|
+
inset: 0rem;
|
|
107
|
+
display: block;
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
padding: 0.7rem 1.2rem 0rem;
|
|
110
|
+
line-height: 18px;
|
|
111
|
+
pointer-events: none;
|
|
112
|
+
}
|
|
113
|
+
.input.outlined:not(:focus):placeholder-shown + .span::before {
|
|
114
|
+
border-top-color: transparent;
|
|
115
|
+
}
|
|
116
|
+
.input.outlined + .span::before {
|
|
117
|
+
margin-right: 0.4rem;
|
|
118
|
+
border-left: 0.1 solid transparent;
|
|
119
|
+
border-radius: 0.4rem 0rem;
|
|
120
|
+
content: "";
|
|
121
|
+
display: block;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
margin-top: 0.6rem;
|
|
124
|
+
border-top-width: 0.1rem;
|
|
125
|
+
border-top-style: solid;
|
|
126
|
+
border-top-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
127
|
+
min-width: 1rem;
|
|
128
|
+
height: 0.8rem;
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
box-shadow: transparent 0px 1px inset;
|
|
131
|
+
transition: border-color 0.2s ease 0s, box-shadow 0.2s ease 0s;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.input.outlined:not(:focus):placeholder-shown + .span::after {
|
|
135
|
+
border-top-color: transparent;
|
|
136
|
+
}
|
|
137
|
+
.input + .span::after {
|
|
138
|
+
content: "";
|
|
139
|
+
display: block;
|
|
140
|
+
}
|
|
141
|
+
.input.outlined + .span::after {
|
|
142
|
+
flex-grow: 1;
|
|
143
|
+
margin-left: 0.4rem;
|
|
144
|
+
border-right: 0.1rem solid transparent;
|
|
145
|
+
border-radius: 0rem 0.4rem;
|
|
146
|
+
box-sizing: border-box;
|
|
147
|
+
margin-top: 0.6rem;
|
|
148
|
+
border-top-width: 0.1rem;
|
|
149
|
+
border-top-style: solid;
|
|
150
|
+
border-top-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
151
|
+
min-width: 1rem;
|
|
152
|
+
height: 0.8rem;
|
|
153
|
+
pointer-events: none;
|
|
154
|
+
box-shadow: transparent 0px 1px inset;
|
|
155
|
+
transition: border-color 0.2s ease 0s, box-shadow 0.2s ease 0s;
|
|
156
|
+
}
|
|
157
|
+
.input.filled + .span::after {
|
|
158
|
+
position: absolute;
|
|
159
|
+
left: 0rem;
|
|
160
|
+
bottom: 0rem;
|
|
161
|
+
width: 100%;
|
|
162
|
+
height: 0.2rem;
|
|
163
|
+
background-color: rgb(var(--primaryColor, 11 87 208));
|
|
164
|
+
transform-origin: center bottom;
|
|
165
|
+
transform: scaleX(0);
|
|
166
|
+
transition: transform 0.3s ease 0s;
|
|
167
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames } from "@yakad/lib";
|
|
3
|
-
import styles from "./inputField.module.css";
|
|
4
|
-
|
|
5
|
-
interface InputFieldProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
6
|
-
variant?: "standard" | "outlined" | "filled";
|
|
7
|
-
type?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
name?: string;
|
|
11
|
-
value?: string;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function InputField(props: InputFieldProps) {
|
|
16
|
-
const joinedClassNames = joinClassNames(
|
|
17
|
-
styles.input,
|
|
18
|
-
props.variant ? styles[props.variant] : styles.standard,
|
|
19
|
-
props.className!
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<label className={styles.label}>
|
|
24
|
-
<input
|
|
25
|
-
{...props}
|
|
26
|
-
name={props.name}
|
|
27
|
-
disabled={props.disabled}
|
|
28
|
-
placeholder=" "
|
|
29
|
-
type={props.type}
|
|
30
|
-
value={props.value}
|
|
31
|
-
className={joinedClassNames}
|
|
32
|
-
/>
|
|
33
|
-
<span className={styles.span}>{props.placeholder}</span>
|
|
34
|
-
</label>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default InputField;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./inputField.module.css";
|
|
4
|
+
|
|
5
|
+
interface InputFieldProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
6
|
+
variant?: "standard" | "outlined" | "filled";
|
|
7
|
+
type?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function InputField(props: InputFieldProps) {
|
|
16
|
+
const joinedClassNames = joinClassNames(
|
|
17
|
+
styles.input,
|
|
18
|
+
props.variant ? styles[props.variant] : styles.standard,
|
|
19
|
+
props.className!
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<label className={styles.label}>
|
|
24
|
+
<input
|
|
25
|
+
{...props}
|
|
26
|
+
name={props.name}
|
|
27
|
+
disabled={props.disabled}
|
|
28
|
+
placeholder=" "
|
|
29
|
+
type={props.type}
|
|
30
|
+
value={props.value}
|
|
31
|
+
className={joinedClassNames}
|
|
32
|
+
/>
|
|
33
|
+
<span className={styles.span}>{props.placeholder}</span>
|
|
34
|
+
</label>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default InputField;
|
package/list/list.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
3
|
-
direction?: "row" | "column";
|
|
4
|
-
collapsed?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare function List(props: ListProps): JSX.Element;
|
|
7
|
-
export default List;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
3
|
+
direction?: "row" | "column";
|
|
4
|
+
collapsed?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function List(props: ListProps): JSX.Element;
|
|
7
|
+
export default List;
|
package/list/list.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames } from "@yakad/lib";
|
|
3
|
-
import styles from "./list.module.css";
|
|
4
|
-
function List(props) {
|
|
5
|
-
const joinedClassNames = joinClassNames(styles.list, props.direction ? styles[props.direction] : styles.row, props.collapsed ? styles.collapsed : "", props.className);
|
|
6
|
-
return (React.createElement("ul", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
-
}
|
|
8
|
-
export default List;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./list.module.css";
|
|
4
|
+
function List(props) {
|
|
5
|
+
const joinedClassNames = joinClassNames(styles.list, props.direction ? styles[props.direction] : styles.row, props.collapsed ? styles.collapsed : "", props.className);
|
|
6
|
+
return (React.createElement("ul", { ...props, className: joinedClassNames }, props.children));
|
|
7
|
+
}
|
|
8
|
+
export default List;
|
|
9
9
|
//# sourceMappingURL=list.js.map
|