material_components_web-sass 0.15.0 → 0.16.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/lib/material_components_web/sass/version.rb +1 -1
  4. data/vendor/assets/javascripts/material-components-web.js +6728 -6253
  5. data/vendor/assets/stylesheets/@material/animation/_functions.scss +7 -3
  6. data/vendor/assets/stylesheets/@material/animation/_mixins.scss +10 -6
  7. data/vendor/assets/stylesheets/@material/animation/_variables.scss +4 -3
  8. data/vendor/assets/stylesheets/@material/animation/mdc-animation.scss +10 -6
  9. data/vendor/assets/stylesheets/@material/button/mdc-button.scss +2 -0
  10. data/vendor/assets/stylesheets/@material/card/mdc-card.scss +3 -3
  11. data/vendor/assets/stylesheets/@material/checkbox/_keyframes.scss +4 -4
  12. data/vendor/assets/stylesheets/@material/checkbox/mdc-checkbox.scss +1 -1
  13. data/vendor/assets/stylesheets/@material/drawer/_mixins.scss +5 -2
  14. data/vendor/assets/stylesheets/@material/drawer/persistent/mdc-persistent-drawer.scss +1 -1
  15. data/vendor/assets/stylesheets/@material/drawer/slidable/_variables.scss +3 -3
  16. data/vendor/assets/stylesheets/@material/drawer/temporary/mdc-temporary-drawer.scss +2 -2
  17. data/vendor/assets/stylesheets/@material/elevation/_mixins.scss +3 -2
  18. data/vendor/assets/stylesheets/@material/elevation/_variables.scss +1 -1
  19. data/vendor/assets/stylesheets/@material/fab/mdc-fab.scss +3 -3
  20. data/vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss +2 -2
  21. data/vendor/assets/stylesheets/@material/grid-list/mdc-grid-list.scss +4 -5
  22. data/vendor/assets/stylesheets/@material/layout-grid/_mixins.scss +36 -6
  23. data/vendor/assets/stylesheets/@material/layout-grid/mdc-layout-grid.scss +5 -2
  24. data/vendor/assets/stylesheets/@material/linear-progress/mdc-linear-progress.scss +3 -3
  25. data/vendor/assets/stylesheets/@material/list/mdc-list.scss +3 -3
  26. data/vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss +3 -3
  27. data/vendor/assets/stylesheets/@material/radio/mdc-radio.scss +1 -1
  28. data/vendor/assets/stylesheets/@material/ripple/_keyframes.scss +1 -1
  29. data/vendor/assets/stylesheets/@material/ripple/_mixins.scss +24 -0
  30. data/vendor/assets/stylesheets/@material/rtl/_mixins.scss +5 -5
  31. data/vendor/assets/stylesheets/@material/select/mdc-select.scss +4 -4
  32. data/vendor/assets/stylesheets/@material/slider/mdc-slider.scss +1 -0
  33. data/vendor/assets/stylesheets/@material/snackbar/mdc-snackbar.scss +4 -4
  34. data/vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss +5 -5
  35. data/vendor/assets/stylesheets/@material/theme/_mixins.scss +2 -0
  36. data/vendor/assets/stylesheets/@material/toolbar/mdc-toolbar.scss +4 -3
  37. data/vendor/assets/stylesheets/@material/typography/_mixins.scss +7 -0
  38. metadata +2 -2
@@ -78,7 +78,7 @@ $mdc-list-side-padding: 16px;
78
78
 
79
79
  &__end-detail {
80
80
  @include mdc-list-detail-size_(24px);
81
- @include mdc-rtl-reflexive-property(margin, auto, $mdc-list-side-padding, ".mdc-list-item");
81
+ @include mdc-rtl-reflexive-property(margin, auto, 0, ".mdc-list-item");
82
82
  }
83
83
 
