@panneau/filter-radios 3.0.223 → 3.0.228

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/package.json +8 -5
  2. package/lib/index.js +0 -46
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/filter-radios",
3
- "version": "3.0.223",
3
+ "version": "3.0.228",
4
4
  "description": "Radio buttons filter",
5
5
  "keywords": [
6
6
  "javascript"
@@ -33,8 +33,11 @@
33
33
  }
34
34
  ],
35
35
  "license": "ISC",
36
- "main": "lib/index.js",
36
+ "type": "module",
37
37
  "module": "es/index.js",
38
+ "exports": {
39
+ ".": "./es/index.js"
40
+ },
38
41
  "files": [
39
42
  "lib",
40
43
  "es",
@@ -56,8 +59,8 @@
56
59
  "@babel/runtime": "^7.12.5",
57
60
  "@fortawesome/free-solid-svg-icons": "^6.5.1",
58
61
  "@fortawesome/react-fontawesome": "^0.2.0",
59
- "@panneau/core": "^3.0.223",
60
- "@panneau/element-radios": "^3.0.223",
62
+ "@panneau/core": "^3.0.228",
63
+ "@panneau/element-radios": "^3.0.228",
61
64
  "classnames": "^2.5.1",
62
65
  "lodash": "^4.17.21",
63
66
  "prop-types": "^15.7.2",
@@ -66,5 +69,5 @@
66
69
  "publishConfig": {
67
70
  "access": "public"
68
71
  },
69
- "gitHead": "14196bd955b0e44cbc214e00f3189b3216f3fa53"
72
+ "gitHead": "2adf72884fb88052c6a6822e6f32169bb1dfe18b"
70
73
  }
package/lib/index.js DELETED
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
6
- var PropTypes = require('prop-types');
7
- var React = require('react');
8
- var core = require('@panneau/core');
9
- var Radios = require('@panneau/element-radios');
10
-
11
- var _excluded = ["name", "value", "options", "onChange", "className"];
12
- var propTypes = {
13
- name: PropTypes.string,
14
- options: core.PropTypes.selectOptions,
15
- value: PropTypes.string,
16
- onChange: PropTypes.func.isRequired,
17
- className: PropTypes.string
18
- };
19
- var defaultProps = {
20
- name: 'radios',
21
- value: null,
22
- options: [],
23
- className: null
24
- };
25
- var RadiosFilter = function RadiosFilter(_ref) {
26
- var name = _ref.name,
27
- value = _ref.value,
28
- options = _ref.options,
29
- onChange = _ref.onChange,
30
- className = _ref.className,
31
- props = _objectWithoutProperties(_ref, _excluded);
32
- return /*#__PURE__*/React.createElement("div", {
33
- className: className
34
- }, /*#__PURE__*/React.createElement(Radios, Object.assign({}, props, {
35
- name: name,
36
- value: value,
37
- options: options,
38
- onChange: onChange,
39
- uncheckable: true
40
- })));
41
- };
42
- RadiosFilter.propTypes = propTypes;
43
- RadiosFilter.defaultProps = defaultProps;
44
- var RadiosFilter$1 = RadiosFilter;
45
-
46
- exports.default = RadiosFilter$1;