@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,31 @@
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 Component = () => {
26
+ return ((0, jsx_runtime_1.jsx)(react_1.Slider, { minValue: 0, maxValue: 100, step: 10, value: 50, onChange: (newValue) => {
27
+ console.info('onChange', newValue);
28
+ }, showSteps: true, showValues: true }));
29
+ };
30
+ exports.default = Component;
31
+ //# sourceMappingURL=slider-custom-step-length.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider-custom-step-length.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-custom-step-length.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,cAAM,IACL,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,EAAE,EACR,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC,EACD,SAAS,QACT,UAAU,SACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,31 @@
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 Component = () => {
26
+ return ((0, jsx_runtime_1.jsx)(react_1.Slider, { minValue: 0, maxValue: 100, value: 50, onChange: (newValue) => {
27
+ console.info('onChange', newValue);
28
+ } }));
29
+ };
30
+ exports.default = Component;
31
+ //# sourceMappingURL=slider-default.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider-default.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,cAAM,IACL,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,31 @@
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 Component = () => {
26
+ return ((0, jsx_runtime_1.jsx)(react_1.Slider, { minValue: 0, maxValue: 100, step: 10, value: 50, onChange: (newValue) => {
27
+ console.info('onChange', newValue);
28
+ }, isDisabled: true }));
29
+ };
30
+ exports.default = Component;
31
+ //# sourceMappingURL=slider-disabled.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider-disabled.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,cAAM,IACL,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,EAAE,EACR,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC,EACD,UAAU,SACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -21,9 +21,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
21
21
  * You should have received a copy of the GNU General Public License
22
22
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
23
  */
24
- const slider_1 = require("../../slider");
24
+ const react_1 = require("@neo4j-ndl/react");
25
25
  const Component = () => {
26
- return ((0, jsx_runtime_1.jsx)(slider_1.Slider, { type: "range", values: [10, 50], onChange: (newValue) => {
26
+ return ((0, jsx_runtime_1.jsx)(react_1.Slider, { type: "range", values: [10, 50], onChange: (newValue) => {
27
27
  console.info('onChange', newValue);
28
28
  }, minValue: 0, maxValue: 200, step: 10, isDisabled: false, showSteps: true, showValues: true }));
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"slider-range.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-range.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,yCAAsC;AAEtC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,eAAM,IACL,IAAI,EAAC,OAAO,EACZ,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAChB,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC,EACD,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,EAAE,EACR,UAAU,EAAE,KAAK,EACjB,SAAS,EAAE,IAAI,EACf,UAAU,EAAE,IAAI,GAChB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"slider-range.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-range.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,cAAM,IACL,IAAI,EAAC,OAAO,EACZ,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAChB,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC,EACD,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,EAAE,EACR,UAAU,EAAE,KAAK,EACjB,SAAS,EAAE,IAAI,EACf,UAAU,EAAE,IAAI,GAChB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,31 @@
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 Component = () => {
26
+ return ((0, jsx_runtime_1.jsx)(react_1.Slider, { minValue: 0, maxValue: 100, value: 50, onChange: (newValue) => {
27
+ console.info('onChange', newValue);
28
+ }, showSteps: true }));
29
+ };
30
+ exports.default = Component;
31
+ //# sourceMappingURL=slider-show-steps.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider-show-steps.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-show-steps.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,cAAM,IACL,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC,EACD,SAAS,SACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,31 @@
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 Component = () => {
26
+ return ((0, jsx_runtime_1.jsx)(react_1.Slider, { minValue: 0, maxValue: 100, value: 50, onChange: (newValue) => {
27
+ console.info('onChange', newValue);
28
+ }, showValues: true }));
29
+ };
30
+ exports.default = Component;
31
+ //# sourceMappingURL=slider-show-values.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider-show-values.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-show-values.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,cAAM,IACL,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC,EACD,UAAU,SACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -21,13 +21,56 @@ const jsx_runtime_1 = require("react/jsx-runtime");
21
21
  * You should have received a copy of the GNU General Public License
22
22
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
23
  */
24
- const react_1 = require("react");
25
- const slider_1 = require("../../slider"); // Get base props
24
+ const react_1 = require("@neo4j-ndl/react");
25
+ const react_2 = require("react");
26
+ const MIN_VALUE = 0;
27
+ const MAX_VALUE = 100;
28
+ const STEP = 5;
29
+ const INITIAL_VALUE = 50;
30
+ const getValidationError = (input) => {
31
+ const trimmed = input.trim();
32
+ if (!trimmed) {
33
+ return { error: 'Value is required', isValid: false };
34
+ }
35
+ const numValue = Number(trimmed);
36
+ if (isNaN(numValue)) {
37
+ return { error: 'Please enter a valid number', isValid: false };
38
+ }
39
+ if (!Number.isInteger(numValue)) {
40
+ return { error: 'Please enter a whole number', isValid: false };
41
+ }
42
+ if (numValue < MIN_VALUE) {
43
+ return { error: `Value must be at least ${MIN_VALUE}`, isValid: false };
44
+ }
45
+ if (numValue > MAX_VALUE) {
46
+ return { error: `Value must be at most ${MAX_VALUE}`, isValid: false };
47
+ }
48
+ return { error: undefined, isValid: true };
49
+ };
26
50
  const Component = () => {
27
- const [value, setValue] = (0, react_1.useState)(100);
28
- return ((0, jsx_runtime_1.jsx)(slider_1.Slider, { type: "single", value: value, onChange: (newValue) => {
29
- setValue(newValue);
30
- }, minValue: 0, maxValue: 200, isDisabled: false, step: 10, showSteps: true, showValues: true, inputProps: { 'aria-valuetext': 'percent' } }));
51
+ const [value, setValue] = (0, react_2.useState)(INITIAL_VALUE);
52
+ const [inputValue, setInputValue] = (0, react_2.useState)(String(INITIAL_VALUE));
53
+ const { error, isValid } = getValidationError(inputValue);
54
+ const hasError = !isValid;
55
+ const handleInputChange = (0, react_2.useCallback)((e) => {
56
+ const newInputValue = e.target.value;
57
+ setInputValue(newInputValue);
58
+ if (isValid) {
59
+ setValue(Number(newInputValue));
60
+ }
61
+ }, [setInputValue, setValue, isValid]);
62
+ const handleSliderChange = (0, react_2.useCallback)((newValue) => {
63
+ setValue(newValue);
64
+ setInputValue(String(newValue));
65
+ }, [setInputValue, setValue]);
66
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-6", children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Slider value", helpText: `Enter a value between ${MIN_VALUE} and ${MAX_VALUE}`, isRequired: true, errorText: error, htmlAttributes: {
67
+ max: MAX_VALUE,
68
+ min: MIN_VALUE,
69
+ step: STEP,
70
+ type: 'number',
71
+ }, value: inputValue, onChange: handleInputChange }), (0, jsx_runtime_1.jsx)(react_1.Slider, { type: "single", value: value, onChange: handleSliderChange, minValue: MIN_VALUE, maxValue: MAX_VALUE, step: STEP, showSteps: true, showValues: true, isDisabled: hasError, inputProps: {
72
+ 'aria-valuetext': `${value} out of ${MAX_VALUE}`,
73
+ } })] }));
31
74
  };
