@kwantis-id3/frontend-library 1.0.0-rc.4 → 1.0.0-rc.40

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.
Files changed (71) hide show
  1. package/README.md +6 -332
  2. package/dist/esm/index.js +302 -136
  3. package/dist/esm/index.js.map +1 -1
  4. package/dist/esm/types/components/Accordion/Accordion.d.ts +3 -37
  5. package/dist/esm/types/components/Accordion/AccordionInterfaces.d.ts +21 -0
  6. package/dist/esm/types/components/Accordion/AccordionStyled.d.ts +20 -9
  7. package/dist/esm/types/components/Accordion/index.d.ts +4 -1
  8. package/dist/esm/types/components/Button/Button.d.ts +2 -24
  9. package/dist/esm/types/components/Button/ButtonInterfaces.d.ts +24 -0
  10. package/dist/esm/types/components/Button/ButtonStyled.d.ts +41 -0
  11. package/dist/esm/types/components/Button/index.d.ts +2 -1
  12. package/dist/esm/types/components/Card/CardInterfaces.d.ts +1 -1
  13. package/dist/esm/types/components/Card/index.d.ts +2 -2
  14. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +3 -0
  15. package/dist/esm/types/components/Checkbox/CheckboxInterfaces.d.ts +24 -0
  16. package/dist/esm/types/components/Checkbox/CheckboxStyled.d.ts +32 -0
  17. package/dist/esm/types/components/Checkbox/index.d.ts +2 -0
  18. package/dist/esm/types/components/DataGrid/DataGrid.d.ts +3 -0
  19. package/dist/esm/types/components/DataGrid/DataGridInterfaces.d.ts +9 -0
  20. package/dist/esm/types/components/DataGrid/index.d.ts +2 -0
  21. package/dist/esm/types/components/Drawer/Drawer.d.ts +3 -0
  22. package/dist/esm/types/components/Drawer/DrawerInterfaces.d.ts +35 -0
  23. package/dist/esm/types/components/Drawer/DrawerStyled.d.ts +28 -0
  24. package/dist/esm/types/components/Drawer/index.d.ts +2 -0
  25. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +2 -43
  26. package/dist/esm/types/components/Dropdown/DropdownInterfaces.d.ts +52 -0
  27. package/dist/esm/types/components/Dropdown/DropdownStyled.d.ts +1 -0
  28. package/dist/esm/types/components/Dropdown/index.d.ts +2 -1
  29. package/dist/esm/types/components/Indicator/IndicatorInterfaces.d.ts +1 -1
  30. package/dist/esm/types/components/Indicator/NeutralIndicator.d.ts +3 -0
  31. package/dist/esm/types/components/Indicator/index.d.ts +2 -2
  32. package/dist/esm/types/components/InputField/InputField.d.ts +3 -11
  33. package/dist/esm/types/components/InputField/InputFieldInterfaces.d.ts +9 -0
  34. package/dist/esm/types/components/InputField/index.d.ts +2 -1
  35. package/dist/esm/types/components/Modal/Modal.d.ts +3 -19
  36. package/dist/esm/types/components/Modal/ModalInterfaces.d.ts +16 -0
  37. package/dist/esm/types/components/Modal/index.d.ts +2 -2
  38. package/dist/esm/types/components/MultiViewList/MultiViewGrid.d.ts +5 -0
  39. package/dist/esm/types/components/MultiViewList/MultiViewList.d.ts +1 -0
  40. package/dist/esm/types/components/MultiViewList/MultiViewListInterfaces.d.ts +13 -2
  41. package/dist/esm/types/components/MultiViewList/MultiViewListStyled.d.ts +3 -0
  42. package/dist/esm/types/components/MultiViewList/index.d.ts +2 -1
  43. package/dist/esm/types/components/SelectFilter/index.d.ts +2 -2
  44. package/dist/esm/types/components/Slider/Slider.d.ts +2 -2
  45. package/dist/esm/types/components/Slider/index.d.ts +1 -1
  46. package/dist/esm/types/components/Table/DebouncedFilter.d.ts +1 -2
  47. package/dist/esm/types/components/Table/DebouncedInput.d.ts +0 -1
  48. package/dist/esm/types/components/Table/index.d.ts +1 -1
  49. package/dist/esm/types/components/Tag/Tag.d.ts +2 -22
  50. package/dist/esm/types/components/Tag/TagInterfaces.d.ts +22 -0
  51. package/dist/esm/types/components/Tag/TagStyled.d.ts +7 -0
  52. package/dist/esm/types/components/Tag/index.d.ts +2 -1
  53. package/dist/esm/types/components/ThemeContext/ThemeContext.d.ts +4 -3
  54. package/dist/esm/types/components/ThemeContext/ThemeInterfaces.d.ts +2 -0
  55. package/dist/esm/types/components/TreeView/ControlledTreeView.d.ts +4 -0
  56. package/dist/esm/types/components/TreeView/TreeUtils.d.ts +22 -0
  57. package/dist/esm/types/components/TreeView/TreeViewInterfaces.d.ts +83 -0
  58. package/dist/esm/types/components/TreeView/TreeViewSyled.d.ts +24 -0
  59. package/dist/esm/types/components/TreeView/UncontrolledTreeView.d.ts +3 -0
  60. package/dist/esm/types/components/TreeView/index.d.ts +3 -0
  61. package/dist/esm/types/components/index.d.ts +16 -12
  62. package/dist/esm/types/utils/colors.d.ts +12 -2
  63. package/dist/esm/types/utils/index.d.ts +4 -7
  64. package/dist/esm/types/utils/isMobile.d.ts +1 -2
  65. package/dist/esm/types/utils/testing.d.ts +21 -1
  66. package/dist/index.d.ts +274 -67
  67. package/package.json +29 -24
  68. package/changelog.md +0 -197
  69. package/dist/esm/types/utils/styled.d.ts +0 -2
  70. /package/dist/esm/types/components/InputField/{StyledInputField.d.ts → InputFieldStyled.d.ts} +0 -0
  71. /package/dist/esm/types/components/Modal/{StyledModal.d.ts → ModalStyled.d.ts} +0 -0
