@lucca-front/scss 20.4.0-rc.1 → 21.0.0-rc.2

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.
Files changed (83) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/commons/config.scss +3 -3
  4. package/src/components/breadcrumbs/component.scss +2 -1
  5. package/src/components/breadcrumbs/index.scss +2 -1
  6. package/src/components/breadcrumbs/mods.scss +2 -1
  7. package/src/components/button/index.scss +0 -6
  8. package/src/components/button/mods.scss +1 -22
  9. package/src/components/button/vars.scss +0 -1
  10. package/src/components/calendar/component.scss +5 -9
  11. package/src/components/calendar/index.scss +8 -0
  12. package/src/components/calendar/states.scss +7 -1
  13. package/src/components/calendar/vars.scss +3 -1
  14. package/src/components/callout/component.scss +0 -1
  15. package/src/components/calloutPopover/component.scss +13 -10
  16. package/src/components/calloutPopover/mods.scss +2 -5
  17. package/src/components/calloutPopover/vars.scss +0 -1
  18. package/src/components/checkboxField/component.scss +3 -1
  19. package/src/components/chip/component.scss +18 -7
  20. package/src/components/chip/index.scss +4 -6
  21. package/src/components/chip/mods.scss +6 -20
  22. package/src/components/chip/states.scss +2 -2
  23. package/src/components/chip/vars.scss +4 -2
  24. package/src/components/clear/component.scss +4 -4
  25. package/src/components/clear/index.scss +15 -12
  26. package/src/components/clear/mods.scss +7 -20
  27. package/src/components/clear/states.scss +10 -1
  28. package/src/components/clear/vars.scss +3 -2
  29. package/src/components/dataTable/component.scss +12 -1
  30. package/src/components/dataTable/index.scss +16 -7
  31. package/src/components/dataTable/mods.scss +16 -3
  32. package/src/components/dataTable/vars.scss +0 -1
  33. package/src/components/dataTableSticked/index.scss +15 -0
  34. package/src/components/dataTableSticked/mods.scss +9 -9
  35. package/src/components/dataTableSticked/states.scss +7 -0
  36. package/src/components/dataTableSticked/vars.scss +3 -0
  37. package/src/components/fancyBox/component.scss +15 -20
  38. package/src/components/fancyBox/index.scss +4 -0
  39. package/src/components/fancyBox/mods.scss +11 -0
  40. package/src/components/fancyBox/vars.scss +10 -0
  41. package/src/components/fieldset/component.scss +4 -0
  42. package/src/components/fieldset/index.scss +4 -0
  43. package/src/components/fieldset/mods.scss +10 -0
  44. package/src/components/fieldset/vars.scss +1 -1
  45. package/src/components/filterBar/component.scss +1 -1
  46. package/src/components/filterBar/mods.scss +6 -2
  47. package/src/components/filterBar/vars.scss +0 -1
  48. package/src/components/filterPill/component.scss +3 -2
  49. package/src/components/filterPill/states.scss +3 -2
  50. package/src/components/filterPill/vars.scss +0 -1
  51. package/src/components/form/component.scss +4 -2
  52. package/src/components/indexTable/component.scss +11 -28
  53. package/src/components/indexTable/index.scss +34 -3
  54. package/src/components/indexTable/mods.scss +45 -10
  55. package/src/components/indexTable/states.scss +5 -1
  56. package/src/components/indexTable/vars.scss +1 -0
  57. package/src/components/inputFramed/component.scss +8 -9
  58. package/src/components/inputFramed/index.scss +13 -3
  59. package/src/components/inputFramed/mods.scss +14 -0
  60. package/src/components/inputFramed/vars.scss +9 -2
  61. package/src/components/link/mods.scss +3 -2
  62. package/src/components/listing/component.scss +20 -2
  63. package/src/components/listing/index.scss +10 -0
  64. package/src/components/listing/mods.scss +49 -0
  65. package/src/components/listing/vars.scss +16 -2
  66. package/src/components/multiSelect/component.scss +3 -0
  67. package/src/components/multiSelect/index.scss +4 -14
  68. package/src/components/multiSelect/mods.scss +0 -28
  69. package/src/components/multiSelect/states.scss +5 -16
  70. package/src/components/plgPush/component.scss +4 -0
  71. package/src/components/popover/component.scss +1 -0
  72. package/src/components/popover/vars.scss +1 -0
  73. package/src/components/richText/component.scss +5 -6
  74. package/src/components/scrollBox/component.scss +4 -0
  75. package/src/components/simpleSelect/component.scss +10 -3
  76. package/src/components/sortableList/component.scss +23 -4
  77. package/src/components/sortableList/index.scss +13 -0
  78. package/src/components/sortableList/mods.scss +6 -0
  79. package/src/components/tableFixed/mods.scss +3 -3
  80. package/src/components/tableOfContent/component.scss +2 -1
  81. package/src/components/tableOfContent/index.scss +2 -1
  82. package/src/components/textfields/index.scss +3 -3
  83. package/src/components/textfields/states.scss +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "20.4.0-rc.1",
