@lucca-front/scss 21.4.2 → 21.4.3-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 (33) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +3 -3
  3. package/src/components/appLayout/component.scss +2 -2
  4. package/src/components/button/states.scss +1 -5
  5. package/src/components/comment/component.scss +0 -1
  6. package/src/components/comment/index.scss +0 -4
  7. package/src/components/comment/mods.scss +0 -4
  8. package/src/components/comment/vars.scss +0 -1
  9. package/src/components/dialog/component.scss +0 -1
  10. package/src/components/dialog/mods.scss +0 -1
  11. package/src/components/dialog/vars.scss +0 -1
  12. package/src/components/errorPage/index.scss +2 -2
  13. package/src/components/errorPage/mods.scss +1 -1
  14. package/src/components/filterPill/component.scss +5 -1
  15. package/src/components/filterPill/index.scss +0 -8
  16. package/src/components/filterPill/states.scss +1 -4
  17. package/src/components/filterPill/vars.scss +0 -3
  18. package/src/components/footer/component.scss +0 -4
  19. package/src/components/highlightData/component.scss +1 -1
  20. package/src/components/horizontalNavigation/component.scss +0 -1
  21. package/src/components/horizontalNavigation/mods.scss +0 -1
  22. package/src/components/horizontalNavigation/vars.scss +0 -1
  23. package/src/components/multiSelect/states.scss +1 -1
  24. package/src/components/readMore/component.scss +0 -2
  25. package/src/components/readMore/index.scss +0 -4
  26. package/src/components/readMore/mods.scss +0 -4
  27. package/src/components/readMore/vars.scss +0 -1
  28. package/src/components/resourceCard/component.scss +1 -11
  29. package/src/components/richText/vars.scss +1 -1
  30. package/src/components/tableStickedDeprecated/mods.scss +3 -3
  31. package/src/components/textField/component.scss +0 -1
  32. package/src/components/timepicker/component.scss +4 -4
  33. package/src/components/tooltip/component.scss +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "21.4.2",
3
+ "version": "21.4.3-rc.1",
4
4
  "description": "A Sass framework for Lucca products.",
5
5
  "main": "src/main.scss",
6
6
  "scripts": {},
@@ -24,7 +24,7 @@
24
24
  "normalize.css": "^8.0.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "@lucca-front/icons": "21.4.2",
28
- "@lucca/prisme": "21.4.2"
27
+ "@lucca-front/icons": "21.4.3-rc.1",
28
+ "@lucca/prisme": "21.4.3-rc.1"
29
29
  }
30
30
  }