84
84
  &__text {
@@ -144,12 +144,12 @@ $mdc-list-side-padding: 16px;
144
144
  // postcss-bem-linter: end //
145
145
 
146
146
  // Override anchor tag styles for the use-case of a list being used for navigation
147
- // stylelint-disable selector-no-type,selector-no-qualifying-type
147
+ // stylelint-disable selector-max-type,selector-no-qualifying-type
148
148
  a.mdc-list-item {
149
149
  color: inherit;
150
150
  text-decoration: none;
151
151
  }
152
- // stylelint-enable selector-no-type,selector-no-qualifying-type
152
+ // stylelint-enable selector-max-type,selector-no-qualifying-type
153
153
 
154
154
  .mdc-list-item.mdc-ripple-upgraded {
155
155
  @include mdc-ripple-base;
@@ -60,7 +60,7 @@ $mdc-simple-menu-item-fade-duration: .3s;
60
60
 
61
61
  &--animating {
62
62
  display: inline-block;
63
- transition: opacity $mdc-simple-menu-fade-duration $mdc-animation-linear-out-slow-in-timing-function;
63
+ transition: opacity $mdc-simple-menu-fade-duration $mdc-animation-deceleration-curve-timing-function;
64
64
  }
65
65
 
66
66
  &__items {
@@ -84,7 +84,7 @@ $mdc-simple-menu-item-fade-duration: .3s;
84
84
  > * {
85
85
  transition-duration: $mdc-simple-menu-item-fade-duration;
86
86
  transition-property: opacity;
87
- transition-timing-function: $mdc-animation-linear-out-slow-in-timing-function;
87
+ transition-timing-function: $mdc-animation-deceleration-curve-timing-function;
88
88
  }
89
89
  }
90
90
 
@@ -171,7 +171,7 @@ $mdc-simple-menu-item-fade-duration: .3s;
171
171
  left: 0;
172
172
  width: 100%;
173
173
  height: 100%;
174
- transition: opacity 120ms $mdc-animation-linear-out-slow-in-timing-function;
174
+ transition: opacity 120ms $mdc-animation-deceleration-curve-timing-function;
175
175
  border-radius: inherit;
176
176
  background: currentColor;
177
177
  content: "";
@@ -28,7 +28,7 @@ $mdc-radio-transition-duration: 120ms;
28
28
  }
29
29
 
30
30
  @function mdc-radio-exit($name) {
31
- @return mdc-animation-exit($name, $mdc-radio-transition-duration);
31
+ @return mdc-animation-exit-temporary($name, $mdc-radio-transition-duration);
32
32
  }
33
33
 
34
34
  // postcss-bem-linter: define radio
@@ -25,7 +25,7 @@
25
25
  // that custom properties are supported within the browser before adding this class, we can
26
26
  // safely use them without a fallback.
27
27
  transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);
28
- animation-timing-function: $mdc-animation-fast-out-slow-in-timing-function;
28
+ animation-timing-function: $mdc-animation-standard-curve-timing-function;
29
29
  }
30
30
 
