@lucca-front/scss 21.3.0-rc.5 → 21.3.0-rc.7
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/utils/color.scss +7 -3
- package/src/commons/vars.scss +4 -0
- package/src/components/appLayout/component.scss +4 -1
- package/src/components/avatar/component.scss +2 -0
- package/src/components/bubbleIcon/index.scss +4 -0
- package/src/components/bubbleIcon/mods.scss +9 -1
- package/src/components/checkbox/states.scss +1 -1
- package/src/components/checkboxField/states.scss +1 -1
- package/src/components/color/index.scss +1 -2
- package/src/components/dialog/component.scss +2 -0
- package/src/components/dialog/mods.scss +4 -2
- package/src/components/dialog/vars.scss +2 -0
- package/src/components/fieldset/index.scss +4 -0
- package/src/components/fieldset/mods.scss +8 -4
- package/src/components/footer/component.scss +1 -0
- package/src/components/footer/mods.scss +1 -0
- package/src/components/footer/vars.scss +1 -0
- package/src/components/horizontalNavigation/index.scss +8 -0
- package/src/components/pageHeader/component.scss +3 -2
- package/src/components/pageHeader/mods.scss +2 -0
- package/src/components/pageHeader/vars.scss +2 -0
- package/src/components/popover/component.scss +10 -0
- package/src/components/popover/vars.scss +2 -0
- package/src/components/radio/states.scss +3 -3
- package/src/components/radioField/states.scss +3 -3
- package/src/components/textField/component.scss +16 -0
- package/src/components/textField/index.scss +12 -0
- package/src/components/textField/mods.scss +23 -0
- package/src/components/textField/states.scss +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/scss",
|
|
3
|
-
"version": "21.3.0-rc.
|
|
3
|
+
"version": "21.3.0-rc.7",
|
|
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": "21.3.0-rc.
|
|
28
|
-
"@lucca/prisme": "21.3.0-rc.
|
|
27
|
+
"@lucca-front/icons": "21.3.0-rc.7",
|
|
28
|
+
"@lucca/prisme": "21.3.0-rc.7"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -12,14 +12,18 @@
|
|
|
12
12
|
@return color-mix(in $space, $color $amount, transparent);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@mixin palette($name, $shades: config.$palettesShades, $palette: false) {
|
|
15
|
+
@mixin palette($name: '', $shades: config.$palettesShades, $palette: false) {
|
|
16
|
+
@if $name != '' {
|
|
17
|
+
$name: '-' + $name;
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
@each $shade in $shades {
|
|
17
21
|
@if $palette {
|
|
18
22
|
@if map.get($palette, $shade) {
|
|
19
|
-
--palettes-#{$shade}: var(--palettes
|
|
23
|
+
--palettes-#{$shade}: var(--palettes#{$name}-#{$shade});
|
|
20
24
|
}
|
|
21
25
|
} @else {
|
|
22
|
-
--palettes-#{$shade}: var(--palettes
|
|
26
|
+
--palettes-#{$shade}: var(--palettes#{$name}-#{$shade});
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
}
|
package/src/commons/vars.scss
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
3
3
|
|
|
4
4
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
5
|
-
|
|
5
|
+
@media screen {
|
|
6
|
+
block-size: var(--components-appLayout-blockSize);
|
|
7
|
+
}
|
|
8
|
+
|
|
6
9
|
inline-size: var(--components-appLayout-inlineSize);
|
|
7
10
|
grid-template: var(--components-appLayout-gridTemplate);
|
|
8
11
|
display: grid;
|
|
@@ -80,6 +80,8 @@
|
|
|
80
80
|
inline-size: var(--components-avatar-size);
|
|
81
81
|
block-size: var(--components-avatar-size);
|
|
82
82
|
font-size: var(--components-avatarWrapper-fontSize);
|
|
83
|
+
border-radius: var(--pr-t-border-radius-full);
|
|
84
|
+
background-color: var(--palettes-neutral-200);
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
@use '@lucca-front/icons/src/icon/exports' as icon;
|
|
2
2
|
|
|
3
|
+
@mixin XS {
|
|
4
|
+
--components-bubbleIcon-size: var(--pr-t-spacings-300);
|
|
5
|
+
|
|
6
|
+
.lucca-icon {
|
|
7
|
+
@include icon.XS;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
3
11
|
@mixin S {
|
|
4
12
|
--components-bubbleIcon-size: var(--pr-t-spacings-400);
|
|
5
13
|
|
|
6
14
|
.lucca-icon {
|
|
7
|
-
@include icon.
|
|
15
|
+
@include icon.S;
|
|
8
16
|
}
|
|
9
17
|
}
|
|
10
18
|
|
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
|
|
118
118
|
.dialog-inside-footer {
|
|
119
119
|
grid-area: footer;
|
|
120
|
+
margin-block: var(--components-dialog-inside-footer-marginBlock);
|
|
120
121
|
|
|
121
122
|
&.footer {
|
|
122
123
|
@include footer.insideDialog;
|
|
@@ -125,6 +126,7 @@
|
|
|
125
126
|
|
|
126
127
|
.dialog-inside-header {
|
|
127
128
|
display: grid;
|
|
129
|
+
margin-block: var(--components-dialog-inside-header-marginBlock);
|
|
128
130
|
padding-block: var(--components-dialog-inside-header-paddingBlock);
|
|
129
131
|
padding-inline: var(--components-dialog-inside-header-paddingInline);
|
|
130
132
|
grid-template-areas: var(--components-dialog-insideHeaderAreas);
|
|
@@ -109,16 +109,18 @@
|
|
|
109
109
|
--components-dialog-inside-header-button-position: absolute;
|
|
110
110
|
--components-dialog-inside-header-button-insetBlockStart: var(--pr-t-spacings-100);
|
|
111
111
|
--components-dialog-inside-header-button-insetInlineEnd: var(--pr-t-spacings-100);
|
|
112
|
-
--components-dialog-insideContent-paddingBlock: var(--pr-t-spacings-50)
|
|
112
|
+
--components-dialog-insideContent-paddingBlock: var(--pr-t-spacings-50) 0;
|
|
113
113
|
--components-dialog-inside-header-paddingInline: var(--pr-t-spacings-700) var(--pr-t-spacings-400);
|
|
114
114
|
--components-dialog-insideContent-paddingInline: var(--pr-t-spacings-700) var(--pr-t-spacings-400);
|
|
115
|
+
--components-dialog-inside-header-marginBlock: var(--pr-t-spacings-500) 0;
|
|
116
|
+
--components-dialog-inside-footer-marginBlock: 0 var(--pr-t-spacings-500);
|
|
115
117
|
|
|
116
118
|
.dialog-inside-footer {
|
|
117
119
|
--components-footer-actions-margin: 0;
|
|
118
120
|
--components-footer-boxShadow: none;
|
|
119
|
-
--components-footer-paddingBlock: 0 var(--pr-t-spacings-150);
|
|
120
121
|
--components-footer-overflow: visible;
|
|
121
122
|
--components-footer-paddingInline: var(--pr-t-spacings-700) var(--pr-t-spacings-400);
|
|
123
|
+
--components-footer-paddingBlock: var(--pr-t-spacings-300) var(--pr-t-spacings-150);
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
.dialog-inside-header {
|
|
@@ -39,4 +39,6 @@
|
|
|
39
39
|
--components-dialog-inside-fancyIllustrations-inlineSize: var(--components-dialog-inside-paddingInlineEnd);
|
|
40
40
|
--components-dialog-inside-header-button-insetBlockStart: var(--pr-t-spacings-200);
|
|
41
41
|
--components-dialog-inside-header-button-insetInlineEnd: var(--pr-t-spacings-300);
|
|
42
|
+
--components-dialog-inside-header-marginBlock: 0px;
|
|
43
|
+
--components-dialog-inside-footer-marginBlock: 0px;
|
|
42
44
|
}
|
|
@@ -20,10 +20,6 @@
|
|
|
20
20
|
&:focus-visible {
|
|
21
21
|
@include a11y.focusVisible;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
.lucca-icon {
|
|
25
|
-
margin-block-start: var(--pr-t-spacings-50);
|
|
26
|
-
}
|
|
27
23
|
}
|
|
28
24
|
}
|
|
29
25
|
|
|
@@ -39,3 +35,11 @@
|
|
|
39
35
|
@mixin narrow {
|
|
40
36
|
--components-fieldset-title-content-flexWrap: wrap;
|
|
41
37
|
}
|
|
38
|
+
|
|
39
|
+
@mixin hiddenLegend {
|
|
40
|
+
--components-fieldset-gap: 0;
|
|
41
|
+
|
|
42
|
+
.fieldset-title-content-text {
|
|
43
|
+
@include a11y.mask;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/commons/utils/color';
|
|
1
2
|
@use 'exports' as *;
|
|
2
3
|
|
|
3
4
|
// stylelint-disable-next-line selector-disallowed-list -- .menu is deprecated
|
|
@@ -69,6 +70,13 @@
|
|
|
69
70
|
@include active;
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
// .active is deprecated
|
|
74
|
+
&:not(.active, [aria-current='page'], [aria-selected='true']) {
|
|
75
|
+
.numericBadge {
|
|
76
|
+
@include color.palette;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
72
80
|
&.disabled, // .disabled is deprecated
|
|
73
81
|
&[disabled],
|
|
74
82
|
&.is-disabled {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
display: flex;
|
|
15
15
|
justify-content: space-between;
|
|
16
16
|
align-items: flex-start;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
gap: var(--pr-t-spacings-100);
|
|
18
|
+
flex-wrap: var(--components-pageHeader-content-flexWrap);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.pageHeader-content-title {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
align-items: center;
|
|
43
43
|
flex-wrap: wrap;
|
|
44
44
|
row-gap: var(--pr-t-spacings-200);
|
|
45
|
+
flex-shrink: var(--components-pageHeader-content-action-flexShrink);
|
|
45
46
|
|
|
46
47
|
.button {
|
|
47
48
|
margin: 0;
|
|
@@ -33,6 +33,16 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
@at-root ($atRoot) {
|
|
36
|
+
.popover-content {
|
|
37
|
+
overflow: auto;
|
|
38
|
+
max-block-size: min(var(--components-popover-content-maxBlockSize), calc(100dvh - var(--pr-t-spacings-200)));
|
|
39
|
+
max-inline-size: min(var(--components-popover-content-maxInlineSize), calc(100dvw - var(--pr-t-spacings-400)));
|
|
40
|
+
|
|
41
|
+
&:focus-visible {
|
|
42
|
+
@include a11y.focusVisible($borderRadius: var(--pr-t-border-radius-default));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
36
46
|
.popover-contentOptional {
|
|
37
47
|
padding: var(--components-popover-padding);
|
|
38
48
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
cursor: default;
|
|
5
5
|
|
|
6
6
|
&::before {
|
|
7
|
-
border-color: var(--palettes-neutral-
|
|
7
|
+
border-color: var(--palettes-neutral-300);
|
|
8
8
|
border-width: 2px;
|
|
9
9
|
border-style: solid;
|
|
10
10
|
}
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
@mixin disabledChecked {
|
|
19
19
|
~ .radio-label {
|
|
20
20
|
&::before {
|
|
21
|
-
border-color: var(--palettes-neutral-
|
|
21
|
+
border-color: var(--palettes-neutral-300); // disabled token candidate
|
|
22
22
|
border-width: 2px;
|
|
23
23
|
border-style: solid;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&::after {
|
|
27
|
-
background-color: var(--palettes-neutral-
|
|
27
|
+
background-color: var(--palettes-neutral-300); // disabled token candidate
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
|
|
29
29
|
@mixin checkedDisabled {
|
|
30
30
|
~ .radioField-icon {
|
|
31
|
-
background-color: var(--palettes-neutral-
|
|
32
|
-
border-color: var(--palettes-neutral-
|
|
31
|
+
background-color: var(--palettes-neutral-300); // disabled token candidate
|
|
32
|
+
border-color: var(--palettes-neutral-300); // disabled token candidate
|
|
33
33
|
color: var(--palettes-neutral-500); // disabled token candidate
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
cursor: default;
|
|
59
59
|
|
|
60
60
|
~ .radioField-icon {
|
|
61
|
-
border-color: var(--palettes-neutral-
|
|
61
|
+
border-color: var(--palettes-neutral-300); // disabled token candidate
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -130,6 +130,22 @@
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
.textField-prefix-lang {
|
|
134
|
+
min-inline-size: calc(var(--pr-t-spacings-300) + var(--pr-t-spacings-50));
|
|
135
|
+
position: relative;
|
|
136
|
+
|
|
137
|
+
&::after {
|
|
138
|
+
content: '';
|
|
139
|
+
position: absolute;
|
|
140
|
+
inset: var(--pr-t-spacings-25) 0;
|
|
141
|
+
border-right: 1px solid var(--palettes-neutral-200);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:has(.formLabel-required) {
|
|
145
|
+
min-inline-size: calc(var(--pr-t-spacings-400) + var(--pr-t-spacings-50));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
133
149
|
.textField-suffix {
|
|
134
150
|
display: inline-flex;
|
|
135
151
|
padding-inline-end: var(--component-textField-padding);
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
|
|
14
14
|
&.mod-S {
|
|
15
15
|
@include S;
|
|
16
|
+
|
|
17
|
+
&.mod-multilanguage {
|
|
18
|
+
@include multilanguageS;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
&.mod-XS {
|
|
@@ -23,6 +27,10 @@
|
|
|
23
27
|
@include valueAlignRight;
|
|
24
28
|
}
|
|
25
29
|
|
|
30
|
+
&.mod-multilanguage {
|
|
31
|
+
@include multilanguage;
|
|
32
|
+
}
|
|
33
|
+
|
|
26
34
|
&.is-invalid,
|
|
27
35
|
&:has(.textField-input-value[aria-invalid='true']) {
|
|
28
36
|
@include invalid;
|
|
@@ -35,6 +43,10 @@
|
|
|
35
43
|
&.is-disabled,
|
|
36
44
|
&:has(.textField-input-value:disabled) {
|
|
37
45
|
@include disabled;
|
|
46
|
+
|
|
47
|
+
&.mod-multilanguage {
|
|
48
|
+
@include multilanguageDisabled;
|
|
49
|
+
}
|
|
38
50
|
}
|
|
39
51
|
|
|
40
52
|
&.mod-autoResize {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '@lucca-front/scss/src/components/clear/exports' as clear;
|
|
2
|
+
@use '@lucca-front/scss/src/components/button/exports' as button;
|
|
2
3
|
@use '@lucca-front/icons/src/icon/exports' as icon;
|
|
3
4
|
|
|
4
5
|
@mixin S {
|
|
@@ -90,3 +91,25 @@
|
|
|
90
91
|
|
|
91
92
|
@include S;
|
|
92
93
|
}
|
|
94
|
+
|
|
95
|
+
@mixin multilanguage {
|
|
96
|
+
.textField-input-affix-toggle {
|
|
97
|
+
@include button.outlined;
|
|
98
|
+
@include button.S;
|
|
99
|
+
|
|
100
|
+
pointer-events: auto;
|
|
101
|
+
padding: var(--pr-t-spacings-50);
|
|
102
|
+
color: var(--palettes-product-700);
|
|
103
|
+
|
|
104
|
+
&:hover {
|
|
105
|
+
--components-button-backgroundColor: var(--palettes-product-50);
|
|
106
|
+
--components-button-boxShadow: var(--pr-t-elevation-shadow-button), 0 0 0 var(--commons-divider-width) var(--palettes-product-300);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@mixin multilanguageS {
|
|
112
|
+
.textField-input-affix-toggle {
|
|
113
|
+
@include button.XS;
|
|
114
|
+
}
|
|
115
|
+
}
|