@yakad/ui 1.2.69-beta → 1.2.71-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,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?: string;
|
|
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?: string;
|
|
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.module.css
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.list {
|
|
2
|
-
display: flex;
|
|
3
|
-
list-style-type: none;
|
|
4
|
-
max-height: 100rem;
|
|
5
|
-
padding: 0;
|
|
6
|
-
transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.row {
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
}
|
|
12
|
-
.column {
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: stretch;
|
|
15
|
-
width: 100%;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.collapsed {
|
|
20
|
-
max-height: 0;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
}
|
|
1
|
+
.list {
|
|
2
|
+
display: flex;
|
|
3
|
+
list-style-type: none;
|
|
4
|
+
max-height: 100rem;
|
|
5
|
+
padding: 0;
|
|
6
|
+
transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.row {
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
}
|
|
12
|
+
.column {
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: stretch;
|
|
15
|
+
width: 100%;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.collapsed {
|
|
20
|
+
max-height: 0;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
package/list/list.tsx
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { joinClassNames } from "@yakad/lib";
|
|
3
|
-
import styles from "./list.module.css";
|
|
4
|
-
|
|
5
|
-
interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
6
|
-
direction?: "row" | "column";
|
|
7
|
-
collapsed?: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function List(props: ListProps) {
|
|
11
|
-
const joinedClassNames = joinClassNames(
|
|
12
|
-
styles.list,
|
|
13
|
-
props.direction ? styles[props.direction] : styles.row,
|
|
14
|
-
props.collapsed ? styles.collapsed : "",
|
|
15
|
-
props.className!
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<ul {...props} className={joinedClassNames}>
|
|
20
|
-
{props.children}
|
|
21
|
-
</ul>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export default List;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { joinClassNames } from "@yakad/lib";
|
|
3
|
+
import styles from "./list.module.css";
|
|
4
|
+
|
|
5
|
+
interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
6
|
+
direction?: "row" | "column";
|
|
7
|
+
collapsed?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function List(props: ListProps) {
|
|
11
|
+
const joinedClassNames = joinClassNames(
|
|
12
|
+
styles.list,
|
|
13
|
+
props.direction ? styles[props.direction] : styles.row,
|
|
14
|
+
props.collapsed ? styles.collapsed : "",
|
|
15
|
+
props.className!
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<ul {...props} className={joinedClassNames}>
|
|
20
|
+
{props.children}
|
|
21
|
+
</ul>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default List;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.listItem {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: stretch;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
}
|
|
1
|
+
.listItem {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: stretch;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
package/listItem/listItem.tsx
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styles from "./listItem.module.css";
|
|
3
|
-
|
|
4
|
-
function ListItem(props: React.HTMLAttributes<HTMLLIElement>) {
|
|
5
|
-
return (
|
|
6
|
-
<li className={styles.listItem} {...props}>
|
|
7
|
-
{props.children}
|
|
8
|
-
</li>
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default ListItem;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styles from "./listItem.module.css";
|
|
3
|
+
|
|
4
|
+
function ListItem(props: React.HTMLAttributes<HTMLLIElement>) {
|
|
5
|
+
return (
|
|
6
|
+
<li className={styles.listItem} {...props}>
|
|
7
|
+
{props.children}
|
|
8
|
+
</li>
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default ListItem;
|