@neo4j-ndl/react 3.9.0 → 3.9.2

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 (468) hide show
  1. package/lib/cjs/_common/CodeBlockWrapper.js +1 -1
  2. package/lib/cjs/avatar/Avatar.js +1 -1
  3. package/lib/cjs/breadcrumbs/Breadcrumbs.js +2 -2
  4. package/lib/cjs/code/stories/code-default.story.js +31 -0
  5. package/lib/cjs/code/stories/code-default.story.js.map +1 -0
  6. package/lib/cjs/code/stories/code-disabled.story.js +45 -0
  7. package/lib/cjs/code/stories/code-disabled.story.js.map +1 -0
  8. package/lib/cjs/code/stories/code-full.story.js +45 -0
  9. package/lib/cjs/code/stories/code-full.story.js.map +1 -0
  10. package/lib/cjs/code/stories/code-inline-runnable.story.js +30 -0
  11. package/lib/cjs/code/stories/code-inline-runnable.story.js.map +1 -0
  12. package/lib/cjs/code/stories/code-inline.story.js +30 -0
  13. package/lib/cjs/code/stories/code-inline.story.js.map +1 -0
  14. package/lib/cjs/code/stories/code-languages.story.js +31 -0
  15. package/lib/cjs/code/stories/code-languages.story.js.map +1 -0
  16. package/lib/cjs/code/stories/code-overflow.story.js +31 -0
  17. package/lib/cjs/code/stories/code-overflow.story.js.map +1 -0
  18. package/lib/cjs/code/stories/code-with-actions.story.js +45 -0
  19. package/lib/cjs/code/stories/code-with-actions.story.js.map +1 -0
  20. package/lib/cjs/code/stories/code-with-header.story.js +31 -0
  21. package/lib/cjs/code/stories/code-with-header.story.js.map +1 -0
  22. package/lib/cjs/code/stories/code-with-line-numbers.story.js +31 -0
  23. package/lib/cjs/code/stories/code-with-line-numbers.story.js.map +1 -0
  24. package/lib/cjs/code/stories/code.stories.js +166 -0
  25. package/lib/cjs/code/stories/code.stories.js.map +1 -0
  26. package/lib/cjs/code/stories/example-code-snippets.js +81 -0
  27. package/lib/cjs/code/stories/example-code-snippets.js.map +1 -0
  28. package/lib/cjs/code/stories/index.js +68 -0
  29. package/lib/cjs/code/stories/index.js.map +1 -0
  30. package/lib/cjs/data-grid/Components.js +1 -1
  31. package/lib/cjs/date-picker/stories/date-picker-default.story.js +41 -0
  32. package/lib/cjs/date-picker/stories/date-picker-default.story.js.map +1 -0
  33. package/lib/cjs/date-picker/stories/date-picker-disabled.story.js +38 -0
  34. package/lib/cjs/date-picker/stories/date-picker-disabled.story.js.map +1 -0
  35. package/lib/cjs/date-picker/stories/date-picker-full.story.js +60 -0
  36. package/lib/cjs/date-picker/stories/date-picker-full.story.js.map +1 -0
  37. package/lib/cjs/date-picker/stories/date-picker-inside-modal.story.js +41 -0
  38. package/lib/cjs/date-picker/stories/date-picker-inside-modal.story.js.map +1 -0
  39. package/lib/cjs/date-picker/stories/date-picker-min-max-date.story.js +45 -0
  40. package/lib/cjs/date-picker/stories/date-picker-min-max-date.story.js.map +1 -0
  41. package/lib/cjs/date-picker/stories/date-picker-opens-to-date.story.js +43 -0
  42. package/lib/cjs/date-picker/stories/date-picker-opens-to-date.story.js.map +1 -0
  43. package/lib/cjs/date-picker/stories/date-picker-starts-on-monday.story.js +42 -0
  44. package/lib/cjs/date-picker/stories/date-picker-starts-on-monday.story.js.map +1 -0
  45. package/lib/cjs/date-picker/stories/date-picker-text-input-props.story.js +44 -0
  46. package/lib/cjs/date-picker/stories/date-picker-text-input-props.story.js.map +1 -0
  47. package/lib/cjs/date-picker/stories/date-picker-with-time-picker.story.js +45 -0
  48. package/lib/cjs/date-picker/stories/date-picker-with-time-picker.story.js.map +1 -0
  49. package/lib/cjs/date-picker/stories/date-picker.stories.js +207 -0
  50. package/lib/cjs/date-picker/stories/date-picker.stories.js.map +1 -0
  51. package/lib/cjs/date-picker/stories/index.js +64 -0
  52. package/lib/cjs/date-picker/stories/index.js.map +1 -0
  53. package/lib/cjs/dropzone/stories/dropzone-csv-files.story.js +37 -0
  54. package/lib/cjs/dropzone/stories/dropzone-csv-files.story.js.map +1 -0
  55. package/lib/cjs/dropzone/stories/dropzone-custom-extensions.story.js +36 -0
  56. package/lib/cjs/dropzone/stories/dropzone-custom-extensions.story.js.map +1 -0
  57. package/lib/cjs/dropzone/stories/dropzone-default.story.js +36 -0
  58. package/lib/cjs/dropzone/stories/dropzone-default.story.js.map +1 -0
  59. package/lib/cjs/dropzone/stories/dropzone-disabled.story.js +38 -0
  60. package/lib/cjs/dropzone/stories/dropzone-disabled.story.js.map +1 -0
  61. package/lib/cjs/dropzone/stories/dropzone-full.story.js +109 -0
  62. package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -0
  63. package/lib/cjs/dropzone/stories/dropzone-loading-progress.story.js +31 -0
  64. package/lib/cjs/dropzone/stories/dropzone-loading-progress.story.js.map +1 -0
  65. package/lib/cjs/dropzone/stories/dropzone-loading-spinner.story.js +31 -0
  66. package/lib/cjs/dropzone/stories/dropzone-loading-spinner.story.js.map +1 -0
  67. package/lib/cjs/dropzone/stories/dropzone.stories.js +121 -0
  68. package/lib/cjs/dropzone/stories/dropzone.stories.js.map +1 -0
  69. package/lib/cjs/dropzone/stories/index.js +56 -0
  70. package/lib/cjs/dropzone/stories/index.js.map +1 -0
  71. package/lib/cjs/graph-visualization/graph-visualization-buttons.js +2 -2
  72. package/lib/cjs/graph-visualization/graph-visualization.js +20 -4
  73. package/lib/cjs/graph-visualization/graph-visualization.js.map +1 -1
  74. package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.story.js +30 -0
  75. package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.story.js.map +1 -0
  76. package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js +14 -1
  77. package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js.map +1 -1
  78. package/lib/cjs/graph-visualization/stories/index.js +5 -1
  79. package/lib/cjs/graph-visualization/stories/index.js.map +1 -1
  80. package/lib/cjs/graph-visualization/{use-managed-selection-state.js → use-managed-node-state.js} +10 -6
  81. package/lib/cjs/graph-visualization/use-managed-node-state.js.map +1 -0
  82. package/lib/cjs/next/breadcrumbs/Breadcrumbs.js +1 -1
  83. package/lib/cjs/radio/stories/index.js +56 -0
  84. package/lib/cjs/radio/stories/index.js.map +1 -0
  85. package/lib/cjs/radio/stories/radio-checkedByDefault.story.js +30 -0
  86. package/lib/cjs/radio/stories/radio-checkedByDefault.story.js.map +1 -0
  87. package/lib/cjs/radio/stories/radio-custom-label.story.js +30 -0
  88. package/lib/cjs/radio/stories/radio-custom-label.story.js.map +1 -0
  89. package/lib/cjs/radio/stories/radio-default.story.js +30 -0
  90. package/lib/cjs/radio/stories/radio-default.story.js.map +1 -0
  91. package/lib/cjs/radio/stories/radio-disabled.story.js +30 -0
  92. package/lib/cjs/radio/stories/radio-disabled.story.js.map +1 -0
  93. package/lib/cjs/radio/stories/radio-hasLabelBefore.story.js +30 -0
  94. package/lib/cjs/radio/stories/radio-hasLabelBefore.story.js.map +1 -0
  95. package/lib/cjs/radio/stories/radio-no-label.story.js +30 -0
  96. package/lib/cjs/radio/stories/radio-no-label.story.js.map +1 -0
  97. package/lib/cjs/radio/stories/radio-truncated-label.story.js +30 -0
  98. package/lib/cjs/radio/stories/radio-truncated-label.story.js.map +1 -0
  99. package/lib/cjs/radio/stories/radio.stories.js +137 -0
  100. package/lib/cjs/radio/stories/radio.stories.js.map +1 -0
  101. package/lib/cjs/segmented-control/stories/segmented-control-only-icons.story.js +1 -1
  102. package/lib/cjs/spotlight/SpotlightTarget.js +1 -1
  103. package/lib/cjs/switch/stories/index.js +56 -0
  104. package/lib/cjs/switch/stories/index.js.map +1 -0
  105. package/lib/cjs/switch/stories/switch-checked-by-default.story.js +30 -0
  106. package/lib/cjs/switch/stories/switch-checked-by-default.story.js.map +1 -0
  107. package/lib/cjs/switch/stories/switch-default.story.js +30 -0
  108. package/lib/cjs/switch/stories/switch-default.story.js.map +1 -0
  109. package/lib/cjs/switch/stories/switch-disabled.story.js +30 -0
  110. package/lib/cjs/switch/stories/switch-disabled.story.js.map +1 -0
  111. package/lib/cjs/switch/stories/switch-full.story.js +39 -0
  112. package/lib/cjs/switch/stories/switch-full.story.js.map +1 -0
  113. package/lib/cjs/switch/stories/switch-has-label-before.story.js +30 -0
  114. package/lib/cjs/switch/stories/switch-has-label-before.story.js.map +1 -0
  115. package/lib/cjs/switch/stories/switch-indeterminate.story.js +33 -0
  116. package/lib/cjs/switch/stories/switch-indeterminate.story.js.map +1 -0
  117. package/lib/cjs/switch/stories/switch-no-label.story.js +30 -0
  118. package/lib/cjs/switch/stories/switch-no-label.story.js.map +1 -0
  119. package/lib/cjs/switch/stories/switch.stories.js +137 -0
  120. package/lib/cjs/switch/stories/switch.stories.js.map +1 -0
  121. package/lib/cjs/tabs/stories/index.js +48 -0
  122. package/lib/cjs/tabs/stories/index.js.map +1 -0
  123. package/lib/cjs/tabs/stories/tabs-default.story.js +32 -0
  124. package/lib/cjs/tabs/stories/tabs-default.story.js.map +1 -0
  125. package/lib/cjs/tabs/stories/tabs-disabled.story.js +32 -0
  126. package/lib/cjs/tabs/stories/tabs-disabled.story.js.map +1 -0
  127. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +33 -0
  128. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -0
  129. package/lib/cjs/tabs/stories/tabs-sizes.story.js +33 -0
  130. package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -0
  131. package/lib/cjs/tabs/stories/tabs-with-icons.story.js +33 -0
  132. package/lib/cjs/tabs/stories/tabs-with-icons.story.js.map +1 -0
  133. package/lib/cjs/tabs/stories/tabs.stories.js +106 -0
  134. package/lib/cjs/tabs/stories/tabs.stories.js.map +1 -0
  135. package/lib/cjs/tag/stories/index.js +42 -0
  136. package/lib/cjs/tag/stories/index.js.map +1 -0
  137. package/lib/cjs/tag/stories/tag-removable.story.js +33 -0
  138. package/lib/cjs/tag/stories/tag-removable.story.js.map +1 -0
  139. package/lib/cjs/tag/stories/tag-sizes.story.js +30 -0
  140. package/lib/cjs/tag/stories/tag-sizes.story.js.map +1 -0
  141. package/lib/cjs/tag/stories/tag-types.story.js +30 -0
  142. package/lib/cjs/tag/stories/tag-types.story.js.map +1 -0
  143. package/lib/cjs/tag/stories/tag.stories.js +80 -0
  144. package/lib/cjs/tag/stories/tag.stories.js.map +1 -0
  145. package/lib/cjs/text-input/stories/index.js +84 -0
  146. package/lib/cjs/text-input/stories/index.js.map +1 -0
  147. package/lib/cjs/text-input/stories/text-input-default.story.js +30 -0
  148. package/lib/cjs/text-input/stories/text-input-default.story.js.map +1 -0
  149. package/lib/cjs/text-input/stories/text-input-disabled.story.js +30 -0
  150. package/lib/cjs/text-input/stories/text-input-disabled.story.js.map +1 -0
  151. package/lib/cjs/text-input/stories/text-input-email.story.js +32 -0
  152. package/lib/cjs/text-input/stories/text-input-email.story.js.map +1 -0
  153. package/lib/cjs/text-input/stories/text-input-error.story.js +30 -0
  154. package/lib/cjs/text-input/stories/text-input-error.story.js.map +1 -0
  155. package/lib/cjs/text-input/stories/text-input-full.story.js +38 -0
  156. package/lib/cjs/text-input/stories/text-input-full.story.js.map +1 -0
  157. package/lib/cjs/text-input/stories/text-input-information-icon.story.js +30 -0
  158. package/lib/cjs/text-input/stories/text-input-information-icon.story.js.map +1 -0
  159. package/lib/cjs/text-input/stories/text-input-loading.story.js +33 -0
  160. package/lib/cjs/text-input/stories/text-input-loading.story.js.map +1 -0
  161. package/lib/cjs/text-input/stories/text-input-number.story.js +34 -0
  162. package/lib/cjs/text-input/stories/text-input-number.story.js.map +1 -0
  163. package/lib/cjs/text-input/stories/text-input-optional.story.js +30 -0
  164. package/lib/cjs/text-input/stories/text-input-optional.story.js.map +1 -0
  165. package/lib/cjs/text-input/stories/text-input-password.story.js +35 -0
  166. package/lib/cjs/text-input/stories/text-input-password.story.js.map +1 -0
  167. package/lib/cjs/text-input/stories/text-input-readonly.story.js +30 -0
  168. package/lib/cjs/text-input/stories/text-input-readonly.story.js.map +1 -0
  169. package/lib/cjs/text-input/stories/text-input-required.story.js +30 -0
  170. package/lib/cjs/text-input/stories/text-input-required.story.js.map +1 -0
  171. package/lib/cjs/text-input/stories/text-input-sizes.story.js +30 -0
  172. package/lib/cjs/text-input/stories/text-input-sizes.story.js.map +1 -0
  173. package/lib/cjs/text-input/stories/text-input-with-icons.story.js +35 -0
  174. package/lib/cjs/text-input/stories/text-input-with-icons.story.js.map +1 -0
  175. package/lib/cjs/text-input/stories/text-input.stories.js +223 -0
  176. package/lib/cjs/text-input/stories/text-input.stories.js.map +1 -0
  177. package/lib/cjs/text-link/stories/index.js +40 -0
  178. package/lib/cjs/text-link/stories/index.js.map +1 -0
  179. package/lib/cjs/text-link/stories/text-link-default.story.js +30 -0
  180. package/lib/cjs/text-link/stories/text-link-default.story.js.map +1 -0
  181. package/lib/cjs/text-link/stories/text-link-external.story.js +30 -0
  182. package/lib/cjs/text-link/stories/text-link-external.story.js.map +1 -0
  183. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js +30 -0
  184. package/lib/cjs/text-link/stories/text-link-internal-icon.story.js.map +1 -0
  185. package/lib/cjs/text-link/stories/text-link.stories.js +76 -0
  186. package/lib/cjs/text-link/stories/text-link.stories.js.map +1 -0
  187. package/lib/cjs/tree-view/TreeItemWrapper.js +1 -2
  188. package/lib/cjs/tree-view/TreeItemWrapper.js.map +1 -1
  189. package/lib/esm/_common/CodeBlockWrapper.js +1 -1
  190. package/lib/esm/avatar/Avatar.js +1 -1
  191. package/lib/esm/breadcrumbs/Breadcrumbs.js +2 -2
  192. package/lib/esm/code/stories/code-default.story.js +29 -0
  193. package/lib/esm/code/stories/code-default.story.js.map +1 -0
  194. package/lib/esm/code/stories/code-disabled.story.js +43 -0
  195. package/lib/esm/code/stories/code-disabled.story.js.map +1 -0
  196. package/lib/esm/code/stories/code-full.story.js +43 -0
  197. package/lib/esm/code/stories/code-full.story.js.map +1 -0
  198. package/lib/esm/code/stories/code-inline-runnable.story.js +28 -0
  199. package/lib/esm/code/stories/code-inline-runnable.story.js.map +1 -0
  200. package/lib/esm/code/stories/code-inline.story.js +28 -0
  201. package/lib/esm/code/stories/code-inline.story.js.map +1 -0
  202. package/lib/esm/code/stories/code-languages.story.js +29 -0
  203. package/lib/esm/code/stories/code-languages.story.js.map +1 -0
  204. package/lib/esm/code/stories/code-overflow.story.js +29 -0
  205. package/lib/esm/code/stories/code-overflow.story.js.map +1 -0
  206. package/lib/esm/code/stories/code-with-actions.story.js +43 -0
  207. package/lib/esm/code/stories/code-with-actions.story.js.map +1 -0
  208. package/lib/esm/code/stories/code-with-header.story.js +29 -0
  209. package/lib/esm/code/stories/code-with-header.story.js.map +1 -0
  210. package/lib/esm/code/stories/code-with-line-numbers.story.js +29 -0
  211. package/lib/esm/code/stories/code-with-line-numbers.story.js.map +1 -0
  212. package/lib/esm/code/stories/code.stories.js +163 -0
  213. package/lib/esm/code/stories/code.stories.js.map +1 -0
  214. package/lib/esm/code/stories/example-code-snippets.js +78 -0
  215. package/lib/esm/code/stories/example-code-snippets.js.map +1 -0
  216. package/lib/esm/code/stories/index.js +52 -0
  217. package/lib/esm/code/stories/index.js.map +1 -0
  218. package/lib/esm/data-grid/Components.js +1 -1
  219. package/lib/esm/date-picker/stories/date-picker-default.story.js +39 -0
  220. package/lib/esm/date-picker/stories/date-picker-default.story.js.map +1 -0
  221. package/lib/esm/date-picker/stories/date-picker-disabled.story.js +36 -0
  222. package/lib/esm/date-picker/stories/date-picker-disabled.story.js.map +1 -0
  223. package/lib/esm/date-picker/stories/date-picker-full.story.js +58 -0
  224. package/lib/esm/date-picker/stories/date-picker-full.story.js.map +1 -0
  225. package/lib/esm/date-picker/stories/date-picker-inside-modal.story.js +39 -0
  226. package/lib/esm/date-picker/stories/date-picker-inside-modal.story.js.map +1 -0
  227. package/lib/esm/date-picker/stories/date-picker-min-max-date.story.js +43 -0
  228. package/lib/esm/date-picker/stories/date-picker-min-max-date.story.js.map +1 -0
  229. package/lib/esm/date-picker/stories/date-picker-opens-to-date.story.js +41 -0
  230. package/lib/esm/date-picker/stories/date-picker-opens-to-date.story.js.map +1 -0
  231. package/lib/esm/date-picker/stories/date-picker-starts-on-monday.story.js +40 -0
  232. package/lib/esm/date-picker/stories/date-picker-starts-on-monday.story.js.map +1 -0
  233. package/lib/esm/date-picker/stories/date-picker-text-input-props.story.js +42 -0
  234. package/lib/esm/date-picker/stories/date-picker-text-input-props.story.js.map +1 -0
  235. package/lib/esm/date-picker/stories/date-picker-with-time-picker.story.js +43 -0
  236. package/lib/esm/date-picker/stories/date-picker-with-time-picker.story.js.map +1 -0
  237. package/lib/esm/date-picker/stories/date-picker.stories.js +201 -0
  238. package/lib/esm/date-picker/stories/date-picker.stories.js.map +1 -0
  239. package/lib/esm/date-picker/stories/index.js +49 -0
  240. package/lib/esm/date-picker/stories/index.js.map +1 -0
  241. package/lib/esm/dropzone/stories/dropzone-csv-files.story.js +35 -0
  242. package/lib/esm/dropzone/stories/dropzone-csv-files.story.js.map +1 -0
  243. package/lib/esm/dropzone/stories/dropzone-custom-extensions.story.js +34 -0
  244. package/lib/esm/dropzone/stories/dropzone-custom-extensions.story.js.map +1 -0
  245. package/lib/esm/dropzone/stories/dropzone-default.story.js +34 -0
  246. package/lib/esm/dropzone/stories/dropzone-default.story.js.map +1 -0
  247. package/lib/esm/dropzone/stories/dropzone-disabled.story.js +36 -0
  248. package/lib/esm/dropzone/stories/dropzone-disabled.story.js.map +1 -0
  249. package/lib/esm/dropzone/stories/dropzone-full.story.js +107 -0
  250. package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -0
  251. package/lib/esm/dropzone/stories/dropzone-loading-progress.story.js +29 -0
  252. package/lib/esm/dropzone/stories/dropzone-loading-progress.story.js.map +1 -0
  253. package/lib/esm/dropzone/stories/dropzone-loading-spinner.story.js +29 -0
  254. package/lib/esm/dropzone/stories/dropzone-loading-spinner.story.js.map +1 -0
  255. package/lib/esm/dropzone/stories/dropzone.stories.js +118 -0
  256. package/lib/esm/dropzone/stories/dropzone.stories.js.map +1 -0
  257. package/lib/esm/dropzone/stories/index.js +43 -0
  258. package/lib/esm/dropzone/stories/index.js.map +1 -0
  259. package/lib/esm/graph-visualization/graph-visualization-buttons.js +2 -2
  260. package/lib/esm/graph-visualization/graph-visualization.js +20 -4
  261. package/lib/esm/graph-visualization/graph-visualization.js.map +1 -1
  262. package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.story.js +28 -0
  263. package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.story.js.map +1 -0
  264. package/lib/esm/graph-visualization/stories/graph-visualization.stories.js +14 -1
  265. package/lib/esm/graph-visualization/stories/graph-visualization.stories.js.map +1 -1
  266. package/lib/esm/graph-visualization/stories/index.js +3 -0
  267. package/lib/esm/graph-visualization/stories/index.js.map +1 -1
  268. package/lib/esm/graph-visualization/{use-managed-selection-state.js → use-managed-node-state.js} +9 -5
  269. package/lib/esm/graph-visualization/use-managed-node-state.js.map +1 -0
  270. package/lib/esm/next/breadcrumbs/Breadcrumbs.js +1 -1
  271. package/lib/esm/radio/stories/index.js +43 -0
  272. package/lib/esm/radio/stories/index.js.map +1 -0
  273. package/lib/esm/radio/stories/radio-checkedByDefault.story.js +28 -0
  274. package/lib/esm/radio/stories/radio-checkedByDefault.story.js.map +1 -0
  275. package/lib/esm/radio/stories/radio-custom-label.story.js +28 -0
  276. package/lib/esm/radio/stories/radio-custom-label.story.js.map +1 -0
  277. package/lib/esm/radio/stories/radio-default.story.js +28 -0
  278. package/lib/esm/radio/stories/radio-default.story.js.map +1 -0
  279. package/lib/esm/radio/stories/radio-disabled.story.js +28 -0
  280. package/lib/esm/radio/stories/radio-disabled.story.js.map +1 -0
  281. package/lib/esm/radio/stories/radio-hasLabelBefore.story.js +28 -0
  282. package/lib/esm/radio/stories/radio-hasLabelBefore.story.js.map +1 -0
  283. package/lib/esm/radio/stories/radio-no-label.story.js +28 -0
  284. package/lib/esm/radio/stories/radio-no-label.story.js.map +1 -0
  285. package/lib/esm/radio/stories/radio-truncated-label.story.js +28 -0
  286. package/lib/esm/radio/stories/radio-truncated-label.story.js.map +1 -0
  287. package/lib/esm/radio/stories/radio.stories.js +134 -0
  288. package/lib/esm/radio/stories/radio.stories.js.map +1 -0
  289. package/lib/esm/segmented-control/stories/segmented-control-only-icons.story.js +1 -1
  290. package/lib/esm/spotlight/SpotlightTarget.js +1 -1
  291. package/lib/esm/switch/stories/index.js +43 -0
  292. package/lib/esm/switch/stories/index.js.map +1 -0
  293. package/lib/esm/switch/stories/switch-checked-by-default.story.js +28 -0
  294. package/lib/esm/switch/stories/switch-checked-by-default.story.js.map +1 -0
  295. package/lib/esm/switch/stories/switch-default.story.js +28 -0
  296. package/lib/esm/switch/stories/switch-default.story.js.map +1 -0
  297. package/lib/esm/switch/stories/switch-disabled.story.js +28 -0
  298. package/lib/esm/switch/stories/switch-disabled.story.js.map +1 -0
  299. package/lib/esm/switch/stories/switch-full.story.js +37 -0
  300. package/lib/esm/switch/stories/switch-full.story.js.map +1 -0
  301. package/lib/esm/switch/stories/switch-has-label-before.story.js +28 -0
  302. package/lib/esm/switch/stories/switch-has-label-before.story.js.map +1 -0
  303. package/lib/esm/switch/stories/switch-indeterminate.story.js +31 -0
  304. package/lib/esm/switch/stories/switch-indeterminate.story.js.map +1 -0
  305. package/lib/esm/switch/stories/switch-no-label.story.js +28 -0
  306. package/lib/esm/switch/stories/switch-no-label.story.js.map +1 -0
  307. package/lib/esm/switch/stories/switch.stories.js +134 -0
  308. package/lib/esm/switch/stories/switch.stories.js.map +1 -0
  309. package/lib/esm/tabs/stories/index.js +37 -0
  310. package/lib/esm/tabs/stories/index.js.map +1 -0
  311. package/lib/esm/tabs/stories/tabs-default.story.js +30 -0
  312. package/lib/esm/tabs/stories/tabs-default.story.js.map +1 -0
  313. package/lib/esm/tabs/stories/tabs-disabled.story.js +30 -0
  314. package/lib/esm/tabs/stories/tabs-disabled.story.js.map +1 -0
  315. package/lib/esm/tabs/stories/tabs-fill-variants.story.js +31 -0
  316. package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -0
  317. package/lib/esm/tabs/stories/tabs-sizes.story.js +31 -0
  318. package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -0
  319. package/lib/esm/tabs/stories/tabs-with-icons.story.js +31 -0
  320. package/lib/esm/tabs/stories/tabs-with-icons.story.js.map +1 -0
  321. package/lib/esm/tabs/stories/tabs.stories.js +103 -0
  322. package/lib/esm/tabs/stories/tabs.stories.js.map +1 -0
  323. package/lib/esm/tag/stories/index.js +32 -0
  324. package/lib/esm/tag/stories/index.js.map +1 -0
  325. package/lib/esm/tag/stories/tag-removable.story.js +31 -0
  326. package/lib/esm/tag/stories/tag-removable.story.js.map +1 -0
  327. package/lib/esm/tag/stories/tag-sizes.story.js +28 -0
  328. package/lib/esm/tag/stories/tag-sizes.story.js.map +1 -0
  329. package/lib/esm/tag/stories/tag-types.story.js +28 -0
  330. package/lib/esm/tag/stories/tag-types.story.js.map +1 -0
  331. package/lib/esm/tag/stories/tag.stories.js +77 -0
  332. package/lib/esm/tag/stories/tag.stories.js.map +1 -0
  333. package/lib/esm/text-input/stories/index.js +64 -0
  334. package/lib/esm/text-input/stories/index.js.map +1 -0
  335. package/lib/esm/text-input/stories/text-input-default.story.js +28 -0
  336. package/lib/esm/text-input/stories/text-input-default.story.js.map +1 -0
  337. package/lib/esm/text-input/stories/text-input-disabled.story.js +28 -0
  338. package/lib/esm/text-input/stories/text-input-disabled.story.js.map +1 -0
  339. package/lib/esm/text-input/stories/text-input-email.story.js +30 -0
  340. package/lib/esm/text-input/stories/text-input-email.story.js.map +1 -0
  341. package/lib/esm/text-input/stories/text-input-error.story.js +28 -0
  342. package/lib/esm/text-input/stories/text-input-error.story.js.map +1 -0
  343. package/lib/esm/text-input/stories/text-input-full.story.js +36 -0
  344. package/lib/esm/text-input/stories/text-input-full.story.js.map +1 -0
  345. package/lib/esm/text-input/stories/text-input-information-icon.story.js +28 -0
  346. package/lib/esm/text-input/stories/text-input-information-icon.story.js.map +1 -0
  347. package/lib/esm/text-input/stories/text-input-loading.story.js +31 -0
  348. package/lib/esm/text-input/stories/text-input-loading.story.js.map +1 -0
  349. package/lib/esm/text-input/stories/text-input-number.story.js +32 -0
  350. package/lib/esm/text-input/stories/text-input-number.story.js.map +1 -0
  351. package/lib/esm/text-input/stories/text-input-optional.story.js +28 -0
  352. package/lib/esm/text-input/stories/text-input-optional.story.js.map +1 -0
  353. package/lib/esm/text-input/stories/text-input-password.story.js +33 -0
  354. package/lib/esm/text-input/stories/text-input-password.story.js.map +1 -0
  355. package/lib/esm/text-input/stories/text-input-readonly.story.js +28 -0
  356. package/lib/esm/text-input/stories/text-input-readonly.story.js.map +1 -0
  357. package/lib/esm/text-input/stories/text-input-required.story.js +28 -0
  358. package/lib/esm/text-input/stories/text-input-required.story.js.map +1 -0
  359. package/lib/esm/text-input/stories/text-input-sizes.story.js +28 -0
  360. package/lib/esm/text-input/stories/text-input-sizes.story.js.map +1 -0
  361. package/lib/esm/text-input/stories/text-input-with-icons.story.js +33 -0
  362. package/lib/esm/text-input/stories/text-input-with-icons.story.js.map +1 -0
  363. package/lib/esm/text-input/stories/text-input.stories.js +220 -0
  364. package/lib/esm/text-input/stories/text-input.stories.js.map +1 -0
  365. package/lib/esm/text-link/stories/index.js +31 -0
  366. package/lib/esm/text-link/stories/index.js.map +1 -0
  367. package/lib/esm/text-link/stories/text-link-default.story.js +28 -0
  368. package/lib/esm/text-link/stories/text-link-default.story.js.map +1 -0
  369. package/lib/esm/text-link/stories/text-link-external.story.js +28 -0
  370. package/lib/esm/text-link/stories/text-link-external.story.js.map +1 -0
  371. package/lib/esm/text-link/stories/text-link-internal-icon.story.js +28 -0
  372. package/lib/esm/text-link/stories/text-link-internal-icon.story.js.map +1 -0
  373. package/lib/esm/text-link/stories/text-link.stories.js +73 -0
  374. package/lib/esm/text-link/stories/text-link.stories.js.map +1 -0
  375. package/lib/esm/tree-view/TreeItemWrapper.js +1 -2
  376. package/lib/esm/tree-view/TreeItemWrapper.js.map +1 -1
  377. package/lib/types/code/stories/code-default.story.d.ts +23 -0
  378. package/lib/types/code/stories/code-disabled.story.d.ts +23 -0
  379. package/lib/types/code/stories/code-full.story.d.ts +23 -0
  380. package/lib/types/code/stories/code-inline-runnable.story.d.ts +23 -0
  381. package/lib/types/code/stories/code-inline.story.d.ts +23 -0
  382. package/lib/types/code/stories/code-languages.story.d.ts +23 -0
  383. package/lib/types/code/stories/code-overflow.story.d.ts +23 -0
  384. package/lib/types/code/stories/code-with-actions.story.d.ts +23 -0
  385. package/lib/types/code/stories/code-with-header.story.d.ts +23 -0
  386. package/lib/types/code/stories/code-with-line-numbers.story.d.ts +23 -0
  387. package/lib/types/code/stories/code.stories.d.ts +34 -0
  388. package/lib/types/code/stories/example-code-snippets.d.ts +27 -0
  389. package/lib/types/code/stories/index.d.ts +40 -0
  390. package/lib/types/date-picker/stories/date-picker-default.story.d.ts +23 -0
  391. package/lib/types/date-picker/stories/date-picker-disabled.story.d.ts +23 -0
  392. package/lib/types/date-picker/stories/date-picker-full.story.d.ts +23 -0
  393. package/lib/types/date-picker/stories/date-picker-inside-modal.story.d.ts +23 -0
  394. package/lib/types/date-picker/stories/date-picker-min-max-date.story.d.ts +23 -0
  395. package/lib/types/date-picker/stories/date-picker-opens-to-date.story.d.ts +23 -0
  396. package/lib/types/date-picker/stories/date-picker-starts-on-monday.story.d.ts +23 -0
  397. package/lib/types/date-picker/stories/date-picker-text-input-props.story.d.ts +23 -0
  398. package/lib/types/date-picker/stories/date-picker-with-time-picker.story.d.ts +23 -0
  399. package/lib/types/date-picker/stories/date-picker.stories.d.ts +34 -0
  400. package/lib/types/date-picker/stories/index.d.ts +38 -0
  401. package/lib/types/dropzone/stories/dropzone-csv-files.story.d.ts +23 -0
  402. package/lib/types/dropzone/stories/dropzone-custom-extensions.story.d.ts +23 -0
  403. package/lib/types/dropzone/stories/dropzone-default.story.d.ts +23 -0
  404. package/lib/types/dropzone/stories/dropzone-disabled.story.d.ts +23 -0
  405. package/lib/types/dropzone/stories/dropzone-full.story.d.ts +23 -0
  406. package/lib/types/dropzone/stories/dropzone-loading-progress.story.d.ts +23 -0
  407. package/lib/types/dropzone/stories/dropzone-loading-spinner.story.d.ts +23 -0
  408. package/lib/types/dropzone/stories/dropzone.stories.d.ts +32 -0
  409. package/lib/types/dropzone/stories/index.d.ts +34 -0
  410. package/lib/types/graph-visualization/graph-visualization.d.ts +17 -1
  411. package/lib/types/graph-visualization/stories/graph-visualization-highlighting.story.d.ts +22 -0
  412. package/lib/types/graph-visualization/stories/graph-visualization.stories.d.ts +1 -0
  413. package/lib/types/graph-visualization/stories/index.d.ts +2 -0
  414. package/lib/types/graph-visualization/{use-managed-selection-state.d.ts → use-managed-node-state.d.ts} +8 -6
  415. package/lib/types/radio/stories/index.d.ts +34 -0
  416. package/lib/types/radio/stories/radio-checkedByDefault.story.d.ts +23 -0
  417. package/lib/types/radio/stories/radio-custom-label.story.d.ts +23 -0
  418. package/lib/types/radio/stories/radio-default.story.d.ts +23 -0
  419. package/lib/types/radio/stories/radio-disabled.story.d.ts +23 -0
  420. package/lib/types/radio/stories/radio-hasLabelBefore.story.d.ts +23 -0
  421. package/lib/types/radio/stories/radio-no-label.story.d.ts +23 -0
  422. package/lib/types/radio/stories/radio-truncated-label.story.d.ts +23 -0
  423. package/lib/types/radio/stories/radio.stories.d.ts +32 -0
  424. package/lib/types/switch/stories/index.d.ts +34 -0
  425. package/lib/types/switch/stories/switch-checked-by-default.story.d.ts +23 -0
  426. package/lib/types/switch/stories/switch-default.story.d.ts +23 -0
  427. package/lib/types/switch/stories/switch-disabled.story.d.ts +23 -0
  428. package/lib/types/switch/stories/switch-full.story.d.ts +23 -0
  429. package/lib/types/switch/stories/switch-has-label-before.story.d.ts +23 -0
  430. package/lib/types/switch/stories/switch-indeterminate.story.d.ts +23 -0
  431. package/lib/types/switch/stories/switch-no-label.story.d.ts +23 -0
  432. package/lib/types/switch/stories/switch.stories.d.ts +32 -0
  433. package/lib/types/tabs/stories/index.d.ts +30 -0
  434. package/lib/types/tabs/stories/tabs-default.story.d.ts +23 -0
  435. package/lib/types/tabs/stories/tabs-disabled.story.d.ts +23 -0
  436. package/lib/types/tabs/stories/tabs-fill-variants.story.d.ts +23 -0
  437. package/lib/types/tabs/stories/tabs-sizes.story.d.ts +23 -0
  438. package/lib/types/tabs/stories/tabs-with-icons.story.d.ts +23 -0
  439. package/lib/types/tabs/stories/tabs.stories.d.ts +30 -0
  440. package/lib/types/tag/stories/index.d.ts +27 -0
  441. package/lib/types/tag/stories/tag-removable.story.d.ts +23 -0
  442. package/lib/types/tag/stories/tag-sizes.story.d.ts +23 -0
  443. package/lib/types/tag/stories/tag-types.story.d.ts +23 -0
  444. package/lib/types/tag/stories/tag.stories.d.ts +28 -0
  445. package/lib/types/text-input/stories/index.d.ts +48 -0
  446. package/lib/types/text-input/stories/text-input-default.story.d.ts +23 -0
  447. package/lib/types/text-input/stories/text-input-disabled.story.d.ts +23 -0
  448. package/lib/types/text-input/stories/text-input-email.story.d.ts +23 -0
  449. package/lib/types/text-input/stories/text-input-error.story.d.ts +23 -0
  450. package/lib/types/text-input/stories/text-input-full.story.d.ts +23 -0
  451. package/lib/types/text-input/stories/text-input-information-icon.story.d.ts +23 -0
  452. package/lib/types/text-input/stories/text-input-loading.story.d.ts +23 -0
  453. package/lib/types/text-input/stories/text-input-number.story.d.ts +23 -0
  454. package/lib/types/text-input/stories/text-input-optional.story.d.ts +23 -0
  455. package/lib/types/text-input/stories/text-input-password.story.d.ts +23 -0
  456. package/lib/types/text-input/stories/text-input-readonly.story.d.ts +23 -0
  457. package/lib/types/text-input/stories/text-input-required.story.d.ts +23 -0
  458. package/lib/types/text-input/stories/text-input-sizes.story.d.ts +23 -0
  459. package/lib/types/text-input/stories/text-input-with-icons.story.d.ts +23 -0
  460. package/lib/types/text-input/stories/text-input.stories.d.ts +39 -0
  461. package/lib/types/text-link/stories/index.d.ts +26 -0
  462. package/lib/types/text-link/stories/text-link-default.story.d.ts +23 -0
  463. package/lib/types/text-link/stories/text-link-external.story.d.ts +23 -0
  464. package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts +23 -0
  465. package/lib/types/text-link/stories/text-link.stories.d.ts +28 -0
  466. package/package.json +10 -3
  467. package/lib/cjs/graph-visualization/use-managed-selection-state.js.map +0 -1
  468. package/lib/esm/graph-visualization/use-managed-selection-state.js.map +0 -1
