@entur/button
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -6,2 +6,8 @@ # Change Log | ||
## [1.2.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.2.0...@entur/button@1.2.1) (2019-11-28) | ||
### Bug Fixes | ||
- **Button:** add disabled styles to buttons ([745acca](https://bitbucket.org/enturas/design-system/commits/745acca56cf245cc21af3d7f6ae73a675571f82d)) | ||
# [1.2.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.1.0...@entur/button@1.2.0) (2019-11-25) | ||
@@ -8,0 +14,0 @@ |
@@ -33,3 +33,3 @@ 'use strict'; | ||
return React.createElement(Element, Object.assign({ | ||
className: cx('eds-button', (_cx = {}, _defineProperty(_cx, "eds-button--variant-".concat(variant), variant), _defineProperty(_cx, "eds-button--size-".concat(size), size), _defineProperty(_cx, "eds-button--width-".concat(width), width), _defineProperty(_cx, 'eds-button--disabled', disabled), _defineProperty(_cx, 'eds-button--loading', loading), _defineProperty(_cx, 'eds-button--leading-icon', hasLeadingIcon), _defineProperty(_cx, 'eds-button--trailing-icon', hasTrailingIcon), _cx), className), | ||
className: cx('eds-button', (_cx = {}, _defineProperty(_cx, "eds-button--variant-".concat(variant), variant), _defineProperty(_cx, "eds-button--size-".concat(size), size), _defineProperty(_cx, "eds-button--width-".concat(width), width), _defineProperty(_cx, 'eds-button--loading', loading), _defineProperty(_cx, 'eds-button--leading-icon', hasLeadingIcon), _defineProperty(_cx, 'eds-button--trailing-icon', hasTrailingIcon), _cx), className), | ||
ref: ref, | ||
@@ -36,0 +36,0 @@ "aria-busy": loading, |
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("@babel/runtime/helpers/defineProperty")),n=e(require("@babel/runtime/helpers/objectWithoutProperties")),a=e(require("react")),s=e(require("classnames"));exports.Button=a.forwardRef((function(e,i){var r,o=e.variant,d=e.size,u=void 0===d?"medium":d,l=e.loading,c=e.className,b=e.children,m=e.disabled,g=void 0!==m&&m,f=e.width,h=e.as,p=void 0===h?"button":h,v=n(e,["variant","size","loading","className","children","disabled","width","as"]),N=g?"button":p,y=a.Children.toArray(b),j=y.length>1&&"string"!=typeof y[0],q=y.length>1&&"string"!=typeof y[y.length-1];return a.createElement(N,Object.assign({className:s("eds-button",(r={},t(r,"eds-button--variant-".concat(o),o),t(r,"eds-button--size-".concat(u),u),t(r,"eds-button--width-".concat(f),f),t(r,"eds-button--disabled",g),t(r,"eds-button--loading",l),t(r,"eds-button--leading-icon",j),t(r,"eds-button--trailing-icon",q),r),c),ref:i,"aria-busy":l,disabled:g},v),l?a.createElement("div",{className:"eds-button__spinner"}):b)})),exports.ButtonGroup=function(e){var t=e.as,i=void 0===t?"div":t,r=e.className,o=n(e,["as","className"]);return a.createElement(i,Object.assign({className:s("eds-button-group",r)},o))}; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("@babel/runtime/helpers/defineProperty")),n=e(require("@babel/runtime/helpers/objectWithoutProperties")),a=e(require("react")),s=e(require("classnames"));exports.Button=a.forwardRef((function(e,i){var r,o=e.variant,d=e.size,u=void 0===d?"medium":d,l=e.loading,c=e.className,b=e.children,m=e.disabled,g=void 0!==m&&m,f=e.width,h=e.as,p=void 0===h?"button":h,v=n(e,["variant","size","loading","className","children","disabled","width","as"]),N=g?"button":p,y=a.Children.toArray(b),j=y.length>1&&"string"!=typeof y[0],q=y.length>1&&"string"!=typeof y[y.length-1];return a.createElement(N,Object.assign({className:s("eds-button",(r={},t(r,"eds-button--variant-".concat(o),o),t(r,"eds-button--size-".concat(u),u),t(r,"eds-button--width-".concat(f),f),t(r,"eds-button--loading",l),t(r,"eds-button--leading-icon",j),t(r,"eds-button--trailing-icon",q),r),c),ref:i,"aria-busy":l,disabled:g},v),l?a.createElement("div",{className:"eds-button__spinner"}):b)})),exports.ButtonGroup=function(e){var t=e.as,i=void 0===t?"div":t,r=e.className,o=n(e,["as","className"]);return a.createElement(i,Object.assign({className:s("eds-button-group",r)},o))}; | ||
//# sourceMappingURL=button.cjs.production.min.js.map |
@@ -29,3 +29,3 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty'; | ||
return React.createElement(Element, Object.assign({ | ||
className: cx('eds-button', (_cx = {}, _defineProperty(_cx, "eds-button--variant-".concat(variant), variant), _defineProperty(_cx, "eds-button--size-".concat(size), size), _defineProperty(_cx, "eds-button--width-".concat(width), width), _defineProperty(_cx, 'eds-button--disabled', disabled), _defineProperty(_cx, 'eds-button--loading', loading), _defineProperty(_cx, 'eds-button--leading-icon', hasLeadingIcon), _defineProperty(_cx, 'eds-button--trailing-icon', hasTrailingIcon), _cx), className), | ||
className: cx('eds-button', (_cx = {}, _defineProperty(_cx, "eds-button--variant-".concat(variant), variant), _defineProperty(_cx, "eds-button--size-".concat(size), size), _defineProperty(_cx, "eds-button--width-".concat(width), width), _defineProperty(_cx, 'eds-button--loading', loading), _defineProperty(_cx, 'eds-button--leading-icon', hasLeadingIcon), _defineProperty(_cx, 'eds-button--trailing-icon', hasTrailingIcon), _cx), className), | ||
ref: ref, | ||
@@ -32,0 +32,0 @@ "aria-busy": loading, |
{ | ||
"name": "@entur/button", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"license": "EUPL-1.2", | ||
@@ -34,3 +34,4 @@ "main": "dist/index.js", | ||
"@entur/tokens": "^1.0.2" | ||
} | ||
}, | ||
"gitHead": "27bb0ccd3d7af62db8451d115cda7a84112160b4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
49633
13
335