@material/web 1.2.1-nightly.3be7ca3.0 → 1.2.1-nightly.84536d7.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 (96) hide show
  1. package/button/internal/_elevated-button.scss +4 -2
  2. package/button/internal/_filled-button.scss +4 -2
  3. package/button/internal/_filled-tonal-button.scss +4 -2
  4. package/button/internal/_outlined-button.scss +4 -2
  5. package/button/internal/_text-button.scss +4 -2
  6. package/checkbox/internal/_checkbox.scss +14 -23
  7. package/chips/internal/_assist-chip.scss +4 -2
  8. package/chips/internal/_filter-chip.scss +4 -2
  9. package/chips/internal/_input-chip.scss +4 -2
  10. package/chips/internal/_suggestion-chip.scss +4 -2
  11. package/dialog/internal/_dialog.scss +3 -4
  12. package/divider/internal/_divider.scss +3 -4
  13. package/elevation/internal/_elevation.scss +3 -4
  14. package/fab/internal/_fab-branded.scss +4 -2
  15. package/fab/internal/_fab.scss +4 -2
  16. package/field/internal/_filled-field.scss +13 -2
  17. package/field/internal/_outlined-field.scss +4 -2
  18. package/focus/internal/_focus-ring.scss +13 -23
  19. package/icon/internal/_icon.scss +3 -4
  20. package/iconbutton/internal/_filled-icon-button.scss +4 -2
  21. package/iconbutton/internal/_filled-tonal-icon-button.scss +4 -2
  22. package/iconbutton/internal/_icon-button.scss +4 -2
  23. package/iconbutton/internal/_outlined-icon-button.scss +4 -2
  24. package/labs/card/internal/_elevated-card.scss +4 -2
  25. package/labs/card/internal/_filled-card.scss +4 -2
  26. package/labs/card/internal/_outlined-card.scss +4 -2
  27. package/labs/segmentedbuttonset/internal/_outlined-segmented-button-set.scss +4 -2
  28. package/list/internal/_list.scss +3 -4
  29. package/list/internal/listitem/_list-item.scss +3 -4
  30. package/menu/internal/_menu.scss +3 -4
  31. package/menu/internal/menuitem/_menu-item.scss +3 -4
  32. package/package.json +1 -1
  33. package/progress/internal/_circular-progress.scss +4 -2
  34. package/progress/internal/_linear-progress.scss +4 -2
  35. package/radio/internal/_radio.scss +3 -4
  36. package/ripple/internal/_ripple.scss +3 -4
  37. package/select/internal/_filled-select.scss +14 -2
  38. package/select/internal/_outlined-select.scss +4 -2
  39. package/slider/internal/_slider.scss +4 -2
  40. package/switch/internal/_switch.scss +3 -4
  41. package/tabs/internal/_primary-tab.scss +4 -2
  42. package/tabs/internal/_secondary-tab.scss +4 -2
  43. package/textfield/internal/_filled-text-field.scss +13 -28
  44. package/textfield/internal/_outlined-text-field.scss +4 -24
  45. package/textfield/internal/filled-styles.css.js +1 -1
  46. package/textfield/internal/filled-styles.css.js.map +1 -1
  47. package/textfield/internal/outlined-styles.css.js +1 -1
  48. package/textfield/internal/outlined-styles.css.js.map +1 -1
  49. package/tokens/_md-comp-assist-chip.scss +17 -1
  50. package/tokens/_md-comp-badge.scss +14 -1
  51. package/tokens/_md-comp-checkbox.scss +23 -2
  52. package/tokens/_md-comp-circular-progress.scss +17 -1
  53. package/tokens/_md-comp-dialog.scss +13 -1
  54. package/tokens/_md-comp-divider.scss +19 -2
  55. package/tokens/_md-comp-elevated-button.scss +17 -1
  56. package/tokens/_md-comp-elevated-card.scss +20 -1
  57. package/tokens/_md-comp-elevation.scss +18 -1
  58. package/tokens/_md-comp-fab-branded.scss +17 -1
  59. package/tokens/_md-comp-fab.scss +13 -1
  60. package/tokens/_md-comp-filled-button.scss +17 -1
  61. package/tokens/_md-comp-filled-card.scss +20 -1
  62. package/tokens/_md-comp-filled-field.scss +20 -2
  63. package/tokens/_md-comp-filled-icon-button.scss +20 -1
  64. package/tokens/_md-comp-filled-select.scss +17 -1
  65. package/tokens/_md-comp-filled-text-field.scss +41 -2
  66. package/tokens/_md-comp-filled-tonal-button.scss +17 -1
  67. package/tokens/_md-comp-filled-tonal-icon-button.scss +20 -1
  68. package/tokens/_md-comp-filter-chip.scss +17 -1
  69. package/tokens/_md-comp-focus-ring.scss +20 -3
  70. package/tokens/_md-comp-icon-button.scss +20 -1
  71. package/tokens/_md-comp-icon.scss +15 -1
  72. package/tokens/_md-comp-input-chip.scss +17 -1
  73. package/tokens/_md-comp-item.scss +1 -0
  74. package/tokens/_md-comp-linear-progress.scss +20 -2
  75. package/tokens/_md-comp-list-item.scss +17 -2
  76. package/tokens/_md-comp-list.scss +16 -2
  77. package/tokens/_md-comp-menu-item.scss +17 -2
  78. package/tokens/_md-comp-menu.scss +13 -3
  79. package/tokens/_md-comp-navigation-bar.scss +23 -2
  80. package/tokens/_md-comp-navigation-drawer.scss +23 -2
  81. package/tokens/_md-comp-outlined-button.scss +17 -1
  82. package/tokens/_md-comp-outlined-card.scss +20 -1
  83. package/tokens/_md-comp-outlined-field.scss +20 -2
  84. package/tokens/_md-comp-outlined-icon-button.scss +20 -1
  85. package/tokens/_md-comp-outlined-segmented-button.scss +17 -1
  86. package/tokens/_md-comp-outlined-select.scss +17 -2
  87. package/tokens/_md-comp-outlined-text-field.scss +37 -2
  88. package/tokens/_md-comp-primary-tab.scss +20 -2
  89. package/tokens/_md-comp-radio.scss +16 -1
  90. package/tokens/_md-comp-ripple.scss +12 -2
  91. package/tokens/_md-comp-secondary-tab.scss +17 -1
  92. package/tokens/_md-comp-slider.scss +13 -1
  93. package/tokens/_md-comp-suggestion-chip.scss +17 -1
  94. package/tokens/_md-comp-switch.scss +16 -1
  95. package/tokens/_md-comp-text-button.scss +17 -1
  96. package/tokens/internal/_validate.scss +1 -1
