@lucca-front/scss 9.0.0-alpha.3 → 10.0.0-rc.1
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/package.json +1 -1
- package/src/commons/config.scss +4 -4
- package/src/components/divider/vars.scss +1 -1
- package/src/components/field/index.scss +26 -16
- package/src/components/field/mods.scss +30 -9
- package/src/components/form/component.scss +0 -4
- package/src/components/form/mods.scss +2 -0
- package/src/components/label/component.scss +2 -1
- package/src/components/label/mods.scss +1 -0
- package/src/components/radio/component.scss +1 -1
- package/src/components/textfield/index.scss +8 -0
- package/src/components/textfield/mods.scss +54 -0
- package/src/components/textfield/states.scss +9 -0
package/package.json
CHANGED
package/src/commons/config.scss
CHANGED
|
@@ -34,7 +34,7 @@ $grey: (
|
|
|
34
34
|
300: #becbe4,
|
|
35
35
|
400: #acbbd7,
|
|
36
36
|
500: #96a6c5,
|
|
37
|
-
600: #
|
|
37
|
+
600: #6C7C9D,
|
|
38
38
|
700: #445473,
|
|
39
39
|
800: #2a3551,
|
|
40
40
|
900: #131d35,
|
|
@@ -170,9 +170,9 @@ $boxShadows: (
|
|
|
170
170
|
|
|
171
171
|
$disabled: (
|
|
172
172
|
'opacity': 0.4,
|
|
173
|
-
'background':
|
|
174
|
-
'color':
|
|
175
|
-
'placeholder':
|
|
173
|
+
'background': 'var(--palettes-grey-100)',
|
|
174
|
+
'color': 'var(--palettes-grey-600)',
|
|
175
|
+
'placeholder': 'var(--palettes-grey-400)',
|
|
176
176
|
);
|
|
177
177
|
|
|
178
178
|
$animations: (
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
// @use '../../commons/config';
|
|
2
2
|
@use 'exports' as *;
|
|
3
3
|
|
|
4
|
+
.form.mod-framed {
|
|
5
|
+
.textfield,
|
|
6
|
+
.radiosfield,
|
|
7
|
+
.checkboxesfield {
|
|
8
|
+
@include framed;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
4
12
|
.textfield,
|
|
5
13
|
.radiosfield,
|
|
6
14
|
.checkboxesfield {
|
|
@@ -42,8 +50,8 @@
|
|
|
42
50
|
&.mod-framed {
|
|
43
51
|
@include framed;
|
|
44
52
|
|
|
45
|
-
|
|
46
|
-
@include
|
|
53
|
+
&.mod-search {
|
|
54
|
+
@include framedSearch;
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
&.is-error {
|
|
@@ -63,20 +71,22 @@
|
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
@at-root {
|
|
66
|
-
.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
.form.mod-framed {
|
|
75
|
+
.is-error {
|
|
76
|
+
@include fieldFramedState("error");
|
|
77
|
+
@include fieldFramedError("textfield");
|
|
78
|
+
@include fieldFramedError("radiosfield");
|
|
79
|
+
@include fieldFramedError("checkboxesfield");
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.is-warning {
|
|
83
|
+
@include fieldFramedState("warning");
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.is-valid,
|
|
87
|
+
.is-success {
|
|
88
|
+
@include fieldFramedState("success");
|
|
89
|
+
}
|
|
80
90
|
}
|
|
81
91
|
}
|
|
82
92
|
}
|
|
@@ -52,6 +52,17 @@
|
|
|
52
52
|
right: 0;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
.radiosfield-input,
|
|
57
|
+
.checkboxesfield-input {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-wrap: wrap;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.radio,
|
|
63
|
+
.checkbox {
|
|
64
|
+
margin-right: var(--spacings-standard);
|
|
65
|
+
}
|
|
55
66
|
}
|
|
56
67
|
|
|
57
68
|
@mixin compactBlock {
|
|
@@ -59,6 +70,8 @@
|
|
|
59
70
|
}
|
|
60
71
|
|
|
61
72
|
@mixin framed {
|
|
73
|
+
display: block;
|
|
74
|
+
|
|
62
75
|
fieldset {
|
|
63
76
|
border: 0;
|
|
64
77
|
padding: 0;
|
|
@@ -244,6 +257,23 @@
|
|
|
244
257
|
}
|
|
245
258
|
}
|
|
246
259
|
|
|
260
|
+
@mixin framedSearch {
|
|
261
|
+
&::after {
|
|
262
|
+
padding: var(--components-field-framed-side-padding);
|
|
263
|
+
bottom: 0;
|
|
264
|
+
right: 0;
|
|
265
|
+
z-index: 4;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.textfield {
|
|
269
|
+
width: 100%;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.textfield-input {
|
|
273
|
+
padding-right: var(--components-field-framed-suffix-padding-right);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
247
277
|
@mixin fieldFramedError($fieldname) {
|
|
248
278
|
@if ($fieldname == 'textfield') {
|
|
249
279
|
&:not(:disabled) {
|
|
@@ -288,15 +318,6 @@
|
|
|
288
318
|
}
|
|
289
319
|
}
|
|
290
320
|
|
|
291
|
-
@mixin framedLoading {
|
|
292
|
-
&::before,
|
|
293
|
-
&::after {
|
|
294
|
-
right: var(--components-field-framed-side-padding) !important;
|
|
295
|
-
top: var(--components-field-framed-side-padding) !important;
|
|
296
|
-
bottom: auto !important;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
321
|
@mixin inputRow {
|
|
301
322
|
@include field-row;
|
|
302
323
|
}
|
|
@@ -110,7 +110,9 @@
|
|
|
110
110
|
|
|
111
111
|
.radiosfield,
|
|
112
112
|
.checkboxesfield {
|
|
113
|
+
display: block;
|
|
113
114
|
margin-top: var(--components-field-framed-side-padding);
|
|
115
|
+
margin-bottom: 0;
|
|
114
116
|
padding: 0 var(--components-field-framed-side-padding) var(--components-field-framed-bottom-padding);
|
|
115
117
|
}
|
|
116
118
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
height: var(--components-radio-input-size);
|
|
65
65
|
width: var(--components-radio-input-size);
|
|
66
66
|
transition-duration: var(--commons-animations-durations-fast);
|
|
67
|
-
transition-property: color, transform;
|
|
67
|
+
transition-property: color, transform, border;
|
|
68
68
|
position: absolute;
|
|
69
69
|
border-radius: 50%;
|
|
70
70
|
left: 0;
|
|
@@ -305,6 +305,10 @@
|
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
+
&.mod-search {
|
|
309
|
+
@include framedSearch;
|
|
310
|
+
}
|
|
311
|
+
|
|
308
312
|
&:is(.is-error, .error) {
|
|
309
313
|
@include framedState('error');
|
|
310
314
|
|
|
@@ -337,6 +341,10 @@
|
|
|
337
341
|
}
|
|
338
342
|
}
|
|
339
343
|
|
|
344
|
+
&:is(.is-loading, .loading) {
|
|
345
|
+
@include framedLoading;
|
|
346
|
+
}
|
|
347
|
+
|
|
340
348
|
&:is(.is-warning, .warning) {
|
|
341
349
|
@include framedState('warning');
|
|
342
350
|
|
|
@@ -249,6 +249,10 @@
|
|
|
249
249
|
width: 100%;
|
|
250
250
|
margin-bottom: 0 !important;
|
|
251
251
|
|
|
252
|
+
.textfield.mod-search {
|
|
253
|
+
@include framedSearch;
|
|
254
|
+
}
|
|
255
|
+
|
|
252
256
|
.textfield-options {
|
|
253
257
|
width: auto;
|
|
254
258
|
margin-top: -2px;
|
|
@@ -283,6 +287,55 @@
|
|
|
283
287
|
z-index: 10;
|
|
284
288
|
line-height: 1.5rem;
|
|
285
289
|
}
|
|
290
|
+
|
|
291
|
+
.textfield-messages,
|
|
292
|
+
.radiosfield-messages,
|
|
293
|
+
.checkboxesfield-messages {
|
|
294
|
+
transition-duration: var(--commons-animations-durations-standard);
|
|
295
|
+
transition-property: transform;
|
|
296
|
+
position: absolute;
|
|
297
|
+
text-align: center;
|
|
298
|
+
bottom: 0;
|
|
299
|
+
left: -1px;
|
|
300
|
+
right: 0;
|
|
301
|
+
transform: translateY(0);
|
|
302
|
+
z-index: 4;
|
|
303
|
+
|
|
304
|
+
> * {
|
|
305
|
+
display: block;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.textfield-messages-error,
|
|
310
|
+
.radiosfield-messages-error,
|
|
311
|
+
.checkboxesfield-messages-error {
|
|
312
|
+
background-color: var(--palettes-error-700);
|
|
313
|
+
color: var(--colors-white-color);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.textfield-messages-warning,
|
|
317
|
+
.radiosfield-messages-warning,
|
|
318
|
+
.checkboxesfield-messages-warning {
|
|
319
|
+
background-color: var(--palettes-warning-700);
|
|
320
|
+
color: var(--colors-white-color);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.textfield-messages-valid,
|
|
324
|
+
.radiosfield-messages-valid,
|
|
325
|
+
.checkboxesfield-messages-valid,
|
|
326
|
+
.textfield-messages-success,
|
|
327
|
+
.radiosfield-messages-success,
|
|
328
|
+
.checkboxesfield-messages-success {
|
|
329
|
+
background-color: var(--palettes-success-700);
|
|
330
|
+
color: var(--colors-white-color);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.textfield-messages-helper,
|
|
334
|
+
.radiosfield-messages-helper,
|
|
335
|
+
.checkboxesfield-messages-helper {
|
|
336
|
+
background-color: var(--palettes-grey-500);
|
|
337
|
+
color: var(--colors-white-color);
|
|
338
|
+
}
|
|
286
339
|
}
|
|
287
340
|
|
|
288
341
|
@mixin framedMultiline {
|
|
@@ -318,6 +371,7 @@
|
|
|
318
371
|
|
|
319
372
|
@mixin material {
|
|
320
373
|
padding-top: var(--components-textfield-material-padding-top);
|
|
374
|
+
vertical-align: baseline;
|
|
321
375
|
|
|
322
376
|
.textfield-input {
|
|
323
377
|
box-shadow: 0 1px 0 0 var(--components-textfield-material-border-color);
|
|
@@ -108,6 +108,15 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
@mixin framedLoading {
|
|
112
|
+
&::before,
|
|
113
|
+
&::after {
|
|
114
|
+
right: var(--components-field-framed-side-padding) !important;
|
|
115
|
+
top: var(--components-field-framed-side-padding) !important;
|
|
116
|
+
bottom: auto !important;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
111
120
|
@mixin framedStateInputHover($state) {
|
|
112
121
|
background-color: var(--palettes-#{$state}-50) !important;
|
|
113
122
|
|