@@ -72,7 +72,7 @@ export const CodeBlockWrapper = React.forwardRef(function CodeBlockWrapper({ as,
72
72
  height: Boolean(headerTitle) === true
73
73
  ? 'calc(100% - 24px - 12px)'
74
74
  : '100%',
75
- }, children: [_jsx("div", { className: "ndl-code-pseudo-element" }), _jsx("div", { ref: syntaxHighlighterWrapperRef, className: "ndl-highlight-wrapper", role: "textbox", "aria-label": "code-snippet", tabIndex: 0, children: children }), _jsx("div", { className: "ndl-code-pseudo-element" })] })] }), _jsx("div", { className: classNames('ndl-code-block-actions', {
75
+ }, children: [_jsx("div", { className: "ndl-code-pseudo-element" }), _jsx("div", { ref: syntaxHighlighterWrapperRef, className: "ndl-highlight-wrapper", role: "textbox", "aria-label": "Code snippet", tabIndex: 0, children: children }), _jsx("div", { className: "ndl-code-pseudo-element" })] })] }), _jsx("div", { className: classNames('ndl-code-block-actions', {
76
76
  'ndl-disabled': isDisabled,
77
77
  }), children: actions === null || actions === void 0 ? void 0 : actions.map((iconButtonProps, i) => {
78
78
  const { htmlAttributes, ariaLabel } = iconButtonProps, restIconButtonProps = __rest(iconButtonProps, ["htmlAttributes", "ariaLabel"]);
@@ -123,6 +123,6 @@ export const Avatar = React.forwardRef(function Avatar(_a, ref) {
123
123
  const isStatusIndicatorVisible = hasStatus && !isDisabled && status;
124
124
  return (_jsxs(Component, Object.assign({ ref: ref, className: classes, style: style, "aria-hidden": !isButton }, (isButton && {
125
125
  disabled: isDisabled,
126
- }), { "aria-label": `avatar ${name}` }, restProps, htmlAttributes, { children: [_jsx("div", { className: classNames(shapeClasses, typeClass), "data-testid": "ndl-avatar-container", children: TypeComponent }), isStatusIndicatorVisible && (_jsx(StatusIndicator, { size: size, status: status }))] })));
126
+ }), { "aria-label": `Avatar ${name}` }, restProps, htmlAttributes, { children: [_jsx("div", { className: classNames(shapeClasses, typeClass), "data-testid": "ndl-avatar-container", children: TypeComponent }), isStatusIndicatorVisible && (_jsx(StatusIndicator, { size: size, status: status }))] })));
127
127
  });
