@neo4j-ndl/react 3.8.35 → 3.9.0

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 (437) hide show
  1. package/lib/cjs/avatar/stories/avatar-shapes.story.js +1 -1
  2. package/lib/cjs/avatar/stories/avatar-shapes.story.js.map +1 -1
  3. package/lib/cjs/avatar/stories/avatar-sizes.story.js +1 -1
  4. package/lib/cjs/avatar/stories/avatar-sizes.story.js.map +1 -1
  5. package/lib/cjs/avatar/stories/avatar-statuses.story.js +1 -1
  6. package/lib/cjs/avatar/stories/avatar-statuses.story.js.map +1 -1
  7. package/lib/cjs/avatar/stories/avatar-types.story.js +1 -1
  8. package/lib/cjs/avatar/stories/avatar-types.story.js.map +1 -1
  9. package/lib/cjs/avatar/stories/avatar.stories.js +12 -1
  10. package/lib/cjs/avatar/stories/avatar.stories.js.map +1 -1
  11. package/lib/cjs/callout/stories/callout-default.story.js +30 -0
  12. package/lib/cjs/callout/stories/callout-default.story.js.map +1 -0
  13. package/lib/cjs/callout/stories/callout-full.story.js +30 -0
  14. package/lib/cjs/callout/stories/callout-full.story.js.map +1 -0
  15. package/lib/cjs/callout/stories/callout-types.story.js +30 -0
  16. package/lib/cjs/callout/stories/callout-types.story.js.map +1 -0
  17. package/lib/cjs/callout/stories/callout-with-children.story.js +30 -0
  18. package/lib/cjs/callout/stories/callout-with-children.story.js.map +1 -0
  19. package/lib/cjs/callout/stories/callout-without-header.story.js +30 -0
  20. package/lib/cjs/callout/stories/callout-without-header.story.js.map +1 -0
  21. package/lib/cjs/callout/stories/callout.stories.js +101 -0
  22. package/lib/cjs/callout/stories/callout.stories.js.map +1 -0
  23. package/lib/cjs/callout/stories/index.js +48 -0
  24. package/lib/cjs/callout/stories/index.js.map +1 -0
  25. package/lib/cjs/checkbox/stories/checkbox-checkedByDefault.story.js +30 -0
  26. package/lib/cjs/checkbox/stories/checkbox-checkedByDefault.story.js.map +1 -0
  27. package/lib/cjs/checkbox/stories/checkbox-default.story.js +30 -0
  28. package/lib/cjs/checkbox/stories/checkbox-default.story.js.map +1 -0
  29. package/lib/cjs/checkbox/stories/checkbox-disabled.story.js +30 -0
  30. package/lib/cjs/checkbox/stories/checkbox-disabled.story.js.map +1 -0
  31. package/lib/cjs/checkbox/stories/checkbox-full.story.js +39 -0
  32. package/lib/cjs/checkbox/stories/checkbox-full.story.js.map +1 -0
  33. package/lib/cjs/checkbox/stories/checkbox-hasLabelBefore.story.js +30 -0
  34. package/lib/cjs/checkbox/stories/checkbox-hasLabelBefore.story.js.map +1 -0
  35. package/lib/cjs/checkbox/stories/checkbox-indeterminate.story.js +33 -0
  36. package/lib/cjs/checkbox/stories/checkbox-indeterminate.story.js.map +1 -0
  37. package/lib/cjs/checkbox/stories/checkbox-no-label.story.js +30 -0
  38. package/lib/cjs/checkbox/stories/checkbox-no-label.story.js.map +1 -0
  39. package/lib/cjs/checkbox/stories/checkbox.stories.js +137 -0
  40. package/lib/cjs/checkbox/stories/checkbox.stories.js.map +1 -0
  41. package/lib/cjs/checkbox/stories/index.js +56 -0
  42. package/lib/cjs/checkbox/stories/index.js.map +1 -0
  43. package/lib/cjs/context-menu/stories/context-menu-custom-items.story.js +33 -0
  44. package/lib/cjs/context-menu/stories/context-menu-custom-items.story.js.map +1 -0
  45. package/lib/cjs/context-menu/stories/context-menu-default.story.js +45 -0
  46. package/lib/cjs/context-menu/stories/context-menu-default.story.js.map +1 -0
  47. package/lib/cjs/context-menu/stories/context-menu-in-modal.story.js +38 -0
  48. package/lib/cjs/context-menu/stories/context-menu-in-modal.story.js.map +1 -0
  49. package/lib/cjs/context-menu/stories/context-menu-in-popover.story.js +34 -0
  50. package/lib/cjs/context-menu/stories/context-menu-in-popover.story.js.map +1 -0
  51. package/lib/cjs/context-menu/stories/context-menu-nested.story.js +34 -0
  52. package/lib/cjs/context-menu/stories/context-menu-nested.story.js.map +1 -0
  53. package/lib/cjs/context-menu/stories/context-menu-placements.story.js +45 -0
  54. package/lib/cjs/context-menu/stories/context-menu-placements.story.js.map +1 -0
  55. package/lib/cjs/context-menu/stories/context-menu-with-disabled-item.story.js +36 -0
  56. package/lib/cjs/context-menu/stories/context-menu-with-disabled-item.story.js.map +1 -0
  57. package/lib/cjs/context-menu/stories/context-menu-with-divider.story.js +36 -0
  58. package/lib/cjs/context-menu/stories/context-menu-with-divider.story.js.map +1 -0
  59. package/lib/cjs/context-menu/stories/context-menu-with-header.story.js +36 -0
  60. package/lib/cjs/context-menu/stories/context-menu-with-header.story.js.map +1 -0
  61. package/lib/cjs/context-menu/stories/context-menu-with-icon.story.js +34 -0
  62. package/lib/cjs/context-menu/stories/context-menu-with-icon.story.js.map +1 -0
  63. package/lib/cjs/context-menu/stories/context-menu.stories.js +170 -0
  64. package/lib/cjs/context-menu/stories/context-menu.stories.js.map +1 -0
  65. package/lib/cjs/context-menu/stories/index.js +68 -0
  66. package/lib/cjs/context-menu/stories/index.js.map +1 -0
  67. package/lib/cjs/drawer/stories/drawer-full.story.js +36 -0
  68. package/lib/cjs/drawer/stories/drawer-full.story.js.map +1 -0
  69. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js +33 -0
  70. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js.map +1 -0
  71. package/lib/cjs/drawer/stories/drawer-overlay.story.js +33 -0
  72. package/lib/cjs/drawer/stories/drawer-overlay.story.js.map +1 -0
  73. package/lib/cjs/drawer/stories/drawer-portaled.story.js +38 -0
  74. package/lib/cjs/drawer/stories/drawer-portaled.story.js.map +1 -0
  75. package/lib/cjs/drawer/stories/drawer-push.story.js +32 -0
  76. package/lib/cjs/drawer/stories/drawer-push.story.js.map +1 -0
  77. package/lib/cjs/drawer/stories/drawer-resizable.story.js +36 -0
  78. package/lib/cjs/drawer/stories/drawer-resizable.story.js.map +1 -0
  79. package/lib/cjs/drawer/stories/drawer-right-side.story.js +33 -0
  80. package/lib/cjs/drawer/stories/drawer-right-side.story.js.map +1 -0
  81. package/lib/cjs/drawer/stories/drawer-scrollable.story.js +33 -0
  82. package/lib/cjs/drawer/stories/drawer-scrollable.story.js.map +1 -0
  83. package/lib/cjs/drawer/stories/drawer.stories.js +150 -0
  84. package/lib/cjs/drawer/stories/drawer.stories.js.map +1 -0
  85. package/lib/cjs/drawer/stories/index.js +60 -0
  86. package/lib/cjs/drawer/stories/index.js.map +1 -0
  87. package/lib/cjs/graph-label/stories/graph-label-color.story.js +30 -0
  88. package/lib/cjs/graph-label/stories/graph-label-color.story.js.map +1 -0
  89. package/lib/cjs/graph-label/stories/graph-label-disabled.story.js +30 -0
  90. package/lib/cjs/graph-label/stories/graph-label-disabled.story.js.map +1 -0
  91. package/lib/cjs/graph-label/stories/graph-label-fluid.story.js +30 -0
  92. package/lib/cjs/graph-label/stories/graph-label-fluid.story.js.map +1 -0
  93. package/lib/cjs/graph-label/stories/graph-label-non-interactive.story.js +30 -0
  94. package/lib/cjs/graph-label/stories/graph-label-non-interactive.story.js.map +1 -0
  95. package/lib/cjs/graph-label/stories/graph-label-selected.story.js +30 -0
  96. package/lib/cjs/graph-label/stories/graph-label-selected.story.js.map +1 -0
  97. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js +30 -0
  98. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js.map +1 -0
  99. package/lib/cjs/graph-label/stories/graph-label-types.story.js +30 -0
  100. package/lib/cjs/graph-label/stories/graph-label-types.story.js.map +1 -0
  101. package/lib/cjs/graph-label/stories/graph-label.stories.js +132 -0
  102. package/lib/cjs/graph-label/stories/graph-label.stories.js.map +1 -0
  103. package/lib/cjs/graph-label/stories/index.js +56 -0
  104. package/lib/cjs/graph-label/stories/index.js.map +1 -0
  105. package/lib/cjs/label/stories/index.js +44 -0
  106. package/lib/cjs/label/stories/index.js.map +1 -0
  107. package/lib/cjs/label/stories/label-colors.story.js +30 -0
  108. package/lib/cjs/label/stories/label-colors.story.js.map +1 -0
  109. package/lib/cjs/label/stories/label-default.story.js +30 -0
  110. package/lib/cjs/label/stories/label-default.story.js.map +1 -0
  111. package/lib/cjs/label/stories/label-fills.story.js +30 -0
  112. package/lib/cjs/label/stories/label-fills.story.js.map +1 -0
  113. package/lib/cjs/label/stories/label-with-icons.story.js +30 -0
  114. package/lib/cjs/label/stories/label-with-icons.story.js.map +1 -0
  115. package/lib/cjs/label/stories/label.stories.js +93 -0
  116. package/lib/cjs/label/stories/label.stories.js.map +1 -0
  117. package/lib/cjs/loading-bar/stories/index.js +36 -0
  118. package/lib/cjs/loading-bar/stories/index.js.map +1 -0
  119. package/lib/cjs/loading-bar/stories/loading-bar-default.story.js +30 -0
  120. package/lib/cjs/loading-bar/stories/loading-bar-default.story.js.map +1 -0
  121. package/lib/cjs/loading-bar/stories/loading-bar-with-rail.story.js +30 -0
  122. package/lib/cjs/loading-bar/stories/loading-bar-with-rail.story.js.map +1 -0
  123. package/lib/cjs/loading-bar/stories/loading-bar.stories.js +67 -0
  124. package/lib/cjs/loading-bar/stories/loading-bar.stories.js.map +1 -0
  125. package/lib/cjs/loading-spinner/stories/index.js +36 -0
  126. package/lib/cjs/loading-spinner/stories/index.js.map +1 -0
  127. package/lib/cjs/loading-spinner/stories/loading-spinner-default.story.js +30 -0
  128. package/lib/cjs/loading-spinner/stories/loading-spinner-default.story.js.map +1 -0
  129. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js +30 -0
  130. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -0
  131. package/lib/cjs/loading-spinner/stories/loading-spinner.stories.js +67 -0
  132. package/lib/cjs/loading-spinner/stories/loading-spinner.stories.js.map +1 -0
  133. package/lib/cjs/segmented-control/stories/index.js +44 -0
  134. package/lib/cjs/segmented-control/stories/index.js.map +1 -0
  135. package/lib/cjs/segmented-control/stories/segmented-control-default.story.js +32 -0
  136. package/lib/cjs/segmented-control/stories/segmented-control-default.story.js.map +1 -0
  137. package/lib/cjs/segmented-control/stories/segmented-control-floating.story.js +32 -0
  138. package/lib/cjs/segmented-control/stories/segmented-control-floating.story.js.map +1 -0
  139. package/lib/cjs/segmented-control/stories/segmented-control-only-icons.story.js +33 -0
  140. package/lib/cjs/segmented-control/stories/segmented-control-only-icons.story.js.map +1 -0
  141. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js +33 -0
  142. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js.map +1 -0
  143. package/lib/cjs/segmented-control/stories/segmented-control.stories.js +93 -0
  144. package/lib/cjs/segmented-control/stories/segmented-control.stories.js.map +1 -0
  145. package/lib/cjs/status-indicator/stories/index.js +32 -0
  146. package/lib/cjs/status-indicator/stories/index.js.map +1 -0
  147. package/lib/cjs/status-indicator/stories/status-indicator-types.story.js +30 -0
  148. package/lib/cjs/status-indicator/stories/status-indicator-types.story.js.map +1 -0
  149. package/lib/cjs/status-indicator/stories/status-indicator.stories.js +54 -0
  150. package/lib/cjs/status-indicator/stories/status-indicator.stories.js.map +1 -0
  151. package/lib/cjs/toast/Toast.js +5 -1
  152. package/lib/cjs/toast/Toast.js.map +1 -1
  153. package/lib/cjs/toast/ToastControlled.js +87 -0
  154. package/lib/cjs/toast/ToastControlled.js.map +1 -0
  155. package/lib/cjs/toast/index.js +1 -0
  156. package/lib/cjs/toast/index.js.map +1 -1
  157. package/lib/cjs/toast/stories/index.js +60 -0
  158. package/lib/cjs/toast/stories/index.js.map +1 -0
  159. package/lib/cjs/toast/stories/toast-action-story.js +38 -0
  160. package/lib/cjs/toast/stories/toast-action-story.js.map +1 -0
  161. package/lib/cjs/toast/stories/toast-closeable-story.js +37 -0
  162. package/lib/cjs/toast/stories/toast-closeable-story.js.map +1 -0
  163. package/lib/cjs/toast/stories/toast-controlled-story.js +44 -0
  164. package/lib/cjs/toast/stories/toast-controlled-story.js.map +1 -0
  165. package/lib/cjs/toast/stories/toast-custom-story.js +32 -0
  166. package/lib/cjs/toast/stories/toast-custom-story.js.map +1 -0
  167. package/lib/cjs/toast/stories/toast-danger-story.js +32 -0
  168. package/lib/cjs/toast/stories/toast-danger-story.js.map +1 -0
  169. package/lib/cjs/toast/stories/toast-neutral-story.js +32 -0
  170. package/lib/cjs/toast/stories/toast-neutral-story.js.map +1 -0
  171. package/lib/cjs/toast/stories/toast-progress-bar.js +49 -0
  172. package/lib/cjs/toast/stories/toast-progress-bar.js.map +1 -0
  173. package/lib/cjs/toast/stories/toast-success-story.js +32 -0
  174. package/lib/cjs/toast/stories/toast-success-story.js.map +1 -0
  175. package/lib/cjs/toast/stories/toast.stories.js +137 -0
  176. package/lib/cjs/toast/stories/toast.stories.js.map +1 -0
  177. package/lib/esm/avatar/stories/avatar-shapes.story.js +1 -1
  178. package/lib/esm/avatar/stories/avatar-shapes.story.js.map +1 -1
  179. package/lib/esm/avatar/stories/avatar-sizes.story.js +1 -1
  180. package/lib/esm/avatar/stories/avatar-sizes.story.js.map +1 -1
  181. package/lib/esm/avatar/stories/avatar-statuses.story.js +1 -1
  182. package/lib/esm/avatar/stories/avatar-statuses.story.js.map +1 -1
  183. package/lib/esm/avatar/stories/avatar-types.story.js +1 -1
  184. package/lib/esm/avatar/stories/avatar-types.story.js.map +1 -1
  185. package/lib/esm/avatar/stories/avatar.stories.js +11 -0
  186. package/lib/esm/avatar/stories/avatar.stories.js.map +1 -1
  187. package/lib/esm/callout/stories/callout-default.story.js +28 -0
  188. package/lib/esm/callout/stories/callout-default.story.js.map +1 -0
  189. package/lib/esm/callout/stories/callout-full.story.js +28 -0
  190. package/lib/esm/callout/stories/callout-full.story.js.map +1 -0
  191. package/lib/esm/callout/stories/callout-types.story.js +28 -0
  192. package/lib/esm/callout/stories/callout-types.story.js.map +1 -0
  193. package/lib/esm/callout/stories/callout-with-children.story.js +28 -0
  194. package/lib/esm/callout/stories/callout-with-children.story.js.map +1 -0
  195. package/lib/esm/callout/stories/callout-without-header.story.js +28 -0
  196. package/lib/esm/callout/stories/callout-without-header.story.js.map +1 -0
  197. package/lib/esm/callout/stories/callout.stories.js +98 -0
  198. package/lib/esm/callout/stories/callout.stories.js.map +1 -0
  199. package/lib/esm/callout/stories/index.js +37 -0
  200. package/lib/esm/callout/stories/index.js.map +1 -0
  201. package/lib/esm/checkbox/stories/checkbox-checkedByDefault.story.js +28 -0
  202. package/lib/esm/checkbox/stories/checkbox-checkedByDefault.story.js.map +1 -0
  203. package/lib/esm/checkbox/stories/checkbox-default.story.js +28 -0
  204. package/lib/esm/checkbox/stories/checkbox-default.story.js.map +1 -0
  205. package/lib/esm/checkbox/stories/checkbox-disabled.story.js +28 -0
  206. package/lib/esm/checkbox/stories/checkbox-disabled.story.js.map +1 -0
  207. package/lib/esm/checkbox/stories/checkbox-full.story.js +37 -0
  208. package/lib/esm/checkbox/stories/checkbox-full.story.js.map +1 -0
  209. package/lib/esm/checkbox/stories/checkbox-hasLabelBefore.story.js +28 -0
  210. package/lib/esm/checkbox/stories/checkbox-hasLabelBefore.story.js.map +1 -0
  211. package/lib/esm/checkbox/stories/checkbox-indeterminate.story.js +31 -0
  212. package/lib/esm/checkbox/stories/checkbox-indeterminate.story.js.map +1 -0
  213. package/lib/esm/checkbox/stories/checkbox-no-label.story.js +28 -0
  214. package/lib/esm/checkbox/stories/checkbox-no-label.story.js.map +1 -0
  215. package/lib/esm/checkbox/stories/checkbox.stories.js +134 -0
  216. package/lib/esm/checkbox/stories/checkbox.stories.js.map +1 -0
  217. package/lib/esm/checkbox/stories/index.js +43 -0
  218. package/lib/esm/checkbox/stories/index.js.map +1 -0
  219. package/lib/esm/context-menu/stories/context-menu-custom-items.story.js +31 -0
  220. package/lib/esm/context-menu/stories/context-menu-custom-items.story.js.map +1 -0
  221. package/lib/esm/context-menu/stories/context-menu-default.story.js +43 -0
  222. package/lib/esm/context-menu/stories/context-menu-default.story.js.map +1 -0
  223. package/lib/esm/context-menu/stories/context-menu-in-modal.story.js +36 -0
  224. package/lib/esm/context-menu/stories/context-menu-in-modal.story.js.map +1 -0
  225. package/lib/esm/context-menu/stories/context-menu-in-popover.story.js +32 -0
  226. package/lib/esm/context-menu/stories/context-menu-in-popover.story.js.map +1 -0
  227. package/lib/esm/context-menu/stories/context-menu-nested.story.js +32 -0
  228. package/lib/esm/context-menu/stories/context-menu-nested.story.js.map +1 -0
  229. package/lib/esm/context-menu/stories/context-menu-placements.story.js +43 -0
  230. package/lib/esm/context-menu/stories/context-menu-placements.story.js.map +1 -0
  231. package/lib/esm/context-menu/stories/context-menu-with-disabled-item.story.js +34 -0
  232. package/lib/esm/context-menu/stories/context-menu-with-disabled-item.story.js.map +1 -0
  233. package/lib/esm/context-menu/stories/context-menu-with-divider.story.js +34 -0
  234. package/lib/esm/context-menu/stories/context-menu-with-divider.story.js.map +1 -0
  235. package/lib/esm/context-menu/stories/context-menu-with-header.story.js +34 -0
  236. package/lib/esm/context-menu/stories/context-menu-with-header.story.js.map +1 -0
  237. package/lib/esm/context-menu/stories/context-menu-with-icon.story.js +32 -0
  238. package/lib/esm/context-menu/stories/context-menu-with-icon.story.js.map +1 -0
  239. package/lib/esm/context-menu/stories/context-menu.stories.js +167 -0
  240. package/lib/esm/context-menu/stories/context-menu.stories.js.map +1 -0
  241. package/lib/esm/context-menu/stories/index.js +52 -0
  242. package/lib/esm/context-menu/stories/index.js.map +1 -0
  243. package/lib/esm/drawer/stories/drawer-full.story.js +34 -0
  244. package/lib/esm/drawer/stories/drawer-full.story.js.map +1 -0
  245. package/lib/esm/drawer/stories/drawer-not-closeable.story.js +31 -0
  246. package/lib/esm/drawer/stories/drawer-not-closeable.story.js.map +1 -0
  247. package/lib/esm/drawer/stories/drawer-overlay.story.js +31 -0
  248. package/lib/esm/drawer/stories/drawer-overlay.story.js.map +1 -0
  249. package/lib/esm/drawer/stories/drawer-portaled.story.js +36 -0
  250. package/lib/esm/drawer/stories/drawer-portaled.story.js.map +1 -0
  251. package/lib/esm/drawer/stories/drawer-push.story.js +30 -0
  252. package/lib/esm/drawer/stories/drawer-push.story.js.map +1 -0
  253. package/lib/esm/drawer/stories/drawer-resizable.story.js +34 -0
  254. package/lib/esm/drawer/stories/drawer-resizable.story.js.map +1 -0
  255. package/lib/esm/drawer/stories/drawer-right-side.story.js +31 -0
  256. package/lib/esm/drawer/stories/drawer-right-side.story.js.map +1 -0
  257. package/lib/esm/drawer/stories/drawer-scrollable.story.js +31 -0
  258. package/lib/esm/drawer/stories/drawer-scrollable.story.js.map +1 -0
  259. package/lib/esm/drawer/stories/drawer.stories.js +147 -0
  260. package/lib/esm/drawer/stories/drawer.stories.js.map +1 -0
  261. package/lib/esm/drawer/stories/index.js +46 -0
  262. package/lib/esm/drawer/stories/index.js.map +1 -0
  263. package/lib/esm/graph-label/stories/graph-label-color.story.js +28 -0
  264. package/lib/esm/graph-label/stories/graph-label-color.story.js.map +1 -0
  265. package/lib/esm/graph-label/stories/graph-label-disabled.story.js +28 -0
  266. package/lib/esm/graph-label/stories/graph-label-disabled.story.js.map +1 -0
  267. package/lib/esm/graph-label/stories/graph-label-fluid.story.js +28 -0
  268. package/lib/esm/graph-label/stories/graph-label-fluid.story.js.map +1 -0
  269. package/lib/esm/graph-label/stories/graph-label-non-interactive.story.js +28 -0
  270. package/lib/esm/graph-label/stories/graph-label-non-interactive.story.js.map +1 -0
  271. package/lib/esm/graph-label/stories/graph-label-selected.story.js +28 -0
  272. package/lib/esm/graph-label/stories/graph-label-selected.story.js.map +1 -0
  273. package/lib/esm/graph-label/stories/graph-label-sizes.story.js +28 -0
  274. package/lib/esm/graph-label/stories/graph-label-sizes.story.js.map +1 -0
  275. package/lib/esm/graph-label/stories/graph-label-types.story.js +28 -0
  276. package/lib/esm/graph-label/stories/graph-label-types.story.js.map +1 -0
  277. package/lib/esm/graph-label/stories/graph-label.stories.js +129 -0
  278. package/lib/esm/graph-label/stories/graph-label.stories.js.map +1 -0
  279. package/lib/esm/graph-label/stories/index.js +43 -0
  280. package/lib/esm/graph-label/stories/index.js.map +1 -0
  281. package/lib/esm/label/stories/index.js +34 -0
  282. package/lib/esm/label/stories/index.js.map +1 -0
  283. package/lib/esm/label/stories/label-colors.story.js +28 -0
  284. package/lib/esm/label/stories/label-colors.story.js.map +1 -0
  285. package/lib/esm/label/stories/label-default.story.js +28 -0
  286. package/lib/esm/label/stories/label-default.story.js.map +1 -0
  287. package/lib/esm/label/stories/label-fills.story.js +28 -0
  288. package/lib/esm/label/stories/label-fills.story.js.map +1 -0
  289. package/lib/esm/label/stories/label-with-icons.story.js +28 -0
  290. package/lib/esm/label/stories/label-with-icons.story.js.map +1 -0
  291. package/lib/esm/label/stories/label.stories.js +90 -0
  292. package/lib/esm/label/stories/label.stories.js.map +1 -0
  293. package/lib/esm/loading-bar/stories/index.js +28 -0
  294. package/lib/esm/loading-bar/stories/index.js.map +1 -0
  295. package/lib/esm/loading-bar/stories/loading-bar-default.story.js +28 -0
  296. package/lib/esm/loading-bar/stories/loading-bar-default.story.js.map +1 -0
  297. package/lib/esm/loading-bar/stories/loading-bar-with-rail.story.js +28 -0
  298. package/lib/esm/loading-bar/stories/loading-bar-with-rail.story.js.map +1 -0
  299. package/lib/esm/loading-bar/stories/loading-bar.stories.js +64 -0
  300. package/lib/esm/loading-bar/stories/loading-bar.stories.js.map +1 -0
  301. package/lib/esm/loading-spinner/stories/index.js +28 -0
  302. package/lib/esm/loading-spinner/stories/index.js.map +1 -0
  303. package/lib/esm/loading-spinner/stories/loading-spinner-default.story.js +28 -0
  304. package/lib/esm/loading-spinner/stories/loading-spinner-default.story.js.map +1 -0
  305. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js +28 -0
  306. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -0
  307. package/lib/esm/loading-spinner/stories/loading-spinner.stories.js +64 -0
  308. package/lib/esm/loading-spinner/stories/loading-spinner.stories.js.map +1 -0
  309. package/lib/esm/segmented-control/stories/index.js +34 -0
  310. package/lib/esm/segmented-control/stories/index.js.map +1 -0
  311. package/lib/esm/segmented-control/stories/segmented-control-default.story.js +30 -0
  312. package/lib/esm/segmented-control/stories/segmented-control-default.story.js.map +1 -0
  313. package/lib/esm/segmented-control/stories/segmented-control-floating.story.js +30 -0
  314. package/lib/esm/segmented-control/stories/segmented-control-floating.story.js.map +1 -0
  315. package/lib/esm/segmented-control/stories/segmented-control-only-icons.story.js +31 -0
  316. package/lib/esm/segmented-control/stories/segmented-control-only-icons.story.js.map +1 -0
  317. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js +31 -0
  318. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js.map +1 -0
  319. package/lib/esm/segmented-control/stories/segmented-control.stories.js +90 -0
  320. package/lib/esm/segmented-control/stories/segmented-control.stories.js.map +1 -0
  321. package/lib/esm/status-indicator/stories/index.js +25 -0
  322. package/lib/esm/status-indicator/stories/index.js.map +1 -0
  323. package/lib/esm/status-indicator/stories/status-indicator-types.story.js +28 -0
  324. package/lib/esm/status-indicator/stories/status-indicator-types.story.js.map +1 -0
  325. package/lib/esm/status-indicator/stories/status-indicator.stories.js +51 -0
  326. package/lib/esm/status-indicator/stories/status-indicator.stories.js.map +1 -0
  327. package/lib/esm/toast/Toast.js +5 -1
  328. package/lib/esm/toast/Toast.js.map +1 -1
  329. package/lib/esm/toast/ToastControlled.js +83 -0
  330. package/lib/esm/toast/ToastControlled.js.map +1 -0
  331. package/lib/esm/toast/index.js +1 -0
  332. package/lib/esm/toast/index.js.map +1 -1
  333. package/lib/esm/toast/stories/index.js +46 -0
  334. package/lib/esm/toast/stories/index.js.map +1 -0
  335. package/lib/esm/toast/stories/toast-action-story.js +36 -0
  336. package/lib/esm/toast/stories/toast-action-story.js.map +1 -0
  337. package/lib/esm/toast/stories/toast-closeable-story.js +35 -0
  338. package/lib/esm/toast/stories/toast-closeable-story.js.map +1 -0
  339. package/lib/esm/toast/stories/toast-controlled-story.js +42 -0
  340. package/lib/esm/toast/stories/toast-controlled-story.js.map +1 -0
  341. package/lib/esm/toast/stories/toast-custom-story.js +30 -0
  342. package/lib/esm/toast/stories/toast-custom-story.js.map +1 -0
  343. package/lib/esm/toast/stories/toast-danger-story.js +30 -0
  344. package/lib/esm/toast/stories/toast-danger-story.js.map +1 -0
  345. package/lib/esm/toast/stories/toast-neutral-story.js +30 -0
  346. package/lib/esm/toast/stories/toast-neutral-story.js.map +1 -0
  347. package/lib/esm/toast/stories/toast-progress-bar.js +47 -0
  348. package/lib/esm/toast/stories/toast-progress-bar.js.map +1 -0
  349. package/lib/esm/toast/stories/toast-success-story.js +30 -0
  350. package/lib/esm/toast/stories/toast-success-story.js.map +1 -0
  351. package/lib/esm/toast/stories/toast.stories.js +134 -0
  352. package/lib/esm/toast/stories/toast.stories.js.map +1 -0
  353. package/lib/types/avatar/stories/avatar.stories.d.ts +3 -12
  354. package/lib/types/callout/stories/callout-default.story.d.ts +23 -0
  355. package/lib/types/callout/stories/callout-full.story.d.ts +23 -0
  356. package/lib/types/callout/stories/callout-types.story.d.ts +23 -0
  357. package/lib/types/callout/stories/callout-with-children.story.d.ts +23 -0
  358. package/lib/types/callout/stories/callout-without-header.story.d.ts +23 -0
  359. package/lib/types/callout/stories/callout.stories.d.ts +39 -0
  360. package/lib/types/callout/stories/index.d.ts +30 -0
  361. package/lib/types/checkbox/stories/checkbox-checkedByDefault.story.d.ts +23 -0
  362. package/lib/types/checkbox/stories/checkbox-default.story.d.ts +23 -0
  363. package/lib/types/checkbox/stories/checkbox-disabled.story.d.ts +23 -0
  364. package/lib/types/checkbox/stories/checkbox-full.story.d.ts +23 -0
  365. package/lib/types/checkbox/stories/checkbox-hasLabelBefore.story.d.ts +23 -0
  366. package/lib/types/checkbox/stories/checkbox-indeterminate.story.d.ts +23 -0
  367. package/lib/types/checkbox/stories/checkbox-no-label.story.d.ts +23 -0
  368. package/lib/types/checkbox/stories/checkbox.stories.d.ts +32 -0
  369. package/lib/types/checkbox/stories/index.d.ts +34 -0
  370. package/lib/types/context-menu/stories/context-menu-custom-items.story.d.ts +23 -0
  371. package/lib/types/context-menu/stories/context-menu-default.story.d.ts +23 -0
  372. package/lib/types/context-menu/stories/context-menu-in-modal.story.d.ts +23 -0
  373. package/lib/types/context-menu/stories/context-menu-in-popover.story.d.ts +23 -0
  374. package/lib/types/context-menu/stories/context-menu-nested.story.d.ts +23 -0
  375. package/lib/types/context-menu/stories/context-menu-placements.story.d.ts +23 -0
  376. package/lib/types/context-menu/stories/context-menu-with-disabled-item.story.d.ts +23 -0
  377. package/lib/types/context-menu/stories/context-menu-with-divider.story.d.ts +23 -0
  378. package/lib/types/context-menu/stories/context-menu-with-header.story.d.ts +23 -0
  379. package/lib/types/context-menu/stories/context-menu-with-icon.story.d.ts +23 -0
  380. package/lib/types/context-menu/stories/context-menu.stories.d.ts +34 -0
  381. package/lib/types/context-menu/stories/index.d.ts +40 -0
  382. package/lib/types/drawer/stories/drawer-full.story.d.ts +23 -0
  383. package/lib/types/drawer/stories/drawer-not-closeable.story.d.ts +23 -0
  384. package/lib/types/drawer/stories/drawer-overlay.story.d.ts +23 -0
  385. package/lib/types/drawer/stories/drawer-portaled.story.d.ts +23 -0
  386. package/lib/types/drawer/stories/drawer-push.story.d.ts +22 -0
  387. package/lib/types/drawer/stories/drawer-resizable.story.d.ts +23 -0
  388. package/lib/types/drawer/stories/drawer-right-side.story.d.ts +23 -0
  389. package/lib/types/drawer/stories/drawer-scrollable.story.d.ts +23 -0
  390. package/lib/types/drawer/stories/drawer.stories.d.ts +62 -0
  391. package/lib/types/drawer/stories/index.d.ts +36 -0
  392. package/lib/types/graph-label/stories/graph-label-color.story.d.ts +23 -0
  393. package/lib/types/graph-label/stories/graph-label-disabled.story.d.ts +23 -0
  394. package/lib/types/graph-label/stories/graph-label-fluid.story.d.ts +23 -0
  395. package/lib/types/graph-label/stories/graph-label-non-interactive.story.d.ts +23 -0
  396. package/lib/types/graph-label/stories/graph-label-selected.story.d.ts +23 -0
  397. package/lib/types/graph-label/stories/graph-label-sizes.story.d.ts +23 -0
  398. package/lib/types/graph-label/stories/graph-label-types.story.d.ts +23 -0
  399. package/lib/types/graph-label/stories/graph-label.stories.d.ts +32 -0
  400. package/lib/types/graph-label/stories/index.d.ts +34 -0
  401. package/lib/types/label/stories/index.d.ts +28 -0
  402. package/lib/types/label/stories/label-colors.story.d.ts +23 -0
  403. package/lib/types/label/stories/label-default.story.d.ts +23 -0
  404. package/lib/types/label/stories/label-fills.story.d.ts +23 -0
  405. package/lib/types/label/stories/label-with-icons.story.d.ts +23 -0
  406. package/lib/types/label/stories/label.stories.d.ts +29 -0
  407. package/lib/types/loading-bar/stories/index.d.ts +24 -0
  408. package/lib/types/loading-bar/stories/loading-bar-default.story.d.ts +23 -0
  409. package/lib/types/loading-bar/stories/loading-bar-with-rail.story.d.ts +23 -0
  410. package/lib/types/loading-bar/stories/loading-bar.stories.d.ts +27 -0
  411. package/lib/types/loading-spinner/stories/index.d.ts +24 -0
  412. package/lib/types/loading-spinner/stories/loading-spinner-default.story.d.ts +23 -0
  413. package/lib/types/loading-spinner/stories/loading-spinner-sizes.story.d.ts +23 -0
  414. package/lib/types/loading-spinner/stories/loading-spinner.stories.d.ts +27 -0
  415. package/lib/types/segmented-control/stories/index.d.ts +28 -0
  416. package/lib/types/segmented-control/stories/segmented-control-default.story.d.ts +23 -0
  417. package/lib/types/segmented-control/stories/segmented-control-floating.story.d.ts +23 -0
  418. package/lib/types/segmented-control/stories/segmented-control-only-icons.story.d.ts +23 -0
  419. package/lib/types/segmented-control/stories/segmented-control-sizes.story.d.ts +23 -0
  420. package/lib/types/segmented-control/stories/segmented-control.stories.d.ts +29 -0
  421. package/lib/types/status-indicator/stories/index.d.ts +22 -0
  422. package/lib/types/status-indicator/stories/status-indicator-types.story.d.ts +23 -0
  423. package/lib/types/status-indicator/stories/status-indicator.stories.d.ts +26 -0
  424. package/lib/types/toast/Toast.d.ts +9 -1
  425. package/lib/types/toast/ToastControlled.d.ts +40 -0
  426. package/lib/types/toast/index.d.ts +1 -0
  427. package/lib/types/toast/stories/index.d.ts +36 -0
  428. package/lib/types/toast/stories/toast-action-story.d.ts +23 -0
  429. package/lib/types/toast/stories/toast-closeable-story.d.ts +23 -0
  430. package/lib/types/toast/stories/toast-controlled-story.d.ts +23 -0
  431. package/lib/types/toast/stories/toast-custom-story.d.ts +23 -0
  432. package/lib/types/toast/stories/toast-danger-story.d.ts +23 -0
  433. package/lib/types/toast/stories/toast-neutral-story.d.ts +23 -0
  434. package/lib/types/toast/stories/toast-progress-bar.d.ts +23 -0
  435. package/lib/types/toast/stories/toast-success-story.d.ts +23 -0
  436. package/lib/types/toast/stories/toast.stories.d.ts +38 -0
  437. package/package.json +4 -4
