diff --git a/README.md b/README.md index f513018..f1cd0a6 100755 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ ---- This is the current, actively developed 3.x branch which is implementing Materialize version 1.0 and thus breaking backwards compatibility. -**Please note: This branch is in beta phase right now. You might use it, but on your own liability.** [Go to 1.x version](https://github.com/MacGyer/yii2-materializecss/tree/1.x) @@ -20,9 +19,9 @@ This package integrates the Materialize CSS framework into [Yii2](http://www.yii See [official documentation](http://macgyer.github.io/yii2-materializecss/) for detailed information. -**New**: Have a look at the [official demo page](https://yii2-materializecss.pluspunkt-coding.de) to see the repo in action. +Have a look at the [official demo page](https://yii2-materializecss.pluspunkt-coding.de) to see the repo in action (needs adaption to v3) -Current Materialize version implemented: 1.0.0-rc.1 +Current Materialize version implemented: 1.0.0. ## Installation @@ -34,6 +33,8 @@ You also should install the Composer Asset Plugin to handle NPM and Bower assets $ composer global require "fxp/composer-asset-plugin:~1.4" ``` +Or you can make use of Asset Packagist: + To install the package add the following to the ```require``` section of your composer.json: ``` "require": { @@ -129,13 +130,17 @@ Systems operating on normal parameters :) ## Sample layout -As of version 1.0.6 there is a sample layout file included in the package. You can use this file to get inspiration for +There is a sample layout file included in the package. You can use this file to get inspiration for your own layout or replace the respective ```views/layouts/main.php``` with the file provided. You can find the sample layout file in ```src/layout/main.php```. ## Change log +### 3.0.0 - 2018-11-16 +* implement Materialize v1.0.0 +* **Breaking changes included** + ### 2.0.0 - 2017-07-30 * **Please note: this release contains breaking changes** * moved [Breadcrumbs](https://github.com/MacGyer/yii2-materializecss/blob/master/src/widgets/navigation/Breadcrumbs.php), [Dropdown](https://github.com/MacGyer/yii2-materializecss/blob/master/src/widgets/navigation/Dropdown.php), [FixedActionButton](https://github.com/MacGyer/yii2-materializecss/blob/master/src/widgets/navigation/FixedActionButton.php), [Nav](https://github.com/MacGyer/yii2-materializecss/blob/master/src/widgets/navigation/Nav.php), [NavBar](https://github.com/MacGyer/yii2-materializecss/blob/master/src/widgets/navigation/NavBar.php) and [SideNav](https://github.com/MacGyer/yii2-materializecss/blob/master/src/widgets/navigation/SideNav.php) to dedicated namespace (**breaking**) diff --git a/composer.json b/composer.json index 6db9619..3a69050 100755 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "macgyer/yii2-materializecss", - "minimum-stability": "RC", + "minimum-stability": "stable", "description": "Materialize CSS implementation for Yii2", "keywords": ["materialize", "yii2", "widgets", "material design"], "homepage": "http://macgyer.github.io/yii2-materializecss", @@ -13,12 +13,12 @@ "role": "Developer" } ], - "version": "3.0.1-RC", + "version": "3.0.0", "require": { "php": ">=5.6.0", "yiisoft/yii2": "~2.0.0", - "bower-asset/materialize": "1.0.*@RC" + "bower-asset/materialize": "1.0.0" }, "autoload": { "psr-4": { diff --git a/src/widgets/form/Select.php b/src/widgets/form/Select.php index 2c46806..b4f6e2b 100755 --- a/src/widgets/form/Select.php +++ b/src/widgets/form/Select.php @@ -151,7 +151,7 @@ protected function insertPlaceholder() $this->items = ArrayHelper::merge(['' => $placeholder], $this->items); $placeholderOption = [ - '' => ['disabled' => true, 'selected' => true], + '' => ['disabled' => true], ]; $this->options['options'] = ArrayHelper::merge($placeholderOption, $this->options['options']); }