@lucca-front/scss 20.3.3-rc.6 → 21.0.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.
Files changed (72) 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/calendar/component.scss +5 -9
  8. package/src/components/calendar/index.scss +8 -0
  9. package/src/components/calendar/states.scss +6 -0
  10. package/src/components/calendar/vars.scss +2 -0
  11. package/src/components/callout/component.scss +0 -1
  12. package/src/components/calloutPopover/component.scss +13 -10
  13. package/src/components/calloutPopover/mods.scss +2 -5
  14. package/src/components/calloutPopover/vars.scss +0 -1
  15. package/src/components/chip/component.scss +5 -0
  16. package/src/components/chip/index.scss +4 -0
  17. package/src/components/chip/mods.scss +4 -0
  18. package/src/components/clear/component.scss +1 -1
  19. package/src/components/clear/index.scss +18 -5
  20. package/src/components/clear/mods.scss +1 -1
  21. package/src/components/clear/states.scss +10 -1
  22. package/src/components/clear/vars.scss +1 -0
  23. package/src/components/dataTable/component.scss +1 -1
  24. package/src/components/dataTable/index.scss +14 -0
  25. package/src/components/dataTable/mods.scss +16 -3
  26. package/src/components/dataTable/vars.scss +0 -1
  27. package/src/components/dataTableSticked/index.scss +10 -0
  28. package/src/components/dataTableSticked/mods.scss +4 -8
  29. package/src/components/dataTableSticked/states.scss +7 -0
  30. package/src/components/dataTableSticked/vars.scss +2 -0
  31. package/src/components/dialog/component.scss +1 -14
  32. package/src/components/dialog/index.scss +4 -0
  33. package/src/components/dialog/mods.scss +15 -0
  34. package/src/components/fancyBox/component.scss +15 -20
  35. package/src/components/fancyBox/index.scss +4 -0
  36. package/src/components/fancyBox/mods.scss +11 -0
  37. package/src/components/fancyBox/vars.scss +10 -0
  38. package/src/components/filterPill/component.scss +0 -1
  39. package/src/components/filterPill/states.scss +3 -2
  40. package/src/components/filterPill/vars.scss +0 -1
  41. package/src/components/form/component.scss +6 -2
  42. package/src/components/indexTable/component.scss +11 -28
  43. package/src/components/indexTable/index.scss +34 -3
  44. package/src/components/indexTable/mods.scss +45 -10
  45. package/src/components/indexTable/states.scss +5 -1
  46. package/src/components/indexTable/vars.scss +1 -0
  47. package/src/components/inputFramed/component.scss +8 -9
  48. package/src/components/inputFramed/index.scss +13 -3
  49. package/src/components/inputFramed/mods.scss +14 -0
  50. package/src/components/inputFramed/vars.scss +9 -2
  51. package/src/components/link/mods.scss +3 -2
  52. package/src/components/listing/component.scss +20 -2
  53. package/src/components/listing/index.scss +10 -0
  54. package/src/components/listing/mods.scss +49 -0
  55. package/src/components/listing/vars.scss +16 -2
  56. package/src/components/multiSelect/index.scss +4 -14
  57. package/src/components/multiSelect/mods.scss +0 -28
  58. package/src/components/multiSelect/states.scss +0 -16
  59. package/src/components/plgPush/component.scss +4 -0
  60. package/src/components/richText/component.scss +5 -6
  61. package/src/components/richText/index.scss +4 -0
  62. package/src/components/richText/states.scss +5 -0
  63. package/src/components/scrollBox/component.scss +4 -0
  64. package/src/components/simpleSelect/component.scss +10 -3
  65. package/src/components/sortableList/component.scss +23 -4
  66. package/src/components/sortableList/index.scss +13 -0
  67. package/src/components/sortableList/mods.scss +6 -0
  68. package/src/components/tableFixed/mods.scss +3 -3
  69. package/src/components/tableOfContent/component.scss +2 -1
  70. package/src/components/tableOfContent/index.scss +2 -1
  71. package/src/components/textfields/index.scss +3 -3
  72. package/src/components/textfields/states.scss +3 -3
