mithril-materialized 1.4.2 → 2.0.0-beta.10

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 (103) hide show
  1. package/README.md +286 -306
  2. package/dist/advanced.css +1888 -0
  3. package/dist/autocomplete.d.ts +12 -4
  4. package/dist/breadcrumb.d.ts +53 -0
  5. package/dist/button.d.ts +10 -10
  6. package/dist/carousel.d.ts +26 -7
  7. package/dist/chip.d.ts +2 -2
  8. package/dist/code-block.d.ts +2 -3
  9. package/dist/collapsible.d.ts +12 -7
  10. package/dist/collection.d.ts +8 -8
  11. package/dist/components.css +2310 -0
  12. package/dist/core.css +3402 -0
  13. package/dist/datepicker.d.ts +66 -0
  14. package/dist/dropdown.d.ts +5 -5
  15. package/dist/file-upload.d.ts +34 -0
  16. package/dist/floating-action-button.d.ts +9 -5
  17. package/dist/forms.css +2284 -0
  18. package/dist/icon.d.ts +2 -2
  19. package/dist/index.css +9284 -2
  20. package/dist/index.d.ts +13 -3
  21. package/dist/index.esm.js +6188 -2
  22. package/dist/index.js +6263 -2
  23. package/dist/index.min.css +8 -0
  24. package/dist/index.umd.js +6267 -2
  25. package/dist/input-options.d.ts +3 -1
  26. package/dist/input.d.ts +17 -12
  27. package/dist/label.d.ts +6 -5
  28. package/dist/material-box.d.ts +22 -4
  29. package/dist/material-icon.d.ts +14 -0
  30. package/dist/modal.d.ts +23 -7
  31. package/dist/option.d.ts +12 -11
  32. package/dist/pagination.d.ts +5 -9
  33. package/dist/parallax.d.ts +8 -6
  34. package/dist/pickers.css +487 -0
  35. package/dist/pushpin.d.ts +32 -0
  36. package/dist/radio.d.ts +10 -6
  37. package/dist/select.d.ts +5 -5
  38. package/dist/sidenav.d.ts +76 -0
  39. package/dist/switch.d.ts +4 -5
  40. package/dist/tabs.d.ts +18 -7
  41. package/dist/theme-switcher.d.ts +49 -0
  42. package/dist/timepicker.d.ts +42 -0
  43. package/dist/toast.d.ts +45 -0
  44. package/dist/tooltip.d.ts +59 -0
  45. package/dist/utilities.css +3197 -0
  46. package/dist/utils.d.ts +17 -0
  47. package/dist/wizard.d.ts +58 -0
  48. package/package.json +47 -14
  49. package/sass/components/_badges.scss +59 -0
  50. package/sass/components/_breadcrumb.scss +248 -0
  51. package/sass/components/_buttons.scss +327 -0
  52. package/sass/components/_cards.scss +197 -0
  53. package/sass/components/_carousel.scss +92 -0
  54. package/sass/components/_chips.scss +92 -0
  55. package/sass/components/_collapsible.scss +94 -0
  56. package/sass/components/_color-classes.scss +34 -0
  57. package/sass/components/_color-variables.scss +371 -0
  58. package/sass/components/_datepicker.scss +282 -0
  59. package/sass/components/_dropdown.scss +90 -0
  60. package/sass/components/_file-upload.scss +228 -0
  61. package/sass/components/_global.scss +777 -0
  62. package/sass/components/_grid.scss +160 -0
  63. package/sass/components/_icons-material-design.scss +5 -0
  64. package/sass/components/_materialbox.scss +43 -0
  65. package/sass/components/_modal.scss +100 -0
  66. package/sass/components/_navbar.scss +219 -0
  67. package/sass/components/_normalize.scss +447 -0
  68. package/sass/components/_preloader.scss +336 -0
  69. package/sass/components/_pulse.scss +34 -0
  70. package/sass/components/_sidenav.scss +370 -0
  71. package/sass/components/_slider.scss +94 -0
  72. package/sass/components/_table_of_contents.scss +36 -0
  73. package/sass/components/_tabs.scss +103 -0
  74. package/sass/components/_tapTarget.scss +105 -0
  75. package/sass/components/_theme-switcher.scss +120 -0
  76. package/sass/components/_theme-variables.scss +205 -0
  77. package/sass/components/_timepicker.scss +262 -0
  78. package/sass/components/_toast.scss +61 -0
  79. package/sass/components/_tooltip.scss +32 -0
  80. package/sass/components/_transitions.scss +13 -0
  81. package/sass/components/_typography.scss +61 -0
  82. package/sass/components/_variables.scss +352 -0
  83. package/sass/components/_waves.scss +114 -0
  84. package/sass/components/_wizard.scss +416 -0
  85. package/sass/components/forms/_checkboxes.scss +203 -0
  86. package/sass/components/forms/_file-input.scss +50 -0
  87. package/sass/components/forms/_form-groups.scss +28 -0
  88. package/sass/components/forms/_forms.scss +24 -0
  89. package/sass/components/forms/_input-fields.scss +383 -0
  90. package/sass/components/forms/_radio-buttons.scss +118 -0
  91. package/sass/components/forms/_range.scss +164 -0
  92. package/sass/components/forms/_select.scss +193 -0
  93. package/sass/components/forms/_switches.scss +92 -0
  94. package/sass/materialize.scss +48 -0
  95. package/dist/index.css.map +0 -1
  96. package/dist/index.esm.js.map +0 -1
  97. package/dist/index.js.map +0 -1
  98. package/dist/index.modern.js +0 -2
  99. package/dist/index.modern.js.map +0 -1
  100. package/dist/index.umd.js.map +0 -1
  101. package/dist/map-editor.d.ts +0 -63
  102. package/dist/pickers.d.ts +0 -6
  103. package/dist/timeline.d.ts +0 -24
