@neo4j-ndl/react 2.16.18 → 2.16.20

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 (190) hide show
  1. package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
  2. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  3. package/lib/cjs/_common/utils.js +3 -3
  4. package/lib/cjs/_common/utils.js.map +1 -1
  5. package/lib/cjs/accordion/Accordion.js.map +1 -1
  6. package/lib/cjs/avatar/Avatar.js.map +1 -1
  7. package/lib/cjs/banner/Banner.js.map +1 -1
  8. package/lib/cjs/button/Button.js.map +1 -1
  9. package/lib/cjs/button/IconButton.js.map +1 -1
  10. package/lib/cjs/callout/Callout.js.map +1 -1
  11. package/lib/cjs/checkbox/Checkbox.js.map +1 -1
  12. package/lib/cjs/clipboard-copier/ClipboardButton.js.map +1 -1
  13. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  14. package/lib/cjs/code-block/languages.js +1 -0
  15. package/lib/cjs/code-block/languages.js.map +1 -1
  16. package/lib/cjs/context-menu/ContextMenu.js +1 -1
  17. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  18. package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +1 -1
  19. package/lib/cjs/data-grid/Components.js +4 -3
  20. package/lib/cjs/data-grid/Components.js.map +1 -1
  21. package/lib/cjs/data-grid/DataGridContext.js +2 -2
  22. package/lib/cjs/data-grid/DataGridContext.js.map +1 -1
  23. package/lib/cjs/data-grid/helpers.js.map +1 -1
  24. package/lib/cjs/date-picker/DatePicker.js +1 -1
  25. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  26. package/lib/cjs/date-picker/utils.js +2 -2
  27. package/lib/cjs/date-picker/utils.js.map +1 -1
  28. package/lib/cjs/dialog/Dialog.js +2 -2
  29. package/lib/cjs/dialog/Dialog.js.map +1 -1
  30. package/lib/cjs/drawer/Drawer.js.map +1 -1
  31. package/lib/cjs/dropdown/Dropdown.js.map +1 -1
  32. package/lib/cjs/dropzone/Dropzone.js.map +1 -1
  33. package/lib/cjs/graph-label/GraphLabel.js +2 -2
  34. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  35. package/lib/cjs/graph-label/color.js.map +1 -1
  36. package/lib/cjs/helpers/debounce.js +1 -2
  37. package/lib/cjs/helpers/debounce.js.map +1 -1
  38. package/lib/cjs/hooks/index.js +40 -4
  39. package/lib/cjs/hooks/index.js.map +1 -1
  40. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  41. package/lib/cjs/label/Label.js.map +1 -1
  42. package/lib/cjs/modal/Modal.js +2 -2
  43. package/lib/cjs/modal/Modal.js.map +1 -1
  44. package/lib/cjs/popover/Popover.js +5 -5
  45. package/lib/cjs/popover/Popover.js.map +1 -1
  46. package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
  47. package/lib/cjs/side-navigation/SideNavigation.js +1 -1
  48. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  49. package/lib/cjs/slider/Slider.js.map +1 -1
  50. package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
  51. package/lib/cjs/table/Components.js.map +1 -1
  52. package/lib/cjs/table/TableContext.js +2 -2
  53. package/lib/cjs/table/TableContext.js.map +1 -1
  54. package/lib/cjs/table/helpers.js.map +1 -1
  55. package/lib/cjs/tabs/Tabs.js.map +1 -1
  56. package/lib/cjs/tag/Tag.js +1 -1
  57. package/lib/cjs/tag/Tag.js.map +1 -1
  58. package/lib/cjs/text-input/TextInput.js.map +1 -1
  59. package/lib/cjs/text-input-preview/TextInputPreview.js.map +1 -1
  60. package/lib/cjs/textarea/Textarea.js.map +1 -1
  61. package/lib/cjs/theme/ThemeProvider.js.map +1 -1
  62. package/lib/cjs/theme/agnostic.js.map +1 -1
  63. package/lib/cjs/tip/Tip.js +3 -3
  64. package/lib/cjs/tip/Tip.js.map +1 -1
  65. package/lib/cjs/toast/Toast.js.map +1 -1
  66. package/lib/cjs/toast/sonner-types.js +2 -2
  67. package/lib/cjs/toast/sonner-types.js.map +1 -1
  68. package/lib/cjs/tree-view/TreeItemWrapper.js.map +1 -1
  69. package/lib/cjs/tree-view/TreeView.js +3 -3
  70. package/lib/cjs/tree-view/TreeView.js.map +1 -1
  71. package/lib/cjs/tree-view/TreeViewItem.js +1 -1
  72. package/lib/cjs/tree-view/TreeViewItem.js.map +1 -1
  73. package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -1
  74. package/lib/cjs/tree-view/tree-view-keyboard-coordinates.js.map +1 -1
  75. package/lib/cjs/tree-view/tree-view-keyboard-helpers.js.map +1 -1
  76. package/lib/cjs/tree-view/tree-view-utils.js +4 -4
  77. package/lib/cjs/tree-view/tree-view-utils.js.map +1 -1
  78. package/lib/cjs/typography/Typography.js +2 -1
  79. package/lib/cjs/typography/Typography.js.map +1 -1
  80. package/lib/cjs/wizard/Wizard.js +2 -1
  81. package/lib/cjs/wizard/Wizard.js.map +1 -1
  82. package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
  83. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  84. package/lib/esm/_common/utils.js.map +1 -1
  85. package/lib/esm/accordion/Accordion.js.map +1 -1
  86. package/lib/esm/avatar/Avatar.js.map +1 -1
  87. package/lib/esm/banner/Banner.js.map +1 -1
  88. package/lib/esm/button/Button.js.map +1 -1
  89. package/lib/esm/button/IconButton.js.map +1 -1
  90. package/lib/esm/callout/Callout.js.map +1 -1
  91. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  92. package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
  93. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  94. package/lib/esm/code-block/languages.js +1 -0
  95. package/lib/esm/code-block/languages.js.map +1 -1
  96. package/lib/esm/context-menu/ContextMenu.js +1 -1
  97. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  98. package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +1 -1
  99. package/lib/esm/data-grid/Components.js +4 -3
  100. package/lib/esm/data-grid/Components.js.map +1 -1
  101. package/lib/esm/data-grid/DataGridContext.js.map +1 -1
  102. package/lib/esm/data-grid/helpers.js.map +1 -1
  103. package/lib/esm/date-picker/DatePicker.js +1 -1
  104. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  105. package/lib/esm/dialog/Dialog.js +2 -2
  106. package/lib/esm/dialog/Dialog.js.map +1 -1
  107. package/lib/esm/drawer/Drawer.js.map +1 -1
  108. package/lib/esm/dropdown/Dropdown.js.map +1 -1
  109. package/lib/esm/dropzone/Dropzone.js.map +1 -1
  110. package/lib/esm/graph-label/GraphLabel.js +2 -2
  111. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  112. package/lib/esm/graph-label/color.js.map +1 -1
  113. package/lib/esm/hooks/index.js +35 -0
  114. package/lib/esm/hooks/index.js.map +1 -1
  115. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  116. package/lib/esm/label/Label.js.map +1 -1
  117. package/lib/esm/modal/Modal.js +2 -2
  118. package/lib/esm/modal/Modal.js.map +1 -1
  119. package/lib/esm/popover/Popover.js +5 -5
  120. package/lib/esm/popover/Popover.js.map +1 -1
  121. package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
  122. package/lib/esm/side-navigation/SideNavigation.js +1 -1
  123. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  124. package/lib/esm/slider/Slider.js.map +1 -1
  125. package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
  126. package/lib/esm/table/Components.js.map +1 -1
  127. package/lib/esm/table/TableContext.js.map +1 -1
  128. package/lib/esm/table/helpers.js.map +1 -1
  129. package/lib/esm/tabs/Tabs.js.map +1 -1
  130. package/lib/esm/tag/Tag.js +1 -1
  131. package/lib/esm/tag/Tag.js.map +1 -1
  132. package/lib/esm/text-input/TextInput.js.map +1 -1
  133. package/lib/esm/text-input-preview/TextInputPreview.js.map +1 -1
  134. package/lib/esm/textarea/Textarea.js.map +1 -1
  135. package/lib/esm/theme/ThemeProvider.js.map +1 -1
  136. package/lib/esm/theme/agnostic.js.map +1 -1
  137. package/lib/esm/tip/Tip.js.map +1 -1
  138. package/lib/esm/toast/Toast.js.map +1 -1
  139. package/lib/esm/tree-view/TreeItemWrapper.js.map +1 -1
  140. package/lib/esm/tree-view/TreeView.js +3 -3
  141. package/lib/esm/tree-view/TreeView.js.map +1 -1
  142. package/lib/esm/tree-view/TreeViewItem.js +1 -1
  143. package/lib/esm/tree-view/TreeViewItem.js.map +1 -1
  144. package/lib/esm/tree-view/TreeViewTextItem.js.map +1 -1
  145. package/lib/esm/tree-view/tree-view-keyboard-coordinates.js.map +1 -1
  146. package/lib/esm/tree-view/tree-view-keyboard-helpers.js.map +1 -1
  147. package/lib/esm/tree-view/tree-view-utils.js.map +1 -1
  148. package/lib/esm/typography/Typography.js +2 -1
  149. package/lib/esm/typography/Typography.js.map +1 -1
  150. package/lib/esm/wizard/Wizard.js +2 -1
  151. package/lib/esm/wizard/Wizard.js.map +1 -1
  152. package/lib/types/_common/ConditionalWrap.d.ts +0 -1
  153. package/lib/types/_common/coditionalWrap.d.ts +0 -1
  154. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +0 -1
  155. package/lib/types/_common/utils.d.ts +2 -2
  156. package/lib/types/accordion/Accordion.d.ts +2 -2
  157. package/lib/types/context-menu/SafeArea.d.ts +0 -1
  158. package/lib/types/data-grid/Components.d.ts +9 -10
  159. package/lib/types/data-grid/DataGrid.d.ts +11 -12
  160. package/lib/types/data-grid/DataGridContext.d.ts +0 -1
  161. package/lib/types/data-grid/datagrid-types.d.ts +0 -1
  162. package/lib/types/data-grid/helpers.d.ts +3 -3
  163. package/lib/types/date-picker/DatePicker.d.ts +1 -2
  164. package/lib/types/divider/Divider.d.ts +0 -1
  165. package/lib/types/drawer/Drawer.d.ts +2 -2
  166. package/lib/types/dropdown/Dropdown.d.ts +1 -1
  167. package/lib/types/dropzone/Dropzone.d.ts +0 -1
  168. package/lib/types/graph-label/GraphLabel.d.ts +6 -6
  169. package/lib/types/hooks/index.d.ts +17 -0
  170. package/lib/types/icons/generated/heroIcons.d.ts +1168 -1169
  171. package/lib/types/layout/types.d.ts +0 -1
  172. package/lib/types/portal/Portal.d.ts +0 -1
  173. package/lib/types/segmented-control/SegmentedControl.d.ts +2 -2
  174. package/lib/types/side-navigation/SideNavigation.d.ts +2 -2
  175. package/lib/types/slider/Slider.d.ts +1 -1
  176. package/lib/types/table/Components.d.ts +5 -6
  177. package/lib/types/table/Table.d.ts +12 -13
  178. package/lib/types/table/TableContext.d.ts +0 -1
  179. package/lib/types/table/helpers.d.ts +2 -2
  180. package/lib/types/tabs/Tabs.d.ts +2 -2
  181. package/lib/types/tip/Tip.d.ts +11 -11
  182. package/lib/types/toast/Toast.d.ts +5 -5
  183. package/lib/types/tree-view/TreeItemWrapper.d.ts +1 -1
  184. package/lib/types/tree-view/TreeView.d.ts +2 -3
  185. package/lib/types/tree-view/TreeViewItem.d.ts +2 -1
  186. package/lib/types/typography/Typography.d.ts +3 -3
  187. package/lib/types/typography/types.d.ts +0 -1
  188. package/lib/types/widget/Widget.d.ts +3 -3
  189. package/lib/types/wizard/Wizard.d.ts +3 -4
  190. package/package.json +1 -1
