Skip to content

Commit

Permalink
1.0.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogfalo committed Sep 9, 2018
1 parent 18ab01a commit 80e8ed3
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 29 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Changelog
=======
Bolded styling surrounded by emojis indicates a breaking change.

## 1.0.0 (September 9th, 2018)
- [Full Changelog here](https://github.com/Dogfalo/materialize/blob/v1-dev/v1-changelog.md)

## 1.0.0-rc.2 (June 23rd, 2018)
- Autocomplete
- Fixed bug where Autocomplete did not open properly in certain cases with keyboard focus
Expand Down
4 changes: 2 additions & 2 deletions dist/css/materialize.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Materialize v1.0.0-rc.2 (http://materializecss.com)
* Materialize v1.0.0 (http://materializecss.com)
* Copyright 2014-2017 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
Expand Down Expand Up @@ -6551,7 +6551,7 @@ textarea.materialize-textarea + label:after, .select-wrapper + label:after {
transform-origin: 0 0;
}

.input-field > input[type]:-webkit-autofill:not(.browser-default) + label,
.input-field > input[type]:-webkit-autofill:not(.browser-default):not([type="search"]) + label,
.input-field > input[type=date]:not(.browser-default) + label,
.input-field > input[type=time]:not(.browser-default) + label {
-webkit-transform: translateY(-14px) scale(0.8);
Expand Down
4 changes: 2 additions & 2 deletions dist/css/materialize.min.css

Large diffs are not rendered by default.

38 changes: 26 additions & 12 deletions dist/js/materialize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Materialize v1.0.0-rc.2 (http://materializecss.com)
* Materialize v1.0.0 (http://materializecss.com)
* Copyright 2014-2017 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
Expand Down Expand Up @@ -1084,6 +1084,8 @@ if (typeof define === 'function' && define.amd) {
exports.default = M;
}

M.version = '1.0.0';

M.keys = {
TAB: 9,
ENTER: 13,
Expand Down Expand Up @@ -2507,7 +2509,11 @@ $jscomp.polyfill = function (e, r, p, m) {
var $activatableElement = $(focusedElement).find('a, button').first();

// Click a or button tag if exists, otherwise click li tag
!!$activatableElement.length ? $activatableElement[0].click() : focusedElement.click();
if (!!$activatableElement.length) {
$activatableElement[0].click();
} else if (!!focusedElement) {
focusedElement.click();
}

// Close dropdown on ESC
} else if (e.which === M.keys.ESC && this.isOpen) {
Expand Down Expand Up @@ -2687,8 +2693,7 @@ $jscomp.polyfill = function (e, r, p, m) {

// onOpenEnd callback
if (typeof _this11.options.onOpenEnd === 'function') {
var elem = anim.animatables[0].target;
_this11.options.onOpenEnd.call(elem, _this11.el);
_this11.options.onOpenEnd.call(_this11, _this11.el);
}
}
});
Expand Down Expand Up @@ -2719,7 +2724,6 @@ $jscomp.polyfill = function (e, r, p, m) {

// onCloseEnd callback
if (typeof _this12.options.onCloseEnd === 'function') {
var elem = anim.animatables[0].target;
_this12.options.onCloseEnd.call(_this12, _this12.el);
}
}
Expand Down Expand Up @@ -2849,7 +2853,7 @@ $jscomp.polyfill = function (e, r, p, m) {

Dropdown._dropdowns = [];

window.M.Dropdown = Dropdown;
M.Dropdown = Dropdown;

if (M.jQueryLoaded) {
M.initializeJqueryWrapper(Dropdown, 'dropdown', 'M_Dropdown');
Expand Down Expand Up @@ -4420,7 +4424,7 @@ $jscomp.polyfill = function (e, r, p, m) {
return Tabs;
}(Component);

window.M.Tabs = Tabs;
M.Tabs = Tabs;

if (M.jQueryLoaded) {
M.initializeJqueryWrapper(Tabs, 'tabs', 'M_Tabs');
Expand Down Expand Up @@ -6090,7 +6094,7 @@ $jscomp.polyfill = function (e, r, p, m) {

Sidenav._sidenavs = [];

window.M.Sidenav = Sidenav;
M.Sidenav = Sidenav;

if (M.jQueryLoaded) {
M.initializeJqueryWrapper(Sidenav, 'sidenav', 'M_Sidenav');
Expand Down Expand Up @@ -11833,10 +11837,20 @@ $jscomp.polyfill = function (e, r, p, m) {
// Add callback for centering selected option when dropdown content is scrollable
dropdownOptions.onOpenEnd = function (el) {
var selectedOption = $(_this71.dropdownOptions).find('.selected').first();
if (_this71.dropdown.isScrollable && selectedOption.length) {
var scrollOffset = selectedOption[0].getBoundingClientRect().top - _this71.dropdownOptions.getBoundingClientRect().top; // scroll to selected option
scrollOffset -= _this71.dropdownOptions.clientHeight / 2; // center in dropdown
_this71.dropdownOptions.scrollTop = scrollOffset;

if (selectedOption.length) {
// Focus selected option in dropdown
M.keyDown = true;
_this71.dropdown.focusedIndex = selectedOption.index();
_this71.dropdown._focusFocusedItem();
M.keyDown = false;

// Handle scrolling to selected option
if (_this71.dropdown.isScrollable) {
var scrollOffset = selectedOption[0].getBoundingClientRect().top - _this71.dropdownOptions.getBoundingClientRect().top; // scroll to selected option
scrollOffset -= _this71.dropdownOptions.clientHeight / 2; // center in dropdown
_this71.dropdownOptions.scrollTop = scrollOffset;
}
}
};

Expand Down
4 changes: 2 additions & 2 deletions dist/js/materialize.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extras/noUiSlider/nouislider.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Materialize 1.0.0-rc.2 (http://materializecss.com)
* Materialize 1.0.0 (http://materializecss.com)
* Copyright 2014-2015 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion extras/noUiSlider/nouislider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Materialize 1.0.0-rc.2 (http://materializecss.com)
* Materialize 1.0.0 (http://materializecss.com)
* Copyright 2014-2015 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
Expand Down
4 changes: 2 additions & 2 deletions jade/_navbar.jade
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ header
a#logo-container.brand-logo(href='/')
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') 1.0.0-rc.2
a.dropdown-trigger(href='#' data-target='version-dropdown') 1.0.0
<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 1.0.0-rc.2
a 1.0.0
li
a(href='http://archives.materializecss.com/0.100.2/') 0.100.2
li(class="search")
Expand Down
8 changes: 4 additions & 4 deletions jade/getting_started/getting_started_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ <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/Dogfalo/materialize/releases/download/1.0.0-rc.2/materialize-v1.0.0-rc.2.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/Dogfalo/materialize/releases/download/1.0.0/materialize-v1.0.0.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/Dogfalo/materialize/releases/download/1.0.0-rc.2/materialize-src-v1.0.0-rc.2.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/Dogfalo/materialize/releases/download/1.0.0/materialize-src-v1.0.0.zip">Source<i class="material-icons right">file_download</i></a>
</div>
<div class="col s12">
<br>
<h5>CDN</h5>
<p>You can find all the versions of the CDN at <a href="https://cdnjs.com/libraries/materialize">cdnjs</a>.</p>
<pre><code class="language-markup">
&lt;!-- Compiled and minified CSS -->
&lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/css/materialize.min.css">
&lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">

&lt;!-- Compiled and minified JavaScript -->
&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/js/materialize.min.js">&lt;/script>
&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js">&lt;/script>
</code></pre>
</div>
<div class="col s12">
Expand Down
2 changes: 1 addition & 1 deletion jade/index/index_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h4 class="light">A modern responsive front-end framework based on Material Desi
<a href="http://materializecss.com/getting-started.html" id="download-button" class="btn-large waves-effect waves-light">Get Started</a>
<a href="https://github.com/Dogfalo/materialize/blob/v1-dev/v1-upgrade-guide.md" id="upgrade-button" class="btn-large waves-effect waves-light">Upgrade from 0.100.2</a>
</div>
<div class="row center"><a class="current-version-number" href="https://github.com/Dogfalo/materialize">Release: 1.0.0-rc.2</a></div>
<div class="row center"><a class="current-version-number" href="https://github.com/Dogfalo/materialize">Release: 1.0.0</a></div>
<div class="row center">
<div class="buysellads-header buysellads-homepage">
<!-- CarbonAds Zone Code -->
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Package.describe({
name: 'materialize:materialize', // http://atmospherejs.com/materialize/materialize
summary: 'Materialize (official): A modern responsive front-end framework based on Material Design',
version: '1.0.0-rc.2',
version: '1.0.0',
git: 'https://github.com/Dogfalo/materialize.git'
});

Expand Down
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": "http://materializecss.com/",
"version": "1.0.0-rc.2",
"version": "1.0.0",
"main": "dist/js/materialize.js",
"style": "dist/css/materialize.css",
"sass": "sass/materialize.scss",
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 80e8ed3

Please sign in to comment.