@neo4j-ndl/react 3.8.34 → 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 (487) 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/ContextMenu.js +1 -1
  44. package/lib/cjs/context-menu/stories/context-menu-custom-items.story.js +33 -0
  45. package/lib/cjs/context-menu/stories/context-menu-custom-items.story.js.map +1 -0
  46. package/lib/cjs/context-menu/stories/context-menu-default.story.js +45 -0
  47. package/lib/cjs/context-menu/stories/context-menu-default.story.js.map +1 -0
  48. package/lib/cjs/context-menu/stories/context-menu-in-modal.story.js +38 -0
  49. package/lib/cjs/context-menu/stories/context-menu-in-modal.story.js.map +1 -0
  50. package/lib/cjs/context-menu/stories/context-menu-in-popover.story.js +34 -0
  51. package/lib/cjs/context-menu/stories/context-menu-in-popover.story.js.map +1 -0
  52. package/lib/cjs/context-menu/stories/context-menu-nested.story.js +34 -0
  53. package/lib/cjs/context-menu/stories/context-menu-nested.story.js.map +1 -0
  54. package/lib/cjs/context-menu/stories/context-menu-placements.story.js +45 -0
  55. package/lib/cjs/context-menu/stories/context-menu-placements.story.js.map +1 -0
  56. package/lib/cjs/context-menu/stories/context-menu-with-disabled-item.story.js +36 -0
  57. package/lib/cjs/context-menu/stories/context-menu-with-disabled-item.story.js.map +1 -0
  58. package/lib/cjs/context-menu/stories/context-menu-with-divider.story.js +36 -0
  59. package/lib/cjs/context-menu/stories/context-menu-with-divider.story.js.map +1 -0
  60. package/lib/cjs/context-menu/stories/context-menu-with-header.story.js +36 -0
  61. package/lib/cjs/context-menu/stories/context-menu-with-header.story.js.map +1 -0
  62. package/lib/cjs/context-menu/stories/context-menu-with-icon.story.js +34 -0
  63. package/lib/cjs/context-menu/stories/context-menu-with-icon.story.js.map +1 -0
  64. package/lib/cjs/context-menu/stories/context-menu.stories.js +170 -0
  65. package/lib/cjs/context-menu/stories/context-menu.stories.js.map +1 -0
  66. package/lib/cjs/context-menu/stories/index.js +68 -0
  67. package/lib/cjs/context-menu/stories/index.js.map +1 -0
  68. package/lib/cjs/drawer/stories/drawer-full.story.js +36 -0
  69. package/lib/cjs/drawer/stories/drawer-full.story.js.map +1 -0
  70. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js +33 -0
  71. package/lib/cjs/drawer/stories/drawer-not-closeable.story.js.map +1 -0
  72. package/lib/cjs/drawer/stories/drawer-overlay.story.js +33 -0
  73. package/lib/cjs/drawer/stories/drawer-overlay.story.js.map +1 -0
  74. package/lib/cjs/drawer/stories/drawer-portaled.story.js +38 -0
  75. package/lib/cjs/drawer/stories/drawer-portaled.story.js.map +1 -0
  76. package/lib/cjs/drawer/stories/drawer-push.story.js +32 -0
  77. package/lib/cjs/drawer/stories/drawer-push.story.js.map +1 -0
  78. package/lib/cjs/drawer/stories/drawer-resizable.story.js +36 -0
  79. package/lib/cjs/drawer/stories/drawer-resizable.story.js.map +1 -0
  80. package/lib/cjs/drawer/stories/drawer-right-side.story.js +33 -0
  81. package/lib/cjs/drawer/stories/drawer-right-side.story.js.map +1 -0
  82. package/lib/cjs/drawer/stories/drawer-scrollable.story.js +33 -0
  83. package/lib/cjs/drawer/stories/drawer-scrollable.story.js.map +1 -0
  84. package/lib/cjs/drawer/stories/drawer.stories.js +150 -0
  85. package/lib/cjs/drawer/stories/drawer.stories.js.map +1 -0
  86. package/lib/cjs/drawer/stories/index.js +60 -0
  87. package/lib/cjs/drawer/stories/index.js.map +1 -0
  88. package/lib/cjs/graph-label/stories/graph-label-color.story.js +30 -0
  89. package/lib/cjs/graph-label/stories/graph-label-color.story.js.map +1 -0
  90. package/lib/cjs/graph-label/stories/graph-label-disabled.story.js +30 -0
  91. package/lib/cjs/graph-label/stories/graph-label-disabled.story.js.map +1 -0
  92. package/lib/cjs/graph-label/stories/graph-label-fluid.story.js +30 -0
  93. package/lib/cjs/graph-label/stories/graph-label-fluid.story.js.map +1 -0
  94. package/lib/cjs/graph-label/stories/graph-label-non-interactive.story.js +30 -0
  95. package/lib/cjs/graph-label/stories/graph-label-non-interactive.story.js.map +1 -0
  96. package/lib/cjs/graph-label/stories/graph-label-selected.story.js +30 -0
  97. package/lib/cjs/graph-label/stories/graph-label-selected.story.js.map +1 -0
  98. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js +30 -0
  99. package/lib/cjs/graph-label/stories/graph-label-sizes.story.js.map +1 -0
  100. package/lib/cjs/graph-label/stories/graph-label-types.story.js +30 -0
  101. package/lib/cjs/graph-label/stories/graph-label-types.story.js.map +1 -0
  102. package/lib/cjs/graph-label/stories/graph-label.stories.js +132 -0
  103. package/lib/cjs/graph-label/stories/graph-label.stories.js.map +1 -0
  104. package/lib/cjs/graph-label/stories/index.js +56 -0
  105. package/lib/cjs/graph-label/stories/index.js.map +1 -0
  106. package/lib/cjs/label/stories/index.js +44 -0
  107. package/lib/cjs/label/stories/index.js.map +1 -0
  108. package/lib/cjs/label/stories/label-colors.story.js +30 -0
  109. package/lib/cjs/label/stories/label-colors.story.js.map +1 -0
  110. package/lib/cjs/label/stories/label-default.story.js +30 -0
  111. package/lib/cjs/label/stories/label-default.story.js.map +1 -0
  112. package/lib/cjs/label/stories/label-fills.story.js +30 -0
  113. package/lib/cjs/label/stories/label-fills.story.js.map +1 -0
  114. package/lib/cjs/label/stories/label-with-icons.story.js +30 -0
  115. package/lib/cjs/label/stories/label-with-icons.story.js.map +1 -0
  116. package/lib/cjs/label/stories/label.stories.js +93 -0
  117. package/lib/cjs/label/stories/label.stories.js.map +1 -0
  118. package/lib/cjs/loading-bar/stories/index.js +36 -0
  119. package/lib/cjs/loading-bar/stories/index.js.map +1 -0
  120. package/lib/cjs/loading-bar/stories/loading-bar-default.story.js +30 -0
  121. package/lib/cjs/loading-bar/stories/loading-bar-default.story.js.map +1 -0
  122. package/lib/cjs/loading-bar/stories/loading-bar-with-rail.story.js +30 -0
  123. package/lib/cjs/loading-bar/stories/loading-bar-with-rail.story.js.map +1 -0
  124. package/lib/cjs/loading-bar/stories/loading-bar.stories.js +67 -0
  125. package/lib/cjs/loading-bar/stories/loading-bar.stories.js.map +1 -0
  126. package/lib/cjs/loading-spinner/stories/index.js +36 -0
  127. package/lib/cjs/loading-spinner/stories/index.js.map +1 -0
  128. package/lib/cjs/loading-spinner/stories/loading-spinner-default.story.js +30 -0
  129. package/lib/cjs/loading-spinner/stories/loading-spinner-default.story.js.map +1 -0
  130. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js +30 -0
  131. package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -0
  132. package/lib/cjs/loading-spinner/stories/loading-spinner.stories.js +67 -0
  133. package/lib/cjs/loading-spinner/stories/loading-spinner.stories.js.map +1 -0
  134. package/lib/cjs/segmented-control/stories/index.js +44 -0
  135. package/lib/cjs/segmented-control/stories/index.js.map +1 -0
  136. package/lib/cjs/segmented-control/stories/segmented-control-default.story.js +32 -0
  137. package/lib/cjs/segmented-control/stories/segmented-control-default.story.js.map +1 -0
  138. package/lib/cjs/segmented-control/stories/segmented-control-floating.story.js +32 -0
  139. package/lib/cjs/segmented-control/stories/segmented-control-floating.story.js.map +1 -0
  140. package/lib/cjs/segmented-control/stories/segmented-control-only-icons.story.js +33 -0
  141. package/lib/cjs/segmented-control/stories/segmented-control-only-icons.story.js.map +1 -0
  142. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js +33 -0
  143. package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js.map +1 -0
  144. package/lib/cjs/segmented-control/stories/segmented-control.stories.js +93 -0
  145. package/lib/cjs/segmented-control/stories/segmented-control.stories.js.map +1 -0
  146. package/lib/cjs/slider/stories/index.js +25 -5
  147. package/lib/cjs/slider/stories/index.js.map +1 -1
  148. package/lib/cjs/slider/stories/slider-custom-step-length.story.js +31 -0
  149. package/lib/cjs/slider/stories/slider-custom-step-length.story.js.map +1 -0
  150. package/lib/cjs/slider/stories/slider-default.story.js +31 -0
  151. package/lib/cjs/slider/stories/slider-default.story.js.map +1 -0
  152. package/lib/cjs/slider/stories/slider-disabled.story.js +31 -0
  153. package/lib/cjs/slider/stories/slider-disabled.story.js.map +1 -0
  154. package/lib/cjs/slider/stories/slider-range.story.js +2 -2
  155. package/lib/cjs/slider/stories/slider-range.story.js.map +1 -1
  156. package/lib/cjs/slider/stories/slider-show-steps.story.js +31 -0
  157. package/lib/cjs/slider/stories/slider-show-steps.story.js.map +1 -0
  158. package/lib/cjs/slider/stories/slider-show-values.story.js +31 -0
  159. package/lib/cjs/slider/stories/slider-show-values.story.js.map +1 -0
  160. package/lib/cjs/slider/stories/slider-single-controlled.story.js +49 -6
  161. package/lib/cjs/slider/stories/slider-single-controlled.story.js.map +1 -1
  162. package/lib/cjs/slider/stories/slider-single.story.js +2 -2
  163. package/lib/cjs/slider/stories/slider-single.story.js.map +1 -1
  164. package/lib/cjs/slider/stories/slider.stories.js +76 -7
  165. package/lib/cjs/slider/stories/slider.stories.js.map +1 -1
  166. package/lib/cjs/status-indicator/stories/index.js +32 -0
  167. package/lib/cjs/status-indicator/stories/index.js.map +1 -0
  168. package/lib/cjs/status-indicator/stories/status-indicator-types.story.js +30 -0
  169. package/lib/cjs/status-indicator/stories/status-indicator-types.story.js.map +1 -0
  170. package/lib/cjs/status-indicator/stories/status-indicator.stories.js +54 -0
  171. package/lib/cjs/status-indicator/stories/status-indicator.stories.js.map +1 -0
  172. package/lib/cjs/toast/Toast.js +5 -1
  173. package/lib/cjs/toast/Toast.js.map +1 -1
  174. package/lib/cjs/toast/ToastControlled.js +87 -0
  175. package/lib/cjs/toast/ToastControlled.js.map +1 -0
  176. package/lib/cjs/toast/index.js +1 -0
  177. package/lib/cjs/toast/index.js.map +1 -1
  178. package/lib/cjs/toast/stories/index.js +60 -0
  179. package/lib/cjs/toast/stories/index.js.map +1 -0
  180. package/lib/cjs/toast/stories/toast-action-story.js +38 -0
  181. package/lib/cjs/toast/stories/toast-action-story.js.map +1 -0
  182. package/lib/cjs/toast/stories/toast-closeable-story.js +37 -0
  183. package/lib/cjs/toast/stories/toast-closeable-story.js.map +1 -0
  184. package/lib/cjs/toast/stories/toast-controlled-story.js +44 -0
  185. package/lib/cjs/toast/stories/toast-controlled-story.js.map +1 -0
  186. package/lib/cjs/toast/stories/toast-custom-story.js +32 -0
  187. package/lib/cjs/toast/stories/toast-custom-story.js.map +1 -0
  188. package/lib/cjs/toast/stories/toast-danger-story.js +32 -0
  189. package/lib/cjs/toast/stories/toast-danger-story.js.map +1 -0
  190. package/lib/cjs/toast/stories/toast-neutral-story.js +32 -0
  191. package/lib/cjs/toast/stories/toast-neutral-story.js.map +1 -0
  192. package/lib/cjs/toast/stories/toast-progress-bar.js +49 -0
  193. package/lib/cjs/toast/stories/toast-progress-bar.js.map +1 -0
  194. package/lib/cjs/toast/stories/toast-success-story.js +32 -0
  195. package/lib/cjs/toast/stories/toast-success-story.js.map +1 -0
  196. package/lib/cjs/toast/stories/toast.stories.js +137 -0
  197. package/lib/cjs/toast/stories/toast.stories.js.map +1 -0
  198. package/lib/esm/avatar/stories/avatar-shapes.story.js +1 -1
  199. package/lib/esm/avatar/stories/avatar-shapes.story.js.map +1 -1
  200. package/lib/esm/avatar/stories/avatar-sizes.story.js +1 -1
  201. package/lib/esm/avatar/stories/avatar-sizes.story.js.map +1 -1
  202. package/lib/esm/avatar/stories/avatar-statuses.story.js +1 -1
  203. package/lib/esm/avatar/stories/avatar-statuses.story.js.map +1 -1
  204. package/lib/esm/avatar/stories/avatar-types.story.js +1 -1
  205. package/lib/esm/avatar/stories/avatar-types.story.js.map +1 -1
  206. package/lib/esm/avatar/stories/avatar.stories.js +11 -0
  207. package/lib/esm/avatar/stories/avatar.stories.js.map +1 -1
  208. package/lib/esm/callout/stories/callout-default.story.js +28 -0
  209. package/lib/esm/callout/stories/callout-default.story.js.map +1 -0
  210. package/lib/esm/callout/stories/callout-full.story.js +28 -0
  211. package/lib/esm/callout/stories/callout-full.story.js.map +1 -0
  212. package/lib/esm/callout/stories/callout-types.story.js +28 -0
  213. package/lib/esm/callout/stories/callout-types.story.js.map +1 -0
  214. package/lib/esm/callout/stories/callout-with-children.story.js +28 -0
  215. package/lib/esm/callout/stories/callout-with-children.story.js.map +1 -0
  216. package/lib/esm/callout/stories/callout-without-header.story.js +28 -0
  217. package/lib/esm/callout/stories/callout-without-header.story.js.map +1 -0
  218. package/lib/esm/callout/stories/callout.stories.js +98 -0
  219. package/lib/esm/callout/stories/callout.stories.js.map +1 -0
  220. package/lib/esm/callout/stories/index.js +37 -0
  221. package/lib/esm/callout/stories/index.js.map +1 -0
  222. package/lib/esm/checkbox/stories/checkbox-checkedByDefault.story.js +28 -0
  223. package/lib/esm/checkbox/stories/checkbox-checkedByDefault.story.js.map +1 -0
  224. package/lib/esm/checkbox/stories/checkbox-default.story.js +28 -0
  225. package/lib/esm/checkbox/stories/checkbox-default.story.js.map +1 -0
  226. package/lib/esm/checkbox/stories/checkbox-disabled.story.js +28 -0
  227. package/lib/esm/checkbox/stories/checkbox-disabled.story.js.map +1 -0
  228. package/lib/esm/checkbox/stories/checkbox-full.story.js +37 -0
  229. package/lib/esm/checkbox/stories/checkbox-full.story.js.map +1 -0
  230. package/lib/esm/checkbox/stories/checkbox-hasLabelBefore.story.js +28 -0
  231. package/lib/esm/checkbox/stories/checkbox-hasLabelBefore.story.js.map +1 -0
  232. package/lib/esm/checkbox/stories/checkbox-indeterminate.story.js +31 -0
  233. package/lib/esm/checkbox/stories/checkbox-indeterminate.story.js.map +1 -0
  234. package/lib/esm/checkbox/stories/checkbox-no-label.story.js +28 -0
  235. package/lib/esm/checkbox/stories/checkbox-no-label.story.js.map +1 -0
  236. package/lib/esm/checkbox/stories/checkbox.stories.js +134 -0
  237. package/lib/esm/checkbox/stories/checkbox.stories.js.map +1 -0
  238. package/lib/esm/checkbox/stories/index.js +43 -0
  239. package/lib/esm/checkbox/stories/index.js.map +1 -0
  240. package/lib/esm/context-menu/ContextMenu.js +1 -1
  241. package/lib/esm/context-menu/stories/context-menu-custom-items.story.js +31 -0
  242. package/lib/esm/context-menu/stories/context-menu-custom-items.story.js.map +1 -0
  243. package/lib/esm/context-menu/stories/context-menu-default.story.js +43 -0
  244. package/lib/esm/context-menu/stories/context-menu-default.story.js.map +1 -0
  245. package/lib/esm/context-menu/stories/context-menu-in-modal.story.js +36 -0
  246. package/lib/esm/context-menu/stories/context-menu-in-modal.story.js.map +1 -0
  247. package/lib/esm/context-menu/stories/context-menu-in-popover.story.js +32 -0
  248. package/lib/esm/context-menu/stories/context-menu-in-popover.story.js.map +1 -0
  249. package/lib/esm/context-menu/stories/context-menu-nested.story.js +32 -0
  250. package/lib/esm/context-menu/stories/context-menu-nested.story.js.map +1 -0
  251. package/lib/esm/context-menu/stories/context-menu-placements.story.js +43 -0
  252. package/lib/esm/context-menu/stories/context-menu-placements.story.js.map +1 -0
  253. package/lib/esm/context-menu/stories/context-menu-with-disabled-item.story.js +34 -0
  254. package/lib/esm/context-menu/stories/context-menu-with-disabled-item.story.js.map +1 -0
  255. package/lib/esm/context-menu/stories/context-menu-with-divider.story.js +34 -0
  256. package/lib/esm/context-menu/stories/context-menu-with-divider.story.js.map +1 -0
  257. package/lib/esm/context-menu/stories/context-menu-with-header.story.js +34 -0
  258. package/lib/esm/context-menu/stories/context-menu-with-header.story.js.map +1 -0
  259. package/lib/esm/context-menu/stories/context-menu-with-icon.story.js +32 -0
  260. package/lib/esm/context-menu/stories/context-menu-with-icon.story.js.map +1 -0
  261. package/lib/esm/context-menu/stories/context-menu.stories.js +167 -0
  262. package/lib/esm/context-menu/stories/context-menu.stories.js.map +1 -0
  263. package/lib/esm/context-menu/stories/index.js +52 -0
  264. package/lib/esm/context-menu/stories/index.js.map +1 -0
  265. package/lib/esm/drawer/stories/drawer-full.story.js +34 -0
  266. package/lib/esm/drawer/stories/drawer-full.story.js.map +1 -0
  267. package/lib/esm/drawer/stories/drawer-not-closeable.story.js +31 -0
  268. package/lib/esm/drawer/stories/drawer-not-closeable.story.js.map +1 -0
  269. package/lib/esm/drawer/stories/drawer-overlay.story.js +31 -0
  270. package/lib/esm/drawer/stories/drawer-overlay.story.js.map +1 -0
  271. package/lib/esm/drawer/stories/drawer-portaled.story.js +36 -0
  272. package/lib/esm/drawer/stories/drawer-portaled.story.js.map +1 -0
  273. package/lib/esm/drawer/stories/drawer-push.story.js +30 -0
  274. package/lib/esm/drawer/stories/drawer-push.story.js.map +1 -0
  275. package/lib/esm/drawer/stories/drawer-resizable.story.js +34 -0
  276. package/lib/esm/drawer/stories/drawer-resizable.story.js.map +1 -0
  277. package/lib/esm/drawer/stories/drawer-right-side.story.js +31 -0
  278. package/lib/esm/drawer/stories/drawer-right-side.story.js.map +1 -0
  279. package/lib/esm/drawer/stories/drawer-scrollable.story.js +31 -0
  280. package/lib/esm/drawer/stories/drawer-scrollable.story.js.map +1 -0
  281. package/lib/esm/drawer/stories/drawer.stories.js +147 -0
  282. package/lib/esm/drawer/stories/drawer.stories.js.map +1 -0
  283. package/lib/esm/drawer/stories/index.js +46 -0
  284. package/lib/esm/drawer/stories/index.js.map +1 -0
  285. package/lib/esm/graph-label/stories/graph-label-color.story.js +28 -0
  286. package/lib/esm/graph-label/stories/graph-label-color.story.js.map +1 -0
  287. package/lib/esm/graph-label/stories/graph-label-disabled.story.js +28 -0
  288. package/lib/esm/graph-label/stories/graph-label-disabled.story.js.map +1 -0
  289. package/lib/esm/graph-label/stories/graph-label-fluid.story.js +28 -0
  290. package/lib/esm/graph-label/stories/graph-label-fluid.story.js.map +1 -0
  291. package/lib/esm/graph-label/stories/graph-label-non-interactive.story.js +28 -0
  292. package/lib/esm/graph-label/stories/graph-label-non-interactive.story.js.map +1 -0
  293. package/lib/esm/graph-label/stories/graph-label-selected.story.js +28 -0
  294. package/lib/esm/graph-label/stories/graph-label-selected.story.js.map +1 -0
  295. package/lib/esm/graph-label/stories/graph-label-sizes.story.js +28 -0
  296. package/lib/esm/graph-label/stories/graph-label-sizes.story.js.map +1 -0
  297. package/lib/esm/graph-label/stories/graph-label-types.story.js +28 -0
  298. package/lib/esm/graph-label/stories/graph-label-types.story.js.map +1 -0
  299. package/lib/esm/graph-label/stories/graph-label.stories.js +129 -0
  300. package/lib/esm/graph-label/stories/graph-label.stories.js.map +1 -0
  301. package/lib/esm/graph-label/stories/index.js +43 -0
  302. package/lib/esm/graph-label/stories/index.js.map +1 -0
  303. package/lib/esm/label/stories/index.js +34 -0
  304. package/lib/esm/label/stories/index.js.map +1 -0
  305. package/lib/esm/label/stories/label-colors.story.js +28 -0
  306. package/lib/esm/label/stories/label-colors.story.js.map +1 -0
  307. package/lib/esm/label/stories/label-default.story.js +28 -0
  308. package/lib/esm/label/stories/label-default.story.js.map +1 -0
  309. package/lib/esm/label/stories/label-fills.story.js +28 -0
  310. package/lib/esm/label/stories/label-fills.story.js.map +1 -0
  311. package/lib/esm/label/stories/label-with-icons.story.js +28 -0
  312. package/lib/esm/label/stories/label-with-icons.story.js.map +1 -0
  313. package/lib/esm/label/stories/label.stories.js +90 -0
  314. package/lib/esm/label/stories/label.stories.js.map +1 -0
  315. package/lib/esm/loading-bar/stories/index.js +28 -0
  316. package/lib/esm/loading-bar/stories/index.js.map +1 -0
  317. package/lib/esm/loading-bar/stories/loading-bar-default.story.js +28 -0
  318. package/lib/esm/loading-bar/stories/loading-bar-default.story.js.map +1 -0
  319. package/lib/esm/loading-bar/stories/loading-bar-with-rail.story.js +28 -0
  320. package/lib/esm/loading-bar/stories/loading-bar-with-rail.story.js.map +1 -0
  321. package/lib/esm/loading-bar/stories/loading-bar.stories.js +64 -0
  322. package/lib/esm/loading-bar/stories/loading-bar.stories.js.map +1 -0
  323. package/lib/esm/loading-spinner/stories/index.js +28 -0
  324. package/lib/esm/loading-spinner/stories/index.js.map +1 -0
  325. package/lib/esm/loading-spinner/stories/loading-spinner-default.story.js +28 -0
  326. package/lib/esm/loading-spinner/stories/loading-spinner-default.story.js.map +1 -0
  327. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js +28 -0
  328. package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -0
  329. package/lib/esm/loading-spinner/stories/loading-spinner.stories.js +64 -0
  330. package/lib/esm/loading-spinner/stories/loading-spinner.stories.js.map +1 -0
  331. package/lib/esm/segmented-control/stories/index.js +34 -0
  332. package/lib/esm/segmented-control/stories/index.js.map +1 -0
  333. package/lib/esm/segmented-control/stories/segmented-control-default.story.js +30 -0
  334. package/lib/esm/segmented-control/stories/segmented-control-default.story.js.map +1 -0
  335. package/lib/esm/segmented-control/stories/segmented-control-floating.story.js +30 -0
  336. package/lib/esm/segmented-control/stories/segmented-control-floating.story.js.map +1 -0
  337. package/lib/esm/segmented-control/stories/segmented-control-only-icons.story.js +31 -0
  338. package/lib/esm/segmented-control/stories/segmented-control-only-icons.story.js.map +1 -0
  339. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js +31 -0
  340. package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js.map +1 -0
  341. package/lib/esm/segmented-control/stories/segmented-control.stories.js +90 -0
  342. package/lib/esm/segmented-control/stories/segmented-control.stories.js.map +1 -0
  343. package/lib/esm/slider/stories/index.js +15 -0
  344. package/lib/esm/slider/stories/index.js.map +1 -1
  345. package/lib/esm/slider/stories/slider-custom-step-length.story.js +29 -0
  346. package/lib/esm/slider/stories/slider-custom-step-length.story.js.map +1 -0
  347. package/lib/esm/slider/stories/slider-default.story.js +29 -0
  348. package/lib/esm/slider/stories/slider-default.story.js.map +1 -0
  349. package/lib/esm/slider/stories/slider-disabled.story.js +29 -0
  350. package/lib/esm/slider/stories/slider-disabled.story.js.map +1 -0
  351. package/lib/esm/slider/stories/slider-range.story.js +1 -1
  352. package/lib/esm/slider/stories/slider-range.story.js.map +1 -1
  353. package/lib/esm/slider/stories/slider-show-steps.story.js +29 -0
  354. package/lib/esm/slider/stories/slider-show-steps.story.js.map +1 -0
  355. package/lib/esm/slider/stories/slider-show-values.story.js +29 -0
  356. package/lib/esm/slider/stories/slider-show-values.story.js.map +1 -0
  357. package/lib/esm/slider/stories/slider-single-controlled.story.js +50 -7
  358. package/lib/esm/slider/stories/slider-single-controlled.story.js.map +1 -1
  359. package/lib/esm/slider/stories/slider-single.story.js +1 -1
  360. package/lib/esm/slider/stories/slider-single.story.js.map +1 -1
  361. package/lib/esm/slider/stories/slider.stories.js +73 -4
  362. package/lib/esm/slider/stories/slider.stories.js.map +1 -1
  363. package/lib/esm/status-indicator/stories/index.js +25 -0
  364. package/lib/esm/status-indicator/stories/index.js.map +1 -0
  365. package/lib/esm/status-indicator/stories/status-indicator-types.story.js +28 -0
  366. package/lib/esm/status-indicator/stories/status-indicator-types.story.js.map +1 -0
  367. package/lib/esm/status-indicator/stories/status-indicator.stories.js +51 -0
  368. package/lib/esm/status-indicator/stories/status-indicator.stories.js.map +1 -0
  369. package/lib/esm/toast/Toast.js +5 -1
  370. package/lib/esm/toast/Toast.js.map +1 -1
  371. package/lib/esm/toast/ToastControlled.js +83 -0
  372. package/lib/esm/toast/ToastControlled.js.map +1 -0
  373. package/lib/esm/toast/index.js +1 -0
  374. package/lib/esm/toast/index.js.map +1 -1
  375. package/lib/esm/toast/stories/index.js +46 -0
  376. package/lib/esm/toast/stories/index.js.map +1 -0
  377. package/lib/esm/toast/stories/toast-action-story.js +36 -0
  378. package/lib/esm/toast/stories/toast-action-story.js.map +1 -0
  379. package/lib/esm/toast/stories/toast-closeable-story.js +35 -0
  380. package/lib/esm/toast/stories/toast-closeable-story.js.map +1 -0
  381. package/lib/esm/toast/stories/toast-controlled-story.js +42 -0
  382. package/lib/esm/toast/stories/toast-controlled-story.js.map +1 -0
  383. package/lib/esm/toast/stories/toast-custom-story.js +30 -0
  384. package/lib/esm/toast/stories/toast-custom-story.js.map +1 -0
  385. package/lib/esm/toast/stories/toast-danger-story.js +30 -0
  386. package/lib/esm/toast/stories/toast-danger-story.js.map +1 -0
  387. package/lib/esm/toast/stories/toast-neutral-story.js +30 -0
  388. package/lib/esm/toast/stories/toast-neutral-story.js.map +1 -0
  389. package/lib/esm/toast/stories/toast-progress-bar.js +47 -0
  390. package/lib/esm/toast/stories/toast-progress-bar.js.map +1 -0
  391. package/lib/esm/toast/stories/toast-success-story.js +30 -0
  392. package/lib/esm/toast/stories/toast-success-story.js.map +1 -0
  393. package/lib/esm/toast/stories/toast.stories.js +134 -0
  394. package/lib/esm/toast/stories/toast.stories.js.map +1 -0
  395. package/lib/types/avatar/stories/avatar.stories.d.ts +3 -12
  396. package/lib/types/callout/stories/callout-default.story.d.ts +23 -0
  397. package/lib/types/callout/stories/callout-full.story.d.ts +23 -0
  398. package/lib/types/callout/stories/callout-types.story.d.ts +23 -0
  399. package/lib/types/callout/stories/callout-with-children.story.d.ts +23 -0
  400. package/lib/types/callout/stories/callout-without-header.story.d.ts +23 -0
  401. package/lib/types/callout/stories/callout.stories.d.ts +39 -0
  402. package/lib/types/callout/stories/index.d.ts +30 -0
  403. package/lib/types/checkbox/stories/checkbox-checkedByDefault.story.d.ts +23 -0
  404. package/lib/types/checkbox/stories/checkbox-default.story.d.ts +23 -0
  405. package/lib/types/checkbox/stories/checkbox-disabled.story.d.ts +23 -0
  406. package/lib/types/checkbox/stories/checkbox-full.story.d.ts +23 -0
  407. package/lib/types/checkbox/stories/checkbox-hasLabelBefore.story.d.ts +23 -0
  408. package/lib/types/checkbox/stories/checkbox-indeterminate.story.d.ts +23 -0
  409. package/lib/types/checkbox/stories/checkbox-no-label.story.d.ts +23 -0
  410. package/lib/types/checkbox/stories/checkbox.stories.d.ts +32 -0
  411. package/lib/types/checkbox/stories/index.d.ts +34 -0
  412. package/lib/types/context-menu/stories/context-menu-custom-items.story.d.ts +23 -0
  413. package/lib/types/context-menu/stories/context-menu-default.story.d.ts +23 -0
  414. package/lib/types/context-menu/stories/context-menu-in-modal.story.d.ts +23 -0
  415. package/lib/types/context-menu/stories/context-menu-in-popover.story.d.ts +23 -0
  416. package/lib/types/context-menu/stories/context-menu-nested.story.d.ts +23 -0
  417. package/lib/types/context-menu/stories/context-menu-placements.story.d.ts +23 -0
  418. package/lib/types/context-menu/stories/context-menu-with-disabled-item.story.d.ts +23 -0
  419. package/lib/types/context-menu/stories/context-menu-with-divider.story.d.ts +23 -0
  420. package/lib/types/context-menu/stories/context-menu-with-header.story.d.ts +23 -0
  421. package/lib/types/context-menu/stories/context-menu-with-icon.story.d.ts +23 -0
  422. package/lib/types/context-menu/stories/context-menu.stories.d.ts +34 -0
  423. package/lib/types/context-menu/stories/index.d.ts +40 -0
  424. package/lib/types/drawer/stories/drawer-full.story.d.ts +23 -0
  425. package/lib/types/drawer/stories/drawer-not-closeable.story.d.ts +23 -0
  426. package/lib/types/drawer/stories/drawer-overlay.story.d.ts +23 -0
  427. package/lib/types/drawer/stories/drawer-portaled.story.d.ts +23 -0
  428. package/lib/types/drawer/stories/drawer-push.story.d.ts +22 -0
  429. package/lib/types/drawer/stories/drawer-resizable.story.d.ts +23 -0
  430. package/lib/types/drawer/stories/drawer-right-side.story.d.ts +23 -0
  431. package/lib/types/drawer/stories/drawer-scrollable.story.d.ts +23 -0
  432. package/lib/types/drawer/stories/drawer.stories.d.ts +62 -0
  433. package/lib/types/drawer/stories/index.d.ts +36 -0
  434. package/lib/types/graph-label/stories/graph-label-color.story.d.ts +23 -0
  435. package/lib/types/graph-label/stories/graph-label-disabled.story.d.ts +23 -0
  436. package/lib/types/graph-label/stories/graph-label-fluid.story.d.ts +23 -0
  437. package/lib/types/graph-label/stories/graph-label-non-interactive.story.d.ts +23 -0
  438. package/lib/types/graph-label/stories/graph-label-selected.story.d.ts +23 -0
  439. package/lib/types/graph-label/stories/graph-label-sizes.story.d.ts +23 -0
  440. package/lib/types/graph-label/stories/graph-label-types.story.d.ts +23 -0
  441. package/lib/types/graph-label/stories/graph-label.stories.d.ts +32 -0
  442. package/lib/types/graph-label/stories/index.d.ts +34 -0
  443. package/lib/types/label/stories/index.d.ts +28 -0
  444. package/lib/types/label/stories/label-colors.story.d.ts +23 -0
  445. package/lib/types/label/stories/label-default.story.d.ts +23 -0
  446. package/lib/types/label/stories/label-fills.story.d.ts +23 -0
  447. package/lib/types/label/stories/label-with-icons.story.d.ts +23 -0
  448. package/lib/types/label/stories/label.stories.d.ts +29 -0
  449. package/lib/types/loading-bar/stories/index.d.ts +24 -0
  450. package/lib/types/loading-bar/stories/loading-bar-default.story.d.ts +23 -0
  451. package/lib/types/loading-bar/stories/loading-bar-with-rail.story.d.ts +23 -0
  452. package/lib/types/loading-bar/stories/loading-bar.stories.d.ts +27 -0
  453. package/lib/types/loading-spinner/stories/index.d.ts +24 -0
  454. package/lib/types/loading-spinner/stories/loading-spinner-default.story.d.ts +23 -0
  455. package/lib/types/loading-spinner/stories/loading-spinner-sizes.story.d.ts +23 -0
  456. package/lib/types/loading-spinner/stories/loading-spinner.stories.d.ts +27 -0
  457. package/lib/types/segmented-control/stories/index.d.ts +28 -0
  458. package/lib/types/segmented-control/stories/segmented-control-default.story.d.ts +23 -0
  459. package/lib/types/segmented-control/stories/segmented-control-floating.story.d.ts +23 -0
  460. package/lib/types/segmented-control/stories/segmented-control-only-icons.story.d.ts +23 -0
  461. package/lib/types/segmented-control/stories/segmented-control-sizes.story.d.ts +23 -0
  462. package/lib/types/segmented-control/stories/segmented-control.stories.d.ts +29 -0
  463. package/lib/types/slider/stories/index.d.ts +10 -0
  464. package/lib/types/slider/stories/slider-custom-step-length.story.d.ts +23 -0
  465. package/lib/types/slider/stories/slider-default.story.d.ts +23 -0
  466. package/lib/types/slider/stories/slider-disabled.story.d.ts +23 -0
  467. package/lib/types/slider/stories/slider-show-steps.story.d.ts +23 -0
  468. package/lib/types/slider/stories/slider-show-values.story.d.ts +23 -0
  469. package/lib/types/slider/stories/slider-single.story.d.ts +1 -0
  470. package/lib/types/slider/stories/slider.stories.d.ts +7 -1
  471. package/lib/types/status-indicator/stories/index.d.ts +22 -0
  472. package/lib/types/status-indicator/stories/status-indicator-types.story.d.ts +23 -0
  473. package/lib/types/status-indicator/stories/status-indicator.stories.d.ts +26 -0
  474. package/lib/types/toast/Toast.d.ts +9 -1
  475. package/lib/types/toast/ToastControlled.d.ts +40 -0
  476. package/lib/types/toast/index.d.ts +1 -0
  477. package/lib/types/toast/stories/index.d.ts +36 -0
  478. package/lib/types/toast/stories/toast-action-story.d.ts +23 -0
  479. package/lib/types/toast/stories/toast-closeable-story.d.ts +23 -0
  480. package/lib/types/toast/stories/toast-controlled-story.d.ts +23 -0
  481. package/lib/types/toast/stories/toast-custom-story.d.ts +23 -0
  482. package/lib/types/toast/stories/toast-danger-story.d.ts +23 -0
  483. package/lib/types/toast/stories/toast-neutral-story.d.ts +23 -0
  484. package/lib/types/toast/stories/toast-progress-bar.d.ts +23 -0
  485. package/lib/types/toast/stories/toast-success-story.d.ts +23 -0
  486. package/lib/types/toast/stories/toast.stories.d.ts +38 -0
  487. package/package.json +4 -4
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const anchorEl = (0, react_2.useRef)(null);
29
+ const [isOpen, setIsOpen] = (0, react_2.useState)(false);
30
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu, { isOpen: isOpen, anchorRef: anchorEl, onClose: (event, data) => {
31
+ console.info('onClose callback', event, data);
32
+ setIsOpen(false);
33
+ }, children: (0, jsx_runtime_1.jsxs)(react_1.Menu.Items, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 1", description: "Action 1 is disabled", isDisabled: true }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 2", onClick: () => alert('Action2') })] }) }), (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsOpen(true), ref: anchorEl, children: "Open Context Menu" })] }));
34
+ };
35
+ exports.default = Component;
36
+ //# sourceMappingURL=context-menu-with-disabled-item.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu-with-disabled-item.story.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu-with-disabled-item.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgD;AAChD,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,IAAA,cAAM,EAA2B,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,6DACE,uBAAC,YAAI,IACH,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;oBACvB,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;oBAC9C,SAAS,CAAC,KAAK,CAAC,CAAC;gBACnB,CAAC,YAED,wBAAC,YAAI,CAAC,KAAK,eACT,uBAAC,YAAI,CAAC,IAAI,IACR,KAAK,EAAC,UAAU,EAChB,WAAW,EAAC,sBAAsB,EAClC,UAAU,EAAE,IAAI,GAChB,EACF,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAAI,IACpD,GACR,EACP,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,kCAE5C,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const anchorEl = (0, react_2.useRef)(null);
29
+ const [isOpen, setIsOpen] = (0, react_2.useState)(false);
30
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu, { isOpen: isOpen, anchorRef: anchorEl, onClose: (event, data) => {
31
+ console.info('onClose callback', event, data);
32
+ setIsOpen(false);
33
+ }, children: (0, jsx_runtime_1.jsxs)(react_1.Menu.Items, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 1" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Divider, {}), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 2" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Divider, {}), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 3" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Divider, {}), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 4" })] }) }), (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsOpen(true), ref: anchorEl, children: "Open Context Menu" })] }));
34
+ };
35
+ exports.default = Component;
36
+ //# sourceMappingURL=context-menu-with-divider.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu-with-divider.story.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu-with-divider.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgD;AAChD,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,IAAA,cAAM,EAA2B,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,6DACE,uBAAC,YAAI,IACH,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;oBACvB,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;oBAC9C,SAAS,CAAC,KAAK,CAAC,CAAC;gBACnB,CAAC,YAED,wBAAC,YAAI,CAAC,KAAK,eACT,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,uBAAC,YAAI,CAAC,OAAO,KAAG,EAChB,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,uBAAC,YAAI,CAAC,OAAO,KAAG,EAChB,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,uBAAC,YAAI,CAAC,OAAO,KAAG,EAChB,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,IACnB,GACR,EACP,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,kCAE5C,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const anchorEl = (0, react_2.useRef)(null);
29
+ const [isOpen, setIsOpen] = (0, react_2.useState)(false);
30
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu, { isOpen: isOpen, anchorRef: anchorEl, onClose: (event, data) => {
31
+ console.info('onClose callback', event, data);
32
+ setIsOpen(false);
33
+ }, children: (0, jsx_runtime_1.jsxs)(react_1.Menu.Items, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Header, { title: "Header", description: "Description of header/context" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Subheader, { title: "Subheader 1" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 1", onClick: () => alert('Action1') }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 2", onClick: () => alert('Action2') }), (0, jsx_runtime_1.jsx)(react_1.Menu.Divider, {}), (0, jsx_runtime_1.jsx)(react_1.Menu.Subheader, { title: "Subheader 2" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 3", description: "Action 3 is disabled", isDisabled: true, onClick: () => alert('Action3') }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 4", description: "Action 4 is awesome", onClick: () => alert('Action4') })] }) }), (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsOpen(true), ref: anchorEl, children: "Open Context Menu" })] }));
34
+ };
35
+ exports.default = Component;
36
+ //# sourceMappingURL=context-menu-with-header.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu-with-header.story.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu-with-header.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgD;AAChD,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,IAAA,cAAM,EAA2B,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,6DACE,uBAAC,YAAI,IACH,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;oBACvB,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;oBAC9C,SAAS,CAAC,KAAK,CAAC,CAAC;gBACnB,CAAC,YAED,wBAAC,YAAI,CAAC,KAAK,eACT,uBAAC,YAAI,CAAC,MAAM,IACV,KAAK,EAAC,QAAQ,EACd,WAAW,EAAC,+BAA+B,GAC3C,EACF,uBAAC,YAAI,CAAC,SAAS,IAAC,KAAK,EAAC,aAAa,GAAG,EACtC,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAAI,EAC/D,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAAI,EAC/D,uBAAC,YAAI,CAAC,OAAO,KAAG,EAChB,uBAAC,YAAI,CAAC,SAAS,IAAC,KAAK,EAAC,aAAa,GAAG,EACtC,uBAAC,YAAI,CAAC,IAAI,IACR,KAAK,EAAC,UAAU,EAChB,WAAW,EAAC,sBAAsB,EAClC,UAAU,EAAE,IAAI,EAChB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAC/B,EACF,uBAAC,YAAI,CAAC,IAAI,IACR,KAAK,EAAC,UAAU,EAChB,WAAW,EAAC,qBAAqB,EACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAC/B,IACS,GACR,EACP,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,kCAE5C,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const icons_1 = require("@neo4j-ndl/react/icons");
27
+ const react_2 = require("react");
28
+ const Component = () => {
29
+ const anchorEl = (0, react_2.useRef)(null);
30
+ const [isOpen, setIsOpen] = (0, react_2.useState)(false);
31
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu, { isOpen: isOpen, anchorRef: anchorEl, onClose: () => setIsOpen(false), children: (0, jsx_runtime_1.jsxs)(react_1.Menu.Items, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { icon: (0, jsx_runtime_1.jsx)(icons_1.PlusIconOutline, {}), title: "Action 1", onClick: () => alert('Action1') }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { icon: (0, jsx_runtime_1.jsx)(icons_1.PlusIconOutline, { className: "n-size-token-8" }), title: "Action 2", onClick: () => alert('Action2') }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { icon: (0, jsx_runtime_1.jsx)(icons_1.PlusIconOutline, {}), title: "Action 3", description: "Action 3 is disabled", isDisabled: true, onClick: () => alert('Action3') }), (0, jsx_runtime_1.jsx)(react_1.Menu, { title: "Action 3.1", description: "Action with sub menu", icon: (0, jsx_runtime_1.jsx)(icons_1.PlusIconOutline, {}), children: (0, jsx_runtime_1.jsxs)(react_1.Menu.Items, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Text" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Video" }), (0, jsx_runtime_1.jsx)(react_1.Menu, { title: "Image", icon: (0, jsx_runtime_1.jsx)(icons_1.PhotoIconOutline, {}), children: (0, jsx_runtime_1.jsxs)(react_1.Menu.Items, { children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: ".png" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: ".jpg" })] }) }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Audio" })] }) }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { icon: (0, jsx_runtime_1.jsx)(icons_1.PlusIconOutline, {}), title: "Action 4", description: "Action 4 is awesome", onClick: () => alert('Action4') })] }) }), (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsOpen(true), ref: anchorEl, children: "Open Context Menu" })] }));
32
+ };
33
+ exports.default = Component;
34
+ //# sourceMappingURL=context-menu-with-icon.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu-with-icon.story.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu-with-icon.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgD;AAChD,kDAA2E;AAC3E,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,IAAA,cAAM,EAA2B,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,6DACE,uBAAC,YAAI,IACH,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,YAE/B,wBAAC,YAAI,CAAC,KAAK,eACT,uBAAC,YAAI,CAAC,IAAI,IACR,IAAI,EAAE,uBAAC,uBAAe,KAAG,EACzB,KAAK,EAAC,UAAU,EAChB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAC/B,EACF,uBAAC,YAAI,CAAC,IAAI,IACR,IAAI,EAAE,uBAAC,uBAAe,IAAC,SAAS,EAAC,gBAAgB,GAAG,EACpD,KAAK,EAAC,UAAU,EAChB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAC/B,EACF,uBAAC,YAAI,CAAC,IAAI,IACR,IAAI,EAAE,uBAAC,uBAAe,KAAG,EACzB,KAAK,EAAC,UAAU,EAChB,WAAW,EAAC,sBAAsB,EAClC,UAAU,EAAE,IAAI,EAChB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAC/B,EACF,uBAAC,YAAI,IACH,KAAK,EAAC,YAAY,EAClB,WAAW,EAAC,sBAAsB,EAClC,IAAI,EAAE,uBAAC,uBAAe,KAAG,YAEzB,wBAAC,YAAI,CAAC,KAAK,eACT,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,GAAG,EAC1B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO,GAAG,EAC3B,uBAAC,YAAI,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,uBAAC,wBAAgB,KAAG,YAC5C,wBAAC,YAAI,CAAC,KAAK,eACT,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,GAAG,EAC1B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,GAAG,IACf,GACR,EACP,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO,GAAG,IAChB,GACR,EACP,uBAAC,YAAI,CAAC,IAAI,IACR,IAAI,EAAE,uBAAC,uBAAe,KAAG,EACzB,KAAK,EAAC,UAAU,EAChB,WAAW,EAAC,qBAAqB,EACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAC/B,IACS,GACR,EACP,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,kCAE5C,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Placements = exports.InModal = exports.InPopover = exports.CustomItems = exports.WithDisabledItem = exports.WithIcon = exports.WithHeader = exports.WithDivider = exports.Nested = exports.Default = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ /**
6
+ *
7
+ * Copyright (c) "Neo4j"
8
+ * Neo4j Sweden AB [http://neo4j.com]
9
+ *
10
+ * This file is part of Neo4j.
11
+ *
12
+ * Neo4j is free software: you can redistribute it and/or modify
13
+ * it under the terms of the GNU General Public License as published by
14
+ * the Free Software Foundation, either version 3 of the License, or
15
+ * (at your option) any later version.
16
+ *
17
+ * This program is distributed in the hope that it will be useful,
18
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ * GNU General Public License for more details.
21
+ *
22
+ * You should have received a copy of the GNU General Public License
23
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
24
+ */
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const index_1 = require("./index");
27
+ const componentMeta = {
28
+ title: 'Components/ContextMenu',
29
+ id: 'components-context-menu',
30
+ component: react_1.Menu,
31
+ tags: ['docsPage'],
32
+ parameters: {
33
+ controls: { disable: true },
34
+ },
35
+ decorators: [
36
+ (Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-gap-token-4 n-flex n-flex-row n-justify-center n-items-center n-h-[200px]", children: (0, jsx_runtime_1.jsx)(Story, {}) })),
37
+ ],
38
+ };
39
+ exports.default = componentMeta;
40
+ exports.Default = {
41
+ args: {},
42
+ parameters: {
43
+ docs: {
44
+ source: {
45
+ code: index_1.ContextMenuDefaultSrc,
46
+ language: 'tsx',
47
+ type: 'code',
48
+ },
49
+ },
50
+ },
51
+ render: index_1.ContextMenuDefault,
52
+ };
53
+ exports.Nested = {
54
+ args: {},
55
+ parameters: {
56
+ docs: {
57
+ source: {
58
+ code: index_1.ContextMenuNestedSrc,
59
+ language: 'tsx',
60
+ type: 'code',
61
+ },
62
+ },
63
+ },
64
+ render: index_1.ContextMenuNested,
65
+ };
66
+ exports.WithDivider = {
67
+ args: {},
68
+ parameters: {
69
+ docs: {
70
+ source: {
71
+ code: index_1.ContextMenuDividerSrc,
72
+ language: 'tsx',
73
+ type: 'code',
74
+ },
75
+ },
76
+ },
77
+ render: index_1.ContextMenuDivider,
78
+ };
79
+ exports.WithHeader = {
80
+ args: {},
81
+ parameters: {
82
+ docs: {
83
+ source: {
84
+ code: index_1.ContextMenuWithHeaderSrc,
85
+ language: 'tsx',
86
+ type: 'code',
87
+ },
88
+ },
89
+ },
90
+ render: index_1.ContextMenuWithHeader,
91
+ };
92
+ exports.WithIcon = {
93
+ args: {},
94
+ parameters: {
95
+ docs: {
96
+ source: {
97
+ code: index_1.ContextMenuWithIconSrc,
98
+ language: 'tsx',
99
+ type: 'code',
100
+ },
101
+ },
102
+ },
103
+ render: index_1.ContextMenuWithIcon,
104
+ };
105
+ exports.WithDisabledItem = {
106
+ args: {},
107
+ parameters: {
108
+ docs: {
109
+ source: {
110
+ code: index_1.ContextMenuWithDisabledItemSrc,
111
+ language: 'tsx',
112
+ type: 'code',
113
+ },
114
+ },
115
+ },
116
+ render: index_1.ContextMenuWithDisabledItem,
117
+ };
118
+ exports.CustomItems = {
119
+ args: {},
120
+ parameters: {
121
+ docs: {
122
+ source: {
123
+ code: index_1.ContextMenuCustomItemsSrc,
124
+ language: 'tsx',
125
+ type: 'code',
126
+ },
127
+ },
128
+ },
129
+ render: index_1.ContextMenuCustomItems,
130
+ };
131
+ exports.InPopover = {
132
+ args: {},
133
+ parameters: {
134
+ docs: {
135
+ source: {
136
+ code: index_1.ContextMenuInPopoverSrc,
137
+ language: 'tsx',
138
+ type: 'code',
139
+ },
140
+ },
141
+ },
142
+ render: index_1.ContextMenuInPopover,
143
+ };
144
+ exports.InModal = {
145
+ args: {},
146
+ parameters: {
147
+ docs: {
148
+ source: {
149
+ code: index_1.ContextMenuInModalSrc,
150
+ language: 'tsx',
151
+ type: 'code',
152
+ },
153
+ },
154
+ },
155
+ render: index_1.ContextMenuInModal,
156
+ };
157
+ exports.Placements = {
158
+ args: {},
159
+ parameters: {
160
+ docs: {
161
+ source: {
162
+ code: index_1.ContextMenuPlacementsSrc,
163
+ language: 'tsx',
164
+ type: 'code',
165
+ },
166
+ },
167
+ },
168
+ render: index_1.ContextMenuPlacements,
169
+ };
170
+ //# sourceMappingURL=context-menu.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu.stories.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu.stories.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAAwC;AAGxC,mCAqBiB;AAEjB,MAAM,aAAa,GAAsB;IACvC,KAAK,EAAE,wBAAwB;IAC/B,EAAE,EAAE,yBAAyB;IAC7B,SAAS,EAAE,YAAI;IACf,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,gCAAK,SAAS,EAAC,6EAA6E,YAC1F,uBAAC,KAAK,KAAG,GACL,CACP;KACF;CACF,CAAC;AAEF,kBAAe,aAAa,CAAC;AAEhB,QAAA,OAAO,GAAmC;IACrD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,6BAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,0BAAkB;CAC3B,CAAC;AAEW,QAAA,MAAM,GAAmC;IACpD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,4BAAoB;gBAC1B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,yBAAiB;CAC1B,CAAC;AAEW,QAAA,WAAW,GAAmC;IACzD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,6BAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,0BAAkB;CAC3B,CAAC;AAEW,QAAA,UAAU,GAAmC;IACxD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,gCAAwB;gBAC9B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,6BAAqB;CAC9B,CAAC;AAEW,QAAA,QAAQ,GAAmC;IACtD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,8BAAsB;gBAC5B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,2BAAmB;CAC5B,CAAC;AAEW,QAAA,gBAAgB,GAAmC;IAC9D,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,sCAA8B;gBACpC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,mCAA2B;CACpC,CAAC;AAEW,QAAA,WAAW,GAAmC;IACzD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,iCAAyB;gBAC/B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,8BAAsB;CAC/B,CAAC;AAEW,QAAA,SAAS,GAAmC;IACvD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,+BAAuB;gBAC7B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,4BAAoB;CAC7B,CAAC;AAEW,QAAA,OAAO,GAAmC;IACrD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,6BAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,0BAAkB;CAC3B,CAAC;AAEW,QAAA,UAAU,GAAmC;IACxD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,gCAAwB;gBAC9B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,6BAAqB;CAC9B,CAAC"}
@@ -0,0 +1,68 @@
1
+ "use strict";
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ContextMenuPlacementsSrc = exports.ContextMenuWithDisabledItemSrc = exports.ContextMenuDividerSrc = exports.ContextMenuInModalSrc = exports.ContextMenuInPopoverSrc = exports.ContextMenuCustomItemsSrc = exports.ContextMenuWithIconSrc = exports.ContextMenuWithHeaderSrc = exports.ContextMenuNestedSrc = exports.ContextMenuDefaultSrc = exports.ContextMenuPlacements = exports.ContextMenuWithDisabledItem = exports.ContextMenuDivider = exports.ContextMenuInModal = exports.ContextMenuInPopover = exports.ContextMenuCustomItems = exports.ContextMenuWithIcon = exports.ContextMenuWithHeader = exports.ContextMenuNested = exports.ContextMenuDefault = void 0;
27
+ var context_menu_default_story_1 = require("./context-menu-default.story");
28
+ Object.defineProperty(exports, "ContextMenuDefault", { enumerable: true, get: function () { return __importDefault(context_menu_default_story_1).default; } });
29
+ var context_menu_nested_story_1 = require("./context-menu-nested.story");
30
+ Object.defineProperty(exports, "ContextMenuNested", { enumerable: true, get: function () { return __importDefault(context_menu_nested_story_1).default; } });
31
+ var context_menu_with_header_story_1 = require("./context-menu-with-header.story");
32
+ Object.defineProperty(exports, "ContextMenuWithHeader", { enumerable: true, get: function () { return __importDefault(context_menu_with_header_story_1).default; } });
33
+ var context_menu_with_icon_story_1 = require("./context-menu-with-icon.story");
34
+ Object.defineProperty(exports, "ContextMenuWithIcon", { enumerable: true, get: function () { return __importDefault(context_menu_with_icon_story_1).default; } });
35
+ var context_menu_custom_items_story_1 = require("./context-menu-custom-items.story");
36
+ Object.defineProperty(exports, "ContextMenuCustomItems", { enumerable: true, get: function () { return __importDefault(context_menu_custom_items_story_1).default; } });
37
+ var context_menu_in_popover_story_1 = require("./context-menu-in-popover.story");
38
+ Object.defineProperty(exports, "ContextMenuInPopover", { enumerable: true, get: function () { return __importDefault(context_menu_in_popover_story_1).default; } });
39
+ var context_menu_in_modal_story_1 = require("./context-menu-in-modal.story");
40
+ Object.defineProperty(exports, "ContextMenuInModal", { enumerable: true, get: function () { return __importDefault(context_menu_in_modal_story_1).default; } });
41
+ var context_menu_with_divider_story_1 = require("./context-menu-with-divider.story");
42
+ Object.defineProperty(exports, "ContextMenuDivider", { enumerable: true, get: function () { return __importDefault(context_menu_with_divider_story_1).default; } });
43
+ var context_menu_with_disabled_item_story_1 = require("./context-menu-with-disabled-item.story");
44
+ Object.defineProperty(exports, "ContextMenuWithDisabledItem", { enumerable: true, get: function () { return __importDefault(context_menu_with_disabled_item_story_1).default; } });
45
+ var context_menu_placements_story_1 = require("./context-menu-placements.story");
46
+ Object.defineProperty(exports, "ContextMenuPlacements", { enumerable: true, get: function () { return __importDefault(context_menu_placements_story_1).default; } });
47
+ const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
48
+ const context_menu_custom_items_story_raw_1 = __importDefault(require("./context-menu-custom-items.story?raw"));
49
+ const context_menu_default_story_raw_1 = __importDefault(require("./context-menu-default.story?raw"));
50
+ const context_menu_in_modal_story_raw_1 = __importDefault(require("./context-menu-in-modal.story?raw"));
51
+ const context_menu_in_popover_story_raw_1 = __importDefault(require("./context-menu-in-popover.story?raw"));
52
+ const context_menu_nested_story_raw_1 = __importDefault(require("./context-menu-nested.story?raw"));
53
+ const context_menu_placements_story_raw_1 = __importDefault(require("./context-menu-placements.story?raw"));
54
+ const context_menu_with_disabled_item_story_raw_1 = __importDefault(require("./context-menu-with-disabled-item.story?raw"));
55
+ const context_menu_with_divider_story_raw_1 = __importDefault(require("./context-menu-with-divider.story?raw"));
56
+ const context_menu_with_header_story_raw_1 = __importDefault(require("./context-menu-with-header.story?raw"));
57
+ const context_menu_with_icon_story_raw_1 = __importDefault(require("./context-menu-with-icon.story?raw"));
58
+ exports.ContextMenuDefaultSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_default_story_raw_1.default);
59
+ exports.ContextMenuNestedSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_nested_story_raw_1.default);
60
+ exports.ContextMenuWithHeaderSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_with_header_story_raw_1.default);
61
+ exports.ContextMenuWithIconSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_with_icon_story_raw_1.default);
62
+ exports.ContextMenuCustomItemsSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_custom_items_story_raw_1.default);
63
+ exports.ContextMenuInPopoverSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_in_popover_story_raw_1.default);
64
+ exports.ContextMenuInModalSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_in_modal_story_raw_1.default);
65
+ exports.ContextMenuDividerSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_with_divider_story_raw_1.default);
66
+ exports.ContextMenuWithDisabledItemSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_with_disabled_item_story_raw_1.default);
67
+ exports.ContextMenuPlacementsSrc = (0, export_stories_utils_1.removeLicenseHeader)(context_menu_placements_story_raw_1.default);
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,2EAA6E;AAApE,iJAAA,OAAO,OAAsB;AACtC,yEAA2E;AAAlE,+IAAA,OAAO,OAAqB;AACrC,mFAAoF;AAA3E,wJAAA,OAAO,OAAyB;AACzC,+EAAgF;AAAvE,oJAAA,OAAO,OAAuB;AACvC,qFAAsF;AAA7E,0JAAA,OAAO,OAA0B;AAC1C,iFAAkF;AAAzE,sJAAA,OAAO,OAAwB;AACxC,6EAA8E;AAArE,kJAAA,OAAO,OAAsB;AACtC,qFAAkF;AAAzE,sJAAA,OAAO,OAAsB;AACtC,iGAAiG;AAAxF,qKAAA,OAAO,OAA+B;AAC/C,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AAEzC,wFAAoF;AAEpF,gHAAiF;AACjF,sGAAwE;AACxE,wGAAyE;AACzE,4GAA6E;AAC7E,oGAAsE;AACtE,4GAA8E;AAC9E,4HAA4F;AAC5F,gHAA6E;AAC7E,8GAA+E;AAC/E,0GAA2E;AAE9D,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,wCAAwB,CACzB,CAAC;AACW,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,uCAAuB,CACxB,CAAC;AACW,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,4CAA2B,CAC5B,CAAC;AACW,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,0CAAyB,CAC1B,CAAC;AACW,QAAA,yBAAyB,GAAG,IAAA,0CAAmB,EAC1D,6CAA4B,CAC7B,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,2CAA0B,CAC3B,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,yCAAwB,CACzB,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,6CAAwB,CACzB,CAAC;AACW,QAAA,8BAA8B,GAAG,IAAA,0CAAmB,EAC/D,mDAAiC,CAClC,CAAC;AACW,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,2CAA2B,CAC5B,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const [isExpanded, setIsExpanded] = (0, react_2.useState)(true);
29
+ const Placeholder = () => ((0, jsx_runtime_1.jsx)("div", { className: "n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6 w-full", children: (0, jsx_runtime_1.jsx)("div", { className: "n-border-dashed n-border-2 n-border-light-primary-bg-strong n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md", children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsExpanded(true), children: "Press to show the Drawer" }) }) }));
30
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-relative n-overflow-hidden", children: [(0, jsx_runtime_1.jsxs)(react_1.Drawer, { type: "push", isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), isResizeable: true, resizeableProps: {
31
+ maxWidth: '400px',
32
+ minWidth: '300px',
33
+ }, isCloseable: true, isPortaled: false, children: [(0, jsx_runtime_1.jsx)(react_1.Drawer.Header, { children: "Drawer Header" }), (0, jsx_runtime_1.jsxs)(react_1.Drawer.Body, { children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { isOptional: true, informationIconText: "some information", label: "Label", isDisabled: false, isReadOnly: false, helpText: "Friendly text", isFluid: true }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Some input", value: "something" }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Checkbox label" }), (0, jsx_runtime_1.jsx)("br", {}), "Some example of something.", (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Some input", isDisabled: true, value: "something" }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(react_1.TextInput, { isOptional: true, informationIconText: "some information", label: "Label", isDisabled: false, isReadOnly: false, helpText: "Friendly text", isFluid: true }), (0, jsx_runtime_1.jsx)("br", {}), "Some example of something.", (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Some input", value: "something" }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Checkbox label" }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Some input", value: "something" })] }), (0, jsx_runtime_1.jsx)(react_1.Drawer.Actions, { children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsExpanded(false), size: "medium", children: "Close" }) })] }), (0, jsx_runtime_1.jsx)(Placeholder, {})] }));
34
+ };
35
+ exports.default = Component;
36
+ //# sourceMappingURL=drawer-full.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-full.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-full.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,4CAAuE;AACvE,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,gCAAK,SAAS,EAAC,+FAA+F,YAC5G,gCAAK,SAAS,EAAC,wIAAwI,YACrJ,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,yCAEjC,GACL,GACF,CACP,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,2EAA2E,aACxF,wBAAC,cAAM,IACL,IAAI,EAAC,MAAM,EACX,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAC5C,YAAY,EAAE,IAAI,EAClB,eAAe,EAAE;oBACf,QAAQ,EAAE,OAAO;oBACjB,QAAQ,EAAE,OAAO;iBAClB,EACD,WAAW,EAAE,IAAI,EACjB,UAAU,EAAE,KAAK,aAEjB,uBAAC,cAAM,CAAC,MAAM,gCAA8B,EAC5C,wBAAC,cAAM,CAAC,IAAI,eACV,uBAAC,iBAAS,IACR,UAAU,EAAE,IAAI,EAChB,mBAAmB,EAAC,kBAAkB,EACtC,KAAK,EAAC,OAAO,EACb,UAAU,EAAE,KAAK,EACjB,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAC,eAAe,EACxB,OAAO,EAAE,IAAI,GACb,EACF,gCAAM,EACN,uBAAC,iBAAS,IAAC,KAAK,EAAC,YAAY,EAAC,KAAK,EAAC,WAAW,GAAG,EAClD,gCAAM,EACN,uBAAC,gBAAQ,IAAC,KAAK,EAAC,gBAAgB,GAAG,EACnC,gCAAM,gCAEN,gCAAM,EACN,uBAAC,iBAAS,IAAC,KAAK,EAAC,YAAY,EAAC,UAAU,EAAE,IAAI,EAAE,KAAK,EAAC,WAAW,GAAG,EACpE,gCAAM,EACN,uBAAC,iBAAS,IACR,UAAU,EAAE,IAAI,EAChB,mBAAmB,EAAC,kBAAkB,EACtC,KAAK,EAAC,OAAO,EACb,UAAU,EAAE,KAAK,EACjB,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAC,eAAe,EACxB,OAAO,EAAE,IAAI,GACb,EACF,gCAAM,gCAEN,gCAAM,EACN,uBAAC,iBAAS,IAAC,KAAK,EAAC,YAAY,EAAC,KAAK,EAAC,WAAW,GAAG,EAClD,gCAAM,EACN,uBAAC,gBAAQ,IAAC,KAAK,EAAC,gBAAgB,GAAG,EACnC,gCAAM,EACN,uBAAC,iBAAS,IAAC,KAAK,EAAC,YAAY,EAAC,KAAK,EAAC,WAAW,GAAG,IACtC,EACd,uBAAC,cAAM,CAAC,OAAO,cACb,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,QAAQ,sBAEjD,GACM,IACV,EACT,uBAAC,WAAW,KAAG,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const [isExpanded, setIsExpanded] = (0, react_2.useState)(true);
29
+ const Placeholder = () => ((0, jsx_runtime_1.jsx)("div", { className: "n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6 w-full", children: (0, jsx_runtime_1.jsx)("div", { className: "n-border-dashed n-border-2 n-border-light-primary-bg-strong n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md", children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsExpanded(true), children: "Press to show the Drawer" }) }) }));
30
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-relative n-overflow-hidden", children: [(0, jsx_runtime_1.jsxs)(react_1.Drawer, { type: "overlay", isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), position: "left", isCloseable: false, children: [(0, jsx_runtime_1.jsx)(react_1.Drawer.Header, { children: "Drawer Header" }), (0, jsx_runtime_1.jsx)(react_1.Drawer.Body, { children: "Lorem ipsum dolor sit amet." })] }), (0, jsx_runtime_1.jsx)(Placeholder, {})] }));
31
+ };
32
+ exports.default = Component;
33
+ //# sourceMappingURL=drawer-not-closeable.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-not-closeable.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-not-closeable.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,4CAAkD;AAClD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,gCAAK,SAAS,EAAC,+FAA+F,YAC5G,gCAAK,SAAS,EAAC,wIAAwI,YACrJ,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,yCAEjC,GACL,GACF,CACP,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,2EAA2E,aACxF,wBAAC,cAAM,IACL,IAAI,EAAC,SAAS,EACd,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAC5C,QAAQ,EAAC,MAAM,EACf,WAAW,EAAE,KAAK,aAElB,uBAAC,cAAM,CAAC,MAAM,gCAA8B,EAC5C,uBAAC,cAAM,CAAC,IAAI,8CAA0C,IAC/C,EACT,uBAAC,WAAW,KAAG,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const [isExpanded, setIsExpanded] = (0, react_2.useState)(true);
29
+ const Placeholder = () => ((0, jsx_runtime_1.jsx)("div", { className: "n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6 w-full", children: (0, jsx_runtime_1.jsx)("div", { className: "n-border-dashed n-border-2 n-border-light-primary-bg-strong n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md", children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsExpanded(true), children: "Press to show the Drawer" }) }) }));
30
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-relative n-overflow-hidden", children: [(0, jsx_runtime_1.jsxs)(react_1.Drawer, { isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), type: "overlay", children: [(0, jsx_runtime_1.jsx)(react_1.Drawer.Header, { children: "Drawer Header" }), (0, jsx_runtime_1.jsx)(react_1.Drawer.Body, { children: "Lorem ipsum dolor sit amet." }), (0, jsx_runtime_1.jsx)(react_1.Drawer.Actions, { children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsExpanded(false), size: "medium", children: "Close" }) })] }), (0, jsx_runtime_1.jsx)(Placeholder, {})] }));
31
+ };
32
+ exports.default = Component;
33
+ //# sourceMappingURL=drawer-overlay.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-overlay.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-overlay.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,4CAAkD;AAClD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,gCAAK,SAAS,EAAC,+FAA+F,YAC5G,gCAAK,SAAS,EAAC,wIAAwI,YACrJ,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,yCAEjC,GACL,GACF,CACP,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,2EAA2E,aACxF,wBAAC,cAAM,IACL,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAC5C,IAAI,EAAC,SAAS,aAEd,uBAAC,cAAM,CAAC,MAAM,gCAA8B,EAC5C,uBAAC,cAAM,CAAC,IAAI,8CAA0C,EACtD,uBAAC,cAAM,CAAC,OAAO,cACb,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,QAAQ,sBAEjD,GACM,IACV,EACT,uBAAC,WAAW,KAAG,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const [isExpanded, setIsExpanded] = (0, react_2.useState)(false);
29
+ const Placeholder = () => ((0, jsx_runtime_1.jsx)("div", { className: "n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6 w-full", children: (0, jsx_runtime_1.jsx)("div", { className: "n-border-dashed n-border-2 n-border-light-primary-bg-strong n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md", children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsExpanded(true), children: "Press to show the Drawer" }) }) }));
30
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-relative n-overflow-hidden", children: [(0, jsx_runtime_1.jsxs)(react_1.Drawer, { type: "overlay", isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), position: "left", isResizeable: true, resizeableProps: {
31
+ maxWidth: '400px',
32
+ minWidth: '300px',
33
+ }, isPortaled: true, portalProps: {
34
+ id: 'storybook-root',
35
+ }, children: [(0, jsx_runtime_1.jsx)(react_1.Drawer.Header, { children: "Drawer Header" }), (0, jsx_runtime_1.jsx)(react_1.Drawer.Body, { children: "Lorem ipsum dolor sit amet." }), (0, jsx_runtime_1.jsx)(react_1.Drawer.Actions, { children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsExpanded(false), size: "medium", children: "Close" }) })] }), (0, jsx_runtime_1.jsx)(Placeholder, {})] }));
36
+ };
37
+ exports.default = Component;
38
+ //# sourceMappingURL=drawer-portaled.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-portaled.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-portaled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,4CAAkD;AAClD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAEpD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,gCAAK,SAAS,EAAC,+FAA+F,YAC5G,gCAAK,SAAS,EAAC,wIAAwI,YACrJ,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,yCAEjC,GACL,GACF,CACP,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,2EAA2E,aACxF,wBAAC,cAAM,IACL,IAAI,EAAC,SAAS,EACd,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAC5C,QAAQ,EAAC,MAAM,EACf,YAAY,EAAE,IAAI,EAClB,eAAe,EAAE;oBACf,QAAQ,EAAE,OAAO;oBACjB,QAAQ,EAAE,OAAO;iBAClB,EACD,UAAU,EAAE,IAAI,EAChB,WAAW,EAAE;oBACX,EAAE,EAAE,gBAAgB;iBACrB,aAED,uBAAC,cAAM,CAAC,MAAM,gCAA8B,EAC5C,uBAAC,cAAM,CAAC,IAAI,8CAA0C,EACtD,uBAAC,cAAM,CAAC,OAAO,cACb,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,QAAQ,sBAEjD,GACM,IACV,EACT,uBAAC,WAAW,KAAG,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ const react_1 = require("@neo4j-ndl/react");
25
+ const react_2 = require("react");
26
+ const Component = () => {
27
+ const [isExpanded, setIsExpanded] = (0, react_2.useState)(true);
28
+ const Placeholder = () => ((0, jsx_runtime_1.jsx)("div", { className: "n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6 w-full", children: (0, jsx_runtime_1.jsx)("div", { className: "n-border-dashed n-border-2 n-border-light-primary-bg-strong n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md", children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsExpanded(true), children: "Press to show the Drawer" }) }) }));
29
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-relative n-overflow-hidden", children: [(0, jsx_runtime_1.jsxs)(react_1.Drawer, { type: "push", isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), children: [(0, jsx_runtime_1.jsx)(react_1.Drawer.Header, { children: "Drawer Header" }), (0, jsx_runtime_1.jsx)(react_1.Drawer.Body, { children: "Lorem ipsum dolor sit amet." }), (0, jsx_runtime_1.jsx)(react_1.Drawer.Actions, { children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsExpanded(false), size: "medium", children: "Close" }) })] }), (0, jsx_runtime_1.jsx)(Placeholder, {})] }));
30
+ };
31
+ exports.default = Component;
32
+ //# sourceMappingURL=drawer-push.story.js.map