@lucca-front/scss 21.1.3 → 21.1.4

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.1.3",
3
+ "version": "21.1.4",
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.1.3",
27
- "@lucca/prisme": "21.1.3"
26
+ "@lucca-front/icons": "21.1.4",
27
+ "@lucca/prisme": "21.1.4"
28
28
  }
29
29
  }
@@ -184,14 +184,6 @@
184
184
  &.mod-ghost {
185
185
  @include successGhost;
186
186
  }
187
-
188
- &.mod-S {
189
- @include successS;
190
- }
191
-
192
- &.mod-XS {
193
- @include successXS;
194
- }
195
187
  }
196
188
 
197
189
  // .disabled is deprecated
@@ -4,6 +4,29 @@
4
4
  @use '@lucca-front/scss/src/commons/utils/color';
5
5
  @use '@lucca-front/scss/src/components/numericBadge/exports' as numericBadge;
6
6
 
7
+ @mixin M {
8
+ @include icons.M;
9
+
10
+ --components-button-font: var(--pr-t-font-body-M);
11
+ --components-button-paddingBlock: var(--pr-t-spacings-100);
12
+ --components-button-paddingInline: var(--pr-t-spacings-150);
13
+ --components-button-gap: var(--pr-t-spacings-100);
14
+
15
+ .numericBadge {
16
+ @include numericBadge.M;
17
+ }
18
+
19
+ // Deprecated
20
+ --components-button-font-size: var(--pr-t-font-body-M-fontSize);
21
+ --components-button-line-height: var(--pr-t-font-body-M-lineHeight);
22
+
23
+ // status icon
24
+ &::after {
25
+ font-size: var(--pr-t-font-body-M-lineHeight);
26
+ block-size: var(--pr-t-font-body-M-lineHeight);
27
+ }
28
+ }
29
+
7
30
  @mixin S {
8
31
  @include icons.S;
9
32
 
@@ -19,6 +42,12 @@
19
42
  // Deprecated
20
43
  --components-button-font-size: var(--pr-t-font-body-S-fontSize);
21
44
  --components-button-line-height: var(--pr-t-font-body-S-lineHeight);
45
+
46
+ // status icon
47
+ &::after {
48
+ font-size: var(--pr-t-font-body-S-lineHeight);
49
+ block-size: var(--pr-t-font-body-S-lineHeight);
50
+ }
22
51
  }
23
52
 
24
53
  @mixin XS {
@@ -37,6 +66,12 @@
37
66
  // Deprecated
38
67
  --components-button-font-size: var(--pr-t-font-body-XS-fontSize);
39
68
  --components-button-line-height: var(--pr-t-font-body-XS-lineHeight);
69
+
70
+ // status icon
71
+ &::after {
72
+ font-size: var(--pr-t-font-body-XS-lineHeight);
73
+ block-size: var(--pr-t-font-body-XS-lineHeight);
74
+ }
40
75
  }
41
76
 
42
77
  @mixin onlyIcon {
@@ -231,7 +266,7 @@
231
266
  }
232
267
 
233
268
  &[aria-expanded='true'] {
234
- --components-button-arrow-transform: rotate(-180deg);
269
+ --components-button-arrow-transform: rotate(180deg);
235
270
  }
236
271
  }
237
272
 
@@ -264,7 +299,7 @@
264
299
  --components-button-color: var(--palettes-neutral-0);
265
300
 
266
301
  background-image: linear-gradient(
267
- -135deg,
302
+ 225deg,
268
303
  color-mix(in srgb, var(--palettes-AI-500) var(--components-button-AI-background-opacity), transparent),
269
304
  color-mix(in srgb, var(--palettes-brand-400) var(--components-button-AI-background-opacity), transparent)
270
305
  );
@@ -108,20 +108,6 @@
108
108
  }
109
109
  }
110
110
 
