@lucca-front/scss 21.0.0-rc.5 → 21.0.0-rc.6
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 +2 -2
- package/src/commons/config.scss +9 -9
- package/src/commons/core.scss +2 -1
- package/src/commons/utils/index.scss +10 -1
- package/src/commons/vars.scss +1 -1
- package/src/components/dialog/component.scss +4 -0
- package/src/components/dialog/index.scss +4 -0
- package/src/components/dialog/mods.scss +18 -8
- package/src/components/dialog/vars.scss +6 -0
- package/src/components/filterBar/component.scss +7 -1
- package/src/components/filterBar/index.scss +2 -6
- package/src/components/filterBar/mods.scss +3 -17
- package/src/components/filterBar/vars.scss +1 -0
- package/src/components/popover/component.scss +0 -1
- package/src/components/popover/vars.scss +0 -1
- package/src/components/scrollBox/component.scss +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "21.0.0-rc.
|
|
3
|
+
"version": "21.0.0-rc.6",
|
|
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": "21.0.0-rc.
|
|
26
|
+
"@lucca-front/icons": "21.0.0-rc.6"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/src/commons/config.scss
CHANGED
|
@@ -632,15 +632,15 @@ $colorInputContrasted: (
|
|
|
632
632
|
);
|
|
633
633
|
|
|
634
634
|
$colorText: (
|
|
635
|
-
|
|
636
|
-
heading: var(--palettes-neutral-900),
|
|
637
|
-
highlight: var(--palettes-neutral-900),
|
|
638
|
-
subtle: var(--palettes-neutral-600),
|
|
639
|
-
disabled: var(--palettes-neutral-500),
|
|
640
|
-
reverse: var(--palettes-neutral-0),
|
|
641
|
-
success: var(--palettes-success-700),
|
|
642
|
-
warning: var(--palettes-warning-700),
|
|
643
|
-
critical: var(--palettes-critical-700),
|
|
635
|
+
text: var(--palettes-neutral-800),
|
|
636
|
+
text-heading: var(--palettes-neutral-900),
|
|
637
|
+
text-highlight: var(--palettes-neutral-900),
|
|
638
|
+
text-subtle: var(--palettes-neutral-600),
|
|
639
|
+
text-disabled: var(--palettes-neutral-500),
|
|
640
|
+
text-reverse: var(--palettes-neutral-0),
|
|
641
|
+
text-success: var(--palettes-success-700),
|
|
642
|
+
text-warning: var(--palettes-warning-700),
|
|
643
|
+
text-critical: var(--palettes-critical-700),
|
|
644
644
|
);
|
|
645
645
|
|
|
646
646
|
$breakpoints: (
|
package/src/commons/core.scss
CHANGED
|
@@ -108,8 +108,9 @@ $cursor: 'pointer', 'auto', 'default', 'text';
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
@mixin palettes($suffix: '!important') {
|
|
111
|
+
// .pr-u-text is deprecated
|
|
111
112
|
@each $palette in config.$palettesAll {
|
|
112
|
-
.pr-u-text#{transform.capitalize($palette)} {
|
|
113
|
+
.pr-u-text#{transform.capitalize($palette)}, .pr-u-colorText#{transform.capitalize($palette)} {
|
|
113
114
|
color: var(--palettes-#{$palette}-700) #{$suffix};
|
|
114
115
|
}
|
|
115
116
|
|
|
@@ -395,14 +395,17 @@
|
|
|
395
395
|
@extend %textCenter;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
+
// textLight is deprecated
|
|
398
399
|
.pr-u-textLight {
|
|
399
400
|
@extend %textLight;
|
|
400
401
|
}
|
|
401
402
|
|
|
402
|
-
|
|
403
|
+
// textPlaceholder is deprecated
|
|
404
|
+
.pr-u-textPlaceholder, .pr-u-colorInputTextPlaceholder {
|
|
403
405
|
@extend %textPlaceholder;
|
|
404
406
|
}
|
|
405
407
|
|
|
408
|
+
// textDefault is deprecated
|
|
406
409
|
.pr-u-textDefault {
|
|
407
410
|
@extend %textDefault;
|
|
408
411
|
}
|
|
@@ -516,6 +519,12 @@
|
|
|
516
519
|
}
|
|
517
520
|
}
|
|
518
521
|
|
|
522
|
+
@each $colorText, $value in config.$colorText {
|
|
523
|
+
.pr-u-color#{transform.capitalize(transform.camelize($colorText))} {
|
|
524
|
+
color: var(--pr-t-color-#{$colorText}) !important
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
519
528
|
%inset0 {
|
|
520
529
|
inset: 0 !important;
|
|
521
530
|
}
|
package/src/commons/vars.scss
CHANGED
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
position: fixed !important;
|
|
20
20
|
max-inline-size: var(--components-dialog-maxWidth) !important;
|
|
21
21
|
max-block-size: var(--components-dialog-maxHeight) !important;
|
|
22
|
+
transition-property: scale, translate, inline-size, block-size, inset;
|
|
23
|
+
transition-duration: var(--commons-animations-durations-standard);
|
|
22
24
|
overflow: hidden;
|
|
25
|
+
translate: var(--components-dialog-translateX) var(--components-dialog-translateY);
|
|
26
|
+
scale: var(--components-dialog-scale);
|
|
23
27
|
|
|
24
28
|
@supports not (height: 1dvh) {
|
|
25
29
|
--components-dialog-maxHeight: var(--components-dialog-maxHeightFallback);
|
|
@@ -31,10 +31,13 @@
|
|
|
31
31
|
--components-dialog-animationOpening: slideFromRight;
|
|
32
32
|
--components-dialog-maxHeight: none;
|
|
33
33
|
--components-dialog-maxHeightFallback: var(--components-dialog-maxHeight);
|
|
34
|
-
--components-dialog-height: 100
|
|
34
|
+
--components-dialog-height: calc(100% - var(--pr-t-spacings-100) * 2);
|
|
35
35
|
--components-dialog-maxWidth: calc(100vw - var(--pr-t-spacings-200));
|
|
36
|
-
--components-dialog-borderRadius: var(--pr-t-border-radius-structure)
|
|
37
|
-
--components-dialog-inset:
|
|
36
|
+
--components-dialog-borderRadius: var(--pr-t-border-radius-structure);
|
|
37
|
+
--components-dialog-inset: var(--pr-t-spacings-100) var(--pr-t-spacings-100) var(--pr-t-spacings-100) auto;
|
|
38
|
+
--components-dialog-translateX: var(--components-dialog-translate);
|
|
39
|
+
--components-dialog-translateY: 0;
|
|
40
|
+
--components-dialog-translate-spacing: calc(var(--pr-t-spacings-500) * 2);
|
|
38
41
|
|
|
39
42
|
@include keyframe.slideFromRight;
|
|
40
43
|
}
|
|
@@ -44,26 +47,30 @@
|
|
|
44
47
|
--components-dialog-maxHeight: calc(100dvh - var(--pr-t-spacings-200));
|
|
45
48
|
--components-dialog-maxHeightFallback: calc(100vh - var(--pr-t-spacings-200));
|
|
46
49
|
--components-dialog-maxWidth: none;
|
|
47
|
-
--components-dialog-inset: auto
|
|
48
|
-
--components-dialog-borderRadius: var(--pr-t-border-radius-structure)
|
|
49
|
-
--components-dialog-width: 100
|
|
50
|
+
--components-dialog-inset: auto var(--pr-t-spacings-100) var(--pr-t-spacings-100) var(--pr-t-spacings-100);
|
|
51
|
+
--components-dialog-borderRadius: var(--pr-t-border-radius-structure);
|
|
52
|
+
--components-dialog-width: calc(100% - var(--pr-t-spacings-100) * 2);
|
|
50
53
|
--components-dialog-height: fit-content;
|
|
54
|
+
--components-dialog-translateX: 0;
|
|
55
|
+
--components-dialog-translateY: var(--components-dialog-translate);
|
|
56
|
+
--components-dialog-translate-spacing: var(--pr-t-spacings-500);
|
|
51
57
|
|
|
52
58
|
@include keyframe.slideFromBottom;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
@mixin maxContent {
|
|
56
62
|
--components-dialog-size: 100%;
|
|
57
|
-
--components-dialog-height: 100
|
|
63
|
+
--components-dialog-height: calc(100% - var(--pr-t-spacings-100) * 2);
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
@mixin fullScreen {
|
|
61
67
|
--components-dialog-height: 100%;
|
|
62
|
-
--components-dialog-
|
|
68
|
+
--components-dialog-width: 100%;
|
|
63
69
|
--components-dialog-maxWidth: none;
|
|
64
70
|
--components-dialog-maxHeight: none;
|
|
65
71
|
--components-dialog-maxHeightFallback: var(--components-dialog-maxHeight);
|
|
66
72
|
--components-dialog-borderRadius: 0;
|
|
73
|
+
--components-dialog-inset: 0;
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
@mixin neutralBackground {
|
|
@@ -83,3 +90,6 @@
|
|
|
83
90
|
}
|
|
84
91
|
}
|
|
85
92
|
|
|
93
|
+
@mixin stacked {
|
|
94
|
+
|
|
95
|
+
}
|
|
@@ -15,4 +15,10 @@
|
|
|
15
15
|
--components-dialog-insideHeaderLinkDisplay: none;
|
|
16
16
|
--components-dialog-insideHeaderColumns: 1fr auto auto;
|
|
17
17
|
--components-dialog-insideContent-background: transparent;
|
|
18
|
+
--components-dialog-level: 0;
|
|
19
|
+
--components-dialog-translate-spacing: var(--pr-t-spacings-500);
|
|
20
|
+
--components-dialog-translate: calc(var(--components-dialog-translate-spacing) * var(--components-dialog-level) * -1);
|
|
21
|
+
--components-dialog-translateX: 0;
|
|
22
|
+
--components-dialog-translateY: var(--components-dialog-translate);
|
|
23
|
+
--components-dialog-scale: calc(1 - (var(--components-dialog-level) * 0.05));
|
|
18
24
|
}
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
@use '@lucca-front/scss/src/components/clear/exports' as clear;
|
|
9
9
|
@use '@lucca-front/scss/src/components/segmentedControl/exports' as segmentedControl;
|
|
10
10
|
@use '@lucca-front/scss/src/components/textField/exports' as textField;
|
|
11
|
+
@use '@lucca-front/scss/src/components/divider/exports' as divider;
|
|
11
12
|
|
|
12
13
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
13
14
|
display: flex;
|
|
14
15
|
align-items: flex-start;
|
|
15
|
-
flex-wrap:
|
|
16
|
+
flex-wrap: var(--components-filterBar-flexWrap);
|
|
16
17
|
gap: var(--pr-t-spacings-100);
|
|
17
18
|
|
|
18
19
|
.textField {
|
|
@@ -21,6 +22,10 @@
|
|
|
21
22
|
|
|
22
23
|
@at-root ($atRoot) {
|
|
23
24
|
.filterBar-divider.divider {
|
|
25
|
+
@include divider.vertical;
|
|
26
|
+
|
|
27
|
+
margin-inline: var(--pr-t-spacings-50);
|
|
28
|
+
|
|
24
29
|
&:last-child {
|
|
25
30
|
display: none;
|
|
26
31
|
}
|
|
@@ -39,6 +44,7 @@
|
|
|
39
44
|
gap: var(--pr-t-spacings-100);
|
|
40
45
|
flex-wrap: var(--components-filterBar-scrollBox-group-flexWrap);
|
|
41
46
|
flex-grow: 1;
|
|
47
|
+
flex-shrink: 1 !important;
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
.filterBar-scrollBox-export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@use '@lucca-front/scss/src/commons/utils/overflow';
|
|
2
|
-
|
|
3
|
-
@use '@lucca-front/scss/src/components/divider/exports' as divider;
|
|
4
2
|
@use '@lucca-front/scss/src/components/scrollBox/exports' as scrollBox;
|
|
5
3
|
|
|
6
|
-
@mixin
|
|
4
|
+
@mixin narrow {
|
|
5
|
+
--components-filterBar-flexWrap: wrap;
|
|
6
|
+
|
|
7
7
|
.filterBar-segmentedControl.segmentedControl {
|
|
8
8
|
--components-segmentedControl-direction: row;
|
|
9
9
|
--components-segmentedControl-width: 100%;
|
|
@@ -14,20 +14,6 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
@mixin notCompact {
|
|
18
|
-
.filterBar-divider.divider {
|
|
19
|
-
margin-inline: var(--pr-t-spacings-50);
|
|
20
|
-
|
|
21
|
-
@include divider.vertical;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.filterBar-scrollBox.scrollBox {
|
|
25
|
-
&:has(.filterBar-scrollBox-export) {
|
|
26
|
-
flex-wrap: nowrap;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
17
|
@mixin touch {
|
|
32
18
|
--components-filterBar-scrollBox-flexGrow: 1;
|
|
33
19
|
--components-filterBar-scrollBox-group-flexWrap: nowrap;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
position: relative;
|
|
11
11
|
min-block-size: var(--pr-t-spacings-500);
|
|
12
12
|
min-inline-size: var(--pr-t-spacings-500);
|
|
13
|
-
max-inline-size: var(--components-popover-maxInlineSize);
|
|
14
13
|
animation: popup var(--commons-animations-durations-fast) ease 1 forwards;
|
|
15
14
|
|
|
16
15
|
// need of a higher specificity
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
flex-shrink: 0;
|
|
33
33
|
inline-size: var(--components-scrollBox-shadowSize);
|
|
34
34
|
inset-block: 0;
|
|
35
|
+
inset-inline: calc(var(--components-scrollBox-paddingInline) * -1);
|
|
35
36
|
margin-block: calc(var(--components-scrollBox-paddingBlock) * -1);
|
|
36
37
|
background-repeat: no-repeat;
|
|
37
38
|
z-index: 10;
|
|
@@ -44,8 +45,8 @@
|
|
|
44
45
|
|
|
45
46
|
&::before {
|
|
46
47
|
opacity: var(--components-scrollBox-beforeOpacity);
|
|
47
|
-
|
|
48
|
-
margin-inline-end: calc(var(--components-scrollBox-
|
|
48
|
+
margin-inline-start: calc(var(--components-scrollBox-paddingInline) * -1);
|
|
49
|
+
margin-inline-end: calc(var(--components-scrollBox-paddingInline) - var(--components-scrollBox-shadowSize) - var(--components-scrollBox-gap));
|
|
49
50
|
background-position: 0% 50%;
|
|
50
51
|
background-image: radial-gradient(
|
|
51
52
|
farthest-side at 0% 50%,
|
|
@@ -66,8 +67,8 @@
|
|
|
66
67
|
|
|
67
68
|
&::after {
|
|
68
69
|
opacity: var(--components-scrollBox-afterOpacity);
|
|
69
|
-
|
|
70
|
-
margin-inline-
|
|
70
|
+
margin-inline-start: calc(var(--components-scrollBox-paddingInline) - var(--components-scrollBox-shadowSize) - var(--components-scrollBox-gap));
|
|
71
|
+
margin-inline-end: calc(var(--components-scrollBox-paddingInline) * -1);
|
|
71
72
|
background-position: 100% 50%;
|
|
72
73
|
background-image: radial-gradient(
|
|
73
74
|
farthest-side at 100% 50%,
|