Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@entur/button

Package Overview
Dependencies
Maintainers
13
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@entur/button - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.1.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.0.4...@entur/button@1.1.0) (2019-11-22)
### Bug Fixes
- **spinner:** fixes styling on the spinner for all variants ([a0322cd](https://bitbucket.org/enturas/design-system/commits/a0322cd3c95e94ed9a4ba9af15a2a2b4c205b1b0))
- **styling:** fixing styling of loading spinner on all button variants ([74f79f4](https://bitbucket.org/enturas/design-system/commits/74f79f4dc6150d9759f430055ff295a94edd4751))
### Features
- **types:** exporting all public types for public components ([4a277ab](https://bitbucket.org/enturas/design-system/commits/4a277ab266fdb32a6760821a07b1c6cc716bac85))
## [1.0.4](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.0.3...@entur/button@1.0.4) (2019-11-18)

@@ -8,0 +19,0 @@

2

dist/button.cjs.development.js

@@ -38,3 +38,3 @@ 'use strict';

}, rest), loading ? React.createElement("div", {
className: "spinner"
className: "eds-button__spinner"
}) : children);

@@ -41,0 +41,0 @@ });

@@ -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")),i=e(require("react")),a=e(require("classnames"));exports.Button=i.forwardRef((function(e,r){var s,d=e.variant,o=e.size,l=void 0===o?"medium":o,u=e.loading,c=e.className,b=e.children,h=e.disabled,f=void 0!==h&&h,g=e.width,m=e.as,p=void 0===m?"button":m,v=n(e,["variant","size","loading","className","children","disabled","width","as"]),y=f?"button":p,q=i.Children.toArray(b),w=q.length>1&&"string"!=typeof q[0],N=q.length>1&&"string"!=typeof q[q.length-1];return i.createElement(y,Object.assign({className:a("eds-button",(s={},t(s,"eds-button--variant-".concat(d),d),t(s,"eds-button--size-".concat(l),l),t(s,"eds-button--width-".concat(g),g),t(s,"eds-button--disabled",f),t(s,"eds-button--loading",u),t(s,"eds-button--leading-icon",w),t(s,"eds-button--trailing-icon",N),s),c),ref:r,"aria-busy":u,disabled:f},v),u?i.createElement("div",{className:"spinner"}):b)}));
"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")),i=e(require("react")),a=e(require("classnames"));exports.Button=i.forwardRef((function(e,r){var s,d=e.variant,o=e.size,l=void 0===o?"medium":o,u=e.loading,c=e.className,b=e.children,h=e.disabled,f=void 0!==h&&h,g=e.width,m=e.as,p=void 0===m?"button":m,v=n(e,["variant","size","loading","className","children","disabled","width","as"]),y=f?"button":p,q=i.Children.toArray(b),w=q.length>1&&"string"!=typeof q[0],N=q.length>1&&"string"!=typeof q[q.length-1];return i.createElement(y,Object.assign({className:a("eds-button",(s={},t(s,"eds-button--variant-".concat(d),d),t(s,"eds-button--size-".concat(l),l),t(s,"eds-button--width-".concat(g),g),t(s,"eds-button--disabled",f),t(s,"eds-button--loading",u),t(s,"eds-button--leading-icon",w),t(s,"eds-button--trailing-icon",N),s),c),ref:r,"aria-busy":u,disabled:f},v),u?i.createElement("div",{className:"eds-button__spinner"}):b)}));
//# sourceMappingURL=button.cjs.production.min.js.map

@@ -34,3 +34,3 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';

}, rest), loading ? React.createElement("div", {
className: "spinner"
className: "eds-button__spinner"
}) : children);

@@ -37,0 +37,0 @@ });

@@ -25,2 +25,2 @@ import React from "react";

declare const Button: React.RefForwardingComponent<HTMLButtonElement, ButtonProps>;
export { Button };
export { ButtonProps, Button };
{
"name": "@entur/button",
"version": "1.0.4",
"version": "1.1.0",
"license": "EUPL-1.2",

@@ -33,5 +33,5 @@ "main": "dist/index.js",

"devDependencies": {
"@entur/tokens": "^1.0.1"
"@entur/tokens": "^1.0.2"
},
"gitHead": "636c2b374cdfcd69a5faa02224b85616bc4aca2b"
"gitHead": "1361952e906665487ca35fa5eacae5922a759c28"
}

@@ -5,3 +5,3 @@ # Button

> 💡 Looking for the [documentation](https://design.entur.org/komponenter/knapper)?
> 💡 Looking for the [documentation](https://design.entur.org/komponenter/buttons/default-buttons)?

@@ -24,2 +24,2 @@ ## Installation

Please refer to the [documentation](https://design.entur.org/komponenter/knapper) for further usage information.
Please refer to the [documentation](https://design.entur.org/komponenter/buttons/default-buttons) for further usage information.

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc