@neo4j-ndl/react 1.10.7 → 2.0.0-alpha-3f8358d

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 (380) hide show
  1. package/lib/LICENSES.txt +2105 -67
  2. package/lib/NOTICE.txt +32 -31
  3. package/lib/cjs/_common/CodeBlockWrapper.js +6 -6
  4. package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
  5. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +1 -1
  6. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  7. package/lib/cjs/accordion/Accordion.js +10 -9
  8. package/lib/cjs/accordion/Accordion.js.map +1 -1
  9. package/lib/cjs/banner/Banner.js +10 -7
  10. package/lib/cjs/banner/Banner.js.map +1 -1
  11. package/lib/cjs/button/Button.js +1 -1
  12. package/lib/cjs/button/Button.js.map +1 -1
  13. package/lib/cjs/button/IconButton.js +1 -1
  14. package/lib/cjs/button/IconButton.js.map +1 -1
  15. package/lib/cjs/button/IconButtonArray.js +1 -1
  16. package/lib/cjs/button/IconButtonArray.js.map +1 -1
  17. package/lib/cjs/checkbox/Checkbox.js.map +1 -1
  18. package/lib/cjs/code-block/CodeBlock.js +3 -3
  19. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  20. package/lib/cjs/context-menu/ContextMenu.js +34 -20
  21. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  22. package/lib/cjs/context-menu/SafeArea.js +6 -6
  23. package/lib/cjs/context-menu/SafeArea.js.map +1 -1
  24. package/lib/cjs/cypher-code-block/CypherCodeBlock.js +1 -1
  25. package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +1 -1
  26. package/lib/cjs/data-grid/Components.js +364 -0
  27. package/lib/cjs/data-grid/Components.js.map +1 -0
  28. package/lib/cjs/data-grid/DataGrid.js +98 -0
  29. package/lib/cjs/data-grid/DataGrid.js.map +1 -0
  30. package/lib/cjs/{table-deprecated/hooks/hookCallbackTypes.js → data-grid/DataGridContext.js} +12 -1
  31. package/lib/cjs/data-grid/DataGridContext.js.map +1 -0
  32. package/lib/cjs/data-grid/helpers.js +94 -0
  33. package/lib/cjs/data-grid/helpers.js.map +1 -0
  34. package/lib/cjs/data-grid/index.js +57 -0
  35. package/lib/cjs/data-grid/index.js.map +1 -0
  36. package/lib/cjs/date-picker/DatePicker.js +5 -5
  37. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  38. package/lib/cjs/dialog/Dialog.js +10 -9
  39. package/lib/cjs/dialog/Dialog.js.map +1 -1
  40. package/lib/cjs/drawer/Drawer.js +6 -6
  41. package/lib/cjs/drawer/Drawer.js.map +1 -1
  42. package/lib/cjs/dropdown/Dropdown.js +17 -17
  43. package/lib/cjs/dropdown/Dropdown.js.map +1 -1
  44. package/lib/cjs/dropdown/Overrides.js +4 -4
  45. package/lib/cjs/dropdown/Overrides.js.map +1 -1
  46. package/lib/cjs/{drag-and-drop/DragAndDrop.js → dropzone/Dropzone.js} +7 -14
  47. package/lib/cjs/dropzone/Dropzone.js.map +1 -0
  48. package/lib/cjs/dropzone/icons/CSV-file.js.map +1 -0
  49. package/lib/cjs/dropzone/icons/Cloud.js +27 -0
  50. package/lib/cjs/dropzone/icons/Cloud.js.map +1 -0
  51. package/lib/cjs/{drag-and-drop → dropzone}/icons/File.js +1 -1
  52. package/lib/cjs/dropzone/icons/File.js.map +1 -0
  53. package/lib/cjs/{drag-and-drop → dropzone}/icons/InvalidFile.js +1 -1
  54. package/lib/cjs/dropzone/icons/InvalidFile.js.map +1 -0
  55. package/lib/cjs/{drag-and-drop → dropzone}/index.js +3 -3
  56. package/lib/cjs/dropzone/index.js.map +1 -0
  57. package/lib/cjs/graph-label/GraphLabel.js +11 -11
  58. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  59. package/lib/cjs/graph-label/color.js +8 -8
  60. package/lib/cjs/graph-label/color.js.map +1 -1
  61. package/lib/cjs/icons/generated/custom/NomLevel.js +1 -1
  62. package/lib/cjs/icons/generated/custom/NomLevel.js.map +1 -1
  63. package/lib/cjs/icons/generated/custom/Underline.js +1 -1
  64. package/lib/cjs/icons/generated/custom/Underline.js.map +1 -1
  65. package/lib/cjs/index.js +5 -4
  66. package/lib/cjs/index.js.map +1 -1
  67. package/lib/cjs/label/Label.js +17 -8
  68. package/lib/cjs/label/Label.js.map +1 -1
  69. package/lib/cjs/loading-spinner/LoadingSpinner.js +1 -1
  70. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  71. package/lib/cjs/modal/Modal.js +6 -19
  72. package/lib/cjs/modal/Modal.js.map +1 -1
  73. package/lib/cjs/popover/Popover.js +8 -4
  74. package/lib/cjs/popover/Popover.js.map +1 -1
  75. package/lib/cjs/progress-bar/ProgressBar.js +1 -1
  76. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
  77. package/lib/cjs/{view-selector/ViewSelector.js → segmented-control/SegmentedControl.js} +21 -14
  78. package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -0
  79. package/lib/cjs/{table-deprecated/hooks → segmented-control}/index.js +1 -3
  80. package/lib/cjs/segmented-control/index.js.map +1 -0
  81. package/lib/cjs/side-navigation/SideNavigation.js +22 -36
  82. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  83. package/lib/cjs/status-indicator/StatusIndicator.js +5 -5
  84. package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
  85. package/lib/cjs/table/Components.js +18 -20
  86. package/lib/cjs/table/Components.js.map +1 -1
  87. package/lib/cjs/table/Table.js +11 -3
  88. package/lib/cjs/table/Table.js.map +1 -1
  89. package/lib/cjs/tabs/Tabs.js +18 -7
  90. package/lib/cjs/tabs/Tabs.js.map +1 -1
  91. package/lib/cjs/tag/Tag.js +1 -1
  92. package/lib/cjs/tag/Tag.js.map +1 -1
  93. package/lib/cjs/text-input/TextInput.js +3 -4
  94. package/lib/cjs/text-input/TextInput.js.map +1 -1
  95. package/lib/cjs/textarea/Textarea.js +3 -4
  96. package/lib/cjs/textarea/Textarea.js.map +1 -1
  97. package/lib/cjs/theme/ThemeProvider.js +99 -0
  98. package/lib/cjs/theme/ThemeProvider.js.map +1 -0
  99. package/lib/cjs/{view-selector → theme}/index.js +1 -1
  100. package/lib/cjs/theme/index.js.map +1 -0
  101. package/lib/cjs/tip/Tip.js +193 -0
  102. package/lib/cjs/tip/Tip.js.map +1 -0
  103. package/lib/cjs/{tooltip → tip}/Tooltip.js +1 -1
  104. package/lib/cjs/tip/Tooltip.js.map +1 -0
  105. package/lib/cjs/{table-deprecated → tip}/index.js +4 -4
  106. package/lib/cjs/tip/index.js.map +1 -0
  107. package/lib/cjs/typography/Typography.js +1 -1
  108. package/lib/cjs/typography/Typography.js.map +1 -1
  109. package/lib/cjs/widget/Widget.js +1 -1
  110. package/lib/cjs/widget/Widget.js.map +1 -1
  111. package/lib/cjs/wizard/Wizard.js +6 -6
  112. package/lib/cjs/wizard/Wizard.js.map +1 -1
  113. package/lib/esm/_common/CodeBlockWrapper.js +6 -6
  114. package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
  115. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +1 -1
  116. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  117. package/lib/esm/accordion/Accordion.js +11 -12
  118. package/lib/esm/accordion/Accordion.js.map +1 -1
  119. package/lib/esm/banner/Banner.js +9 -5
  120. package/lib/esm/banner/Banner.js.map +1 -1
  121. package/lib/esm/button/Button.js +1 -1
  122. package/lib/esm/button/Button.js.map +1 -1
  123. package/lib/esm/button/IconButton.js +1 -1
  124. package/lib/esm/button/IconButton.js.map +1 -1
  125. package/lib/esm/button/IconButtonArray.js +1 -1
  126. package/lib/esm/button/IconButtonArray.js.map +1 -1
  127. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  128. package/lib/esm/code-block/CodeBlock.js +3 -3
  129. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  130. package/lib/esm/context-menu/ContextMenu.js +33 -19
  131. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  132. package/lib/esm/context-menu/SafeArea.js +6 -6
  133. package/lib/esm/context-menu/SafeArea.js.map +1 -1
  134. package/lib/esm/cypher-code-block/CypherCodeBlock.js +1 -1
  135. package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +1 -1
  136. package/lib/esm/data-grid/Components.js +339 -0
  137. package/lib/esm/data-grid/Components.js.map +1 -0
  138. package/lib/esm/data-grid/DataGrid.js +92 -0
  139. package/lib/esm/data-grid/DataGrid.js.map +1 -0
  140. package/lib/esm/{table-deprecated/hooks/index.js → data-grid/DataGridContext.js} +10 -4
  141. package/lib/esm/data-grid/DataGridContext.js.map +1 -0
  142. package/lib/esm/data-grid/helpers.js +88 -0
  143. package/lib/esm/data-grid/helpers.js.map +1 -0
  144. package/lib/esm/{drag-and-drop → data-grid}/index.js +4 -1
  145. package/lib/esm/data-grid/index.js.map +1 -0
  146. package/lib/esm/date-picker/DatePicker.js +5 -5
  147. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  148. package/lib/esm/dialog/Dialog.js +9 -8
  149. package/lib/esm/dialog/Dialog.js.map +1 -1
  150. package/lib/esm/drawer/Drawer.js +6 -6
  151. package/lib/esm/drawer/Drawer.js.map +1 -1
  152. package/lib/esm/dropdown/Dropdown.js +17 -17
  153. package/lib/esm/dropdown/Dropdown.js.map +1 -1
  154. package/lib/esm/dropdown/Overrides.js +4 -4
  155. package/lib/esm/dropdown/Overrides.js.map +1 -1
  156. package/lib/esm/{drag-and-drop/DragAndDrop.js → dropzone/Dropzone.js} +7 -14
  157. package/lib/esm/dropzone/Dropzone.js.map +1 -0
  158. package/lib/esm/dropzone/icons/CSV-file.js.map +1 -0
  159. package/lib/esm/dropzone/icons/Cloud.js +25 -0
  160. package/lib/esm/dropzone/icons/Cloud.js.map +1 -0
  161. package/lib/esm/dropzone/icons/File.js +25 -0
  162. package/lib/esm/dropzone/icons/File.js.map +1 -0
  163. package/lib/esm/dropzone/icons/InvalidFile.js +25 -0
  164. package/lib/esm/dropzone/icons/InvalidFile.js.map +1 -0
  165. package/lib/{types/table-deprecated/index.d.ts → esm/dropzone/index.js} +2 -2
  166. package/lib/esm/dropzone/index.js.map +1 -0
  167. package/lib/esm/graph-label/GraphLabel.js +11 -11
  168. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  169. package/lib/esm/graph-label/color.js +8 -8
  170. package/lib/esm/graph-label/color.js.map +1 -1
  171. package/lib/esm/icons/generated/custom/NomLevel.js +1 -1
  172. package/lib/esm/icons/generated/custom/NomLevel.js.map +1 -1
  173. package/lib/esm/icons/generated/custom/Underline.js +1 -1
  174. package/lib/esm/icons/generated/custom/Underline.js.map +1 -1
  175. package/lib/esm/index.js +5 -4
  176. package/lib/esm/index.js.map +1 -1
  177. package/lib/esm/label/Label.js +17 -8
  178. package/lib/esm/label/Label.js.map +1 -1
  179. package/lib/esm/loading-spinner/LoadingSpinner.js +1 -1
  180. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  181. package/lib/esm/modal/Modal.js +6 -18
  182. package/lib/esm/modal/Modal.js.map +1 -1
  183. package/lib/esm/popover/Popover.js +8 -4
  184. package/lib/esm/popover/Popover.js.map +1 -1
  185. package/lib/esm/progress-bar/ProgressBar.js +1 -1
  186. package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
  187. package/lib/esm/{view-selector/ViewSelector.js → segmented-control/SegmentedControl.js} +21 -14
  188. package/lib/esm/segmented-control/SegmentedControl.js.map +1 -0
  189. package/lib/esm/segmented-control/index.js +22 -0
  190. package/lib/esm/segmented-control/index.js.map +1 -0
  191. package/lib/esm/side-navigation/SideNavigation.js +21 -12
  192. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  193. package/lib/esm/status-indicator/StatusIndicator.js +5 -5
  194. package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
  195. package/lib/esm/table/Components.js +18 -20
  196. package/lib/esm/table/Components.js.map +1 -1
  197. package/lib/esm/table/Table.js +11 -3
  198. package/lib/esm/table/Table.js.map +1 -1
  199. package/lib/esm/tabs/Tabs.js +18 -7
  200. package/lib/esm/tabs/Tabs.js.map +1 -1
  201. package/lib/esm/tag/Tag.js +1 -1
  202. package/lib/esm/tag/Tag.js.map +1 -1
  203. package/lib/esm/text-input/TextInput.js +4 -5
  204. package/lib/esm/text-input/TextInput.js.map +1 -1
  205. package/lib/esm/textarea/Textarea.js +4 -5
  206. package/lib/esm/textarea/Textarea.js.map +1 -1
  207. package/lib/esm/theme/ThemeProvider.js +68 -0
  208. package/lib/esm/theme/ThemeProvider.js.map +1 -0
  209. package/lib/esm/{view-selector → theme}/index.js +1 -1
  210. package/lib/esm/theme/index.js.map +1 -0
  211. package/lib/esm/tip/Tip.js +183 -0
  212. package/lib/esm/tip/Tip.js.map +1 -0
  213. package/lib/esm/{tooltip → tip}/Tooltip.js +1 -1
  214. package/lib/esm/tip/Tooltip.js.map +1 -0
  215. package/lib/{types/tooltip/index.d.ts → esm/tip/index.js} +2 -2
  216. package/lib/esm/tip/index.js.map +1 -0
  217. package/lib/esm/typography/Typography.js +1 -1
  218. package/lib/esm/typography/Typography.js.map +1 -1
  219. package/lib/esm/widget/Widget.js +1 -1
  220. package/lib/esm/widget/Widget.js.map +1 -1
  221. package/lib/esm/wizard/Wizard.js +6 -6
  222. package/lib/esm/wizard/Wizard.js.map +1 -1
  223. package/lib/types/_common/coditionalWrap.d.ts +2 -2
  224. package/lib/types/accordion/Accordion.d.ts +12 -11
  225. package/lib/types/banner/Banner.d.ts +14 -10
  226. package/lib/types/button/Button.d.ts +1 -1
  227. package/lib/types/code-block/languages.d.ts +1 -1
  228. package/lib/types/context-menu/ContextMenu.d.ts +18 -18
  229. package/lib/types/context-menu/SafeArea.d.ts +1 -1
  230. package/lib/types/data-grid/Components.d.ts +94 -0
  231. package/lib/types/data-grid/DataGrid.d.ts +90 -0
  232. package/lib/types/data-grid/DataGridContext.d.ts +62 -0
  233. package/lib/types/{table-deprecated → data-grid}/helpers.d.ts +15 -21
  234. package/lib/types/{table-deprecated/hooks → data-grid}/index.d.ts +5 -3
  235. package/lib/types/dialog/Dialog.d.ts +12 -12
  236. package/lib/types/drawer/Drawer.d.ts +9 -9
  237. package/lib/types/dropdown/Overrides.d.ts +4 -5
  238. package/lib/types/dropdown/types.d.ts +5 -5
  239. package/lib/types/{drag-and-drop/DragAndDrop.d.ts → dropzone/Dropzone.d.ts} +4 -11
  240. package/lib/types/{drag-and-drop → dropzone}/icons/CSV-file.d.ts +1 -1
  241. package/lib/types/{drag-and-drop → dropzone}/icons/Cloud.d.ts +1 -1
  242. package/lib/types/{drag-and-drop → dropzone}/icons/File.d.ts +1 -1
  243. package/lib/types/{drag-and-drop → dropzone}/icons/InvalidFile.d.ts +1 -1
  244. package/lib/types/{drag-and-drop → dropzone}/index.d.ts +1 -1
  245. package/lib/types/graph-label/color.d.ts +3 -3
  246. package/lib/types/helpers/forwardRef.d.ts +7 -1
  247. package/lib/types/helpers/types.d.ts +1 -1
  248. package/lib/types/icons/generated/custom/AddNode.d.ts +1 -1
  249. package/lib/types/icons/generated/custom/AlignBottom.d.ts +1 -1
  250. package/lib/types/icons/generated/custom/AlignCenter.d.ts +1 -1
  251. package/lib/types/icons/generated/custom/AlignTop.d.ts +1 -1
  252. package/lib/types/icons/generated/custom/Bold.d.ts +1 -1
  253. package/lib/types/icons/generated/custom/Circle.d.ts +1 -1
  254. package/lib/types/icons/generated/custom/CollapseExpand.d.ts +1 -1
  255. package/lib/types/icons/generated/custom/CollapseExpandLeft.d.ts +1 -1
  256. package/lib/types/icons/generated/custom/CollapseExpandRight.d.ts +1 -1
  257. package/lib/types/icons/generated/custom/Configure.d.ts +1 -1
  258. package/lib/types/icons/generated/custom/DatabaseAddCircle.d.ts +1 -1
  259. package/lib/types/icons/generated/custom/Dbms.d.ts +1 -1
  260. package/lib/types/icons/generated/custom/Drag.d.ts +1 -1
  261. package/lib/types/icons/generated/custom/Expand.d.ts +1 -1
  262. package/lib/types/icons/generated/custom/ExternalLink.d.ts +1 -1
  263. package/lib/types/icons/generated/custom/FitToScreen.d.ts +1 -1
  264. package/lib/types/icons/generated/custom/FolderBookmark.d.ts +1 -1
  265. package/lib/types/icons/generated/custom/Heirarchy2.d.ts +1 -1
  266. package/lib/types/icons/generated/custom/Hierarchy1.d.ts +1 -1
  267. package/lib/types/icons/generated/custom/Hierarchy2.d.ts +1 -1
  268. package/lib/types/icons/generated/custom/Italic.d.ts +1 -1
  269. package/lib/types/icons/generated/custom/NomLevel.d.ts +1 -1
  270. package/lib/types/icons/generated/custom/Pin.d.ts +1 -1
  271. package/lib/types/icons/generated/custom/PlanView.d.ts +1 -1
  272. package/lib/types/icons/generated/custom/Presentation.d.ts +1 -1
  273. package/lib/types/icons/generated/custom/QueryBrowser.d.ts +1 -1
  274. package/lib/types/icons/generated/custom/ResizeCorner.d.ts +1 -1
  275. package/lib/types/icons/generated/custom/Rhombus.d.ts +1 -1
  276. package/lib/types/icons/generated/custom/ScienceMolecule.d.ts +1 -1
  277. package/lib/types/icons/generated/custom/Shrink.d.ts +1 -1
  278. package/lib/types/icons/generated/custom/SidebarLineLeft.d.ts +1 -1
  279. package/lib/types/icons/generated/custom/SidebarLineRight.d.ts +1 -1
  280. package/lib/types/icons/generated/custom/Square.d.ts +1 -1
  281. package/lib/types/icons/generated/custom/Status.d.ts +1 -1
  282. package/lib/types/icons/generated/custom/Text.d.ts +1 -1
  283. package/lib/types/icons/generated/custom/Triangle.d.ts +1 -1
  284. package/lib/types/icons/generated/custom/Underline.d.ts +1 -1
  285. package/lib/types/icons/generated/custom/VisualizeBloom.d.ts +1 -1
  286. package/lib/types/index.d.ts +5 -4
  287. package/lib/types/loading-spinner/LoadingSpinner.d.ts +1 -1
  288. package/lib/types/modal/Modal.d.ts +13 -6
  289. package/lib/types/popover/Popover.d.ts +11 -5
  290. package/lib/types/{view-selector/ViewSelector.d.ts → segmented-control/SegmentedControl.d.ts} +13 -19
  291. package/lib/{esm/table-deprecated/hooks/hookCallbackTypes.js → types/segmented-control/index.d.ts} +1 -2
  292. package/lib/types/side-navigation/SideNavigation.d.ts +13 -12
  293. package/lib/types/table/Components.d.ts +18 -18
  294. package/lib/types/table/Table.d.ts +23 -19
  295. package/lib/types/table/TableContext.d.ts +1 -1
  296. package/lib/types/tabs/Tabs.d.ts +8 -7
  297. package/lib/types/tag/Tag.d.ts +1 -1
  298. package/lib/types/text-input/TextInput.d.ts +5 -5
  299. package/lib/types/textarea/Textarea.d.ts +4 -4
  300. package/lib/types/theme/ThemeProvider.d.ts +54 -0
  301. package/lib/types/{view-selector → theme}/index.d.ts +1 -1
  302. package/lib/types/tip/Tip.d.ts +166 -0
  303. package/lib/types/{tooltip → tip}/Tooltip.d.ts +1 -1
  304. package/lib/types/tip/index.d.ts +22 -0
  305. package/lib/types/typography/Typography.d.ts +1 -2
  306. package/lib/types/typography/types.d.ts +6 -6
  307. package/lib/types/widget/Widget.d.ts +1 -1
  308. package/lib/types/wizard/Wizard.d.ts +4 -4
  309. package/package.json +19 -20
  310. package/CHANGELOG.md +0 -1273
  311. package/lib/cjs/drag-and-drop/DragAndDrop.js.map +0 -1
  312. package/lib/cjs/drag-and-drop/icons/CSV-file.js.map +0 -1
  313. package/lib/cjs/drag-and-drop/icons/Cloud.js +0 -27
  314. package/lib/cjs/drag-and-drop/icons/Cloud.js.map +0 -1
  315. package/lib/cjs/drag-and-drop/icons/File.js.map +0 -1
  316. package/lib/cjs/drag-and-drop/icons/InvalidFile.js.map +0 -1
  317. package/lib/cjs/drag-and-drop/index.js.map +0 -1
  318. package/lib/cjs/table-deprecated/Table.js +0 -157
  319. package/lib/cjs/table-deprecated/Table.js.map +0 -1
  320. package/lib/cjs/table-deprecated/TableNavigation.js +0 -51
  321. package/lib/cjs/table-deprecated/TableNavigation.js.map +0 -1
  322. package/lib/cjs/table-deprecated/helpers.js +0 -123
  323. package/lib/cjs/table-deprecated/helpers.js.map +0 -1
  324. package/lib/cjs/table-deprecated/hooks/hookCallbackTypes.js.map +0 -1
  325. package/lib/cjs/table-deprecated/hooks/index.js.map +0 -1
  326. package/lib/cjs/table-deprecated/hooks/useMultiRowSelect.js +0 -84
  327. package/lib/cjs/table-deprecated/hooks/useMultiRowSelect.js.map +0 -1
  328. package/lib/cjs/table-deprecated/hooks/useSingleRowSelect.js +0 -61
  329. package/lib/cjs/table-deprecated/hooks/useSingleRowSelect.js.map +0 -1
  330. package/lib/cjs/table-deprecated/index.js.map +0 -1
  331. package/lib/cjs/tooltip/SmartTooltip.js +0 -33
  332. package/lib/cjs/tooltip/SmartTooltip.js.map +0 -1
  333. package/lib/cjs/tooltip/Tip.js +0 -169
  334. package/lib/cjs/tooltip/Tip.js.map +0 -1
  335. package/lib/cjs/tooltip/Tooltip.js.map +0 -1
  336. package/lib/cjs/tooltip/index.js +0 -33
  337. package/lib/cjs/tooltip/index.js.map +0 -1
  338. package/lib/cjs/view-selector/ViewSelector.js.map +0 -1
  339. package/lib/cjs/view-selector/index.js.map +0 -1
  340. package/lib/esm/drag-and-drop/DragAndDrop.js.map +0 -1
  341. package/lib/esm/drag-and-drop/icons/CSV-file.js.map +0 -1
  342. package/lib/esm/drag-and-drop/icons/Cloud.js +0 -25
  343. package/lib/esm/drag-and-drop/icons/Cloud.js.map +0 -1
  344. package/lib/esm/drag-and-drop/icons/File.js +0 -25
  345. package/lib/esm/drag-and-drop/icons/File.js.map +0 -1
  346. package/lib/esm/drag-and-drop/icons/InvalidFile.js +0 -25
  347. package/lib/esm/drag-and-drop/icons/InvalidFile.js.map +0 -1
  348. package/lib/esm/drag-and-drop/index.js.map +0 -1
  349. package/lib/esm/table-deprecated/Table.js +0 -150
  350. package/lib/esm/table-deprecated/Table.js.map +0 -1
  351. package/lib/esm/table-deprecated/TableNavigation.js +0 -44
  352. package/lib/esm/table-deprecated/TableNavigation.js.map +0 -1
  353. package/lib/esm/table-deprecated/helpers.js +0 -116
  354. package/lib/esm/table-deprecated/helpers.js.map +0 -1
  355. package/lib/esm/table-deprecated/hooks/hookCallbackTypes.js.map +0 -1
  356. package/lib/esm/table-deprecated/hooks/index.js.map +0 -1
  357. package/lib/esm/table-deprecated/hooks/useMultiRowSelect.js +0 -82
  358. package/lib/esm/table-deprecated/hooks/useMultiRowSelect.js.map +0 -1
  359. package/lib/esm/table-deprecated/hooks/useSingleRowSelect.js +0 -57
  360. package/lib/esm/table-deprecated/hooks/useSingleRowSelect.js.map +0 -1
  361. package/lib/esm/table-deprecated/index.js +0 -23
  362. package/lib/esm/table-deprecated/index.js.map +0 -1
  363. package/lib/esm/tooltip/SmartTooltip.js +0 -28
  364. package/lib/esm/tooltip/SmartTooltip.js.map +0 -1
  365. package/lib/esm/tooltip/Tip.js +0 -141
  366. package/lib/esm/tooltip/Tip.js.map +0 -1
  367. package/lib/esm/tooltip/Tooltip.js.map +0 -1
  368. package/lib/esm/tooltip/index.js +0 -24
  369. package/lib/esm/tooltip/index.js.map +0 -1
  370. package/lib/esm/view-selector/ViewSelector.js.map +0 -1
  371. package/lib/esm/view-selector/index.js.map +0 -1
  372. package/lib/types/table-deprecated/Table.d.ts +0 -76
  373. package/lib/types/table-deprecated/TableNavigation.d.ts +0 -39
  374. package/lib/types/table-deprecated/hooks/hookCallbackTypes.d.ts +0 -27
  375. package/lib/types/table-deprecated/hooks/useMultiRowSelect.d.ts +0 -42
  376. package/lib/types/table-deprecated/hooks/useSingleRowSelect.d.ts +0 -37
  377. package/lib/types/tooltip/SmartTooltip.d.ts +0 -36
  378. package/lib/types/tooltip/Tip.d.ts +0 -62
  379. /package/lib/cjs/{drag-and-drop → dropzone}/icons/CSV-file.js +0 -0
  380. /package/lib/esm/{drag-and-drop → dropzone}/icons/CSV-file.js +0 -0
