@neo4j-ndl/react 3.4.4 → 3.4.5

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 (305) 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 +1 -1
  51. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  52. package/lib/cjs/data-grid/Components.js +3 -3
  53. package/lib/cjs/data-grid/Components.js.map +1 -1
  54. package/lib/cjs/data-grid/DataGrid.js +7 -6
  55. package/lib/cjs/data-grid/DataGrid.js.map +1 -1
  56. package/lib/cjs/data-grid/data-grid-nav/index.js +4 -3
  57. package/lib/cjs/data-grid/data-grid-nav/index.js.map +1 -1
  58. package/lib/cjs/data-grid/datagrid-types.js +1 -3
  59. package/lib/cjs/data-grid/datagrid-types.js.map +1 -1
  60. package/lib/cjs/date-picker/DatePicker.js +2 -2
  61. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  62. package/lib/cjs/dialog/Dialog.js.map +1 -1
  63. package/lib/cjs/divider/Divider.js.map +1 -1
  64. package/lib/cjs/drawer/Drawer.js +1 -1
  65. package/lib/cjs/drawer/Drawer.js.map +1 -1
  66. package/lib/cjs/dropdown-button/DropdownButton.js.map +1 -1
  67. package/lib/cjs/dropdown-button/avatar-test.stories.tsx.js +1 -1
  68. package/lib/cjs/dropdown-button/avatar-test.stories.tsx.js.map +1 -1
  69. package/lib/cjs/dropzone/Dropzone.js +2 -2
  70. package/lib/cjs/dropzone/Dropzone.js.map +1 -1
  71. package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
  72. package/lib/cjs/inline-edit/InlineEdit.js +1 -1
  73. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  74. package/lib/cjs/label/Label.js +16 -15
  75. package/lib/cjs/label/Label.js.map +1 -1
  76. package/lib/cjs/layout/Box.js +5 -4
  77. package/lib/cjs/layout/Box.js.map +1 -1
  78. package/lib/cjs/layout/Flex.js.map +1 -1
  79. package/lib/cjs/loading-bar/loading-bar.js.map +1 -1
  80. package/lib/cjs/loading-spinner/LoadingSpinner.js +16 -15
  81. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  82. package/lib/cjs/modal/Modal.js.map +1 -1
  83. package/lib/cjs/popover/Popover.js +12 -12
  84. package/lib/cjs/popover/Popover.js.map +1 -1
  85. package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
  86. package/lib/cjs/select/Overrides.js +1 -1
  87. package/lib/cjs/select/Overrides.js.map +1 -1
  88. package/lib/cjs/select/Select.js +9 -8
  89. package/lib/cjs/select/Select.js.map +1 -1
  90. package/lib/cjs/side-navigation/SideNavigation.js +16 -15
  91. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  92. package/lib/cjs/slider/Slider.js.map +1 -1
  93. package/lib/cjs/spotlight/Spotlight.js +3 -3
  94. package/lib/cjs/spotlight/Spotlight.js.map +1 -1
  95. package/lib/cjs/spotlight/SpotlightProvider.js.map +1 -1
  96. package/lib/cjs/spotlight/SpotlightTarget.js +8 -8
  97. package/lib/cjs/spotlight/SpotlightTarget.js.map +1 -1
  98. package/lib/cjs/spotlight/SpotlightTour.js +16 -15
  99. package/lib/cjs/spotlight/SpotlightTour.js.map +1 -1
  100. package/lib/cjs/tabs/Tabs.js.map +1 -1
  101. package/lib/cjs/tag/Tag.js.map +1 -1
  102. package/lib/cjs/text-area/TextArea.js +5 -4
  103. package/lib/cjs/text-area/TextArea.js.map +1 -1
  104. package/lib/cjs/text-input/TextInput.js +2 -2
  105. package/lib/cjs/text-input/TextInput.js.map +1 -1
  106. package/lib/cjs/text-link/TextLink.js.map +1 -1
  107. package/lib/cjs/time-picker/TimePicker.js +4 -4
  108. package/lib/cjs/time-picker/TimePicker.js.map +1 -1
  109. package/lib/cjs/toast/Toast.js +2 -2
  110. package/lib/cjs/toast/Toast.js.map +1 -1
  111. package/lib/cjs/tooltip/Tooltip.js +5 -5
  112. package/lib/cjs/tooltip/Tooltip.js.map +1 -1
  113. package/lib/cjs/tooltip/use-tooltip.js +17 -17
  114. package/lib/cjs/tooltip/use-tooltip.js.map +1 -1
  115. package/lib/cjs/tree-view/TreeItemWrapper.js +1 -1
  116. package/lib/cjs/tree-view/TreeItemWrapper.js.map +1 -1
  117. package/lib/cjs/tree-view/TreeView.js +2 -2
  118. package/lib/cjs/tree-view/TreeView.js.map +1 -1
  119. package/lib/cjs/tree-view/TreeViewTextItem.js +2 -2
  120. package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -1
  121. package/lib/cjs/typography/Typography.js.map +1 -1
  122. package/lib/cjs/widget/Widget.js +8 -7
  123. package/lib/cjs/widget/Widget.js.map +1 -1
  124. package/lib/cjs/wizard/Wizard.js.map +1 -1
  125. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +2 -1
  126. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  127. package/lib/esm/accordion/Accordion.js +13 -12
  128. package/lib/esm/accordion/Accordion.js.map +1 -1
  129. package/lib/esm/accordion/stories/accordion-clean-items-expanded.story.js +2 -2
  130. package/lib/esm/accordion/stories/accordion-clean-items-expanded.story.js.map +1 -1
  131. package/lib/esm/accordion/stories/accordion-default-expanded.story.js +2 -2
  132. package/lib/esm/accordion/stories/accordion-default-expanded.story.js.map +1 -1
  133. package/lib/esm/accordion/stories/accordion-full.story.js +2 -2
  134. package/lib/esm/accordion/stories/accordion-full.story.js.map +1 -1
  135. package/lib/esm/accordion/stories/accordion-multiple-expanded.story.js +2 -2
  136. package/lib/esm/accordion/stories/accordion-multiple-expanded.story.js.map +1 -1
  137. package/lib/esm/accordion/stories/accordion-right-content.story.js +2 -2
  138. package/lib/esm/accordion/stories/accordion-right-content.story.js.map +1 -1
  139. package/lib/esm/accordion/stories/accordion-single-expanded.story.js +2 -2
  140. package/lib/esm/accordion/stories/accordion-single-expanded.story.js.map +1 -1
  141. package/lib/esm/accordion/stories/accordion.stories.js +17 -17
  142. package/lib/esm/accordion/stories/accordion.stories.js.map +1 -1
  143. package/lib/esm/avatar/Avatar.js.map +1 -1
  144. package/lib/esm/banner/Banner.js +1 -1
  145. package/lib/esm/banner/Banner.js.map +1 -1
  146. package/lib/esm/banner/stories/banner-closeable.story.js +28 -0
  147. package/lib/esm/banner/stories/banner-closeable.story.js.map +1 -0
  148. package/lib/esm/banner/stories/banner-global.story.js +28 -0
  149. package/lib/esm/banner/stories/banner-global.story.js.map +1 -0
  150. package/lib/esm/banner/stories/banner-types.story.js +28 -0
  151. package/lib/esm/banner/stories/banner-types.story.js.map +1 -0
  152. package/lib/esm/banner/stories/banner-with-actions.story.js +39 -0
  153. package/lib/esm/banner/stories/banner-with-actions.story.js.map +1 -0
  154. package/lib/esm/banner/stories/banner-with-icons.story.js +28 -0
  155. package/lib/esm/banner/stories/banner-with-icons.story.js.map +1 -0
  156. package/lib/esm/banner/stories/banner-without-title.story.js +34 -0
  157. package/lib/esm/banner/stories/banner-without-title.story.js.map +1 -0
  158. package/lib/esm/banner/stories/banner.stories.js +110 -0
  159. package/lib/esm/banner/stories/banner.stories.js.map +1 -0
  160. package/lib/esm/banner/stories/index.js +39 -0
  161. package/lib/esm/banner/stories/index.js.map +1 -0
  162. package/lib/esm/breadcrumbs/Breadcrumbs.js.map +1 -1
  163. package/lib/esm/button/Button.js.map +1 -1
  164. package/lib/esm/button/IconButton.js.map +1 -1
  165. package/lib/esm/button/IconButtonArray.js +1 -1
  166. package/lib/esm/button/IconButtonArray.js.map +1 -1
  167. package/lib/esm/callout/Callout.js +1 -1
  168. package/lib/esm/callout/Callout.js.map +1 -1
  169. package/lib/esm/clipboard-copier/ClipboardButton.js +1 -1
  170. package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
  171. package/lib/esm/code/Code.js +2 -2
  172. package/lib/esm/code/Code.js.map +1 -1
  173. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js +1 -1
  174. package/lib/esm/conditional-wrap/stories/conditional-wrap-default.story.js.map +1 -1
  175. package/lib/esm/context-menu/ContextMenu.js +1 -1
  176. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  177. package/lib/esm/data-grid/Components.js +4 -4
  178. package/lib/esm/data-grid/Components.js.map +1 -1
  179. package/lib/esm/data-grid/DataGrid.js +5 -4
  180. package/lib/esm/data-grid/DataGrid.js.map +1 -1
  181. package/lib/esm/data-grid/data-grid-nav/index.js +2 -1
  182. package/lib/esm/data-grid/data-grid-nav/index.js.map +1 -1
  183. package/lib/esm/data-grid/datagrid-types.js +0 -2
  184. package/lib/esm/data-grid/datagrid-types.js.map +1 -1
  185. package/lib/esm/date-picker/DatePicker.js +2 -2
  186. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  187. package/lib/esm/dialog/Dialog.js.map +1 -1
  188. package/lib/esm/divider/Divider.js.map +1 -1
  189. package/lib/esm/drawer/Drawer.js +1 -1
  190. package/lib/esm/drawer/Drawer.js.map +1 -1
  191. package/lib/esm/dropdown-button/DropdownButton.js.map +1 -1
  192. package/lib/esm/dropdown-button/avatar-test.stories.tsx.js +1 -1
  193. package/lib/esm/dropdown-button/avatar-test.stories.tsx.js.map +1 -1
  194. package/lib/esm/dropzone/Dropzone.js +2 -2
  195. package/lib/esm/dropzone/Dropzone.js.map +1 -1
  196. package/lib/esm/graph-label/GraphLabel.js.map +1 -1
  197. package/lib/esm/helpers/forwardRef.js.map +1 -1
  198. package/lib/esm/inline-edit/InlineEdit.js +1 -1
  199. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  200. package/lib/esm/label/Label.js +13 -12
  201. package/lib/esm/label/Label.js.map +1 -1
  202. package/lib/esm/layout/Box.js +2 -1
  203. package/lib/esm/layout/Box.js.map +1 -1
  204. package/lib/esm/layout/Flex.js.map +1 -1
  205. package/lib/esm/loading-bar/loading-bar.js.map +1 -1
  206. package/lib/esm/loading-spinner/LoadingSpinner.js +13 -12
  207. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  208. package/lib/esm/modal/Modal.js.map +1 -1
  209. package/lib/esm/popover/Popover.js +1 -1
  210. package/lib/esm/popover/Popover.js.map +1 -1
  211. package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
  212. package/lib/esm/select/Overrides.js +1 -1
  213. package/lib/esm/select/Overrides.js.map +1 -1
  214. package/lib/esm/select/Select.js +3 -2
  215. package/lib/esm/select/Select.js.map +1 -1
  216. package/lib/esm/side-navigation/SideNavigation.js +13 -12
  217. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  218. package/lib/esm/slider/Slider.js +1 -1
  219. package/lib/esm/slider/Slider.js.map +1 -1
  220. package/lib/esm/spotlight/Spotlight.js +3 -3
  221. package/lib/esm/spotlight/Spotlight.js.map +1 -1
  222. package/lib/esm/spotlight/SpotlightProvider.js +1 -1
  223. package/lib/esm/spotlight/SpotlightProvider.js.map +1 -1
  224. package/lib/esm/spotlight/SpotlightTarget.js +3 -3
  225. package/lib/esm/spotlight/SpotlightTarget.js.map +1 -1
  226. package/lib/esm/spotlight/SpotlightTour.js +13 -12
  227. package/lib/esm/spotlight/SpotlightTour.js.map +1 -1
  228. package/lib/esm/tabs/Tabs.js.map +1 -1
  229. package/lib/esm/tag/Tag.js.map +1 -1
  230. package/lib/esm/text-area/TextArea.js +3 -2
  231. package/lib/esm/text-area/TextArea.js.map +1 -1
  232. package/lib/esm/text-input/TextInput.js +2 -2
  233. package/lib/esm/text-input/TextInput.js.map +1 -1
  234. package/lib/esm/text-link/TextLink.js.map +1 -1
  235. package/lib/esm/theme/ThemeProvider.js.map +1 -1
  236. package/lib/esm/time-picker/TimePicker.js +4 -4
  237. package/lib/esm/time-picker/TimePicker.js.map +1 -1
  238. package/lib/esm/toast/Toast.js +3 -3
  239. package/lib/esm/toast/Toast.js.map +1 -1
  240. package/lib/esm/tooltip/Tooltip.js +6 -6
  241. package/lib/esm/tooltip/Tooltip.js.map +1 -1
  242. package/lib/esm/tooltip/use-tooltip.js +1 -1
  243. package/lib/esm/tooltip/use-tooltip.js.map +1 -1
  244. package/lib/esm/tree-view/TreeItemWrapper.js +1 -1
  245. package/lib/esm/tree-view/TreeItemWrapper.js.map +1 -1
  246. package/lib/esm/tree-view/TreeView.js +4 -4
  247. package/lib/esm/tree-view/TreeView.js.map +1 -1
  248. package/lib/esm/tree-view/TreeViewItem.js.map +1 -1
  249. package/lib/esm/tree-view/TreeViewTextItem.js +2 -2
  250. package/lib/esm/tree-view/TreeViewTextItem.js.map +1 -1
  251. package/lib/esm/tree-view/tree-view-keyboard-coordinates.js +1 -1
  252. package/lib/esm/tree-view/tree-view-keyboard-coordinates.js.map +1 -1
  253. package/lib/esm/typography/Typography.js.map +1 -1
  254. package/lib/esm/widget/Widget.js +2 -1
  255. package/lib/esm/widget/Widget.js.map +1 -1
  256. package/lib/esm/wizard/Wizard.js.map +1 -1
  257. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +3 -2
  258. package/lib/types/accordion/Accordion.d.ts +3 -3
  259. package/lib/types/accordion/stories/accordion.stories.d.ts +3 -3
  260. package/lib/types/banner/Banner.d.ts +1 -1
  261. package/lib/types/banner/stories/banner-closeable.story.d.ts +23 -0
  262. package/lib/types/banner/stories/banner-global.story.d.ts +23 -0
  263. package/lib/types/banner/stories/banner-types.story.d.ts +23 -0
  264. package/lib/types/banner/stories/banner-with-actions.story.d.ts +23 -0
  265. package/lib/types/banner/stories/banner-with-icons.story.d.ts +23 -0
  266. package/lib/types/banner/stories/banner-without-title.story.d.ts +23 -0
  267. package/lib/types/banner/stories/banner.stories.d.ts +45 -0
  268. package/lib/types/banner/stories/index.d.ts +32 -0
  269. package/lib/types/breadcrumbs/Breadcrumbs.d.ts +1 -1
  270. package/lib/types/button/IconButton.d.ts +1 -1
  271. package/lib/types/button/IconButtonArray.d.ts +1 -1
  272. package/lib/types/code/Code.d.ts +1 -1
  273. package/lib/types/conditional-wrap/ConditionalWrap.d.ts +1 -1
  274. package/lib/types/data-grid/Components.d.ts +1 -1
  275. package/lib/types/data-grid/DataGrid.d.ts +2 -3
  276. package/lib/types/data-grid/DataGridContext.d.ts +3 -3
  277. package/lib/types/data-grid/data-grid-nav/index.d.ts +2 -2
  278. package/lib/types/data-grid/datagrid-types.d.ts +1 -1
  279. package/lib/types/data-grid/helpers.d.ts +1 -1
  280. package/lib/types/date-picker/DatePicker.d.ts +1 -1
  281. package/lib/types/drawer/Drawer.d.ts +5 -2
  282. package/lib/types/inline-edit/InlineEdit.d.ts +1 -1
  283. package/lib/types/label/Label.d.ts +1 -1
  284. package/lib/types/layout/Box.d.ts +2 -2
  285. package/lib/types/layout/Flex.d.ts +2 -2
  286. package/lib/types/loading-bar/loading-bar.d.ts +1 -1
  287. package/lib/types/popover/Popover.d.ts +1 -1
  288. package/lib/types/select/Overrides.d.ts +1 -1
  289. package/lib/types/select/Select.d.ts +2 -2
  290. package/lib/types/side-navigation/SideNavigation.d.ts +1 -1
  291. package/lib/types/spotlight/Spotlight.d.ts +4 -3
  292. package/lib/types/spotlight/SpotlightProvider.d.ts +1 -1
  293. package/lib/types/spotlight/SpotlightTarget.d.ts +3 -2
  294. package/lib/types/spotlight/SpotlightTour.d.ts +2 -2
  295. package/lib/types/spotlight/use-indicator.d.ts +1 -1
  296. package/lib/types/text-area/TextArea.d.ts +2 -1
  297. package/lib/types/time-picker/TimePicker.d.ts +3 -2
  298. package/lib/types/toast/Toast.d.ts +1 -1
  299. package/lib/types/tooltip/Tooltip.d.ts +3 -2
  300. package/lib/types/tooltip/use-tooltip.d.ts +1 -2
  301. package/lib/types/tree-view/TreeItemWrapper.d.ts +1 -1
  302. package/lib/types/tree-view/TreeView.d.ts +2 -2
  303. package/lib/types/typography/Typography.d.ts +1 -1
  304. package/lib/types/widget/Widget.d.ts +1 -1
  305. package/package.json +2 -2
