@neo4j-ndl/react 2.9.1 → 2.9.2

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 (298) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/lib/LICENSES.txt +292 -37
  3. package/lib/NOTICE.txt +33 -13
  4. package/lib/cjs/_common/CodeBlockWrapper.js +1 -1
  5. package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
  6. package/lib/cjs/_common/defaultImports.js +5 -5
  7. package/lib/cjs/_common/defaultImports.js.map +1 -1
  8. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +5 -1
  9. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  10. package/lib/cjs/_common/input/types.js +2 -1
  11. package/lib/cjs/_common/input/types.js.map +1 -1
  12. package/lib/cjs/_common/utils.js +6 -2
  13. package/lib/cjs/_common/utils.js.map +1 -1
  14. package/lib/cjs/accordion/Accordion.js +4 -2
  15. package/lib/cjs/accordion/Accordion.js.map +1 -1
  16. package/lib/cjs/avatar/Avatar.js +2 -2
  17. package/lib/cjs/avatar/Avatar.js.map +1 -1
  18. package/lib/cjs/banner/Banner.js +2 -2
  19. package/lib/cjs/banner/Banner.js.map +1 -1
  20. package/lib/cjs/breadcrumbs/Breadcrumbs.js +2 -2
  21. package/lib/cjs/breadcrumbs/Breadcrumbs.js.map +1 -1
  22. package/lib/cjs/button/Button.js +28 -27
  23. package/lib/cjs/button/Button.js.map +1 -1
  24. package/lib/cjs/button/IconButton.js +4 -4
  25. package/lib/cjs/button/IconButton.js.map +1 -1
  26. package/lib/cjs/button/IconButtonArray.js.map +1 -1
  27. package/lib/cjs/checkbox/Checkbox.js.map +1 -1
  28. package/lib/cjs/clipboard-copier/ClipboardButton.js +2 -2
  29. package/lib/cjs/clipboard-copier/ClipboardButton.js.map +1 -1
  30. package/lib/cjs/code-block/CodeBlock.js +1 -15
  31. package/lib/cjs/code-block/CodeBlock.js.map +1 -1
  32. package/lib/cjs/context-menu/ContextMenu.js +5 -4
  33. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  34. package/lib/cjs/context-menu/SafeArea.js +1 -1
  35. package/lib/cjs/context-menu/SafeArea.js.map +1 -1
  36. package/lib/cjs/cypher-code-block/CypherCodeBlock.js +1 -1
  37. package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +1 -1
  38. package/lib/cjs/data-grid/Components.js +7 -5
  39. package/lib/cjs/data-grid/Components.js.map +1 -1
  40. package/lib/cjs/data-grid/DataGrid.js +7 -7
  41. package/lib/cjs/data-grid/DataGrid.js.map +1 -1
  42. package/lib/cjs/data-grid/DataGridContext.js +3 -1
  43. package/lib/cjs/data-grid/DataGridContext.js.map +1 -1
  44. package/lib/cjs/data-grid/datagrid-types.js +2 -1
  45. package/lib/cjs/data-grid/datagrid-types.js.map +1 -1
  46. package/lib/cjs/data-grid/helpers.js +2 -1
  47. package/lib/cjs/data-grid/helpers.js.map +1 -1
  48. package/lib/cjs/data-grid/index.js +24 -24
  49. package/lib/cjs/data-grid/index.js.map +1 -1
  50. package/lib/cjs/date-picker/DatePicker.js +4 -3
  51. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  52. package/lib/cjs/dialog/Dialog.js +1 -1
  53. package/lib/cjs/dialog/Dialog.js.map +1 -1
  54. package/lib/cjs/drawer/Drawer.js +8 -8
  55. package/lib/cjs/drawer/Drawer.js.map +1 -1
  56. package/lib/cjs/dropdown/Dropdown.js +7 -5
  57. package/lib/cjs/dropdown/Dropdown.js.map +1 -1
  58. package/lib/cjs/dropdown/Overrides.js +2 -1
  59. package/lib/cjs/dropdown/Overrides.js.map +1 -1
  60. package/lib/cjs/dropdown/types.js +2 -1
  61. package/lib/cjs/dropdown/types.js.map +1 -1
  62. package/lib/cjs/dropzone/Dropzone.js +4 -4
  63. package/lib/cjs/dropzone/Dropzone.js.map +1 -1
  64. package/lib/cjs/dropzone/icons/CSV-file.js.map +1 -1
  65. package/lib/cjs/dropzone/icons/Cloud.js.map +1 -1
  66. package/lib/cjs/dropzone/icons/File.js.map +1 -1
  67. package/lib/cjs/dropzone/icons/InvalidFile.js.map +1 -1
  68. package/lib/cjs/graph-label/GraphLabel.js +1 -1
  69. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  70. package/lib/cjs/graph-label/color.js +6 -6
  71. package/lib/cjs/graph-label/color.js.map +1 -1
  72. package/lib/cjs/helpers/forwardRef.js +2 -2
  73. package/lib/cjs/helpers/forwardRef.js.map +1 -1
  74. package/lib/cjs/hooks/index.js +5 -3
  75. package/lib/cjs/hooks/index.js.map +1 -1
  76. package/lib/cjs/inline-edit/InlineEdit.js +4 -4
  77. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  78. package/lib/cjs/label/Label.js.map +1 -1
  79. package/lib/cjs/layout/Box.js.map +1 -1
  80. package/lib/cjs/layout/Flex.js +1 -1
  81. package/lib/cjs/layout/Flex.js.map +1 -1
  82. package/lib/cjs/layout/types.js +2 -2
  83. package/lib/cjs/layout/types.js.map +1 -1
  84. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  85. package/lib/cjs/logo/Logo.js +1 -1
  86. package/lib/cjs/logo/Logo.js.map +1 -1
  87. package/lib/cjs/modal/Modal.js +2 -2
  88. package/lib/cjs/modal/Modal.js.map +1 -1
  89. package/lib/cjs/popover/Popover.js +5 -4
  90. package/lib/cjs/popover/Popover.js.map +1 -1
  91. package/lib/cjs/portal/Portal.js +2 -2
  92. package/lib/cjs/portal/Portal.js.map +1 -1
  93. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
  94. package/lib/cjs/radio/Radio.js.map +1 -1
  95. package/lib/cjs/segmented-control/SegmentedControl.js +3 -1
  96. package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
  97. package/lib/cjs/side-navigation/SideNavigation.js +5 -2
  98. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  99. package/lib/cjs/slider/Slider.js +3 -3
  100. package/lib/cjs/slider/Slider.js.map +1 -1
  101. package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
  102. package/lib/cjs/switch/Switch.js.map +1 -1
  103. package/lib/cjs/table/Components.js +7 -3
  104. package/lib/cjs/table/Components.js.map +1 -1
  105. package/lib/cjs/table/Table.js +18 -17
  106. package/lib/cjs/table/Table.js.map +1 -1
  107. package/lib/cjs/table/TableContext.js +3 -1
  108. package/lib/cjs/table/TableContext.js.map +1 -1
  109. package/lib/cjs/table/helpers.js +2 -1
  110. package/lib/cjs/table/helpers.js.map +1 -1
  111. package/lib/cjs/table/index.js +24 -24
  112. package/lib/cjs/table/index.js.map +1 -1
  113. package/lib/cjs/tabs/Tabs.js +1 -0
  114. package/lib/cjs/tabs/Tabs.js.map +1 -1
  115. package/lib/cjs/tag/Tag.js +4 -2
  116. package/lib/cjs/tag/Tag.js.map +1 -1
  117. package/lib/cjs/text-input/TextInput.js +5 -3
  118. package/lib/cjs/text-input/TextInput.js.map +1 -1
  119. package/lib/cjs/text-link/TextLink.js.map +1 -1
  120. package/lib/cjs/textarea/Textarea.js +5 -3
  121. package/lib/cjs/textarea/Textarea.js.map +1 -1
  122. package/lib/cjs/theme/ThemeProvider.js.map +1 -1
  123. package/lib/cjs/theme/agnostic.js +3 -2
  124. package/lib/cjs/theme/agnostic.js.map +1 -1
  125. package/lib/cjs/tip/Tip.js +7 -5
  126. package/lib/cjs/tip/Tip.js.map +1 -1
  127. package/lib/cjs/tip/Tooltip.js.map +1 -1
  128. package/lib/cjs/typography/Typography.js.map +1 -1
  129. package/lib/cjs/typography/types.js +4 -1
  130. package/lib/cjs/typography/types.js.map +1 -1
  131. package/lib/cjs/widget/Widget.js.map +1 -1
  132. package/lib/cjs/wizard/Wizard.js.map +1 -1
  133. package/lib/esm/_common/CodeBlockWrapper.js +1 -1
  134. package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
  135. package/lib/esm/_common/defaultImports.js.map +1 -1
  136. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +5 -1
  137. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  138. package/lib/esm/_common/input/types.js +1 -0
  139. package/lib/esm/_common/input/types.js.map +1 -1
  140. package/lib/esm/_common/utils.js +4 -0
  141. package/lib/esm/_common/utils.js.map +1 -1
  142. package/lib/esm/accordion/Accordion.js +4 -2
  143. package/lib/esm/accordion/Accordion.js.map +1 -1
  144. package/lib/esm/avatar/Avatar.js +2 -2
  145. package/lib/esm/avatar/Avatar.js.map +1 -1
  146. package/lib/esm/banner/Banner.js +2 -2
  147. package/lib/esm/banner/Banner.js.map +1 -1
  148. package/lib/esm/breadcrumbs/Breadcrumbs.js +3 -3
  149. package/lib/esm/breadcrumbs/Breadcrumbs.js.map +1 -1
  150. package/lib/esm/button/Button.js +22 -21
  151. package/lib/esm/button/Button.js.map +1 -1
  152. package/lib/esm/button/IconButton.js +4 -4
  153. package/lib/esm/button/IconButton.js.map +1 -1
  154. package/lib/esm/button/IconButtonArray.js.map +1 -1
  155. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  156. package/lib/esm/clipboard-copier/ClipboardButton.js +2 -2
  157. package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
  158. package/lib/esm/code-block/CodeBlock.js +1 -15
  159. package/lib/esm/code-block/CodeBlock.js.map +1 -1
  160. package/lib/esm/context-menu/ContextMenu.js +5 -4
  161. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  162. package/lib/esm/context-menu/SafeArea.js +1 -1
  163. package/lib/esm/context-menu/SafeArea.js.map +1 -1
  164. package/lib/esm/cypher-code-block/CypherCodeBlock.js +1 -1
  165. package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +1 -1
  166. package/lib/esm/data-grid/Components.js +7 -5
  167. package/lib/esm/data-grid/Components.js.map +1 -1
  168. package/lib/esm/data-grid/DataGrid.js +3 -3
  169. package/lib/esm/data-grid/DataGrid.js.map +1 -1
  170. package/lib/esm/data-grid/DataGridContext.js +3 -1
  171. package/lib/esm/data-grid/DataGridContext.js.map +1 -1
  172. package/lib/esm/data-grid/datagrid-types.js +1 -0
  173. package/lib/esm/data-grid/datagrid-types.js.map +1 -1
  174. package/lib/esm/data-grid/helpers.js +1 -0
  175. package/lib/esm/data-grid/helpers.js.map +1 -1
  176. package/lib/esm/data-grid/index.js +2 -2
  177. package/lib/esm/data-grid/index.js.map +1 -1
  178. package/lib/esm/date-picker/DatePicker.js +5 -4
  179. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  180. package/lib/esm/dialog/Dialog.js +1 -1
  181. package/lib/esm/dialog/Dialog.js.map +1 -1
  182. package/lib/esm/drawer/Drawer.js +7 -7
  183. package/lib/esm/drawer/Drawer.js.map +1 -1
  184. package/lib/esm/dropdown/Dropdown.js +7 -5
  185. package/lib/esm/dropdown/Dropdown.js.map +1 -1
  186. package/lib/esm/dropdown/Overrides.js +2 -1
  187. package/lib/esm/dropdown/Overrides.js.map +1 -1
  188. package/lib/esm/dropdown/types.js +1 -0
  189. package/lib/esm/dropdown/types.js.map +1 -1
  190. package/lib/esm/dropzone/Dropzone.js +4 -4
  191. package/lib/esm/dropzone/Dropzone.js.map +1 -1
  192. package/lib/esm/dropzone/icons/CSV-file.js.map +1 -1
  193. package/lib/esm/dropzone/icons/Cloud.js.map +1 -1
  194. package/lib/esm/dropzone/icons/File.js.map +1 -1
  195. package/lib/esm/dropzone/icons/InvalidFile.js.map +1 -1
  196. package/lib/esm/graph-label/GraphLabel.js +1 -1
  197. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  198. package/lib/esm/graph-label/color.js +1 -1
  199. package/lib/esm/graph-label/color.js.map +1 -1
  200. package/lib/esm/helpers/forwardRef.js.map +1 -1
  201. package/lib/esm/hooks/index.js +3 -1
  202. package/lib/esm/hooks/index.js.map +1 -1
  203. package/lib/esm/inline-edit/InlineEdit.js +5 -5
  204. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  205. package/lib/esm/label/Label.js +1 -1
  206. package/lib/esm/label/Label.js.map +1 -1
  207. package/lib/esm/layout/Box.js +1 -1
  208. package/lib/esm/layout/Box.js.map +1 -1
  209. package/lib/esm/layout/Flex.js +2 -2
  210. package/lib/esm/layout/Flex.js.map +1 -1
  211. package/lib/esm/layout/types.js.map +1 -1
  212. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  213. package/lib/esm/logo/Logo.js +1 -1
  214. package/lib/esm/logo/Logo.js.map +1 -1
  215. package/lib/esm/modal/Modal.js +2 -2
  216. package/lib/esm/modal/Modal.js.map +1 -1
  217. package/lib/esm/popover/Popover.js +5 -4
  218. package/lib/esm/popover/Popover.js.map +1 -1
  219. package/lib/esm/portal/Portal.js.map +1 -1
  220. package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
  221. package/lib/esm/radio/Radio.js.map +1 -1
  222. package/lib/esm/segmented-control/SegmentedControl.js +3 -1
  223. package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
  224. package/lib/esm/side-navigation/SideNavigation.js +6 -3
  225. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  226. package/lib/esm/slider/Slider.js +3 -3
  227. package/lib/esm/slider/Slider.js.map +1 -1
  228. package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
  229. package/lib/esm/switch/Switch.js.map +1 -1
  230. package/lib/esm/table/Components.js +7 -3
  231. package/lib/esm/table/Components.js.map +1 -1
  232. package/lib/esm/table/Table.js +15 -14
  233. package/lib/esm/table/Table.js.map +1 -1
  234. package/lib/esm/table/TableContext.js +3 -1
  235. package/lib/esm/table/TableContext.js.map +1 -1
  236. package/lib/esm/table/helpers.js +1 -0
  237. package/lib/esm/table/helpers.js.map +1 -1
  238. package/lib/esm/table/index.js +2 -2
  239. package/lib/esm/table/index.js.map +1 -1
  240. package/lib/esm/tabs/Tabs.js +1 -0
  241. package/lib/esm/tabs/Tabs.js.map +1 -1
  242. package/lib/esm/tag/Tag.js +4 -2
  243. package/lib/esm/tag/Tag.js.map +1 -1
  244. package/lib/esm/text-input/TextInput.js +5 -3
  245. package/lib/esm/text-input/TextInput.js.map +1 -1
  246. package/lib/esm/text-link/TextLink.js.map +1 -1
  247. package/lib/esm/textarea/Textarea.js +5 -3
  248. package/lib/esm/textarea/Textarea.js.map +1 -1
  249. package/lib/esm/theme/ThemeProvider.js.map +1 -1
  250. package/lib/esm/theme/agnostic.js +1 -0
  251. package/lib/esm/theme/agnostic.js.map +1 -1
  252. package/lib/esm/tip/Tip.js +8 -6
  253. package/lib/esm/tip/Tip.js.map +1 -1
  254. package/lib/esm/tip/Tooltip.js.map +1 -1
  255. package/lib/esm/typography/Typography.js.map +1 -1
  256. package/lib/esm/typography/types.js +3 -0
  257. package/lib/esm/typography/types.js.map +1 -1
  258. package/lib/esm/widget/Widget.js.map +1 -1
  259. package/lib/esm/wizard/Wizard.js.map +1 -1
  260. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +1 -0
  261. package/lib/types/_common/input/types.d.ts +1 -1
  262. package/lib/types/avatar/Avatar.d.ts +0 -1
  263. package/lib/types/breadcrumbs/Breadcrumbs.d.ts +1 -1
  264. package/lib/types/button/Button.d.ts +1 -1
  265. package/lib/types/clipboard-copier/ClipboardButton.d.ts +1 -0
  266. package/lib/types/context-menu/SafeArea.d.ts +1 -0
  267. package/lib/types/cypher-code-block/CypherCodeBlock.d.ts +2 -1
  268. package/lib/types/data-grid/Components.d.ts +2 -2
  269. package/lib/types/data-grid/DataGrid.d.ts +2 -1
  270. package/lib/types/data-grid/DataGridContext.d.ts +3 -3
  271. package/lib/types/data-grid/datagrid-types.d.ts +1 -1
  272. package/lib/types/data-grid/helpers.d.ts +1 -1
  273. package/lib/types/data-grid/index.d.ts +2 -2
  274. package/lib/types/date-picker/DatePicker.d.ts +2 -1
  275. package/lib/types/drawer/Drawer.d.ts +2 -2
  276. package/lib/types/dropdown/Dropdown.d.ts +1 -1
  277. package/lib/types/dropdown/Overrides.d.ts +1 -1
  278. package/lib/types/dropdown/types.d.ts +2 -2
  279. package/lib/types/dropzone/Dropzone.d.ts +1 -0
  280. package/lib/types/graph-label/GraphLabel.d.ts +1 -0
  281. package/lib/types/graph-label/color.d.ts +1 -0
  282. package/lib/types/hooks/index.d.ts +1 -0
  283. package/lib/types/inline-edit/InlineEdit.d.ts +1 -0
  284. package/lib/types/layout/Box.d.ts +1 -1
  285. package/lib/types/layout/Flex.d.ts +2 -1
  286. package/lib/types/layout/types.d.ts +1 -1
  287. package/lib/types/portal/Portal.d.ts +1 -0
  288. package/lib/types/slider/Slider.d.ts +0 -1
  289. package/lib/types/table/Components.d.ts +3 -4
  290. package/lib/types/table/Table.d.ts +2 -2
  291. package/lib/types/table/TableContext.d.ts +2 -2
  292. package/lib/types/table/index.d.ts +2 -2
  293. package/lib/types/theme/agnostic.d.ts +1 -0
  294. package/lib/types/tip/Tip.d.ts +1 -1
  295. package/lib/types/typography/Typography.d.ts +1 -0
  296. package/lib/types/typography/types.d.ts +1 -1
  297. package/lib/types/wizard/Wizard.d.ts +1 -0
  298. package/package.json +4 -12
