@neo4j-ndl/react 2.16.26 → 3.0.0-alpha-4904fb7

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 (450) hide show
  1. package/lib/cjs/_common/CodeBlockWrapper.js +10 -8
  2. package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
  3. package/lib/cjs/_common/ConditionalWrap.js +1 -1
  4. package/lib/cjs/_common/ConditionalWrap.js.map +1 -1
  5. package/lib/cjs/_common/coditionalWrap.js +1 -1
  6. package/lib/cjs/_common/coditionalWrap.js.map +1 -1
  7. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +6 -20
  8. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  9. package/lib/cjs/_common/messages.js +1 -2
  10. package/lib/cjs/_common/messages.js.map +1 -1
  11. package/lib/cjs/{helpers → _common}/types.js +1 -2
  12. package/lib/cjs/_common/types.js.map +1 -0
  13. package/lib/cjs/accordion/Accordion.js +24 -24
  14. package/lib/cjs/accordion/Accordion.js.map +1 -1
  15. package/lib/cjs/avatar/Avatar.js +7 -17
  16. package/lib/cjs/avatar/Avatar.js.map +1 -1
  17. package/lib/cjs/banner/Banner.js +30 -25
  18. package/lib/cjs/banner/Banner.js.map +1 -1
  19. package/lib/cjs/breadcrumbs/Breadcrumbs.js +60 -90
  20. package/lib/cjs/breadcrumbs/Breadcrumbs.js.map +1 -1
  21. package/lib/cjs/button/Button.js +17 -33
  22. package/lib/cjs/button/Button.js.map +1 -1
  23. package/lib/cjs/button/IconButton.js +13 -21
  24. package/lib/cjs/button/IconButton.js.map +1 -1
  25. package/lib/cjs/button/IconButtonArray.js +43 -22
  26. package/lib/cjs/button/IconButtonArray.js.map +1 -1
  27. package/lib/cjs/callout/Callout.js +2 -14
  28. package/lib/cjs/callout/Callout.js.map +1 -1
  29. package/lib/cjs/charts/Axis.js +216 -0
  30. package/lib/cjs/charts/Axis.js.map +1 -0
  31. package/lib/cjs/charts/CartesianGrid.js +73 -0
  32. package/lib/cjs/charts/CartesianGrid.js.map +1 -0
  33. package/lib/cjs/charts/Chart.js +538 -0
  34. package/lib/cjs/charts/Chart.js.map +1 -0
  35. package/lib/cjs/charts/ChartTooltip.js +56 -0
  36. package/lib/cjs/charts/ChartTooltip.js.map +1 -0
  37. package/lib/cjs/charts/Charts.js +99 -0
  38. package/lib/cjs/charts/Charts.js.map +1 -0
  39. package/lib/cjs/charts/Dot.js +31 -0
  40. package/lib/cjs/charts/Dot.js.map +1 -0
  41. package/lib/cjs/charts/Legend.js +180 -0
  42. package/lib/cjs/charts/Legend.js.map +1 -0
  43. package/lib/cjs/charts/Line.js +101 -0
  44. package/lib/cjs/charts/Line.js.map +1 -0
  45. package/lib/cjs/{code-block → charts}/index.js +1 -1
  46. package/lib/cjs/charts/index.js.map +1 -0
  47. package/lib/cjs/{table/TableContext.js → charts/utils.js} +18 -14
  48. package/lib/cjs/charts/utils.js.map +1 -0
  49. package/lib/cjs/checkbox/Checkbox.js +2 -14
  50. package/lib/cjs/checkbox/Checkbox.js.map +1 -1
  51. package/lib/cjs/clipboard-copier/ClipboardButton.js +16 -20
  52. package/lib/cjs/clipboard-copier/ClipboardButton.js.map +1 -1
  53. package/lib/cjs/code/Code.js +179 -0
  54. package/lib/cjs/code/Code.js.map +1 -0
  55. package/lib/cjs/{cypher-code-block → code}/index.js +1 -1
  56. package/lib/cjs/code/index.js.map +1 -0
  57. package/lib/cjs/code/languages.js +49 -0
  58. package/lib/cjs/code/languages.js.map +1 -0
  59. package/lib/cjs/context-menu/ContextMenu.js +202 -319
  60. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  61. package/lib/cjs/data-grid/Components.js +73 -44
  62. package/lib/cjs/data-grid/Components.js.map +1 -1
  63. package/lib/cjs/data-grid/DataGrid.js +6 -6
  64. package/lib/cjs/data-grid/DataGrid.js.map +1 -1
  65. package/lib/cjs/data-grid/illustrations/NoData.js +27 -0
  66. package/lib/cjs/data-grid/illustrations/NoData.js.map +1 -0
  67. package/lib/cjs/date-picker/DatePicker.js +33 -10
  68. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  69. package/lib/cjs/dialog/Dialog.js +21 -35
  70. package/lib/cjs/dialog/Dialog.js.map +1 -1
  71. package/lib/cjs/divider/Divider.js +2 -14
  72. package/lib/cjs/divider/Divider.js.map +1 -1
  73. package/lib/cjs/drawer/Drawer.js +10 -8
  74. package/lib/cjs/drawer/Drawer.js.map +1 -1
  75. package/lib/cjs/dropdown/Dropdown.js +18 -34
  76. package/lib/cjs/dropdown/Dropdown.js.map +1 -1
  77. package/lib/cjs/dropdown/Overrides.js +6 -2
  78. package/lib/cjs/dropdown/Overrides.js.map +1 -1
  79. package/lib/cjs/dropdown-button/DropdownButton.js +2 -21
  80. package/lib/cjs/dropdown-button/DropdownButton.js.map +1 -1
  81. package/lib/{types/context-menu/SafeArea.d.ts → cjs/dropdown-button/avatar-test.stories.tsx.js} +10 -18
  82. package/lib/cjs/dropdown-button/avatar-test.stories.tsx.js.map +1 -0
  83. package/lib/cjs/dropzone/Dropzone.js +4 -15
  84. package/lib/cjs/dropzone/Dropzone.js.map +1 -1
  85. package/lib/cjs/graph-label/GraphLabel.js +33 -34
  86. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  87. package/lib/cjs/helpers/index.js +0 -1
  88. package/lib/cjs/helpers/index.js.map +1 -1
  89. package/lib/cjs/hooks/index.js +5 -3
  90. package/lib/cjs/hooks/index.js.map +1 -1
  91. package/lib/cjs/icons/generated/heroIcons.js +917 -596
  92. package/lib/cjs/icons/generated/heroIcons.js.map +1 -1
  93. package/lib/cjs/index.js +3 -5
  94. package/lib/cjs/index.js.map +1 -1
  95. package/lib/cjs/inline-edit/InlineEdit.js +12 -7
  96. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  97. package/lib/cjs/label/Label.js +4 -16
  98. package/lib/cjs/label/Label.js.map +1 -1
  99. package/lib/cjs/layout/Box.js +4 -16
  100. package/lib/cjs/layout/Box.js.map +1 -1
  101. package/lib/cjs/layout/Flex.js +4 -16
  102. package/lib/cjs/layout/Flex.js.map +1 -1
  103. package/lib/cjs/loading-spinner/LoadingSpinner.js +2 -13
  104. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  105. package/lib/cjs/modal/Modal.js +2 -2
  106. package/lib/cjs/modal/Modal.js.map +1 -1
  107. package/lib/cjs/popover/Popover.js +89 -207
  108. package/lib/cjs/popover/Popover.js.map +1 -1
  109. package/lib/cjs/popover/use-popover.js +86 -0
  110. package/lib/cjs/popover/use-popover.js.map +1 -0
  111. package/lib/cjs/progress-bar/ProgressBar.js +2 -14
  112. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
  113. package/lib/cjs/radio/Radio.js +2 -1
  114. package/lib/cjs/radio/Radio.js.map +1 -1
  115. package/lib/cjs/segmented-control/SegmentedControl.js +6 -19
  116. package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
  117. package/lib/cjs/side-navigation/SideNavigation.js +52 -59
  118. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  119. package/lib/cjs/slider/Slider.js +5 -6
  120. package/lib/cjs/slider/Slider.js.map +1 -1
  121. package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
  122. package/lib/cjs/switch/Switch.js +13 -1
  123. package/lib/cjs/switch/Switch.js.map +1 -1
  124. package/lib/cjs/tabs/Tabs.js +11 -27
  125. package/lib/cjs/tabs/Tabs.js.map +1 -1
  126. package/lib/cjs/tag/Tag.js +5 -18
  127. package/lib/cjs/tag/Tag.js.map +1 -1
  128. package/lib/cjs/text-input/TextInput.js +14 -24
  129. package/lib/cjs/text-input/TextInput.js.map +1 -1
  130. package/lib/cjs/text-link/TextLink.js +4 -17
  131. package/lib/cjs/text-link/TextLink.js.map +1 -1
  132. package/lib/cjs/textarea/Textarea.js +6 -20
  133. package/lib/cjs/textarea/Textarea.js.map +1 -1
  134. package/lib/cjs/toast/Toast.js +2 -3
  135. package/lib/cjs/toast/Toast.js.map +1 -1
  136. package/lib/cjs/tooltip/Tooltip.js +125 -0
  137. package/lib/cjs/tooltip/Tooltip.js.map +1 -0
  138. package/lib/cjs/{tip → tooltip}/index.js +15 -16
  139. package/lib/cjs/tooltip/index.js.map +1 -0
  140. package/lib/cjs/tooltip/use-tooltip.js +78 -0
  141. package/lib/cjs/tooltip/use-tooltip.js.map +1 -0
  142. package/lib/cjs/tree-view/TreeView.js +4 -16
  143. package/lib/cjs/tree-view/TreeView.js.map +1 -1
  144. package/lib/cjs/tree-view/TreeViewTextItem.js +11 -7
  145. package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -1
  146. package/lib/cjs/typography/Typography.js +4 -4
  147. package/lib/cjs/typography/Typography.js.map +1 -1
  148. package/lib/cjs/widget/Widget.js +3 -15
  149. package/lib/cjs/widget/Widget.js.map +1 -1
  150. package/lib/cjs/wizard/Wizard.js +106 -80
  151. package/lib/cjs/wizard/Wizard.js.map +1 -1
  152. package/lib/esm/_common/CodeBlockWrapper.js +10 -8
  153. package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
  154. package/lib/esm/_common/ConditionalWrap.js +1 -1
  155. package/lib/esm/_common/ConditionalWrap.js.map +1 -1
  156. package/lib/esm/_common/coditionalWrap.js +1 -1
  157. package/lib/esm/_common/coditionalWrap.js.map +1 -1
  158. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +7 -21
  159. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  160. package/lib/esm/_common/messages.js +0 -1
  161. package/lib/esm/_common/messages.js.map +1 -1
  162. package/lib/esm/{helpers → _common}/types.js +0 -1
  163. package/lib/esm/_common/types.js.map +1 -0
  164. package/lib/esm/accordion/Accordion.js +25 -25
  165. package/lib/esm/accordion/Accordion.js.map +1 -1
  166. package/lib/esm/avatar/Avatar.js +7 -17
  167. package/lib/esm/avatar/Avatar.js.map +1 -1
  168. package/lib/esm/banner/Banner.js +30 -25
  169. package/lib/esm/banner/Banner.js.map +1 -1
  170. package/lib/esm/breadcrumbs/Breadcrumbs.js +39 -92
  171. package/lib/esm/breadcrumbs/Breadcrumbs.js.map +1 -1
  172. package/lib/esm/button/Button.js +11 -27
  173. package/lib/esm/button/Button.js.map +1 -1
  174. package/lib/esm/button/IconButton.js +13 -21
  175. package/lib/esm/button/IconButton.js.map +1 -1
  176. package/lib/esm/button/IconButtonArray.js +43 -22
  177. package/lib/esm/button/IconButtonArray.js.map +1 -1
  178. package/lib/esm/callout/Callout.js +2 -14
  179. package/lib/esm/callout/Callout.js.map +1 -1
  180. package/lib/esm/charts/Axis.js +187 -0
  181. package/lib/esm/charts/Axis.js.map +1 -0
  182. package/lib/esm/charts/CartesianGrid.js +66 -0
  183. package/lib/esm/charts/CartesianGrid.js.map +1 -0
  184. package/lib/esm/charts/Chart.js +517 -0
  185. package/lib/esm/charts/Chart.js.map +1 -0
  186. package/lib/esm/charts/ChartTooltip.js +50 -0
  187. package/lib/esm/charts/ChartTooltip.js.map +1 -0
  188. package/lib/esm/charts/Charts.js +96 -0
  189. package/lib/esm/charts/Charts.js.map +1 -0
  190. package/lib/esm/charts/Dot.js +28 -0
  191. package/lib/esm/charts/Dot.js.map +1 -0
  192. package/lib/esm/charts/Legend.js +174 -0
  193. package/lib/esm/charts/Legend.js.map +1 -0
  194. package/lib/esm/charts/Line.js +75 -0
  195. package/lib/esm/charts/Line.js.map +1 -0
  196. package/lib/esm/charts/index.js +22 -0
  197. package/lib/esm/charts/index.js.map +1 -0
  198. package/lib/esm/{table/TableContext.js → charts/utils.js} +16 -11
  199. package/lib/esm/charts/utils.js.map +1 -0
  200. package/lib/esm/checkbox/Checkbox.js +2 -14
  201. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  202. package/lib/esm/clipboard-copier/ClipboardButton.js +16 -20
  203. package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
  204. package/lib/esm/code/Code.js +150 -0
  205. package/lib/esm/code/Code.js.map +1 -0
  206. package/lib/{types/text-input-preview/index.d.ts → esm/code/index.js} +2 -1
  207. package/lib/esm/code/index.js.map +1 -0
  208. package/lib/esm/code/languages.js +46 -0
  209. package/lib/esm/code/languages.js.map +1 -0
  210. package/lib/esm/context-menu/ContextMenu.js +198 -295
  211. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  212. package/lib/esm/data-grid/Components.js +69 -43
  213. package/lib/esm/data-grid/Components.js.map +1 -1
  214. package/lib/esm/data-grid/DataGrid.js +6 -6
  215. package/lib/esm/data-grid/DataGrid.js.map +1 -1
  216. package/lib/esm/data-grid/illustrations/NoData.js +25 -0
  217. package/lib/esm/data-grid/illustrations/NoData.js.map +1 -0
  218. package/lib/esm/date-picker/DatePicker.js +33 -10
  219. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  220. package/lib/esm/dialog/Dialog.js +21 -35
  221. package/lib/esm/dialog/Dialog.js.map +1 -1
  222. package/lib/esm/divider/Divider.js +2 -14
  223. package/lib/esm/divider/Divider.js.map +1 -1
  224. package/lib/esm/drawer/Drawer.js +11 -9
  225. package/lib/esm/drawer/Drawer.js.map +1 -1
  226. package/lib/esm/dropdown/Dropdown.js +18 -34
  227. package/lib/esm/dropdown/Dropdown.js.map +1 -1
  228. package/lib/esm/dropdown/Overrides.js +6 -2
  229. package/lib/esm/dropdown/Overrides.js.map +1 -1
  230. package/lib/esm/dropdown-button/DropdownButton.js +2 -21
  231. package/lib/esm/dropdown-button/DropdownButton.js.map +1 -1
  232. package/lib/esm/dropdown-button/avatar-test.stories.tsx.js +27 -0
  233. package/lib/esm/dropdown-button/avatar-test.stories.tsx.js.map +1 -0
  234. package/lib/esm/dropzone/Dropzone.js +4 -15
  235. package/lib/esm/dropzone/Dropzone.js.map +1 -1
  236. package/lib/esm/graph-label/GraphLabel.js +33 -34
  237. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  238. package/lib/esm/helpers/index.js +0 -1
  239. package/lib/esm/helpers/index.js.map +1 -1
  240. package/lib/esm/hooks/index.js +1 -1
  241. package/lib/esm/hooks/index.js.map +1 -1
  242. package/lib/esm/icons/generated/heroIcons.js +904 -584
  243. package/lib/esm/icons/generated/heroIcons.js.map +1 -1
  244. package/lib/esm/index.js +3 -5
  245. package/lib/esm/index.js.map +1 -1
  246. package/lib/esm/inline-edit/InlineEdit.js +12 -7
  247. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  248. package/lib/esm/label/Label.js +4 -16
  249. package/lib/esm/label/Label.js.map +1 -1
  250. package/lib/esm/layout/Box.js +6 -18
  251. package/lib/esm/layout/Box.js.map +1 -1
  252. package/lib/esm/layout/Flex.js +5 -17
  253. package/lib/esm/layout/Flex.js.map +1 -1
  254. package/lib/esm/loading-spinner/LoadingSpinner.js +2 -13
  255. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  256. package/lib/esm/modal/Modal.js +2 -2
  257. package/lib/esm/modal/Modal.js.map +1 -1
  258. package/lib/esm/popover/Popover.js +64 -204
  259. package/lib/esm/popover/Popover.js.map +1 -1
  260. package/lib/esm/popover/use-popover.js +83 -0
  261. package/lib/esm/popover/use-popover.js.map +1 -0
  262. package/lib/esm/progress-bar/ProgressBar.js +2 -14
  263. package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
  264. package/lib/esm/radio/Radio.js +2 -1
  265. package/lib/esm/radio/Radio.js.map +1 -1
  266. package/lib/esm/segmented-control/SegmentedControl.js +7 -20
  267. package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
  268. package/lib/esm/side-navigation/SideNavigation.js +52 -59
  269. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  270. package/lib/esm/slider/Slider.js +5 -6
  271. package/lib/esm/slider/Slider.js.map +1 -1
  272. package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
  273. package/lib/esm/switch/Switch.js +13 -1
  274. package/lib/esm/switch/Switch.js.map +1 -1
  275. package/lib/esm/tabs/Tabs.js +12 -28
  276. package/lib/esm/tabs/Tabs.js.map +1 -1
  277. package/lib/esm/tag/Tag.js +5 -18
  278. package/lib/esm/tag/Tag.js.map +1 -1
  279. package/lib/esm/text-input/TextInput.js +14 -24
  280. package/lib/esm/text-input/TextInput.js.map +1 -1
  281. package/lib/esm/text-link/TextLink.js +4 -17
  282. package/lib/esm/text-link/TextLink.js.map +1 -1
  283. package/lib/esm/textarea/Textarea.js +6 -20
  284. package/lib/esm/textarea/Textarea.js.map +1 -1
  285. package/lib/esm/toast/Toast.js +2 -3
  286. package/lib/esm/toast/Toast.js.map +1 -1
  287. package/lib/esm/tooltip/Tooltip.js +119 -0
  288. package/lib/esm/tooltip/Tooltip.js.map +1 -0
  289. package/lib/esm/{tip → tooltip}/index.js +0 -1
  290. package/lib/esm/tooltip/index.js.map +1 -0
  291. package/lib/esm/tooltip/use-tooltip.js +73 -0
  292. package/lib/esm/tooltip/use-tooltip.js.map +1 -0
  293. package/lib/esm/tree-view/TreeView.js +4 -16
  294. package/lib/esm/tree-view/TreeView.js.map +1 -1
  295. package/lib/esm/tree-view/TreeViewTextItem.js +11 -7
  296. package/lib/esm/tree-view/TreeViewTextItem.js.map +1 -1
  297. package/lib/esm/typography/Typography.js +5 -5
  298. package/lib/esm/typography/Typography.js.map +1 -1
  299. package/lib/esm/widget/Widget.js +3 -15
  300. package/lib/esm/widget/Widget.js.map +1 -1
  301. package/lib/esm/wizard/Wizard.js +83 -76
  302. package/lib/esm/wizard/Wizard.js.map +1 -1
  303. package/lib/types/_common/CodeBlockWrapper.d.ts +10 -6
  304. package/lib/types/_common/ConditionalWrap.d.ts +2 -2
  305. package/lib/types/_common/coditionalWrap.d.ts +2 -2
  306. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +15 -4
  307. package/lib/types/_common/input/types.d.ts +7 -9
  308. package/lib/types/_common/messages.d.ts +0 -1
  309. package/lib/types/_common/types.d.ts +40 -0
  310. package/lib/types/accordion/Accordion.d.ts +15 -9
  311. package/lib/types/avatar/Avatar.d.ts +14 -7
  312. package/lib/types/banner/Banner.d.ts +39 -19
  313. package/lib/types/breadcrumbs/Breadcrumbs.d.ts +18 -21
  314. package/lib/types/button/Button.d.ts +35 -13
  315. package/lib/types/button/IconButton.d.ts +31 -12
  316. package/lib/types/button/IconButtonArray.d.ts +20 -15
  317. package/lib/types/callout/Callout.d.ts +6 -3
  318. package/lib/types/charts/Axis.d.ts +37 -0
  319. package/lib/types/{tip/Tooltip.d.ts → charts/CartesianGrid.d.ts} +7 -6
  320. package/lib/types/charts/Chart.d.ts +105 -0
  321. package/lib/types/charts/ChartTooltip.d.ts +59 -0
  322. package/lib/types/charts/Charts.d.ts +94 -0
  323. package/lib/types/charts/Dot.d.ts +27 -0
  324. package/lib/types/charts/Legend.d.ts +25 -0
  325. package/lib/types/charts/Line.d.ts +43 -0
  326. package/lib/types/{code-block → charts}/index.d.ts +1 -1
  327. package/lib/{esm/cypher-code-block/index.js → types/charts/utils.d.ts} +3 -2
  328. package/lib/types/clipboard-copier/ClipboardButton.d.ts +6 -4
  329. package/lib/types/{code-block/CodeBlock.d.ts → code/Code.d.ts} +29 -7
  330. package/lib/types/{cypher-code-block → code}/index.d.ts +1 -1
  331. package/lib/types/code/languages.d.ts +22 -0
  332. package/lib/types/context-menu/ContextMenu.d.ts +43 -66
  333. package/lib/types/data-grid/Components.d.ts +12 -5
  334. package/lib/types/data-grid/DataGrid.d.ts +8 -5
  335. package/lib/types/data-grid/DataGridContext.d.ts +3 -3
  336. package/lib/types/data-grid/datagrid-types.d.ts +3 -3
  337. package/lib/types/data-grid/illustrations/NoData.d.ts +23 -0
  338. package/lib/types/date-picker/DatePicker.d.ts +6 -6
  339. package/lib/types/dialog/Dialog.d.ts +14 -10
  340. package/lib/types/divider/Divider.d.ts +6 -3
  341. package/lib/types/drawer/Drawer.d.ts +11 -8
  342. package/lib/types/dropdown/Dropdown.d.ts +4 -1
  343. package/lib/types/dropdown/Overrides.d.ts +1 -1
  344. package/lib/types/dropdown/types.d.ts +5 -6
  345. package/lib/types/dropdown-button/DropdownButton.d.ts +7 -2
  346. package/lib/{esm/code-block/index.js → types/dropdown-button/avatar-test.stories.tsx.d.ts} +3 -2
  347. package/lib/types/dropzone/Dropzone.d.ts +8 -2
  348. package/lib/types/graph-label/GraphLabel.d.ts +18 -7
  349. package/lib/types/helpers/index.d.ts +0 -1
  350. package/lib/types/hooks/index.d.ts +1 -1
  351. package/lib/types/icons/generated/heroIcons.d.ts +256 -0
  352. package/lib/types/index.d.ts +3 -5
  353. package/lib/types/inline-edit/InlineEdit.d.ts +5 -2
  354. package/lib/types/label/Label.d.ts +4 -3
  355. package/lib/types/layout/Box.d.ts +6 -10
  356. package/lib/types/layout/Flex.d.ts +6 -11
  357. package/lib/types/loading-spinner/LoadingSpinner.d.ts +2 -0
  358. package/lib/types/modal/Modal.d.ts +6 -4
  359. package/lib/types/popover/Popover.d.ts +37 -66
  360. package/lib/types/popover/index.d.ts +4 -0
  361. package/lib/types/popover/use-popover.d.ts +44 -0
  362. package/lib/types/portal/Portal.d.ts +1 -1
  363. package/lib/types/progress-bar/ProgressBar.d.ts +5 -2
  364. package/lib/types/segmented-control/SegmentedControl.d.ts +11 -5
  365. package/lib/types/side-navigation/SideNavigation.d.ts +35 -19
  366. package/lib/types/slider/Slider.d.ts +7 -4
  367. package/lib/types/status-indicator/StatusIndicator.d.ts +4 -2
  368. package/lib/types/tabs/Tabs.d.ts +10 -19
  369. package/lib/types/tag/Tag.d.ts +9 -7
  370. package/lib/types/text-input/TextInput.d.ts +18 -10
  371. package/lib/types/text-link/TextLink.d.ts +8 -6
  372. package/lib/types/textarea/Textarea.d.ts +11 -4
  373. package/lib/types/toast/Toast.d.ts +3 -0
  374. package/lib/types/tooltip/Tooltip.d.ts +80 -0
  375. package/lib/types/{tip → tooltip}/index.d.ts +0 -1
  376. package/lib/types/tooltip/use-tooltip.d.ts +38 -0
  377. package/lib/types/tree-view/TreeView.d.ts +7 -3
  378. package/lib/types/tree-view/tree-view-types.d.ts +2 -2
  379. package/lib/types/typography/Typography.d.ts +16 -5
  380. package/lib/types/widget/Widget.d.ts +3 -0
  381. package/lib/types/wizard/Wizard.d.ts +18 -10
  382. package/package.json +38 -36
  383. package/lib/cjs/code-block/CodeBlock.js +0 -105
  384. package/lib/cjs/code-block/CodeBlock.js.map +0 -1
  385. package/lib/cjs/code-block/index.js.map +0 -1
  386. package/lib/cjs/code-block/languages.js +0 -303
  387. package/lib/cjs/code-block/languages.js.map +0 -1
  388. package/lib/cjs/context-menu/SafeArea.js +0 -84
  389. package/lib/cjs/context-menu/SafeArea.js.map +0 -1
  390. package/lib/cjs/cypher-code-block/CypherCodeBlock.js +0 -74
  391. package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +0 -1
  392. package/lib/cjs/cypher-code-block/index.js.map +0 -1
  393. package/lib/cjs/helpers/types.js.map +0 -1
  394. package/lib/cjs/table/Components.js +0 -264
  395. package/lib/cjs/table/Components.js.map +0 -1
  396. package/lib/cjs/table/Table.js +0 -100
  397. package/lib/cjs/table/Table.js.map +0 -1
  398. package/lib/cjs/table/TableContext.js.map +0 -1
  399. package/lib/cjs/table/helpers.js +0 -86
  400. package/lib/cjs/table/helpers.js.map +0 -1
  401. package/lib/cjs/table/index.js +0 -55
  402. package/lib/cjs/table/index.js.map +0 -1
  403. package/lib/cjs/text-input-preview/TextInputPreview.js +0 -75
  404. package/lib/cjs/text-input-preview/TextInputPreview.js.map +0 -1
  405. package/lib/cjs/text-input-preview/index.js +0 -38
  406. package/lib/cjs/text-input-preview/index.js.map +0 -1
  407. package/lib/cjs/tip/Tip.js +0 -196
  408. package/lib/cjs/tip/Tip.js.map +0 -1
  409. package/lib/cjs/tip/Tooltip.js +0 -56
  410. package/lib/cjs/tip/Tooltip.js.map +0 -1
  411. package/lib/cjs/tip/index.js.map +0 -1
  412. package/lib/esm/code-block/CodeBlock.js +0 -79
  413. package/lib/esm/code-block/CodeBlock.js.map +0 -1
  414. package/lib/esm/code-block/index.js.map +0 -1
  415. package/lib/esm/code-block/languages.js +0 -302
  416. package/lib/esm/code-block/languages.js.map +0 -1
  417. package/lib/esm/context-menu/SafeArea.js +0 -81
  418. package/lib/esm/context-menu/SafeArea.js.map +0 -1
  419. package/lib/esm/cypher-code-block/CypherCodeBlock.js +0 -48
  420. package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +0 -1
  421. package/lib/esm/cypher-code-block/index.js.map +0 -1
  422. package/lib/esm/helpers/types.js.map +0 -1
  423. package/lib/esm/table/Components.js +0 -244
  424. package/lib/esm/table/Components.js.map +0 -1
  425. package/lib/esm/table/Table.js +0 -97
  426. package/lib/esm/table/Table.js.map +0 -1
  427. package/lib/esm/table/TableContext.js.map +0 -1
  428. package/lib/esm/table/helpers.js +0 -81
  429. package/lib/esm/table/helpers.js.map +0 -1
  430. package/lib/esm/table/index.js +0 -25
  431. package/lib/esm/table/index.js.map +0 -1
  432. package/lib/esm/text-input-preview/TextInputPreview.js +0 -72
  433. package/lib/esm/text-input-preview/TextInputPreview.js.map +0 -1
  434. package/lib/esm/text-input-preview/index.js +0 -22
  435. package/lib/esm/text-input-preview/index.js.map +0 -1
  436. package/lib/esm/tip/Tip.js +0 -186
  437. package/lib/esm/tip/Tip.js.map +0 -1
  438. package/lib/esm/tip/Tooltip.js +0 -50
  439. package/lib/esm/tip/Tooltip.js.map +0 -1
  440. package/lib/esm/tip/index.js.map +0 -1
  441. package/lib/types/code-block/languages.d.ts +0 -23
  442. package/lib/types/cypher-code-block/CypherCodeBlock.d.ts +0 -33
  443. package/lib/types/helpers/types.d.ts +0 -42
  444. package/lib/types/table/Components.d.ts +0 -81
  445. package/lib/types/table/Table.d.ts +0 -62
  446. package/lib/types/table/TableContext.d.ts +0 -61
  447. package/lib/types/table/helpers.d.ts +0 -39
  448. package/lib/types/table/index.d.ts +0 -24
  449. package/lib/types/text-input-preview/TextInputPreview.d.ts +0 -59
  450. package/lib/types/tip/Tip.d.ts +0 -168
