@lucca-front/scss 20.3.3-rc.3 → 20.3.3-rc.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/dist/lucca-front.min.css +1 -1
- package/package.json +2 -2
- package/src/components/breadcrumbs/component.scss +1 -2
- package/src/components/breadcrumbs/index.scss +1 -2
- package/src/components/breadcrumbs/mods.scss +1 -2
- package/src/components/button/index.scss +1 -1
- package/src/components/calendar/component.scss +1 -3
- package/src/components/callout/component.scss +1 -0
- package/src/components/calloutPopover/component.scss +10 -13
- package/src/components/calloutPopover/mods.scss +5 -2
- package/src/components/calloutPopover/vars.scss +1 -0
- package/src/components/chip/component.scss +0 -5
- package/src/components/chip/index.scss +0 -4
- package/src/components/chip/mods.scss +0 -4
- package/src/components/clear/component.scss +1 -1
- package/src/components/clear/index.scss +5 -18
- package/src/components/clear/mods.scss +1 -1
- package/src/components/clear/states.scss +1 -10
- package/src/components/clear/vars.scss +0 -1
- package/src/components/dataTable/component.scss +6 -7
- package/src/components/dataTable/mods.scss +4 -4
- package/src/components/dataTable/vars.scss +1 -0
- package/src/components/dataTableSticked/index.scss +0 -10
- package/src/components/dataTableSticked/mods.scss +8 -4
- package/src/components/dataTableSticked/states.scss +0 -7
- package/src/components/dataTableSticked/vars.scss +0 -2
- package/src/components/dropdown/mods.scss +4 -4
- package/src/components/filterPill/component.scss +1 -0
- package/src/components/filterPill/states.scss +2 -3
- package/src/components/filterPill/vars.scss +1 -0
- package/src/components/form/component.scss +2 -6
- package/src/components/highlightData/mods.scss +1 -1
- package/src/components/indexTable/mods.scss +3 -3
- package/src/components/inputFramed/component.scss +11 -17
- package/src/components/inputFramed/index.scss +5 -7
- package/src/components/inputFramed/mods.scss +0 -10
- package/src/components/inputFramed/states.scss +8 -0
- package/src/components/inputFramed/vars.scss +2 -8
- package/src/components/multiSelect/component.scss +7 -0
- package/src/components/multiSelect/mods.scss +2 -0
- package/src/components/plgPush/component.scss +0 -4
- package/src/components/richText/component.scss +1 -35
- package/src/components/richText/index.scss +29 -0
- package/src/components/richText/states.scss +29 -0
- package/src/components/scrollBox/component.scss +0 -4
- package/src/components/tableFixed/mods.scss +3 -3
- package/src/components/tableOfContent/component.scss +1 -2
- package/src/components/tableOfContent/index.scss +1 -2
- package/src/components/textfields/index.scss +3 -3
- package/src/components/textfields/states.scss +3 -3
- package/src/components/tooltip/component.scss +0 -1
- package/src/components/verticalNavigation/component.scss +0 -1
- package/src/components/verticalNavigation/vars.scss +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
4
4
|
position: relative;
|
|
5
5
|
overflow: hidden;
|
|
6
|
-
padding: var(--
|
|
6
|
+
padding: var(--pr-t-spacings-50);
|
|
7
7
|
border: solid 1px var(--components-inputFramed-borderColor);
|
|
8
8
|
border-radius: var(--pr-t-border-radius-default);
|
|
9
9
|
background-color: var(--palettes-neutral-0);
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
@at-root ($atRoot) {
|
|
17
17
|
.inputFramed-header-label.formLabel {
|
|
18
18
|
position: static;
|
|
19
|
-
font-weight: var(--
|
|
19
|
+
font-weight: var(--pr-t-font-fontWeight-semibold);
|
|
20
|
+
|
|
20
21
|
|
|
21
22
|
&::after {
|
|
22
23
|
content: '';
|
|
@@ -26,24 +27,16 @@
|
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
.inputFramed-header-field {
|
|
30
|
+
flex: 1;
|
|
31
|
+
|
|
29
32
|
&.form-field.form-field {
|
|
30
33
|
position: static;
|
|
31
34
|
margin-block: 0;
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
|
|
35
|
-
.inputFramed-header-input.radioField-input,
|
|
36
|
-
.inputFramed-header-input.checkboxField-input {
|
|
37
|
-
~ .inputFramed-header-icon.radioField-icon,
|
|
38
|
-
~ .inputFramed-header-icon.checkboxField-icon {
|
|
39
|
-
&::after {
|
|
40
|
-
outline: none;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
38
|
.inputFramed-header {
|
|
46
|
-
padding: var(--components-inputFramed-
|
|
39
|
+
padding: var(--components-inputFramed-padding);
|
|
47
40
|
border-radius: var(--pr-t-border-radius-50);
|
|
48
41
|
background-color: var(--components-inputFramed-header-backgroundColor);
|
|
49
42
|
transition-property: background-color;
|
|
@@ -51,6 +44,7 @@
|
|
|
51
44
|
position: relative;
|
|
52
45
|
flex-grow: 1;
|
|
53
46
|
display: flex;
|
|
47
|
+
flex-wrap: wrap;
|
|
54
48
|
justify-content: space-between;
|
|
55
49
|
align-content: flex-start;
|
|
56
50
|
gap: var(--pr-t-spacings-100);
|
|
@@ -66,8 +60,8 @@
|
|
|
66
60
|
.inputFramed-header-info {
|
|
67
61
|
flex-basis: 100%;
|
|
68
62
|
border-block-start: 1px solid var(--components-inputFramed-header-info-borderColor);
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
margin-block-start: var(--pr-t-spacings-100);
|
|
64
|
+
padding-block-start: var(--pr-t-spacings-200);
|
|
71
65
|
color: var(--components-inputFramed-header-info-color);
|
|
72
66
|
|
|
73
67
|
&:empty {
|
|
@@ -77,8 +71,8 @@
|
|
|
77
71
|
|
|
78
72
|
.inputFramed-content {
|
|
79
73
|
display: var(--components-inputFramed-content-display);
|
|
80
|
-
padding: var(--components-inputFramed-
|
|
81
|
-
margin-block-start: var(--
|
|
74
|
+
padding: var(--components-inputFramed-padding);
|
|
75
|
+
margin-block-start: var(--pr-t-spacings-50);
|
|
82
76
|
}
|
|
83
77
|
}
|
|
84
78
|
}
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
|
|
23
23
|
&:has(.inputFramed-header-input:focus-visible) {
|
|
24
24
|
@include a11y.focusVisible;
|
|
25
|
+
|
|
26
|
+
@include focusVisible;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
&:has(.inputFramed-header-input[aria-invalid="true"]) {
|
|
@@ -38,14 +40,10 @@
|
|
|
38
40
|
@include disabled;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
43
|
+
}
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.mod-L {
|
|
47
|
-
@include L;
|
|
48
|
-
}
|
|
45
|
+
&.mod-center {
|
|
46
|
+
@include center;
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
|
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
@mixin center {
|
|
2
2
|
--components-inputFramed-header-alignItems: center;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
@mixin L {
|
|
6
|
-
--components-inputFramed-header-label-fontWeight: var(--pr-t-font-fontWeight-semibold);
|
|
7
|
-
--components-inputFramed-padding: var(--pr-t-spacings-50);
|
|
8
|
-
--components-inputFramed-header-padding: var(--pr-t-spacings-150);
|
|
9
|
-
--components-inputFramed-content-padding: var(--pr-t-spacings-150);
|
|
10
|
-
--components-inputFramed-content-marginBlockStart: var(--pr-t-spacings-50);
|
|
11
|
-
--components-inputFramed-header-info-marginBlockStart: var(--pr-t-spacings-100);
|
|
12
|
-
--components-inputFramed-header-info-paddingBlockStart: var(--pr-t-spacings-200);
|
|
13
|
-
}
|
|
@@ -2,14 +2,8 @@
|
|
|
2
2
|
--components-inputFramed-content-display: none;
|
|
3
3
|
--components-inputFramed-borderColor: var(--palettes-neutral-300);
|
|
4
4
|
--components-inputFramed-header-info-borderColor: var(--palettes-neutral-200);
|
|
5
|
-
--components-inputFramed-padding: var(--pr-t-spacings-
|
|
6
|
-
--components-inputFramed-header-padding: var(--pr-t-spacings-75);
|
|
7
|
-
--components-inputFramed-content-padding: var(--pr-t-spacings-75);
|
|
8
|
-
--components-inputFramed-content-marginBlockStart: 0;
|
|
5
|
+
--components-inputFramed-padding: var(--pr-t-spacings-150);
|
|
9
6
|
--components-inputFramed-header-backgroundColor: transparent;
|
|
10
|
-
--components-inputFramed-header-alignItems: normal;
|
|
11
|
-
--components-inputFramed-header-label-fontWeight: var(--pr-t-font-fontWeight-regular);
|
|
12
7
|
--components-inputFramed-header-info-color: inherit;
|
|
13
|
-
--components-inputFramed-header-
|
|
14
|
-
--components-inputFramed-header-info-paddingBlockStart: var(--pr-t-spacings-100);
|
|
8
|
+
--components-inputFramed-header-alignItems: normal;
|
|
15
9
|
}
|
|
@@ -34,6 +34,13 @@
|
|
|
34
34
|
min-inline-size: 0;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
.multipleSelect-displayer-chip-value {
|
|
38
|
+
max-inline-size: 8rem;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
}
|
|
43
|
+
|
|
37
44
|
.multipleSelect-displayer-search {
|
|
38
45
|
display: block;
|
|
39
46
|
min-inline-size: 2rem;
|
|
@@ -19,10 +19,6 @@
|
|
|
19
19
|
max-block-size: var(--components-richTextField-maxHeight);
|
|
20
20
|
block-size: calc(var(--components-richTextField-height) + var(--pr-t-spacings-800) + var(--pr-t-spacings-25));
|
|
21
21
|
|
|
22
|
-
&:has(.richTextField-content:focus-visible) {
|
|
23
|
-
@include a11y.focusVisible;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
22
|
&:has(.richTextField-toolbar-formatting):has(.richTextField-toolbar-chips) {
|
|
27
23
|
min-block-size: calc(var(--components-richTextField-minHeight) + var(--pr-t-spacings-800) + var(--pr-t-spacings-25) + var(--pr-t-spacings-600));
|
|
28
24
|
|
|
@@ -36,32 +32,6 @@
|
|
|
36
32
|
}
|
|
37
33
|
}
|
|
38
34
|
|
|
39
|
-
// specificity must be higher here
|
|
40
|
-
.richTextField-toolbar-button.button.button {
|
|
41
|
-
&[aria-pressed='true'] {
|
|
42
|
-
--components-button-color: var(--palettes-0, var(--palettes-text, var(--palettes-product-0)));
|
|
43
|
-
--components-button-backgroundColor: var(--palettes-700, var(--palettes-product-700));
|
|
44
|
-
|
|
45
|
-
&:hover {
|
|
46
|
-
--components-button-color: var(--palettes-0, var(--palettes-text, var(--palettes-product-0)));
|
|
47
|
-
--components-button-backgroundColor: var(--palettes-600, var(--palettes-product-600));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&:active {
|
|
51
|
-
--components-button-backgroundColor: var(--palettes-800, var(--palettes-product-800));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&:focus-visible {
|
|
55
|
-
@include a11y.focusVisible;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:disabled {
|
|
59
|
-
--components-button-color: var(--commons-disabled-background);
|
|
60
|
-
--components-button-backgroundColor: var(--palettes-neutral-500);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
35
|
@at-root ($atRoot) {
|
|
66
36
|
.richTextField-toolbar {
|
|
67
37
|
display: var(--components-richTextField-toolbar-display);
|
|
@@ -132,12 +102,8 @@
|
|
|
132
102
|
border-block-start: 0;
|
|
133
103
|
}
|
|
134
104
|
|
|
135
|
-
.richTextField-toolbar-chips-
|
|
105
|
+
.richTextField-toolbar-chips-item {
|
|
136
106
|
border: 0;
|
|
137
|
-
|
|
138
|
-
&:focus-visible {
|
|
139
|
-
@include a11y.focusVisible;
|
|
140
|
-
}
|
|
141
107
|
}
|
|
142
108
|
|
|
143
109
|
.richTextField-content {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use 'exports' as *;
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
.richTextField {
|
|
4
5
|
@layer components {
|
|
5
6
|
@include vars;
|
|
@@ -7,6 +8,10 @@
|
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
@layer mods {
|
|
11
|
+
&:has(.richTextField-content:focus-visible) {
|
|
12
|
+
@include focusVisible;
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
&:hover {
|
|
11
16
|
@include hover;
|
|
12
17
|
}
|
|
@@ -28,3 +33,27 @@
|
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
}
|
|
36
|
+
|
|
37
|
+
@layer mods {
|
|
38
|
+
.richTextField-toolbar-button.button.mod-onlyIcon {
|
|
39
|
+
&[aria-pressed='true'] {
|
|
40
|
+
@include buttonPressed;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
@include buttonPressedHover;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:active {
|
|
47
|
+
@include buttonPressedActive;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:focus-visible {
|
|
51
|
+
@include buttonPressedFocusVisible;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:disabled {
|
|
55
|
+
@include buttonPressedDisabled;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
2
|
+
|
|
3
|
+
@mixin focusVisible {
|
|
4
|
+
@include a11y.focusVisible;
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
@mixin hover {
|
|
2
8
|
--components-richTextField-borderColor: var(--pr-t-color-input-border-hover);
|
|
3
9
|
}
|
|
@@ -19,3 +25,26 @@
|
|
|
19
25
|
@mixin errorHover {
|
|
20
26
|
--components-richTextField-borderColor: var(--pr-t-color-input-border-critical-hover);
|
|
21
27
|
}
|
|
28
|
+
|
|
29
|
+
@mixin buttonPressed {
|
|
30
|
+
--components-button-color: var(--palettes-0, var(--palettes-text, var(--palettes-product-0)));
|
|
31
|
+
--components-button-backgroundColor: var(--palettes-700, var(--palettes-product-700));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin buttonPressedHover {
|
|
35
|
+
--components-button-color: var(--palettes-0, var(--palettes-text, var(--palettes-product-0)));
|
|
36
|
+
--components-button-backgroundColor: var(--palettes-600, var(--palettes-product-600));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@mixin buttonPressedActive {
|
|
40
|
+
--components-button-backgroundColor: var(--palettes-800, var(--palettes-product-800));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin buttonPressedFocusVisible {
|
|
44
|
+
@include a11y.focusVisible;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin buttonPressedDisabled {
|
|
48
|
+
--components-button-color: var(--commons-disabled-background);
|
|
49
|
+
--components-button-backgroundColor: var(--palettes-neutral-500);
|
|
50
|
+
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
.table-head-row-cell,
|
|
27
27
|
.table-body-row-cell,
|
|
28
28
|
.table-foot-row-cell {
|
|
29
|
-
@include
|
|
29
|
+
@include cellFixedWidth;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
.table-head-row-cell,
|
|
37
37
|
.table-body-row-cell,
|
|
38
38
|
.table-foot-row-cell {
|
|
39
|
-
@include
|
|
39
|
+
@include cellFixedWidth;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
@mixin
|
|
46
|
+
@mixin cellFixedWidth {
|
|
47
47
|
min-inline-size: var(--cell-width, auto);
|
|
48
48
|
inline-size: var(--cell-width, auto);
|
|
49
49
|
}
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
@include reset.list;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
.tableOfContent-list-item-action, .tableOfContent-list-item > a {
|
|
15
|
+
.tableOfContent-list-item-action {
|
|
17
16
|
@include reset.button;
|
|
18
17
|
|
|
19
18
|
border-radius: var(--pr-t-border-radius-default);
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
.tableOfContent-list-item-action, .tableOfContent-list-item > a {
|
|
10
|
+
.tableOfContent-list-item-action {
|
|
12
11
|
@layer mods {
|
|
13
12
|
&:not(.disabled, .is-disabled, [disabled]) {
|
|
14
13
|
&:is(:hover) {
|
|
@@ -391,15 +391,15 @@
|
|
|
391
391
|
|
|
392
392
|
.textfield-input {
|
|
393
393
|
&:is(:hover) {
|
|
394
|
-
@include
|
|
394
|
+
@include framedInputHover;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
&:is(:focus) {
|
|
398
|
-
@include
|
|
398
|
+
@include framedInputFocus;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
&:is(:invalid, .is-invalid, .invalid) {
|
|
402
|
-
@include
|
|
402
|
+
@include framedInputInvalid;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@mixin
|
|
43
|
+
@mixin framedInputHover {
|
|
44
44
|
&:not(:disabled, .is-error, .is-success, .is-valid, .is-warning, .is-invalid) {
|
|
45
45
|
position: relative;
|
|
46
46
|
z-index: 1;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@mixin
|
|
52
|
+
@mixin framedInputFocus {
|
|
53
53
|
&:not(:disabled, .is-error, .is-success, .is-valid, .is-warning, .is-invalid) {
|
|
54
54
|
position: relative;
|
|
55
55
|
z-index: 4;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@mixin
|
|
63
|
+
@mixin framedInputInvalid {
|
|
64
64
|
~ .textfield-label {
|
|
65
65
|
color: var(--palettes-error-700);
|
|
66
66
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@mixin vars {
|
|
2
|
-
--components-verticalNavigation-link-background:
|
|
2
|
+
--components-verticalNavigation-link-background: transparent;
|
|
3
3
|
--components-verticalNavigation-link-color: var(--pr-t-color-text);
|
|
4
4
|
--components-verticalNavigation-horizontalPadding: var(--pr-t-spacings-150);
|
|
5
5
|
}
|