@@ -1,7 +1,5 @@
1
1
  @use '@lucca-front/icons/src/icon/exports' as icon;
2
-
3
2
  @use '@lucca-front/scss/src/commons/utils/a11y';
4
-
5
3
  @use '@lucca-front/scss/src/components/clear/exports' as clear;
6
4
  @use '@lucca-front/scss/src/components/chip/exports' as chip;
7
5
  @use '@lucca-front/scss/src/components/numericBadge/exports' as numericBadge;
@@ -36,32 +34,6 @@
36
34
  @include chip.S;
37
35
  }
38
36
  }
39
-
40
- .multipleSelect-displayer-numericBadge {
41
- // :not(.class) is only there to increase specificity when the class isn’t present
42
- // but the class should be present, and this code is temporary
43
- &.numericBadge,
44
- &:not(.numericBadge) {
45
- @include numericBadge.S;
46
- }
47
- }
48
- }
49
-
50
- @mixin displayerFilter {
51
- display: grid;
52
-
53
- .multipleSelect-displayer-filter {
54
- grid-column-start: 1;
55
- grid-row-start: 1;
56
- display: flex;
57
- gap: var(--pr-t-spacings-50);
58
- min-inline-size: 0;
59
- }
60
-
61
- .multipleSelect-displayer-search {
62
- grid-column-start: 1;
63
- grid-row-start: 1;
64
- }
65
37
  }
66
38
 
67
39
  @mixin filterPill {
@@ -35,22 +35,6 @@
35
35
  }
36
36
  }
37
37
 
38
- @mixin displayerFilterFilled {
39
- .multipleSelect-displayer-search {
40
- opacity: 0;
41
- }
42
- }
43
-
44
- @mixin displayerFilterExpanded {
45
- .multipleSelect-displayer-filter {
46
- display: none;
47
- }
48
-
49
- .multipleSelect-displayer-search {
50
- opacity: 1;
51
- }
52
- }
53
-
54
38
  @mixin selected {
55
39
  .multipleSelect-displayer-search {
56
40
  &[readonly],
@@ -59,5 +59,9 @@
59
59
  gap: var(--pr-t-spacings-25);
60
60
  padding: var(--pr-t-spacings-0);
61
61
  }
62
+
63
+ .plgPush-close {
64
+ margin-inline-start: auto;
65
+ }
62
66
  }
63
67
  }
@@ -102,8 +102,12 @@
102
102
  border-block-start: 0;
103
103
  }
104
104
 