@@ -0,0 +1,83 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ *
15
+ * Copyright (c) "Neo4j"
16
+ * Neo4j Sweden AB [http://neo4j.com]
17
+ *
18
+ * This file is part of Neo4j.
19
+ *
20
+ * Neo4j is free software: you can redistribute it and/or modify
21
+ * it under the terms of the GNU General Public License as published by
22
+ * the Free Software Foundation, either version 3 of the License, or
23
+ * (at your option) any later version.
24
+ *
25
+ * This program is distributed in the hope that it will be useful,
26
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ * GNU General Public License for more details.
29
+ *
30
+ * You should have received a copy of the GNU General Public License
31
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
32
+ */
33
+ import { useEffect, useState } from 'react';
34
+ import { toast, Toaster } from './Toast';
35
+ const toastWithVariant = (input) => {
36
+ const commonRootProps = {
37
+ actionLabel: input.actionLabel,
38
+ isCloseable: input.onClose !== undefined,
39
+ isControlled: true,
40
+ onAction(id) {
41
+ var _a;
42
+ (_a = input.onAction) === null || _a === void 0 ? void 0 : _a.call(input, id);
43
+ },
44
+ onClose(id) {
45
+ var _a;
46
+ (_a = input.onClose) === null || _a === void 0 ? void 0 : _a.call(input, id);
47
+ },
48
+ shouldAutoClose: false,
49
+ shouldCloseOnAction: false,
50
+ };
51
+ const commonSonnerProps = {
52
+ dismissible: false,
53
+ id: input.id,
54
+ };
55
+ switch (input.variant) {
56
+ case 'neutral':
57
+ return toast.neutral(input.text, Object.assign(Object.assign({}, commonRootProps), { sonnerToastProps: commonSonnerProps }));
58
+ case 'success':
59
+ return toast.success(input.text, Object.assign(Object.assign({}, commonRootProps), { sonnerToastProps: commonSonnerProps }));
60
+ case 'danger':
61
+ return toast.danger(input.text, Object.assign(Object.assign({}, commonRootProps), { sonnerToastProps: commonSonnerProps }));
62
+ case 'progress-bar':
63
+ return toast.progressBar(input.text, Object.assign(Object.assign({}, commonRootProps), { sonnerToastProps: commonSonnerProps, initialProgressBarValue: input.progressBarValue }));
64
+ }
65
+ };
66
+ export const ToasterControlled = (_a) => {
67
+ var { toasts } = _a, restProps = __rest(_a, ["toasts"]);
68
+ const [toastsState, setToastsState] = useState([]);
69
+ useEffect(() => {
70
+ // if a toast is removed, close it
71
+ const removedToasts = toastsState.filter((toast) => !toasts.some((t) => t.id === toast.id));
72
+ removedToasts.forEach((removedToast) => {
73
+ toast.close(removedToast.id);
74
+ });
75
+ // Otherwise, update the toast or create a new one
76
+ for (const toast of toasts) {
77
+ toastWithVariant(toast);
78
+ }
79
+ setToastsState(toasts);
80
+ }, [toasts, toastsState]);
81
+ return _jsx(Toaster, Object.assign({ visibleToasts: 1 }, restProps));
82
+ };
83
+ //# sourceMappingURL=ToastControlled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastControlled.js","sourceRoot":"","sources":["../../../src/toast/ToastControlled.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAoC,MAAM,SAAS,CAAC;AAsB3E,MAAM,gBAAgB,GAAG,CAAC,KAAsB,EAAE,EAAE;IAClD,MAAM,eAAe,GAAG;QACtB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,WAAW,EAAE,KAAK,CAAC,OAAO,KAAK,SAAS;QACxC,YAAY,EAAE,IAAI;QAClB,QAAQ,CAAC,EAAW;;YAClB,MAAA,KAAK,CAAC,QAAQ,sDAAG,EAAE,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,CAAC,EAAW;;YACjB,MAAA,KAAK,CAAC,OAAO,sDAAG,EAAE,CAAC,CAAC;QACtB,CAAC;QACD,eAAe,EAAE,KAAK;QACtB,mBAAmB,EAAE,KAAK;KAC3B,CAAC;IAEF,MAAM,iBAAiB,GAAkB;QACvC,WAAW,EAAE,KAAK;QAClB,EAAE,EAAE,KAAK,CAAC,EAAE;KACb,CAAC;IAEF,QAAQ,KAAK,CAAC,OAAO,EAAE,CAAC;QACtB,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,kCAC1B,eAAe,KAClB,gBAAgB,EAAE,iBAAiB,IACnC,CAAC;QACL,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,kCAC1B,eAAe,KAClB,gBAAgB,EAAE,iBAAiB,IACnC,CAAC;QACL,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,kCACzB,eAAe,KAClB,gBAAgB,EAAE,iBAAiB,IACnC,CAAC;QACL,KAAK,cAAc;YACjB,OAAO,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,kCAC9B,eAAe,KAClB,gBAAgB,EAAE,iBAAiB,EACnC,uBAAuB,EAAE,KAAK,CAAC,gBAAgB,IAC/C,CAAC;IACP,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAGX,EAAE,EAAE;QAHO,EAChC,MAAM,OAEe,EADlB,SAAS,cAFoB,UAGjC,CADa;IAEZ,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAoB,EAAE,CAAC,CAAC;IAEtE,SAAS,CAAC,GAAG,EAAE;QACb,kCAAkC;QAClC,MAAM,aAAa,GAAG,WAAW,CAAC,MAAM,CACtC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,CAClD,CAAC;QACF,aAAa,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;YACrC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;QAEH,kDAAkD;QAClD,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;QAED,cAAc,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;IAE1B,OAAO,KAAC,OAAO,kBAAC,aAAa,EAAE,CAAC,IAAM,SAAS,EAAI,CAAC;AACtD,CAAC,CAAC"}
@@ -19,4 +19,5 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  export * from './Toast';
22
+ export * from './ToastControlled';
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/toast/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/toast/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,46 @@
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 ToastNeutral } from './toast-neutral-story';
22
+ export { default as ToastSuccess } from './toast-success-story';
23
+ export { default as ToastDanger } from './toast-danger-story';
24
+ export { default as ToastAction } from './toast-action-story';
25
+ export { default as ToastCloseable } from './toast-closeable-story';
26
+ export { default as ToastProgressBar } from './toast-progress-bar';
27
+ export { default as ToastCustom } from './toast-custom-story';
28
+ export { default as ToastControlled } from './toast-controlled-story';
29
+ import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
30
+ import ToastActionSrcRaw from './toast-action-story?raw';
31
+ import ToastCloseableSrcRaw from './toast-closeable-story?raw';
32
+ import ToastControlledSrcRaw from './toast-controlled-story?raw';
33
+ import ToastCustomSrcRaw from './toast-custom-story?raw';
34
+ import ToastDangerSrcRaw from './toast-danger-story?raw';
35
+ import ToastNeutralSrcRaw from './toast-neutral-story?raw';
36
+ import ToastProgressBarSrcRaw from './toast-progress-bar?raw';
37
+ import ToastSuccessSrcRaw from './toast-success-story?raw';
38
+ export const ToastNeutralSrc = removeLicenseHeader(ToastNeutralSrcRaw);
39
+ export const ToastSuccessSrc = removeLicenseHeader(ToastSuccessSrcRaw);
40
+ export const ToastDangerSrc = removeLicenseHeader(ToastDangerSrcRaw);
41
+ export const ToastActionSrc = removeLicenseHeader(ToastActionSrcRaw);
42
+ export const ToastCloseableSrc = removeLicenseHeader(ToastCloseableSrcRaw);
43
+ export const ToastProgressBarSrc = removeLicenseHeader(ToastProgressBarSrcRaw);
44
+ export const ToastCustomSrc = removeLicenseHeader(ToastCustomSrcRaw);
45
+ export const ToastControlledSrc = removeLicenseHeader(ToastControlledSrcRaw);
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/toast/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,oBAAoB,MAAM,6BAA6B,CAAC;AAC/D,OAAO,qBAAqB,MAAM,8BAA8B,CAAC;AACjE,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,kBAAkB,MAAM,2BAA2B,CAAC;AAC3D,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,kBAAkB,MAAM,2BAA2B,CAAC;AAE3D,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, toast, Toaster } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs("div", { className: "n-flex n-flex-row n-justify-center", children: [_jsx(Toaster, {}), _jsx(Button, { onClick: () => {
26
+ toast.neutral('Hello', {
27
+ actionLabel: 'Action',
28
+ shouldCloseOnAction: true,
29
+ onAction: () => {
30
+ console.info('action');
31
+ },
32
+ });
33
+ }, children: "Press to show a Toast" })] }));
34
+ };
35
+ export default Component;
36
+ //# sourceMappingURL=toast-action-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-action-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-action-story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,oCAAoC,aAEjD,KAAC,OAAO,KAAG,EACX,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE;wBACrB,WAAW,EAAE,QAAQ;wBACrB,mBAAmB,EAAE,IAAI;wBACzB,QAAQ,EAAE,GAAG,EAAE;4BACb,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;wBACzB,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC,sCAGM,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, toast, Toaster } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs("div", { className: "n-flex n-justify-center", children: [_jsx(Toaster, {}), _jsx(Button, { onClick: () => {
26
+ toast.neutral('Hello', {
27
+ isCloseable: true,
28
+ onClose: () => {
29
+ console.info('close');
30
+ },
31
+ });
32
+ }, children: "Press to show a Toast" })] }));
33
+ };
34
+ export default Component;
35
+ //# sourceMappingURL=toast-closeable-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-closeable-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-closeable-story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aAEtC,KAAC,OAAO,KAAG,EACX,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE;wBACrB,WAAW,EAAE,IAAI;wBACjB,OAAO,EAAE,GAAG,EAAE;4BACZ,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;wBACxB,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC,sCAGM,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, ToasterControlled } from '@neo4j-ndl/react';
24
+ import { useState } from 'react';
25
+ const Component = () => {
26
+ const [toasts, setToasts] = useState([]);
27
+ return (_jsxs("div", { className: "n-flex n-justify-center", children: [_jsx(ToasterControlled, { toasts: toasts }), _jsx(Button, { onClick: () => {
28
+ setToasts([
29
+ ...toasts,
30
+ {
31
+ id: '1',
32
+ text: 'Hi there!',
33
+ variant: 'neutral',
34
+ onClose: () => {
35
+ setToasts(toasts.filter((toast) => toast.id !== '1'));
36
+ },
37
+ },
38
+ ]);
39
+ }, children: "Press to show a Toast" })] }));
40
+ };
41
+ export default Component;
42
+ //# sourceMappingURL=toast-controlled-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-controlled-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-controlled-story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAElC,EAAE,CAAC,CAAC;IAEN,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aAEtC,KAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,GAAI,EACrC,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,SAAS,CAAC;wBACR,GAAG,MAAM;wBACT;4BACE,EAAE,EAAE,GAAG;4BACP,IAAI,EAAE,WAAW;4BACjB,OAAO,EAAE,SAAS;4BAClB,OAAO,EAAE,GAAG,EAAE;gCACZ,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;4BACxD,CAAC;yBACF;qBACF,CAAC,CAAC;gBACL,CAAC,sCAGM,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, toast, Toaster } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs("div", { className: "n-flex n-justify-center", children: [_jsx(Toaster, {}), _jsx(Button, { onClick: () => {
26
+ toast.neutral(_jsx("div", { style: { background: 'red' }, children: "Hi there!" }));
27
+ }, children: "Press to show a Toast" })] }));
28
+ };
29
+ export default Component;
30
+ //# sourceMappingURL=toast-custom-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-custom-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-custom-story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aAEtC,KAAC,OAAO,KAAG,EACX,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,KAAK,CAAC,OAAO,CAAC,cAAK,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,0BAAiB,CAAC,CAAC;gBACpE,CAAC,sCAGM,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, toast, Toaster } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs("div", { className: "n-flex n-justify-center", children: [_jsx(Toaster, {}), _jsx(Button, { onClick: () => {
26
+ toast.danger('Danger');
27
+ }, children: "Press to show a Toast" })] }));
28
+ };
29
+ export default Component;
30
+ //# sourceMappingURL=toast-danger-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-danger-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-danger-story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aAEtC,KAAC,OAAO,KAAG,EACX,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACzB,CAAC,sCAGM,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, toast, Toaster } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs("div", { className: "n-flex n-justify-center", children: [_jsx(Toaster, {}), _jsx(Button, { onClick: () => {
26
+ toast.neutral('Hello');
27
+ }, children: "Press to show a Toast" })] }));
28
+ };
29
+ export default Component;
30
+ //# sourceMappingURL=toast-neutral-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-neutral-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-neutral-story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aAEtC,KAAC,OAAO,KAAG,EACX,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACzB,CAAC,sCAGM,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, toast, Toaster } from '@neo4j-ndl/react';
24
+ import { CloudArrowDownIconSolid } from '@neo4j-ndl/react/icons';
25
+ import { useState } from 'react';
26
+ const Component = () => {
27
+ const [progressBarId, setProgressBarId] = useState(null);
28
+ return (_jsxs("div", { className: "n-flex n-justify-center n-gap-4", children: [_jsx(Toaster, {}), _jsx(Button, { onClick: () => {
29
+ const id = toast.progressBar('Hello', {
30
+ icon: _jsx(CloudArrowDownIconSolid, {}),
31
+ isCloseable: true,
32
+ shouldCloseOnAction: true,
33
+ onClose: () => {
34
+ setProgressBarId(null);
35
+ console.info('close');
36
+ },
37
+ shouldAutoClose: false,
38
+ });
39
+ setProgressBarId(id);
40
+ }, children: "Press to show a Toast" }), _jsx(Button, { fill: "outlined", onClick: () => {
41
+ if (progressBarId) {
42
+ toast.updateProgressBarValue(progressBarId, 50);
43
+ }
44
+ }, children: "Update progress bar" })] }));
45
+ };
46
+ export default Component;
47
+ //# sourceMappingURL=toast-progress-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-progress-bar.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-progress-bar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAChD,IAAI,CACL,CAAC;IACF,OAAO,CACL,eAAK,SAAS,EAAC,iCAAiC,aAE9C,KAAC,OAAO,KAAG,EACX,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,MAAM,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE;wBACpC,IAAI,EAAE,KAAC,uBAAuB,KAAG;wBACjC,WAAW,EAAE,IAAI;wBACjB,mBAAmB,EAAE,IAAI;wBACzB,OAAO,EAAE,GAAG,EAAE;4BACZ,gBAAgB,CAAC,IAAI,CAAC,CAAC;4BACvB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;wBACxB,CAAC;wBACD,eAAe,EAAE,KAAK;qBACvB,CAAC,CAAC;oBACH,gBAAgB,CAAC,EAAE,CAAC,CAAC;gBACvB,CAAC,sCAGM,EACT,KAAC,MAAM,IACL,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,GAAG,EAAE;oBACZ,IAAI,aAAa,EAAE,CAAC;wBAClB,KAAK,CAAC,sBAAsB,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;oBAClD,CAAC;gBACH,CAAC,oCAGM,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, toast, Toaster } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs("div", { className: "n-flex n-justify-center", children: [_jsx(Toaster, {}), _jsx(Button, { onClick: () => {
26
+ toast.success('Hello');
27
+ }, children: "Press to show a Toast" })] }));
28
+ };
29
+ export default Component;
30
+ //# sourceMappingURL=toast-success-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-success-story.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast-success-story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aAEtC,KAAC,OAAO,KAAG,EACX,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE;oBACZ,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACzB,CAAC,sCAGM,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,134 @@
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 { Toaster } from '@neo4j-ndl/react';
22
+ import { ToastAction, ToastActionSrc, ToastCloseable, ToastCloseableSrc, ToastControlled, ToastControlledSrc, ToastCustom, ToastCustomSrc, ToastDanger, ToastDangerSrc, ToastNeutral, ToastNeutralSrc, ToastProgressBar, ToastProgressBarSrc, ToastSuccess, ToastSuccessSrc, } from '.';
23
+ const componentMeta = {
24
+ title: 'Components/Toast',
25
+ id: 'components-toast',
26
+ component: Toaster,
27
+ tags: ['docsPage'],
28
+ };
29
+ export default componentMeta;
30
+ export const Neutral = {
31
+ args: {},
32
+ render: ToastNeutral,
33
+ parameters: {
34
+ docs: {
35
+ source: {
36
+ language: 'tsx',
37
+ type: 'code',
38
+ code: ToastNeutralSrc,
39
+ },
40
+ },
41
+ },
42
+ };
43
+ export const Success = {
44
+ args: {},
45
+ render: ToastSuccess,
46
+ parameters: {
47
+ docs: {
48
+ source: {
49
+ language: 'tsx',
50
+ type: 'code',
51
+ code: ToastSuccessSrc,
52
+ },
53
+ },
54
+ },
55
+ };
56
+ export const Error = {
57
+ args: {},
58
+ render: ToastDanger,
59
+ parameters: {
60
+ docs: {
61
+ source: {
62
+ language: 'tsx',
63
+ type: 'code',
64
+ code: ToastDangerSrc,
65
+ },
66
+ },
67
+ },
68
+ };
69
+ export const Action = {
70
+ args: {},
71
+ render: ToastAction,
72
+ parameters: {
73
+ docs: {
74
+ source: {
75
+ language: 'tsx',
76
+ type: 'code',
77
+ code: ToastActionSrc,
78
+ },
79
+ },
80
+ },
81
+ };
82
+ export const Closeable = {
83
+ args: {},
84
+ render: ToastCloseable,
85
+ parameters: {
86
+ docs: {
87
+ source: {
88
+ language: 'tsx',
89
+ type: 'code',
90
+ code: ToastCloseableSrc,
91
+ },
92
+ },
93
+ },
94
+ };
95
+ export const ProgressBar = {
96
+ args: {},
97
+ render: ToastProgressBar,
98
+ parameters: {
99
+ docs: {
100
+ source: {
101
+ language: 'tsx',
102
+ type: 'code',
103
+ code: ToastProgressBarSrc,
104
+ },
105
+ },
106
+ },
107
+ };
108
+ export const Custom = {
109
+ args: {},
110
+ render: ToastCustom,
111
+ parameters: {
112
+ docs: {
113
+ source: {
114
+ language: 'tsx',
115
+ type: 'code',
116
+ code: ToastCustomSrc,
117
+ },
118
+ },
119
+ },
120
+ };
121
+ export const Controlled = {
122
+ args: {},
123
+ render: ToastControlled,
124
+ parameters: {
125
+ docs: {
126
+ source: {
127
+ language: 'tsx',
128
+ type: 'code',
129
+ code: ToastControlledSrc,
130
+ },
131
+ },
132
+ },
133
+ };
134
+ //# sourceMappingURL=toast.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.stories.js","sourceRoot":"","sources":["../../../../src/toast/stories/toast.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,OAAO,EACL,WAAW,EACX,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,EACd,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,eAAe,GAChB,MAAM,GAAG,CAAC;AAEX,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,kBAAkB;IACzB,EAAE,EAAE,kBAAkB;IACtB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,UAAU,CAAC;CACY,CAAC;AAEjC,eAAe,aAAa,CAAC;AAG7B,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,YAAY;IACpB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,eAAe;aACtB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,YAAY;IACpB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,eAAe;aACtB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,WAAW;IACnB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,cAAc;aACrB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,WAAW;IACnB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,cAAc;aACrB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,cAAc;IACtB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,iBAAiB;aACxB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,gBAAgB;IACxB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,mBAAmB;aAC1B;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,WAAW;IACnB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,cAAc;aACrB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,eAAe;IACvB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,kBAAkB;aACzB;SACF;KACF;CACF,CAAC"}
@@ -18,18 +18,9 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- import { type StoryObj } from '@storybook/react-vite';
22
- declare const componentMeta: {
23
- title: string;
24
- id: string;
25
- component: import("../../_common/types").PolymorphicForwardRefExoticComponent<"div", import("../Avatar").AvatarProps>;
26
- tags: string[];
27
- parameters: {
28
- controls: {
29
- disable: boolean;
30
- };
31
- };
32
- };
21
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
22
+ import { Avatar } from '../../index';
23
+ declare const componentMeta: Meta<typeof Avatar>;
33
24
  export default componentMeta;
34
25
  type Story = StoryObj<typeof componentMeta>;
35
26
  export declare const Default: Story;