next-recomponents 2.0.7 → 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 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 };