@neo4j-ndl/react 1.10.7 → 2.0.0-alpha-e609471

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 (283) hide show
  1. package/lib/LICENSES.txt +2105 -67
  2. package/lib/NOTICE.txt +30 -31
  3. package/lib/cjs/_common/CodeBlockWrapper.js +6 -6
  4. package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
  5. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +1 -1
  6. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  7. package/lib/cjs/accordion/Accordion.js +4 -4
  8. package/lib/cjs/accordion/Accordion.js.map +1 -1
  9. package/lib/cjs/banner/Banner.js +2 -2
  10. package/lib/cjs/banner/Banner.js.map +1 -1
  11. package/lib/cjs/button/Button.js +1 -1
  12. package/lib/cjs/button/Button.js.map +1 -1
  13. package/lib/cjs/button/IconButton.js +1 -1
  14. package/lib/cjs/button/IconButton.js.map +1 -1
  15. package/lib/cjs/button/IconButtonArray.js +1 -1
  16. package/lib/cjs/button/IconButtonArray.js.map +1 -1
  17. package/lib/cjs/code-block/CodeBlock.js +3 -3
  18. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  19. package/lib/cjs/context-menu/ContextMenu.js +6 -6
  20. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  21. package/lib/cjs/context-menu/SafeArea.js +6 -6
  22. package/lib/cjs/context-menu/SafeArea.js.map +1 -1
  23. package/lib/cjs/cypher-code-block/CypherCodeBlock.js +1 -1
  24. package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +1 -1
  25. package/lib/cjs/date-picker/DatePicker.js +5 -5
  26. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  27. package/lib/cjs/dialog/Dialog.js +7 -7
  28. package/lib/cjs/dialog/Dialog.js.map +1 -1
  29. package/lib/cjs/drag-and-drop/DragAndDrop.js +2 -2
  30. package/lib/cjs/drag-and-drop/DragAndDrop.js.map +1 -1
  31. package/lib/cjs/drag-and-drop/icons/Cloud.js +1 -1
  32. package/lib/cjs/drag-and-drop/icons/Cloud.js.map +1 -1
  33. package/lib/cjs/drawer/Drawer.js +6 -6
  34. package/lib/cjs/drawer/Drawer.js.map +1 -1
  35. package/lib/cjs/dropdown/Dropdown.js +17 -17
  36. package/lib/cjs/dropdown/Dropdown.js.map +1 -1
  37. package/lib/cjs/dropdown/Overrides.js +4 -4
  38. package/lib/cjs/dropdown/Overrides.js.map +1 -1
  39. package/lib/cjs/graph-label/GraphLabel.js +11 -11
  40. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  41. package/lib/cjs/graph-label/color.js +8 -8
  42. package/lib/cjs/graph-label/color.js.map +1 -1
  43. package/lib/cjs/icons/generated/custom/NomLevel.js +1 -1
  44. package/lib/cjs/icons/generated/custom/NomLevel.js.map +1 -1
  45. package/lib/cjs/icons/generated/custom/Underline.js +1 -1
  46. package/lib/cjs/icons/generated/custom/Underline.js.map +1 -1
  47. package/lib/cjs/index.js +1 -1
  48. package/lib/cjs/index.js.map +1 -1
  49. package/lib/cjs/label/Label.js +17 -8
  50. package/lib/cjs/label/Label.js.map +1 -1
  51. package/lib/cjs/loading-spinner/LoadingSpinner.js +1 -1
  52. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  53. package/lib/cjs/modal/Modal.js +2 -2
  54. package/lib/cjs/modal/Modal.js.map +1 -1
  55. package/lib/cjs/popover/Popover.js +2 -2
  56. package/lib/cjs/popover/Popover.js.map +1 -1
  57. package/lib/cjs/progress-bar/ProgressBar.js +1 -1
  58. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
  59. package/lib/cjs/side-navigation/SideNavigation.js +5 -5
  60. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  61. package/lib/cjs/status-indicator/StatusIndicator.js +5 -5
  62. package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
  63. package/lib/cjs/table/Components.js +18 -18
  64. package/lib/cjs/table/Components.js.map +1 -1
  65. package/lib/cjs/table/Table.js +3 -3
  66. package/lib/cjs/table/Table.js.map +1 -1
  67. package/lib/cjs/table-deprecated/Table.js +9 -9
  68. package/lib/cjs/table-deprecated/Table.js.map +1 -1
  69. package/lib/cjs/table-deprecated/TableNavigation.js +2 -2
  70. package/lib/cjs/table-deprecated/TableNavigation.js.map +1 -1
  71. package/lib/cjs/table-deprecated/helpers.js +1 -1
  72. package/lib/cjs/table-deprecated/helpers.js.map +1 -1
  73. package/lib/cjs/tabs/Tabs.js +3 -3
  74. package/lib/cjs/tabs/Tabs.js.map +1 -1
  75. package/lib/cjs/tag/Tag.js +1 -1
  76. package/lib/cjs/tag/Tag.js.map +1 -1
  77. package/lib/cjs/text-input/TextInput.js +3 -4
  78. package/lib/cjs/text-input/TextInput.js.map +1 -1
  79. package/lib/cjs/textarea/Textarea.js +3 -4
  80. package/lib/cjs/textarea/Textarea.js.map +1 -1
  81. package/lib/cjs/tip/Tip.js +193 -0
  82. package/lib/cjs/tip/Tip.js.map +1 -0
  83. package/lib/cjs/{tooltip → tip}/Tooltip.js +1 -1
  84. package/lib/cjs/tip/Tooltip.js.map +1 -0
  85. package/lib/cjs/{tooltip → tip}/index.js +16 -5
  86. package/lib/cjs/tip/index.js.map +1 -0
  87. package/lib/cjs/typography/Typography.js +1 -1
  88. package/lib/cjs/typography/Typography.js.map +1 -1
  89. package/lib/cjs/view-selector/ViewSelector.js +2 -2
  90. package/lib/cjs/view-selector/ViewSelector.js.map +1 -1
  91. package/lib/cjs/widget/Widget.js +1 -1
  92. package/lib/cjs/widget/Widget.js.map +1 -1
  93. package/lib/cjs/wizard/Wizard.js +6 -6
  94. package/lib/cjs/wizard/Wizard.js.map +1 -1
  95. package/lib/esm/_common/CodeBlockWrapper.js +6 -6
  96. package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
  97. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +1 -1
  98. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  99. package/lib/esm/accordion/Accordion.js +4 -4
  100. package/lib/esm/accordion/Accordion.js.map +1 -1
  101. package/lib/esm/banner/Banner.js +2 -2
  102. package/lib/esm/banner/Banner.js.map +1 -1
  103. package/lib/esm/button/Button.js +1 -1
  104. package/lib/esm/button/Button.js.map +1 -1
  105. package/lib/esm/button/IconButton.js +1 -1
  106. package/lib/esm/button/IconButton.js.map +1 -1
  107. package/lib/esm/button/IconButtonArray.js +1 -1
  108. package/lib/esm/button/IconButtonArray.js.map +1 -1
  109. package/lib/esm/code-block/CodeBlock.js +3 -3
  110. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  111. package/lib/esm/context-menu/ContextMenu.js +6 -6
  112. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  113. package/lib/esm/context-menu/SafeArea.js +6 -6
  114. package/lib/esm/context-menu/SafeArea.js.map +1 -1
  115. package/lib/esm/cypher-code-block/CypherCodeBlock.js +1 -1
  116. package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +1 -1
  117. package/lib/esm/date-picker/DatePicker.js +5 -5
  118. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  119. package/lib/esm/dialog/Dialog.js +6 -6
  120. package/lib/esm/dialog/Dialog.js.map +1 -1
  121. package/lib/esm/drag-and-drop/DragAndDrop.js +2 -2
  122. package/lib/esm/drag-and-drop/DragAndDrop.js.map +1 -1
  123. package/lib/esm/drag-and-drop/icons/Cloud.js +1 -1
  124. package/lib/esm/drag-and-drop/icons/Cloud.js.map +1 -1
  125. package/lib/esm/drawer/Drawer.js +6 -6
  126. package/lib/esm/drawer/Drawer.js.map +1 -1
  127. package/lib/esm/dropdown/Dropdown.js +17 -17
  128. package/lib/esm/dropdown/Dropdown.js.map +1 -1
  129. package/lib/esm/dropdown/Overrides.js +4 -4
  130. package/lib/esm/dropdown/Overrides.js.map +1 -1
  131. package/lib/esm/graph-label/GraphLabel.js +11 -11
  132. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  133. package/lib/esm/graph-label/color.js +8 -8
  134. package/lib/esm/graph-label/color.js.map +1 -1
  135. package/lib/esm/icons/generated/custom/NomLevel.js +1 -1
  136. package/lib/esm/icons/generated/custom/NomLevel.js.map +1 -1
  137. package/lib/esm/icons/generated/custom/Underline.js +1 -1
  138. package/lib/esm/icons/generated/custom/Underline.js.map +1 -1
  139. package/lib/esm/index.js +1 -1
  140. package/lib/esm/index.js.map +1 -1
  141. package/lib/esm/label/Label.js +17 -8
  142. package/lib/esm/label/Label.js.map +1 -1
  143. package/lib/esm/loading-spinner/LoadingSpinner.js +1 -1
  144. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  145. package/lib/esm/modal/Modal.js +1 -1
  146. package/lib/esm/modal/Modal.js.map +1 -1
  147. package/lib/esm/popover/Popover.js +2 -2
  148. package/lib/esm/popover/Popover.js.map +1 -1
  149. package/lib/esm/progress-bar/ProgressBar.js +1 -1
  150. package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
  151. package/lib/esm/side-navigation/SideNavigation.js +5 -5
  152. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  153. package/lib/esm/status-indicator/StatusIndicator.js +5 -5
  154. package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
  155. package/lib/esm/table/Components.js +18 -18
  156. package/lib/esm/table/Components.js.map +1 -1
  157. package/lib/esm/table/Table.js +3 -3
  158. package/lib/esm/table/Table.js.map +1 -1
  159. package/lib/esm/table-deprecated/Table.js +9 -9
  160. package/lib/esm/table-deprecated/Table.js.map +1 -1
  161. package/lib/esm/table-deprecated/TableNavigation.js +2 -2
  162. package/lib/esm/table-deprecated/TableNavigation.js.map +1 -1
  163. package/lib/esm/table-deprecated/helpers.js +1 -1
  164. package/lib/esm/table-deprecated/helpers.js.map +1 -1
  165. package/lib/esm/tabs/Tabs.js +3 -3
  166. package/lib/esm/tabs/Tabs.js.map +1 -1
  167. package/lib/esm/tag/Tag.js +1 -1
  168. package/lib/esm/tag/Tag.js.map +1 -1
  169. package/lib/esm/text-input/TextInput.js +4 -5
  170. package/lib/esm/text-input/TextInput.js.map +1 -1
  171. package/lib/esm/textarea/Textarea.js +4 -5
  172. package/lib/esm/textarea/Textarea.js.map +1 -1
  173. package/lib/esm/tip/Tip.js +183 -0
  174. package/lib/esm/tip/Tip.js.map +1 -0
  175. package/lib/esm/{tooltip → tip}/Tooltip.js +1 -1
  176. package/lib/esm/tip/Tooltip.js.map +1 -0
  177. package/lib/esm/{tooltip → tip}/index.js +1 -2
  178. package/lib/esm/tip/index.js.map +1 -0
  179. package/lib/esm/typography/Typography.js +1 -1
  180. package/lib/esm/typography/Typography.js.map +1 -1
  181. package/lib/esm/view-selector/ViewSelector.js +2 -2
  182. package/lib/esm/view-selector/ViewSelector.js.map +1 -1
  183. package/lib/esm/widget/Widget.js +1 -1
  184. package/lib/esm/widget/Widget.js.map +1 -1
  185. package/lib/esm/wizard/Wizard.js +6 -6
  186. package/lib/esm/wizard/Wizard.js.map +1 -1
  187. package/lib/types/_common/coditionalWrap.d.ts +2 -2
  188. package/lib/types/accordion/Accordion.d.ts +6 -6
  189. package/lib/types/banner/Banner.d.ts +6 -6
  190. package/lib/types/button/Button.d.ts +1 -1
  191. package/lib/types/code-block/languages.d.ts +1 -1
  192. package/lib/types/context-menu/ContextMenu.d.ts +5 -9
  193. package/lib/types/context-menu/SafeArea.d.ts +1 -1
  194. package/lib/types/dialog/Dialog.d.ts +12 -12
  195. package/lib/types/drag-and-drop/DragAndDrop.d.ts +1 -1
  196. package/lib/types/drag-and-drop/icons/CSV-file.d.ts +1 -1
  197. package/lib/types/drag-and-drop/icons/Cloud.d.ts +1 -1
  198. package/lib/types/drag-and-drop/icons/File.d.ts +1 -1
  199. package/lib/types/drag-and-drop/icons/InvalidFile.d.ts +1 -1
  200. package/lib/types/drawer/Drawer.d.ts +9 -9
  201. package/lib/types/dropdown/Overrides.d.ts +4 -5
  202. package/lib/types/dropdown/types.d.ts +5 -5
  203. package/lib/types/graph-label/color.d.ts +3 -3
  204. package/lib/types/helpers/forwardRef.d.ts +1 -1
  205. package/lib/types/helpers/types.d.ts +1 -1
  206. package/lib/types/icons/generated/custom/AddNode.d.ts +1 -1
  207. package/lib/types/icons/generated/custom/AlignBottom.d.ts +1 -1
  208. package/lib/types/icons/generated/custom/AlignCenter.d.ts +1 -1
  209. package/lib/types/icons/generated/custom/AlignTop.d.ts +1 -1
  210. package/lib/types/icons/generated/custom/Bold.d.ts +1 -1
  211. package/lib/types/icons/generated/custom/Circle.d.ts +1 -1
  212. package/lib/types/icons/generated/custom/CollapseExpand.d.ts +1 -1
  213. package/lib/types/icons/generated/custom/CollapseExpandLeft.d.ts +1 -1
  214. package/lib/types/icons/generated/custom/CollapseExpandRight.d.ts +1 -1
  215. package/lib/types/icons/generated/custom/Configure.d.ts +1 -1
  216. package/lib/types/icons/generated/custom/DatabaseAddCircle.d.ts +1 -1
  217. package/lib/types/icons/generated/custom/Dbms.d.ts +1 -1
  218. package/lib/types/icons/generated/custom/Drag.d.ts +1 -1
  219. package/lib/types/icons/generated/custom/Expand.d.ts +1 -1
  220. package/lib/types/icons/generated/custom/ExternalLink.d.ts +1 -1
  221. package/lib/types/icons/generated/custom/FitToScreen.d.ts +1 -1
  222. package/lib/types/icons/generated/custom/FolderBookmark.d.ts +1 -1
  223. package/lib/types/icons/generated/custom/Heirarchy2.d.ts +1 -1
  224. package/lib/types/icons/generated/custom/Hierarchy1.d.ts +1 -1
  225. package/lib/types/icons/generated/custom/Hierarchy2.d.ts +1 -1
  226. package/lib/types/icons/generated/custom/Italic.d.ts +1 -1
  227. package/lib/types/icons/generated/custom/NomLevel.d.ts +1 -1
  228. package/lib/types/icons/generated/custom/Pin.d.ts +1 -1
  229. package/lib/types/icons/generated/custom/PlanView.d.ts +1 -1
  230. package/lib/types/icons/generated/custom/Presentation.d.ts +1 -1
  231. package/lib/types/icons/generated/custom/QueryBrowser.d.ts +1 -1
  232. package/lib/types/icons/generated/custom/ResizeCorner.d.ts +1 -1
  233. package/lib/types/icons/generated/custom/Rhombus.d.ts +1 -1
  234. package/lib/types/icons/generated/custom/ScienceMolecule.d.ts +1 -1
  235. package/lib/types/icons/generated/custom/Shrink.d.ts +1 -1
  236. package/lib/types/icons/generated/custom/SidebarLineLeft.d.ts +1 -1
  237. package/lib/types/icons/generated/custom/SidebarLineRight.d.ts +1 -1
  238. package/lib/types/icons/generated/custom/Square.d.ts +1 -1
  239. package/lib/types/icons/generated/custom/Status.d.ts +1 -1
  240. package/lib/types/icons/generated/custom/Text.d.ts +1 -1
  241. package/lib/types/icons/generated/custom/Triangle.d.ts +1 -1
  242. package/lib/types/icons/generated/custom/Underline.d.ts +1 -1
  243. package/lib/types/icons/generated/custom/VisualizeBloom.d.ts +1 -1
  244. package/lib/types/index.d.ts +1 -1
  245. package/lib/types/loading-spinner/LoadingSpinner.d.ts +1 -1
  246. package/lib/types/modal/Modal.d.ts +1 -1
  247. package/lib/types/popover/Popover.d.ts +3 -3
  248. package/lib/types/side-navigation/SideNavigation.d.ts +3 -3
  249. package/lib/types/table/Components.d.ts +18 -18
  250. package/lib/types/table/Table.d.ts +19 -19
  251. package/lib/types/table/TableContext.d.ts +1 -1
  252. package/lib/types/table-deprecated/Table.d.ts +6 -6
  253. package/lib/types/table-deprecated/TableNavigation.d.ts +1 -2
  254. package/lib/types/table-deprecated/helpers.d.ts +2 -2
  255. package/lib/types/table-deprecated/hooks/hookCallbackTypes.d.ts +3 -3
  256. package/lib/types/tabs/Tabs.d.ts +3 -3
  257. package/lib/types/tag/Tag.d.ts +1 -1
  258. package/lib/types/text-input/TextInput.d.ts +5 -5
  259. package/lib/types/textarea/Textarea.d.ts +4 -4
  260. package/lib/types/tip/Tip.d.ts +166 -0
  261. package/lib/types/{tooltip → tip}/Tooltip.d.ts +1 -1
  262. package/lib/types/{tooltip → tip}/index.d.ts +1 -2
  263. package/lib/types/typography/Typography.d.ts +1 -2
  264. package/lib/types/typography/types.d.ts +6 -6
  265. package/lib/types/view-selector/ViewSelector.d.ts +1 -1
  266. package/lib/types/widget/Widget.d.ts +1 -1
  267. package/lib/types/wizard/Wizard.d.ts +4 -4
  268. package/package.json +19 -20
  269. package/CHANGELOG.md +0 -1273
  270. package/lib/cjs/tooltip/SmartTooltip.js +0 -33
  271. package/lib/cjs/tooltip/SmartTooltip.js.map +0 -1
  272. package/lib/cjs/tooltip/Tip.js +0 -169
  273. package/lib/cjs/tooltip/Tip.js.map +0 -1
  274. package/lib/cjs/tooltip/Tooltip.js.map +0 -1
  275. package/lib/cjs/tooltip/index.js.map +0 -1
  276. package/lib/esm/tooltip/SmartTooltip.js +0 -28
  277. package/lib/esm/tooltip/SmartTooltip.js.map +0 -1
  278. package/lib/esm/tooltip/Tip.js +0 -141
  279. package/lib/esm/tooltip/Tip.js.map +0 -1
  280. package/lib/esm/tooltip/Tooltip.js.map +0 -1
  281. package/lib/esm/tooltip/index.js.map +0 -1
  282. package/lib/types/tooltip/SmartTooltip.d.ts +0 -36
  283. package/lib/types/tooltip/Tip.d.ts +0 -62
