@ceed/ads 0.0.55 → 0.0.57
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 +2 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/index.js +8 -9
- package/framer/index.js +8876 -7472
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ComponentProps } from "react";
|
|
1
|
+
import React, { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import { Table } from "../Table";
|
|
3
3
|
type Column<T extends Record<string, unknown>> = {
|
|
4
4
|
type?: "number" | "string";
|
|
@@ -8,6 +8,7 @@ type Column<T extends Record<string, unknown>> = {
|
|
|
8
8
|
minWidth?: string;
|
|
9
9
|
maxWidth?: string;
|
|
10
10
|
resizable?: boolean;
|
|
11
|
+
renderCell?: (row: T) => ReactNode;
|
|
11
12
|
};
|
|
12
13
|
type DataTableProps<T extends Record<string, unknown>> = {
|
|
13
14
|
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: "escapeKeyDown" | "backdropClick" | "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
|
-
row[column.field]
|
|
1480
|
+
column.renderCell?.(row) ?? row[column.field]
|
|
1481
1481
|
))
|
|
1482
1482
|
);
|
|
1483
1483
|
})), Footer && /* @__PURE__ */ React10.createElement(Footer, null))
|
|
@@ -1539,11 +1539,11 @@ var FormHelperText_default = FormHelperText;
|
|
|
1539
1539
|
// src/components/Input/Input.tsx
|
|
1540
1540
|
var MotionInput = motion13(JoyInput);
|
|
1541
1541
|
var Input = (props) => {
|
|
1542
|
-
const { label, helperText, error, style, ...innerProps } = props;
|
|
1542
|
+
const { label, helperText, error, style, size, color, ...innerProps } = props;
|
|
1543
1543
|
if (label) {
|
|
1544
|
-
return /* @__PURE__ */ React11.createElement(FormControl_default, { error }, /* @__PURE__ */ React11.createElement(FormLabel_default, null, label), /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps
|
|
1544
|
+
return /* @__PURE__ */ React11.createElement(FormControl_default, { color, size, error }, /* @__PURE__ */ React11.createElement(FormLabel_default, null, label), /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps }), helperText && /* @__PURE__ */ React11.createElement(FormHelperText_default, null, helperText));
|
|
1545
1545
|
}
|
|
1546
|
-
return /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps });
|
|
1546
|
+
return /* @__PURE__ */ React11.createElement(MotionInput, { color, size, ...innerProps });
|
|
1547
1547
|
};
|
|
1548
1548
|
Input.displayName = "Input";
|
|
1549
1549
|
|
|
@@ -2277,17 +2277,16 @@ var MotionOption = motion24(JoyOption);
|
|
|
2277
2277
|
var Option = MotionOption;
|
|
2278
2278
|
Option.displayName = "Option";
|
|
2279
2279
|
function Select(props) {
|
|
2280
|
-
const { label, helperText, error, ...innerProps } = props;
|
|
2280
|
+
const { label, helperText, error, size, color, ...innerProps } = props;
|
|
2281
2281
|
if (label) {
|
|
2282
|
-
return /* @__PURE__ */ React21.createElement(FormControl_default, { error }, /* @__PURE__ */ React21.createElement(FormLabel_default, null, label), /* @__PURE__ */ React21.createElement(
|
|
2282
|
+
return /* @__PURE__ */ React21.createElement(FormControl_default, { size, color, error }, /* @__PURE__ */ React21.createElement(FormLabel_default, null, label), /* @__PURE__ */ React21.createElement(
|
|
2283
2283
|
JoySelect,
|
|
2284
2284
|
{
|
|
2285
|
-
...innerProps
|
|
2286
|
-
color: error ? "danger" : innerProps.color
|
|
2285
|
+
...innerProps
|
|
2287
2286
|
}
|
|
2288
2287
|
), helperText && /* @__PURE__ */ React21.createElement(FormHelperText_default, null, helperText));
|
|
2289
2288
|
}
|
|
2290
|
-
return /* @__PURE__ */ React21.createElement(JoySelect, { ...innerProps });
|
|
2289
|
+
return /* @__PURE__ */ React21.createElement(JoySelect, { size, color, ...innerProps });
|
|
2291
2290
|
}
|
|
2292
2291
|
Select.displayName = "Select";
|
|
2293
2292
|
|