@lucca-front/scss 20.3.3-rc.3 → 20.3.3-rc.5

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 (54) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/components/breadcrumbs/component.scss +1 -2
  4. package/src/components/breadcrumbs/index.scss +1 -2
  5. package/src/components/breadcrumbs/mods.scss +1 -2
  6. package/src/components/button/index.scss +1 -1
  7. package/src/components/calendar/component.scss +1 -3
  8. package/src/components/callout/component.scss +1 -0
  9. package/src/components/calloutPopover/component.scss +10 -13
  10. package/src/components/calloutPopover/mods.scss +5 -2
  11. package/src/components/calloutPopover/vars.scss +1 -0
  12. package/src/components/chip/component.scss +0 -5
  13. package/src/components/chip/index.scss +0 -4
  14. package/src/components/chip/mods.scss +0 -4
  15. package/src/components/clear/component.scss +1 -1
  16. package/src/components/clear/index.scss +5 -18
  17. package/src/components/clear/mods.scss +1 -1
  18. package/src/components/clear/states.scss +1 -10
  19. package/src/components/clear/vars.scss +0 -1
  20. package/src/components/dataTable/component.scss +6 -7
  21. package/src/components/dataTable/mods.scss +4 -4
  22. package/src/components/dataTable/vars.scss +1 -0
  23. package/src/components/dataTableSticked/index.scss +0 -10
  24. package/src/components/dataTableSticked/mods.scss +8 -4
  25. package/src/components/dataTableSticked/states.scss +0 -7
  26. package/src/components/dataTableSticked/vars.scss +0 -2
  27. package/src/components/dropdown/mods.scss +4 -4
  28. package/src/components/filterPill/component.scss +1 -0
  29. package/src/components/filterPill/states.scss +2 -3
  30. package/src/components/filterPill/vars.scss +1 -0
  31. package/src/components/form/component.scss +2 -6
  32. package/src/components/highlightData/mods.scss +1 -1
  33. package/src/components/indexTable/mods.scss +3 -3
  34. package/src/components/inputFramed/component.scss +11 -17
  35. package/src/components/inputFramed/index.scss +5 -7
  36. package/src/components/inputFramed/mods.scss +0 -10
  37. package/src/components/inputFramed/states.scss +8 -0
  38. package/src/components/inputFramed/vars.scss +2 -8
  39. package/src/components/multiSelect/component.scss +7 -0
  40. package/src/components/multiSelect/index.scss +16 -16
  41. package/src/components/multiSelect/mods.scss +2 -0
  42. package/src/components/plgPush/component.scss +0 -4
  43. package/src/components/richText/component.scss +1 -35
  44. package/src/components/richText/index.scss +29 -0
  45. package/src/components/richText/states.scss +29 -0
  46. package/src/components/scrollBox/component.scss +0 -4
  47. package/src/components/tableFixed/mods.scss +3 -3
  48. package/src/components/tableOfContent/component.scss +1 -2
  49. package/src/components/tableOfContent/index.scss +1 -2
  50. package/src/components/textfields/index.scss +3 -3
  51. package/src/components/textfields/states.scss +3 -3
  52. package/src/components/tooltip/component.scss +0 -1
  53. package/src/components/verticalNavigation/component.scss +0 -1
  54. package/src/components/verticalNavigation/vars.scss +1 -1
