@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.
Files changed (162) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/commons/base.scss +4 -2
  4. package/src/commons/config.scss +8 -2
  5. package/src/commons/core.scss +1 -1
  6. package/src/commons/utils/color.scss +14 -0
  7. package/src/commons/utils/index.scss +2 -2
  8. package/src/commons/vars.scss +12 -12
  9. package/src/components/_sample/index.scss +0 -2
  10. package/src/components/avatar/component.scss +4 -3
  11. package/src/components/avatar/index.scss +4 -0
  12. package/src/components/avatar/mods.scss +18 -3
  13. package/src/components/avatar/vars.scss +4 -0
  14. package/src/components/box/component.scss +1 -1
  15. package/src/components/box/mods.scss +1 -0
  16. package/src/components/box/vars.scss +1 -0
  17. package/src/components/breadcrumbs/index.scss +1 -1
  18. package/src/components/breadcrumbs/states.scss +1 -1
  19. package/src/components/button/component.scss +0 -1
  20. package/src/components/button/index.scss +16 -3
  21. package/src/components/button/mods.scss +17 -2
  22. package/src/components/button/states.scss +41 -12
  23. package/src/components/button/vars.scss +1 -1
  24. package/src/components/calendar/component.scss +1 -1
  25. package/src/components/calendar/index.scss +1 -1
  26. package/src/components/callout/component.scss +14 -5
  27. package/src/components/callout/index.scss +9 -0
  28. package/src/components/callout/mods.scss +30 -2
  29. package/src/components/callout/vars.scss +5 -0
  30. package/src/components/calloutAccordion/component.scss +1 -1
  31. package/src/components/calloutDisclosure/component.scss +1 -1
  32. package/src/components/calloutDisclosure/index.scss +1 -3
  33. package/src/components/card/component.scss +1 -0
  34. package/src/components/card/index.scss +4 -2
  35. package/src/components/card/mods.scss +31 -0
  36. package/src/components/checkbox/index.scss +0 -2
  37. package/src/components/checkboxField/component.scss +1 -1
  38. package/src/components/checkboxField/index.scss +4 -8
  39. package/src/components/chip/index.scss +0 -2
  40. package/src/components/clear/index.scss +0 -2
  41. package/src/components/collapse/index.scss +1 -1
  42. package/src/components/dataTable/component.scss +4 -2
  43. package/src/components/dataTable/index.scss +25 -11
  44. package/src/components/dataTable/mods.scss +5 -6
  45. package/src/components/dataTable/states.scss +12 -0
  46. package/src/components/dataTableSticked/index.scss +0 -4
  47. package/src/components/dialog/component.scss +6 -6
  48. package/src/components/dialog/index.scss +4 -0
  49. package/src/components/dialog/mods.scss +4 -0
  50. package/src/components/dropdown/component.scss +43 -17
  51. package/src/components/dropdown/index.scss +5 -4
  52. package/src/components/dropdown/mods.scss +4 -4
  53. package/src/components/dropdown/states.scss +4 -3
  54. package/src/components/dropdown/vars.scss +8 -6
  55. package/src/components/field/index.scss +8 -30
  56. package/src/components/fieldset/component.scss +1 -1
  57. package/src/components/fieldset/index.scss +0 -2
  58. package/src/components/file/component.scss +1 -1
  59. package/src/components/file/index.scss +2 -4
  60. package/src/components/file/states.scss +1 -1
  61. package/src/components/fileEntry/index.scss +0 -2
  62. package/src/components/fileUpload/component.scss +1 -1
  63. package/src/components/fileUpload/index.scss +0 -2
  64. package/src/components/filterPill/component.scss +1 -1
  65. package/src/components/filterPill/index.scss +1 -5
  66. package/src/components/footer/component.scss +0 -1
  67. package/src/components/form/component.scss +11 -1
  68. package/src/components/form/index.scss +18 -36
  69. package/src/components/form/mods.scss +1 -1
  70. package/src/components/formLabel/component.scss +1 -1
  71. package/src/components/formLabel/index.scss +0 -2
  72. package/src/components/gauge/component.scss +73 -14
  73. package/src/components/gauge/index.scss +19 -0
  74. package/src/components/gauge/mods.scss +21 -7
  75. package/src/components/gauge/states.scss +8 -0
  76. package/src/components/gauge/vars.scss +16 -1
  77. package/src/components/header/index.scss +0 -2
  78. package/src/components/horizontalNavigation/component.scss +1 -1
  79. package/src/components/horizontalNavigation/index.scss +1 -1
  80. package/src/components/index.scss +1 -0
  81. package/src/components/indexTable/component.scss +2 -2
  82. package/src/components/indexTable/index.scss +0 -2
  83. package/src/components/indexTable/mods.scss +1 -1
  84. package/src/components/inlineMessage/index.scss +0 -2
  85. package/src/components/inputFramed/component.scss +2 -1
  86. package/src/components/inputFramed/index.scss +5 -1
  87. package/src/components/inputFramed/mods.scss +3 -0
  88. package/src/components/inputFramed/vars.scss +1 -0
  89. package/src/components/label/component.scss +1 -1
  90. package/src/components/layout/index.scss +1 -1
  91. package/src/components/link/index.scss +2 -4
  92. package/src/components/listboxOption/index.scss +2 -6
  93. package/src/components/main/index.scss +1 -1
  94. package/src/components/mainLayout/index.scss +2 -2
  95. package/src/components/mobileNavigation/component.scss +1 -1
  96. package/src/components/multiSelect/component.scss +1 -1
  97. package/src/components/multiSelect/index.scss +14 -6
  98. package/src/components/multiSelect/mods.scss +0 -8
  99. package/src/components/multiSelect/states.scss +8 -0
  100. package/src/components/navside/component.scss +2 -2
  101. package/src/components/navside/index.scss +5 -17
  102. package/src/components/newBadge/component.scss +1 -1
  103. package/src/components/numericBadge/component.scss +1 -1
  104. package/src/components/numericBadge/index.scss +0 -2
  105. package/src/components/numericBadge/states.scss +5 -0
  106. package/src/components/pagination/index.scss +1 -1
  107. package/src/components/plgPush/component.scss +1 -1
  108. package/src/components/popover/component.scss +0 -17
  109. package/src/components/progress/index.scss +0 -2
  110. package/src/components/radio/index.scss +1 -1
  111. package/src/components/radioButtons/index.scss +2 -2
  112. package/src/components/radioField/index.scss +1 -1
  113. package/src/components/readMore/component.scss +22 -6
  114. package/src/components/readMore/index.scss +1 -3
  115. package/src/components/readMore/states.scss +2 -0
  116. package/src/components/richText/component.scss +1 -3
  117. package/src/components/richText/index.scss +1 -3
  118. package/src/components/scrollBox/index.scss +1 -1
  119. package/src/components/segmentedControl/component.scss +1 -0
  120. package/src/components/segmentedControl/index.scss +9 -13
  121. package/src/components/simpleSelect/index.scss +1 -5
  122. package/src/components/skeleton/index.scss +0 -2
  123. package/src/components/skeleton/mods.scss +1 -1
  124. package/src/components/skipLinks/component.scss +1 -1
  125. package/src/components/statusBadge/component.scss +1 -1
  126. package/src/components/suggestion/component.scss +19 -0
  127. package/src/components/suggestion/exports.scss +4 -0
  128. package/src/components/suggestion/index.scss +16 -0
  129. package/src/components/suggestion/mods.scss +0 -0
  130. package/src/components/suggestion/states.scss +12 -0
  131. package/src/components/suggestion/vars.scss +4 -0
  132. package/src/components/switch/index.scss +1 -1
  133. package/src/components/switchField/index.scss +1 -1
  134. package/src/components/table/component.scss +1 -1
  135. package/src/components/table/index.scss +12 -20
  136. package/src/components/table/mods.scss +4 -4
  137. package/src/components/tableOfContent/index.scss +1 -1
  138. package/src/components/tableSortable/index.scss +0 -2
  139. package/src/components/tag/component.scss +4 -1
  140. package/src/components/tag/index.scss +12 -2
  141. package/src/components/tag/mods.scss +30 -3
  142. package/src/components/tag/states.scss +6 -0
  143. package/src/components/tag/vars.scss +2 -0
  144. package/src/components/textField/component.scss +1 -0
  145. package/src/components/textField/index.scss +4 -4
  146. package/src/components/textField/states.scss +5 -0
  147. package/src/components/textField/vars.scss +1 -0
  148. package/src/components/textFlow/component.scss +6 -0
  149. package/src/components/textfields/index.scss +2 -19
  150. package/src/components/textfields/mods.scss +3 -3
  151. package/src/components/timeline/component.scss +1 -1
  152. package/src/components/timeline/index.scss +1 -1
  153. package/src/components/timeline/mods.scss +3 -3
  154. package/src/components/timepicker/index.scss +0 -2
  155. package/src/components/title/index.scss +11 -0
  156. package/src/components/title/mods.scss +6 -0
  157. package/src/components/titleSection/component.scss +1 -1
  158. package/src/components/tooltip/index.scss +1 -1
  159. package/src/components/userPopover/component.scss +1 -0
  160. package/src/components/verticalNavigation/component.scss +1 -1
  161. package/src/components/verticalNavigation/index.scss +4 -8
  162. 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
