Socket
Socket
Sign inDemoInstall

@hig/button

Package Overview
Dependencies
Maintainers
6
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hig/button - npm Package Compare versions

Comparing version 3.1.1 to 3.2.0

39

build/index.es.js

@@ -345,3 +345,3 @@ import React from 'react';

const _excluded$1 = ["disabled", "hasFocus", "hasHover", "isPressed", "icon", "link", "onBlur", "onClick", "onFocus", "onHover", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "stylesheet", "target", "title", "type", "width"];
const _excluded$1 = ["disabled", "hasFocus", "hasHover", "isPressed", "icon", "link", "onBlur", "onClick", "onFocus", "onHover", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "stylesheet", "target", "title", "type", "width", "children"];

@@ -368,3 +368,4 @@ const ButtonPresenter = props => {

type,
width
width,
children
} = props,

@@ -415,3 +416,3 @@ otherProps = _objectWithoutProperties(props, _excluded$1);

className: icon ? cx(css(cssStyles.iconText), iconTextClassName) : ""
}, title));
}, children || title));
});

@@ -438,5 +439,6 @@ };

target: PropTypes.oneOf(availableTargets),
title: PropTypes.string.isRequired,
title: PropTypes.string,
type: PropTypes.oneOf(availableTypes),
width: PropTypes.oneOf(availableWidths)
width: PropTypes.oneOf(availableWidths),
children: PropTypes.node
};

@@ -565,3 +567,3 @@ ButtonPresenter.__docgenInfo = {

},
"required": true,
"required": false,
"description": ""

@@ -586,2 +588,9 @@ },

"description": ""
},
"children": {
"type": {
"name": "node"
},
"required": false,
"description": ""
}

@@ -732,3 +741,3 @@ }

*/
title: PropTypes.string.isRequired,
title: PropTypes.string,

@@ -743,3 +752,8 @@ /**

*/
width: PropTypes.oneOf(availableWidths)
width: PropTypes.oneOf(availableWidths),
/**
* Contains content of button
*/
children: PropTypes.node
};

@@ -851,3 +865,3 @@ Button.__docgenInfo = {

},
"required": true,
"required": false,
"description": "Sets the title of a button"

@@ -880,2 +894,9 @@ },

}
},
"children": {
"type": {
"name": "node"
},
"required": false,
"description": "Contains content of button"
}

@@ -882,0 +903,0 @@ }

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

const _excluded$1 = ["disabled", "hasFocus", "hasHover", "isPressed", "icon", "link", "onBlur", "onClick", "onFocus", "onHover", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "stylesheet", "target", "title", "type", "width"];
const _excluded$1 = ["disabled", "hasFocus", "hasHover", "isPressed", "icon", "link", "onBlur", "onClick", "onFocus", "onHover", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "stylesheet", "target", "title", "type", "width", "children"];

@@ -377,3 +377,4 @@ const ButtonPresenter = props => {

type,
width
width,
children
} = props,

@@ -424,3 +425,3 @@ otherProps = _objectWithoutProperties(props, _excluded$1);

className: icon ? emotion.cx(emotion.css(cssStyles.iconText), iconTextClassName) : ""
}, title));
}, children || title));
});

@@ -447,5 +448,6 @@ };

target: PropTypes__default["default"].oneOf(availableTargets),
title: PropTypes__default["default"].string.isRequired,
title: PropTypes__default["default"].string,
type: PropTypes__default["default"].oneOf(availableTypes),
width: PropTypes__default["default"].oneOf(availableWidths)
width: PropTypes__default["default"].oneOf(availableWidths),
children: PropTypes__default["default"].node
};

@@ -574,3 +576,3 @@ ButtonPresenter.__docgenInfo = {

},
"required": true,
"required": false,
"description": ""

@@ -595,2 +597,9 @@ },

"description": ""
},
"children": {
"type": {
"name": "node"
},
"required": false,
"description": ""
}

@@ -741,3 +750,3 @@ }

*/
title: PropTypes__default["default"].string.isRequired,
title: PropTypes__default["default"].string,

@@ -752,3 +761,8 @@ /**

*/
width: PropTypes__default["default"].oneOf(availableWidths)
width: PropTypes__default["default"].oneOf(availableWidths),
/**
* Contains content of button
*/
children: PropTypes__default["default"].node
};

@@ -860,3 +874,3 @@ Button.__docgenInfo = {

},
"required": true,
"required": false,
"description": "Sets the title of a button"

@@ -889,2 +903,9 @@ },

}
},
"children": {
"type": {
"name": "node"
},
"required": false,
"description": "Contains content of button"
}

@@ -891,0 +912,0 @@ }

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

# [@hig/button-v3.2.0](https://github.com/Autodesk/hig/compare/@hig/button@3.1.1...@hig/button@3.2.0) (2022-08-21)
### Features
* button to accept children prop ([0302451](https://github.com/Autodesk/hig/commit/0302451))
# [@hig/button-v3.1.1](https://github.com/Autodesk/hig/compare/@hig/button@3.1.0...@hig/button@3.1.1) (2022-03-17)

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

{
"name": "@hig/button",
"version": "3.1.1",
"version": "3.2.0",
"description": "HIG Button",

@@ -33,4 +33,4 @@ "author": "Autodesk Inc.",

"peerDependencies": {
"@hig/theme-context": "^4.1.0",
"@hig/theme-data": "^2.24.0",
"@hig/theme-context": "^4.2.0",
"@hig/theme-data": "^3.1.0",
"react": "^17.0.0"

@@ -37,0 +37,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