Skip to content

Commit

Permalink
enable CardItem (Cell) components
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-burel committed Mar 3, 2022
1 parent bb09655 commit ea9ab59
Show file tree
Hide file tree
Showing 25 changed files with 400 additions and 279 deletions.
21 changes: 0 additions & 21 deletions packages/react-ui/components/Card/CardItemArray.jsx

This file was deleted.

9 changes: 0 additions & 9 deletions packages/react-ui/components/Card/CardItemDate.jsx

This file was deleted.

6 changes: 0 additions & 6 deletions packages/react-ui/components/Card/CardItemDefault.jsx

This file was deleted.

8 changes: 0 additions & 8 deletions packages/react-ui/components/Card/CardItemHTML.jsx

This file was deleted.

26 changes: 0 additions & 26 deletions packages/react-ui/components/Card/CardItemImage.jsx

This file was deleted.

6 changes: 0 additions & 6 deletions packages/react-ui/components/Card/CardItemNumber.jsx

This file was deleted.

17 changes: 0 additions & 17 deletions packages/react-ui/components/Card/CardItemRelationHasMany.jsx

This file was deleted.

10 changes: 0 additions & 10 deletions packages/react-ui/components/Card/CardItemRelationHasOne.jsx

This file was deleted.

14 changes: 0 additions & 14 deletions packages/react-ui/components/Card/CardItemString.jsx

This file was deleted.

123 changes: 0 additions & 123 deletions packages/react-ui/components/Card/CardItemSwitcher.jsx

This file was deleted.

14 changes: 0 additions & 14 deletions packages/react-ui/components/Card/CardItemURL.jsx

This file was deleted.

39 changes: 38 additions & 1 deletion packages/react-ui/components/VulcanComponents/typings.ts
Expand Up @@ -51,6 +51,23 @@ import type { DatatableSelect } from "../Datatable/DatatableSelect";
import type { DatatableSubmitSelected } from "../Datatable/DatatableSubmitSelected";
import type { EditButton, EditForm } from "../Datatable/others/EditButton";
import type { NewButton, NewForm } from "../Datatable/others/NewButton";
import type { CardItemSwitcher } from "../cell/CardItem";
import type {
CardItemRelationItem,
DefaultCell,
UserCell,
} from "../cell/CardItemRelationItem";
import type { CardItemArray } from "../cell/CardItemArray";
import type { CardItemDate } from "../cell/CardItemDate";
import type { CardItemDefault } from "../cell/CardItemDefault";
import type { CardItemHTML } from "../cell/CardItemHTML";
import type { CardItemImage } from "../cell/CardItemImage";
import type { CardItemNumber } from "../cell/CardItemNumber";
import type { CardItemObject } from "../cell/CardItemObject";
import type { CardItemRelationHasMany } from "../cell/CardItemRelationHasMany";
import type { CardItemRelationHasOne } from "../cell/CardItemRelationHasOne";
import type { CardItemString } from "../cell/CardItemString";
import type { CardItemURL } from "../cell/CardItemURL";

export interface PossibleCoreComponents {
Loading: any;
Expand Down Expand Up @@ -178,6 +195,26 @@ export interface DatatableComponents {
NewForm: typeof NewForm;
}

export interface CellComponents {
CardItemSwitcher: typeof CardItemSwitcher;
CardItem: typeof CardItemSwitcher;
DefaultCell: typeof DefaultCell;
UserCell: typeof UserCell;
CardItemArray: typeof CardItemArray;
CardItemDate: typeof CardItemDate;
CardItemDefault: typeof CardItemDefault;
CardItemHTML: typeof CardItemHTML;
CardItemImage: typeof CardItemImage;
CardItemNumber: typeof CardItemNumber;
CardItemObject: typeof CardItemObject;
CardItemRelationHasMany: typeof CardItemRelationHasMany;
CardItemRelationHasOne: typeof CardItemRelationHasOne;
CardItemRelationItem: typeof CardItemRelationItem;
CardItemString: typeof CardItemString;
CardItemURL: typeof CardItemURL;
}

export type PossibleVulcanComponents = PossibleCoreComponents &
PossibleFormComponents &
DatatableComponents;
DatatableComponents &
CellComponents;

0 comments on commit ea9ab59

Please sign in to comment.