- .textfield-input,
109
- .radiosfield-input,
110
- .checkboxesfield-input {
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
- @layer mods {
130
- &.mod-row {
131
- @include inputRow;
114
+ &:is([required]),
115
+ &:is([aria-required='true']) {
116
+ @include required;
132
117
  }
133
118
  }
134
- }
135
- }
136
119
 
137
- .textfield-input,
138
- .radiosfield-input,
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
  }
@@ -42,7 +42,7 @@
42
42
 
43
43
  .fieldset-title-content-text-helper {
44
44
  font: var(--pr-t-font-body-S);
45
- font-weight: 400;
45
+ font-weight: var(--pr-t-font-fontWeight-regular);
46
46
  color: var(--palettes-neutral-700);
47
47
  display: block;
48
48
  }
@@ -18,9 +18,7 @@
18
18
  &.mod-expandable {
19
19
  @include expandable;
20
20
  }
21
- }
22
21
 
23
- @layer states {
24
22
  &:has(.fieldset-title-content[aria-expanded='true']) {
25
23
  @include expanded;
26
24
  }
@@ -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: 600;
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
- .file-input {
31
- @layer states {
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: 400;
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);
@@ -18,9 +18,7 @@
18
18
  @include mediaS;
19
19
  }
20
20
  }
21
- }
22
21
 
