@lucca-front/scss 17.3.1 → 17.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": "17.3.1",
3
+ "version": "17.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": "v17.3.1"
26
+ "@lucca-front/icons": "v17.3.2"
27
27
  }
28
28
  }
@@ -0,0 +1,16 @@
1
+ @use 'sass:map';
2
+
3
+ @use '@lucca-front/scss/src/commons/config';
4
+
5
+ // future mixin if you need to use palette CSS vars without using a class
6
+ @mixin palette($palette) {
7
+ $paletteExists: map.get(config.$palettesInterpolation, $palette);
8
+
9
+ @if $paletteExists {
10
+ @each $shade in config.$palettesShades {
11
+ @if map.get($paletteExists, $shade) {
12
+ --palettes-#{$shade}: var(--palettes-#{$palette}-#{$shade});
13
+ }
14
+ }
15
+ }
16
+ }
@@ -7,3 +7,4 @@
7
7
  @forward 'form' as form-*; // 0 Ko
8
8
  @forward 'loading' as loading-*; // 0 Ko
9
9
  @forward 'text' as text-*; // 0 Ko
10
+ @forward 'color' as color-*; // 0 Ko
@@ -1,5 +1,7 @@
1
1
  @use '@lucca-front/scss/src/commons/utils/loading';
2
+ @use '@lucca-front/scss/src/components/keyframe/exports' as keyframe;
2
3
  @use '@lucca-front/scss/src/commons/utils/a11y';
4
+ @use '@lucca-front/scss/src/components/numericBadge/exports' as numericBadge;
3
5
  @use '@lucca-front/icons/src/icon/exports' as icon;
4
6
 
5
7
  @mixin component($atRoot: 'without: rule') {
@@ -15,6 +17,9 @@
15
17
  width: var(--commons-navSide-width);
16
18
 
17
19
  .numericBadge {
20
+ @include numericBadge.S;
21
+ @include numericBadge.brand;
22
+
18
23
  margin-left: auto;
19
24
  }
20
25
 
@@ -104,8 +109,8 @@
104
109
  font-weight: 600;
105
110
  }
106
111
 
112
+ // .navSide-item-alert is deprecated
107
113
  .navSide-item-alert {
108
- // deprecated
109
114
  font-size: var(--sizes-XS-fontSize);
110
115
  font-weight: 600;
111
116
  background-color: var(--components-navSide-fullwidth-palette-alert-color);
@@ -124,6 +129,8 @@
124
129
  }
125
130
 
126
131
  .navSide-item-arrow {
132
+ @include icon.S;
133
+
127
134
  transition-duration: var(--commons-animations-durations-fast);
128
135
  transition-property: transform;
129
136
  transition-timing-function: ease-out;
@@ -134,7 +141,6 @@
134
141
  flex-shrink: 0;
135
142
  transform-origin: 50% 50%;
136
143
  transform: rotate(90deg);
137
- @include icon.S;
138
144
  }
139
145
 
140
146
  .navSide-item-subMenu {
@@ -152,6 +158,27 @@
152
158
  line-height: var(--sizes-S-lineHeight);
153
159
  }
154
160
 
161
+ .navSide-item-subMenu-item {
162
+ @include keyframe.slideInLeft;
163
+
164
+ opacity: 0;
165
+ animation-fill-mode: forwards;
166
+ animation-name: slideInLeft;
167
+ animation-duration: var(--commons-animations-durations-fast);
168
+ animation-delay: var(--delay);
169
+
170
+ @media (prefers-reduced-motion) {
171
+ animation: none;
172
+ opacity: 1;
173
+ }
174
+
175
+ @for $i from 0 through 10 {
176
+ &:nth-child(#{$i}n) {
177
+ --delay: #{$i * 25ms};
178
+ }
179
+ }
180
+ }
181
+
155
182
  .navSide-bottomSection {
156
183
  height: var(--components-navSide-bottom-section-height);
157
184
  width: var(--commons-navSide-width);
@@ -177,8 +204,8 @@
177
204
  }
178
205
  }
179
206
 
207
+ // .navSide-item-alert is deprecated
180
208
  .navSide-item-alert {
181
- // deprecated
182
209
  background-color: var(--components-navSide-bottom-section-palette-alert-color);
183
210
  color: var(--components-navSide-bottom-section-palette-alert-text);
184
211
  }
@@ -18,11 +18,14 @@
18
18
  --components-navSide-fullwidth-palette-selected-text: var(--colors-white-color);
19
19
  --components-navSide-fullwidth-palette-hovered-bg: var(--palettes-navigation-700);
20
20
  --components-navSide-fullwidth-palette-hovered-text: var(--colors-white-color);
21
- --components-navSide-fullwidth-palette-alert-color: var(--palettes-product-200);
22
- --components-navSide-fullwidth-palette-alert-text: var(--palettes-product-800);
23
21
  --components-navSide-fullwidth-palette-selected-alert-color: var(--palettes-product-700);
24
22
  --components-navSide-fullwidth-palette-selected-alert-text: var(--colors-white-color);
25
23
 
24
+ // --components-navSide-fullwidth-palette-alert-color is deprecated
25
+ // --components-navSide-fullwidth-palette-alert-text is deprecated
26
+ --components-navSide-fullwidth-palette-alert-color: var(--palettes-brand-200);
27
+ --components-navSide-fullwidth-palette-alert-text: var(--palettes-brand-800);
28
+
26
29
  --components-navSide-compact-palette-bg-color: var(--palettes-navigation-800);
27
30
  --components-navSide-compact-palette-text: var(--colors-white-color);
28
31
  --components-navSide-compact-palette-selected-bg: var(--palettes-product-700);
@@ -1,3 +1,5 @@
1
+ @use '@lucca-front/scss/src/commons/config';
2
+
1
3
  @mixin S {
2
4
  --components-numericBadge-size: 1.25rem;
3
5
  --components-numericBadge-borderRadius: 6px;
@@ -16,3 +18,8 @@
16
18
  --components-numericBadge-background: var(--palettes-product-200);
17
19
  --components-numericBadge-color: var(--palettes-product-800);
18
20
  }
21
+
22
+ @mixin brand {
23
+ --components-numericBadge-background: var(--palettes-brand-200);
24
+ --components-numericBadge-color: var(--palettes-brand-800);
25
+ }