@@ -28,24 +28,24 @@ import { type TableComponentsInterface } from './TableContext';
28
28
  *
29
29
  */
30
30
  export declare const TableComponents: {
31
- ResizingBar: <T extends unknown>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => JSX.Element;
32
- Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
33
- Body: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
34
- BodyCell: <T_1 extends unknown>({ cell, children, innerProps, }: import("./Components").BodyCellProps<T_1>) => JSX.Element;
35
- BodyRow: <T_2 extends unknown>({ row, children, innerProps, }: import("./Components").BodyRowProps<T_2>) => JSX.Element;
36
- HeaderCell: <T_3 extends unknown>({ cell, children, innerProps, }: import("./Components").HeaderCellProps<T_3>) => JSX.Element;
37
- ColumnControls: <T_4 extends unknown>({ cell, controls, children, innerProps, }: import("./Components").ColumnControlsProps<T_4>) => JSX.Element;
38
- Navigation: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
39
- TableResults: ({ children, innerProps, manualPagination, }: import("./Components").TableResultProps) => JSX.Element;
40
- RowsPerPage: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
41
- Pagination: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
42
- PaginationNumericButtons: () => JSX.Element;
43
- PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: import("./Components").PaginationNumericButtonProps) => JSX.Element;
44
- PaginationArrowButton: ({ action, children, innerProps, }: import("./Components").PaginationArrowButtonProps) => JSX.Element;
45
- LoadingPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
46
- NoDataPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
47
- SortingButton: ({ sortDirection, children, innerProps, }: import("./Components").SortingButtonProps) => JSX.Element;
48
- Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
31
+ ResizingBar: <T extends unknown>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
32
+ Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
33
+ Body: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
34
+ BodyCell: <T_1 extends unknown>({ cell, children, innerProps, }: import("./Components").BodyCellProps<T_1>) => import("react/jsx-runtime").JSX.Element;
35
+ BodyRow: <T_2 extends unknown>({ row, children, innerProps, }: import("./Components").BodyRowProps<T_2>) => import("react/jsx-runtime").JSX.Element;
36
+ HeaderCell: <T_3 extends unknown>({ cell, children, innerProps, }: import("./Components").HeaderCellProps<T_3>) => import("react/jsx-runtime").JSX.Element;
37
+ ColumnControls: <T_4 extends unknown>({ cell, controls, children, innerProps, }: import("./Components").ColumnControlsProps<T_4>) => import("react/jsx-runtime").JSX.Element;
38
+ Navigation: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
39
+ TableResults: ({ children, innerProps, manualPagination, }: import("./Components").TableResultProps) => import("react/jsx-runtime").JSX.Element;
40
+ RowsPerPage: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
41
+ Pagination: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
42
+ PaginationNumericButtons: () => import("react/jsx-runtime").JSX.Element;
43
+ PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: import("./Components").PaginationNumericButtonProps) => import("react/jsx-runtime").JSX.Element;
44
+ PaginationArrowButton: ({ action, children, innerProps, }: import("./Components").PaginationArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
45
+ LoadingPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
46
+ NoDataPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
47
+ SortingButton: ({ sortDirection, children, innerProps, }: import("./Components").SortingButtonProps) => import("react/jsx-runtime").JSX.Element;
48
+ Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
49
49
  };