23
- @layer states {
24
22
  &.is-error {
25
23
  @include error;
26
24
 
@@ -93,7 +93,7 @@
93
93
 
94
94
  .fileUpload-instruction-filename {
95
95
  display: block;
96
- font-weight: 600;
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);
@@ -22,9 +22,7 @@
22
22
  @include loadingS;
23
23
  }
24
24
  }
25
- }
26
25
 
27
- @layer states {
28
26
  &:hover {
29
27
  @include hover;
30
28
  }
@@ -179,7 +179,7 @@
179
179
  }
180
180
 
181
181
  &::before {
182
- font-weight: 400;
182
+ font-weight: var(--pr-t-font-fontWeight-regular);
183
183
  font-size: 1rem;
184
184
  direction: ltr;
185
185
 
@@ -6,7 +6,7 @@
6
6
  @include component;
7
7
  }
8
8
 
9
- @layer states {
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
  }
@@ -19,7 +19,6 @@
19
19
  }
20
20
 
21
21
  .footer-actions {
22
- flex-shrink: 0;
23
22
  margin-inline-start: var(--components-footer-actions-margin);
24
23
  display: flex;
25
24
  gap: var(--pr-t-spacings-150);
@@ -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: 600;
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
- .form-fieldset {
21
- @layer mods {
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
- .form-group-line-col {
132
- @layer mods {
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 {
@@ -362,7 +362,7 @@
362
362
  }
363
363
 
364
364
  %isRequired {
365
- @layer states {
365
+ @layer mods {
366
366
  color: var(--palettes-error-700);
367
367
  display: inline-block;
368
368
  margin-inline-start: 0.2em;
@@ -27,7 +27,7 @@
27
27
  color: var(--palettes-error-700);
28
28
  font-size: inherit;
29
29
  line-height: inherit;
30
- font-weight: 600;
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
  }
@@ -18,9 +18,7 @@
18
18
  &.mod-counter {
19
19
  @include counter;
20
20
  }
21
- }
22
21
 
23
- @layer states {
24
22
  &.is-error {
25
23
  // To replace by :has as soon as it is implemented in Firefox to cover usage as legend for checkboxes and radio states.
26
24
  @include error;
@@ -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(--pr-t-border-radius-full);
5
- block-size: var(--components-gauge-height);
6
- overflow: hidden;
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
- color: var(--palettes-700, var(--palettes-product-700));
13
- border-block-end-width: var(--components-gauge-height);
14
- transition-duration: var(--commons-animations-durations-standard);
15
- transition-property: border-color, width, height;
16
- inset-block-start: 0;
17
- inset-inline-start: 0;
18
- position: absolute;
19
- border-block-end-style: solid;
20
- border-color: currentColor;
21
- border-radius: var(--pr-t-border-radius-full);
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-height: var(--pr-t-spacings-50);
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
- inline-size: var(--components-gauge-height);
7
- block-size: 100%;
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
- border-inline-start-width: var(--components-gauge-height);
11
- border-inline-start-style: solid;
12
- border-block-end-width: 0;
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
+ }
@@ -0,0 +1,8 @@
1
+ @mixin zero {
2
+ --components-gauge-before-minInlineSize: 0;
3
+ --components-gauge-color: var(--components-gauge-background);
4
+ }
5
+
6
+ @mixin animated {
7
+ --components-gauge-animationName: gauge-fill;
8
+ }
@@ -1,4 +1,19 @@
1
+ // --components-gauge-height is deprecated
1
2
  @mixin vars {
2
- --components-gauge-height: 0.5rem;
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
  }
@@ -19,9 +19,7 @@
19
19
  &.mod-nav {
20
20
  @include nav;
21
21
  }
22
- }
23
22
 
24
- @layer states {
25
23
  &:is(.is-loading, .loading) {
26
24
  @include loading;
27
25
  }
@@ -137,7 +137,7 @@
137
137
  display: block;
138
138
  block-size: 0;
139
139
  overflow: hidden;
140
- font-weight: 600;
140
+ font-weight: var(--pr-t-font-fontWeight-semibold);
141
141
  }
142
142
  }
143
143
  }
@@ -45,7 +45,7 @@
45
45
  .horizontalNavigation-list-item-action,
46
46
  .menu-link,
47
47
  .menu-list-item-action {
48
- @layer states {
48
+ @layer mods {
49
49
  // .active is deprecated
50
50
  &[aria-current='page'],
51
51
  &.is-active,
@@ -108,6 +108,7 @@
108
108
  @forward 'appLayout';
109
109
  @forward 'mainLayout';
110
110
  @forward 'listboxOption';
111
+ @forward 'suggestion';
111
112
 
112
113
  @forward 'filterBarDeprecated';
113
114
  @forward 'tableFixedDeprecated';
@@ -49,7 +49,7 @@
49
49
  .indexTable-foot-row-cell {
50
50
  display: table-cell;
51
51
  text-align: start;
52
- font-weight: 400;
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: 600;
247
+ font-weight: var(--pr-t-font-fontWeight-semibold);
248
248
  }
249
249
 
250
250
  // A wrapper is needed for pagination
@@ -65,9 +65,7 @@
65
65
  @include selectableStackableResponsiveCardList;
66
66
  }
67
67
  }
68
- }
69
68
 
70
- @layer states {
71
69
  &:not(:has(.indexTable-head[inert='inert'])) {
72
70
  @include focusedRow;
73
71
  @include hoveredRow;