From 5c642f8811dafcafc88d15cfb4ceb2a3ec1df5c7 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sat, 7 Aug 2021 00:38:53 +0300 Subject: [PATCH] release version 2.0.0 --- src/Accordion.php | 5 +++++ src/ActiveField.php | 5 +++++ src/ActiveForm.php | 5 +++++ src/Alert.php | 5 +++++ src/BaseHtml.php | 5 +++++ src/BootstrapAsset.php | 7 +++++-- src/BootstrapPluginAsset.php | 5 +++++ src/BootstrapWidgetTrait.php | 5 +++++ src/Breadcrumbs.php | 2 ++ src/Button.php | 5 +++++ src/ButtonDropdown.php | 5 +++++ src/ButtonGroup.php | 5 +++++ src/ButtonToolbar.php | 5 +++++ src/Carousel.php | 6 +++++- src/Dropdown.php | 5 +++++ src/Html.php | 5 +++++ src/InputWidget.php | 5 +++++ src/LinkPager.php | 5 +++++ src/Modal.php | 5 +++++ src/Nav.php | 5 +++++ src/NavBar.php | 2 ++ src/Offcanvas.php | 16 ++++++---------- src/Popover.php | 9 ++++++--- src/Progress.php | 5 +++++ src/Tabs.php | 5 +++++ src/Toast.php | 5 +++++ src/ToggleButtonGroup.php | 5 +++++ src/Widget.php | 5 +++++ tests/TabsTest.php | 2 +- 29 files changed, 137 insertions(+), 17 deletions(-) diff --git a/src/Accordion.php b/src/Accordion.php index e130be4..519d4d8 100644 --- a/src/Accordion.php +++ b/src/Accordion.php @@ -1,4 +1,9 @@ Previous', 'Next', ]; - /** * @var bool whether carousel indicators (
    tag with anchors to items) should be displayed or not. */ diff --git a/src/Dropdown.php b/src/Dropdown.php index 2d6806d..918c3eb 100644 --- a/src/Dropdown.php +++ b/src/Dropdown.php @@ -1,4 +1,9 @@ + * @link http://www.yiiframework.com/ + * @copyright Copyright (c) 2008 Yii Software LLC + * @license http://www.yiiframework.com/license/ */ +declare(strict_types=1); + namespace yii\bootstrap5; use yii\helpers\ArrayHelper; @@ -42,22 +45,18 @@ class Offcanvas extends Widget * @var string Where to place the offcanvas. Can be of of the [[PLACEMENT_*]] constants. */ public $placement = self::PLACEMENT_START; - /** * @var boolean Whether to enable backdrop or not. Defaults to `true`. */ public $backdrop = true; - /** * @var boolean Whether to enable body scrolling or not. Defaults to `false`. */ public $scrolling = false; - /** * @var string The title content in the offcanvas container. */ public $title; - /** * @var array|false the options for rendering the close button tag. * The close button is displayed in the header of the offcanvas container. Clicking @@ -72,7 +71,6 @@ class Offcanvas extends Widget * for the supported HTML attributes. */ public $closeButton = []; - /** * @var array|false the options for rendering the toggle button tag. * The toggle button is used to toggle the visibility of the modal window. @@ -88,13 +86,11 @@ class Offcanvas extends Widget * for the supported HTML attributes. */ public $toggleButton = false; - /** * @var array Additional header options. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public $headerOptions = []; - /** * @var array Additional title options. * @@ -105,13 +101,13 @@ class Offcanvas extends Widget * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public $titleOptions = []; - /** * @var array Additional body options. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public $bodyOptions = []; + /** * {@inheritDoc} */ diff --git a/src/Popover.php b/src/Popover.php index fa2ba34..53627f6 100644 --- a/src/Popover.php +++ b/src/Popover.php @@ -1,9 +1,12 @@ + * @link http://www.yiiframework.com/ + * @copyright Copyright (c) 2008 Yii Software LLC + * @license http://www.yiiframework.com/license/ */ +declare(strict_types=1); + namespace yii\bootstrap5; use yii\helpers\ArrayHelper; @@ -35,7 +38,6 @@ class Popover extends Widget const PLACEMENT_BOTTOM = 'bottom'; const PLACEMENT_LEFT = 'left'; const PLACEMENT_RIGHT = 'right'; - const TRIGGER_CLICK = 'click'; const TRIGGER_HOVER = 'hover'; const TRIGGER_FOCUS = 'focus'; @@ -81,6 +83,7 @@ class Popover extends Widget */ public $toggleButton = false; + /** * {@inheritDoc} */ diff --git a/src/Progress.php b/src/Progress.php index 3056fab..2edd3f9 100644 --- a/src/Progress.php +++ b/src/Progress.php @@ -1,4 +1,9 @@
    Content 2
    HTML; - $this->assertEquals($expected, $html); + $this->assertEqualsWithoutLE($expected, $html); } public function testHeaderOptions()