next-recomponents 2.0.8 → 2.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/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/pop/index.tsx +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React$1, { DetailedHTMLProps, ButtonHTMLAttributes, ReactNode, Dispatch, SetStateAction, InputHTMLAttributes, TextareaHTMLAttributes, TableHTMLAttributes } from 'react';
|
|
3
3
|
import { GridValidRowModel } from '@mui/x-data-grid';
|
|
4
|
+
import { React as React$2 } from 'next/dist/server/route-modules/app-page/vendored/rsc/entrypoints';
|
|
4
5
|
|
|
5
6
|
interface Props$6 extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
7
|
color?: "white" | "primary" | "secondary" | "info" | "danger" | "warning" | "success";
|
|
@@ -222,6 +223,7 @@ declare function usePopup(): {
|
|
|
222
223
|
confirm: (message: string, color?: Color) => Promise<boolean>;
|
|
223
224
|
prompt: (message: string, color?: Color) => Promise<string | null>;
|
|
224
225
|
PopupComponent: react_jsx_runtime.JSX.Element | null;
|
|
226
|
+
modal: (content: React$2.ReactNode, color?: Color) => Promise<void>;
|
|
225
227
|
};
|
|
226
228
|
|
|
227
229
|
export { Alert, Button, Container, DocumentViewer, Form, Input, Modal, MyCalendar, Pre, Select, Table, Table3, type TableButtonProps, type TableButtonProps as TableEventProps, TextArea, regularExpresions, useDates, useExcel, useFormValues, usePopup, useResources };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React$1, { DetailedHTMLProps, ButtonHTMLAttributes, ReactNode, Dispatch, SetStateAction, InputHTMLAttributes, TextareaHTMLAttributes, TableHTMLAttributes } from 'react';
|
|
3
3
|
import { GridValidRowModel } from '@mui/x-data-grid';
|
|
4
|
+
import { React as React$2 } from 'next/dist/server/route-modules/app-page/vendored/rsc/entrypoints';
|
|
4
5
|
|
|
5
6
|
interface Props$6 extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
7
|
color?: "white" | "primary" | "secondary" | "info" | "danger" | "warning" | "success";
|
|
@@ -222,6 +223,7 @@ declare function usePopup(): {
|
|
|
222
223
|
confirm: (message: string, color?: Color) => Promise<boolean>;
|
|
223
224
|
prompt: (message: string, color?: Color) => Promise<string | null>;
|
|
224
225
|
PopupComponent: react_jsx_runtime.JSX.Element | null;
|
|
226
|
+
modal: (content: React$2.ReactNode, color?: Color) => Promise<void>;
|
|
225
227
|
};
|
|
226
228
|
|
|
227
229
|
export { Alert, Button, Container, DocumentViewer, Form, Input, Modal, MyCalendar, Pre, Select, Table, Table3, type TableButtonProps, type TableButtonProps as TableEventProps, TextArea, regularExpresions, useDates, useExcel, useFormValues, usePopup, useResources };
|
package/dist/index.js
CHANGED
|
@@ -34755,7 +34755,7 @@ function usePopup() {
|
|
|
34755
34755
|
)
|
|
34756
34756
|
}
|
|
34757
34757
|
) : null;
|
|
34758
|
-
return { alert: alert2, confirm, prompt, PopupComponent };
|
|
34758
|
+
return { alert: alert2, confirm, prompt, PopupComponent, modal };
|
|
34759
34759
|
}
|
|
34760
34760
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34761
34761
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -34720,7 +34720,7 @@ function usePopup() {
|
|
|
34720
34720
|
)
|
|
34721
34721
|
}
|
|
34722
34722
|
) : null;
|
|
34723
|
-
return { alert: alert2, confirm, prompt, PopupComponent };
|
|
34723
|
+
return { alert: alert2, confirm, prompt, PopupComponent, modal };
|
|
34724
34724
|
}
|
|
34725
34725
|
export {
|
|
34726
34726
|
Alert,
|
package/package.json
CHANGED
package/src/pop/index.tsx
CHANGED