@lucca-front/scss 20.3.0-rc.5 → 20.3.0

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 (153) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/commons/config.scss +5 -0
  4. package/src/commons/core.scss +3 -3
  5. package/src/commons/exports.scss +0 -1
  6. package/src/commons/index.scss +9 -2
  7. package/src/commons/utils/index.scss +480 -478
  8. package/src/commons/utils/reset.scss +1 -1
  9. package/src/components/_sample/index.scss +13 -7
  10. package/src/components/appLayout/component.scss +1 -0
  11. package/src/components/appLayout/index.scss +11 -7
  12. package/src/components/avatar/index.scss +43 -35
  13. package/src/components/box/index.scss +20 -14
  14. package/src/components/breadcrumbs/index.scss +16 -10
  15. package/src/components/button/index.scss +138 -134
  16. package/src/components/button/mods.scss +17 -0
  17. package/src/components/button/states.scss +3 -3
  18. package/src/components/buttonGroup/component.scss +0 -17
  19. package/src/components/buttonGroup/index.scss +20 -8
  20. package/src/components/calendar/index.scss +56 -44
  21. package/src/components/callout/index.scss +8 -4
  22. package/src/components/callout/mods.scss +1 -0
  23. package/src/components/calloutDisclosure/component.scss +2 -3
  24. package/src/components/calloutDisclosure/index.scss +14 -10
  25. package/src/components/calloutDisclosure/mods.scss +5 -0
  26. package/src/components/calloutDisclosure/vars.scss +3 -0
  27. package/src/components/calloutFeedbackList/index.scss +8 -4
  28. package/src/components/calloutPopover/index.scss +18 -12
  29. package/src/components/card/index.scss +28 -24
  30. package/src/components/checkbox/index.scss +35 -31
  31. package/src/components/checkboxField/index.scss +88 -82
  32. package/src/components/chip/index.scss +22 -18
  33. package/src/components/clear/index.scss +22 -18
  34. package/src/components/code/index.scss +8 -4
  35. package/src/components/collapse/index.scss +11 -7
  36. package/src/components/comment/index.scss +30 -20
  37. package/src/components/container/component.scss +1 -0
  38. package/src/components/container/index.scss +29 -25
  39. package/src/components/contentSection/index.scss +4 -2
  40. package/src/components/dataTable/component.scss +9 -0
  41. package/src/components/dataTable/index.scss +94 -69
  42. package/src/components/dataTable/mods.scss +28 -5
  43. package/src/components/dataTableSticked/index.scss +34 -26
  44. package/src/components/dataTableSticked/mods.scss +4 -2
  45. package/src/components/dataTableSticked/states.scss +5 -0
  46. package/src/components/dataTableSticked/vars.scss +1 -0
  47. package/src/components/dateField/index.scss +24 -20
  48. package/src/components/dateRangeField/index.scss +29 -25
  49. package/src/components/dialog/component.scss +5 -5
  50. package/src/components/dialog/index.scss +40 -36
  51. package/src/components/divider/index.scss +11 -7
  52. package/src/components/dropdown/index.scss +13 -9
  53. package/src/components/emptyState/index.scss +11 -7
  54. package/src/components/errorPage/index.scss +8 -4
  55. package/src/components/fancyBox/index.scss +8 -4
  56. package/src/components/field/index.scss +86 -88
  57. package/src/components/fieldset/index.scss +17 -13
  58. package/src/components/file/index.scss +34 -28
  59. package/src/components/fileEntry/index.scss +23 -19
  60. package/src/components/fileToolbar/index.scss +10 -6
  61. package/src/components/fileUpload/index.scss +36 -32
  62. package/src/components/filterBar/index.scss +17 -13
  63. package/src/components/filterBarDeprecated/index.scss +8 -4
  64. package/src/components/filterPill/index.scss +53 -49
  65. package/src/components/filters/index.scss +14 -8
  66. package/src/components/footer/index.scss +38 -34
  67. package/src/components/form/index.scss +121 -109
  68. package/src/components/form/mods.scss +7 -5
  69. package/src/components/formLabel/index.scss +18 -14
  70. package/src/components/gauge/component.scss +20 -16
  71. package/src/components/gauge/index.scss +25 -21
  72. package/src/components/grid/index.scss +25 -21
  73. package/src/components/header/index.scss +17 -13
  74. package/src/components/highlightData/index.scss +28 -24
  75. package/src/components/horizontalNavigation/index.scss +42 -36
  76. package/src/components/index.scss +57 -55
  77. package/src/components/indexTable/component.scss +10 -0
  78. package/src/components/indexTable/index.scss +53 -57
  79. package/src/components/inlineMessage/index.scss +17 -13
  80. package/src/components/inputFramed/index.scss +30 -24
  81. package/src/components/label/index.scss +13 -9
  82. package/src/components/layout/index.scss +51 -45
  83. package/src/components/link/index.scss +14 -10
  84. package/src/components/link/mods.scss +1 -1
  85. package/src/components/list/index.scss +15 -11
  86. package/src/components/listboxOption/index.scss +129 -117
  87. package/src/components/listing/index.scss +22 -18
  88. package/src/components/loading/index.scss +27 -23
  89. package/src/components/main/index.scss +21 -15
  90. package/src/components/mainLayout/component.scss +27 -0
  91. package/src/components/mainLayout/index.scss +27 -21
  92. package/src/components/mainLayout/vars.scss +1 -0
  93. package/src/components/mobileHeader/index.scss +8 -4
  94. package/src/components/mobileNavigation/index.scss +4 -2
  95. package/src/components/mobilePush/index.scss +8 -4
  96. package/src/components/multiSelect/index.scss +57 -39
  97. package/src/components/multiSelect/mods.scss +0 -8
  98. package/src/components/multiSelect/states.scss +8 -0
  99. package/src/components/navside/index.scss +74 -64
  100. package/src/components/newBadge/index.scss +8 -4
  101. package/src/components/notchBox/index.scss +17 -13
  102. package/src/components/notchBox/mods.scss +137 -125
  103. package/src/components/numericBadge/index.scss +21 -17
  104. package/src/components/pageHeader/index.scss +26 -22
  105. package/src/components/pagination/index.scss +12 -6
  106. package/src/components/plgPush/index.scss +4 -2
  107. package/src/components/popover/index.scss +4 -2
  108. package/src/components/progress/index.scss +14 -10
  109. package/src/components/radio/index.scss +18 -12
  110. package/src/components/radioButtons/index.scss +16 -10
  111. package/src/components/radioField/index.scss +46 -40
  112. package/src/components/readMore/index.scss +20 -16
  113. package/src/components/richText/component.scss +1 -0
  114. package/src/components/richText/index.scss +19 -15
  115. package/src/components/scrollBox/index.scss +14 -10
  116. package/src/components/section/index.scss +16 -12
  117. package/src/components/segmentedControl/index.scss +31 -25
  118. package/src/components/simpleSelect/index.scss +39 -35
  119. package/src/components/skeleton/index.scss +42 -38
  120. package/src/components/skipLinks/index.scss +4 -2
  121. package/src/components/sortableList/index.scss +12 -6
  122. package/src/components/statusBadge/component.scss +9 -2
  123. package/src/components/statusBadge/index.scss +12 -4
  124. package/src/components/statusBadge/states.scss +5 -0
  125. package/src/components/switch/index.scss +35 -29
  126. package/src/components/switchField/index.scss +22 -16
  127. package/src/components/table/index.scss +85 -79
  128. package/src/components/tableFixed/index.scss +13 -11
  129. package/src/components/tableFixedDeprecated/index.scss +14 -10
  130. package/src/components/tableOfContent/index.scss +28 -24
  131. package/src/components/tableSortable/index.scss +29 -17
  132. package/src/components/tableSortable/mods.scss +7 -2
  133. package/src/components/tableSticked/index.scss +28 -24
  134. package/src/components/tableSticked/mods.scss +6 -6
  135. package/src/components/tableStickedDeprecated/index.scss +46 -40
  136. package/src/components/tag/component.scss +1 -1
  137. package/src/components/tag/index.scss +28 -24
  138. package/src/components/tag/mods.scss +1 -0
  139. package/src/components/tag/vars.scss +1 -0
  140. package/src/components/textField/index.scss +28 -24
  141. package/src/components/textField/mods.scss +1 -1
  142. package/src/components/textFlow/index.scss +4 -2
  143. package/src/components/textfields/index.scss +265 -261
  144. package/src/components/timeline/index.scss +72 -66
  145. package/src/components/timepicker/index.scss +20 -16
  146. package/src/components/title/index.scss +43 -30
  147. package/src/components/title/mods.scss +1 -1
  148. package/src/components/titleSection/index.scss +31 -23
  149. package/src/components/toast/index.scss +8 -4
  150. package/src/components/tooltip/index.scss +25 -21
  151. package/src/components/userPopover/index.scss +4 -2
  152. package/src/components/userTile/index.scss +26 -22
  153. package/src/components/verticalNavigation/index.scss +26 -20