@@ -3,7 +3,7 @@
3
3
  @mixin component($atRoot: namespace.$defaultAtRoot) {
4
4
  position: relative;
5
5
  overflow: hidden;
6
- padding: var(--components-inputFramed-padding);
6
+ padding: var(--pr-t-spacings-50);
7
7
  border: solid 1px var(--components-inputFramed-borderColor);
8
8
  border-radius: var(--pr-t-border-radius-default);
9
9
  background-color: var(--palettes-neutral-0);
@@ -16,7 +16,8 @@
16
16
  @at-root ($atRoot) {
17
17
  .inputFramed-header-label.formLabel {
18
18
  position: static;
19
- font-weight: var(--components-inputFramed-header-label-fontWeight);
19
+ font-weight: var(--pr-t-font-fontWeight-semibold);
20
+
20
21
 
21
22
  &::after {
22
23
  content: '';
@@ -26,24 +27,16 @@
26
27
  }
27
28
 
28
29
  .inputFramed-header-field {
30
+ flex: 1;
31
+
29
32
  &.form-field.form-field {
30
33
  position: static;
31
34
  margin-block: 0;
32
35
  }
33
36
  }
34
37
 
35
- .inputFramed-header-input.radioField-input,
36
- .inputFramed-header-input.checkboxField-input {
37
- ~ .inputFramed-header-icon.radioField-icon,
38
- ~ .inputFramed-header-icon.checkboxField-icon {
39
- &::after {
40
- outline: none;
41
- }
42
- }
43
- }
44
-
45
38
  .inputFramed-header {
46
- padding: var(--components-inputFramed-header-padding);
39
+ padding: var(--components-inputFramed-padding);
47
40
  border-radius: var(--pr-t-border-radius-50);
48
41
  background-color: var(--components-inputFramed-header-backgroundColor);
49
42
  transition-property: background-color;
@@ -51,6 +44,7 @@
51
44
  position: relative;
52
45
  flex-grow: 1;
53
46
  display: flex;
47
+ flex-wrap: wrap;
54
48
  justify-content: space-between;
55
49
  align-content: flex-start;
56
50
  gap: var(--pr-t-spacings-100);
@@ -66,8 +60,8 @@
66
60
  .inputFramed-header-info {
67
61
  flex-basis: 100%;
68
62
  border-block-start: 1px solid var(--components-inputFramed-header-info-borderColor);
69
- padding-block-start: var(--components-inputFramed-header-info-paddingBlockStart);
70
- margin-block-start: var(--components-inputFramed-header-info-marginBlockStart);
63
+ margin-block-start: var(--pr-t-spacings-100);
64
+ padding-block-start: var(--pr-t-spacings-200);
71
65
  color: var(--components-inputFramed-header-info-color);
72
66
 
73
67
  &:empty {
@@ -77,8 +71,8 @@
77
71
 
78
72
  .inputFramed-content {
79
73
  display: var(--components-inputFramed-content-display);
80
- padding: var(--components-inputFramed-content-padding);
81
- margin-block-start: var(--components-inputFramed-content-marginBlockStart);
74
+ padding: var(--components-inputFramed-padding);
75
+ margin-block-start: var(--pr-t-spacings-50);
82
76
  }
83
77
  }
84
78
  }
@@ -22,6 +22,8 @@
22
22
 
23
23
  &:has(.inputFramed-header-input:focus-visible) {
24
24
  @include a11y.focusVisible;
25
+
26
+ @include focusVisible;
25
27
  }
26
28
 
27
29
  &:has(.inputFramed-header-input[aria-invalid="true"]) {
@@ -38,14 +40,10 @@
38
40
  @include disabled;
39
41
  }
40
42
  }
43
+ }
41
44
 
42
- &.mod-center {
43
- @include center;
44
- }
45
-
46
- &.mod-L {
47
- @include L;
48
- }
45
+ &.mod-center {
46
+ @include center;
49
47
  }
50
48
  }
51
49
 
@@ -1,13 +1,3 @@
1
1
  @mixin center {
2
2
  --components-inputFramed-header-alignItems: center;
3
3
  }
4
-
5
- @mixin L {
6
- --components-inputFramed-header-label-fontWeight: var(--pr-t-font-fontWeight-semibold);
7
- --components-inputFramed-padding: var(--pr-t-spacings-50);
8
- --components-inputFramed-header-padding: var(--pr-t-spacings-150);
9
- --components-inputFramed-content-padding: var(--pr-t-spacings-150);
10
- --components-inputFramed-content-marginBlockStart: var(--pr-t-spacings-50);
11
- --components-inputFramed-header-info-marginBlockStart: var(--pr-t-spacings-100);
12
- --components-inputFramed-header-info-paddingBlockStart: var(--pr-t-spacings-200);
13
- }
@@ -28,3 +28,11 @@
28
28
  @mixin criticalHover {
29
29
  --components-inputFramed-borderColor: var(--pr-t-color-input-border-critical-hover);
30
30
  }
31
+
32
+ @mixin focusVisible {
33
+ .inputFramed-header-icon {
34
+ &::after {
35
+ outline: none;
36
+ }
37
+ }
38
+ }
@@ -2,14 +2,8 @@
2
2
  --components-inputFramed-content-display: none;
3
3
  --components-inputFramed-borderColor: var(--palettes-neutral-300);
4
4
  --components-inputFramed-header-info-borderColor: var(--palettes-neutral-200);
5
- --components-inputFramed-padding: var(--pr-t-spacings-25);
6
- --components-inputFramed-header-padding: var(--pr-t-spacings-75);
7
- --components-inputFramed-content-padding: var(--pr-t-spacings-75);
8
- --components-inputFramed-content-marginBlockStart: 0;
5
+ --components-inputFramed-padding: var(--pr-t-spacings-150);
9
6
  --components-inputFramed-header-backgroundColor: transparent;
10
- --components-inputFramed-header-alignItems: normal;
11
- --components-inputFramed-header-label-fontWeight: var(--pr-t-font-fontWeight-regular);
12
7
  --components-inputFramed-header-info-color: inherit;
13
- --components-inputFramed-header-info-marginBlockStart: 0;
14
- --components-inputFramed-header-info-paddingBlockStart: var(--pr-t-spacings-100);
8
+ --components-inputFramed-header-alignItems: normal;
15
9
  }