@@ -20,32 +20,26 @@
20
20
  */
21
21
  import React from 'react';
22
22
  import { type ElementBase } from '../helpers';
23
- /**
24
- *
25
- *
26
- * Types
27
- *
28
- *
29
- */
30
- declare type ViewSelectorID = string | number;
31
- export interface ViewSelectorProps<T extends ViewSelectorID> extends ElementBase {
23
+ type SegmentedControlID = string | number;
24
+ export interface SegmentedControlProps<T extends SegmentedControlID> extends ElementBase {
32
25
  /** Size of the selector */
33
26
  size?: 'small' | 'large';
34
- /** If selector items will include only icons */
35
- icons?: boolean;
27
+ /** If selector items will include only icons (makes controls rectangular) */
28
+ hasOnlyIcons?: boolean;
36
29
  /**
37
30
  * onChange function is more generic to support union type of strings as input
38
- * to help useState in components that uses Switch group with typesafety
31
+ * to help useState in components that uses Switch group with type-safety
39
32
  */
40
33
  onChange: (e: T) => void | ((e: React.SetStateAction<T>) => void);
41
34
  /** Currently selected option */
42
35
  selected: T;
43
36
  children: React.ReactNode | string;
44
37
  }
45
- export declare const ViewSelector: <T extends ViewSelectorID>(props: ViewSelectorProps<T> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
46
- export declare const ViewSelectorItem: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
47
- as?: string | React.ComponentType<any> | undefined;
48
- } & {
49
- value: string;
50
- } & React.RefAttributes<unknown>>;
51
- export {};
38
+ declare const SegmentedControl: (<T extends SegmentedControlID>(props: SegmentedControlProps<T> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null) & {
39
+ Item: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
40
+ as?: string | React.ComponentType<any> | undefined;
41
+ } & {
42
+ value: string;
43
+ } & React.RefAttributes<unknown>>;
44
+ };
45
+ export { SegmentedControl };
@@ -18,5 +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 {};
22
- //# sourceMappingURL=hookCallbackTypes.js.map
21
+ export * from './SegmentedControl';
@@ -20,7 +20,7 @@
20
20
  */
21
21
  import React from 'react';
22
22
  import { type ElementBase } from '../helpers';
23
- declare type SideNavigationPosition = 'left' | 'right';
23
+ type SideNavigationPosition = 'left' | 'right';
24
24
  export interface SideNavigationProps extends ElementBase<HTMLDivElement> {
25
25
  /** True if the menu is expanded. */
26
26
  expanded: boolean;
@@ -31,11 +31,7 @@ export interface SideNavigationProps extends ElementBase<HTMLDivElement> {
31
31
  /** Position. */
32
32
  position?: SideNavigationPosition;
33
33
  }
34
- export declare const SideNavigation: React.ForwardRefExoticComponent<SideNavigationProps & React.RefAttributes<HTMLDivElement>>;
35
- export declare type SideNavigationListProps = ElementBase<HTMLUListElement>;
36
- export declare const SideNavigationList: (props: Omit<React.HTMLProps<HTMLUListElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
37
- as?: string | React.ComponentType<any> | undefined;
38
- } & React.RefAttributes<HTMLUListElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
34
+ export type SideNavigationListProps = ElementBase<HTMLUListElement>;
39
35
  export interface SideNavigationItemProps extends ElementBase<HTMLAnchorElement> {
40
36
  icon?: React.ReactNode;
41
37
  children?: React.ReactNode;
@@ -43,9 +39,14 @@ export interface SideNavigationItemProps extends ElementBase<HTMLAnchorElement>
43
39
  /** Flag to indicate if the side navigation item can be selected or not */
44
40
  selectable?: boolean;
45
41
  }
46
- export declare const SideNavigationItem: (props: SideNavigationItemProps & React.RefAttributes<any>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
47
- export declare type SideNavigationGroupHeaderProps = ElementBase<HTMLParagraphElement>;
48
- export declare const SideNavigationGroupHeader: (props: Omit<React.HTMLProps<HTMLParagraphElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
49
- as?: string | React.ComponentType<any> | undefined;
50
- } & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
51
- export default SideNavigation;
42
+ export type SideNavigationGroupHeaderProps = ElementBase<HTMLParagraphElement>;
43
+ declare const SideNavigation: React.ForwardRefExoticComponent<SideNavigationProps & React.RefAttributes<HTMLDivElement>> & {
44
+ List: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLUListElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
45
+ as?: string | React.ComponentType<any> | undefined;
46
+ } & React.RefAttributes<HTMLUListElement>>;
47
+ GroupHeader: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLParagraphElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
48
+ as?: string | React.ComponentType<any> | undefined;
49
+ } & React.RefAttributes<HTMLParagraphElement>>;
50
+ Item: React.ForwardRefExoticComponent<SideNavigationItemProps & React.RefAttributes<any>>;
51
+ };
52
+ export { SideNavigation };
@@ -31,33 +31,33 @@ export interface CommonInnerProps<T = HTMLDivElement> {
31
31
  export interface ResizingBarProps<T extends RowData> extends CommonInnerProps<HTMLButtonElement> {
32
32
  header: HeaderType<T, unknown>;
33
33
  }
34
- declare const ResizingBar: <T extends unknown>({ header, children, innerProps, }: ResizingBarProps<T>) => JSX.Element;
35
- declare const Scrollable: ({ children, innerProps }: CommonInnerProps) => JSX.Element;
36
- declare const Header: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
34
+ declare const ResizingBar: <T extends unknown>({ header, children, innerProps, }: ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
35
+ declare const Scrollable: ({ children, innerProps }: CommonInnerProps) => import("react/jsx-runtime").JSX.Element;
36
+ declare const Header: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
37
37
  export interface SortingButtonProps {
38
38
  sortDirection: ReturnType<SortingColumn<any>['getIsSorted']>;
39
39
  children?: React.ReactNode;
40
40
  innerProps?: React.ComponentProps<'svg'>;
41
41
  }
42
- export declare const SortingButton: ({ sortDirection, children, innerProps, }: SortingButtonProps) => JSX.Element;
42
+ export declare const SortingButton: ({ sortDirection, children, innerProps, }: SortingButtonProps) => import("react/jsx-runtime").JSX.Element;
43
43
  export interface ColumnControlsProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
44
44
  cell: HeaderType<T, unknown>;
45
45
  controls: Array<React.ReactNode>;
46
46
  }
47
- export declare const ColumnControls: <T extends unknown>({ cell, controls, children, innerProps, }: ColumnControlsProps<T>) => JSX.Element;
47
+ export declare const ColumnControls: <T extends unknown>({ cell, controls, children, innerProps, }: ColumnControlsProps<T>) => import("react/jsx-runtime").JSX.Element;
48
48
  export interface HeaderCellProps<T> extends CommonInnerProps<HTMLDivElement> {
49
49
  cell: HeaderType<T, unknown>;
50
50
  }
51
- declare const HeaderCell: <T extends unknown>({ cell, children, innerProps, }: HeaderCellProps<T>) => JSX.Element;
52
- declare const Body: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
51
+ declare const HeaderCell: <T extends unknown>({ cell, children, innerProps, }: HeaderCellProps<T>) => import("react/jsx-runtime").JSX.Element;
52
+ declare const Body: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
53
53
  export interface BodyCellProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
54
54
  cell: Cell<T, unknown>;
55
55
  }
56
- declare const BodyCell: <T extends unknown>({ cell, children, innerProps, }: BodyCellProps<T>) => JSX.Element;
56
+ declare const BodyCell: <T extends unknown>({ cell, children, innerProps, }: BodyCellProps<T>) => import("react/jsx-runtime").JSX.Element;
57
57
  export interface BodyRowProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
58
58
  row: Row<T>;
59
59
  }