111
- @mixin successS {
112
- &::after {
113
- font-size: var(--pr-t-font-body-S-lineHeight);
114
- block-size: var(--pr-t-font-body-S-lineHeight);
115
- }
116
- }
117
-
118
- @mixin successXS {
119
- &::after {
120
- font-size: var(--pr-t-font-body-XS-lineHeight);
121
- block-size: var(--pr-t-font-body-XS-lineHeight);
122
- }
123
- }
124
-
125
111
  @mixin successOutlined {
126
112
  --components-button-backgroundColor: var(--palettes-neutral-0);
127
113
  --components-button-boxShadow: 0 0 0 var(--commons-divider-width) var(--palettes-neutral-100);
@@ -1,8 +1,6 @@
1
1
  @use '@lucca-front/icons/src/commons/utils/icon';
2
2
  @use '@lucca-front/scss/src/commons/utils/reset';
3
3
  @use '@lucca-front/scss/src/commons/utils/a11y';
4
- @use '@lucca-front/scss/src/commons/utils/color';
5
- @use '@lucca-front/scss/src/components/button/exports' as button;
6
4
  @use '@lucca-front/scss/src/commons/utils/namespace';
7
5
 
8
6
  @mixin component($atRoot: namespace.$defaultAtRoot) {
@@ -53,11 +51,6 @@
53
51
  margin-block-start: var(--components-callout-content-description-action-marginBlockStart);
54
52
  padding-block: var(--components-callout-content-description-action-paddingBlock);
55
53
  padding-inline: 0;
56
-
57
- .button {
58
- @include color.palette('neutral');
59
- @include button.S;
60
- }
61
54
  }
62
55
 
63
56
  .callout-icon {
@@ -10,14 +10,18 @@
10
10
  &.mod-S {
11
11
  @include S;
12
12
  }
13
- }
14
13
 
15
- &.mod-AI {
16
- @include AI;
17
- }
14
+ &.mod-AI {
15
+ @include AI;
16
+ }
18
17
 
19
- &:has(.callout-content-description-actions.mod-inline) {
20
- @include actionsInline;
18
+ &:has(.callout-content-description-actions) {
19
+ @include actions;
20
+ }
21
+
22
+ &:has(.callout-content-description-actions.mod-inline) {
23
+ @include actionsInline;
24
+ }
21
25
  }
22
26
  }
23
27
 
@@ -42,6 +42,17 @@
42
42
  }
43
43
  }
44
44
 
45
+ @mixin actions {
46
+ .button {
47
+ @include color.palette('neutral');
48
+ @include button.S;
49
+
50
+ &.mod-onlyIcon {
51
+ @include button.onlyIconS;
52
+ }
53
+ }
54
+ }
55
+
45
56
  @mixin actionsInline {
46
57
  --components-callout-content-description-display: flex;
47
58
  --components-callout-content-description-action-marginBlockStart: 0;
@@ -49,9 +60,9 @@
49
60
 
50
61
  .button {
51
62
  @include button.XS;
52
- }
53
63
 
54
- .button.mod-onlyIcon {
55
- @include button.onlyIconXS;
64
+ &.mod-onlyIcon {
65
+ @include button.onlyIconXS;
66
+ }
56
67
  }
57
68
  }
@@ -1,5 +1,5 @@
1
1
  @mixin open {
2
2
  .calloutDisclosure-summary-chevron {
3
- transform: rotate(-180deg);
3
+ transform: rotate(180deg);
4
4
  }
5
5
  }
@@ -61,6 +61,5 @@
61
61
  }
62
62
 
63
63
  @mixin insideContainer {
64
- --components-emptyState-container-maxWidth: none;
65
64
  --components-emptyState-container-left: auto;
66
65
  }
@@ -36,3 +36,9 @@
36
36
  }
37
37
  }
38
38
  }
39
+
40
+ .fileEntry-description-divider.divider.mod-vertical {
41
+ @layer mods {
42
+ @include divider;
43
+ }
44
+ }
@@ -35,3 +35,8 @@
35
35
  --components-fileEntry-status-blockSize: auto;
36
36
  --components-fileEntry-status-aspectRatio: 1;
37
37
  }
38
+
39
+ @mixin divider {
40
+ --components-divider-marginBlock: var(--pr-t-spacings-25);
41
+ --components-divider-marginInline: 0;
42
+ }
@@ -1,8 +1,6 @@
1
1
  @use '@lucca-front/scss/src/commons/utils/namespace';
2
2
  @use '@lucca-front/scss/src/commons/utils/reset';
3
3
 
4
- @use '@lucca-front/scss/src/components/button/exports' as button;
5
-
6
4
  @use '@lucca-front/icons/src/icon/exports' as icon;
7
5
 
8
6
  @mixin component($atRoot: namespace.$defaultAtRoot) {
@@ -24,12 +22,5 @@
24
22
  gap: var(--pr-t-spacings-50);
25
23
  padding: var(--components-fileToolbar-list-padding);
26
24
  }
27
-
28
- .fileToolbar-list-item-button.button {
29
- @include button.ghost;
30
- @include button.S;
31
-
32
- --components-button-padding: var(--pr-t-spacings-75) !important;
33
- }
34
25
  }
35
26
  }
@@ -15,4 +15,10 @@
15
15
  }
16
16
  }
17
17
  }
18
+
19
+ @layer mods {
20
+ .fileToolbar-list-item-button.button {
21
+ @include button;
22
+ }
23
+ }
18
24
  }
@@ -7,3 +7,11 @@
7
7
  @mixin disablePositioningS {
8
8
  --components-fileToolbar-list-padding: 0;
9
9
  }
10
+
11
+ @mixin button {
12
+ @include button.ghost;
13
+ @include button.S;
14
+
15
+ --components-button-borderRadius: 4px;
16
+ --components-button-padding: var(--pr-t-spacings-75);
17
+ }
@@ -79,7 +79,7 @@
79
79
  }
80
80
 
81
81
  @mixin opened {
82
- --components-filterPill-toggle-rotation: -0.5turn;
82
+ --components-filterPill-toggle-rotation: 180deg;
83
83
  }
