@lucca-front/scss 20.3.0-rc.1 → 20.3.0-rc.11
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/base.scss +4 -2
- package/src/commons/config.scss +8 -2
- package/src/commons/core.scss +1 -1
- package/src/commons/utils/color.scss +14 -0
- package/src/commons/utils/index.scss +2 -2
- package/src/commons/vars.scss +12 -12
- package/src/components/_sample/index.scss +0 -2
- package/src/components/avatar/component.scss +4 -3
- package/src/components/avatar/index.scss +4 -0
- package/src/components/avatar/mods.scss +18 -3
- package/src/components/avatar/vars.scss +4 -0
- package/src/components/box/component.scss +1 -1
- package/src/components/box/mods.scss +1 -0
- package/src/components/box/vars.scss +1 -0
- package/src/components/breadcrumbs/index.scss +1 -1
- package/src/components/breadcrumbs/states.scss +1 -1
- package/src/components/button/component.scss +0 -1
- package/src/components/button/index.scss +16 -3
- package/src/components/button/mods.scss +17 -2
- package/src/components/button/states.scss +41 -12
- package/src/components/button/vars.scss +1 -1
- package/src/components/calendar/component.scss +1 -1
- package/src/components/calendar/index.scss +1 -1
- package/src/components/callout/component.scss +14 -5
- package/src/components/callout/index.scss +9 -0
- package/src/components/callout/mods.scss +30 -2
- package/src/components/callout/vars.scss +5 -0
- package/src/components/calloutAccordion/component.scss +1 -1
- package/src/components/calloutDisclosure/component.scss +1 -1
- package/src/components/calloutDisclosure/index.scss +1 -3
- 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 +0 -2
- package/src/components/checkboxField/component.scss +1 -1
- package/src/components/checkboxField/index.scss +4 -8
- package/src/components/chip/index.scss +0 -2
- package/src/components/clear/index.scss +0 -2
- package/src/components/collapse/index.scss +1 -1
- package/src/components/dataTable/component.scss +4 -2
- package/src/components/dataTable/index.scss +25 -11
- package/src/components/dataTable/mods.scss +5 -6
- package/src/components/dataTable/states.scss +12 -0
- package/src/components/dataTableSticked/index.scss +0 -4
- package/src/components/dialog/component.scss +6 -6
- package/src/components/dialog/index.scss +4 -0
- package/src/components/dialog/mods.scss +4 -0
- 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 +8 -30
- package/src/components/fieldset/component.scss +1 -1
- package/src/components/fieldset/index.scss +0 -2
- package/src/components/file/component.scss +1 -1
- package/src/components/file/index.scss +2 -4
- package/src/components/file/states.scss +1 -1
- package/src/components/fileEntry/index.scss +0 -2
- package/src/components/fileUpload/component.scss +1 -1
- package/src/components/fileUpload/index.scss +0 -2
- package/src/components/filterPill/component.scss +1 -1
- package/src/components/filterPill/index.scss +1 -5
- package/src/components/footer/component.scss +0 -1
- package/src/components/form/component.scss +11 -1
- package/src/components/form/index.scss +18 -36
- package/src/components/form/mods.scss +1 -1
- package/src/components/formLabel/component.scss +1 -1
- package/src/components/formLabel/index.scss +0 -2
- package/src/components/gauge/component.scss +73 -14
- package/src/components/gauge/index.scss +19 -0
- package/src/components/gauge/mods.scss +21 -7
- package/src/components/gauge/states.scss +8 -0
- package/src/components/gauge/vars.scss +16 -1
- package/src/components/header/index.scss +0 -2
- package/src/components/horizontalNavigation/component.scss +1 -1
- package/src/components/horizontalNavigation/index.scss +1 -1
- package/src/components/index.scss +1 -0
- package/src/components/indexTable/component.scss +2 -2
- package/src/components/indexTable/index.scss +0 -2
- package/src/components/indexTable/mods.scss +1 -1
- package/src/components/inlineMessage/index.scss +0 -2
- package/src/components/inputFramed/component.scss +2 -1
- package/src/components/inputFramed/index.scss +5 -1
- package/src/components/inputFramed/mods.scss +3 -0
- package/src/components/inputFramed/vars.scss +1 -0
- package/src/components/label/component.scss +1 -1
- package/src/components/layout/index.scss +1 -1
- package/src/components/link/index.scss +2 -4
- package/src/components/listboxOption/index.scss +2 -6
- package/src/components/main/index.scss +1 -1
- package/src/components/mainLayout/index.scss +2 -2
- package/src/components/mobileNavigation/component.scss +1 -1
- package/src/components/multiSelect/component.scss +1 -1
- package/src/components/multiSelect/index.scss +14 -6
- package/src/components/multiSelect/mods.scss +0 -8
- package/src/components/multiSelect/states.scss +8 -0
- package/src/components/navside/component.scss +2 -2
- package/src/components/navside/index.scss +5 -17
- package/src/components/newBadge/component.scss +1 -1
- package/src/components/numericBadge/component.scss +1 -1
- package/src/components/numericBadge/index.scss +0 -2
- package/src/components/numericBadge/states.scss +5 -0
- package/src/components/pagination/index.scss +1 -1
- package/src/components/plgPush/component.scss +1 -1
- package/src/components/popover/component.scss +0 -17
- package/src/components/progress/index.scss +0 -2
- package/src/components/radio/index.scss +1 -1
- package/src/components/radioButtons/index.scss +2 -2
- package/src/components/radioField/index.scss +1 -1
- package/src/components/readMore/component.scss +22 -6
- package/src/components/readMore/index.scss +1 -3
- package/src/components/readMore/states.scss +2 -0
- package/src/components/richText/component.scss +1 -3
- package/src/components/richText/index.scss +1 -3
- package/src/components/scrollBox/index.scss +1 -1
- package/src/components/segmentedControl/component.scss +1 -0
- package/src/components/segmentedControl/index.scss +9 -13
- package/src/components/simpleSelect/index.scss +1 -5
- package/src/components/skeleton/index.scss +0 -2
- package/src/components/skeleton/mods.scss +1 -1
- package/src/components/skipLinks/component.scss +1 -1
- package/src/components/statusBadge/component.scss +1 -1
- package/src/components/suggestion/component.scss +19 -0
- package/src/components/suggestion/exports.scss +4 -0
- package/src/components/suggestion/index.scss +16 -0
- package/src/components/suggestion/mods.scss +0 -0
- package/src/components/suggestion/states.scss +12 -0
- package/src/components/suggestion/vars.scss +4 -0
- package/src/components/switch/index.scss +1 -1
- package/src/components/switchField/index.scss +1 -1
- package/src/components/table/component.scss +1 -1
- package/src/components/table/index.scss +12 -20
- package/src/components/table/mods.scss +4 -4
- package/src/components/tableOfContent/index.scss +1 -1
- package/src/components/tableSortable/index.scss +0 -2
- package/src/components/tag/component.scss +4 -1
- package/src/components/tag/index.scss +12 -2
- package/src/components/tag/mods.scss +30 -3
- package/src/components/tag/states.scss +6 -0
- package/src/components/tag/vars.scss +2 -0
- package/src/components/textField/component.scss +1 -0
- package/src/components/textField/index.scss +4 -4
- package/src/components/textField/states.scss +5 -0
- package/src/components/textField/vars.scss +1 -0
- package/src/components/textFlow/component.scss +6 -0
- package/src/components/textfields/index.scss +2 -19
- package/src/components/textfields/mods.scss +3 -3
- package/src/components/timeline/component.scss +1 -1
- package/src/components/timeline/index.scss +1 -1
- package/src/components/timeline/mods.scss +3 -3
- package/src/components/timepicker/index.scss +0 -2
- package/src/components/title/index.scss +11 -0
- package/src/components/title/mods.scss +6 -0
- package/src/components/titleSection/component.scss +1 -1
- package/src/components/tooltip/index.scss +1 -1
- package/src/components/userPopover/component.scss +1 -0
- package/src/components/verticalNavigation/component.scss +1 -1
- package/src/components/verticalNavigation/index.scss +4 -8
- package/src/components/verticalNavigation/mods.scss +1 -1
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
--components-callout-padding: var(--pr-t-spacings-100) var(--pr-t-spacings-150);
|
|
5
5
|
--components-callout-font: inherit;
|
|
6
6
|
--components-callout-kill-size: 1.5rem;
|
|
7
|
+
--components-callout-boxShadow: 0 0 0 var(--commons-divider-width) var(--palettes-300, var(--palettes-neutral-300));
|
|
8
|
+
--components-callout-backgroundColor: var(--palettes-50, var(--palettes-neutral-50));
|
|
9
|
+
--components-callout-content-description-display: block;
|
|
10
|
+
--components-callout-content-description-action-marginBlockStart: var(--pr-t-spacings-50);
|
|
11
|
+
--components-callout-content-description-action-paddingBlock: var(--pr-t-spacings-50);
|
|
7
12
|
|
|
8
13
|
// Deprecated
|
|
9
14
|
--components-callout-fontSize: inherit;
|
|
@@ -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
|
+
}
|
|
@@ -6,18 +6,14 @@
|
|
|
6
6
|
@include component;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
@layer mods {
|
|
10
|
+
&.mod-S {
|
|
11
11
|
@include S;
|
|
12
12
|
}
|
|
13
|
-
}
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
@layer mods {
|
|
14
|
+
&.mod-checklist {
|
|
17
15
|
@include checklist;
|
|
18
|
-
}
|
|
19
16
|
|
|
20
|
-
@layer states {
|
|
21
17
|
.checkboxField-input {
|
|
22
18
|
&:hover {
|
|
23
19
|
@include checklistHover;
|
|
@@ -62,7 +58,7 @@
|
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
.checkboxField-input {
|
|
65
|
-
@layer
|
|
61
|
+
@layer mods {
|
|
66
62
|
&[aria-checked='mixed'] {
|
|
67
63
|
@include checked;
|
|
68
64
|
@include mixed;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
color: var(--pr-t-color-text-subtle);
|
|
33
33
|
padding: var(--components-dataTable-cell-padding);
|
|
34
34
|
display: table-cell;
|
|
35
|
-
font-weight:
|
|
35
|
+
font-weight: var(--pr-t-font-fontWeight-regular);
|
|
36
36
|
|
|
37
37
|
.checkboxField {
|
|
38
38
|
margin-block-end: 0.125rem;
|
|
@@ -65,6 +65,8 @@
|
|
|
65
65
|
box-shadow: var(--components-dataTable-cell-shadow);
|
|
66
66
|
background-color: var(--components-dataTable-cell-background);
|
|
67
67
|
text-align: var(--components-dataTable-cell-textAlign);
|
|
68
|
+
transition-property: background-color;
|
|
69
|
+
transition-duration: var(--commons-animations-durations-fast);
|
|
68
70
|
|
|
69
71
|
&:first-child {
|
|
70
72
|
inline-size: var(--components-dataTable-cellFirst-width);
|
|
@@ -91,7 +93,7 @@
|
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
.dataTable-foot-row-cell {
|
|
94
|
-
font-weight:
|
|
96
|
+
font-weight: var(--pr-t-font-fontWeight-semibold);
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
.dataTable-body-row-cell-expand {
|
|
@@ -38,27 +38,45 @@
|
|
|
38
38
|
&[class*='mod-layoutFixed'] {
|
|
39
39
|
@include layoutFixedCells;
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
&.mod-hover {
|
|
43
|
+
:is(.dataTable-head-row.mod-selectable, .dataTable-body-row) {
|
|
44
|
+
&:hover {
|
|
45
|
+
@include hover;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.mod-selectable {
|
|
49
|
+
&:has(input:checked) {
|
|
50
|
+
&:hover {
|
|
51
|
+
@include selectedHover;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
41
57
|
}
|
|
42
58
|
}
|
|
43
59
|
|
|
44
|
-
|
|
45
|
-
|
|
60
|
+
@layer mods {
|
|
61
|
+
:is(.dataTable-head-row, .dataTable-body-row, .dataTable-foot-row) {
|
|
46
62
|
&.mod-group {
|
|
47
63
|
@include group;
|
|
48
64
|
}
|
|
49
65
|
|
|
50
66
|
&.mod-selectable {
|
|
51
67
|
@include selectable;
|
|
68
|
+
|
|
69
|
+
&:has(input:checked) {
|
|
70
|
+
@include selected;
|
|
71
|
+
}
|
|
52
72
|
}
|
|
53
73
|
|
|
54
74
|
&.mod-draggable {
|
|
55
75
|
@include draggable;
|
|
56
76
|
}
|
|
57
77
|
}
|
|
58
|
-
}
|
|
59
78
|
|
|
60
|
-
:is(.dataTable-head-row-cell, .dataTable-body-row-cell, .dataTable-foot-row-cell) {
|
|
61
|
-
@layer mods {
|
|
79
|
+
:is(.dataTable-head-row-cell, .dataTable-body-row-cell, .dataTable-foot-row-cell) {
|
|
62
80
|
&.mod-actions {
|
|
63
81
|
@include actions;
|
|
64
82
|
}
|
|
@@ -79,10 +97,8 @@
|
|
|
79
97
|
@include tree;
|
|
80
98
|
}
|
|
81
99
|
}
|
|
82
|
-
}
|
|
83
100
|
|
|
84
|
-
.dataTable-body-row {
|
|
85
|
-
@layer states {
|
|
101
|
+
.dataTable-body-row {
|
|
86
102
|
&.is-collapsed {
|
|
87
103
|
@include collapsed;
|
|
88
104
|
}
|
|
@@ -95,10 +111,8 @@
|
|
|
95
111
|
}
|
|
96
112
|
}
|
|
97
113
|
}
|
|
98
|
-
}
|
|
99
114
|
|
|
100
|
-
.dataTable-body-row-cell-expand-button {
|
|
101
|
-
@layer states {
|
|
115
|
+
.dataTable-body-row-cell-expand-button {
|
|
102
116
|
&[aria-expanded='true'] {
|
|
103
117
|
@include expanded;
|
|
104
118
|
}
|
|
@@ -38,17 +38,16 @@
|
|
|
38
38
|
@mixin group {
|
|
39
39
|
@include buttonExpand;
|
|
40
40
|
|
|
41
|
-
--components-dataTable-cell-background: var(--palettes-neutral-25);
|
|
42
|
-
|
|
43
41
|
font: var(--pr-t-font-heading-4);
|
|
42
|
+
|
|
43
|
+
&,
|
|
44
|
+
&:hover {
|
|
45
|
+
--components-dataTable-cell-background: var(--palettes-neutral-50);
|
|
46
|
+
}
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
@mixin selectable {
|
|
47
50
|
--components-dataTable-cellFirst-width: 2.5rem;
|
|
48
|
-
|
|
49
|
-
&:has(input:checked) {
|
|
50
|
-
--components-dataTable-cell-background: var(--palettes-product-50);
|
|
51
|
-
}
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
@mixin draggable {
|
|
@@ -5,3 +5,15 @@
|
|
|
5
5
|
@mixin expanded {
|
|
6
6
|
--components-dataTable-expand-rotation: 0deg;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
@mixin hover {
|
|
10
|
+
--components-dataTable-cell-background: var(--palettes-neutral-25);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin selected {
|
|
14
|
+
--components-dataTable-cell-background: var(--palettes-product-50);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin selectedHover {
|
|
18
|
+
--components-dataTable-cell-background: var(--palettes-product-100);
|
|
19
|
+
}
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
&:has(.dataTable.mod-rowsOverflow) {
|
|
20
20
|
@include rowsOverflow;
|
|
21
21
|
}
|
|
22
|
-
}
|
|
23
22
|
|
|
24
|
-
@layer states {
|
|
25
23
|
&:has(.dataTable.is-firstColumnVisible) {
|
|
26
24
|
@include firstColumnVisible;
|
|
27
25
|
}
|
|
@@ -37,9 +35,7 @@
|
|
|
37
35
|
&:has(.dataTable.is-lastRowVisible) {
|
|
38
36
|
@include lastRowVisible;
|
|
39
37
|
}
|
|
40
|
-
}
|
|
41
38
|
|
|
42
|
-
@layer mods {
|
|
43
39
|
&:has(:is(.dataTable-head-row-cell, .dataTable-head-body-cell, .dataTable-foot-row-cell).mod-stickyColumn) {
|
|
44
40
|
@include stickyColumn;
|
|
45
41
|
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
inset: var(--components-dialog-inset);
|
|
11
11
|
inline-size: var(--components-dialog-width);
|
|
12
12
|
block-size: var(--components-dialog-height);
|
|
13
|
-
max-inline-size: var(--components-dialog-maxWidth);
|
|
14
|
-
max-block-size: var(--components-dialog-maxHeight);
|
|
15
13
|
background-color: var(--palettes-neutral-0);
|
|
16
14
|
border-radius: var(--components-dialog-borderRadius);
|
|
17
15
|
box-shadow: var(--pr-t-elevation-shadow-overlay);
|
|
18
|
-
position: fixed !important;
|
|
19
16
|
margin: auto;
|
|
20
|
-
display: flex;
|
|
21
17
|
flex-direction: column;
|
|
18
|
+
display: flex !important;
|
|
19
|
+
position: fixed !important;
|
|
20
|
+
max-inline-size: var(--components-dialog-maxWidth) !important;
|
|
21
|
+
max-block-size: var(--components-dialog-maxHeight) !important;
|
|
22
22
|
|
|
23
23
|
@supports not (height: 1dvh) {
|
|
24
24
|
--components-dialog-maxHeight: var(--components-dialog-maxHeightFallback);
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
flex-grow: 1;
|
|
44
44
|
min-block-size: 0;
|
|
45
45
|
|
|
46
|
-
&:has(.dialog-content:focus-visible) {
|
|
46
|
+
&:has(.dialog-inside-content:focus-visible) {
|
|
47
47
|
&::after {
|
|
48
48
|
@include a11y.focusVisible($offset: -4px);
|
|
49
49
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
flex-grow: 1;
|
|
65
65
|
min-block-size: 0;
|
|
66
66
|
|
|
67
|
-
&:has(.dialog-content:focus-visible) {
|
|
67
|
+
&:has(.dialog-inside-content:focus-visible) {
|
|
68
68
|
&::after {
|
|
69
69
|
@include a11y.focusVisible($offset: -4px);
|
|
70
70
|
|
|
@@ -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
|
}
|