@ceed/ads 0.0.57 → 0.0.59
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/components/DataTable/DataTable.d.ts +5 -2
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/index.js +1 -1
- package/framer/index.js +7823 -9201
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import { Table } from "../Table";
|
|
3
|
-
type Column<T extends Record<string, unknown
|
|
3
|
+
type Column<T extends Record<string, V>, V = unknown> = {
|
|
4
4
|
type?: "number" | "string";
|
|
5
5
|
field: keyof T;
|
|
6
6
|
headerName?: string;
|
|
@@ -8,7 +8,10 @@ type Column<T extends Record<string, unknown>> = {
|
|
|
8
8
|
minWidth?: string;
|
|
9
9
|
maxWidth?: string;
|
|
10
10
|
resizable?: boolean;
|
|
11
|
-
renderCell?: (
|
|
11
|
+
renderCell?: (params: {
|
|
12
|
+
row: T;
|
|
13
|
+
value?: V;
|
|
14
|
+
}) => ReactNode;
|
|
12
15
|
};
|
|
13
16
|
type DataTableProps<T extends Record<string, unknown>> = {
|
|
14
17
|
rows: T[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
|
|
3
|
-
onClose?: ((event: {}, reason: "
|
|
3
|
+
onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown" | "closeClick") => void) | undefined;
|
|
4
4
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
5
5
|
} & import("@mui/joy").ModalSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1477,7 +1477,7 @@ function DataTable(props) {
|
|
|
1477
1477
|
textAlign: column.type === "number" ? "end" : "start"
|
|
1478
1478
|
}
|
|
1479
1479
|
},
|
|
1480
|
-
column.renderCell?.(row) ?? row[column.field]
|
|
1480
|
+
column.renderCell?.({ row, value: row[column.field] }) ?? row[column.field]
|
|
1481
1481
|
))
|
|
1482
1482
|
);
|
|
1483
1483
|
})), Footer && /* @__PURE__ */ React10.createElement(Footer, null))
|