@lucca-front/scss 21.2.0-rc.6 → 21.2.0
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/dist/lucca-front.min.css +1 -1
- package/package.json +3 -3
- package/src/commons/base.scss +1 -1
- package/src/commons/vars.scss +1 -1
- package/src/components/button/index.scss +0 -8
- package/src/components/button/mods.scss +14 -2
- package/src/components/button/states.scss +0 -14
- package/src/components/callout/component.scss +0 -7
- package/src/components/callout/index.scss +10 -6
- package/src/components/callout/mods.scss +14 -3
- package/src/components/calloutDisclosure/states.scss +1 -1
- package/src/components/container/component.scss +1 -0
- package/src/components/container/vars.scss +0 -3
- package/src/components/dialog/index.scss +1 -1
- package/src/components/dialog/mods.scss +5 -5
- package/src/components/dialog/vars.scss +3 -3
- package/src/components/emptyState/mods.scss +0 -1
- package/src/components/fileEntry/index.scss +6 -0
- package/src/components/fileEntry/mods.scss +5 -0
- package/src/components/fileToolbar/component.scss +0 -9
- package/src/components/fileToolbar/index.scss +6 -0
- package/src/components/fileToolbar/mods.scss +8 -0
- package/src/components/filterPill/states.scss +1 -1
- package/src/components/filterPill/vars.scss +1 -1
- package/src/components/footer/component.scss +2 -2
- package/src/components/footer/index.scss +8 -0
- package/src/components/footer/mods.scss +4 -0
- package/src/components/footer/vars.scss +1 -0
- package/src/components/gauge/component.scss +1 -1
- package/src/components/indexTable/component.scss +1 -0
- package/src/components/indexTable/mods.scss +1 -0
- package/src/components/multiSelect/states.scss +1 -1
- package/src/components/navside/states.scss +1 -1
- package/src/components/pagination/index.scss +2 -2
- package/src/components/simpleSelect/states.scss +1 -1
- package/src/components/table/mods.scss +1 -1
- package/src/components/textField/component.scss +0 -4
- package/src/components/textField/index.scss +8 -0
- package/src/components/textField/states.scss +7 -3
- package/src/components/toast/vars.scss +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "21.2.0
|
|
3
|
+
"version": "21.2.0",
|
|
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.0
|
|
27
|
-
"@lucca/prisme": "21.2.0
|
|
26
|
+
"@lucca-front/icons": "21.2.0",
|
|
27
|
+
"@lucca/prisme": "21.2.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/src/commons/base.scss
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
color: var(--pr-t-color-text);
|
|
11
11
|
font: var(--pr-t-font-body-M);
|
|
12
12
|
text-rendering: geometricPrecision;
|
|
13
|
-
|
|
13
|
+
inline-size: calc(100% - var(--commons-pushPanel-inlineSize));
|
|
14
14
|
|
|
15
15
|
@supports (-webkit-touch-callout: none) {
|
|
16
16
|
min-block-size: -webkit-fill-available;
|
package/src/commons/vars.scss
CHANGED
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
--commons-divider-border: var(--commons-divider-width) var(--commons-divider-style) var(--commons-divider-color);
|
|
89
89
|
--commons-border-100: var(--palettes-neutral-100);
|
|
90
90
|
--commons-border-200: var(--palettes-neutral-200);
|
|
91
|
-
--commons-pushPanel-
|
|
91
|
+
--commons-pushPanel-inlineSize: 0px;
|
|
92
92
|
|
|
93
93
|
// Deprecated
|
|
94
94
|
--commons-font-family: '#{config.$fontFamily}', Tahoma, sans-serif;
|
|
@@ -36,6 +36,12 @@
|
|
|
36
36
|
// Deprecated
|
|
37
37
|
--components-button-font-size: var(--pr-t-font-body-S-fontSize);
|
|
38
38
|
--components-button-line-height: var(--pr-t-font-body-S-lineHeight);
|
|
39
|
+
|
|
40
|
+
// status icon
|
|
41
|
+
&::after {
|
|
42
|
+
font-size: var(--pr-t-font-body-S-lineHeight);
|
|
43
|
+
block-size: var(--pr-t-font-body-S-lineHeight);
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
@mixin XS {
|
|
@@ -54,6 +60,12 @@
|
|
|
54
60
|
// Deprecated
|
|
55
61
|
--components-button-font-size: var(--pr-t-font-body-XS-fontSize);
|
|
56
62
|
--components-button-line-height: var(--pr-t-font-body-XS-lineHeight);
|
|
63
|
+
|
|
64
|
+
// status icon
|
|
65
|
+
&::after {
|
|
66
|
+
font-size: var(--pr-t-font-body-XS-lineHeight);
|
|
67
|
+
block-size: var(--pr-t-font-body-XS-lineHeight);
|
|
68
|
+
}
|
|
57
69
|
}
|
|
58
70
|
|
|
59
71
|
@mixin onlyIcon {
|
|
@@ -248,7 +260,7 @@
|
|
|
248
260
|
}
|
|
249
261
|
|
|
250
262
|
&[aria-expanded='true'] {
|
|
251
|
-
--components-button-arrow-transform: rotate(
|
|
263
|
+
--components-button-arrow-transform: rotate(180deg);
|
|
252
264
|
}
|
|
253
265
|
}
|
|
254
266
|
|
|
@@ -282,7 +294,7 @@
|
|
|
282
294
|
|
|
283
295
|
background-image:
|
|
284
296
|
linear-gradient(
|
|
285
|
-
|
|
297
|
+
225deg,
|
|
286
298
|
color-mix(in srgb, var(--palettes-AI-500) var(--components-button-AI-background-opacity), transparent),
|
|
287
299
|
color-mix(in srgb, var(--palettes-brand-400) var(--components-button-AI-background-opacity), transparent)
|
|
288
300
|
);
|
|
@@ -111,20 +111,6 @@
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
@mixin successS {
|
|
115
|
-
&::after {
|
|
116
|
-
font-size: var(--pr-t-font-body-S-lineHeight);
|
|
117
|
-
block-size: var(--pr-t-font-body-S-lineHeight);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@mixin successXS {
|
|
122
|
-
&::after {
|
|
123
|
-
font-size: var(--pr-t-font-body-XS-lineHeight);
|
|
124
|
-
block-size: var(--pr-t-font-body-XS-lineHeight);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
114
|
@mixin successOutlined {
|
|
129
115
|
--components-button-backgroundColor: var(--palettes-neutral-0);
|
|
130
116
|
--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,13 +10,17 @@
|
|
|
10
10
|
&.mod-S {
|
|
11
11
|
@include S;
|
|
12
12
|
}
|
|
13
|
-
}
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
&.mod-AI {
|
|
15
|
+
@include AI;
|
|
16
|
+
}
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
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
|
}
|
|
@@ -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
|
-
|
|
55
|
-
|
|
64
|
+
&.mod-onlyIcon {
|
|
65
|
+
@include button.onlyIconXS;
|
|
66
|
+
}
|
|
56
67
|
}
|
|
57
68
|
}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
@mixin vars($atRoot: namespace.$defaultAtRoot) {
|
|
4
4
|
--components-container-minInlineSize: 0;
|
|
5
|
-
--components-container-display: block;
|
|
6
|
-
--components-container-alignItems: normal;
|
|
7
|
-
--components-container-flexDirection: column;
|
|
8
5
|
|
|
9
6
|
// for this component some variables are placed in root
|
|
10
7
|
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
--components-dialog-maxHeight: none;
|
|
35
35
|
--components-dialog-maxHeightFallback: var(--components-dialog-maxHeight);
|
|
36
36
|
--components-dialog-height: calc(100% - var(--pr-t-spacings-100) * 2);
|
|
37
|
-
--components-dialog-maxWidth: calc(100vw - var(--pr-t-spacings-200) - var(--commons-pushPanel-
|
|
37
|
+
--components-dialog-maxWidth: calc(100vw - var(--pr-t-spacings-200) - var(--commons-pushPanel-inlineSize));
|
|
38
38
|
--components-dialog-borderRadius: var(--pr-t-border-radius-structure);
|
|
39
|
-
--components-dialog-inset: var(--pr-t-spacings-100) calc(var(--pr-t-spacings-100) + var(--commons-pushPanel-
|
|
39
|
+
--components-dialog-inset: var(--pr-t-spacings-100) calc(var(--pr-t-spacings-100) + var(--commons-pushPanel-inlineSize)) var(--pr-t-spacings-100) auto;
|
|
40
40
|
--components-dialog-translateX: var(--components-dialog-translate);
|
|
41
41
|
--components-dialog-translateY: 0;
|
|
42
42
|
--components-dialog-translate-spacing: calc(var(--pr-t-spacings-500) * 2);
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
--components-dialog-maxHeight: calc(100dvh - var(--pr-t-spacings-200));
|
|
50
50
|
--components-dialog-maxHeightFallback: calc(100vh - var(--pr-t-spacings-200));
|
|
51
51
|
--components-dialog-maxWidth: none;
|
|
52
|
-
--components-dialog-inset: auto calc(var(--pr-t-spacings-100) + var(--commons-pushPanel-
|
|
52
|
+
--components-dialog-inset: auto calc(var(--pr-t-spacings-100) + var(--commons-pushPanel-inlineSize)) var(--pr-t-spacings-100) var(--pr-t-spacings-100);
|
|
53
53
|
--components-dialog-borderRadius: var(--pr-t-border-radius-structure);
|
|
54
|
-
--components-dialog-width: calc(100% - var(--pr-t-spacings-100) * 2 - var(--commons-pushPanel-
|
|
54
|
+
--components-dialog-width: calc(100% - var(--pr-t-spacings-100) * 2 - var(--commons-pushPanel-inlineSize));
|
|
55
55
|
--components-dialog-height: fit-content;
|
|
56
56
|
--components-dialog-translateX: 0;
|
|
57
57
|
--components-dialog-translateY: var(--components-dialog-translate);
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
--components-dialog-insideContent-paddingBlock: var(--pr-t-spacings-50) var(--pr-t-spacings-200);
|
|
108
108
|
--components-dialog-inside-header-button-position: absolute;
|
|
109
109
|
--components-dialog-inside-header-button-insetBlockStart: var(--pr-t-spacings-100);
|
|
110
|
-
--components-dialog-inside-header-button-
|
|
110
|
+
--components-dialog-inside-header-button-insetInlineEnd: var(--pr-t-spacings-100);
|
|
111
111
|
|
|
112
112
|
.dialog-inside-footer {
|
|
113
113
|
@include footer.fancy;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
--components-dialog-size: 40rem;
|
|
3
3
|
--components-dialog-width: var(--components-dialog-size);
|
|
4
4
|
--components-dialog-height: fit-content;
|
|
5
|
-
--components-dialog-maxWidth: calc(100vw - (var(--pr-t-spacings-200) * 2) - var(--commons-pushPanel-
|
|
5
|
+
--components-dialog-maxWidth: calc(100vw - (var(--pr-t-spacings-200) * 2) - var(--commons-pushPanel-inlineSize));
|
|
6
6
|
--components-dialog-maxHeight: calc(100dvh - (var(--pr-t-spacings-200) * 2));
|
|
7
7
|
--components-dialog-maxHeightFallback: calc(100vh - (var(--pr-t-spacings-200) * 2));
|
|
8
8
|
--components-dialog-borderRadius: var(--pr-t-border-radius-structure);
|
|
9
|
-
--components-dialog-inset: 0 var(--commons-pushPanel-
|
|
9
|
+
--components-dialog-inset: 0 var(--commons-pushPanel-inlineSize) 0 0;
|
|
10
10
|
--components-dialog-animationOpening: scaleIn;
|
|
11
11
|
--components-dialog-insideHeaderAreas: 'container close';
|
|
12
12
|
--components-dialog-insideHeaderTitleAlign: left;
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
--components-dialog-inside-alignContent: normal;
|
|
35
35
|
--components-dialog-inside-fancyIllustrations-inlineSize: var(--components-dialog-inside-paddingInlineEnd);
|
|
36
36
|
--components-dialog-inside-header-button-insetBlockStart: var(--pr-t-spacings-200);
|
|
37
|
-
--components-dialog-inside-header-button-
|
|
37
|
+
--components-dialog-inside-header-button-insetInlineEnd: var(--pr-t-spacings-300);
|
|
38
38
|
}
|
|
@@ -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
|
}
|
|
@@ -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:
|
|
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;
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
inset-block-end: 0;
|
|
9
9
|
position: var(--components-footer-position);
|
|
10
10
|
overflow: var(--components-footer-overflow);
|
|
11
|
-
|
|
12
11
|
display: var(--components-footer-display);
|
|
13
12
|
justify-content: var(--components-footer-justifyContent);
|
|
14
13
|
gap: var(--components-footer-gap);
|
|
@@ -29,12 +28,13 @@
|
|
|
29
28
|
|
|
30
29
|
.footer-containerOptional {
|
|
31
30
|
flex-grow: 1;
|
|
32
|
-
|
|
33
31
|
display: var(--components-footer-display);
|
|
34
32
|
justify-content: var(--components-footer-justifyContent);
|
|
35
33
|
gap: var(--components-footer-gap);
|
|
36
34
|
align-items: var(--components-footer-alignItems);
|
|
37
35
|
flex-direction: var(--components-footer-direction);
|
|
36
|
+
padding: var(--commons-container-padding);
|
|
37
|
+
max-inline-size: var(--components-footer-container-maxInlineSize);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@use 'exports' as *;
|
|
2
2
|
@use '@lucca-front/scss/src/commons/utils/media';
|
|
3
|
+
@use '@lucca-front/scss/src/commons/function';
|
|
4
|
+
@use '@lucca-front/scss/src/commons/config';
|
|
3
5
|
|
|
4
6
|
.footer {
|
|
5
7
|
@layer components {
|
|
@@ -54,5 +56,11 @@
|
|
|
54
56
|
&:has(.footer-containerOptional) {
|
|
55
57
|
@include withContainer;
|
|
56
58
|
}
|
|
59
|
+
|
|
60
|
+
@each $breakpoint, $value in config.$breakpoints {
|
|
61
|
+
.footer-containerOptional.mod-containerMax#{$breakpoint} {
|
|
62
|
+
@include withContainerMax(function.pxToRem($value));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
57
65
|
}
|
|
58
66
|
}
|
|
@@ -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(
|
|
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;
|
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
11
|
+
@mixin invalidHover {
|
|
12
|
+
--component-textField-border: var(--pr-t-color-input-border-critical-hover);
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
@mixin disabled {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@mixin vars {
|
|
2
2
|
--components-toasts-color: var(--pr-t-color-text-reverse);
|
|
3
3
|
--components-toasts-top: var(--pr-t-spacings-300);
|
|
4
|
-
--components-toasts-right: calc(var(--pr-t-spacings-300) + var(--commons-pushPanel-
|
|
4
|
+
--components-toasts-right: calc(var(--pr-t-spacings-300) + var(--commons-pushPanel-inlineSize));
|
|
5
5
|
--components-toasts-left: var(--pr-t-spacings-300);
|
|
6
6
|
--components-toasts-bottom: var(--pr-t-spacings-300);
|
|
7
7
|
--components-toasts-margin-bottom: var(--pr-t-spacings-50);
|