@materializecss/materialize 1.1.0 → 1.2.1

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 (83) hide show
  1. package/Gruntfile.js +38 -24
  2. package/LICENSE +21 -21
  3. package/README.md +91 -97
  4. package/dist/css/materialize.css +8608 -8631
  5. package/dist/css/materialize.min.css +12 -12
  6. package/dist/js/materialize.js +12816 -12669
  7. package/dist/js/materialize.min.js +6 -6
  8. package/extras/noUiSlider/nouislider.css +404 -406
  9. package/extras/noUiSlider/nouislider.js +2147 -2147
  10. package/extras/noUiSlider/nouislider.min.js +0 -0
  11. package/js/anime.min.js +34 -34
  12. package/js/autocomplete.js +479 -479
  13. package/js/buttons.js +354 -354
  14. package/js/cards.js +40 -40
  15. package/js/carousel.js +732 -732
  16. package/js/cash.js +960 -960
  17. package/js/characterCounter.js +136 -136
  18. package/js/chips.js +486 -486
  19. package/js/collapsible.js +275 -275
  20. package/js/component.js +44 -44
  21. package/js/datepicker.js +983 -983
  22. package/js/dropdown.js +669 -669
  23. package/js/forms.js +285 -275
  24. package/js/global.js +428 -424
  25. package/js/materialbox.js +453 -453
  26. package/js/modal.js +382 -382
  27. package/js/parallax.js +138 -138
  28. package/js/pushpin.js +148 -148
  29. package/js/range.js +263 -263
  30. package/js/scrollspy.js +295 -295
  31. package/js/select.js +391 -310
  32. package/js/sidenav.js +583 -583
  33. package/js/slider.js +359 -359
  34. package/js/tabs.js +402 -402
  35. package/js/tapTarget.js +315 -315
  36. package/js/timepicker.js +712 -648
  37. package/js/toasts.js +325 -322
  38. package/js/tooltip.js +320 -320
  39. package/js/waves.js +614 -614
  40. package/package.json +87 -82
  41. package/sass/_style.scss +929 -929
  42. package/sass/components/_badges.scss +55 -55
  43. package/sass/components/_buttons.scss +322 -322
  44. package/sass/components/_cards.scss +195 -195
  45. package/sass/components/_carousel.scss +90 -90
  46. package/sass/components/_chips.scss +96 -96
  47. package/sass/components/_collapsible.scss +91 -91
  48. package/sass/components/_collection.scss +106 -106
  49. package/sass/components/_color-classes.scss +32 -32
  50. package/sass/components/_color-variables.scss +370 -370
  51. package/sass/components/_datepicker.scss +191 -191
  52. package/sass/components/_dropdown.scss +84 -84
  53. package/sass/components/_global.scss +646 -642
  54. package/sass/components/_grid.scss +158 -158
  55. package/sass/components/_icons-material-design.scss +5 -5
  56. package/sass/components/_materialbox.scss +42 -42
  57. package/sass/components/_modal.scss +97 -97
  58. package/sass/components/_navbar.scss +208 -208
  59. package/sass/components/_normalize.scss +447 -447
  60. package/sass/components/_preloader.scss +334 -334
  61. package/sass/components/_pulse.scss +34 -34
  62. package/sass/components/_sidenav.scss +214 -214
  63. package/sass/components/_slider.scss +91 -91
  64. package/sass/components/_table_of_contents.scss +33 -33
  65. package/sass/components/_tabs.scss +99 -99
  66. package/sass/components/_tapTarget.scss +103 -103
  67. package/sass/components/_timepicker.scss +199 -183
  68. package/sass/components/_toast.scss +58 -58
  69. package/sass/components/_tooltip.scss +32 -32
  70. package/sass/components/_transitions.scss +12 -12
  71. package/sass/components/_typography.scss +62 -62
  72. package/sass/components/_variables.scss +352 -352
  73. package/sass/components/_waves.scss +187 -187
  74. package/sass/components/forms/_checkboxes.scss +200 -200
  75. package/sass/components/forms/_file-input.scss +44 -44
  76. package/sass/components/forms/_forms.scss +22 -22
  77. package/sass/components/forms/_input-fields.scss +388 -379
  78. package/sass/components/forms/_radio-buttons.scss +115 -115
  79. package/sass/components/forms/_range.scss +161 -161
  80. package/sass/components/forms/_select.scss +199 -199
  81. package/sass/components/forms/_switches.scss +91 -91
  82. package/sass/ghpages-materialize.scss +7 -7
  83. package/sass/materialize.scss +42 -42