@@ -34,11 +34,13 @@
34
34
  }
35
35
 
36
36
  @mixin styles() {
37
- $tokens: tokens.md-comp-elevated-button-values();
37
+ $tokens: tokens.md-comp-elevated-button-values(
38
+ $exclude-custom-properties: false,
39
+ );
38
40
 
39
41
  :host {
40
42
  @each $token, $value in $tokens {
41
- --_#{$token}: var(--md-elevated-button-#{$token}, #{$value});
43
+ --_#{$token}: #{$value};
42
44
  }
43
45
 
44
46
  // Support logical shape properties
@@ -34,11 +34,13 @@
34
34
  }
35
35
 
36
36
  @mixin styles() {
37
- $tokens: tokens.md-comp-filled-button-values();
37
+ $tokens: tokens.md-comp-filled-button-values(
38
+ $exclude-custom-properties: false,
39
+ );
38
40
 
39
41
  :host {
40
42
  @each $token, $value in $tokens {
41
- --_#{$token}: var(--md-filled-button-#{$token}, #{$value});
43
+ --_#{$token}: #{$value};
42
44
  }
43
45
 
44
46
  // Support logical shape properties
@@ -34,11 +34,13 @@
34
34
  }
35
35
 
36
36
  @mixin styles() {
37
- $tokens: tokens.md-comp-filled-tonal-button-values();
37
+ $tokens: tokens.md-comp-filled-tonal-button-values(
38
+ $exclude-custom-properties: false,
39
+ );
38
40
 
39
41
  :host {
40
42
  @each $token, $value in $tokens {
41
- --_#{$token}: var(--md-filled-tonal-button-#{$token}, #{$value});
43
+ --_#{$token}: #{$value};
42
44
  }
43
45
 
44
46
  // Support logical shape properties
@@ -34,11 +34,13 @@
34
34
  }
35
35
 
36
36
  @mixin styles() {
37
- $tokens: tokens.md-comp-outlined-button-values();
37
+ $tokens: tokens.md-comp-outlined-button-values(
38
+ $exclude-custom-properties: false,
39
+ );
38
40
 
39
41
  :host {
40
42
  @each $token, $value in $tokens {
41
- --_#{$token}: var(--md-outlined-button-#{$token}, #{$value});
43
+ --_#{$token}: #{$value};
42
44
  }
43
45
 
44
46
  --_container-color: none;
@@ -34,11 +34,13 @@
34
34
  }
35
35
 
36
36
  @mixin styles() {
37
- $tokens: tokens.md-comp-text-button-values();
37
+ $tokens: tokens.md-comp-text-button-values(
38
+ $exclude-custom-properties: false,
39
+ );
38
40
 
39
41
  :host {
40
42
  @each $token, $value in $tokens {
41
- --_#{$token}: var(--md-text-button-#{$token}, #{$value});
43
+ --_#{$token}: #{$value};
42
44
  }
43
45
 
44
46
  --_container-color: none;
@@ -47,35 +47,26 @@ $_checkmark-bottom-left: 7px, -14px;
47
47
  }
48
48
 
49
49
  @mixin styles() {
50
- $tokens: tokens.md-comp-checkbox-values();
50
+ $tokens: tokens.md-comp-checkbox-values(
51
+ $exclude-custom-properties: false,
52
+ );
51
53
 
52
54
  // Support logical shape properties
53
55
  $container-shape: map.get($tokens, 'container-shape');
54
- $tokens: map.set(
55
- $tokens,
56
- 'container-shape-start-start',
57
- var(--md-checkbox-container-shape, #{$container-shape})
58
- );
59
- $tokens: map.set(
60
- $tokens,
61
- 'container-shape-start-end',
62
- var(--md-checkbox-container-shape, #{$container-shape})
63
- );
64
- $tokens: map.set(
65
- $tokens,
66
- 'container-shape-end-end',
67
- var(--md-checkbox-container-shape, #{$container-shape})
68
- );
69
- $tokens: map.set(
56
+ $tokens: map.merge(
70
57
  $tokens,
71
- 'container-shape-end-start',
72
- var(--md-checkbox-container-shape, #{$container-shape})
58
+ (
59
+ 'container-shape-start-start':
60
+ var(--md-checkbox-container-shape-start-start, #{$container-shape}),
61
+ 'container-shape-start-end':
62
+ var(--md-checkbox-container-shape-start-end, #{$container-shape}),
63
+ 'container-shape-end-end':
64
+ var(--md-checkbox-container-shape-end-end, #{$container-shape}),
65
+ 'container-shape-end-start':
66
+ var(--md-checkbox-container-shape-end-start, #{$container-shape}),
67
+ )
73
68
  );
74
69
 
75
- @each $token, $value in $tokens {
76
- $tokens: map.set($tokens, $token, var(--md-checkbox-#{$token}, #{$value}));
77
- }
78
-
79
70
  :host {
80
71
  border-start-start-radius: map.get($tokens, 'container-shape-start-start');
81
72
  border-start-end-radius: map.get($tokens, 'container-shape-start-end');
@@ -33,11 +33,13 @@
33
33
  }
34
34
 
35
35
  @mixin styles() {
36
- $tokens: tokens.md-comp-assist-chip-values();
36
+ $tokens: tokens.md-comp-assist-chip-values(
37
+ $exclude-custom-properties: false,
38
+ );
37
39
 
38
40
  :host {
39
41
  @each $token, $value in $tokens {
40
- --_#{$token}: var(--md-assist-chip-#{$token}, #{$value});
42
+ --_#{$token}: #{$value};
41
43
  }
42
44
 
43
45
  // Support logical shape properties
@@ -33,11 +33,13 @@
33
33
  }
34
34
 
35
35
  @mixin styles() {
36
- $tokens: tokens.md-comp-filter-chip-values();
36
+ $tokens: tokens.md-comp-filter-chip-values(
37
+ $exclude-custom-properties: false,
38
+ );
37
39
 
38
40
  :host {
39
41
  @each $token, $value in $tokens {
40
- --_#{$token}: var(--md-filter-chip-#{$token}, #{$value});
42
+ --_#{$token}: #{$value};
41
43
  }
42
44
 
43
45
  // Support logical shape properties
@@ -33,11 +33,13 @@
33
33
  }
34
34
 
35
35
  @mixin styles() {
36
- $tokens: tokens.md-comp-input-chip-values();
36
+ $tokens: tokens.md-comp-input-chip-values(
37
+ $exclude-custom-properties: false,
38
+ );
37
39
 
38
40
  :host {
39
41
  @each $token, $value in $tokens {
40
- --_#{$token}: var(--md-input-chip-#{$token}, #{$value});
42
+ --_#{$token}: #{$value};
41
43
  }
42
44
 
43
45
  // Support logical shape properties
@@ -33,11 +33,13 @@
33
33
  }
34
34
 
35
35
  @mixin styles() {
36
- $tokens: tokens.md-comp-suggestion-chip-values();
36
+ $tokens: tokens.md-comp-suggestion-chip-values(
37
+ $exclude-custom-properties: false,
38
+ );
37
39
 
38
40
  :host {
39
41
  @each $token, $value in $tokens {
40
- --_#{$token}: var(--md-suggestion-chip-#{$token}, #{$value});
42
+ --_#{$token}: #{$value};
41
43
  }
42
44
 
43
45
  // Support logical shape properties
@@ -36,10 +36,9 @@
36
36
  @mixin styles() {
37
37
  $md-sys-color: tokens.md-sys-color-values-light();
38
38
  $md-sys-motion: tokens.md-sys-motion-values();
39
- $tokens: tokens.md-comp-dialog-values();
40
- @each $token, $value in $tokens {
41
- $tokens: map.set($tokens, $token, var(--md-dialog-#{$token}, #{$value}));
42
- }
39
+ $tokens: tokens.md-comp-dialog-values(
40
+ $exclude-custom-properties: false,
41
+ );
43
42
 
44
43
  // Support logical shape properties
45
44
  $tokens: map.merge(
@@ -26,10 +26,9 @@
26
26
  }
27
27
 
28
28
  @mixin styles() {
29
- $tokens: tokens.md-comp-divider-values();
30
- @each $token, $value in $tokens {
31
- $tokens: map.set($tokens, $token, var(--md-divider-#{$token}, #{$value}));
32
- }
29
+ $tokens: tokens.md-comp-divider-values(
30
+ $exclude-custom-properties: false,
31
+ );
33
32
 
34
33
  :host {
35
34
  box-sizing: border-box;
@@ -26,10 +26,9 @@
26
26
  }
27
27
 
28
28
  @mixin styles() {
29
- $tokens: tokens.md-comp-elevation-values();
30
- @each $token, $value in $tokens {
31
- $tokens: map.set($tokens, $token, var(--md-elevation-#{$token}, #{$value}));
32
- }
29
+ $tokens: tokens.md-comp-elevation-values(
30
+ $exclude-custom-properties: false,
31
+ );
33
32
 
34
33
  :host {
35
34
  display: flex;
@@ -37,11 +37,13 @@
37
37
  }
38
38
 
39
39
  @mixin styles() {
40
- $tokens: tokens.md-comp-fab-branded-values();
40
+ $tokens: tokens.md-comp-fab-branded-values(
41
+ $exclude-custom-properties: false,
42
+ );
41
43
 
42
44
  :host {
43
45
  @each $token, $value in $tokens {
44
- --_#{$token}: var(--md-fab-branded-#{$token}, #{$value});
46
+ --_#{$token}: #{$value};
45
47
  }
46
48
 
47
49
  // Support logical shape properties
@@ -44,11 +44,13 @@
44
44
  }
45
45
 
46
46
  @mixin styles() {
47
- $tokens: tokens.md-comp-fab-values();
47
+ $tokens: tokens.md-comp-fab-values(
48
+ $exclude-custom-properties: false,
49
+ );
48
50
 
49
51
  :host {
50
52
  @each $token, $value in $tokens {
51
- --_#{$token}: var(--md-fab-#{$token}, #{$value});
53
+ --_#{$token}: #{$value};
52
54
  }
53
55
 
54
56
  // Support logical shape properties
@@ -41,7 +41,9 @@ $_md-sys-motion: tokens.md-sys-motion-values();
41
41
  }
42
42
 
43
43
  @mixin styles() {
44
- $tokens: tokens.md-comp-filled-field-values();
44
+ $tokens: tokens.md-comp-filled-field-values(
45
+ $exclude-custom-properties: false,
46
+ );
45
47
 
46
48
  @layer styles {
47
49
  :host {
@@ -49,6 +51,15 @@ $_md-sys-motion: tokens.md-sys-motion-values();
49
51
  @if $token == 'container-shape' {
50
52
  // Support logical shape properties. Filled field has a default oblong
51
53
  // shape, which is why the fallback value is unique per corner.
54
+
55
+ // Get the raw value without the container-shape custom property.
56
+ $value: map.get(
57
+ tokens.md-comp-filled-field-values(
58
+ $exclude-custom-properties: true,
59
+ ),
60
+ 'container-shape'
61
+ );
62
+
52
63
  --_container-shape-start-start: var(
53
64
  --md-filled-field-container-shape-start-start,
54
65
  var(--md-filled-field-container-shape, #{list.nth($value, 1)})
@@ -66,7 +77,7 @@ $_md-sys-motion: tokens.md-sys-motion-values();
66
77
  var(--md-filled-field-container-shape, #{list.nth($value, 4)})
67
78
  );
68
79
  } @else {
69
- --_#{$token}: var(--md-filled-field-#{$token}, #{$value});
80
+ --_#{$token}: #{$value};
70
81
  }
71
82
  }
72
83
  }
@@ -36,12 +36,14 @@ $_md-sys-motion: tokens.md-sys-motion-values();
36
36
  }
37
37
 
38
38
  @mixin styles() {
39
- $tokens: tokens.md-comp-outlined-field-values();
39
+ $tokens: tokens.md-comp-outlined-field-values(
40
+ $exclude-custom-properties: false,
41
+ );
40
42
 
41
43
  @layer styles {
42
44
  :host {
43
45
  @each $token, $value in $tokens {
44
- --_#{$token}: var(--md-outlined-field-#{$token}, #{$value});
46
+ --_#{$token}: #{$value};
45
47
  }
46
48
 
47
49
  // Support logical shape properties
@@ -31,39 +31,29 @@ $_md-sys-motion: tokens.md-sys-motion-values();
31
31
  }
32
32
 
33
33
  @mixin styles() {
34
- $tokens: tokens.md-comp-focus-ring-values();
35
-
36
- $active-width: var(
37
- --md-focus-ring-active-width,
38
- #{map.get($tokens, 'active-width')}
39
- );
40
- $color: var(--md-focus-ring-color, #{map.get($tokens, 'color')});
41
- $duration: var(--md-focus-ring-duration, #{map.get($tokens, 'duration')});
42
- $width: var(--md-focus-ring-width, #{map.get($tokens, 'width')});
43
- $inward-offset: var(
44
- --md-focus-ring-inward-offset,
45
- #{map.get($tokens, 'inward-offset')}
46
- );
47
- $outward-offset: var(
48
- --md-focus-ring-outward-offset,
49
- #{map.get($tokens, 'outward-offset')}
34
+ $tokens: tokens.md-comp-focus-ring-values(
35
+ $exclude-custom-properties: false,
50
36
  );
37
+
38
+ $active-width: map.get($tokens, 'active-width');
39
+ $color: map.get($tokens, 'color');
40
+ $duration: map.get($tokens, 'duration');
41
+ $width: map.get($tokens, 'width');
42
+ $inward-offset: map.get($tokens, 'inward-offset');
43
+ $outward-offset: map.get($tokens, 'outward-offset');
51
44
  // Support logical shape properties
52
45
  $start-start: var(
53
46
  --md-focus-ring-shape-start-start,
54
- var(--md-focus-ring-shape, #{map.get($tokens, 'shape')})
47
+ #{map.get($tokens, 'shape')}
55
48
  );
56
49
  $start-end: var(
57
50
  --md-focus-ring-shape-start-end,
58
- var(--md-focus-ring-shape, #{map.get($tokens, 'shape')})
59
- );
60
- $end-end: var(
61
- --md-focus-ring-shape-end-end,
62
- var(--md-focus-ring-shape, #{map.get($tokens, 'shape')})
51
+ #{map.get($tokens, 'shape')}
63
52
  );
53
+ $end-end: var(--md-focus-ring-shape-end-end, #{map.get($tokens, 'shape')});
64
54
  $end-start: var(
65
55
  --md-focus-ring-shape-end-start,
66
- var(--md-focus-ring-shape, #{map.get($tokens, 'shape')})
56
+ #{map.get($tokens, 'shape')}
67
57
  );
68
58
 
69
59
  :host {
@@ -26,10 +26,9 @@
26
26
  }
27
27
 
28
28
  @mixin styles() {
29
- $tokens: tokens.md-comp-icon-values();
30
- @each $token, $value in $tokens {
31
- $tokens: map.set($tokens, $token, var(--md-icon-#{$token}, #{$value}));
32
- }
29
+ $tokens: tokens.md-comp-icon-values(
30
+ $exclude-custom-properties: false,
31
+ );
33
32
 
34
33
  :host {
35
34
  font-size: map.get($tokens, 'size');
@@ -35,11 +35,13 @@
35
35
  }
36
36
 
37
37
  @mixin styles() {
38
- $tokens: tokens.md-comp-filled-icon-button-values();
38
+ $tokens: tokens.md-comp-filled-icon-button-values(
39
+ $exclude-custom-properties: false,
40
+ );
39
41
 
40
42
  :host {
41
43
  @each $token, $value in $tokens {
42
- --_#{$token}: var(--md-filled-icon-button-#{$token}, #{$value});
44
+ --_#{$token}: #{$value};
43
45
  }
44
46
 
45
47
  // Support logical shape properties
@@ -37,11 +37,13 @@ $_custom-property-prefix: 'filled-tonal-icon-button';
37
37
  }
38
38
 
39
39
  @mixin styles() {
40
- $tokens: tokens.md-comp-filled-tonal-icon-button-values();
40
+ $tokens: tokens.md-comp-filled-tonal-icon-button-values(
41
+ $exclude-custom-properties: false,
42
+ );
41
43
 
42
44
  :host {
43
45
  @each $token, $value in $tokens {
44
- --_#{$token}: var(--md-filled-tonal-icon-button-#{$token}, #{$value});
46
+ --_#{$token}: #{$value};
45
47
  }
46
48
 
47
49
  // Support logical shape properties
@@ -28,11 +28,13 @@
28
28
  }
29
29
 
30
30
  @mixin styles() {
31
- $tokens: tokens.md-comp-icon-button-values();
31
+ $tokens: tokens.md-comp-icon-button-values(
32
+ $exclude-custom-properties: false,
33
+ );
32
34
 
33
35
  :host {
34
36
  @each $token, $value in $tokens {
35
- --_#{$token}: var(--md-icon-button-#{$token}, #{$value});
37
+ --_#{$token}: #{$value};
36
38
  }
37
39
 
38
40
  // These custom properties are not used, so set defaults so token tests pass
@@ -36,11 +36,13 @@
36
36
  }
37
37
 
38
38
  @mixin styles() {
39
- $tokens: tokens.md-comp-outlined-icon-button-values();
39
+ $tokens: tokens.md-comp-outlined-icon-button-values(
40
+ $exclude-custom-properties: false,
41
+ );
40
42
 
41
43
  :host {
42
44
  @each $token, $value in $tokens {
43
- --_#{$token}: var(--md-outlined-icon-button-#{$token}, #{$value});
45
+ --_#{$token}: #{$value};
44
46
  }
45
47
 
46
48
  // Support logical shape properties
@@ -25,11 +25,13 @@
25
25
  }
26
26
 
27
27
  @mixin styles() {
28
- $tokens: tokens.md-comp-elevated-card-values();
28
+ $tokens: tokens.md-comp-elevated-card-values(
29
+ $exclude-custom-properties: false,
30
+ );
29
31
 
30
32
  :host {
31
33
  @each $token, $value in $tokens {
32
- --_#{$token}: var(--md-elevated-card-#{$token}, #{$value});
34
+ --_#{$token}: #{$value};
33
35
  }
34
36
  }
35
37
  }
@@ -25,11 +25,13 @@
25
25
  }
26
26
 
27
27
  @mixin styles() {
28
- $tokens: tokens.md-comp-filled-card-values();
28
+ $tokens: tokens.md-comp-filled-card-values(
29
+ $exclude-custom-properties: false,
30
+ );
29
31
 
30
32
  :host {
31
33
  @each $token, $value in $tokens {
32
- --_#{$token}: var(--md-filled-card-#{$token}, #{$value});
34
+ --_#{$token}: #{$value};
33
35
  }
34
36
  }
35
37
  }
@@ -25,11 +25,13 @@
25
25
  }
26
26
 
27
27
  @mixin styles() {
28
- $tokens: tokens.md-comp-outlined-card-values();
28
+ $tokens: tokens.md-comp-outlined-card-values(
29
+ $exclude-custom-properties: false,
30
+ );
29
31
 
30
32
  :host {
31
33
  @each $token, $value in $tokens {
32
- --_#{$token}: var(--md-outlined-card-#{$token}, #{$value});
34
+ --_#{$token}: #{$value};
33
35
  }
34
36
  }
35
37
 
@@ -25,11 +25,13 @@
25
25
  }
26
26
 
27
27
  @mixin styles() {
28
- $tokens: tokens.md-comp-outlined-segmented-button-values();
28
+ $tokens: tokens.md-comp-outlined-segmented-button-values(
29
+ $exclude-custom-properties: false,
30
+ );
29
31
 
30
32
  :host {
31
33
  @each $token, $value in $tokens {
32
- --_#{$token}: var(--md-outlined-segmented-button-#{$token}, #{$value});
34
+ --_#{$token}: #{$value};
33
35
  }
34
36
 
35
37
  // Support logical shape properties
@@ -27,10 +27,9 @@
27
27
  }
28
28
 
29
29
  @mixin styles() {
30
- $tokens: tokens.md-comp-list-values();
31
- @each $token, $value in $tokens {
32
- $tokens: map.set($tokens, $token, var(--md-list-#{$token}, #{$value}));
33
- }
30
+ $tokens: tokens.md-comp-list-values(
31
+ $exclude-custom-properties: false,
32
+ );
34
33
 
35
34
  :host {
36
35
  background: map.get($tokens, 'container-color');
@@ -29,10 +29,9 @@
29
29
  }
30
30
 
31
31
  @mixin styles() {
32
- $tokens: tokens.md-comp-list-item-values();
33
- @each $token, $value in $tokens {
34
- $tokens: map.set($tokens, $token, var(--md-list-item-#{$token}, #{$value}));
35
- }
32
+ $tokens: tokens.md-comp-list-item-values(
33
+ $exclude-custom-properties: false,
34
+ );
36
35
 
37
36
  :host {
38
37
  border-radius: map.get($tokens, 'container-shape');
@@ -31,10 +31,9 @@
31
31
  }
32
32
 
33
33
  @mixin styles() {
34
- $tokens: tokens.md-comp-menu-values();
35
- @each $token, $value in $tokens {
36
- $tokens: map.set($tokens, $token, var(--md-menu-#{$token}, #{$value}));
37
- }
34
+ $tokens: tokens.md-comp-menu-values(
35
+ $exclude-custom-properties: false,
36
+ );
38
37
 
39
38
  :host {
40
39
  @include elevation.theme(
@@ -31,10 +31,9 @@
31
31
  }
32
32
 
33
33
  @mixin styles() {
34
- $tokens: tokens.md-comp-menu-item-values();
35
- @each $token, $value in $tokens {
36
- $tokens: map.set($tokens, $token, var(--md-menu-item-#{$token}, #{$value}));
37
- }
34
+ $tokens: tokens.md-comp-menu-item-values(
35
+ $exclude-custom-properties: false,
36
+ );
38
37
 
39
38
  :host {
40
39
  border-radius: map.get($tokens, 'container-shape');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@material/web",
3
- "version": "1.2.1-nightly.3be7ca3.0",
3
+ "version": "1.2.1-nightly.84536d7.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,7 +24,9 @@
24
24
  }
25
25
 
26
26
  @mixin styles() {
27
- $tokens: tokens.md-comp-circular-progress-values();
27
+ $tokens: tokens.md-comp-circular-progress-values(
28
+ $exclude-custom-properties: false,
29
+ );
28
30
 
29
31
  // If changing this value, make sure to change $size-without-padding in the
30
32
  // circular-progress tokens.
@@ -50,7 +52,7 @@
50
52
 
51
53
  :host {
52
54
  @each $token, $value in $tokens {
53
- --_#{$token}: var(--md-circular-progress-#{$token}, #{$value});
55
+ --_#{$token}: #{$value};
54
56
  }
55
57
 
56
58
  display: inline-flex;
@@ -31,11 +31,13 @@ $_determinate-easing: cubic-bezier(0.4, 0, 0.6, 1);
31
31
  $_indeterminate-duration: 2s;
32
32
 
33
33
  @mixin styles() {
34
- $tokens: tokens.md-comp-linear-progress-values();
34
+ $tokens: tokens.md-comp-linear-progress-values(
35
+ $exclude-custom-properties: false,
36
+ );
35
37
 
36
38
  :host {
37
39
  @each $token, $value in $tokens {
38
- --_#{$token}: var(--md-linear-progress-#{$token}, #{$value});
40
+ --_#{$token}: #{$value};
39
41
  }
40
42
 
41
43
  border-radius: var(--_track-shape);
@@ -31,10 +31,9 @@ $_md-sys-motion: tokens.md-sys-motion-values();
31
31
  }
32
32
 
33
33
  @mixin styles() {
34
- $tokens: tokens.md-comp-radio-values();
35
- @each $token, $value in $tokens {
36
- $tokens: map.set($tokens, $token, var(--md-radio-#{$token}, #{$value}));
37
- }
34
+ $tokens: tokens.md-comp-radio-values(
35
+ $exclude-custom-properties: false,
36
+ );
38
37
 
39
38
  @layer {
40
39
  :host {