32
75
  exports.default = Component;
33
76
  //# sourceMappingURL=slider-single-controlled.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slider-single-controlled.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-single-controlled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAiC;AAEjC,yCAAsC,CAAC,iBAAiB;AAExD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,CAAC,CAAC;IACxC,OAAO,CACL,uBAAC,eAAM,IACL,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACrB,CAAC,EACD,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,UAAU,EAAE,KAAK,EACjB,IAAI,EAAE,EAAE,EACR,SAAS,EAAE,IAAI,EACf,UAAU,EAAE,IAAI,EAChB,UAAU,EAAE,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAC3C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"slider-single-controlled.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-single-controlled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAAqD;AACrD,iCAA8C;AAE9C,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,IAAI,GAAG,CAAC,CAAC;AACf,MAAM,aAAa,GAAG,EAAE,CAAC;AAEzB,MAAM,kBAAkB,GAAG,CACzB,KAAa,EAC4D,EAAE;IAC3E,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAE7B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACxD,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IACjC,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpB,OAAO,EAAE,KAAK,EAAE,6BAA6B,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAClE,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,EAA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ACnB,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnB,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClC,CAAC,EACD,CAAC,aAAa,EAAE,QAAQ,CAAC,CAC1B,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,iBAAS,IACR,KAAK,EAAC,cAAc,EACpB,QAAQ,EAAE,yBAAyB,SAAS,QAAQ,SAAS,EAAE,EAC/D,UAAU,QACV,SAAS,EAAE,KAAK,EAChB,cAAc,EAAE;oBACd,GAAG,EAAE,SAAS;oBACd,GAAG,EAAE,SAAS;oBACd,IAAI,EAAE,IAAI;oBACV,IAAI,EAAE,QAAQ;iBACf,EACD,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,iBAAiB,GAC3B,EAEF,uBAAC,cAAM,IACL,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,kBAAkB,EAC5B,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,SAAS,EACnB,IAAI,EAAE,IAAI,EACV,SAAS,QACT,UAAU,QACV,UAAU,EAAE,QAAQ,EACpB,UAAU,EAAE;oBACV,gBAAgB,EAAE,GAAG,KAAK,WAAW,SAAS,EAAE;iBACjD,GACD,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -21,9 +21,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
