@lucca-front/scss 18.3.0 → 18.3.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": "18.3.0",
3
+ "version": "18.3.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": "18.3.0"
26
+ "@lucca-front/icons": "18.3.2"
27
27
  }
28
28
  }
@@ -115,7 +115,7 @@ $overflow: 'hidden', 'auto', 'visible', 'scroll';
115
115
  @each $corner in $corners {
116
116
  @each $key, $value in config.$borderRadius {
117
117
  .u-border#{transform.capitalize(transform.camelize($corner))}Radius#{transform.capitalize($key)} {
118
- border-#{$corner}radius: $value #{$suffix};
118
+ border-#{$corner}radius: var(--commons-borderRadius-#{$key}) #{$suffix};
119
119
  }
120
120
  }
121
121
  }
@@ -37,6 +37,10 @@
37
37
  box-shadow: none;
38
38
  }
39
39
  }
40
+
41
+ &::-webkit-details-marker {
42
+ display: none;
43
+ }
40
44
  }
41
45
 
42
46
  .calloutDisclosure-summary-icon {
@@ -48,6 +52,7 @@
48
52
  }
49
53
 
50
54
  .calloutDisclosure-summary-chevron {
55
+ align-self: start;
51
56
  color: var(--palettes-neutral-700);
52
57
  margin-left: auto;
53
58
  transition: transform var(--commons-animations-durations-standard) ease;
@@ -21,25 +21,49 @@
21
21
 
22
22
  &:hover {
23
23
  @include hover;
24
+
25
+ &[aria-checked='mixed'] {
26
+ @include checkedHover;
27
+ }
24
28
  }
25
29
 
26
30
  &:active {
27
31
  @include active;
32
+
33
+ &[aria-checked='mixed'] {
34
+ @include checkedActive;
35
+ }
28
36
  }
29
37
 
30
38
  &:disabled {
31
39
  @include disabled;
40
+
41
+ &[aria-checked='mixed'] {
42
+ @include checkedDisabled;
43
+ }
32
44
  }
33
45
 
34
46
  &[aria-invalid='true'] {
35
47
  @include invalid;
36
48
 
49
+ &[aria-checked='mixed'] {
50
+ @include checkedInvalid;
51
+ }
52
+
37
53
  &:hover {
38
54
  @include invalidHover;
55
+
56
+ &[aria-checked='mixed'] {
57
+ @include checkedInvalidHover;
58
+ }
39
59
  }
40
60
 
41
61
  &:active {
42
62
  @include invalidActive;
63
+
64
+ &[aria-checked='mixed'] {
65
+ @include checkedInvalidActive;
66
+ }
43
67
  }
44
68
  }
45
69
 
@@ -79,7 +79,7 @@
79
79
  }
80
80
 
81
81
  // .comment-content-textContainer is deprecated
82
- .comment-content-textContainerOptionnal,
82
+ .comment-content-textContainerOptional,
83
83
  .comment-content-textContainer {
84
84
  display: flex;
85
85
  flex-direction: column;
@@ -90,6 +90,8 @@
90
90
  }
91
91
 
