@ceed/cds 1.6.0 → 1.7.1-next.1
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/types.d.ts +9 -1
- package/dist/components/IconMenuButton/IconMenuButton.d.ts +22 -0
- package/dist/components/IconMenuButton/index.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +385 -303
- package/dist/index.d.ts +1 -1
- package/dist/index.js +175 -90
- package/framer/index.js +40 -40
- package/package.json +3 -2
|
@@ -104,7 +104,15 @@ export type LinkColumnDef<T extends Record<PropertyKey, string>, ID, C extends R
|
|
|
104
104
|
component?: C;
|
|
105
105
|
componentProps?: ComponentProperties<C, T, ID, string>;
|
|
106
106
|
};
|
|
107
|
-
export type
|
|
107
|
+
export type ActionsColumnDef<T extends Record<PropertyKey, string>, ID> = BaseColumnDef<T, string, ID> & {
|
|
108
|
+
type: "actions";
|
|
109
|
+
getActions: (params: {
|
|
110
|
+
row: T;
|
|
111
|
+
value?: any;
|
|
112
|
+
id: ID;
|
|
113
|
+
}) => ReactNode[];
|
|
114
|
+
};
|
|
115
|
+
export type ColumnDef<T extends Record<PropertyKey, any>, ID = unknown> = AutocompleteColumnDef<T, ID> | CurrencyColumnDef<T, ID> | DateColumnDef<T, ID> | NumberColumnDef<T, ID> | TextColumnDef<T, ID> | LongTextColumnDef<T, ID> | LinkColumnDef<T, ID> | SelectColumnDef<T, ID> | ActionsColumnDef<T, ID>;
|
|
108
116
|
export type Sort = "asc" | "desc" | null;
|
|
109
117
|
export type SortModel<T extends Record<PropertyKey, any>> = {
|
|
110
118
|
[K in keyof T]: {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { AriaAttributes, ComponentProps, ElementType, ReactNode } from "react";
|
|
2
|
+
import { MenuButtonProps } from "@mui/joy";
|
|
3
|
+
declare function IconMenuButton<T extends ElementType, P extends ElementType>(props: {
|
|
4
|
+
size?: MenuButtonProps<T, P>["size"];
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
buttonComponent?: T;
|
|
7
|
+
buttonComponentProps?: ComponentProps<T> & AriaAttributes;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
color?: MenuButtonProps<T, P>["color"];
|
|
11
|
+
variant?: MenuButtonProps<T, P>["variant"];
|
|
12
|
+
items?: {
|
|
13
|
+
text: string;
|
|
14
|
+
component?: P;
|
|
15
|
+
componentProps?: ComponentProps<P>;
|
|
16
|
+
}[];
|
|
17
|
+
placement?: "bottom-start" | "bottom" | "bottom-end";
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
declare namespace IconMenuButton {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
22
|
+
export { IconMenuButton };
|
|
@@ -27,6 +27,7 @@ export { FormHelperText } from "./FormHelperText";
|
|
|
27
27
|
export { FormLabel } from "./FormLabel";
|
|
28
28
|
export { Grid } from "./Grid";
|
|
29
29
|
export { IconButton } from "./IconButton";
|
|
30
|
+
export { IconMenuButton } from "./IconMenuButton";
|
|
30
31
|
export { InfoSign } from "./InfoSign";
|
|
31
32
|
export { Input } from "./Input";
|
|
32
33
|
export { Markdown } from "./Markdown";
|