@neo4j-ndl/react 3.4.4 → 3.4.6

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 (308) hide show
  1. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +5 -4
  2. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  3. package/lib/cjs/accordion/Accordion.js +16 -15
  4. package/lib/cjs/accordion/Accordion.js.map +1 -1
  5. package/lib/cjs/accordion/stories/accordion-clean-items-expanded.story.js +4 -4
  6. package/lib/cjs/accordion/stories/accordion-clean-items-expanded.story.js.map +1 -1
  7. package/lib/cjs/accordion/stories/accordion-default-expanded.story.js +4 -4
  8. package/lib/cjs/accordion/stories/accordion-default-expanded.story.js.map +1 -1
  9. package/lib/cjs/accordion/stories/accordion-full.story.js +4 -4
  10. package/lib/cjs/accordion/stories/accordion-full.story.js.map +1 -1
  11. package/lib/cjs/accordion/stories/accordion-multiple-expanded.story.js +4 -4
  12. package/lib/cjs/accordion/stories/accordion-multiple-expanded.story.js.map +1 -1
  13. package/lib/cjs/accordion/stories/accordion-right-content.story.js +4 -4
  14. package/lib/cjs/accordion/stories/accordion-right-content.story.js.map +1 -1
  15. package/lib/cjs/accordion/stories/accordion-single-expanded.story.js +4 -4
  16. package/lib/cjs/accordion/stories/accordion-single-expanded.story.js.map +1 -1
  17. package/lib/cjs/accordion/stories/accordion.stories.js +17 -17
  18. package/lib/cjs/accordion/stories/accordion.stories.js.map +1 -1
  19. package/lib/cjs/avatar/Avatar.js.map +1 -1
  20. package/lib/cjs/banner/Banner.js +1 -1
  21. package/lib/cjs/banner/Banner.js.map +1 -1
  22. package/lib/cjs/banner/stories/banner-closeable.story.js +30 -0
  23. package/lib/cjs/banner/stories/banner-closeable.story.js.map +1 -0
  24. package/lib/cjs/banner/stories/banner-global.story.js +30 -0
  25. package/lib/cjs/banner/stories/banner-global.story.js.map +1 -0
  26. package/lib/cjs/banner/stories/banner-types.story.js +30 -0
  27. package/lib/cjs/banner/stories/banner-types.story.js.map +1 -0
  28. package/lib/cjs/banner/stories/banner-with-actions.story.js +41 -0
  29. package/lib/cjs/banner/stories/banner-with-actions.story.js.map +1 -0
  30. package/lib/cjs/banner/stories/banner-with-icons.story.js +30 -0
  31. package/lib/cjs/banner/stories/banner-with-icons.story.js.map +1 -0
  32. package/lib/cjs/banner/stories/banner-without-title.story.js +36 -0
  33. package/lib/cjs/banner/stories/banner-without-title.story.js.map +1 -0
  34. package/lib/cjs/banner/stories/banner.stories.js +113 -0
  35. package/lib/cjs/banner/stories/banner.stories.js.map +1 -0
  36. package/lib/cjs/banner/stories/index.js +51 -0
  37. package/lib/cjs/banner/stories/index.js.map +1 -0
  38. package/lib/cjs/breadcrumbs/Breadcrumbs.js.map +1 -1
  39. package/lib/cjs/button/Button.js.map +1 -1
  40. package/lib/cjs/button/IconButton.js.map +1 -1
  41. package/lib/cjs/button/IconButtonArray.js +1 -1
  42. package/lib/cjs/button/IconButtonArray.js.map +1 -1
  43. package/lib/cjs/callout/Callout.js.map +1 -1
  44. package/lib/cjs/clipboard-copier/ClipboardButton.js +1 -1
  45. package/lib/cjs/clipboard-copier/ClipboardButton.js.map +1 -1
  46. package/lib/cjs/code/Code.js +2 -2
  47. package/lib/cjs/code/Code.js.map +1 -1
  48. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js +4 -4
  49. package/lib/cjs/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  50. package/lib/cjs/context-menu/ContextMenu.js +3 -3
  51. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  52. package/lib/cjs/data-grid/Components.js +16 -13
  53. package/lib/cjs/data-grid/Components.js.map +1 -1
  54. package/lib/cjs/data-grid/DataGrid.js +11 -7
  55. package/lib/cjs/data-grid/DataGrid.js.map +1 -1
  56. package/lib/cjs/data-grid/DataGridContext.js.map +1 -1
  57. package/lib/cjs/data-grid/data-grid-nav/index.js +4 -3
  58. package/lib/cjs/data-grid/data-grid-nav/index.js.map +1 -1
  59. package/lib/cjs/data-grid/datagrid-types.js +1 -3
  60. package/lib/cjs/data-grid/datagrid-types.js.map +1 -1
  61. package/lib/cjs/date-picker/DatePicker.js +2 -2
  62. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  63. package/lib/cjs/dialog/Dialog.js.map +1 -1
  64. package/lib/cjs/divider/Divider.js.map +1 -1
  65. package/lib/cjs/drawer/Drawer.js +1 -1
  66. package/lib/cjs/drawer/Drawer.js.map +1 -1
  67. package/lib/cjs/dropdown-button/DropdownButton.js.map +1 -1
  68. package/lib/cjs/dropdown-button/avatar-test.stories.tsx.js +1 -1
  69. package/lib/cjs/dropdown-button/avatar-test.stories.tsx.js.map +1 -1
  70. package/lib/cjs/dropzone/Dropzone.js +2 -2
  71. package/lib/cjs/dropzone/Dropzone.js.map +1 -1
  72. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  73. package/lib/cjs/inline-edit/InlineEdit.js +1 -1
  74. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  75. package/lib/cjs/label/Label.js +16 -15
  76. package/lib/cjs/label/Label.js.map +1 -1
  77. package/lib/cjs/layout/Box.js +5 -4
  78. package/lib/cjs/layout/Box.js.map +1 -1
  79. package/lib/cjs/layout/Flex.js.map +1 -1
  80. package/lib/cjs/loading-bar/loading-bar.js.map +1 -1
  81. package/lib/cjs/loading-spinner/LoadingSpinner.js +16 -15
  82. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  83. package/lib/cjs/modal/Modal.js.map +1 -1
  84. package/lib/cjs/popover/Popover.js +12 -12
  85. package/lib/cjs/popover/Popover.js.map +1 -1
  86. package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
  87. package/lib/cjs/select/Overrides.js +1 -1
  88. package/lib/cjs/select/Overrides.js.map +1 -1
  89. package/lib/cjs/select/Select.js +9 -8
  90. package/lib/cjs/select/Select.js.map +1 -1
  91. package/lib/cjs/side-navigation/SideNavigation.js +16 -15
  92. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  93. package/lib/cjs/slider/Slider.js.map +1 -1
  94. package/lib/cjs/spotlight/Spotlight.js +3 -3
  95. package/lib/cjs/spotlight/Spotlight.js.map +1 -1
  96. package/lib/cjs/spotlight/SpotlightProvider.js.map +1 -1
  97. package/lib/cjs/spotlight/SpotlightTarget.js +8 -8
  98. package/lib/cjs/spotlight/SpotlightTarget.js.map +1 -1
  99. package/lib/cjs/spotlight/SpotlightTour.js +16 -15
  100. package/lib/cjs/spotlight/SpotlightTour.js.map +1 -1
  101. package/lib/cjs/tabs/Tabs.js.map +1 -1
  102. package/lib/cjs/tag/Tag.js.map +1 -1
  103. package/lib/cjs/text-area/TextArea.js +5 -4
  104. package/lib/cjs/text-area/TextArea.js.map +1 -1
  105. package/lib/cjs/text-input/TextInput.js +2 -2
  106. package/lib/cjs/text-input/TextInput.js.map +1 -1
  107. package/lib/cjs/text-link/TextLink.js.map +1 -1
  108. package/lib/cjs/time-picker/TimePicker.js +4 -4
  109. package/lib/cjs/time-picker/TimePicker.js.map +1 -1
  110. package/lib/cjs/toast/Toast.js +2 -2
  111. package/lib/cjs/toast/Toast.js.map +1 -1
  112. package/lib/cjs/tooltip/Tooltip.js +5 -5
  113. package/lib/cjs/tooltip/Tooltip.js.map +1 -1
  114. package/lib/cjs/tooltip/use-tooltip.js +17 -17
  115. package/lib/cjs/tooltip/use-tooltip.js.map +1 -1
  116. package/lib/cjs/tree-view/TreeItemWrapper.js +1 -1
  117. package/lib/cjs/tree-view/TreeItemWrapper.js.map +1 -1
  118. package/lib/cjs/tree-view/TreeView.js +2 -2
  119. package/lib/cjs/tree-view/TreeView.js.map +1 -1
  120. package/lib/cjs/tree-view/TreeViewTextItem.js +2 -2
  121. package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -1
  122. package/lib/cjs/typography/Typography.js.map +1 -1
  123. package/lib/cjs/widget/Widget.js +8 -7
  124. package/lib/cjs/widget/Widget.js.map +1 -1
  125. package/lib/cjs/wizard/Wizard.js.map +1 -1
  126. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +2 -1
  127. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  128. package/lib/esm/accordion/Accordion.js +13 -12
  129. package/lib/esm/accordion/Accordion.js.map +1 -1
  130. package/lib/esm/accordion/stories/accordion-clean-items-expanded.story.js +2 -2
  131. package/lib/esm/accordion/stories/accordion-clean-items-expanded.story.js.map +1 -1
  132. package/lib/esm/accordion/stories/accordion-default-expanded.story.js +2 -2
  133. package/lib/esm/accordion/stories/accordion-default-expanded.story.js.map +1 -1
  134. package/lib/esm/accordion/stories/accordion-full.story.js +2 -2
  135. package/lib/esm/accordion/stories/accordion-full.story.js.map +1 -1
  136. package/lib/esm/accordion/stories/accordion-multiple-expanded.story.js +2 -2
  137. package/lib/esm/accordion/stories/accordion-multiple-expanded.story.js.map +1 -1
  138. package/lib/esm/accordion/stories/accordion-right-content.story.js +2 -2
  139. package/lib/esm/accordion/stories/accordion-right-content.story.js.map +1 -1
  140. package/lib/esm/accordion/stories/accordion-single-expanded.story.js +2 -2
  141. package/lib/esm/accordion/stories/accordion-single-expanded.story.js.map +1 -1
  142. package/lib/esm/accordion/stories/accordion.stories.js +17 -17
  143. package/lib/esm/accordion/stories/accordion.stories.js.map +1 -1
  144. package/lib/esm/avatar/Avatar.js.map +1 -1
  145. package/lib/esm/banner/Banner.js +1 -1
  146. package/lib/esm/banner/Banner.js.map +1 -1
  147. package/lib/esm/banner/stories/banner-closeable.story.js +28 -0
  148. package/lib/esm/banner/stories/banner-closeable.story.js.map +1 -0
  149. package/lib/esm/banner/stories/banner-global.story.js +28 -0
  150. package/lib/esm/banner/stories/banner-global.story.js.map +1 -0
  151. package/lib/esm/banner/stories/banner-types.story.js +28 -0
  152. package/lib/esm/banner/stories/banner-types.story.js.map +1 -0
  153. package/lib/esm/banner/stories/banner-with-actions.story.js +39 -0
  154. package/lib/esm/banner/stories/banner-with-actions.story.js.map +1 -0
  155. package/lib/esm/banner/stories/banner-with-icons.story.js +28 -0
  156. package/lib/esm/banner/stories/banner-with-icons.story.js.map +1 -0
  157. package/lib/esm/banner/stories/banner-without-title.story.js +34 -0
  158. package/lib/esm/banner/stories/banner-without-title.story.js.map +1 -0
  159. package/lib/esm/banner/stories/banner.stories.js +110 -0
  160. package/lib/esm/banner/stories/banner.stories.js.map +1 -0
  161. package/lib/esm/banner/stories/index.js +39 -0
  162. package/lib/esm/banner/stories/index.js.map +1 -0
  163. package/lib/esm/breadcrumbs/Breadcrumbs.js.map +1 -1
  164. package/lib/esm/button/Button.js.map +1 -1
  165. package/lib/esm/button/IconButton.js.map +1 -1
  166. package/lib/esm/button/IconButtonArray.js +1 -1
  167. package/lib/esm/button/IconButtonArray.js.map +1 -1
  168. package/lib/esm/callout/Callout.js +1 -1
  169. package/lib/esm/callout/Callout.js.map +1 -1
  170. package/lib/esm/clipboard-copier/ClipboardButton.js +1 -1
  171. package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
  172. package/lib/esm/code/Code.js +2 -2
  173. package/lib/esm/code/Code.js.map +1 -1
  174. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  175. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  176. package/lib/esm/context-menu/ContextMenu.js +3 -3
  177. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  178. package/lib/esm/data-grid/Components.js +17 -14
  179. package/lib/esm/data-grid/Components.js.map +1 -1
  180. package/lib/esm/data-grid/DataGrid.js +9 -5
  181. package/lib/esm/data-grid/DataGrid.js.map +1 -1
  182. package/lib/esm/data-grid/DataGridContext.js.map +1 -1
  183. package/lib/esm/data-grid/data-grid-nav/index.js +2 -1
  184. package/lib/esm/data-grid/data-grid-nav/index.js.map +1 -1
  185. package/lib/esm/data-grid/datagrid-types.js +0 -2
  186. package/lib/esm/data-grid/datagrid-types.js.map +1 -1
  187. package/lib/esm/date-picker/DatePicker.js +2 -2
  188. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  189. package/lib/esm/dialog/Dialog.js.map +1 -1
  190. package/lib/esm/divider/Divider.js.map +1 -1
  191. package/lib/esm/drawer/Drawer.js +1 -1
  192. package/lib/esm/drawer/Drawer.js.map +1 -1
  193. package/lib/esm/dropdown-button/DropdownButton.js.map +1 -1
  194. package/lib/esm/dropdown-button/avatar-test.stories.tsx.js +1 -1
  195. package/lib/esm/dropdown-button/avatar-test.stories.tsx.js.map +1 -1
  196. package/lib/esm/dropzone/Dropzone.js +2 -2
  197. package/lib/esm/dropzone/Dropzone.js.map +1 -1
  198. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  199. package/lib/esm/helpers/forwardRef.js.map +1 -1
  200. package/lib/esm/inline-edit/InlineEdit.js +1 -1
  201. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  202. package/lib/esm/label/Label.js +13 -12
  203. package/lib/esm/label/Label.js.map +1 -1
  204. package/lib/esm/layout/Box.js +2 -1
  205. package/lib/esm/layout/Box.js.map +1 -1
  206. package/lib/esm/layout/Flex.js.map +1 -1
  207. package/lib/esm/loading-bar/loading-bar.js.map +1 -1
  208. package/lib/esm/loading-spinner/LoadingSpinner.js +13 -12
  209. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  210. package/lib/esm/modal/Modal.js.map +1 -1
  211. package/lib/esm/popover/Popover.js +1 -1
  212. package/lib/esm/popover/Popover.js.map +1 -1
  213. package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
  214. package/lib/esm/select/Overrides.js +1 -1
  215. package/lib/esm/select/Overrides.js.map +1 -1
  216. package/lib/esm/select/Select.js +3 -2
  217. package/lib/esm/select/Select.js.map +1 -1
  218. package/lib/esm/side-navigation/SideNavigation.js +13 -12
  219. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  220. package/lib/esm/slider/Slider.js +1 -1
  221. package/lib/esm/slider/Slider.js.map +1 -1
  222. package/lib/esm/spotlight/Spotlight.js +3 -3
  223. package/lib/esm/spotlight/Spotlight.js.map +1 -1
  224. package/lib/esm/spotlight/SpotlightProvider.js +1 -1
  225. package/lib/esm/spotlight/SpotlightProvider.js.map +1 -1
  226. package/lib/esm/spotlight/SpotlightTarget.js +3 -3
  227. package/lib/esm/spotlight/SpotlightTarget.js.map +1 -1
  228. package/lib/esm/spotlight/SpotlightTour.js +13 -12
  229. package/lib/esm/spotlight/SpotlightTour.js.map +1 -1
  230. package/lib/esm/tabs/Tabs.js.map +1 -1
  231. package/lib/esm/tag/Tag.js.map +1 -1
  232. package/lib/esm/text-area/TextArea.js +3 -2
  233. package/lib/esm/text-area/TextArea.js.map +1 -1
  234. package/lib/esm/text-input/TextInput.js +2 -2
  235. package/lib/esm/text-input/TextInput.js.map +1 -1
  236. package/lib/esm/text-link/TextLink.js.map +1 -1
  237. package/lib/esm/theme/ThemeProvider.js.map +1 -1
  238. package/lib/esm/time-picker/TimePicker.js +4 -4
  239. package/lib/esm/time-picker/TimePicker.js.map +1 -1
  240. package/lib/esm/toast/Toast.js +3 -3
  241. package/lib/esm/toast/Toast.js.map +1 -1
  242. package/lib/esm/tooltip/Tooltip.js +6 -6
  243. package/lib/esm/tooltip/Tooltip.js.map +1 -1
  244. package/lib/esm/tooltip/use-tooltip.js +1 -1
  245. package/lib/esm/tooltip/use-tooltip.js.map +1 -1
  246. package/lib/esm/tree-view/TreeItemWrapper.js +1 -1
  247. package/lib/esm/tree-view/TreeItemWrapper.js.map +1 -1
  248. package/lib/esm/tree-view/TreeView.js +4 -4
  249. package/lib/esm/tree-view/TreeView.js.map +1 -1
  250. package/lib/esm/tree-view/TreeViewItem.js.map +1 -1
  251. package/lib/esm/tree-view/TreeViewTextItem.js +2 -2
  252. package/lib/esm/tree-view/TreeViewTextItem.js.map +1 -1
  253. package/lib/esm/tree-view/tree-view-keyboard-coordinates.js +1 -1
  254. package/lib/esm/tree-view/tree-view-keyboard-coordinates.js.map +1 -1
  255. package/lib/esm/typography/Typography.js.map +1 -1
  256. package/lib/esm/widget/Widget.js +2 -1
  257. package/lib/esm/widget/Widget.js.map +1 -1
  258. package/lib/esm/wizard/Wizard.js.map +1 -1
  259. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +3 -2
  260. package/lib/types/accordion/Accordion.d.ts +3 -3
  261. package/lib/types/accordion/stories/accordion.stories.d.ts +3 -3
  262. package/lib/types/banner/Banner.d.ts +1 -1
  263. package/lib/types/banner/stories/banner-closeable.story.d.ts +23 -0
  264. package/lib/types/banner/stories/banner-global.story.d.ts +23 -0
  265. package/lib/types/banner/stories/banner-types.story.d.ts +23 -0
  266. package/lib/types/banner/stories/banner-with-actions.story.d.ts +23 -0
  267. package/lib/types/banner/stories/banner-with-icons.story.d.ts +23 -0
  268. package/lib/types/banner/stories/banner-without-title.story.d.ts +23 -0
  269. package/lib/types/banner/stories/banner.stories.d.ts +45 -0
  270. package/lib/types/banner/stories/index.d.ts +32 -0
  271. package/lib/types/breadcrumbs/Breadcrumbs.d.ts +1 -1
  272. package/lib/types/button/IconButton.d.ts +1 -1
  273. package/lib/types/button/IconButtonArray.d.ts +1 -1
  274. package/lib/types/code/Code.d.ts +1 -1
  275. package/lib/types/conditional-wrap/ConditionalWrap.d.ts +1 -1
  276. package/lib/types/context-menu/ContextMenu.d.ts +1 -0
  277. package/lib/types/data-grid/Components.d.ts +3 -3
  278. package/lib/types/data-grid/DataGrid.d.ts +8 -5
  279. package/lib/types/data-grid/DataGridContext.d.ts +4 -3
  280. package/lib/types/data-grid/data-grid-nav/index.d.ts +2 -2
  281. package/lib/types/data-grid/datagrid-types.d.ts +1 -1
  282. package/lib/types/data-grid/helpers.d.ts +1 -1
  283. package/lib/types/date-picker/DatePicker.d.ts +1 -1
  284. package/lib/types/drawer/Drawer.d.ts +5 -2
  285. package/lib/types/inline-edit/InlineEdit.d.ts +1 -1
  286. package/lib/types/label/Label.d.ts +1 -1
  287. package/lib/types/layout/Box.d.ts +2 -2
  288. package/lib/types/layout/Flex.d.ts +2 -2
  289. package/lib/types/loading-bar/loading-bar.d.ts +1 -1
  290. package/lib/types/popover/Popover.d.ts +1 -1
  291. package/lib/types/select/Overrides.d.ts +1 -1
  292. package/lib/types/select/Select.d.ts +2 -2
  293. package/lib/types/side-navigation/SideNavigation.d.ts +1 -1
  294. package/lib/types/spotlight/Spotlight.d.ts +4 -3
  295. package/lib/types/spotlight/SpotlightProvider.d.ts +1 -1
  296. package/lib/types/spotlight/SpotlightTarget.d.ts +3 -2
  297. package/lib/types/spotlight/SpotlightTour.d.ts +2 -2
  298. package/lib/types/spotlight/use-indicator.d.ts +1 -1
  299. package/lib/types/text-area/TextArea.d.ts +2 -1
  300. package/lib/types/time-picker/TimePicker.d.ts +3 -2
  301. package/lib/types/toast/Toast.d.ts +1 -1
  302. package/lib/types/tooltip/Tooltip.d.ts +3 -2
  303. package/lib/types/tooltip/use-tooltip.d.ts +1 -2
  304. package/lib/types/tree-view/TreeItemWrapper.d.ts +1 -1
  305. package/lib/types/tree-view/TreeView.d.ts +2 -2
  306. package/lib/types/typography/Typography.d.ts +1 -1
  307. package/lib/types/widget/Widget.d.ts +1 -1
  308. package/package.json +2 -2