@@ -11,693 +11,695 @@
11
11
 
12
12
  @use '@lucca-front/scss/src/components/title/exports' as title;
13
13
 
14
- %animatedAll {
15
- animation-duration: var(--commons-animations-duration, var(--commons-animations-durations-standard));
16
- animation-timing-function: var(--commons-animations-function);
14
+ @layer utils {
15
+ %animatedAll {
16
+ animation-duration: var(--commons-animations-duration, var(--commons-animations-durations-standard));
17
+ animation-timing-function: var(--commons-animations-function);
17
18
 
18
- &.mod-animation-duration-fast {
19
- --commons-animations-duration: var(--commons-animations-durations-fast);
20
- }
19
+ &.mod-animation-duration-fast {
20
+ --commons-animations-duration: var(--commons-animations-durations-fast);
21
+ }
21
22
 
22
- &.mod-animation-duration-slow {
23
- --commons-animations-duration: var(--commons-animations-durations-slow);
23
+ &.mod-animation-duration-slow {
24
+ --commons-animations-duration: var(--commons-animations-durations-slow);
25
+ }
24
26
  }
25
- }
26
27
 
27
- %animated {
28
- &FadeIn,
29
- &FadeOut {
30
- animation-name: fadeIn;
28
+ %animated {
29
+ &FadeIn,
30
+ &FadeOut {
31
+ animation-name: fadeIn;
31
32
 
32
- @include keyframe.fadeIn;
33
- }
33
+ @include keyframe.fadeIn;
34
+ }
34
35
 
35
- &ScaleIn,
36
- &ScaleOut {
37
- animation-name: scaleIn;
36
+ &ScaleIn,
37
+ &ScaleOut {
38
+ animation-name: scaleIn;
38
39
 
39
- @include keyframe.scaleIn;
40
- }
40
+ @include keyframe.scaleIn;
41
+ }
41
42
 
42
- &ScaleInTop,
43
- &ScaleOutTop {
44
- animation-name: scaleInTop;
43
+ &ScaleInTop,
44
+ &ScaleOutTop {
45
+ animation-name: scaleInTop;
45
46
 
46
- @include keyframe.scaleIn;
47
- }
47
+ @include keyframe.scaleIn;
48
+ }
48
49
 
49
- &ScaleInRight,
50
- &ScaleOutRight {
51
- animation-name: scaleInRight;
50
+ &ScaleInRight,
51
+ &ScaleOutRight {
52
+ animation-name: scaleInRight;
52
53
 
53
- @include keyframe.scaleInRight;
54
- }
54
+ @include keyframe.scaleInRight;
55
+ }
55
56
 
56
- &ScaleInBottom,
57
- &ScaleOutBottom {
58
- animation-name: scaleInBottom;
57
+ &ScaleInBottom,
58
+ &ScaleOutBottom {
59
+ animation-name: scaleInBottom;
59
60
 
60
- @include keyframe.scaleInBottom;
61
- }
61
+ @include keyframe.scaleInBottom;
62
+ }
62
63
 
63
- &ScaleInLeft,
64
- &ScaleOutLeft {
65
- animation-name: scaleInLeft;
64
+ &ScaleInLeft,
65
+ &ScaleOutLeft {
66
+ animation-name: scaleInLeft;
66
67
 
67
- @include keyframe.scaleInLeft;
68
- }
68
+ @include keyframe.scaleInLeft;
69
+ }
69
70
 
70
- &SlideIn,
71
- &SlideInTop,
72
- &SlideOut,
73
- &SlideOutTop {
74
- animation-name: slideIn;
71
+ &SlideIn,
72
+ &SlideInTop,
73
+ &SlideOut,
74
+ &SlideOutTop {
75
+ animation-name: slideIn;
75
76
 
76
- @include keyframe.slideIn;
77
- }
77
+ @include keyframe.slideIn;
78
+ }
78
79
 
79
- &SlideInRight,
80
- &SlideOutRight {
81
- animation-name: slideInRight;
80
+ &SlideInRight,
81
+ &SlideOutRight {
82
+ animation-name: slideInRight;
82
83
 
83
- @include keyframe.slideInRight;
84
- }
84
+ @include keyframe.slideInRight;
85
+ }
85
86
 
86
- &SlideInBottom,
87
- &SlideOutBottom {
88
- animation-name: slideInBottom;
87
+ &SlideInBottom,
88
+ &SlideOutBottom {
89
+ animation-name: slideInBottom;
89
90
 
90
- @include keyframe.slideInBottom;
91
- }
91
+ @include keyframe.slideInBottom;
92
+ }
92
93
 
93
- &SlideInLeft,
94
- &SlideOutLeft {
95
- animation-name: slideInLeft;
94
+ &SlideInLeft,
95
+ &SlideOutLeft {
96
+ animation-name: slideInLeft;
96
97
 
97
- @include keyframe.slideInLeft;
98
- }
98
+ @include keyframe.slideInLeft;
99
+ }
99
100
 
100
- &Shake {
101
- animation-name: shake;
101
+ &Shake {
102
+ animation-name: shake;
102
103
 
103
- @include keyframe.shake;
104
- }
104
+ @include keyframe.shake;
105
+ }
105
106
 
106
- &Pulse {
107
- animation-name: pulse;
108
- animation-direction: alternate;
109
- animation-iteration-count: var(--commons-animations-iteration-count);
107
+ &Pulse {
108
+ animation-name: pulse;
109
+ animation-direction: alternate;
110
+ animation-iteration-count: var(--commons-animations-iteration-count);
110
111
 
111
- @include keyframe.pulse;
112
- }
112
+ @include keyframe.pulse;
113
+ }
113
114
 
114
- &FadeOut,
115
- &SlideOut,
116
- &SlideOutTop,
117
- &SlideOutRight,
118
- &SlideOutBottom,
119
- &SlideOutLeft,
120
- &ScaleOut,
121
- &ScaleOutTop,
122
- &ScaleOutRight,
123
- &ScaleOutBottom,
124
- &ScaleOutLeft {
125
- animation-direction: reverse;
115
+ &FadeOut,
116
+ &SlideOut,
117
+ &SlideOutTop,
118
+ &SlideOutRight,
119
+ &SlideOutBottom,
120
+ &SlideOutLeft,
121
+ &ScaleOut,
122
+ &ScaleOutTop,
123
+ &ScaleOutRight,
124
+ &ScaleOutBottom,
125
+ &ScaleOutLeft {
126
+ animation-direction: reverse;
127
+ }
126
128
  }
127
- }
128
-
129
- %mask {
130
- @include a11y.mask('!important');
131
- }
132
-
133
- %clearfix {
134
- @include reset.clearfix('!important');
135
- }
136
129
 
137
- %clearBoth {
138
- @include reset.clear('both', '!important');
139
- }
140
-
141
- %clearInlineStart {
142
- @include reset.clear('both', '!important');
143
- }
144
-
145
- %clearInlineEnd {
146
- @include reset.clear('inline-end', '!important');
147
- }
148
-
149
- %listReset {
150
- @include reset.list('!important');
151
- }
152
-
153
- %descriptionListReset {
154
- @include reset.list($list: 'dl', $suffix: '!important');
155
- }
156
-
157
- %summaryReset {
158
- @include reset.summary('!important');
159
- }
160
-
161
- %buttonReset {
162
- @include reset.button('!important');
163
- }
164
-
165
- %ellipsis {
166
- @include text.ellipsis('!important');
167
- }
168
-
169
- %h1 {
170
- font: var(--pr-t-font-heading-1);
171
- color: var(--pr-t-color-text-heading);
172
-
173
- &.mod-XXXL {
174
- // Deprecated
175
- @include title.XXXL;
130
+ %mask {
131
+ @include a11y.mask('!important');
176
132
  }
177
- }
178
-
179
- %h2 {
180
- font: var(--pr-t-font-heading-2);
181
- color: var(--pr-t-color-text-heading);
182
- }
183
-
184
- %h3 {
185
- font: var(--pr-t-font-heading-3);
186
- color: var(--pr-t-color-text-heading);
187
- }
188
-
189
- %h4 {
190
- font: var(--pr-t-font-heading-4);
191
- color: var(--pr-t-color-text-heading);
192
- }
193
-
194
- %h5 {
195
- @include title.h5;
196
- }
197
-
198
- %h6 {
199
- @include title.h6;
200
- }
201
-
202
- %bodyM {
203
- font: var(--pr-t-font-body-M);
204
- }
205
-
206
- %bodyS {
207
- font: var(--pr-t-font-body-S);
208
- }
209
-
210
- %bodyXS {
211
- font: var(--pr-t-font-body-XS);
212
- }
213
-
214
- %textLeft {
215
- text-align: start !important;
216
- }
217
-
218
- %textRight {
219
- text-align: end !important;
220
- }
221
-
222
- %textCenter {
223
- text-align: center !important;
224
- }
225
-
226
- %textLight {
227
- color: var(--palettes-neutral-600) !important;
228
- }
229
-
230
- %textPlaceholder {
231
- color: var(--palettes-neutral-400) !important;
232
- }
233
-
234
- %textDefault {
235
- color: var(--palettes-neutral-700) !important;
236
- }
237
-
238
- %fontWeightRegular {
239
- font-weight: var(--pr-t-font-fontWeight-regular) !important;
240
- }
241
-
242
- %fontWeightSemiBold {
243
- font-weight: var(--pr-t-font-fontWeight-semibold) !important;
244
- }
245
133
 
246
- %noSpinButtons {
247
- &::-webkit-outer-spin-button,
248
- &::-webkit-inner-spin-button {
249
- appearance: none !important;
134
+ %clearfix {
135
+ @include reset.clearfix('!important');
250
136
  }
251
137
 
252
- &[type='number'] {
253
- appearance: textfield !important;
138
+ %clearBoth {
139
+ @include reset.clear('both', '!important');
254
140
  }
255
- }
256
-
257
- %fontFamily {
258
- font-family: var(--pr-t-font-family) !important;
259
- }
260
-
261
- %fontFamilyCursive {
262
- font-family: var(--pr-t-font-family-cursive) !important;
263
- }
264
141
 
265
- %fontFamilyBrand {
266
- font-family: var(--pr-t-font-family-brand) !important;
267
- }
268
-
269
- %focusVisible {
270
- &:focus-visible {
271
- @include a11y.focusVisible;
142
+ %clearInlineStart {
143
+ @include reset.clear('both', '!important');
272
144
  }
273
- }
274
-
275
145
 
276
-
277
- [data-content-before] {
278
- &::before {
279
- content: attr(data-content-before);
146
+ %clearInlineEnd {
147
+ @include reset.clear('inline-end', '!important');
280
148
  }
281
- }
282
149
 
283
- [data-content-after] {
284
- &::after {
285
- content: attr(data-content-after);
150
+ %listReset {
151
+ @include reset.list('!important');
286
152
  }
287
- }
288
-
289
- [class*='pr-u-animated'] {
290
- @extend %animatedAll;
291
- }
292
-
293
- .pr-u-animated {
294
- @extend %animated;
295
- }
296
-
297
- .pr-u-mask {
298
- @extend %mask;
299
- }
300
-
301
- .pr-u-clearfix {
302
- @extend %clearfix;
303
- }
304
-
305
- // clear is deprecated
306
- .pr-u-clearBoth,
307
- .pr-u-clear {
308
- @extend %clearBoth;
309
- }
310
-
311
- // clearLeft is deprecated
312
- .pr-u-clearInlineStart,
313
- .pr-u-clearLeft {
314
- @extend %clearInlineStart;
315
- }
316
-
317
- // clearRight is deprecated
318
- .pr-u-clearInlineEnd,
319
- .pr-u-clearRight {
320
- @extend %clearInlineEnd;
321
- }
322
153
 
323
- .pr-u-listReset {
324
- @extend %listReset;
325
- }
154
+ %descriptionListReset {
155
+ @include reset.list($list: 'dl', $suffix: '!important');
156
+ }
326
157
 
327
- .pr-u-descriptionListReset {
328
- @extend %descriptionListReset;
329
- }
158
+ %summaryReset {
159
+ @include reset.summary('!important');
160
+ }
330
161
 
331
- .pr-u-summaryReset {
332
- @extend %summaryReset;
333
- }
162
+ %buttonReset {
163
+ @include reset.button('!important');
164
+ }
334
165
 
335
- .pr-u-buttonReset {
336
- @extend %buttonReset;
337
- }
166
+ %ellipsis {
167
+ @include text.ellipsis('!important');
168
+ }
338
169
 
339
- .pr-u-ellipsis {
340
- @extend %ellipsis;
341
- }
170
+ %h1 {
171
+ font: var(--pr-t-font-heading-1);
172
+ color: var(--pr-t-color-text-heading);
342
173
 
343
- .pr-u-h1 {
344
- @extend %h1;
345
- }
174
+ &.mod-XXXL {
175
+ // Deprecated
176
+ @include title.XXXL;
177
+ }
178
+ }
346
179
 
347
- .pr-u-h2 {
348
- @extend %h2;
349
- }
180
+ %h2 {
181
+ font: var(--pr-t-font-heading-2);
182
+ color: var(--pr-t-color-text-heading);
183
+ }
350
184
 
351
- .pr-u-h3 {
352
- @extend %h3;
353
- }
185
+ %h3 {
186
+ font: var(--pr-t-font-heading-3);
187
+ color: var(--pr-t-color-text-heading);
188
+ }
354
189
 
355
- .pr-u-h4 {
356
- @extend %h4;
357
- }
190
+ %h4 {
191
+ font: var(--pr-t-font-heading-4);
192
+ color: var(--pr-t-color-text-heading);
193
+ }
358
194
 
359
- .pr-u-h5 {
360
- // Deprecated
361
- @extend %h5;
362
- }
195
+ %h5 {
196
+ @include title.h5;
197
+ }
363
198
 
364
- .pr-u-h6 {
365
- // Deprecated
366
- @extend %h6;
367
- }
199
+ %h6 {
200
+ @include title.h6;
201
+ }
368
202
 
369
- .pr-u-bodyM {
370
- @extend %bodyM;
371
- }
203
+ %bodyM {
204
+ font: var(--pr-t-font-body-M);
205
+ }
372
206
 
373
- .pr-u-bodyS {
374
- @extend %bodyS;
375
- }
207
+ %bodyS {
208
+ font: var(--pr-t-font-body-S);
209
+ }
376
210
 
377
- .pr-u-bodyXS {
378
- @extend %bodyXS;
379
- }
211
+ %bodyXS {
212
+ font: var(--pr-t-font-body-XS);
213
+ }
380
214
 
381
- // textLeft is deprecated
382
- .pr-u-textLeft {
383
- @extend %textLeft;
384
- }
215
+ %textLeft {
216
+ text-align: start !important;
217
+ }
385
218
 
386
- // textRight is deprecated
387
- .pr-u-textRight {
388
- @extend %textRight;
389
- }
219
+ %textRight {
220
+ text-align: end !important;
221
+ }
390
222
 
391
- // textCenter is deprecated
392
- .pr-u-textCenter {
393
- @extend %textCenter;
394
- }
223
+ %textCenter {
224
+ text-align: center !important;
225
+ }
395
226
 
396
- .pr-u-textLight {
397
- @extend %textLight;
398
- }
227
+ %textLight {
228
+ color: var(--palettes-neutral-600) !important;
229
+ }
399
230
 
400
- .pr-u-textPlaceholder {
401
- @extend %textPlaceholder;
402
- }
231
+ %textPlaceholder {
232
+ color: var(--palettes-neutral-400) !important;
233
+ }
403
234
 
404
- .pr-u-textDefault {
405
- @extend %textDefault;
406
- }
235
+ %textDefault {
236
+ color: var(--palettes-neutral-700) !important;
237
+ }
407
238
 
408
- .pr-u-fontWeightRegular {
409
- @extend %fontWeightRegular;
410
- }
239
+ %fontWeightRegular {
240
+ font-weight: var(--pr-t-font-fontWeight-regular) !important;
241
+ }
411
242
 
412
- .pr-u-fontWeightSemiBold {
413
- @extend %fontWeightSemiBold;
414
- }
243
+ %fontWeightSemiBold {
244
+ font-weight: var(--pr-t-font-fontWeight-semibold) !important;
245
+ }
415
246
 
416
- .pr-u-noSpinButtons {
417
- @extend %noSpinButtons;
418
- }
247
+ %noSpinButtons {
248
+ &::-webkit-outer-spin-button,
249
+ &::-webkit-inner-spin-button {
250
+ appearance: none !important;
251
+ }
419
252
 
420
- .pr-u-fontFamily {
421
- @extend %fontFamily;
422
- }
253
+ &[type='number'] {
254
+ appearance: textfield !important;
255
+ }
256
+ }
423
257
 
424
- .pr-u-fontFamilyCursive {
425
- @extend %fontFamilyCursive;
426
- }
258
+ %fontFamily {
259
+ font-family: var(--pr-t-font-family) !important;
260
+ }
427
261
 
428
- .pr-u-fontFamilyBrand {
429
- @extend %fontFamilyBrand;
430
- }
262
+ %fontFamilyCursive {
263
+ font-family: var(--pr-t-font-family-cursive) !important;
264
+ }
431
265
 
432
- .pr-u-focusVisible {
433
- @extend %focusVisible;
434
- }
266
+ %fontFamilyBrand {
267
+ font-family: var(--pr-t-font-family-brand) !important;
268
+ }
435
269
 
436
- @include core.classes('float', core.$float);
437
- @include core.classes('vertical-align', core.$verticalAlign);
438
- @include core.classes('white-space', core.$whiteSpace);
439
- @include core.classes('display', core.$displays);
440
- @include core.classes('flex-direction', core.$direction);
441
- @include core.classes('flex-wrap', core.$wrap);
442
- @include core.classes('justify-content', core.$justify);
443
- @include core.classes('align-items', core.$align);
444
- @include core.classes('flex-grow', core.$flex);
445
- @include core.classes('flex-shrink', core.$flex);
446
- @include core.classes('flex-basis', core.$basis);
447
- @include core.classes('order', core.$order);
448
- @include core.classes('align-self', core.$align);
449
- @include core.classes('position', core.$position);
450
-
451
- @include core.classes('width', core.$contents);
452
- @include core.classes('height', core.$contents);
453
- @include core.classes('min-width', '0');
454
- @include core.classes('min-height', '0');
455
-
456
- @include core.classes('inline-size', core.$contents);
457
- @include core.classes('block-size', core.$contents);
458
- @include core.classes('min-inline-size', '0');
459
- @include core.classes('min-block-size', '0');
460
- @include core.classes('max-inline-size', core.$contents);
461
-
462
- @include core.classes('visibility', core.$visibility);
463
- @include core.classes('font-weight', core.$fontWeight);
464
- @include core.classes('font-style', core.$fontStyle);
465
- @include core.classes('pointer-events', core.$pointerEvents);
466
- @include core.classes('cursor', core.$cursor);
467
- @include core.classes('text-align', core.$textAlign);
468
- @include core.classes('text-decoration', core.$decoration);
469
- @include core.classes('overflow', core.$overflow);
470
-
471
- @media (prefers-reduced-motion: no-preference) {
472
- @include core.classes('scroll-behavior', core.$scrollBehavior);
473
- }
270
+ %focusVisible {
271
+ &:focus-visible {
272
+ @include a11y.focusVisible;
273
+ }
274
+ }
474
275
 
475
- @media only print {
476
- @include core.classes('display', core.$displays, $prefix: 'onlyPrint');
477
- }
478
276
 
479
- %displayNone {
480
- display: none;
481
- }
482
277
 
483
- @each $display in core.$displays {
484
- @if $display != 'none' {
485
- .pr-u-onlyPrintDisplay#{transform.capitalize(transform.camelize($display))} {
486
- @extend %displayNone;
278
+ [data-content-before] {
279
+ &::before {
280
+ content: attr(data-content-before);
487
281
  }
488
282
  }
489
- }
490
283
 
491
- %inset0 {
492
- inset: 0 !important;
493
- }
494
-
495
- @each $direction in core.$boxDirection {
496
- @if $direction == '' {
497
- // insetReset is deprecated
498
- .pr-u-inset0,
499
- .pr-u-insetReset {
500
- @extend %inset0;
501
- }
502
- } @else if $direction == 'top' or $direction == 'bottom' or $direction == 'left' or $direction == 'right' {
503
- // Reset is deprecated
504
- .pr-u-#{$direction}0,
505
- .pr-u-#{$direction}Reset {
506
- #{$direction}: 0 !important;
507
- }
508
- } @else {
509
- @each $boxModel in core.$boxModel {
510
- @if $boxModel != 'border' {
511
- .pr-u-#{$boxModel}#{transform.capitalize($direction)}0 {
512
- #{$boxModel}-#{$direction}: 0 !important;
513
- }
514
- }
284
+ [data-content-after] {
285
+ &::after {
286
+ content: attr(data-content-after);
515
287
  }
516
288
  }
517
- }
518
289
 
519
- @include core.spacings;
520
- @include core.sizes;
521
- @include core.borderRadius;
522
- @include core.palettes;
523
- @include core.borderRadiusTokens;
524
-
525
- // Deprecated .u- utilities
526
- // Delete when all utilities are prefixed in .pr-u-
527
- @if config.$deprecatedUtilityPrefix {
528
- [class*='u-animated'] {
290
+ [class*='pr-u-animated'] {
529
291
  @extend %animatedAll;
530
292
  }
531
293
 
532
- .u-animated {
294
+ .pr-u-animated {
533
295
  @extend %animated;
534
296
  }
535
297
 
536
- .u-mask {
298
+ .pr-u-mask {
537
299
  @extend %mask;
538
300
  }
539
301
 
540
- .u-clearfix {
302
+ .pr-u-clearfix {
541
303
  @extend %clearfix;
542
304
  }
543
305
 
544
306
  // clear is deprecated
545
- .u-clearBoth,
546
- .u-clear {
307
+ .pr-u-clearBoth,
308
+ .pr-u-clear {
547
309
  @extend %clearBoth;
548
310
  }
549
311
 
550
312
  // clearLeft is deprecated
551
- .u-clearInlineStart,
552
- .u-clearLeft {
313
+ .pr-u-clearInlineStart,
314
+ .pr-u-clearLeft {
553
315
  @extend %clearInlineStart;
554
316
  }
555
317
 
556
318
  // clearRight is deprecated
557
- .u-clearInlineEnd,
558
- .u-clearRight {
319
+ .pr-u-clearInlineEnd,
320
+ .pr-u-clearRight {
559
321
  @extend %clearInlineEnd;
560
322
  }
561
323
 
562
- .u-listReset {
324
+ .pr-u-listReset {
563
325
  @extend %listReset;
564
326
  }
565
327
 
566
- .u-descriptionListReset {
328
+ .pr-u-descriptionListReset {
567
329
  @extend %descriptionListReset;
568
330
  }
569
331
 
570
- .u-summaryReset {
332
+ .pr-u-summaryReset {
571
333
  @extend %summaryReset;
572
334
  }
573
335
 
574
- .u-buttonReset {
336
+ .pr-u-buttonReset {
575
337
  @extend %buttonReset;
576
338
  }
577
339
 
578
- .u-ellipsis {
340
+ .pr-u-ellipsis {
579
341
  @extend %ellipsis;
580
342
  }
581
343
 
582
- .u-h1 {
344
+ .pr-u-h1 {
583
345
  @extend %h1;
584
346
  }
585
347
 
586
- .u-h2 {
348
+ .pr-u-h2 {
587
349
  @extend %h2;
588
350
  }
589
351
 
590
- .u-h3 {
352
+ .pr-u-h3 {
591
353
  @extend %h3;
592
354
  }
593
355
 
594
- .u-h4 {
356
+ .pr-u-h4 {
595
357
  @extend %h4;
596
358
  }
597
359
 
598
- .u-h5 {
360
+ .pr-u-h5 {
599
361
  // Deprecated
600
362
  @extend %h5;
601
363
  }
602
364
 
603
- .u-h6 {
365
+ .pr-u-h6 {
604
366
  // Deprecated
605
367
  @extend %h6;
606
368
  }
607
369
 
608
- .u-bodyM {
370
+ .pr-u-bodyM {
609
371
  @extend %bodyM;
610
372
  }
611
373
 
612
- .u-bodyS {
374
+ .pr-u-bodyS {
613
375
  @extend %bodyS;
614
376
  }
615
377
 
616
- .u-bodyXS {
378
+ .pr-u-bodyXS {
617
379
  @extend %bodyXS;
618
380
  }
619
381
 
620
382
  // textLeft is deprecated
621
- .u-textLeft {
383
+ .pr-u-textLeft {
622
384
  @extend %textLeft;
623
385
  }
624
386
 
625
387
  // textRight is deprecated
626
- .u-textRight {
388
+ .pr-u-textRight {
627
389
  @extend %textRight;
628
390
  }
629
391
 
630
392
  // textCenter is deprecated
631
- .u-textCenter {
393
+ .pr-u-textCenter {
632
394
  @extend %textCenter;
633
395
  }
634
396
 
635
- .u-textLight {
397
+ .pr-u-textLight {
636
398
  @extend %textLight;
637
399
  }
638
400
 
639
- .u-textPlaceholder {
401
+ .pr-u-textPlaceholder {
640
402
  @extend %textPlaceholder;
641
403
  }
642
404
 
643
- .u-textDefault {
405
+ .pr-u-textDefault {
644
406
  @extend %textDefault;
645
407
  }
646
408
 
647
- .u-fontWeightRegular {
409
+ .pr-u-fontWeightRegular {
648
410
  @extend %fontWeightRegular;
649
411
  }
650
412
 
651
- .u-fontWeightSemiBold {
413
+ .pr-u-fontWeightSemiBold {
652
414
  @extend %fontWeightSemiBold;
653
415
  }
654
416
 
655
- .u-noSpinButtons {
417
+ .pr-u-noSpinButtons {
656
418
  @extend %noSpinButtons;
657
419
  }
658
420
 
659
- .u-fontFamily {
421
+ .pr-u-fontFamily {
660
422
  @extend %fontFamily;
661
423
  }
662
424
 
663
- .u-fontFamilyCursive {
425
+ .pr-u-fontFamilyCursive {
664
426
  @extend %fontFamilyCursive;
665
427
  }
666
428
 
667
- .u-fontFamilyBrand {
429
+ .pr-u-fontFamilyBrand {
668
430
  @extend %fontFamilyBrand;
669
431
  }
670
432
 
433
+ .pr-u-focusVisible {
434
+ @extend %focusVisible;
435
+ }
436
+
437
+ @include core.classes('float', core.$float);
438
+ @include core.classes('vertical-align', core.$verticalAlign);
439
+ @include core.classes('white-space', core.$whiteSpace);
440
+ @include core.classes('display', core.$displays);
441
+ @include core.classes('flex-direction', core.$direction);
442
+ @include core.classes('flex-wrap', core.$wrap);
443
+ @include core.classes('justify-content', core.$justify);
444
+ @include core.classes('align-items', core.$align);
445
+ @include core.classes('flex-grow', core.$flex);
446
+ @include core.classes('flex-shrink', core.$flex);
447
+ @include core.classes('flex-basis', core.$basis);
448
+ @include core.classes('order', core.$order);
449
+ @include core.classes('align-self', core.$align);
450
+ @include core.classes('position', core.$position);
451
+
452
+ @include core.classes('width', core.$contents);
453
+ @include core.classes('height', core.$contents);
454
+ @include core.classes('min-width', '0');
455
+ @include core.classes('min-height', '0');
456
+
457
+ @include core.classes('inline-size', core.$contents);
458
+ @include core.classes('block-size', core.$contents);
459
+ @include core.classes('min-inline-size', '0');
460
+ @include core.classes('min-block-size', '0');
461
+ @include core.classes('max-inline-size', core.$contents);
462
+
463
+ @include core.classes('visibility', core.$visibility);
464
+ @include core.classes('font-weight', core.$fontWeight);
465
+ @include core.classes('font-style', core.$fontStyle);
466
+ @include core.classes('pointer-events', core.$pointerEvents);
467
+ @include core.classes('cursor', core.$cursor);
468
+ @include core.classes('text-align', core.$textAlign);
469
+ @include core.classes('text-decoration', core.$decoration);
470
+ @include core.classes('overflow', core.$overflow);
471
+
472
+ @media (prefers-reduced-motion: no-preference) {
473
+ @include core.classes('scroll-behavior', core.$scrollBehavior);
474
+ }
475
+
476
+ @media only print {
477
+ @include core.classes('display', core.$displays, $prefix: 'onlyPrint');
478
+ }
479
+
480
+ %displayNone {
481
+ display: none;
482
+ }
671
483
 
672
484
  @each $display in core.$displays {
673
485
  @if $display != 'none' {
674
- .u-onlyPrintDisplay#{transform.capitalize(transform.camelize($display))} {
486
+ .pr-u-onlyPrintDisplay#{transform.capitalize(transform.camelize($display))} {
675
487
  @extend %displayNone;
676
488
  }
677
489
  }
678
490
  }
679
491
 
492
+ %inset0 {
493
+ inset: 0 !important;
494
+ }
495
+
680
496
  @each $direction in core.$boxDirection {
681
497
  @if $direction == '' {
682
498
  // insetReset is deprecated
683
- .u-inset0,
684
- .u-insetReset {
499
+ .pr-u-inset0,
500
+ .pr-u-insetReset {
685
501
  @extend %inset0;
686
502
  }
687
503
  } @else if $direction == 'top' or $direction == 'bottom' or $direction == 'left' or $direction == 'right' {
688
504
  // Reset is deprecated
689
- .u-#{$direction}0,
690
- .u-#{$direction}Reset {
505
+ .pr-u-#{$direction}0,
506
+ .pr-u-#{$direction}Reset {
691
507
  #{$direction}: 0 !important;
692
508
  }
693
509
  } @else {
694
510
  @each $boxModel in core.$boxModel {
695
511
  @if $boxModel != 'border' {
696
- .u-#{$boxModel}#{transform.capitalize($direction)}0 {
512
+ .pr-u-#{$boxModel}#{transform.capitalize($direction)}0 {
697
513
  #{$boxModel}-#{$direction}: 0 !important;
698
514
  }
699
515
  }
700
516
  }
701
517
  }
702
518
  }
519
+
520
+ @include core.spacings;
521
+ @include core.sizes;
522
+ @include core.borderRadius;
523
+ @include core.palettes;
524
+ @include core.borderRadiusTokens;
525
+
526
+ // Deprecated .u- utilities
527
+ // Delete when all utilities are prefixed in .pr-u-
528
+ @if config.$deprecatedUtilityPrefix {
529
+ [class*='u-animated'] {
530
+ @extend %animatedAll;
531
+ }
532
+
533
+ .u-animated {
534
+ @extend %animated;
535
+ }
536
+
537
+ .u-mask {
538
+ @extend %mask;
539
+ }
540
+
541
+ .u-clearfix {
542
+ @extend %clearfix;
543
+ }
544
+
545
+ // clear is deprecated
546
+ .u-clearBoth,
547
+ .u-clear {
548
+ @extend %clearBoth;
549
+ }
550
+
551
+ // clearLeft is deprecated
552
+ .u-clearInlineStart,
553
+ .u-clearLeft {
554
+ @extend %clearInlineStart;
555
+ }
556
+
557
+ // clearRight is deprecated
558
+ .u-clearInlineEnd,
559
+ .u-clearRight {
560
+ @extend %clearInlineEnd;
561
+ }
562
+
563
+ .u-listReset {
564
+ @extend %listReset;
565
+ }
566
+
567
+ .u-descriptionListReset {
568
+ @extend %descriptionListReset;
569
+ }
570
+
571
+ .u-summaryReset {
572
+ @extend %summaryReset;
573
+ }
574
+
575
+ .u-buttonReset {
576
+ @extend %buttonReset;
577
+ }
578
+
579
+ .u-ellipsis {
580
+ @extend %ellipsis;
581
+ }
582
+
583
+ .u-h1 {
584
+ @extend %h1;
585
+ }
586
+
587
+ .u-h2 {
588
+ @extend %h2;
589
+ }
590
+
591
+ .u-h3 {
592
+ @extend %h3;
593
+ }
594
+
595
+ .u-h4 {
596
+ @extend %h4;
597
+ }
598
+
599
+ .u-h5 {
600
+ // Deprecated
601
+ @extend %h5;
602
+ }
603
+
604
+ .u-h6 {
605
+ // Deprecated
606
+ @extend %h6;
607
+ }
608
+
609
+ .u-bodyM {
610
+ @extend %bodyM;
611
+ }
612
+
613
+ .u-bodyS {
614
+ @extend %bodyS;
615
+ }
616
+
617
+ .u-bodyXS {
618
+ @extend %bodyXS;
619
+ }
620
+
621
+ // textLeft is deprecated
622
+ .u-textLeft {
623
+ @extend %textLeft;
624
+ }
625
+
626
+ // textRight is deprecated
627
+ .u-textRight {
628
+ @extend %textRight;
629
+ }
630
+
631
+ // textCenter is deprecated
632
+ .u-textCenter {
633
+ @extend %textCenter;
634
+ }
635
+
636
+ .u-textLight {
637
+ @extend %textLight;
638
+ }
639
+
640
+ .u-textPlaceholder {
641
+ @extend %textPlaceholder;
642
+ }
643
+
644
+ .u-textDefault {
645
+ @extend %textDefault;
646
+ }
647
+
648
+ .u-fontWeightRegular {
649
+ @extend %fontWeightRegular;
650
+ }
651
+
652
+ .u-fontWeightSemiBold {
653
+ @extend %fontWeightSemiBold;
654
+ }
655
+
656
+ .u-noSpinButtons {
657
+ @extend %noSpinButtons;
658
+ }
659
+
660
+ .u-fontFamily {
661
+ @extend %fontFamily;
662
+ }
663
+
664
+ .u-fontFamilyCursive {
665
+ @extend %fontFamilyCursive;
666
+ }
667
+
668
+ .u-fontFamilyBrand {
669
+ @extend %fontFamilyBrand;
670
+ }
671
+
672
+
673
+ @each $display in core.$displays {
674
+ @if $display != 'none' {
675
+ .u-onlyPrintDisplay#{transform.capitalize(transform.camelize($display))} {
676
+ @extend %displayNone;
677
+ }
678
+ }
679
+ }
680
+
681
+ @each $direction in core.$boxDirection {
682
+ @if $direction == '' {
683
+ // insetReset is deprecated
684
+ .u-inset0,
685
+ .u-insetReset {
686
+ @extend %inset0;
687
+ }
688
+ } @else if $direction == 'top' or $direction == 'bottom' or $direction == 'left' or $direction == 'right' {
689
+ // Reset is deprecated
690
+ .u-#{$direction}0,
691
+ .u-#{$direction}Reset {
692
+ #{$direction}: 0 !important;
693
+ }
694
+ } @else {
695
+ @each $boxModel in core.$boxModel {
696
+ @if $boxModel != 'border' {
697
+ .u-#{$boxModel}#{transform.capitalize($direction)}0 {
698
+ #{$boxModel}-#{$direction}: 0 !important;
699
+ }
700
+ }
701
+ }
702
+ }
703
+ }
704
+ }
703
705
  }