60
- declare const BodyRow: <T extends unknown>({ row, children, innerProps, }: BodyRowProps<T>) => JSX.Element;
60
+ declare const BodyRow: <T extends unknown>({ row, children, innerProps, }: BodyRowProps<T>) => import("react/jsx-runtime").JSX.Element;
61
61
  export interface TableResultProps extends CommonInnerProps<HTMLSpanElement> {
62
62
  manualPagination?: {
63
63
  from: number;
@@ -65,20 +65,20 @@ export interface TableResultProps extends CommonInnerProps<HTMLSpanElement> {
65
65
  totalRows: number;
66
66
  };
67
67
  }
68
- declare const TableResults: ({ children, innerProps, manualPagination, }: TableResultProps) => JSX.Element;
69
- declare const RowsPerPage: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
68
+ declare const TableResults: ({ children, innerProps, manualPagination, }: TableResultProps) => import("react/jsx-runtime").JSX.Element;
69
+ declare const RowsPerPage: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
70
70
  export interface PaginationArrowButtonProps extends CommonInnerProps<HTMLButtonElement> {
71
71
  action: 'previous' | 'next';
72
72
  }
73
- declare const PaginationArrowButton: ({ action, children, innerProps, }: PaginationArrowButtonProps) => JSX.Element;
73
+ declare const PaginationArrowButton: ({ action, children, innerProps, }: PaginationArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
74
74
  export interface PaginationNumericButtonProps extends CommonInnerProps<HTMLButtonElement> {
75
75
  currentIndex: number | string;
76
76
  isSelected: boolean;
77
77
  }
78
- declare const PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: PaginationNumericButtonProps) => JSX.Element;
79
- declare const PaginationNumericButtons: () => JSX.Element;
80
- declare const Pagination: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
81
- declare const Navigation: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
82
- declare const LoadingPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
83
- declare const NoDataPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => JSX.Element;
78
+ declare const PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: PaginationNumericButtonProps) => import("react/jsx-runtime").JSX.Element;
79
+ declare const PaginationNumericButtons: () => import("react/jsx-runtime").JSX.Element;
80
+ declare const Pagination: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
81
+ declare const Navigation: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
82
+ declare const LoadingPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
83
+ declare const NoDataPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
84
84
  export { ResizingBar, Header, Body, BodyCell, BodyRow, HeaderCell, Navigation, TableResults, RowsPerPage, Pagination, PaginationNumericButtons, PaginationArrowButton, PaginationNumericButton, NoDataPlaceholder, LoadingPlaceholder, Scrollable, };
