Skip to content

Commit

Permalink
chore: release 2.0.1-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
wuda-io committed May 16, 2023
1 parent 08a3679 commit 12d49db
Show file tree
Hide file tree
Showing 12 changed files with 9,005 additions and 27 deletions.
2 changes: 1 addition & 1 deletion dist/css/materialize.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Materialize v2.0.0-alpha (https://materializecss.github.io/materialize)
* Materialize v2.0.1-alpha (https://materializecss.github.io/materialize)
* Copyright 2014-2023 Materialize
* MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/css/materialize.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 26 additions & 13 deletions dist/js/materialize.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
/*!
* Materialize v2.0.0-alpha (https://materializecss.github.io/materialize)
* Materialize v2.0.1-alpha (https://materializecss.github.io/materialize)
* Copyright 2014-2023 Materialize
* MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
*/
var M;
/******/ (() => { // webpackBootstrap
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(this, () => {
return /******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({

Expand Down Expand Up @@ -4589,7 +4598,7 @@ exports.Forms = Forms;
/*!***********************!*\
!*** ./src/global.ts ***!
\***********************/
/***/ ((module, exports, __webpack_require__) => {
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {


var _a;
Expand Down Expand Up @@ -4876,7 +4885,7 @@ class M {
}
exports.M = M;
_a = M;
M.version = '2.0.0-alpha';
M.version = '2.0.1-alpha';
M.keys = {
TAB: 9,
ENTER: 13,
Expand Down Expand Up @@ -4941,7 +4950,7 @@ M.keyDown = false;
waves_1.Waves.Init();
range_1.Range.Init();
})();
module.exports = M;
exports["default"] = M;


/***/ }),
Expand Down Expand Up @@ -7424,7 +7433,8 @@ class Tabs extends component_1.Component {
const _oldContent = this._content;
// Update the variables with the new link and content
this._activeTabLink = tabLink;
this._content = document.querySelector(tabLink.hash);
if (tabLink.hash)
this._content = document.querySelector(tabLink.hash);
this._tabLinks = this.el.querySelectorAll('li.tab > a');
// Make the tab active
this._activeTabLink.classList.add('active');
Expand Down Expand Up @@ -7477,7 +7487,7 @@ class Tabs extends component_1.Component {
Array.from(this._tabLinks).forEach((a) => a.classList.remove('active'));
this._activeTabLink.classList.add('active');
this._index = Math.max(Array.from(this._tabLinks).indexOf(this._activeTabLink), 0);
if (this._activeTabLink) {
if (this._activeTabLink && this._activeTabLink.hash) {
this._content = document.querySelector(this._activeTabLink.hash);
this._content.classList.add('active');
}
Expand All @@ -7488,9 +7498,11 @@ class Tabs extends component_1.Component {
this.options.swipeable = false;
const tabsContent = [];
this._tabLinks.forEach(a => {
const currContent = document.querySelector(a.hash);
currContent.classList.add('carousel-item');
tabsContent.push(currContent);
if (a.hash) {
const currContent = document.querySelector(a.hash);
currContent.classList.add('carousel-item');
tabsContent.push(currContent);
}
});
// Create Carousel-Wrapper around Tab-Contents
const tabsWrapper = document.createElement('div');
Expand Down Expand Up @@ -9036,7 +9048,8 @@ exports.Waves = Waves;
/******/ // Load entry module and return exports
/******/ // This entry module is referenced by other modules so it can't be inlined
/******/ var __webpack_exports__ = __webpack_require__("./src/global.ts");
/******/ M = __webpack_exports__;
/******/
/******/ return __webpack_exports__;
/******/ })()
;
;
});
8,969 changes: 8,967 additions & 2 deletions dist/js/materialize.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/materialize.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Builds Materialize distribution packages",
"author": "Alvin Wang, Alan Chang",
"homepage": "https://materializecss.github.io/materialize/",
"version": "2.0.0-alpha",
"version": "2.0.1-alpha",
"main": "dist/js/materialize.js",
"style": "dist/css/materialize.css",
"sass": "sass/materialize.scss",
Expand Down
8 changes: 4 additions & 4 deletions pug/contents/getting_started_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ <h3 class="header">Download</h3>
<div class="col s12 m6">
<h5>Materialize</h5>
<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>
<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>
<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>
</div>
<div class="col s12 m6">
<h5>Sass</h5>
<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>
<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>
<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>
</div>
</div>

Expand All @@ -51,10 +51,10 @@ <h5>CDN</h5>
<i class="material-icons copyButton">content_copy</i>
<code class="language-markup copiedText">
&lt;!-- Compiled and minified CSS -->
&lt;link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@materializecss/[email protected].0-alpha/dist/css/materialize.min.css">
&lt;link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@materializecss/[email protected].1-alpha/dist/css/materialize.min.css">

&lt;!-- Compiled and minified JavaScript -->
&lt;script src="https://cdn.jsdelivr.net/npm/@materializecss/[email protected].0-alpha/dist/js/materialize.min.js">&lt;/script>
&lt;script src="https://cdn.jsdelivr.net/npm/@materializecss/[email protected].1-alpha/dist/js/materialize.min.js">&lt;/script>
</code></pre>
</div>
<div class="col s12">
Expand Down
2 changes: 1 addition & 1 deletion pug/contents/index_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="s12 m10 offset-m1">
<img id="logo" src="res/materialize.svg" style="height: 100px;" alt="Materialize"/>
<h1 class="header white-text" style="margin-bottom: 0;">Materialize</h1>
<a class="current-version-number white-text" target="_blank" href="https://github.com/materializecss/materialize">2.0.0-alpha</a>
<a class="current-version-number white-text" target="_blank" href="https://github.com/materializecss/materialize">2.0.1-alpha</a>
</div>

<div class="s12 m8 offset-m2">
Expand Down
4 changes: 2 additions & 2 deletions pug/includes/_navbar.pug
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ header
object#front-page-logo(type='image/svg+xml', data='res/materialize.svg') Your browser does not support SVG

li.version
a.dropdown-trigger(href='#' data-target='version-dropdown') 2.0.0-alpha
a.dropdown-trigger(href='#' data-target='version-dropdown') 2.0.1-alpha
<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>
ul#version-dropdown.dropdown-content
li
a 2.0.0-alpha
a 2.0.1-alpha
li
a(href='https://materializecss.com/' target='_blank' rel='noopener noreferrer') 1.0.0 (not maintained)

Expand Down
2 changes: 1 addition & 1 deletion src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { Waves } from './waves';
import { Range } from './range';

export class M {
static version = '2.0.0-alpha';
static version = '2.0.1-alpha';

static keys = {
TAB: 9,
Expand Down
Binary file modified templates/parallax-template.zip
Binary file not shown.
Binary file modified templates/starter-template.zip
Binary file not shown.

0 comments on commit 12d49db

Please sign in to comment.