@neo4j-ndl/react 3.9.3 → 3.9.5

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 (190) hide show
  1. package/lib/cjs/next/side-navigation/stories/side-nav-default.story.js +1 -1
  2. package/lib/cjs/next/side-navigation/stories/side-nav-default.story.js.map +1 -1
  3. package/lib/cjs/select/stories/index.js +80 -0
  4. package/lib/cjs/select/stories/index.js.map +1 -0
  5. package/lib/cjs/select/stories/select-async.story.js +52 -0
  6. package/lib/cjs/select/stories/select-async.story.js.map +1 -0
  7. package/lib/cjs/select/stories/select-clean.story.js +40 -0
  8. package/lib/cjs/select/stories/select-clean.story.js.map +1 -0
  9. package/lib/cjs/select/stories/select-controlled.story.js +45 -0
  10. package/lib/cjs/select/stories/select-controlled.story.js.map +1 -0
  11. package/lib/cjs/select/stories/select-creatable.story.js +41 -0
  12. package/lib/cjs/select/stories/select-creatable.story.js.map +1 -0
  13. package/lib/cjs/select/stories/select-custom-label.story.js +42 -0
  14. package/lib/cjs/select/stories/select-custom-label.story.js.map +1 -0
  15. package/lib/cjs/select/stories/select-default.story.js +40 -0
  16. package/lib/cjs/select/stories/select-default.story.js.map +1 -0
  17. package/lib/cjs/select/stories/select-disabled.story.js +41 -0
  18. package/lib/cjs/select/stories/select-disabled.story.js.map +1 -0
  19. package/lib/cjs/select/stories/select-empty.story.js +34 -0
  20. package/lib/cjs/select/stories/select-empty.story.js.map +1 -0
  21. package/lib/cjs/select/stories/select-error-state.story.js +40 -0
  22. package/lib/cjs/select/stories/select-error-state.story.js.map +1 -0
  23. package/lib/cjs/select/stories/select-inside-modal.story.js +44 -0
  24. package/lib/cjs/select/stories/select-inside-modal.story.js.map +1 -0
  25. package/lib/cjs/select/stories/select-menu-positionings.story.js +47 -0
  26. package/lib/cjs/select/stories/select-menu-positionings.story.js.map +1 -0
  27. package/lib/cjs/select/stories/select-multi.story.js +43 -0
  28. package/lib/cjs/select/stories/select-multi.story.js.map +1 -0
  29. package/lib/cjs/select/stories/select-sizes.story.js +46 -0
  30. package/lib/cjs/select/stories/select-sizes.story.js.map +1 -0
  31. package/lib/cjs/select/stories/select.stories.js +226 -0
  32. package/lib/cjs/select/stories/select.stories.js.map +1 -0
  33. package/lib/cjs/spotlight/stories/index.js +59 -0
  34. package/lib/cjs/spotlight/stories/index.js.map +1 -0
  35. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js +48 -0
  36. package/lib/cjs/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -0
  37. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js +49 -0
  38. package/lib/cjs/spotlight/stories/spotlight-in-dialog.story.js.map +1 -0
  39. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js +53 -0
  40. package/lib/cjs/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -0
  41. package/lib/cjs/spotlight/stories/spotlight-tour.story.js +46 -0
  42. package/lib/cjs/spotlight/stories/spotlight-tour.story.js.map +1 -0
  43. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js +49 -0
  44. package/lib/cjs/spotlight/stories/spotlight-with-icon.story.js.map +1 -0
  45. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js +48 -0
  46. package/lib/cjs/spotlight/stories/spotlight-with-image.story.js.map +1 -0
  47. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js +48 -0
  48. package/lib/cjs/spotlight/stories/spotlight-with-label.story.js.map +1 -0
  49. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js +48 -0
  50. package/lib/cjs/spotlight/stories/spotlight-with-pointer.story.js.map +1 -0
  51. package/lib/cjs/spotlight/stories/spotlight.stories.js +163 -0
  52. package/lib/cjs/spotlight/stories/spotlight.stories.js.map +1 -0
  53. package/lib/cjs/tooltip/stories/index.js +68 -0
  54. package/lib/cjs/tooltip/stories/index.js.map +1 -0
  55. package/lib/cjs/tooltip/stories/tooltip-controlled.story.js +32 -0
  56. package/lib/cjs/tooltip/stories/tooltip-controlled.story.js.map +1 -0
  57. package/lib/cjs/tooltip/stories/tooltip-default.story.js +30 -0
  58. package/lib/cjs/tooltip/stories/tooltip-default.story.js.map +1 -0
  59. package/lib/cjs/tooltip/stories/tooltip-disabled.story.js +30 -0
  60. package/lib/cjs/tooltip/stories/tooltip-disabled.story.js.map +1 -0
  61. package/lib/cjs/tooltip/stories/tooltip-hover-delay.story.js +30 -0
  62. package/lib/cjs/tooltip/stories/tooltip-hover-delay.story.js.map +1 -0
  63. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js +30 -0
  64. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js.map +1 -0
  65. package/lib/cjs/tooltip/stories/tooltip-initial-open.story.js +30 -0
  66. package/lib/cjs/tooltip/stories/tooltip-initial-open.story.js.map +1 -0
  67. package/lib/cjs/tooltip/stories/tooltip-placements.story.js +40 -0
  68. package/lib/cjs/tooltip/stories/tooltip-placements.story.js.map +1 -0
  69. package/lib/cjs/tooltip/stories/tooltip-rich-pass-through.story.js +30 -0
  70. package/lib/cjs/tooltip/stories/tooltip-rich-pass-through.story.js.map +1 -0
  71. package/lib/cjs/tooltip/stories/tooltip-rich.story.js +30 -0
  72. package/lib/cjs/tooltip/stories/tooltip-rich.story.js.map +1 -0
  73. package/lib/cjs/tooltip/stories/tooltip-trigger-button-wrapper.story.js +30 -0
  74. package/lib/cjs/tooltip/stories/tooltip-trigger-button-wrapper.story.js.map +1 -0
  75. package/lib/cjs/tooltip/stories/tooltip.stories.js +176 -0
  76. package/lib/cjs/tooltip/stories/tooltip.stories.js.map +1 -0
  77. package/lib/esm/next/side-navigation/stories/side-nav-default.story.js +1 -1
  78. package/lib/esm/next/side-navigation/stories/side-nav-default.story.js.map +1 -1
  79. package/lib/esm/select/stories/index.js +61 -0
  80. package/lib/esm/select/stories/index.js.map +1 -0
  81. package/lib/esm/select/stories/select-async.story.js +50 -0
  82. package/lib/esm/select/stories/select-async.story.js.map +1 -0
  83. package/lib/esm/select/stories/select-clean.story.js +38 -0
  84. package/lib/esm/select/stories/select-clean.story.js.map +1 -0
  85. package/lib/esm/select/stories/select-controlled.story.js +43 -0
  86. package/lib/esm/select/stories/select-controlled.story.js.map +1 -0
  87. package/lib/esm/select/stories/select-creatable.story.js +39 -0
  88. package/lib/esm/select/stories/select-creatable.story.js.map +1 -0
  89. package/lib/esm/select/stories/select-custom-label.story.js +40 -0
  90. package/lib/esm/select/stories/select-custom-label.story.js.map +1 -0
  91. package/lib/esm/select/stories/select-default.story.js +38 -0
  92. package/lib/esm/select/stories/select-default.story.js.map +1 -0
  93. package/lib/esm/select/stories/select-disabled.story.js +39 -0
  94. package/lib/esm/select/stories/select-disabled.story.js.map +1 -0
  95. package/lib/esm/select/stories/select-empty.story.js +32 -0
  96. package/lib/esm/select/stories/select-empty.story.js.map +1 -0
  97. package/lib/esm/select/stories/select-error-state.story.js +38 -0
  98. package/lib/esm/select/stories/select-error-state.story.js.map +1 -0
  99. package/lib/esm/select/stories/select-inside-modal.story.js +42 -0
  100. package/lib/esm/select/stories/select-inside-modal.story.js.map +1 -0
  101. package/lib/esm/select/stories/select-menu-positionings.story.js +45 -0
  102. package/lib/esm/select/stories/select-menu-positionings.story.js.map +1 -0
  103. package/lib/esm/select/stories/select-multi.story.js +41 -0
  104. package/lib/esm/select/stories/select-multi.story.js.map +1 -0
  105. package/lib/esm/select/stories/select-sizes.story.js +44 -0
  106. package/lib/esm/select/stories/select-sizes.story.js.map +1 -0
  107. package/lib/esm/select/stories/select.stories.js +220 -0
  108. package/lib/esm/select/stories/select.stories.js.map +1 -0
  109. package/lib/esm/spotlight/stories/index.js +45 -0
  110. package/lib/esm/spotlight/stories/index.js.map +1 -0
  111. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js +46 -0
  112. package/lib/esm/spotlight/stories/spotlight-fixed-positioning.story.js.map +1 -0
  113. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js +47 -0
  114. package/lib/esm/spotlight/stories/spotlight-in-dialog.story.js.map +1 -0
  115. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js +51 -0
  116. package/lib/esm/spotlight/stories/spotlight-in-side-nav.story.js.map +1 -0
  117. package/lib/esm/spotlight/stories/spotlight-tour.story.js +44 -0
  118. package/lib/esm/spotlight/stories/spotlight-tour.story.js.map +1 -0
  119. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js +47 -0
  120. package/lib/esm/spotlight/stories/spotlight-with-icon.story.js.map +1 -0
  121. package/lib/esm/spotlight/stories/spotlight-with-image.story.js +46 -0
  122. package/lib/esm/spotlight/stories/spotlight-with-image.story.js.map +1 -0
  123. package/lib/esm/spotlight/stories/spotlight-with-label.story.js +46 -0
  124. package/lib/esm/spotlight/stories/spotlight-with-label.story.js.map +1 -0
  125. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js +46 -0
  126. package/lib/esm/spotlight/stories/spotlight-with-pointer.story.js.map +1 -0
  127. package/lib/esm/spotlight/stories/spotlight.stories.js +157 -0
  128. package/lib/esm/spotlight/stories/spotlight.stories.js.map +1 -0
  129. package/lib/esm/tooltip/stories/index.js +52 -0
  130. package/lib/esm/tooltip/stories/index.js.map +1 -0
  131. package/lib/esm/tooltip/stories/tooltip-controlled.story.js +30 -0
  132. package/lib/esm/tooltip/stories/tooltip-controlled.story.js.map +1 -0
  133. package/lib/esm/tooltip/stories/tooltip-default.story.js +28 -0
  134. package/lib/esm/tooltip/stories/tooltip-default.story.js.map +1 -0
  135. package/lib/esm/tooltip/stories/tooltip-disabled.story.js +28 -0
  136. package/lib/esm/tooltip/stories/tooltip-disabled.story.js.map +1 -0
  137. package/lib/esm/tooltip/stories/tooltip-hover-delay.story.js +28 -0
  138. package/lib/esm/tooltip/stories/tooltip-hover-delay.story.js.map +1 -0
  139. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js +28 -0
  140. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js.map +1 -0
  141. package/lib/esm/tooltip/stories/tooltip-initial-open.story.js +28 -0
  142. package/lib/esm/tooltip/stories/tooltip-initial-open.story.js.map +1 -0
  143. package/lib/esm/tooltip/stories/tooltip-placements.story.js +38 -0
  144. package/lib/esm/tooltip/stories/tooltip-placements.story.js.map +1 -0
  145. package/lib/esm/tooltip/stories/tooltip-rich-pass-through.story.js +28 -0
  146. package/lib/esm/tooltip/stories/tooltip-rich-pass-through.story.js.map +1 -0
  147. package/lib/esm/tooltip/stories/tooltip-rich.story.js +28 -0
  148. package/lib/esm/tooltip/stories/tooltip-rich.story.js.map +1 -0
  149. package/lib/esm/tooltip/stories/tooltip-trigger-button-wrapper.story.js +28 -0
  150. package/lib/esm/tooltip/stories/tooltip-trigger-button-wrapper.story.js.map +1 -0
  151. package/lib/esm/tooltip/stories/tooltip.stories.js +170 -0
  152. package/lib/esm/tooltip/stories/tooltip.stories.js.map +1 -0
  153. package/lib/types/select/stories/index.d.ts +46 -0
  154. package/lib/types/select/stories/select-async.story.d.ts +24 -0
  155. package/lib/types/select/stories/select-clean.story.d.ts +24 -0
  156. package/lib/types/select/stories/select-controlled.story.d.ts +23 -0
  157. package/lib/types/select/stories/select-creatable.story.d.ts +24 -0
  158. package/lib/types/select/stories/select-custom-label.story.d.ts +24 -0
  159. package/lib/types/select/stories/select-default.story.d.ts +24 -0
  160. package/lib/types/select/stories/select-disabled.story.d.ts +24 -0
  161. package/lib/types/select/stories/select-empty.story.d.ts +24 -0
  162. package/lib/types/select/stories/select-error-state.story.d.ts +24 -0
  163. package/lib/types/select/stories/select-inside-modal.story.d.ts +24 -0
  164. package/lib/types/select/stories/select-menu-positionings.story.d.ts +24 -0
  165. package/lib/types/select/stories/select-multi.story.d.ts +24 -0
  166. package/lib/types/select/stories/select-sizes.story.d.ts +24 -0
  167. package/lib/types/select/stories/select.stories.d.ts +38 -0
  168. package/lib/types/spotlight/stories/index.d.ts +36 -0
  169. package/lib/types/spotlight/stories/spotlight-fixed-positioning.story.d.ts +27 -0
  170. package/lib/types/spotlight/stories/spotlight-in-dialog.story.d.ts +27 -0
  171. package/lib/types/spotlight/stories/spotlight-in-side-nav.story.d.ts +27 -0
  172. package/lib/types/spotlight/stories/spotlight-tour.story.d.ts +23 -0
  173. package/lib/types/spotlight/stories/spotlight-with-icon.story.d.ts +27 -0
  174. package/lib/types/spotlight/stories/spotlight-with-image.story.d.ts +27 -0
  175. package/lib/types/spotlight/stories/spotlight-with-label.story.d.ts +27 -0
  176. package/lib/types/spotlight/stories/spotlight-with-pointer.story.d.ts +27 -0
  177. package/lib/types/spotlight/stories/spotlight.stories.d.ts +36 -0
  178. package/lib/types/tooltip/stories/index.d.ts +40 -0
  179. package/lib/types/tooltip/stories/tooltip-controlled.story.d.ts +23 -0
  180. package/lib/types/tooltip/stories/tooltip-default.story.d.ts +23 -0
  181. package/lib/types/tooltip/stories/tooltip-disabled.story.d.ts +23 -0
  182. package/lib/types/tooltip/stories/tooltip-hover-delay.story.d.ts +23 -0
  183. package/lib/types/tooltip/stories/tooltip-in-dialog.story.d.ts +23 -0
  184. package/lib/types/tooltip/stories/tooltip-initial-open.story.d.ts +23 -0
  185. package/lib/types/tooltip/stories/tooltip-placements.story.d.ts +23 -0
  186. package/lib/types/tooltip/stories/tooltip-rich-pass-through.story.d.ts +23 -0
  187. package/lib/types/tooltip/stories/tooltip-rich.story.d.ts +23 -0
  188. package/lib/types/tooltip/stories/tooltip-trigger-button-wrapper.story.d.ts +23 -0
  189. package/lib/types/tooltip/stories/tooltip.stories.d.ts +35 -0
  190. package/package.json +3 -3