@@ -18,6 +18,7 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
+
21
22
  import { type ComponentPropsWithoutRef, type InputHTMLAttributes, type ReactNode } from 'react';
22
23
  import { type TooltipObjectProps } from '../_common/input/types';
23
24
  import { Typography } from '../typography';
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React, { type ComponentPropsWithoutRef } from 'react';
22
- import { type CustomElementType, type Spacing, type Radius } from './types';
22
+ import { type CustomElementType, type Radius, type Spacing } from './types';
23
23
  type BaseBoxProps<T extends CustomElementType> = {
24
24
  /**
25
25
  * The DOM element to render as the Box.
@@ -18,8 +18,9 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
+
21
22
  import React, { type ComponentPropsWithoutRef } from 'react';
22
- import { type CustomElementType, type Spacing, type Radius } from './types';
23
+ import { type CustomElementType, type Radius, type Spacing } from './types';
23
24
  type AllowedFlexElements = 'div' | 'span' | 'ul' | 'ol' | 'li';
24
25
  type BaseFlexProps<T extends CustomElementType> = {
25
26
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  *
3
4
  * Copyright (c) "Neo4j"
@@ -18,7 +19,6 @@
18
19
  * You should have received a copy of the GNU General Public License
19
20
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21
  */
21
- /// <reference types="react" />
22
22
  import { tokens } from '@neo4j-ndl/base';
23
23
  /**
24
24
  * Currently supporting only native HTML elements.
@@ -18,6 +18,7 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
+
21
22
  /// <reference types="react" />
22
23
  interface PortalProps {
23
24
  children: React.ReactNode | null;
@@ -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
-
22
21
  import React from 'react';
23
22
  import { type ComponentPropsWithoutRefAsObj } from '../helpers';
24
23
  export interface SliderPropsBase {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  *
3
4
  * Copyright (c) "Neo4j"
@@ -18,11 +19,9 @@
18
19
  * You should have received a copy of the GNU General Public License
19
20
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21
  */
21
-
22
- /// <reference types="react" />
23
- import { type RowData, type Row, type Cell, type Header as HeaderType } from '@tanstack/react-table';
24
- import { type ElementBase } from '../helpers';
22
+ import { type Cell, type Header as HeaderType, type Row, type RowData } from '@tanstack/react-table';
25
23
  import { type SortingColumn } from '@tanstack/table-core';
24
+ import { type ElementBase } from '../helpers';
26
25
  export interface CommonInnerProps<T = HTMLDivElement> {
27
26
  /** Children are surfaced to allow easy overriding */
28
27
  children?: React.ReactNode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  *
3
4
  * Copyright (c) "Neo4j"
@@ -18,9 +19,8 @@
18
19
  * You should have received a copy of the GNU General Public License
19
20
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21
  */
21
- /// <reference types="react" />
22
- import { type ElementBase } from '../helpers';
23
22
  import { type Table as TableType } from '@tanstack/react-table';
23
+ import { type ElementBase } from '../helpers';
24
24
  import { type TableComponentsInterface } from './TableContext';
25
25
  /**
26
26
  *
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  *
3
4
  * Copyright (c) "Neo4j"
@@ -18,9 +19,8 @@
18
19
  * You should have received a copy of the GNU General Public License
19
20
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21
  */
21
- /// <reference types="react" />
22
22
  import { type RowData, type Table as TableType } from '@tanstack/react-table';
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';
23
+ import { type Body, type BodyCell, type BodyRow, type ColumnControls, type Header, type HeaderCell, type LoadingPlaceholder, type Navigation, type NoDataPlaceholder, type Pagination, type PaginationArrowButton, type PaginationNumericButton, type PaginationNumericButtons, type ResizingBar, type RowsPerPage, type Scrollable, type SortingButton, type TableResults } from './Components';
24
24
  type Nullable<T> = T | null;
25
25
  export interface TableComponentsInterface<T extends RowData> {
26
26
  ResizingBar?: Nullable<typeof ResizingBar<T>>;
@@ -1,3 +1,5 @@
1
+ import { useTableContext } from './TableContext';
2
+ import * as tableUtils from './helpers';
1
3
  /**
2
4
  *
3
5
  * Copyright (c) "Neo4j"
@@ -19,6 +21,4 @@
19
21
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
22
  */
21
23
  export { default as Table, TableComponents } from './Table';
22
- import * as tableUtils from './helpers';
23
- import { useTableContext } from './TableContext';
24
24
  export { tableUtils, useTableContext };
@@ -18,6 +18,7 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
+
21
22
  declare function defaultStringToJson(path: string, json: any, theme: string): any;
22
23
  export declare const n: (path: string, stringToJson?: typeof defaultStringToJson) => string | void;
23
24
  export {};
@@ -19,9 +19,9 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import { FloatingPortal, type Side } from '@floating-ui/react';
22
+ import React, { type ComponentProps } from 'react';
22
23
  import { type ElementBase } from '../helpers';
23
24
  import { Typography } from '../typography';
24
- import React, { type ComponentProps } from 'react';
25
25
  export interface TipProps {
26
26
  /** Type of the tip */
27
27
  type?: 'tooltip' | 'toggletip';
@@ -18,6 +18,7 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
+
21
22
  import { type AsType, type ConditionalTypography } from './types';
22
23
  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: {
23
24
  as?: TAs | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  *
3
4
  * Copyright (c) "Neo4j"
@@ -18,7 +19,6 @@
18
19
  * You should have received a copy of the GNU General Public License
19
20
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21
  */
21
- /// <reference types="react" />
22
22
  import { type tokens } from '@neo4j-ndl/base';
23
23
  export type TypographyVariants = keyof typeof tokens.font.size;
24
24
  export declare const TypographyDefaultMapping: {
@@ -18,6 +18,7 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
+
21
22
  /// <reference types="react" />
22
23
  import { type ElementBase } from '../helpers';
23
24
  export declare const Horizontal: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps, 'type'>) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "2.9.1",
3
+ "version": "2.9.2",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -69,16 +69,7 @@
69
69
  "@types/react-table": "^7.7.10",
70
70
  "@types/sinon": "17",
71
71
  "@types/tinycolor2": "^1.4.3",
72
- "@typescript-eslint/eslint-plugin": "^5.5.0",
73
- "@typescript-eslint/parser": "6.15.0",
74
72
  "@vitejs/plugin-react": "4.2.1",
75
- "eslint": "^8.3.0",
76
- "eslint-config-prettier": "^8.3.0",
77
- "eslint-plugin-import": "2.28.1",
78
- "eslint-plugin-jsx-a11y": "^6.5.1",
79
- "eslint-plugin-prettier": "5.1.3",
80
- "eslint-plugin-react": "^7.27.1",
81
- "eslint-plugin-react-hooks": "^4.3.0",
82
73
  "jsdom": "22.1.0",
83
74
  "react": "18.2.0",
84
75
  "react-select-event": "^5.5.0",
@@ -90,13 +81,14 @@
90
81
  },
91
82
  "peerDependencies": {
92
83
  "@heroicons/react": "2.0.13",
93
- "react": ">=16.8.0"
84
+ "react": ">=16.8.0",
85
+ "react-dom": ">=16.8.0"
94
86
  },
95
87
  "dependencies": {
96
88
  "@floating-ui/react": "0.25.1",
97
89
  "@heroicons/react": "2.0.13",
98
90
  "@neo4j-cypher/react-codemirror": "^1.0.1",
99
- "@neo4j-ndl/base": "^2.7.10",
91
+ "@neo4j-ndl/base": "^2.7.11",
100
92
  "@table-nav/core": "0.0.7",
101
93
  "@table-nav/react": "0.0.7",
102
94
  "@tanstack/react-table": "^8.9.3",