@react-md/core 1.0.0-next.6 → 1.0.0-next.8
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +12 -0
- package/coverage/clover.xml +264 -389
- package/coverage/coverage-final.json +2 -3
- package/coverage/lcov-report/MenuItemCheckbox.tsx.html +223 -0
- package/coverage/lcov-report/MenuItemInputToggle.tsx.html +178 -232
- package/coverage/lcov-report/MenuItemRadio.tsx.html +436 -0
- package/coverage/lcov-report/SrOnly.tsx.html +328 -0
- package/coverage/lcov-report/Typography.tsx.html +1027 -0
- package/coverage/lcov-report/index.html +15 -30
- package/coverage/lcov-report/menuItemInputToggleStyles.ts.html +319 -0
- package/coverage/lcov.info +304 -436
- package/dist/_core.scss +49 -43
- package/dist/badge/_badge.scss +23 -19
- package/dist/form/MenuItemInputToggle.d.ts +2 -15
- package/dist/form/MenuItemInputToggle.js +26 -37
- package/dist/form/MenuItemInputToggle.js.map +1 -1
- package/dist/form/_form.scss +109 -87
- package/dist/form/menuItemInputToggleStyles.d.ts +39 -0
- package/dist/form/menuItemInputToggleStyles.js +31 -0
- package/dist/form/menuItemInputToggleStyles.js.map +1 -0
- package/dist/icon/_icon.scss +7 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interaction/_interaction.scss +56 -44
- package/dist/list/types.d.ts +10 -1
- package/dist/list/types.js.map +1 -1
- package/dist/menu/_menu.scss +1 -0
- package/dist/theme/_theme.scss +192 -34
- package/dist/typography/SrOnly.d.ts +3 -3
- package/dist/typography/SrOnly.js +4 -4
- package/dist/typography/SrOnly.js.map +1 -1
- package/dist/typography/Typography.d.ts +19 -19
- package/dist/typography/Typography.js +19 -19
- package/dist/typography/Typography.js.map +1 -1
- package/dist/typography/_typography.scss +65 -25
- package/package.json +11 -11
- package/src/_core.scss +49 -43
- package/src/badge/_badge.scss +23 -19
- package/src/button/__tests__/__snapshots__/Button.tsx.snap +1 -1
- package/src/form/MenuItemInputToggle.tsx +46 -64
- package/src/form/__tests__/MenuItemCheckbox.tsx +53 -0
- package/src/form/__tests__/MenuItemRadio.tsx +53 -0
- package/src/form/__tests__/__snapshots__/FileInput.tsx.snap +23 -23
- package/src/form/__tests__/__snapshots__/MenuItemCheckbox.tsx.snap +96 -0
- package/src/form/__tests__/__snapshots__/MenuItemRadio.tsx.snap +96 -0
- package/src/form/_form.scss +109 -87
- package/src/form/menuItemInputToggleStyles.ts +78 -0
- package/src/icon/_icon.scss +7 -5
- package/src/index.ts +1 -0
- package/src/interaction/_interaction.scss +56 -44
- package/src/list/types.ts +12 -1
- package/src/menu/_menu.scss +1 -0
- package/src/theme/_theme.scss +192 -34
- package/src/typography/SrOnly.tsx +9 -9
- package/src/typography/Typography.tsx +19 -19
- package/src/typography/__tests__/__snapshots__/SrOnly.tsx.snap +5 -5
- package/src/typography/_typography.scss +65 -25
|
@@ -12,7 +12,7 @@ exports[`FileInput should apply the correct styling, HTMLAttributes, and allow a
|
|
|
12
12
|
file_upload
|
|
13
13
|
</span>
|
|
14
14
|
<span
|
|
15
|
-
class="rmd-
|
|
15
|
+
class="rmd-sr-only"
|
|
16
16
|
>
|
|
17
17
|
Upload
|
|
18
18
|
</span>
|
|
@@ -37,7 +37,7 @@ exports[`FileInput should apply the correct styling, HTMLAttributes, and allow a
|
|
|
37
37
|
file_upload
|
|
38
38
|
</span>
|
|
39
39
|
<span
|
|
40
|
-
class="rmd-
|
|
40
|
+
class="rmd-sr-only"
|
|
41
41
|
>
|
|
42
42
|
Upload
|
|
43
43
|
</span>
|
|
@@ -63,7 +63,7 @@ exports[`FileInput should render as an icon button unless children are provided
|
|
|
63
63
|
file_upload
|
|
64
64
|
</span>
|
|
65
65
|
<span
|
|
66
|
-
class="rmd-
|
|
66
|
+
class="rmd-sr-only"
|
|
67
67
|
>
|
|
68
68
|
Upload
|
|
69
69
|
</span>
|
|
@@ -87,7 +87,7 @@ exports[`FileInput should render as an icon button unless children are provided
|
|
|
87
87
|
file_upload
|
|
88
88
|
</span>
|
|
89
89
|
<span
|
|
90
|
-
class="rmd-
|
|
90
|
+
class="rmd-sr-only"
|
|
91
91
|
>
|
|
92
92
|
Upload
|
|
93
93
|
</span>
|
|
@@ -165,7 +165,7 @@ exports[`FileInput should support all the button themes 1`] = `
|
|
|
165
165
|
file_upload
|
|
166
166
|
</span>
|
|
167
167
|
<span
|
|
168
|
-
class="rmd-
|
|
168
|
+
class="rmd-sr-only"
|
|
169
169
|
>
|
|
170
170
|
Upload
|
|
171
171
|
</span>
|
|
@@ -189,7 +189,7 @@ exports[`FileInput should support all the button themes 2`] = `
|
|
|
189
189
|
file_upload
|
|
190
190
|
</span>
|
|
191
191
|
<span
|
|
192
|
-
class="rmd-
|
|
192
|
+
class="rmd-sr-only"
|
|
193
193
|
>
|
|
194
194
|
Upload
|
|
195
195
|
</span>
|
|
@@ -213,7 +213,7 @@ exports[`FileInput should support all the button themes 3`] = `
|
|
|
213
213
|
file_upload
|
|
214
214
|
</span>
|
|
215
215
|
<span
|
|
216
|
-
class="rmd-
|
|
216
|
+
class="rmd-sr-only"
|
|
217
217
|
>
|
|
218
218
|
Upload
|
|
219
219
|
</span>
|
|
@@ -237,7 +237,7 @@ exports[`FileInput should support all the button themes 4`] = `
|
|
|
237
237
|
file_upload
|
|
238
238
|
</span>
|
|
239
239
|
<span
|
|
240
|
-
class="rmd-
|
|
240
|
+
class="rmd-sr-only"
|
|
241
241
|
>
|
|
242
242
|
Upload
|
|
243
243
|
</span>
|
|
@@ -261,7 +261,7 @@ exports[`FileInput should support all the button themes 5`] = `
|
|
|
261
261
|
file_upload
|
|
262
262
|
</span>
|
|
263
263
|
<span
|
|
264
|
-
class="rmd-
|
|
264
|
+
class="rmd-sr-only"
|
|
265
265
|
>
|
|
266
266
|
Upload
|
|
267
267
|
</span>
|
|
@@ -285,7 +285,7 @@ exports[`FileInput should support all the button themes 6`] = `
|
|
|
285
285
|
file_upload
|
|
286
286
|
</span>
|
|
287
287
|
<span
|
|
288
|
-
class="rmd-
|
|
288
|
+
class="rmd-sr-only"
|
|
289
289
|
>
|
|
290
290
|
Upload
|
|
291
291
|
</span>
|
|
@@ -309,7 +309,7 @@ exports[`FileInput should support all the button themes 7`] = `
|
|
|
309
309
|
file_upload
|
|
310
310
|
</span>
|
|
311
311
|
<span
|
|
312
|
-
class="rmd-
|
|
312
|
+
class="rmd-sr-only"
|
|
313
313
|
>
|
|
314
314
|
Upload
|
|
315
315
|
</span>
|
|
@@ -333,7 +333,7 @@ exports[`FileInput should support all the button themes 8`] = `
|
|
|
333
333
|
file_upload
|
|
334
334
|
</span>
|
|
335
335
|
<span
|
|
336
|
-
class="rmd-
|
|
336
|
+
class="rmd-sr-only"
|
|
337
337
|
>
|
|
338
338
|
Upload
|
|
339
339
|
</span>
|
|
@@ -357,7 +357,7 @@ exports[`FileInput should support all the button themes 9`] = `
|
|
|
357
357
|
file_upload
|
|
358
358
|
</span>
|
|
359
359
|
<span
|
|
360
|
-
class="rmd-
|
|
360
|
+
class="rmd-sr-only"
|
|
361
361
|
>
|
|
362
362
|
Upload
|
|
363
363
|
</span>
|
|
@@ -381,7 +381,7 @@ exports[`FileInput should support all the button themes 10`] = `
|
|
|
381
381
|
file_upload
|
|
382
382
|
</span>
|
|
383
383
|
<span
|
|
384
|
-
class="rmd-
|
|
384
|
+
class="rmd-sr-only"
|
|
385
385
|
>
|
|
386
386
|
Upload
|
|
387
387
|
</span>
|
|
@@ -405,7 +405,7 @@ exports[`FileInput should support all the button themes 11`] = `
|
|
|
405
405
|
file_upload
|
|
406
406
|
</span>
|
|
407
407
|
<span
|
|
408
|
-
class="rmd-
|
|
408
|
+
class="rmd-sr-only"
|
|
409
409
|
>
|
|
410
410
|
Upload
|
|
411
411
|
</span>
|
|
@@ -429,7 +429,7 @@ exports[`FileInput should support all the button themes 12`] = `
|
|
|
429
429
|
file_upload
|
|
430
430
|
</span>
|
|
431
431
|
<span
|
|
432
|
-
class="rmd-
|
|
432
|
+
class="rmd-sr-only"
|
|
433
433
|
>
|
|
434
434
|
Upload
|
|
435
435
|
</span>
|
|
@@ -453,7 +453,7 @@ exports[`FileInput should support all the button themes 13`] = `
|
|
|
453
453
|
file_upload
|
|
454
454
|
</span>
|
|
455
455
|
<span
|
|
456
|
-
class="rmd-
|
|
456
|
+
class="rmd-sr-only"
|
|
457
457
|
>
|
|
458
458
|
Upload
|
|
459
459
|
</span>
|
|
@@ -477,7 +477,7 @@ exports[`FileInput should support all the button themes 14`] = `
|
|
|
477
477
|
file_upload
|
|
478
478
|
</span>
|
|
479
479
|
<span
|
|
480
|
-
class="rmd-
|
|
480
|
+
class="rmd-sr-only"
|
|
481
481
|
>
|
|
482
482
|
Upload
|
|
483
483
|
</span>
|
|
@@ -501,7 +501,7 @@ exports[`FileInput should support all the button themes 15`] = `
|
|
|
501
501
|
file_upload
|
|
502
502
|
</span>
|
|
503
503
|
<span
|
|
504
|
-
class="rmd-
|
|
504
|
+
class="rmd-sr-only"
|
|
505
505
|
>
|
|
506
506
|
Upload
|
|
507
507
|
</span>
|
|
@@ -525,7 +525,7 @@ exports[`FileInput should support all the button themes 16`] = `
|
|
|
525
525
|
file_upload
|
|
526
526
|
</span>
|
|
527
527
|
<span
|
|
528
|
-
class="rmd-
|
|
528
|
+
class="rmd-sr-only"
|
|
529
529
|
>
|
|
530
530
|
Upload
|
|
531
531
|
</span>
|
|
@@ -549,7 +549,7 @@ exports[`FileInput should support all the button themes 17`] = `
|
|
|
549
549
|
file_upload
|
|
550
550
|
</span>
|
|
551
551
|
<span
|
|
552
|
-
class="rmd-
|
|
552
|
+
class="rmd-sr-only"
|
|
553
553
|
>
|
|
554
554
|
Upload
|
|
555
555
|
</span>
|
|
@@ -573,7 +573,7 @@ exports[`FileInput should support all the button themes 18`] = `
|
|
|
573
573
|
file_upload
|
|
574
574
|
</span>
|
|
575
575
|
<span
|
|
576
|
-
class="rmd-
|
|
576
|
+
class="rmd-sr-only"
|
|
577
577
|
>
|
|
578
578
|
Upload
|
|
579
579
|
</span>
|
|
@@ -598,7 +598,7 @@ exports[`FileInput should update the default SrOnly text to be phoneOnly when th
|
|
|
598
598
|
file_upload
|
|
599
599
|
</span>
|
|
600
600
|
<span
|
|
601
|
-
class="rmd-
|
|
601
|
+
class="rmd-phone-sr-only"
|
|
602
602
|
>
|
|
603
603
|
Upload
|
|
604
604
|
</span>
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`MenuItemCheckbox should allow for a custom unchecked and checked icon 1`] = `
|
|
4
|
+
<li
|
|
5
|
+
aria-checked="false"
|
|
6
|
+
class="rmd-list-item rmd-list-item--medium rmd-interaction-surface rmd-checkbox-menu-item rmd-menu-item-input-toggle"
|
|
7
|
+
id="menu-item-:r1:"
|
|
8
|
+
role="menuitemcheckbox"
|
|
9
|
+
tabindex="-1"
|
|
10
|
+
>
|
|
11
|
+
<span
|
|
12
|
+
class="rmd-list-item__text"
|
|
13
|
+
>
|
|
14
|
+
Checkbox
|
|
15
|
+
</span>
|
|
16
|
+
<span
|
|
17
|
+
class="rmd-checkbox rmd-input-toggle rmd-icon--after rmd-list-item__addon rmd-menu-item-input-toggle__icon"
|
|
18
|
+
/>
|
|
19
|
+
</li>
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
exports[`MenuItemCheckbox should allow for a custom unchecked and checked icon 2`] = `
|
|
23
|
+
<li
|
|
24
|
+
aria-checked="true"
|
|
25
|
+
class="rmd-list-item rmd-list-item--medium rmd-interaction-surface rmd-checkbox-menu-item rmd-menu-item-input-toggle"
|
|
26
|
+
id="menu-item-:r1:"
|
|
27
|
+
role="menuitemcheckbox"
|
|
28
|
+
tabindex="-1"
|
|
29
|
+
>
|
|
30
|
+
<span
|
|
31
|
+
class="rmd-list-item__text"
|
|
32
|
+
>
|
|
33
|
+
Checkbox
|
|
34
|
+
</span>
|
|
35
|
+
<span
|
|
36
|
+
class="rmd-checkbox rmd-input-toggle rmd-input-toggle--active rmd-icon--after rmd-list-item__addon rmd-menu-item-input-toggle__icon"
|
|
37
|
+
>
|
|
38
|
+
<span
|
|
39
|
+
data-testid="checked"
|
|
40
|
+
/>
|
|
41
|
+
</span>
|
|
42
|
+
</li>
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
exports[`MenuItemCheckbox should apply the correct styling, HTMLAttributes, and allow a ref 1`] = `
|
|
46
|
+
<li
|
|
47
|
+
aria-checked="false"
|
|
48
|
+
class="rmd-list-item rmd-list-item--medium rmd-interaction-surface rmd-checkbox-menu-item rmd-menu-item-input-toggle"
|
|
49
|
+
id="menu-item-:r0:"
|
|
50
|
+
role="menuitemcheckbox"
|
|
51
|
+
tabindex="-1"
|
|
52
|
+
>
|
|
53
|
+
<span
|
|
54
|
+
class="rmd-checkbox rmd-input-toggle rmd-icon--before rmd-list-item__addon rmd-list-item__addon--before rmd-menu-item-input-toggle__icon"
|
|
55
|
+
>
|
|
56
|
+
<span
|
|
57
|
+
aria-hidden="true"
|
|
58
|
+
class="rmd-icon rmd-icon--font material-icons"
|
|
59
|
+
>
|
|
60
|
+
check_box_outline_blank
|
|
61
|
+
</span>
|
|
62
|
+
</span>
|
|
63
|
+
<span
|
|
64
|
+
class="rmd-list-item__text"
|
|
65
|
+
>
|
|
66
|
+
Checkbox
|
|
67
|
+
</span>
|
|
68
|
+
</li>
|
|
69
|
+
`;
|
|
70
|
+
|
|
71
|
+
exports[`MenuItemCheckbox should apply the correct styling, HTMLAttributes, and allow a ref 2`] = `
|
|
72
|
+
<li
|
|
73
|
+
aria-checked="false"
|
|
74
|
+
class="rmd-list-item rmd-list-item--medium rmd-interaction-surface rmd-checkbox-menu-item rmd-menu-item-input-toggle custom-class-name"
|
|
75
|
+
id="menu-item-:r0:"
|
|
76
|
+
role="menuitemcheckbox"
|
|
77
|
+
style="color: white;"
|
|
78
|
+
tabindex="-1"
|
|
79
|
+
>
|
|
80
|
+
<span
|
|
81
|
+
class="rmd-checkbox rmd-input-toggle rmd-icon--before rmd-list-item__addon rmd-list-item__addon--before rmd-menu-item-input-toggle__icon"
|
|
82
|
+
>
|
|
83
|
+
<span
|
|
84
|
+
aria-hidden="true"
|
|
85
|
+
class="rmd-icon rmd-icon--font material-icons"
|
|
86
|
+
>
|
|
87
|
+
check_box_outline_blank
|
|
88
|
+
</span>
|
|
89
|
+
</span>
|
|
90
|
+
<span
|
|
91
|
+
class="rmd-list-item__text"
|
|
92
|
+
>
|
|
93
|
+
Checkbox
|
|
94
|
+
</span>
|
|
95
|
+
</li>
|
|
96
|
+
`;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`MenuItemRadio should allow for a custom unchecked and checked icon 1`] = `
|
|
4
|
+
<li
|
|
5
|
+
aria-checked="false"
|
|
6
|
+
class="rmd-list-item rmd-list-item--medium rmd-interaction-surface rmd-radio-menu-item rmd-menu-item-input-toggle"
|
|
7
|
+
id="menu-item-:r1:"
|
|
8
|
+
role="menuitemradio"
|
|
9
|
+
tabindex="-1"
|
|
10
|
+
>
|
|
11
|
+
<span
|
|
12
|
+
class="rmd-list-item__text"
|
|
13
|
+
>
|
|
14
|
+
Radio
|
|
15
|
+
</span>
|
|
16
|
+
<span
|
|
17
|
+
class="rmd-radio rmd-input-toggle rmd-icon--after rmd-list-item__addon rmd-menu-item-input-toggle__icon"
|
|
18
|
+
/>
|
|
19
|
+
</li>
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
exports[`MenuItemRadio should allow for a custom unchecked and checked icon 2`] = `
|
|
23
|
+
<li
|
|
24
|
+
aria-checked="true"
|
|
25
|
+
class="rmd-list-item rmd-list-item--medium rmd-interaction-surface rmd-radio-menu-item rmd-menu-item-input-toggle"
|
|
26
|
+
id="menu-item-:r1:"
|
|
27
|
+
role="menuitemradio"
|
|
28
|
+
tabindex="-1"
|
|
29
|
+
>
|
|
30
|
+
<span
|
|
31
|
+
class="rmd-list-item__text"
|
|
32
|
+
>
|
|
33
|
+
Radio
|
|
34
|
+
</span>
|
|
35
|
+
<span
|
|
36
|
+
class="rmd-radio rmd-input-toggle rmd-input-toggle--active rmd-icon--after rmd-list-item__addon rmd-menu-item-input-toggle__icon"
|
|
37
|
+
>
|
|
38
|
+
<span
|
|
39
|
+
data-testid="checked"
|
|
40
|
+
/>
|
|
41
|
+
</span>
|
|
42
|
+
</li>
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
exports[`MenuItemRadio should apply the correct styling, HTMLAttributes, and allow a ref 1`] = `
|
|
46
|
+
<li
|
|
47
|
+
aria-checked="false"
|
|
48
|
+
class="rmd-list-item rmd-list-item--medium rmd-interaction-surface rmd-radio-menu-item rmd-menu-item-input-toggle"
|
|
49
|
+
id="menu-item-:r0:"
|
|
50
|
+
role="menuitemradio"
|
|
51
|
+
tabindex="-1"
|
|
52
|
+
>
|
|
53
|
+
<span
|
|
54
|
+
class="rmd-radio rmd-input-toggle rmd-icon--before rmd-list-item__addon rmd-list-item__addon--before rmd-menu-item-input-toggle__icon"
|
|
55
|
+
>
|
|
56
|
+
<span
|
|
57
|
+
aria-hidden="true"
|
|
58
|
+
class="rmd-icon rmd-icon--font material-icons"
|
|
59
|
+
>
|
|
60
|
+
radio_button_unchecked
|
|
61
|
+
</span>
|
|
62
|
+
</span>
|
|
63
|
+
<span
|
|
64
|
+
class="rmd-list-item__text"
|
|
65
|
+
>
|
|
66
|
+
Radio
|
|
67
|
+
</span>
|
|
68
|
+
</li>
|
|
69
|
+
`;
|
|
70
|
+
|
|
71
|
+
exports[`MenuItemRadio should apply the correct styling, HTMLAttributes, and allow a ref 2`] = `
|
|
72
|
+
<li
|
|
73
|
+
aria-checked="false"
|
|
74
|
+
class="rmd-list-item rmd-list-item--medium rmd-interaction-surface rmd-radio-menu-item rmd-menu-item-input-toggle custom-class-name"
|
|
75
|
+
id="menu-item-:r0:"
|
|
76
|
+
role="menuitemradio"
|
|
77
|
+
style="color: white;"
|
|
78
|
+
tabindex="-1"
|
|
79
|
+
>
|
|
80
|
+
<span
|
|
81
|
+
class="rmd-radio rmd-input-toggle rmd-icon--before rmd-list-item__addon rmd-list-item__addon--before rmd-menu-item-input-toggle__icon"
|
|
82
|
+
>
|
|
83
|
+
<span
|
|
84
|
+
aria-hidden="true"
|
|
85
|
+
class="rmd-icon rmd-icon--font material-icons"
|
|
86
|
+
>
|
|
87
|
+
radio_button_unchecked
|
|
88
|
+
</span>
|
|
89
|
+
</span>
|
|
90
|
+
<span
|
|
91
|
+
class="rmd-list-item__text"
|
|
92
|
+
>
|
|
93
|
+
Radio
|
|
94
|
+
</span>
|
|
95
|
+
</li>
|
|
96
|
+
`;
|
package/src/form/_form.scss
CHANGED
|
@@ -271,6 +271,7 @@ $variables: (
|
|
|
271
271
|
focus-color,
|
|
272
272
|
addon-top,
|
|
273
273
|
addon-margin-top,
|
|
274
|
+
addon-left-offset,
|
|
274
275
|
label-floating-top,
|
|
275
276
|
label-left-offset,
|
|
276
277
|
label-top-offset,
|
|
@@ -331,10 +332,12 @@ $variables: (
|
|
|
331
332
|
text-field-hover-border-color,
|
|
332
333
|
$text-field-light-hover-border-color
|
|
333
334
|
);
|
|
334
|
-
@
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
335
|
+
@if not $disable-text-field-filled-theme {
|
|
336
|
+
@include set-var(
|
|
337
|
+
text-field-filled-color,
|
|
338
|
+
$text-field-light-filled-background-color
|
|
339
|
+
);
|
|
340
|
+
}
|
|
338
341
|
@if not $disable-switch {
|
|
339
342
|
@include set-var(
|
|
340
343
|
switch-track-background-color,
|
|
@@ -382,10 +385,12 @@ $variables: (
|
|
|
382
385
|
text-field-hover-border-color,
|
|
383
386
|
$text-field-dark-hover-border-color
|
|
384
387
|
);
|
|
385
|
-
@
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
388
|
+
@if not $disable-text-field-filled-theme {
|
|
389
|
+
@include set-var(
|
|
390
|
+
text-field-filled-color,
|
|
391
|
+
$text-field-dark-filled-background-color
|
|
392
|
+
);
|
|
393
|
+
}
|
|
389
394
|
@if not $disable-switch {
|
|
390
395
|
@include set-var(
|
|
391
396
|
switch-track-background-color,
|
|
@@ -615,7 +620,6 @@ $variables: (
|
|
|
615
620
|
@mixin text-field-container-styles($disable-layer: false) {
|
|
616
621
|
@include utils.optional-layer(form, $disable-layer) {
|
|
617
622
|
.rmd-text-field-container {
|
|
618
|
-
@include set-var(label-left-offset, get-var(text-field-padding-left));
|
|
619
623
|
@include use-var(height, text-field-height);
|
|
620
624
|
|
|
621
625
|
align-items: center;
|
|
@@ -684,13 +688,20 @@ $variables: (
|
|
|
684
688
|
text-field-padding-right,
|
|
685
689
|
$text-field-outlined-padding
|
|
686
690
|
);
|
|
687
|
-
@include set-var(label-top-offset, -50%);
|
|
688
|
-
@include set-var(label-active-padding, 0 $label-floating-padding);
|
|
689
|
-
@include set-var(
|
|
690
|
-
label-active-background-color,
|
|
691
|
-
theme.theme-get-var(background-color)
|
|
692
|
-
);
|
|
693
691
|
@include use-var(border-color, text-field-border-color);
|
|
692
|
+
@if not $disable-text-field-addon {
|
|
693
|
+
@include set-var(addon-left-offset, $text-field-outlined-padding);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
@if not $disable-floating-label {
|
|
697
|
+
@include set-var(label-left-offset, $text-field-outlined-padding);
|
|
698
|
+
@include set-var(label-top-offset, -50%);
|
|
699
|
+
@include set-var(label-active-padding, 0 $label-floating-padding);
|
|
700
|
+
@include set-var(
|
|
701
|
+
label-active-background-color,
|
|
702
|
+
theme.theme-get-var(background-color)
|
|
703
|
+
);
|
|
704
|
+
}
|
|
694
705
|
|
|
695
706
|
border-radius: $text-field-border-radius;
|
|
696
707
|
border-style: solid;
|
|
@@ -738,6 +749,17 @@ $variables: (
|
|
|
738
749
|
text-field-padding-right,
|
|
739
750
|
$text-field-filled-padding
|
|
740
751
|
);
|
|
752
|
+
@if not $disable-floating-label {
|
|
753
|
+
@include set-var(
|
|
754
|
+
label-left-offset,
|
|
755
|
+
$text-field-filled-padding + $label-floating-padding
|
|
756
|
+
);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
@if not $disable-text-field-addon {
|
|
760
|
+
@include set-var(addon-left-offset, $text-field-filled-padding);
|
|
761
|
+
}
|
|
762
|
+
|
|
741
763
|
@include use-var(background-color, text-field-filled-color);
|
|
742
764
|
}
|
|
743
765
|
}
|
|
@@ -1196,7 +1218,7 @@ $variables: (
|
|
|
1196
1218
|
// `.rmd-text-field-container` which would prevent these styles from being
|
|
1197
1219
|
// applied
|
|
1198
1220
|
&--before {
|
|
1199
|
-
@include utils.auto-rtl(left, get-var(
|
|
1221
|
+
@include utils.auto-rtl(left, get-var(addon-left-offset));
|
|
1200
1222
|
}
|
|
1201
1223
|
|
|
1202
1224
|
&--after {
|
|
@@ -1989,6 +2011,7 @@ $variables: (
|
|
|
1989
2011
|
@if not $disable-text-field-addon {
|
|
1990
2012
|
@include set-var(addon-top, auto);
|
|
1991
2013
|
@include set-var(addon-margin-top, 0px);
|
|
2014
|
+
@include set-var(addon-left-offset, 0px);
|
|
1992
2015
|
}
|
|
1993
2016
|
|
|
1994
2017
|
@if not $disable-switch {
|
|
@@ -2041,96 +2064,95 @@ $variables: (
|
|
|
2041
2064
|
@mixin styles($disable-layer: false) {
|
|
2042
2065
|
@if not $disable-everything {
|
|
2043
2066
|
@include utils.optional-layer(form, $disable-layer) {
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
@include use-dark-theme;
|
|
2048
|
-
}
|
|
2067
|
+
@include theme.default-system-theme {
|
|
2068
|
+
@include use-dark-theme;
|
|
2069
|
+
}
|
|
2049
2070
|
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2071
|
+
@if not $disable-fieldset {
|
|
2072
|
+
.rmd-fieldset {
|
|
2073
|
+
&--unstyled {
|
|
2074
|
+
border: 0;
|
|
2075
|
+
margin: 0;
|
|
2076
|
+
min-width: 0; // just so it can shrink correctly in flex or grid
|
|
2077
|
+
padding: 0;
|
|
2078
|
+
}
|
|
2058
2079
|
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2080
|
+
&--full-width {
|
|
2081
|
+
flex: 1 1 auto;
|
|
2082
|
+
width: 100%;
|
|
2083
|
+
}
|
|
2062
2084
|
}
|
|
2063
2085
|
}
|
|
2064
|
-
}
|
|
2065
2086
|
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2087
|
+
@if not $disable-label {
|
|
2088
|
+
@include label-styles(true);
|
|
2089
|
+
}
|
|
2069
2090
|
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2091
|
+
@if not $disable-file-input {
|
|
2092
|
+
@include file-input-styles(true);
|
|
2093
|
+
}
|
|
2073
2094
|
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2095
|
+
@if not $disable-message {
|
|
2096
|
+
@include form-message-styles(true);
|
|
2097
|
+
}
|
|
2077
2098
|
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2099
|
+
@if not $_disable-text-field-container {
|
|
2100
|
+
@include text-field-container-styles(true);
|
|
2101
|
+
}
|
|
2081
2102
|
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2103
|
+
@if not
|
|
2104
|
+
$disable-text-field or not
|
|
2105
|
+
$disable-password or not
|
|
2106
|
+
$disable-textarea
|
|
2107
|
+
{
|
|
2108
|
+
@include text-field-styles(true);
|
|
2109
|
+
}
|
|
2089
2110
|
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2111
|
+
@if not $disable-password {
|
|
2112
|
+
@include password-styles(true);
|
|
2113
|
+
}
|
|
2093
2114
|
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2115
|
+
@if not $disable-textarea {
|
|
2116
|
+
@include textarea-container-styles(true);
|
|
2117
|
+
@include textarea-styles(true);
|
|
2118
|
+
}
|
|
2098
2119
|
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2120
|
+
@if not $disable-select {
|
|
2121
|
+
@include select-styles(true);
|
|
2122
|
+
}
|
|
2102
2123
|
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2124
|
+
@if not $disable-option {
|
|
2125
|
+
@include option-styles(true);
|
|
2126
|
+
}
|
|
2106
2127
|
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2128
|
+
@if not $disable-native-select {
|
|
2129
|
+
@include native-select-styles(true);
|
|
2130
|
+
}
|
|
2110
2131
|
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2132
|
+
@if not $disable-text-field-addon {
|
|
2133
|
+
@include text-field-addon-styles(true);
|
|
2134
|
+
}
|
|
2114
2135
|
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2136
|
+
@if not $disable-checkbox or not $disable-radio or not $disable-switch {
|
|
2137
|
+
@include hidden-input-styles(true);
|
|
2138
|
+
@include input-toggle-styles(true);
|
|
2139
|
+
}
|
|
2119
2140
|
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2141
|
+
@if not $disable-switch {
|
|
2142
|
+
@include switch-styles(true);
|
|
2143
|
+
}
|
|
2123
2144
|
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2145
|
+
@if not
|
|
2146
|
+
$disable-menu-item-checkbox or not
|
|
2147
|
+
$disable-menu-item-radio or not
|
|
2148
|
+
$disable-menu-item-switch
|
|
2149
|
+
{
|
|
2150
|
+
@include menu-item-input-toggle-styles(true);
|
|
2151
|
+
}
|
|
2131
2152
|
|
|
2132
|
-
|
|
2133
|
-
|
|
2153
|
+
@if not $disable-slider {
|
|
2154
|
+
@include slider-styles(true);
|
|
2155
|
+
}
|
|
2134
2156
|
}
|
|
2135
2157
|
}
|
|
2136
2158
|
}
|