@neo4j-ndl/react 0.17.0 → 1.0.0-alpha-093fe38

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 (449) hide show
  1. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +14 -6
  2. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  3. package/lib/cjs/alert/Alert.js +16 -16
  4. package/lib/cjs/alert/Alert.js.map +1 -1
  5. package/lib/cjs/alert/index.js +14 -6
  6. package/lib/cjs/alert/index.js.map +1 -1
  7. package/lib/cjs/button/Button.js +11 -6
  8. package/lib/cjs/button/Button.js.map +1 -1
  9. package/lib/cjs/button/IconButton.js +12 -8
  10. package/lib/cjs/button/IconButton.js.map +1 -1
  11. package/lib/cjs/button/IconButtonArray.js +2 -2
  12. package/lib/cjs/button/IconButtonArray.js.map +1 -1
  13. package/lib/cjs/code-block/CodeBlock.js +13 -9
  14. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  15. package/lib/cjs/context-menu/ContextMenu.js +19 -12
  16. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  17. package/lib/cjs/dialog/Dialog.js +9 -9
  18. package/lib/cjs/dialog/Dialog.js.map +1 -1
  19. package/lib/cjs/drag-and-drop/DragAndDrop.js +5 -5
  20. package/lib/cjs/drag-and-drop/DragAndDrop.js.map +1 -1
  21. package/lib/cjs/dropdown/Dropdown.js +15 -13
  22. package/lib/cjs/dropdown/Dropdown.js.map +1 -1
  23. package/lib/cjs/dropdown/Overrides.js +15 -6
  24. package/lib/cjs/dropdown/Overrides.js.map +1 -1
  25. package/lib/cjs/graph-label/GraphLabel.js +18 -14
  26. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  27. package/lib/cjs/graph-label/color.js +6 -6
  28. package/lib/cjs/graph-label/color.js.map +1 -1
  29. package/lib/cjs/icons/{custom → generated/custom}/Circle.js +0 -0
  30. package/lib/cjs/icons/generated/custom/Circle.js.map +1 -0
  31. package/lib/cjs/icons/{custom → generated/custom}/CollapseExpand.js +0 -0
  32. package/lib/cjs/icons/generated/custom/CollapseExpand.js.map +1 -0
  33. package/lib/cjs/icons/{custom → generated/custom}/CollapseExpandLeft.js +0 -0
  34. package/lib/cjs/icons/generated/custom/CollapseExpandLeft.js.map +1 -0
  35. package/lib/cjs/icons/{custom → generated/custom}/CollapseExpandRight.js +0 -0
  36. package/lib/cjs/icons/generated/custom/CollapseExpandRight.js.map +1 -0
  37. package/lib/cjs/icons/{custom → generated/custom}/Configure.js +0 -0
  38. package/lib/cjs/icons/generated/custom/Configure.js.map +1 -0
  39. package/lib/cjs/icons/{custom → generated/custom}/DatabaseAddCircle.js +0 -0
  40. package/lib/cjs/icons/generated/custom/DatabaseAddCircle.js.map +1 -0
  41. package/lib/cjs/icons/{custom → generated/custom}/Dbms.js +0 -0
  42. package/lib/cjs/icons/generated/custom/Dbms.js.map +1 -0
  43. package/lib/cjs/icons/{custom → generated/custom}/Drag.js +0 -0
  44. package/lib/cjs/icons/generated/custom/Drag.js.map +1 -0
  45. package/lib/cjs/icons/{custom → generated/custom}/Expand.js +0 -0
  46. package/lib/cjs/icons/generated/custom/Expand.js.map +1 -0
  47. package/lib/cjs/icons/{custom → generated/custom}/ExternalLink.js +0 -0
  48. package/lib/cjs/icons/generated/custom/ExternalLink.js.map +1 -0
  49. package/lib/cjs/icons/{custom → generated/custom}/FitToScreen.js +0 -0
  50. package/lib/cjs/icons/generated/custom/FitToScreen.js.map +1 -0
  51. package/lib/cjs/icons/{custom → generated/custom}/FolderBookmark.js +0 -0
  52. package/lib/cjs/icons/generated/custom/FolderBookmark.js.map +1 -0
  53. package/lib/cjs/icons/{custom → generated/custom}/Heirarchy2.js +0 -0
  54. package/lib/cjs/icons/generated/custom/Heirarchy2.js.map +1 -0
  55. package/lib/cjs/icons/{custom → generated/custom}/Hierarchy1.js +0 -0
  56. package/lib/cjs/icons/generated/custom/Hierarchy1.js.map +1 -0
  57. package/lib/cjs/icons/{custom → generated/custom}/Hierarchy2.js +0 -0
  58. package/lib/cjs/icons/generated/custom/Hierarchy2.js.map +1 -0
  59. package/lib/cjs/icons/{custom → generated/custom}/NomLevel.js +0 -0
  60. package/lib/cjs/icons/generated/custom/NomLevel.js.map +1 -0
  61. package/lib/cjs/icons/{custom → generated/custom}/Pin.js +0 -0
  62. package/lib/cjs/icons/generated/custom/Pin.js.map +1 -0
  63. package/lib/cjs/icons/{custom → generated/custom}/Presentation.js +0 -0
  64. package/lib/cjs/icons/generated/custom/Presentation.js.map +1 -0
  65. package/lib/cjs/icons/{custom → generated/custom}/QueryBrowser.js +0 -0
  66. package/lib/cjs/icons/generated/custom/QueryBrowser.js.map +1 -0
  67. package/lib/cjs/icons/{custom → generated/custom}/Rhombus.js +0 -0
  68. package/lib/cjs/icons/generated/custom/Rhombus.js.map +1 -0
  69. package/lib/cjs/icons/{custom → generated/custom}/ScienceMolecule.js +0 -0
  70. package/lib/cjs/icons/generated/custom/ScienceMolecule.js.map +1 -0
  71. package/lib/cjs/icons/{custom → generated/custom}/Shrink.js +0 -0
  72. package/lib/cjs/icons/generated/custom/Shrink.js.map +1 -0
  73. package/lib/cjs/icons/{custom → generated/custom}/Status.js +0 -0
  74. package/lib/cjs/icons/generated/custom/Status.js.map +1 -0
  75. package/lib/cjs/icons/{custom → generated/custom}/Text.js +0 -0
  76. package/lib/cjs/icons/generated/custom/Text.js.map +1 -0
  77. package/lib/cjs/icons/{custom → generated/custom}/Triangle.js +0 -0
  78. package/lib/cjs/icons/generated/custom/Triangle.js.map +1 -0
  79. package/lib/cjs/icons/{custom → generated/custom}/VisualizeBloom.js +0 -0
  80. package/lib/cjs/icons/generated/custom/VisualizeBloom.js.map +1 -0
  81. package/lib/cjs/icons/{custom → generated/custom}/index.js +0 -0
  82. package/lib/cjs/icons/generated/custom/index.js.map +1 -0
  83. package/lib/cjs/icons/generated/heroIcons.js +1206 -0
  84. package/lib/cjs/icons/generated/heroIcons.js.map +1 -0
  85. package/lib/cjs/icons/index.js +15 -7
  86. package/lib/cjs/icons/index.js.map +1 -1
  87. package/lib/cjs/index.js +7 -1
  88. package/lib/cjs/index.js.map +1 -1
  89. package/lib/cjs/label/Label.js +16 -11
  90. package/lib/cjs/label/Label.js.map +1 -1
  91. package/lib/cjs/loading-spinner/LoadingSpinner.js +6 -2
  92. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  93. package/lib/cjs/modal/Modal.js +5 -1
  94. package/lib/cjs/modal/Modal.js.map +1 -1
  95. package/lib/cjs/popover/Popover.js +3 -3
  96. package/lib/cjs/popover/Popover.js.map +1 -1
  97. package/lib/cjs/portal/Portal.js +2 -25
  98. package/lib/cjs/portal/Portal.js.map +1 -1
  99. package/lib/cjs/progress-bar/ProgressBar.js +5 -2
  100. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
  101. package/lib/cjs/side-navigation/SideNavigation.js +4 -4
  102. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  103. package/lib/cjs/table/Components.js +203 -0
  104. package/lib/cjs/table/Components.js.map +1 -0
  105. package/lib/cjs/table/Table.js +45 -117
  106. package/lib/cjs/table/Table.js.map +1 -1
  107. package/lib/cjs/table/TableContext.js +34 -0
  108. package/lib/cjs/table/TableContext.js.map +1 -0
  109. package/lib/cjs/table/helpers.js +28 -70
  110. package/lib/cjs/table/helpers.js.map +1 -1
  111. package/lib/cjs/table/index.js +14 -4
  112. package/lib/cjs/table/index.js.map +1 -1
  113. package/lib/cjs/table-deprecated/Table.js +157 -0
  114. package/lib/cjs/table-deprecated/Table.js.map +1 -0
  115. package/lib/cjs/{table → table-deprecated}/TableNavigation.js +3 -3
  116. package/lib/cjs/table-deprecated/TableNavigation.js.map +1 -0
  117. package/lib/cjs/table-deprecated/helpers.js +123 -0
  118. package/lib/cjs/table-deprecated/helpers.js.map +1 -0
  119. package/lib/cjs/{table → table-deprecated}/hooks/hookCallbackTypes.js +0 -0
  120. package/lib/cjs/table-deprecated/hooks/hookCallbackTypes.js.map +1 -0
  121. package/lib/cjs/{table → table-deprecated}/hooks/index.js +0 -0
  122. package/lib/cjs/table-deprecated/hooks/index.js.map +1 -0
  123. package/lib/cjs/{table → table-deprecated}/hooks/useMultiRowSelect.js +0 -0
  124. package/lib/cjs/table-deprecated/hooks/useMultiRowSelect.js.map +1 -0
  125. package/lib/cjs/{table → table-deprecated}/hooks/useSingleRowSelect.js +0 -0
  126. package/lib/cjs/table-deprecated/hooks/useSingleRowSelect.js.map +1 -0
  127. package/lib/cjs/table-deprecated/index.js +44 -0
  128. package/lib/cjs/table-deprecated/index.js.map +1 -0
  129. package/lib/cjs/tabs/Tabs.js +7 -7
  130. package/lib/cjs/tabs/Tabs.js.map +1 -1
  131. package/lib/cjs/tag/Tag.js +8 -5
  132. package/lib/cjs/tag/Tag.js.map +1 -1
  133. package/lib/cjs/tag/index.js +14 -5
  134. package/lib/cjs/tag/index.js.map +1 -1
  135. package/lib/cjs/text-input/TextInput.js +11 -10
  136. package/lib/cjs/text-input/TextInput.js.map +1 -1
  137. package/lib/cjs/tooltip/SmartTooltip.js +114 -0
  138. package/lib/cjs/tooltip/SmartTooltip.js.map +1 -0
  139. package/lib/cjs/tooltip/Tooltip.js +10 -2
  140. package/lib/cjs/tooltip/Tooltip.js.map +1 -1
  141. package/lib/cjs/tooltip/index.js +3 -1
  142. package/lib/cjs/tooltip/index.js.map +1 -1
  143. package/lib/cjs/typography/Typography.js +58 -0
  144. package/lib/cjs/typography/Typography.js.map +1 -0
  145. package/lib/cjs/typography/index.js +38 -0
  146. package/lib/cjs/typography/index.js.map +1 -0
  147. package/lib/cjs/typography/types.js +52 -0
  148. package/lib/cjs/typography/types.js.map +1 -0
  149. package/lib/cjs/view-selector/ViewSelector.js +8 -3
  150. package/lib/cjs/view-selector/ViewSelector.js.map +1 -1
  151. package/lib/cjs/wizard/Wizard.js +20 -2
  152. package/lib/cjs/wizard/Wizard.js.map +1 -1
  153. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +13 -6
  154. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  155. package/lib/esm/alert/Alert.js +15 -15
  156. package/lib/esm/alert/Alert.js.map +1 -1
  157. package/lib/esm/alert/index.js +1 -1
  158. package/lib/esm/alert/index.js.map +1 -1
  159. package/lib/esm/button/Button.js +11 -6
  160. package/lib/esm/button/Button.js.map +1 -1
  161. package/lib/esm/button/IconButton.js +12 -8
  162. package/lib/esm/button/IconButton.js.map +1 -1
  163. package/lib/esm/button/IconButtonArray.js +2 -2
  164. package/lib/esm/button/IconButtonArray.js.map +1 -1
  165. package/lib/esm/code-block/CodeBlock.js +11 -7
  166. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  167. package/lib/esm/context-menu/ContextMenu.js +19 -12
  168. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  169. package/lib/esm/dialog/Dialog.js +10 -10
  170. package/lib/esm/dialog/Dialog.js.map +1 -1
  171. package/lib/esm/drag-and-drop/DragAndDrop.js +5 -5
  172. package/lib/esm/drag-and-drop/DragAndDrop.js.map +1 -1
  173. package/lib/esm/dropdown/Dropdown.js +6 -4
  174. package/lib/esm/dropdown/Dropdown.js.map +1 -1
  175. package/lib/esm/dropdown/Overrides.js +13 -7
  176. package/lib/esm/dropdown/Overrides.js.map +1 -1
  177. package/lib/esm/graph-label/GraphLabel.js +12 -8
  178. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  179. package/lib/esm/graph-label/color.js +1 -1
  180. package/lib/esm/graph-label/color.js.map +1 -1
  181. package/lib/esm/icons/{custom → generated/custom}/Circle.js +0 -0
  182. package/lib/esm/icons/generated/custom/Circle.js.map +1 -0
  183. package/lib/esm/icons/{custom → generated/custom}/CollapseExpand.js +0 -0
  184. package/lib/esm/icons/generated/custom/CollapseExpand.js.map +1 -0
  185. package/lib/esm/icons/{custom → generated/custom}/CollapseExpandLeft.js +0 -0
  186. package/lib/esm/icons/generated/custom/CollapseExpandLeft.js.map +1 -0
  187. package/lib/esm/icons/{custom → generated/custom}/CollapseExpandRight.js +0 -0
  188. package/lib/esm/icons/generated/custom/CollapseExpandRight.js.map +1 -0
  189. package/lib/esm/icons/{custom → generated/custom}/Configure.js +0 -0
  190. package/lib/esm/icons/generated/custom/Configure.js.map +1 -0
  191. package/lib/esm/icons/{custom → generated/custom}/DatabaseAddCircle.js +0 -0
  192. package/lib/esm/icons/generated/custom/DatabaseAddCircle.js.map +1 -0
  193. package/lib/esm/icons/{custom → generated/custom}/Dbms.js +0 -0
  194. package/lib/esm/icons/generated/custom/Dbms.js.map +1 -0
  195. package/lib/esm/icons/{custom → generated/custom}/Drag.js +0 -0
  196. package/lib/esm/icons/generated/custom/Drag.js.map +1 -0
  197. package/lib/esm/icons/{custom → generated/custom}/Expand.js +0 -0
  198. package/lib/esm/icons/generated/custom/Expand.js.map +1 -0
  199. package/lib/esm/icons/{custom → generated/custom}/ExternalLink.js +0 -0
  200. package/lib/esm/icons/generated/custom/ExternalLink.js.map +1 -0
  201. package/lib/esm/icons/{custom → generated/custom}/FitToScreen.js +0 -0
  202. package/lib/esm/icons/generated/custom/FitToScreen.js.map +1 -0
  203. package/lib/esm/icons/{custom → generated/custom}/FolderBookmark.js +0 -0
  204. package/lib/esm/icons/generated/custom/FolderBookmark.js.map +1 -0
  205. package/lib/esm/icons/{custom → generated/custom}/Heirarchy2.js +0 -0
  206. package/lib/esm/icons/generated/custom/Heirarchy2.js.map +1 -0
  207. package/lib/esm/icons/{custom → generated/custom}/Hierarchy1.js +0 -0
  208. package/lib/esm/icons/generated/custom/Hierarchy1.js.map +1 -0
  209. package/lib/esm/icons/{custom → generated/custom}/Hierarchy2.js +0 -0
  210. package/lib/esm/icons/generated/custom/Hierarchy2.js.map +1 -0
  211. package/lib/esm/icons/{custom → generated/custom}/NomLevel.js +0 -0
  212. package/lib/esm/icons/generated/custom/NomLevel.js.map +1 -0
  213. package/lib/esm/icons/{custom → generated/custom}/Pin.js +0 -0
  214. package/lib/esm/icons/generated/custom/Pin.js.map +1 -0
  215. package/lib/esm/icons/{custom → generated/custom}/Presentation.js +0 -0
  216. package/lib/esm/icons/generated/custom/Presentation.js.map +1 -0
  217. package/lib/esm/icons/{custom → generated/custom}/QueryBrowser.js +0 -0
  218. package/lib/esm/icons/generated/custom/QueryBrowser.js.map +1 -0
  219. package/lib/esm/icons/{custom → generated/custom}/Rhombus.js +0 -0
  220. package/lib/esm/icons/generated/custom/Rhombus.js.map +1 -0
  221. package/lib/esm/icons/{custom → generated/custom}/ScienceMolecule.js +0 -0
  222. package/lib/esm/icons/generated/custom/ScienceMolecule.js.map +1 -0
  223. package/lib/esm/icons/{custom → generated/custom}/Shrink.js +0 -0
  224. package/lib/esm/icons/generated/custom/Shrink.js.map +1 -0
  225. package/lib/esm/icons/{custom → generated/custom}/Status.js +0 -0
  226. package/lib/esm/icons/generated/custom/Status.js.map +1 -0
  227. package/lib/esm/icons/{custom → generated/custom}/Text.js +0 -0
  228. package/lib/esm/icons/generated/custom/Text.js.map +1 -0
  229. package/lib/esm/icons/{custom → generated/custom}/Triangle.js +0 -0
  230. package/lib/esm/icons/generated/custom/Triangle.js.map +1 -0
  231. package/lib/esm/icons/{custom → generated/custom}/VisualizeBloom.js +0 -0
  232. package/lib/esm/icons/generated/custom/VisualizeBloom.js.map +1 -0
  233. package/lib/esm/icons/{custom → generated/custom}/index.js +0 -0
  234. package/lib/esm/icons/generated/custom/index.js.map +1 -0
  235. package/lib/esm/icons/generated/heroIcons.js +605 -0
  236. package/lib/esm/icons/generated/heroIcons.js.map +1 -0
  237. package/lib/esm/icons/index.js +2 -2
  238. package/lib/esm/icons/index.js.map +1 -1
  239. package/lib/esm/index.js +7 -1
  240. package/lib/esm/index.js.map +1 -1
  241. package/lib/esm/label/Label.js +13 -8
  242. package/lib/esm/label/Label.js.map +1 -1
  243. package/lib/esm/loading-spinner/LoadingSpinner.js +6 -2
  244. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  245. package/lib/esm/modal/Modal.js +5 -1
  246. package/lib/esm/modal/Modal.js.map +1 -1
  247. package/lib/esm/popover/Popover.js +3 -3
  248. package/lib/esm/popover/Popover.js.map +1 -1
  249. package/lib/esm/portal/Portal.js +2 -2
  250. package/lib/esm/portal/Portal.js.map +1 -1
  251. package/lib/esm/progress-bar/ProgressBar.js +5 -2
  252. package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
  253. package/lib/esm/side-navigation/SideNavigation.js +6 -6
  254. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  255. package/lib/esm/table/Components.js +181 -0
  256. package/lib/esm/table/Components.js.map +1 -0
  257. package/lib/esm/table/Table.js +45 -116
  258. package/lib/esm/table/Table.js.map +1 -1
  259. package/lib/esm/table/TableContext.js +30 -0
  260. package/lib/esm/table/TableContext.js.map +1 -0
  261. package/lib/esm/table/helpers.js +25 -65
  262. package/lib/esm/table/helpers.js.map +1 -1
  263. package/lib/esm/table/index.js +2 -2
  264. package/lib/esm/table/index.js.map +1 -1
  265. package/lib/esm/table-deprecated/Table.js +150 -0
  266. package/lib/esm/table-deprecated/Table.js.map +1 -0
  267. package/lib/esm/{table → table-deprecated}/TableNavigation.js +4 -4
  268. package/lib/esm/table-deprecated/TableNavigation.js.map +1 -0
  269. package/lib/esm/table-deprecated/helpers.js +116 -0
  270. package/lib/esm/table-deprecated/helpers.js.map +1 -0
  271. package/lib/esm/{table → table-deprecated}/hooks/hookCallbackTypes.js +0 -0
  272. package/lib/esm/table-deprecated/hooks/hookCallbackTypes.js.map +1 -0
  273. package/lib/esm/{table → table-deprecated}/hooks/index.js +0 -0
  274. package/lib/esm/table-deprecated/hooks/index.js.map +1 -0
  275. package/lib/esm/{table → table-deprecated}/hooks/useMultiRowSelect.js +0 -0
  276. package/lib/esm/table-deprecated/hooks/useMultiRowSelect.js.map +1 -0
  277. package/lib/esm/{table → table-deprecated}/hooks/useSingleRowSelect.js +0 -0
  278. package/lib/esm/table-deprecated/hooks/useSingleRowSelect.js.map +1 -0
  279. package/lib/esm/table-deprecated/index.js +23 -0
  280. package/lib/esm/table-deprecated/index.js.map +1 -0
  281. package/lib/esm/tabs/Tabs.js +7 -7
  282. package/lib/esm/tabs/Tabs.js.map +1 -1
  283. package/lib/esm/tag/Tag.js +7 -5
  284. package/lib/esm/tag/Tag.js.map +1 -1
  285. package/lib/esm/tag/index.js +1 -1
  286. package/lib/esm/tag/index.js.map +1 -1
  287. package/lib/esm/text-input/TextInput.js +12 -11
  288. package/lib/esm/text-input/TextInput.js.map +1 -1
  289. package/lib/esm/tooltip/SmartTooltip.js +86 -0
  290. package/lib/esm/tooltip/SmartTooltip.js.map +1 -0
  291. package/lib/esm/tooltip/Tooltip.js +10 -2
  292. package/lib/esm/tooltip/Tooltip.js.map +1 -1
  293. package/lib/esm/tooltip/index.js +1 -0
  294. package/lib/esm/tooltip/index.js.map +1 -1
  295. package/lib/esm/{icons/Custom.js → typography/Typography.js} +20 -10
  296. package/lib/esm/typography/Typography.js.map +1 -0
  297. package/lib/esm/typography/index.js +22 -0
  298. package/lib/esm/typography/index.js.map +1 -0
  299. package/lib/esm/typography/types.js +49 -0
  300. package/lib/esm/typography/types.js.map +1 -0
  301. package/lib/esm/view-selector/ViewSelector.js +8 -3
  302. package/lib/esm/view-selector/ViewSelector.js.map +1 -1
  303. package/lib/esm/wizard/Wizard.js +24 -6
  304. package/lib/esm/wizard/Wizard.js.map +1 -1
  305. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +12 -2
  306. package/lib/types/_common/input/types.d.ts +1 -1
  307. package/lib/types/alert/Alert.d.ts +3 -2
  308. package/lib/types/alert/index.d.ts +1 -1
  309. package/lib/types/button/Button.d.ts +1 -3
  310. package/lib/types/button/IconButton.d.ts +2 -0
  311. package/lib/types/checkbox/Checkbox.d.ts +1 -1
  312. package/lib/types/context-menu/ContextMenu.d.ts +11 -12
  313. package/lib/types/dropdown/Overrides.d.ts +0 -21
  314. package/lib/types/dropdown/types.d.ts +0 -1
  315. package/lib/types/icons/{custom → generated/custom}/Circle.d.ts +0 -0
  316. package/lib/types/icons/{custom → generated/custom}/CollapseExpand.d.ts +0 -0
  317. package/lib/types/icons/{custom → generated/custom}/CollapseExpandLeft.d.ts +0 -0
  318. package/lib/types/icons/{custom → generated/custom}/CollapseExpandRight.d.ts +0 -0
  319. package/lib/types/icons/{custom → generated/custom}/Configure.d.ts +0 -0
  320. package/lib/types/icons/{custom → generated/custom}/DatabaseAddCircle.d.ts +0 -0
  321. package/lib/types/icons/{custom → generated/custom}/Dbms.d.ts +0 -0
  322. package/lib/types/icons/{custom → generated/custom}/Drag.d.ts +0 -0
  323. package/lib/types/icons/{custom → generated/custom}/Expand.d.ts +0 -0
  324. package/lib/types/icons/{custom → generated/custom}/ExternalLink.d.ts +0 -0
  325. package/lib/types/icons/{custom → generated/custom}/FitToScreen.d.ts +0 -0
  326. package/lib/types/icons/{custom → generated/custom}/FolderBookmark.d.ts +0 -0
  327. package/lib/types/icons/{custom → generated/custom}/Heirarchy2.d.ts +0 -0
  328. package/lib/types/icons/{custom → generated/custom}/Hierarchy1.d.ts +0 -0
  329. package/lib/types/icons/{custom → generated/custom}/Hierarchy2.d.ts +0 -0
  330. package/lib/types/icons/{custom → generated/custom}/NomLevel.d.ts +0 -0
  331. package/lib/types/icons/{custom → generated/custom}/Pin.d.ts +0 -0
  332. package/lib/types/icons/{custom → generated/custom}/Presentation.d.ts +0 -0
  333. package/lib/types/icons/{custom → generated/custom}/QueryBrowser.d.ts +0 -0
  334. package/lib/types/icons/{custom → generated/custom}/Rhombus.d.ts +0 -0
  335. package/lib/types/icons/{custom → generated/custom}/ScienceMolecule.d.ts +0 -0
  336. package/lib/types/icons/{custom → generated/custom}/Shrink.d.ts +0 -0
  337. package/lib/types/icons/{custom → generated/custom}/Status.d.ts +0 -0
  338. package/lib/types/icons/{custom → generated/custom}/Text.d.ts +0 -0
  339. package/lib/types/icons/{custom → generated/custom}/Triangle.d.ts +0 -0
  340. package/lib/types/icons/{custom → generated/custom}/VisualizeBloom.d.ts +0 -0
  341. package/lib/types/icons/{custom → generated/custom}/index.d.ts +0 -0
  342. package/lib/types/icons/generated/heroIcons.d.ts +604 -0
  343. package/lib/types/icons/index.d.ts +2 -2
  344. package/lib/types/index.d.ts +3 -1
  345. package/lib/types/label/Label.d.ts +3 -2
  346. package/lib/types/popover/Popover.d.ts +1 -1
  347. package/lib/types/portal/Portal.d.ts +1 -1
  348. package/lib/types/progress-bar/ProgressBar.d.ts +1 -1
  349. package/lib/types/radio/Radio.d.ts +1 -1
  350. package/lib/types/switch/Switch.d.ts +1 -1
  351. package/lib/types/table/Components.d.ts +54 -0
  352. package/lib/types/table/Table.d.ts +28 -49
  353. package/lib/types/table/TableContext.d.ts +61 -0
  354. package/lib/types/table/helpers.d.ts +9 -21
  355. package/lib/types/table/index.d.ts +2 -2
  356. package/lib/types/table-deprecated/Table.d.ts +75 -0
  357. package/lib/types/{table → table-deprecated}/TableNavigation.d.ts +0 -1
  358. package/lib/types/table-deprecated/helpers.d.ts +51 -0
  359. package/lib/types/{table → table-deprecated}/hooks/hookCallbackTypes.d.ts +0 -0
  360. package/lib/types/{table → table-deprecated}/hooks/index.d.ts +0 -0
  361. package/lib/types/{table → table-deprecated}/hooks/useMultiRowSelect.d.ts +0 -0
  362. package/lib/types/{table → table-deprecated}/hooks/useSingleRowSelect.d.ts +0 -0
  363. package/lib/types/table-deprecated/index.d.ts +22 -0
  364. package/lib/types/tag/Tag.d.ts +4 -4
  365. package/lib/types/tag/index.d.ts +1 -1
  366. package/lib/types/text-input/TextInput.d.ts +1 -1
  367. package/lib/types/text-link/TextLink.d.ts +1 -1
  368. package/lib/types/tooltip/SmartTooltip.d.ts +31 -0
  369. package/lib/types/tooltip/Tooltip.d.ts +1 -1
  370. package/lib/types/tooltip/index.d.ts +1 -0
  371. package/lib/types/trap-focus/TrapFocus.d.ts +0 -1
  372. package/lib/types/{icons/Custom.d.ts → typography/Typography.d.ts} +5 -7
  373. package/lib/types/typography/index.d.ts +21 -0
  374. package/lib/types/typography/types.d.ts +34 -0
  375. package/lib/types/wizard/Wizard.d.ts +0 -1
  376. package/package.json +22 -9
  377. package/CHANGELOG.md +0 -557
  378. package/lib/cjs/icons/Custom.js +0 -67
  379. package/lib/cjs/icons/Custom.js.map +0 -1
  380. package/lib/cjs/icons/Hero.js +0 -59
  381. package/lib/cjs/icons/Hero.js.map +0 -1
  382. package/lib/cjs/icons/custom/Circle.js.map +0 -1
  383. package/lib/cjs/icons/custom/CollapseExpand.js.map +0 -1
  384. package/lib/cjs/icons/custom/CollapseExpandLeft.js.map +0 -1
  385. package/lib/cjs/icons/custom/CollapseExpandRight.js.map +0 -1
  386. package/lib/cjs/icons/custom/Configure.js.map +0 -1
  387. package/lib/cjs/icons/custom/DatabaseAddCircle.js.map +0 -1
  388. package/lib/cjs/icons/custom/Dbms.js.map +0 -1
  389. package/lib/cjs/icons/custom/Drag.js.map +0 -1
  390. package/lib/cjs/icons/custom/Expand.js.map +0 -1
  391. package/lib/cjs/icons/custom/ExternalLink.js.map +0 -1
  392. package/lib/cjs/icons/custom/FitToScreen.js.map +0 -1
  393. package/lib/cjs/icons/custom/FolderBookmark.js.map +0 -1
  394. package/lib/cjs/icons/custom/Heirarchy2.js.map +0 -1
  395. package/lib/cjs/icons/custom/Hierarchy1.js.map +0 -1
  396. package/lib/cjs/icons/custom/Hierarchy2.js.map +0 -1
  397. package/lib/cjs/icons/custom/NomLevel.js.map +0 -1
  398. package/lib/cjs/icons/custom/Pin.js.map +0 -1
  399. package/lib/cjs/icons/custom/Presentation.js.map +0 -1
  400. package/lib/cjs/icons/custom/QueryBrowser.js.map +0 -1
  401. package/lib/cjs/icons/custom/Rhombus.js.map +0 -1
  402. package/lib/cjs/icons/custom/ScienceMolecule.js.map +0 -1
  403. package/lib/cjs/icons/custom/Shrink.js.map +0 -1
  404. package/lib/cjs/icons/custom/Status.js.map +0 -1
  405. package/lib/cjs/icons/custom/Text.js.map +0 -1
  406. package/lib/cjs/icons/custom/Triangle.js.map +0 -1
  407. package/lib/cjs/icons/custom/VisualizeBloom.js.map +0 -1
  408. package/lib/cjs/icons/custom/index.js.map +0 -1
  409. package/lib/cjs/table/TableNavigation.js.map +0 -1
  410. package/lib/cjs/table/hooks/hookCallbackTypes.js.map +0 -1
  411. package/lib/cjs/table/hooks/index.js.map +0 -1
  412. package/lib/cjs/table/hooks/useMultiRowSelect.js.map +0 -1
  413. package/lib/cjs/table/hooks/useSingleRowSelect.js.map +0 -1
  414. package/lib/esm/icons/Custom.js.map +0 -1
  415. package/lib/esm/icons/Hero.js +0 -33
  416. package/lib/esm/icons/Hero.js.map +0 -1
  417. package/lib/esm/icons/custom/Circle.js.map +0 -1
  418. package/lib/esm/icons/custom/CollapseExpand.js.map +0 -1
  419. package/lib/esm/icons/custom/CollapseExpandLeft.js.map +0 -1
  420. package/lib/esm/icons/custom/CollapseExpandRight.js.map +0 -1
  421. package/lib/esm/icons/custom/Configure.js.map +0 -1
  422. package/lib/esm/icons/custom/DatabaseAddCircle.js.map +0 -1
  423. package/lib/esm/icons/custom/Dbms.js.map +0 -1
  424. package/lib/esm/icons/custom/Drag.js.map +0 -1
  425. package/lib/esm/icons/custom/Expand.js.map +0 -1
  426. package/lib/esm/icons/custom/ExternalLink.js.map +0 -1
  427. package/lib/esm/icons/custom/FitToScreen.js.map +0 -1
  428. package/lib/esm/icons/custom/FolderBookmark.js.map +0 -1
  429. package/lib/esm/icons/custom/Heirarchy2.js.map +0 -1
  430. package/lib/esm/icons/custom/Hierarchy1.js.map +0 -1
  431. package/lib/esm/icons/custom/Hierarchy2.js.map +0 -1
  432. package/lib/esm/icons/custom/NomLevel.js.map +0 -1
  433. package/lib/esm/icons/custom/Pin.js.map +0 -1
  434. package/lib/esm/icons/custom/Presentation.js.map +0 -1
  435. package/lib/esm/icons/custom/QueryBrowser.js.map +0 -1
  436. package/lib/esm/icons/custom/Rhombus.js.map +0 -1
  437. package/lib/esm/icons/custom/ScienceMolecule.js.map +0 -1
  438. package/lib/esm/icons/custom/Shrink.js.map +0 -1
  439. package/lib/esm/icons/custom/Status.js.map +0 -1
  440. package/lib/esm/icons/custom/Text.js.map +0 -1
  441. package/lib/esm/icons/custom/Triangle.js.map +0 -1
  442. package/lib/esm/icons/custom/VisualizeBloom.js.map +0 -1
  443. package/lib/esm/icons/custom/index.js.map +0 -1
  444. package/lib/esm/table/TableNavigation.js.map +0 -1
  445. package/lib/esm/table/hooks/hookCallbackTypes.js.map +0 -1
  446. package/lib/esm/table/hooks/index.js.map +0 -1
  447. package/lib/esm/table/hooks/useMultiRowSelect.js.map +0 -1
  448. package/lib/esm/table/hooks/useSingleRowSelect.js.map +0 -1
  449. package/lib/types/icons/Hero.d.ts +0 -28