3
+ "version": "21.0.0-rc.2",
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.4.0-rc.1"
26
+ "@lucca-front/icons": "21.0.0-rc.2"
27
27
  }
28
28
  }
@@ -604,11 +604,11 @@ $elevation: (
604
604
 
605
605
  // Tokens : Colors
606
606
  $colorInput: (
607
- text: var(--palettes-neutral-800),
607
+ text: var(--pr-t-color-text),
608
608
  text-placeholder: var(--palettes-neutral-400),
609
609
  text-placeholder-critical: var(--palettes-critical-400),
610
- text-suffix: var(--palettes-neutral-600),
611
- text-disabled: var(--palettes-neutral-500),
610
+ text-suffix: var(--pr-t-color-text-subtle),
611
+ text-disabled: var(--palettes-neutral-700),
612
612
  icon: var(--palettes-neutral-600),
613
613
  icon-disabled: var(--palettes-neutral-500),
614
614
  background: var(--palettes-neutral-0),
@@ -31,7 +31,8 @@
31
31
  }
32
32
  }
33
33
 
34
- .breadcrumbs-list-item-action {
34
+ // Second selector to get rid of breadcrumbs-list-item-action on angular component
35
+ .breadcrumbs-list-item-action, .breadcrumbs-list-item > a {
35
36
  color: var(--pr-t-color-text-subtle);
36
37
  transition-duration: var(--commons-animations-durations-fast);
37
38
  transition-property: color;
@@ -14,7 +14,8 @@
14
14
  }
15
15
  }
16
16
 