@@ -0,0 +1,94 @@
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
+ export type DataBase = {
22
+ id?: string;
23
+ };
24
+ export type SingleData = {
25
+ id?: string;
26
+ data: unknown;
27
+ } & DataBase;
28
+ export type SeriesData = {
29
+ id?: string;
30
+ data: unknown[];
31
+ } & DataBase;
32
+ export type MultiDimensionalData = {
33
+ id?: string;
34
+ metadata: string[];
35
+ data: unknown[][];
36
+ } & DataBase;
37
+ export type DataPoint = SingleData | SeriesData | MultiDimensionalData;
38
+ export type DataArray = (SingleData | SeriesData | MultiDimensionalData)[] | [];
39
+ export type Metadata = {
40
+ [dataId: string]: {
41
+ label: string;
42
+ color: string;
43
+ isVisible: boolean;
44
+ };
45
+ };
46
+ type MetadataProp = {
47
+ [dataId: string]: {
48
+ label: string;
49
+ color: string;
50
+ isVisible?: boolean;
51
+ };
52
+ };
53
+ export interface ChartsContextType {
54
+ colors?: string[];
55
+ data?: DataArray;
56
+ metadata: Metadata;
57
+ setIsVisible: (dataId: string, isVisible: boolean) => void;
58
+ chartsSize: ChartSize;
59
+ }
60
+ export type ChartSize = {
61
+ width: number;
62
+ height: number;
63
+ };
64
+ export interface ChartsProps {
65
+ children?: React.ReactNode;
66
+ className?: string;
67
+ colors?: string[];
68
+ data: DataArray;
69
+ metadata?: MetadataProp;
70
+ /** Width of the chart container, defaults to 100%, can also be overridden via CSS. */
71
+ width?: number;
72
+ /** Height of the chart container, defaults to 100%, can also be overridden via CSS. */
73
+ height?: number;
74
+ }
75
+ export declare const ChartsContext: import("react").Context<ChartsContextType>;
76
+ declare const Charts: import("react").ForwardRefExoticComponent<{
77
+ htmlAttributes?: import("../_common/types").HtmlAttributes<import("react").ElementType<any>> | undefined;
78
+ as?: import("react").ElementType<any> | undefined;
79
+ } & ChartsProps & import("react").RefAttributes<unknown>> & {
80
+ Chart: import("react").ForwardRefExoticComponent<import("./Chart").ChartProps & import("react").RefAttributes<unknown>> & {
81
+ Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Line").LineProps & import("react").RefAttributes<SVGPathElement>>>;
82
+ };
83
+ Legend: import("react").ForwardRefExoticComponent<import("./Legend").LegendProps & import("react").RefAttributes<HTMLDivElement>>;
84
+ Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Line").LineProps & import("react").RefAttributes<SVGPathElement>>>;
85
+ XAxis: import("react").ForwardRefExoticComponent<import("./Axis").XAxisProps & import("react").RefAttributes<unknown>>;
86
+ YAxis: import("react").ForwardRefExoticComponent<import("./Axis").YAxisProps & import("react").RefAttributes<unknown>>;
87
+ CartesianGrid: ({ className, htmlAttributes, scaleXAxis: scaleXAxisId, scaleYAxis: scaleYAxisId, }: {
88
+ scaleXAxis?: string;
89
+ scaleYAxis?: string;
90
+ className?: string;
91
+ htmlAttributes?: React.HTMLAttributes<HTMLDivElement>;
92
+ }) => import("react/jsx-runtime").JSX.Element | null;
93
+ };
94
+ export { Charts };
@@ -0,0 +1,27 @@
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
+ type DotProps = {
22
+ color: string;
23
+ x: number;
24
+ y: number;
25
+ };
26
+ declare const Dot: import("react").ForwardRefExoticComponent<DotProps & import("react").RefAttributes<SVGSVGElement>>;
27
+ export { Dot };
@@ -0,0 +1,25 @@
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 React from 'react';
22
+ export interface LegendProps extends React.HTMLAttributes<HTMLDivElement> {
23
+ wrappingType?: 'wrapping' | 'truncation' | 'overflow';
24
+ }
25
+ export declare const Legend: React.ForwardRefExoticComponent<LegendProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,43 @@
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 { type DataPoint } from './Charts';
22
+ export interface BaseLineProps {
23
+ dataId: string;
24
+ scaleXAxis: string;
25
+ scaleYAxis: string;
26
+ valueFunction?: (data: unknown) => unknown;
27
+ onClick?: (dataPoint: DataPoint) => void;
28
+ labelFormat?: (data: unknown) => string;
29
+ }
30
+ export interface NonSeriesLineProps extends BaseLineProps {
31
+ seriesInterval?: never;
32
+ seriesIntervalStartValue?: never;
33
+ accessorXAxis: string;
34
+ accessorYAxis: string;
35
+ }
36
+ export interface SeriesLineProps extends BaseLineProps {
37
+ seriesInterval: number;
38
+ seriesIntervalStartValue: number;
39
+ accessorXAxis?: never;
40
+ accessorYAxis?: never;
41
+ }
42
+ export type LineProps = NonSeriesLineProps | SeriesLineProps;
43
+ export declare const Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<LineProps & import("react").RefAttributes<SVGPathElement>>>;
@@ -18,4 +18,4 @@
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
- export * from './CodeBlock';
21
+ export * from './Charts';
@@ -18,5 +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
- export * from './CypherCodeBlock';
22
- //# sourceMappingURL=index.js.map
21
+
22
+ declare const useThrottle: (callback: (...args: any[]) => unknown, limit: number) => (...args: any[]) => void;
23
+ export { useThrottle };
@@ -20,8 +20,8 @@
20
20
  */