@@ -0,0 +1,23 @@
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
@@ -0,0 +1,23 @@
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
@@ -0,0 +1,23 @@
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
@@ -0,0 +1,23 @@
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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
22
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
23
+ export default Component;
@@ -0,0 +1,45 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import { type StoryObj } from '@storybook/react';
22
+ declare const componentMeta: {
23
+ title: string;
24
+ component: Omit<import("react").ForwardRefExoticComponent<import("../Banner").BannerProps & {
25
+ [key: string]: unknown;
26
+ }>, "$$typeof"> & Omit<import("react").ExoticComponent<import("../Banner").BannerProps & {
27
+ [key: string]: unknown;
28
+ }>, never> & (<InstanceT extends React.ElementType = "div">(props: import("../../_common/types").PolymorphicPropsWithRef<InstanceT, import("../Banner").BannerProps>) => React.ReactElement | null) & {
29
+ Actions: import("../../_common/types").PolymorphicForwardRefExoticComponent<"a", import("../Banner").BannerActionsProps>;
30
+ };
31
+ tags: string[];
32
+ parameters: {
33
+ controls: {
34
+ disable: boolean;
35
+ };
36
+ };
37
+ };
38
+ export default componentMeta;
39
+ type Story = StoryObj<typeof componentMeta>;
40
+ export declare const Types: Story;
41
+ export declare const WithIcons: Story;
42
+ export declare const Closeable: Story;
43
+ export declare const Global: Story;
44
+ export declare const WithActions: Story;
45
+ export declare const WithoutTitle: Story;
@@ -0,0 +1,32 @@
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 BannerTypes } from './banner-types.story';
22
+ export { default as BannerCloseable } from './banner-closeable.story';
23
+ export { default as BannerGlobal } from './banner-global.story';
24
+ export { default as BannerWithActions } from './banner-with-actions.story';
25
+ export { default as BannerWithIcons } from './banner-with-icons.story';
26
+ export { default as BannerWithoutTitle } from './banner-without-title.story';
27
+ export declare const BannerTypesSrc: string;
28
+ export declare const BannerCloseableSrc: string;
29
+ export declare const BannerGlobalSrc: string;
30
+ export declare const BannerWithActionsSrc: string;
31
+ export declare const BannerWithIconsSrc: string;
32
+ export declare const BannerWithoutTitleSrc: string;
@@ -19,8 +19,8 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
+ import { type HtmlAttributes, type PolymorphicForwardRefExoticComponent, type PolymorphicPropsWithoutRef, type PolymorphicPropsWithRef } from '../_common/types';
22
23
  import { type ContextMenuProps } from '../context-menu';
