@micromag/element-button 0.2.300 → 0.2.323

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.js CHANGED
@@ -14,6 +14,7 @@ var propTypes = {
14
14
  buttonStyle: PropTypes.buttonStyle,
15
15
  type: PropTypes$1.oneOf(['button', 'submit']),
16
16
  disabled: PropTypes$1.bool,
17
+ focusable: PropTypes$1.bool,
17
18
  onClick: PropTypes$1.func,
18
19
  children: PropTypes$1.node,
19
20
  className: PropTypes$1.string,
@@ -27,6 +28,7 @@ var defaultProps = {
27
28
  buttonStyle: null,
28
29
  type: 'button',
29
30
  disabled: false,
31
+ focusable: true,
30
32
  onClick: null,
31
33
  children: null,
32
34
  className: null,
@@ -38,6 +40,7 @@ var Button = function Button(_ref) {
38
40
  buttonStyle = _ref.buttonStyle,
39
41
  type = _ref.type,
40
42
  disabled = _ref.disabled,
43
+ focusable = _ref.focusable,
41
44
  onClick = _ref.onClick,
42
45
  children = _ref.children,
43
46
  className = _ref.className,
@@ -58,7 +61,8 @@ var Button = function Button(_ref) {
58
61
  style: finalStyle,
59
62
  onClick: onClick,
60
63
  refButton: refButton,
61
- type: type
64
+ type: type,
65
+ focusable: focusable
62
66
  }, children);
63
67
  };
64
68
 
package/lib/index.js CHANGED
@@ -24,6 +24,7 @@ var propTypes = {
24
24
  buttonStyle: core.PropTypes.buttonStyle,
25
25
  type: PropTypes__default['default'].oneOf(['button', 'submit']),
26
26
  disabled: PropTypes__default['default'].bool,
27
+ focusable: PropTypes__default['default'].bool,
27
28
  onClick: PropTypes__default['default'].func,
28
29
  children: PropTypes__default['default'].node,
29
30
  className: PropTypes__default['default'].string,
@@ -37,6 +38,7 @@ var defaultProps = {
37
38
  buttonStyle: null,
38
39
  type: 'button',
39
40
  disabled: false,
41
+ focusable: true,
40
42
  onClick: null,
41
43
  children: null,
42
44
  className: null,
@@ -48,6 +50,7 @@ var Button = function Button(_ref) {
48
50
  buttonStyle = _ref.buttonStyle,
49
51
  type = _ref.type,
50
52
  disabled = _ref.disabled,
53
+ focusable = _ref.focusable,
51
54
  onClick = _ref.onClick,
52
55
  children = _ref.children,
53
56
  className = _ref.className,
@@ -68,7 +71,8 @@ var Button = function Button(_ref) {
68
71
  style: finalStyle,
69
72
  onClick: onClick,
70
73
  refButton: refButton,
71
- type: type
74
+ type: type,
75
+ focusable: focusable
72
76
  }, children);
73
77
  };
74
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-button",
3
- "version": "0.2.300",
3
+ "version": "0.2.323",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.2.300",
52
+ "@micromag/core": "^0.2.323",
53
53
  "classnames": "^2.2.6",
54
54
  "prop-types": "^15.7.2",
55
55
  "react-intl": "^5.12.1",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "0beff892194f4a52ce6b916d3c819f46354b92ec"
61
+ "gitHead": "23e128eb7548a633d1f7542f3948039aea9bd55c"
62
62
  }