17
- .breadcrumbs-list-item-action {
17
+ // Second selector to get rid of breadcrumbs-list-item-action on angular component
18
+ .breadcrumbs-list-item-action, .breadcrumbs-list-item > a {
18
19
  @layer mods {
19
20
  // .active is deprecated
20
21
  &.is-active,
@@ -10,7 +10,8 @@
10
10
  }
11
11
 
12
12
  &:first-child {
13
- .breadcrumbs-list-item-action {
13
+ // Second selector to get rid of breadcrumbs-list-item-action on angular component
14
+ .breadcrumbs-list-item-action, .breadcrumbs-list-item > a {
14
15
  &::before {
15
16
  @include icon.generate('arrow_left');
16
17
 
@@ -8,13 +8,8 @@
8
8
 
9
9
  @layer mods {
10
10
  &.mod-AI {
11
- &:not(.invert) {
12
11
  @include AI;
13
12
 
14
- &.mod-invert {
15
- @include invertIA;
16
- }
17
-
18
13
  &.is-success {
19
14
  @include successAI;
20
15
  }
@@ -22,7 +17,6 @@
22
17
  &.is-loading {
23
18
  @include loadingAI;
24
19
  }
25
- }
26
20
  }
27
21
 
28
22
  &.mod-block {
@@ -253,29 +253,8 @@
253
253
  &:not(:disabled) {
254
254
  @include color.borderGradient(135deg, var(--palettes-brand-400), var(--palettes-AI-500));
255
255
 
256
- &:not(.mod-invert) .lucca-icon {
256
+ .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,7 +19,6 @@
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%;
23
22
 
24
23
  // Deprecated
25
24
  --components-button-font-size: var(--pr-t-font-body-M-fontSize);
@@ -182,6 +182,8 @@
182
182
  .calendar-table-head-row-cell,
183
183
  .calendar-table-body-row-cell {
184
184
  padding: var(--pr-t-spacings-25);
185
+ block-size: var(--pr-t-spacings-400);
186
+ box-sizing: content-box;
185
187
  }
186
188
 
187
189
  .calendar-table-head-row-cell {
@@ -216,20 +218,14 @@
216
218
  color: var(--components-calendar-table-body-row-cell-actionColor);
217
219
  background-color: var(--components-calendar-table-body-row-cell-actionHighlight);
218
220
  display: var(--components-calendar-table-body-row-cell-actionDisplay);
219
- block-size: var(--pr-t-spacings-400);
221
+ block-size: 100%;
220
222
  text-transform: lowercase;
223
+ cursor: var(--components-calendar-table-body-row-cell-actionCursor);
224
+ text-decoration: var(--components-calendar-table-body-row-cell-actionTextDecoration);
221
225
  box-shadow:
222
226
  0 0 0 1px var(--components-calendar-table-body-row-cell-actionHighlight),
223
227
  0 0 0 1px var(--components-calendar-table-body-row-cell-actionHighlight) inset;
224
228
 
225
- &:disabled,
226
- &[aria-disabled='true'] {
227
- --components-calendar-table-body-row-cell-actionColor: var(--palettes-neutral-500);
228
-
229
- text-decoration: line-through;
230
- cursor: default;
231
- }
232
-
233
229
  &:not(:disabled, [aria-disabled='true']) {
234
230
  &:hover {
235
231
  @include a11y.focusVisible;
@@ -84,5 +84,13 @@
84
84
  @include endInProgress;
85
85
  }
86
86
  }
87
+
88
+ .calendar-table-body-row-cell-action {
89
+ &:disabled,
90
+ &[aria-disabled='true'] {
91
+ @include disabled;
92
+ }
93
+ }
87
94
  }
88
95
  }
96
+
@@ -165,6 +165,12 @@
165
165
 
166
166
  @mixin overflow {
167
167
  .calendar-table-body-row-cell-action {
168
- --components-calendar-table-body-row-cell-actionColor: var(--palettes-neutral-600);
168
+ --components-calendar-table-body-row-cell-actionColor: var(--pr-t-color-text-subtle);
169
169
  }
170
170
  }
171
+
172
+ @mixin disabled {
173
+ --components-calendar-table-body-row-cell-actionColor: var(--palettes-neutral-500);
174
+ --components-calendar-table-body-row-cell-actionTextDecoration: line-through;
175
+ --components-calendar-table-body-row-cell-actionCursor: default;
176
+ }
@@ -8,9 +8,11 @@
8
8
  --components-calendar-table-body-row-cell-action-stripesColor: var(--palettes-neutral-200);
9
9
  --components-calendar-table-body-row-cell-actionHighlight: transparent;
10
10
  --components-calendar-table-body-row-cell-actionFontWeight: 400;
11
- --components-calendar-table-body-row-cell-actionColor: var(--palettes-neutral-700);
11
+ --components-calendar-table-body-row-cell-actionColor: var(--pr-t-color-text);
12
12
  --components-calendar-table-body-row-cell-actionOutlineWidth: 2px;
13
13
  --components-calendar-table-body-row-cell-actionOutlineOffset: -1px;
14
+ --components-calendar-table-body-row-cell-actionCursor: pointer;
15
+ --components-calendar-table-body-row-cell-actionTextDecoration: none;
14
16
  --components-calendar-table-body-row-cellSelectedBeforeContent: none;
15
17
  --components-calendar-table-body-row-cellSelectedBeforeBorderRadius: 0;
16
18
  --components-calendar-table-body-row-cell-actionDisplay: block;
@@ -48,7 +48,6 @@
48
48
 
49
49
  }
50
50
 
51
-
52
51
  .callout-content-description-actions {
53
52
  display: flex;
54
53
  gap: var(--pr-t-spacings-75);
@@ -22,6 +22,12 @@
22
22
  }
23
23
 
24
24
  @at-root ($atRoot) {
25
+ .calloutPopover-content {
26
+ &:empty {
27
+ display: none;
28
+ }
29
+ }
30
+
25
31
  .calloutPopover-icon {
26
32
  color: var(--palettes-700, var(--palettes-neutral-700));
27
33
  }
@@ -29,33 +35,30 @@
29
35
  .calloutPopover-overlay {
30
36
  inline-size: var(--components-calloutPopover-width);
31
37
  max-inline-size: 100vw;
32
- }
33
-
34
- .calloutPopover-overlay-head {
35
38
  display: flex;
36
39
  gap: var(--pr-t-spacings-100);
37
40
  }
38
41
 
39
42
  .calloutPopover-overlay-head-title {
43
+ display: block;
40
44
  font: var(--pr-t-font-body-M);
41
45
  font-weight: var(--pr-t-font-fontWeight-semibold);
42
- margin: 0;
43
46
  padding: 0;
47
+ margin: 0;
48
+ padding-block-end: var(--pr-t-spacings-100);
49
+ margin-block-end: var(--pr-t-spacings-100);
50
+ border-block-end: var(--commons-divider-width) solid var(--palettes-neutral-200);
44
51
  }
45
52
 
46
- .calloutPopover-overlay-head-icon {
53
+ .calloutPopover-overlay-icon {
47
54
  @include icon.M;
48
55
 
49
56
  color: var(--palettes-700, var(--palettes-neutral-700));
57
+
50
58
  }
51
59
 
52
60
  .calloutPopover-overlay-content {
53
- margin-block-start: var(--pr-t-spacings-100);
54
- margin-inline-end: var(--pr-t-spacings-150);
55
61
  margin-block-end: var(--pr-t-spacings-100);
56
- margin-inline-start: var(--components-calloutPopover-content-margin);
57
- padding-block-start: var(--pr-t-spacings-100);
58
- border-block-start: var(--commons-divider-width) solid var(--palettes-neutral-200);
59
62
  }
60
63
  }
61
64
  }
@@ -24,9 +24,8 @@
24
24
 
25
25
  @mixin overlayS {
26
26
  --components-calloutPopover-width: 20rem;
27
- --components-calloutPopover-content-margin: 1.75rem;
28
27
 
29
- .calloutPopover-overlay-head-icon {
28
+ .calloutPopover-overlay-icon {
30
29
  @include icon.S;
31
30
  }
32
31
 
@@ -41,9 +40,7 @@
41
40
  }
42
41
 
43
42
  @mixin overlayIconless {
44
- --components-calloutPopover-content-margin: 0;
45
-
46
- .calloutPopover-overlay-head-icon {
43
+ .calloutPopover-overlay-icon {
47
44
  display: none;
48
45
  }
49
46
  }
@@ -4,7 +4,6 @@
4
4
  @at-root ($atRoot) {
5
5
  :root {
6
6
  --components-calloutPopover-width: 30rem;
7
- --components-calloutPopover-content-margin: 2rem;
8
7
  }
9
8
  }
10
9
  }
@@ -56,7 +56,9 @@
56
56
  font-weight: var(--pr-t-font-fontWeight-regular);
57
57
  font-size: var(--component-checkboxField-icon-fontSize);
58
58
  direction: ltr;
59
- font-family: var(--icon-fontFamily);
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';
60
62
  font-feature-settings: 'liga';
61
63
  font-style: normal;
62
64
  letter-spacing: normal;
@@ -1,22 +1,33 @@
1
- @use '@lucca-front/icons/src/commons/utils/icon';
1
+ @use '@lucca-front/icons/src/icon/exports' as icon;
2
2
  @use '@lucca-front/scss/src/commons/utils/a11y';
3
3
  @use '@lucca-front/scss/src/commons/utils/reset';
4
4
  @use '@lucca-front/scss/src/commons/utils/namespace';
5
5
 
6
6
  @mixin component($atRoot: namespace.$defaultAtRoot) {
7
7
  background-color: var(--components-chip-backgroundColor);
8
+ border: none;
8
9
  border-radius: var(--components-chip-borderRadius);
9
10
  color: var(--components-chip-color);
10
11
  display: inline-flex;
11
12
  align-items: center;
12
- gap: var(--pr-t-spacings-100);
13
13
  position: relative;
14
14
  vertical-align: middle;
15
15
  padding-block: calc(var(--pr-t-spacings-50) / 2);
16
16
  padding-inline: var(--pr-t-spacings-100);
17
17
  font: var(--components-chip-font);
18
+ max-inline-size: 100%;
19
+
20
+ .lucca-icon {
21
+ @include icon.XS;
22
+
23
+ margin-inline-end: var(--pr-t-spacings-50);
24
+ }
18
25
 
19
26
  @at-root ($atRoot) {
27
+ .chip-content {
28
+ outline: none;
29
+ }
30
+
20
31
  .chip-kill {
21
32
  @include reset.button;
22
33
 
@@ -28,6 +39,7 @@
28
39
  inline-size: var(--pr-t-spacings-300);
29
40
  block-size: var(--pr-t-spacings-300);
30
41
  margin: calc(var(--pr-t-spacings-75) * -1);
42
+ margin-inline-start: var(--pr-t-spacings-25);
31
43
  flex-shrink: 0;
32
44
  cursor: pointer;
33
45
 
@@ -41,19 +53,18 @@
41
53
 
42
54
  &::before {
43
55
  border-radius: var(--pr-t-border-radius-full);
44
- background-color: var(--components-chip-kill-disk-color, var(--palettes-neutral-700));
56
+ background-color: var(--components-chip-kill-disk-color);
45
57
  }
46
58
 
47
59
  &::after {
48
60
  mask-image: var(--components-chip-kill-background-image);
49
61
  mask-size: var(--components-chip-kill-size);
50
62
  mask-repeat: no-repeat;
51
- background-color: var(--components-chip-kill-cross-color, var(--palettes-neutral-0));
63
+ background-color: var(--components-chip-kill-cross-color);
52
64
  }
53
65
 
54
66
  &:hover {
55
- --components-chip-kill-disk-color: var(--palettes-neutral-600);
56
- --components-chip-kill-cross-color: var(--palettes-700, var(--palettes-neutral-0));
67
+ --components-chip-kill-disk-color: var(--palettes-700, var(--palettes-neutral-700));
57
68
  }
58
69
 
59
70
  &:focus-visible {
@@ -61,7 +72,7 @@
61
72
  }
62
73
 
63
74
  &:active {
64
- --components-chip-kill-disk-color: var(--palettes-50, var(--palettes-neutral-800));
75
+ --components-chip-kill-disk-color: var(--palettes-900, var(--palettes-neutral-900));
65
76
  }
66
77
  }
67
78
  }
@@ -11,12 +11,6 @@
11
11
  @include S;
12
12
  }
13
13
 
14
- // .palette-primary is deprecated
15
- &.palette-product,
16
- &.palette-primary {
17
- @include product;
18
- }
19
-
20
14
  &.mod-unkillable {
21
15
  @include unkillable;
22
16
  }
@@ -28,5 +22,9 @@
28
22
  &.is-disabled {
29
23
  @include disabled;
30
24
  }
25
+
26
+ &:has(.chip-content:focus-visible) {
27
+ @include focusVisible;
28
+ }
31
29
  }
32
30
  }
@@ -1,26 +1,12 @@
1
+ @use '@lucca-front/icons/src/icon/exports' as icon;
1
2
  @use '@lucca-front/scss/src/commons/utils/a11y';
2
3
 
3
4
  @mixin S {
4
5
  --components-chip-font: var(--pr-t-font-body-XS);
5
6
  --components-chip-borderRadius: var(--pr-t-border-radius-small);
6
- }
7
-
8
- @mixin product {
9
- .chip-kill {
10
- --components-chip-kill-cross-color: var(--palettes-product-700);
11
- --components-chip-kill-disk-color: var(--palettes-neutral-0);
12
-
13
- &:hover {
14
- --components-chip-kill-disk-color: var(--palettes-product-50);
15
- }
16
7
 
17
- &:active {
18
- --components-chip-kill-disk-color: var(--palettes-product-50);
19
- }
20
-
21
- &:focus-visible {
22
- @include a11y.focusVisible($color: var(--palettes-neutral-0), $offset: -4px, $borderRadius: var(--pr-t-border-radius-full));
23
- }
8
+ .lucca-icon {
9
+ @include icon.XXS;
24
10
  }
25
11
  }
26
12
 
@@ -33,8 +19,8 @@
33
19
  @mixin clickable {
34
20
  cursor: pointer;
35
21
  text-decoration: none;
22
+ }
36
23
 
37
- &:hover {
38
- background-color: var(--palettes-600, var(--palettes-neutral-100));
39
- }
24
+ @mixin focusVisible {
25
+ @include a11y.focusVisible;
40
26
  }
@@ -1,6 +1,6 @@
1
1
  @mixin disabled {
2
- --components-chip-backgroundColor: var(--commons-disabled-background);
3
- --components-chip-color: var(--pr-t-color-text-disabled);
2
+ --components-chip-backgroundColor: var(--palettes-neutral-200);
3
+ --components-chip-color: var(--pr-t-color-text-subtle);
4
4
 
5
5
  .chip-kill {
6
6
  display: none;
@@ -1,9 +1,11 @@
1
1
  @mixin vars {
2
2
  --components-chip-font: var(--pr-t-font-body-S);
3
- --components-chip-backgroundColor: var(--palettes-700, var(--palettes-neutral-200));
4
- --components-chip-color: var(--palettes-0, var(--palettes-text, var(--pr-t-color-text)));
3
+ --components-chip-backgroundColor: var(--palettes-100, var(--palettes-neutral-100));
4
+ --components-chip-color: var(--palettes-800, var(--pr-t-color-text));
5
5
  --components-chip-borderRadius: var(--pr-t-border-radius-default);
6
6
  --components-chip-kill-size: 0.75rem;
7
+ --components-chip-kill-disk-color: var(--palettes-800, var(--palettes-neutral-800));
8
+ --components-chip-kill-cross-color: var(--palettes-text, var(--palettes-neutral-text));
7
9
  --components-chip-kill-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='16' fill='none'%3E%3Cpath d='M5.80473 4.86192C5.54438 4.60157 5.12227 4.60157 4.86192 4.86192C4.60157 5.12227 4.60157 5.54438 4.86192 5.80473L7.05718 7.99999L4.86192 10.1953C4.60157 10.4556 4.60157 10.8777 4.86192 11.1381C5.12227 11.3984 5.54438 11.3984 5.80473 11.1381L7.99999 8.9428L10.1953 11.1381C10.4556 11.3984 10.8777 11.3984 11.1381 11.1381C11.3984 10.8777 11.3984 10.4556 11.1381 10.1953L8.9428 7.99999L11.1381 5.80473C11.3984 5.54438 11.3984 5.12227 11.1381 4.86192C10.8777 4.60157 10.4556 4.60157 10.1953 4.86192L7.99999 7.05718L5.80473 4.86192Z' fill='currentColor'/%3E%3C/svg%3E");
8
10
 
9
11
  // Deprecated
@@ -5,7 +5,7 @@
5
5
  @mixin component {
6
6
  @include reset.button;
7
7
 
8
- display: grid;
8
+ display: var(--components-clear-display);
9
9
  grid-template-columns: 1fr;
10
10
  grid-template-rows: 1fr;
11
11
  grid-template-areas: 'main';
@@ -34,8 +34,8 @@
34
34
  }
35
35
 
36
36
  &:hover {
37
- --components-clear-cross-color: var(--palettes-neutral-0);
38
- --components-clear-background: var(--palettes-neutral-600);
37
+ --components-clear-cross-color: var(--palettes-0, var(--palettes-neutral-0));
38
+ --components-clear-background: var(--palettes-700, var(--palettes-neutral-700));
39
39
  }
40
40
 
41
41
  &:focus-visible {
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  &:active {
46
- --components-clear-background: var(--palettes-neutral-800);
46
+ --components-clear-background: var(--palettes-900, var(--palettes-neutral-900));
47
47
  }
48
48
 
49
49
  // to prevent breaking change. lucca-icon is no longer needed.
@@ -11,24 +11,27 @@
11
11
  @include S;
12
12
  }
13
13
 
14
- // .palette-primary is deprecated
15
- &.palette-product:not([disabled]),
16
- &.palette-primary:not([disabled]) {
17
- @include product;
18
- }
19
-
20
- &.mod-inverted:not([disabled]) {
14
+ &.mod-inverted {
21
15
  @include inverted;
22
-
23
- &.palette-product:not([disabled]) {
24
- @include invertedProduct;
25
- }
26
16
  }
27
17
 
28
18
  &[disabled] {
19
+ cursor: default;
20
+
29
21
  @include disabled;
22
+ }
30
23
 
31
- cursor: default;
24
+ &[hidden],
25
+ .filterPill[disabled] &,
26
+ .filterPill:not(.is-filled) &,
27
+ .textfield-input[disabled] &,
28
+ .textfield-input:not(.is-filled) &,
29
+ .textfield-input:not(.is-selected) & {
30
+ @include hidden;
31
+ }
32
+
33
+ .multiSelect.is-selected:has(.multipleSelect-clear) & {
34
+ --components-clear-display: grid;
32
35
  }
33
36
  }
34
37
  }
@@ -1,13 +1,13 @@
1
1
  @mixin product {
2
2
  --components-clear-cross-color: var(--palettes-neutral-0);
3
- --components-clear-background: var(--palettes-product-700);
3
+ --components-clear-background: var(--palettes-product-800);
4
4
 
5
5
  &:hover {
6
- --components-clear-background: var(--palettes-product-600);
6
+ --components-clear-background: var(--palettes-product-700);
7
7
  }
8
8
 
9
9
  &:active {
10
- --components-clear-background: var(--palettes-product-800);
10
+ --components-clear-background: var(--palettes-product-900);
11
11
  }
12
12
  }
13
13
 
@@ -17,27 +17,14 @@
17
17
  }
18
18
 
19
19
  @mixin inverted {
20
- --components-clear-cross-color: var(--palettes-neutral-700);
21
- --components-clear-background: var(--palettes-neutral-0);
20
+ --components-clear-cross-color: var(--palettes-800, var(--palettes-neutral-800));
21
+ --components-clear-background: var(--palettes-0, var(--palettes-neutral-0));
22
22
 
23
23
  &:hover {
24
- --components-clear-background: var(--palettes-neutral-50);
24
+ --components-clear-background: var(--palettes-50, var(--palettes-neutral-50));
25
25
  }
26
26
 
27
27
  &:active {
28
- --components-clear-background: var(--palettes-neutral-100);
29
- }
30
- }
31
-
32
- @mixin invertedProduct {
33
- --components-clear-cross-color: var(--palettes-product-700);
34
- --components-clear-background: var(--palettes-neutral-0);
35
-
36
- &:hover {
37
- --components-clear-background: var(--palettes-product-50);
38
- }
39
-
40
- &:active {
41
- --components-clear-background: var(--palettes-product-50);
28
+ --components-clear-background: var(--palettes-100, var(--palettes-neutral-100));
42
29
  }
43
30
  }
@@ -1,4 +1,13 @@
1
1
  @mixin disabled {
2
2
  --components-clear-cross-color: var(--palettes-neutral-500); // disabled token candidate
3
- --components-clear-background: var(--palettes-neutral-300); // disabled token candidate
3
+
4
+ &,
5
+ &:hover,
6
+ &:active {
7
+ --components-clear-background: var(--palettes-neutral-300); // disabled token candidate
8
+ }
9
+ }
10
+
11
+ @mixin hidden {
12
+ --components-clear-display: none;
4
13
  }
@@ -1,6 +1,7 @@
1
1
  @mixin vars {
2
+ --components-clear-display: grid;
2
3
  --components-clear-size: 1rem;
3
- --components-clear-background: var(--palettes-neutral-700);
4
- --components-clear-cross-color: var(--palettes-neutral-0);
4
+ --components-clear-background: var(--palettes-800, var(--palettes-neutral-800));
5
+ --components-clear-cross-color: var(--palettes-0, var(--palettes-neutral-0));
5
6
  --components-clear-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='16' fill='none'%3E%3Cpath d='M5.80473 4.86192C5.54438 4.60157 5.12227 4.60157 4.86192 4.86192C4.60157 5.12227 4.60157 5.54438 4.86192 5.80473L7.05718 7.99999L4.86192 10.1953C4.60157 10.4556 4.60157 10.8777 4.86192 11.1381C5.12227 11.3984 5.54438 11.3984 5.80473 11.1381L7.99999 8.9428L10.1953 11.1381C10.4556 11.3984 10.8777 11.3984 11.1381 11.1381C11.3984 10.8777 11.3984 10.4556 11.1381 10.1953L8.9428 7.99999L11.1381 5.80473C11.3984 5.54438 11.3984 5.12227 11.1381 4.86192C10.8777 4.60157 10.4556 4.60157 10.1953 4.86192L7.99999 7.05718L5.80473 4.86192Z' fill='currentColor'/%3E%3C/svg%3E");
6
7
  }
@@ -19,7 +19,7 @@
19
19
  .dataTableWrapper {
20
20
  border-radius: var(--components-dataTable-borderRadius);
21
21
  border: 1px solid var(--commons-border-200);
22
- overflow: var(--components-dataTable-overflow);
22
+ overflow: auto;
23
23
  background-color: var(--components-dataTable-cell-background);
24
24
  contain: paint; // Fix overflow on webkit when table has scroll
25
25
  display: block;
@@ -31,6 +31,17 @@
31
31
 
32
32
  .dataTableWrapper-pagination {
33
33
  border-block-start: 1px solid var(--commons-border-200);
34
+ background-color: var(--components-dataTable-cell-background);
35
+ display: flex;
36
+ justify-content: flex-end;
37
+ position: sticky;
38
+ inset-block-end: 0;
39
+ z-index: 4;
40
+
41
+ > * {
42
+ position: sticky;
43
+ inset-inline-end: 0;
44
+ }
34
45
 
35
46
  &:empty {
36
47
  display: none;