@lucca-front/scss 21.2.1-rc.1 → 21.2.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": "21.2.1-rc.1",
3
+ "version": "21.2.2",
4
4
  "description": "A Sass framework for Lucca products.",
5
5
  "main": "src/main.scss",
6
6
  "scripts": {},
@@ -23,7 +23,7 @@
23
23
  "normalize.css": "^8.0.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@lucca-front/icons": "21.2.1-rc.1",
27
- "@lucca/prisme": "21.2.1-rc.1"
26
+ "@lucca-front/icons": "21.2.2",
27
+ "@lucca/prisme": "21.2.2"
28
28
  }
29
29
  }
@@ -73,7 +73,7 @@ $fontTokens: (
73
73
  highlight-XXL-lineHeight: var(--pr-t-font-lineHeight-400),
74
74
  highlight-XXL-fontWeight: var(--pr-t-font-fontWeight-black),
75
75
  highlight-XL-fontSize: var(--pr-t-font-fontSize-275),
76
- highlight-XL-lineHeight: var(--pr-t-font-lineHeight-350),
76
+ highlight-XL-lineHeight: var(--pr-t-font-lineHeight-300),
77
77
  highlight-XL-fontWeight: var(--pr-t-font-fontWeight-bold),
78
78
  highlight-L-fontSize: var(--pr-t-font-fontSize-225),
79
79
  highlight-L-lineHeight: var(--pr-t-font-lineHeight-300),
@@ -378,7 +378,7 @@ $critical: (
378
378
  text: #ffffff,
379
379
  0: #ffffff,
380
380
  50: #ffebec,
381
- 100: #ffd6d8,
381
+ 100: #ffd2d4,
382
382
  200: #fdbebe,
383
383
  300: #faa3a3,
384
384
  400: #fa8989,
@@ -492,7 +492,7 @@ $lavender: (
492
492
  600: #9165d2,
493
493
  700: #7647bd,
494
494
  800: #5f369b,
495
- 900: #4a2a79,
495
+ 900: #24075a,
496
496
  ) !default;
497
497
 
498
498
  $grape: (
@@ -13,10 +13,109 @@
13
13
  @use '@lucca-front/scss/src/commons/utils/container';
14
14
  @use '@lucca-front/scss/src/components/title/exports' as title;
15
15
 
16
+ @mixin animated {
17
+ &FadeIn {
18
+ @extend %animatedFadeIn;
19
+ }
20
+
21
+ &ScaleIn {
22
+ @extend %animatedScaleIn;
23
+ }
24
+
25
+ &ScaleOut {
26
+ @extend %animatedScaleOut;
27
+ }
28
+
29
+ &ScaleInTop {
30
+ @extend %animatedScaleInTop;
31
+ }
32
+
33
+ &ScaleOutTop {
34
+ @extend %animatedScaleOutTop;
35
+ }
36
+
37
+ &ScaleInRight {
38
+ @extend %animatedScaleInRight;
39
+ }
40
+
41
+ &ScaleOutRight {
42
+ @extend %animatedScaleOutRight;
43
+ }
44
+
45
+ &ScaleInBottom {
46
+ @extend %animatedScaleInBottom;
47
+ }
48
+
49
+ &ScaleOutBottom {
50
+ @extend %animatedScaleOutBottom;
51
+ }
52
+
53
+ &ScaleInLeft {
54
+ @extend %animatedScaleInLeft;
55
+ }
56
+
57
+ &ScaleOutLeft {
58
+ @extend %animatedScaleOutLeft;
59
+ }
60
+
61
+ &SlideIn {
62
+ @extend %animatedSlideIn;
63
+ }
64
+
65
+ &SlideInTop {
66
+ @extend %animatedSlideInTop;
67
+ }
68
+
69
+ &SlideOut {
70
+ @extend %animatedSlideOut;
71
+ }
72
+
73
+ &SlideOutTop {
74
+ @extend %animatedSlideOutTop;
75
+ }
76
+
77
+ &SlideInRight {
78
+ @extend %animatedSlideInRight;
79
+ }
80
+
81
+ &SlideOutRight {
82
+ @extend %animatedSlideOutRight;
83
+ }
84
+
85
+ &SlideInBottom {
86
+ @extend %animatedSlideInBottom;
87
+ }
88
+
89
+ &SlideOutBottom {
90
+ @extend %animatedSlideOutBottom;
91
+ }
92
+
93
+ &SlideInLeft {
94
+ @extend %animatedSlideInLeft;
95
+ }
96
+
97
+ &SlideOutLeft {
98
+ @extend %animatedSlideOutLeft;
99
+ }
100
+
101
+ &Shake {
102
+ @extend %animatedShake;
103
+ }
104
+
105
+ &Pulse {
106
+ @extend %animatedPulse;
107
+ }
108
+
109
+ &FadeOut {
110
+ @extend %animatedFadeOut;
111
+ }
112
+ }
113
+
16
114
  @layer utils {
17
115
  %animatedAll {
18
116
  animation-duration: var(--commons-animations-duration, var(--commons-animations-durations-standard));
19
117
  animation-timing-function: var(--commons-animations-function);
118
+ animation-fill-mode: both;
20
119
 
21
120
  &.mod-animation-duration-fast {
22
121
  --commons-animations-duration: var(--commons-animations-durations-fast);
@@ -46,7 +145,7 @@
46
145
  &ScaleOutTop {
47
146
  animation-name: scaleInTop;
48
147
 
49
- @include keyframe.scaleIn;
148
+ @include keyframe.scaleInTop;
50
149
  }
51
150
 
52
151
  &ScaleInRight,
@@ -296,7 +395,7 @@
296
395
  }
297
396
 
298
397
  .pr-u-animated {
299
- @extend %animated;
398
+ @include animated;
300
399
  }
301
400
 
302
401
  .pr-u-mask {
@@ -575,7 +674,7 @@
575
674
  }
576
675
 
577
676
  .u-animated {
578
- @extend %animated;
677
+ @include animated;
579
678
  }
580
679
 
581
680
  .u-mask {
@@ -98,7 +98,7 @@
98
98
  @mixin fancy {
99
99
  // padding and minimum height are in pixels because they correspond to the size of the image
100
100
  --components-dialog-inside-paddingInlineEnd: 224px;
101
- --components-dialog-minBlockSize: calc(288px + var(--pr-t-spacings-400));
101
+ --components-dialog-minBlockSize: calc(288px + var(--pr-t-spacings-200));
102
102
  --components-dialog-inside-gridTemplateRows: auto auto auto;
103
103
  --components-dialog-inside-alignContent: center;
104
104
  --components-dialog-inside-header-boxShadow: none;
@@ -132,7 +132,7 @@
132
132
  @mixin fancySmall {
133
133
  // padding and minimum height are in pixels because they correspond to the size of the image
134
134
  --components-dialog-inside-paddingInlineEnd: 168px;
135
- --components-dialog-minBlockSize: calc(216px + var(--pr-t-spacings-400));
135
+ --components-dialog-minBlockSize: calc(216px + var(--pr-t-spacings-200));
136
136
  }
137
137
 
138
138
  @mixin fancyNarrow {
@@ -37,11 +37,13 @@
37
37
  gap: var(--components-fieldset-gap);
38
38
  max-inline-size: var(--components-fieldset-contentMaxWidth);
39
39
 
40
- .lucca-icon {
41
- transform: rotate(var(--components-fieldset-title-iconRotation));
42
- transition-property: transform;
43
- transition-duration: var(--commons-animations-durations-fast);
44
- color: var(--palettes-neutral-700);
40
+ &[aria-expanded] {
41
+ .icon-arrowChevronBottom {
42
+ transform: rotate(var(--components-fieldset-title-iconRotation));
43
+ transition-property: transform;
44
+ transition-duration: var(--commons-animations-durations-fast);
45
+ color: var(--palettes-neutral-700);
46
+ }
45
47
  }
46
48
  }
47
49
 
@@ -41,6 +41,10 @@
41
41
  }
42
42
  }
43
43
 
44
+ &:has(.inputFramed-header-input:disabled:checked) {
45
+ @include disabledChecked;
46
+ }
47
+
44
48
  &.mod-center {
45
49
  @include center;
46
50
  }
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  @mixin disabled {
6
- --components-inputFramed-header-backgroundColor: var(--palettes-neutral-25);
6
+
7
7
  --components-inputFramed-header-borderColor: var(--palettes-neutral-50);
8
8
  --components-inputFramed-borderColor: var(--palettes-neutral-300);
9
9
  --components-inputFramed-header-info-color: var(--pr-t-color-input-text-disabled);
@@ -20,6 +20,10 @@
20
20
  --components-inputFramed-borderColor: var(--pr-t-color-input-border-checked-hover);
21
21
  }
22
22
 
23
+ @mixin disabledChecked {
24
+ --components-inputFramed-header-backgroundColor: var(--palettes-neutral-25);
25
+ }
26
+
23
27
  @mixin critical {
24
28
  --components-inputFramed-borderColor: var(--pr-t-color-input-border-critical);
25
29
  }
@@ -4,6 +4,7 @@
4
4
  @use '@lucca-front/scss/src/commons/utils/a11y';
5
5
 
6
6
  @mixin component($atRoot: namespace.$defaultAtRoot) {
7
+ position: relative;
7
8
  flex-grow: 1;
8
9
  background-color: var(--components-richTextField-backgroundColor);
9
10
  color: var(--components-richTextField-color);
@@ -11,6 +12,7 @@
11
12
  border-style: solid;
12
13
  border-width: 1px;
13
14
  border-radius: var(--pr-t-border-radius-input);
15
+ overflow: auto;
14
16
 
15
17
  &:has(.richTextField-toolbar-formatting):has(.richTextField-toolbar-chips) {
16
18
  min-block-size: calc(var(--components-richTextField-minHeight) + var(--pr-t-spacings-800) + var(--pr-t-spacings-25) + var(--pr-t-spacings-600));
@@ -85,7 +85,7 @@
85
85
 
86
86
  &:hover {
87
87
  --components-segmentedControl-shadow:
88
- 0 0 0 var(--commons-divider-width) var(--palettes-product-400),
88
+ 0 0 0 var(--commons-divider-width) var(--palettes-400, var(--palettes-product-400)),
89
89
  var(--pr-t-elevation-shadow-raised);
90
90
  --components-segmentedControl-zIndex: 1;
91
91
  }
@@ -93,7 +93,7 @@
93
93
  &:active {
94
94
  --components-segmentedControl-background: var(--palettes-neutral-0);
95
95
  --components-segmentedControl-shadow:
96
- 0 0 0 var(--commons-divider-width) var(--palettes-product-500),
96
+ 0 0 0 var(--commons-divider-width) var(--palettes-500, var(--palettes-product-500)),
97
97
  var(--pr-t-elevation-shadow-raised);
98
98
  }
99
99
  }
@@ -1,9 +1,9 @@
1
1
  @use '@lucca-front/scss/src/components/numericBadge/exports' as numericBadge;
2
2
 
3
3
  @mixin selected {
4
- --components-segmentedControl-background: var(--palettes-product-50);
5
- --components-segmentedControl-shadow: 0 0 0 var(--commons-divider-width) var(--palettes-product-500);
6
- --components-segmentedControl-color: var(--palettes-product-800);
4
+ --components-segmentedControl-background: var(--palettes-50, var(--palettes-product-50));
5
+ --components-segmentedControl-shadow: 0 0 0 var(--commons-divider-width) var(--palettes-500, var(--palettes-product-500));
6
+ --components-segmentedControl-color: var(--palettes-800, var(--palettes-product-800));
7
7
  --components-segmentedControl-cursor: default;
8
8
  --components-segmentedControl-backgroundContent: none;
9
9
  --components-segmentedControl-zIndex: 1;
@@ -12,8 +12,7 @@
12
12
  @include numericBadge.inherit;
13
13
 
14
14
  &.is-loading {
15
- // Might be deletable after layers implementation
16
- --components-numericBadge-loadingColor: var(--palettes-product-500);
15
+ --components-numericBadge-loadingColor: var(--palettes-500, var(--palettes-product-500));
17
16
  --components-numericBadge-color: transparent;
18
17
  }
19
18
  }
@@ -29,7 +28,6 @@
29
28
  @include numericBadge.disabled;
30
29
 
31
30
  &.is-loading {
32
- // Might be deletable after layers implementation
33
31
  --components-numericBadge-color: transparent;
34
32
  }
35
33
  }