@panneau/element-range 4.0.2 → 4.0.4
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 +19 -14
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
var styles = {"container":"panneau-element-range-container"};
|
|
6
7
|
|
|
@@ -17,20 +18,24 @@ function Range(_ref) {
|
|
|
17
18
|
var onValueChange = useCallback(function (e) {
|
|
18
19
|
onChange(e.target.value);
|
|
19
20
|
}, [onChange, max]);
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
-
className: classNames([styles.container, _defineProperty({}, className, className !== null)])
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
return /*#__PURE__*/jsxs("div", {
|
|
22
|
+
className: classNames([styles.container, _defineProperty({}, className, className !== null)]),
|
|
23
|
+
children: [/*#__PURE__*/jsx("h4", {
|
|
24
|
+
children: /*#__PURE__*/jsx("label", {
|
|
25
|
+
className: styles.label,
|
|
26
|
+
htmlFor: "range",
|
|
27
|
+
children: title
|
|
28
|
+
})
|
|
29
|
+
}), /*#__PURE__*/jsx("input", {
|
|
30
|
+
className: "form-range",
|
|
31
|
+
type: "range",
|
|
32
|
+
id: "range",
|
|
33
|
+
min: "0",
|
|
34
|
+
max: max,
|
|
35
|
+
onChange: onValueChange,
|
|
36
|
+
value: value
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
export { Range as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/element-range",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Range element",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/runtime": "^7.12.5",
|
|
62
|
-
"@panneau/core": "^4.0.
|
|
62
|
+
"@panneau/core": "^4.0.4",
|
|
63
63
|
"classnames": "^2.5.1",
|
|
64
64
|
"prop-types": "^15.7.2",
|
|
65
65
|
"react-intl": "^5.15.8 || ^6.0.0 || ^7.0.0"
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "e854451a718c6bc7dcde2b804c9913d8ac0297ff"
|
|
71
71
|
}
|