@neo4j-ndl/react 4.18.13 → 4.20.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 (246) hide show
  1. package/lib/LICENSES.txt +54 -0
  2. package/lib/NOTICE.txt +8 -0
  3. package/lib/cjs/_common/use-semi-controlled-state.js +6 -1
  4. package/lib/cjs/_common/use-semi-controlled-state.js.map +1 -1
  5. package/lib/cjs/combobox/Combobox.js +1031 -0
  6. package/lib/cjs/combobox/Combobox.js.map +1 -0
  7. package/lib/cjs/combobox/combobox-types.js +23 -0
  8. package/lib/cjs/combobox/combobox-types.js.map +1 -0
  9. package/lib/cjs/combobox/combobox-utils.js +129 -0
  10. package/lib/cjs/combobox/combobox-utils.js.map +1 -0
  11. package/lib/cjs/combobox/index.js +26 -0
  12. package/lib/cjs/combobox/index.js.map +1 -0
  13. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js +82 -0
  14. package/lib/cjs/combobox/stories/combobox-action-on-select.story.js.map +1 -0
  15. package/lib/cjs/combobox/stories/combobox-actions.story.js +78 -0
  16. package/lib/cjs/combobox/stories/combobox-actions.story.js.map +1 -0
  17. package/lib/cjs/combobox/stories/combobox-async.story.js +75 -0
  18. package/lib/cjs/combobox/stories/combobox-async.story.js.map +1 -0
  19. package/lib/cjs/combobox/stories/combobox-clean.story.js +38 -0
  20. package/lib/cjs/combobox/stories/combobox-clean.story.js.map +1 -0
  21. package/lib/cjs/combobox/stories/combobox-creatable.story.js +41 -0
  22. package/lib/cjs/combobox/stories/combobox-creatable.story.js.map +1 -0
  23. package/lib/cjs/combobox/stories/combobox-custom-multi.story.js +45 -0
  24. package/lib/cjs/combobox/stories/combobox-custom-multi.story.js.map +1 -0
  25. package/lib/cjs/combobox/stories/combobox-custom-single.story.js +44 -0
  26. package/lib/cjs/combobox/stories/combobox-custom-single.story.js.map +1 -0
  27. package/lib/cjs/combobox/stories/combobox-custom-trigger.story.js +60 -0
  28. package/lib/cjs/combobox/stories/combobox-custom-trigger.story.js.map +1 -0
  29. package/lib/cjs/combobox/stories/combobox-default.story.js +42 -0
  30. package/lib/cjs/combobox/stories/combobox-default.story.js.map +1 -0
  31. package/lib/cjs/combobox/stories/combobox-descriptions.story.js +45 -0
  32. package/lib/cjs/combobox/stories/combobox-descriptions.story.js.map +1 -0
  33. package/lib/cjs/combobox/stories/combobox-disabled.story.js +34 -0
  34. package/lib/cjs/combobox/stories/combobox-disabled.story.js.map +1 -0
  35. package/lib/cjs/combobox/stories/combobox-fluid.story.js +34 -0
  36. package/lib/cjs/combobox/stories/combobox-fluid.story.js.map +1 -0
  37. package/lib/cjs/combobox/stories/combobox-groups.story.js +49 -0
  38. package/lib/cjs/combobox/stories/combobox-groups.story.js.map +1 -0
  39. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js +33 -0
  40. package/lib/cjs/combobox/stories/combobox-hidden-label.story.js.map +1 -0
  41. package/lib/cjs/combobox/stories/combobox-icons.story.js +46 -0
  42. package/lib/cjs/combobox/stories/combobox-icons.story.js.map +1 -0
  43. package/lib/cjs/combobox/stories/combobox-in-dialog.story.js +40 -0
  44. package/lib/cjs/combobox/stories/combobox-in-dialog.story.js.map +1 -0
  45. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js +40 -0
  46. package/lib/cjs/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -0
  47. package/lib/cjs/combobox/stories/combobox-in-popover.story.js +36 -0
  48. package/lib/cjs/combobox/stories/combobox-in-popover.story.js.map +1 -0
  49. package/lib/cjs/combobox/stories/combobox-large-data-set.story.js +36 -0
  50. package/lib/cjs/combobox/stories/combobox-large-data-set.story.js.map +1 -0
  51. package/lib/cjs/combobox/stories/combobox-max-rows.story.js +42 -0
  52. package/lib/cjs/combobox/stories/combobox-max-rows.story.js.map +1 -0
  53. package/lib/cjs/combobox/stories/combobox-multi.story.js +45 -0
  54. package/lib/cjs/combobox/stories/combobox-multi.story.js.map +1 -0
  55. package/lib/cjs/combobox/stories/combobox-native-form.story.js +49 -0
  56. package/lib/cjs/combobox/stories/combobox-native-form.story.js.map +1 -0
  57. package/lib/cjs/combobox/stories/combobox-select-only.story.js +38 -0
  58. package/lib/cjs/combobox/stories/combobox-select-only.story.js.map +1 -0
  59. package/lib/cjs/combobox/stories/combobox-sizes.story.js +33 -0
  60. package/lib/cjs/combobox/stories/combobox-sizes.story.js.map +1 -0
  61. package/lib/cjs/combobox/stories/combobox-unlimited-rows.story.js +42 -0
  62. package/lib/cjs/combobox/stories/combobox-unlimited-rows.story.js.map +1 -0
  63. package/lib/cjs/combobox/stories/combobox-validation.story.js +33 -0
  64. package/lib/cjs/combobox/stories/combobox-validation.story.js.map +1 -0
  65. package/lib/cjs/combobox/stories/index.js +133 -0
  66. package/lib/cjs/combobox/stories/index.js.map +1 -0
  67. package/lib/cjs/combobox/use-combobox-multi-value-overflow.js +173 -0
  68. package/lib/cjs/combobox/use-combobox-multi-value-overflow.js.map +1 -0
  69. package/lib/cjs/combobox/use-combobox-popover.js +80 -0
  70. package/lib/cjs/combobox/use-combobox-popover.js.map +1 -0
  71. package/lib/cjs/date-picker/DatePicker.js.map +1 -1
  72. package/lib/cjs/dismissible-tag/DismissibleTag.js +1 -1
  73. package/lib/cjs/dismissible-tag/DismissibleTag.js.map +1 -1
  74. package/lib/cjs/icons/generated/custom/PencilSparkle.js +30 -0
  75. package/lib/cjs/icons/generated/custom/PencilSparkle.js.map +1 -0
  76. package/lib/cjs/icons/generated/custom/index.js +4 -2
  77. package/lib/cjs/icons/generated/custom/index.js.map +1 -1
  78. package/lib/cjs/index.js +1 -0
  79. package/lib/cjs/index.js.map +1 -1
  80. package/lib/cjs/select/Select.js +3 -0
  81. package/lib/cjs/select/Select.js.map +1 -1
  82. package/lib/cjs/text-area/TextArea.js.map +1 -1
  83. package/lib/cjs/text-input/TextInput.js.map +1 -1
  84. package/lib/esm/_common/use-semi-controlled-state.js +6 -1
  85. package/lib/esm/_common/use-semi-controlled-state.js.map +1 -1
  86. package/lib/esm/combobox/Combobox.js +1024 -0
  87. package/lib/esm/combobox/Combobox.js.map +1 -0
  88. package/lib/esm/combobox/combobox-types.js +22 -0
  89. package/lib/esm/combobox/combobox-types.js.map +1 -0
  90. package/lib/esm/combobox/combobox-utils.js +112 -0
  91. package/lib/esm/combobox/combobox-utils.js.map +1 -0
  92. package/lib/esm/combobox/index.js +22 -0
  93. package/lib/esm/combobox/index.js.map +1 -0
  94. package/lib/esm/combobox/stories/combobox-action-on-select.story.js +80 -0
  95. package/lib/esm/combobox/stories/combobox-action-on-select.story.js.map +1 -0
  96. package/lib/esm/combobox/stories/combobox-actions.story.js +76 -0
  97. package/lib/esm/combobox/stories/combobox-actions.story.js.map +1 -0
  98. package/lib/esm/combobox/stories/combobox-async.story.js +73 -0
  99. package/lib/esm/combobox/stories/combobox-async.story.js.map +1 -0
  100. package/lib/esm/combobox/stories/combobox-clean.story.js +36 -0
  101. package/lib/esm/combobox/stories/combobox-clean.story.js.map +1 -0
  102. package/lib/esm/combobox/stories/combobox-creatable.story.js +39 -0
  103. package/lib/esm/combobox/stories/combobox-creatable.story.js.map +1 -0
  104. package/lib/esm/combobox/stories/combobox-custom-multi.story.js +43 -0
  105. package/lib/esm/combobox/stories/combobox-custom-multi.story.js.map +1 -0
  106. package/lib/esm/combobox/stories/combobox-custom-single.story.js +42 -0
  107. package/lib/esm/combobox/stories/combobox-custom-single.story.js.map +1 -0
  108. package/lib/esm/combobox/stories/combobox-custom-trigger.story.js +58 -0
  109. package/lib/esm/combobox/stories/combobox-custom-trigger.story.js.map +1 -0
  110. package/lib/esm/combobox/stories/combobox-default.story.js +40 -0
  111. package/lib/esm/combobox/stories/combobox-default.story.js.map +1 -0
  112. package/lib/esm/combobox/stories/combobox-descriptions.story.js +43 -0
  113. package/lib/esm/combobox/stories/combobox-descriptions.story.js.map +1 -0
  114. package/lib/esm/combobox/stories/combobox-disabled.story.js +32 -0
  115. package/lib/esm/combobox/stories/combobox-disabled.story.js.map +1 -0
  116. package/lib/esm/combobox/stories/combobox-fluid.story.js +32 -0
  117. package/lib/esm/combobox/stories/combobox-fluid.story.js.map +1 -0
  118. package/lib/esm/combobox/stories/combobox-groups.story.js +47 -0
  119. package/lib/esm/combobox/stories/combobox-groups.story.js.map +1 -0
  120. package/lib/esm/combobox/stories/combobox-hidden-label.story.js +31 -0
  121. package/lib/esm/combobox/stories/combobox-hidden-label.story.js.map +1 -0
  122. package/lib/esm/combobox/stories/combobox-icons.story.js +44 -0
  123. package/lib/esm/combobox/stories/combobox-icons.story.js.map +1 -0
  124. package/lib/esm/combobox/stories/combobox-in-dialog.story.js +38 -0
  125. package/lib/esm/combobox/stories/combobox-in-dialog.story.js.map +1 -0
  126. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js +38 -0
  127. package/lib/esm/combobox/stories/combobox-in-popover-dialog.story.js.map +1 -0
  128. package/lib/esm/combobox/stories/combobox-in-popover.story.js +34 -0
  129. package/lib/esm/combobox/stories/combobox-in-popover.story.js.map +1 -0
  130. package/lib/esm/combobox/stories/combobox-large-data-set.story.js +34 -0
  131. package/lib/esm/combobox/stories/combobox-large-data-set.story.js.map +1 -0
  132. package/lib/esm/combobox/stories/combobox-max-rows.story.js +40 -0
  133. package/lib/esm/combobox/stories/combobox-max-rows.story.js.map +1 -0
  134. package/lib/esm/combobox/stories/combobox-multi.story.js +43 -0
  135. package/lib/esm/combobox/stories/combobox-multi.story.js.map +1 -0
  136. package/lib/esm/combobox/stories/combobox-native-form.story.js +47 -0
  137. package/lib/esm/combobox/stories/combobox-native-form.story.js.map +1 -0
  138. package/lib/esm/combobox/stories/combobox-select-only.story.js +36 -0
  139. package/lib/esm/combobox/stories/combobox-select-only.story.js.map +1 -0
  140. package/lib/esm/combobox/stories/combobox-sizes.story.js +31 -0
  141. package/lib/esm/combobox/stories/combobox-sizes.story.js.map +1 -0
  142. package/lib/esm/combobox/stories/combobox-unlimited-rows.story.js +40 -0
  143. package/lib/esm/combobox/stories/combobox-unlimited-rows.story.js.map +1 -0
  144. package/lib/esm/combobox/stories/combobox-validation.story.js +31 -0
  145. package/lib/esm/combobox/stories/combobox-validation.story.js.map +1 -0
  146. package/lib/esm/combobox/stories/index.js +100 -0
  147. package/lib/esm/combobox/stories/index.js.map +1 -0
  148. package/lib/esm/combobox/use-combobox-multi-value-overflow.js +166 -0
  149. package/lib/esm/combobox/use-combobox-multi-value-overflow.js.map +1 -0
  150. package/lib/esm/combobox/use-combobox-popover.js +77 -0
  151. package/lib/esm/combobox/use-combobox-popover.js.map +1 -0
  152. package/lib/esm/date-picker/DatePicker.js.map +1 -1
  153. package/lib/esm/dismissible-tag/DismissibleTag.js +1 -1
  154. package/lib/esm/dismissible-tag/DismissibleTag.js.map +1 -1
  155. package/lib/esm/icons/generated/custom/PencilSparkle.js +28 -0
  156. package/lib/esm/icons/generated/custom/PencilSparkle.js.map +1 -0
  157. package/lib/esm/icons/generated/custom/index.js +1 -0
  158. package/lib/esm/icons/generated/custom/index.js.map +1 -1
  159. package/lib/esm/index.js +1 -0
  160. package/lib/esm/index.js.map +1 -1
  161. package/lib/esm/select/Select.js +3 -0
  162. package/lib/esm/select/Select.js.map +1 -1
  163. package/lib/esm/text-area/TextArea.js.map +1 -1
  164. package/lib/esm/text-input/TextInput.js.map +1 -1
  165. package/lib/types/_common/use-semi-controlled-state.d.ts +5 -1
  166. package/lib/types/_common/use-semi-controlled-state.d.ts.map +1 -1
  167. package/lib/types/combobox/Combobox.d.ts +24 -0
  168. package/lib/types/combobox/Combobox.d.ts.map +1 -0
  169. package/lib/types/combobox/combobox-types.d.ts +419 -0
  170. package/lib/types/combobox/combobox-types.d.ts.map +1 -0
  171. package/lib/types/combobox/combobox-utils.d.ts +81 -0
  172. package/lib/types/combobox/combobox-utils.d.ts.map +1 -0
  173. package/lib/types/combobox/index.d.ts +23 -0
  174. package/lib/types/combobox/index.d.ts.map +1 -0
  175. package/lib/types/combobox/stories/combobox-action-on-select.story.d.ts +24 -0
  176. package/lib/types/combobox/stories/combobox-action-on-select.story.d.ts.map +1 -0
  177. package/lib/types/combobox/stories/combobox-actions.story.d.ts +24 -0
  178. package/lib/types/combobox/stories/combobox-actions.story.d.ts.map +1 -0
  179. package/lib/types/combobox/stories/combobox-async.story.d.ts +24 -0
  180. package/lib/types/combobox/stories/combobox-async.story.d.ts.map +1 -0
  181. package/lib/types/combobox/stories/combobox-clean.story.d.ts +24 -0
  182. package/lib/types/combobox/stories/combobox-clean.story.d.ts.map +1 -0
  183. package/lib/types/combobox/stories/combobox-creatable.story.d.ts +24 -0
  184. package/lib/types/combobox/stories/combobox-creatable.story.d.ts.map +1 -0
  185. package/lib/types/combobox/stories/combobox-custom-multi.story.d.ts +24 -0
  186. package/lib/types/combobox/stories/combobox-custom-multi.story.d.ts.map +1 -0
  187. package/lib/types/combobox/stories/combobox-custom-single.story.d.ts +24 -0
  188. package/lib/types/combobox/stories/combobox-custom-single.story.d.ts.map +1 -0
  189. package/lib/types/combobox/stories/combobox-custom-trigger.story.d.ts +24 -0
  190. package/lib/types/combobox/stories/combobox-custom-trigger.story.d.ts.map +1 -0
  191. package/lib/types/combobox/stories/combobox-default.story.d.ts +24 -0
  192. package/lib/types/combobox/stories/combobox-default.story.d.ts.map +1 -0
  193. package/lib/types/combobox/stories/combobox-descriptions.story.d.ts +24 -0
  194. package/lib/types/combobox/stories/combobox-descriptions.story.d.ts.map +1 -0
  195. package/lib/types/combobox/stories/combobox-disabled.story.d.ts +24 -0
  196. package/lib/types/combobox/stories/combobox-disabled.story.d.ts.map +1 -0
  197. package/lib/types/combobox/stories/combobox-fluid.story.d.ts +24 -0
  198. package/lib/types/combobox/stories/combobox-fluid.story.d.ts.map +1 -0
  199. package/lib/types/combobox/stories/combobox-groups.story.d.ts +24 -0
  200. package/lib/types/combobox/stories/combobox-groups.story.d.ts.map +1 -0
  201. package/lib/types/combobox/stories/combobox-hidden-label.story.d.ts +24 -0
  202. package/lib/types/combobox/stories/combobox-hidden-label.story.d.ts.map +1 -0
  203. package/lib/types/combobox/stories/combobox-icons.story.d.ts +24 -0
  204. package/lib/types/combobox/stories/combobox-icons.story.d.ts.map +1 -0
  205. package/lib/types/combobox/stories/combobox-in-dialog.story.d.ts +24 -0
  206. package/lib/types/combobox/stories/combobox-in-dialog.story.d.ts.map +1 -0
  207. package/lib/types/combobox/stories/combobox-in-popover-dialog.story.d.ts +24 -0
  208. package/lib/types/combobox/stories/combobox-in-popover-dialog.story.d.ts.map +1 -0
  209. package/lib/types/combobox/stories/combobox-in-popover.story.d.ts +24 -0
  210. package/lib/types/combobox/stories/combobox-in-popover.story.d.ts.map +1 -0
  211. package/lib/types/combobox/stories/combobox-large-data-set.story.d.ts +24 -0
  212. package/lib/types/combobox/stories/combobox-large-data-set.story.d.ts.map +1 -0
  213. package/lib/types/combobox/stories/combobox-max-rows.story.d.ts +24 -0
  214. package/lib/types/combobox/stories/combobox-max-rows.story.d.ts.map +1 -0
  215. package/lib/types/combobox/stories/combobox-multi.story.d.ts +24 -0
  216. package/lib/types/combobox/stories/combobox-multi.story.d.ts.map +1 -0
  217. package/lib/types/combobox/stories/combobox-native-form.story.d.ts +24 -0
  218. package/lib/types/combobox/stories/combobox-native-form.story.d.ts.map +1 -0
  219. package/lib/types/combobox/stories/combobox-select-only.story.d.ts +24 -0
  220. package/lib/types/combobox/stories/combobox-select-only.story.d.ts.map +1 -0
  221. package/lib/types/combobox/stories/combobox-sizes.story.d.ts +24 -0
  222. package/lib/types/combobox/stories/combobox-sizes.story.d.ts.map +1 -0
  223. package/lib/types/combobox/stories/combobox-unlimited-rows.story.d.ts +24 -0
  224. package/lib/types/combobox/stories/combobox-unlimited-rows.story.d.ts.map +1 -0
  225. package/lib/types/combobox/stories/combobox-validation.story.d.ts +24 -0
  226. package/lib/types/combobox/stories/combobox-validation.story.d.ts.map +1 -0
  227. package/lib/types/combobox/stories/index.d.ts +73 -0
  228. package/lib/types/combobox/stories/index.d.ts.map +1 -0
  229. package/lib/types/combobox/use-combobox-multi-value-overflow.d.ts +76 -0
  230. package/lib/types/combobox/use-combobox-multi-value-overflow.d.ts.map +1 -0
  231. package/lib/types/combobox/use-combobox-popover.d.ts +66 -0
  232. package/lib/types/combobox/use-combobox-popover.d.ts.map +1 -0
  233. package/lib/types/date-picker/DatePicker.d.ts.map +1 -1
  234. package/lib/types/dismissible-tag/DismissibleTag.d.ts.map +1 -1
  235. package/lib/types/icons/generated/custom/PencilSparkle.d.ts +29 -0
  236. package/lib/types/icons/generated/custom/PencilSparkle.d.ts.map +1 -0
  237. package/lib/types/icons/generated/custom/index.d.ts +1 -0
  238. package/lib/types/icons/generated/custom/index.d.ts.map +1 -1
  239. package/lib/types/index.d.ts +1 -0
  240. package/lib/types/index.d.ts.map +1 -1
  241. package/lib/types/select/Select.d.ts +3 -0
  242. package/lib/types/select/Select.d.ts.map +1 -1
  243. package/lib/types/text-input/TextInput.d.ts.map +1 -1
  244. package/package.json +10 -4
  245. package/skills/ndl-react/SKILL.md +20 -0
  246. package/skills/ndl-react/components/combobox.md +1487 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-disabled.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAE5C,MAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;CACnD,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACtB,iCAAK,SAAS,EAAC,gDAAgD,aAC7D,uBAAC,gBAAQ,IACP,KAAK,EAAC,wBAAwB,EAC9B,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,EACxB,UAAU,QACV,OAAO,EAAE,OAAO,GAChB,EACF,uBAAC,gBAAQ,IACP,KAAK,EAAC,uBAAuB,EAC7B,YAAY,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EACjC,UAAU,QACV,OAAO,QACP,OAAO,EAAE,OAAO,GAChB,IACE,CACP,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox } from '@neo4j-ndl/react';\n\nconst options = [\n { label: 'Neo4j', value: 'neo4j' },\n { label: 'Aura', value: 'aura' },\n { label: 'Bloom', value: 'bloom' },\n { label: 'Data Importer', value: 'data-importer' },\n];\n\nconst Component = () => (\n <div className=\"n-flex n-flex-col n-items-start n-gap-token-16\">\n <Combobox\n label=\"Disabled single select\"\n defaultValue={options[0]}\n isDisabled\n options={options}\n />\n <Combobox\n label=\"Disabled multi select\"\n defaultValue={options.slice(0, 3)}\n isDisabled\n isMulti\n options={options}\n />\n </div>\n);\n\nexport default Component;\n"]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const options = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Aura', value: 'aura' },
