@lucca-front/scss 16.2.7-rc.2 → 16.3.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/dist/lucca-front.min.css +1 -1
- package/package.json +2 -2
- package/src/components/button/index.scss +1 -1
- package/src/components/button/mods.scss +6 -5
- package/src/components/button/states.scss +7 -3
- package/src/components/checkbox/mods.scss +1 -1
- package/src/components/checkboxField/component.scss +85 -0
- package/src/components/checkboxField/index.scss +72 -0
- package/src/components/checkboxField/mods.scss +18 -0
- package/src/components/checkboxField/states.scss +167 -0
- package/src/components/checkboxField/vars.scss +8 -0
- package/src/components/chip/index.scss +0 -8
- package/src/components/chip/mods.scss +0 -20
- package/src/components/clear/index.scss +1 -1
- package/src/components/clear/mods.scss +1 -1
- package/src/components/footer/component.scss +36 -0
- package/src/components/footer/exports.scss +4 -0
- package/src/components/footer/index.scss +10 -0
- package/src/components/footer/mods.scss +4 -0
- package/src/components/footer/vars.scss +2 -0
- package/src/components/formLabel/component.scss +21 -0
- package/src/components/formLabel/exports.scss +4 -0
- package/src/components/formLabel/index.scss +18 -0
- package/src/components/formLabel/mods.scss +17 -0
- package/src/components/formLabel/states.scss +8 -0
- package/src/components/formLabel/vars.scss +7 -0
- package/src/components/index.scss +13 -2
- package/src/components/inlineMessage/component.scss +13 -0
- package/src/components/inlineMessage/exports.scss +4 -0
- package/src/components/inlineMessage/index.scss +22 -0
- package/src/components/inlineMessage/mods.scss +5 -0
- package/src/components/inlineMessage/states.scss +41 -0
- package/src/components/inlineMessage/vars.scss +7 -0
- package/src/components/list/component.scss +16 -6
- package/src/components/list/mods.scss +4 -5
- package/src/components/menu/component.scss +2 -2
- package/src/components/menu/mods.scss +1 -1
- package/src/components/menu/states.scss +12 -2
- package/src/components/mobileHeader/component.scss +30 -0
- package/src/components/mobileHeader/exports.scss +4 -0
- package/src/components/mobileHeader/index.scss +10 -0
- package/src/components/mobileHeader/mods.scss +23 -0
- package/src/components/mobileHeader/states.scss +0 -0
- package/src/components/mobileHeader/vars.scss +3 -0
- package/src/components/mobileNavigation/component.scss +56 -0
- package/src/components/mobileNavigation/exports.scss +4 -0
- package/src/components/mobileNavigation/index.scss +10 -0
- package/src/components/mobileNavigation/mods.scss +5 -0
- package/src/components/mobileNavigation/states.scss +0 -0
- package/src/components/mobileNavigation/vars.scss +2 -0
- package/src/components/navside/component.scss +6 -3
- package/src/components/navside/mods.scss +9 -1
- package/src/components/navside/states.scss +1 -1
- package/src/components/newBadge/component.scss +10 -0
- package/src/components/newBadge/exports.scss +4 -0
- package/src/components/newBadge/index.scss +6 -0
- package/src/components/newBadge/mods.scss +0 -0
- package/src/components/newBadge/states.scss +0 -0
- package/src/components/newBadge/vars.scss +2 -0
- package/src/components/numericBadge/component.scss +17 -0
- package/src/components/numericBadge/exports.scss +4 -0
- package/src/components/numericBadge/index.scss +14 -0
- package/src/components/numericBadge/mods.scss +13 -0
- package/src/components/numericBadge/states.scss +0 -0
- package/src/components/numericBadge/vars.scss +8 -0
- package/src/components/pagination/component.scss +1 -1
- package/src/components/radioButtons/component.scss +5 -0
- package/src/components/radioField/component.scss +98 -0
- package/src/components/radioField/exports.scss +4 -0
- package/src/components/radioField/index.scss +32 -0
- package/src/components/radioField/mods.scss +18 -0
- package/src/components/radioField/states.scss +122 -0
- package/src/components/radioField/vars.scss +7 -0
- package/src/components/switchField/component.scss +110 -0
- package/src/components/switchField/exports.scss +4 -0
- package/src/components/switchField/index.scss +32 -0
- package/src/components/switchField/mods.scss +18 -0
- package/src/components/switchField/states.scss +119 -0
- package/src/components/switchField/vars.scss +7 -0
- package/src/components/table/component.scss +4 -16
- package/src/components/table/mods.scss +9 -3
- package/src/components/table/vars.scss +1 -1
- package/src/components/textfield/component.scss +113 -61
- package/src/components/textfield/index.scss +10 -380
- package/src/components/textfield/mods.scss +61 -619
- package/src/components/textfield/states.scss +80 -228
- package/src/components/textfield/vars.scss +12 -39
- package/src/components/textfields/component.scss +77 -0
- package/src/components/textfields/exports.scss +4 -0
- package/src/components/textfields/index.scss +402 -0
- package/src/components/textfields/mods.scss +560 -0
- package/src/components/textfields/states.scss +224 -0
- package/src/components/textfields/vars.scss +41 -0
- package/src/components/title/component.scss +1 -1
- package/src/components/verticalNavigation/component.scss +42 -0
- package/src/components/verticalNavigation/exports.scss +4 -0
- package/src/components/verticalNavigation/index.scss +26 -0
- package/src/components/verticalNavigation/mods.scss +7 -0
- package/src/components/verticalNavigation/states.scss +28 -0
- package/src/components/verticalNavigation/vars.scss +4 -0
- package/src/components/sortableList/component.scss +0 -68
- package/src/components/sortableList/index.scss +0 -16
- package/src/components/sortableList/mods.scss +0 -19
- package/src/components/sortableList/vars.scss +0 -8
- /package/src/components/{sortableList → checkboxField}/exports.scss +0 -0
- /package/src/components/{sortableList → footer}/states.scss +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
@use '@lucca-front/icons/src/commons/utils/icon';
|
|
2
|
+
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
3
|
+
|
|
4
|
+
@mixin component($atRoot: 'without: rule') {
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-columns: auto 1fr;
|
|
7
|
+
grid-column-gap: var(--spacings-XS);
|
|
8
|
+
|
|
9
|
+
@at-root ($atRoot) {
|
|
10
|
+
|
|
11
|
+
.radioField-label {
|
|
12
|
+
display: contents;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.radioField-label-input {
|
|
16
|
+
width: var(--component-radioField-label-input-size);
|
|
17
|
+
height: var(--component-radioField-label-input-size);
|
|
18
|
+
border: 2px solid var(--palettes-grey-700);
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
position: relative;
|
|
21
|
+
top: .125rem;
|
|
22
|
+
color: var(--colors-white-color);
|
|
23
|
+
transition-property: color, border-color;
|
|
24
|
+
transition-duration: var(--commons-animations-durations-fast);
|
|
25
|
+
margin: var(--component-radioField-label-input-margin);
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
background-color: var(--colors-white-color);
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
|
|
32
|
+
@media (prefers-reduced-motion: reduce) {
|
|
33
|
+
transition-property: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&::after {
|
|
37
|
+
content: '';
|
|
38
|
+
position: absolute;
|
|
39
|
+
inset: -2px;
|
|
40
|
+
outline-offset: 2px;
|
|
41
|
+
border-radius: var(--component-radioField-label-input-borderRadius);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.radioField-label-input-icon {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
width: calc(100% - 4px);
|
|
50
|
+
height: calc(100% - 4px);
|
|
51
|
+
opacity: 0;
|
|
52
|
+
transform: scale(0);
|
|
53
|
+
transition-property: transform, background-color;
|
|
54
|
+
transition-duration: var(--commons-animations-durations-fast);
|
|
55
|
+
transition-timing-function: cubic-bezier(0.5, -0.5, 0.5, 0);
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
background-color: var(--palettes-primary-700);
|
|
58
|
+
|
|
59
|
+
@media (prefers-reduced-motion: reduce) {
|
|
60
|
+
transition-property: none;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.radioField-input {
|
|
65
|
+
@include a11y.mask;
|
|
66
|
+
|
|
67
|
+
&:focus-visible {
|
|
68
|
+
~ .radioField-label {
|
|
69
|
+
.radioField-label-input {
|
|
70
|
+
&::after {
|
|
71
|
+
@include a11y.focusVisible();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:hover {
|
|
78
|
+
~ .radioField-label {
|
|
79
|
+
.radioField-label-input {
|
|
80
|
+
border-color: var(--palettes-grey-600);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:active {
|
|
86
|
+
~ .radioField-label {
|
|
87
|
+
.radioField-label-input {
|
|
88
|
+
border-color: var(--palettes-grey-800);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.inlineMessage {
|
|
95
|
+
grid-column: 2;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use 'exports' as *;
|
|
2
|
+
|
|
3
|
+
.radioField {
|
|
4
|
+
@include vars;
|
|
5
|
+
@include component;
|
|
6
|
+
|
|
7
|
+
&.mod-S {
|
|
8
|
+
@include S;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.radioField-input {
|
|
13
|
+
&:checked {
|
|
14
|
+
@include checked;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:disabled {
|
|
18
|
+
@include disabled;
|
|
19
|
+
|
|
20
|
+
&:checked {
|
|
21
|
+
@include checkedDisabled;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[aria-invalid="true"] {
|
|
26
|
+
@include invalid;
|
|
27
|
+
|
|
28
|
+
&:checked {
|
|
29
|
+
@include checkedInvalid;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/components/formLabel/exports' as formLabel;
|
|
2
|
+
@use '@lucca-front/scss/src/components/inlineMessage/exports' as inlineMessage;
|
|
3
|
+
|
|
4
|
+
@mixin S {
|
|
5
|
+
--component-radioField-label-input-size: 1rem;
|
|
6
|
+
--component-radioField-label-input-borderRadius: var(--commons-borderRadius-M);
|
|
7
|
+
--component-radioField-label-input-icon-fontSize: var(--sizes-XS-lineHeight);
|
|
8
|
+
--component-radioField-label-fontSize: var(--sizes-S-fontSize);
|
|
9
|
+
--component-radioField-label-lineHeight: var(--sizes-S-lineHeight);
|
|
10
|
+
|
|
11
|
+
.formLabel {
|
|
12
|
+
@include formLabel.S;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.inlineMessage {
|
|
16
|
+
@include inlineMessage.S;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/components/inlineMessage/exports' as inlineMessage;
|
|
2
|
+
@use '@lucca-front/scss/src/components/formLabel/exports' as formLabel;
|
|
3
|
+
|
|
4
|
+
@mixin checked {
|
|
5
|
+
~ .radioField-label {
|
|
6
|
+
.radioField-label-input {
|
|
7
|
+
border-color: var(--palettes-primary-700);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.radioField-label-input-icon {
|
|
11
|
+
transform: scale(1);
|
|
12
|
+
opacity: 1;
|
|
13
|
+
transition-timing-function: cubic-bezier(0.5, 1, 0.5, 1.5);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
~ .radioField-label {
|
|
19
|
+
.radioField-label-input {
|
|
20
|
+
border-color: var(--palettes-primary-600);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.radioField-label-input-icon {
|
|
24
|
+
background-color: var(--palettes-primary-600);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:active {
|
|
30
|
+
~ .radioField-label {
|
|
31
|
+
.radioField-label-input {
|
|
32
|
+
border-color: var(--palettes-primary-800);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.radioField-label-input-icon {
|
|
36
|
+
background-color: var(--palettes-primary-800);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@mixin disabled {
|
|
43
|
+
~ .radioField-label {
|
|
44
|
+
color: var(--palettes-grey-500);
|
|
45
|
+
|
|
46
|
+
.formLabel {
|
|
47
|
+
@include formLabel.disabled;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
~ .radioField-label {
|
|
52
|
+
.radioField-label-input {
|
|
53
|
+
border-color: var(--palettes-grey-500);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.radioField-label-input,
|
|
57
|
+
.formLabel {
|
|
58
|
+
cursor: default;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
~ .inlineMessage {
|
|
63
|
+
@include inlineMessage.disabled;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin checkedDisabled {
|
|
68
|
+
~ .radioField-label {
|
|
69
|
+
.radioField-label-input {
|
|
70
|
+
border-color: var(--palettes-grey-500);
|
|
71
|
+
color: var(--palettes-grey-500);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.radioField-label-input-icon {
|
|
75
|
+
background-color: var(--palettes-grey-500);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin invalid {
|
|
81
|
+
~ .radioField-label {
|
|
82
|
+
.radioField-label-input {
|
|
83
|
+
border-color: var(--palettes-error-700) !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.formLabel {
|
|
87
|
+
@include formLabel.error;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
~ .radioField-label {
|
|
93
|
+
.radioField-label-input {
|
|
94
|
+
border-color: var(--palettes-error-600);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.radioField-label-input-icon {
|
|
98
|
+
background-color: var(--palettes-error-600);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:active {
|
|
104
|
+
~ .radioField-label {
|
|
105
|
+
.radioField-label-input {
|
|
106
|
+
border-color: var(--palettes-error-800);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.radioField-label-input-icon {
|
|
110
|
+
background-color: var(--palettes-error-800);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@mixin checkedInvalid {
|
|
117
|
+
~ .radioField-label {
|
|
118
|
+
.radioField-label-input-icon {
|
|
119
|
+
background-color: var(--palettes-error-700);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@mixin vars {
|
|
2
|
+
--component-radioField-label-input-size: 1.25rem;
|
|
3
|
+
--component-radioField-label-input-borderRadius: 6px;
|
|
4
|
+
--component-radioField-label-input-icon-fontSize: var(--sizes-S-lineHeight);
|
|
5
|
+
--component-radioField-label-fontSize: var(--sizes-M-fontSize);
|
|
6
|
+
--component-radioField-label-lineHeight: var(--sizes-M-lineHeight);
|
|
7
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/components/formLabel/exports' as formLabel;
|
|
2
|
+
@use '@lucca-front/icons/src/commons/utils/icon';
|
|
3
|
+
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
4
|
+
|
|
5
|
+
@mixin component($atRoot: 'without: rule') {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: auto 1fr;
|
|
8
|
+
grid-column-gap: var(--spacings-XS);
|
|
9
|
+
|
|
10
|
+
@at-root ($atRoot) {
|
|
11
|
+
.switchField-label {
|
|
12
|
+
display: contents;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.switchField-label-input {
|
|
16
|
+
width: var(--component-switchField-label-input-width);
|
|
17
|
+
height: var(--component-switchField-label-input-height);
|
|
18
|
+
border: 2px solid var(--palettes-grey-500);
|
|
19
|
+
border-radius: var(--component-switchField-label-input-height);
|
|
20
|
+
position: relative;
|
|
21
|
+
top: .125rem;
|
|
22
|
+
color: var(--colors-white-color);
|
|
23
|
+
transition-property: color, border-color, background-color;
|
|
24
|
+
transition-duration: var(--commons-animations-durations-fast);
|
|
25
|
+
background-color: var(--palettes-grey-500);
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
|
|
28
|
+
@media (prefers-reduced-motion: reduce) {
|
|
29
|
+
transition-property: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&::after {
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
inset: -2px;
|
|
36
|
+
outline-offset: 2px;
|
|
37
|
+
border-radius: var(--component-switchField-label-input-height);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&::before {
|
|
41
|
+
content: '';
|
|
42
|
+
position: absolute;
|
|
43
|
+
width: 50%;
|
|
44
|
+
aspect-ratio: 1;
|
|
45
|
+
background-color: var(--colors-white-color);
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
left: 0;
|
|
48
|
+
top: 0;
|
|
49
|
+
transition-property: left;
|
|
50
|
+
transition-duration: var(--commons-animations-durations-fast);
|
|
51
|
+
transition-timing-function: cubic-bezier(0.5, 1, 0.5, 1.5);
|
|
52
|
+
box-shadow: var(--commons-boxShadow-XS);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.switchField-label-input-icon {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
|
|
63
|
+
&::before {
|
|
64
|
+
@include icon.generate('confirm');
|
|
65
|
+
font-size: var(--component-switchField-label-input-icon-fontSize);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&::after {
|
|
69
|
+
@include icon.generate('cross');
|
|
70
|
+
font-size: var(--component-switchField-label-input-icon-fontSize);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.formLabel {
|
|
75
|
+
grid-column: 2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.switchField-input {
|
|
79
|
+
@include a11y.mask;
|
|
80
|
+
|
|
81
|
+
&:focus-visible {
|
|
82
|
+
~ .switchField-label {
|
|
83
|
+
.switchField-label-input {
|
|
84
|
+
&::after {
|
|
85
|
+
@include a11y.focusVisible();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
~ .switchField-label {
|
|
93
|
+
.switchField-label-input {
|
|
94
|
+
border-color: var(--palettes-grey-400);
|
|
95
|
+
background-color: var(--palettes-grey-400);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:active {
|
|
101
|
+
~ .switchField-label {
|
|
102
|
+
.switchField-label-input {
|
|
103
|
+
border-color: var(--palettes-grey-600);
|
|
104
|
+
background-color: var(--palettes-grey-600);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use 'exports' as *;
|
|
2
|
+
|
|
3
|
+
.switchField {
|
|
4
|
+
@include vars;
|
|
5
|
+
@include component;
|
|
6
|
+
|
|
7
|
+
&.mod-S {
|
|
8
|
+
@include S;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.switchField-input {
|
|
13
|
+
&:checked {
|
|
14
|
+
@include checked;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:disabled {
|
|
18
|
+
@include disabled;
|
|
19
|
+
|
|
20
|
+
&:checked {
|
|
21
|
+
@include checkedDisabled;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[aria-invalid="true"] {
|
|
26
|
+
@include invalid;
|
|
27
|
+
|
|
28
|
+
&:checked {
|
|
29
|
+
@include checkedInvalid;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/components/formLabel/exports' as formLabel;
|
|
2
|
+
@use '@lucca-front/scss/src/components/inlineMessage/exports' as inlineMessage;
|
|
3
|
+
|
|
4
|
+
@mixin S {
|
|
5
|
+
--component-switchField-label-input-height: 1rem;
|
|
6
|
+
--component-switchField-label-input-width: 1.75rem;
|
|
7
|
+
--component-switchField-label-input-icon-fontSize: .75rem;
|
|
8
|
+
--component-switchField-label-fontSize: var(--sizes-S-fontSize);
|
|
9
|
+
--component-switchField-label-lineHeight: var(--sizes-S-lineHeight);
|
|
10
|
+
|
|
11
|
+
.formLabel {
|
|
12
|
+
@include formLabel.S;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.inlineMessage {
|
|
16
|
+
@include inlineMessage.S;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/components/inlineMessage/exports' as inlineMessage;
|
|
2
|
+
@use '@lucca-front/scss/src/components/formLabel/exports' as formLabel;
|
|
3
|
+
|
|
4
|
+
@mixin checked {
|
|
5
|
+
~ .switchField-label {
|
|
6
|
+
.switchField-label-input {
|
|
7
|
+
background-color: var(--palettes-primary-700);
|
|
8
|
+
border-color: var(--palettes-primary-700);
|
|
9
|
+
|
|
10
|
+
&::before {
|
|
11
|
+
left: 50%;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
~ .switchField-label {
|
|
18
|
+
.switchField-label-input {
|
|
19
|
+
background-color: var(--palettes-primary-600);
|
|
20
|
+
border-color: var(--palettes-primary-600);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:active {
|
|
26
|
+
~ .switchField-label {
|
|
27
|
+
.switchField-label-input {
|
|
28
|
+
background-color: var(--palettes-primary-800);
|
|
29
|
+
border-color: var(--palettes-primary-800);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin disabled {
|
|
36
|
+
~ .switchField-label {
|
|
37
|
+
color: var(--palettes-grey-500);
|
|
38
|
+
|
|
39
|
+
.switchField-label-input {
|
|
40
|
+
background-color: var(--palettes-grey-100);
|
|
41
|
+
border-color: var(--palettes-grey-100);
|
|
42
|
+
color: var(--palettes-grey-500);
|
|
43
|
+
|
|
44
|
+
&::before {
|
|
45
|
+
background-color: var(--palettes-grey-500);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.switchField-label-input {
|
|
50
|
+
cursor: default;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.formLabel {
|
|
54
|
+
@include formLabel.disabled;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
~ .inlineMessage {
|
|
59
|
+
@include inlineMessage.disabled;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin checkedDisabled {
|
|
64
|
+
&:disabled {
|
|
65
|
+
~ .switchField-label {
|
|
66
|
+
.switchField-label-input {
|
|
67
|
+
background-color: var(--palettes-grey-100);
|
|
68
|
+
border-color: var(--palettes-grey-100);
|
|
69
|
+
color: var(--palettes-grey-500);
|
|
70
|
+
|
|
71
|
+
&::before {
|
|
72
|
+
background-color: var(--palettes-grey-500);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@mixin invalid {
|
|
80
|
+
~ .switchField-label {
|
|
81
|
+
.switchField-label-input {
|
|
82
|
+
background-color: var(--palettes-error-700);
|
|
83
|
+
border-color: var(--palettes-error-700);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.formLabel {
|
|
87
|
+
@include formLabel.error;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
~ .switchField-label {
|
|
93
|
+
.switchField-label-input {
|
|
94
|
+
background-color: var(--palettes-error-600);
|
|
95
|
+
border-color: var(--palettes-error-600);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:active {
|
|
101
|
+
~ .switchField-label {
|
|
102
|
+
.switchField-label-input {
|
|
103
|
+
background-color: var(--palettes-error-800);
|
|
104
|
+
border-color: var(--palettes-error-800);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@mixin checkedInvalid {
|
|
111
|
+
&:checked {
|
|
112
|
+
~ .switchField-label {
|
|
113
|
+
.switchField-label-input {
|
|
114
|
+
background-color: var(--palettes-error-700);
|
|
115
|
+
border-color: var(--palettes-error-700);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@mixin vars {
|
|
2
|
+
--component-switchField-label-input-height: 1.25rem;
|
|
3
|
+
--component-switchField-label-input-width: 2.25rem;
|
|
4
|
+
--component-switchField-label-input-icon-fontSize: var(--sizes-XS-lineHeight);
|
|
5
|
+
--component-switchField-label-fontSize: var(--sizes-M-fontSize);
|
|
6
|
+
--component-switchField-label-lineHeight: var(--sizes-M-lineHeight);
|
|
7
|
+
}
|
|
@@ -28,9 +28,8 @@
|
|
|
28
28
|
font-size: var(--sizes-S-fontSize);
|
|
29
29
|
line-height: var(--sizes-S-lineHeight);
|
|
30
30
|
padding: var(--components-table-padding);
|
|
31
|
-
border-bottom
|
|
32
|
-
border-
|
|
33
|
-
border-bottom-style: solid;
|
|
31
|
+
border-bottom: var(--commons-divider-width) solid var(--commons-divider-color);
|
|
32
|
+
border-top: var(--commons-divider-width) solid var(--commons-divider-color);
|
|
34
33
|
display: table-cell;
|
|
35
34
|
text-align: left;
|
|
36
35
|
font-weight: 600;
|
|
@@ -45,19 +44,10 @@
|
|
|
45
44
|
background-color: var(--colors-white-color);
|
|
46
45
|
display: table-row;
|
|
47
46
|
|
|
48
|
-
&:first-child {
|
|
49
|
-
.table-body-row-cell,
|
|
50
|
-
.table-foot-row-cell {
|
|
51
|
-
border-top: none;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
47
|
&:last-child {
|
|
56
48
|
.table-body-row-cell,
|
|
57
49
|
.table-foot-row-cell {
|
|
58
|
-
border-bottom
|
|
59
|
-
border-bottom-color: var(--commons-divider-color);
|
|
60
|
-
border-bottom-style: solid;
|
|
50
|
+
border-bottom: var(--commons-divider-width) solid var(--commons-divider-color);
|
|
61
51
|
}
|
|
62
52
|
}
|
|
63
53
|
}
|
|
@@ -65,9 +55,7 @@
|
|
|
65
55
|
.table-body-row-cell,
|
|
66
56
|
.table-foot-row-cell {
|
|
67
57
|
padding: var(--components-table-padding);
|
|
68
|
-
border-
|
|
69
|
-
border-top-color: var(--commons-divider-color);
|
|
70
|
-
border-top-style: solid;
|
|
58
|
+
border-bottom: var(--commons-divider-width) solid var(--commons-divider-color);
|
|
71
59
|
display: table-cell;
|
|
72
60
|
vertical-align: middle;
|
|
73
61
|
}
|
|
@@ -53,11 +53,17 @@
|
|
|
53
53
|
@mixin card {
|
|
54
54
|
border-top: 0;
|
|
55
55
|
|
|
56
|
+
.table-head-row-cell {
|
|
57
|
+
border-top: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
56
60
|
.table-body, .table-foot {
|
|
57
61
|
&:last-child {
|
|
58
|
-
.table-body-row-
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
.table-body-row:last-child {
|
|
63
|
+
.table-body-row-cell,
|
|
64
|
+
.table-foot-row-cell {
|
|
65
|
+
border-bottom: none;
|
|
66
|
+
}
|
|
61
67
|
}
|
|
62
68
|
}
|
|
63
69
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
--components-table-font-size: var(--sizes-M-fontSize);
|
|
4
4
|
--components-table-line-height: var(--sizes-M-lineHeight);
|
|
5
5
|
--components-table-zebra-background: #f5f5f5;
|
|
6
|
-
--components-table-hover-background: var(--palettes-
|
|
6
|
+
--components-table-hover-background: var(--palettes-primary-50);
|
|
7
7
|
--components-table-card-padding: var(--spacings-M);
|
|
8
8
|
}
|