package/js/toasts.js CHANGED
@@ -1,322 +1,325 @@
1
- (function($, anim) {
2
- 'use strict';
3
-
4
- let _defaults = {
5
- html: '',
6
- unsafeHTML: '',
7
- text: '',
8
- displayLength: 4000,
9
- inDuration: 300,
10
- outDuration: 375,
11
- classes: '',
12
- completeCallback: null,
13
- activationPercent: 0.8
14
- };
15
-
16
- class Toast {
17
- constructor(options) {
18
- /**
19
- * Options for the toast
20
- * @member Toast#options
21
- */
22
- this.options = $.extend({}, Toast.defaults, options);
23
- this.htmlMessage = this.options.html;
24
- // Warn when using html
25
- if (!!this.options.html)
26
- console.warn(
27
- 'The html option is deprecated and will be removed in the future. See https://github.com/materializecss/materialize/pull/49'
28
- );
29
- // If the new unsafeHTML is used, prefer that
30
- if (!!this.options.unsafeHTML) {
31
- this.htmlMessage = this.options.unsafeHTML;
32
- }
33
- this.message = this.options.text;
34
-
35
- /**
36
- * Describes current pan state toast
37
- * @type {Boolean}
38
- */
39
- this.panning = false;
40
-
41
- /**
42
- * Time remaining until toast is removed
43
- */
44
- this.timeRemaining = this.options.displayLength;
45
-
46
- if (Toast._toasts.length === 0) {
47
- Toast._createContainer();
48
- }
49
-
50
- // Create new toast
51
- Toast._toasts.push(this);
52
- let toastElement = this._createToast();
53
- toastElement.M_Toast = this;
54
- this.el = toastElement;
55
- this.$el = $(toastElement);
56
- this._animateIn();
57
- this._setTimer();
58
- }
59
-
60
- static get defaults() {
61
- return _defaults;
62
- }
63
-
64
- /**
65
- * Get Instance
66
- */
67
- static getInstance(el) {
68
- let domElem = !!el.jquery ? el[0] : el;
69
- return domElem.M_Toast;
70
- }
71
-
72
- /**
73
- * Append toast container and add event handlers
74
- */
75
- static _createContainer() {
76
- let container = document.createElement('div');
77
- container.setAttribute('id', 'toast-container');
78
-
79
- // Add event handler
80
- container.addEventListener('touchstart', Toast._onDragStart);
81
- container.addEventListener('touchmove', Toast._onDragMove);
82
- container.addEventListener('touchend', Toast._onDragEnd);
83
-
84
- container.addEventListener('mousedown', Toast._onDragStart);
85
- document.addEventListener('mousemove', Toast._onDragMove);
86
- document.addEventListener('mouseup', Toast._onDragEnd);
87
-
88
- document.body.appendChild(container);
89
- Toast._container = container;
90
- }
91
-
92
- /**
93
- * Remove toast container and event handlers
94
- */
95
- static _removeContainer() {
96
- // Add event handler
97
- document.removeEventListener('mousemove', Toast._onDragMove);
98
- document.removeEventListener('mouseup', Toast._onDragEnd);
99
-
100
- $(Toast._container).remove();
101
- Toast._container = null;
102
- }
103
-
104
- /**
105
- * Begin drag handler
106
- * @param {Event} e
107
- */
108
- static _onDragStart(e) {
109
- if (e.target && $(e.target).closest('.toast').length) {
110
- let $toast = $(e.target).closest('.toast');
111
- let toast = $toast[0].M_Toast;
112
- toast.panning = true;
113
- Toast._draggedToast = toast;
114
- toast.el.classList.add('panning');
115
- toast.el.style.transition = '';
116
- toast.startingXPos = Toast._xPos(e);
117
- toast.time = Date.now();
118
- toast.xPos = Toast._xPos(e);
119
- }
120
- }
121
-
122
- /**
123
- * Drag move handler
124
- * @param {Event} e
125
- */
126
- static _onDragMove(e) {
127
- if (!!Toast._draggedToast) {
128
- e.preventDefault();
129
- let toast = Toast._draggedToast;
130
- toast.deltaX = Math.abs(toast.xPos - Toast._xPos(e));
131
- toast.xPos = Toast._xPos(e);
132
- toast.velocityX = toast.deltaX / (Date.now() - toast.time);
133
- toast.time = Date.now();
134
-
135
- let totalDeltaX = toast.xPos - toast.startingXPos;
136
- let activationDistance = toast.el.offsetWidth * toast.options.activationPercent;
137
- toast.el.style.transform = `translateX(${totalDeltaX}px)`;
138
- toast.el.style.opacity = 1 - Math.abs(totalDeltaX / activationDistance);
139
- }
140
- }
141
-
142
- /**
143
- * End drag handler
144
- */
145
- static _onDragEnd() {
146
- if (!!Toast._draggedToast) {
147
- let toast = Toast._draggedToast;
148
- toast.panning = false;
149
- toast.el.classList.remove('panning');
150
-
151
- let totalDeltaX = toast.xPos - toast.startingXPos;
152
- let activationDistance = toast.el.offsetWidth * toast.options.activationPercent;
153
- let shouldBeDismissed = Math.abs(totalDeltaX) > activationDistance || toast.velocityX > 1;
154
-
155
- // Remove toast
156
- if (shouldBeDismissed) {
157
- toast.wasSwiped = true;
158
- toast.dismiss();
159
-
160
- // Animate toast back to original position
161
- } else {
162
- toast.el.style.transition = 'transform .2s, opacity .2s';
163
- toast.el.style.transform = '';
164
- toast.el.style.opacity = '';
165
- }
166
- Toast._draggedToast = null;
167
- }
168
- }
169
-
170
- /**
171
- * Get x position of mouse or touch event
172
- * @param {Event} e
173
- */
174
- static _xPos(e) {
175
- if (e.targetTouches && e.targetTouches.length >= 1) {
176
- return e.targetTouches[0].clientX;
177
- }
178
- // mouse event
179
- return e.clientX;
180
- }
181
-
182
- /**
183
- * Remove all toasts
184
- */
185
- static dismissAll() {
186
- for (let toastIndex in Toast._toasts) {
187
- Toast._toasts[toastIndex].dismiss();
188
- }
189
- }
190
-
191
- /**
192
- * Create toast and append it to toast container
193
- */
194
- _createToast() {
195
- let toast = document.createElement('div');
196
- toast.classList.add('toast');
197
-
198
- // Add custom classes onto toast
199
- if (!!this.options.classes.length) {
200
- $(toast).addClass(this.options.classes);
201
- }
202
-
203
- // Set safe text content
204
- toast.textContent = this.message;
205
- if (
206
- typeof HTMLElement === 'object'
207
- ? this.htmlMessage instanceof HTMLElement
208
- : this.htmlMessage &&
209
- typeof this.htmlMessage === 'object' &&
210
- this.htmlMessage !== null &&
211
- this.htmlMessage.nodeType === 1 &&
212
- typeof this.htmlMessage.nodeName === 'string'
213
- ) {
214
- //if the htmlMessage is an HTML node, append it directly
215
- toast.appendChild(this.htmlMessage);
216
- } else if (!!this.htmlMessage.jquery) {
217
- // Check if it is jQuery object, append the node
218
- $(toast).append(this.htmlMessage[0]);
219
- } else {
220
- // Append as unsanitized html;
221
- $(toast).append(this.htmlMessage);
222
- }
223
-
224
- // Append toast
225
- Toast._container.appendChild(toast);
226
- return toast;
227
- }
228
-
229
- /**
230
- * Animate in toast
231
- */
232
- _animateIn() {
233
- // Animate toast in
234
- anim({
235
- targets: this.el,
236
- top: 0,
237
- opacity: 1,
238
- duration: this.options.inDuration,
239
- easing: 'easeOutCubic'
240
- });
241
- }
242
-
243
- /**
244
- * Create setInterval which automatically removes toast when timeRemaining >= 0
245
- * has been reached
246
- */
247
- _setTimer() {
248
- if (this.timeRemaining !== Infinity) {
249
- this.counterInterval = setInterval(() => {
250
- // If toast is not being dragged, decrease its time remaining
251
- if (!this.panning) {
252
- this.timeRemaining -= 20;
253
- }
254
-
255
- // Animate toast out
256
- if (this.timeRemaining <= 0) {
257
- this.dismiss();
258
- }
259
- }, 20);
260
- }
261
- }
262
-
263
- /**
264
- * Dismiss toast with animation
265
- */
266
- dismiss() {
267
- window.clearInterval(this.counterInterval);
268
- let activationDistance = this.el.offsetWidth * this.options.activationPercent;
269
-
270
- if (this.wasSwiped) {
271
- this.el.style.transition = 'transform .05s, opacity .05s';
272
- this.el.style.transform = `translateX(${activationDistance}px)`;
273
- this.el.style.opacity = 0;
274
- }
275
-
276
- anim({
277
- targets: this.el,
278
- opacity: 0,
279
- marginTop: -40,
280
- duration: this.options.outDuration,
281
- easing: 'easeOutExpo',
282
- complete: () => {
283
- // Call the optional callback
284
- if (typeof this.options.completeCallback === 'function') {
285
- this.options.completeCallback();
286
- }
287
- // Remove toast from DOM
288
- this.$el.remove();
289
- Toast._toasts.splice(Toast._toasts.indexOf(this), 1);
290
- if (Toast._toasts.length === 0) {
291
- Toast._removeContainer();
292
- }
293
- }
294
- });
295
- }
296
- }
297
-
298
- /**
299
- * @static
300
- * @memberof Toast
301
- * @type {Array.<Toast>}
302
- */
303
- Toast._toasts = [];
304
-
305
- /**
306
- * @static
307
- * @memberof Toast
308
- */
309
- Toast._container = null;
310
-
311
- /**
312
- * @static
313
- * @memberof Toast
314
- * @type {Toast}
315
- */
316
- Toast._draggedToast = null;
317
-
318
- M.Toast = Toast;
319
- M.toast = function(options) {
320
- return new Toast(options);
321
- };
322
- })(cash, M.anime);
1
+ (function($, anim) {
2
+ 'use strict';
3
+
4
+ let _defaults = {
5
+ html: '',
6
+ unsafeHTML: '',
7
+ text: '',
8
+ displayLength: 4000,
9
+ inDuration: 300,
10
+ outDuration: 375,
11
+ classes: '',
12
+ completeCallback: null,
13
+ activationPercent: 0.8
14
+ };
15
+
16
+ class Toast {
17
+ constructor(options) {
18
+ /**
19
+ * Options for the toast
20
+ * @member Toast#options
21
+ */
22
+ this.options = $.extend({}, Toast.defaults, options);
23
+ this.htmlMessage = this.options.html;
24
+ // Warn when using html
25
+ if (!!this.options.html)
26
+ console.warn(
27
+ 'The html option is deprecated and will be removed in the future. See https://github.com/materializecss/materialize/pull/49'
28
+ );
29
+ // If the new unsafeHTML is used, prefer that
30
+ if (!!this.options.unsafeHTML) {
31
+ this.htmlMessage = this.options.unsafeHTML;
32
+ }
33
+ this.message = this.options.text;
34
+
35
+ /**
36
+ * Describes current pan state toast
37
+ * @type {Boolean}
38
+ */
39
+ this.panning = false;
40
+
41
+ /**
42
+ * Time remaining until toast is removed
43
+ */
44
+ this.timeRemaining = this.options.displayLength;
45
+
46
+ if (Toast._toasts.length === 0) {
47
+ Toast._createContainer();
48
+ }
49
+
50
+ // Create new toast
51
+ Toast._toasts.push(this);
52
+ let toastElement = this._createToast();
53
+ toastElement.M_Toast = this;
54
+ this.el = toastElement;
55
+ this.$el = $(toastElement);
56
+ this._animateIn();
57
+ this._setTimer();
58
+ }
59
+
60
+ static get defaults() {
61
+ return _defaults;
62
+ }
63
+
64
+ /**
65
+ * Get Instance
66
+ */
67
+ static getInstance(el) {
68
+ let domElem = !!el.jquery ? el[0] : el;
69
+ return domElem.M_Toast;
70
+ }
71
+
72
+ /**
73
+ * Append toast container and add event handlers
74
+ */
75
+ static _createContainer() {
76
+ let container = document.createElement('div');
77
+ container.setAttribute('id', 'toast-container');
78
+
79
+ // Add event handler
80
+ container.addEventListener('touchstart', Toast._onDragStart);
81
+ container.addEventListener('touchmove', Toast._onDragMove);
82
+ container.addEventListener('touchend', Toast._onDragEnd);
83
+
84
+ container.addEventListener('mousedown', Toast._onDragStart);
85
+ document.addEventListener('mousemove', Toast._onDragMove);
86
+ document.addEventListener('mouseup', Toast._onDragEnd);
87
+
88
+ document.body.appendChild(container);
89
+ Toast._container = container;
90
+ }
91
+
92
+ /**
93
+ * Remove toast container and event handlers
94
+ */
95
+ static _removeContainer() {
96
+ // Add event handler
97
+ document.removeEventListener('mousemove', Toast._onDragMove);
98
+ document.removeEventListener('mouseup', Toast._onDragEnd);
99
+
100
+ $(Toast._container).remove();
101
+ Toast._container = null;
102
+ }
103
+
104
+ /**
105
+ * Begin drag handler
106
+ * @param {Event} e
107
+ */
108
+ static _onDragStart(e) {
109
+ if (e.target && $(e.target).closest('.toast').length) {
110
+ let $toast = $(e.target).closest('.toast');
111
+ let toast = $toast[0].M_Toast;
112
+ toast.panning = true;
113
+ Toast._draggedToast = toast;
114
+ toast.el.classList.add('panning');
115
+ toast.el.style.transition = '';
116
+ toast.startingXPos = Toast._xPos(e);
117
+ toast.time = Date.now();
118
+ toast.xPos = Toast._xPos(e);
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Drag move handler
124
+ * @param {Event} e
125
+ */
126
+ static _onDragMove(e) {
127
+ if (!!Toast._draggedToast) {
128
+ e.preventDefault();
129
+ let toast = Toast._draggedToast;
130
+ toast.deltaX = Math.abs(toast.xPos - Toast._xPos(e));
131
+ toast.xPos = Toast._xPos(e);
132
+ toast.velocityX = toast.deltaX / (Date.now() - toast.time);
133
+ toast.time = Date.now();
134
+
135
+ let totalDeltaX = toast.xPos - toast.startingXPos;
136
+ let activationDistance = toast.el.offsetWidth * toast.options.activationPercent;
137
+ toast.el.style.transform = `translateX(${totalDeltaX}px)`;
138
+ toast.el.style.opacity = 1 - Math.abs(totalDeltaX / activationDistance);
139
+ }
140
+ }
141
+
142
+ /**
143
+ * End drag handler
144
+ */
145
+ static _onDragEnd() {
146
+ if (!!Toast._draggedToast) {
147
+ let toast = Toast._draggedToast;
148
+ toast.panning = false;
149
+ toast.el.classList.remove('panning');
150
+
151
+ let totalDeltaX = toast.xPos - toast.startingXPos;
152
+ let activationDistance = toast.el.offsetWidth * toast.options.activationPercent;
153
+ let shouldBeDismissed = Math.abs(totalDeltaX) > activationDistance || toast.velocityX > 1;
154
+
155
+ // Remove toast
156
+ if (shouldBeDismissed) {
157
+ toast.wasSwiped = true;
158
+ toast.dismiss();
159
+
160
+ // Animate toast back to original position
161
+ } else {
162
+ toast.el.style.transition = 'transform .2s, opacity .2s';
163
+ toast.el.style.transform = '';
164
+ toast.el.style.opacity = '';
165
+ }
166
+ Toast._draggedToast = null;
167
+ }
168
+ }
169
+
170
+ /**
171
+ * Get x position of mouse or touch event
172
+ * @param {Event} e
173
+ */
174
+ static _xPos(e) {
175
+ if (e.targetTouches && e.targetTouches.length >= 1) {
176
+ return e.targetTouches[0].clientX;
177
+ }
178
+ // mouse event
179
+ return e.clientX;
180
+ }
181
+
182
+ /**
183
+ * Remove all toasts
184
+ */
185
+ static dismissAll() {
186
+ for (let toastIndex in Toast._toasts) {
187
+ Toast._toasts[toastIndex].dismiss();
188
+ }
189
+ }
190
+
191
+ /**
192
+ * Create toast and append it to toast container
193
+ */
194
+ _createToast() {
195
+ let toast = document.createElement('div');
196
+ toast.classList.add('toast');
197
+ toast.setAttribute('role', 'alert');
198
+ toast.setAttribute('aria-live', 'assertive');
199
+ toast.setAttribute('aria-atomic', true);
200
+
201
+ // Add custom classes onto toast
202
+ if (!!this.options.classes.length) {
203
+ $(toast).addClass(this.options.classes);
204
+ }
205
+
206
+ // Set safe text content
207
+ toast.textContent = this.message;
208
+ if (
209
+ typeof HTMLElement === 'object'
210
+ ? this.htmlMessage instanceof HTMLElement
211
+ : this.htmlMessage &&
212
+ typeof this.htmlMessage === 'object' &&
213
+ this.htmlMessage !== null &&
214
+ this.htmlMessage.nodeType === 1 &&
215
+ typeof this.htmlMessage.nodeName === 'string'
216
+ ) {
217
+ //if the htmlMessage is an HTML node, append it directly
218
+ toast.appendChild(this.htmlMessage);
219
+ } else if (!!this.htmlMessage.jquery) {
220
+ // Check if it is jQuery object, append the node
221
+ $(toast).append(this.htmlMessage[0]);
222
+ } else {
223
+ // Append as unsanitized html;
224
+ $(toast).append(this.htmlMessage);
225
+ }
226
+
227
+ // Append toast
228
+ Toast._container.appendChild(toast);
229
+ return toast;
230
+ }
231
+
232
+ /**
233
+ * Animate in toast
234
+ */
235
+ _animateIn() {
236
+ // Animate toast in
237
+ anim({
238
+ targets: this.el,
239
+ top: 0,
240
+ opacity: 1,
241
+ duration: this.options.inDuration,
242
+ easing: 'easeOutCubic'
243
+ });
244
+ }
245
+
246
+ /**
247
+ * Create setInterval which automatically removes toast when timeRemaining >= 0
248
+ * has been reached
249
+ */
250
+ _setTimer() {
251
+ if (this.timeRemaining !== Infinity) {
252
+ this.counterInterval = setInterval(() => {
253
+ // If toast is not being dragged, decrease its time remaining
254
+ if (!this.panning) {
255
+ this.timeRemaining -= 20;
256
+ }
257
+
258
+ // Animate toast out
259
+ if (this.timeRemaining <= 0) {
260
+ this.dismiss();
261
+ }
262
+ }, 20);
263
+ }
264
+ }
265
+
266
+ /**
267
+ * Dismiss toast with animation
268
+ */
269
+ dismiss() {
270
+ window.clearInterval(this.counterInterval);
271
+ let activationDistance = this.el.offsetWidth * this.options.activationPercent;
272
+
273
+ if (this.wasSwiped) {
274
+ this.el.style.transition = 'transform .05s, opacity .05s';
275
+ this.el.style.transform = `translateX(${activationDistance}px)`;
276
+ this.el.style.opacity = 0;
277
+ }
278
+
279
+ anim({
280
+ targets: this.el,
281
+ opacity: 0,
282
+ marginTop: -40,
283
+ duration: this.options.outDuration,
284
+ easing: 'easeOutExpo',
285
+ complete: () => {
286
+ // Call the optional callback
287
+ if (typeof this.options.completeCallback === 'function') {
288
+ this.options.completeCallback();
289
+ }
290
+ // Remove toast from DOM
291
+ this.$el.remove();
292
+ Toast._toasts.splice(Toast._toasts.indexOf(this), 1);
293
+ if (Toast._toasts.length === 0) {
294
+ Toast._removeContainer();
295
+ }
296
+ }
297
+ });
298
+ }
299
+ }
300
+
301
+ /**
302
+ * @static
303
+ * @memberof Toast
304
+ * @type {Array.<Toast>}
305
+ */
306
+ Toast._toasts = [];
307
+
308
+ /**
309
+ * @static
310
+ * @memberof Toast
311
+ */
312
+ Toast._container = null;
313
+
314
+ /**
315
+ * @static
316
+ * @memberof Toast
317
+ * @type {Toast}
318
+ */
319
+ Toast._draggedToast = null;
320
+
321
+ M.Toast = Toast;
322
+ M.toast = function(options) {
323
+ return new Toast(options);
324
+ };
325
+ })(cash, M.anime);