@lucca-front/scss 20.3.1-rc.1 → 20.3.1-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucca-front/scss",
3
- "version": "20.3.1-rc.1",
3
+ "version": "20.3.1-rc.3",
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": "20.3.1-rc.1"
26
+ "@lucca-front/icons": "20.3.1-rc.3"
27
27
  }
28
28
  }
@@ -5,9 +5,6 @@
5
5
 
6
6
  $layers: 'reset, base, components, mods, product, utils' !default;
7
7
 
8
- /* stylelint-disable-next-line layer-name-pattern */
9
- @layer #{$layers};
10
-
11
8
  $isNamespaced: false !default;
12
9
  $deprecatedSpacings: false !default;
13
10
  $deprecatedCardBoxMargin: false !default;
@@ -1,7 +1,11 @@
1
1
  @use "sass:meta";
2
2
  @use '@lucca-front/scss/src/commons/utils/namespace';
3
+ @use '@lucca-front/scss/src/commons/config';
3
4
  @use 'exports' as *;
4
5
 
6
+ /* stylelint-disable-next-line layer-name-pattern */
7
+ @layer #{config.$layers};
8
+
5
9
  @layer reset {
6
10
  @include meta.load-css('normalize.css/normalize');
7
11
  }
@@ -26,6 +26,108 @@
26
26
  }
27
27
  }
28
28
 
29
+ %animated {
30
+ &FadeIn,
31
+ &FadeOut {
32
+ animation-name: fadeIn;
33
+
34
+ @include keyframe.fadeIn;
35
+ }
36
+
37
+ &ScaleIn,
38
+ &ScaleOut {
39
+ animation-name: scaleIn;
40
+
41
+ @include keyframe.scaleIn;
42
+ }
43
+
44
+ &ScaleInTop,
45
+ &ScaleOutTop {
46
+ animation-name: scaleInTop;
47
+
48
+ @include keyframe.scaleIn;
49
+ }
50
+
51
+ &ScaleInRight,
52
+ &ScaleOutRight {
53
+ animation-name: scaleInRight;
54
+
55
+ @include keyframe.scaleInRight;
56
+ }
57
+
58
+ &ScaleInBottom,
59
+ &ScaleOutBottom {
60
+ animation-name: scaleInBottom;
61
+
62
+ @include keyframe.scaleInBottom;
63
+ }
64
+
65
+ &ScaleInLeft,
66
+ &ScaleOutLeft {
67
+ animation-name: scaleInLeft;
68
+
69
+ @include keyframe.scaleInLeft;
70
+ }
71
+
72
+ &SlideIn,
73
+ &SlideInTop,
74
+ &SlideOut,
75
+ &SlideOutTop {
76
+ animation-name: slideIn;
77
+
78
+ @include keyframe.slideIn;
79
+ }
80
+
81
+ &SlideInRight,
82
+ &SlideOutRight {
83
+ animation-name: slideInRight;
84
+
85
+ @include keyframe.slideInRight;
86
+ }
87
+
88
+ &SlideInBottom,
89
+ &SlideOutBottom {
90
+ animation-name: slideInBottom;
91
+
92
+ @include keyframe.slideInBottom;
93
+ }
94
+
95
+ &SlideInLeft,
96
+ &SlideOutLeft {
97
+ animation-name: slideInLeft;
98
+
99
+ @include keyframe.slideInLeft;
100
+ }
101
+
102
+ &Shake {
103
+ animation-name: shake;
104
+
105
+ @include keyframe.shake;
106
+ }
107
+
108
+ &Pulse {
109
+ animation-name: pulse;
110
+ animation-direction: alternate;
111
+ animation-iteration-count: var(--commons-animations-iteration-count);
112
+
113
+ @include keyframe.pulse;
114
+ }
115
+
116
+ &FadeOut,
117
+ &SlideOut,
118
+ &SlideOutTop,
119
+ &SlideOutRight,
120
+ &SlideOutBottom,
121
+ &SlideOutLeft,
122
+ &ScaleOut,
123
+ &ScaleOutTop,
124
+ &ScaleOutRight,
125
+ &ScaleOutBottom,
126
+ &ScaleOutLeft {
127
+ animation-direction: reverse;
128
+ }
129
+ }
130
+
29
131
  %mask {
30
132
  @include a11y.mask('!important');
31
133
  }
