@lucca-front/scss 20.3.0-rc.1 → 20.3.0-rc.11
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/base.scss +4 -2
- package/src/commons/config.scss +8 -2
- package/src/commons/core.scss +1 -1
- package/src/commons/utils/color.scss +14 -0
- package/src/commons/utils/index.scss +2 -2
- package/src/commons/vars.scss +12 -12
- package/src/components/_sample/index.scss +0 -2
- package/src/components/avatar/component.scss +4 -3
- package/src/components/avatar/index.scss +4 -0
- package/src/components/avatar/mods.scss +18 -3
- package/src/components/avatar/vars.scss +4 -0
- package/src/components/box/component.scss +1 -1
- package/src/components/box/mods.scss +1 -0
- package/src/components/box/vars.scss +1 -0
- package/src/components/breadcrumbs/index.scss +1 -1
- package/src/components/breadcrumbs/states.scss +1 -1
- package/src/components/button/component.scss +0 -1
- package/src/components/button/index.scss +16 -3
- package/src/components/button/mods.scss +17 -2
- package/src/components/button/states.scss +41 -12
- package/src/components/button/vars.scss +1 -1
- package/src/components/calendar/component.scss +1 -1
- package/src/components/calendar/index.scss +1 -1
- package/src/components/callout/component.scss +14 -5
- package/src/components/callout/index.scss +9 -0
- package/src/components/callout/mods.scss +30 -2
- package/src/components/callout/vars.scss +5 -0
- package/src/components/calloutAccordion/component.scss +1 -1
- package/src/components/calloutDisclosure/component.scss +1 -1
- package/src/components/calloutDisclosure/index.scss +1 -3
- package/src/components/card/component.scss +1 -0
- package/src/components/card/index.scss +4 -2
- package/src/components/card/mods.scss +31 -0
- package/src/components/checkbox/index.scss +0 -2
- package/src/components/checkboxField/component.scss +1 -1
- package/src/components/checkboxField/index.scss +4 -8
- package/src/components/chip/index.scss +0 -2
- package/src/components/clear/index.scss +0 -2
- package/src/components/collapse/index.scss +1 -1
- package/src/components/dataTable/component.scss +4 -2
- package/src/components/dataTable/index.scss +25 -11
- package/src/components/dataTable/mods.scss +5 -6
- package/src/components/dataTable/states.scss +12 -0
- package/src/components/dataTableSticked/index.scss +0 -4
- package/src/components/dialog/component.scss +6 -6
- package/src/components/dialog/index.scss +4 -0
- package/src/components/dialog/mods.scss +4 -0
- package/src/components/dropdown/component.scss +43 -17
- package/src/components/dropdown/index.scss +5 -4
- package/src/components/dropdown/mods.scss +4 -4
- package/src/components/dropdown/states.scss +4 -3
- package/src/components/dropdown/vars.scss +8 -6
- package/src/components/field/index.scss +8 -30
- package/src/components/fieldset/component.scss +1 -1
- package/src/components/fieldset/index.scss +0 -2
- package/src/components/file/component.scss +1 -1
- package/src/components/file/index.scss +2 -4
- package/src/components/file/states.scss +1 -1
- package/src/components/fileEntry/index.scss +0 -2
- package/src/components/fileUpload/component.scss +1 -1
- package/src/components/fileUpload/index.scss +0 -2
- package/src/components/filterPill/component.scss +1 -1
- package/src/components/filterPill/index.scss +1 -5
- package/src/components/footer/component.scss +0 -1
- package/src/components/form/component.scss +11 -1
- package/src/components/form/index.scss +18 -36
- package/src/components/form/mods.scss +1 -1
- package/src/components/formLabel/component.scss +1 -1
- package/src/components/formLabel/index.scss +0 -2
- package/src/components/gauge/component.scss +73 -14
- package/src/components/gauge/index.scss +19 -0
- package/src/components/gauge/mods.scss +21 -7
- package/src/components/gauge/states.scss +8 -0
- package/src/components/gauge/vars.scss +16 -1
- package/src/components/header/index.scss +0 -2
- package/src/components/horizontalNavigation/component.scss +1 -1
- package/src/components/horizontalNavigation/index.scss +1 -1
- package/src/components/index.scss +1 -0
- package/src/components/indexTable/component.scss +2 -2
- package/src/components/indexTable/index.scss +0 -2
- package/src/components/indexTable/mods.scss +1 -1
- package/src/components/inlineMessage/index.scss +0 -2
- package/src/components/inputFramed/component.scss +2 -1
- package/src/components/inputFramed/index.scss +5 -1
- package/src/components/inputFramed/mods.scss +3 -0
- package/src/components/inputFramed/vars.scss +1 -0
- package/src/components/label/component.scss +1 -1
- package/src/components/layout/index.scss +1 -1
- package/src/components/link/index.scss +2 -4
- package/src/components/listboxOption/index.scss +2 -6
- package/src/components/main/index.scss +1 -1
- package/src/components/mainLayout/index.scss +2 -2
- package/src/components/mobileNavigation/component.scss +1 -1
- package/src/components/multiSelect/component.scss +1 -1
- package/src/components/multiSelect/index.scss +14 -6
- package/src/components/multiSelect/mods.scss +0 -8
- package/src/components/multiSelect/states.scss +8 -0
- package/src/components/navside/component.scss +2 -2
- package/src/components/navside/index.scss +5 -17
- package/src/components/newBadge/component.scss +1 -1
- package/src/components/numericBadge/component.scss +1 -1
- package/src/components/numericBadge/index.scss +0 -2
- package/src/components/numericBadge/states.scss +5 -0
- package/src/components/pagination/index.scss +1 -1
- package/src/components/plgPush/component.scss +1 -1
- package/src/components/popover/component.scss +0 -17
- package/src/components/progress/index.scss +0 -2
- package/src/components/radio/index.scss +1 -1
- package/src/components/radioButtons/index.scss +2 -2
- package/src/components/radioField/index.scss +1 -1
- package/src/components/readMore/component.scss +22 -6
- package/src/components/readMore/index.scss +1 -3
- package/src/components/readMore/states.scss +2 -0
- package/src/components/richText/component.scss +1 -3
- package/src/components/richText/index.scss +1 -3
- package/src/components/scrollBox/index.scss +1 -1
- package/src/components/segmentedControl/component.scss +1 -0
- package/src/components/segmentedControl/index.scss +9 -13
- package/src/components/simpleSelect/index.scss +1 -5
- package/src/components/skeleton/index.scss +0 -2
- package/src/components/skeleton/mods.scss +1 -1
- package/src/components/skipLinks/component.scss +1 -1
- package/src/components/statusBadge/component.scss +1 -1
- package/src/components/suggestion/component.scss +19 -0
- package/src/components/suggestion/exports.scss +4 -0
- package/src/components/suggestion/index.scss +16 -0
- package/src/components/suggestion/mods.scss +0 -0
- package/src/components/suggestion/states.scss +12 -0
- package/src/components/suggestion/vars.scss +4 -0
- package/src/components/switch/index.scss +1 -1
- package/src/components/switchField/index.scss +1 -1
- package/src/components/table/component.scss +1 -1
- package/src/components/table/index.scss +12 -20
- package/src/components/table/mods.scss +4 -4
- package/src/components/tableOfContent/index.scss +1 -1
- package/src/components/tableSortable/index.scss +0 -2
- package/src/components/tag/component.scss +4 -1
- package/src/components/tag/index.scss +12 -2
- package/src/components/tag/mods.scss +30 -3
- package/src/components/tag/states.scss +6 -0
- package/src/components/tag/vars.scss +2 -0
- package/src/components/textField/component.scss +1 -0
- package/src/components/textField/index.scss +4 -4
- package/src/components/textField/states.scss +5 -0
- package/src/components/textField/vars.scss +1 -0
- package/src/components/textFlow/component.scss +6 -0
- package/src/components/textfields/index.scss +2 -19
- package/src/components/textfields/mods.scss +3 -3
- package/src/components/timeline/component.scss +1 -1
- package/src/components/timeline/index.scss +1 -1
- package/src/components/timeline/mods.scss +3 -3
- package/src/components/timepicker/index.scss +0 -2
- package/src/components/title/index.scss +11 -0
- package/src/components/title/mods.scss +6 -0
- package/src/components/titleSection/component.scss +1 -1
- package/src/components/tooltip/index.scss +1 -1
- package/src/components/userPopover/component.scss +1 -0
- package/src/components/verticalNavigation/component.scss +1 -1
- package/src/components/verticalNavigation/index.scss +4 -8
- package/src/components/verticalNavigation/mods.scss +1 -1
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
.checkboxesfield {
|
|
9
9
|
@include framed;
|
|
10
10
|
}
|
|
11
|
-
}
|
|
12
11
|
|
|
13
|
-
@layer states {
|
|
14
12
|
.is-error {
|
|
15
13
|
@include fieldFramedState('error');
|
|
16
14
|
@include fieldFramedError('textfield');
|
|
@@ -45,9 +43,7 @@
|
|
|
45
43
|
&.mod-block {
|
|
46
44
|
@include block;
|
|
47
45
|
}
|
|
48
|
-
}
|
|
49
46
|
|
|
50
|
-
@layer states {
|
|
51
47
|
&:is(.is-required, .required) {
|
|
52
48
|
@include required;
|
|
53
49
|
}
|
|
@@ -63,9 +59,7 @@
|
|
|
63
59
|
&:is(.is-error, .error, .is-invalid, .invalid) {
|
|
64
60
|
@include error;
|
|
65
61
|
}
|
|
66
|
-
}
|
|
67
62
|
|
|
68
|
-
@layer mods {
|
|
69
63
|
&.mod-compact {
|
|
70
64
|
@include compact;
|
|
71
65
|
|
|
@@ -73,20 +67,14 @@
|
|
|
73
67
|
@include compactBlock;
|
|
74
68
|
}
|
|
75
69
|
}
|
|
76
|
-
}
|
|
77
70
|
|
|
78
|
-
@layer mods {
|
|
79
71
|
&.mod-framed {
|
|
80
72
|
@include framed;
|
|
81
73
|
|
|
82
74
|
&.mod-search {
|
|
83
75
|
@include framedSearch;
|
|
84
76
|
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
77
|
|
|
88
|
-
@layer states {
|
|
89
|
-
&.mod-framed {
|
|
90
78
|
&.is-error {
|
|
91
79
|
@include fieldFramedState('error');
|
|
92
80
|
@include fieldFramedError('textfield');
|
|
@@ -103,12 +91,10 @@
|
|
|
103
91
|
@include fieldFramedState('success');
|
|
104
92
|
}
|
|
105
93
|
}
|
|
106
|
-
}
|
|
107
94
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
@layer states {
|
|
95
|
+
.textfield-input,
|
|
96
|
+
.radiosfield-input,
|
|
97
|
+
.checkboxesfield-input {
|
|
112
98
|
&:is([disabled], [readonly]) {
|
|
113
99
|
@include inputDisabled;
|
|
114
100
|
}
|
|
@@ -124,23 +110,15 @@
|
|
|
124
110
|
&:is(.is-invalid, .invalid, .is-error, .error) {
|
|
125
111
|
@include inputState('error');
|
|
126
112
|
}
|
|
127
|
-
}
|
|
128
113
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
@include
|
|
114
|
+
&:is([required]),
|
|
115
|
+
&:is([aria-required='true']) {
|
|
116
|
+
@include required;
|
|
132
117
|
}
|
|
133
118
|
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
119
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
.checkboxesfield-input {
|
|
140
|
-
@layer states {
|
|
141
|
-
&:is([required]),
|
|
142
|
-
&:is([aria-required='true']) {
|
|
143
|
-
@include required;
|
|
120
|
+
&.mod-row {
|
|
121
|
+
@include inputRow;
|
|
144
122
|
}
|
|
145
123
|
}
|
|
146
124
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
font-size: var(--pr-t-font-body-M-fontSize);
|
|
22
22
|
line-height: var(--pr-t-font-body-M-lineHeight);
|
|
23
23
|
margin-block-end: 0;
|
|
24
|
-
font-weight:
|
|
24
|
+
font-weight: var(--pr-t-font-fontWeight-semibold);
|
|
25
25
|
display: block;
|
|
26
26
|
position: relative;
|
|
27
27
|
color: var(--palettes-neutral-700);
|
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
&.mod-icon {
|
|
15
15
|
@include icon;
|
|
16
16
|
}
|
|
17
|
-
}
|
|
18
17
|
|
|
19
|
-
@layer states {
|
|
20
18
|
&:is(.is-droppable, .droppable) {
|
|
21
19
|
@include legacyDroppable;
|
|
22
20
|
}
|
|
@@ -27,8 +25,8 @@
|
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
@layer mods {
|
|
29
|
+
.file-input {
|
|
32
30
|
&:is(:disabled) {
|
|
33
31
|
@include disabled;
|
|
34
32
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@mixin uploading {
|
|
27
27
|
~ .file-content {
|
|
28
28
|
.file-title {
|
|
29
|
-
font-weight:
|
|
29
|
+
font-weight: var(--pr-t-font-fontWeight-regular);
|
|
30
30
|
color: var(--palettes-neutral-600);
|
|
31
31
|
font-size: var(--pr-t-font-body-S-fontSize);
|
|
32
32
|
line-height: var(--pr-t-font-body-S-lineHeight);
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
|
|
94
94
|
.fileUpload-instruction-filename {
|
|
95
95
|
display: block;
|
|
96
|
-
font-weight:
|
|
96
|
+
font-weight: var(--pr-t-font-fontWeight-semibold);
|
|
97
97
|
color: var(--components-fileUpload-instruction-filename-color);
|
|
98
98
|
margin-block-start: var(--components-fileUpload-instruction-filename-marginTop);
|
|
99
99
|
inset-block-end: var(--pr-t-spacings-100);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@include component;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
@layer
|
|
9
|
+
@layer mods {
|
|
10
10
|
&:not(.is-filled) {
|
|
11
11
|
@include notFilled;
|
|
12
12
|
}
|
|
@@ -43,9 +43,7 @@
|
|
|
43
43
|
@include filledActive;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
}
|
|
47
46
|
|
|
48
|
-
@layer mods {
|
|
49
47
|
&.mod-checkbox {
|
|
50
48
|
@include checkbox;
|
|
51
49
|
|
|
@@ -77,9 +75,7 @@
|
|
|
77
75
|
&.mod-button {
|
|
78
76
|
@include button;
|
|
79
77
|
}
|
|
80
|
-
}
|
|
81
78
|
|
|
82
|
-
@layer states {
|
|
83
79
|
&:has(.filterPill-combobox:disabled) {
|
|
84
80
|
@include disabled;
|
|
85
81
|
}
|
|
@@ -65,13 +65,23 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
.form-field-contentOptional {
|
|
69
|
+
display: flex;
|
|
70
|
+
gap: var(--pr-t-spacings-100);
|
|
71
|
+
align-items: center;
|
|
72
|
+
|
|
73
|
+
> :first-child {
|
|
74
|
+
flex-grow: 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
68
78
|
// deprecated
|
|
69
79
|
|
|
70
80
|
.form-group-label,
|
|
71
81
|
.form-group-legend,
|
|
72
82
|
.form-group-title {
|
|
73
83
|
display: block;
|
|
74
|
-
font-weight:
|
|
84
|
+
font-weight: var(--pr-t-font-fontWeight-semibold);
|
|
75
85
|
font-size: var(--components-form-label-font-size);
|
|
76
86
|
margin: 0;
|
|
77
87
|
padding-block: 0 var(--components-form-label-margin-bottom);
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
@layer mods {
|
|
21
|
+
.form-fieldset {
|
|
22
22
|
&.mod-inline {
|
|
23
23
|
@include inline;
|
|
24
24
|
}
|
|
@@ -38,18 +38,14 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
}
|
|
42
41
|
|
|
43
|
-
@layer states {
|
|
44
42
|
&:has(.radioField-input[aria-invalid='true']),
|
|
45
43
|
&:has(.checkboxField-input[aria-invalid='true']) {
|
|
46
44
|
@include legendInvalid;
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
|
-
}
|
|
50
47
|
|
|
51
|
-
.form-field {
|
|
52
|
-
@layer mods {
|
|
48
|
+
.form-field {
|
|
53
49
|
&.mod-S {
|
|
54
50
|
@include S;
|
|
55
51
|
}
|
|
@@ -70,9 +66,7 @@
|
|
|
70
66
|
&:has(.switchField) {
|
|
71
67
|
@include checkable;
|
|
72
68
|
}
|
|
73
|
-
}
|
|
74
69
|
|
|
75
|
-
@layer states {
|
|
76
70
|
&:not(lu-form-field) {
|
|
77
71
|
&:has(
|
|
78
72
|
.textField-input-value[aria-invalid='true'],
|
|
@@ -99,9 +93,7 @@
|
|
|
99
93
|
@include tag.disabled;
|
|
100
94
|
}
|
|
101
95
|
}
|
|
102
|
-
}
|
|
103
96
|
|
|
104
|
-
@layer mods {
|
|
105
97
|
&.mod-withArrow {
|
|
106
98
|
@include withArrow;
|
|
107
99
|
|
|
@@ -128,8 +120,8 @@
|
|
|
128
120
|
}
|
|
129
121
|
}
|
|
130
122
|
|
|
131
|
-
|
|
132
|
-
|
|
123
|
+
@layer mods {
|
|
124
|
+
.form-group-line-col {
|
|
133
125
|
&[class*='mod-overlay'] {
|
|
134
126
|
@include overlay;
|
|
135
127
|
}
|
|
@@ -146,38 +138,30 @@
|
|
|
146
138
|
}
|
|
147
139
|
}
|
|
148
140
|
}
|
|
149
|
-
}
|
|
150
141
|
|
|
151
|
-
.form-group-label,
|
|
152
|
-
.radiosfield-label,
|
|
153
|
-
.checkboxesfield-label,
|
|
154
|
-
.textfield-label {
|
|
155
|
-
@layer states {
|
|
142
|
+
.form-group-label,
|
|
143
|
+
.radiosfield-label,
|
|
144
|
+
.checkboxesfield-label,
|
|
145
|
+
.textfield-label {
|
|
156
146
|
&:is(.is-required, .required) {
|
|
157
147
|
@include required;
|
|
158
148
|
}
|
|
159
149
|
}
|
|
160
|
-
}
|
|
161
150
|
|
|
162
|
-
.checkboxesfield.mod-framed,
|
|
163
|
-
.radiosfield.mod-framed,
|
|
164
|
-
.form.mod-framed .fieldsetWrapper {
|
|
165
|
-
@layer mods {
|
|
151
|
+
.checkboxesfield.mod-framed,
|
|
152
|
+
.radiosfield.mod-framed,
|
|
153
|
+
.form.mod-framed .fieldsetWrapper {
|
|
166
154
|
@include framed;
|
|
167
155
|
}
|
|
168
|
-
}
|
|
169
156
|
|
|
170
|
-
.checkboxesfield.mod-framed,
|
|
171
|
-
.radiosfield.mod-framed {
|
|
172
|
-
@layer mods {
|
|
157
|
+
.checkboxesfield.mod-framed,
|
|
158
|
+
.radiosfield.mod-framed {
|
|
173
159
|
margin-block-start: 0;
|
|
174
160
|
padding-block: var(--components-field-framed-side-padding) var(--components-field-framed-bottom-padding);
|
|
175
161
|
padding-inline: var(--components-field-framed-side-padding);
|
|
176
162
|
}
|
|
177
|
-
}
|
|
178
163
|
|
|
179
|
-
.form-group-label {
|
|
180
|
-
@layer states {
|
|
164
|
+
.form-group-label {
|
|
181
165
|
&.is-required {
|
|
182
166
|
&:not(:empty) {
|
|
183
167
|
&::after {
|
|
@@ -186,12 +170,10 @@
|
|
|
186
170
|
}
|
|
187
171
|
}
|
|
188
172
|
}
|
|
189
|
-
}
|
|
190
173
|
|
|
191
|
-
.radiosfield-label,
|
|
192
|
-
.checkboxesfield-label,
|
|
193
|
-
.textfield-label {
|
|
194
|
-
@layer states {
|
|
174
|
+
.radiosfield-label,
|
|
175
|
+
.checkboxesfield-label,
|
|
176
|
+
.textfield-label {
|
|
195
177
|
&.is-required {
|
|
196
178
|
&:not(:empty) {
|
|
197
179
|
&::after {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
color: var(--palettes-error-700);
|
|
28
28
|
font-size: inherit;
|
|
29
29
|
line-height: inherit;
|
|
30
|
-
font-weight:
|
|
30
|
+
font-weight: var(--pr-t-font-fontWeight-semibold);
|
|
31
31
|
margin-inline-start: var(--pr-t-spacings-25);
|
|
32
32
|
inset-block-start: 0; // Reset sup HTML element
|
|
33
33
|
}
|
|
@@ -1,24 +1,83 @@
|
|
|
1
1
|
@use '@lucca-front/scss/src/commons/utils/namespace';
|
|
2
2
|
|
|
3
3
|
@mixin component($atRoot: namespace.$defaultAtRoot) {
|
|
4
|
-
border-radius: var(--
|
|
5
|
-
block-size: var(--components-gauge-
|
|
6
|
-
|
|
7
|
-
position: relative;
|
|
4
|
+
border-radius: var(--components-gauge-borderRadius);
|
|
5
|
+
block-size: var(--components-gauge-blockSize);
|
|
6
|
+
inline-size: var(--components-gauge-inlineSize);
|
|
8
7
|
background-color: var(--components-gauge-background);
|
|
8
|
+
display: block;
|
|
9
|
+
color: var(--components-gauge-color);
|
|
10
|
+
|
|
11
|
+
&::before {
|
|
12
|
+
content: '';
|
|
13
|
+
display: block;
|
|
14
|
+
|
|
15
|
+
@extend %gaugeBar;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:has(.gauge-bar) {
|
|
19
|
+
&::before {
|
|
20
|
+
content: none;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
9
23
|
|
|
10
24
|
@at-root ($atRoot) {
|
|
11
25
|
.gauge-bar {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
@extend %gaugeBar;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.gauge-circleBackground {
|
|
30
|
+
fill: transparent;
|
|
31
|
+
stroke-width: var(--components-gauge-circle-strokeWidth);
|
|
32
|
+
stroke: var(--components-gauge-circle-background);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.gauge-circleBar {
|
|
36
|
+
fill: transparent;
|
|
37
|
+
stroke-width: var(--components-gauge-circle-strokeWidth);
|
|
38
|
+
stroke-linecap: round;
|
|
39
|
+
stroke-dashoffset: 0;
|
|
40
|
+
transform: rotate(-0.25turn);
|
|
41
|
+
transform-origin: 50% 50%;
|
|
42
|
+
stroke-dasharray: calc(var(--components-gauge-circleP) / 100 * var(--components-gauge-value)), 9999;
|
|
43
|
+
stroke: currentColor;
|
|
44
|
+
animation-name: var(--components-gauge-animationName);
|
|
45
|
+
animation-duration: var(--components-gauge-animationDuration);
|
|
46
|
+
animation-timing-function: var(--components-gauge-animationTimingFunction);
|
|
47
|
+
|
|
48
|
+
@media (prefers-reduced-motion: reduce) {
|
|
49
|
+
--components-gauge-animationDuration: var(--commons-animations-durations-fast);
|
|
50
|
+
--components-gauge-animationTimingFunction: ease;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes gauge-fill {
|
|
55
|
+
from {
|
|
56
|
+
stroke-dasharray: 0, 9999;
|
|
57
|
+
inline-size: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
%gaugeBar {
|
|
64
|
+
@layer components {
|
|
65
|
+
color: currentColor;
|
|
66
|
+
transition-duration: var(--commons-animations-durations-standard);
|
|
67
|
+
transition-property: background-color, inline-size, block-size;
|
|
68
|
+
block-size: var(--components-gauge-blockSize);
|
|
69
|
+
inline-size: var(--components-gauge-value);
|
|
70
|
+
background-color: currentColor;
|
|
71
|
+
border-radius: var(--pr-t-border-radius-full);
|
|
72
|
+
min-inline-size: var(--components-gauge-before-minInlineSize);
|
|
73
|
+
min-block-size: var(--components-gauge-before-minInlineSize);
|
|
74
|
+
animation-name: var(--components-gauge-animationName);
|
|
75
|
+
animation-duration: var(--components-gauge-animationDuration);
|
|
76
|
+
animation-timing-function: var(--components-gauge-animationTimingFunction);
|
|
77
|
+
|
|
78
|
+
@media (prefers-reduced-motion: reduce) {
|
|
79
|
+
--components-gauge-animationDuration: var(--commons-animations-durations-fast);
|
|
80
|
+
--components-gauge-animationTimingFunction: ease;
|
|
22
81
|
}
|
|
23
82
|
}
|
|
24
83
|
}
|
|
@@ -11,8 +11,27 @@
|
|
|
11
11
|
@include thin;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
&:has(.gauge-circleBackground) {
|
|
15
|
+
@include circular;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// .mod-vertical is deprecated
|
|
14
19
|
&.mod-vertical {
|
|
15
20
|
@include vertical;
|
|
21
|
+
|
|
22
|
+
&.mod-thin {
|
|
23
|
+
@include verticalThin;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.is-zero,
|
|
28
|
+
&:not([style]),
|
|
29
|
+
&[style*='--components-gauge-value: 0%'] {
|
|
30
|
+
@include zero;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.is-animated {
|
|
34
|
+
@include animated;
|
|
16
35
|
}
|
|
17
36
|
}
|
|
18
37
|
}
|
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
@mixin thin {
|
|
2
|
-
--components-gauge-
|
|
2
|
+
--components-gauge-blockSize: var(--pr-t-spacings-50);
|
|
3
|
+
--components-gauge-circle-strokeWidth: var(--pr-t-spacings-50);
|
|
3
4
|
}
|
|
4
5
|
|
|
6
|
+
// @mixin vertical is deprecated
|
|
5
7
|
@mixin vertical {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
--components-gauge-blockSize: 100%;
|
|
9
|
+
--components-gauge-inlineSize: var(--components-gauge-height, var(--pr-t-spacings-100));
|
|
10
|
+
--components-gauge-before-minInlineSize: var(--components-gauge-inlineSize);
|
|
8
11
|
|
|
9
|
-
.gauge-bar
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
.gauge-bar,
|
|
13
|
+
&::before {
|
|
14
|
+
inline-size: 100%;
|
|
15
|
+
block-size: var(--components-gauge-value);
|
|
13
16
|
}
|
|
14
17
|
}
|
|
18
|
+
|
|
19
|
+
// @mixin verticalThin is deprecated
|
|
20
|
+
@mixin verticalThin {
|
|
21
|
+
--components-gauge-inlineSize: var(--pr-t-spacings-50);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin circular {
|
|
25
|
+
--components-gauge-borderRadius: 0;
|
|
26
|
+
--components-gauge-blockSize: auto;
|
|
27
|
+
--components-gauge-background: transparent;
|
|
28
|
+
}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
// --components-gauge-height is deprecated
|
|
1
2
|
@mixin vars {
|
|
2
|
-
--components-gauge-
|
|
3
|
+
--components-gauge-blockSize: var(--components-gauge-height, var(--pr-t-spacings-100));
|
|
4
|
+
--components-gauge-inlineSize: auto;
|
|
3
5
|
--components-gauge-background: var(--palettes-neutral-100);
|
|
6
|
+
--components-gauge-before-minInlineSize: var(--components-gauge-blockSize);
|
|
7
|
+
--components-gauge-value: 0;
|
|
8
|
+
--components-gauge-borderRadius: var(--pr-t-border-radius-full);
|
|
9
|
+
--components-gauge-color: var(--palettes-700, var(--palettes-product-700));
|
|
10
|
+
--components-gauge-animationName: name;
|
|
11
|
+
--components-gauge-animationDuration: var(--commons-animations-durations-slow);
|
|
12
|
+
--components-gauge-animationTimingFunction: cubic-bezier(.9,.9,.9,1.1);
|
|
13
|
+
|
|
14
|
+
--components-gauge-circle-background: var(--palettes-neutral-100);
|
|
15
|
+
--components-gauge-circle-strokeWidth: var(--pr-t-spacings-100);
|
|
16
|
+
--components-gauge-circleR: 76px;
|
|
17
|
+
--components-gauge-circleP: calc(2 * pi * var(--components-gauge-circleR));
|
|
18
|
+
|
|
4
19
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
.indexTable-foot-row-cell {
|
|
50
50
|
display: table-cell;
|
|
51
51
|
text-align: start;
|
|
52
|
-
font-weight:
|
|
52
|
+
font-weight: var(--pr-t-font-fontWeight-regular);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.indexTable-head-row-transparentCell,
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
.indexTable-body-row-cellTitle-title {
|
|
247
|
-
font-weight:
|
|
247
|
+
font-weight: var(--pr-t-font-fontWeight-semibold);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
// A wrapper is needed for pagination
|