105
- .richTextField-toolbar-chips-item {
105
+ .richTextField-toolbar-chips-chip {
106
106
  border: 0;
107
+
108
+ &:focus-visible {
109
+ @include a11y.focusVisible;
110
+ }
107
111
  }
108
112
 
109
113
  .richTextField-content {
@@ -119,11 +123,6 @@
119
123
  &:focus-visible {
120
124
  @include a11y.focusVisible;
121
125
  }
122
-
123
- &.is-disabled {
124
- --components-chip-backgroundColor: var(--palettes-neutral-200);
125
- --components-chip-color: var(--pr-t-color-input-text-disabled);
126
- }
127
126
  }
128
127
 
129
128
  .richTextField-content-placeholder {
@@ -26,6 +26,10 @@
26
26
 
27
27
  &.is-disabled {
28
28
  @include disabled;
29
+
30
+ .richTextField-content-chip {
31
+ @include chipDisabled;
32
+ }
29
33
  }
30
34
 
31
35
  &.mod-autoResize {
@@ -16,6 +16,11 @@
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
+
19
24
  @mixin error {
20
25
  --components-richTextField-borderColor: var(--pr-t-color-input-border-critical);
21
26
  --components-richTextField-backgroundColor: var(--pr-t-color-input-background-critical);
@@ -16,6 +16,10 @@
16
16
  margin-block: var(--components-scrollBox-marginBlock);
17
17
  border-radius: var(--pr-t-border-radius-default);
18
18
 
19
+ > * {
20
+ flex-shrink: 0;
21
+ }
22
+
19
23
  &:focus-visible {
20
24
  @include a11y.focusVisible($offset: 0);
21
25
  }
@@ -7,7 +7,7 @@
7
7
  @at-root ($atRoot) {
8
8
  .simpleSelect-field {
9
9
  display: grid;
10
- grid-template-columns: 1fr auto auto;
10
+ grid-template-columns: auto 1fr auto auto;
11
11
  align-items: center;
12
12
  box-shadow: 0 0 0 1px var(--components-simpleSelect-border-color);
13
13
  background-color: var(--components-simpleSelect-background);
@@ -22,8 +22,15 @@
22
22
  }
23
23
  }
24
24
 
25
+ .simpleSelect-field-prefix {
26
+ &:not(:empty) {
27
+ display: flex;
28
+ margin-inline-end: var(--pr-t-spacings-50);
29
+ }
30
+ }
31
+
25
32
  .simpleSelect-field-input {
26
- grid-column-start: 1;
33
+ grid-column-start: 2;
27
34
  grid-row-start: 1;
28
35
  font: var(--components-simpleSelect-font);
29
36
  padding: 0;
@@ -42,7 +49,7 @@
42
49
  }
43
50
 
44
51
  .simpleSelect-field-value {
45
- grid-column-start: 1;
52
+ grid-column-start: 2;
46
53
  grid-row-start: 1;
47
54
  inline-size: 100%;
48
55
  font: var(--components-simpleSelect-font);
@@ -1,5 +1,8 @@
1
1
  @use '@lucca-front/icons/src/commons/utils/icon';
2
2
  @use '@lucca-front/scss/src/commons/utils/namespace';
3
+ @use '@lucca-front/scss/src/commons/utils/reset';
4
+
5
+ @use '@lucca-front/scss/src/components/button/exports' as button;
3
6
 
4
7
  @mixin component($atRoot: namespace.$defaultAtRoot) {
5
8
  background-color: var(--pr-t-elevation-surface-raised);
@@ -7,6 +10,7 @@
7
10
  border-radius: var(--pr-t-border-radius-default);
8
11
  list-style: none;
9
12
  padding: 0;
13
+ overflow: hidden;
10
14
 
11
15
  @at-root ($atRoot) {
12
16
  .sortableList-item {
@@ -18,7 +22,9 @@
18
22
  position: relative;
19
23
  text-decoration: none;
20
24
  gap: var(--pr-t-spacings-100);
21
- padding: var(--components-sortableList-padding);
25
+
26
+ // required to overload the cdk padding reset
27
+ padding: var(--components-sortableList-padding) !important;
22
28
 
23
29
  &:last-child {
24
30
  border: 0;
@@ -51,14 +57,27 @@
51
57
  }
52
58
 
53
59
  .sortableList-item-handler {
60
+ &.button {
61
+ @include button.S;
62
+ @include button.onlyIcon;
63
+ @include button.ghost;
64
+
65
+ --components-button-padding: var(--pr-t-spacings-50);
66
+ }
67
+
54
68
  color: var(--palettes-neutral-600);
55
69
  font-size: var(--components-sortableList-handler-size);
56
70
  cursor: move;
71
+ inline-size: auto;
72
+ border-radius: var(--pr-t-border-radius-small);
73
+ align-self: center;
57
74
 
58
- &::before {
59
- @include icon.generate('drag');
75
+ &:not(:has(.lucca-icon)) {
76
+ &::before {
77
+ @include icon.generate('drag');
60
78
 
61
- vertical-align: top;
79
+ vertical-align: top;
80
+ }
62
81
  }
63
82
  }
64
83
 
@@ -18,5 +18,18 @@
18
18
  &.mod-clickable {
19
19
  @include clickable;
20
20
  }
21
+
22
+ &.mod-S {
23
+ @include S;
24
+ }
25
+ }
26
+ }
27
+
28
+ // drag and drop preview
29
+ :not(.sortableList) {
30
+ > .sortableList-item {
31
+ @layer components {
32
+ @include vars;
33
+ }
21
34
  }
22
35
  }
@@ -1,3 +1,5 @@
1
+ @use '@lucca-front/icons/src/icon/exports' as icon;
2
+
1
3
  @mixin clickable {
2
4
  transition-duration: var(--commons-animations-durations-fast);
3
5
  transition-property: background-color;
@@ -18,4 +20,8 @@
18
20
  // Deprecated
19
21
  --components-sortableList-description-fontSize: var(--pr-t-font-body-S-fontSize);
20
22
  --components-sortableList-description-lineHeight: var(--pr-t-font-body-S-lineHeight);
23
+
24
+ .lucca-icon {
25
+ @include icon.S;
26
+ }
21
27
  }
@@ -26,7 +26,7 @@
26
26
  .table-head-row-cell,
27
27
  .table-body-row-cell,
28
28
  .table-foot-row-cell {
29
- @include cellFixedWidth;
29
+ @include cellInlineSize;
30
30
  }
31
31
  }
32
32
 
@@ -36,14 +36,14 @@
36
36
  .table-head-row-cell,
37
37
  .table-body-row-cell,
38
38
  .table-foot-row-cell {
39
- @include cellFixedWidth;
39
+ @include cellInlineSize;
40
40
  }
41
41
  }
42
42
  }
43
43
  }
44
44
  }
45
45
 
46
- @mixin cellFixedWidth {
46
+ @mixin cellInlineSize {
47
47
  min-inline-size: var(--cell-width, auto);
48
48
  inline-size: var(--cell-width, auto);
49
49
  }
@@ -12,7 +12,8 @@
12
12
  @include reset.list;
13
13
  }
14
14
 
15
- .tableOfContent-list-item-action {
15
+ // Second selector to get rid of tableOfContent-list-item-action on angular component
16
+ .tableOfContent-list-item-action, .tableOfContent-list-item > a {
16
17
  @include reset.button;
17
18
 
18
19
  border-radius: var(--pr-t-border-radius-default);
@@ -7,7 +7,8 @@
7
7
  }
8
8
  }
9
9
 
10
- .tableOfContent-list-item-action {
10
+ // Second selector to get rid of tableOfContent-list-item-action on angular component
11
+ .tableOfContent-list-item-action, .tableOfContent-list-item > a {
11
12
  @layer mods {
12
13
  &:not(.disabled, .is-disabled, [disabled]) {
13
14
  &:is(:hover) {
@@ -391,15 +391,15 @@
391
391
 
392
392
  .textfield-input {
393
393
  &:is(:hover) {
394
- @include framedInputHover;
394
+ @include inputFramedHover;
395
395
  }
396
396
 
397
397
  &:is(:focus) {
398
- @include framedInputFocus;
398
+ @include inputFramedFocus;
399
399
  }
400
400
 
401
401
  &:is(:invalid, .is-invalid, .invalid) {
402
- @include framedInputInvalid;
402
+ @include inputFramedInvalid;
403
403
  }
404
404
  }
405
405
  }
@@ -40,7 +40,7 @@
40
40
  }
41
41
  }
42
42
 
43
- @mixin framedInputHover {
43
+ @mixin inputFramedHover {
44
44
  &:not(:disabled, .is-error, .is-success, .is-valid, .is-warning, .is-invalid) {
45
45
  position: relative;
46
46
  z-index: 1;
@@ -49,7 +49,7 @@
49
49
  }
50
50
  }
51
51
 
52
- @mixin framedInputFocus {
52
+ @mixin inputFramedFocus {
53
53
  &:not(:disabled, .is-error, .is-success, .is-valid, .is-warning, .is-invalid) {
54
54
  position: relative;
55
55
  z-index: 4;
@@ -60,7 +60,7 @@
60
60
  }
61
61
  }
62
62
 
63
- @mixin framedInputInvalid {
63
+ @mixin inputFramedInvalid {
64
64
  ~ .textfield-label {
65
65
  color: var(--palettes-error-700);
66
66
  }