31
31
  to {
@@ -59,6 +59,8 @@
59
59
  // stylelint-disable at-rule-empty-line-before, block-closing-brace-newline-after
60
60
  @if ($theme-style) {
61
61
  $theme-value: map-get($mdc-theme-property-values, $theme-style);
62
+
63
+ /* @alternate */
62
64
  $css-var: $theme-value;
63
65
  $css-var: var(--mdc-theme-#{$theme-style}, $theme-value);
64
66
 
@@ -115,6 +117,8 @@
115
117
  left: calc(50% - #{$radius});
116
118
  width: $radius * 2;
117
119
  height: $radius * 2;
120
+
121
+ /* @alternate */
118
122
  transform: scale(0);
119
123
  transform: scale(var(--mdc-ripple-fg-scale, 0));
120
124
  }
@@ -129,14 +133,23 @@
129
133
  }
130
134
 
131
135
  &.mdc-ripple-upgraded--unbounded#{$pseudo} {
136
+ /* @alternate */
132
137
  top: calc(50% - #{$radius / 2});
133
138
  top: var(--mdc-ripple-top, calc(50% - #{$radius / 2}));
139
+
140
+ /* @alternate */
134
141
  left: calc(50% - #{$radius / 2});
135
142
  left: var(--mdc-ripple-left, calc(50% - #{$radius / 2}));
143
+
144
+ /* @alternate */
136
145
  width: $radius;
137
146
  width: var(--mdc-ripple-fg-size, $radius);
147
+
148
+ /* @alternate */
138
149
  height: $radius;
139
150
  height: var(--mdc-ripple-fg-size, $radius);
151
+
152
+ /* @alternate */
140
153
  transform: scale(0);
141
154
  transform: scale(var(--mdc-ripple-fg-scale, 0));
142
155
  }
@@ -179,8 +192,12 @@
179
192
  &#{$pseudo} {
180
193
  top: 0;
181
194
  left: 0;
195
+
196
+ /* @alternate */
182
197
  width: $radius;
183
198
  width: var(--mdc-ripple-fg-size, $radius);
199
+
200
+ /* @alternate */
184
201
  height: $radius;
185
202
  height: var(--mdc-ripple-fg-size, $radius);
186
203
  transform: scale(0);
@@ -194,12 +211,19 @@
194
211
  }
195
212
 
196
213
  &.mdc-ripple-upgraded--unbounded#{$pseudo} {
214
+ /* @alternate */
197
215
  top: 0;
198
216
  top: var(--mdc-ripple-top, 0);
217
+
218
+ /* @alternate */
199
219
  left: 0;
200
220
  left: var(--mdc-ripple-left, 0);
221
+
222
+ /* @alternate */
201
223
  width: $radius;
202
224
  width: var(--mdc-ripple-fg-size, $radius);
225
+
226
+ /* @alternate */
203
227
  height: $radius;
204
228
  height: var(--mdc-ripple-fg-size, $radius);
205
229
  transform: scale(0);
@@ -125,7 +125,7 @@
125
125
  * ```
126
126
  *
127
127
  * You can also pass a 4th optional $root-selector argument which will be forwarded to `mdc-rtl`,
128
- * e.g. `@include mdc-rtl-reflexive-box-property(margin, left, 8px, ".mdc-component")`.
128
+ * e.g. `@include mdc-rtl-reflexive-box(margin, left, 8px, ".mdc-component")`.
129
129
  *
130
130
  * Note that this function will always zero out the original value in an RTL context. If you're
131
131
  * trying to flip the values, use mdc-rtl-reflexive-property().
@@ -206,15 +206,15 @@
206
206
  * ```
207
207
  * An optional third $root-selector argument may also be given, which is passed to `mdc-rtl`.
208
208
  */
209
- @mixin mdc-rtl-reflexive-position($pos, $value, $root-selector: null) {
210
- @if (index((right, left), $pos) == null) {
211
- @error "Invalid position #{pos}. Please specifiy either right or left";
209
+ @mixin mdc-rtl-reflexive-position($position-property, $value, $root-selector: null) {
210
+ @if (index((right, left), $position-property) == null) {
211
+ @error "Invalid position #{position-property}. Please specifiy either right or left";
212
212
  }
213
213
 
214
214
  $left-value: $value;
215
215
  $right-value: initial;
216
216
 
217
- @if ($pos == right) {
217
+ @if ($position-property == right) {
218
218
  $right-value: $value;
219
219
  $left-value: initial;
220
220
  }
@@ -44,8 +44,8 @@
44
44
  max-width: calc(100% - #{$dd-arrow-padding});
45
45
  height: 32px;
46
46
  transition:
47
- mdc-animation-exit(border-bottom-color, 150ms),
48
- mdc-animation-exit(background-color, 150ms);
47
+ mdc-animation-exit-temporary(border-bottom-color, 150ms),
48
+ mdc-animation-exit-temporary(background-color, 150ms);
49
49
  border: none;
50
50
  border-bottom: 1px solid rgba(black, .12);
51
51
  border-radius: 0;
@@ -95,8 +95,8 @@
95
95
 
96
96
  &__selected-text {
97
97
  transition:
98
- mdc-animation-exit(opacity, 125ms),
99
- mdc-animation-exit(transform, 125ms);
98
+ mdc-animation-exit-temporary(opacity, 125ms),
99
+ mdc-animation-exit-temporary(transform, 125ms);
100
100
  white-space: nowrap;
101
101
  overflow: hidden;
102
102
  }
@@ -131,6 +131,7 @@ $mdc-slider-dark-theme-grey: #5c5c5c;
131
131
  // is considered "clicking on the thumb".
132
132
  height: 100%;
133
133
  will-change: transform;
134
+ user-select: none;
134
135
  }
135
136
 
136
137
  &__thumb {
@@ -31,7 +31,7 @@
31
31
  padding-right: 24px;
32
32
  padding-left: 24px;
33
33
  transform: translate(-50%, 100%);
34
- transition: mdc-animation-exit(transform, .25s);
34
+ transition: mdc-animation-exit-permanent(transform, .25s);
35
35
  background-color: $mdc-snackbar-background-color;
36
36
 
37
37
  @include mdc-theme-dark(".mdc-snackbar") {
@@ -111,7 +111,7 @@
111
111
  display: flex;
112
112
  align-items: center;
113
113
  height: 48px;
114
- transition: mdc-animation-exit(opacity, .3s);
114
+ transition: mdc-animation-exit-permanent(opacity, .3s);
115
115
  color: $mdc-snackbar-foreground-color;
116
116
 
117
117
  @include mdc-theme-dark(".mdc-snackbar") {
@@ -142,7 +142,7 @@
142
142
 
143
143
  min-width: auto;
144
144
  height: inherit;
145
- transition: mdc-animation-exit(opacity, .3s);
145
+ transition: mdc-animation-exit-permanent(opacity, .3s);
146
146
  opacity: 0;
147
147
  visibility: hidden;
148
148
 
@@ -157,7 +157,7 @@
157
157
 
158
158
  &--active &__text,
159
159
  &--active &__action-button:not([aria-hidden]) {
160
- transition: mdc-animation-exit(opacity, .3s);
160
+ transition: mdc-animation-exit-permanent(opacity, .3s);
161
161
  opacity: 1;
162
162
  }
163
163
  }
@@ -30,7 +30,7 @@ $mdc-textfield-disabled-border-on-light: rgba(#231f20, .26);
30
30
  $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
31
31
 
32
32
  @function mdc-textfield-transition($property) {
33
- @return #{$property} 180ms $mdc-animation-fast-out-slow-in-timing-function;
33
+ @return #{$property} 180ms $mdc-animation-standard-curve-timing-function;
34
34
  }
35
35
 
36
36
  // postcss-bem-linter: define textfield
@@ -169,7 +169,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
169
169
  &::before {
170
170
  transition:
171
171
  opacity $opacity-duration linear 17ms,
172
- transform 250ms $mdc-animation-linear-out-slow-in-timing-function 17ms;
172
+ transform 250ms $mdc-animation-deceleration-curve-timing-function 17ms;
173
173
  opacity: 1;
174
174
  }
175
175
  }
@@ -253,7 +253,7 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
253
253
  transform: scaleY(1);
254
254
  transform-origin: center bottom;
255
255
  transition:
256
- background-color 33ms $mdc-animation-fast-out-slow-in-timing-function,
256
+ background-color 33ms $mdc-animation-standard-curve-timing-function,
257
257
  mdc-textfield-transition(transform);
258
258
  background-color: rgba(black, .42);
259
259
  pointer-events: none;
@@ -715,8 +715,8 @@ $mdc-textfield-disabled-border-on-dark: rgba(white, .3);
715
715
  }
716
716
 
717
717
  // mdc-form-field tweaks to align text field label correctly
718
- // stylelint-disable selector-no-type
718
+ // stylelint-disable selector-max-type
719
719
  .mdc-form-field > .mdc-textfield + label {
720
720
  align-self: flex-start;
721
721
  }
722
- // stylelint-enable selector-no-type
722
+ // stylelint-enable selector-max-type
@@ -27,11 +27,13 @@
27
27
  }
28
28
 
29
29
  @if $important {
30
+ /* @alternate */
30
31
  #{$property}: map-get($mdc-theme-property-values, $style) !important;
31
32
  #{$property}: var(--mdc-theme-#{$style}, map-get($mdc-theme-property-values, $style)) !important;
32
33
  }
33
34
 
34
35
  @else {
36
+ /* @alternate */
35
37
  #{$property}: map-get($mdc-theme-property-values, $style);
36
38
  #{$property}: var(--mdc-theme-#{$style}, map-get($mdc-theme-property-values, $style));
37
39
  }
@@ -76,21 +76,21 @@
76
76
 
77
77
  &__title {
78
78
  @include mdc-typography(title);
79
+ @include mdc-typography-overflow-ellipsis;
79
80
 
80
81
  align-self: center;
81
82
  margin: 0;
82
83
  margin-left: 24px;
83
84
  padding: $mdc-toobar-element-vertical-padding 0;
84
85
  line-height: 1.5rem;
85
- text-overflow: ellipsis;
86
- white-space: nowrap;
87
- overflow: hidden;
88
86
  z-index: 1;
89
87
  }
90
88
 
91
89
  &__icon {
92
90
  @include mdc-shared-icon-style;
93
91
  @include mdc-theme-prop(color, text-primary-on-primary);
92
+
93
+ cursor: pointer;
94
94
  }
95
95
 
96
96
  &__icon:last-child {
@@ -102,6 +102,7 @@
102
102
  @include mdc-theme-prop(color, text-primary-on-primary);
103
103
 
104
104
  padding: 16px 24px;
105
+ cursor: pointer;
105
106
  }
106
107
  }
107
108
 
@@ -40,3 +40,10 @@
40
40
  @mixin mdc-typography-adjust-margin($style) {
41
41
  margin: map-get(map-get($mdc-typography-styles, $style), margin);
42
42
  }
43
+
44
+ // Element must be `display: block` or `display: inline-block` for this to work.
45
+ @mixin mdc-typography-overflow-ellipsis {
46
+ text-overflow: ellipsis;
47
+ white-space: nowrap;
48
+ overflow: hidden;
49
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_components_web-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Tarasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-10 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails