@lucca-front/scss 21.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "21.0.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": "21.0.0-rc.1"
26
+ "@lucca-front/icons": "21.0.0-rc.2"
27
27
  }
28
28
  }
@@ -165,7 +165,7 @@
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
171
 
@@ -8,7 +8,7 @@
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
14
  --components-calendar-table-body-row-cell-actionCursor: pointer;
@@ -1,15 +1,15 @@
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);
@@ -17,6 +17,12 @@
17
17
  font: var(--components-chip-font);
18
18
  max-inline-size: 100%;
19
19
 
20
+ .lucca-icon {
21
+ @include icon.XS;
22
+
23
+ margin-inline-end: var(--pr-t-spacings-50);
24
+ }
25
+
20
26
  @at-root ($atRoot) {
21
27
  .chip-content {
22
28
  outline: none;
@@ -33,6 +39,7 @@
33
39
  inline-size: var(--pr-t-spacings-300);
34
40
  block-size: var(--pr-t-spacings-300);
35
41
  margin: calc(var(--pr-t-spacings-75) * -1);
42
+ margin-inline-start: var(--pr-t-spacings-25);
36
43
  flex-shrink: 0;
37
44
  cursor: pointer;
38
45
 
@@ -46,19 +53,18 @@
46
53
 
47
54
  &::before {
48
55
  border-radius: var(--pr-t-border-radius-full);
49
- background-color: var(--components-chip-kill-disk-color, var(--palettes-neutral-700));
56
+ background-color: var(--components-chip-kill-disk-color);
50
57
  }
51
58
 
52
59
  &::after {
53
60
  mask-image: var(--components-chip-kill-background-image);
54
61
  mask-size: var(--components-chip-kill-size);
55
62
  mask-repeat: no-repeat;
56
- background-color: var(--components-chip-kill-cross-color, var(--palettes-neutral-0));
63
+ background-color: var(--components-chip-kill-cross-color);
57
64
  }
58
65
 
59
66
  &:hover {
60
- --components-chip-kill-disk-color: var(--palettes-neutral-600);
61
- --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));
62
68
  }
63
69
 
64
70
  &:focus-visible {
@@ -66,7 +72,7 @@
66
72
  }
67
73
 
68
74
  &:active {
69
- --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));
70
76
  }
71
77
  }
72
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
  }
@@ -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,10 +19,6 @@
33
19
  @mixin clickable {
34
20
  cursor: pointer;
35
21
  text-decoration: none;
36
-
37
- &:hover {
38
- background-color: var(--palettes-600, var(--palettes-neutral-100));
39
- }
40
22
  }
41
23
 
42
24
  @mixin focusVisible {
@@ -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
@@ -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,18 +11,8 @@
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-inverted {
21
15
  @include inverted;
22
-
23
- &:where(.palette-product) {
24
- @include invertedProduct;
25
- }
26
16
  }
27
17
 
28
18
  &[disabled] {
@@ -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-100);
28
+ --components-clear-background: var(--palettes-100, var(--palettes-neutral-100));
42
29
  }
43
30
  }
@@ -1,7 +1,7 @@
1
1
  @mixin vars {
2
2
  --components-clear-display: grid;
3
3
  --components-clear-size: 1rem;
4
- --components-clear-background: var(--palettes-neutral-700);
5
- --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));
6
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");
7
7
  }
@@ -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;
@@ -10,6 +10,7 @@
10
10
  @layer mods {
11
11
  &:has(.dataTable.mod-stickyHeader, .dataTable-head.mod-sticky) {
12
12
  @include stickyHeader;
13
+ @include firstRowVisible;
13
14
  }
14
15
 
15
16
  &:has(.dataTableShadows),
@@ -53,6 +54,10 @@
53
54
  &:has(.dataTable.is-lastColumnVisibleBeforeColsEnd) {
54
55
  @include lastColumnVisibleBeforeColsEnd;
55
56
  }
57
+
58
+ &:has(.dataTableWrapper-pagination:not(:empty)) {
59
+ @include pagination;
60
+ }
56
61
  }
57
62
 
58
63
  &:has(.dataTable-head.is-firstBodyRowVisible) {
@@ -72,7 +72,7 @@
72
72
  }
73
73
 
74
74
  &::after {
75
- inset-block-end: 0;
75
+ inset-block-end: var(--components-dataTable-shadow-lastRowInsetBlockEnd);
76
76
  transform: scaleY(-1);
77
77
  opacity: var(--components-dataTable-shadow-lastRowOpacity);
78
78
  }
@@ -169,3 +169,7 @@
169
169
  }
170
170
  }
171
171
  }
172
+
173
+ @mixin pagination {
174
+ --components-dataTable-shadow-lastRowInsetBlockEnd: var(--pr-t-spacings-600);
175
+ }
@@ -6,4 +6,5 @@
6
6
  --components-dataTable-header-shadow-opacity: 1;
7
7
  --components-dataTable-shadow-colsStart-opacity: 1;
8
8
  --components-dataTable-shadow-colsEnd-opacity: 1;
9
+ --components-dataTable-shadow-lastRowInsetBlockEnd: 0;
9
10
  }
@@ -40,6 +40,10 @@
40
40
  }
41
41
  }
42
42
 
43
+ .fieldset-title-content-text {
44
+ padding-block: var(--pr-t-spacings-50);
45
+ }
46
+
43
47
  .fieldset-title-content-text-helper {
44
48
  font: var(--pr-t-font-body-S);
45
49
  font-weight: var(--pr-t-font-fontWeight-regular);
@@ -22,5 +22,9 @@
22
22
  &:has(.fieldset-title-content[aria-expanded='true']) {
23
23
  @include expanded;
24
24
  }
25
+
26
+ &:has(.fieldset-title-content-action:not(:empty)) {
27
+ @include withAction;
28
+ }
25
29
  }
26
30
  }
@@ -1,4 +1,5 @@
1
1
  @use '@lucca-front/scss/src/commons/utils/a11y';
2
+ @use '@lucca-front/scss/src/components/button/exports' as button;
2
3
 
3
4
  @mixin S {
4
5
  --components-fieldset-title: var(--pr-t-font-heading-4);
@@ -19,3 +20,12 @@
19
20
  }
20
21
  }
21
22
  }
23
+
24
+ @mixin withAction {
25
+ .fieldset-title-content-action {
26
+ .button {
27
+ @include button.outlined;
28
+ @include button.S;
29
+ }
30
+ }
31
+ }
@@ -1,6 +1,6 @@
1
1
  @mixin vars {
2
2
  --components-fieldset-title: var(--pr-t-font-heading-3);
3
- --components-fieldset-gap: var(--pr-t-spacings-150);
3
+ --components-fieldset-gap: var(--pr-t-spacings-100);
4
4
  --components-fieldset-contentMaxWidth: 40rem;
5
5
  --components-fieldset-title-iconRotation: 0deg;
6
6
  }
@@ -1,7 +1,6 @@
1
1
  @use '@lucca-front/scss/src/commons/utils/form';
2
2
  @use '@lucca-front/scss/src/components/formLabel/exports' as formLabel;
3
3
  @use '@lucca-front/scss/src/components/inlineMessage/exports' as inlineMessage;
4
- @use '@lucca-front/scss/src/components/title/exports' as title;
5
4
  @use '@lucca-front/scss/src/commons/utils/namespace';
6
5
 
7
6
  @mixin component($atRoot: namespace.$defaultAtRoot) {
@@ -42,8 +41,7 @@
42
41
  }
43
42
 
44
43
  .form-header-title {
45
- @include title.component;
46
- @include title.h1;
44
+ font: var(--pr-t-font-heading-2);
47
45
  }
48
46
 
49
47
  .form-header-mandatory {
@@ -3,6 +3,7 @@
3
3
  @use '@lucca-front/scss/src/commons/utils/text';
4
4
  @use '@lucca-front/icons/src/icon/exports' as icon;
5
5
  @use '@lucca-front/scss/src/commons/utils/namespace';
6
+ @use '@lucca-front/scss/src/commons/utils/color';
6
7
 
7
8
  @mixin component($atRoot: namespace.$defaultAtRoot) {
8
9
  display: flex;
@@ -32,6 +33,8 @@
32
33
 
33
34
  .multipleSelect-displayer-chip {
34
35
  min-inline-size: 0;
36
+
37
+ @include color.palette('product');
35
38
  }
36
39
 
37
40
  .multipleSelect-displayer-chip-value {
@@ -1,4 +1,5 @@
1
1
  @use '@lucca-front/scss/src/commons/utils/a11y';
2
+ @use '@lucca-front/scss/src/components/chip/exports' as chip;
2
3
 
3
4
  @mixin focused {
4
5
  @include a11y.focusVisible($offset: 3px);
@@ -16,6 +17,10 @@
16
17
  --components-multiSelect-arrow-color: var(--pr-t-color-input-icon-disabled);
17
18
 
18
19
  pointer-events: none;
20
+
21
+ .multipleSelect-displayer-chip {
22
+ @include chip.disabled;
23
+ }
19
24
  }
20
25
 
21
26
  @mixin expanded {
@@ -10,6 +10,7 @@
10
10
  position: relative;
11
11
  min-block-size: var(--pr-t-spacings-500);
12
12
  min-inline-size: var(--pr-t-spacings-500);
13
+ max-inline-size: var(--components-popover-maxInlineSize);
13
14
  animation: popup var(--commons-animations-durations-fast) ease 1 forwards;
14
15
 
15
16
  // need of a higher specificity
@@ -1,3 +1,4 @@
1
1
  @mixin vars {
2
2
  --components-popover-padding: var(--pr-t-spacings-100);
3
+ --components-popover-maxInlineSize: 25rem;
3
4
  }
@@ -26,10 +26,6 @@
26
26
 
27
27
  &.is-disabled {
28
28
  @include disabled;
29
-
30
- .richTextField-content-chip {
31
- @include chipDisabled;
32
- }
33
29
  }
34
30
 
35
31
  &.mod-autoResize {
@@ -16,11 +16,6 @@
16
16
  --components-richTextField-borderColor: var(--pr-t-color-input-border);
17
17
  }
18
18
 
19
- @mixin chipDisabled {
20
- --components-chip-backgroundColor: var(--palettes-neutral-200);
21
- --components-chip-color: var(--pr-t-color-text-subtle);
22
- }
23
-
24
19
  @mixin error {
25
20
  --components-richTextField-borderColor: var(--pr-t-color-input-border-critical);
26
21
  --components-richTextField-backgroundColor: var(--pr-t-color-input-background-critical);