Skip to content

Commit bf29da7

Browse files
authored
Merge pull request #368 from materializecss/release-2.0.1-alpha
Release 2.0.1 alpha
2 parents d2bdbdd + 12d49db commit bf29da7

12 files changed

+9005
-27
lines changed

dist/css/materialize.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Materialize v2.0.0-alpha (https://materializecss.github.io/materialize)
2+
* Materialize v2.0.1-alpha (https://materializecss.github.io/materialize)
33
* Copyright 2014-2023 Materialize
44
* MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
55
*/

dist/css/materialize.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/materialize.js

+26-13
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
/*!
2-
* Materialize v2.0.0-alpha (https://materializecss.github.io/materialize)
2+
* Materialize v2.0.1-alpha (https://materializecss.github.io/materialize)
33
* Copyright 2014-2023 Materialize
44
* MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
55
*/
6-
var M;
7-
/******/ (() => { // webpackBootstrap
6+
(function webpackUniversalModuleDefinition(root, factory) {
7+
if(typeof exports === 'object' && typeof module === 'object')
8+
module.exports = factory();
9+
else if(typeof define === 'function' && define.amd)
10+
define([], factory);
11+
else {
12+
var a = factory();
13+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
14+
}
15+
})(this, () => {
16+
return /******/ (() => { // webpackBootstrap
817
/******/ "use strict";
918
/******/ var __webpack_modules__ = ({
1019

@@ -4589,7 +4598,7 @@ exports.Forms = Forms;
45894598
/*!***********************!*\
45904599
!*** ./src/global.ts ***!
45914600
\***********************/
4592-
/***/ ((module, exports, __webpack_require__) => {
4601+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
45934602

45944603

45954604
var _a;
@@ -4876,7 +4885,7 @@ class M {
48764885
}
48774886
exports.M = M;
48784887
_a = M;
4879-
M.version = '2.0.0-alpha';
4888+
M.version = '2.0.1-alpha';
48804889
M.keys = {
48814890
TAB: 9,
48824891
ENTER: 13,
@@ -4941,7 +4950,7 @@ M.keyDown = false;
49414950
waves_1.Waves.Init();
49424951
range_1.Range.Init();
49434952
})();
4944-
module.exports = M;
4953+
exports["default"] = M;
49454954

49464955

49474956
/***/ }),
@@ -7424,7 +7433,8 @@ class Tabs extends component_1.Component {
74247433
const _oldContent = this._content;
74257434
// Update the variables with the new link and content
74267435
this._activeTabLink = tabLink;
7427-
this._content = document.querySelector(tabLink.hash);
7436+
if (tabLink.hash)
7437+
this._content = document.querySelector(tabLink.hash);
74287438
this._tabLinks = this.el.querySelectorAll('li.tab > a');
74297439
// Make the tab active
74307440
this._activeTabLink.classList.add('active');
@@ -7477,7 +7487,7 @@ class Tabs extends component_1.Component {
74777487
Array.from(this._tabLinks).forEach((a) => a.classList.remove('active'));
74787488
this._activeTabLink.classList.add('active');
74797489
this._index = Math.max(Array.from(this._tabLinks).indexOf(this._activeTabLink), 0);
7480-
if (this._activeTabLink) {
7490+
if (this._activeTabLink && this._activeTabLink.hash) {
74817491
this._content = document.querySelector(this._activeTabLink.hash);
74827492
this._content.classList.add('active');
74837493
}
@@ -7488,9 +7498,11 @@ class Tabs extends component_1.Component {
74887498
this.options.swipeable = false;
74897499
const tabsContent = [];
74907500
this._tabLinks.forEach(a => {
7491-
const currContent = document.querySelector(a.hash);
7492-
currContent.classList.add('carousel-item');
7493-
tabsContent.push(currContent);
7501+
if (a.hash) {
7502+
const currContent = document.querySelector(a.hash);
7503+
currContent.classList.add('carousel-item');
7504+
tabsContent.push(currContent);
7505+
}
74947506
});
74957507
// Create Carousel-Wrapper around Tab-Contents
74967508
const tabsWrapper = document.createElement('div');
@@ -9036,7 +9048,8 @@ exports.Waves = Waves;
90369048
/******/ // Load entry module and return exports
90379049
/******/ // This entry module is referenced by other modules so it can't be inlined
90389050
/******/ var __webpack_exports__ = __webpack_require__("./src/global.ts");
9039-
/******/ M = __webpack_exports__;
90409051
/******/
9052+
/******/ return __webpack_exports__;
90419053
/******/ })()
9042-
;
9054+
;
9055+
});

dist/js/materialize.min.js

+8,967-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/materialize.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Builds Materialize distribution packages",
44
"author": "Alvin Wang, Alan Chang",
55
"homepage": "https://materializecss.github.io/materialize/",
6-
"version": "2.0.0-alpha",
6+
"version": "2.0.1-alpha",
77
"main": "dist/js/materialize.js",
88
"style": "dist/css/materialize.css",
99
"sass": "sass/materialize.scss",

pug/contents/getting_started_content.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ <h3 class="header">Download</h3>
2323
<div class="col s12 m6">
2424
<h5>Materialize</h5>
2525
<p>This is the standard version that comes with both the minified and unminified CSS and JavaScript files. This option requires little to no setup. Use this if you are unfamiliar with Sass.</p>
26-
<a id="download-source" class="btn waves-effect waves-light" href="https://github.com/materializecss/materialize/releases/download/2.0.0-alpha/materialize-v2.0.0-alpha.zip">Materialize<i class="material-icons right">file_download</i></a>
26+
<a id="download-source" class="btn waves-effect waves-light" href="https://github.com/materializecss/materialize/releases/download/2.0.1-alpha/materialize-v2.0.1-alpha.zip">Materialize<i class="material-icons right">file_download</i></a>
2727
</div>
2828
<div class="col s12 m6">
2929
<h5>Sass</h5>
3030
<p>This version contains the source SCSS files. By choosing this version you have more control over which components to include. You will need a Sass compiler if you choose this option.</p>
31-
<a id="download-sass" class="btn waves-effect waves-light" href="https://github.com/materializecss/materialize/releases/download/2.0.0-alpha/materialize-src-v2.0.0-alpha.zip">Source<i class="material-icons right">file_download</i></a>
31+
<a id="download-sass" class="btn waves-effect waves-light" href="https://github.com/materializecss/materialize/releases/download/2.0.1-alpha/materialize-src-v2.0.1-alpha.zip">Source<i class="material-icons right">file_download</i></a>
3232
</div>
3333
</div>
3434

@@ -51,10 +51,10 @@ <h5>CDN</h5>
5151
<i class="material-icons copyButton">content_copy</i>
5252
<code class="language-markup copiedText">
5353
&lt;!-- Compiled and minified CSS -->
54-
&lt;link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@materializecss/materialize@2.0.0-alpha/dist/css/materialize.min.css">
54+
&lt;link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@materializecss/materialize@2.0.1-alpha/dist/css/materialize.min.css">
5555

5656
&lt;!-- Compiled and minified JavaScript -->
57-
&lt;script src="https://cdn.jsdelivr.net/npm/@materializecss/materialize@2.0.0-alpha/dist/js/materialize.min.js">&lt;/script>
57+
&lt;script src="https://cdn.jsdelivr.net/npm/@materializecss/materialize@2.0.1-alpha/dist/js/materialize.min.js">&lt;/script>
5858
</code></pre>
5959
</div>
6060
<div class="col s12">

pug/contents/index_content.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="s12 m10 offset-m1">
88
<img id="logo" src="res/materialize.svg" style="height: 100px;" alt="Materialize"/>
99
<h1 class="header white-text" style="margin-bottom: 0;">Materialize</h1>
10-
<a class="current-version-number white-text" target="_blank" href="https://github.com/materializecss/materialize">2.0.0-alpha</a>
10+
<a class="current-version-number white-text" target="_blank" href="https://github.com/materializecss/materialize">2.0.1-alpha</a>
1111
</div>
1212

1313
<div class="s12 m8 offset-m2">

pug/includes/_navbar.pug

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ header
4141
object#front-page-logo(type='image/svg+xml', data='res/materialize.svg') Your browser does not support SVG
4242

4343
li.version
44-
a.dropdown-trigger(href='#' data-target='version-dropdown') 2.0.0-alpha
44+
a.dropdown-trigger(href='#' data-target='version-dropdown') 2.0.1-alpha
4545
<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg>
4646
ul#version-dropdown.dropdown-content
4747
li
48-
a 2.0.0-alpha
48+
a 2.0.1-alpha
4949
li
5050
a(href='https://materializecss.com/' target='_blank' rel='noopener noreferrer') 1.0.0 (not maintained)
5151

src/global.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Waves } from './waves';
2727
import { Range } from './range';
2828

2929
export class M {
30-
static version = '2.0.0-alpha';
30+
static version = '2.0.1-alpha';
3131

3232
static keys = {
3333
TAB: 9,

templates/parallax-template.zip

3.13 KB
Binary file not shown.

templates/starter-template.zip

3.13 KB
Binary file not shown.

0 commit comments

Comments
 (0)