@@ -34,6 +34,13 @@
34
34
  min-inline-size: 0;
35
35
  }
36
36
 
37
+ .multipleSelect-displayer-chip-value {
38
+ max-inline-size: 8rem;
39
+ white-space: nowrap;
40
+ overflow: hidden;
41
+ text-overflow: ellipsis;
42
+ }
43
+
37
44
  .multipleSelect-displayer-search {
38
45
  display: block;
39
46
  min-inline-size: 2rem;
@@ -25,6 +25,22 @@
25
25
  }
26
26
  }
27
27
 
28
+ &:not(.mod-filterPill) {
29
+ .multipleSelect-displayer {
30
+ &.mod-filter {
31
+ @include displayerFilter;
32
+
33
+ &.is-filled {
34
+ @include displayerFilterFilled;
35
+ }
36
+
37
+ &:has([aria-expanded='true']):not(:has(:placeholder-shown)) {
38
+ @include displayerFilterExpanded;
39
+ }
40
+ }
41
+ }
42
+ }
43
+
28
44
  &.is-selected {
29
45
  @include selected;
30
46
  }
@@ -61,19 +77,3 @@
61
77
  min-inline-size: 0;
62
78
  }
63
79
  }
64
-
65
- @layer mods {
66
- .multipleSelect-displayer {
67
- &.mod-filter {
68
- @include displayerFilter;
69
-
70
- &.is-filled {
71
- @include displayerFilterFilled;
72
- }
73
-
74
- &:has([aria-expanded='true']):not(:has(:placeholder-shown)) {
75
- @include displayerFilterExpanded;
76
- }
77
- }
78
- }
79
- }
@@ -79,6 +79,8 @@
79
79
  padding: var(--components-multiSelect-padding);
80
80
  z-index: 1;
81
81
  position: relative;
82
+ max-block-size: min(14rem, 80vh);
83
+ overflow: auto;
82
84
  }
83
85
 
84
86
  .lu-picker-content {
@@ -59,9 +59,5 @@
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
- }
66
62
  }
67
63
  }
@@ -19,10 +19,6 @@
19
19
  max-block-size: var(--components-richTextField-maxHeight);
20
20
  block-size: calc(var(--components-richTextField-height) + var(--pr-t-spacings-800) + var(--pr-t-spacings-25));
21
21
 
22
- &:has(.richTextField-content:focus-visible) {
23
- @include a11y.focusVisible;
24
- }
25
-
26
22
  &:has(.richTextField-toolbar-formatting):has(.richTextField-toolbar-chips) {
27
23
  min-block-size: calc(var(--components-richTextField-minHeight) + var(--pr-t-spacings-800) + var(--pr-t-spacings-25) + var(--pr-t-spacings-600));
28
24
 
@@ -36,32 +32,6 @@
36
32
  }