@@ -34,7 +34,7 @@ export declare const useDocumentScrollToggle: () => (disable: boolean, doc?: Doc
34
34
  * Source:
35
35
  * https://hashnode.com/post/useonclickoutside-custom-hook-to-detect-the-mouse-click-on-outside-typescript-ckrejmy3h0k5r91s18iu42t28
36
36
  */
37
- export declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: import("react").RefObject<T>, handler: (event: MouseEvent | TouchEvent) => void) => void;
37
+ export declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: React.RefObject<T>, handler: (event: MouseEvent | TouchEvent) => void) => void;
38
38
  /**
39
39
  * X - char long pseudo-random string
40
40
  */
@@ -61,7 +61,7 @@ export declare const findFocusableChildren: (parentElement: HTMLElement) => Elem
61
61
  * @param parentRef the parent element
62
62
  * @returns the previous focusable element
63
63
  */
64
- export declare const findFocusableSibling: (parentRef: React.RefObject<HTMLElement>, direction: 'prev' | 'next') => HTMLElement | undefined;
64
+ export declare const findFocusableSibling: (parentRef: React.RefObject<HTMLElement>, direction: "prev" | "next") => HTMLElement | undefined;
65
65
  /**
66
66
  * Convert hex color to rgb format
67
67
  *
@@ -52,9 +52,9 @@ export interface AccordionItemProps<T extends AccordionItemId> extends ElementBa
52
52
  /** If the component item is disabled. */