@@ -23,8 +23,8 @@
23
23
  .appLayout-navSide {
24
24
  min-inline-size: 0;
25
25
  grid-area: navSide;
26
- overflow-x: var(--components-appLayout-navSide-overflowX);
27
- overflow-y: var(--components-appLayout-navSide-overflowY);
26
+ overflow-y: var(--components-appLayout-navSide-overflowX);
27
+ overflow-x: var(--components-appLayout-navSide-overflowY);
28
28
 
29
29
  &:focus-visible {
30
30
  @include a11y.focusVisible($offset: -4px);
@@ -21,6 +21,7 @@
21
21
 
22
22
  @mixin loading {
23
23
  --components-button-pointerEvents: none;
24
+ --components-button-color: transparent;
24
25
  --components-button-userSelect: none;
25
26
  --components-button-boxShadow: none;
26
27
  --components-button-backgroundColor: var(--palettes-500, var(--palettes-product-500));
@@ -28,11 +29,6 @@
28
29
 
29
30
  @include loading.spinner(var(--pr-t-font-body-M-lineHeight));
30
31
 
31
- &,
32
- &:disabled {
33
- --components-button-color: transparent;
34
- }
35
-
36
32
  .numericBadge {
37
33
  @include numericBadge.state;
38
34
  }
@@ -77,7 +77,6 @@
77
77
  margin-block-end: 0;
78
78
  overflow-wrap: anywhere;
79
79
  font: var(--components-comment-text-font);
80
- white-space: var(--components-comment-text-whiteSpace);
81
80
  }
82
81
 
83
82
  .comment-content-textContainerOptional {
@@ -17,10 +17,6 @@
17
17
  @include noAvatar;
18
18
  }
19
19
 
20
- &.mod-plainText {
21
- @include plainText;
22
- }
23
-
24
20
  &:has(.comment-infos) {
25
21
  @include container.max(25rem, $name: 'comment') {
26
22
  @include narrow;
@@ -57,7 +57,3 @@
57
57
  margin-inline: 0 var(--components-comment-content-margin);
58
58
  }
59
59
  }
60
-
61
- @mixin plainText {
62
- --components-comment-text-whiteSpace: pre-line;
63
- }
@@ -1,6 +1,5 @@
1
1
  @mixin vars {
2
2
  --components-comment-max-width: 66ch;
3
- --components-comment-text-whiteSpace: normal;
4
3
  --components-comment-text-font: var(--pr-t-font-body-M);
5
4
  --components-comment-margin: 0;
6
5
  --components-comment-content-margin: calc(1.5rem + var(--pr-t-spacings-100)); // 1.5rem for the width of the avatar and 0.5rem for the gap
@@ -158,7 +158,6 @@
158
158
  padding-inline: var(--components-dialog-insideContent-paddingInline);
159
159
  grid-area: overflow;
160
160
  overflow: var(--components-dialog-insideContent-overflow);
161
- flex-grow: var(--components-dialog-insideContent-flexGrow);
162
161
  display: block;
163
162
  outline: none;
164
163
  }
@@ -155,7 +155,6 @@
155
155
 
156
156
  @mixin withHorizontalNavigation {
157
157
  --components-dialog-insideContent-overflow: none;
158
- --components-dialog-insideContent-flexGrow: 1;
159
158
  --components-dialog-inside-header-boxShadow: none;
160
159
  --components-dialog-inside-header-paddingBlock: var(--pr-t-spacings-200) 0;
161
160
  }
@@ -20,7 +20,6 @@
20
20
  --components-dialog-insideContent-paddingInline: var(--pr-t-spacings-300);
21
21
  --components-dialog-insideContent-paddingBlock: var(--pr-t-spacings-200);
22
22
  --components-dialog-insideContent-overflow: auto;
23
- --components-dialog-insideContent-flexGrow: 0;
24
23
  --components-dialog-level: 0;
25
24
  --components-dialog-translate-spacing: var(--pr-t-spacings-500);
26
25
  --components-dialog-translate: calc(var(--components-dialog-translate-spacing) * var(--components-dialog-level) * -1);
@@ -16,8 +16,8 @@
16
16
  @include narrow;
17
17
  }
18
18
 
19
- :is(.appLayout, .dialog) & {
20
- @include nested;
19
+ .appLayout & {
20
+ @include inAppLayout;
21
21
  }
22
22
  }
23
23
  }
@@ -26,7 +26,7 @@
26
26
  }
27
27
  }
28
28
 
