@jhelom/react-mui-message-dialog 1.0.7 → 1.0.9
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/LICENSE +21 -0
- package/README.md +4 -0
- package/dist/index.cjs.js +45 -134
- package/dist/index.es.js +7287 -9123
- package/dist/index.umd.js +45 -134
- package/dist/{DialogTitleEx.d.ts → src/DialogTitleEx.d.ts} +2 -0
- package/dist/{MessageDialog.d.ts → src/MessageDialog.d.ts} +2 -7
- package/dist/src/MessageDialog.test.d.ts +1 -0
- package/dist/{MessageDialogContext.d.ts → src/MessageDialogContext.d.ts} +4 -1
- package/dist/{index.d.ts → src/index.d.ts} +1 -1
- package/package.json +57 -47
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
cancelText?: string;
|
|
5
|
-
alertTitle?: string;
|
|
6
|
-
confirmTitle?: string;
|
|
7
|
-
errorTitle?: string;
|
|
8
|
-
}
|
|
2
|
+
import { MessageDialogSettings } from './MessageDialogContext';
|
|
3
|
+
export type { MessageDialogSettings } from './MessageDialogContext';
|
|
9
4
|
export interface MessageDialogProviderProps {
|
|
10
5
|
children: ReactNode;
|
|
11
6
|
settings?: MessageDialogSettings;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,8 +10,11 @@ export type MessageDialogOptions = {
|
|
|
10
10
|
export interface MessageDialogSettings {
|
|
11
11
|
okText?: string;
|
|
12
12
|
cancelText?: string;
|
|
13
|
-
|
|
13
|
+
alertTitle?: string;
|
|
14
|
+
confirmTitle?: string;
|
|
14
15
|
errorTitle?: string;
|
|
16
|
+
closeButtonAriaLabel?: string;
|
|
17
|
+
titleHeight?: number;
|
|
15
18
|
}
|
|
16
19
|
export declare const MessageDialogContext: import('react').Context<MessageDialogType | null>;
|
|
17
20
|
export declare const useMessageDialog: () => MessageDialogType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { MessageDialogProvider } from './MessageDialog';
|
|
2
2
|
export { useMessageDialog } from './MessageDialogContext';
|
|
3
|
-
export type { MessageDialogSettings } from './
|
|
3
|
+
export type { MessageDialogOptions, MessageDialogSettings, MessageDialogType } from './MessageDialogContext';
|
|
4
4
|
export { default as DialogTitleEx, } from './DialogTitleEx';
|
|
5
5
|
export type { DialogTitleExProps } from './DialogTitleEx';
|
package/package.json
CHANGED
|
@@ -1,47 +1,57 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@jhelom/react-mui-message-dialog",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"main": "dist/index.es.js",
|
|
5
|
-
"module": "dist/index.es.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"README.md"
|
|
10
|
-
],
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"@
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "https://github.com/jhelom/react-mui-message-dialog.git"
|
|
32
|
-
},
|
|
33
|
-
"bugs": {
|
|
34
|
-
"url": "https://github.com/jhelom/react-mui-message-dialog/issues"
|
|
35
|
-
},
|
|
36
|
-
"homepage": "https://github.com/jhelom/react-mui-message-dialog#readme",
|
|
37
|
-
"author": "jhelom",
|
|
38
|
-
"keywords": [
|
|
39
|
-
"react",
|
|
40
|
-
"mui",
|
|
41
|
-
"dialog",
|
|
42
|
-
"typescript",
|
|
43
|
-
"promise",
|
|
44
|
-
"message"
|
|
45
|
-
],
|
|
46
|
-
"license": "MIT"
|
|
47
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@jhelom/react-mui-message-dialog",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"main": "dist/index.es.js",
|
|
5
|
+
"module": "dist/index.es.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"@mui/material": ">=5",
|
|
13
|
+
"react": ">=18"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@storybook/react-vite": "^10.3.5",
|
|
17
|
+
"@testing-library/react": "^16.3.0",
|
|
18
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
19
|
+
"jsdom": "^27.0.1",
|
|
20
|
+
"tsx": "^4.20.6",
|
|
21
|
+
"typescript": "^6.0.3",
|
|
22
|
+
"vite": "8.0.5",
|
|
23
|
+
"vite-plugin-dts": "^4.5.4",
|
|
24
|
+
"vitest": "^4.1.4"
|
|
25
|
+
},
|
|
26
|
+
"optionalDependencies": {
|
|
27
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-rc.12"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/jhelom/react-mui-message-dialog.git"
|
|
32
|
+
},
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/jhelom/react-mui-message-dialog/issues"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/jhelom/react-mui-message-dialog#readme",
|
|
37
|
+
"author": "jhelom",
|
|
38
|
+
"keywords": [
|
|
39
|
+
"react",
|
|
40
|
+
"mui",
|
|
41
|
+
"dialog",
|
|
42
|
+
"typescript",
|
|
43
|
+
"promise",
|
|
44
|
+
"message"
|
|
45
|
+
],
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"optional": "^0.1.4"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "vite build",
|
|
52
|
+
"test": "vitest",
|
|
53
|
+
"verify:message-dialog": "tsx ./scripts/verify-message-dialog.tsx",
|
|
54
|
+
"storybook": "storybook dev -p 6006",
|
|
55
|
+
"build-storybook": "storybook build"
|
|
56
|
+
}
|
|
57
|
+
}
|