@@ -28,25 +28,29 @@ import { type TableComponentsInterface } from './TableContext';
28
28
  *
29
29
  */
30
30
  export declare const TableComponents: {
31
- ResizingBar: <T extends unknown>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => JSX.Element;
32
- Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
33
- Body: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
34
- BodyCell: <T_1 extends unknown>({ cell, children, innerProps, }: import("./Components").BodyCellProps<T_1>) => JSX.Element;
35
- BodyRow: <T_2 extends unknown>({ row, children, innerProps, }: import("./Components").BodyRowProps<T_2>) => JSX.Element;
36
- HeaderCell: <T_3 extends unknown>({ cell, children, innerProps, }: import("./Components").HeaderCellProps<T_3>) => JSX.Element;
37
- ColumnControls: <T_4 extends unknown>({ cell, controls, children, innerProps, }: import("./Components").ColumnControlsProps<T_4>) => JSX.Element;
38
- Navigation: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
39
- TableResults: ({ children, innerProps, manualPagination, }: import("./Components").TableResultProps) => JSX.Element;
40
- RowsPerPage: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
41
- Pagination: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
42
- PaginationNumericButtons: () => JSX.Element;
43
- PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: import("./Components").PaginationNumericButtonProps) => JSX.Element;
44
- PaginationArrowButton: ({ action, children, innerProps, }: import("./Components").PaginationArrowButtonProps) => JSX.Element;
45
- LoadingPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
46
- NoDataPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
47
- SortingButton: ({ sortDirection, children, innerProps, }: import("./Components").SortingButtonProps) => JSX.Element;
48
- Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => JSX.Element;
31
+ ResizingBar: <T extends unknown>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
32
+ Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
33
+ Body: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
34
+ BodyCell: <T_1 extends unknown>({ cell, children, innerProps, }: import("./Components").BodyCellProps<T_1>) => import("react/jsx-runtime").JSX.Element;
35
+ BodyRow: <T_2 extends unknown>({ row, children, innerProps, }: import("./Components").BodyRowProps<T_2>) => import("react/jsx-runtime").JSX.Element;
36
+ HeaderCell: <T_3 extends unknown>({ cell, children, innerProps, }: import("./Components").HeaderCellProps<T_3>) => import("react/jsx-runtime").JSX.Element;
37
+ ColumnControls: <T_4 extends unknown>({ cell, controls, children, innerProps, }: import("./Components").ColumnControlsProps<T_4>) => import("react/jsx-runtime").JSX.Element;
38
+ Navigation: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
39
+ TableResults: ({ children, innerProps, manualPagination, }: import("./Components").TableResultProps) => import("react/jsx-runtime").JSX.Element;
40
+ RowsPerPage: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
41
+ Pagination: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
42
+ PaginationNumericButtons: () => import("react/jsx-runtime").JSX.Element;
43
+ PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: import("./Components").PaginationNumericButtonProps) => import("react/jsx-runtime").JSX.Element;
44
+ PaginationArrowButton: ({ action, children, innerProps, }: import("./Components").PaginationArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
45
+ LoadingPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
46
+ NoDataPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
47
+ SortingButton: ({ sortDirection, children, innerProps, }: import("./Components").SortingButtonProps) => import("react/jsx-runtime").JSX.Element;
48
+ Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
49
49
  };
