@micromag/element-checkbox 0.3.420 → 0.3.429

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.
@@ -1 +1 @@
1
- .micromag-element-checkbox-container{position:relative}.micromag-element-checkbox-container .micromag-element-checkbox-label{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin-bottom:0}.micromag-element-checkbox-container .micromag-element-checkbox-input{margin-right:5px}
1
+ .micromag-element-checkbox-container{position:relative}.micromag-element-checkbox-container .micromag-element-checkbox-label{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin-bottom:0}.micromag-element-checkbox-container .micromag-element-checkbox-input{margin-right:5px}
package/lib/index.js CHANGED
@@ -7,24 +7,16 @@ var PropTypes = require('prop-types');
7
7
  var React = require('react');
8
8
  var core = require('@micromag/core');
9
9
 
10
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
-
12
- var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
13
- var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
14
- var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
15
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
16
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
-
18
10
  var styles = {"container":"micromag-element-checkbox-container","label":"micromag-element-checkbox-label","input":"micromag-element-checkbox-input"};
19
11
 
20
12
  var propTypes = {
21
13
  option: core.PropTypes.textElement,
22
- value: PropTypes__default["default"].bool,
23
- onChange: PropTypes__default["default"].func,
24
- focusable: PropTypes__default["default"].bool,
25
- checkboxStyle: PropTypes__default["default"].object,
14
+ value: PropTypes.bool,
15
+ onChange: PropTypes.func,
16
+ focusable: PropTypes.bool,
17
+ checkboxStyle: PropTypes.object,
26
18
  // eslint-disable-line
27
- className: PropTypes__default["default"].string
19
+ className: PropTypes.string
28
20
  };
29
21
  var defaultProps = {
30
22
  option: null,
@@ -44,14 +36,14 @@ var Checkbox = function Checkbox(_ref) {
44
36
  var _ref2 = option || {},
45
37
  _ref2$body = _ref2.body,
46
38
  body = _ref2$body === void 0 ? null : _ref2$body;
47
- return /*#__PURE__*/React__default["default"].createElement("div", {
48
- className: classNames__default["default"]([styles.container, _defineProperty__default["default"]({}, className, className !== null)]),
49
- style: _objectSpread__default["default"]({}, checkboxStyle)
50
- }, /*#__PURE__*/React__default["default"].createElement("label", {
51
- className: classNames__default["default"]([styles.label, {
39
+ return /*#__PURE__*/React.createElement("div", {
40
+ className: classNames([styles.container, _defineProperty({}, className, className !== null)]),
41
+ style: _objectSpread({}, checkboxStyle)
42
+ }, /*#__PURE__*/React.createElement("label", {
43
+ className: classNames([styles.label, {
52
44
  active: body === value
53
45
  }])
54
- }, /*#__PURE__*/React__default["default"].createElement("input", {
46
+ }, /*#__PURE__*/React.createElement("input", {
55
47
  className: styles.input,
56
48
  type: "checkbox",
57
49
  autoComplete: "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-checkbox",
3
- "version": "0.3.420",
3
+ "version": "0.3.429",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -32,6 +32,12 @@
32
32
  "license": "ISC",
33
33
  "main": "lib/index.js",
34
34
  "module": "es/index.js",
35
+ "exports": {
36
+ ".": {
37
+ "require": "./lib/index.js",
38
+ "import": "./es/index.js"
39
+ }
40
+ },
35
41
  "files": [
36
42
  "lib",
37
43
  "es",
@@ -50,7 +56,7 @@
50
56
  },
51
57
  "dependencies": {
52
58
  "@babel/runtime": "^7.13.10",
53
- "@micromag/core": "^0.3.420",
59
+ "@micromag/core": "^0.3.429",
54
60
  "change-case": "^4.1.2",
55
61
  "classnames": "^2.2.6",
56
62
  "lodash": "^4.17.21",
@@ -62,5 +68,5 @@
62
68
  "access": "public",
63
69
  "registry": "https://registry.npmjs.org/"
64
70
  },
65
- "gitHead": "5b0f037a41c3bca07a5bce8f0dce205242f7ad17"
71
+ "gitHead": "f15e72b88ecfda4c54b87626513149b58572c52b"
66
72
  }