50
50
  declare const TableNameSpace: (<T extends unknown>(props: {
51
51
  resizable?: boolean | undefined;
@@ -54,6 +54,6 @@ declare const TableNameSpace: (<T extends unknown>(props: {
54
54
  tableProps: TableType<T>;
55
55
  components?: TableComponentsInterface<T> | undefined;
56
56
  } & Omit<ElementBase<HTMLDivElement>, "as" | "controls" | "data" | "headers" | "rows"> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null) & {
57
- RowActions: (props: ElementBase<HTMLDivElement>) => JSX.Element;
57
+ RowActions: (props: ElementBase<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
58
58
  };
59
59
  export default TableNameSpace;
@@ -21,7 +21,7 @@
21
21
  /// <reference types="react" />
22
22
  import { type RowData, type Table as TableType } from '@tanstack/react-table';
23
23
  import { type Body, type BodyCell, type BodyRow, type TableResults, type ResizingBar, type Navigation, type Header, type Pagination, type NoDataPlaceholder, type LoadingPlaceholder, type PaginationNumericButtons, type PaginationNumericButton, type HeaderCell, type PaginationArrowButton, type RowsPerPage, type ColumnControls, type SortingButton, type Scrollable } from './Components';
24
- declare type Nullable<T> = T | null;
24
+ type Nullable<T> = T | null;
25
25
  export interface TableComponentsInterface<T extends RowData> {
26
26
  ResizingBar?: Nullable<typeof ResizingBar<T>>;
27
27
  /**
@@ -21,7 +21,7 @@
21
21
  /// <reference types="react" />
22
22
  import { type Row, type UseColumnOrderState, type UseExpandedState, type UseFiltersState, type UsePaginationState, type UseGlobalFiltersState, type UsePaginationInstanceProps, type UseSortByInstanceProps, type UseTableInstanceProps } from 'react-table';
23
23
  import { type ElementBase } from '../helpers/types';
24
- declare type Sections = Record<'controls' | 'header' | 'body' | 'navigation', JSX.Element | JSX.Element[]>;
24
+ type Sections = Record<'controls' | 'header' | 'body' | 'navigation', JSX.Element | JSX.Element[]>;
25
25
  /**
26
26
  *
27
27
  * Small Utilities
@@ -34,14 +34,14 @@ export declare const fixedHeight: (items: number, height: number) => {
34
34
  height: string;
35
35
  };
36
36
  };
37
- declare type DefaultHeaderProps<T extends object> = Pick<UseTableInstanceProps<T>, 'headerGroups'> & UseSortByInstanceProps<T>;
38
- declare type DefaultBodyProps<T extends object> = {
37
+ type DefaultHeaderProps<T extends object> = Pick<UseTableInstanceProps<T>, 'headerGroups'> & UseSortByInstanceProps<T>;
38
+ type DefaultBodyProps<T extends object> = {
39
39
  actionsButtons?: (row: Row<T>) => JSX.Element | JSX.Element[];
40
40
  loading: boolean;
41
41
  } & UseTableInstanceProps<T> & Partial<UsePaginationInstanceProps<T>>;
42
42
  export interface PaginationTableState<T extends object> extends UseColumnOrderState<T>, UseExpandedState<T>, UseFiltersState<T>, UsePaginationState<T>, UseGlobalFiltersState<T> {
43
43
  }
44
- export declare type DefaultNavigationProps<T extends object> = {
44
+ export type DefaultNavigationProps<T extends object> = {
45
45
  state: Partial<PaginationTableState<T>>;
46
46
  rows: Row<T>[];
47
47
  } & UsePaginationInstanceProps<T>;
@@ -70,7 +70,7 @@ declare const Table: {
70
70
  } & UseTableInstanceProps<T> & Partial<UsePaginationInstanceProps<T>> & {
71
71
  state: Partial<PaginationTableState<T>>;
72
72
  rows: Row<T>[];
73
- } & UsePaginationInstanceProps<T> & Pick<UseTableInstanceProps<T>, "headerGroups"> & UseSortByInstanceProps<T>> & Omit<ElementBase<HTMLDivElement>, "controls" | "data" | "headers" | "rows">): JSX.Element;
74
- RowActions: (props: ElementBase<HTMLDivElement>) => JSX.Element;
73
+ } & UsePaginationInstanceProps<T> & Pick<UseTableInstanceProps<T>, "headerGroups"> & UseSortByInstanceProps<T>> & Omit<ElementBase<HTMLDivElement>, "controls" | "data" | "headers" | "rows">): import("react/jsx-runtime").JSX.Element;
74
+ RowActions: (props: ElementBase<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
75
75
  };
76
76
  export default Table;
@@ -18,7 +18,6 @@
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
- /// <reference types="react" />
22
21
  interface TableNavigationProps {
23
22
  /** If there is a previous page available */
24
23
  canPreviousPage: boolean;
@@ -35,5 +34,5 @@ interface TableNavigationProps {
35
34
  /** React Table current index */
36
35
  pageIndex: number;
37
36
  }
38
- export declare const TableNavigation: ({ canPreviousPage, canNextPage, onPageClick, previousPage, nextPage, pageIndex, pageOptions, }: TableNavigationProps) => JSX.Element;
37
+ export declare const TableNavigation: ({ canPreviousPage, canNextPage, onPageClick, previousPage, nextPage, pageIndex, pageOptions, }: TableNavigationProps) => import("react/jsx-runtime").JSX.Element;
39
38
  export default TableNavigation;
@@ -29,13 +29,13 @@ import { type TableResizerProps } from 'react-table';
29
29
  */
30
30
  export declare const SortIcon: ({ isSortedDesc, ...props }: {
31
31
  isSortedDesc: boolean | undefined;
32
- }) => JSX.Element;
32
+ }) => import("react/jsx-runtime").JSX.Element;
33
33
  export declare const ResizingBar: import("react").NamedExoticComponent<TableResizerProps>;
34
34
  /**
35
35
  * The left section of the bottom navigation
36
36
  * that is showing the current page and how many results we can see
37
37
  */
38
- export declare const TableResults: ({ pageIndex, pageLength, rowsLength, }: Record<'pageIndex' | 'pageLength' | 'rowsLength', number>) => JSX.Element;
38
+ export declare const TableResults: ({ pageIndex, pageLength, rowsLength, }: Record<'pageIndex' | 'pageLength' | 'rowsLength', number>) => import("react/jsx-runtime").JSX.Element;
39
39
  /**
40
40
  * Modified from here: https://gist.github.com/kottenator/9d936eb3e4e3c3e02598
41
41
  *
@@ -19,9 +19,9 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import { type TableInstance } from 'react-table';
22
- export declare type RowInstance<T extends Record<string, unknown>> = {
22
+ export type RowInstance<T extends Record<string, unknown>> = {
23
23
  onAllRowSelect: onAllRowSelectType;
24
24
  onRowSelect: onRowSelectType<T>;
25
25
  } & TableInstance<T>;
26
- export declare type onAllRowSelectType = () => void;
27
- export declare type onRowSelectType<T extends Record<string, unknown>> = (originalDataRow: T, index: number) => void;
26
+ export type onAllRowSelectType = () => void;
27
+ export type onRowSelectType<T extends Record<string, unknown>> = (originalDataRow: T, index: number) => void;
@@ -20,9 +20,9 @@
20
20
  */
21
21
  import React from 'react';
22
22
  import { type ElementBase } from '../helpers';
23
- declare type TabId = string | number;
24
- declare type Size = 'small' | 'large';
25
- declare type Fill = 'underline' | 'filled';
23
+ type TabId = string | number;
24
+ type Size = 'small' | 'large';
25
+ type Fill = 'underline' | 'filled';
26
26
  export interface BaseTabsProps<T extends TabId> {
27
27
  /**
28
28
  * The currently active tabId
@@ -42,7 +42,7 @@ export interface NonRemovableTagProps extends CommonTagProps {
42
42
  removeable?: false;
43
43
  onRemove?: never;
44
44
  }
45
- export declare type TagProps = RemoveableTagProps | NonRemovableTagProps;
45
+ export type TagProps = RemoveableTagProps | NonRemovableTagProps;
46
46
  /**
47
47
  *
48
48
  *
@@ -18,9 +18,9 @@
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 ReactElement, type ReactNode } from 'react';
21
+ import { type ComponentPropsWithoutRef, type ReactElement, type ReactNode } from 'react';
22
22
  import { type CommonInputProps } from '../_common/input/types';
23
- import { type SmartTooltipProps } from '../tooltip/SmartTooltip';
23
+ import { Tip } from '../tip';
24
24
  export interface TextInputProperties extends Omit<CommonInputProps, 'label'> {
25
25
  /** Label text */
26
26
  label?: ReactNode;
@@ -39,9 +39,9 @@ export interface TextInputProperties extends Omit<CommonInputProps, 'label'> {
39
39
  /** If the component is optional to fill in */
40
40
  isOptional?: boolean;
41
41
  /** Information to be displayed in the information tooltip */
42
- informationIconText?: string;
43
- /** Pass props to the underlying SmartTooltip component */
44
- smartTooltipProps?: SmartTooltipProps;
42
+ informationIconText?: React.ReactNode;
43
+ /** Pass props to the underlying Tip component */
44
+ tooltipProps?: ComponentPropsWithoutRef<typeof Tip>;
45
45
  }
46
46
  /**
47
47
  *
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
22
- import { type SmartTooltipProps } from '../tooltip/SmartTooltip';
22
+ import { Tip } from '../tip';
23
23
  /**
24
24
  *
25
25
  *
@@ -41,9 +41,9 @@ export interface TextareaProps extends Omit<Omit<ComponentPropsWithoutRef<'texta
41
41
  /** If the component is optional to fill in */
42
42
  isOptional?: boolean;
43
43
  /** Information to be displayed in the information tooltip */
44
- informationIconText?: string;
45
- /** Pass props to the underlaying SmartTooltip component */
46
- smartTooltipProps?: SmartTooltipProps;
44
+ informationIconText?: React.ReactNode;
45
+ /** Pass props to the underlying Tip component */
46
+ tooltipProps?: ComponentPropsWithoutRef<typeof Tip>;
47
47
  }
48
48
  /**
49
49
  *
@@ -0,0 +1,166 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import { FloatingPortal } from '@floating-ui/react';
22
+ import { type Side } from '@floating-ui/core/src/types';
23
+ import { type ElementBase } from '../helpers';
24
+ import { Typography } from '../typography';
25
+ import React, { type ComponentProps } from 'react';
26
+ export interface TipProps {
27
+ /** Type of the tip */
28
+ type?: 'tooltip' | 'toggletip';
29
+ /** Allowed places of the tooltip */
30
+ allowedPlacements?: Side[];
31
+ /** Controlled open state */
32
+ isOpen?: boolean;
33
+ /** For controlled open state */
34
+ onOpenChange?: (isOpen: boolean, event?: Event) => void;
35
+ }
36
+ export declare function useTip({ allowedPlacements, isOpen: controlledOpen, onOpenChange: setControlledOpen, type, }?: TipProps): {
37
+ placement: import("@floating-ui/utils").Placement;
38
+ strategy: import("@floating-ui/utils").Strategy;
39
+ middlewareData: import("@floating-ui/react").MiddlewareData;
40
+ x: number;
41
+ y: number;
42
+ isPositioned: boolean;
43
+ update: () => void;
44
+ floatingStyles: React.CSSProperties;
45
+ refs: {
46
+ reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
47
+ floating: React.MutableRefObject<HTMLElement | null>;
48
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
49
+ setFloating: (node: HTMLElement | null) => void;
50
+ } & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
51
+ elements: {
52
+ reference: import("@floating-ui/react-dom").ReferenceType | null;
53
+ floating: HTMLElement | null;
54
+ } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
55
+ context: {
56
+ placement: import("@floating-ui/utils").Placement;
57
+ strategy: import("@floating-ui/utils").Strategy;
58
+ x: number;
59
+ y: number;
60
+ middlewareData: import("@floating-ui/react").MiddlewareData;
61
+ isPositioned: boolean;
62
+ update: () => void;
63
+ floatingStyles: React.CSSProperties;
64
+ open: boolean;
65
+ onOpenChange: (open: boolean, event?: Event | undefined) => void;
66
+ events: import("@floating-ui/react").FloatingEvents;
67
+ dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
68
+ nodeId: string | undefined;
69
+ floatingId: string;
70
+ refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
71
+ elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
72
+ };
73
+ getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
74
+ getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
75
+ getItemProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
76
+ open: boolean;
77
+ setOpen: (isOpen: boolean, event?: Event | undefined) => void;
78
+ type: "tooltip" | "toggletip";
79
+ };
80
+ export declare const useTipContext: () => {
81
+ placement: import("@floating-ui/utils").Placement;
82
+ strategy: import("@floating-ui/utils").Strategy;
83
+ middlewareData: import("@floating-ui/react").MiddlewareData;
84
+ x: number;
85
+ y: number;
86
+ isPositioned: boolean;
87
+ update: () => void;
88
+ floatingStyles: React.CSSProperties;
89
+ refs: {
90
+ reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
91
+ floating: React.MutableRefObject<HTMLElement | null>;
92
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
93
+ setFloating: (node: HTMLElement | null) => void;
94
+ } & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
95
+ elements: {
96
+ reference: import("@floating-ui/react-dom").ReferenceType | null;
97
+ floating: HTMLElement | null;
98
+ } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
99
+ context: {
100
+ placement: import("@floating-ui/utils").Placement;
101
+ strategy: import("@floating-ui/utils").Strategy;
102
+ x: number;
103
+ y: number;
104
+ middlewareData: import("@floating-ui/react").MiddlewareData;
105
+ isPositioned: boolean;
106
+ update: () => void;
107
+ floatingStyles: React.CSSProperties;
108
+ open: boolean;
109
+ onOpenChange: (open: boolean, event?: Event | undefined) => void;
110
+ events: import("@floating-ui/react").FloatingEvents;
111
+ dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
112
+ nodeId: string | undefined;
113
+ floatingId: string;
114
+ refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
115
+ elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
116
+ };
117
+ getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
118
+ getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
119
+ getItemProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
120
+ open: boolean;
121
+ setOpen: (isOpen: boolean, event?: Event) => void;
122
+ type: "tooltip" | "toggletip";
123
+ };
124
+ export declare function Tip({ children, ...options }: {
125
+ children: React.ReactNode;
126
+ } & TipProps): import("react/jsx-runtime").JSX.Element;
127
+ export declare namespace Tip {
128
+ var Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
129
+ var Trigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
130
+ /** Wraps trigger element in an accessible `button` element */
131
+ hasButtonWrapper?: boolean | undefined;
132
+ }, "ref"> & React.RefAttributes<HTMLElement>>;
133
+ var Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement>>;
134
+ var Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLDivElement>>;
135
+ var Actions: React.ForwardRefExoticComponent<ActionsProps & React.RefAttributes<HTMLDivElement>>;
136
+ var Action: (props: ActionProps) => import("react/jsx-runtime").JSX.Element | null;
137
+ }
138
+ /**
139
+ * Wrapping the trigger in a button by default
140
+ * Use `asChild` to pass any element as the trigger
141
+ */
142
+ export declare const Trigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
143
+ /** Wraps trigger element in an accessible `button` element */
144
+ hasButtonWrapper?: boolean | undefined;
145
+ }, "ref"> & React.RefAttributes<HTMLElement>>;
146
+ export interface ContentProps extends Omit<ElementBase<HTMLDivElement>, 'as'> {
147
+ /** Whether to portal the content */
148
+ isPortaled?: boolean;
149
+ /**
150
+ * Props to pass to the portal from @floating-ui/react FloatingPortal
151
+ * @see https://floating-ui.com/docs/floatingportal
152
+ */
153
+ portalProps?: ComponentProps<typeof FloatingPortal>;
154
+ }
155
+ export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
156
+ export interface HeaderProps extends Omit<ElementBase<HTMLDivElement>, 'as'> {
157
+ /** Close button will be visible */
158
+ isCloseable?: boolean;
159
+ }
160
+ export declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement>>;
161
+ export type BodyProps = Omit<ElementBase<HTMLDivElement>, 'as'>;
162
+ export declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLDivElement>>;
163
+ export type ActionsProps = Omit<ElementBase<HTMLDivElement>, 'as'>;
164
+ export declare const Actions: React.ForwardRefExoticComponent<ActionsProps & React.RefAttributes<HTMLDivElement>>;
165
+ export type ActionProps = Omit<ComponentProps<typeof Typography>, 'variant'>;
166
+ export declare const Action: (props: ActionProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
- declare type ArrowPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right';
22
+ type ArrowPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right';
23
23
  export interface TooltipProps extends React.HTMLProps<HTMLDivElement> {
24
24
  arrowPosition: ArrowPosition;
25
25
  children: React.ReactNode | string;
@@ -19,5 +19,4 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  export { default as Tooltip } from './Tooltip';
22
- export { default as SmartTooltip } from './SmartTooltip';
23
- export { default as Tip } from './Tip';
22
+ export * from './Tip';
@@ -18,9 +18,8 @@
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
- /// <reference types="react" />
22
21
  import { type AsType, type ConditionalTypography } from './types';
23
22
  export declare const Typography: <TVar extends "label" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subheading-large" | "subheading-medium" | "subheading-small" | "body-large" | "body-medium" | "body-small", TAs extends AsType = undefined>(props: {
24
23
  as?: TAs | undefined;
25
24
  variant: TVar;
26
- } & ConditionalTypography<TAs, TVar>) => JSX.Element;
25
+ } & ConditionalTypography<TAs, TVar>) => import("react/jsx-runtime").JSX.Element;
@@ -20,15 +20,15 @@
20
20
  */
