next-recomponents 2.0.3 → 2.0.4
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +257 -241
- package/dist/index.mjs +202 -187
- package/package.json +1 -1
- package/src/alert/index.tsx +23 -145
- package/src/index.tsx +2 -1
- package/src/pop/index.tsx +147 -0
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,12 @@ 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
4
|
|
|
5
|
+
interface Props$6 extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
color?: "white" | "primary" | "secondary" | "info" | "danger" | "warning" | "success";
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function Alert({ color, children, ...props }: Props$6): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
5
11
|
interface Props$5 extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
6
12
|
icon?: React.ReactNode;
|
|
7
13
|
size?: "full" | "small";
|
|
@@ -216,4 +222,4 @@ declare function usePopup(): {
|
|
|
216
222
|
PopupComponent: react_jsx_runtime.JSX.Element | null;
|
|
217
223
|
};
|
|
218
224
|
|
|
219
|
-
export { Button, Container, DocumentViewer, Form, Input, Modal, MyCalendar, Pre, Select, Table, Table3, type TableButtonProps, type TableButtonProps as TableEventProps, TextArea, regularExpresions, useDates, useExcel, useFormValues, usePopup, useResources };
|
|
225
|
+
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
|
@@ -2,6 +2,12 @@ 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
4
|
|
|
5
|
+
interface Props$6 extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
color?: "white" | "primary" | "secondary" | "info" | "danger" | "warning" | "success";
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function Alert({ color, children, ...props }: Props$6): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
5
11
|
interface Props$5 extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
6
12
|
icon?: React.ReactNode;
|
|
7
13
|
size?: "full" | "small";
|
|
@@ -216,4 +222,4 @@ declare function usePopup(): {
|
|
|
216
222
|
PopupComponent: react_jsx_runtime.JSX.Element | null;
|
|
217
223
|
};
|
|
218
224
|
|
|
219
|
-
export { Button, Container, DocumentViewer, Form, Input, Modal, MyCalendar, Pre, Select, Table, Table3, type TableButtonProps, type TableButtonProps as TableEventProps, TextArea, regularExpresions, useDates, useExcel, useFormValues, usePopup, useResources };
|
|
225
|
+
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 };
|