128
128
  //# sourceMappingURL=Avatar.js.map
@@ -32,7 +32,7 @@ const BreadcrumbsBaseItem = React.forwardRef(function BreadcrumbsBaseItem({ as,
32
32
  const classes = classNames('ndl-breadcrumbs-base-item-link', className, {
33
33
  'ndl-breadcrumbs-base-item-link-active': isCurrentPage,
34
34
  });
35
- return (_jsx("li", { className: "ndl-breadcrumbs-base-item", ref: ref, children: _jsx(Component, Object.assign({ role: "button", tabIndex: 0, "aria-label": "home", className: classes, href: href, onClick: (event) => {
35
+ return (_jsx("li", { className: "ndl-breadcrumbs-base-item", ref: ref, children: _jsx(Component, Object.assign({ role: "button", tabIndex: 0, "aria-label": "Home", className: classes, href: href, onClick: (event) => {
36
36
  if (onClick)
37
37
  onClick(event, href);
38
38
  } }, htmlAttributes, { children: children })) }));
@@ -117,7 +117,7 @@ BreadcrumbsMenuItem.displayName = 'Breadcrumbs.MenuItem';
117
117
  const BreadcrumbsComponent = ({ as, children, className, htmlAttributes, }) => {
118
118
  const Component = as || 'nav';
119
119
  const classes = classNames('ndl-breadcrumbs ndl-breadcrumbs-old', className);
120
- return (_jsx(Component, Object.assign({ "aria-label": "breadcrumb", className: classes }, htmlAttributes, { children: _jsx("ol", { children: children }) })));
120
+ return (_jsx(Component, Object.assign({ "aria-label": "Breadcrumb", className: classes }, htmlAttributes, { children: _jsx("ol", { children: children }) })));
121
121
  };
122
122
  BreadcrumbsComponent.displayName = 'Breadcrumbs';
123
123
  // Issue with TypeScript forwardRef and subcomponents: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-894053907
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ import { SHORT_CODE_EXAMPLE } from './example-code-snippets';
25
+ const Component = () => {
26
+ return _jsx(Code, { code: SHORT_CODE_EXAMPLE, language: "typescript" });
27
+ };
28
+ export default Component;
29
+ //# sourceMappingURL=code-default.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-default.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-default.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,IAAI,IAAC,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAC,YAAY,GAAG,CAAC;AAClE,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ import { PlayCircleIconOutline, Square2StackIconOutline, } from '@neo4j-ndl/react/icons';
25
+ import { SHORT_CODE_EXAMPLE } from './example-code-snippets';
26
+ const Component = () => {
27
+ return (_jsx(Code, { code: SHORT_CODE_EXAMPLE, language: "typescript", type: "block", headerTitle: "Code Header", isDisabled: true, actions: [
28
+ {
29
+ ariaLabel: 'copy',
30
+ children: (_jsx(Square2StackIconOutline, { className: "n-text-palette-neutral-text-icon" })),
31
+ htmlAttributes: { title: 'copy' },
32
+ onClick: () => alert('This should not trigger when disabled'),
33
+ },
34
+ {
35
+ ariaLabel: 'run',
36
+ children: (_jsx(PlayCircleIconOutline, { className: "n-text-palette-primary-icon" })),
37
+ htmlAttributes: { title: 'run' },
38
+ onClick: () => alert('This should not trigger when disabled'),
39
+ },
40
+ ] }));
41
+ };
42
+ export default Component;
43
+ //# sourceMappingURL=code-disabled.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-disabled.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,UAAU,QACV,OAAO,EAAE;YACP;gBACE,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,CACR,KAAC,uBAAuB,IAAC,SAAS,EAAC,kCAAkC,GAAG,CACzE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uCAAuC,CAAC;aAC9D;YACD;gBACE,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,CACR,KAAC,qBAAqB,IAAC,SAAS,EAAC,6BAA6B,GAAG,CAClE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uCAAuC,CAAC;aAC9D;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ import { PlayCircleIconOutline, Square2StackIconOutline, } from '@neo4j-ndl/react/icons';
25
+ import { LONG_CODE_EXAMPLE } from './example-code-snippets';
26
+ const Component = () => {
27
+ return (_jsx(Code, { code: LONG_CODE_EXAMPLE, maxHeight: 320, type: "block", language: "typescript", showLineNumbers: true, theme: "ndl-code-light", headerTitle: "Code Header", actions: [
28
+ {
29
+ ariaLabel: 'copy',
30
+ children: (_jsx(Square2StackIconOutline, { className: "n-text-palette-neutral-text-icon" })),
31
+ htmlAttributes: { title: 'copy' },
32
+ onClick: () => alert('copied'),
33
+ },
34
+ {
35
+ ariaLabel: 'run',
36
+ children: (_jsx(PlayCircleIconOutline, { className: "n-text-palette-primary-icon" })),
37
+ htmlAttributes: { title: 'run' },
38
+ onClick: () => alert('running'),
39
+ },
40
+ ], isDisabled: false }));
41
+ };
42
+ export default Component;
43
+ //# sourceMappingURL=code-full.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-full.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-full.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,iBAAiB,EACvB,SAAS,EAAE,GAAG,EACd,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAC,YAAY,EACrB,eAAe,QACf,KAAK,EAAC,gBAAgB,EACtB,WAAW,EAAC,aAAa,EACzB,OAAO,EAAE;YACP;gBACE,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,CACR,KAAC,uBAAuB,IAAC,SAAS,EAAC,kCAAkC,GAAG,CACzE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;aAC/B;YACD;gBACE,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,CACR,KAAC,qBAAqB,IAAC,SAAS,EAAC,6BAA6B,GAAG,CAClE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;aAChC;SACF,EACD,UAAU,EAAE,KAAK,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsx(Code, { code: ":help cypher", type: "inline", isRunnable: true, tooltipText: "run", onClick: () => alert(`Executing: :help cypher`) }));
26
+ };
27
+ export default Component;
28
+ //# sourceMappingURL=code-inline-runnable.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-inline-runnable.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-inline-runnable.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,QAAQ,EACb,UAAU,QACV,WAAW,EAAC,KAAK,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC,GAC/C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsx(Code, { code: ":help cypher", type: "inline", tooltipText: "Copy to clipboard", onClick: () => alert('Copied to clipboard') }));
26
+ };
27
+ export default Component;
28
+ //# sourceMappingURL=code-inline.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-inline.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-inline.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,QAAQ,EACb,WAAW,EAAC,mBAAmB,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,GAC3C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ import { LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES } from './example-code-snippets';
25
+ const Component = () => {
26
+ return (_jsxs("div", { className: "n-flex n-flex-col n-gap-token-4", children: [_jsx(Code, { code: LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.TYPESCRIPT, language: "typescript", type: "block", headerTitle: "TypeScript", showLineNumbers: true }), _jsx(Code, { code: LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.CYPHER, language: "cypher", type: "block", headerTitle: "Cypher Query Language", showLineNumbers: true }), _jsx(Code, { code: LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.JSON, language: "json", type: "block", headerTitle: "JSON Configuration", showLineNumbers: true })] }));
27
+ };
28
+ export default Component;
29
+ //# sourceMappingURL=code-languages.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-languages.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-languages.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,qCAAqC,EAAE,MAAM,yBAAyB,CAAC;AAEhF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,eAAK,SAAS,EAAC,iCAAiC,aAC9C,KAAC,IAAI,IACH,IAAI,EAAE,qCAAqC,CAAC,UAAU,EACtD,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,YAAY,EACxB,eAAe,SACf,EAEF,KAAC,IAAI,IACH,IAAI,EAAE,qCAAqC,CAAC,MAAM,EAClD,QAAQ,EAAC,QAAQ,EACjB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,uBAAuB,EACnC,eAAe,SACf,EAEF,KAAC,IAAI,IACH,IAAI,EAAE,qCAAqC,CAAC,IAAI,EAChD,QAAQ,EAAC,MAAM,EACf,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,oBAAoB,EAChC,eAAe,SACf,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ import { LONG_CODE_EXAMPLE } from './example-code-snippets';
25
+ const Component = () => {
26
+ return (_jsx(Code, { code: LONG_CODE_EXAMPLE, language: "typescript", type: "block", headerTitle: "Code Header", maxHeight: 320 }));
27
+ };
28
+ export default Component;
29
+ //# sourceMappingURL=code-overflow.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-overflow.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-overflow.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,iBAAiB,EACvB,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,SAAS,EAAE,GAAG,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ import { PlayCircleIconOutline, Square2StackIconOutline, } from '@neo4j-ndl/react/icons';
25
+ import { SHORT_CODE_EXAMPLE } from './example-code-snippets';
26
+ const Component = () => {
27
+ return (_jsx(Code, { code: SHORT_CODE_EXAMPLE, language: "typescript", type: "block", maxHeight: 320, actions: [
28
+ {
29
+ ariaLabel: 'copy',
30
+ children: (_jsx(Square2StackIconOutline, { className: "n-text-palette-neutral-text-icon" })),
31
+ htmlAttributes: { title: 'copy' },
32
+ onClick: () => alert('Code copied to clipboard!'),
33
+ },
34
+ {
35
+ ariaLabel: 'run',
36
+ children: (_jsx(PlayCircleIconOutline, { className: "n-text-palette-primary-icon" })),
37
+ htmlAttributes: { title: 'run' },
38
+ onClick: () => alert('Running code...'),
39
+ },
40
+ ] }));
41
+ };
42
+ export default Component;
43
+ //# sourceMappingURL=code-with-actions.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-with-actions.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-with-actions.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,GAAG,EACd,OAAO,EAAE;YACP;gBACE,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,CACR,KAAC,uBAAuB,IAAC,SAAS,EAAC,kCAAkC,GAAG,CACzE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,2BAA2B,CAAC;aAClD;YACD;gBACE,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,CACR,KAAC,qBAAqB,IAAC,SAAS,EAAC,6BAA6B,GAAG,CAClE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC;aACxC;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ import { SHORT_CODE_EXAMPLE } from './example-code-snippets';
25
+ const Component = () => {
26
+ return (_jsx(Code, { code: SHORT_CODE_EXAMPLE, language: "typescript", headerTitle: "Code Header" }));
27
+ };
28
+ export default Component;
29
+ //# sourceMappingURL=code-with-header.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-with-header.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-with-header.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,WAAW,EAAC,aAAa,GACzB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Code } from '@neo4j-ndl/react';
24
+ import { SHORT_CODE_EXAMPLE } from './example-code-snippets';
25
+ const Component = () => {
26
+ return (_jsx(Code, { code: SHORT_CODE_EXAMPLE, language: "typescript", type: "block", headerTitle: "Code Header", showLineNumbers: true }));
27
+ };
28
+ export default Component;
29
+ //# sourceMappingURL=code-with-line-numbers.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-with-line-numbers.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-with-line-numbers.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,eAAe,SACf,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,163 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import { Code } from '@neo4j-ndl/react';
22
+ import { CodeDefault, CodeDefaultSrc, CodeDisabled, CodeDisabledSrc, CodeFull, CodeFullSrc, CodeInline, CodeInlineRunnable, CodeInlineRunnableSrc, CodeInlineSrc, CodeLanguages, CodeLanguagesSrc, CodeLineNumbers, CodeLineNumbersSrc, CodeOverflow, CodeOverflowSrc, CodeWithActions, CodeWithActionsSrc, CodeWithHeader, CodeWithHeaderSrc, } from './index';
23
+ const componentMeta = {
24
+ title: 'Components/Code',
25
+ id: 'components-code',
26
+ component: Code,
27
+ tags: ['docsPage'],
28
+ parameters: {
29
+ controls: { disable: true },
30
+ },
31
+ };
32
+ export default componentMeta;
33
+ export const Default = {
34
+ args: {},
35
+ parameters: {
36
+ docs: {
37
+ source: {
38
+ code: CodeDefaultSrc,
39
+ language: 'tsx',
40
+ type: 'code',
41
+ },
42
+ },
43
+ },
44
+ render: CodeDefault,
45
+ };
46
+ export const WithActions = {
47
+ args: {},
48
+ parameters: {
49
+ docs: {
50
+ source: {
51
+ code: CodeWithActionsSrc,
52
+ language: 'tsx',
53
+ type: 'code',
54
+ },
55
+ },
56
+ },
57
+ render: CodeWithActions,
58
+ };
59
+ export const WithHeader = {
60
+ args: {},
61
+ parameters: {
62
+ docs: {
63
+ source: {
64
+ code: CodeWithHeaderSrc,
65
+ language: 'tsx',
66
+ type: 'code',
67
+ },
68
+ },
69
+ },
70
+ render: CodeWithHeader,
71
+ };
72
+ export const Overflow = {
73
+ args: {},
74
+ parameters: {
75
+ docs: {
76
+ source: {
77
+ code: CodeOverflowSrc,
78
+ language: 'tsx',
79
+ type: 'code',
80
+ },
81
+ },
82
+ },
83
+ render: CodeOverflow,
84
+ };
85
+ export const Disabled = {
86
+ args: {},
87
+ parameters: {
88
+ docs: {
89
+ source: {
90
+ code: CodeDisabledSrc,
91
+ language: 'tsx',
92
+ type: 'code',
93
+ },
94
+ },
95
+ },
96
+ render: CodeDisabled,
97
+ };
98
+ export const LineNumbers = {
99
+ args: {},
100
+ parameters: {
101
+ docs: {
102
+ source: {
103
+ code: CodeLineNumbersSrc,
104
+ language: 'tsx',
105
+ type: 'code',
106
+ },
107
+ },
108
+ },
109
+ render: CodeLineNumbers,
110
+ };
111
+ export const Languages = {
112
+ args: {},
113
+ parameters: {
114
+ docs: {
115
+ source: {
116
+ code: CodeLanguagesSrc,
117
+ language: 'tsx',
118
+ type: 'code',
119
+ },
120
+ },
121
+ },
122
+ render: CodeLanguages,
123
+ };
124
+ export const Inline = {
125
+ args: {},
126
+ parameters: {
127
+ docs: {
128
+ source: {
129
+ code: CodeInlineSrc,
130
+ language: 'tsx',
131
+ type: 'code',
132
+ },
133
+ },
134
+ },
135
+ render: CodeInline,
136
+ };
137
+ export const InlineRunnable = {
138
+ args: {},
139
+ parameters: {
140
+ docs: {
141
+ source: {
142
+ code: CodeInlineRunnableSrc,
143
+ language: 'tsx',
144
+ type: 'code',
145
+ },
146
+ },
147
+ },
148
+ render: CodeInlineRunnable,
149
+ };
150
+ export const Full = {
151
+ args: {},
152
+ parameters: {
153
+ docs: {
154
+ source: {
155
+ code: CodeFullSrc,
156
+ language: 'tsx',
157
+ type: 'code',
158
+ },
159
+ },
160
+ },
161
+ render: CodeFull,
162
+ };
163
+ //# sourceMappingURL=code.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.stories.js","sourceRoot":"","sources":["../../../../src/code/stories/code.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGxC,OAAO,EACL,WAAW,EACX,cAAc,EACd,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,iBAAiB,GAClB,MAAM,SAAS,CAAC;AAEjB,MAAM,aAAa,GAAsB;IACvC,KAAK,EAAE,iBAAiB;IACxB,EAAE,EAAE,iBAAiB;IACrB,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;CACF,CAAC;AAEF,eAAe,aAAa,CAAC;AAE7B,MAAM,CAAC,MAAM,OAAO,GAA0B;IAC5C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA0B;IAChD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,kBAAkB;gBACxB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,eAAe;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA0B;IAC/C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,iBAAiB;gBACvB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,cAAc;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,eAAe;gBACrB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,YAAY;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,eAAe;gBACrB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,YAAY;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA0B;IAChD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,kBAAkB;gBACxB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,eAAe;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA0B;IAC9C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,gBAAgB;gBACtB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,aAAa;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAA0B;IAC3C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,aAAa;gBACnB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,UAAU;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,qBAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAA0B;IACzC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,WAAW;gBACjB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,QAAQ;CACjB,CAAC"}