23
- import { type PolymorphicPropsWithRef, type PolymorphicForwardRefExoticComponent, type PolymorphicPropsWithoutRef, type HtmlAttributes } from '../_common/types';
24
24
  export interface BreadcrumbsBaseItemProps extends Omit<React.HTMLProps<HTMLLIElement>, 'as' | 'onClick'> {
25
25
  children?: React.ReactNode;
26
26
  className?: string;
@@ -19,8 +19,8 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
- import { type ButtonSizes } from '../button';
23
22
  import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
23
+ import { type ButtonSizes } from '../button';
24
24
  /**
25
25
  *
26
26
  *
@@ -19,8 +19,8 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
- import { type IconButtonProps } from './IconButton';
23
22
  import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
23
+ import { type IconButtonProps } from './IconButton';
24
24
  /**
25
25
  * Types
26
26
  */
@@ -19,9 +19,9 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
+ import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
22
23
  import { type IconButton } from '../button';
23
24
  import { type LanguageProp } from './languages';
24
- import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
25
25
  export interface InlineProps {
26
26
  type: 'inline';
27
27
  maxHeight?: never;
@@ -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
  type ConditionalWrapProps = {
23
23
  shouldWrap: boolean;
24
24
  wrap: (children: React.ReactNode) => React.ReactNode;
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import { type Cell, type CellContext, type Header as HeaderType, type Row, type RowData, type SortDirection } from '@tanstack/react-table';
22
- import React from 'react';
22
+ import type React from 'react';
23
23
  import { IconButton } from '../button';
24
24
  import { Menu } from '../context-menu';
25
25
  import { type ColumnAction } from './datagrid-types';
@@ -18,11 +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
+ import { type RowData, type Table as DataGridType } from '@tanstack/react-table';
22
+ import { type HtmlAttributes } from '../_common/types';
22
23
  import { type SkeletonProps } from '../skeleton';
23
- import { type Table as DataGridType, type RowData } from '@tanstack/react-table';
24
24
  import { type DataGridComponentsInterface } from './DataGridContext';
25
- import { type HtmlAttributes } from '../_common/types';
26
25
  export declare const DataGridComponents: {
27
26
  ResizingBar: <T extends RowData>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
28
27
  Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -18,10 +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 { type Table as DataGridType, type RowData } from '@tanstack/react-table';
22
- import { type ActionButton, type Body, type BodyCell, type BodyRow, type ColumnControls, type Header, type HeaderCell, type HeaderTitle, type LoadingPlaceholder, type Navigation, type NoDataPlaceholder, type Pagination, type PaginationArrowButton, type PaginationNumericButton, type PaginationNumericButtons, type ResizingBar, type RowActionCell, type RowsPerPage, type Scrollable, type TableResults } from './Components';
23
- import { DataGridNav } from './data-grid-nav/data-grid-nav';
21
+ import { type RowData, type Table as DataGridType } from '@tanstack/react-table';
24
22
  import { type SkeletonProps } from '../skeleton';
23
+ import { type ActionButton, type Body, type BodyCell, type BodyRow, type ColumnControls, type Header, type HeaderCell, type HeaderTitle, type LoadingPlaceholder, type Navigation, type NoDataPlaceholder, type Pagination, type PaginationArrowButton, type PaginationNumericButton, type PaginationNumericButtons, type ResizingBar, type RowActionCell, type RowsPerPage, type Scrollable, type TableResults } from './Components';
24
+ import { type DataGridNav } from './data-grid-nav/data-grid-nav';
25
25
  type Nullable<T> = T | null;
26
26
  export interface DataGridComponentsInterface<T extends RowData> {
27
27
  ResizingBar?: Nullable<typeof ResizingBar<T>>;
@@ -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 { DataGridNav, Config } from './data-grid-nav';
21
+ import type React from 'react';
22
+ import { type Config, DataGridNav } from './data-grid-nav';
23
23
  export declare function useTableNav(options?: Config): {
24
24
  listeners: {
25
25
  onKeyDown: (e: React.KeyboardEvent) => void;
@@ -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 { type CellContext, type RowData } from '@tanstack/react-table';
22
21
  import '@tanstack/react-table';
22
+ import { type CellContext, type RowData } from '@tanstack/react-table';
23
23
  import { type MenuItemProps, type NestedMenuItemProps } from '../context-menu';
24
24
  export type ColumnAction = MenuItemProps;
25
25
  export type RowAction = MenuItemProps;
@@ -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 { type ColumnDef, type RowData, type Table, type Header as HeaderType } from '@tanstack/react-table';
21
+ import { type ColumnDef, type Header as HeaderType, type RowData, type Table } from '@tanstack/react-table';
22
22
  /**
23
23
  * Modified from here: https://gist.github.com/kottenator/9d936eb3e4e3c3e02598
24
24
  *
@@ -21,7 +21,7 @@
21
21
 
22
22
  import { type ReactDatePickerProps } from 'react-datepicker';
23
23
  import { type TextInputProps } from '../text-input/TextInput';
24
- import { TimePickerProps } from '../time-picker';
24
+ import { type TimePickerProps } from '../time-picker';
25
25
  export interface DatePickerProps<WithRange extends boolean = false> {
26
26
  /** Add Component type here */
27
27
  textInputProps?: TextInputProps;
@@ -20,7 +20,8 @@
20
20
  */
21
21
  import { FloatingPortal } from '@floating-ui/react';
22
22
  import { type ResizableProps } from 're-resizable';
23
- import React, { type ComponentProps } from 'react';
23
+ import type React from 'react';
24
+ import { type ComponentProps } from 'react';
24
25
  import { type HtmlAttributes, type PolymorphicForwardRefExoticComponent } from '../_common/types';
25
26
  export type DrawerPosition = 'left' | 'right';
26
27
  export type DrawerType = 'overlay' | 'push';
@@ -69,7 +70,9 @@ declare const Drawer: Omit<React.ForwardRefExoticComponent<DrawerProps & {
69
70
  [key: string]: unknown;
70
71
  }>, "$$typeof"> & Omit<React.ExoticComponent<DrawerProps & {
71
72
  [key: string]: unknown;
72
- }>, never> & (<InstanceT extends React.ElementType = "div">(props: import("../_common/types").PolymorphicPropsWithRef<InstanceT, DrawerProps>) => React.ReactElement | null) & {
73
+ }>, never> & (<InstanceT extends React.ElementType = "div">(props: import("../_common/types").PolymorphicPropsWithRef<InstanceT, DrawerProps>) =>
74
+ /** Whether to portal the content */
75
+ React.ReactElement | null) & {
73
76
  Header: ({ children, className, ...restProps }: DrawerHeaderProps) => import("react/jsx-runtime").JSX.Element;
74
77
  Actions: ({ children, className, ...restProps }: DrawerActionsProps) => import("react/jsx-runtime").JSX.Element;
75
78
  Body: ({ children, className, ...restProps }: DrawerBodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -21,9 +21,9 @@
21
21
 
22
22
  import { type ComponentPropsWithoutRef, type InputHTMLAttributes, type ReactNode } from 'react';
23
23
  import { type TooltipObjectProps } from '../_common/input/types';
24
+ import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
24
25
  import { Typography } from '../typography';
25
26
  import { type TypographyVariants } from '../typography/types';
26
- import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
27
27
  export interface InlineEditProps {
28
28
  /** Label text */
29
29
  label?: ReactNode;
@@ -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 PolymorphicForwardRefExoticComponent } from '../_common/types';
23
23
  /**
24
24
  *
@@ -18,9 +18,9 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- import React from 'react';
22
- import { type Radius, type Spacing } from './types';
21
+ import type React from 'react';
23
22
  import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
23
+ import { type Radius, type Spacing } from './types';
24
24
  type BaseBoxProps = {
25
25
  /**
26
26
  * @default tokens.space['4']
@@ -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 Radius, type Spacing } from './types';
22
+ import type React from 'react';
24
23
  import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
24
+ import { type Radius, type Spacing } from './types';
25
25
  type BaseFlexProps = {
26
26
  /**
27
27
  * @default tokens.space['4']
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
 
22
- import { PolymorphicForwardRefExoticComponent } from '../_common/types';
22
+ import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
23
23
  export type LoadingBarProps = {
24
24
  hasRail?: boolean;
25
25
  };
@@ -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
21
  import { type OffsetOptions, type Placement } from '@floating-ui/react';
22
+ import React from 'react';
23
23
  import { type PolymorphicForwardRefExoticComponent } from '../_common/types';
24
24
  export type PlacementOptions = 'bottom-end-top-end' | 'bottom-start-top-start' | 'bottom-middle-top-middle' | 'top-end-bottom-end' | 'top-start-bottom-start' | 'top-middle-bottom-middle' | 'bottom-start-bottom-end' | 'top-start-top-end' | 'middle-start-middle-end' | 'bottom-end-bottom-start' | 'top-end-top-start' | 'middle-end-middle-start';
25
25
  export declare const placementTranslation: Record<PlacementOptions, Placement>;
@@ -20,8 +20,8 @@
20
20
  */
21
21
 
22
22
  import { type ClearIndicatorProps, type ControlProps, type DropdownIndicatorProps, type GroupBase, type IndicatorsContainerProps, type InputProps, type MenuProps, type MultiValueProps, type OptionProps, type PlaceholderProps, type SingleValueProps, type ValueContainerProps } from 'react-select';
23
+ import { type MenuListProps, type MenuPortalProps } from 'react-select/dist/declarations/src/components/Menu';
23
24
  import { type SelectOverrideCustomProps } from './types';
24
- import { MenuListProps, MenuPortalProps } from 'react-select/dist/declarations/src/components/Menu';
25
25
  export declare const DropdownIndicatorCurrying: <OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>>({ size, }: SelectOverrideCustomProps<OptionType, IsMulti, GroupType>) => (props: DropdownIndicatorProps<OptionType, IsMulti, GroupType>) => import("react/jsx-runtime").JSX.Element;
26
26
  export declare const CustomClearIndication: <OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>>({ size, }: SelectOverrideCustomProps<OptionType, IsMulti, GroupType>) => ({ className, ...restProps }: ClearIndicatorProps<OptionType, IsMulti, GroupType>) => import("react/jsx-runtime").JSX.Element;
27
27
  export declare const CustomMultiValue: <OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>>({ size, }: SelectOverrideCustomProps<OptionType, IsMulti, GroupType>) => ({ children, className, ...restProps }: MultiValueProps<OptionType, IsMulti, GroupType>) => import("react/jsx-runtime").JSX.Element;
@@ -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
  *