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

@hig/icon-button

Package Overview
Dependencies
Maintainers
3
Versions
269
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hig/icon-button - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

10

build/index.es.js

@@ -430,2 +430,3 @@ import React, { Component } from 'react';

var _props = this.props,
disabled = _props.disabled,
onBlur = _props.onBlur,

@@ -437,3 +438,3 @@ onFocus = _props.onFocus,

onMouseUp = _props.onMouseUp,
props = _objectWithoutProperties$1(_props, ["onBlur", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp"]);
props = _objectWithoutProperties$1(_props, ["disabled", "onBlur", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp"]);

@@ -461,5 +462,6 @@ return React.createElement(

return React.createElement(IconButtonPresenter, _extends$2({
hasFocus: hasFocus,
hasHover: hasHover,
isPressed: isPressed,
disabled: disabled,
hasFocus: hasFocus && !disabled,
hasHover: hasHover && !disabled,
isPressed: isPressed && !disabled,
onBlur: handleBlur,

@@ -466,0 +468,0 @@ onFocus: handleFocus,

@@ -437,2 +437,3 @@ 'use strict';

var _props = this.props,
disabled = _props.disabled,
onBlur = _props.onBlur,

@@ -444,3 +445,3 @@ onFocus = _props.onFocus,

onMouseUp = _props.onMouseUp,
props = _objectWithoutProperties$1(_props, ["onBlur", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp"]);
props = _objectWithoutProperties$1(_props, ["disabled", "onBlur", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp"]);

@@ -468,5 +469,6 @@ return React__default.createElement(

return React__default.createElement(IconButtonPresenter, _extends$2({
hasFocus: hasFocus,
hasHover: hasHover,
isPressed: isPressed,
disabled: disabled,
hasFocus: hasFocus && !disabled,
hasHover: hasHover && !disabled,
isPressed: isPressed && !disabled,
onBlur: handleBlur,

@@ -473,0 +475,0 @@ onFocus: handleFocus,

@@ -0,1 +1,8 @@

# [@hig/icon-button-v2.4.2](https://github.com/Autodesk/hig/compare/@hig/icon-button@2.4.1...@hig/icon-button@2.4.2) (2020-09-22)
### Bug Fixes
* do not trigger focus/hover/pressed states when disabled ([19ab026](https://github.com/Autodesk/hig/commit/19ab026))
# [@hig/icon-button-v2.4.1](https://github.com/Autodesk/hig/compare/@hig/icon-button@2.4.0...@hig/icon-button@2.4.1) (2020-05-12)

@@ -2,0 +9,0 @@

4

package.json
{
"name": "@hig/icon-button",
"version": "2.4.1",
"version": "2.4.2",
"description": "HIG IconButton component",

@@ -35,3 +35,3 @@ "author": "Autodesk Inc.",

"@hig/theme-context": "^3.0.0",
"@hig/theme-data": "^2.16.0",
"@hig/theme-data": "^2.18.0",
"react": "^15.4.1 || ^16.3.2"

@@ -38,0 +38,0 @@ },

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