@@ -191,105 +293,7 @@
191
293
  }
192
294
 
193
295
  .pr-u-animated {
194
- &FadeIn,
195
- &FadeOut {
196
- animation-name: fadeIn;
197
-
198
- @include keyframe.fadeIn;
199
- }
200
-
201
- &ScaleIn,
202
- &ScaleOut {
203
- animation-name: scaleIn;
204
-
205
- @include keyframe.scaleIn;
206
- }
207
-
208
- &ScaleInTop,
209
- &ScaleOutTop {
210
- animation-name: scaleInTop;
211
-
212
- @include keyframe.scaleIn;
213
- }
214
-
215
- &ScaleInRight,
216
- &ScaleOutRight {
217
- animation-name: scaleInRight;
218
-
219
- @include keyframe.scaleInRight;
220
- }
221
-
222
- &ScaleInBottom,
223
- &ScaleOutBottom {
224
- animation-name: scaleInBottom;
225
-
226
- @include keyframe.scaleInBottom;
227
- }
228
-
229
- &ScaleInLeft,
230
- &ScaleOutLeft {
231
- animation-name: scaleInLeft;
232
-
233
- @include keyframe.scaleInLeft;
234
- }
235
-
236
- &SlideIn,
237
- &SlideInTop,
238
- &SlideOut,
239
- &SlideOutTop {
240
- animation-name: slideIn;
241
-
242
- @include keyframe.slideIn;
243
- }
244
-
245
- &SlideInRight,
246
- &SlideOutRight {
247
- animation-name: slideInRight;
248
-
249
- @include keyframe.slideInRight;
250
- }
251
-
252
- &SlideInBottom,
253
- &SlideOutBottom {
254
- animation-name: slideInBottom;
255
-
256
- @include keyframe.slideInBottom;
257
- }
258
-
259
- &SlideInLeft,
260
- &SlideOutLeft {
261
- animation-name: slideInLeft;
262
-
263
- @include keyframe.slideInLeft;
264
- }
265
-
266
- &Shake {
267
- animation-name: shake;
268
-
269
- @include keyframe.shake;
270
- }
271
-
272
- &Pulse {
273
- animation-name: pulse;
274
- animation-direction: alternate;
275
- animation-iteration-count: var(--commons-animations-iteration-count);
276
-
277
- @include keyframe.pulse;
278
- }
279
-
280
- &FadeOut,
281
- &SlideOut,
282
- &SlideOutTop,
283
- &SlideOutRight,
284
- &SlideOutBottom,
285
- &SlideOutLeft,
286
- &ScaleOut,
287
- &ScaleOutTop,
288
- &ScaleOutRight,
289
- &ScaleOutBottom,
290
- &ScaleOutLeft {
291
- animation-direction: reverse;
292
- }
296
+ @extend %animated;
293
297
  }
294
298
 
295
299
  .pr-u-mask {
@@ -554,106 +558,7 @@
554
558
  }
555
559
 
556
560
  .u-animated {
557
- &FadeIn,
558
- &FadeOut {
559
- animation-name: fadeIn;
560
-
561
-
562
- @include keyframe.fadeIn;
563
- }
564
-
565
- &ScaleIn,
566
- &ScaleOut {
567
- animation-name: scaleIn;
568
-
569
- @include keyframe.scaleIn;
570
- }
571
-
572
- &ScaleInTop,
573
- &ScaleOutTop {
574
- animation-name: scaleInTop;
575
-
576
- @include keyframe.scaleIn;
577
- }
578
-
579
- &ScaleInRight,
580
- &ScaleOutRight {
581
- animation-name: scaleInRight;
582
-
583
- @include keyframe.scaleInRight;
584
- }
585
-
586
- &ScaleInBottom,
587
- &ScaleOutBottom {
588
- animation-name: scaleInBottom;
589
-
590
- @include keyframe.scaleInBottom;
591
- }
592
-
593
- &ScaleInLeft,
594
- &ScaleOutLeft {
595
- animation-name: scaleInLeft;
596
-
597
- @include keyframe.scaleInLeft;
598
- }
599
-
600
- &SlideIn,
601
- &SlideInTop,
602
- &SlideOut,
603
- &SlideOutTop {
604
- animation-name: slideIn;
605
-
606
- @include keyframe.slideIn;
607
- }
608
-
609
- &SlideInRight,
610
- &SlideOutRight {
611
- animation-name: slideInRight;
612
-
613
- @include keyframe.slideInRight;
614
- }
615
-
616
- &SlideInBottom,
617
- &SlideOutBottom {
618
- animation-name: slideInBottom;
619
-
620
- @include keyframe.slideInBottom;
621
- }
622
-
623
- &SlideInLeft,
624
- &SlideOutLeft {
625
- animation-name: slideInLeft;
626
-
627
- @include keyframe.slideInLeft;
628
- }
629
-
630
- &Shake {
631
- animation-name: shake;
632
-
633
- @include keyframe.shake;
634
- }
635
-
636
- &Pulse {
637
- animation-name: pulse;
638
- animation-direction: alternate;
639
- animation-iteration-count: var(--commons-animations-iteration-count);
640
-
641
- @include keyframe.pulse;
642
- }
643
-
644
- &FadeOut,
645
- &SlideOut,
646
- &SlideOutTop,
647
- &SlideOutRight,
648
- &SlideOutBottom,
649
- &SlideOutLeft,
650
- &ScaleOut,
651
- &ScaleOutTop,
652
- &ScaleOutRight,
653
- &ScaleOutBottom,
654
- &ScaleOutLeft {
655
- animation-direction: reverse;
656
- }
561
+ @extend %animated;
657
562
  }
658
563
 
659
564
  .u-mask {
@@ -4,9 +4,9 @@
4
4
  @use '@lucca-front/scss/src/commons/utils/namespace';
5
5
 
6
6
  @mixin component($atRoot: namespace.$defaultAtRoot) {
7
- background-color: var(--palettes-700, var(--palettes-neutral-200));
7
+ background-color: var(--components-chip-backgroundColor);
8
8
  border-radius: var(--components-chip-borderRadius);
9
- color: var(--palettes-0, var(--palettes-text, var(--pr-t-color-text)));
9
+ color: var(--components-chip-color);
10
10
  display: inline-flex;
11
11
  align-items: center;
12
12
  gap: var(--pr-t-spacings-100);
@@ -1,6 +1,6 @@
1
1
  @mixin disabled {
2
- background-color: var(--commons-disabled-background);
3
- color: var(--pr-t-color-text-disabled);
2
+ --components-chip-backgroundColor: var(--commons-disabled-background);
3
+ --components-chip-color: var(--pr-t-color-text-disabled);
4
4
 
5
5
  .chip-kill {
6
6
  display: none;
@@ -1,5 +1,7 @@
1
1
  @mixin vars {
2
2
  --components-chip-font: var(--pr-t-font-body-S);
3
+ --components-chip-backgroundColor: var(--palettes-700, var(--palettes-neutral-200));
4
+ --components-chip-color: var(--palettes-0, var(--palettes-text, var(--pr-t-color-text)));
3
5
  --components-chip-borderRadius: var(--pr-t-border-radius-default);
4
6
  --components-chip-kill-size: 0.75rem;
5
7
  --components-chip-kill-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='16' fill='none'%3E%3Cpath d='M5.80473 4.86192C5.54438 4.60157 5.12227 4.60157 4.86192 4.86192C4.60157 5.12227 4.60157 5.54438 4.86192 5.80473L7.05718 7.99999L4.86192 10.1953C4.60157 10.4556 4.60157 10.8777 4.86192 11.1381C5.12227 11.3984 5.54438 11.3984 5.80473 11.1381L7.99999 8.9428L10.1953 11.1381C10.4556 11.3984 10.8777 11.3984 11.1381 11.1381C11.3984 10.8777 11.3984 10.4556 11.1381 10.1953L8.9428 7.99999L11.1381 5.80473C11.3984 5.54438 11.3984 5.12227 11.1381 4.86192C10.8777 4.60157 10.4556 4.60157 10.1953 4.86192L7.99999 7.05718L5.80473 4.86192Z' fill='currentColor'/%3E%3C/svg%3E");
@@ -29,6 +29,14 @@
29
29
  }
30
30
  }
31
31
 
32
+ .dataTableWrapper-pagination {
33
+ border-block-start: 1px solid var(--commons-border-200);
34
+
35
+ &:empty {
36
+ display: none;
37
+ }
38
+ }
39
+
32
40
  .dataTable-head-row-cell {
33
41
  color: var(--pr-t-color-text-subtle);
34
42
  padding: var(--components-dataTable-cell-padding);
@@ -19,6 +19,7 @@
19
19
  position: fixed !important;
20
20
  max-inline-size: var(--components-dialog-maxWidth) !important;
21
21
  max-block-size: var(--components-dialog-maxHeight) !important;
22
+ overflow: hidden;
22
23
 
23
24
  @supports not (height: 1dvh) {
24
25
  --components-dialog-maxHeight: var(--components-dialog-maxHeightFallback);
@@ -52,7 +52,6 @@
52
52
  position: relative;
53
53
  flex-grow: 1;
54
54
  display: flex;
55
- flex-wrap: wrap;
56
55
  justify-content: space-between;
57
56
  align-content: flex-start;
58
57
  gap: var(--pr-t-spacings-100);
@@ -19,16 +19,6 @@
19
19
  inline-size: var(--commons-navSide-width);
20
20
  scroll-margin-block-start: var(--commons-banner-height);
21
21
 
22
- .appLayout-navSide & {
23
- position: relative;
24
- padding-block-start: 0;
25
- block-size: var(--commons-navSide-mobile-toggle-height);
26
-
27
- @include media.min('S') {
28
- block-size: 100%;
29
- }
30
- }
31
-
32
22
  .numericBadge {
33
23
  @include numericBadge.S;
34
24
  @include numericBadge.brand;
@@ -6,8 +6,12 @@
6
6
  @layer components {
7
7
  @include vars;
8
8
  @include component;
9
+ }
9
10
 
11
+ @layer mods {
10
12
  .appLayout-navSide & {
13
+ @include inAppLayout;
14
+
11
15
  @include media.min('S') {
12
16
  @include inAppLayoutWide;
13
17
  }
@@ -16,9 +20,7 @@
16
20
  @include inAppLayoutNarrow;
17
21
  }
18
22
  }
19
- }
20
23
 
21
- @layer mods {
22
24
  &.mod-withBanner {
23
25
  @include banner;
24
26
  }
@@ -147,6 +147,12 @@
147
147
  }
148
148
  }
149
149
 
150
+ @mixin inAppLayout {
151
+ position: relative;
152
+ padding-block-start: 0;
153
+ block-size: var(--commons-navSide-mobile-toggle-height);
154
+ }
155
+
150
156
  @mixin inAppLayoutWide {
151
157
  position: static;
152
158
  block-size: 100%;
@@ -64,6 +64,7 @@
64
64
 
65
65
  @at-root ($atRoot) {
66
66
  .richTextField-toolbar {
67
+ display: var(--components-richTextField-toolbar-display);
67
68
  background-color: var(--components-richTextField-toolbar-backgroundColor);
68
69
  border-radius: 0 0 var(--pr-t-border-radius-input) var(--pr-t-border-radius-input);
69
70
  padding: var(--pr-t-spacings-100);
@@ -148,6 +149,11 @@
148
149
  &:focus-visible {
149
150
  @include a11y.focusVisible;
150
151
  }
152
+
153
+ &.is-disabled {
154
+ --components-chip-backgroundColor: var(--palettes-neutral-200);
155
+ --components-chip-color: var(--pr-t-color-input-text-disabled);
156
+ }
151
157
  }
152
158
 
153
159
  .richTextField-content-placeholder {
@@ -5,6 +5,7 @@
5
5
  @mixin disabled {
6
6
  --components-richTextField-backgroundColor: var(--pr-t-color-input-background-disabled);
7
7
  --components-richTextField-toolbar-backgroundColor: var(--pr-t-color-input-background-disabled);
8
+ --components-richTextField-toolbar-display: none;
8
9
  --components-richTextField-color: var(--pr-t-color-input-text-disabled);
9
10
  --components-richTextField-borderColor: var(--pr-t-color-input-border);
10
11
  }
@@ -3,6 +3,7 @@
3
3
  --components-richTextField-backgroundColor: var(--pr-t-color-input-background);
4
4
  --components-richTextField-color: var(--pr-t-color-input-text);
5
5
  --components-richTextField-toolbar-backgroundColor: var(--palettes-neutral-25);
6
+ --components-richTextField-toolbar-display: block;
6
7
  --components-richTextField-resize: vertical;
7
8
  --components-richTextField-height: 3lh;
8
9
  --components-richTextField-minHeight: 2lh;