next-recomponents 2.0.4 → 2.0.5
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 +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +359 -252
- package/dist/index.mjs +357 -250
- package/package.json +1 -1
- package/src/pop/index.tsx +179 -73
- package/src/table/index.tsx +348 -241
package/dist/index.d.mts
CHANGED
|
@@ -62,8 +62,9 @@ declare const regularExpresions: {
|
|
|
62
62
|
interface TableButtonProps extends React$1.MouseEvent<HTMLButtonElement, MouseEvent> {
|
|
63
63
|
row: Record<string, any>;
|
|
64
64
|
}
|
|
65
|
+
type FooterAggregation = "sum" | "avg" | "count";
|
|
65
66
|
interface FooterType {
|
|
66
|
-
[key: string]:
|
|
67
|
+
[key: string]: FooterAggregation;
|
|
67
68
|
}
|
|
68
69
|
interface TableProps {
|
|
69
70
|
data: any;
|
|
@@ -215,10 +216,11 @@ interface Table3Props<T extends Record<string, any>> extends DetailedHTMLProps<T
|
|
|
215
216
|
}
|
|
216
217
|
declare function Table3<T extends Record<string, any>>({ data, selectItems, maxItems, onSave, exportName, colSizes, modal, header, footer, onChange, symbols, sortBy, ...props }: Table3Props<T>): react_jsx_runtime.JSX.Element | null;
|
|
217
218
|
|
|
219
|
+
type Color = "white" | "primary" | "secondary" | "info" | "danger" | "warning" | "success";
|
|
218
220
|
declare function usePopup(): {
|
|
219
|
-
alert: (message: string) => Promise<void>;
|
|
220
|
-
confirm: (message: string) => Promise<boolean>;
|
|
221
|
-
prompt: (message: string) => Promise<string | null>;
|
|
221
|
+
alert: (message: string, color?: Color) => Promise<void>;
|
|
222
|
+
confirm: (message: string, color?: Color) => Promise<boolean>;
|
|
223
|
+
prompt: (message: string, color?: Color) => Promise<string | null>;
|
|
222
224
|
PopupComponent: react_jsx_runtime.JSX.Element | null;
|
|
223
225
|
};
|
|
224
226
|
|
package/dist/index.d.ts
CHANGED
|
@@ -62,8 +62,9 @@ declare const regularExpresions: {
|
|
|
62
62
|
interface TableButtonProps extends React$1.MouseEvent<HTMLButtonElement, MouseEvent> {
|
|
63
63
|
row: Record<string, any>;
|
|
64
64
|
}
|
|
65
|
+
type FooterAggregation = "sum" | "avg" | "count";
|
|
65
66
|
interface FooterType {
|
|
66
|
-
[key: string]:
|
|
67
|
+
[key: string]: FooterAggregation;
|
|
67
68
|
}
|
|
68
69
|
interface TableProps {
|
|
69
70
|
data: any;
|
|
@@ -215,10 +216,11 @@ interface Table3Props<T extends Record<string, any>> extends DetailedHTMLProps<T
|
|
|
215
216
|
}
|
|
216
217
|
declare function Table3<T extends Record<string, any>>({ data, selectItems, maxItems, onSave, exportName, colSizes, modal, header, footer, onChange, symbols, sortBy, ...props }: Table3Props<T>): react_jsx_runtime.JSX.Element | null;
|
|
217
218
|
|
|
219
|
+
type Color = "white" | "primary" | "secondary" | "info" | "danger" | "warning" | "success";
|
|
218
220
|
declare function usePopup(): {
|
|
219
|
-
alert: (message: string) => Promise<void>;
|
|
220
|
-
confirm: (message: string) => Promise<boolean>;
|
|
221
|
-
prompt: (message: string) => Promise<string | null>;
|
|
221
|
+
alert: (message: string, color?: Color) => Promise<void>;
|
|
222
|
+
confirm: (message: string, color?: Color) => Promise<boolean>;
|
|
223
|
+
prompt: (message: string, color?: Color) => Promise<string | null>;
|
|
222
224
|
PopupComponent: react_jsx_runtime.JSX.Element | null;
|
|
223
225
|
};
|
|
224
226
|
|