29
+ { label: 'Bloom', value: 'bloom' },
30
+ { label: 'Data Importer', value: 'data-importer' },
31
+ ];
32
+ const Component = () => ((0, jsx_runtime_1.jsx)("div", { className: "n-w-full", children: (0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Product", helpText: "This combobox fills the width of its parent.", isClearable: true, isFluid: true, options: options }) }));
33
+ exports.default = Component;
34
+ //# sourceMappingURL=combobox-fluid.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-fluid.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-fluid.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAE5C,MAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;CACnD,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACtB,gCAAK,SAAS,EAAC,UAAU,YACvB,uBAAC,gBAAQ,IACP,KAAK,EAAC,SAAS,EACf,QAAQ,EAAC,8CAA8C,EACvD,WAAW,QACX,OAAO,QACP,OAAO,EAAE,OAAO,GAChB,GACE,CACP,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox } from '@neo4j-ndl/react';\n\nconst options = [\n { label: 'Neo4j', value: 'neo4j' },\n { label: 'Aura', value: 'aura' },\n { label: 'Bloom', value: 'bloom' },\n { label: 'Data Importer', value: 'data-importer' },\n];\n\nconst Component = () => (\n <div className=\"n-w-full\">\n <Combobox\n label=\"Product\"\n helpText=\"This combobox fills the width of its parent.\"\n isClearable\n isFluid\n options={options}\n />\n </div>\n);\n\nexport default Component;\n"]}
@@ -0,0 +1,49 @@
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
+ let options = [
28
+ {
29
+ label: 'Group 1',
30
+ options: [
31
+ { label: 'Option 1', value: 'option-1' },
32
+ { label: 'Option 2', value: 'option-2' },
33
+ { label: 'Option 3', value: 'option-3' },
34
+ ],
35
+ },
36
+ {
37
+ label: 'Group 2',
38
+ options: [
39
+ { label: 'Option 4', value: 'option-4' },
40
+ { isDisabled: true, label: 'Option 5', value: 'option-5' },
41
+ { label: 'Option 6', value: 'option-6' },
42
+ { label: 'Option 7', value: 'option-7' },
43
+ ],
44
+ },
45
+ ];
46
+ return (0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Products by category", options: options });
47
+ };
48
+ exports.default = Component;
49
+ //# sourceMappingURL=combobox-groups.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-groups.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-groups.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAE5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,IAAI,OAAO,GAAG;QACZ;YACE,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;gBACxC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;gBACxC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;aACzC;SACF;QACD;YACE,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;gBACxC,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;gBAC1D,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;gBACxC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;aACzC;SACF;KACF,CAAC;IAEF,OAAO,uBAAC,gBAAQ,IAAC,KAAK,EAAC,sBAAsB,EAAC,OAAO,EAAE,OAAO,GAAI,CAAC;AACrE,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox } from '@neo4j-ndl/react';\n\nconst Component = () => {\n let options = [\n {\n label: 'Group 1',\n options: [\n { label: 'Option 1', value: 'option-1' },\n { label: 'Option 2', value: 'option-2' },\n { label: 'Option 3', value: 'option-3' },\n ],\n },\n {\n label: 'Group 2',\n options: [\n { label: 'Option 4', value: 'option-4' },\n { isDisabled: true, label: 'Option 5', value: 'option-5' },\n { label: 'Option 6', value: 'option-6' },\n { label: 'Option 7', value: 'option-7' },\n ],\n },\n ];\n\n return <Combobox label=\"Products by category\" options={options} />;\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const options = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Aura', value: 'aura' },
29
+ { label: 'Bloom', value: 'bloom' },
30
+ ];
31
+ const Component = () => ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-4", children: [(0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-medium", children: "Filter results by product" }), (0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Product", hasVisuallyHiddenLabel: true, options: options, placeholder: "All products" })] }));
32
+ exports.default = Component;
33
+ //# sourceMappingURL=combobox-hidden-label.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-hidden-label.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-hidden-label.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwD;AAExD,MAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CACnC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACtB,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,0CAAuC,EACxE,uBAAC,gBAAQ,IACP,KAAK,EAAC,SAAS,EACf,sBAAsB,QACtB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAC,cAAc,GAC1B,IACE,CACP,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox, Typography } from '@neo4j-ndl/react';\n\nconst options = [\n { label: 'Neo4j', value: 'neo4j' },\n { label: 'Aura', value: 'aura' },\n { label: 'Bloom', value: 'bloom' },\n];\n\nconst Component = () => (\n <div className=\"n-flex n-flex-col n-gap-token-4\">\n <Typography variant=\"body-medium\">Filter results by product</Typography>\n <Combobox\n label=\"Product\"\n hasVisuallyHiddenLabel\n options={options}\n placeholder=\"All products\"\n />\n </div>\n);\n\nexport default Component;\n"]}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const icons_1 = require("@neo4j-ndl/react/icons");
27
+ const options = [
28
+ {
29
+ label: 'AuraDB',
30
+ leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.CloudIconOutline, {}),
31
+ value: 'auradb',
32
+ },
33
+ {
34
+ label: 'Graph Data Science',
35
+ leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.BeakerIconOutline, {}),
36
+ value: 'graph-data-science',
37
+ },
38
+ {
39
+ label: 'Neo4j Bloom',
40
+ leadingVisual: (0, jsx_runtime_1.jsx)(icons_1.BoltIconOutline, {}),
41
+ value: 'neo4j-bloom',
42
+ },
43
+ ];
44
+ const Component = () => ((0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Products", options: options, placeholder: "Select product" }));
45
+ exports.default = Component;
46
+ //# sourceMappingURL=combobox-icons.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-icons.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-icons.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAC5C,kDAIgC;AAEhC,MAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,QAAQ;QACf,aAAa,EAAE,uBAAC,wBAAgB,KAAG;QACnC,KAAK,EAAE,QAAQ;KAChB;IACD;QACE,KAAK,EAAE,oBAAoB;QAC3B,aAAa,EAAE,uBAAC,yBAAiB,KAAG;QACpC,KAAK,EAAE,oBAAoB;KAC5B;IACD;QACE,KAAK,EAAE,aAAa;QACpB,aAAa,EAAE,uBAAC,uBAAe,KAAG;QAClC,KAAK,EAAE,aAAa;KACrB;CACF,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACtB,uBAAC,gBAAQ,IAAC,KAAK,EAAC,UAAU,EAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAC,gBAAgB,GAAG,CAC7E,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox } from '@neo4j-ndl/react';\nimport {\n BeakerIconOutline,\n BoltIconOutline,\n CloudIconOutline,\n} from '@neo4j-ndl/react/icons';\n\nconst options = [\n {\n label: 'AuraDB',\n leadingVisual: <CloudIconOutline />,\n value: 'auradb',\n },\n {\n label: 'Graph Data Science',\n leadingVisual: <BeakerIconOutline />,\n value: 'graph-data-science',\n },\n {\n label: 'Neo4j Bloom',\n leadingVisual: <BoltIconOutline />,\n value: 'neo4j-bloom',\n },\n];\n\nconst Component = () => (\n <Combobox label=\"Products\" options={options} placeholder=\"Select product\" />\n);\n\nexport default Component;\n"]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const options = [
28
+ { label: 'Neo4j', value: 'neo4j' },
29
+ { label: 'Aura', value: 'aura' },
30
+ { label: 'Bloom', value: 'bloom' },
31
+ { label: 'Data Importer', value: 'data-importer' },
32
+ { label: 'GraphQL Library', value: 'graphql-library' },
33
+ { label: 'Cypher', value: 'cypher' },
34
+ ];
35
+ const Component = () => {
36
+ const [isOpen, setIsOpen] = (0, react_2.useState)(false);
37
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => setIsOpen(true), children: "Open dialog" }), (0, jsx_runtime_1.jsxs)(react_1.Dialog, { isOpen: isOpen, onClose: () => setIsOpen(false), size: "medium", children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Combobox in a dialog" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Description, { children: "The panel automatically uses fixed positioning and stays inside the dialog rather than being portaled." }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Content, { children: (0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Product", helpText: "Open the list to inspect clipping and stacking.", isFluid: true, options: options, searchPlaceholder: "Search products" }) })] })] }));
38
+ };
39
+ exports.default = Component;
40
+ //# sourceMappingURL=combobox-in-dialog.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-in-dialog.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-in-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAkE;AAClE,iCAAiC;AAEjC,MAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAClD,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;IACtD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;CACrC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,6DACE,uBAAC,oBAAY,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,4BAA4B,EACxE,wBAAC,cAAM,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,QAAQ,aACpE,uBAAC,cAAM,CAAC,MAAM,uCAAqC,EACnD,uBAAC,cAAM,CAAC,WAAW,yHAGE,EACrB,uBAAC,cAAM,CAAC,OAAO,cACb,uBAAC,gBAAQ,IACP,KAAK,EAAC,SAAS,EACf,QAAQ,EAAC,iDAAiD,EAC1D,OAAO,QACP,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAC,iBAAiB,GACnC,GACa,IACV,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox, Dialog, FilledButton } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst options = [\n { label: 'Neo4j', value: 'neo4j' },\n { label: 'Aura', value: 'aura' },\n { label: 'Bloom', value: 'bloom' },\n { label: 'Data Importer', value: 'data-importer' },\n { label: 'GraphQL Library', value: 'graphql-library' },\n { label: 'Cypher', value: 'cypher' },\n];\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState(false);\n\n return (\n <>\n <FilledButton onClick={() => setIsOpen(true)}>Open dialog</FilledButton>\n <Dialog isOpen={isOpen} onClose={() => setIsOpen(false)} size=\"medium\">\n <Dialog.Header>Combobox in a dialog</Dialog.Header>\n <Dialog.Description>\n The panel automatically uses fixed positioning and stays inside the\n dialog rather than being portaled.\n </Dialog.Description>\n <Dialog.Content>\n <Combobox\n label=\"Product\"\n helpText=\"Open the list to inspect clipping and stacking.\"\n isFluid\n options={options}\n searchPlaceholder=\"Search products\"\n />\n </Dialog.Content>\n </Dialog>\n </>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const options = [
28
+ { label: 'Neo4j', value: 'neo4j' },
29
+ { label: 'Aura', value: 'aura' },
30
+ { label: 'Bloom', value: 'bloom' },
31
+ { label: 'Data Importer', value: 'data-importer' },
32
+ { label: 'GraphQL Library', value: 'graphql-library' },
33
+ { label: 'Cypher', value: 'cypher' },
34
+ ];
35
+ const Component = () => {
36
+ const [isOpen, setIsOpen] = (0, react_2.useState)(false);
37
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { onClick: () => setIsOpen(true), children: "Open dialog" }), (0, jsx_runtime_1.jsxs)(react_1.Dialog, { isOpen: isOpen, onClose: () => setIsOpen(false), size: "medium", children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Combobox in a popover in a dialog" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Description, { children: "This exercises nested portals, fixed positioning, focus handling, and stacking across all three components." }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Content, { children: (0, jsx_runtime_1.jsxs)(react_1.Popover, { isPortaled: true, hasAnchorPortal: true, strategy: "fixed", children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-w-[400px] n-p-token-16", children: (0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Product", errorText: "This error styling should inherit the dialog theme.", isFluid: true, options: options, searchPlaceholder: "Search products" }) })] }) })] })] }));
38
+ };
39
+ exports.default = Component;
40
+ //# sourceMappingURL=combobox-in-popover-dialog.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-in-popover-dialog.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-in-popover-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2E;AAC3E,iCAAiC;AAEjC,MAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAClD,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;IACtD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;CACrC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,6DACE,uBAAC,oBAAY,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,4BAA4B,EACxE,wBAAC,cAAM,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,QAAQ,aACpE,uBAAC,cAAM,CAAC,MAAM,oDAAkD,EAChE,uBAAC,cAAM,CAAC,WAAW,8HAGE,EACrB,uBAAC,cAAM,CAAC,OAAO,cACb,wBAAC,eAAO,IAAC,UAAU,QAAC,eAAe,QAAC,QAAQ,EAAC,OAAO,aAClD,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,+BAA4B,GACzB,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,0BAA0B,YACnD,uBAAC,gBAAQ,IACP,KAAK,EAAC,SAAS,EACf,SAAS,EAAC,qDAAqD,EAC/D,OAAO,QACP,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAC,iBAAiB,GACnC,GACc,IACV,GACK,IACV,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox, Dialog, FilledButton, Popover } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\nconst options = [\n { label: 'Neo4j', value: 'neo4j' },\n { label: 'Aura', value: 'aura' },\n { label: 'Bloom', value: 'bloom' },\n { label: 'Data Importer', value: 'data-importer' },\n { label: 'GraphQL Library', value: 'graphql-library' },\n { label: 'Cypher', value: 'cypher' },\n];\n\nconst Component = () => {\n const [isOpen, setIsOpen] = useState(false);\n\n return (\n <>\n <FilledButton onClick={() => setIsOpen(true)}>Open dialog</FilledButton>\n <Dialog isOpen={isOpen} onClose={() => setIsOpen(false)} size=\"medium\">\n <Dialog.Header>Combobox in a popover in a dialog</Dialog.Header>\n <Dialog.Description>\n This exercises nested portals, fixed positioning, focus handling, and\n stacking across all three components.\n </Dialog.Description>\n <Dialog.Content>\n <Popover isPortaled hasAnchorPortal strategy=\"fixed\">\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"n-w-[400px] n-p-token-16\">\n <Combobox\n label=\"Product\"\n errorText=\"This error styling should inherit the dialog theme.\"\n isFluid\n options={options}\n searchPlaceholder=\"Search products\"\n />\n </Popover.Content>\n </Popover>\n </Dialog.Content>\n </Dialog>\n </>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const options = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Aura', value: 'aura' },
29
+ { label: 'Bloom', value: 'bloom' },
30
+ { label: 'Data Importer', value: 'data-importer' },
31
+ { label: 'GraphQL Library', value: 'graphql-library' },
32
+ { label: 'Cypher', value: 'cypher' },
33
+ ];
34
+ const Component = () => ((0, jsx_runtime_1.jsxs)(react_1.Popover, { isPortaled: true, children: [(0, jsx_runtime_1.jsx)(react_1.Popover.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.FilledButton, { children: "Open popover" }) }), (0, jsx_runtime_1.jsx)(react_1.Popover.Content, { className: "n-max-h-[240px] n-w-[400px] n-overflow-y-auto n-p-token-16", children: (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-16", children: [(0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-medium", children: "Scroll this popover while the combobox panel is open to verify that it remains anchored and is not clipped by the overflow container." }), (0, jsx_runtime_1.jsx)("div", { className: "n-h-[120px] n-shrink-0 n-rounded-sm n-border n-border-neutral-border-strong n-bg-neutral-bg-weak" }), (0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Product", helpText: "The combobox panel is independently portaled above this popover.", isFluid: true, options: options, searchPlaceholder: "Search products" }), (0, jsx_runtime_1.jsx)("div", { className: "n-h-[120px] n-shrink-0 n-rounded-sm n-border n-border-neutral-border-strong n-bg-neutral-bg-weak" })] }) })] }));
35
+ exports.default = Component;
36
+ //# sourceMappingURL=combobox-in-popover.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-in-popover.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-in-popover.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+E;AAE/E,MAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAClD,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;IACtD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;CACrC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACtB,wBAAC,eAAO,IAAC,UAAU,mBACjB,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,oBAAY,+BAA4B,GACzB,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,SAAS,EAAC,4DAA4D,YACrF,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,sJAGpB,EACb,gCAAK,SAAS,EAAC,kGAAkG,GAAG,EACpH,uBAAC,gBAAQ,IACP,KAAK,EAAC,SAAS,EACf,QAAQ,EAAC,kEAAkE,EAC3E,OAAO,QACP,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAC,iBAAiB,GACnC,EACF,gCAAK,SAAS,EAAC,kGAAkG,GAAG,IAChH,GACU,IACV,CACX,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox, FilledButton, Popover, Typography } from '@neo4j-ndl/react';\n\nconst options = [\n { label: 'Neo4j', value: 'neo4j' },\n { label: 'Aura', value: 'aura' },\n { label: 'Bloom', value: 'bloom' },\n { label: 'Data Importer', value: 'data-importer' },\n { label: 'GraphQL Library', value: 'graphql-library' },\n { label: 'Cypher', value: 'cypher' },\n];\n\nconst Component = () => (\n <Popover isPortaled>\n <Popover.Trigger hasButtonWrapper>\n <FilledButton>Open popover</FilledButton>\n </Popover.Trigger>\n <Popover.Content className=\"n-max-h-[240px] n-w-[400px] n-overflow-y-auto n-p-token-16\">\n <div className=\"n-flex n-flex-col n-gap-token-16\">\n <Typography variant=\"body-medium\">\n Scroll this popover while the combobox panel is open to verify that it\n remains anchored and is not clipped by the overflow container.\n </Typography>\n <div className=\"n-h-[120px] n-shrink-0 n-rounded-sm n-border n-border-neutral-border-strong n-bg-neutral-bg-weak\" />\n <Combobox\n label=\"Product\"\n helpText=\"The combobox panel is independently portaled above this popover.\"\n isFluid\n options={options}\n searchPlaceholder=\"Search products\"\n />\n <div className=\"n-h-[120px] n-shrink-0 n-rounded-sm n-border n-border-neutral-border-strong n-bg-neutral-bg-weak\" />\n </div>\n </Popover.Content>\n </Popover>\n);\n\nexport default Component;\n"]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const options = Array.from({ length: 10000 }, (_, index) => ({
28
+ label: `Node ${index + 1}`,
29
+ value: `node-${index + 1}`,
30
+ }));
31
+ const Component = () => {
32
+ const [value, setValue] = (0, react_2.useState)(options.slice(0, 1500));
33
+ return ((0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Nodes", isClearable: true, isMulti: true, options: options, value: value, onChange: (nextValue) => setValue(nextValue), helpText: "10,000 options with 1,500 selected: the list renders only its visible rows and the counter rounds to thousands." }));
34
+ };
35
+ exports.default = Component;
36
+ //# sourceMappingURL=combobox-large-data-set.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-large-data-set.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-large-data-set.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAC5C,iCAAiC;AAOjC,MAAM,OAAO,GAAa,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IACrE,KAAK,EAAE,QAAQ,KAAK,GAAG,CAAC,EAAE;IAC1B,KAAK,EAAE,QAAQ,KAAK,GAAG,CAAC,EAAE;CAC3B,CAAC,CAAC,CAAC;AAEJ,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IAE3D,OAAO,CACL,uBAAC,gBAAQ,IACP,KAAK,EAAC,OAAO,EACb,WAAW,QACX,OAAO,QACP,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,EAC5C,QAAQ,EAAC,iHAAiH,GAC1H,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\ntype Option = {\n label: string;\n value: string;\n};\n\nconst options: Option[] = Array.from({ length: 10000 }, (_, index) => ({\n label: `Node ${index + 1}`,\n value: `node-${index + 1}`,\n}));\n\nconst Component = () => {\n const [value, setValue] = useState(options.slice(0, 1500));\n\n return (\n <Combobox\n label=\"Nodes\"\n isClearable\n isMulti\n options={options}\n value={value}\n onChange={(nextValue) => setValue(nextValue)}\n helpText=\"10,000 options with 1,500 selected: the list renders only its visible rows and the counter rounds to thousands.\"\n />\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const options = [
29
+ { label: 'Neo4j', value: 'neo4j' },
30
+ { label: 'Aura', value: 'aura' },
31
+ { label: 'Bloom', value: 'bloom' },
32
+ { label: 'Data Importer', value: 'data-importer' },
33
+ { label: 'GraphQL Library', value: 'graphql-library' },
34
+ { label: 'Cypher', value: 'cypher' },
35
+ { label: 'Operations Manager', value: 'operations-manager' },
36
+ { label: 'Graph Data Science', value: 'graph-data-science' },
37
+ ];
38
+ const [value, setValue] = (0, react_2.useState)(options);
39
+ return ((0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Products", isClearable: true, isMulti: true, maxRows: 2, options: options, value: value, onChange: (nextValue) => setValue(nextValue), helpText: "Set maxRows to 2 to limit the number of rows to 2." }));
40
+ };
41
+ exports.default = Component;
42
+ //# sourceMappingURL=combobox-max-rows.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-max-rows.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-max-rows.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAC5C,iCAAiC;AAOjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAa;QACxB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;QAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QAClC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;QAClD,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;QACtD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;QACpC,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,EAAE;QAC5D,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,EAAE;KAC7D,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,OAAO,CAAC,CAAC;IAE5C,OAAO,CACL,uBAAC,gBAAQ,IACP,KAAK,EAAC,UAAU,EAChB,WAAW,QACX,OAAO,QACP,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,EAC5C,QAAQ,EAAC,oDAAoD,GAC7D,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox } from '@neo4j-ndl/react';\nimport { useState } from 'react';\n\ntype Option = {\n label: string;\n value: string;\n};\n\nconst Component = () => {\n const options: Option[] = [\n { label: 'Neo4j', value: 'neo4j' },\n { label: 'Aura', value: 'aura' },\n { label: 'Bloom', value: 'bloom' },\n { label: 'Data Importer', value: 'data-importer' },\n { label: 'GraphQL Library', value: 'graphql-library' },\n { label: 'Cypher', value: 'cypher' },\n { label: 'Operations Manager', value: 'operations-manager' },\n { label: 'Graph Data Science', value: 'graph-data-science' },\n ];\n const [value, setValue] = useState(options);\n\n return (\n <Combobox\n label=\"Products\"\n isClearable\n isMulti\n maxRows={2}\n options={options}\n value={value}\n onChange={(nextValue) => setValue(nextValue)}\n helpText=\"Set maxRows to 2 to limit the number of rows to 2.\"\n />\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const options = [
29
+ { label: 'Neo4j', value: 'neo4j' },
30
+ { label: 'Aura', value: 'aura' },
31
+ { label: 'Bloom', value: 'bloom' },
32
+ { label: 'Data Importer', value: 'data-importer' },
33
+ {
34
+ label: 'GraphQL Library has a really really long label',
35
+ value: 'graphql-library',
36
+ },
37
+ { label: 'Cypher', value: 'cypher' },
38
+ { isDisabled: true, label: 'Unavailable', value: 'unavailable' },
39
+ { label: 'Operations Manager', value: 'operations-manager' },
40
+ ];
41
+ const [value, setValue] = (0, react_2.useState)(options.slice(0, 5));
42
+ return ((0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Products", isClearable: true, isMulti: true, options: options, value: value, onChange: (nextValue) => setValue(nextValue) }));
43
+ };
44
+ exports.default = Component;
45
+ //# sourceMappingURL=combobox-multi.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-multi.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-multi.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAC5C,iCAAiD;AAUjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAa;QACxB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;QAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QAClC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;QAClD;YACE,KAAK,EAAE,gDAAgD;YACvD,KAAK,EAAE,iBAAiB;SACzB;QACD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;QACpC,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;QAChE,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,EAAE;KAC7D,CAAC;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAExD,OAAO,CACL,uBAAC,gBAAQ,IACP,KAAK,EAAC,UAAU,EAChB,WAAW,QACX,OAAO,QACP,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,GAC5C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Combobox } from '@neo4j-ndl/react';\nimport { type ReactNode, useState } from 'react';\n\ntype Option = {\n label: string;\n value: string;\n leadingVisual?: ReactNode;\n description?: string;\n isDisabled?: boolean;\n};\n\nconst Component = () => {\n const options: Option[] = [\n { label: 'Neo4j', value: 'neo4j' },\n { label: 'Aura', value: 'aura' },\n { label: 'Bloom', value: 'bloom' },\n { label: 'Data Importer', value: 'data-importer' },\n {\n label: 'GraphQL Library has a really really long label',\n value: 'graphql-library',\n },\n { label: 'Cypher', value: 'cypher' },\n { isDisabled: true, label: 'Unavailable', value: 'unavailable' },\n { label: 'Operations Manager', value: 'operations-manager' },\n ];\n const [value, setValue] = useState(options.slice(0, 5));\n\n return (\n <Combobox\n label=\"Products\"\n isClearable\n isMulti\n options={options}\n value={value}\n onChange={(nextValue) => setValue(nextValue)}\n />\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const products = [
28
+ { label: 'Neo4j', value: 'neo4j' },
29
+ { label: 'Aura', value: 'aura' },
30
+ { label: 'Bloom', value: 'bloom' },
31
+ ];
32
+ const environments = [
33
+ { label: 'Development', value: 'development' },
34
+ { label: 'Staging', value: 'staging' },
35
+ { label: 'Production', value: 'production' },
36
+ ];
37
+ const Component = () => {
38
+ const triggerRef = (0, react_2.useRef)(null);
39
+ const [submittedValues, setSubmittedValues] = (0, react_2.useState)([]);
40
+ const handleSubmit = (event) => {
41
+ event.preventDefault();
42
+ setSubmittedValues(Array.from(new FormData(event.currentTarget).entries()).map(([name, value]) => `${name}: ${String(value)}`));
43
+ };
44
+ return ((0, jsx_runtime_1.jsxs)("form", { className: "n-flex n-max-w-xl n-flex-col n-gap-token-6", onSubmit: handleSubmit, children: [(0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Product", name: "product", options: products, defaultValue: products[0], isRequired: true, hasRequiredIndicator: true, triggerRef: triggerRef }), (0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Environments", name: "environment", options: environments, defaultValue: [environments[0], environments[1]], isMulti: true }), (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-wrap n-gap-token-2", children: [(0, jsx_runtime_1.jsx)(react_1.FilledButton, { type: "submit", children: "Submit" }), (0, jsx_runtime_1.jsx)(react_1.OutlinedButton, { type: "reset", children: "Reset" }), (0, jsx_runtime_1.jsx)(react_1.TextButton, { type: "button", onClick: () => { var _a; return (_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, children: "Focus product" })] }), (0, jsx_runtime_1.jsxs)("div", { "aria-live": "polite", children: [(0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-medium", children: "Submitted form data" }), (0, jsx_runtime_1.jsx)("pre", { className: "n-mt-token-2", children: submittedValues.length > 0
45
+ ? submittedValues.join('\n')
46
+ : 'Submit the form to inspect its values.' })] })] }));
47
+ };
48
+ exports.default = Component;
49
+ //# sourceMappingURL=combobox-native-form.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox-native-form.story.js","sourceRoot":"","sources":["../../../../src/combobox/stories/combobox-native-form.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAM0B;AAC1B,iCAAyD;AAEzD,MAAM,QAAQ,GAAG;IACf,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CACnC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;IAC9C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACtC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;CAC7C,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,UAAU,GAAG,IAAA,cAAM,EAAqB,IAAI,CAAC,CAAC;IACpD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAW,EAAE,CAAC,CAAC;IAErE,MAAM,YAAY,GAAG,CAAC,KAAiC,EAAE,EAAE;QACzD,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,kBAAkB,CAChB,KAAK,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CACzD,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,CAC/C,CACF,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,kCACE,SAAS,EAAC,4CAA4C,EACtD,QAAQ,EAAE,YAAY,aAEtB,uBAAC,gBAAQ,IACP,KAAK,EAAC,SAAS,EACf,IAAI,EAAC,SAAS,EACd,OAAO,EAAE,QAAQ,EACjB,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,EACzB,UAAU,QACV,oBAAoB,QACpB,UAAU,EAAE,UAAU,GACtB,EACF,uBAAC,gBAAQ,IACP,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,aAAa,EAClB,OAAO,EAAE,YAAY,EACrB,YAAY,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,EAChD,OAAO,SACP,EACF,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,uBAAC,oBAAY,IAAC,IAAI,EAAC,QAAQ,uBAAsB,EACjD,uBAAC,sBAAc,IAAC,IAAI,EAAC,OAAO,sBAAuB,EACnD,uBAAC,kBAAU,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,UAAU,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAA,EAAA,8BAEvD,IACT,EACN,8CAAe,QAAQ,aACrB,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,oCAAiC,EAClE,gCAAK,SAAS,EAAC,cAAc,YAC1B,eAAe,CAAC,MAAM,GAAG,CAAC;4BACzB,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;4BAC5B,CAAC,CAAC,wCAAwC,GACxC,IACF,IACD,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n Combobox,\n FilledButton,\n OutlinedButton,\n TextButton,\n Typography,\n} from '@neo4j-ndl/react';\nimport { type FormEvent, useRef, useState } from 'react';\n\nconst products = [\n { label: 'Neo4j', value: 'neo4j' },\n { label: 'Aura', value: 'aura' },\n { label: 'Bloom', value: 'bloom' },\n];\n\nconst environments = [\n { label: 'Development', value: 'development' },\n { label: 'Staging', value: 'staging' },\n { label: 'Production', value: 'production' },\n];\n\nconst Component = () => {\n const triggerRef = useRef<HTMLElement | null>(null);\n const [submittedValues, setSubmittedValues] = useState<string[]>([]);\n\n const handleSubmit = (event: FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n setSubmittedValues(\n Array.from(new FormData(event.currentTarget).entries()).map(\n ([name, value]) => `${name}: ${String(value)}`,\n ),\n );\n };\n\n return (\n <form\n className=\"n-flex n-max-w-xl n-flex-col n-gap-token-6\"\n onSubmit={handleSubmit}\n >\n <Combobox\n label=\"Product\"\n name=\"product\"\n options={products}\n defaultValue={products[0]}\n isRequired\n hasRequiredIndicator\n triggerRef={triggerRef}\n />\n <Combobox\n label=\"Environments\"\n name=\"environment\"\n options={environments}\n defaultValue={[environments[0], environments[1]]}\n isMulti\n />\n <div className=\"n-flex n-flex-wrap n-gap-token-2\">\n <FilledButton type=\"submit\">Submit</FilledButton>\n <OutlinedButton type=\"reset\">Reset</OutlinedButton>\n <TextButton type=\"button\" onClick={() => triggerRef.current?.focus()}>\n Focus product\n </TextButton>\n </div>\n <div aria-live=\"polite\">\n <Typography variant=\"body-medium\">Submitted form data</Typography>\n <pre className=\"n-mt-token-2\">\n {submittedValues.length > 0\n ? submittedValues.join('\\n')\n : 'Submit the form to inspect its values.'}\n </pre>\n </div>\n </form>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ const options = [
28
+ { label: 'Neo4j', value: 'neo4j' },
29
+ { label: 'Aura', value: 'aura' },
30
+ { label: 'Bloom', value: 'bloom' },
31
+ { isDisabled: true, label: 'Cypher', value: 'cypher' },
32
+ ];
33
+ // A list this short has nothing to filter, so the search input is turned
34
+ // off and the combobox follows the select-only pattern.
35
+ return (0, jsx_runtime_1.jsx)(react_1.Combobox, { label: "Products", isSearchable: false, options: options });
36
+ };
37
+ exports.default = Component;
38
+ //# sourceMappingURL=combobox-select-only.story.js.map