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

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 (50) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/components/breadcrumbs/component.scss +2 -1
  4. package/src/components/breadcrumbs/index.scss +2 -1
  5. package/src/components/breadcrumbs/mods.scss +2 -1
  6. package/src/components/button/index.scss +1 -1
  7. package/src/components/calendar/component.scss +3 -1
  8. package/src/components/callout/component.scss +0 -1
  9. package/src/components/calloutPopover/component.scss +13 -10
  10. package/src/components/calloutPopover/mods.scss +2 -5
  11. package/src/components/calloutPopover/vars.scss +0 -1
  12. package/src/components/chip/component.scss +5 -0
  13. package/src/components/chip/index.scss +4 -0
  14. package/src/components/chip/mods.scss +4 -0
  15. package/src/components/clear/component.scss +1 -1
  16. package/src/components/clear/index.scss +18 -5
  17. package/src/components/clear/mods.scss +1 -1
  18. package/src/components/clear/states.scss +10 -1
  19. package/src/components/clear/vars.scss +1 -0
  20. package/src/components/dataTable/component.scss +7 -6
  21. package/src/components/dataTable/mods.scss +4 -4
  22. package/src/components/dataTable/vars.scss +0 -1
  23. package/src/components/dataTableSticked/index.scss +10 -0
  24. package/src/components/dataTableSticked/mods.scss +4 -8
  25. package/src/components/dataTableSticked/states.scss +7 -0
  26. package/src/components/dataTableSticked/vars.scss +2 -0
  27. package/src/components/dropdown/mods.scss +4 -4
  28. package/src/components/filterPill/component.scss +0 -1
  29. package/src/components/filterPill/states.scss +3 -2
  30. package/src/components/filterPill/vars.scss +0 -1
  31. package/src/components/form/component.scss +6 -2
  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 +17 -11
  35. package/src/components/inputFramed/index.scss +7 -5
  36. package/src/components/inputFramed/mods.scss +10 -0
  37. package/src/components/inputFramed/states.scss +0 -8
  38. package/src/components/inputFramed/vars.scss +8 -2
  39. package/src/components/multiSelect/component.scss +0 -7
  40. package/src/components/plgPush/component.scss +4 -0
  41. package/src/components/richText/component.scss +35 -1
  42. package/src/components/richText/index.scss +0 -29
  43. package/src/components/richText/states.scss +0 -29
  44. package/src/components/scrollBox/component.scss +4 -0
  45. package/src/components/tableFixed/mods.scss +3 -3
  46. package/src/components/tableOfContent/component.scss +2 -1
  47. package/src/components/tableOfContent/index.scss +2 -1
  48. package/src/components/textfields/index.scss +3 -3
  49. package/src/components/textfields/states.scss +3 -3
  50. package/src/components/tooltip/component.scss +1 -0
@@ -3,7 +3,7 @@
3
3
  @mixin component($atRoot: namespace.$defaultAtRoot) {
4
4
  position: relative;
5
5
  overflow: hidden;
6
- padding: var(--pr-t-spacings-50);
6
+ padding: var(--components-inputFramed-padding);
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,8 +16,7 @@
16
16
  @at-root ($atRoot) {
17
17
  .inputFramed-header-label.formLabel {
18
18
  position: static;
19
- font-weight: var(--pr-t-font-fontWeight-semibold);
20
-
19
+ font-weight: var(--components-inputFramed-header-label-fontWeight);
21
20
 
22
21
  &::after {
23
22
  content: '';
@@ -27,16 +26,24 @@
27
26
  }
28
27
 
29
28
  .inputFramed-header-field {
30
- flex: 1;
31
-
32
29
  &.form-field.form-field {
33
30
  position: static;
34
31
  margin-block: 0;
35
32
  }
36
33
  }
37
34
 
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
+
38
45
  .inputFramed-header {
39
- padding: var(--components-inputFramed-padding);
46
+ padding: var(--components-inputFramed-header-padding);
40
47
  border-radius: var(--pr-t-border-radius-50);
41
48
  background-color: var(--components-inputFramed-header-backgroundColor);
42
49
  transition-property: background-color;
@@ -44,7 +51,6 @@
44
51
  position: relative;
45
52
  flex-grow: 1;
46
53
  display: flex;
47
- flex-wrap: wrap;
48
54
  justify-content: space-between;
49
55
  align-content: flex-start;
50
56
  gap: var(--pr-t-spacings-100);
@@ -60,8 +66,8 @@
60
66
  .inputFramed-header-info {
61
67
  flex-basis: 100%;
62
68
  border-block-start: 1px solid var(--components-inputFramed-header-info-borderColor);
63
- margin-block-start: var(--pr-t-spacings-100);
64
- padding-block-start: var(--pr-t-spacings-200);
69
+ padding-block-start: var(--components-inputFramed-header-info-paddingBlockStart);
70
+ margin-block-start: var(--components-inputFramed-header-info-marginBlockStart);
65
71
  color: var(--components-inputFramed-header-info-color);
66
72
 
67
73
  &:empty {
@@ -71,8 +77,8 @@
71
77
 
72
78
  .inputFramed-content {
73
79
  display: var(--components-inputFramed-content-display);
74
- padding: var(--components-inputFramed-padding);
75
- margin-block-start: var(--pr-t-spacings-50);
80
+ padding: var(--components-inputFramed-content-padding);
81
+ margin-block-start: var(--components-inputFramed-content-marginBlockStart);
76
82
  }
77
83
  }
78
84
  }
@@ -22,8 +22,6 @@
22
22
 
23
23
  &:has(.inputFramed-header-input:focus-visible) {
24
24
  @include a11y.focusVisible;
25
-
26
- @include focusVisible;
27
25
  }
28
26
 
29
27
  &:has(.inputFramed-header-input[aria-invalid="true"]) {
@@ -40,10 +38,14 @@
40
38
  @include disabled;
41
39
  }
42
40
  }
43
- }
44
41
 
45
- &.mod-center {
46
- @include center;
42
+ &.mod-center {
43
+ @include center;
44
+ }
45
+
46
+ &.mod-L {
47
+ @include L;
48
+ }
47
49
  }
48
50
  }
49
51
 
@@ -1,3 +1,13 @@
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,11 +28,3 @@
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,8 +2,14 @@
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-150);
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;
6
9
  --components-inputFramed-header-backgroundColor: transparent;
