@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "20.3.3",
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.3.3"
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: break-word;
128
+ overflow-wrap: anywhere;
142
129
  }
143
130
 
144
131
  .dialog_backdrop {
@@ -56,5 +56,9 @@
56
56
  &.mod-fullScreen {
57
57
  @include fullScreen;
58
58
  }
59
+
60
+ &:has(.dialog-inside-header-button) {
61
+ @include withCloseButton;
62
+ }
59
63
  }
60
64
  }
@@ -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
+
@@ -12,7 +12,7 @@
12
12
  @mixin component($atRoot: namespace.$defaultAtRoot) {
13
13
  display: flex;
14
14
  align-items: flex-start;
15
- flex-wrap: wrap;
15
+ flex-wrap: var(--components-filterBar-flexWrap);
16
16
  gap: var(--pr-t-spacings-100);
17
17
 
18
18
  .textField {
@@ -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 {
@@ -1,4 +1,5 @@
1
1
  @mixin vars {
2
2
  --components-filterBar-scrollBox-flexGrow: 0;
3
3
  --components-filterBar-scrollBox-group-flexWrap: wrap;
4
+ --components-filterBar-flexWrap: wrap;
4
5
  }
@@ -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;