50
+ /**
51
+ * @deprecated Use DataGrid component instead
52
+ * Will be removed in Needle v3.0
53
+ */
50
54
  declare const TableNameSpace: (<T extends unknown>(props: {
51
55
  resizable?: boolean | undefined;
52
56
  loading?: boolean | undefined;
@@ -54,6 +58,6 @@ declare const TableNameSpace: (<T extends unknown>(props: {
54
58
  tableProps: TableType<T>;
55
59
  components?: TableComponentsInterface<T> | undefined;
56
60
  } & Omit<ElementBase<HTMLDivElement>, "as" | "controls" | "data" | "headers" | "rows"> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null) & {
57
- RowActions: (props: ElementBase<HTMLDivElement>) => JSX.Element;
61
+ RowActions: (props: ElementBase<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
58
62
  };
59
63
  export default TableNameSpace;
@@ -21,7 +21,7 @@
21
21
  /// <reference types="react" />
22
22
  import { type RowData, type Table as TableType } from '@tanstack/react-table';
23
23
  import { type Body, type BodyCell, type BodyRow, type TableResults, type ResizingBar, type Navigation, type Header, type Pagination, type NoDataPlaceholder, type LoadingPlaceholder, type PaginationNumericButtons, type PaginationNumericButton, type HeaderCell, type PaginationArrowButton, type RowsPerPage, type ColumnControls, type SortingButton, type Scrollable } from './Components';
24
- declare type Nullable<T> = T | null;
24
+ type Nullable<T> = T | null;
25
25
  export interface TableComponentsInterface<T extends RowData> {
26
26
  ResizingBar?: Nullable<typeof ResizingBar<T>>;
27
27
  /**
@@ -20,9 +20,9 @@
20
20
  */
21
21
  import React from 'react';
22
22
  import { type ElementBase } from '../helpers';
23
- declare type TabId = string | number;
24
- declare type Size = 'small' | 'large';
25
- declare type Fill = 'underline' | 'filled';
23
+ type TabId = string | number;
24
+ type Size = 'small' | 'large';
25
+ type Fill = 'underline' | 'filled';
26
26
  export interface BaseTabsProps<T extends TabId> {
27
27
  /**
28
28
  * The currently active tabId
@@ -42,7 +42,6 @@ export interface BaseTabsProps<T extends TabId> {
42
42
  */
43
43
  as?: string | React.ComponentType<any>;
44
44
  }
45
- export declare const Tabs: <T extends TabId>(props: BaseTabsProps<T> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
46
45
  interface TabProps<T extends TabId> extends ElementBase<HTMLButtonElement> {
47
46
  tabId: T;
48
47
  children: React.ReactNode | string;
@@ -53,7 +52,6 @@ interface TabProps<T extends TabId> extends ElementBase<HTMLButtonElement> {
53
52
  */
54
53
  as?: string | React.ComponentType<any>;
55
54
  }
56
- export declare const Tab: React.ForwardRefExoticComponent<TabProps<TabId> & React.RefAttributes<unknown>>;
57
55
  interface TabPanelProps {
58
56
  children: React.ReactNode | string;
59
57
  /**
@@ -68,5 +66,8 @@ interface TabPanelProps {
68
66
  */
69
67
  as?: string | React.ComponentType<any>;
70
68
  }
71
- export declare const TabPanel: React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<unknown>>;
72
- export {};
69
+ declare const Tabs: (<T extends TabId>(props: BaseTabsProps<T> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null) & {
70
+ Tab: <T_1 extends TabId = TabId>(props: TabProps<T_1> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
71
+ TabPanel: React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<unknown>>;
72
+ };
73
+ export { Tabs };
@@ -42,7 +42,7 @@ export interface NonRemovableTagProps extends CommonTagProps {
42
42
  removeable?: false;
43
43
  onRemove?: never;
44
44
  }
45
- export declare type TagProps = RemoveableTagProps | NonRemovableTagProps;
45
+ export type TagProps = RemoveableTagProps | NonRemovableTagProps;
46
46
  /**
47
47
  *
48
48
  *
@@ -18,9 +18,9 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- import { type ReactElement, type ReactNode } from 'react';
21
+ import { type ComponentPropsWithoutRef, type ReactElement, type ReactNode } from 'react';
22
22
  import { type CommonInputProps } from '../_common/input/types';
23
- import { type SmartTooltipProps } from '../tooltip/SmartTooltip';
23
+ import { Tip } from '../tip';
24
24
  export interface TextInputProperties extends Omit<CommonInputProps, 'label'> {
25
25
  /** Label text */
26
26
  label?: ReactNode;
@@ -39,9 +39,9 @@ export interface TextInputProperties extends Omit<CommonInputProps, 'label'> {
39
39
  /** If the component is optional to fill in */
40
40
  isOptional?: boolean;
41
41
  /** Information to be displayed in the information tooltip */
42
- informationIconText?: string;
43
- /** Pass props to the underlying SmartTooltip component */
44
- smartTooltipProps?: SmartTooltipProps;
42
+ informationIconText?: React.ReactNode;
43
+ /** Pass props to the underlying Tip component */
44
+ tooltipProps?: ComponentPropsWithoutRef<typeof Tip>;
45
45
  }
46
46
  /**
47
47
  *
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
22
- import { type SmartTooltipProps } from '../tooltip/SmartTooltip';
22
+ import { Tip } from '../tip';
23
23
  /**
24
24
  *
25
25
  *
@@ -41,9 +41,9 @@ export interface TextareaProps extends Omit<Omit<ComponentPropsWithoutRef<'texta
41
41
  /** If the component is optional to fill in */
42
42
  isOptional?: boolean;
43
43
  /** Information to be displayed in the information tooltip */
44
- informationIconText?: string;
45
- /** Pass props to the underlaying SmartTooltip component */
46
- smartTooltipProps?: SmartTooltipProps;
44
+ informationIconText?: React.ReactNode;
45
+ /** Pass props to the underlying Tip component */
46
+ tooltipProps?: ComponentPropsWithoutRef<typeof Tip>;
47
47
  }
48
48
  /**
49
49
  *
@@ -0,0 +1,54 @@
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, { type HTMLAttributes, type PropsWithChildren } from 'react';
22
+ type ThemeContextType = 'light' | 'dark';
23
+ export declare const ThemeContext: React.Context<ThemeContextType | undefined>;
24
+ type NeedleThemeHook = () => {
25
+ theme: ThemeContextType;
26
+ /**
27
+ * A classname that can be used to scope
28
+ * elements that are portal-ed like
29
+ * Modals, Popovers, etc.
30
+ */
31
+ themeClassName: string;
32
+ };
33
+ /**
34
+ * Hook to access the current theme effortlessly
35
+ */
36
+ export declare const useNeedleTheme: NeedleThemeHook;
37
+ export interface NeedleThemeProviderProps extends PropsWithChildren {
38
+ theme?: 'dark' | 'light';
39
+ children: any;
40
+ /**
41
+ * Nested theme providers will receive a wrapping `span` tag
42
+ * in order to set correctly the default text `color` that all nested
43
+ * children will inherit by adding the respective class `ndl-theme-{theme}`.
44
+ *
45
+ * If an extra wrapper is not desired, pass `{ isWrappingChildren : false }`.
46
+ * This requires child components accept and consumer className prop.
47
+ *
48
+ */
49
+ wrapperProps?: HTMLAttributes<HTMLElement> & {
50
+ isWrappingChildren?: boolean;
51
+ };
52
+ }
53
+ export declare const NeedleThemeProvider: ({ theme, children, wrapperProps, }: NeedleThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
54
+ 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 './ViewSelector';
21
+ export * from './ThemeProvider';
@@ -0,0 +1,166 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import { FloatingPortal } from '@floating-ui/react';
22
+ import { type Side } from '@floating-ui/core/src/types';
23
+ import { type ElementBase } from '../helpers';
24
+ import { Typography } from '../typography';
25
+ import React, { type ComponentProps } from 'react';
26
+ export interface TipProps {
27
+ /** Type of the tip */
28
+ type?: 'tooltip' | 'toggletip';
29
+ /** Allowed places of the tooltip */
30
+ allowedPlacements?: Side[];
31
+ /** Controlled open state */
32
+ isOpen?: boolean;
33
+ /** For controlled open state */
34
+ onOpenChange?: (isOpen: boolean, event?: Event) => void;
35
+ }
36
+ export declare function useTip({ allowedPlacements, isOpen: controlledOpen, onOpenChange: setControlledOpen, type, }?: TipProps): {
37
+ placement: import("@floating-ui/utils").Placement;
38
+ strategy: import("@floating-ui/utils").Strategy;
39
+ middlewareData: import("@floating-ui/react").MiddlewareData;
40
+ x: number;
41
+ y: number;
42
+ isPositioned: boolean;
43
+ update: () => void;
44
+ floatingStyles: React.CSSProperties;
45
+ refs: {
46
+ reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
47
+ floating: React.MutableRefObject<HTMLElement | null>;
48
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
49
+ setFloating: (node: HTMLElement | null) => void;
50
+ } & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
51
+ elements: {
52
+ reference: import("@floating-ui/react-dom").ReferenceType | null;
53
+ floating: HTMLElement | null;
54
+ } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
55
+ context: {
56
+ placement: import("@floating-ui/utils").Placement;
57
+ strategy: import("@floating-ui/utils").Strategy;
58
+ x: number;
59
+ y: number;
60
+ middlewareData: import("@floating-ui/react").MiddlewareData;
61
+ isPositioned: boolean;
62
+ update: () => void;
63
+ floatingStyles: React.CSSProperties;
64
+ open: boolean;
65
+ onOpenChange: (open: boolean, event?: Event | undefined) => void;
66
+ events: import("@floating-ui/react").FloatingEvents;
67
+ dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
68
+ nodeId: string | undefined;
69
+ floatingId: string;
70
+ refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
71
+ elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
72
+ };
73
+ getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
74
+ getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
75
+ getItemProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
76
+ open: boolean;
77
+ setOpen: (isOpen: boolean, event?: Event | undefined) => void;
78
+ type: "tooltip" | "toggletip";
79
+ };
80
+ export declare const useTipContext: () => {
81
+ placement: import("@floating-ui/utils").Placement;
82
+ strategy: import("@floating-ui/utils").Strategy;
83
+ middlewareData: import("@floating-ui/react").MiddlewareData;
84
+ x: number;
85
+ y: number;
86
+ isPositioned: boolean;
87
+ update: () => void;
88
+ floatingStyles: React.CSSProperties;
89
+ refs: {
90
+ reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
91
+ floating: React.MutableRefObject<HTMLElement | null>;
92
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
93
+ setFloating: (node: HTMLElement | null) => void;
94
+ } & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
95
+ elements: {
96
+ reference: import("@floating-ui/react-dom").ReferenceType | null;
97
+ floating: HTMLElement | null;
98
+ } & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
99
+ context: {
100
+ placement: import("@floating-ui/utils").Placement;
101
+ strategy: import("@floating-ui/utils").Strategy;
102
+ x: number;
103
+ y: number;
104
+ middlewareData: import("@floating-ui/react").MiddlewareData;
105
+ isPositioned: boolean;
106
+ update: () => void;
107
+ floatingStyles: React.CSSProperties;
108
+ open: boolean;
109
+ onOpenChange: (open: boolean, event?: Event | undefined) => void;
110
+ events: import("@floating-ui/react").FloatingEvents;
111
+ dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
112
+ nodeId: string | undefined;
113
+ floatingId: string;
114
+ refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
115
+ elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
116
+ };
117
+ getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
118
+ getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
119
+ getItemProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
120
+ open: boolean;
121
+ setOpen: (isOpen: boolean, event?: Event) => void;
122
+ type: "tooltip" | "toggletip";
123
+ };
124
+ export declare function Tip({ children, ...options }: {
125
+ children: React.ReactNode;
126
+ } & TipProps): import("react/jsx-runtime").JSX.Element;
127
+ export declare namespace Tip {
128
+ var Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
129
+ var Trigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
130
+ /** Wraps trigger element in an accessible `button` element */
131
+ hasButtonWrapper?: boolean | undefined;
132
+ }, "ref"> & React.RefAttributes<HTMLElement>>;
133
+ var Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement>>;
134
+ var Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLDivElement>>;
135
+ var Actions: React.ForwardRefExoticComponent<ActionsProps & React.RefAttributes<HTMLDivElement>>;
136
+ var Action: (props: ActionProps) => import("react/jsx-runtime").JSX.Element | null;
137
+ }
138
+ /**
139
+ * Wrapping the trigger in a button by default
140
+ * Use `asChild` to pass any element as the trigger
141
+ */
142
+ export declare const Trigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
143
+ /** Wraps trigger element in an accessible `button` element */
144
+ hasButtonWrapper?: boolean | undefined;
145
+ }, "ref"> & React.RefAttributes<HTMLElement>>;
146
+ export interface ContentProps extends Omit<ElementBase<HTMLDivElement>, 'as'> {
147
+ /** Whether to portal the content */
148
+ isPortaled?: boolean;
149
+ /**
150
+ * Props to pass to the portal from @floating-ui/react FloatingPortal
151
+ * @see https://floating-ui.com/docs/floatingportal
152
+ */
153
+ portalProps?: ComponentProps<typeof FloatingPortal>;
154
+ }
155
+ export declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
156
+ export interface HeaderProps extends Omit<ElementBase<HTMLDivElement>, 'as'> {
157
+ /** Close button will be visible */
158
+ isCloseable?: boolean;
159
+ }
160
+ export declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement>>;
161
+ export type BodyProps = Omit<ElementBase<HTMLDivElement>, 'as'>;
162
+ export declare const Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLDivElement>>;
163
+ export type ActionsProps = Omit<ElementBase<HTMLDivElement>, 'as'>;
164
+ export declare const Actions: React.ForwardRefExoticComponent<ActionsProps & React.RefAttributes<HTMLDivElement>>;
165
+ export type ActionProps = Omit<ComponentProps<typeof Typography>, 'variant'>;
166
+ export declare const Action: (props: ActionProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
- declare type ArrowPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right';
22
+ type ArrowPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right';
23
23
  export interface TooltipProps extends React.HTMLProps<HTMLDivElement> {
24
24
  arrowPosition: ArrowPosition;
25
25
  children: React.ReactNode | string;
@@ -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 { default as Tooltip } from './Tooltip';
22
+ export * from './Tip';
@@ -18,9 +18,8 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- /// <reference types="react" />
22
21
  import { type AsType, type ConditionalTypography } from './types';
23
22
  export declare const Typography: <TVar extends "label" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subheading-large" | "subheading-medium" | "subheading-small" | "body-large" | "body-medium" | "body-small", TAs extends AsType = undefined>(props: {
24
23
  as?: TAs | undefined;
25
24
  variant: TVar;
26
- } & ConditionalTypography<TAs, TVar>) => JSX.Element;
25
+ } & ConditionalTypography<TAs, TVar>) => import("react/jsx-runtime").JSX.Element;