@materializecss/materialize 2.0.3-alpha → 2.0.3-beta
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/Gruntfile.js +14 -109
- package/README.md +1 -1
- package/dist/css/materialize.css +309 -222
- package/dist/css/materialize.min.css +2 -2
- package/dist/js/materialize.js +17 -7
- package/dist/js/materialize.min.js +2 -2
- package/dist/js/materialize.min.js.map +1 -1
- package/dist/src/global.d.ts.map +1 -1
- package/dist/src/tooltip.d.ts +8 -2
- package/dist/src/tooltip.d.ts.map +1 -1
- package/package.json +1 -4
- package/sass/components/_buttons.scss +158 -73
- package/sass/components/_chips.scss +75 -28
- package/sass/components/_global.scss +6 -94
- package/sass/components/_preloader.scss +85 -0
- package/sass/components/_variables.scss +3 -2
- package/sass/components/forms/_range.scss +1 -1
- package/sass/components/forms/_switches.scss +44 -14
- package/src/datepicker.ts +4 -4
- package/src/global.ts +1 -1
- package/src/tooltip.ts +28 -8
package/Gruntfile.js
CHANGED
|
@@ -98,9 +98,6 @@ module.exports = function(grunt) {
|
|
|
98
98
|
min: {
|
|
99
99
|
src: 'dist/css/materialize.min.css'
|
|
100
100
|
},
|
|
101
|
-
gh: {
|
|
102
|
-
src: 'docs/css/ghpages-materialize.css'
|
|
103
|
-
},
|
|
104
101
|
bin: {
|
|
105
102
|
src: 'bin/materialize.css'
|
|
106
103
|
}
|
|
@@ -117,9 +114,9 @@ module.exports = function(grunt) {
|
|
|
117
114
|
|
|
118
115
|
dev_watch: Object.assign({}, webpackConfig, {
|
|
119
116
|
mode: 'development',
|
|
120
|
-
watch: true
|
|
117
|
+
watch: true
|
|
121
118
|
}),
|
|
122
|
-
|
|
119
|
+
|
|
123
120
|
dev_dist: Object.assign({}, webpackConfig, {
|
|
124
121
|
mode: 'development',
|
|
125
122
|
devtool: false,
|
|
@@ -129,8 +126,8 @@ module.exports = function(grunt) {
|
|
|
129
126
|
output: {
|
|
130
127
|
filename: 'materialize.js',
|
|
131
128
|
path: path.resolve(__dirname, 'dist/js'),
|
|
132
|
-
libraryTarget: 'umd',
|
|
133
|
-
globalObject: 'this'
|
|
129
|
+
libraryTarget: 'umd',
|
|
130
|
+
globalObject: 'this'
|
|
134
131
|
}
|
|
135
132
|
}),
|
|
136
133
|
|
|
@@ -146,24 +143,7 @@ module.exports = function(grunt) {
|
|
|
146
143
|
libraryTarget: 'umd',
|
|
147
144
|
globalObject: 'this'
|
|
148
145
|
}
|
|
149
|
-
})
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
browserSync: {
|
|
153
|
-
bsFiles: ['bin/*', 'css/ghpages-materialize.css', '!**/node_modules/**/*'],
|
|
154
|
-
options: {
|
|
155
|
-
server: {
|
|
156
|
-
baseDir: './docs/' // make server from root dir
|
|
157
|
-
},
|
|
158
|
-
port: 8000,
|
|
159
|
-
ui: {
|
|
160
|
-
port: 8080,
|
|
161
|
-
weinre: {
|
|
162
|
-
port: 9090
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
open: false
|
|
166
|
-
}
|
|
146
|
+
})
|
|
167
147
|
},
|
|
168
148
|
|
|
169
149
|
compress: {
|
|
@@ -186,7 +166,7 @@ module.exports = function(grunt) {
|
|
|
186
166
|
files: [
|
|
187
167
|
{ expand: true, cwd: 'sass/', src: ['materialize.scss'], dest: 'materialize-src/sass/' },
|
|
188
168
|
{ expand: true, cwd: 'sass/', src: ['components/**/*'], dest: 'materialize-src/sass/' },
|
|
189
|
-
{ expand: true, cwd: 'src/',
|
|
169
|
+
{ expand: true, cwd: 'src/', src: ['**/*'], dest: 'materialize-src/ts/' },
|
|
190
170
|
{ expand: true, cwd: 'dist/js/', src: ['**/*'], dest: 'materialize-src/js/bin/' },
|
|
191
171
|
{ expand: true, cwd: './', src: ['LICENSE', 'README.md'], dest: 'materialize-src/' }
|
|
192
172
|
]
|
|
@@ -249,43 +229,7 @@ module.exports = function(grunt) {
|
|
|
249
229
|
}
|
|
250
230
|
},
|
|
251
231
|
|
|
252
|
-
pug: {
|
|
253
|
-
compile: {
|
|
254
|
-
options: {
|
|
255
|
-
pretty: true,
|
|
256
|
-
data: {
|
|
257
|
-
debug: false
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
files: [{
|
|
261
|
-
expand: true,
|
|
262
|
-
cwd: 'pug/',
|
|
263
|
-
src: ['*.pug', '!**/pug/includes/*.*'],
|
|
264
|
-
dest: 'docs/',
|
|
265
|
-
rename: function (dest, src) {
|
|
266
|
-
return dest + src.split('.', 2)[0] + '.html';
|
|
267
|
-
}
|
|
268
|
-
}]
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
|
|
272
232
|
watch: {
|
|
273
|
-
pug: {
|
|
274
|
-
files: ['pug/**/*'],
|
|
275
|
-
tasks: ['pug_compile'],
|
|
276
|
-
options: {
|
|
277
|
-
interrupt: false,
|
|
278
|
-
spawn: false
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
copydocs: {
|
|
282
|
-
files: ['bin/*.js'],
|
|
283
|
-
tasks: ['copy:docs_js'],
|
|
284
|
-
options: {
|
|
285
|
-
interrupt: false,
|
|
286
|
-
spawn: false
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
233
|
sass: {
|
|
290
234
|
files: ['sass/**/*'],
|
|
291
235
|
tasks: ['sass_compile'],
|
|
@@ -302,22 +246,14 @@ module.exports = function(grunt) {
|
|
|
302
246
|
limit: 10
|
|
303
247
|
},
|
|
304
248
|
monitor: {
|
|
305
|
-
tasks: [
|
|
306
|
-
'webpack:dev_watch',
|
|
307
|
-
'pug_compile',
|
|
308
|
-
'sass_compile',
|
|
309
|
-
'watch:pug',
|
|
310
|
-
'watch:sass',
|
|
311
|
-
'watch:copydocs',
|
|
312
|
-
'server'
|
|
313
|
-
]
|
|
249
|
+
tasks: ['webpack:dev_watch', 'sass_compile', 'watch:sass']
|
|
314
250
|
}
|
|
315
251
|
},
|
|
316
252
|
|
|
317
253
|
// Replace text to update the version string
|
|
318
254
|
replace: {
|
|
319
255
|
version: {
|
|
320
|
-
src: ['bower.json', 'package.js', '
|
|
256
|
+
src: ['bower.json', 'package.js', 'src/global.ts'],
|
|
321
257
|
overwrite: true,
|
|
322
258
|
replacements: [
|
|
323
259
|
{
|
|
@@ -335,16 +271,6 @@ module.exports = function(grunt) {
|
|
|
335
271
|
to: '"version": "' + grunt.option('newver')
|
|
336
272
|
}
|
|
337
273
|
]
|
|
338
|
-
},
|
|
339
|
-
docs: {
|
|
340
|
-
src: ['.gitignore'],
|
|
341
|
-
overwrite: true,
|
|
342
|
-
replacements: [
|
|
343
|
-
{
|
|
344
|
-
from: '/docs/*.html',
|
|
345
|
-
to: ''
|
|
346
|
-
}
|
|
347
|
-
]
|
|
348
274
|
}
|
|
349
275
|
},
|
|
350
276
|
|
|
@@ -404,15 +330,6 @@ module.exports = function(grunt) {
|
|
|
404
330
|
}
|
|
405
331
|
}
|
|
406
332
|
}
|
|
407
|
-
},
|
|
408
|
-
|
|
409
|
-
copy: {
|
|
410
|
-
docs_js: {
|
|
411
|
-
files: [{ src: 'bin/materialize.js', dest: 'docs/js/materialize.js' }]
|
|
412
|
-
},
|
|
413
|
-
docs_templates: {
|
|
414
|
-
files: [{ src: 'templates/**', dest: 'docs/' }]
|
|
415
|
-
}
|
|
416
333
|
}
|
|
417
334
|
};
|
|
418
335
|
|
|
@@ -422,7 +339,6 @@ module.exports = function(grunt) {
|
|
|
422
339
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
423
340
|
grunt.loadNpmTasks('grunt-sass');
|
|
424
341
|
grunt.loadNpmTasks('grunt-contrib-compress');
|
|
425
|
-
grunt.loadNpmTasks('grunt-contrib-pug');
|
|
426
342
|
grunt.loadNpmTasks('grunt-concurrent');
|
|
427
343
|
grunt.loadNpmTasks('grunt-text-replace');
|
|
428
344
|
grunt.loadNpmTasks('grunt-banner');
|
|
@@ -432,7 +348,6 @@ module.exports = function(grunt) {
|
|
|
432
348
|
grunt.loadNpmTasks('grunt-postcss');
|
|
433
349
|
grunt.loadNpmTasks('grunt-webpack');
|
|
434
350
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
|
435
|
-
grunt.loadNpmTasks('grunt-contrib-copy');
|
|
436
351
|
|
|
437
352
|
// define tasks
|
|
438
353
|
grunt.registerTask('release', [
|
|
@@ -451,15 +366,14 @@ module.exports = function(grunt) {
|
|
|
451
366
|
'replace:version', // again because of cdn
|
|
452
367
|
'replace:package_json',
|
|
453
368
|
'rename:rename_src',
|
|
454
|
-
'rename:rename_compiled'
|
|
455
|
-
]);
|
|
456
|
-
|
|
457
|
-
grunt.registerTask('
|
|
458
|
-
grunt.registerTask('sass_compile', ['sass:gh', 'sass:bin', 'postcss:gh', 'postcss:bin']);
|
|
459
|
-
grunt.registerTask('server', ['browserSync']);
|
|
369
|
+
'rename:rename_compiled'
|
|
370
|
+
]);
|
|
371
|
+
|
|
372
|
+
grunt.registerTask('sass_compile', ['sass:gh', 'sass:bin', 'postcss:bin']);
|
|
460
373
|
grunt.registerTask('monitor', ['concurrent:monitor']); // DEV
|
|
461
|
-
grunt.registerTask('test', ['
|
|
374
|
+
grunt.registerTask('test', ['webpack:dev', 'sass_compile', 'connect', 'jasmine']);
|
|
462
375
|
grunt.registerTask('jas_test', ['connect', 'jasmine']);
|
|
376
|
+
|
|
463
377
|
grunt.registerTask('test_repeat', function() {
|
|
464
378
|
const tasks = ['connect'];
|
|
465
379
|
const n = 30;
|
|
@@ -468,13 +382,4 @@ module.exports = function(grunt) {
|
|
|
468
382
|
}
|
|
469
383
|
grunt.task.run(tasks);
|
|
470
384
|
});
|
|
471
|
-
grunt.registerTask('docs', [
|
|
472
|
-
'js_compile',
|
|
473
|
-
'copy:docs_js',
|
|
474
|
-
'copy:docs_templates',
|
|
475
|
-
'sass:gh',
|
|
476
|
-
'postcss:gh',
|
|
477
|
-
'pug',
|
|
478
|
-
'replace:docs'
|
|
479
|
-
]);
|
|
480
385
|
};
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://materializecss.github.io/materialize/">
|
|
3
|
-
<img src="https://materializecss.github.io/materialize/
|
|
3
|
+
<img src="https://materializecss.github.io/materialize/images/materialize.svg" width="200">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|