21
21
 
22
22
  import React from 'react';
23
- import { IconButton } from '../button';
24
- import { Tip } from '../tip';
23
+ import { IconButton, type ButtonSizes } from '../button';
24
+ import { Tooltip } from '../tooltip';
25
25
  /**
26
26
  *
27
27
  *
@@ -32,6 +32,8 @@ import { Tip } from '../tip';
32
32
  export interface ClipboardButtonProps extends Omit<React.ComponentProps<typeof IconButton>, 'onClick' | 'children'> {
33
33
  /** The text that should be set to users clipboard */
34
34
  textToCopy: string;
35
- tipProps?: Omit<React.ComponentProps<typeof Tip>, 'children'>;
35
+ tooltipProps?: Omit<React.ComponentProps<typeof Tooltip>, 'children'>;
36
+ isDisabled?: boolean;
37
+ size?: ButtonSizes;
36
38
  }
37
- export declare const ClipboardButton: ({ textToCopy, ...rest }: ClipboardButtonProps) => import("react/jsx-runtime").JSX.Element;
39
+ export declare const ClipboardButton: ({ textToCopy, isDisabled, size, tooltipProps, htmlAttributes, }: ClipboardButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -19,17 +19,39 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
- import { type IconButtonProps } from '../button';
23
- import { type ElementBase } from '../helpers';
22
+ import { type IconButton } from '../button';
24
23
  import { type LanguageProp } from './languages';
25
- export interface CodeBlockProps extends ElementBase<HTMLDivElement> {
24
+ import { type PolymorphicComponentProps } from '../_common/types';
25
+ export interface InlineProps {
26
+ type: 'inline';
27
+ maxHeight?: never;
28
+ language?: never;
29
+ showLineNumbers?: never;
30
+ theme?: never;
31
+ headerTitle?: never;
32
+ actions?: never;
33
+ isRunnable?: boolean;
34
+ tooltipText?: string;
35
+ onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>) => void;
36
+ }
37
+ export interface BlockProps {
38
+ type?: 'block';
26
39
  maxHeight?: number;
27
- code: string;
28
40
  language: LanguageProp | 'text';
29
41
  showLineNumbers?: boolean;
30
42
  theme?: 'vs' | 'base16-ateliersulphurpool.light' | 'coy' | 'duotone-light' | 'ghcolors' | 'prism' | 'solarizedlight';
31
43
  headerTitle?: string | JSX.Element;
32
- actions?: IconButtonProps[];
33
- disabled?: boolean;
44
+ actions?: React.ComponentProps<typeof IconButton<'button'>>[];
45
+ isRunnable?: never;
46
+ tooltipText?: never;
47
+ onClick?: never;
48
+ }
49
+ export interface CommonProps {
50
+ code: string;
51
+ isDisabled?: boolean;
52
+ className?: string;
34
53
  }
35
- export declare const CodeBlock: React.ForwardRefExoticComponent<CodeBlockProps & React.RefAttributes<unknown>>;
54
+ type ConditionalProps = InlineProps | BlockProps;
55
+ type Props = CommonProps & ConditionalProps;
56
+ export declare const Code: React.ForwardRefExoticComponent<PolymorphicComponentProps<React.ElementType<any>, Props> & React.RefAttributes<unknown>>;
57
+ export {};
@@ -18,4 +18,4 @@
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
- export * from './CypherCodeBlock';
21
+ export * from './Code';
@@ -0,0 +1,22 @@
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
+ export declare const Languages: readonly ["asciidoc", "bash", "c", "csharp", "css", "css-extras", "cypher", "docker", "json", "go", "graphql", "java", "javadoc", "javascript", "jsx", "kotlin", "php", "python", "regex", "rust", "sql", "typescript"];
22
+ export type LanguageProp = (typeof Languages)[number];
@@ -18,59 +18,43 @@
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
+
21
22
  import React from 'react';
22
- import { type PopoverProps } from '../popover';
23
- /**
24
- * A modified version of the Material UI (@mui/material) Menu component.
25
- * We use a modified/slimmed version for easier maintenance.
26
- *
27
- * See the LICENSES.txt file for license for @mui/material
28
- */
29
- type ElementBase = Omit<React.HTMLProps<HTMLElement>, 'as'> & {
30
- /** Override the root element rendered for the component */
31
- as?: string | React.ComponentType<any>;
32
- };
33
- export interface ContextMenuProps extends PopoverProps {
34
- /**
35
- * @deprecated
36
- * size property is deprecated and will be removed in v3.
37
- * Only one variant, `small` , will be used in products.
38
- */
39
- size?: 'small' | 'large';
40
- /** The minimum width of the menu */
41
- minWidth?: number;
42
- /** The nested level of the menu. Internal prop provided when nesting menu elements */
43
- level?: number;
44
- /** Whether the menu is nested. Internal prop provided when nesting menu elements */
45
- nested?: boolean;
23
+ import { type DividerProps } from '../divider';
24
+ export interface MenuItemProps {
25
+ title: string | React.ReactNode;
26
+ icon?: React.ReactNode;
27
+ description?: string;
28
+ isDisabled?: boolean;
29
+ className?: string;
30
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
31
+ onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
32
+ children?: React.ReactNode;
46
33
  }
47
- export interface MenuItemsProps extends ElementBase {
48
- children: React.ReactNode | string;
49
- /** Additional classes */
34
+ declare const MenuItem: React.ForwardRefExoticComponent<{
35
+ htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
36
+ as?: React.ElementType<any> | undefined;
37
+ } & MenuItemProps & React.RefAttributes<unknown>>;
38
+ export type NestedMenuItemProps = Omit<React.ComponentProps<typeof MenuItem>, 'children'>;
39
+ export interface ContextMenuProps {
40
+ isOpen?: boolean;
41
+ onClose?: (event?: Event) => void;
42
+ anchorRef?: React.RefObject<HTMLElement | null>;
43
+ children?: React.ReactNode;
44
+ isRoot?: boolean;
45
+ minWidth?: number;
50
46
  className?: string;
47
+ title?: string;
48
+ description?: string;
51
49
  }
52
- export interface StandardMenuItemProps extends Omit<ElementBase, 'title' | 'onClick' | 'children'> {
53
- /** Item title text */
54
- title: string | React.ReactNode;
55
- /** Item description text */
56
- description?: string | React.ReactNode;
57
- /** An icon to render on the left side of the list item */
58
- icon?: React.ReactNode;
59
- /** Additional classes */
50
+ export interface MenuItemsProps {
51
+ children: React.ReactNode;
60
52
  className?: string;
61
- /** Disable this menu item */
62
- disabled?: boolean;
63
- /** Show arrow icon to indicate nesting */
64
- nested?: boolean;
65
- /** Experimental: use safe areas to allow diagonal move in nested menus - Defaults: true **/
66
- safeArea?: boolean;
67
- onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>) => void;
68
- /** Enforces no children on standard menu item. Overridden by nested menu item*/
69
- children?: never;
70
53
  }
71
- export type MenuItemProps = StandardMenuItemProps | NestedMenuItemProps;
72
- declare const StandardMenuItem: React.ForwardRefExoticComponent<Omit<StandardMenuItemProps, "ref"> & React.RefAttributes<unknown>>;
73
- export interface MenuHeaderProps extends Omit<ElementBase, 'title'> {
54
+ export interface MenuSubheaderProps {
55
+ title: string;
56
+ }
57
+ export interface MenuHeaderProps {
74
58
  /** Header title text */
75
59
  title: string | React.ReactNode;
76
60
  /** Header description text */
@@ -78,24 +62,17 @@ export interface MenuHeaderProps extends Omit<ElementBase, 'title'> {
78
62
  /** Additional classes */
79
63
  className?: string;
80
64
  }
81
- export type NestedMenuItemProps = Omit<React.ComponentProps<typeof StandardMenuItem>, 'children'> & {
82
- children: ({ nestedMenuProps, }: {
83
- nestedMenuProps: Pick<React.ComponentProps<typeof Menu>, 'className' | 'open' | 'anchorEl' | 'onClose' | 'onMouseLeave' | 'onKeyDown' | 'nested'>;
84
- }) => JSX.Element;
85
- };
86
- declare const Menu: React.ForwardRefExoticComponent<Omit<ContextMenuProps, "ref"> & React.RefAttributes<unknown>> & {
87
- Divider: {
88
- (): import("react/jsx-runtime").JSX.Element;
89
- displayName: string;
90
- };
91
- Subheader: {
92
- (props: {
93
- title: string;
94
- }): import("react/jsx-runtime").JSX.Element;
95
- displayName: string;
96
- };
97
- Header: React.ForwardRefExoticComponent<Omit<MenuHeaderProps, "ref"> & React.RefAttributes<unknown>>;
98
- Item: React.ForwardRefExoticComponent<(Omit<StandardMenuItemProps, "ref"> | Omit<NestedMenuItemProps, "ref">) & React.RefAttributes<unknown>>;
99
- Items: React.ForwardRefExoticComponent<Omit<MenuItemsProps, "ref"> & React.RefAttributes<unknown>>;
65
+ declare const Menu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<HTMLElement>> & {
66
+ Item: React.ForwardRefExoticComponent<{
67
+ htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
68
+ as?: React.ElementType<any> | undefined;
69
+ } & MenuItemProps & React.RefAttributes<unknown>>;
70
+ Items: ({ children, className }: MenuItemsProps) => import("react/jsx-runtime").JSX.Element;
71
+ Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
72
+ Subheader: (props: MenuSubheaderProps) => import("react/jsx-runtime").JSX.Element;
73
+ Header: React.ForwardRefExoticComponent<{
74
+ htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
75
+ as?: React.ElementType<any> | undefined;
76
+ } & MenuHeaderProps & React.RefAttributes<unknown>>;
100
77
  };
101
78
  export { Menu };
@@ -19,9 +19,8 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import { type Cell, type CellContext, type Header as HeaderType, type Row, type RowData, type SortDirection } from '@tanstack/react-table';
22
- import { IconButton } from '../button';
22
+ import { type IconButtonProps } from '../button';
23
23
  import { Menu } from '../context-menu';
24
- import { type ElementBase } from '../helpers';
25
24
  import { type ColumnAction } from './datagrid-types';
26
25
  type MenuItemProps = React.ComponentProps<typeof Menu.Item>;
27
26
  export declare const DEFAULT_SORT_ACTIONS: (cell: HeaderType<any, unknown>) => {
@@ -30,7 +29,12 @@ export declare const DEFAULT_SORT_ACTIONS: (cell: HeaderType<any, unknown>) => {
30
29
  export interface CommonInnerProps<T = HTMLDivElement> {
31
30
  /** Children are surfaced to allow easy overriding */
32
31
  children?: React.ReactNode;
33
- innerProps?: ElementBase<T>;
32
+ innerProps?: {
33
+ className?: string;
34
+ style?: React.CSSProperties;
35
+ onClick?: (e: React.MouseEvent<T>) => void;
36
+ htmlAttributes?: React.HTMLAttributes<T>;
37
+ };
34
38
  }
35
39
  export interface ResizingBarProps<T extends RowData> extends CommonInnerProps<HTMLButtonElement> {
36
40
  header: HeaderType<T, unknown>;
@@ -48,7 +52,7 @@ export interface ActionButtonProps {
48
52
  export declare const ActionButton: ({ action, children, onClose, innerProps, }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
49
53
  export interface RowActionCellProps<T extends RowData> {
50
54
  cell?: CellContext<T, unknown>;
51
- innerIconButtonProps?: Partial<React.ComponentProps<typeof IconButton>>;
55
+ innerIconButtonProps?: Partial<IconButtonProps>;
52
56
  innerMenuProps?: Partial<React.ComponentProps<typeof Menu>>;
53
57
  }
54
58
  declare const RowActionCell: <T extends RowData>({ cell, innerIconButtonProps, innerMenuProps, }: RowActionCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
@@ -95,7 +99,6 @@ declare const PaginationNumericButtons: () => import("react/jsx-runtime").JSX.El
95
99
  declare const Pagination: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
96
100
  declare const Navigation: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
97
101
  declare const LoadingPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
98
- declare const NoDataPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
99
102
  export interface InlineEditCellProps<T extends RowData> {
100
103
  cell: CellContext<T, unknown>;
101
104
  value: string;
@@ -110,4 +113,8 @@ export interface DropDownCellProps<T extends RowData> {
110
113
  portalTarget?: HTMLElement;
111
114
  }
112
115
  declare const DropDownCell: <T extends RowData>({ cell, options, portalTarget, }: DropDownCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
116
+ declare const NoDataPlaceholder: (({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element) & {
117
+ Content: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
118
+ Illustration: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
119
+ };
113
120
  export { ResizingBar, Header, Body, BodyCell, BodyRow, InlineEditCell, DropDownCell, RowActionCell, HeaderCell, HeaderTitle, Navigation, TableResults, RowsPerPage, Pagination, PaginationNumericButtons, PaginationArrowButton, PaginationNumericButton, NoDataPlaceholder, LoadingPlaceholder, Scrollable, };
@@ -20,8 +20,8 @@
20
20
  */
21
21
 
22
22
  import { type Table as DataGridType, type RowData } from '@tanstack/react-table';
23
- import { type ElementBase } from '../helpers';
24
23
  import { type DataGridComponentsInterface } from './DataGridContext';
24
+ import { type HtmlAttributes } from '../_common/types';
25
25
  export declare const DataGridComponents: {
26
26
  ResizingBar: <T extends RowData>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
27
27
  Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -43,7 +43,10 @@ export declare const DataGridComponents: {
43
43
  PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: import("./Components").PaginationNumericButtonProps) => import("react/jsx-runtime").JSX.Element;
44
44
  PaginationArrowButton: ({ action, children, innerProps, }: import("./Components").PaginationArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
45
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;
46
+ NoDataPlaceholder: (({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element) & {
47
+ Content: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
48
+ Illustration: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
49
+ };
47
50
  Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps) => import("react/jsx-runtime").JSX.Element;
48
51
  };
49
52
  declare enum BorderStyleEnum {
@@ -59,8 +62,8 @@ declare enum HeaderStyleEnum {
59
62
  export type HeaderStyle = `${HeaderStyleEnum}`;
60
63
  export type DataGridProps<T extends RowData> = {
61
64
  styling?: Partial<{
62
- /** Alternate the background colour of rows */
63
- zebraStriping: boolean;
65
+ /** Alternate the background color of rows */
66
+ hasZebraStriping: boolean;
64
67
  /** Type of border that will be used */
65
68
  borderStyle: BorderStyle;
66
69
  /** If header should have styles or not (Aura example) */
@@ -99,7 +102,7 @@ export type DataGridProps<T extends RowData> = {
99
102
  /** Table sub-component overrides */
100
103
  components?: DataGridComponentsInterface<T>;
101
104
  /** Root `div` props */
102
- rootProps?: ElementBase<HTMLDivElement>;
105
+ rootProps?: HtmlAttributes<'div'>;
103
106
  };
104
107
  export declare const DataGrid: <T extends RowData>(props: DataGridProps<T> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement | null;
105
108
  export {};
@@ -53,11 +53,11 @@ export interface DataGridComponentsInterface<T extends RowData> {
53
53
  PaginationNumericButton?: Nullable<typeof PaginationNumericButton>;
54
54
  }
55
55
  export interface DataGridContextType<T extends RowData> {
56
- resizable: boolean;
56
+ isResizable: boolean;
57
57
  tableProps: DataGridType<T>;
58
58
  components: DataGridComponentsInterface<T>;
59
- loading: boolean;
60
- resizeColumns: boolean;
59
+ isLoading: boolean;
60
+ hasResizeColumns: boolean;
61
61
  isKeyboardNavigationEnabled: boolean;
62
62
  }
63
63
  export declare const DataGridContext: import("react").Context<DataGridContextType<any>>;
@@ -20,7 +20,7 @@
20
20
  */
21
21
  import { type CellContext, type RowData } from '@tanstack/react-table';
22
22
  import '@tanstack/react-table';
23
- import { type MenuItemProps, type NestedMenuItemProps, type StandardMenuItemProps } from '../context-menu';
23
+ import { type MenuItemProps, type NestedMenuItemProps } from '../context-menu';
24
24
  export type ColumnAction = MenuItemProps;
25
25
  export type RowAction = MenuItemProps;
26
26
  declare module '@tanstack/react-table' {
@@ -30,7 +30,7 @@ declare module '@tanstack/react-table' {
30
30
  * Prepends two default sorting actions to the column.
31
31
  * Should be disabled for columns that are sorted on server side.
32
32
  */
33
- defaultSortingActions?: boolean;
33
+ hasDefaultSortingActions?: boolean;
34
34
  /** Column actions that will be rendered in order */
35
35
  actions?: ColumnAction[];
36
36
  /** Callback for consumer to delegate task like polling */
@@ -41,7 +41,7 @@ declare module '@tanstack/react-table' {
41
41
  /** Column actions that will be rendered in order */
42
42
  actions: ({
43
43
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>, cell: CellContext<TData, TValue>) => void;
44
- } & (Omit<NestedMenuItemProps, 'onClick'> | Omit<StandardMenuItemProps, 'onClick'>))[];
44
+ } & (Omit<NestedMenuItemProps, 'onClick'> | Omit<MenuItemProps, 'onClick'>))[];
45
45
  /** Callback for consumer to delegate tasks like polling */
46
46
  onOpenChange?: (isOpen: boolean) => void;
47
47
  };
@@ -0,0 +1,23 @@
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 { type SVGProps } from 'react';
22
+ declare const NoDataIllustration: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
23
+ export default NoDataIllustration;
@@ -20,16 +20,16 @@
20
20
  */
21
21
 
22
22
  import { type ReactDatePickerProps } from 'react-datepicker';
23
- import { type ElementBase } from '../helpers';
24
- import { type TextInputProperties } from '../text-input/TextInput';
25
- export interface DatePickerProps<WithRange extends boolean = false> extends ElementBase<'div'> {
23
+ import { type TextInputProps } from '../text-input/TextInput';
24
+ export interface DatePickerProps<WithRange extends boolean = false> {
26
25
  /** Add Component type here */
27
- textInputProps?: TextInputProperties;
28
- disabled?: boolean;
26
+ textInputProps?: TextInputProps;
27
+ isDisabled?: boolean;
29
28
  /**
30
29
  * Props passed to the react-datepicker component
31
30
  * https://reactdatepicker.com/
32
31
  */
33
- reactDatePickerProps: ReactDatePickerProps<string, WithRange>;
32
+ reactDatePickerProps: ReactDatePickerProps<WithRange>;
33
+ className?: string;
34
34
  }
35
35
  export declare const DatePicker: <T extends boolean>(props: DatePickerProps<T> & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement | null;