@lucca-front/scss 20.3.0-rc.2 → 20.3.0-rc.3
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/commons/config.scss +1 -1
- package/src/components/_sample/index.scss +1 -1
- package/src/components/breadcrumbs/index.scss +1 -1
- package/src/components/button/index.scss +1 -1
- package/src/components/calendar/index.scss +1 -1
- package/src/components/calloutDisclosure/index.scss +1 -1
- package/src/components/card/component.scss +1 -0
- package/src/components/card/index.scss +4 -2
- package/src/components/card/mods.scss +31 -0
- package/src/components/checkbox/index.scss +1 -1
- package/src/components/checkboxField/index.scss +2 -2
- package/src/components/chip/index.scss +1 -1
- package/src/components/clear/index.scss +1 -1
- package/src/components/collapse/index.scss +1 -1
- package/src/components/dataTable/index.scss +2 -2
- package/src/components/dataTableSticked/index.scss +1 -1
- package/src/components/dropdown/component.scss +43 -17
- package/src/components/dropdown/index.scss +5 -4
- package/src/components/dropdown/mods.scss +4 -4
- package/src/components/dropdown/states.scss +4 -3
- package/src/components/dropdown/vars.scss +8 -6
- package/src/components/field/index.scss +5 -5
- package/src/components/fieldset/index.scss +1 -1
- package/src/components/file/index.scss +2 -2
- package/src/components/fileEntry/index.scss +1 -1
- package/src/components/fileUpload/index.scss +1 -1
- package/src/components/filterPill/index.scss +2 -2
- package/src/components/form/index.scss +5 -5
- package/src/components/form/mods.scss +1 -1
- package/src/components/formLabel/index.scss +1 -1
- package/src/components/gauge/index.scss +1 -1
- package/src/components/header/index.scss +1 -1
- package/src/components/horizontalNavigation/index.scss +1 -1
- package/src/components/indexTable/index.scss +1 -1
- package/src/components/inlineMessage/index.scss +1 -1
- package/src/components/inputFramed/index.scss +1 -1
- package/src/components/layout/index.scss +1 -1
- package/src/components/link/index.scss +1 -1
- package/src/components/listboxOption/index.scss +3 -3
- package/src/components/main/index.scss +1 -1
- package/src/components/multiSelect/index.scss +18 -4
- package/src/components/multiSelect/mods.scss +0 -8
- package/src/components/multiSelect/states.scss +8 -0
- package/src/components/navside/index.scss +4 -4
- package/src/components/numericBadge/index.scss +1 -1
- package/src/components/pagination/index.scss +1 -1
- package/src/components/popover/component.scss +0 -17
- package/src/components/progress/index.scss +1 -1
- package/src/components/radio/index.scss +1 -1
- package/src/components/radioButtons/index.scss +1 -1
- package/src/components/radioField/index.scss +1 -1
- package/src/components/readMore/index.scss +1 -1
- package/src/components/richText/index.scss +1 -1
- package/src/components/scrollBox/index.scss +1 -1
- package/src/components/segmentedControl/index.scss +3 -3
- package/src/components/simpleSelect/index.scss +2 -2
- package/src/components/skeleton/index.scss +1 -1
- package/src/components/switch/index.scss +1 -1
- package/src/components/switchField/index.scss +1 -1
- package/src/components/tableOfContent/index.scss +1 -1
- package/src/components/tableSortable/index.scss +1 -1
- package/src/components/tag/index.scss +1 -1
- package/src/components/textField/index.scss +1 -1
- package/src/components/textfields/index.scss +4 -4
- package/src/components/timeline/index.scss +1 -1
- package/src/components/timepicker/index.scss +1 -1
- package/src/components/tooltip/index.scss +1 -1
- package/src/components/verticalNavigation/index.scss +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "20.3.0-rc.
|
|
3
|
+
"version": "20.3.0-rc.3",
|
|
4
4
|
"description": "A Sass framework for Lucca products.",
|
|
5
5
|
"main": "src/main.scss",
|
|
6
6
|
"scripts": {},
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"normalize.css": "^8.0.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@lucca-front/icons": "20.3.0-rc.
|
|
26
|
+
"@lucca-front/icons": "20.3.0-rc.3"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/src/commons/config.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '@lucca-front/scss/src/commons/function';
|
|
5
5
|
|
|
6
|
-
$layers: 'reset, base, components, mods,
|
|
6
|
+
$layers: 'reset, base, components, mods, product, utils' !default;
|
|
7
7
|
|
|
8
8
|
/* stylelint-disable-next-line layer-name-pattern */
|
|
9
9
|
@layer #{$layers};
|
|
@@ -59,3 +59,34 @@
|
|
|
59
59
|
@mixin nested {
|
|
60
60
|
--components-card-border-radius: var(--pr-t-border-radius-default);
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
@mixin expand {
|
|
64
|
+
border: 0;
|
|
65
|
+
background-color: transparent;
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
|
|
69
|
+
&::before {
|
|
70
|
+
content: '';
|
|
71
|
+
position: absolute;
|
|
72
|
+
inset: 0;
|
|
73
|
+
background-color: var(--pr-t-elevation-surface-raised);
|
|
74
|
+
border-radius: var(--components-card-border-radius);
|
|
75
|
+
box-shadow: var(--pr-t-elevation-shadow-raised);
|
|
76
|
+
transition-duration: var(--commons-animations-durations-fast);
|
|
77
|
+
transition-property: inset, box-shadow;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:hover {
|
|
81
|
+
box-shadow: none;
|
|
82
|
+
|
|
83
|
+
&::before {
|
|
84
|
+
inset: -2px -6px;
|
|
85
|
+
box-shadow: var(--pr-t-elevation-shadow-overlay);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.card-content {
|
|
90
|
+
z-index: 1;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@include checklist;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
@layer
|
|
20
|
+
@layer mods {
|
|
21
21
|
.checkboxField-input {
|
|
22
22
|
&:hover {
|
|
23
23
|
@include checklistHover;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.checkboxField-input {
|
|
65
|
-
@layer
|
|
65
|
+
@layer mods {
|
|
66
66
|
&[aria-checked='mixed'] {
|
|
67
67
|
@include checked;
|
|
68
68
|
@include mixed;
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.dataTable-body-row {
|
|
105
|
-
@layer
|
|
105
|
+
@layer mods {
|
|
106
106
|
&.is-collapsed {
|
|
107
107
|
@include collapsed;
|
|
108
108
|
}
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.dataTable-body-row-cell-expand-button {
|
|
121
|
-
@layer
|
|
121
|
+
@layer mods {
|
|
122
122
|
&[aria-expanded='true'] {
|
|
123
123
|
@include expanded;
|
|
124
124
|
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
@use '@lucca-front/scss/src/components/divider/exports' as divider;
|
|
5
5
|
|
|
6
6
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
7
|
-
margin: calc(var(--pr-t-spacings-100) * -1);
|
|
8
7
|
padding: 0 !important;
|
|
9
8
|
border-radius: var(--pr-t-border-radius-structure);
|
|
10
|
-
|
|
11
|
-
max-
|
|
9
|
+
min-inline-size: var(--components-dropdown-minInlineSize);
|
|
10
|
+
max-inline-size: var(--components-dropdown-maxInlineSize);
|
|
11
|
+
max-block-size: var(--components-dropdown-maxBlockSize);
|
|
12
12
|
overflow-x: hidden;
|
|
13
13
|
overflow-y: auto;
|
|
14
14
|
|
|
@@ -20,30 +20,49 @@
|
|
|
20
20
|
padding-block: var(--pr-t-spacings-50);
|
|
21
21
|
padding-inline: 0;
|
|
22
22
|
margin: 0;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: var(--pr-t-spacings-25);
|
|
26
|
+
|
|
27
|
+
.dropdown-list {
|
|
28
|
+
padding-block: 0;
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
// .lu-dropdown-options-item is deprecated
|
|
28
33
|
.dropdown-list-option,
|
|
29
34
|
.lu-dropdown-options-item {
|
|
30
35
|
padding-block: 0;
|
|
31
|
-
padding-inline: var(--pr-t-spacings-50);
|
|
32
36
|
|
|
33
|
-
&.mod-divider {
|
|
34
|
-
padding:
|
|
37
|
+
&:not(:has(.divider.dropdown-list-option-divider, .dropdown-list-option), &.mod-divider) {
|
|
38
|
+
padding-inline: var(--pr-t-spacings-50);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:has(> .dropdown-list) {
|
|
42
|
+
padding-block-start: var(--pr-t-spacings-100);
|
|
43
|
+
padding-inline: var(--pr-t-spacings-150);
|
|
44
|
+
color: var(--pr-t-color-text-subtle);
|
|
45
|
+
font: var(--pr-t-font-body-S);
|
|
46
|
+
font-weight: var(--pr-t-font-fontWeight-semibold);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
> .dropdown-list {
|
|
50
|
+
color: var(--pr-t-color-text);
|
|
51
|
+
font: var(--pr-t-font-body-M);
|
|
52
|
+
font-weight: var(--pr-t-font-fontWeight-regular);
|
|
53
|
+
margin-block-start: var(--pr-t-spacings-50);
|
|
54
|
+
margin-inline: calc(var(--pr-t-spacings-150) * -1);
|
|
35
55
|
}
|
|
36
56
|
}
|
|
37
57
|
|
|
38
58
|
// .lu-dropdown-options-item-action is deprecated
|
|
39
59
|
.dropdown-list-option-action,
|
|
40
60
|
.lu-dropdown-options-item-action {
|
|
41
|
-
align-items: flex-start;
|
|
42
61
|
border: 0;
|
|
43
62
|
border-radius: var(--pr-t-border-radius-default);
|
|
44
|
-
color: var(--components-dropdown-
|
|
45
|
-
background-color: var(--components-dropdown-option-actionBackground);
|
|
63
|
+
background-color: var(--components-dropdown-list-option-action-backgroundColor);
|
|
46
64
|
display: flex;
|
|
65
|
+
align-items: flex-start;
|
|
47
66
|
gap: var(--pr-t-spacings-100);
|
|
48
67
|
line-height: var(--pr-t-font-body-M-lineHeight);
|
|
49
68
|
padding: var(--pr-t-spacings-50) var(--pr-t-spacings-100);
|
|
@@ -51,32 +70,39 @@
|
|
|
51
70
|
transition: background-color var(--commons-animations-durations-fast);
|
|
52
71
|
text-decoration: none;
|
|
53
72
|
inline-size: 100%;
|
|
54
|
-
pointer-events: var(--components-dropdown-option-
|
|
73
|
+
pointer-events: var(--components-dropdown-list-option-action-pointerEvents);
|
|
55
74
|
cursor: pointer;
|
|
56
75
|
|
|
57
76
|
.lucca-icon {
|
|
58
77
|
@include icon.S;
|
|
59
78
|
|
|
60
|
-
margin-block
|
|
79
|
+
margin-block: var(--pr-t-spacings-25);
|
|
61
80
|
}
|
|
62
81
|
|
|
63
82
|
&,
|
|
64
83
|
&:hover {
|
|
65
|
-
color: var(--components-dropdown-option-
|
|
84
|
+
color: var(--components-dropdown-list-option-action-color);
|
|
66
85
|
}
|
|
67
86
|
|
|
68
87
|
&:hover,
|
|
69
88
|
&:focus-visible {
|
|
70
|
-
--components-dropdown-option-
|
|
89
|
+
--components-dropdown-list-option-action-backgroundColor: var(--palettes-neutral-50);
|
|
71
90
|
}
|
|
72
91
|
|
|
73
92
|
&:active {
|
|
74
|
-
--components-dropdown-option-
|
|
93
|
+
--components-dropdown-list-option-action-backgroundColor: var(--palettes-neutral-100);
|
|
75
94
|
}
|
|
76
95
|
|
|
77
96
|
&:focus-visible {
|
|
78
|
-
@include a11y.focusVisible;
|
|
97
|
+
@include a11y.focusVisible($offset: 0);
|
|
98
|
+
|
|
99
|
+
z-index: 1;
|
|
100
|
+
position: relative;
|
|
79
101
|
}
|
|
80
102
|
}
|
|
103
|
+
|
|
104
|
+
.divider.dropdown-list-option-divider {
|
|
105
|
+
--components-divider-marginBlock: var(--pr-t-spacings-25);
|
|
106
|
+
}
|
|
81
107
|
}
|
|
82
108
|
}
|
|
@@ -9,16 +9,17 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
// .lu-dropdown-options-item-action is deprecated
|
|
12
13
|
.dropdown-list-option-action,
|
|
13
14
|
.lu-dropdown-options-item-action {
|
|
14
|
-
@layer
|
|
15
|
+
@layer mods {
|
|
16
|
+
&[disabled],
|
|
15
17
|
&.is-disabled {
|
|
16
18
|
@include disabled;
|
|
17
19
|
}
|
|
18
|
-
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
&.mod-
|
|
21
|
+
&.mod-critical,
|
|
22
|
+
&.mod-delete {
|
|
22
23
|
@include critical;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@mixin critical {
|
|
2
|
-
--components-dropdown-option-actionColor: var(--pr-t-color-text-critical);
|
|
3
|
-
|
|
4
2
|
&:hover,
|
|
5
3
|
&:focus-visible {
|
|
6
|
-
--components-dropdown-option-
|
|
4
|
+
--components-dropdown-list-option-action-backgroundColor: var(--palettes-error-50);
|
|
5
|
+
--components-dropdown-list-option-action-color: var(--pr-t-color-text-critical);
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
&:active {
|
|
10
|
-
--components-dropdown-option-
|
|
9
|
+
--components-dropdown-list-option-action-color: var(--pr-t-color-text-critical);
|
|
10
|
+
--components-dropdown-list-option-action-backgroundColor: var(--palettes-error-100);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@mixin disabled {
|
|
2
|
-
--components-dropdown-option-
|
|
3
|
-
--components-dropdown-option-
|
|
2
|
+
--components-dropdown-list-option-action-color: var(--pr-t-color-text-disabled);
|
|
3
|
+
--components-dropdown-list-option-action-backgroundColor: transparent;
|
|
4
|
+
--components-dropdown-list-option-action-pointerEvents: none;
|
|
4
5
|
|
|
5
6
|
&,
|
|
6
7
|
&:hover {
|
|
7
|
-
--components-dropdown-option-
|
|
8
|
+
--components-dropdown-list-option-action-backgroundColor: var(--palettes-neutral-0);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
@mixin vars {
|
|
2
|
-
--components-dropdown-
|
|
3
|
-
|
|
4
|
-
--components-dropdown-
|
|
5
|
-
--components-dropdown-
|
|
6
|
-
|
|
7
|
-
--components-dropdown-option-
|
|
2
|
+
--components-dropdown-minInlineSize: 10rem;
|
|
3
|
+
|
|
4
|
+
--components-dropdown-maxInlineSize: 30rem;
|
|
5
|
+
--components-dropdown-maxBlockSize: min(60vh, 30rem);
|
|
6
|
+
|
|
7
|
+
--components-dropdown-list-option-action-color: currentColor;
|
|
8
|
+
--components-dropdown-list-option-action-backgroundColor: transparent;
|
|
9
|
+
--components-dropdown-list-option-action-pointerEvents: auto;
|
|
8
10
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
@layer
|
|
13
|
+
@layer mods {
|
|
14
14
|
.is-error {
|
|
15
15
|
@include fieldFramedState('error');
|
|
16
16
|
@include fieldFramedError('textfield');
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
@layer
|
|
50
|
+
@layer mods {
|
|
51
51
|
&:is(.is-required, .required) {
|
|
52
52
|
@include required;
|
|
53
53
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
@layer
|
|
88
|
+
@layer mods {
|
|
89
89
|
&.mod-framed {
|
|
90
90
|
&.is-error {
|
|
91
91
|
@include fieldFramedState('error');
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
.textfield-input,
|
|
109
109
|
.radiosfield-input,
|
|
110
110
|
.checkboxesfield-input {
|
|
111
|
-
@layer
|
|
111
|
+
@layer mods {
|
|
112
112
|
&:is([disabled], [readonly]) {
|
|
113
113
|
@include inputDisabled;
|
|
114
114
|
}
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
.textfield-input,
|
|
138
138
|
.radiosfield-input,
|
|
139
139
|
.checkboxesfield-input {
|
|
140
|
-
@layer
|
|
140
|
+
@layer mods {
|
|
141
141
|
&:is([required]),
|
|
142
142
|
&:is([aria-required='true']) {
|
|
143
143
|
@include required;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
@layer
|
|
19
|
+
@layer mods {
|
|
20
20
|
&:is(.is-droppable, .droppable) {
|
|
21
21
|
@include legacyDroppable;
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.file-input {
|
|
31
|
-
@layer
|
|
31
|
+
@layer mods {
|
|
32
32
|
&:is(:disabled) {
|
|
33
33
|
@include disabled;
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@include component;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
@layer
|
|
9
|
+
@layer mods {
|
|
10
10
|
&:not(.is-filled) {
|
|
11
11
|
@include notFilled;
|
|
12
12
|
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
@layer
|
|
82
|
+
@layer mods {
|
|
83
83
|
&:has(.filterPill-combobox:disabled) {
|
|
84
84
|
@include disabled;
|
|
85
85
|
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@layer
|
|
43
|
+
@layer mods {
|
|
44
44
|
&:has(.radioField-input[aria-invalid='true']),
|
|
45
45
|
&:has(.checkboxField-input[aria-invalid='true']) {
|
|
46
46
|
@include legendInvalid;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
@layer
|
|
75
|
+
@layer mods {
|
|
76
76
|
&:not(lu-form-field) {
|
|
77
77
|
&:has(
|
|
78
78
|
.textField-input-value[aria-invalid='true'],
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
.radiosfield-label,
|
|
153
153
|
.checkboxesfield-label,
|
|
154
154
|
.textfield-label {
|
|
155
|
-
@layer
|
|
155
|
+
@layer mods {
|
|
156
156
|
&:is(.is-required, .required) {
|
|
157
157
|
@include required;
|
|
158
158
|
}
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.form-group-label {
|
|
180
|
-
@layer
|
|
180
|
+
@layer mods {
|
|
181
181
|
&.is-required {
|
|
182
182
|
&:not(:empty) {
|
|
183
183
|
&::after {
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
.radiosfield-label,
|
|
192
192
|
.checkboxesfield-label,
|
|
193
193
|
.textfield-label {
|
|
194
|
-
@layer
|
|
194
|
+
@layer mods {
|
|
195
195
|
&.is-required {
|
|
196
196
|
&:not(:empty) {
|
|
197
197
|
&::after {
|