@lucca-front/scss 20.3.3 → 20.4.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 +6 -0
- package/src/components/button/mods.scss +22 -1
- package/src/components/button/vars.scss +1 -0
- package/src/components/checkboxField/component.scss +1 -3
- package/src/components/dataTable/index.scss +9 -4
- package/src/components/dialog/component.scss +1 -14
- package/src/components/dialog/index.scss +4 -0
- package/src/components/dialog/mods.scss +15 -0
- package/src/components/filterBar/component.scss +1 -1
- package/src/components/filterBar/mods.scss +2 -6
- package/src/components/filterBar/vars.scss +1 -0
- package/src/components/filterPill/component.scss +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.4.0-rc.1",
|
|
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.
|
|
26
|
+
"@lucca-front/icons": "20.4.0-rc.1"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -8,8 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
@layer mods {
|
|
10
10
|
&.mod-AI {
|
|
11
|
+
&:not(.invert) {
|
|
11
12
|
@include AI;
|
|
12
13
|
|
|
14
|
+
&.mod-invert {
|
|
15
|
+
@include invertIA;
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
&.is-success {
|
|
14
19
|
@include successAI;
|
|
15
20
|
}
|
|
@@ -17,6 +22,7 @@
|
|
|
17
22
|
&.is-loading {
|
|
18
23
|
@include loadingAI;
|
|
19
24
|
}
|
|
25
|
+
}
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
&.mod-block {
|
|
@@ -253,8 +253,29 @@
|
|
|
253
253
|
&:not(:disabled) {
|
|
254
254
|
@include color.borderGradient(135deg, var(--palettes-brand-400), var(--palettes-AI-500));
|
|
255
255
|
|
|
256
|
-
.lucca-icon {
|
|
256
|
+
&:not(.mod-invert) .lucca-icon {
|
|
257
257
|
@include icons.AI;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
+
|
|
262
|
+
@mixin invertIA {
|
|
263
|
+
--components-button-backgroundColor: transparent;
|
|
264
|
+
--components-button-color: var(--palettes-neutral-0);
|
|
265
|
+
|
|
266
|
+
background-image: linear-gradient(
|
|
267
|
+
-135deg,
|
|
268
|
+
color-mix(in srgb, var(--palettes-AI-500) var(--components-button-AI-background-opacity), transparent),
|
|
269
|
+
color-mix(in srgb, var(--palettes-brand-400) var(--components-button-AI-background-opacity), transparent)
|
|
270
|
+
);
|
|
271
|
+
|
|
272
|
+
&:hover,
|
|
273
|
+
&:focus-visible {
|
|
274
|
+
--components-button-AI-background-opacity: 15%;
|
|
275
|
+
--components-button-color: var(--palettes-neutral-0);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&:active {
|
|
279
|
+
--components-button-AI-background-opacity: 5%;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
--components-button-color: var(--palettes-0, var(--palettes-text, var(--palettes-product-0)));
|
|
20
20
|
--components-button-backgroundColor: var(--palettes-700, var(--palettes-product-700));
|
|
21
21
|
--components-button-arrow-transform: none;
|
|
22
|
+
--components-button-AI-background-opacity: 25%;
|
|
22
23
|
|
|
23
24
|
// Deprecated
|
|
24
25
|
--components-button-font-size: var(--pr-t-font-body-M-fontSize);
|
|
@@ -56,9 +56,7 @@
|
|
|
56
56
|
font-weight: var(--pr-t-font-fontWeight-regular);
|
|
57
57
|
font-size: var(--component-checkboxField-icon-fontSize);
|
|
58
58
|
direction: ltr;
|
|
59
|
-
|
|
60
|
-
// stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- This font is for icons and should not have fallback.
|
|
61
|
-
font-family: 'Lucca icons';
|
|
59
|
+
font-family: var(--icon-fontFamily);
|
|
62
60
|
font-feature-settings: 'liga';
|
|
63
61
|
font-style: normal;
|
|
64
62
|
letter-spacing: normal;
|
|
@@ -75,10 +75,6 @@
|
|
|
75
75
|
&:has([selectable]),
|
|
76
76
|
&.mod-selectable {
|
|
77
77
|
@include selectable;
|
|
78
|
-
|
|
79
|
-
&:has(input:checked) {
|
|
80
|
-
@include selected;
|
|
81
|
-
}
|
|
82
78
|
}
|
|
83
79
|
|
|
84
80
|
&.mod-draggable {
|
|
@@ -86,6 +82,15 @@
|
|
|
86
82
|
}
|
|
87
83
|
}
|
|
88
84
|
|
|
85
|
+
:is(.dataTable-body-row, .dataTable-foot-row) {
|
|
86
|
+
&:has([selectable]),
|
|
87
|
+
&.mod-selectable {
|
|
88
|
+
&:has(input:checked) {
|
|
89
|
+
@include selected;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
:is(.dataTable-head-row-cell, .dataTable-body-row-cell, .dataTable-foot-row-cell) {
|
|
90
95
|
&.mod-actions {
|
|
91
96
|
@include actions;
|
|
@@ -76,19 +76,6 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.dialog-inside-header-button {
|
|
80
|
-
&.button {
|
|
81
|
-
@include button.ghost;
|
|
82
|
-
@include button.S;
|
|
83
|
-
@include button.onlyIconS;
|
|
84
|
-
|
|
85
|
-
align-self: start;
|
|
86
|
-
justify-self: end;
|
|
87
|
-
grid-area: close;
|
|
88
|
-
display: var(--components-dialog-insideHeaderButtonDisplay);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
79
|
.dialog-inside-header-actionOptional {
|
|
93
80
|
margin-right: calc(var(--pr-t-spacings-100) * -1);
|
|
94
81
|
|
|
@@ -138,7 +125,7 @@
|
|
|
138
125
|
padding: var(--components-dialog-insideHeaderTitlePadding);
|
|
139
126
|
text-align: var(--components-dialog-insideHeaderTitleAlign);
|
|
140
127
|
margin: 0;
|
|
141
|
-
overflow-wrap:
|
|
128
|
+
overflow-wrap: anywhere;
|
|
142
129
|
}
|
|
143
130
|
|
|
144
131
|
.dialog_backdrop {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/components/button/exports' as button;
|
|
1
2
|
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
2
3
|
@use '@lucca-front/scss/src/components/title/exports' as title;
|
|
3
4
|
@use '@lucca-front/scss/src/commons/utils/keyframe';
|
|
@@ -68,3 +69,17 @@
|
|
|
68
69
|
@mixin neutralBackground {
|
|
69
70
|
--components-dialog-insideContent-background: var(--pr-t-elevation-surface-default);
|
|
70
71
|
}
|
|
72
|
+
|
|
73
|
+
@mixin withCloseButton {
|
|
74
|
+
.dialog-inside-header-button.button {
|
|
75
|
+
@include button.ghost;
|
|
76
|
+
@include button.S;
|
|
77
|
+
@include button.onlyIconS;
|
|
78
|
+
|
|
79
|
+
align-self: start;
|
|
80
|
+
justify-self: end;
|
|
81
|
+
grid-area: close;
|
|
82
|
+
display: var(--components-dialog-insideHeaderButtonDisplay);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -15,17 +15,13 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@mixin notCompact {
|
|
18
|
+
--components-filterBar-flexWrap: nowrap;
|
|
19
|
+
|
|
18
20
|
.filterBar-divider.divider {
|
|
19
21
|
margin-inline: var(--pr-t-spacings-50);
|
|
20
22
|
|
|
21
23
|
@include divider.vertical;
|
|
22
24
|
}
|
|
23
|
-
|
|
24
|
-
.filterBar-scrollBox.scrollBox {
|
|
25
|
-
&:has(.filterBar-scrollBox-export) {
|
|
26
|
-
flex-wrap: nowrap;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
@mixin touch {
|
|
@@ -182,9 +182,7 @@
|
|
|
182
182
|
font-weight: var(--pr-t-font-fontWeight-regular);
|
|
183
183
|
font-size: 1rem;
|
|
184
184
|
direction: ltr;
|
|
185
|
-
|
|
186
|
-
// stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- This font is for icons and should not have fallback.
|
|
187
|
-
font-family: 'Lucca icons';
|
|
185
|
+
font-family: var(--icon-fontFamily);
|
|
188
186
|
font-feature-settings: 'liga';
|
|
189
187
|
font-style: normal;
|
|
190
188
|
letter-spacing: normal;
|