@neo4j-ndl/react 2.16.25 → 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 (454) 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/_common/utils.js +3 -1
  14. package/lib/cjs/_common/utils.js.map +1 -1
  15. package/lib/cjs/accordion/Accordion.js +24 -24
  16. package/lib/cjs/accordion/Accordion.js.map +1 -1
  17. package/lib/cjs/avatar/Avatar.js +7 -17
  18. package/lib/cjs/avatar/Avatar.js.map +1 -1
  19. package/lib/cjs/banner/Banner.js +30 -25
  20. package/lib/cjs/banner/Banner.js.map +1 -1
  21. package/lib/cjs/breadcrumbs/Breadcrumbs.js +60 -90
  22. package/lib/cjs/breadcrumbs/Breadcrumbs.js.map +1 -1
  23. package/lib/cjs/button/Button.js +17 -33
  24. package/lib/cjs/button/Button.js.map +1 -1
  25. package/lib/cjs/button/IconButton.js +13 -21
  26. package/lib/cjs/button/IconButton.js.map +1 -1
  27. package/lib/cjs/button/IconButtonArray.js +43 -22
  28. package/lib/cjs/button/IconButtonArray.js.map +1 -1
  29. package/lib/cjs/callout/Callout.js +2 -14
  30. package/lib/cjs/callout/Callout.js.map +1 -1
  31. package/lib/cjs/charts/Axis.js +216 -0
  32. package/lib/cjs/charts/Axis.js.map +1 -0
  33. package/lib/cjs/charts/CartesianGrid.js +73 -0
  34. package/lib/cjs/charts/CartesianGrid.js.map +1 -0
  35. package/lib/cjs/charts/Chart.js +538 -0
  36. package/lib/cjs/charts/Chart.js.map +1 -0
  37. package/lib/cjs/charts/ChartTooltip.js +56 -0
  38. package/lib/cjs/charts/ChartTooltip.js.map +1 -0
  39. package/lib/cjs/charts/Charts.js +99 -0
  40. package/lib/cjs/charts/Charts.js.map +1 -0
  41. package/lib/cjs/charts/Dot.js +31 -0
  42. package/lib/cjs/charts/Dot.js.map +1 -0
  43. package/lib/cjs/charts/Legend.js +180 -0
  44. package/lib/cjs/charts/Legend.js.map +1 -0
  45. package/lib/cjs/charts/Line.js +101 -0
  46. package/lib/cjs/charts/Line.js.map +1 -0
  47. package/lib/cjs/{code-block → charts}/index.js +1 -1
  48. package/lib/cjs/charts/index.js.map +1 -0
  49. package/lib/cjs/{table/TableContext.js → charts/utils.js} +18 -14
  50. package/lib/cjs/charts/utils.js.map +1 -0
  51. package/lib/cjs/checkbox/Checkbox.js +2 -14
  52. package/lib/cjs/checkbox/Checkbox.js.map +1 -1
  53. package/lib/cjs/clipboard-copier/ClipboardButton.js +16 -20
  54. package/lib/cjs/clipboard-copier/ClipboardButton.js.map +1 -1
  55. package/lib/cjs/code/Code.js +179 -0
  56. package/lib/cjs/code/Code.js.map +1 -0
  57. package/lib/cjs/{cypher-code-block → code}/index.js +1 -1
  58. package/lib/cjs/code/index.js.map +1 -0
  59. package/lib/cjs/code/languages.js +49 -0
  60. package/lib/cjs/code/languages.js.map +1 -0
  61. package/lib/cjs/context-menu/ContextMenu.js +202 -319
  62. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  63. package/lib/cjs/data-grid/Components.js +73 -44
  64. package/lib/cjs/data-grid/Components.js.map +1 -1
  65. package/lib/cjs/data-grid/DataGrid.js +6 -6
  66. package/lib/cjs/data-grid/DataGrid.js.map +1 -1
  67. package/lib/cjs/data-grid/illustrations/NoData.js +27 -0
  68. package/lib/cjs/data-grid/illustrations/NoData.js.map +1 -0
  69. package/lib/cjs/date-picker/DatePicker.js +33 -10
  70. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  71. package/lib/cjs/dialog/Dialog.js +25 -39
  72. package/lib/cjs/dialog/Dialog.js.map +1 -1
  73. package/lib/cjs/divider/Divider.js +2 -14
  74. package/lib/cjs/divider/Divider.js.map +1 -1
  75. package/lib/cjs/drawer/Drawer.js +10 -8
  76. package/lib/cjs/drawer/Drawer.js.map +1 -1
  77. package/lib/cjs/dropdown/Dropdown.js +18 -34
  78. package/lib/cjs/dropdown/Dropdown.js.map +1 -1
  79. package/lib/cjs/dropdown/Overrides.js +6 -2
  80. package/lib/cjs/dropdown/Overrides.js.map +1 -1
  81. package/lib/cjs/dropdown-button/DropdownButton.js +2 -21
  82. package/lib/cjs/dropdown-button/DropdownButton.js.map +1 -1
  83. package/lib/{types/context-menu/SafeArea.d.ts → cjs/dropdown-button/avatar-test.stories.tsx.js} +10 -18
  84. package/lib/cjs/dropdown-button/avatar-test.stories.tsx.js.map +1 -0
  85. package/lib/cjs/dropzone/Dropzone.js +4 -15
  86. package/lib/cjs/dropzone/Dropzone.js.map +1 -1
  87. package/lib/cjs/graph-label/GraphLabel.js +33 -34
  88. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  89. package/lib/cjs/helpers/index.js +0 -1
  90. package/lib/cjs/helpers/index.js.map +1 -1
  91. package/lib/cjs/hooks/index.js +5 -3
  92. package/lib/cjs/hooks/index.js.map +1 -1
  93. package/lib/cjs/icons/generated/heroIcons.js +917 -596
  94. package/lib/cjs/icons/generated/heroIcons.js.map +1 -1
  95. package/lib/cjs/index.js +3 -5
  96. package/lib/cjs/index.js.map +1 -1
  97. package/lib/cjs/inline-edit/InlineEdit.js +12 -7
  98. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  99. package/lib/cjs/label/Label.js +4 -16
  100. package/lib/cjs/label/Label.js.map +1 -1
  101. package/lib/cjs/layout/Box.js +4 -16
  102. package/lib/cjs/layout/Box.js.map +1 -1
  103. package/lib/cjs/layout/Flex.js +4 -16
  104. package/lib/cjs/layout/Flex.js.map +1 -1
  105. package/lib/cjs/loading-spinner/LoadingSpinner.js +2 -13
  106. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  107. package/lib/cjs/modal/Modal.js +2 -2
  108. package/lib/cjs/modal/Modal.js.map +1 -1
  109. package/lib/cjs/popover/Popover.js +89 -207
  110. package/lib/cjs/popover/Popover.js.map +1 -1
  111. package/lib/cjs/popover/use-popover.js +86 -0
  112. package/lib/cjs/popover/use-popover.js.map +1 -0
  113. package/lib/cjs/progress-bar/ProgressBar.js +2 -14
  114. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
  115. package/lib/cjs/radio/Radio.js +2 -1
  116. package/lib/cjs/radio/Radio.js.map +1 -1
  117. package/lib/cjs/segmented-control/SegmentedControl.js +6 -19
  118. package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
  119. package/lib/cjs/side-navigation/SideNavigation.js +52 -59
  120. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  121. package/lib/cjs/slider/Slider.js +5 -6
  122. package/lib/cjs/slider/Slider.js.map +1 -1
  123. package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
  124. package/lib/cjs/switch/Switch.js +13 -1
  125. package/lib/cjs/switch/Switch.js.map +1 -1
  126. package/lib/cjs/tabs/Tabs.js +11 -27
  127. package/lib/cjs/tabs/Tabs.js.map +1 -1
  128. package/lib/cjs/tag/Tag.js +5 -18
  129. package/lib/cjs/tag/Tag.js.map +1 -1
  130. package/lib/cjs/text-input/TextInput.js +14 -24
  131. package/lib/cjs/text-input/TextInput.js.map +1 -1
  132. package/lib/cjs/text-link/TextLink.js +4 -17
  133. package/lib/cjs/text-link/TextLink.js.map +1 -1
  134. package/lib/cjs/textarea/Textarea.js +6 -20
  135. package/lib/cjs/textarea/Textarea.js.map +1 -1
  136. package/lib/cjs/toast/Toast.js +2 -3
  137. package/lib/cjs/toast/Toast.js.map +1 -1
  138. package/lib/cjs/tooltip/Tooltip.js +125 -0
  139. package/lib/cjs/tooltip/Tooltip.js.map +1 -0
  140. package/lib/cjs/{tip → tooltip}/index.js +15 -16
  141. package/lib/cjs/tooltip/index.js.map +1 -0
  142. package/lib/cjs/tooltip/use-tooltip.js +78 -0
  143. package/lib/cjs/tooltip/use-tooltip.js.map +1 -0
  144. package/lib/cjs/tree-view/TreeView.js +4 -16
  145. package/lib/cjs/tree-view/TreeView.js.map +1 -1
  146. package/lib/cjs/tree-view/TreeViewTextItem.js +11 -7
  147. package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -1
  148. package/lib/cjs/typography/Typography.js +4 -4
  149. package/lib/cjs/typography/Typography.js.map +1 -1
  150. package/lib/cjs/widget/Widget.js +3 -15
  151. package/lib/cjs/widget/Widget.js.map +1 -1
  152. package/lib/cjs/wizard/Wizard.js +106 -80
  153. package/lib/cjs/wizard/Wizard.js.map +1 -1
  154. package/lib/esm/_common/CodeBlockWrapper.js +10 -8
  155. package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
  156. package/lib/esm/_common/ConditionalWrap.js +1 -1
  157. package/lib/esm/_common/ConditionalWrap.js.map +1 -1
  158. package/lib/esm/_common/coditionalWrap.js +1 -1
  159. package/lib/esm/_common/coditionalWrap.js.map +1 -1
  160. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +7 -21
  161. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  162. package/lib/esm/_common/messages.js +0 -1
  163. package/lib/esm/_common/messages.js.map +1 -1
  164. package/lib/esm/{helpers → _common}/types.js +0 -1
  165. package/lib/esm/_common/types.js.map +1 -0
  166. package/lib/esm/_common/utils.js +3 -1
  167. package/lib/esm/_common/utils.js.map +1 -1
  168. package/lib/esm/accordion/Accordion.js +25 -25
  169. package/lib/esm/accordion/Accordion.js.map +1 -1
  170. package/lib/esm/avatar/Avatar.js +7 -17
  171. package/lib/esm/avatar/Avatar.js.map +1 -1
  172. package/lib/esm/banner/Banner.js +30 -25
  173. package/lib/esm/banner/Banner.js.map +1 -1
  174. package/lib/esm/breadcrumbs/Breadcrumbs.js +39 -92
  175. package/lib/esm/breadcrumbs/Breadcrumbs.js.map +1 -1
  176. package/lib/esm/button/Button.js +11 -27
  177. package/lib/esm/button/Button.js.map +1 -1
  178. package/lib/esm/button/IconButton.js +13 -21
  179. package/lib/esm/button/IconButton.js.map +1 -1
  180. package/lib/esm/button/IconButtonArray.js +43 -22
  181. package/lib/esm/button/IconButtonArray.js.map +1 -1
  182. package/lib/esm/callout/Callout.js +2 -14
  183. package/lib/esm/callout/Callout.js.map +1 -1
  184. package/lib/esm/charts/Axis.js +187 -0
  185. package/lib/esm/charts/Axis.js.map +1 -0
  186. package/lib/esm/charts/CartesianGrid.js +66 -0
  187. package/lib/esm/charts/CartesianGrid.js.map +1 -0
  188. package/lib/esm/charts/Chart.js +517 -0
  189. package/lib/esm/charts/Chart.js.map +1 -0
  190. package/lib/esm/charts/ChartTooltip.js +50 -0
  191. package/lib/esm/charts/ChartTooltip.js.map +1 -0
  192. package/lib/esm/charts/Charts.js +96 -0
  193. package/lib/esm/charts/Charts.js.map +1 -0
  194. package/lib/esm/charts/Dot.js +28 -0
  195. package/lib/esm/charts/Dot.js.map +1 -0
  196. package/lib/esm/charts/Legend.js +174 -0
  197. package/lib/esm/charts/Legend.js.map +1 -0
  198. package/lib/esm/charts/Line.js +75 -0
  199. package/lib/esm/charts/Line.js.map +1 -0
  200. package/lib/esm/charts/index.js +22 -0
  201. package/lib/esm/charts/index.js.map +1 -0
  202. package/lib/esm/{table/TableContext.js → charts/utils.js} +16 -11
  203. package/lib/esm/charts/utils.js.map +1 -0
  204. package/lib/esm/checkbox/Checkbox.js +2 -14
  205. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  206. package/lib/esm/clipboard-copier/ClipboardButton.js +16 -20
  207. package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
  208. package/lib/esm/code/Code.js +150 -0
  209. package/lib/esm/code/Code.js.map +1 -0
  210. package/lib/{types/text-input-preview/index.d.ts → esm/code/index.js} +2 -1
  211. package/lib/esm/code/index.js.map +1 -0
  212. package/lib/esm/code/languages.js +46 -0
  213. package/lib/esm/code/languages.js.map +1 -0
  214. package/lib/esm/context-menu/ContextMenu.js +198 -295
  215. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  216. package/lib/esm/data-grid/Components.js +69 -43
  217. package/lib/esm/data-grid/Components.js.map +1 -1
  218. package/lib/esm/data-grid/DataGrid.js +6 -6
  219. package/lib/esm/data-grid/DataGrid.js.map +1 -1
  220. package/lib/esm/data-grid/illustrations/NoData.js +25 -0
  221. package/lib/esm/data-grid/illustrations/NoData.js.map +1 -0
  222. package/lib/esm/date-picker/DatePicker.js +33 -10
  223. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  224. package/lib/esm/dialog/Dialog.js +25 -39
  225. package/lib/esm/dialog/Dialog.js.map +1 -1
  226. package/lib/esm/divider/Divider.js +2 -14
  227. package/lib/esm/divider/Divider.js.map +1 -1
  228. package/lib/esm/drawer/Drawer.js +11 -9
  229. package/lib/esm/drawer/Drawer.js.map +1 -1
  230. package/lib/esm/dropdown/Dropdown.js +18 -34
  231. package/lib/esm/dropdown/Dropdown.js.map +1 -1
  232. package/lib/esm/dropdown/Overrides.js +6 -2
  233. package/lib/esm/dropdown/Overrides.js.map +1 -1
  234. package/lib/esm/dropdown-button/DropdownButton.js +2 -21
  235. package/lib/esm/dropdown-button/DropdownButton.js.map +1 -1
  236. package/lib/esm/dropdown-button/avatar-test.stories.tsx.js +27 -0
  237. package/lib/esm/dropdown-button/avatar-test.stories.tsx.js.map +1 -0
  238. package/lib/esm/dropzone/Dropzone.js +4 -15
  239. package/lib/esm/dropzone/Dropzone.js.map +1 -1
  240. package/lib/esm/graph-label/GraphLabel.js +33 -34
  241. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  242. package/lib/esm/helpers/index.js +0 -1
  243. package/lib/esm/helpers/index.js.map +1 -1
  244. package/lib/esm/hooks/index.js +1 -1
  245. package/lib/esm/hooks/index.js.map +1 -1
  246. package/lib/esm/icons/generated/heroIcons.js +904 -584
  247. package/lib/esm/icons/generated/heroIcons.js.map +1 -1
  248. package/lib/esm/index.js +3 -5
  249. package/lib/esm/index.js.map +1 -1
  250. package/lib/esm/inline-edit/InlineEdit.js +12 -7
  251. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  252. package/lib/esm/label/Label.js +4 -16
  253. package/lib/esm/label/Label.js.map +1 -1
  254. package/lib/esm/layout/Box.js +6 -18
  255. package/lib/esm/layout/Box.js.map +1 -1
  256. package/lib/esm/layout/Flex.js +5 -17
  257. package/lib/esm/layout/Flex.js.map +1 -1
  258. package/lib/esm/loading-spinner/LoadingSpinner.js +2 -13
  259. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  260. package/lib/esm/modal/Modal.js +2 -2
  261. package/lib/esm/modal/Modal.js.map +1 -1
  262. package/lib/esm/popover/Popover.js +64 -204
  263. package/lib/esm/popover/Popover.js.map +1 -1
  264. package/lib/esm/popover/use-popover.js +83 -0
  265. package/lib/esm/popover/use-popover.js.map +1 -0
  266. package/lib/esm/progress-bar/ProgressBar.js +2 -14
  267. package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
  268. package/lib/esm/radio/Radio.js +2 -1
  269. package/lib/esm/radio/Radio.js.map +1 -1
  270. package/lib/esm/segmented-control/SegmentedControl.js +7 -20
  271. package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
  272. package/lib/esm/side-navigation/SideNavigation.js +52 -59
  273. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  274. package/lib/esm/slider/Slider.js +5 -6
  275. package/lib/esm/slider/Slider.js.map +1 -1
  276. package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
  277. package/lib/esm/switch/Switch.js +13 -1
  278. package/lib/esm/switch/Switch.js.map +1 -1
  279. package/lib/esm/tabs/Tabs.js +12 -28
  280. package/lib/esm/tabs/Tabs.js.map +1 -1
  281. package/lib/esm/tag/Tag.js +5 -18
  282. package/lib/esm/tag/Tag.js.map +1 -1
  283. package/lib/esm/text-input/TextInput.js +14 -24
  284. package/lib/esm/text-input/TextInput.js.map +1 -1
  285. package/lib/esm/text-link/TextLink.js +4 -17
  286. package/lib/esm/text-link/TextLink.js.map +1 -1
  287. package/lib/esm/textarea/Textarea.js +6 -20
  288. package/lib/esm/textarea/Textarea.js.map +1 -1
  289. package/lib/esm/toast/Toast.js +2 -3
  290. package/lib/esm/toast/Toast.js.map +1 -1
  291. package/lib/esm/tooltip/Tooltip.js +119 -0
  292. package/lib/esm/tooltip/Tooltip.js.map +1 -0
  293. package/lib/esm/{tip → tooltip}/index.js +0 -1
  294. package/lib/esm/tooltip/index.js.map +1 -0
  295. package/lib/esm/tooltip/use-tooltip.js +73 -0
  296. package/lib/esm/tooltip/use-tooltip.js.map +1 -0
  297. package/lib/esm/tree-view/TreeView.js +4 -16
  298. package/lib/esm/tree-view/TreeView.js.map +1 -1
  299. package/lib/esm/tree-view/TreeViewTextItem.js +11 -7
  300. package/lib/esm/tree-view/TreeViewTextItem.js.map +1 -1
  301. package/lib/esm/typography/Typography.js +5 -5
  302. package/lib/esm/typography/Typography.js.map +1 -1
  303. package/lib/esm/widget/Widget.js +3 -15
  304. package/lib/esm/widget/Widget.js.map +1 -1
  305. package/lib/esm/wizard/Wizard.js +83 -76
  306. package/lib/esm/wizard/Wizard.js.map +1 -1
  307. package/lib/types/_common/CodeBlockWrapper.d.ts +10 -6
  308. package/lib/types/_common/ConditionalWrap.d.ts +2 -2
  309. package/lib/types/_common/coditionalWrap.d.ts +2 -2
  310. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +15 -4
  311. package/lib/types/_common/input/types.d.ts +7 -9
  312. package/lib/types/_common/messages.d.ts +0 -1
  313. package/lib/types/_common/types.d.ts +40 -0
  314. package/lib/types/accordion/Accordion.d.ts +15 -9
  315. package/lib/types/avatar/Avatar.d.ts +14 -7
  316. package/lib/types/banner/Banner.d.ts +39 -19
  317. package/lib/types/breadcrumbs/Breadcrumbs.d.ts +18 -21
  318. package/lib/types/button/Button.d.ts +35 -13
  319. package/lib/types/button/IconButton.d.ts +31 -12
  320. package/lib/types/button/IconButtonArray.d.ts +20 -15
  321. package/lib/types/callout/Callout.d.ts +6 -3
  322. package/lib/types/charts/Axis.d.ts +37 -0
  323. package/lib/types/{tip/Tooltip.d.ts → charts/CartesianGrid.d.ts} +7 -6
  324. package/lib/types/charts/Chart.d.ts +105 -0
  325. package/lib/types/charts/ChartTooltip.d.ts +59 -0
  326. package/lib/types/charts/Charts.d.ts +94 -0
  327. package/lib/types/charts/Dot.d.ts +27 -0
  328. package/lib/types/charts/Legend.d.ts +25 -0
  329. package/lib/types/charts/Line.d.ts +43 -0
  330. package/lib/types/{code-block → charts}/index.d.ts +1 -1
  331. package/lib/{esm/cypher-code-block/index.js → types/charts/utils.d.ts} +3 -2
  332. package/lib/types/clipboard-copier/ClipboardButton.d.ts +6 -4
  333. package/lib/types/{code-block/CodeBlock.d.ts → code/Code.d.ts} +29 -7
  334. package/lib/types/{cypher-code-block → code}/index.d.ts +1 -1
  335. package/lib/types/code/languages.d.ts +22 -0
  336. package/lib/types/context-menu/ContextMenu.d.ts +43 -66
  337. package/lib/types/data-grid/Components.d.ts +12 -5
  338. package/lib/types/data-grid/DataGrid.d.ts +8 -5
  339. package/lib/types/data-grid/DataGridContext.d.ts +3 -3
  340. package/lib/types/data-grid/datagrid-types.d.ts +3 -3
  341. package/lib/types/data-grid/illustrations/NoData.d.ts +23 -0
  342. package/lib/types/date-picker/DatePicker.d.ts +6 -6
  343. package/lib/types/dialog/Dialog.d.ts +14 -10
  344. package/lib/types/divider/Divider.d.ts +6 -3
  345. package/lib/types/drawer/Drawer.d.ts +11 -8
  346. package/lib/types/dropdown/Dropdown.d.ts +4 -1
  347. package/lib/types/dropdown/Overrides.d.ts +1 -1
  348. package/lib/types/dropdown/types.d.ts +5 -6
  349. package/lib/types/dropdown-button/DropdownButton.d.ts +7 -2
  350. package/lib/{esm/code-block/index.js → types/dropdown-button/avatar-test.stories.tsx.d.ts} +3 -2
  351. package/lib/types/dropzone/Dropzone.d.ts +8 -2
  352. package/lib/types/graph-label/GraphLabel.d.ts +18 -7
  353. package/lib/types/helpers/index.d.ts +0 -1
  354. package/lib/types/hooks/index.d.ts +1 -1
  355. package/lib/types/icons/generated/heroIcons.d.ts +256 -0
  356. package/lib/types/index.d.ts +3 -5
  357. package/lib/types/inline-edit/InlineEdit.d.ts +5 -2
  358. package/lib/types/label/Label.d.ts +4 -3
  359. package/lib/types/layout/Box.d.ts +6 -10
  360. package/lib/types/layout/Flex.d.ts +6 -11
  361. package/lib/types/loading-spinner/LoadingSpinner.d.ts +2 -0
  362. package/lib/types/modal/Modal.d.ts +6 -4
  363. package/lib/types/popover/Popover.d.ts +37 -66
  364. package/lib/types/popover/index.d.ts +4 -0
  365. package/lib/types/popover/use-popover.d.ts +44 -0
  366. package/lib/types/portal/Portal.d.ts +1 -1
  367. package/lib/types/progress-bar/ProgressBar.d.ts +5 -2
  368. package/lib/types/segmented-control/SegmentedControl.d.ts +11 -5
  369. package/lib/types/side-navigation/SideNavigation.d.ts +35 -19
  370. package/lib/types/slider/Slider.d.ts +7 -4
  371. package/lib/types/status-indicator/StatusIndicator.d.ts +4 -2
  372. package/lib/types/tabs/Tabs.d.ts +10 -19
  373. package/lib/types/tag/Tag.d.ts +9 -7
  374. package/lib/types/text-input/TextInput.d.ts +18 -10
  375. package/lib/types/text-link/TextLink.d.ts +8 -6
  376. package/lib/types/textarea/Textarea.d.ts +11 -4
  377. package/lib/types/toast/Toast.d.ts +3 -0
  378. package/lib/types/tooltip/Tooltip.d.ts +80 -0
  379. package/lib/types/{tip → tooltip}/index.d.ts +0 -1
  380. package/lib/types/tooltip/use-tooltip.d.ts +38 -0
  381. package/lib/types/tree-view/TreeView.d.ts +7 -3
  382. package/lib/types/tree-view/tree-view-types.d.ts +2 -2
  383. package/lib/types/typography/Typography.d.ts +16 -5
  384. package/lib/types/widget/Widget.d.ts +3 -0
  385. package/lib/types/wizard/Wizard.d.ts +18 -10
  386. package/package.json +39 -37
  387. package/lib/cjs/code-block/CodeBlock.js +0 -105
  388. package/lib/cjs/code-block/CodeBlock.js.map +0 -1
  389. package/lib/cjs/code-block/index.js.map +0 -1
  390. package/lib/cjs/code-block/languages.js +0 -303
  391. package/lib/cjs/code-block/languages.js.map +0 -1
  392. package/lib/cjs/context-menu/SafeArea.js +0 -84
  393. package/lib/cjs/context-menu/SafeArea.js.map +0 -1
  394. package/lib/cjs/cypher-code-block/CypherCodeBlock.js +0 -74
  395. package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +0 -1
  396. package/lib/cjs/cypher-code-block/index.js.map +0 -1
  397. package/lib/cjs/helpers/types.js.map +0 -1
  398. package/lib/cjs/table/Components.js +0 -264
  399. package/lib/cjs/table/Components.js.map +0 -1
  400. package/lib/cjs/table/Table.js +0 -100
  401. package/lib/cjs/table/Table.js.map +0 -1
  402. package/lib/cjs/table/TableContext.js.map +0 -1
  403. package/lib/cjs/table/helpers.js +0 -86
  404. package/lib/cjs/table/helpers.js.map +0 -1
  405. package/lib/cjs/table/index.js +0 -55
  406. package/lib/cjs/table/index.js.map +0 -1
  407. package/lib/cjs/text-input-preview/TextInputPreview.js +0 -75
  408. package/lib/cjs/text-input-preview/TextInputPreview.js.map +0 -1
  409. package/lib/cjs/text-input-preview/index.js +0 -38
  410. package/lib/cjs/text-input-preview/index.js.map +0 -1
  411. package/lib/cjs/tip/Tip.js +0 -196
  412. package/lib/cjs/tip/Tip.js.map +0 -1
  413. package/lib/cjs/tip/Tooltip.js +0 -56
  414. package/lib/cjs/tip/Tooltip.js.map +0 -1
  415. package/lib/cjs/tip/index.js.map +0 -1
  416. package/lib/esm/code-block/CodeBlock.js +0 -79
  417. package/lib/esm/code-block/CodeBlock.js.map +0 -1
  418. package/lib/esm/code-block/index.js.map +0 -1
  419. package/lib/esm/code-block/languages.js +0 -302
  420. package/lib/esm/code-block/languages.js.map +0 -1
  421. package/lib/esm/context-menu/SafeArea.js +0 -81
  422. package/lib/esm/context-menu/SafeArea.js.map +0 -1
  423. package/lib/esm/cypher-code-block/CypherCodeBlock.js +0 -48
  424. package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +0 -1
  425. package/lib/esm/cypher-code-block/index.js.map +0 -1
  426. package/lib/esm/helpers/types.js.map +0 -1
  427. package/lib/esm/table/Components.js +0 -244
  428. package/lib/esm/table/Components.js.map +0 -1
  429. package/lib/esm/table/Table.js +0 -97
  430. package/lib/esm/table/Table.js.map +0 -1
  431. package/lib/esm/table/TableContext.js.map +0 -1
  432. package/lib/esm/table/helpers.js +0 -81
  433. package/lib/esm/table/helpers.js.map +0 -1
  434. package/lib/esm/table/index.js +0 -25
  435. package/lib/esm/table/index.js.map +0 -1
  436. package/lib/esm/text-input-preview/TextInputPreview.js +0 -72
  437. package/lib/esm/text-input-preview/TextInputPreview.js.map +0 -1
  438. package/lib/esm/text-input-preview/index.js +0 -22
  439. package/lib/esm/text-input-preview/index.js.map +0 -1
  440. package/lib/esm/tip/Tip.js +0 -186
  441. package/lib/esm/tip/Tip.js.map +0 -1
  442. package/lib/esm/tip/Tooltip.js +0 -50
  443. package/lib/esm/tip/Tooltip.js.map +0 -1
  444. package/lib/esm/tip/index.js.map +0 -1
  445. package/lib/types/code-block/languages.d.ts +0 -23
  446. package/lib/types/cypher-code-block/CypherCodeBlock.d.ts +0 -33
  447. package/lib/types/helpers/types.d.ts +0 -42
  448. package/lib/types/table/Components.d.ts +0 -81
  449. package/lib/types/table/Table.d.ts +0 -62
  450. package/lib/types/table/TableContext.d.ts +0 -61
  451. package/lib/types/table/helpers.d.ts +0 -39
  452. package/lib/types/table/index.d.ts +0 -24
  453. package/lib/types/text-input-preview/TextInputPreview.d.ts +0 -59
  454. package/lib/types/tip/Tip.d.ts +0 -168