37
33
  }
38
34
 
39
- // specificity must be higher here
40
- .richTextField-toolbar-button.button.button {
41
- &[aria-pressed='true'] {
42
- --components-button-color: var(--palettes-0, var(--palettes-text, var(--palettes-product-0)));
43
- --components-button-backgroundColor: var(--palettes-700, var(--palettes-product-700));
44
-
45
- &:hover {
46
- --components-button-color: var(--palettes-0, var(--palettes-text, var(--palettes-product-0)));
47
- --components-button-backgroundColor: var(--palettes-600, var(--palettes-product-600));
48
- }
49
-
50
- &:active {
51
- --components-button-backgroundColor: var(--palettes-800, var(--palettes-product-800));
52
- }
53
-
54
- &:focus-visible {
55
- @include a11y.focusVisible;
56
- }
57
-
58
- &:disabled {
59
- --components-button-color: var(--commons-disabled-background);
60
- --components-button-backgroundColor: var(--palettes-neutral-500);
61
- }
62
- }
63
- }
64
-
65
35
  @at-root ($atRoot) {
66
36
  .richTextField-toolbar {
67
37
  display: var(--components-richTextField-toolbar-display);
@@ -132,12 +102,8 @@
132
102
  border-block-start: 0;
133
103
  }
134
104
 
135
- .richTextField-toolbar-chips-chip {
105
+ .richTextField-toolbar-chips-item {
136
106
  border: 0;
137
-
138
- &:focus-visible {
139
- @include a11y.focusVisible;
140
- }
141
107
  }
142
108
 
143
109
  .richTextField-content {
@@ -1,5 +1,6 @@
1
1
  @use 'exports' as *;
2
2
 
3
+
3
4
  .richTextField {
4
5
  @layer components {
5
6
  @include vars;
@@ -7,6 +8,10 @@
7
8
  }
8
9
 
9
10
  @layer mods {
11
+ &:has(.richTextField-content:focus-visible) {
12
+ @include focusVisible;
13
+ }
14
+
10
15
  &:hover {
11
16
  @include hover;
12
17
  }
@@ -28,3 +33,27 @@
28
33
  }
29
34
  }
30
35
  }
36
+
37
+ @layer mods {
38
+ .richTextField-toolbar-button.button.mod-onlyIcon {
39
+ &[aria-pressed='true'] {
40
+ @include buttonPressed;
41
+
42
+ &:hover {
43
+ @include buttonPressedHover;
44
+ }
45
+
46
+ &:active {
47
+ @include buttonPressedActive;
48
+ }
49
+
50
+ &:focus-visible {
51
+ @include buttonPressedFocusVisible;
52
+ }
53
+
54
+ &:disabled {
55
+ @include buttonPressedDisabled;
56
+ }
57
+ }
58
+ }
59
+ }
@@ -1,3 +1,9 @@
1
+ @use '@lucca-front/scss/src/commons/utils/a11y';
2
+
3
+ @mixin focusVisible {
4
+ @include a11y.focusVisible;
5
+ }
6
+
1
7
  @mixin hover {
2
8
  --components-richTextField-borderColor: var(--pr-t-color-input-border-hover);
3
9
  }
@@ -19,3 +25,26 @@
19
25
  @mixin errorHover {
20
26
  --components-richTextField-borderColor: var(--pr-t-color-input-border-critical-hover);
21
27
  }
28
+
29
+ @mixin buttonPressed {
30
+ --components-button-color: var(--palettes-0, var(--palettes-text, var(--palettes-product-0)));
31
+ --components-button-backgroundColor: var(--palettes-700, var(--palettes-product-700));
32
+ }
33
+
34
+ @mixin buttonPressedHover {
35
+ --components-button-color: var(--palettes-0, var(--palettes-text, var(--palettes-product-0)));
36
+ --components-button-backgroundColor: var(--palettes-600, var(--palettes-product-600));
37
+ }
38
+
39
+ @mixin buttonPressedActive {
40
+ --components-button-backgroundColor: var(--palettes-800, var(--palettes-product-800));
41
+ }
42
+
43
+ @mixin buttonPressedFocusVisible {
44
+ @include a11y.focusVisible;
45
+ }
46
+
47
+ @mixin buttonPressedDisabled {
48
+ --components-button-color: var(--commons-disabled-background);
49
+ --components-button-backgroundColor: var(--palettes-neutral-500);
50
+ }
@@ -16,10 +16,6 @@
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
-
23
19
  &:focus-visible {
24
20
  @include a11y.focusVisible($offset: 0);
25
21
  }
@@ -26,7 +26,7 @@
26
26
  .table-head-row-cell,
27
27
  .table-body-row-cell,
28
28
  .table-foot-row-cell {
29
- @include cellInlineSize;
29
+ @include cellFixedWidth;
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 cellInlineSize;
39
+ @include cellFixedWidth;
40
40
  }
41
41
  }
42
42
  }