@@ -0,0 +1,51 @@
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
+ /// <reference types="react" />
22
+ import { TableResizerProps } from 'react-table';
23
+ /**
24
+ *
25
+ * React Table helper to display sorting icon
26
+ * Source:
27
+ * https://react-table.tanstack.com/docs/api/useSortBy#column-properties
28
+ *
29
+ */
30
+ export declare const SortIcon: ({ isSortedDesc, ...props }: {
31
+ isSortedDesc: boolean | undefined;
32
+ }) => JSX.Element;
33
+ export declare const ResizingBar: import("react").NamedExoticComponent<TableResizerProps>;
34
+ /**
35
+ * The left section of the bottom navigation
36
+ * that is showing the current page and how many results we can see
37
+ */
38
+ export declare const TableResults: ({ pageIndex, pageLength, rowsLength, }: Record<'pageIndex' | 'pageLength' | 'rowsLength', number>) => JSX.Element;
39
+ /**
40
+ * Modified from here: https://gist.github.com/kottenator/9d936eb3e4e3c3e02598
41
+ *
42
+ * @param current Current Index
43
+ * @param max Max Index
44
+ * @returns
45
+ */
46
+ export declare const userFriendlyPagination: (current: number, max: number) => (string | number)[];
47
+ /**
48
+ * Small helper to get handle the Checkbox
49
+ * functionality in tables
50
+ */
51
+ export declare const toggleRowSelection: (list: number[], idx: number) => number[];
@@ -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 TableDepr } from './Table';
22
+ export * from './hooks';
@@ -27,18 +27,18 @@ import { ElementBase } from '../helpers';
27
27
  *