92
92
  .dialog-inside-footer {
93
+ grid-area: footer;
94
+
93
95
  &.footer {
94
96
  background-color: transparent;
95
97
  position: relative;
@@ -106,6 +108,7 @@
106
108
  gap: var(--pr-t-spacings-200);
107
109
  position: relative;
108
110
  z-index: 1;
111
+ grid-area: header;
109
112
  }
110
113
 
111
114
  .dialog-inside-content {
@@ -20,6 +20,23 @@
20
20
  &.mod-S {
21
21
  @include S;
22
22
  }
23
+
24
+ &:has(~ .box) {
25
+ .form-field {
26
+ &.mod-withArrow {
27
+ @include withArrow;
28
+
29
+ &.mod-S {
30
+ @include withArrowS;
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ &:has(.radioField-input[aria-invalid='true']),
37
+ &:has(.checkboxField-input[aria-invalid='true']) {
38
+ @include legendInvalid;
39
+ }
23
40
  }
24
41
 
25
42
  .form-field {
@@ -31,14 +48,6 @@
31
48
  @include XS;
32
49
  }
33
50
 
34
- &.mod-withArrow {
35
- @include withArrow;
36
-
37
- &.mod-S {
38
- @include withArrowS;
39
- }
40
- }
41
-
42
51
  &.mod-checkable,
43
52
  &:has(.radioField),
44
53
  &:has(.checkboxField),
@@ -46,12 +55,16 @@
46
55
  @include checkable;
47
56
  }
48
57
 
49
- &:has(.textField-input-value[aria-invalid='true'], .timePicker-fieldset-group-textfield-input[aria-invalid='true']) {
58
+ &:has(.textField-input-value[aria-invalid='true']),
59
+ &:has(.timePicker-fieldset-group-textfield-input[aria-invalid='true']),
60
+ &:has(.simpleSelect-input[aria-invalid='true']),
61
+ &:has(.multipleSelect-displayer-search[aria-invalid='true']) {
50
62
  @include invalid;
51
63
  }
52
64
 
53
65
  &:has(.radioField-input:disabled),
54
- &:has(.checkboxField-input:disabled) {
66
+ &:has(.checkboxField-input:disabled),
67
+ &:has(.switchField-input:disabled) {
55
68
  .formLabel {
56
69
  @include formLabel.disabled;
57
70
  }
@@ -60,6 +73,14 @@
60
73
  @include inlineMessage.disabled;
61
74
  }
62
75
  }
76
+
77
+ &.mod-withArrow {
78
+ @include withArrow;
79
+
80
+ &.mod-S {
81
+ @include withArrowS;
82
+ }
83
+ }
63
84
  }
64
85
 
65
86
  // deprecated
@@ -101,7 +101,7 @@
101
101
 
102
102
  @mixin withArrow {
103
103
  padding-bottom: var(--pr-t-spacings-200);
104
- margin-block: 0;
104
+ margin-block-end: 0;
105
105
 
106
106
  .form-field-arrow {
107
107
  @include box.arrow;
@@ -13,6 +13,12 @@
13
13
  }
14
14
  }
15
15
 
16
+ @mixin legendInvalid {
17
+ legend.formLabel {
18
+ @include formLabel.error;
19
+ }
20
+ }
21
+
16
22
  // deprecated
17
23
 
18
24
  @mixin required {
@@ -34,6 +34,7 @@
34
34
 
35
35
  .indexTable-head-row-cell,
36
36
  .indexTable-body-row-cell,
37
+ .indexTable-body-row-transparentCell,
37
38
  .indexTable-foot-row-cell {
38
39
  &.mod-alignRight {
39
40
  @include alignRight;
@@ -42,5 +42,6 @@
42
42
  @include L;
43
43
 
44
44
  // legacy, approximate centering
45
+ --components-loading-margin: 0 auto;
45
46
  --components-loading-transform: translateY(35vh);
46
47
  }
@@ -2,18 +2,24 @@
2
2
  @use '@lucca-front/scss/src/commons/utils/media';
3
3
  @use 'exports' as *;
4
4
 
5
+ .table {
6
+ &.mod-layoutFixed {
7
+ @include layoutFixed;
8
+ }
9
+ }
10
+
5
11
  .table-head-row-cell,
6
12
  .table-body-row-cell,
7
13
  .table-foot-row-cell {
8
14
  @for $i from 2 through 20 {
9
15
  &.mod-layoutFixed-#{$i} {
10
- @include layoutFixed($i);
16
+ @include layoutFixedCell($i);
11
17
  }
12
18
 
13
19
  @each $breakpoint, $value in config.$breakpoints {
14
20
  @include media.min($breakpoint) {
15
21
  &.mod-layoutFixed-#{$i}\@mediaMin#{$breakpoint} {
16
- @include layoutFixed($i);
22
+ @include layoutFixedCell($i);
17
23
  }
18
24
  }
19
25
  }
@@ -1,4 +1,8 @@
1
- @mixin layoutFixed($i) {
1
+ @mixin layoutFixed {
2
+ table-layout: fixed;
3
+ }
4
+
5
+ @mixin layoutFixedCell($i) {
2
6
  min-width: $i * 1rem;
3
7
  max-width: $i * 1rem;
4
8
  width: $i * 1rem;
@@ -87,6 +87,10 @@
87
87
  &:not([rows]) {
88
88
  height: calc(3lh + var(--component-textField-padding) * 2);
89
89
  }
90
+
91
+ &[rows='1'] {
92
+ min-height: calc(1lh + var(--component-textField-padding) * 2);
93
+ }
90
94
  }
91
95
  }
92
96
 
@@ -10,10 +10,17 @@
10
10
  display: flex;
11
11
  align-self: start;
12
12
  align-items: center;
13
- height: calc(var(--components-userTile-title-lineHeight) + var(--components-userTile-info-lineHeight));
14
13
  min-height: var(--components-avatar-size);
15
14
  }
16
15
 
16
+ // .user-tile-label is deprecated
17
+ &:has(.userTile-content-info, .user-tile-label) {
18
+ // Apply height to avatar (calculed on title & info height) to avoid img overflow
19
+ .avatar {
20
+ height: calc(var(--components-userTile-title-lineHeight) + var(--components-userTile-info-lineHeight));
21
+ }
22
+ }
23
+
17
24
  @at-root ($atRoot) {
18
25
  // .user-info is deprecated
19
26
  .userTile-content,