Socket
Socket
Sign inDemoInstall

@entur/button

Package Overview
Dependencies
Maintainers
12
Versions
153
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.0 to 1.0.1

dist/index.d.ts

6

CHANGELOG.md

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

## [1.0.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@1.0.0...@entur/button@1.0.1) (2019-10-22)
### Bug Fixes
- **icons:** upgrade tsdx to avoid custom config for icons ([712f1cc](https://bitbucket.org/enturas/design-system/commits/712f1cccfd3f0242f3287c21b45c8d5c9ad92084))
# [1.0.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@0.2.1...@entur/button@1.0.0) (2019-10-11)

@@ -8,0 +14,0 @@

5

dist/button.cjs.development.js

@@ -37,8 +37,7 @@ 'use strict';

width = _ref.width,
active = _ref.active,
_ref$as = _ref.as,
as = _ref$as === void 0 ? 'button' : _ref$as,
rest = _objectWithoutPropertiesLoose(_ref, ["variant", "size", "loading", "className", "children", "disabled", "width", "active", "as"]);
rest = _objectWithoutPropertiesLoose(_ref, ["variant", "size", "loading", "className", "children", "disabled", "width", "as"]);
var classList = cx('entur-button', (_cx = {}, _cx["entur-button--variant-" + variant] = variant, _cx["entur-button--size-" + size] = size, _cx["entur-button--width-" + width] = width, _cx["entur-button--active"] = active, _cx["entur-button--disabled"] = disabled, _cx["entur-button--loading"] = loading, _cx), className);
var classList = cx('entur-button', (_cx = {}, _cx["entur-button--variant-" + variant] = variant, _cx["entur-button--size-" + size] = size, _cx["entur-button--width-" + width] = width, _cx["entur-button--disabled"] = disabled, _cx["entur-button--loading"] = loading, _cx), className);
var Element = disabled ? 'button' : as;

@@ -45,0 +44,0 @@ return React.createElement(Element, Object.assign({

2

dist/button.cjs.production.min.js

@@ -1,2 +0,2 @@

"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var e=t(require("react")),n=t(require("classnames"));exports.Button=e.forwardRef(function(t,a){var i,r=t.variant,u=t.size,s=void 0===u?"medium":u,d=t.loading,o=t.className,l=t.children,c=t.disabled,b=void 0!==c&&c,v=t.width,f=t.active,m=t.as,h=void 0===m?"button":m,g=function(t,e){if(null==t)return{};var n,a,i={},r=Object.keys(t);for(a=0;a<r.length;a++)e.indexOf(n=r[a])>=0||(i[n]=t[n]);return i}(t,["variant","size","loading","className","children","disabled","width","active","as"]),w=n("entur-button",((i={})["entur-button--variant-"+r]=r,i["entur-button--size-"+s]=s,i["entur-button--width-"+v]=v,i["entur-button--active"]=f,i["entur-button--disabled"]=b,i["entur-button--loading"]=d,i),o);return e.createElement(b?"button":h,Object.assign({className:w,ref:a,"aria-busy":d,disabled:b},g),d?e.createElement("div",{className:"spinner"}):l)});
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("react")),n=e(require("classnames"));exports.Button=t.forwardRef(function(e,a){var r,i=e.variant,u=e.size,s=void 0===u?"medium":u,d=e.loading,o=e.className,l=e.children,c=e.disabled,b=void 0!==c&&c,f=e.width,v=e.as,m=void 0===v?"button":v,h=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)t.indexOf(n=i[a])>=0||(r[n]=e[n]);return r}(e,["variant","size","loading","className","children","disabled","width","as"]),g=n("entur-button",((r={})["entur-button--variant-"+i]=i,r["entur-button--size-"+s]=s,r["entur-button--width-"+f]=f,r["entur-button--disabled"]=b,r["entur-button--loading"]=d,r),o);return t.createElement(b?"button":m,Object.assign({className:g,ref:a,"aria-busy":d,disabled:b},h),d?t.createElement("div",{className:"spinner"}):l)});
//# sourceMappingURL=button.cjs.production.min.js.map

@@ -33,8 +33,7 @@ import React from 'react';

width = _ref.width,
active = _ref.active,
_ref$as = _ref.as,
as = _ref$as === void 0 ? 'button' : _ref$as,
rest = _objectWithoutPropertiesLoose(_ref, ["variant", "size", "loading", "className", "children", "disabled", "width", "active", "as"]);
rest = _objectWithoutPropertiesLoose(_ref, ["variant", "size", "loading", "className", "children", "disabled", "width", "as"]);
var classList = cx('entur-button', (_cx = {}, _cx["entur-button--variant-" + variant] = variant, _cx["entur-button--size-" + size] = size, _cx["entur-button--width-" + width] = width, _cx["entur-button--active"] = active, _cx["entur-button--disabled"] = disabled, _cx["entur-button--loading"] = loading, _cx), className);
var classList = cx('entur-button', (_cx = {}, _cx["entur-button--variant-" + variant] = variant, _cx["entur-button--size-" + size] = size, _cx["entur-button--width-" + width] = width, _cx["entur-button--disabled"] = disabled, _cx["entur-button--loading"] = loading, _cx), className);
var Element = disabled ? 'button' : as;

@@ -41,0 +40,0 @@ return React.createElement(Element, Object.assign({

{
"name": "@entur/button",
"version": "1.0.0",
"version": "1.0.1",
"license": "EUPL-1.2",

@@ -34,3 +34,4 @@ "main": "dist/index.js",

"@entur/tokens": "^0.2.0"
}
},
"gitHead": "77dbc3aa668a5bcb32c44145191a24849d10e3e8"
}

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