@panneau/display-unit 4.0.2 → 4.0.5

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 +5 -3
  2. package/package.json +4 -4
package/es/index.js CHANGED
@@ -2,6 +2,7 @@ import isObject from 'lodash-es/isObject';
2
2
  import prettyBytes from 'pretty-bytes';
3
3
  import { useMemo } from 'react';
4
4
  import { formatDuration } from '@panneau/core/utils';
5
+ import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  function Unit(_ref) {
7
8
  var _ref$value = _ref.value,
@@ -38,9 +39,10 @@ function Unit(_ref) {
38
39
  }
39
40
  return value;
40
41
  }, [value, format, suffix]);
41
- return /*#__PURE__*/React.createElement("span", {
42
- className: "text-nowrap"
43
- }, finalValue || placeholder);
42
+ return /*#__PURE__*/jsx("span", {
43
+ className: "text-nowrap",
44
+ children: finalValue || placeholder
45
+ });
44
46
  }
45
47
 
46
48
  export { Unit as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/display-unit",
3
- "version": "4.0.2",
3
+ "version": "4.0.5",
4
4
  "description": "Unit display",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,8 +49,8 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.12.5",
52
- "@panneau/core": "^4.0.2",
53
- "@panneau/themes": "^4.0.2",
52
+ "@panneau/core": "^4.0.5",
53
+ "@panneau/themes": "^4.0.5",
54
54
  "lodash-es": "^4.17.21",
55
55
  "pretty-bytes": "^6.1.1",
56
56
  "prop-types": "^15.7.2",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "53ad0f27e467992c23158732e0f7d39d8615780b"
62
+ "gitHead": "ac8b065e8c7ada1d176d15eff1c0fa53599ad31f"
63
63
  }