@guillotinaweb/react-gmi 0.33.0 → 0.34.0
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/TdLink.d.ts +3 -3
- package/dist/components/input/email.d.ts +2 -1
- package/dist/components/input/password.d.ts +4 -1
- package/dist/hooks/useRegistry.d.ts +3 -3
- package/dist/react-gmi.js +12 -5
- package/dist/react-gmi.js.map +1 -1
- package/dist/react-gmi.modern.js +12 -5
- package/dist/react-gmi.modern.js.map +1 -1
- package/dist/react-gmi.umd.js +12 -5
- package/dist/react-gmi.umd.js.map +1 -1
- package/dist/types/guillotina.d.ts +3 -2
- package/package.json +1 -1
|
@@ -247,13 +247,14 @@ export type ReturnSearchCompatible<T> = {
|
|
|
247
247
|
items: T[];
|
|
248
248
|
items_total: number;
|
|
249
249
|
};
|
|
250
|
-
export
|
|
250
|
+
export type SearchOrCommonObject = SearchItem | GuillotinaCommonObject;
|
|
251
|
+
export interface ItemColumn<T extends SearchOrCommonObject = SearchOrCommonObject> {
|
|
251
252
|
key: string;
|
|
252
253
|
label: string;
|
|
253
254
|
isSortable?: boolean;
|
|
254
255
|
child: ({ model, link, search }: ItemColumnChild<T>) => React.ReactNode;
|
|
255
256
|
}
|
|
256
|
-
export interface ItemColumnChild<T extends
|
|
257
|
+
export interface ItemColumnChild<T extends SearchOrCommonObject = SearchOrCommonObject> {
|
|
257
258
|
model: ItemModel<T>;
|
|
258
259
|
link?: () => void;
|
|
259
260
|
search?: string;
|
package/package.json
CHANGED