@panneau/element-range 1.0.3-alpha.1 → 1.0.3

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
@@ -18,13 +18,12 @@ var defaultProps = {
18
18
  max: 100,
19
19
  className: null
20
20
  };
21
-
22
21
  var Range = function Range(_ref) {
23
22
  var title = _ref.title,
24
- value = _ref.value,
25
- onChange = _ref.onChange,
26
- max = _ref.max,
27
- className = _ref.className;
23
+ value = _ref.value,
24
+ onChange = _ref.onChange,
25
+ max = _ref.max,
26
+ className = _ref.className;
28
27
  var onValueChange = useCallback(function (e) {
29
28
  onChange(e.target.value);
30
29
  }, [max]);
@@ -43,7 +42,6 @@ var Range = function Range(_ref) {
43
42
  value: value
44
43
  }));
45
44
  };
46
-
47
45
  Range.propTypes = propTypes;
48
46
  Range.defaultProps = defaultProps;
49
47
 
package/lib/index.js CHANGED
@@ -29,13 +29,12 @@ var defaultProps = {
29
29
  max: 100,
30
30
  className: null
31
31
  };
32
-
33
32
  var Range = function Range(_ref) {
34
33
  var title = _ref.title,
35
- value = _ref.value,
36
- onChange = _ref.onChange,
37
- max = _ref.max,
38
- className = _ref.className;
34
+ value = _ref.value,
35
+ onChange = _ref.onChange,
36
+ max = _ref.max,
37
+ className = _ref.className;
39
38
  var onValueChange = React.useCallback(function (e) {
40
39
  onChange(e.target.value);
41
40
  }, [max]);
@@ -54,7 +53,6 @@ var Range = function Range(_ref) {
54
53
  value: value
55
54
  }));
56
55
  };
57
-
58
56
  Range.propTypes = propTypes;
59
57
  Range.defaultProps = defaultProps;
60
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/element-range",
3
- "version": "1.0.3-alpha.1",
3
+ "version": "1.0.3",
4
4
  "description": "Range element",
5
5
  "keywords": [
6
6
  "javascript"
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@babel/runtime": "^7.12.5",
56
- "@panneau/core": "^1.0.3-alpha.1",
56
+ "@panneau/core": "^1.0.3",
57
57
  "classnames": "^2.2.6",
58
58
  "prop-types": "^15.7.2",
59
59
  "react-intl": "^5.15.8||^6.0.0"
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "e04e663c7f1eb692f89a0136f2e8f45024fbe355"
64
+ "gitHead": "59e6842b1a768acb6fa826e6a6396d09e239c955"
65
65
  }