28
28
  *
29
29
  */
30
- interface CommonTagProps extends ElementBase {
30
+ export interface CommonTagProps extends ElementBase {
31
31
  children: string | React.ReactNode;
32
32
  /** Type of the tag */
33
33
  type?: 'destructive' | 'default';
34
34
  }
35
- interface RemoveableTagProps extends CommonTagProps {
35
+ export interface RemoveableTagProps extends CommonTagProps {
36
36
  /** Adds a "x" icon is set to true */
37
37
  removeable: true;
38
38
  /** Handler when remove icon is clicked. Required if `removeable` is true */
39
39
  onRemove: (e: React.KeyboardEvent<HTMLElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
40
40
  }
41
- interface NonRemovableTagProps extends CommonTagProps {
41
+ export interface NonRemovableTagProps extends CommonTagProps {
42
42
  removeable?: false;
43
43
  onRemove?: never;
44
44
  }
@@ -58,5 +58,5 @@ export declare type TagProps = RemoveableTagProps | NonRemovableTagProps;
58
58
  *
59
59
  *
60
60
  */
61
- declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLDivElement>>;
61
+ export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLDivElement>>;
62
62
  export default Tag;
@@ -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 { default as Tag } from './Tag';
21
+ export * from './Tag';
@@ -51,5 +51,5 @@ export interface TextInputProperties extends CommonInputProps {
51
51
  *
52
52
  *
53
53
  */
54
- declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProperties, "size" | "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "list" | "children" | "role" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "enterKeyHint" | "fluid" | "helpText" | "errorText" | "leftIcon" | "rightIcon" | "containerSize"> & React.RefAttributes<HTMLInputElement>>;
54
+ declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProperties, "size" | "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "list" | "children" | "role" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "enterKeyHint" | "fluid" | "helpText" | "errorText" | "leftIcon" | "rightIcon" | "containerSize"> & React.RefAttributes<HTMLInputElement>>;
55
55
  export default TextInput;
@@ -23,7 +23,7 @@ import { ElementBase } from '../helpers';
23
23
  export interface TextLinkProps extends ElementBase<HTMLAnchorElement> {
24
24
  /** The text of the link. */
25
25
  children: React.ReactNode;
26
- /** The hypertex reference. */
26
+ /** The hypertext reference. */
27
27
  href?: string;
28
28
  /**
29
29
  * Adds an external-icon and sets the `target` to `"_blank"`.
@@ -0,0 +1,31 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import React from 'react';
22
+ import type { Side } from '@floating-ui/core/src/types';
23
+ import { TooltipProps } from './Tooltip';
24
+ export interface SmartTooltipProps extends Omit<TooltipProps, 'arrowPosition'> {
25
+ /** Allowed places of the tooltip */
26
+ allowedPlacements?: Side[];
27
+ /** If you want controlled open/close behavior pass an open prop */
28
+ open?: boolean;
29
+ }
30
+ declare const SmartTooltip: React.ForwardRefExoticComponent<Pick<SmartTooltipProps, "size" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "list" | "children" | "role" | "as" | "selected" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "allowedPlacements"> & React.RefAttributes<unknown>>;
31
+ export default SmartTooltip;
@@ -25,5 +25,5 @@ export interface TooltipProps extends React.HTMLProps<HTMLDivElement> {
25
25
  children: React.ReactNode | string;
26
26
  className?: string;
27
27
  }
28
- declare const Tooltip: React.ForwardRefExoticComponent<Pick<TooltipProps, "size" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "list" | "children" | "role" | "as" | "selected" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "arrowPosition"> & React.RefAttributes<HTMLDivElement>>;
28
+ declare const Tooltip: React.ForwardRefExoticComponent<Pick<TooltipProps, "size" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "list" | "children" | "role" | "as" | "selected" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "arrowPosition"> & React.RefAttributes<HTMLDivElement>>;
29
29
  export default Tooltip;
@@ -19,3 +19,4 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  export { default as Tooltip } from './Tooltip';
22
+ export { default as SmartTooltip } from './SmartTooltip';
@@ -18,7 +18,6 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- /// <reference types="react" />
22
21
  interface TrapFocusProps {
23
22
  /**
24
23
  * Must take a ref
@@ -18,10 +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
- import React from 'react';
22
- import * as CustomIcons from './custom/index';
23
- declare type CustomIconNames = keyof typeof CustomIcons;
24
- export declare const CustomIcon: (props: {
25
- iconName: CustomIconNames;
26
- } & React.SVGProps<SVGSVGElement> & React.RefAttributes<SVGSVGElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
27
- export default CustomIcon;
21
+ import { AsType, ConditionalTypography } from './types';
22
+ export declare const Typography: <TVar extends "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "subheading-large" | "subheading-medium" | "subheading-small" | "body-large" | "body-medium" | "body-small", TAs extends AsType = undefined>(props: {
23
+ as?: TAs | undefined;
24
+ variant: TVar;
25
+ } & ConditionalTypography<TAs, TVar>) => JSX.Element;
@@ -0,0 +1,21 @@
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 * from './Typography';
@@ -0,0 +1,34 @@
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
+ /// <reference types="react" />
22
+ import { tokens } from '@neo4j-ndl/base';
23
+ export declare type TypographyVariants = keyof typeof tokens.font.size;
24
+ export declare const TypographyDefaultMapping: {
25
+ [key in TypographyVariants]: React.ElementType;
26
+ };
27
+ declare type Tags = keyof HTMLElementTagNameMap;
28
+ declare type VariantsDefaultType<T extends TypographyVariants> = Omit<React.ComponentPropsWithoutRef<typeof TypographyDefaultMapping[T]>, 'as'> & {
29
+ variant: TypographyVariants;
30
+ };
31
+ export declare type ReactComponent = (args: any) => JSX.Element;
32
+ export declare type AsType = undefined | Tags | React.FunctionComponent<any>;
33
+ export declare type ConditionalTypography<T extends AsType, V extends TypographyVariants> = T extends undefined ? VariantsDefaultType<V> : T extends Tags ? React.ComponentPropsWithoutRef<T> : T extends ReactComponent ? React.ComponentProps<T> : never;
34
+ export {};
@@ -18,7 +18,6 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- /// <reference types="react" />
22
21
  import { ElementBase } from '../helpers';
23
22
  export declare const Horizontal: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => JSX.Element;
24
23
  export declare const Vertical: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => JSX.Element;
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "0.17.0",
3
+ "sideEffects": false,
4
+ "version": "1.0.0-alpha-093fe38",
4
5
  "description": "React implementation of Neo4j Design System",
5
6
  "keywords": [
6
- "button",
7
- "react"
7
+ "neo4j",
8
+ "react",
9
+ "design system",
10
+ "needle",
11
+ "ndl"
8
12
  ],
9
13
  "author": "Neo4j Inc.",
10
14
  "homepage": "",
@@ -14,7 +18,8 @@
14
18
  "exports": {
15
19
  ".": {
16
20
  "import": "./lib/esm/index.js",
17
- "require": "./lib/cjs/index.js"
21
+ "require": "./lib/cjs/index.js",
22
+ "types": "./lib/types/index.d.ts"
18
23
  }
19
24
  },
20
25
  "types": "./lib/types/index.d.ts",
@@ -38,7 +43,8 @@
38
43
  "build:types": "tsc -p tsconfig.types.json",
39
44
  "format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'",
40
45
  "lint": "eslint --ext .jsx,.tsx,.js,.ts src",
41
- "create-icons": "svgr --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --jsx-runtime 'automatic' --out-dir ./src/icons/custom -- ../base/src/icons"
46
+ "generate:custom-icons": "svgr --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --jsx-runtime 'automatic' --out-dir ./src/icons/generated/custom -- ../base/src/icons",
47
+ "generate:hero-icons": "ts-node ./scripts/generatedHeroIcons.ts"
42
48
  },
43
49
  "devDependencies": {
44
50
  "@babel/preset-env": "^7.16.4",
@@ -46,8 +52,10 @@
46
52
  "@svgr/cli": "6.5.1",
47
53
  "@testing-library/jest-dom": "^5.15.1",
48
54
  "@testing-library/react": "^12.1.2",
55
+ "@testing-library/user-event": "^14.4.3",
49
56
  "@types/jest-axe": "^3.5.3",
50
57
  "@types/react-dom": "^17.0.11",
58
+ "@types/react-syntax-highlighter": "^15.5.5",
51
59
  "@types/react-table": "^7.7.10",
52
60
  "@types/tinycolor2": "^1.4.3",
53
61
  "@typescript-eslint/eslint-plugin": "^5.5.0",
@@ -63,14 +71,19 @@
63
71
  "jest-axe": "^5.0.1",
64
72
  "react": "^17.0.2",
65
73
  "react-select-event": "^5.5.0",
66
- "ts-jest": "^27.0.7"
74
+ "ts-jest": "^27.0.7",
75
+ "ts-node": "^10.9.1",
76
+ "typescript": "4.8.4"
67
77
  },
68
78
  "peerDependencies": {
79
+ "@heroicons/react": "2.0.13",
69
80
  "react": "17.x"
70
81
  },
71
82
  "dependencies": {
72
- "@heroicons/react": "^1.0.5",
73
- "@neo4j-ndl/base": "^0.16.0",
83
+ "@floating-ui/react-dom-interactions": "^0.12.0",
84
+ "@heroicons/react": "2.0.13",
85
+ "@neo4j-ndl/base": "workspace:^",
86
+ "@tanstack/react-table": "^8.5.22",
74
87
  "classnames": "^2.3.1",
75
88
  "detect-browser": "^5.3.0",
76
89
  "react-dropzone": "^14.0.0",
@@ -80,4 +93,4 @@
80
93
  "react-use": "^17.4.0",
81
94
  "tinycolor2": "^1.4.2"
82
95
  }
83
- }
96
+ }