@panneau/display-unit 4.0.7 → 4.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/display-unit",
3
- "version": "4.0.7",
3
+ "version": "4.0.11",
4
4
  "description": "Unit display",
5
5
  "keywords": [
6
6
  "javascript"
@@ -27,30 +27,37 @@
27
27
  "license": "ISC",
28
28
  "type": "module",
29
29
  "module": "es/index.js",
30
+ "types": "types/index.d.ts",
30
31
  "exports": {
31
- ".": "./es/index.js"
32
+ ".": {
33
+ "import": {
34
+ "default": "./es/index.js",
35
+ "types": "./types/index.d.ts"
36
+ }
37
+ }
32
38
  },
33
39
  "files": [
34
40
  "lib",
35
41
  "es",
36
- "assets"
42
+ "assets",
43
+ "types"
37
44
  ],
38
45
  "scripts": {
39
46
  "prepublishOnly": "npm run build",
40
- "build": "../../scripts/prepare-package.sh"
47
+ "build": "../../scripts/prepare-package.sh --types"
41
48
  },
42
49
  "devDependencies": {
43
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
44
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
50
+ "react": "^19.0.0",
51
+ "react-dom": "^19.0.0"
45
52
  },
46
53
  "peerDependencies": {
47
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
48
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
54
+ "react": "^19.0.0",
55
+ "react-dom": "^19.0.0"
49
56
  },
50
57
  "dependencies": {
51
58
  "@babel/runtime": "^7.12.5",
52
- "@panneau/core": "^4.0.7",
53
- "@panneau/themes": "^4.0.7",
59
+ "@panneau/core": "^4.0.11",
60
+ "@panneau/themes": "^4.0.11",
54
61
  "lodash-es": "^4.17.21",
55
62
  "pretty-bytes": "^6.1.1",
56
63
  "prop-types": "^15.7.2",
@@ -59,5 +66,5 @@
59
66
  "publishConfig": {
60
67
  "access": "public"
61
68
  },
62
- "gitHead": "8d44fb7aa253ad3ef23c1aca2e7f1a4884c357a6"
69
+ "gitHead": "fe8264ed2815da0b5a40339dec99999c6fe70751"
63
70
  }
@@ -0,0 +1,9 @@
1
+ import { type ReactNode } from 'react';
2
+ interface UnitProps {
3
+ value?: string | number | Record<string, unknown> | null;
4
+ placeholder?: ReactNode | null;
5
+ format?: string | null;
6
+ suffix?: string | null;
7
+ }
8
+ declare function Unit({ value, placeholder, format, suffix }: UnitProps): import("react/jsx-runtime").JSX.Element;
9
+ export default Unit;
@@ -0,0 +1,2 @@
1
+ export default Unit;
2
+ import Unit from './Unit';