21
21
  * You should have received a copy of the GNU General Public License
22
22
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
23
  */
24
- const slider_1 = require("../../slider"); // Get base props
24
+ const react_1 = require("@neo4j-ndl/react");
25
25
  const Component = () => {
26
- return ((0, jsx_runtime_1.jsx)(slider_1.Slider, { type: "single", value: 100, onChange: (newValue) => {
26
+ return ((0, jsx_runtime_1.jsx)(react_1.Slider, { type: "single", value: 100, onChange: (newValue) => {
27
27
  console.info('onChange', newValue);
28
28
  }, minValue: 0, maxValue: 200, isDisabled: false, step: 10, showSteps: true, showValues: true, inputProps: { 'aria-valuetext': 'percent' } }));
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"slider-single.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-single.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,yCAAsC,CAAC,iBAAiB;AAExD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,eAAM,IACL,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC,EACD,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,UAAU,EAAE,KAAK,EACjB,IAAI,EAAE,EAAE,EACR,SAAS,EAAE,IAAI,EACf,UAAU,EAAE,IAAI,EAChB,UAAU,EAAE,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAC3C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"slider-single.story.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider-single.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4CAA0C;AAE1C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,cAAM,IACL,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC,EACD,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,GAAG,EACb,UAAU,EAAE,KAAK,EACjB,IAAI,EAAE,EAAE,EACR,SAAS,EAAE,IAAI,EACf,UAAU,EAAE,IAAI,EAChB,UAAU,EAAE,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAC3C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -1,3 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomStepLength = exports.ShowValues = exports.ShowSteps = exports.Disabled = exports.SingleControlled = exports.Range = exports.Single = exports.Default = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
1
5
  /**
2
6
  *
3
7
  * Copyright (c) "Neo4j"
@@ -18,15 +22,10 @@
18
22
  * You should have received a copy of the GNU General Public License
19
23
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
24
  */
21
-
22
- "use strict";
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.SingleControlled = exports.Range = exports.Single = void 0;
25
- const jsx_runtime_1 = require("react/jsx-runtime");
26
- const Slider_1 = require("../Slider");
25
+ const react_1 = require("@neo4j-ndl/react");
27
26
  const _1 = require(".");
28
27
  const componentMeta = {
29
- component: Slider_1.Slider,
28
+ component: react_1.Slider,
30
29
  parameters: {
31
30
  controls: { disable: true },
32
31
  },
@@ -35,6 +34,20 @@ const componentMeta = {
35
34
  id: 'components-slider',
36
35
  };
37
36
  exports.default = componentMeta;
37
+ exports.Default = {
38
+ // @ts-expect-error The args from the full story are not actually used but we get a type issue here
39
+ args: {},
40
+ parameters: {
41
+ docs: {
42
+ source: {
43
+ code: _1.SliderDefaultSource,
44
+ language: 'tsx',
45
+ type: 'code',
46
+ },
47
+ },
48
+ },
49
+ render: () => (0, jsx_runtime_1.jsx)(_1.SliderDefaultDemo, {}),
50
+ };
38
51
  exports.Single = {
39
52
  // @ts-expect-error The args from the full story are not actually used but we get a type issue here
40
53
  args: {},
@@ -77,4 +90,60 @@ exports.SingleControlled = {
77
90
  },
78
91
  render: () => (0, jsx_runtime_1.jsx)(_1.SliderSingleControlledDemo, {}),
79
92
  };
93
+ exports.Disabled = {
94
+ // @ts-expect-error The args from the full story are not actually used but we get a type issue here
95
+ args: {},
96
+ parameters: {
97
+ docs: {
98
+ source: {
99
+ code: _1.SliderDisabledSource,
100
+ language: 'tsx',
101
+ type: 'code',
102
+ },
103
+ },
104
+ },
105
+ render: () => (0, jsx_runtime_1.jsx)(_1.SliderDisabledDemo, {}),
106
+ };
107
+ exports.ShowSteps = {
108
+ // @ts-expect-error The args from the full story are not actually used but we get a type issue here
109
+ args: {},
110
+ parameters: {
111
+ docs: {
112
+ source: {
113
+ code: _1.SliderShowStepsSource,
114
+ language: 'tsx',
115
+ type: 'code',
116
+ },
117
+ },
118
+ },
119
+ render: () => (0, jsx_runtime_1.jsx)(_1.SliderShowStepsDemo, {}),
120
+ };
121
+ exports.ShowValues = {
122
+ // @ts-expect-error The args from the full story are not actually used but we get a type issue here
123
+ args: {},
124
+ parameters: {
125
+ docs: {
126
+ source: {
127
+ code: _1.SliderShowValuesSource,
128
+ language: 'tsx',
129
+ type: 'code',
130
+ },
131
+ },
132
+ },
133
+ render: () => (0, jsx_runtime_1.jsx)(_1.SliderShowValuesDemo, {}),
134
+ };
135
+ exports.CustomStepLength = {
136
+ // @ts-expect-error The args from the full story are not actually used but we get a type issue here
137
+ args: {},
138
+ parameters: {
139
+ docs: {
140
+ source: {
141
+ code: _1.SliderCustomStepLengthSource,
142
+ language: 'tsx',
143
+ type: 'code',
144
+ },
145
+ },
146
+ },
147
+ render: () => (0, jsx_runtime_1.jsx)(_1.SliderCustomStepLengthDemo, {}),
148
+ };
80
149
  //# sourceMappingURL=slider.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slider.stories.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider.stories.tsx"],"names":[],"mappings":";;;;AAsBA,sCAAmC;AACnC,wBAOW;AAEX,MAAM,aAAa,GAAG;IACpB,SAAS,EAAE,eAAM;IACjB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,KAAK,EAAE,mBAAmB;IAC1B,EAAE,EAAE,mBAAmB;CACM,CAAC;AAEhC,kBAAe,aAAa,CAAC;AAGhB,QAAA,MAAM,GAAU;IAC3B,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,qBAAkB;gBACxB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,uBAAC,mBAAgB,KAAG;CACnC,CAAC;AAEW,QAAA,KAAK,GAAU;IAC1B,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,oBAAiB;gBACvB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,uBAAC,kBAAe,KAAG;CAClC,CAAC;AAEW,QAAA,gBAAgB,GAAU;IACrC,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,+BAA4B;gBAClC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,GAAG,EAAE,CAAC,uBAAC,6BAA0B,KAAG;CAC7C,CAAC"}
1
+ {"version":3,"file":"slider.stories.js","sourceRoot":"","sources":["../../../../src/slider/stories/slider.stories.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4CAA0C;AAG1C,wBAiBW;AAEX,MAAM,aAAa,GAAG;IACpB,SAAS,EAAE,cAAM;IACjB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IAC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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.StatusIndicatorTypesSource = exports.StatusIndicatorTypes = void 0;
27
+ var status_indicator_types_story_1 = require("./status-indicator-types.story");
28
+ Object.defineProperty(exports, "StatusIndicatorTypes", { enumerable: true, get: function () { return __importDefault(status_indicator_types_story_1).default; } });
29
+ const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
30
+ const status_indicator_types_story_raw_1 = __importDefault(require("./status-indicator-types.story?raw"));
31
+ exports.StatusIndicatorTypesSource = (0, export_stories_utils_1.removeLicenseHeader)(status_indicator_types_story_raw_1.default);
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/status-indicator/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,+EAAiF;AAAxE,qJAAA,OAAO,OAAwB;AAExC,wFAAoF;AAEpF,0GAA+E;AAElE,QAAA,0BAA0B,GAAG,IAAA,0CAAmB,EAC3D,0CAA6B,CAC9B,CAAC"}
@@ -0,0 +1,30 @@
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 Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-gap-token-6", children: [(0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-items-center n-gap-token-4", children: [(0, jsx_runtime_1.jsx)(react_1.StatusIndicator, { type: "unknown" }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: "Unknown" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-items-center n-gap-token-4", children: [(0, jsx_runtime_1.jsx)(react_1.StatusIndicator, { type: "success" }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: "Success" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-items-center n-gap-token-4", children: [(0, jsx_runtime_1.jsx)(react_1.StatusIndicator, { type: "info" }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: "Info" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-items-center n-gap-token-4", children: [(0, jsx_runtime_1.jsx)(react_1.StatusIndicator, { type: "warning" }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: "Warning" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-items-center n-gap-token-4 ", children: [(0, jsx_runtime_1.jsx)(react_1.StatusIndicator, { type: "danger" }), (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "label", children: "Danger" })] })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=status-indicator-types.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-indicator-types.story.js","sourceRoot":"","sources":["../../../../src/status-indicator/stories/status-indicator-types.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+D;AAE/D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,sBAAsB,aACnC,iCAAK,SAAS,EAAC,gDAAgD,aAC7D,uBAAC,uBAAe,IAAC,IAAI,EAAC,SAAS,GAAG,EAClC,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,iCAAK,SAAS,EAAC,gDAAgD,aAC7D,uBAAC,uBAAe,IAAC,IAAI,EAAC,SAAS,GAAG,EAClC,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,iCAAK,SAAS,EAAC,gDAAgD,aAC7D,uBAAC,uBAAe,IAAC,IAAI,EAAC,MAAM,GAAG,EAC/B,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,qBAAkB,IACzC,EACN,iCAAK,SAAS,EAAC,gDAAgD,aAC7D,uBAAC,uBAAe,IAAC,IAAI,EAAC,SAAS,GAAG,EAClC,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,wBAAqB,IAC5C,EACN,iCAAK,SAAS,EAAC,mDAAmD,aAChE,uBAAC,uBAAe,IAAC,IAAI,EAAC,QAAQ,GAAG,EACjC,uBAAC,kBAAU,IAAC,OAAO,EAAC,OAAO,uBAAoB,IAC3C,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,54 @@
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
+
22
+ "use strict";
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.Types = void 0;
25
+ const jsx_runtime_1 = require("react/jsx-runtime");
26
+ const index_1 = require("../../index");
27
+ const _1 = require(".");
28
+ const componentMeta = {
29
+ title: 'Components/Status Indicator',
30
+ id: 'components-status-indicator',
31
+ component: index_1.StatusIndicator,
32
+ tags: ['docsPage'],
33
+ parameters: {
34
+ controls: { disable: true },
35
+ },
36
+ decorators: [
37
+ (Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-justify-center", children: (0, jsx_runtime_1.jsx)(Story, {}) })),
38
+ ],
39
+ };
40
+ exports.default = componentMeta;
41
+ exports.Types = {
42
+ args: {},
43
+ render: _1.StatusIndicatorTypes,
44
+ parameters: {
45
+ docs: {
46
+ source: {
47
+ language: 'tsx',
48
+ type: 'code',
49
+ code: _1.StatusIndicatorTypesSource,
50
+ },
51
+ },
52
+ },
53
+ };
54
+ //# sourceMappingURL=status-indicator.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-indicator.stories.js","sourceRoot":"","sources":["../../../../src/status-indicator/stories/status-indicator.stories.tsx"],"names":[],"mappings":";;;;AAuBA,uCAA8C;AAC9C,wBAAqE;AAErE,MAAM,aAAa,GAAiC;IAClD,KAAK,EAAE,6BAA6B;IACpC,EAAE,EAAE,6BAA6B;IACjC,SAAS,EAAE,uBAAe;IAC1B,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,yBAAyB,YACtC,uBAAC,KAAK,KAAG,GACL,CACP;KACF;CACF,CAAC;AAEF,kBAAe,aAAa,CAAC;AAGhB,QAAA,KAAK,GAAU;IAC1B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,uBAAoB;IAC5B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,6BAA0B;aACjC;SACF;KACF;CACF,CAAC"}
@@ -57,9 +57,13 @@ function onCloseCallback(callback, id) {
57
57
  delete sonner_1.toast.needle[id];
58
58
  }
59
59
  }
60
- const Toast = react_1.default.forwardRef(function Toast({ icon, id, text, variant, isCloseable, onClose, actionLabel, onAction, shouldCloseOnAction, initialProgressBarValue, htmlAttributes, }, ref) {
60
+ const Toast = react_1.default.forwardRef(function Toast({ icon, id, text, variant, isCloseable, onClose, actionLabel, onAction, shouldCloseOnAction, initialProgressBarValue, isControlled, htmlAttributes, }, ref) {
61
61
  const isProgressBar = variant === 'progress-bar';
62
62
  const handleOnClose = (event) => {
63
+ if (isControlled) {
64
+ onCloseCallback(onClose, id);
65
+ return;
66
+ }
63
67
  const shouldTrigger = (event.type === 'keydown' &&
64
68
  event.key === 'Enter') ||
65
69
  event.key === 'Space' ||
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../src/toast/Toast.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;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