53
53
  disabled?: boolean;
54
54
  }
55
- declare const Accordion: (<T extends AccordionItemId>(props: AccordionProps<T> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null) & {
55
+ declare const Accordion: (<T extends AccordionItemId>(props: AccordionProps<T> & React.RefAttributes<unknown>) => React.ReactElement | null) & {
56
56
  Item: {
57
- <T_1 extends AccordionItemId>({ itemId, children, title, className, arrowPosition, disabled, onExpandedChange, ...restProps }: AccordionItemProps<T_1>): import("react/jsx-runtime").JSX.Element;
57
+ <T extends AccordionItemId>({ itemId, children, title, className, arrowPosition, disabled, onExpandedChange, ...restProps }: AccordionItemProps<T>): import("react/jsx-runtime").JSX.Element;
58
58
  displayName: string;
59
59
  };
60
60
  };
@@ -19,7 +19,6 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- /// <reference types="react" />
23
22
  export type SafeAreaPositions = {
24
23
  mouse: {
25
24
  x: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  *
4
3
  * Copyright (c) "Neo4j"
@@ -36,7 +35,7 @@ export interface CommonInnerProps<T = HTMLDivElement> {
36
35
  export interface ResizingBarProps<T extends RowData> extends CommonInnerProps<HTMLButtonElement> {
37
36
  header: HeaderType<T, unknown>;
38
37
  }
39
- declare const ResizingBar: <T extends unknown>({ header, children, innerProps, }: ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
38
+ declare const ResizingBar: <T extends RowData>({ header, children, innerProps, }: ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
40
39
  declare const Scrollable: ({ children, innerProps }: CommonInnerProps) => import("react/jsx-runtime").JSX.Element;
41
40
  declare const Header: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
42
41
  export interface ActionButtonProps {
@@ -52,28 +51,28 @@ export interface RowActionCellProps<T extends RowData> {
52
51
  innerIconButtonProps?: Partial<React.ComponentProps<typeof IconButton>>;
53
52
  innerMenuProps?: Partial<React.ComponentProps<typeof Menu>>;
54
53
  }
55
- declare const RowActionCell: <T extends unknown>({ cell, innerIconButtonProps, innerMenuProps, }: RowActionCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
54
+ declare const RowActionCell: <T extends RowData>({ cell, innerIconButtonProps, innerMenuProps, }: RowActionCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
56
55
  export interface ColumnControlsProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
57
56
  cell: HeaderType<T, unknown>;
58
57
  }
59
- export declare const ColumnControls: <T extends unknown>({ cell, children, innerProps, }: ColumnControlsProps<T>) => import("react/jsx-runtime").JSX.Element | null;
58
+ export declare const ColumnControls: <T extends RowData>({ cell, children, innerProps, }: ColumnControlsProps<T>) => import("react/jsx-runtime").JSX.Element | null;
60
59
  export interface HeaderCellProps<T> extends CommonInnerProps<HTMLDivElement> {
61
60
  cell: HeaderType<T, unknown>;
62
61
  }
63
- declare const HeaderCell: <T extends unknown>({ cell, children, innerProps, }: HeaderCellProps<T>) => import("react/jsx-runtime").JSX.Element;
62
+ declare const HeaderCell: <T extends RowData>({ cell, children, innerProps, }: HeaderCellProps<T>) => import("react/jsx-runtime").JSX.Element;
64
63
  export interface HeaderTitleProps<T> extends CommonInnerProps<HTMLDivElement> {
65
64
  cell: HeaderType<T, unknown>;
66
65
  }
67
- declare const HeaderTitle: <T extends unknown>({ cell, children, innerProps, }: HeaderTitleProps<T>) => import("react/jsx-runtime").JSX.Element;
66
+ declare const HeaderTitle: <T extends RowData>({ cell, children, innerProps, }: HeaderTitleProps<T>) => import("react/jsx-runtime").JSX.Element;
68
67
  declare const Body: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
69
68
  export interface BodyCellProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
70
69
  cell: Cell<T, unknown>;
71
70
  }
72
- declare const BodyCell: <T extends unknown>({ cell, children, innerProps, }: BodyCellProps<T>) => import("react/jsx-runtime").JSX.Element;
71
+ declare const BodyCell: <T extends RowData>({ cell, children, innerProps, }: BodyCellProps<T>) => import("react/jsx-runtime").JSX.Element;
73
72
  export interface BodyRowProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
74
73
  row: Row<T>;
75
74
  }
76
- declare const BodyRow: <T extends unknown>({ row, children, innerProps, }: BodyRowProps<T>) => import("react/jsx-runtime").JSX.Element;
75
+ declare const BodyRow: <T extends RowData>({ row, children, innerProps, }: BodyRowProps<T>) => import("react/jsx-runtime").JSX.Element;
77
76
  export interface TableResultProps extends CommonInnerProps<HTMLSpanElement> {
78
77
  manualPagination?: {
79
78
  from: number;
@@ -101,7 +100,7 @@ export interface InlineEditCellProps<T extends RowData> {
101
100
  cell: CellContext<T, unknown>;
102
101
  value: string;
103
102
  }
104
- declare const InlineEditCell: <T extends unknown>({ cell, value, }: InlineEditCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
103
+ declare const InlineEditCell: <T extends RowData>({ cell, value, }: InlineEditCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
105
104
  export interface DropDownCellProps<T extends RowData> {
106
105
  cell: CellContext<T, unknown>;
107
106
  options: {
@@ -110,5 +109,5 @@ export interface DropDownCellProps<T extends RowData> {
110
109
  }[];
111
110
  portalTarget?: HTMLElement;
112
111
  }
113
- declare const DropDownCell: <T extends unknown>({ cell, options, portalTarget, }: DropDownCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
112
+ declare const DropDownCell: <T extends RowData>({ cell, options, portalTarget, }: DropDownCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
114
113
  export { ResizingBar, Header, Body, BodyCell, BodyRow, InlineEditCell, DropDownCell, RowActionCell, HeaderCell, HeaderTitle, Navigation, TableResults, RowsPerPage, Pagination, PaginationNumericButtons, PaginationArrowButton, PaginationNumericButton, NoDataPlaceholder, LoadingPlaceholder, Scrollable, };
@@ -19,23 +19,22 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- /// <reference types="react" />
23
22
  import type { Table as DataGridType, RowData } from '@tanstack/react-table';
24
23
  import { type ElementBase } from '../helpers';
25
24
  import { type DataGridComponentsInterface } from './DataGridContext';
26
25
  export declare const DataGridComponents: {
27
- ResizingBar: <T extends unknown>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
26
+ ResizingBar: <T extends RowData>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
28
27
  Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
29
28
  Body: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
30
- BodyCell: <T_1 extends unknown>({ cell, children, innerProps, }: import("./Components").BodyCellProps<T_1>) => import("react/jsx-runtime").JSX.Element;
31
- BodyRow: <T_2 extends unknown>({ row, children, innerProps, }: import("./Components").BodyRowProps<T_2>) => import("react/jsx-runtime").JSX.Element;
32
- RowActionCell: <T_3 extends unknown>({ cell, innerIconButtonProps, innerMenuProps, }: import("./Components").RowActionCellProps<T_3>) => import("react/jsx-runtime").JSX.Element | null;
33
- InlineEditCell: <T_4 extends unknown>({ cell, value, }: import("./Components").InlineEditCellProps<T_4>) => import("react/jsx-runtime").JSX.Element | null;
34
- DropDownCell: <T_5 extends unknown>({ cell, options, portalTarget, }: import("./Components").DropDownCellProps<T_5>) => import("react/jsx-runtime").JSX.Element | null;
35
- HeaderCell: <T_6 extends unknown>({ cell, children, innerProps, }: import("./Components").HeaderCellProps<T_6>) => import("react/jsx-runtime").JSX.Element;
36
- HeaderTitle: <T_7 extends unknown>({ cell, children, innerProps, }: import("./Components").HeaderTitleProps<T_7>) => import("react/jsx-runtime").JSX.Element;
29
+ BodyCell: <T extends RowData>({ cell, children, innerProps, }: import("./Components").BodyCellProps<T>) => import("react/jsx-runtime").JSX.Element;
30
+ BodyRow: <T extends RowData>({ row, children, innerProps, }: import("./Components").BodyRowProps<T>) => import("react/jsx-runtime").JSX.Element;
31
+ RowActionCell: <T extends RowData>({ cell, innerIconButtonProps, innerMenuProps, }: import("./Components").RowActionCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
32
+ InlineEditCell: <T extends RowData>({ cell, value, }: import("./Components").InlineEditCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
33
+ DropDownCell: <T extends RowData>({ cell, options, portalTarget, }: import("./Components").DropDownCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
34
+ HeaderCell: <T extends RowData>({ cell, children, innerProps, }: import("./Components").HeaderCellProps<T>) => import("react/jsx-runtime").JSX.Element;
35
+ HeaderTitle: <T extends RowData>({ cell, children, innerProps, }: import("./Components").HeaderTitleProps<T>) => import("react/jsx-runtime").JSX.Element;
37
36
  ActionButton: ({ action, children, onClose, innerProps, }: import("./Components").ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
38
- ColumnControls: <T_8 extends unknown>({ cell, children, innerProps, }: import("./Components").ColumnControlsProps<T_8>) => import("react/jsx-runtime").JSX.Element | null;
37
+ ColumnControls: <T extends RowData>({ cell, children, innerProps, }: import("./Components").ColumnControlsProps<T>) => import("react/jsx-runtime").JSX.Element | null;
39
38
  Navigation: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
40
39
  TableResults: ({ children, innerProps, manualPagination, }: import("./Components").TableResultProps) => import("react/jsx-runtime").JSX.Element;
41
40
  RowsPerPage: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -45,7 +44,7 @@ export declare const DataGridComponents: {
45
44
  PaginationArrowButton: ({ action, children, innerProps, }: import("./Components").PaginationArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
46
45
  LoadingPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
47
46
  NoDataPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
48
- Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
47
+ Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps) => import("react/jsx-runtime").JSX.Element;
49
48
  };
50
49
  declare enum BorderStyleEnum {
51
50
  AllSides = "all-sides",
@@ -102,5 +101,5 @@ export type DataGridProps<T extends RowData> = {
102
101
  /** Root `div` props */
103
102
  rootProps?: ElementBase<HTMLDivElement>;
104
103
  };
105
- export declare const DataGrid: <T extends unknown>(props: DataGridProps<T> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
104
+ export declare const DataGrid: <T extends RowData>(props: DataGridProps<T> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement | null;
106
105
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  *
4
3
  * Copyright (c) "Neo4j"
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  *
4
3
  * Copyright (c) "Neo4j"
@@ -18,7 +18,7 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- import { type ColumnDef, type Table } from '@tanstack/react-table';
21
+ import { type ColumnDef, type RowData, type Table } from '@tanstack/react-table';
22
22
  /**
23
23
  * Modified from here: https://gist.github.com/kottenator/9d936eb3e4e3c3e02598
24
24
  *
@@ -36,10 +36,10 @@ export declare const userFriendlyPagination: (current: number, max: number) => (
36
36
  * fill the available space, and the result till be for 4 columns:
37
37
  * minmax(min column1Sizepx,column1Sizepx) minmax(min column2Sizepx,column2Sizepx) ... minmax(columnNSizepx, auto)
38
38
  */
39
- export declare const gridGenerator: <T extends unknown>(table: Table<T>) => string;
39
+ export declare const gridGenerator: <T extends RowData>(table: Table<T>) => string;
40
40
  /**
41
41
  * Check if the column is size constrained,
42
42
  * so we can let the column's width grow with `flex-grow: 1`
43
43
  * @param columnDef
44
44
  */
45
- export declare const isSizeConstrained: <T extends unknown>(columnDef: ColumnDef<T>) => boolean;
45
+ export declare const isSizeConstrained: <T extends RowData>(columnDef: ColumnDef<T>) => boolean;
@@ -19,7 +19,6 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- /// <reference types="react" />
23
22
  import { type ReactDatePickerProps } from 'react-datepicker';
24
23
  import { type ElementBase } from '../helpers';
25
24
  import { type TextInputProperties } from '../text-input/TextInput';
@@ -33,4 +32,4 @@ export interface DatePickerProps<WithRange extends boolean = false> extends Elem
33
32
  */
34
33
  reactDatePickerProps: ReactDatePickerProps<string, WithRange>;
35
34
  }
36
- export declare const DatePicker: <T extends boolean>(props: DatePickerProps<T> & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
35
+ export declare const DatePicker: <T extends boolean>(props: DatePickerProps<T> & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement | null;
@@ -19,7 +19,6 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- /// <reference types="react" />
23
22
  import { type ElementBase } from '../helpers';
24
23
  export interface DividerProps extends ElementBase<HTMLDivElement> {
25
24
  orientation?: 'horizontal' | 'vertical';
@@ -47,11 +47,11 @@ export interface DrawerProps extends ElementBase<HTMLDivElement> {
47
47
  */
48
48
  portalProps?: ComponentProps<typeof FloatingPortal>;
49
49
  }
50
- export declare const DrawerComponent: (props: DrawerProps & import("react").RefAttributes<HTMLDivElement & Resizable>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
50
+ export declare const DrawerComponent: (props: DrawerProps & import("react").RefAttributes<HTMLDivElement & Resizable>) => import("react").ReactElement | null;
51
51
  type DrawerHeaderProps = ComponentPropsWithoutRef<'h5'>;
52
52
  type DrawerActionsProps = ComponentPropsWithoutRef<'div'>;
53
53
  type DrawerBodyProps = ComponentPropsWithoutRef<'div'>;
54
- declare const Drawer: ((props: DrawerProps & import("react").RefAttributes<HTMLDivElement & Resizable>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null) & {
54
+ declare const Drawer: ((props: DrawerProps & import("react").RefAttributes<HTMLDivElement & Resizable>) => import("react").ReactElement | null) & {
55
55
  Header: ({ children, className, ...restProps }: DrawerHeaderProps) => import("react/jsx-runtime").JSX.Element;
56
56
  Actions: ({ children, className, ...restProps }: DrawerActionsProps) => import("react/jsx-runtime").JSX.Element;
57
57
  Body: ({ children, className, ...restProps }: DrawerBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -21,4 +21,4 @@
21
21
  import React from 'react';
22
22
  import { type GroupBase } from 'react-select';
23
23
  import { type DropdownProps } from './types';
24
- export declare const Dropdown: <OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>>(props: DropdownProps<OptionType, IsMulti, GroupType> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
24
+ export declare const Dropdown: <OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>>(props: DropdownProps<OptionType, IsMulti, GroupType> & React.RefAttributes<unknown>) => React.ReactElement | null;
@@ -19,7 +19,6 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- /// <reference types="react" />
23
22
  import { type DropzoneOptions } from 'react-dropzone';
24
23
  import { type ElementBase } from '../helpers';
25
24
  /**
@@ -21,15 +21,15 @@
21
21
 
22
22
  import React from 'react';
23
23
  export declare const GraphLabel: React.ForwardRefExoticComponent<{
24
- type: 'node' | 'relationship' | 'propertyKey';
24
+ type: "node" | "relationship" | "propertyKey";
25
25
  children?: React.ReactNode;
26
26
  /** The background color of the label only applicable to type node and relationship*/
27
- color?: string | undefined;
27
+ color?: string;
28
28
  /** Sets the label to the disabled style */
29
- disabled?: boolean | undefined;
30
- className?: string | undefined;
29
+ disabled?: boolean;
30
+ className?: string;
31
31
  /** If the element is selected */
32
- selected?: boolean | undefined;
32
+ selected?: boolean;
33
33
  } & Omit<React.HTMLProps<HTMLButtonElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
34
- as?: string | React.ComponentType<any> | undefined;
34
+ as?: string | React.ComponentType<any>;
35
35
  } & React.RefAttributes<HTMLDivElement>>;
@@ -45,3 +45,20 @@ export declare function useEffectDebugger(effectHook: unknown, dependencies: unk
45
45
  * The `useRenderCount` hook returns the number of times a component has rendered.
46
46
  */
47
47
  export declare function useRenderCount(): number;
48
+ /**
49
+ * The `useRenderDebugger` outputs to console what props or states are causing a render (or re-render) of a component
50
+ * if all relevant props and states variables are passed to the hook.
51
+ * For debugging purposes only.
52
+ *
53
+ * Howto use:
54
+ * Place the hook at the top of the component you want to debug and call it like this:
55
+ * useRenderDebugger('MyComponent', props);
56
+ *
57
+ * if there are state variables include them as well:
58
+ *
59
+ * useRenderDebugger('MyComponent', { ...props, stateVar1, stateVar2 });
60
+ *
61
+ * @param componentName Name of the component to debug
62
+ * @param propsAndStates an object containing all props and states variables of the component
63
+ */
64
+ export declare const useRenderDebugger: (componentName: string, propsAndStates: Record<string, unknown>) => void;