@@ -18,8 +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';
21
+ import type React from 'react';
22
22
  import { type GroupBase } from 'react-select';
23
- import { type SelectProps } from './types';
24
23
  import { type PolymorphicPropsWithoutRef } from '../_common/types';
24
+ import { type SelectProps } from './types';
25
25
  export declare const Select: <OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>, T extends React.ElementType = "div">(props: PolymorphicPropsWithoutRef<T, SelectProps<OptionType, IsMulti, GroupType>> & React.RefAttributes<unknown>) => React.ReactElement | null;
@@ -18,7 +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
- import React from 'react';
21
+ import type React from 'react';
22
22
  import { type HtmlAttributes, type PolymorphicForwardRefExoticComponent } from '../_common/types';
23
23
  type SideNavigationPosition = 'left' | 'right';
24
24
  type SideNavigationSize = 'small' | 'large';
@@ -18,10 +18,11 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
+
21
22
  import React from 'react';
22
- import { HtmlAttributes, PolymorphicForwardRefExoticComponent, PolymorphicPropsWithRef } from '../_common/types';
23
- import { PopoverProps } from '../popover';
24
- import { EventTypeLabelProps } from '../label';
23
+ import { type HtmlAttributes, type PolymorphicForwardRefExoticComponent, type PolymorphicPropsWithRef } from '../_common/types';
24
+ import { type EventTypeLabelProps } from '../label';
25
+ import { type PopoverProps } from '../popover';
25
26
  export type SpotlightActionsProps = {
26
27
  label: string;
27
28
  isDisabled?: boolean;
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import React from 'react';
22
+ import type React from 'react';
23
23
  type SpotlightContextType = {
24
24
  /** Is true if the spotlight is open */
25
25
  isOpen: boolean;
@@ -18,9 +18,10 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
+
21
22
  import React from 'react';
22
- import { PolymorphicForwardRefExoticComponent } from '../_common/types';
23
- import { IndicatorPlacement, IndicatorVariant } from './use-indicator';
23
+ import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
24
+ import { type IndicatorPlacement, type IndicatorVariant } from './use-indicator';
24
25
  type SpotlightTargetProps = {
25
26
  /** id of the target. should match with target prop in Spotlight */
26
27
  id: string;
@@ -18,8 +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 { Spotlight, SpotlightCloseAction } from './Spotlight';
21
+ import type React from 'react';
22
+ import { Spotlight, type SpotlightCloseAction } from './Spotlight';
23
23
  type SpotlightTourAction = SpotlightCloseAction | 'dismiss' | 'back' | 'next' | 'close';
24
24
  type SpotlightTourProps = {
25
25
  /** Array of spotlights */
@@ -18,7 +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
- import { useFloating, UseInteractionsReturn } from '@floating-ui/react';
21
+ import { useFloating, type UseInteractionsReturn } from '@floating-ui/react';
22
22
  export type IndicatorVariant = 'border' | 'point';
23
23
  interface IndicatorOptions {
24
24
  isOpen: boolean;
@@ -18,7 +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, { type ReactNode } from 'react';
21
+ import type React from 'react';
22
+ import { type ReactNode } from 'react';
22
23
  import { type TooltipObjectProps } from '../_common/input/types';
23
24
  import { type HtmlAttributes } from '../_common/types';
24
25
  /**
@@ -18,9 +18,10 @@
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 { NeedleTime } from './needle-time';
21
+
22
+ import type React from 'react';
23
23
  import { type HtmlAttributes } from '../_common/types';
24
+ import { NeedleTime } from './needle-time';
24
25
  export type TimeFormat = 'hh:mm' | 'hh:mm aa';
25
26
  export interface TimePickerProps {
26
27
  selected?: NeedleTime;
@@ -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 ReactNode } from 'react';
22
- import { toast as sonnerToast, type ExternalToast as SonnerExternalToast, type ToasterProps as SonnerToasterProps } from 'sonner';
22
+ import { type ExternalToast as SonnerExternalToast, toast as sonnerToast, type ToasterProps as SonnerToasterProps } from 'sonner';
23
23
  import { type HtmlAttributes } from '../_common/types';
24
24
  type ToastVariants = 'neutral' | 'success' | 'danger' | 'loading-spinner' | 'progress-bar';
25
25
  type ToastCommandVariants = 'neutral' | 'success' | 'danger' | 'loadingSpinner' | 'progressBar';
@@ -19,9 +19,10 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import { type Placement } from '@floating-ui/react';
22
- import React, { type CSSProperties } from 'react';
23
- import { Typography } from '../typography';
22
+ import type React from 'react';
23
+ import { type CSSProperties } from 'react';
24
24
  import { type HtmlAttributes } from '../_common/types';
25
+ import { Typography } from '../typography';
25
26
  export interface TooltipProps {
26
27
  children: React.ReactNode;
27
28
  isDisabled?: boolean;
@@ -18,8 +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
-
22
- import { type Placement, type UseInteractionsReturn, type ReferenceType, type UseFloatingReturn } from '@floating-ui/react';
21
+ import { type Placement, type ReferenceType, type UseFloatingReturn, type UseInteractionsReturn } from '@floating-ui/react';
23
22
  export interface TooltipOptions {
24
23
  isInitialOpen?: boolean;
25
24
  placement?: Placement;
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import React from 'react';
22
+ import type React from 'react';
23
23
  import { type TreeItemComponentProps } from './tree-view-types';
24
24
  export declare const TreeItemWrapper: <T extends Record<string, unknown>>(props: TreeItemComponentProps<T> & {
25
25
  children?: React.ReactNode | undefined;
@@ -19,9 +19,9 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import React from 'react';
23
- import { type ItemChangedReason, type TreeItem, type TreeItemComponent } from './tree-view-types';
22
+ import type React from 'react';
24
23
  import { type HtmlAttributes } from '../_common/types';
24
+ import { type ItemChangedReason, type TreeItem, type TreeItemComponent } from './tree-view-types';
25
25
  export interface TreeViewProps<T extends Record<string, unknown>, E extends HTMLElement> extends React.HTMLAttributes<HTMLOListElement> {
26
26
  items: TreeItem<T>[];
27
27
  onItemsChanged: (newItems: TreeItem<T>[], itemChangedReason: ItemChangedReason<T>) => void;
@@ -19,8 +19,8 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import { TypographyDefaultMapping, type TypographyVariants } from './types';
23
22
  import { type PolymorphicPropsWithRef } from '../_common/types';
23
+ import { TypographyDefaultMapping, type TypographyVariants } from './types';
24
24
  type TypographyProps<T extends TypographyVariants, E extends React.ElementType = (typeof TypographyDefaultMapping)[T]> = PolymorphicPropsWithRef<E, {
25
25
  variant: T;
26
26
  className?: string;
@@ -18,7 +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
- import React from 'react';
21
+ import type React from 'react';
22
22
  import { type HtmlAttributes } from '../_common/types';
23
23
  /**
24
24
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "3.4.4",
3
+ "version": "3.4.6",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -65,7 +65,7 @@
65
65
  "@tanstack/react-table": "8.20.5",
66
66
  "react": ">=16.8.0",
67
67
  "react-dom": ">=16.8.0",
68
- "@neo4j-ndl/base": "^3.3.18"
68
+ "@neo4j-ndl/base": "^3.3.19"
69
69
  },
70
70
  "dependencies": {
71
71
  "@dnd-kit/core": "6.1.0",