bootstrap4-toggle
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -7,2 +7,17 @@ # Changelog | ||
## Unreleased | ||
- Outline button support [3.4.0] | ||
## [3.3.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.3.0) 2018-12-19 | ||
### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.2.0...v3.3.0) | ||
### Added | ||
- New test created to compare core bootstrap sizes to bootstrap4-toggle | ||
### Changed | ||
- Introduced new `size` values that mirror bootstrap 4: (`lg`, `sm`, `xs`) | ||
- Converted all css units from `px` to `rem` | ||
- Properly added border on `light` button (moved from .toggle class) | ||
### Removed | ||
**DEPRECATED** Classic `size` values (`large`, `small`, `mini`) | ||
## [3.2.0](https://github.com/gitbrent/bootstrap4-toggle/tree/v3.2.0) 2018-11-27 | ||
@@ -36,1 +51,6 @@ ### [Full Changelog](https://github.com/gitbrent/bootstrap4-toggle/compare/v3.1.0...v3.2.0) | ||
- Old Bootstrap 2 files | ||
[Unreleased]: https://github.com/gitbrent/bootstrap4-toggle/compare/v1.9.0...HEAD | ||
[3.2.0]: https://github.com/gitbrent/bootstrap4-toggle/compare/v3.1.0...v3.2.0 | ||
[3.1.0]: https://github.com/gitbrent/bootstrap4-toggle/compare/v3.0.0...v3.1.0 | ||
[3.0.0]: https://github.com/gitbrent/bootstrap4-toggle/compare/v2.2.2...v3.0.0 |
/*\ | ||
|*| ======================================================================== | ||
|*| Bootstrap Toggle: bootstrap4-toggle.js v3.2.0 | ||
|*| Bootstrap Toggle: bootstrap4-toggle.js v3.3.0 | ||
|*| https://gitbrent.github.io/bootstrap-toggle/ | ||
@@ -23,3 +23,3 @@ |*| ======================================================================== | ||
Toggle.VERSION = '3.2.0' | ||
Toggle.VERSION = '3.3.0' | ||
@@ -53,5 +53,6 @@ Toggle.DEFAULTS = { | ||
this._offstyle = 'btn-' + this.options.offstyle | ||
var size = this.options.size === 'large' ? 'btn-lg' | ||
: this.options.size === 'small' ? 'btn-sm' | ||
: this.options.size === 'mini' ? 'btn-xs' | ||
var size | ||
= this.options.size === 'large' || this.options.size === 'lg' ? 'btn-lg' | ||
: this.options.size === 'small' || this.options.size === 'sm' ? 'btn-sm' | ||
: this.options.size === 'mini' || this.options.size === 'xs' ? 'btn-xs' | ||
: '' | ||
@@ -58,0 +59,0 @@ var $toggleOn = $('<label class="btn">').html(this.options.on) |
{ | ||
"name": "bootstrap4-toggle", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"author": { | ||
@@ -11,3 +11,3 @@ "name": "Brent Ely", | ||
"license": "MIT", | ||
"main": "js/bootstrap-toggle.js", | ||
"main": "js/bootstrap4-toggle.js", | ||
"files": [ | ||
@@ -14,0 +14,0 @@ "css/bootstrap4-toggle.css", |
@@ -1,2 +0,2 @@ | ||
[![Bootstrap 4.1.3](https://img.shields.io/badge/bootstrap-4.1.3-green.svg?style=flat-square)](https://getbootstrap.com/docs/4.1) [![MIT License](https://badges.frapsoft.com/os/mit/mit.svg?style=flat-square)](https://opensource.org/licenses/mit-license.php) [![Known Vulnerabilities](https://snyk.io/test/npm/bootstrap4-toggle/badge.svg)](https://snyk.io/test/npm/bootstrap4-toggle) | ||
[![Bootstrap 4.1.3](https://img.shields.io/badge/bootstrap-4.1.3-green.svg?style=flat-square)](https://getbootstrap.com/docs/4.1) [![MIT Licence](https://img.shields.io/github/license/gitbrent/pptxgenjs.svg)](https://opensource.org/licenses/mit-license.php) [![Known Vulnerabilities](https://snyk.io/test/npm/bootstrap4-toggle/badge.svg)](https://snyk.io/test/npm/bootstrap4-toggle) [![JSDelivr Badge](https://data.jsdelivr.com/v1/package/gh/gitbrent/bootstrap4-toggle/badge)](https://www.jsdelivr.com/package/gh/gitbrent/bootstrap4-toggle) | ||
@@ -41,8 +41,8 @@ # Bootstrap 4 Toggle | ||
## Download | ||
[Version 3.2.0](https://github.com/gitbrent/bootstrap4-toggle/archive/v3.2.0.zip) is the latest version of Bootstrap4 Toggle. | ||
[Version 3.3.0](https://github.com/gitbrent/bootstrap4-toggle/archive/v3.3.0.zip) is the latest version of Bootstrap4 Toggle. | ||
## CDN | ||
```html | ||
<link href="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.2.0/css/bootstrap4-toggle.min.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.2.0/js/bootstrap4-toggle.min.js"></script> | ||
<link href="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.3.0/css/bootstrap4-toggle.min.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.3.0/js/bootstrap4-toggle.min.js"></script> | ||
``` | ||
@@ -49,0 +49,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19129
251