@itcase/forms 1.1.95 → 1.1.98
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/dist/css/styles/bundles.css +544 -0
- package/package.json +24 -20
- package/dist/css/form/Field/Checkbox/FormFieldCheckbox.css +0 -21
- package/dist/css/form/Field/Chips/FormFieldChips.css +0 -0
- package/dist/css/form/Field/Choice/FormFieldChoice.css +0 -10
- package/dist/css/form/Field/Code/FormFieldCode.css +0 -90
- package/dist/css/form/Field/Custom/FormFieldCustom.css +0 -13
- package/dist/css/form/Field/Dadata/FormFieldDadataInput.css +0 -7
- package/dist/css/form/Field/DatePicker/FormFieldDatePicker.css +0 -7
- package/dist/css/form/Field/FileInput/FormFieldFileInput.css +0 -7
- package/dist/css/form/Field/Group/FormGroup.css +0 -67
- package/dist/css/form/Field/Input/FormFieldInput.css +0 -21
- package/dist/css/form/Field/InputNumber/FormFieldInputNumber.css +0 -52
- package/dist/css/form/Field/MaskedInput/FormFieldMaskedInput.css +0 -37
- package/dist/css/form/Field/Password/FormFieldPassword.css +0 -7
- package/dist/css/form/Field/RadioGroup/FormFieldRadioGroup.css +0 -63
- package/dist/css/form/Field/Segmented/FormFieldSegmented.css +0 -7
- package/dist/css/form/Field/Select/FormFieldSelect.css +0 -25
- package/dist/css/form/Field/Switch/FormFieldSwitch.css +0 -35
- package/dist/css/form/Field/Textarea/FormFieldTextarea.css +0 -18
- package/dist/css/form/Form/Form.css +0 -174
- package/dist/css/form/Form/css/__button/form__button.css +0 -9
- package/dist/css/form/Form/css/__item/form__item.css +0 -11
- package/dist/css/form/Form/css/__item/form__item_type_float.css +0 -61
- package/dist/css/form/Form/css/__loader/form__loader.css +0 -10
- package/dist/css/form/Form/css/__text/form__text.css +0 -6
- package/dist/css/form/Form/css/form-notification/form-notification.css +0 -15
- package/dist/css/form/FormField/FormField.css +0 -178
- package/dist/css/styles/main.css +0 -134
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
input:autofill,
|
|
2
|
+
input:autofill:hover,
|
|
3
|
+
input:autofill:focus,
|
|
4
|
+
textarea:autofill,
|
|
5
|
+
textarea:autofill:hover,
|
|
6
|
+
textarea:autofill:focus,
|
|
7
|
+
select:autofill,
|
|
8
|
+
select:autofill:hover,
|
|
9
|
+
select:autofill:focus {
|
|
10
|
+
box-shadow: 0 0 0 1000px transparent inset;
|
|
11
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
*,
|
|
15
|
+
*::before,
|
|
16
|
+
*::after {
|
|
17
|
+
box-sizing: inherit;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
html,
|
|
21
|
+
body {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
-webkit-font-smoothing: antialiased;
|
|
25
|
+
-moz-osx-font-smoothing: grayscale;
|
|
26
|
+
padding: 0;
|
|
27
|
+
margin: 0;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.form-field {
|
|
32
|
+
&_type_custom {
|
|
33
|
+
width: 100%;
|
|
34
|
+
}
|
|
35
|
+
&_radio {
|
|
36
|
+
&.form-field_size {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
&_switch {
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
&__content {
|
|
43
|
+
width: 100%;
|
|
44
|
+
&-inner {
|
|
45
|
+
margin: 0 0 0 16px;
|
|
46
|
+
position: relative;
|
|
47
|
+
display: flex;
|
|
48
|
+
@mixin text-m;
|
|
49
|
+
& > input {
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
& .input-password {
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&__message {
|
|
58
|
+
padding: var(--form-field_type_float-message-padding);
|
|
59
|
+
padding: var(--form-field-type-ifta-message-padding, 0 0 0 16px);
|
|
60
|
+
&-item {
|
|
61
|
+
min-width: 240px;
|
|
62
|
+
display: block;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&__icon {
|
|
66
|
+
height: 100%;
|
|
67
|
+
position: absolute;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
top: 0;
|
|
71
|
+
right: 8px;
|
|
72
|
+
}
|
|
73
|
+
&_type {
|
|
74
|
+
&_classic {
|
|
75
|
+
padding: var(--form-field_type_classic-padding);
|
|
76
|
+
position: relative;
|
|
77
|
+
gap: var(--form-field_type_classic-gap);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
&_state {
|
|
81
|
+
}
|
|
82
|
+
&-checkbox {
|
|
83
|
+
&^&_type_classic {
|
|
84
|
+
padding: 0 0 8px 0;
|
|
85
|
+
display: grid;
|
|
86
|
+
grid-template-columns: auto 1fr;
|
|
87
|
+
^^&__label {
|
|
88
|
+
text-align: center;
|
|
89
|
+
padding: var(--form-field_type_classic-label-padding);
|
|
90
|
+
grid-area: 1 / 2;
|
|
91
|
+
}
|
|
92
|
+
^^&__content {
|
|
93
|
+
grid-area: 1 / 1;
|
|
94
|
+
justify-self: start;
|
|
95
|
+
}
|
|
96
|
+
^^&__message {
|
|
97
|
+
text-align: center;
|
|
98
|
+
padding: 4px 0 0 12px;
|
|
99
|
+
padding: var(--form-field_type_classic-message-padding);
|
|
100
|
+
grid-column: span 2;
|
|
101
|
+
grid-row: 2;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
&-code {
|
|
106
|
+
&^&_size {
|
|
107
|
+
&_xxl {
|
|
108
|
+
gap: var(--form-filed-code-size-xxl-gap);
|
|
109
|
+
& .form-radio {
|
|
110
|
+
gap: var(--form-filed-radio-size-xxs-gap);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
&_xl {
|
|
114
|
+
gap: var(--form-filed-code-size-xl-gap);
|
|
115
|
+
}
|
|
116
|
+
&_l {
|
|
117
|
+
gap: var(--form-filed-code-size-l-gap);
|
|
118
|
+
}
|
|
119
|
+
&_m {
|
|
120
|
+
gap: var(--form-filed-code-size-m-gap);
|
|
121
|
+
}
|
|
122
|
+
&_s {
|
|
123
|
+
gap: var(--form-filed-code-size-s-gap);
|
|
124
|
+
}
|
|
125
|
+
&_xs {
|
|
126
|
+
gap: var(--form-filed-code-size-xs-gap);
|
|
127
|
+
}
|
|
128
|
+
&_xxs {
|
|
129
|
+
gap: var(--form-filed-code-size-xxs-gap);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
&-switch {
|
|
134
|
+
width: 100%;
|
|
135
|
+
padding: 8px 0;
|
|
136
|
+
display: grid !important;
|
|
137
|
+
grid-template-columns: 1fr auto;
|
|
138
|
+
^&__label {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex: 1;
|
|
141
|
+
align-items: center;
|
|
142
|
+
}
|
|
143
|
+
^&__message {
|
|
144
|
+
grid-column: 1 / span 2;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.form-choice {
|
|
150
|
+
position: relative;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:root {
|
|
154
|
+
--choice-success-border: var(--color-success-border-primary);
|
|
155
|
+
--choice-success-border-hover: var(--color-surface-border-quaternary);
|
|
156
|
+
--choice-error-border: var(--color-error-border-primary);
|
|
157
|
+
--choice-focus-border: var(--color-surface-border-quaternary);
|
|
158
|
+
--form-filed-code-size-l-gap: 8px;
|
|
159
|
+
--custom-success-border: var(--color-success-border-primary);
|
|
160
|
+
--custom-success-border-hover: var(--color-surface-border-quaternary);
|
|
161
|
+
--custom-error-border: var(--color-error-border-primary);
|
|
162
|
+
--custom-focus-background: var(--color-surface-primary);
|
|
163
|
+
--custom-focus-border: var(--color-surface-border-quaternary);
|
|
164
|
+
--datepicker-success-border: var(--color-success-border-primary);
|
|
165
|
+
--datepicker-success-border-hover: var(--color-surface-border-quaternary);
|
|
166
|
+
--datepicker-error-border: var(--color-error-border-primary);
|
|
167
|
+
--datepicker-focus-background: var(--color-surface-primary);
|
|
168
|
+
--datepicker-focus-border: var(--color-surface-border-quaternary);
|
|
169
|
+
--fileinput-size-normal-padding: 16px 16px;
|
|
170
|
+
--fileinput-size-normal-shape-rounded: 6px;
|
|
171
|
+
--fileinput-transition: all 0.2s ease 0s;
|
|
172
|
+
--form-input-error-border: var(--color-error-border-primary);
|
|
173
|
+
--form-input-error-border-hover: var(--color-error-border-primary);
|
|
174
|
+
--form-input-error-label-color: var(--color-error-text-primary);
|
|
175
|
+
--form-input-error-helptext-color: var(--color-error-text-primary);
|
|
176
|
+
|
|
177
|
+
--form-input-success-border: var(--color-success-border-primary);
|
|
178
|
+
--form-input-success-border-hover: var(--color-surface-border-quaternary);
|
|
179
|
+
|
|
180
|
+
--form-input-require-border: var(--color-success-border-primary);
|
|
181
|
+
--form-input-require-border-hover: var(--color-surface-border-quaternary);
|
|
182
|
+
|
|
183
|
+
--form-input-disabled-fill: var(--color-disabled-primary);
|
|
184
|
+
--form-input-disabled-border: var(--color-disabled-border-primary);
|
|
185
|
+
--form-input-disabled-border-hover: var(--color-disabled-border-primary);
|
|
186
|
+
|
|
187
|
+
--form-input-focus-border: var(--color-surface-border-quaternary);
|
|
188
|
+
--form-input-focus-border-hover: var(--color-surface-border-quaternary);
|
|
189
|
+
--form-filed-radio-size-m-gap: 12px;
|
|
190
|
+
|
|
191
|
+
--form-radio-success-border: var(--color-success-border-primary);
|
|
192
|
+
--form-radio-success-border-hover: var(--color-surface-border-quaternary);
|
|
193
|
+
--form-radio-error-border: var(--color-error-border-primary);
|
|
194
|
+
--form-radio-focus-border: var(--color-surface-border-quaternary);
|
|
195
|
+
--segmented-error-text-color: var(--color-error-text-primary);
|
|
196
|
+
--segmented-required-text-color: var(--color-warning-text-primary);
|
|
197
|
+
--form-switch-error-border: var(--color-error-border-primary);
|
|
198
|
+
--form-switch-error-border-hover: var(--color-error-border-primary);
|
|
199
|
+
--form-switch-error-label-color: var(--color-error-text-primary);
|
|
200
|
+
--form-switch-error-helptext-color: var(--color-error-text-primary);
|
|
201
|
+
|
|
202
|
+
--form-switch-success-border: var(--color-success-border-primary);
|
|
203
|
+
--form-switch-success-border-hover: var(--color-surface-border-quaternary);
|
|
204
|
+
|
|
205
|
+
--form-switch-require-border: var(--color-success-border-primary);
|
|
206
|
+
--form-switch-require-border-hover: var(--color-surface-border-quaternary);
|
|
207
|
+
|
|
208
|
+
--form-switch-disabled-border: var(--color-success-border-primary);
|
|
209
|
+
--form-switch-disabled-border-hover: var(--color-surface-border-quaternary);
|
|
210
|
+
|
|
211
|
+
--form-switch-focus-border: var(--color-surface-border-quaternary);
|
|
212
|
+
--form-switch-focus-border-hover: var(--color-surface-border-quaternary);
|
|
213
|
+
--form-textarea-error-border: var(--color-error-border-primary);
|
|
214
|
+
--form-textarea-error-border-hover: var(--color-error-border-primary);
|
|
215
|
+
--form-textarea-error-label-color: var(--color-error-text-primary);
|
|
216
|
+
--form-textarea-error-helptext-color: var(--color-error-text-primary);
|
|
217
|
+
|
|
218
|
+
--form-textarea-success-border: var(--color-success-border-primary);
|
|
219
|
+
--form-textarea-success-border-hover: var(--color-surface-border-quaternary);
|
|
220
|
+
|
|
221
|
+
--form-textarea-require-border: var(--color-success-border-primary);
|
|
222
|
+
--form-textarea-require-border-hover: var(--color-surface-border-quaternary);
|
|
223
|
+
|
|
224
|
+
--form-textarea-disabled-border: var(--color-success-border-primary);
|
|
225
|
+
--form-textarea-disabled-border-hover: var(--color-surface-border-quaternary);
|
|
226
|
+
|
|
227
|
+
--form-textarea-focus-border: var(--color-surface-border-quaternary);
|
|
228
|
+
--form-textarea-focus-border-hover: var(--color-surface-border-quaternary);
|
|
229
|
+
--form-field_type_classic-padding: 8px 0;
|
|
230
|
+
--form-field_type_classic-gap: 4px;
|
|
231
|
+
--form-field_type_classic-label-padding: 4px;
|
|
232
|
+
--form-field_type_classic-message-padding: 4px 0 0 4px;
|
|
233
|
+
|
|
234
|
+
--form-field_type_float-padding: 12px 0;
|
|
235
|
+
--form-field_type_float-label-padding: 4px;
|
|
236
|
+
--form-field_type_float-message-padding: 4px 0 0 12px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.form-field_type_code {
|
|
240
|
+
&.form__item_state_error {
|
|
241
|
+
& .form-field__label {
|
|
242
|
+
& .text {
|
|
243
|
+
color: var(--form-code-focus-label-color);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
& .form-field__message-item_type-error {
|
|
247
|
+
color: var(--form-code-error-helptext-color);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
&.form__item_state_success {
|
|
251
|
+
& .form-field__message-item_type-success {
|
|
252
|
+
color: var(--form-code-success-helptext-color);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
&.form__item_state_require {
|
|
256
|
+
& .form-field__message-item_type-require {
|
|
257
|
+
color: var(--form-code-require-helptext-color);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
&.form__item_state_disabled {
|
|
261
|
+
& .form-field__message-item_type-disabled {
|
|
262
|
+
color: var(--form-code-disabled-helptext-color);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
&.form__item_state_focus {
|
|
266
|
+
& .form-field__message-item_type-focus {
|
|
267
|
+
color: var(--form-code-focus-helptext-color);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.form-field-file-input {
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.form {
|
|
276
|
+
min-width: 100%;
|
|
277
|
+
display: flex;
|
|
278
|
+
flex-direction: column;
|
|
279
|
+
&__group {
|
|
280
|
+
width: 100%;
|
|
281
|
+
padding: var(--form-group-padding, 0);
|
|
282
|
+
gap: 8px;
|
|
283
|
+
display: flex;
|
|
284
|
+
flex-direction: column;
|
|
285
|
+
&_hidden {
|
|
286
|
+
position: absolute;
|
|
287
|
+
display: none;
|
|
288
|
+
visibility: hidden;
|
|
289
|
+
z-index: -1;
|
|
290
|
+
}
|
|
291
|
+
&_type_row.&_hidden {
|
|
292
|
+
visibility: hidden;
|
|
293
|
+
}
|
|
294
|
+
&_column {
|
|
295
|
+
&_2 {
|
|
296
|
+
^^&-items {
|
|
297
|
+
display: grid;
|
|
298
|
+
gap: 0 24px;
|
|
299
|
+
grid-template-columns: repeat(5, 1fr);
|
|
300
|
+
align-items: end;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
&_3 {
|
|
304
|
+
}
|
|
305
|
+
&_4 {
|
|
306
|
+
}
|
|
307
|
+
&_5 {
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
&-wrapper {
|
|
311
|
+
position: relative;
|
|
312
|
+
display: flex;
|
|
313
|
+
flex-flow: column nowrap;
|
|
314
|
+
^&-message {
|
|
315
|
+
&_type_error {
|
|
316
|
+
color: var(--color-error-text-primary);
|
|
317
|
+
}
|
|
318
|
+
&_type_require {
|
|
319
|
+
color: var(--color-require-text-primary);
|
|
320
|
+
}
|
|
321
|
+
&_type_success {
|
|
322
|
+
color: var(--color-success-text-primary);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
&__button {
|
|
328
|
+
width: 100%;
|
|
329
|
+
z-index: 100;
|
|
330
|
+
}
|
|
331
|
+
&__loader {
|
|
332
|
+
width: 100%;
|
|
333
|
+
height: 100%;
|
|
334
|
+
position: absolute;
|
|
335
|
+
left: 0;
|
|
336
|
+
top: 0;
|
|
337
|
+
z-index: 100;
|
|
338
|
+
}
|
|
339
|
+
&__text {
|
|
340
|
+
width: 100%;
|
|
341
|
+
position: relative;
|
|
342
|
+
}
|
|
343
|
+
&_title-position {
|
|
344
|
+
}
|
|
345
|
+
&_type_bottom-button {
|
|
346
|
+
flex: 1;
|
|
347
|
+
justify-content: space-between;
|
|
348
|
+
}
|
|
349
|
+
&_type_sticky-button {
|
|
350
|
+
position: relative;
|
|
351
|
+
^&__button {
|
|
352
|
+
width: 100%;
|
|
353
|
+
position: fixed;
|
|
354
|
+
left: 0;
|
|
355
|
+
bottom: 0;
|
|
356
|
+
z-index: 100;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
&_button-position {
|
|
360
|
+
&_bottom {
|
|
361
|
+
flex: 1;
|
|
362
|
+
justify-content: space-between;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
&-masked-input {
|
|
366
|
+
position: relative;
|
|
367
|
+
}
|
|
368
|
+
&^&-field_type_float {
|
|
369
|
+
padding: var(--form-field_type_float-padding);
|
|
370
|
+
position: relative;
|
|
371
|
+
gap: var(--form-field_type_float-gap);
|
|
372
|
+
&^&__item_state_focus,
|
|
373
|
+
&^&__item_state_filled {
|
|
374
|
+
& .form {
|
|
375
|
+
&-field {
|
|
376
|
+
&__label {
|
|
377
|
+
background: var(--color-palette-white);
|
|
378
|
+
padding: var(--form-field_type_float-label-padding);
|
|
379
|
+
position: absolute;
|
|
380
|
+
display: flex;
|
|
381
|
+
left: 16px;
|
|
382
|
+
top: 0;
|
|
383
|
+
z-index: 2;
|
|
384
|
+
transform: scale(1.285) translate(8px, 4px);
|
|
385
|
+
transform: scale(1) translate(0, 100%);
|
|
386
|
+
transform: scale(0.9) translate(0, 50%);
|
|
387
|
+
transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
388
|
+
pointer-events: none;
|
|
389
|
+
transform-origin: top left;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
& .input {
|
|
394
|
+
background: var(
|
|
395
|
+
--input-disabled-background,
|
|
396
|
+
var(--color-disabled-primary)
|
|
397
|
+
);
|
|
398
|
+
background: var(--input-focus-background);
|
|
399
|
+
padding: var(--form-field_type_ifta-padding, 24px 0 12px 16px);
|
|
400
|
+
border: solid 1px var(--input-success-border, green);
|
|
401
|
+
border: solid 1px
|
|
402
|
+
var(--input-disabled-border, var(--color-disabled-border-primary));
|
|
403
|
+
border: solid 1px var(--input-focus-border);
|
|
404
|
+
&::placeholder {
|
|
405
|
+
color: var(--color-surface-text-secondary);
|
|
406
|
+
color: transparent;
|
|
407
|
+
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
408
|
+
opacity: 100%;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
& .textarea {
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
&^&-field_type_ifta {
|
|
416
|
+
margin: var(--form-field_type_ifta-margin);
|
|
417
|
+
position: relative;
|
|
418
|
+
gap: var(--form-field_type_ifta-gap);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.form-input {
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.form-input-number {
|
|
426
|
+
position: relative;
|
|
427
|
+
&&_state {
|
|
428
|
+
&_error {
|
|
429
|
+
}
|
|
430
|
+
&_success {
|
|
431
|
+
}
|
|
432
|
+
&_required {
|
|
433
|
+
}
|
|
434
|
+
&_disabled {
|
|
435
|
+
}
|
|
436
|
+
&_focus {
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.form-radio {
|
|
442
|
+
&_state_success {
|
|
443
|
+
& .radio__state {
|
|
444
|
+
border: solid 1px var(--form-radio-error-border);
|
|
445
|
+
}
|
|
446
|
+
& .select__control {
|
|
447
|
+
border: solid 1px var(--select-error-border);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
&_state_error {
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.form-segmented {
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.form-select {
|
|
458
|
+
position: relative;
|
|
459
|
+
&__wrapper {
|
|
460
|
+
min-width: 100%;
|
|
461
|
+
background: var(--select-background);
|
|
462
|
+
position: relative;
|
|
463
|
+
&:hover {
|
|
464
|
+
background: var(--select-background-hover);
|
|
465
|
+
background: var(
|
|
466
|
+
--input-disabled-background,
|
|
467
|
+
var(--color-disabled-primary)
|
|
468
|
+
);
|
|
469
|
+
border: solid 1px var(--input-success-border-hover);
|
|
470
|
+
border: solid 1px
|
|
471
|
+
var(--input-disabled-border, var(--color-disabled-border-primary));
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.form-notification {
|
|
477
|
+
&_sticky {
|
|
478
|
+
min-height: 100%;
|
|
479
|
+
position: sticky;
|
|
480
|
+
position: relative;
|
|
481
|
+
display: flex;
|
|
482
|
+
flex-direction: column;
|
|
483
|
+
left: 0;
|
|
484
|
+
top: 20px;
|
|
485
|
+
z-index: 100;
|
|
486
|
+
^^&__title {
|
|
487
|
+
position: sticky;
|
|
488
|
+
top: 24px;
|
|
489
|
+
z-index: 5;
|
|
490
|
+
}
|
|
491
|
+
^^&__wrapper {
|
|
492
|
+
overflow: auto;
|
|
493
|
+
flex: 1;
|
|
494
|
+
}
|
|
495
|
+
^^&__button {
|
|
496
|
+
width: 100%;
|
|
497
|
+
position: sticky;
|
|
498
|
+
bottom: 0;
|
|
499
|
+
z-index: 1;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
&_global {
|
|
503
|
+
margin: 0;
|
|
504
|
+
}
|
|
505
|
+
&__item {
|
|
506
|
+
text-align: center;
|
|
507
|
+
border-radius: 12px;
|
|
508
|
+
display: flex;
|
|
509
|
+
&_reset-fill {
|
|
510
|
+
& input,
|
|
511
|
+
& textarea {
|
|
512
|
+
background: none;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
&&_type_float {
|
|
516
|
+
position: relative;
|
|
517
|
+
&^&_state_focus,
|
|
518
|
+
&^&_state_filled {
|
|
519
|
+
& .form-input,
|
|
520
|
+
& .form-textarea {
|
|
521
|
+
&__input {
|
|
522
|
+
padding: 22px 16px 10px 16px;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
&-label {
|
|
528
|
+
color: var(--color-surface-text-secondary);
|
|
529
|
+
position: absolute;
|
|
530
|
+
display: flex;
|
|
531
|
+
top: 0;
|
|
532
|
+
top: 28px;
|
|
533
|
+
z-index: 2;
|
|
534
|
+
transform: scale(0.7) translate(6px, 14px);
|
|
535
|
+
transform: scale(1) translate(0, -50%);
|
|
536
|
+
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
537
|
+
pointer-events: none;
|
|
538
|
+
transform-origin: top left;
|
|
539
|
+
@media (--mobile) {
|
|
540
|
+
top: 26px;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/forms",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.98",
|
|
4
4
|
"description": "Forms fields, inputs, etc.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
"./dist/css/styles/*": "./dist/css/styles/*"
|
|
10
|
+
},
|
|
8
11
|
"main": "dist/itcase-forms.cjs.js",
|
|
9
12
|
"module": "dist/itcase-forms.esm.js",
|
|
10
13
|
"scripts": {
|
|
11
14
|
"build": "npm run build-js && npm run build-css",
|
|
12
15
|
"build-js": "rm -rf dist && NODE_ENV=production rollup -c",
|
|
13
|
-
"build-css": "rm -rf dist/css && postcss 'src/
|
|
16
|
+
"build-css": "rm -rf dist/css && postcss 'src/styles/bundles.css' --base src --dir dist/css/ --env production && npm run build-css-lint",
|
|
17
|
+
"build-css-lint": "stylelint --fix dist/css/styles/bundles.css",
|
|
14
18
|
"dev": "concurrently 'npm:dev-js' 'npm:dev-css'",
|
|
15
19
|
"dev-js": "rollup -c -w",
|
|
16
|
-
"dev-css": "postcss 'src/
|
|
20
|
+
"dev-css": "postcss 'src/styles/bundles.css' --base src --dir dist/css/ --env production -w --verbose",
|
|
17
21
|
"prepare": "husky",
|
|
18
22
|
"typecheck": "tsc --noEmit --pretty -p tsconfig.build.json",
|
|
19
23
|
"prepack": "npm run build",
|
|
@@ -37,20 +41,20 @@
|
|
|
37
41
|
},
|
|
38
42
|
"dependencies": {
|
|
39
43
|
"@itcase/common": "^1.2.45",
|
|
40
|
-
"@itcase/config": "^1.6.
|
|
44
|
+
"@itcase/config": "^1.6.59",
|
|
41
45
|
"@itcase/icons": "^1.2.29",
|
|
42
46
|
"@itcase/icons-default": "^1.2.35",
|
|
43
|
-
"@itcase/storybook-config": "^1.2.
|
|
47
|
+
"@itcase/storybook-config": "^1.2.75",
|
|
44
48
|
"@itcase/tokens-am": "^1.1.57",
|
|
45
49
|
"@itcase/tokens-baikal": "^1.1.54",
|
|
46
50
|
"@itcase/tokens-palette": "^1.1.50",
|
|
47
|
-
"@itcase/ui-core": "^1.10.
|
|
48
|
-
"@itcase/ui-web": "^1.10.
|
|
49
|
-
"axios": "^1.
|
|
51
|
+
"@itcase/ui-core": "^1.10.36",
|
|
52
|
+
"@itcase/ui-web": "^1.10.36",
|
|
53
|
+
"axios": "^1.17.0",
|
|
50
54
|
"clsx": "^2.1.1",
|
|
51
55
|
"final-form": "4.20.10",
|
|
52
56
|
"final-form-focus": "1.1.2",
|
|
53
|
-
"libphonenumber-js": "^1.13.
|
|
57
|
+
"libphonenumber-js": "^1.13.6",
|
|
54
58
|
"lodash": "^4.18.1",
|
|
55
59
|
"luxon": "^3.7.2",
|
|
56
60
|
"react": "^18.3.1",
|
|
@@ -63,16 +67,16 @@
|
|
|
63
67
|
"react-select": "^5.10.2"
|
|
64
68
|
},
|
|
65
69
|
"devDependencies": {
|
|
66
|
-
"@itcase/ui-core": "^1.10.
|
|
67
|
-
"@itcase/ui-web": "^1.10.
|
|
70
|
+
"@itcase/ui-core": "^1.10.36",
|
|
71
|
+
"@itcase/ui-web": "^1.10.36",
|
|
68
72
|
"@babel/core": "^7.29.7",
|
|
69
73
|
"@babel/preset-env": "^7.29.7",
|
|
70
74
|
"@babel/preset-react": "^7.29.7",
|
|
71
75
|
"@commitlint/cli": "^21.0.2",
|
|
72
76
|
"@commitlint/config-conventional": "^21.0.2",
|
|
73
|
-
"@itcase/lint": "^1.1.
|
|
77
|
+
"@itcase/lint": "^1.1.117",
|
|
74
78
|
"@itcase/types-core": "^1.1.74",
|
|
75
|
-
"@itcase/types-ui": "^1.1.
|
|
79
|
+
"@itcase/types-ui": "^1.1.82",
|
|
76
80
|
"@rollup/plugin-babel": "^7.1.0",
|
|
77
81
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
78
82
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -80,8 +84,8 @@
|
|
|
80
84
|
"@semantic-release/changelog": "^6.0.3",
|
|
81
85
|
"@semantic-release/git": "^10.0.1",
|
|
82
86
|
"@semantic-release/release-notes-generator": "14.1.1",
|
|
83
|
-
"@storybook/addon-vitest": "^10.4.
|
|
84
|
-
"@storybook/react-vite": "^10.4.
|
|
87
|
+
"@storybook/addon-vitest": "^10.4.4",
|
|
88
|
+
"@storybook/react-vite": "^10.4.4",
|
|
85
89
|
"@types/final-form-focus": "^1.1.7",
|
|
86
90
|
"@types/lodash": "^4.17.24",
|
|
87
91
|
"@types/react": "^18",
|
|
@@ -96,12 +100,12 @@
|
|
|
96
100
|
"lint-staged": "^17.0.7",
|
|
97
101
|
"playwright": "^1.60.0",
|
|
98
102
|
"postcss": "^8.5.15",
|
|
99
|
-
"prettier": "3.8.
|
|
100
|
-
"rollup": "^4.
|
|
103
|
+
"prettier": "3.8.4",
|
|
104
|
+
"rollup": "^4.62.0",
|
|
101
105
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
102
|
-
"semantic-release": "^25.0.
|
|
103
|
-
"storybook": "^10.4.
|
|
104
|
-
"stylelint": "^17.
|
|
106
|
+
"semantic-release": "^25.0.5",
|
|
107
|
+
"storybook": "^10.4.4",
|
|
108
|
+
"stylelint": "^17.13.0",
|
|
105
109
|
"typescript": "^6.0.3",
|
|
106
110
|
"vitest": "^4.1.8",
|
|
107
111
|
"yup": "^1.7.1"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.form-field {
|
|
2
|
-
&-checkbox {
|
|
3
|
-
&^&_type_classic {
|
|
4
|
-
padding: 0 0 8px 0;
|
|
5
|
-
display: grid;
|
|
6
|
-
grid-template-columns: auto 1fr;
|
|
7
|
-
^^&__label {
|
|
8
|
-
grid-area: 1 / 2;
|
|
9
|
-
}
|
|
10
|
-
^^&__content {
|
|
11
|
-
grid-area: 1 / 1;
|
|
12
|
-
justify-self: start;
|
|
13
|
-
}
|
|
14
|
-
^^&__message {
|
|
15
|
-
grid-column: span 2;
|
|
16
|
-
grid-row: 2;
|
|
17
|
-
padding: 4px 0 0 12px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
.form-choice {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
:root {
|
|
6
|
-
--choice-success-border: var(--color-success-border-primary);
|
|
7
|
-
--choice-success-border-hover: var(--color-surface-border-quaternary);
|
|
8
|
-
--choice-error-border: var(--color-error-border-primary);
|
|
9
|
-
--choice-focus-border: var(--color-surface-border-quaternary);
|
|
10
|
-
}
|