next-recomponents 1.3.5 → 1.3.7
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 +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +292 -278
- package/dist/index.mjs +284 -270
- package/package.json +1 -1
- package/src/table/filter.menu.tsx +5 -8
- package/src/table/filters.tsx +16 -0
- package/src/table/h.tsx +74 -29
- package/src/table/index.tsx +9 -40
- package/src/table/td.tsx +48 -57
package/dist/index.d.mts
CHANGED
|
@@ -55,17 +55,23 @@ declare const regularExpresions: {
|
|
|
55
55
|
number: RegExp;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
type DataType = string | number | Date | object | undefined | null;
|
|
59
|
+
type Item = {
|
|
60
|
+
content: DataType;
|
|
61
|
+
handler: ReactNode;
|
|
62
|
+
};
|
|
63
|
+
type DataTypeOrItem = DataType | Item;
|
|
58
64
|
interface TableProps extends React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
|
|
59
|
-
data: Record<string,
|
|
65
|
+
data: Record<string, DataTypeOrItem> | Array<Record<string, DataTypeOrItem>>;
|
|
60
66
|
dataTypes?: Record<string, any>;
|
|
61
|
-
mapedData?: any;
|
|
62
|
-
setMapedData?: any;
|
|
63
67
|
totals?: Array<string>;
|
|
64
68
|
symbols?: Record<string, ReactNode>;
|
|
65
69
|
exportName?: string;
|
|
66
|
-
|
|
70
|
+
onSave?: (e: {
|
|
71
|
+
data: Record<string, any>;
|
|
72
|
+
}) => void;
|
|
67
73
|
}
|
|
68
|
-
declare function Table(props: TableProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
declare function Table({ ...props }: TableProps): react_jsx_runtime.JSX.Element;
|
|
69
75
|
|
|
70
76
|
interface Props$2 extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
|
|
71
77
|
label?: React$1.ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -55,17 +55,23 @@ declare const regularExpresions: {
|
|
|
55
55
|
number: RegExp;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
type DataType = string | number | Date | object | undefined | null;
|
|
59
|
+
type Item = {
|
|
60
|
+
content: DataType;
|
|
61
|
+
handler: ReactNode;
|
|
62
|
+
};
|
|
63
|
+
type DataTypeOrItem = DataType | Item;
|
|
58
64
|
interface TableProps extends React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
|
|
59
|
-
data: Record<string,
|
|
65
|
+
data: Record<string, DataTypeOrItem> | Array<Record<string, DataTypeOrItem>>;
|
|
60
66
|
dataTypes?: Record<string, any>;
|
|
61
|
-
mapedData?: any;
|
|
62
|
-
setMapedData?: any;
|
|
63
67
|
totals?: Array<string>;
|
|
64
68
|
symbols?: Record<string, ReactNode>;
|
|
65
69
|
exportName?: string;
|
|
66
|
-
|
|
70
|
+
onSave?: (e: {
|
|
71
|
+
data: Record<string, any>;
|
|
72
|
+
}) => void;
|
|
67
73
|
}
|
|
68
|
-
declare function Table(props: TableProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
declare function Table({ ...props }: TableProps): react_jsx_runtime.JSX.Element;
|
|
69
75
|
|
|
70
76
|
interface Props$2 extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
|
|
71
77
|
label?: React$1.ReactNode;
|