29
- @mixin nested {
29
+ @mixin inAppLayout {
30
30
  &,
31
31
  .errorPage-section {
32
32
  block-size: 100%;
@@ -104,18 +104,22 @@
104
104
 
105
105
  display: flex;
106
106
  margin-block-start: -1px;
107
+ margin-inline-start: var(--pr-t-spacings-50);
107
108
  inline-size: calc(var(--pr-t-spacings-50) + var(--pr-t-spacings-200));
108
109
  flex-shrink: 0;
109
110
  z-index: 1;
110
111
  color: var(--components-filterPill-toggle-iconColor);
111
112
  cursor: var(--components-filterPill-label-cursor);
112
- margin-inline-start: var(--components-filterPill-toggle-marginInlineStart);
113
113
 
114
114
  .icon-arrowChevronBottom {
115
115
  transition-property: transform;
116
116
  transition-duration: var(--commons-animations-durations-fast);
117
117
  transform: rotate(var(--components-filterPill-toggle-rotation));
118
118
  }
119
+
120
+ .filterPill-value + & {
121
+ margin-inline-start: var(--components-filterPill-toggle-marginInlineStart);
122
+ }
119
123
  }
120
124
 
121
125
  .filterPill-clear.clear {
@@ -38,10 +38,6 @@
38
38
  &:active {
39
39
  @include filledActive;
40
40
  }
41
-
42
- &:has(~ .filterPill_clear) {
43
- @include filledClearable;
44
- }
45
41
  }
46
42
 
47
43
  &.mod-checkbox {
@@ -86,10 +82,6 @@
86
82
  }
87
83
 
88
84
  .filterPillWrapper {
89
- @layer components {
90
- @include varsWrapper;
91
- }
92
-
93
85
  @layer mods {
94
86
  &.is-hidden {
95
87
  @include hidden;
@@ -67,6 +67,7 @@
67
67
  --components-filterPill-backgroundColor: var(--palettes-product-50);
68
68
  --components-filterPill-color: var(--palettes-product-800);
69
69
  --components-filterPill-toggle-iconColor: var(--palettes-product-700);
70
+ --components-filterPill-toggle-marginInlineStart: calc(var(--pr-t-spacings-300) + var(--pr-t-spacings-50));
70
71
  }
71
72
 
72
73
  @mixin notFilled {
@@ -108,7 +109,3 @@
108
109
  @mixin hidden {
109
110
  --components-filterPillWrapper-display: none;
110
111
  }
111
-
112
- @mixin filledClearable {
113
- --components-filterPill-toggle-marginInlineStart: calc(var(--pr-t-spacings-300) + var(--pr-t-spacings-50));
114
- }
@@ -18,8 +18,5 @@
18
18
  --components-filterPill-arrowColor: var(--palettes-product-700);
19
19
  --components-filterPill-label-maxInlineSize: none;
20
20
  --components-filterPill-toggle-marginInlineStart: var(--pr-t-spacings-50);
21
- }
22
-
23
- @mixin varsWrapper {
24
21
  --components-filterPillWrapper-display: block;
25
22
  }
@@ -18,10 +18,6 @@
18
18
  @at-root ($atRoot) {
19
19
  .footer-content {
20
20
  flex-grow: 1;
21
-
22
- &:empty {
23
- display: none;
24
- }
25
21
  }
26
22
 
27
23
  .footer-actions {
@@ -55,7 +55,7 @@
55
55
  --commons-text-link-hover: var(--palettes-800, var(--palettes-product-800));
56
56
  }
57
57
 
58
- .button.mod-outlined {
58
+ .button {
59
59
  @include color.palette('neutral');
60
60
  }
61
61
  }
@@ -149,7 +149,6 @@
149
149
  .horizontalNavigation_panel {
150
150
  display: var(--components-horizontalNavigation-panel-display);
151
151
  overflow: var(--components-horizontalNavigation-panel-overflow);
152
- flex-grow: var(--components-horizontalNavigation-panel-flexGrow);
153
152
  min-height: 0;
154
153
  flex-direction: column;
155
154
 
@@ -115,7 +115,6 @@
115
115
  @mixin insideDialogPanel {
116
116
  --components-horizontalNavigation-panel-display: flex;
117
117
  --components-horizontalNavigation-panel-overflow: auto;
118
- --components-horizontalNavigation-panel-flexGrow: 1;
119
118
 
120
119
  &:focus-visible {
121
120
  @include a11y.focusVisible($offset: -4px, $borderRadius: var(--pr-t-border-radius-structure));
@@ -25,5 +25,4 @@
25
25
  @mixin varsPanel {
26
26
  --components-horizontalNavigation-panel-display: block;
27
27
  --components-horizontalNavigation-panel-overflow: visible;
28
- --components-horizontalNavigation-panel-flexGrow: 0;
29
28
  }
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  @mixin disabled {
15
- --components-multiSelect-background: var(--pr-t-color-input-background-disabled);
15
+ --components-multiSelect-background: var(--commons-disabled-background);
16
16
  --components-multiSelect-placeholder: var(--commons-disabled-placeholder);
17
17
  --components-multiSelect-arrow-color: var(--pr-t-color-input-icon-disabled);
18
18
 
@@ -62,8 +62,6 @@
62
62
  $wrappingElements: 'ol, ul';
63
63
 
64
64
  &:not(:has(#{$notPlainText})) {
65
- white-space: var(--components-readMore-content-whiteSpace);
66
-
67
65
  &::after {
68
66
  @extend %after;
69
67
  }
@@ -28,9 +28,5 @@
28
28
  &.mod-sunken {
29
29
  @include sunken;
30
30
  }
31
-
32
- &.mod-plainText {
33
- @include plainText;
34
- }
35
31
  }
36
32
  }
@@ -9,7 +9,3 @@
9
9
  @mixin linkReset {
10
10
  --components-readMore-link-insetBlockEnd: 0;
11
11
  }
12
-
13
- @mixin plainText {
14
- --components-readMore-content-whiteSpace: pre-line;
15
- }
@@ -3,5 +3,4 @@
3
3
  --components-readMore-link-backgroudColor: var(--pr-t-elevation-surface-raised);
4
4
  --components-readMore-link-paddingInlineStart: var(--pr-t-spacings-500);
5
5
  --components-readMore-link-insetBlockEnd: var(--pr-t-spacings-50);
6
- --components-readMore-content-whiteSpace: normal;
7
6
  }
@@ -22,17 +22,7 @@
22
22
 
23
23
  @at-root ($atRoot) {
24
24
  .resourceCardWrapper {
25
- grid-template-columns:
26
- repeat(
27
- auto-fill,
28
- minmax(
29
- min(
30
- var(--components-resourceCardWrapper-gridTemplateColumnsMin),
31
- 100%
32
- ),
33
- 1fr
34
- )
35
- );
25
+ grid-template-columns: repeat(auto-fill, minmax(var(--components-resourceCardWrapper-gridTemplateColumnsMin), 1fr));
36
26
  display: var(--components-resourceCardWrapper-display);
37
27
  flex-direction: column;
38
28
  gap: var(--pr-t-spacings-100);
@@ -9,6 +9,6 @@
9
9
  // with css vars deprecated before values
10
10
  --components-richTextField-content-resize: var(--components-richTextField-resize, vertical);
11
11
  --components-richTextField-content-height: var(--components-richTextField-height, calc(3lh + var(--pr-t-spacings-200)));
12
- --components-richTextField-content-minHeight: var(--components-richTextField-minHeight, calc(2lh + var(--pr-t-spacings-200)));
12
+ --components-richTextField-content-minHeight: var(--components-richTextField-minHeigh, calc(2lh + var(--pr-t-spacings-200)));
13
13
  --components-richTextField-content-maxHeight: var(--components-richTextField-maxHeight, 90dvh);
14
14
  }
@@ -190,14 +190,14 @@
190
190
 
191
191
  @mixin stickyHeaderBanner {
192
192
  .table-head-row-cell {
193
- inset-block-start: var(--commons-banner-height);
193
+ inset-block-start: var(commons-banner-height);
194
194
  }
195
195
 
196
196
  .table-body-row-cell,
197
197
  .table-foot-row-cell {
198
198
  inset-block-start:
199
199
  calc(
200
- var(--commons-banner-height)
200
+ var(commons-banner-height)
201
201
  + var(--sticky-header-shadow-offset-top)
202
202
  + var(--components-tableFixed-column-sticky-shadow-width)
203
203
  );
@@ -206,7 +206,7 @@
206
206
  &::after {
207
207
  inset-block-start:
208
208
  calc(
209
- var(--commons-banner-height)
209
+ var(commons-banner-height)
210
210
  + var(--sticky-header-shadow-offset-top)
211
211
  + var(--components-tableFixed-column-sticky-shadow-width)
212
212
  );
@@ -132,7 +132,6 @@
132
132
 
133
133
  .textField-prefix-lang {
134
134
  min-inline-size: calc(var(--pr-t-spacings-300) + var(--pr-t-spacings-50));
135
- padding-inline-end: var(--pr-t-spacings-100);
136
135
  position: relative;
137
136
 
138
137
  &::after {
@@ -50,15 +50,15 @@
50
50
  }
51
51
 
52
52
  .timePicker-fieldset-groupSeparator {
53
+ pointer-events: none;
53
54
  display: grid;
54
55
  place-items: center;
55
56
  text-align: center;
56
- inline-size: fit-content;
57
- block-size: calc(var(--components-timepicker-input-height) + var(--components-timepicker-input-padding-block) * 2);
58
- margin-inline: calc(var(--pr-t-spacings-25) * -1);
57
+ inline-size: var(--pr-t-spacings-200);
58
+ margin-block: 0;
59
+ margin-inline: calc(var(--pr-t-spacings-100) * -1);
59
60
  position: relative;
60
61
  inset-inline-start: calc(var(--pr-t-spacings-25) * -1);
61
- z-index: 1;
62
62
  }
63
63
 
64
64
  .timePicker-fieldset-group {
@@ -26,7 +26,7 @@
26
26
 
27
27
  @at-root ($atRoot) {
28
28
  // Prevent Safari to display a native tooltip
29
- .tooltip_trigger.is-whenEllipsis {
29
+ [luTooltipWhenEllipsis] {
30
30
  @supports (background-image: -webkit-named-image(i)) {
31
31
  @media (hover: hover) {
32
32
  &::after {