@@ -0,0 +1,43 @@
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 { Select, Typography } from '@neo4j-ndl/react';
23
+ import { useState } from 'react';
24
+ const EXAMPLE_OPTIONS = [
25
+ { label: 'Neo4j', value: 'neo4j' },
26
+ { label: 'Needle 🪡', value: 'needle' },
27
+ { label: 'Graph Databases', value: 'graph-database' },
28
+ { label: 'Disabled database option', value: 'disabled' },
29
+ ];
30
+ const Component = (props) => {
31
+ var _a;
32
+ const [value, setValue] = useState(EXAMPLE_OPTIONS[0]);
33
+ return (_jsxs("div", { className: "n-flex n-flex-col n-gap-token-4", children: [_jsx(Select, { label: "Label", type: "select", selectProps: {
34
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
35
+ value: value,
36
+ options: EXAMPLE_OPTIONS,
37
+ isMulti: false,
38
+ onChange: (newValue) => newValue && setValue(newValue),
39
+ menuPortalTarget: document.querySelector('body'),
40
+ } }), _jsxs(Typography, { variant: "body-small", children: ["Value Selected: ", JSON.stringify(value)] })] }));
41
+ };
42
+ export default Component;
43
+ //# sourceMappingURL=select-controlled.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-controlled.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-controlled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACrD,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,UAAU,EAAE;CACzD,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAChC,eAAe,CAAC,CAAC,CAAC,CACnB,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,iCAAiC,aAC9C,KAAC,MAAM,IACL,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;oBACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;oBACzC,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE,eAAe;oBACxB,OAAO,EAAE,KAAK;oBACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC;oBACtD,gBAAgB,EAAE,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC;iBACjD,GACD,EACF,MAAC,UAAU,IAAC,OAAO,EAAC,YAAY,iCACb,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAC3B,IACT,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,39 @@
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 { Select } from '@neo4j-ndl/react';
24
+ const EXAMPLE_OPTIONS = [
25
+ { label: 'Neo4j', value: 'neo4j' },
26
+ { label: 'Needle 🪡', value: 'needle' },
27
+ { label: 'Graph Databases', value: 'graph-database' },
28
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
29
+ ];
30
+ const Component = (props) => {
31
+ var _a;
32
+ return (_jsx(Select, { label: "Label", helpText: "You can create values even if they don't exist as options", type: "creatable", selectProps: {
33
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
34
+ options: EXAMPLE_OPTIONS,
35
+ isClearable: true,
36
+ } }));
37
+ };
38
+ export default Component;
39
+ //# sourceMappingURL=select-creatable.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-creatable.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-creatable.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACrD,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,UAAU,EAAE;CAC3E,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAC,OAAO,EACb,QAAQ,EAAC,2DAA2D,EACpE,IAAI,EAAC,WAAW,EAChB,WAAW,EAAE;YACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;YACzC,OAAO,EAAE,eAAe;YACxB,WAAW,EAAE,IAAI;SAClB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,40 @@
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 { Select } from '@neo4j-ndl/react';
24
+ import { QuestionMarkCircleIconOutline } from '@neo4j-ndl/react/icons';
25
+ const EXAMPLE_OPTIONS = [
26
+ { label: 'Neo4j', value: 'neo4j' },
27
+ { label: 'Needle 🪡', value: 'needle' },
28
+ { label: 'Graph Databases', value: 'graph-database' },
29
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
30
+ ];
31
+ const Component = (props) => {
32
+ var _a;
33
+ return (_jsx(Select, { label: _jsxs("div", { className: "n-flex n-flex-row n-gap-token-3 n-h-7 n-items-center", children: ["Custom JSX element", _jsx(QuestionMarkCircleIconOutline, { className: "n-h-token-6" })] }), helpText: "You can have a custom label with JSX code \uD83D\uDE31", type: "select", selectProps: {
34
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
35
+ options: EXAMPLE_OPTIONS,
36
+ defaultValue: EXAMPLE_OPTIONS[1],
37
+ } }));
38
+ };
39
+ export default Component;
40
+ //# sourceMappingURL=select-custom-label.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-custom-label.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-custom-label.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAEvE,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACrD,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,UAAU,EAAE;CAC3E,CAAC;AACF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EACH,eAAK,SAAS,EAAC,sDAAsD,mCAEnE,KAAC,6BAA6B,IAAC,SAAS,EAAC,aAAa,GAAG,IACrD,EAER,QAAQ,EAAC,wDAA8C,EACvD,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;YACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;YACzC,OAAO,EAAE,eAAe;YACxB,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;SACjC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,38 @@
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 { Select } from '@neo4j-ndl/react';
24
+ const EXAMPLE_OPTIONS = [
25
+ { label: 'Neo4j', value: 'neo4j' },
26
+ { label: 'Needle 🪡', value: 'needle' },
27
+ { label: 'Graph Databases', value: 'graph-database' },
28
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
29
+ ];
30
+ const Component = (props) => {
31
+ var _a;
32
+ return (_jsx(Select, { label: "Label", helpText: "Help text", type: "select", selectProps: {
33
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
34
+ options: EXAMPLE_OPTIONS,
35
+ } }));
36
+ };
37
+ export default Component;
38
+ //# sourceMappingURL=select-default.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-default.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-default.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACrD,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,UAAU,EAAE;CAC3E,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAC,OAAO,EACb,QAAQ,EAAC,WAAW,EACpB,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;YACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;YACzC,OAAO,EAAE,eAAe;SACzB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,39 @@
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 { Select } from '@neo4j-ndl/react';
24
+ const EXAMPLE_OPTIONS = [
25
+ { label: 'Neo4j', value: 'neo4j' },
26
+ { label: 'Needle 🪡', value: 'needle' },
27
+ { label: 'Graph Databases', value: 'graph-database' },
28
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
29
+ ];
30
+ const Component = (props) => {
31
+ var _a;
32
+ return (_jsx(Select, { label: "Label", type: "select", selectProps: {
33
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
34
+ isDisabled: true,
35
+ options: EXAMPLE_OPTIONS,
36
+ } }));
37
+ };
38
+ export default Component;
39
+ //# sourceMappingURL=select-disabled.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-disabled.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACrD,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,UAAU,EAAE;CAC3E,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;YACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;YACzC,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,eAAe;SACzB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,32 @@
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 { Select } from '@neo4j-ndl/react';
24
+ const Component = (props) => {
25
+ var _a;
26
+ return (_jsx(Select, { label: "Label", helpText: "Help text", type: "select", selectProps: {
27
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
28
+ options: [],
29
+ } }));
30
+ };
31
+ export default Component;
32
+ //# sourceMappingURL=select-empty.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-empty.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-empty.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAC,OAAO,EACb,QAAQ,EAAC,WAAW,EACpB,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;YACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;YACzC,OAAO,EAAE,EAAE;SACZ,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,38 @@
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 { Select } from '@neo4j-ndl/react';
24
+ const EXAMPLE_OPTIONS = [
25
+ { label: 'Neo4j', value: 'neo4j' },
26
+ { label: 'Needle 🪡', value: 'needle' },
27
+ { label: 'Graph Databases', value: 'graph-database' },
28
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
29
+ ];
30
+ const Component = (props) => {
31
+ var _a;
32
+ return (_jsx(Select, { label: "Label", errorText: "Validate that your selection is correct", type: "select", selectProps: {
33
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
34
+ options: EXAMPLE_OPTIONS,
35
+ } }));
36
+ };
37
+ export default Component;
38
+ //# sourceMappingURL=select-error-state.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-error-state.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-error-state.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACrD,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,UAAU,EAAE;CAC3E,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAC,OAAO,EACb,SAAS,EAAC,yCAAyC,EACnD,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;YACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;YACzC,OAAO,EAAE,eAAe;SACzB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Dialog, Select, Typography } from '@neo4j-ndl/react';
24
+ import { useRef, useState } from 'react';
25
+ const EXAMPLE_OPTIONS = [
26
+ { label: 'Neo4j', value: 'neo4j' },
27
+ { label: 'Needle 🪡', value: 'needle' },
28
+ { label: 'Graph Databases', value: 'graph-database' },
29
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
30
+ ];
31
+ const Component = (props) => {
32
+ var _a;
33
+ const ref = useRef(null);
34
+ const [isOpen, setIsOpen] = useState(false);
35
+ return (_jsxs("div", { ref: ref, className: "n-flex n-flex-col n-items-center n-justify-center n-relative n-h-[500px]", children: [_jsx(Button, { onClick: () => setIsOpen(true), children: "Open Modal" }), _jsxs(Dialog, { container: (ref === null || ref === void 0 ? void 0 : ref.current) || undefined, isOpen: isOpen, onClose: () => setIsOpen(false), "aria-label": "Dialog", children: [_jsx(Dialog.Header, { children: "Using Select inside a modal" }), _jsxs(Dialog.Description, { className: "n-flex n-flex-col n-gap-token-8", children: [_jsxs(Typography, { variant: "body-medium", children: ["To use select inside a modal and avoid the cut-off, you need to use the property ", _jsx("code", { children: "menuPosition: \"fixed\"" }), " inside the", ' ', _jsx("code", { children: "selectProps" }), ". This is done automatically if used in a Needle Dialog, but can always be overridden manually."] }), _jsx(Select, { label: "Inside a modal", type: "select", selectProps: {
36
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
37
+ options: EXAMPLE_OPTIONS,
38
+ defaultValue: EXAMPLE_OPTIONS[1],
39
+ } })] })] })] }));
40
+ };
41
+ export default Component;
42
+ //# sourceMappingURL=select-inside-modal.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-inside-modal.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-inside-modal.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACrD,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,UAAU,EAAE;CAC3E,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,MAAM,GAAG,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IAChD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAErD,OAAO,CACL,eACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,0EAA0E,aAEpF,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,2BAAqB,EAC3D,MAAC,MAAM,IACL,SAAS,EAAE,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,KAAI,SAAS,EACpC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,gBACpB,QAAQ,aAEnB,KAAC,MAAM,CAAC,MAAM,8CAA4C,EAC1D,MAAC,MAAM,CAAC,WAAW,IAAC,SAAS,EAAC,iCAAiC,aAC7D,MAAC,UAAU,IAAC,OAAO,EAAC,aAAa,kGAElB,qDAA4C,iBAAY,GAAG,EACxE,yCAAwB,uGAEb,EACb,KAAC,MAAM,IACL,KAAK,EAAC,gBAAgB,EACtB,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;oCACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;oCACzC,OAAO,EAAE,eAAe;oCACxB,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;iCACjC,GACD,IACiB,IACd,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,45 @@
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 { Select } from '@neo4j-ndl/react';
24
+ const EXAMPLE_OPTIONS = [
25
+ { label: 'Neo4j', value: 'neo4j' },
26
+ { label: 'Needle 🪡', value: 'needle' },
27
+ ];
28
+ const Component = (props) => {
29
+ var _a, _b, _c;
30
+ return (_jsxs("div", { className: "n-flex n-gap-token-6 n-pt-6", children: [_jsx(Select, { label: "Automatic menu placement", type: "select", selectProps: {
31
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
32
+ menuPlacement: 'auto',
33
+ options: EXAMPLE_OPTIONS,
34
+ } }), _jsx(Select, { label: "Bottom menu placement", type: "select", selectProps: {
35
+ menuIsOpen: (_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.menuIsOpen,
36
+ menuPlacement: 'bottom',
37
+ options: EXAMPLE_OPTIONS,
38
+ } }), _jsx(Select, { label: "Top menu placement", type: "select", selectProps: {
39
+ menuIsOpen: (_c = props.selectProps) === null || _c === void 0 ? void 0 : _c.menuIsOpen,
40
+ menuPlacement: 'top',
41
+ options: EXAMPLE_OPTIONS,
42
+ } })] }));
43
+ };
44
+ export default Component;
45
+ //# sourceMappingURL=select-menu-positionings.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-menu-positionings.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-menu-positionings.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;CACxC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,eAAK,SAAS,EAAC,6BAA6B,aAC1C,KAAC,MAAM,IACL,KAAK,EAAC,0BAA0B,EAChC,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;oBACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;oBACzC,aAAa,EAAE,MAAM;oBACrB,OAAO,EAAE,eAAe;iBACzB,GACD,EACF,KAAC,MAAM,IACL,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;oBACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;oBACzC,aAAa,EAAE,QAAQ;oBACvB,OAAO,EAAE,eAAe;iBACzB,GACD,EACF,KAAC,MAAM,IACL,KAAK,EAAC,oBAAoB,EAC1B,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;oBACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;oBACzC,aAAa,EAAE,KAAK;oBACpB,OAAO,EAAE,eAAe;iBACzB,GACD,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,41 @@
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 { Select } from '@neo4j-ndl/react';
24
+ const EXAMPLE_OPTIONS = [
25
+ { label: 'Neo4j', value: 'neo4j' },
26
+ { label: 'Needle 🪡', value: 'needle' },
27
+ { label: 'Graph Databases', value: 'graph-database' },
28
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
29
+ ];
30
+ const Component = (props) => {
31
+ var _a;
32
+ return (_jsx(Select, { label: "Label", type: "select", selectProps: {
33
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
34
+ defaultValue: EXAMPLE_OPTIONS[1],
35
+ isClearable: true,
36
+ isMulti: true,
37
+ options: EXAMPLE_OPTIONS,
38
+ } }));
39
+ };
40
+ export default Component;
41
+ //# sourceMappingURL=select-multi.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-multi.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-multi.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACrD,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,UAAU,EAAE;CAC3E,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;YACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;YACzC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;YAChC,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,eAAe;SACzB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,44 @@
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 { Select } from '@neo4j-ndl/react';
24
+ const EXAMPLE_OPTIONS = [
25
+ { label: 'Neo4j', value: 'neo4j' },
26
+ { label: 'Needle 🪡', value: 'needle' },
27
+ { label: 'Graph Databases', value: 'graph-database' },
28
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
29
+ ];
30
+ const Component = (props) => {
31
+ var _a, _b, _c;
32
+ return (_jsxs("div", { className: "n-flex n-gap-token-6", children: [_jsx(Select, { label: "Small (default)", type: "select", size: "small", selectProps: {
33
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
34
+ options: EXAMPLE_OPTIONS,
35
+ } }), _jsx(Select, { label: "Medium", type: "select", size: "medium", selectProps: {
36
+ menuIsOpen: (_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.menuIsOpen,
37
+ options: EXAMPLE_OPTIONS,
38
+ } }), _jsx(Select, { label: "Large", type: "select", size: "large", selectProps: {
39
+ menuIsOpen: (_c = props.selectProps) === null || _c === void 0 ? void 0 : _c.menuIsOpen,
40
+ options: EXAMPLE_OPTIONS,
41
+ } })] }));
42
+ };
43
+ export default Component;
44
+ //# sourceMappingURL=select-sizes.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-sizes.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-sizes.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,eAAe,GAAG;IACtB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACrD,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,UAAU,EAAE;CAC3E,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,eAAK,SAAS,EAAC,sBAAsB,aACnC,KAAC,MAAM,IACL,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,OAAO,EACZ,WAAW,EAAE;oBACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;oBACzC,OAAO,EAAE,eAAe;iBACzB,GACD,EACF,KAAC,MAAM,IACL,KAAK,EAAC,QAAQ,EACd,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE;oBACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;oBACzC,OAAO,EAAE,eAAe;iBACzB,GACD,EACF,KAAC,MAAM,IACL,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,OAAO,EACZ,WAAW,EAAE;oBACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;oBACzC,OAAO,EAAE,eAAe;iBACzB,GACD,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}