@panneau/modal-confirm 4.0.8 → 4.0.14

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.
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface ConfirmModalProps {
5
+ id: string | number;
6
+ title?: ReactNode | null;
7
+ onConfirm?: (() => void) | null;
8
+ onClose?: (() => void) | null;
9
+ confirmButton?: {
10
+ label?: string;
11
+ } | null;
12
+ cancelButton?: {
13
+ label?: string;
14
+ } | null;
15
+ className?: string | null;
16
+ children?: ReactNode | null;
17
+ }
18
+ declare function ConfirmModal({ id, title, onConfirm, onClose, confirmButton, cancelButton, className, children, }: ConfirmModalProps): react_jsx_runtime.JSX.Element;
19
+
20
+ export { ConfirmModal as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/modal-confirm",
3
- "version": "4.0.8",
3
+ "version": "4.0.14",
4
4
  "description": "Confirm modal",
5
5
  "keywords": [
6
6
  "javascript"
@@ -26,40 +26,42 @@
26
26
  ],
27
27
  "license": "ISC",
28
28
  "type": "module",
29
- "module": "es/index.js",
29
+ "module": "dist/index.js",
30
+ "types": "dist/index.d.ts",
30
31
  "exports": {
31
- ".": "./es/index.js"
32
+ ".": {
33
+ "default": "./dist/index.js",
34
+ "types": "./dist/index.d.ts"
35
+ }
32
36
  },
33
37
  "files": [
34
- "lib",
35
- "es",
38
+ "dist",
36
39
  "assets"
37
40
  ],
38
41
  "scripts": {
39
42
  "prepublishOnly": "npm run build",
40
- "build": "../../scripts/prepare-package.sh"
43
+ "build": "../../scripts/prepare-package.sh --types"
41
44
  },
42
45
  "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"
46
+ "react": "^19.0.0",
47
+ "react-dom": "^19.0.0"
45
48
  },
46
49
  "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"
50
+ "react": "^19.0.0",
51
+ "react-dom": "^19.0.0"
49
52
  },
50
53
  "dependencies": {
51
54
  "@babel/runtime": "^7.12.5",
52
- "@panneau/core": "^4.0.8",
53
- "@panneau/intl": "^4.0.8",
54
- "@panneau/modal-dialog": "^4.0.8",
55
- "@panneau/themes": "^4.0.8",
55
+ "@panneau/core": "^4.0.14",
56
+ "@panneau/intl": "^4.0.14",
57
+ "@panneau/modal-dialog": "^4.0.14",
58
+ "@panneau/themes": "^4.0.14",
56
59
  "classnames": "^2.5.1",
57
- "lodash-es": "^4.17.21",
58
- "prop-types": "^15.7.2",
60
+ "lodash": "^4.17.21",
59
61
  "react-intl": "^5.15.8 || ^6.0.0 || ^7.0.0"
60
62
  },
61
63
  "publishConfig": {
62
64
  "access": "public"
63
65
  },
64
- "gitHead": "c9fa22382cc63416e2bfaac780f31794b11c8c64"
66
+ "gitHead": "ce35c2ddb30a7be2efe951882d9826dca577f5d4"
65
67
  }
File without changes