43
43
  }
44
44
  }
45
45
 
46
- @mixin cellInlineSize {
46
+ @mixin cellFixedWidth {
47
47
  min-inline-size: var(--cell-width, auto);
48
48
  inline-size: var(--cell-width, auto);
49
49
  }
@@ -12,8 +12,7 @@
12
12
  @include reset.list;
13
13
  }
14
14
 
15
- // Second selector to get rid of tableOfContent-list-item-action on angular component
16
- .tableOfContent-list-item-action, .tableOfContent-list-item > a {
15
+ .tableOfContent-list-item-action {
17
16
  @include reset.button;
18
17
 
19
18
  border-radius: var(--pr-t-border-radius-default);
@@ -7,8 +7,7 @@
7
7
  }
8
8
  }
9
9
 
10
- // Second selector to get rid of tableOfContent-list-item-action on angular component
11
- .tableOfContent-list-item-action, .tableOfContent-list-item > a {
10
+ .tableOfContent-list-item-action {
12
11
  @layer mods {
13
12
  &:not(.disabled, .is-disabled, [disabled]) {
14
13
  &:is(:hover) {
@@ -391,15 +391,15 @@
391
391
 
392
392
  .textfield-input {
393
393
  &:is(:hover) {
394
- @include inputFramedHover;
394
+ @include framedInputHover;
395
395
  }
396
396
 
397
397
  &:is(:focus) {
398
- @include inputFramedFocus;
398
+ @include framedInputFocus;
399
399
  }
400
400
 
401
401
  &:is(:invalid, .is-invalid, .invalid) {
402
- @include inputFramedInvalid;
402
+ @include framedInputInvalid;
403
403
  }
404
404
  }
405
405
  }
@@ -40,7 +40,7 @@
40
40
  }
41
41
  }
42
42
 
43
- @mixin inputFramedHover {
43
+ @mixin framedInputHover {
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 inputFramedFocus {
52
+ @mixin framedInputFocus {
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 inputFramedInvalid {
63
+ @mixin framedInputInvalid {
64
64
  ~ .textfield-label {
65
65
  color: var(--palettes-error-700);
66
66
  }
@@ -16,7 +16,6 @@
16
16
  animation-name: scaleIn;
17
17
  animation-duration: var(--commons-animations-durations-fast);
18
18
  animation-iteration-count: 1;
19
- hyphens: auto;
20
19
  overflow-wrap: break-word;
21
20
 
22
21
  @include keyframe.scaleIn;
@@ -17,7 +17,6 @@
17
17
  .verticalNavigation-list {
18
18
  @include reset.list;
19
19
 
20
- background-color: var(--pr-t-elevation-surface-raised);
21
20
  margin-block-end: var(--pr-t-spacings-200);
22
21
  }
23
22
 
@@ -1,5 +1,5 @@
1
1
  @mixin vars {
2
- --components-verticalNavigation-link-background: var(--pr-t-elevation-surface-raised);
2
+ --components-verticalNavigation-link-background: transparent;
3
3
  --components-verticalNavigation-link-color: var(--pr-t-color-text);
4
4
  --components-verticalNavigation-horizontalPadding: var(--pr-t-spacings-150);
5
5
  }