84
84
 
85
85
  @mixin beginning {
@@ -12,7 +12,7 @@
12
12
  --components-filterPill-checkbox-borderColor: var(--palettes-neutral-700);
13
13
  --components-filterPill-checkbox-icon-scale: 0;
14
14
  --components-filterPill-checkbox-icon-timingFonction: cubic-bezier(0.5, -0.5, 0.5, 0);
15
- --components-filterPill-toggle-rotation: 0;
15
+ --components-filterPill-toggle-rotation: 0deg;
16
16
  --components-filterPill-toggle-iconColor: var(--palettes-neutral-600);
17
17
  --components-filterPill-shadow: 0 0 0 1px var(--components-filterPill-borderColor);
18
18
  --components-filterPill-display: flex;
@@ -39,7 +39,7 @@
39
39
  stroke-width: var(--components-gauge-circle-strokeWidth);
40
40
  stroke-linecap: round;
41
41
  stroke-dashoffset: 0;
42
- transform: rotate(-0.25turn);
42
+ transform: rotate(270deg);
43
43
  transform-origin: 50% 50%;
44
44
  stroke-dasharray: calc(var(--components-gauge-circleP) / 100 * var(--components-gauge-value)), 9999;
45
45
  stroke: currentColor;
@@ -222,6 +222,7 @@
222
222
  gap: var(--pr-t-spacings-100);
223
223
  padding: var(--pr-t-spacings-25);
224
224
  font-weight: var(--pr-t-font-fontWeight-semibold);
225
+ inline-size: fit-content;
225
226
  }
226
227
 
227
228
 
@@ -399,5 +399,6 @@
399
399
  content: '';
400
400
  position: absolute;
401
401
  inset: 0;
402
+ z-index: 1;
402
403
  }
403
404
  }
@@ -25,7 +25,7 @@
25
25
 
26
26
  @mixin expanded {
27
27
  .multipleSelect-arrow {
28
- transform: rotate(-180deg);
28
+ transform: rotate(180deg);
29
29
  }
30
30
  }
31
31
 
@@ -9,7 +9,7 @@
9
9
 
10
10
  @mixin expanded {
11
11
  .navSide-item-arrow {
12
- transform: rotate(-90deg);
12
+ transform: rotate(270deg);
13
13
  }
14
14
  }
15
15
 
@@ -6,8 +6,8 @@
6
6
  @include component;
7
7
  }
8
8
 
9
- @layer components {
10
- &.mod-mods {
9
+ @layer mods {
10
+ &.mod-compact {
11
11
  @include compact;
12
12
  }
13
13
  }
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  .simpleSelect-field-icon {
30
- transform: rotate(-180deg);
30
+ transform: rotate(180deg);
31
31
  }
32
32
  }
33
33
 
@@ -183,7 +183,7 @@
183
183
  .table-body-row-cell,
184
184
  .table-foot-row-cell {
185
185
  &::before {
186
- transform: rotate(-180deg);
186
+ transform: rotate(180deg);
187
187
  }
188
188
  }
189
189
  }
@@ -12,10 +12,6 @@
12
12
  box-shadow: 0 0 0 1px var(--component-textField-border);
13
13
  inline-size: var(--component-textField-width);
14
14
 
15
- &:hover {
16
- box-shadow: 0 0 0 1px var(--component-textField-borderHover);
17
- }
18
-
19
15
  &:has(.textField-input-value:focus-visible) {
20
16
  @include a11y.focusVisible($offset: 3px);
21
17
  }
@@ -7,6 +7,10 @@
7
7
  }
8
8
 
9
9
  @layer mods {
10
+ &:hover {
11
+ @include hover;
12
+ }
13
+
10
14
  &.mod-S {
11
15
  @include S;
12
16
  }
@@ -22,6 +26,10 @@
22
26
  &.is-invalid,
23
27
  &:has(.textField-input-value[aria-invalid='true']) {
24
28
  @include invalid;
29
+
30
+ &:hover {
31
+ @include invalidHover;
32
+ }
25
33
  }
26
34
 
27
35
  &.is-disabled,
@@ -1,11 +1,15 @@
1
+ @mixin hover {
2
+ --component-textField-border: var(--component-textField-borderHover);
3
+ }
4
+
1
5
  @mixin invalid {
2
6
  --component-textField-border: var(--pr-t-color-input-border-critical);
3
7
  --component-textField-background: var(--pr-t-color-input-background-critical);
4
8
  --component-textField-placeholder: var(--pr-t-color-input-text-placeholder-critical);
9
+ }
5
10
 
6
- &:hover {
7
- --component-textField-border: var(--pr-t-color-input-border-critical-hover);
8
- }
11
+ @mixin invalidHover {
12
+ --component-textField-border: var(--pr-t-color-input-border-critical-hover);
9
13
  }
10
14
 
11
15
  @mixin disabled {