7
- --components-inputFramed-header-info-color: inherit;
8
10
  --components-inputFramed-header-alignItems: normal;
11
+ --components-inputFramed-header-label-fontWeight: var(--pr-t-font-fontWeight-regular);
12
+ --components-inputFramed-header-info-color: inherit;
13
+ --components-inputFramed-header-info-marginBlockStart: 0;
14
+ --components-inputFramed-header-info-paddingBlockStart: var(--pr-t-spacings-100);
9
15
  }
@@ -34,13 +34,6 @@
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
-
44
37
  .multipleSelect-displayer-search {
45
38
  display: block;
46
39
  min-inline-size: 2rem;
@@ -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
  }
@@ -19,6 +19,10 @@
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
+
22
26
  &:has(.richTextField-toolbar-formatting):has(.richTextField-toolbar-chips) {
23
27
  min-block-size: calc(var(--components-richTextField-minHeight) + var(--pr-t-spacings-800) + var(--pr-t-spacings-25) + var(--pr-t-spacings-600));
24
28
 
@@ -32,6 +36,32 @@
32
36
  }
33
37
  }
34
38
 
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
+
35
65
  @at-root ($atRoot) {
36
66
  .richTextField-toolbar {
37
67
  display: var(--components-richTextField-toolbar-display);
@@ -102,8 +132,12 @@
102
132
  border-block-start: 0;
103
133
  }
104
134
 
105
- .richTextField-toolbar-chips-item {
135
+ .richTextField-toolbar-chips-chip {
106
136
  border: 0;
137
+
138
+ &:focus-visible {
139
+ @include a11y.focusVisible;
140
+ }
107
141
  }
108
142
 
109
143
  .richTextField-content {
@@ -1,6 +1,5 @@
1
1
  @use 'exports' as *;
2
2
 
3
-
4
3
  .richTextField {
5
4
  @layer components {
6
5
  @include vars;
@@ -8,10 +7,6 @@
8
7
  }
9
8
 
10
9
  @layer mods {
11
- &:has(.richTextField-content:focus-visible) {
12
- @include focusVisible;
13
- }
14
-
15
10
  &:hover {
16
11
  @include hover;
17
12
  }
@@ -33,27 +28,3 @@
33
28
  }
34
29
  }
35
30
  }
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,9 +1,3 @@
1
- @use '@lucca-front/scss/src/commons/utils/a11y';
2
-
3
- @mixin focusVisible {
4
- @include a11y.focusVisible;
5
- }
6
-
7
1
  @mixin hover {
8
2
  --components-richTextField-borderColor: var(--pr-t-color-input-border-hover);
9
3
  }
@@ -25,26 +19,3 @@
25
19
  @mixin errorHover {
26
20
  --components-richTextField-borderColor: var(--pr-t-color-input-border-critical-hover);
27
21
  }
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,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
  }
@@ -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
  }
@@ -16,6 +16,7 @@
16
16
  animation-name: scaleIn;
17
17
  animation-duration: var(--commons-animations-durations-fast);
18
18
  animation-iteration-count: 1;
19
+ hyphens: auto;
19
20
  overflow-wrap: break-word;
20
21
 
21
22
  @include keyframe.scaleIn;