@@ -18,8 +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 ComponentPropsWithoutRef, type ReactNode } from 'react';
21
+ import React, { type ReactNode } from 'react';
22
22
  import { type TooltipObjectProps } from '../_common/input/types';
23
+ import { type HtmlAttributes } from '../_common/types';
23
24
  /**
24
25
  *
25
26
  *
@@ -27,11 +28,11 @@ import { type TooltipObjectProps } from '../_common/input/types';
27
28
  *
28
29
  *
29
30
  */
30
- export interface TextareaProps extends Omit<Omit<ComponentPropsWithoutRef<'textarea'>, 'nonce' | 'size'>, 'label'> {
31
+ export interface TextareaProps {
31
32
  /** Label text */
32
33
  label?: ReactNode;
33
34
  /** Displays with fluid width */
34
- fluid?: boolean;
35
+ isFluid?: boolean;
35
36
  /** Help message */
36
37
  helpText?: string | ReactNode;
37
38
  /** Error message */
@@ -44,6 +45,12 @@ export interface TextareaProps extends Omit<Omit<ComponentPropsWithoutRef<'texta
44
45
  informationIconText?: React.ReactNode;
45
46
  /** Pass props to the underlying Tip component */
46
47
  tooltipProps?: TooltipObjectProps;
48
+ isDisabled?: boolean;
49
+ /** HTML attributes */
50
+ htmlAttributes?: HtmlAttributes<'textarea'>;
51
+ ariaLabel?: string;
52
+ className?: string;
53
+ isReadOnly?: boolean;
47
54
  }
48
55
  /**
49
56
  *
@@ -52,4 +59,4 @@ export interface TextareaProps extends Omit<Omit<ComponentPropsWithoutRef<'texta
52
59
  *
53
60
  *
54
61
  */
55
- export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
62
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -21,6 +21,7 @@
21
21
  import React, { type ReactNode } from 'react';
22
22
  import { toast as sonnerToast } from 'sonner';
23
23
  import { type ExternalToast as SonnerExternalToast, type ToasterProps as SonnerToasterProps } from './sonner-types';
24
+ import { type HtmlAttributes } from '../_common/types';
24
25
  type ToastVariants = 'neutral' | 'success' | 'danger' | 'loading-spinner' | 'progress-bar';
25
26
  type ToastCommandVariants = 'neutral' | 'success' | 'danger' | 'loadingSpinner' | 'progressBar';
26
27
  type ToastId = string | number;
@@ -46,6 +47,8 @@ interface BaseToastProps {
46
47
  /** If a dev wishes to set the underlying framework props (Sonner Toast).
47
48
  * https://sonner.emilkowal.ski/toast#api-reference */
48
49
  sonnerToastProps?: SonnerExternalToast;
50
+ /** HTML attributes */
51
+ htmlAttributes?: HtmlAttributes<'div'>;
49
52
  }
50
53
  interface ToastNeutralProps extends BaseToastProps {
51
54
  icon?: ReactNode;
@@ -0,0 +1,80 @@
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 Placement } from '@floating-ui/react';
22
+ import React, { type CSSProperties } from 'react';
23
+ import { Typography } from '../typography';
24
+ import { type HtmlAttributes } from '../_common/types';
25
+ export interface TooltipProps {
26
+ children: React.ReactNode;
27
+ isDisabled?: boolean;
28
+ isInitialOpen?: boolean;
29
+ placement?: Placement;
30
+ isOpen?: boolean;
31
+ type: 'simple' | 'rich';
32
+ onOpenChange?: (open: boolean) => void;
33
+ }
34
+ export declare function Tooltip({ children, isDisabled, type, isInitialOpen, placement, isOpen, onOpenChange, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
35
+ export declare namespace Tooltip {
36
+ var Content: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
37
+ var Trigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLElement>>;
38
+ var Header: ({ children, className, passThroughProps, }: TooltipHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
39
+ var Body: ({ children, className, passThroughProps, }: TooltipBodyProps) => import("react/jsx-runtime").JSX.Element | null;
40
+ var Actions: React.ForwardRefExoticComponent<ToolTipActionsProps & React.RefAttributes<HTMLDivElement>>;
41
+ var Action: ({ children, className, onClick, htmlAttributes, }: TooltipActionProps) => import("react/jsx-runtime").JSX.Element | null;
42
+ var ActionClose: React.ForwardRefExoticComponent<TooltipActionCloseProps & React.RefAttributes<HTMLButtonElement>>;
43
+ }
44
+ export interface TooltipTriggerProps {
45
+ children: React.ReactNode;
46
+ hasButtonWrapper?: boolean;
47
+ className?: string;
48
+ htmlAttributes?: HtmlAttributes<'button'>;
49
+ }
50
+ export interface TooltipContentProps {
51
+ children: React.ReactNode;
52
+ className?: string;
53
+ style?: CSSProperties;
54
+ htmlAttributes?: HtmlAttributes<'div'>;
55
+ }
56
+ export type TooltipHeaderProps = {
57
+ children: React.ReactNode;
58
+ className?: string;
59
+ passThroughProps?: Partial<React.ComponentPropsWithoutRef<typeof Typography>>;
60
+ };
61
+ export type TooltipBodyProps = {
62
+ children: React.ReactNode;
63
+ className?: string;
64
+ passThroughProps?: Partial<React.ComponentPropsWithoutRef<typeof Typography>>;
65
+ };
66
+ export interface ToolTipActionsProps {
67
+ children: React.ReactNode;
68
+ className?: string;
69
+ htmlAttributes?: HtmlAttributes<'div'>;
70
+ }
71
+ export type TooltipActionProps = {
72
+ children: React.ReactNode;
73
+ className?: string;
74
+ onClick?: () => void;
75
+ htmlAttributes?: HtmlAttributes<'button'>;
76
+ };
77
+ export type TooltipActionCloseProps = {
78
+ className?: string;
79
+ htmlAttributes?: HtmlAttributes<'button'>;
80
+ };
@@ -19,4 +19,3 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  export * from './Tooltip';
22
- export * from './Tip';
@@ -0,0 +1,38 @@
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
+
22
+ import { type Placement, type UseInteractionsReturn, type ReferenceType, type UseFloatingReturn } from '@floating-ui/react';
23
+ export interface TooltipOptions {
24
+ isInitialOpen?: boolean;
25
+ placement?: Placement;
26
+ isOpen?: boolean;
27
+ onOpenChange?: (open: boolean) => void;
28
+ type?: 'simple' | 'rich';
29
+ }
30
+ export declare function useTooltip({ isInitialOpen, placement, isOpen: controlledOpen, onOpenChange: setControlledOpen, type, }?: TooltipOptions): {
31
+ isOpen: boolean;
32
+ setOpen: (open: boolean) => void;
33
+ type: 'simple' | 'rich';
34
+ } & UseInteractionsReturn & UseFloatingReturn<ReferenceType>;
35
+ type ContextType = ReturnType<typeof useTooltip> | null;
36
+ export declare const TooltipContext: import("react").Context<ContextType>;
37
+ export declare const useTooltipContext: () => ReturnType<typeof useTooltip>;
38
+ export {};
@@ -19,15 +19,19 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
+ import React from 'react';
22
23
  import { type ItemChangedReason, type TreeItem, type TreeItemComponent } from './tree-view-types';
24
+ import { type HtmlAttributes } from '../_common/types';
23
25
  export interface TreeViewProps<T extends Record<string, unknown>, E extends HTMLElement> extends React.HTMLAttributes<HTMLOListElement> {
24
26
  items: TreeItem<T>[];
25
27
  onItemsChanged: (newItems: TreeItem<T>[], itemChangedReason: ItemChangedReason<T>) => void;
26
28
  TreeItemComponent?: TreeItemComponent<T, E>;
29
+ /** HTML attributes */
30
+ htmlAttributes?: HtmlAttributes<'ol'>;
27
31
  }
28
32
  export declare const TreeView: {
29
- <T extends Record<string, unknown>, E extends HTMLElement>({ items, TreeItemComponent, onItemsChanged, ...rest }: TreeViewProps<T, E>): import("react/jsx-runtime").JSX.Element;
33
+ <T extends Record<string, unknown>, E extends HTMLElement>({ items, TreeItemComponent, onItemsChanged, htmlAttributes, }: TreeViewProps<T, E>): import("react/jsx-runtime").JSX.Element;
30
34
  TreeItemWrapper: <T extends Record<string, unknown>>(props: import("./tree-view-types").TreeItemComponentProps<T> & {
31
- children?: import("react").ReactNode | undefined;
32
- } & import("react").RefAttributes<HTMLElement>) => import("react").ReactNode;
35
+ children?: React.ReactNode | undefined;
36
+ } & React.RefAttributes<HTMLElement>) => React.ReactNode;
33
37
  };
@@ -20,7 +20,7 @@
20
20
  */
21
21
  import { type UniqueIdentifier } from '@dnd-kit/core';
22
22
  import { type RefAttributes } from 'react';
23
- import { type IconButtonProps } from '../button';
23
+ import { type IconButton } from '../button';
24
24
  export type TreeItem<T> = {
25
25
  id: UniqueIdentifier;
26
26
  canHaveSubItems: false;
@@ -41,7 +41,7 @@ export type TextItemData = {
41
41
  onTextClick?: () => void;
42
42
  actions: {
43
43
  icon: React.ReactNode;
44
- buttonProps: Omit<IconButtonProps, 'children'>;
44
+ buttonProps: Omit<React.ComponentPropsWithoutRef<typeof IconButton>, 'children' | 'as'>;
45
45
  }[];
46
46
  };
47
47
  export type DefaultTreeItem = TreeItem<TextItemData>;
@@ -19,8 +19,19 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import { type AsType, type ConditionalTypography, type TypographyVariants } from './types';
23
- export declare const Typography: <TVar extends TypographyVariants, TAs extends AsType = undefined>(props: {
24
- as?: TAs;
25
- variant: TVar;
26
- } & ConditionalTypography<TAs, TVar>) => import("react/jsx-runtime").JSX.Element;
22
+ import { type TypographyVariants } from './types';
23
+ import { type HtmlAttributes, type PolymorphicComponentPropsWithRef } from '../_common/types';
24
+ export type TypographyProps<T extends TypographyVariants> = {
25
+ variant: T;
26
+ className?: string;
27
+ children?: React.ReactNode;
28
+ htmlAttributes?: HtmlAttributes<'span'>;
29
+ } & ({
30
+ as: 'a';
31
+ href: string;
32
+ } | {
33
+ as?: React.ElementType;
34
+ });
35
+ type TypographyComponent = <V extends TypographyVariants, T extends React.ElementType>(props: PolymorphicComponentPropsWithRef<T, TypographyProps<V>>) => React.ReactNode | null;
36
+ export declare const Typography: TypographyComponent;
37
+ export {};
@@ -19,6 +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
+ import { type HtmlAttributes } from '../_common/types';
22
23
  /**
23
24
  *
24
25
  *
@@ -33,6 +34,8 @@ type CommonProps = {
33
34
  rightMenu?: React.ReactNode;
34
35
  isElevated?: boolean;
35
36
  children: React.ReactNode;
37
+ /** HTML attributes */
38
+ htmlAttributes?: HtmlAttributes<'div'>;
36
39
  };
37
40
  /**
38
41
  *
@@ -18,14 +18,22 @@
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
-
22
- import { type ElementBase } from '../helpers';
23
- export declare const Horizontal: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps, "type">) => import("react/jsx-runtime").JSX.Element;
24
- export declare const Vertical: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps, "type">) => import("react/jsx-runtime").JSX.Element;
25
- export declare const Footer: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps, "type">) => import("react/jsx-runtime").JSX.Element;
26
- export interface WizardProps extends ElementBase<HTMLDivElement> {
27
- type?: 'horizontal' | 'vertical' | 'footer';
28
- activeStep: number;
29
- steps: (string | JSX.Element)[];
21
+ import React from 'react';
22
+ import { type PolymorphicComponentPropsWithRef } from '../_common/types';
23
+ interface Step {
24
+ content: string | JSX.Element;
25
+ status?: 'default' | 'error';
30
26
  }
31
- export declare const Wizard: ({ type, activeStep, steps, ...restProps }: WizardProps) => import("react/jsx-runtime").JSX.Element;
27
+ export interface WizardProps {
28
+ orientation?: 'horizontal' | 'vertical';
29
+ size?: 'small' | 'large';
30
+ style?: React.CSSProperties;
31
+ className?: string;
32
+ activeStepIndex: number;
33
+ steps: Step[];
34
+ }
35
+ type WizardComponent = <T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, WizardProps>) => React.ReactNode | null;
36
+ export declare const Wizard: WizardComponent;
37
+ type WizardSmallComponent = <T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, Omit<WizardProps, 'size'>>) => React.ReactNode | null;
38
+ export declare const WizardSmall: WizardSmallComponent;
39
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "2.16.25",
3
+ "version": "3.0.0-alpha-4904fb7",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -44,55 +44,57 @@
44
44
  "@playwright/experimental-ct-react": "1.45.0",
45
45
  "@playwright/test": "1.45.0",
46
46
  "@svgr/cli": "6.5.1",
47
+ "@types/d3": "7.4.3",
48
+ "@types/d3-shape": "3.1.6",
47
49
  "@types/react": "18.2.18",
48
- "@types/react-datepicker": "^4.11.2",
50
+ "@types/react-datepicker": "6.2.0",
49
51
  "@types/react-dom": "18.2.7",
50
- "@types/react-syntax-highlighter": "^15.5.5",
51
- "@types/react-table": "^7.7.10",
52
- "@types/sinon": "17",
53
- "@types/tinycolor2": "^1.4.3",
54
- "@vitejs/plugin-react": "4.2.1",
55
- "jsdom": "22.1.0",
52
+ "@types/react-syntax-highlighter": "15.5.13",
53
+ "@types/react-table": "7.7.20",
54
+ "@types/sinon": "17.0.3",
55
+ "@types/tinycolor2": "1.4.6",
56
+ "@vitejs/plugin-react": "4.3.2",
57
+ "jsdom": "25.0.1",
56
58
  "react": "18.2.0",
57
- "react-select-event": "^5.5.0",
58
- "resize-observer-polyfill": "^1.5.1",
59
- "sinon": "17.0.1",
59
+ "resize-observer-polyfill": "1.5.1",
60
+ "sinon": "19.0.2",
60
61
  "ts-node": "10.9.2",
61
- "typescript": "5.4.3",
62
- "vitest": "1.3.1"
62
+ "typescript": "5.5.4",
63
+ "vitest": "2.1.2"
63
64
  },
64
65
  "peerDependencies": {
65
- "@heroicons/react": "2.0.18",
66
+ "@heroicons/react": "2.1.5",
67
+ "@tanstack/react-table": "8.20.5",
66
68
  "react": ">=16.8.0",
67
- "react-dom": ">=16.8.0"
69
+ "react-dom": ">=16.8.0",
70
+ "@neo4j-ndl/base": "^3.0.0-alpha-4904fb7"
68
71
  },
69
72
  "dependencies": {
70
73
  "@dnd-kit/core": "6.1.0",
71
74
  "@dnd-kit/sortable": "8.0.0",
72
- "@floating-ui/react": "0.25.1",
73
- "@floating-ui/react-dom": "2.0.1",
74
- "@heroicons/react": "2.0.18",
75
- "@neo4j-cypher/react-codemirror": "^1.0.1",
75
+ "@floating-ui/react": "0.26.24",
76
+ "@floating-ui/react-dom": "2.1.2",
77
+ "@heroicons/react": "2.1.5",
76
78
  "@table-nav/core": "0.0.7",
77
79
  "@table-nav/react": "0.0.7",
78
- "@tanstack/react-table": "8.11.8",
79
- "classnames": "^2.3.1",
80
- "date-fns": "^2.30.0",
81
- "detect-browser": "^5.3.0",
82
- "re-resizable": "^6.9.11",
83
- "react-aria": "3.34.3",
84
- "react-datepicker": "^4.14.1",
85
- "react-dropzone": "^14.0.0",
86
- "react-focus-lock": "2.11.2",
87
- "react-select": "5.7.0",
88
- "react-stately": "3.29.1",
89
- "react-syntax-highlighter": "^15.5.0",
90
- "react-table": "^7.7.0",
91
- "react-use": "^17.4.0",
80
+ "classnames": "2.5.1",
81
+ "d3": "7.9.0",
82
+ "d3-shape": "3.2.0",
83
+ "date-fns": "4.1.0",
84
+ "detect-browser": "5.3.0",
85
+ "re-resizable": "6.10.0",
86
+ "react-aria": "3.35.0",
87
+ "react-datepicker": "6.9.0",
88
+ "react-dropzone": "14.2.9",
89
+ "react-focus-lock": "2.13.2",
90
+ "react-select": "5.8.1",
91
+ "react-stately": "3.33.0",
92
+ "react-syntax-highlighter": "15.5.0",
93
+ "react-use": "17.5.1",
92
94
  "sonner": "1.4.41",
93
- "tinycolor2": "^1.4.2",
94
- "usehooks-ts": "2.9.1",
95
- "@neo4j-ndl/base": "^2.12.14"
95
+ "tinycolor2": "1.6.0",
96
+ "usehooks-ts": "3.1.0",
97
+ "@neo4j-ndl/base": "3.0.0-alpha-4904fb7"
96
98
  },
97
99
  "scripts": {
98
100
  "generate-component": "node ./scripts/component-generator.js",
@@ -111,7 +113,7 @@
111
113
  "generate:all": "pnpm generate:custom-icons && pnpm generate:hero-icons",
112
114
  "generate:custom-icons": "svgr --template svgr-template.js --index-template svgr-index-template.js --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --svg-props className=ndl-icon-svg --jsx-runtime 'automatic' --out-dir ./src/icons/generated/custom -- ../base/src/icons",
113
115
  "generate:hero-icons": "ts-node ./scripts/generatedHeroIcons.ts",
114
- "nuke:local": "npx --yes rimraf@5.0.5 .tsbuildinfo node_modules playwright-report test-results playwright/.cache",
116
+ "nuke:local": "../../scripts/cc.sh '{yellow ☢️} Nuking react! {yellow ☢️}' && pnpm dlx rimraf@5.0.5 .tsbuildinfo node_modules lib playwright-report test-results playwright/.cache",
115
117
  "test:all-package-scripts": "pnpm run build && pnpm run generate-component test-component && pnpm run pretest && pnpm run prepare && pnpm run format && pnpm run lint && pnpm run generate:custom-icons && pnpm run nuke:local"
116
118
  }
117
119
  }
@@ -1,105 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __rest = (this && this.__rest) || function (s, e) {
26
- var t = {};
27
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
- t[p] = s[p];
29
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
- t[p[i]] = s[p[i]];
33
- }
34
- return t;
35
- };
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.CodeBlock = void 0;
38
- const jsx_runtime_1 = require("react/jsx-runtime");
39
- /**
40
- *
41
- * Copyright (c) "Neo4j"
42
- * Neo4j Sweden AB [http://neo4j.com]
43
- *
44
- * This file is part of Neo4j.
45
- *
46
- * Neo4j is free software: you can redistribute it and/or modify
47
- * it under the terms of the GNU General Public License as published by
48
- * the Free Software Foundation, either version 3 of the License, or
49
- * (at your option) any later version.
50
- *
51
- * This program is distributed in the hope that it will be useful,
52
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
53
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
54
- * GNU General Public License for more details.
55
- *
56
- * You should have received a copy of the GNU General Public License
57
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
58
- */
59
- const react_1 = __importStar(require("react"));
60
- const react_syntax_highlighter_1 = require("react-syntax-highlighter");
61
- const prism_1 = require("react-syntax-highlighter/dist/cjs/styles/prism");
62
- const CodeBlockWrapper_1 = require("../_common/CodeBlockWrapper");
63
- exports.CodeBlock = react_1.default.forwardRef(function CodeBlock(_a, ref) {
64
- var { maxHeight, code, language, showLineNumbers, theme, headerTitle, actions, disabled } = _a, restProps = __rest(_a, ["maxHeight", "code", "language", "showLineNumbers", "theme", "headerTitle", "actions", "disabled"]);
65
- const [shouldShowExpandButton, setShouldShowExpandButton] = (0, react_1.useState)(maxHeight !== undefined);
66
- const getTheme = () => {
67
- switch (theme) {
68
- case 'vs':
69
- return prism_1.vs;
70
- case 'base16-ateliersulphurpool.light':
71
- return prism_1.base16AteliersulphurpoolLight;
72
- case 'coy':
73
- return prism_1.coy;
74
- case 'duotone-light':
75
- return prism_1.duotoneLight;
76
- case 'ghcolors':
77
- return prism_1.ghcolors;
78
- case 'prism':
79
- return prism_1.prism;
80
- case 'solarizedlight':
81
- return prism_1.solarizedlight;
82
- default:
83
- return prism_1.base16AteliersulphurpoolLight;
84
- }
85
- };
86
- const calculateRightPadding = (() => {
87
- if (headerTitle === undefined || headerTitle === '') {
88
- const expandButtonCount = shouldShowExpandButton ? 1 : 0;
89
- const actionCount = (actions === null || actions === void 0 ? void 0 : actions.length) || 0;
90
- return Math.max(actionCount * 36, expandButtonCount * 36) + 8;
91
- }
92
- })();
93
- return ((0, jsx_runtime_1.jsx)(CodeBlockWrapper_1.CodeBlockWrapper, Object.assign({}, restProps, { ref: ref, maxHeight: maxHeight, code: code, headerTitle: headerTitle, disabled: disabled, actions: actions, shouldShowExpandButton: shouldShowExpandButton, setShouldShowExpandButton: setShouldShowExpandButton, children: (0, jsx_runtime_1.jsx)(react_syntax_highlighter_1.PrismAsyncLight, { language: language, style: Object.assign(Object.assign({}, getTheme()), { 'pre[class*="language-"]': {
94
- color: 'rgb(var(--theme-palette-neutral-text-default))',
95
- lineHeight: '1',
96
- width: 'fit-content',
97
- border: 0,
98
- padding: `0 ${calculateRightPadding}px 0.75em 0.75em`,
99
- } }),
100
- // Turn on 'showLineNumbers' & 'wrapLongLines' at the same time, the display is wrong
101
- // https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/402
102
- // wrapLongLines
103
- codeTagProps: { className: 'n-code' }, showLineNumbers: showLineNumbers, children: code }) })));
104
- });
105
- //# sourceMappingURL=CodeBlock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeBlock.js","sourceRoot":"","sources":["../../../src/code-block/CodeBlock.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,+CAAwC;AACxC,uEAAgF;AAChF,0EAQwD;AAExD,kEAA+D;AAwBlD,QAAA,SAAS,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,SAAS,CAC1D,EAUiB,EACjB,GAAG;QAXH,EACE,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,OAEO,EADZ,SAAS,cATd,mGAUC,CADa;IAId,MAAM,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,GAAG,IAAA,gBAAQ,EAClE,SAAS,KAAK,SAAS,CACxB,CAAC;IAEF,MAAM,QAAQ,GAAG,GAAG,EAAE;QACpB,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,IAAI;gBACP,OAAO,UAAE,CAAC;YACZ,KAAK,iCAAiC;gBACpC,OAAO,qCAA6B,CAAC;YACvC,KAAK,KAAK;gBACR,OAAO,WAAG,CAAC;YACb,KAAK,eAAe;gBAClB,OAAO,oBAAY,CAAC;YACtB,KAAK,UAAU;gBACb,OAAO,gBAAQ,CAAC;YAClB,KAAK,OAAO;gBACV,OAAO,aAAK,CAAC;YACf,KAAK,gBAAgB;gBACnB,OAAO,sBAAc,CAAC;YACxB;gBACE,OAAO,qCAA6B,CAAC;QACzC,CAAC;IACH,CAAC,CAAC;IACF,MAAM,qBAAqB,GAAG,CAAC,GAAG,EAAE;QAClC,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,EAAE,EAAE,CAAC;YACpD,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACzD,MAAM,WAAW,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,KAAI,CAAC,CAAC;YACzC,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,EAAE,EAAE,iBAAiB,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;QAChE,CAAC;IACH,CAAC,CAAC,EAAE,CAAC;IAEL,OAAO,CACL,uBAAC,mCAAgB,oBACX,SAAS,IACb,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,sBAAsB,EAAE,sBAAsB,EAC9C,yBAAyB,EAAE,yBAAyB,YAEpD,uBAAC,0CAAiB,IAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,kCACA,QAAQ,EAAE,KACb,yBAAyB,EAAE;oBACzB,KAAK,EAAE,gDAAgD;oBACvD,UAAU,EAAE,GAAG;oBACf,KAAK,EAAE,aAAa;oBACpB,MAAM,EAAE,CAAC;oBACT,OAAO,EAAE,KAAK,qBAAqB,kBAAkB;iBACtD;YAEH,qFAAqF;YACrF,kFAAkF;YAClF,gBAAgB;YAChB,YAAY,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EACrC,eAAe,EAAE,eAAe,YAE/B,IAAI,GACa,IACH,CACpB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/code-block/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,8CAA4B"}