@@ -0,0 +1,336 @@
1
+ @use "variables";
2
+
3
+ /*
4
+ @license
5
+ Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
6
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
7
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
8
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9
+ Code distributed by Google as part of the polymer project is also
10
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
11
+ */
12
+
13
+ /**************************/
14
+ /* STYLES FOR THE SPINNER */
15
+ /**************************/
16
+
17
+ /*
18
+ * Constants:
19
+ * STROKEWIDTH = 3px
20
+ * ARCSIZE = 270 degrees (amount of circle the arc takes up)
21
+ * ARCTIME = 1333ms (time it takes to expand and contract arc)
22
+ * ARCSTARTROT = 216 degrees (how much the start location of the arc
23
+ * should rotate each time, 216 gives us a
24
+ * 5 pointed star shape (it's 360/5 * 3).
25
+ * For a 7 pointed star, we might do
26
+ * 360/7 * 3 = 154.286)
27
+ * CONTAINERWIDTH = 28px
28
+ * SHRINK_TIME = 400ms
29
+ */
30
+
31
+
32
+ .preloader-wrapper {
33
+ display: inline-block;
34
+ position: relative;
35
+ width: 50px;
36
+ height: 50px;
37
+
38
+ &.small {
39
+ width: 36px;
40
+ height: 36px;
41
+ }
42
+
43
+ &.big {
44
+ width: 64px;
45
+ height: 64px;
46
+ }
47
+
48
+ &.active {
49
+ /* duration: 360 * ARCTIME / (ARCSTARTROT + (360-ARCSIZE)) */
50
+ -webkit-animation: container-rotate 1568ms linear infinite;
51
+ animation: container-rotate 1568ms linear infinite;
52
+ }
53
+ }
54
+
55
+ @-webkit-keyframes container-rotate {
56
+ to { -webkit-transform: rotate(360deg) }
57
+ }
58
+
59
+ @keyframes container-rotate {
60
+ to { transform: rotate(360deg) }
61
+ }
62
+
63
+ .spinner-layer {
64
+ position: absolute;
65
+ width: 100%;
66
+ height: 100%;
67
+ opacity: 0;
68
+ border-color: variables.$spinner-default-color;
69
+ }
70
+
71
+ .spinner-blue,
72
+ .spinner-blue-only {
73
+ border-color: #4285f4;
74
+ }
75
+
76
+ .spinner-red,
77
+ .spinner-red-only {
78
+ border-color: #db4437;
79
+ }
80
+
81
+ .spinner-yellow,
82
+ .spinner-yellow-only {
83
+ border-color: #f4b400;
84
+ }
85
+
86
+ .spinner-green,
87
+ .spinner-green-only {
88
+ border-color: #0f9d58;
89
+ }
90
+
91
+ /**
92
+ * IMPORTANT NOTE ABOUT CSS ANIMATION PROPERTIES (keanulee):
93
+ *
94
+ * iOS Safari (tested on iOS 8.1) does not handle animation-delay very well - it doesn't
95
+ * guarantee that the animation will start _exactly_ after that value. So we avoid using
96
+ * animation-delay and instead set custom keyframes for each color (as redundant as it
97
+ * seems).
98
+ *
99
+ * We write out each animation in full (instead of separating animation-name,
100
+ * animation-duration, etc.) because under the polyfill, Safari does not recognize those
101
+ * specific properties properly, treats them as -webkit-animation, and overrides the
102
+ * other animation rules. See https://github.com/Polymer/platform/issues/53.
103
+ */
104
+ .active .spinner-layer.spinner-blue {
105
+ /* durations: 4 * ARCTIME */
106
+ -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, blue-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
107
+ animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, blue-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
108
+ }
109
+
110
+ .active .spinner-layer.spinner-red {
111
+ /* durations: 4 * ARCTIME */
112
+ -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, red-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
113
+ animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, red-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
114
+ }
115
+
116
+ .active .spinner-layer.spinner-yellow {
117
+ /* durations: 4 * ARCTIME */
118
+ -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, yellow-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
119
+ animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, yellow-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
120
+ }
121
+
122
+ .active .spinner-layer.spinner-green {
123
+ /* durations: 4 * ARCTIME */
124
+ -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, green-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
125
+ animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both, green-fade-in-out 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
126
+ }
127
+
128
+ .active .spinner-layer,
129
+ .active .spinner-layer.spinner-blue-only,
130
+ .active .spinner-layer.spinner-red-only,
131
+ .active .spinner-layer.spinner-yellow-only,
132
+ .active .spinner-layer.spinner-green-only {
133
+ /* durations: 4 * ARCTIME */
134
+ opacity: 1;
135
+ -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
136
+ animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
137
+ }
138
+
139
+ @-webkit-keyframes fill-unfill-rotate {
140
+ 12.5% { -webkit-transform: rotate(135deg); } /* 0.5 * ARCSIZE */
141
+ 25% { -webkit-transform: rotate(270deg); } /* 1 * ARCSIZE */
142
+ 37.5% { -webkit-transform: rotate(405deg); } /* 1.5 * ARCSIZE */
143
+ 50% { -webkit-transform: rotate(540deg); } /* 2 * ARCSIZE */
144
+ 62.5% { -webkit-transform: rotate(675deg); } /* 2.5 * ARCSIZE */
145
+ 75% { -webkit-transform: rotate(810deg); } /* 3 * ARCSIZE */
146
+ 87.5% { -webkit-transform: rotate(945deg); } /* 3.5 * ARCSIZE */
147
+ to { -webkit-transform: rotate(1080deg); } /* 4 * ARCSIZE */
148
+ }
149
+
150
+ @keyframes fill-unfill-rotate {
151
+ 12.5% { transform: rotate(135deg); } /* 0.5 * ARCSIZE */
152
+ 25% { transform: rotate(270deg); } /* 1 * ARCSIZE */
153
+ 37.5% { transform: rotate(405deg); } /* 1.5 * ARCSIZE */
154
+ 50% { transform: rotate(540deg); } /* 2 * ARCSIZE */
155
+ 62.5% { transform: rotate(675deg); } /* 2.5 * ARCSIZE */
156
+ 75% { transform: rotate(810deg); } /* 3 * ARCSIZE */
157
+ 87.5% { transform: rotate(945deg); } /* 3.5 * ARCSIZE */
158
+ to { transform: rotate(1080deg); } /* 4 * ARCSIZE */
159
+ }
160
+
161
+ @-webkit-keyframes blue-fade-in-out {
162
+ from { opacity: 1; }
163
+ 25% { opacity: 1; }
164
+ 26% { opacity: 0; }
165
+ 89% { opacity: 0; }
166
+ 90% { opacity: 1; }
167
+ 100% { opacity: 1; }
168
+ }
169
+
170
+ @keyframes blue-fade-in-out {
171
+ from { opacity: 1; }
172
+ 25% { opacity: 1; }
173
+ 26% { opacity: 0; }
174
+ 89% { opacity: 0; }
175
+ 90% { opacity: 1; }
176
+ 100% { opacity: 1; }
177
+ }
178
+
179
+ @-webkit-keyframes red-fade-in-out {
180
+ from { opacity: 0; }
181
+ 15% { opacity: 0; }
182
+ 25% { opacity: 1; }
183
+ 50% { opacity: 1; }
184
+ 51% { opacity: 0; }
185
+ }
186
+
187
+ @keyframes red-fade-in-out {
188
+ from { opacity: 0; }
189
+ 15% { opacity: 0; }
190
+ 25% { opacity: 1; }
191
+ 50% { opacity: 1; }
192
+ 51% { opacity: 0; }
193
+ }
194
+
195
+ @-webkit-keyframes yellow-fade-in-out {
196
+ from { opacity: 0; }
197
+ 40% { opacity: 0; }
198
+ 50% { opacity: 1; }
199
+ 75% { opacity: 1; }
200
+ 76% { opacity: 0; }
201
+ }
202
+
203
+ @keyframes yellow-fade-in-out {
204
+ from { opacity: 0; }
205
+ 40% { opacity: 0; }
206
+ 50% { opacity: 1; }
207
+ 75% { opacity: 1; }
208
+ 76% { opacity: 0; }
209
+ }
210
+
211
+ @-webkit-keyframes green-fade-in-out {
212
+ from { opacity: 0; }
213
+ 65% { opacity: 0; }
214
+ 75% { opacity: 1; }
215
+ 90% { opacity: 1; }
216
+ 100% { opacity: 0; }
217
+ }
218
+
219
+ @keyframes green-fade-in-out {
220
+ from { opacity: 0; }
221
+ 65% { opacity: 0; }
222
+ 75% { opacity: 1; }
223
+ 90% { opacity: 1; }
224
+ 100% { opacity: 0; }
225
+ }
226
+
227
+ /**
228
+ * Patch the gap that appear between the two adjacent div.circle-clipper while the
229
+ * spinner is rotating (appears on Chrome 38, Safari 7.1, and IE 11).
230
+ */
231
+ .gap-patch {
232
+ position: absolute;
233
+ top: 0;
234
+ left: 45%;
235
+ width: 10%;
236
+ height: 100%;
237
+ overflow: hidden;
238
+ border-color: inherit;
239
+ }
240
+
241
+ .gap-patch .circle {
242
+ width: 1000%;
243
+ left: -450%;
244
+ }
245
+
246
+ .circle-clipper {
247
+ display: inline-block;
248
+ position: relative;
249
+ width: 50%;
250
+ height: 100%;
251
+ overflow: hidden;
252
+ border-color: inherit;
253
+
254
+ .circle {
255
+ width: 200%;
256
+ height: 100%;
257
+ border-width: 3px; /* STROKEWIDTH */
258
+ border-style: solid;
259
+ border-color: inherit;
260
+ border-bottom-color: transparent !important;
261
+ border-radius: 50%;
262
+ -webkit-animation: none;
263
+ animation: none;
264
+ position: absolute;
265
+ top: 0;
266
+ right: 0;
267
+ bottom: 0;
268
+ }
269
+
270
+ &.left .circle {
271
+ left: 0;
272
+ border-right-color: transparent !important;
273
+ -webkit-transform: rotate(129deg);
274
+ transform: rotate(129deg);
275
+ }
276
+ &.right .circle {
277
+ left: -100%;
278
+ border-left-color: transparent !important;
279
+ -webkit-transform: rotate(-129deg);
280
+ transform: rotate(-129deg);
281
+ }
282
+ }
283
+
284
+
285
+
286
+ .active .circle-clipper.left .circle {
287
+ /* duration: ARCTIME */
288
+ -webkit-animation: left-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
289
+ animation: left-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
290
+ }
291
+
292
+ .active .circle-clipper.right .circle {
293
+ /* duration: ARCTIME */
294
+ -webkit-animation: right-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
295
+ animation: right-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
296
+ }
297
+
298
+ @-webkit-keyframes left-spin {
299
+ from { -webkit-transform: rotate(130deg); }
300
+ 50% { -webkit-transform: rotate(-5deg); }
301
+ to { -webkit-transform: rotate(130deg); }
302
+ }
303
+
304
+ @keyframes left-spin {
305
+ from { transform: rotate(130deg); }
306
+ 50% { transform: rotate(-5deg); }
307
+ to { transform: rotate(130deg); }
308
+ }
309
+
310
+ @-webkit-keyframes right-spin {
311
+ from { -webkit-transform: rotate(-130deg); }
312
+ 50% { -webkit-transform: rotate(5deg); }
313
+ to { -webkit-transform: rotate(-130deg); }
314
+ }
315
+
316
+ @keyframes right-spin {
317
+ from { transform: rotate(-130deg); }
318
+ 50% { transform: rotate(5deg); }
319
+ to { transform: rotate(-130deg); }
320
+ }
321
+
322
+ #spinnerContainer.cooldown {
323
+ /* duration: SHRINK_TIME */
324
+ -webkit-animation: container-rotate 1568ms linear infinite, fade-out 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
325
+ animation: container-rotate 1568ms linear infinite, fade-out 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
326
+ }
327
+
328
+ @-webkit-keyframes fade-out {
329
+ from { opacity: 1; }
330
+ to { opacity: 0; }
331
+ }
332
+
333
+ @keyframes fade-out {
334
+ from { opacity: 1; }
335
+ to { opacity: 0; }
336
+ }
@@ -0,0 +1,34 @@
1
+ .pulse {
2
+ &::before {
3
+ content: '';
4
+ display: block;
5
+ position: absolute;
6
+ width: 100%;
7
+ height: 100%;
8
+ top: 0;
9
+ left: 0;
10
+ background-color: inherit;
11
+ border-radius: inherit;
12
+ transition: opacity .3s, transform .3s;
13
+ animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
14
+ z-index: -1;
15
+ }
16
+
17
+ overflow: visible;
18
+ position: relative;
19
+ }
20
+
21
+ @keyframes pulse-animation {
22
+ 0% {
23
+ opacity: 1;
24
+ transform: scale(1);
25
+ }
26
+ 50% {
27
+ opacity: 0;
28
+ transform: scale(1.5);
29
+ }
30
+ 100% {
31
+ opacity: 0;
32
+ transform: scale(1.5);
33
+ }
34
+ }