@lucca-front/scss 21.3.0-rc.5 → 22.0.0-rc.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/dist/lucca-front.min.css +1 -1
- package/package.json +3 -3
- package/src/commons/config.scss +4 -26
- package/src/commons/utils/color.scss +2 -2
- package/src/commons/utils/index.scss +0 -4
- package/src/commons/vars.scss +0 -14
- package/src/components/avatar/index.scss +3 -31
- package/src/components/avatar/mods.scss +0 -28
- package/src/components/button/mods.scss +6 -8
- package/src/components/callout/mods.scss +1 -1
- package/src/components/code/component.scss +0 -1
- package/src/components/comment/component.scss +1 -1
- package/src/components/dataTable/component.scss +1 -6
- package/src/components/dialog/component.scss +2 -3
- package/src/components/dialog/index.scss +0 -4
- package/src/components/dialog/mods.scss +0 -6
- package/src/components/dialog/vars.scss +0 -1
- package/src/components/fieldset/mods.scss +0 -6
- package/src/components/fieldset/vars.scss +1 -1
- package/src/components/fileEntry/component.scss +15 -7
- package/src/components/fileEntry/index.scss +18 -10
- package/src/components/fileEntry/mods.scss +21 -16
- package/src/components/fileEntry/states.scss +9 -4
- package/src/components/fileEntry/vars.scss +10 -13
- package/src/components/fileToolbar/component.scss +0 -2
- package/src/components/fileToolbar/index.scss +2 -2
- package/src/components/fileToolbar/mods.scss +13 -8
- package/src/components/fileUpload/component.scss +3 -2
- package/src/components/fileUpload/index.scss +2 -10
- package/src/components/fileUpload/mods.scss +25 -20
- package/src/components/fileUpload/states.scss +0 -9
- package/src/components/fileUpload/vars.scss +20 -17
- package/src/components/filterPill/component.scss +5 -29
- package/src/components/filterPill/index.scss +11 -14
- package/src/components/filterPill/states.scss +8 -7
- package/src/components/filterPill/vars.scss +1 -2
- package/src/components/form/component.scss +0 -6
- package/src/components/form/mods.scss +1 -1
- package/src/components/form/vars.scss +1 -1
- package/src/components/grid/mods.scss +1 -1
- package/src/components/horizontalNavigation/component.scss +1 -23
- package/src/components/horizontalNavigation/index.scss +1 -19
- package/src/components/horizontalNavigation/mods.scss +0 -14
- package/src/components/horizontalNavigation/vars.scss +0 -7
- package/src/components/index.scss +0 -2
- package/src/components/indexTable/component.scss +0 -4
- package/src/components/listing/component.scss +2 -2
- package/src/components/loading/mods.scss +4 -0
- package/src/components/mobilePush/component.scss +1 -1
- package/src/components/multiSelect/component.scss +0 -10
- package/src/components/presentation/component.scss +0 -1
- package/src/components/simpleSelect/index.scss +0 -1
- package/src/components/tag/mods.scss +1 -1
- package/src/components/textFlow/component.scss +0 -2
- package/src/components/timepicker/component.scss +4 -28
- package/src/components/timepicker/mods.scss +3 -24
- package/src/components/timepicker/vars.scss +3 -6
- package/src/components/toast/component.scss +0 -1
- package/src/components/highlightText/component.scss +0 -30
- package/src/components/highlightText/exports.scss +0 -4
- package/src/components/highlightText/index.scss +0 -8
- package/src/components/highlightText/mods.scss +0 -0
- package/src/components/highlightText/states.scss +0 -0
- package/src/components/highlightText/vars.scss +0 -9
- package/src/components/impersonation/component.scss +0 -59
- package/src/components/impersonation/exports.scss +0 -4
- package/src/components/impersonation/index.scss +0 -22
- package/src/components/impersonation/mods.scss +0 -0
- package/src/components/impersonation/states.scss +0 -18
- package/src/components/impersonation/vars.scss +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0-rc.2",
|
|
4
4
|
"description": "A Sass framework for Lucca products.",
|
|
5
5
|
"main": "src/main.scss",
|
|
6
6
|
"scripts": {},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"normalize.css": "^8.0.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@lucca-front/icons": "
|
|
28
|
-
"@lucca/prisme": "
|
|
27
|
+
"@lucca-front/icons": "22.0.0-rc.2",
|
|
28
|
+
"@lucca/prisme": "22.0.0-rc.2"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/commons/config.scss
CHANGED
|
@@ -109,24 +109,10 @@ $borderRadiusTokens: (
|
|
|
109
109
|
'input': var(--pr-t-border-radius-default),
|
|
110
110
|
);
|
|
111
111
|
|
|
112
|
-
$colorAI: orchid, brand;
|
|
113
|
-
|
|
114
|
-
$paletteAI: (
|
|
115
|
-
angle: 'to bottom right',
|
|
116
|
-
color1stop: 0%,
|
|
117
|
-
color2stop: 80%,
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
$tokenAI: (
|
|
121
|
-
border: var(--palettes-ai-300),
|
|
122
|
-
background: var(--palettes-ai-50),
|
|
123
|
-
icon: var(--palettes-ai-600),
|
|
124
|
-
);
|
|
125
|
-
|
|
126
112
|
$product: 'brand' !default;
|
|
127
113
|
$palettesShades: text, 0, 25, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900; // text is deprecated
|
|
128
114
|
$palettesStates: 'critical', 'error', 'warning', 'success', 'successContrasted', 'warningContrasted';
|
|
129
|
-
$palettesDefault: 'brand', 'brandContrasted', 'neutral', 'navigation', '
|
|
115
|
+
$palettesDefault: 'brand', 'brandContrasted', 'neutral', 'navigation', 'AI';
|
|
130
116
|
$palettesProduct: 'product';
|
|
131
117
|
$palettesOtherProduct: () !default;
|
|
132
118
|
$palettesDecorative: 'kiwi', 'cucumber', 'mint', 'lagoon', 'blueberry', 'lavender', 'watermelon', 'pumpkin' !default;
|
|
@@ -163,17 +149,9 @@ $fieldsWidth: 20, 30, 40, 50, 60 !default;
|
|
|
163
149
|
|
|
164
150
|
// Palettes
|
|
165
151
|
|
|
166
|
-
$
|
|
167
|
-
|
|
168
|
-
100: #f3d6ff,
|
|
169
|
-
200: #edc2ff,
|
|
170
|
-
300: #de9ff9,
|
|
171
|
-
400: #cc7ded,
|
|
172
|
-
500: #b95ae2,
|
|
152
|
+
$ai: (
|
|
153
|
+
500: #bc6fdd,
|
|
173
154
|
600: #a440cf,
|
|
174
|
-
700: #8133a3,
|
|
175
|
-
800: #680094,
|
|
176
|
-
900: #4c006b,
|
|
177
155
|
);
|
|
178
156
|
|
|
179
157
|
$brand: (
|
|
@@ -594,6 +572,7 @@ $productsInterpolation: (
|
|
|
594
572
|
);
|
|
595
573
|
|
|
596
574
|
$palettesInterpolation: (
|
|
575
|
+
'AI': $ai,
|
|
597
576
|
'lucca': $brand,
|
|
598
577
|
'brand': $brand,
|
|
599
578
|
'brandContrasted': $brandContrasted,
|
|
@@ -603,7 +582,6 @@ $palettesInterpolation: (
|
|
|
603
582
|
'secondary': map.get($productsInterpolation, $product),
|
|
604
583
|
'product': map.get($productsInterpolation, $product),
|
|
605
584
|
'navigation': $navigation,
|
|
606
|
-
'orchid': $orchid,
|
|
607
585
|
'success': $success,
|
|
608
586
|
'successContrasted': $successContrasted,
|
|
609
587
|
'error': $critical,
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
@include core.rosetta('--palettes-pineapple', '--palettes-pineappleContrasted', config.$palettesShades);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
@mixin borderGradient($
|
|
35
|
+
@mixin borderGradient($angle: 0, $color1: var(--palettes-neutral-0) , $color2: var(--palettes-neutral-900), $radius: var(--pr-t-border-radius-default), $width: var(--commons-divider-width)) {
|
|
36
36
|
&::before {
|
|
37
37
|
content: '';
|
|
38
38
|
pointer-events: none;
|
|
39
39
|
position: absolute;
|
|
40
40
|
inset: calc(#{$width} * -1);
|
|
41
41
|
padding: #{$width};
|
|
42
|
-
background-image: #{$
|
|
42
|
+
background-image: conic-gradient(from #{$angle}, #{$color1}, #{$color2}, #{$color1});
|
|
43
43
|
border-radius: calc(#{$radius} + #{$width});
|
|
44
44
|
mask: linear-gradient(var(--palettes-neutral-0)) content-box, linear-gradient(var(--palettes-neutral-0));
|
|
45
45
|
mask-composite: exclude;
|
|
@@ -580,10 +580,6 @@
|
|
|
580
580
|
@include core.classes('text-decoration', core.$decoration);
|
|
581
581
|
@include core.classes('overflow', core.$overflow);
|
|
582
582
|
|
|
583
|
-
.pr-u-overflowWrapAnywhere {
|
|
584
|
-
overflow-wrap: anywhere !important;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
583
|
@media (prefers-reduced-motion: no-preference) {
|
|
588
584
|
@include core.classes('scroll-behavior', core.$scrollBehavior);
|
|
589
585
|
}
|
package/src/commons/vars.scss
CHANGED
|
@@ -82,20 +82,6 @@
|
|
|
82
82
|
@include core.cssvars('colors', config.$colors, '-color');
|
|
83
83
|
@include core.cssvars('colors', config.$colorsRgb, '-rgb');
|
|
84
84
|
|
|
85
|
-
@include core.cssvars('palettes-ai', config.$paletteAI);
|
|
86
|
-
@include core.cssvars('pr-t-color', config.$tokenAI, '-ai');
|
|
87
|
-
|
|
88
|
-
@each $shade in config.$palettesShades {
|
|
89
|
-
@if $shade != text and $shade != 0 and $shade != 25 {
|
|
90
|
-
--palettes-ai-#{$shade}:
|
|
91
|
-
linear-gradient(
|
|
92
|
-
var(--palettes-ai-angle),
|
|
93
|
-
var(#{'--palettes-'}#{list.nth(config.$colorAI, 1)}-#{$shade}) var(--palettes-ai-color1stop),
|
|
94
|
-
var(#{'--palettes-'}#{list.nth(config.$colorAI, 2)}-#{max($shade - 100, 50)}) var(--palettes-ai-color2stop)
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
85
|
--commons-banner-height: 50px;
|
|
100
86
|
--commons-divider-width: 1px;
|
|
101
87
|
--commons-divider-style: solid;
|
|
@@ -36,38 +36,10 @@
|
|
|
36
36
|
&.mod-placeholder {
|
|
37
37
|
@include placeholder;
|
|
38
38
|
}
|
|
39
|
+
}
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.mod-softRounded {
|
|
45
|
-
&.mod-XS {
|
|
46
|
-
@include softRoundedXS;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.mod-S {
|
|
50
|
-
@include softRoundedS;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@include softRounded;
|
|
54
|
-
|
|
55
|
-
&.mod-L {
|
|
56
|
-
@include softRoundedL;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&.mod-XL {
|
|
60
|
-
@include softRoundedXL;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.mod-XXL {
|
|
64
|
-
@include softRoundedXXL;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.mod-XXXL {
|
|
68
|
-
@include softRoundedXXXL;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
41
|
+
&.mod-AI {
|
|
42
|
+
@include AI;
|
|
71
43
|
}
|
|
72
44
|
}
|
|
73
45
|
|
|
@@ -102,31 +102,3 @@
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
@mixin softRoundedXXXL {
|
|
107
|
-
--components-avatar-borderRadius: var(--pr-t-border-radius-400);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@mixin softRoundedXXL {
|
|
111
|
-
--components-avatar-borderRadius: var(--pr-t-border-radius-300);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
@mixin softRoundedXL {
|
|
115
|
-
--components-avatar-borderRadius: var(--pr-t-border-radius-300);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@mixin softRoundedL {
|
|
119
|
-
--components-avatar-borderRadius: var(--pr-t-border-radius-200);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@mixin softRounded {
|
|
123
|
-
--components-avatar-borderRadius: var(--pr-t-border-radius-200);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
@mixin softRoundedS {
|
|
127
|
-
--components-avatar-borderRadius: var(--pr-t-border-radius-150);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@mixin softRoundedXS {
|
|
131
|
-
--components-avatar-borderRadius: var(--pr-t-border-radius-100);
|
|
132
|
-
}
|
|
@@ -280,12 +280,10 @@
|
|
|
280
280
|
@include outlined;
|
|
281
281
|
|
|
282
282
|
&:not(:disabled) {
|
|
283
|
-
@include color.borderGradient(
|
|
283
|
+
@include color.borderGradient(135deg, var(--palettes-brand-400), var(--palettes-AI-500));
|
|
284
284
|
|
|
285
|
-
&:not(.mod-invert) {
|
|
286
|
-
.
|
|
287
|
-
@include icons.AI;
|
|
288
|
-
}
|
|
285
|
+
&:not(.mod-invert) .lucca-icon {
|
|
286
|
+
@include icons.AI;
|
|
289
287
|
}
|
|
290
288
|
}
|
|
291
289
|
}
|
|
@@ -296,9 +294,9 @@
|
|
|
296
294
|
|
|
297
295
|
background-image:
|
|
298
296
|
linear-gradient(
|
|
299
|
-
|
|
300
|
-
color-mix(in srgb, var(--palettes-
|
|
301
|
-
color-mix(in srgb, var(--palettes-brand-
|
|
297
|
+
225deg,
|
|
298
|
+
color-mix(in srgb, var(--palettes-AI-500) var(--components-button-AI-background-opacity), transparent),
|
|
299
|
+
color-mix(in srgb, var(--palettes-brand-400) var(--components-button-AI-background-opacity), transparent)
|
|
302
300
|
);
|
|
303
301
|
|
|
304
302
|
&:hover,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
--components-callout-boxShadow: var(--pr-t-elevation-shadow-button);
|
|
35
35
|
--components-callout-backgroundColor: var(--pr-t-elevation-surface-raised);
|
|
36
36
|
|
|
37
|
-
@include color.borderGradient(
|
|
37
|
+
@include color.borderGradient(135deg, var(--palettes-brand-400), var(--palettes-AI-500));
|
|
38
38
|
|
|
39
39
|
.callout-icon {
|
|
40
40
|
.lucca-icon {
|
|
@@ -92,16 +92,11 @@
|
|
|
92
92
|
|
|
93
93
|
&:first-child {
|
|
94
94
|
inline-size: var(--components-dataTable-cellFirst-width);
|
|
95
|
-
inset-inline-start: 0;
|
|
96
95
|
|
|
97
96
|
.checkboxField {
|
|
98
97
|
--component-checkboxField-top: 0;
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
|
-
|
|
102
|
-
&:last-child {
|
|
103
|
-
inset-inline-end: 0;
|
|
104
|
-
}
|
|
105
100
|
}
|
|
106
101
|
|
|
107
102
|
.dataTable-body-row-cell,
|
|
@@ -136,7 +131,7 @@
|
|
|
136
131
|
|
|
137
132
|
.dataTable-body-row-cell-expand-button.button {
|
|
138
133
|
vertical-align: top;
|
|
139
|
-
margin-
|
|
134
|
+
margin-left: calc(var(--pr-t-spacings-25) * -1);
|
|
140
135
|
|
|
141
136
|
.lucca-icon {
|
|
142
137
|
transform: rotate(var(--components-dataTable-expand-rotation));
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.dialog-inside-header-actionOptional {
|
|
111
|
-
margin-
|
|
111
|
+
margin-right: calc(var(--pr-t-spacings-100) * -1);
|
|
112
112
|
|
|
113
113
|
&:empty {
|
|
114
114
|
display: none;
|
|
@@ -155,8 +155,7 @@
|
|
|
155
155
|
padding-block: var(--components-dialog-insideContent-paddingBlock);
|
|
156
156
|
padding-inline: var(--components-dialog-insideContent-paddingInline);
|
|
157
157
|
grid-area: overflow;
|
|
158
|
-
overflow:
|
|
159
|
-
display: block;
|
|
158
|
+
overflow: auto;
|
|
160
159
|
outline: none;
|
|
161
160
|
}
|
|
162
161
|
|
|
@@ -150,9 +150,3 @@
|
|
|
150
150
|
--components-footer-paddingInline: var(--pr-t-spacings-150);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
@mixin withHorizontalNavigation {
|
|
155
|
-
--components-dialog-insideContent-overflow: none;
|
|
156
|
-
--components-dialog-inside-header-boxShadow: none;
|
|
157
|
-
--components-dialog-inside-header-paddingBlock: var(--pr-t-spacings-200) 0;
|
|
158
|
-
}
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
--components-dialog-insideContent-background: transparent;
|
|
20
20
|
--components-dialog-insideContent-paddingInline: var(--pr-t-spacings-300);
|
|
21
21
|
--components-dialog-insideContent-paddingBlock: var(--pr-t-spacings-200);
|
|
22
|
-
--components-dialog-insideContent-overflow: auto;
|
|
23
22
|
--components-dialog-level: 0;
|
|
24
23
|
--components-dialog-translate-spacing: var(--pr-t-spacings-500);
|
|
25
24
|
--components-dialog-translate: calc(var(--components-dialog-translate-spacing) * var(--components-dialog-level) * -1);
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
@mixin horizontal {
|
|
9
9
|
grid-template-columns: 1fr auto;
|
|
10
|
-
|
|
11
|
-
--components-form-maxWidth: initial;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
@mixin expandable {
|
|
@@ -20,10 +18,6 @@
|
|
|
20
18
|
&:focus-visible {
|
|
21
19
|
@include a11y.focusVisible;
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
.lucca-icon {
|
|
25
|
-
margin-block-start: var(--pr-t-spacings-50);
|
|
26
|
-
}
|
|
27
21
|
}
|
|
28
22
|
}
|
|
29
23
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@mixin vars {
|
|
2
2
|
--components-fieldset-title: var(--pr-t-font-heading-3);
|
|
3
3
|
--components-fieldset-gap: var(--pr-t-spacings-100);
|
|
4
|
-
--components-fieldset-contentMaxWidth:
|
|
4
|
+
--components-fieldset-contentMaxWidth: 40rem;
|
|
5
5
|
--components-fieldset-title-iconRotation: 0deg;
|
|
6
6
|
--components-fieldset-title-content-flexWrap: nowrap;
|
|
7
7
|
}
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
4
4
|
@use '@lucca-front/scss/src/commons/utils/text';
|
|
5
5
|
|
|
6
|
+
@use '@lucca-front/scss/src/components/loading/exports' as loading;
|
|
6
7
|
@use '@lucca-front/icons/src/icon/exports' as icon;
|
|
7
8
|
|
|
8
9
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
9
10
|
border: 1px solid var(--components-fileEntry-borderColor);
|
|
10
11
|
padding: var(--components-fileEntry-padding);
|
|
11
12
|
margin: 0;
|
|
12
|
-
border-radius: var(--
|
|
13
|
+
border-radius: var(--components-fileEntry-borderRadius);
|
|
13
14
|
background-color: var(--pr-t-elevation-surface-raised);
|
|
14
15
|
gap: 0 var(--components-fileEntry-gapInline);
|
|
15
16
|
position: relative;
|
|
@@ -31,6 +32,12 @@
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
@at-root ($atRoot) {
|
|
35
|
+
.fileEntry-status-content-inside-icon {
|
|
36
|
+
color: var(--palettes-critical-700);
|
|
37
|
+
|
|
38
|
+
@include icon.S;
|
|
39
|
+
}
|
|
40
|
+
|
|
34
41
|
.fileEntryDisplayWrapper {
|
|
35
42
|
display: grid;
|
|
36
43
|
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
|
|
@@ -41,7 +48,7 @@
|
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
.form-field:has(.fileUpload) + & {
|
|
44
|
-
margin-
|
|
51
|
+
margin-top: var(--pr-t-spacings-100);
|
|
45
52
|
}
|
|
46
53
|
}
|
|
47
54
|
|
|
@@ -78,14 +85,11 @@
|
|
|
78
85
|
inline-size: 100%;
|
|
79
86
|
}
|
|
80
87
|
|
|
81
|
-
.fileEntry-status-content-inside-icon {
|
|
82
|
-
color: var(--palettes-critical-700);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
88
|
.fileEntry-status-content-inlineMessage.inlineMessage {
|
|
86
89
|
flex-direction: column;
|
|
87
90
|
align-items: center;
|
|
88
91
|
text-align: center;
|
|
92
|
+
padding: var(--pr-t-spacings-100);
|
|
89
93
|
|
|
90
94
|
.inlineMessage-statusIcon:first-child {
|
|
91
95
|
@include icon.M;
|
|
@@ -176,7 +180,7 @@
|
|
|
176
180
|
}
|
|
177
181
|
|
|
178
182
|
.fileEntry_box.box {
|
|
179
|
-
margin-
|
|
183
|
+
margin-top: var(--pr-t-spacings-150);
|
|
180
184
|
}
|
|
181
185
|
|
|
182
186
|
.fileEntry_box-field {
|
|
@@ -194,5 +198,9 @@
|
|
|
194
198
|
flex-basis: 0;
|
|
195
199
|
min-inline-size: fit-content;
|
|
196
200
|
}
|
|
201
|
+
|
|
202
|
+
.fileEntry-status-content-inside-loading.loading {
|
|
203
|
+
@include loading.S;
|
|
204
|
+
}
|
|
197
205
|
}
|
|
198
206
|
}
|
|
@@ -7,38 +7,46 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
@layer mods {
|
|
10
|
-
&.mod-
|
|
11
|
-
@include
|
|
10
|
+
&.mod-L {
|
|
11
|
+
@include L;
|
|
12
|
+
|
|
13
|
+
&.mod-structure {
|
|
14
|
+
@include structure;
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
&.mod-media {
|
|
15
19
|
@include media;
|
|
16
20
|
|
|
17
|
-
&.mod-
|
|
18
|
-
@include
|
|
21
|
+
&.mod-L {
|
|
22
|
+
@include mediaL;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
&.is-error {
|
|
23
27
|
@include error;
|
|
24
28
|
|
|
25
|
-
&.mod-
|
|
26
|
-
@include
|
|
29
|
+
&.mod-L {
|
|
30
|
+
@include errorL;
|
|
31
|
+
|
|
32
|
+
&.mod-media {
|
|
33
|
+
@include mediaErrorL;
|
|
34
|
+
}
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
&.is-loading {
|
|
31
39
|
@include loading;
|
|
32
40
|
|
|
33
|
-
&.mod-
|
|
34
|
-
@include
|
|
41
|
+
&.mod-L {
|
|
42
|
+
@include loadingL;
|
|
35
43
|
}
|
|
36
44
|
}
|
|
37
45
|
}
|
|
38
46
|
}
|
|
39
47
|
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
@layer mods {
|
|
49
|
+
.fileEntry-description-divider.divider.mod-vertical {
|
|
42
50
|
@include divider;
|
|
43
51
|
}
|
|
44
52
|
}
|
|
@@ -1,42 +1,47 @@
|
|
|
1
1
|
@use '@lucca-front/icons/src/icon/exports' as icon;
|
|
2
2
|
|
|
3
|
-
@mixin
|
|
4
|
-
--components-fileEntry-padding: var(--pr-t-spacings-
|
|
5
|
-
--components-fileEntry-status-inlineSize:
|
|
6
|
-
--components-fileEntry-description-display:
|
|
7
|
-
--components-fileEntry-gridTemplateAreas: 'picture title
|
|
8
|
-
--components-fileEntry-filename-alignSelf:
|
|
9
|
-
--components-fileEntry-gapInline: var(--
|
|
10
|
-
--components-fileEntry-status-content-svg-margin:
|
|
3
|
+
@mixin L {
|
|
4
|
+
--components-fileEntry-padding: var(--pr-t-spacings-150);
|
|
5
|
+
--components-fileEntry-status-inlineSize: 48px;
|
|
6
|
+
--components-fileEntry-description-display: flex;
|
|
7
|
+
--components-fileEntry-gridTemplateAreas: 'picture title toolbar' 'picture description toolbar';
|
|
8
|
+
--components-fileEntry-filename-alignSelf: end;
|
|
9
|
+
--components-fileEntry-gapInline: var(--components-fileEntry-padding);
|
|
10
|
+
--components-fileEntry-status-content-svg-margin: 0;
|
|
11
|
+
--components-fileEntry-status-blockSize: var(--components-fileEntry-status-inlineSize);
|
|
11
12
|
|
|
12
13
|
.fileEntry-status-content-inside-icon {
|
|
13
|
-
@include icon.
|
|
14
|
+
@include icon.M;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
@mixin media {
|
|
18
19
|
--components-fileEntry-padding: var(--pr-t-spacings-75);
|
|
19
|
-
--components-fileEntry-status-aspectRatio: auto;
|
|
20
20
|
--components-fileEntry-status-inlineSize: 100%;
|
|
21
|
-
--components-fileEntry-status-blockSize: calc(21.5rem - 1rem + 2px);
|
|
22
21
|
--components-fileEntry-description-display: none;
|
|
23
22
|
--components-fileEntry-display: block;
|
|
24
|
-
--components-fileEntry-gridColumn: 1 / -1;
|
|
25
23
|
--components-fileEntry-status-content-svg-width: 72px;
|
|
24
|
+
--components-fileEntry-gridColumn: auto;
|
|
25
|
+
--components-fileEntry-status-blockSize: auto;
|
|
26
|
+
--components-fileEntry-status-aspectRatio: 1;
|
|
26
27
|
|
|
27
28
|
&:has(.fileEntry-status-content-fileName) {
|
|
28
29
|
--components-fileEntry-status-content-inside-insetBlockEnd: calc(var(--pr-t-spacings-400) + var(--pr-t-spacings-25));
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
@mixin
|
|
33
|
+
@mixin mediaL {
|
|
33
34
|
--components-fileEntry-minHeight: calc(5rem + 2px);
|
|
34
|
-
--components-fileEntry-gridColumn:
|
|
35
|
-
--components-fileEntry-status-blockSize:
|
|
36
|
-
--components-fileEntry-status-aspectRatio:
|
|
35
|
+
--components-fileEntry-gridColumn: 1 / -1;
|
|
36
|
+
--components-fileEntry-status-blockSize: calc(21.5rem - 1rem + 2px);
|
|
37
|
+
--components-fileEntry-status-aspectRatio: auto;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
@mixin divider {
|
|
40
41
|
--components-divider-marginBlock: var(--pr-t-spacings-25);
|
|
41
42
|
--components-divider-marginInline: 0;
|
|
42
43
|
}
|
|
44
|
+
|
|
45
|
+
@mixin structure {
|
|
46
|
+
--components-fileEntry-borderRadius: var(--pr-t-border-radius-structure);
|
|
47
|
+
}
|
|
@@ -5,18 +5,23 @@
|
|
|
5
5
|
--components-fileEntry-gridTemplateAreas: 'picture title toolbar' 'picture description toolbar';
|
|
6
6
|
--components-fileEntry-status-content-inside-backgroundColor: var(--palettes-critical-50);
|
|
7
7
|
--components-fileEntry-minHeight: 3.75rem;
|
|
8
|
+
--components-fileEntry-description-display: flex;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
@mixin loading {
|
|
11
12
|
--components-fileEntry-status-content-img-opacity: 0.08;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
@mixin
|
|
15
|
+
@mixin loadingL {
|
|
15
16
|
.fileEntry-status-content-inside-loading.loading {
|
|
16
|
-
@include loading.
|
|
17
|
+
@include loading.M;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
@mixin
|
|
21
|
-
--components-fileEntry-status-blockSize:
|
|
21
|
+
@mixin errorL {
|
|
22
|
+
--components-fileEntry-status-blockSize: var(--components-fileEntry-status-inlineSize);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin mediaErrorL {
|
|
26
|
+
--components-fileEntry-status-blockSize: calc(21.5rem - 1rem + 2px);
|
|
22
27
|
}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
@mixin vars {
|
|
2
|
-
--components-fileEntry-
|
|
3
|
-
--components-fileEntry-gapInline: var(--components-fileEntry-padding);
|
|
2
|
+
--components-fileEntry-borderRadius: var(--pr-t-border-radius-default);
|
|
4
3
|
--components-fileEntry-gridColumn: 1 / -1;
|
|
5
4
|
--components-fileEntry-borderColor: var(--palettes-neutral-100);
|
|
6
5
|
--components-fileEntry-minHeight: auto;
|
|
7
|
-
--components-fileEntry-gridTemplateAreas: 'picture title toolbar' 'picture description toolbar';
|
|
8
|
-
|
|
9
6
|
--components-fileEntry-status-content-inside-backgroundColor: var(--palettes-neutral-25);
|
|
10
|
-
|
|
11
7
|
--components-fileEntry-status-content-img-opacity: 1;
|
|
12
8
|
--components-fileEntry-status-content-svg-width: 48px;
|
|
13
9
|
--components-fileEntry-status-content-svg-height: var(--components-fileEntry-status-content-svg-width);
|
|
14
|
-
--components-fileEntry-status-
|
|
15
|
-
|
|
16
|
-
--components-fileEntry-filename-alignSelf: end;
|
|
17
|
-
|
|
18
|
-
--components-fileEntry-status-inlineSize: 48px;
|
|
19
|
-
--components-fileEntry-status-blockSize: var(--components-fileEntry-status-inlineSize);
|
|
10
|
+
--components-fileEntry-status-blockSize: 100%;
|
|
20
11
|
--components-fileEntry-status-margin: 0;
|
|
21
|
-
--components-fileEntry-description-display: flex;
|
|
22
12
|
--components-fileEntry-display: grid;
|
|
23
13
|
--components-fileEntry-status-content-padding: 0;
|
|
24
|
-
|
|
25
14
|
--components-fileEntry-status-content-inside-insetBlockEnd: 0;
|
|
15
|
+
|
|
16
|
+
--components-fileEntry-padding: var(--pr-t-spacings-50);
|
|
17
|
+
--components-fileEntry-status-inlineSize: 32px;
|
|
18
|
+
--components-fileEntry-description-display: none;
|
|
19
|
+
--components-fileEntry-gridTemplateAreas: 'picture title title toolbar';
|
|
20
|
+
--components-fileEntry-filename-alignSelf: center;
|
|
21
|
+
--components-fileEntry-gapInline: var(--pr-t-spacings-75);
|
|
22
|
+
--components-fileEntry-status-content-svg-margin: calc(var(--pr-t-spacings-100) * -1);
|
|
26
23
|
}
|
|
@@ -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/icons/src/icon/exports' as icon;
|
|
5
|
-
|
|
6
4
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
7
5
|
border-radius: var(--pr-t-border-radius-default);
|
|
8
6
|
position: absolute;
|