@@ -1,6 +1,17 @@
1
- import React from "react";
2
1
  import { TCellValues, TTableProps, TTableRow } from "../Table";
2
+ import { TDataGridProps, TDataGridRow } from "../DataGrid/DataGridInterfaces";
3
+ import { Interpolation, Theme } from "@emotion/react";
3
4
  export type TMultiViewListProps<Cell extends TCellValues, Row extends TTableRow<Cell>> = TTableProps<Cell, Row> & {
4
5
  mode: "table" | "cards";
5
- cardComponent: (item: Row) => React.ReactNode;
6
+ cardComponent: (item: Row, index: number) => React.ReactNode;
7
+ cardsWidth?: string;
8
+ cardsHeight?: string;
9
+ sx?: Interpolation<Theme>;
10
+ };
11
+ export type TMultiViewGridProps<Cell extends TCellValues, Row extends TDataGridRow<Cell>> = TDataGridProps<Cell, Row> & {
12
+ mode: "table" | "cards";
13
+ cardComponent: (item: Row, index: number) => React.ReactNode;
14
+ cardsWidth?: string;
15
+ cardsHeight?: string;
16
+ sx?: Interpolation<Theme>;
6
17
  };
@@ -1,4 +1,7 @@
1
1
  export declare const StyledCardsContainer: import("@emotion/styled").StyledComponent<{
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
+ } & {
5
+ $cardsWidth: string;
6
+ $cardsHeight: string;
4
7
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,2 +1,3 @@
1
1
  export * from "./MultiViewListInterfaces";
2
- export { MultiViewList } from "./MultiViewList";
2
+ export * from "./MultiViewList";
3
+ export * from "./MultiViewGrid";
@@ -1,2 +1,2 @@
1
- export { SingleSelect, SingleSelectProps } from "./SingleSelect";
2
- export { MultiSelect, MultiSelectProps } from "./MultiSelect";
1
+ export * from "./SingleSelect";
2
+ export * from "./MultiSelect";
@@ -1,4 +1,4 @@
1
- export type SliderProps = {
1
+ export type TSliderProps = {
2
2
  /** The values of the slider. */
3
3
  values: number[];
4
4
  /** The minimum value of the slider. */
@@ -30,4 +30,4 @@ export type SliderProps = {
30
30
  /** Wether the thumbs can overlap */
31
31
  allowOverlap?: boolean;
32
32
  };
33
- export declare const Slider: (props: SliderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
33
+ export declare const Slider: (props: TSliderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export { Slider, SliderProps } from "./Slider";
1
+ export * from "./Slider";
@@ -1,7 +1,6 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import { Column, Table } from "@tanstack/react-table";
3
- import { TCellValues, TTableRow } from "./TableInterfaces";
4
- export declare function DebouncedFilter<T extends TTableRow<TCellValues>>({ column, table, }: {
3
+ export declare function DebouncedFilter<T>({ column, table, }: {
5
4
  column: Column<T, unknown>;
6
5
  table: Table<T>;
7
6
  }): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  export declare function DebouncedInput({ value: initialValue, onChange, debounce, ...props }: {
3
2
  value: string | number;
4
3
  onChange: (value: string | number) => void;
@@ -1,2 +1,2 @@
1
1
  export * from "./TableInterfaces";
2
- export { Table, renderCell } from "./Table";
2
+ export * from "./Table";
@@ -1,24 +1,4 @@
1
+ /** @jsxImportSource @emotion/react */
1
2
  import { FC } from "react";
2
- import { ITagColors } from "../ThemeContext/ThemeInterfaces";
3
- import { Interpolation } from "@emotion/styled";
4
- import { Theme } from "@emotion/react";
5
- export type TTagProps = {
6
- text: string;
7
- /**
8
- * If `variant` is set to `custom`, `bgColor` and `textColor` will be used.
9
- * Otherwise, the `variant` will be used to determine the colors.
10
- *
11
- * The variants are the keys of the interface `@see ITagColors`, which by default are:
12
- * - `default`
13
- * - `warm`
14
- * - `cold`
15
- * - `paper`
16
- */
17
- variant: keyof ITagColors | "custom";
18
- /** To use this prop, the variant must be set to `custom` */
19
- bgColor?: string;
20
- /** To use this prop, the variant must be set to `custom` */
21
- textColor?: string;
22
- sx?: Interpolation<Theme>;
23
- };
3
+ import { TTagProps } from "./TagInterfaces";
24
4
  export declare const Tag: FC<TTagProps>;
@@ -0,0 +1,22 @@
1
+ import { Interpolation } from "@emotion/react";
2
+ import { Theme } from "@emotion/react/dist/declarations/src";
3
+ import { ITagColors } from "../ThemeContext";
4
+ export type TTagProps = {
5
+ text: string;
6
+ /**
7
+ * If `variant` is set to `custom`, `bgColor` and `textColor` will be used.
8
+ * Otherwise, the `variant` will be used to determine the colors.
9
+ *
10
+ * The variants are the keys of the interface `@see ITagColors`, which by default are:
11
+ * - `default`
12
+ * - `warm`
13
+ * - `cold`
14
+ * - `paper`
15
+ */
16
+ variant: keyof ITagColors | "custom";
17
+ /** To use this prop, the variant must be set to `custom` */
18
+ bgColor?: string;
19
+ /** To use this prop, the variant must be set to `custom` */
20
+ textColor?: string;
21
+ sx?: Interpolation<Theme>;
22
+ };
@@ -0,0 +1,7 @@
1
+ export declare const StyledTag: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ } & {
5
+ $bgColor: string;
6
+ $textColor: string;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1 +1,2 @@
1
- export { Tag, TTagProps } from "./Tag";
1
+ export * from "./Tag";
2
+ export * from "./TagInterfaces";
@@ -1,6 +1,7 @@
1
- import React from "react";
2
- import { IPalette, IThemeContextProps, IThemeContextValue } from "./ThemeInterfaces";
1
+ import { PropsWithChildren, ReactElement } from "react";
2
+ import { ICommonColors, IPalette, IThemeContextProps, IThemeContextValue } from "./ThemeInterfaces";
3
+ export declare const commonColors: ICommonColors;
3
4
  export declare const defaultLightPalette: IPalette;
4
5
  export declare const defaultDarkPalette: IPalette;
5
- export declare const ThemeContextProvider: ({ palettes, defaultMode, children, }: React.PropsWithChildren<IThemeContextProps>) => JSX.Element;
6
+ export declare const ThemeContextProvider: ({ palettes, defaultMode, children, }: PropsWithChildren<IThemeContextProps>) => ReactElement;
6
7
  export declare const useThemeContext: () => IThemeContextValue;
@@ -62,6 +62,8 @@ export interface IIndicatorColors {
62
62
  warningFill: string;
63
63
  error: string;
64
64
  errorFill: string;
65
+ neutral: string;
66
+ neutralFill: string;
65
67
  }
66
68
  export interface IPalette {
67
69
  /** Application background */
@@ -0,0 +1,4 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { FC } from "react";
3
+ import { TControlledTreeViewProps } from "./TreeViewInterfaces";
4
+ export declare const ControlledTreeView: FC<TControlledTreeViewProps>;
@@ -0,0 +1,22 @@
1
+ import { TTreeViewItem } from "./TreeViewInterfaces";
2
+ /**
3
+ *
4
+ * @param items searchable nodes
5
+ * @returns all the root items
6
+ */
7
+ export declare const getRootItems: (items: TTreeViewItem[]) => TTreeViewItem[];
8
+ /**
9
+ *
10
+ * @param items searchable nodes
11
+ * @param parentId the id of the parent node
12
+ * @returns all the children of the parent node
13
+ */
14
+ export declare const getChildrenItems: (items: TTreeViewItem[], parentId: string) => TTreeViewItem[];
15
+ /**
16
+ *
17
+ * @param items searchable nodes
18
+ * @param searchTerm search term
19
+ * @returns all the matching nodes and their ancestors
20
+ */
21
+ export declare function searchWithAncestors(items: TTreeViewItem[], searchTerm: string): TTreeViewItem[];
22
+ export declare const isRootItem: (items: TTreeViewItem[], item: TTreeViewItem) => boolean;
@@ -0,0 +1,83 @@
1
+ import { Interpolation, Theme } from "@emotion/react";
2
+ /**
3
+ * A callback to customize how items are rendered
4
+ * @property isOpen: A boolean indicating if the item is expanded
5
+ * @property hasChildren: A boolean indicating if the item has children
6
+ * @property item: the entire item object
7
+ */
8
+ export type TCustomRenderProps = {
9
+ isOpen: boolean;
10
+ item: TTreeViewItem;
11
+ };
12
+ /**
13
+ * A callback to customize how the content of the items is rendered
14
+ * @extends TCustomRenderProps
15
+ * @property icon: The icon of the item. If the renderIcon callback is provided, this will be the result of that callback
16
+ * @property title: The title of the item. If the renderTitle callback is provided, this will be the result of that callback
17
+ */
18
+ export type TRenderTriggerProps = TCustomRenderProps & {
19
+ icon: React.ReactNode;
20
+ title: React.ReactNode;
21
+ };
22
+ type TTreeItemFunctions = {
23
+ /** A callback to customize how the titles are rendered */
24
+ renderTitle?: (props: TCustomRenderProps) => React.ReactNode;
25
+ /** A callback to customize how the icons are rendered */
26
+ renderIcon?: (props: TCustomRenderProps) => React.ReactNode;
27
+ /** A callback to customize how the content of the items is rendered */
28
+ renderTrigger?: (props: TRenderTriggerProps) => React.ReactNode;
29
+ /** A callback executed when an item is focused. An item gets focused when you click on it. Focusing and item will also select it. */
30
+ onFocusItem?: (item: TTreeViewItem) => void;
31
+ /** A callback executed when an item is selected. To select an item, ctrl+click on it. */
32
+ onSelectItems?: (item: string[]) => void;
33
+ /** A callback executed when an item is expanded */
34
+ onExpandItem?: (item: TTreeViewItem) => void;
35
+ /** A callback executed when an item is collapsed */
36
+ onCollapseItem?: (item: TTreeViewItem) => void;
37
+ /** A callback to handle the expansion of items without children */
38
+ onMissingChildren?: (item: TTreeViewItem) => void;
39
+ };
40
+ type TTreeViewProps = TTreeItemFunctions & {
41
+ /** An array representing the items that the tree needs to render */
42
+ items: TTreeViewItem[];
43
+ /** Disable multi-selection possibility */
44
+ isMultiSelectionDisabled?: boolean;
45
+ /** Custom styles */
46
+ sx?: Interpolation<Theme>;
47
+ };
48
+ export type TUncontrolledTreeViewProps = TTreeViewProps & {
49
+ items: TTreeViewItem[];
50
+ /** A search string used to filter the items. */
51
+ searchString?: string;
52
+ /** The ids of the items that should be expanded by default */
53
+ defaultExpandedItems?: string[];
54
+ /** Only allow one root item to be expanded at a time */
55
+ singleRootExpand?: boolean;
56
+ };
57
+ export type TControlledTreeViewProps = TTreeViewProps & {
58
+ /** The current state of the Tree View. */
59
+ viewState: TViewState;
60
+ };
61
+ export type TViewState = {
62
+ /** The list of ids of items that are selected */
63
+ selectedItems?: string[];
64
+ /** The list of ids of items that are expanded */
65
+ expandedItems?: string[];
66
+ /** The focused item */
67
+ focusedItem?: string;
68
+ };
69
+ export type TTreeViewItem = TTreeItemFunctions & {
70
+ /** Item identifier */
71
+ id: string;
72
+ /** Item name */
73
+ name: string;
74
+ /** The possible children of this item */
75
+ children?: string[];
76
+ /** If the item should be rendered as a folder even with no children */
77
+ isFolder?: boolean;
78
+ /** A callback to fetch children asynchronously */
79
+ childrenAsync?: () => Promise<TTreeViewItem[]>;
80
+ /** Custom styles */
81
+ sx?: Interpolation<Theme>;
82
+ };
83
+ export {};
@@ -0,0 +1,24 @@
1
+ export declare const TreeView: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const TreeItemsWrapper: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
9
+ export declare const TreeItemTrigger: import("@emotion/styled").StyledComponent<{
10
+ theme?: import("@emotion/react").Theme;
11
+ as?: React.ElementType;
12
+ } & {
13
+ $isFocused: boolean;
14
+ $isExpanded: boolean;
15
+ $isSelected: boolean;
16
+ }, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
17
+ export declare const TreeItemChildren: import("@emotion/styled").StyledComponent<{
18
+ theme?: import("@emotion/react").Theme;
19
+ as?: React.ElementType;
20
+ } & import("react").ClassAttributes<HTMLUListElement> & import("react").HTMLAttributes<HTMLUListElement> & {
21
+ theme?: import("@emotion/react").Theme;
22
+ } & {
23
+ $isExpanded: boolean;
24
+ }, {}, {}>;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ import { TUncontrolledTreeViewProps } from "./TreeViewInterfaces";
3
+ export declare const UncontrolledTreeView: FC<TUncontrolledTreeViewProps>;
@@ -0,0 +1,3 @@
1
+ export * from "./TreeViewInterfaces";
2
+ export * from "./ControlledTreeView";
3
+ export * from "./UncontrolledTreeView";
@@ -1,13 +1,17 @@
1
- export { Button, ButtonProps } from "./Button";
1
+ export * from "./Button";
2
2
  export * from "./ThemeContext";
3
- export { Accordion, AccordionProps } from "./Accordion";
4
- export { InputField } from "./InputField";
5
- export { SingleSelect, SingleSelectProps, MultiSelect, MultiSelectProps, } from "./SelectFilter";
6
- export { Slider, SliderProps } from "./Slider";
7
- export { Dropdown, DropdownProps, DropdownItem } from "./Dropdown";
8
- export { Modal } from "./Modal";
9
- export { TIndicatorProps, TIndicatorVariants, Indicator } from "./Indicator";
10
- export { Tag, TTagProps } from "./Tag";
11
- export { Card, CardHeader, CardContent, CardFooter, CardIndicators, CardMediaSection, TCardSectionProps, } from "./Card";
12
- export { Table, renderCell, TTableProps, TTableCell, TCellValues, TTableRow, } from "./Table";
13
- export { MultiViewList, TMultiViewListProps } from "./MultiViewList";
3
+ export * from "./Accordion";
4
+ export * from "./InputField";
5
+ export * from "./SelectFilter";
6
+ export * from "./Slider";
7
+ export * from "./Dropdown";
8
+ export * from "./Modal";
9
+ export * from "./Indicator";
10
+ export * from "./Tag";
11
+ export * from "./Card";
12
+ export * from "./Table";
13
+ export * from "./DataGrid";
14
+ export * from "./MultiViewList";
15
+ export * from "./TreeView";
16
+ export * from "./Drawer";
17
+ export * from "./Checkbox";
@@ -6,15 +6,25 @@
6
6
  export declare const getContrastColor: (color: string) => string;
7
7
  /**
8
8
  *
9
- * @param color the color to darken
9
+ * @param color a color
10
10
  * @param strength the strength (0-100) to darken the color
11
11
  * @returns the color darkened by the strength
12
12
  */
13
13
  export declare const darkenColor: (color: string, strength?: number) => string;
14
14
  /**
15
15
  *
16
- * @param color the color to lighten
16
+ * @param color a color
17
17
  * @param strength the strength (0-100) to lighten the color
18
18
  * @returns the color lightened by the strength
19
19
  */
20
20
  export declare const lightenColor: (color: string, strength?: number) => string;
21
+ /**
22
+ * @param color a color
23
+ * @returns the hover color, based on if the color is dark or light
24
+ */
25
+ export declare const getHoverColor: (color: string) => string;
26
+ /**
27
+ * @param color a color
28
+ * @returns the active color, based on if the color is dark or light
29
+ */
30
+ export declare const getActiveColor: (color: string) => string;
@@ -1,7 +1,4 @@
1
- import useIsMobile from "./isMobile";
2
- export { transientOptions } from "./transientOptions";
3
- export { styled } from "./styled";
4
- export { useIsMobile };
5
- export { getContrastColor } from "./colors";
6
- export { darkenColor } from "./colors";
7
- export { lightenColor } from "./colors";
1
+ export * from "./transientOptions";
2
+ export * from "./isMobile";
3
+ export * from "./colors";
4
+ export * from "./usePrefersColorScheme";
@@ -3,5 +3,4 @@
3
3
  * @param {number=} mobileBreakpoint breakpoint width to check against
4
4
  * @returns boolean
5
5
  */
6
- declare const useIsMobile: (mobileBreakpoint?: number) => boolean;
7
- export default useIsMobile;
6
+ export declare const useIsMobile: (mobileBreakpoint?: number) => boolean;
@@ -1,8 +1,8 @@
1
1
  import { TCellValues, TTableRow } from "../components/index";
2
- import React from "react";
3
2
  import { IThemeContextProps } from "../components/ThemeContext/ThemeInterfaces";
4
3
  import { RenderHookResult, RenderResult } from "@testing-library/react";
5
4
  import { ColumnDef } from "@tanstack/react-table";
5
+ import { TDataGridRow } from "../components/DataGrid/DataGridInterfaces";
6
6
  export declare const renderWithTheme: (ui: React.ReactElement, themeProps?: IThemeContextProps) => RenderResult;
7
7
  export declare function renderHookWithTheme<T, R>(hook: (props: T) => R, themeProps?: IThemeContextProps): RenderHookResult<R, T>;
8
8
  export declare const headingStyle: {
@@ -11,6 +11,25 @@ export declare const headingStyle: {
11
11
  fontWeight: string;
12
12
  };
13
13
  export declare const templateColumns: ColumnDef<TTableRow<TCellValues>, TCellValues>[];
14
+ export declare const templateDataGridColumns: ColumnDef<TDataGridRow<TCellValues>, TCellValues>[];
15
+ export type TWellData = {
16
+ [key: string]: string | number | boolean | null;
17
+ well_id: string;
18
+ id_t_well: number;
19
+ well_name: string;
20
+ data_quality: number;
21
+ is_live: boolean;
22
+ country: string;
23
+ business_unit: string;
24
+ spud_date: string;
25
+ rig_contractor: string;
26
+ rig_name: string;
27
+ rig_type: string;
28
+ last_sensordate: string | null;
29
+ last_ddr_date: string | null;
30
+ mudlog_data_quality: number;
31
+ };
32
+ export declare const templateDataGridData: TWellData[];
14
33
  export declare const templateTableData: {
15
34
  cells: {
16
35
  well_name: {
@@ -52,3 +71,4 @@ export declare const templateTableData: {
52
71
  };
53
72
  }[];
54
73
  export declare const TemplateCard: (item: TTableRow<TCellValues>) => import("@emotion/react/jsx-runtime").JSX.Element;
74
+ export declare const TemplateCardGrid: (item: TDataGridRow<TCellValues>) => import("@emotion/react/jsx-runtime").JSX.Element;