@sio-group/form-react 0.1.0
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/CHANGELOG.md +97 -0
- package/README.md +783 -0
- package/ROADMAP.md +21 -0
- package/dist/index.cjs +1919 -0
- package/dist/index.d.cts +284 -0
- package/dist/index.d.ts +284 -0
- package/dist/index.js +1878 -0
- package/dist/styles/components/button.css +244 -0
- package/dist/styles/components/button.css.map +1 -0
- package/dist/styles/components/checkbox.css +90 -0
- package/dist/styles/components/checkbox.css.map +1 -0
- package/dist/styles/components/color.css +31 -0
- package/dist/styles/components/color.css.map +1 -0
- package/dist/styles/components/form-field.css +36 -0
- package/dist/styles/components/form-field.css.map +1 -0
- package/dist/styles/components/form-states.css +80 -0
- package/dist/styles/components/form-states.css.map +1 -0
- package/dist/styles/components/grid.css +818 -0
- package/dist/styles/components/grid.css.map +1 -0
- package/dist/styles/components/input.css +112 -0
- package/dist/styles/components/input.css.map +1 -0
- package/dist/styles/components/link.css +113 -0
- package/dist/styles/components/link.css.map +1 -0
- package/dist/styles/components/radio.css +104 -0
- package/dist/styles/components/radio.css.map +1 -0
- package/dist/styles/components/range.css +54 -0
- package/dist/styles/components/range.css.map +1 -0
- package/dist/styles/components/select.css +37 -0
- package/dist/styles/components/select.css.map +1 -0
- package/dist/styles/components/upload.css +54 -0
- package/dist/styles/components/upload.css.map +1 -0
- package/dist/styles/index.css +1733 -0
- package/dist/styles/index.css.map +1 -0
- package/package.json +42 -0
- package/screenshots/contact-form.png +0 -0
- package/screenshots/file-input.png +0 -0
- package/screenshots/invalid-username.png +0 -0
- package/screenshots/number-field.png +0 -0
- package/screenshots/radio-field.png +0 -0
- package/screenshots/range-field.png +0 -0
- package/screenshots/registration-form.png +0 -0
- package/screenshots/select-field.png +0 -0
- package/screenshots/textarea-field.png +0 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsup.config.ts +8 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
@keyframes spin {
|
|
2
|
+
from {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: rotate(360deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
:root {
|
|
10
|
+
--sio-color-white: #ffffff;
|
|
11
|
+
--sio-color-black: #000000;
|
|
12
|
+
--sio-color-gray: #655f5d;
|
|
13
|
+
--sio-color-light-gray: #c6c6c6;
|
|
14
|
+
--sio-color-primary: #3B82F6;
|
|
15
|
+
--sio-color-success: #10B981;
|
|
16
|
+
--sio-color-error: #EF4444;
|
|
17
|
+
--sio-color-warning: #F59E0B;
|
|
18
|
+
--sio-color-info: #06B6D4;
|
|
19
|
+
--sio-color-primary-rgb: 59, 130, 246;
|
|
20
|
+
--sio-color-error-rgb: 239, 68, 68;
|
|
21
|
+
--sio-form-label: var(--sio-color-primary);
|
|
22
|
+
--sio-form-border: var(--sio-color-light-gray);
|
|
23
|
+
--sio-form-bg: var(--sio-color-white);
|
|
24
|
+
--sio-btn-primary-bg: var(--sio-color-primary);
|
|
25
|
+
--sio-btn-primary-border: var(--sio-color-primary);
|
|
26
|
+
--sio-btn-primary-text: var(--sio-color-white);
|
|
27
|
+
--sio-btn-secondary-bg: transparent;
|
|
28
|
+
--sio-btn-secondary-border: var(--sio-color-primary);
|
|
29
|
+
--sio-btn-secondary-text: var(--sio-color-primary);
|
|
30
|
+
--sio-btn-link-bg: transparent;
|
|
31
|
+
--sio-btn-link-border: transparent;
|
|
32
|
+
--sio-btn-link-text: var(--sio-color-primary);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where(.btn--primary) {
|
|
36
|
+
--sio-btn-bg: var(--sio-btn-primary-bg);
|
|
37
|
+
--sio-btn-border: var(--sio-btn-primary-border);
|
|
38
|
+
--sio-btn-text: var(--sio-btn-primary-text);
|
|
39
|
+
--sio-btn-bg-hover: color-mix(in srgb, var(--sio-btn-bg) 85%, black);
|
|
40
|
+
--sio-btn-border-hover: color-mix(in srgb, var(--sio-btn-border) 85%, black);
|
|
41
|
+
--sio-btn-text-hover: var(--sio-btn-text);
|
|
42
|
+
--sio-btn-bg-disabled: color-mix(in srgb, var(--sio-btn-bg) 40%, white);
|
|
43
|
+
--sio-btn-border-disabled: color-mix(in srgb, var(--sio-btn-border) 40%, white);
|
|
44
|
+
--sio-btn-text-disabled: color-mix(in srgb, var(--sio-btn-text) 60%, black);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(.btn--secondary) {
|
|
48
|
+
--sio-btn-bg: var(--sio-btn-secondary-bg);
|
|
49
|
+
--sio-btn-border: var(--sio-btn-secondary-border);
|
|
50
|
+
--sio-btn-text: var(--sio-btn-secondary-text);
|
|
51
|
+
--sio-btn-bg-hover: var(--sio-btn-bg);
|
|
52
|
+
--sio-btn-border-hover: color-mix(in srgb, var(--sio-btn-border) 85%, black);
|
|
53
|
+
--sio-btn-text-hover: var(--sio-btn-text);
|
|
54
|
+
--sio-btn-bg-disabled: var(--sio-btn-bg);
|
|
55
|
+
--sio-btn-border-disabled: color-mix(in srgb, var(--sio-btn-border) 40%, white);
|
|
56
|
+
--sio-btn-text-disabled: color-mix(in srgb, var(--sio-btn-text) 40%, white);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where(.btn--link) {
|
|
60
|
+
--sio-btn-bg: var(--sio-btn-link-bg);
|
|
61
|
+
--sio-btn-border: var(--sio-btn-link-border);
|
|
62
|
+
--sio-btn-text: var(--sio-btn-link-text);
|
|
63
|
+
--sio-btn-bg-hover: var(--sio-btn-bg);
|
|
64
|
+
--sio-btn-border-hover: var(--sio-btn-border);
|
|
65
|
+
--sio-btn-text-hover: color-mix(in srgb, var(--sio-btn-text) 85%, black);
|
|
66
|
+
--sio-btn-bg-disabled: var(--sio-btn-bg);
|
|
67
|
+
--sio-btn-border-disabled: var(--sio-btn-border);
|
|
68
|
+
--sio-btn-text-disabled: color-mix(in srgb, var(--sio-btn-text) 40%, white);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where(.btn) {
|
|
72
|
+
background-color: var(--sio-btn-bg);
|
|
73
|
+
color: var(--sio-btn-text);
|
|
74
|
+
display: inline-block;
|
|
75
|
+
font-size: 0.9em;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
user-select: none;
|
|
78
|
+
text-align: center;
|
|
79
|
+
border: 1px solid var(--sio-btn-border);
|
|
80
|
+
padding: 2px 15px;
|
|
81
|
+
border-radius: 3px;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
min-height: 22px;
|
|
84
|
+
transition: all 0.3s ease-in;
|
|
85
|
+
text-decoration: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:where(.btn--link) {
|
|
89
|
+
display: inline;
|
|
90
|
+
font-weight: unset;
|
|
91
|
+
user-select: none;
|
|
92
|
+
text-align: left;
|
|
93
|
+
padding: 0;
|
|
94
|
+
border-radius: unset;
|
|
95
|
+
min-height: unset;
|
|
96
|
+
transition: all 0.3s ease-in;
|
|
97
|
+
text-decoration: underline;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:where(.btn:hover),
|
|
101
|
+
:where(.btn:active),
|
|
102
|
+
:where(.btn:focus),
|
|
103
|
+
:where(.btn.btn--active) {
|
|
104
|
+
background: var(--sio-btn-bg-hover, var(--sio-btn-bg));
|
|
105
|
+
border-color: var(--sio-btn-border-hover, var(--sio-btn-border));
|
|
106
|
+
color: var(--sio-btn-text-hover, var(--sio-btn-text));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:where(.btn:disabled),
|
|
110
|
+
:where(.btn.btn--disabled) {
|
|
111
|
+
cursor: not-allowed;
|
|
112
|
+
background: var(--sio-btn-bg-disabled, var(--sio-btn-bg));
|
|
113
|
+
border-color: var(--sio-btn-border-disabled, var(--sio-btn-border));
|
|
114
|
+
color: var(--sio-btn-text-disabled, var(--sio-btn-text));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:where(.btn--primary.btn--success) {
|
|
118
|
+
--sio-btn-bg: var(--sio-color-success);
|
|
119
|
+
--sio-btn-border: var(--sio-color-success);
|
|
120
|
+
--sio-btn-text: var(--sio-color-white);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:where(.btn--secondary.btn--success) {
|
|
124
|
+
--sio-btn-bg: transparent;
|
|
125
|
+
--sio-btn-border: var(--sio-color-success);
|
|
126
|
+
--sio-btn-text: var(--sio-color-success);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:where(.btn--link.btn--success) {
|
|
130
|
+
--sio-btn-bg: transparent;
|
|
131
|
+
--sio-btn-border: transparent;
|
|
132
|
+
--sio-btn-text: var(--sio-color-success);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:where(.btn--primary.btn--error) {
|
|
136
|
+
--sio-btn-bg: var(--sio-color-error);
|
|
137
|
+
--sio-btn-border: var(--sio-color-error);
|
|
138
|
+
--sio-btn-text: var(--sio-color-white);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:where(.btn--secondary.btn--error) {
|
|
142
|
+
--sio-btn-bg: transparent;
|
|
143
|
+
--sio-btn-border: var(--sio-color-error);
|
|
144
|
+
--sio-btn-text: var(--sio-color-error);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:where(.btn--link.btn--error) {
|
|
148
|
+
--sio-btn-bg: transparent;
|
|
149
|
+
--sio-btn-border: transparent;
|
|
150
|
+
--sio-btn-text: var(--sio-color-error);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:where(.btn--primary.btn--warning) {
|
|
154
|
+
--sio-btn-bg: var(--sio-color-warning);
|
|
155
|
+
--sio-btn-border: var(--sio-color-warning);
|
|
156
|
+
--sio-btn-text: var(--sio-color-white);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:where(.btn--secondary.btn--warning) {
|
|
160
|
+
--sio-btn-bg: transparent;
|
|
161
|
+
--sio-btn-border: var(--sio-color-warning);
|
|
162
|
+
--sio-btn-text: var(--sio-color-warning);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:where(.btn--link.btn--warning) {
|
|
166
|
+
--sio-btn-bg: transparent;
|
|
167
|
+
--sio-btn-border: transparent;
|
|
168
|
+
--sio-btn-text: var(--sio-color-warning);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:where(.btn--primary.btn--info) {
|
|
172
|
+
--sio-btn-bg: var(--sio-color-info);
|
|
173
|
+
--sio-btn-border: var(--sio-color-info);
|
|
174
|
+
--sio-btn-text: var(--sio-color-white);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:where(.btn--secondary.btn--info) {
|
|
178
|
+
--sio-btn-bg: transparent;
|
|
179
|
+
--sio-btn-border: var(--sio-color-info);
|
|
180
|
+
--sio-btn-text: var(--sio-color-info);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:where(.btn--link.btn--info) {
|
|
184
|
+
--sio-btn-bg: transparent;
|
|
185
|
+
--sio-btn-border: transparent;
|
|
186
|
+
--sio-btn-text: var(--sio-color-info);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:where(.btn--block) {
|
|
190
|
+
display: block;
|
|
191
|
+
width: 100%;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:where(.btn--lg) {
|
|
195
|
+
padding: 5px 20px;
|
|
196
|
+
font-size: 1.1em;
|
|
197
|
+
min-height: 34px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:where(.btn--sm) {
|
|
201
|
+
padding: 2.5px 5px;
|
|
202
|
+
font-size: 0.7em;
|
|
203
|
+
min-height: 23px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:where(.btn--loading) {
|
|
207
|
+
position: relative;
|
|
208
|
+
cursor: wait !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:where(.btn__spinner) {
|
|
212
|
+
display: flex;
|
|
213
|
+
animation: spin 1s infinite linear;
|
|
214
|
+
margin-right: 8px;
|
|
215
|
+
width: 20px;
|
|
216
|
+
height: 20px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:where(.btn__spinner svg) {
|
|
220
|
+
display: block;
|
|
221
|
+
width: 100%;
|
|
222
|
+
height: 100%;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:where(.btn__spinner circle) {
|
|
226
|
+
fill: none;
|
|
227
|
+
stroke: currentColor;
|
|
228
|
+
stroke-width: 2;
|
|
229
|
+
stroke-dasharray: 30 100;
|
|
230
|
+
stroke-linecap: round;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
:where(.btn__loading-text) {
|
|
234
|
+
position: absolute;
|
|
235
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:where(.btn-group) {
|
|
239
|
+
display: flex;
|
|
240
|
+
flex-wrap: wrap;
|
|
241
|
+
gap: 5px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/*# sourceMappingURL=button.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/utilities/_mixins.scss","../../../src/assets/scss/tokens/_colors.scss","../../../src/assets/scss/components/button.scss"],"names":[],"mappings":"AAEA;EACE;IAAO;;EACP;IAAK;;;ACcP;EACE;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;;;AC5CF;EACE;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAAA;AAAA;AAAA;EAIE;EACA;EACA;;;AAGF;AAAA;EAEE;EAEA;EACA;EACA;;;AAIA;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAbF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAbF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAbF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA","file":"button.css"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
:where(.form-field__checkbox label) {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding-left: 32px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:where(.form-field__checkbox label > div) {
|
|
7
|
+
display: inline;
|
|
8
|
+
color: var(--sio-color-black);
|
|
9
|
+
font-weight: normal;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.form-field__checkbox label):before {
|
|
13
|
+
content: "";
|
|
14
|
+
background-color: var(--sio-form-bg);
|
|
15
|
+
position: absolute;
|
|
16
|
+
border-radius: var(--sio-form-border-radius);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
border: 1px solid var(--sio-form-border);
|
|
19
|
+
width: 17px;
|
|
20
|
+
height: 17px;
|
|
21
|
+
left: 0;
|
|
22
|
+
top: -1px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(.form-field__checkbox label):after {
|
|
26
|
+
content: "";
|
|
27
|
+
position: absolute;
|
|
28
|
+
background-color: var(--sio-color-primary);
|
|
29
|
+
width: 13px;
|
|
30
|
+
height: 13px;
|
|
31
|
+
top: 2px;
|
|
32
|
+
left: 3px;
|
|
33
|
+
transform: scale(0);
|
|
34
|
+
border-radius: var(--sio-form-border-radius);
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
transition: all 0.4s;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:where(.form-field__checkbox input[type=checkbox]) {
|
|
40
|
+
display: none !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:where(.form-field__checkbox.form-field--has-value label):before {
|
|
44
|
+
border-color: var(--sio-color-primary);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(.form-field__checkbox.form-field--has-value label):after {
|
|
48
|
+
transform: scale(1);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:where(.form-field__checkbox.form-field--has-errors label):before {
|
|
52
|
+
border-color: var(--sio-color-error);
|
|
53
|
+
background: rgba(var(--sio-color-error-rgb), 0.06);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(.form-field__checkbox.form-field--has-errors.form-field--has-value label):after {
|
|
57
|
+
border-color: var(--sio-color-error);
|
|
58
|
+
background: var(--sio-color-error);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(.form-field__checkbox.form-field--disabled label) {
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where(.form-field__checkbox.form-field--disabled label):before,
|
|
66
|
+
:where(.form-field__checkbox.form-field--disabled label):after {
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where(.form-field__checkbox.form-field--disabled label):before {
|
|
71
|
+
border-color: var(--sio-color-light-gray);
|
|
72
|
+
background-color: color-mix(in srgb, var(--sio-color-light-gray) 75%, white);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:where(.form-field__checkbox.form-field--disabled label):after {
|
|
76
|
+
border-color: color-mix(in srgb, var(--sio-color-light-gray) 75%, black);
|
|
77
|
+
background-color: color-mix(in srgb, var(--sio-color-light-gray) 75%, black);
|
|
78
|
+
transform: scale(0);
|
|
79
|
+
transition: all 0.4s;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where(.form-field__checkbox.form-field--disabled.form-field--has-value label):before {
|
|
83
|
+
border-color: var(--sio-color-light-gray);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:where(.form-field__checkbox.form-field--disabled.form-field--has-value label):after {
|
|
87
|
+
transform: scale(1);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/*# sourceMappingURL=checkbox.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/checkbox.scss"],"names":[],"mappings":"AAAA;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAIF;EACE;;;AAGF;AAAA;EAEE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EAEA;EACA;;;AAGF;EACE;;;AAGF;EACE","file":"checkbox.css"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
:where(.form-field__color .form-field__control) {
|
|
2
|
+
max-width: 50px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:where(.form-field__color input) {
|
|
6
|
+
padding: 0;
|
|
7
|
+
border-radius: var(--sio-form-border-radius);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.form-field__color input[type=color i]) {
|
|
11
|
+
inline-size: 50px;
|
|
12
|
+
block-size: 25.5px;
|
|
13
|
+
padding: 0;
|
|
14
|
+
border: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where(.form-field__color input[type=color])::-webkit-color-swatch-wrapper {
|
|
18
|
+
padding-block-end: 3px;
|
|
19
|
+
padding-block-start: 3px;
|
|
20
|
+
padding-inline-start: 3px;
|
|
21
|
+
padding-inline-end: 3px;
|
|
22
|
+
padding: 3px;
|
|
23
|
+
border: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(.form-field__color input[type=color])::-webkit-color-swatch {
|
|
27
|
+
border: none;
|
|
28
|
+
border-radius: 2px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/*# sourceMappingURL=color.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/color.scss"],"names":[],"mappings":"AAAA;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA","file":"color.css"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
:where(.form-field) {
|
|
2
|
+
position: relative;
|
|
3
|
+
margin: 5px 0 15px 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:where(.form-field label) {
|
|
7
|
+
color: var(--sio-form-label);
|
|
8
|
+
font-size: 0.9em;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.form-field label span) {
|
|
13
|
+
color: var(--sio-color-error);
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where(.form-field__description) {
|
|
18
|
+
color: var(--sio-color-gray);
|
|
19
|
+
font-weight: 200;
|
|
20
|
+
font-size: 0.9em;
|
|
21
|
+
margin-left: 10px;
|
|
22
|
+
white-space: pre-wrap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(.form-field__errors) {
|
|
26
|
+
list-style: none;
|
|
27
|
+
padding: 0;
|
|
28
|
+
margin: 5px 0 0;
|
|
29
|
+
color: var(--sio-color-error);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(.form-field__errors-item) {
|
|
33
|
+
font-size: 0.9em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/*# sourceMappingURL=form-field.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/form-field.scss"],"names":[],"mappings":"AAAA;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE","file":"form-field.css"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
:where(.form-field--has-value .form-field__control) {
|
|
2
|
+
color: var(--sio-color-black);
|
|
3
|
+
border-color: var(--sio-color-primary);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:where(.form-field--has-value .form-field__icon) {
|
|
7
|
+
color: var(--sio-color-primary);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.form-field--focused .form-field__control) {
|
|
11
|
+
color: var(--sio-color-black);
|
|
12
|
+
border-color: var(--sio-color-primary);
|
|
13
|
+
box-shadow: inset 2px 0 10px 0 rgba(var(--sio-color-primary-rgb), 0.3);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(.form-field--focused .form-field__icon) {
|
|
17
|
+
color: var(--sio-color-primary);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.form-field--disabled label) {
|
|
21
|
+
color: var(--sio-color-gray);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where(.form-field--disabled .form-field__control) {
|
|
25
|
+
color: var(--sio-color-light-gray);
|
|
26
|
+
border-color: var(--sio-color-light-gray);
|
|
27
|
+
background-color: color-mix(in srgb, var(--sio-color-light-gray) 20%, white);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(.form-field--disabled input),
|
|
31
|
+
:where(.form-field--disabled textarea) {
|
|
32
|
+
color: var(--sio-color-light-gray);
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(.form-field--disabled .form-field__icon) {
|
|
37
|
+
color: var(--sio-color-light-gray);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(.form-field--has-errors label) {
|
|
41
|
+
color: var(--sio-color-error);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where(.form-field--has-errors .form-field__control) {
|
|
45
|
+
background-color: color-mix(in srgb, var(--sio-color-error) 15%, white);
|
|
46
|
+
border-color: var(--sio-color-error);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where(.form-field--has-errors.form-field--focused .form-field__control) {
|
|
50
|
+
box-shadow: inset 2px 0 10px 0 rgba(var(--sio-color-error-rgb), 0.3);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(.form-field--has-errors input[type=range])::-webkit-slider-runnable-track {
|
|
54
|
+
background: var(--sio-color-error);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where(.form-field--has-errors .form-field__icon) {
|
|
58
|
+
color: var(--sio-color-error) !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(.form-field--hidden-layout .form-field__control) {
|
|
62
|
+
display: block;
|
|
63
|
+
width: 100%;
|
|
64
|
+
background: transparent;
|
|
65
|
+
border: none;
|
|
66
|
+
padding: 0;
|
|
67
|
+
box-shadow: unset;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where(.form-field--hidden-layout input),
|
|
71
|
+
:where(.form-field--hidden-layout textarea) {
|
|
72
|
+
color: unset;
|
|
73
|
+
width: unset;
|
|
74
|
+
padding: 0;
|
|
75
|
+
resize: unset;
|
|
76
|
+
display: unset;
|
|
77
|
+
border: unset;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/*# sourceMappingURL=form-states.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/form-states.scss"],"names":[],"mappings":"AAEA;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;EAEE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA","file":"form-states.css"}
|