@lucca-front/scss 21.2.3-rc.4 → 21.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 +3 -3
- package/src/commons/config.scss +26 -4
- package/src/commons/utils/color.scss +2 -2
- package/src/commons/vars.scss +14 -0
- package/src/components/avatar/index.scss +31 -3
- package/src/components/avatar/mods.scss +28 -0
- package/src/components/button/mods.scss +8 -6
- package/src/components/callout/mods.scss +1 -1
- package/src/components/code/component.scss +1 -0
- package/src/components/comment/component.scss +1 -1
- package/src/components/dataTable/component.scss +6 -1
- package/src/components/dialog/component.scss +3 -2
- package/src/components/dialog/index.scss +4 -0
- package/src/components/dialog/mods.scss +6 -0
- package/src/components/dialog/vars.scss +1 -0
- package/src/components/fieldset/mods.scss +6 -0
- package/src/components/fieldset/vars.scss +1 -1
- package/src/components/fileEntry/component.scss +2 -2
- package/src/components/fileUpload/component.scss +1 -1
- package/src/components/filterPill/component.scss +29 -5
- package/src/components/filterPill/index.scss +14 -11
- package/src/components/filterPill/states.scss +7 -8
- package/src/components/filterPill/vars.scss +2 -1
- package/src/components/form/component.scss +6 -0
- package/src/components/form/mods.scss +1 -1
- package/src/components/form/vars.scss +1 -1
- package/src/components/grid/mods.scss +1 -1
- package/src/components/highlightText/component.scss +30 -0
- package/src/components/highlightText/exports.scss +4 -0
- package/src/components/highlightText/index.scss +8 -0
- package/src/components/highlightText/mods.scss +0 -0
- package/src/components/highlightText/states.scss +0 -0
- package/src/components/highlightText/vars.scss +9 -0
- package/src/components/horizontalNavigation/component.scss +23 -1
- package/src/components/horizontalNavigation/index.scss +19 -1
- package/src/components/horizontalNavigation/mods.scss +14 -0
- package/src/components/horizontalNavigation/vars.scss +7 -0
- package/src/components/impersonation/component.scss +59 -0
- package/src/components/impersonation/exports.scss +4 -0
- package/src/components/impersonation/index.scss +22 -0
- package/src/components/impersonation/mods.scss +0 -0
- package/src/components/impersonation/states.scss +18 -0
- package/src/components/impersonation/vars.scss +11 -0
- package/src/components/index.scss +2 -0
- package/src/components/indexTable/component.scss +4 -0
- package/src/components/listing/component.scss +2 -2
- package/src/components/mobilePush/component.scss +1 -1
- package/src/components/multiSelect/component.scss +10 -0
- package/src/components/presentation/component.scss +1 -0
- package/src/components/simpleSelect/index.scss +1 -0
- package/src/components/tag/mods.scss +1 -1
- package/src/components/textFlow/component.scss +2 -0
- package/src/components/timepicker/component.scss +28 -4
- package/src/components/timepicker/mods.scss +24 -3
- package/src/components/timepicker/vars.scss +6 -3
- package/src/components/toast/component.scss +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.0-rc.1",
|
|
4
4
|
"description": "A Sass framework for Lucca products.",
|
|
5
5
|
"main": "src/main.scss",
|
|
6
6
|
"scripts": {},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"normalize.css": "^8.0.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@lucca-front/icons": "21.
|
|
27
|
-
"@lucca/prisme": "21.
|
|
26
|
+
"@lucca-front/icons": "21.3.0-rc.1",
|
|
27
|
+
"@lucca/prisme": "21.3.0-rc.1"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/src/commons/config.scss
CHANGED
|
@@ -109,10 +109,24 @@ $borderRadiusTokens: (
|
|
|
109
109
|
'input': var(--pr-t-border-radius-default),
|
|
110
110
|
);
|
|
111
111
|
|
|
112
|
+
$colorAI: orchid, brand;
|
|
113
|
+
|
|
114
|
+
$paletteAI: (
|
|
115
|
+
angle: 'to bottom right',
|
|
116
|
+
color1stop: 0%,
|
|
117
|
+
color2stop: 80%,
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
$tokenAI: (
|
|
121
|
+
border: var(--palettes-ai-300),
|
|
122
|
+
background: var(--palettes-ai-50),
|
|
123
|
+
icon: var(--palettes-ai-600),
|
|
124
|
+
);
|
|
125
|
+
|
|
112
126
|
$product: 'brand' !default;
|
|
113
127
|
$palettesShades: text, 0, 25, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900; // text is deprecated
|
|
114
128
|
$palettesStates: 'critical', 'error', 'warning', 'success', 'successContrasted', 'warningContrasted';
|
|
115
|
-
$palettesDefault: 'brand', 'brandContrasted', 'neutral', 'navigation', '
|
|
129
|
+
$palettesDefault: 'brand', 'brandContrasted', 'neutral', 'navigation', 'orchid';
|
|
116
130
|
$palettesProduct: 'product';
|
|
117
131
|
$palettesOtherProduct: () !default;
|
|
118
132
|
$palettesDecorative: 'kiwi', 'cucumber', 'mint', 'lagoon', 'blueberry', 'lavender', 'watermelon', 'pumpkin' !default;
|
|
@@ -149,9 +163,17 @@ $fieldsWidth: 20, 30, 40, 50, 60 !default;
|
|
|
149
163
|
|
|
150
164
|
// Palettes
|
|
151
165
|
|
|
152
|
-
$
|
|
153
|
-
|
|
166
|
+
$orchid: (
|
|
167
|
+
50: #f9ebff,
|
|
168
|
+
100: #f3d6ff,
|
|
169
|
+
200: #edc2ff,
|
|
170
|
+
300: #de9ff9,
|
|
171
|
+
400: #cc7ded,
|
|
172
|
+
500: #b95ae2,
|
|
154
173
|
600: #a440cf,
|
|
174
|
+
700: #8133a3,
|
|
175
|
+
800: #680094,
|
|
176
|
+
900: #4c006b,
|
|
155
177
|
);
|
|
156
178
|
|
|
157
179
|
$brand: (
|
|
@@ -559,7 +581,6 @@ $productsInterpolation: (
|
|
|
559
581
|
);
|
|
560
582
|
|
|
561
583
|
$palettesInterpolation: (
|
|
562
|
-
'AI': $ai,
|
|
563
584
|
'lucca': $brand,
|
|
564
585
|
'brand': $brand,
|
|
565
586
|
'brandContrasted': $brandContrasted,
|
|
@@ -569,6 +590,7 @@ $palettesInterpolation: (
|
|
|
569
590
|
'secondary': map.get($productsInterpolation, $product),
|
|
570
591
|
'product': map.get($productsInterpolation, $product),
|
|
571
592
|
'navigation': $navigation,
|
|
593
|
+
'orchid': $orchid,
|
|
572
594
|
'success': $success,
|
|
573
595
|
'successContrasted': $successContrasted,
|
|
574
596
|
'error': $critical,
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
@include core.rosetta('--palettes-warning', '--palettes-warningContrasted', config.$palettesShades);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
@mixin borderGradient($
|
|
34
|
+
@mixin borderGradient($gradient: linear-gradient(to bottom right, var(--palettes-neutral-0), var(--palettes-neutral-900)), $radius: var(--pr-t-border-radius-default), $width: var(--commons-divider-width)) {
|
|
35
35
|
&::before {
|
|
36
36
|
content: '';
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
position: absolute;
|
|
39
39
|
inset: calc(#{$width} * -1);
|
|
40
40
|
padding: #{$width};
|
|
41
|
-
background-image:
|
|
41
|
+
background-image: #{$gradient};
|
|
42
42
|
border-radius: calc(#{$radius} + #{$width});
|
|
43
43
|
mask: linear-gradient(var(--palettes-neutral-0)) content-box, linear-gradient(var(--palettes-neutral-0));
|
|
44
44
|
mask-composite: exclude;
|
package/src/commons/vars.scss
CHANGED
|
@@ -82,6 +82,20 @@
|
|
|
82
82
|
@include core.cssvars('colors', config.$colors, '-color');
|
|
83
83
|
@include core.cssvars('colors', config.$colorsRgb, '-rgb');
|
|
84
84
|
|
|
85
|
+
@include core.cssvars('palettes-ai', config.$paletteAI);
|
|
86
|
+
@include core.cssvars('pr-t-color', config.$tokenAI, '-ai');
|
|
87
|
+
|
|
88
|
+
@each $shade in config.$palettesShades {
|
|
89
|
+
@if $shade != text and $shade != 0 and $shade != 25 {
|
|
90
|
+
--palettes-ai-#{$shade}:
|
|
91
|
+
linear-gradient(
|
|
92
|
+
var(--palettes-ai-angle),
|
|
93
|
+
var(#{'--palettes-'}#{list.nth(config.$colorAI, 1)}-#{$shade}) var(--palettes-ai-color1stop),
|
|
94
|
+
var(#{'--palettes-'}#{list.nth(config.$colorAI, 2)}-#{max($shade - 100, 50)}) var(--palettes-ai-color2stop)
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
85
99
|
--commons-banner-height: 50px;
|
|
86
100
|
--commons-divider-width: 1px;
|
|
87
101
|
--commons-divider-style: solid;
|
|
@@ -36,10 +36,38 @@
|
|
|
36
36
|
&.mod-placeholder {
|
|
37
37
|
@include placeholder;
|
|
38
38
|
}
|
|
39
|
-
}
|
|
40
39
|
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
&.mod-AI {
|
|
41
|
+
@include AI;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.mod-softRounded {
|
|
45
|
+
&.mod-XS {
|
|
46
|
+
@include softRoundedXS;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.mod-S {
|
|
50
|
+
@include softRoundedS;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include softRounded;
|
|
54
|
+
|
|
55
|
+
&.mod-L {
|
|
56
|
+
@include softRoundedL;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.mod-XL {
|
|
60
|
+
@include softRoundedXL;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.mod-XXL {
|
|
64
|
+
@include softRoundedXXL;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.mod-XXXL {
|
|
68
|
+
@include softRoundedXXXL;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
43
71
|
}
|
|
44
72
|
}
|
|
45
73
|
|
|
@@ -102,3 +102,31 @@
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
+
|
|
106
|
+
@mixin softRoundedXXXL {
|
|
107
|
+
--components-avatar-borderRadius: var(--pr-t-border-radius-400);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@mixin softRoundedXXL {
|
|
111
|
+
--components-avatar-borderRadius: var(--pr-t-border-radius-300);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@mixin softRoundedXL {
|
|
115
|
+
--components-avatar-borderRadius: var(--pr-t-border-radius-300);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@mixin softRoundedL {
|
|
119
|
+
--components-avatar-borderRadius: var(--pr-t-border-radius-200);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@mixin softRounded {
|
|
123
|
+
--components-avatar-borderRadius: var(--pr-t-border-radius-200);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@mixin softRoundedS {
|
|
127
|
+
--components-avatar-borderRadius: var(--pr-t-border-radius-150);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@mixin softRoundedXS {
|
|
131
|
+
--components-avatar-borderRadius: var(--pr-t-border-radius-100);
|
|
132
|
+
}
|
|
@@ -280,10 +280,12 @@
|
|
|
280
280
|
@include outlined;
|
|
281
281
|
|
|
282
282
|
&:not(:disabled) {
|
|
283
|
-
@include color.borderGradient(
|
|
283
|
+
@include color.borderGradient($gradient: var(--pr-t-color-border-ai));
|
|
284
284
|
|
|
285
|
-
&:not(.mod-invert)
|
|
286
|
-
|
|
285
|
+
&:not(.mod-invert) {
|
|
286
|
+
.lucca-icon {
|
|
287
|
+
@include icons.AI;
|
|
288
|
+
}
|
|
287
289
|
}
|
|
288
290
|
}
|
|
289
291
|
}
|
|
@@ -294,9 +296,9 @@
|
|
|
294
296
|
|
|
295
297
|
background-image:
|
|
296
298
|
linear-gradient(
|
|
297
|
-
|
|
298
|
-
color-mix(in srgb, var(--palettes-
|
|
299
|
-
color-mix(in srgb, var(--palettes-brand-
|
|
299
|
+
var(--palettes-ai-angle),
|
|
300
|
+
color-mix(in srgb, var(--palettes-orchid-300) var(--components-button-AI-background-opacity), transparent),
|
|
301
|
+
color-mix(in srgb, var(--palettes-brand-200) var(--components-button-AI-background-opacity), transparent)
|
|
300
302
|
);
|
|
301
303
|
|
|
302
304
|
&:hover,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
--components-callout-boxShadow: var(--pr-t-elevation-shadow-button);
|
|
35
35
|
--components-callout-backgroundColor: var(--pr-t-elevation-surface-raised);
|
|
36
36
|
|
|
37
|
-
@include color.borderGradient(
|
|
37
|
+
@include color.borderGradient($gradient: var(--pr-t-color-border-ai));
|
|
38
38
|
|
|
39
39
|
.callout-icon {
|
|
40
40
|
.lucca-icon {
|
|
@@ -92,11 +92,16 @@
|
|
|
92
92
|
|
|
93
93
|
&:first-child {
|
|
94
94
|
inline-size: var(--components-dataTable-cellFirst-width);
|
|
95
|
+
inset-inline-start: 0;
|
|
95
96
|
|
|
96
97
|
.checkboxField {
|
|
97
98
|
--component-checkboxField-top: 0;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
101
|
+
|
|
102
|
+
&:last-child {
|
|
103
|
+
inset-inline-end: 0;
|
|
104
|
+
}
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
.dataTable-body-row-cell,
|
|
@@ -131,7 +136,7 @@
|
|
|
131
136
|
|
|
132
137
|
.dataTable-body-row-cell-expand-button.button {
|
|
133
138
|
vertical-align: top;
|
|
134
|
-
margin-
|
|
139
|
+
margin-inline-start: calc(var(--pr-t-spacings-25) * -1);
|
|
135
140
|
|
|
136
141
|
.lucca-icon {
|
|
137
142
|
transform: rotate(var(--components-dataTable-expand-rotation));
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.dialog-inside-header-actionOptional {
|
|
111
|
-
margin-
|
|
111
|
+
margin-inline-end: calc(var(--pr-t-spacings-100) * -1);
|
|
112
112
|
|
|
113
113
|
&:empty {
|
|
114
114
|
display: none;
|
|
@@ -155,7 +155,8 @@
|
|
|
155
155
|
padding-block: var(--components-dialog-insideContent-paddingBlock);
|
|
156
156
|
padding-inline: var(--components-dialog-insideContent-paddingInline);
|
|
157
157
|
grid-area: overflow;
|
|
158
|
-
overflow:
|
|
158
|
+
overflow: var(--components-dialog-insideContent-overflow);
|
|
159
|
+
display: block;
|
|
159
160
|
outline: none;
|
|
160
161
|
}
|
|
161
162
|
|
|
@@ -150,3 +150,9 @@
|
|
|
150
150
|
--components-footer-paddingInline: var(--pr-t-spacings-150);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
+
|
|
154
|
+
@mixin withHorizontalNavigation {
|
|
155
|
+
--components-dialog-insideContent-overflow: none;
|
|
156
|
+
--components-dialog-inside-header-boxShadow: none;
|
|
157
|
+
--components-dialog-inside-header-paddingBlock: var(--pr-t-spacings-200) 0;
|
|
158
|
+
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
--components-dialog-insideContent-background: transparent;
|
|
20
20
|
--components-dialog-insideContent-paddingInline: var(--pr-t-spacings-300);
|
|
21
21
|
--components-dialog-insideContent-paddingBlock: var(--pr-t-spacings-200);
|
|
22
|
+
--components-dialog-insideContent-overflow: auto;
|
|
22
23
|
--components-dialog-level: 0;
|
|
23
24
|
--components-dialog-translate-spacing: var(--pr-t-spacings-500);
|
|
24
25
|
--components-dialog-translate: calc(var(--components-dialog-translate-spacing) * var(--components-dialog-level) * -1);
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
@mixin horizontal {
|
|
9
9
|
grid-template-columns: 1fr auto;
|
|
10
|
+
|
|
11
|
+
--components-form-maxWidth: initial;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
@mixin expandable {
|
|
@@ -18,6 +20,10 @@
|
|
|
18
20
|
&:focus-visible {
|
|
19
21
|
@include a11y.focusVisible;
|
|
20
22
|
}
|
|
23
|
+
|
|
24
|
+
.lucca-icon {
|
|
25
|
+
margin-block-start: var(--pr-t-spacings-50);
|
|
26
|
+
}
|
|
21
27
|
}
|
|
22
28
|
}
|
|
23
29
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@mixin vars {
|
|
2
2
|
--components-fieldset-title: var(--pr-t-font-heading-3);
|
|
3
3
|
--components-fieldset-gap: var(--pr-t-spacings-100);
|
|
4
|
-
--components-fieldset-contentMaxWidth:
|
|
4
|
+
--components-fieldset-contentMaxWidth: var(--components-form-maxWidth, 50rem);
|
|
5
5
|
--components-fieldset-title-iconRotation: 0deg;
|
|
6
6
|
--components-fieldset-title-content-flexWrap: nowrap;
|
|
7
7
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.form-field:has(.fileUpload) + & {
|
|
44
|
-
margin-
|
|
44
|
+
margin-block-start: var(--pr-t-spacings-100);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.fileEntry_box.box {
|
|
179
|
-
margin-
|
|
179
|
+
margin-block-start: var(--pr-t-spacings-150);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.fileEntry_box-field {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
.fileUpload-instruction-action {
|
|
73
73
|
display: block;
|
|
74
|
-
margin-
|
|
74
|
+
margin-block-end: var(--fileUpload-instruction-action-marginBottom);
|
|
75
75
|
line-height: var(--pr-t-font-body-M-lineHeight);
|
|
76
76
|
|
|
77
77
|
span {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@use '@lucca-front/scss/src/components/textField/exports' as textField;
|
|
11
11
|
|
|
12
12
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
13
|
-
display:
|
|
13
|
+
display: flex;
|
|
14
14
|
gap: var(--components-filterPill-gap);
|
|
15
15
|
align-items: center;
|
|
16
16
|
background-color: var(--components-filterPill-backgroundColor);
|
|
@@ -24,8 +24,15 @@
|
|
|
24
24
|
white-space: nowrap;
|
|
25
25
|
transition-property: box-shadow;
|
|
26
26
|
transition-duration: var(--commons-animations-durations-fast);
|
|
27
|
+
border: 0;
|
|
27
28
|
|
|
28
29
|
@at-root ($atRoot) {
|
|
30
|
+
.filterPillWrapper {
|
|
31
|
+
position: relative;
|
|
32
|
+
inline-size: fit-content;
|
|
33
|
+
display: var(--components-filterPillWrapper-display);
|
|
34
|
+
}
|
|
35
|
+
|
|
29
36
|
.filterPill_popover-content.popover-contentOptional {
|
|
30
37
|
--components-dateInput-width: none;
|
|
31
38
|
|
|
@@ -96,6 +103,7 @@
|
|
|
96
103
|
@include reset.button;
|
|
97
104
|
|
|
98
105
|
display: flex;
|
|
106
|
+
margin-block-start: -1px;
|
|
99
107
|
margin-inline-start: var(--pr-t-spacings-50);
|
|
100
108
|
inline-size: calc(var(--pr-t-spacings-50) + var(--pr-t-spacings-200));
|
|
101
109
|
flex-shrink: 0;
|
|
@@ -108,6 +116,10 @@
|
|
|
108
116
|
transition-duration: var(--commons-animations-durations-fast);
|
|
109
117
|
transform: rotate(var(--components-filterPill-toggle-rotation));
|
|
110
118
|
}
|
|
119
|
+
|
|
120
|
+
.filterPill-value + & {
|
|
121
|
+
margin-inline-start: var(--components-filterPill-toggle-marginInlineStart);
|
|
122
|
+
}
|
|
111
123
|
}
|
|
112
124
|
|
|
113
125
|
.filterPill-clear.clear {
|
|
@@ -119,7 +131,16 @@
|
|
|
119
131
|
@include clear.product;
|
|
120
132
|
}
|
|
121
133
|
|
|
122
|
-
.
|
|
134
|
+
.filterPill_clear.clear {
|
|
135
|
+
position: absolute;
|
|
136
|
+
z-index: 1;
|
|
137
|
+
inset-inline-end: calc(var(--pr-t-spacings-400) + var(--pr-t-spacings-25));
|
|
138
|
+
inset-block-start: var(--pr-t-spacings-100);
|
|
139
|
+
|
|
140
|
+
@include clear.product;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.filterPill-value {
|
|
123
144
|
@include reset.button;
|
|
124
145
|
|
|
125
146
|
font-weight: var(--components-filterPill-label-fontWeightChecked);
|
|
@@ -130,9 +151,6 @@
|
|
|
130
151
|
overflow: hidden;
|
|
131
152
|
text-overflow: ellipsis;
|
|
132
153
|
cursor: var(--components-filterPill-label-cursor);
|
|
133
|
-
display: flex;
|
|
134
|
-
align-items: center;
|
|
135
|
-
gap: var(--pr-t-spacings-50);
|
|
136
154
|
max-inline-size: 15rem;
|
|
137
155
|
|
|
138
156
|
&:focus-visible {
|
|
@@ -142,6 +160,12 @@
|
|
|
142
160
|
.lucca-icon {
|
|
143
161
|
color: var(--components-filterPill-arrowColor);
|
|
144
162
|
}
|
|
163
|
+
|
|
164
|
+
&:has(.lucca-icon) {
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
gap: var(--pr-t-spacings-50);
|
|
168
|
+
}
|
|
145
169
|
}
|
|
146
170
|
|
|
147
171
|
.filterPill-label-placeholder {
|
|
@@ -15,20 +15,16 @@
|
|
|
15
15
|
@include hover;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
&:active
|
|
19
|
-
&:has(:active) {
|
|
18
|
+
&:active {
|
|
20
19
|
@include active;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:has(.filterPill-combobox:focus-visible) {
|
|
22
|
+
&:has(.filterPill-label:focus-visible),
|
|
23
|
+
&:has(.filterPill-value:focus-visible) {
|
|
28
24
|
@include focusVisible;
|
|
29
25
|
}
|
|
30
26
|
|
|
31
|
-
|
|
27
|
+
&[aria-expanded='true'] {
|
|
32
28
|
@include opened;
|
|
33
29
|
}
|
|
34
30
|
|
|
@@ -39,7 +35,7 @@
|
|
|
39
35
|
@include filledHover;
|
|
40
36
|
}
|
|
41
37
|
|
|
42
|
-
&:
|
|
38
|
+
&:active {
|
|
43
39
|
@include filledActive;
|
|
44
40
|
}
|
|
45
41
|
}
|
|
@@ -51,6 +47,7 @@
|
|
|
51
47
|
@include focusVisible;
|
|
52
48
|
}
|
|
53
49
|
|
|
50
|
+
&[aria-pressed='true'],
|
|
54
51
|
&:has(.filterPill-checkbox-input:checked) {
|
|
55
52
|
@include checkboxChecked;
|
|
56
53
|
|
|
@@ -58,14 +55,16 @@
|
|
|
58
55
|
@include filledHover;
|
|
59
56
|
}
|
|
60
57
|
|
|
61
|
-
&:
|
|
58
|
+
&:active {
|
|
62
59
|
@include filledActive;
|
|
63
60
|
}
|
|
64
61
|
}
|
|
65
62
|
|
|
63
|
+
&[disabled],
|
|
66
64
|
&:has(.filterPill-checkbox-input:disabled) {
|
|
67
65
|
@include checkboxDisabled;
|
|
68
66
|
|
|
67
|
+
&[aria-pressed='true'],
|
|
69
68
|
&:has(.filterPill-checkbox-input:checked) {
|
|
70
69
|
@include checkboxCheckedDisabled;
|
|
71
70
|
}
|
|
@@ -76,10 +75,14 @@
|
|
|
76
75
|
@include button;
|
|
77
76
|
}
|
|
78
77
|
|
|
79
|
-
|
|
78
|
+
&[disabled] {
|
|
80
79
|
@include disabled;
|
|
81
80
|
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
82
83
|
|
|
84
|
+
.filterPillWrapper {
|
|
85
|
+
@layer mods {
|
|
83
86
|
&.is-hidden {
|
|
84
87
|
@include hidden;
|
|
85
88
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@mixin focusVisible {
|
|
16
|
-
@include a11y.focusVisible($offset:
|
|
16
|
+
@include a11y.focusVisible($offset: 2px);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@mixin hover {
|
|
@@ -67,15 +67,17 @@
|
|
|
67
67
|
--components-filterPill-backgroundColor: var(--palettes-product-50);
|
|
68
68
|
--components-filterPill-color: var(--palettes-product-800);
|
|
69
69
|
--components-filterPill-toggle-iconColor: var(--palettes-product-700);
|
|
70
|
+
--components-filterPill-toggle-marginInlineStart: calc(var(--pr-t-spacings-300) + var(--pr-t-spacings-50));
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
@mixin notFilled {
|
|
73
|
-
.filterPill-
|
|
74
|
+
.filterPill-value {
|
|
74
75
|
@include a11y.mask;
|
|
75
76
|
}
|
|
76
|
-
}
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
+ .filterPill_clear.clear {
|
|
79
|
+
@include clear.hidden;
|
|
80
|
+
}
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
@mixin opened {
|
|
@@ -102,11 +104,8 @@
|
|
|
102
104
|
box-shadow: var(--components-filterPill-shadow);
|
|
103
105
|
|
|
104
106
|
@include clear.hidden;
|
|
105
|
-
|
|
106
|
-
// TODO
|
|
107
|
-
// --components-filterPill-checkbox-borderColor: var(--palettes-neutral-600);
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
@mixin hidden {
|
|
111
|
-
--components-
|
|
110
|
+
--components-filterPillWrapper-display: none;
|
|
112
111
|
}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
--components-filterPill-toggle-rotation: 0deg;
|
|
16
16
|
--components-filterPill-toggle-iconColor: var(--palettes-neutral-600);
|
|
17
17
|
--components-filterPill-shadow: 0 0 0 1px var(--components-filterPill-borderColor);
|
|
18
|
-
--components-filterPill-display: flex;
|
|
19
18
|
--components-filterPill-arrowColor: var(--palettes-product-700);
|
|
20
19
|
--components-filterPill-label-maxInlineSize: none;
|
|
20
|
+
--components-filterPill-toggle-marginInlineStart: var(--pr-t-spacings-50);
|
|
21
|
+
--components-filterPillWrapper-display: block;
|
|
21
22
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
7
7
|
display: block;
|
|
8
|
+
max-inline-size: var(--components-form-maxWidth);
|
|
8
9
|
|
|
9
10
|
.divider:not(.mod-vertical) {
|
|
10
11
|
margin-block: var(--pr-t-spacings-300);
|
|
@@ -150,5 +151,10 @@
|
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
153
|
}
|
|
154
|
+
|
|
155
|
+
.option-additional {
|
|
156
|
+
font: var(--pr-t-font-body-S);
|
|
157
|
+
color: var(--pr-t-color-text-subtle);
|
|
158
|
+
}
|
|
153
159
|
}
|
|
154
160
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/commons/utils/namespace';
|
|
2
|
+
|
|
3
|
+
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
4
|
+
padding-inline: 0.125em;
|
|
5
|
+
margin-inline: -0.125em;
|
|
6
|
+
background-repeat: no-repeat;
|
|
7
|
+
box-decoration-break: clone;
|
|
8
|
+
font-weight: inherit;
|
|
9
|
+
background-image:
|
|
10
|
+
linear-gradient(var(--components-highlightText-backgroundColor)),
|
|
11
|
+
linear-gradient(var(--components-highlightText-backgroundColor)),
|
|
12
|
+
radial-gradient(var(--components-highlightText-backgroundDiameter) circle at var(--components-highlightText-backgroundStart) var(--components-highlightText-backgroundEnd), var(--components-highlightText-backgroundColor) calc(50% - 1px), transparent 50%),
|
|
13
|
+
radial-gradient(var(--components-highlightText-backgroundDiameter) circle at var(--components-highlightText-backgroundEnd) var(--components-highlightText-backgroundEnd), var(--components-highlightText-backgroundColor) calc(50% - 1px), transparent 50%),
|
|
14
|
+
radial-gradient(var(--components-highlightText-backgroundDiameter) circle at var(--components-highlightText-backgroundStart) calc(100% - var(--components-highlightText-backgroundBlockSize) + var(--components-highlightText-backgroundRadius)), var(--components-highlightText-backgroundColor) calc(50% - 1px), transparent 50%),
|
|
15
|
+
radial-gradient(var(--components-highlightText-backgroundDiameter) circle at var(--components-highlightText-backgroundEnd) calc(100% - var(--components-highlightText-backgroundBlockSize) + var(--components-highlightText-backgroundRadius)), var(--components-highlightText-backgroundColor) calc(50% - 1px), transparent 50%);
|
|
16
|
+
background-size:
|
|
17
|
+
100% calc(var(--components-highlightText-backgroundBlockSize) - var(--components-highlightText-backgroundDiameter)),
|
|
18
|
+
calc(100% - var(--components-highlightText-backgroundDiameter)) var(--components-highlightText-backgroundBlockSize),
|
|
19
|
+
100% 100%,
|
|
20
|
+
100% 100%,
|
|
21
|
+
100% 100%,
|
|
22
|
+
100% 100%;
|
|
23
|
+
background-position:
|
|
24
|
+
50% calc(100% - var(--components-highlightText-backgroundRadius)),
|
|
25
|
+
50% 100%,
|
|
26
|
+
0 0,
|
|
27
|
+
0 0,
|
|
28
|
+
0 0,
|
|
29
|
+
0 0;
|
|
30
|
+
}
|