21
21
  /// <reference types="react" />
22
22
  import { type tokens } from '@neo4j-ndl/base';
23
- export declare type TypographyVariants = keyof typeof tokens.font.size;
23
+ export type TypographyVariants = keyof typeof tokens.font.size;
24
24
  export declare const TypographyDefaultMapping: {
25
25
  [key in TypographyVariants]: React.ElementType;
26
26
  };
27
- declare type Tags = keyof HTMLElementTagNameMap;
28
- declare type VariantsDefaultType<T extends TypographyVariants> = Omit<React.ComponentPropsWithoutRef<(typeof TypographyDefaultMapping)[T]>, 'as'> & {
27
+ type Tags = keyof HTMLElementTagNameMap;
28
+ type VariantsDefaultType<T extends TypographyVariants> = Omit<React.ComponentPropsWithoutRef<(typeof TypographyDefaultMapping)[T]>, 'as'> & {
29
29
  variant: TypographyVariants;
30
30
  };
31
- export declare type ReactComponent = (args: any) => JSX.Element;
32
- export declare type AsType = undefined | Tags | React.FunctionComponent<any>;
33
- export declare type ConditionalTypography<T extends AsType, V extends TypographyVariants> = T extends undefined ? VariantsDefaultType<V> : T extends Tags ? React.ComponentPropsWithoutRef<T> : T extends ReactComponent ? React.ComponentProps<T> : never;
31
+ export type ReactComponent = (args: any) => JSX.Element;
32
+ export type AsType = undefined | Tags | React.FunctionComponent<any>;
33
+ export type ConditionalTypography<T extends AsType, V extends TypographyVariants> = T extends undefined ? VariantsDefaultType<V> : T extends Tags ? React.ComponentPropsWithoutRef<T> : T extends ReactComponent ? React.ComponentProps<T> : never;
34
34
  export {};
@@ -27,7 +27,7 @@ import { type ElementBase } from '../helpers';
27
27
  *
28
28
  *
29
29
  */
30
- declare type ViewSelectorID = string | number;
30
+ type ViewSelectorID = string | number;
31
31
  export interface ViewSelectorProps<T extends ViewSelectorID> extends ElementBase {
32
32
  /** Size of the selector */
33
33
  size?: 'small' | 'large';
@@ -26,7 +26,7 @@ import React from 'react';
26
26
  *
27
27
  *
28
28
  */
29
- declare type CommonProps = {
29
+ type CommonProps = {
30
30
  header: React.ReactNode;
31
31
  subheader?: React.ReactNode;
32
32
  leftMenu?: React.ReactNode;
@@ -20,12 +20,12 @@
20
20
  */
21
21
  /// <reference types="react" />
22
22
  import { type ElementBase } from '../helpers';
23
- export declare const Horizontal: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => JSX.Element;
24
- export declare const Vertical: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => JSX.Element;
25
- export declare const Footer: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => JSX.Element;
23
+ export declare const Horizontal: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const Vertical: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const Footer: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => import("react/jsx-runtime").JSX.Element;
26
26
  export interface WizardProps extends ElementBase<HTMLDivElement> {
27
27
  type?: 'horizontal' | 'vertical' | 'footer';
28
28
  activeStep: number;
29
29
  steps: (string | JSX.Element)[];
30
30
  }
31
- export declare const Wizard: ({ type, activeStep, steps, ...props }: WizardProps) => JSX.Element;
31
+ export declare const Wizard: ({ type, activeStep, steps, ...props }: WizardProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "1.10.7",
3
+ "version": "2.0.0-alpha-e609471",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -11,7 +11,7 @@
11
11
  "ndl"
12
12
  ],
13
13
  "author": "Neo4j Inc.",
14
- "homepage": "",
14
+ "homepage": "https://www.neo4j.design",
15
15
  "license": "GPL-3.0",
16
16
  "main": "./lib/cjs/index.js",
17
17
  "module": "./lib/esm/index.js",
@@ -42,10 +42,12 @@
42
42
  "scripts": {
43
43
  "generate-component": "node ./scripts/component-generator.js",
44
44
  "pretest": "yarn run lint",
45
- "test": "jest",
45
+ "test": "vitest run",
46
46
  "build": "yarn build:esm && yarn build:cjs && yarn build:types",
47
47
  "build:esm": "tsc -p tsconfig.esm.json",
48
48
  "build:cjs": "tsc -p tsconfig.cjs.json",
49
+ "watch:esm": "tsc -p tsconfig.esm.json --watch",
50
+ "watch:cjs": "tsc -p tsconfig.cjs.json --watch",
49
51
  "build:types": "tsc -p tsconfig.types.json",
50
52
  "format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'",
51
53
  "lint": "eslint --ext .jsx,.tsx,.js,.ts src",
@@ -54,22 +56,19 @@
54
56
  "generate:hero-icons": "ts-node ./scripts/generatedHeroIcons.ts"
55
57
  },
56
58
  "devDependencies": {
57
- "@babel/preset-env": "^7.16.4",
58
- "@babel/preset-react": "^7.16.0",
59
59
  "@svgr/cli": "6.5.1",
60
- "@testing-library/jest-dom": "^5.15.1",
61
- "@testing-library/react": "^12.1.2",
62
- "@testing-library/user-event": "^14.4.3",
60
+ "@testing-library/jest-dom": "5.17.0",
61
+ "@testing-library/react": "14.0.0",
62
+ "@testing-library/user-event": "14.4.3",
63
63
  "@types/jest-axe": "^3.5.3",
64
- "@types/react": "17.0.62",
64
+ "@types/react": "18.2.18",
65
65
  "@types/react-datepicker": "^4.11.2",
66
- "@types/react-dom": "17.0.18",
66
+ "@types/react-dom": "18.2.7",
67
67
  "@types/react-syntax-highlighter": "^15.5.5",
68
68
  "@types/react-table": "^7.7.10",
69
69
  "@types/tinycolor2": "^1.4.3",
70
70
  "@typescript-eslint/eslint-plugin": "^5.5.0",
71
71
  "@typescript-eslint/parser": "^5.5.0",
72
- "babel-jest": "^27.3.1",
73
72
  "eslint": "^8.3.0",
74
73
  "eslint-config-prettier": "^8.3.0",
75
74
  "eslint-plugin-import": "2.28.1",
@@ -77,24 +76,24 @@
77
76
  "eslint-plugin-prettier": "^4.0.0",
78
77
  "eslint-plugin-react": "^7.27.1",
79
78
  "eslint-plugin-react-hooks": "^4.3.0",
80
- "jest": "^27.3.1",
81
79
  "jest-axe": "^5.0.1",
82
- "react": "^17.0.2",
80
+ "jsdom": "22.1.0",
81
+ "react": "18.2.0",
83
82
  "react-select-event": "^5.5.0",
84
83
  "resize-observer-polyfill": "^1.5.1",
85
- "ts-jest": "^27.0.7",
86
84
  "ts-node": "^10.9.1",
87
- "typescript": "4.8.4"
85
+ "typescript": "5.1.6",
86
+ "vitest": "0.34.1"
88
87
  },
89
88
  "peerDependencies": {
90
89
  "@heroicons/react": "2.0.13",
91
90
  "react": ">=16.8.0"
92
91
  },
93
92
  "dependencies": {
94
- "@floating-ui/react": "^0.24.2",
93
+ "@floating-ui/react": "0.25.1",
95
94
  "@heroicons/react": "2.0.13",
96
95
  "@neo4j-cypher/react-codemirror": "^1.0.1",
97
- "@neo4j-ndl/base": "^1.10.3",
96
+ "@neo4j-ndl/base": "2.0.0-alpha-e609471",
98
97
  "@tanstack/react-table": "^8.9.3",
99
98
  "classnames": "^2.3.1",
100
99
  "date-fns": "^2.30.0",
@@ -111,7 +110,7 @@
111
110
  "tinycolor2": "^1.4.2"
112
111
  },
113
112
  "resolutions": {
114
- "@types/react": "17.0.62",
115
- "@types/react-dom": "17.0.18"
113
+ "@types/react": "18.2.18",
114
+ "@types/react-dom": "18.2.7"
116
115
  }
117
- }
116
+ }