@micromag/element-button 0.3.618 → 0.3.628

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.
Files changed (2) hide show
  1. package/es/index.js +15 -15
  2. package/package.json +3 -3
package/es/index.js CHANGED
@@ -2,29 +2,29 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
4
  import classNames from 'classnames';
5
- import PropTypes$1 from 'prop-types';
5
+ import PropTypes from 'prop-types';
6
6
  import React from 'react';
7
- import { PropTypes } from '@micromag/core';
7
+ import { PropTypes as PropTypes$1 } from '@micromag/core';
8
8
  import { Button as Button$1 } from '@micromag/core/components';
9
9
  import { getStyleFromText, getStyleFromBox } from '@micromag/core/utils';
10
10
 
11
- var styles = {"container":"micromag-element-button-container","disabled":"micromag-element-button-disabled","border":"micromag-element-button-border"};
11
+ var styles = {"container":"micromag-element-button-container"};
12
12
 
13
13
  var _excluded = ["textStyle", "buttonStyle", "type", "disabled", "focusable", "inline", "onClick", "children", "className", "withoutExternalBorder", "refButton"],
14
14
  _excluded2 = ["body"];
15
15
  var propTypes = {
16
- textStyle: PropTypes.textStyle,
17
- buttonStyle: PropTypes.boxStyle,
18
- type: PropTypes$1.oneOf(['button', 'submit']),
19
- disabled: PropTypes$1.bool,
20
- focusable: PropTypes$1.bool,
21
- inline: PropTypes$1.bool,
22
- onClick: PropTypes$1.func,
23
- children: PropTypes$1.node,
24
- className: PropTypes$1.string,
25
- withoutExternalBorder: PropTypes$1.bool,
26
- refButton: PropTypes$1.oneOfType([PropTypes$1.func, PropTypes$1.shape({
27
- current: PropTypes$1.any // eslint-disable-line
16
+ textStyle: PropTypes$1.textStyle,
17
+ buttonStyle: PropTypes$1.boxStyle,
18
+ type: PropTypes.oneOf(['button', 'submit']),
19
+ disabled: PropTypes.bool,
20
+ focusable: PropTypes.bool,
21
+ inline: PropTypes.bool,
22
+ onClick: PropTypes.func,
23
+ children: PropTypes.node,
24
+ className: PropTypes.string,
25
+ withoutExternalBorder: PropTypes.bool,
26
+ refButton: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
27
+ current: PropTypes.any // eslint-disable-line
28
28
  })])
29
29
  };
30
30
  var defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-button",
3
- "version": "0.3.618",
3
+ "version": "0.3.628",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@babel/runtime": "^7.13.10",
62
- "@micromag/core": "^0.3.618",
62
+ "@micromag/core": "^0.3.628",
63
63
  "classnames": "^2.2.6",
64
64
  "prop-types": "^15.7.2",
65
65
  "react-intl": "^6.6.4",
@@ -69,5 +69,5 @@
69
69
  "access": "public",
70
70
  "registry": "https://registry.npmjs.org/"
71
71
  },
72
- "gitHead": "326f53fe66a702f890b60e4abff3541f508567b8"
72
+ "gitHead": "6f1230244a2966c16e85b7d44583276421a38cca"
73
73
  }