@neo4j-ndl/react 3.9.2 → 3.9.4

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 (175) 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/tooltip/stories/index.js +68 -0
  34. package/lib/cjs/tooltip/stories/index.js.map +1 -0
  35. package/lib/cjs/tooltip/stories/tooltip-controlled.story.js +32 -0
  36. package/lib/cjs/tooltip/stories/tooltip-controlled.story.js.map +1 -0
  37. package/lib/cjs/tooltip/stories/tooltip-default.story.js +30 -0
  38. package/lib/cjs/tooltip/stories/tooltip-default.story.js.map +1 -0
  39. package/lib/cjs/tooltip/stories/tooltip-disabled.story.js +30 -0
  40. package/lib/cjs/tooltip/stories/tooltip-disabled.story.js.map +1 -0
  41. package/lib/cjs/tooltip/stories/tooltip-hover-delay.story.js +30 -0
  42. package/lib/cjs/tooltip/stories/tooltip-hover-delay.story.js.map +1 -0
  43. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js +30 -0
  44. package/lib/cjs/tooltip/stories/tooltip-in-dialog.story.js.map +1 -0
  45. package/lib/cjs/tooltip/stories/tooltip-initial-open.story.js +30 -0
  46. package/lib/cjs/tooltip/stories/tooltip-initial-open.story.js.map +1 -0
  47. package/lib/cjs/tooltip/stories/tooltip-placements.story.js +40 -0
  48. package/lib/cjs/tooltip/stories/tooltip-placements.story.js.map +1 -0
  49. package/lib/cjs/tooltip/stories/tooltip-rich-pass-through.story.js +30 -0
  50. package/lib/cjs/tooltip/stories/tooltip-rich-pass-through.story.js.map +1 -0
  51. package/lib/cjs/tooltip/stories/tooltip-rich.story.js +30 -0
  52. package/lib/cjs/tooltip/stories/tooltip-rich.story.js.map +1 -0
  53. package/lib/cjs/tooltip/stories/tooltip-trigger-button-wrapper.story.js +30 -0
  54. package/lib/cjs/tooltip/stories/tooltip-trigger-button-wrapper.story.js.map +1 -0
  55. package/lib/cjs/tooltip/stories/tooltip.stories.js +176 -0
  56. package/lib/cjs/tooltip/stories/tooltip.stories.js.map +1 -0
  57. package/lib/cjs/wizard/stories/index.js +48 -0
  58. package/lib/cjs/wizard/stories/index.js.map +1 -0
  59. package/lib/cjs/wizard/stories/wizard-error-state.story.js +35 -0
  60. package/lib/cjs/wizard/stories/wizard-error-state.story.js.map +1 -0
  61. package/lib/cjs/wizard/stories/wizard-horizontal-small.story.js +35 -0
  62. package/lib/cjs/wizard/stories/wizard-horizontal-small.story.js.map +1 -0
  63. package/lib/cjs/wizard/stories/wizard-horizontal.story.js +35 -0
  64. package/lib/cjs/wizard/stories/wizard-horizontal.story.js.map +1 -0
  65. package/lib/cjs/wizard/stories/wizard-vertical-small.story.js +35 -0
  66. package/lib/cjs/wizard/stories/wizard-vertical-small.story.js.map +1 -0
  67. package/lib/cjs/wizard/stories/wizard-vertical.story.js +35 -0
  68. package/lib/cjs/wizard/stories/wizard-vertical.story.js.map +1 -0
  69. package/lib/cjs/wizard/stories/wizard.stories.js +99 -0
  70. package/lib/cjs/wizard/stories/wizard.stories.js.map +1 -0
  71. package/lib/esm/next/side-navigation/stories/side-nav-default.story.js +1 -1
  72. package/lib/esm/next/side-navigation/stories/side-nav-default.story.js.map +1 -1
  73. package/lib/esm/select/stories/index.js +61 -0
  74. package/lib/esm/select/stories/index.js.map +1 -0
  75. package/lib/esm/select/stories/select-async.story.js +50 -0
  76. package/lib/esm/select/stories/select-async.story.js.map +1 -0
  77. package/lib/esm/select/stories/select-clean.story.js +38 -0
  78. package/lib/esm/select/stories/select-clean.story.js.map +1 -0
  79. package/lib/esm/select/stories/select-controlled.story.js +43 -0
  80. package/lib/esm/select/stories/select-controlled.story.js.map +1 -0
  81. package/lib/esm/select/stories/select-creatable.story.js +39 -0
  82. package/lib/esm/select/stories/select-creatable.story.js.map +1 -0
  83. package/lib/esm/select/stories/select-custom-label.story.js +40 -0
  84. package/lib/esm/select/stories/select-custom-label.story.js.map +1 -0
  85. package/lib/esm/select/stories/select-default.story.js +38 -0
  86. package/lib/esm/select/stories/select-default.story.js.map +1 -0
  87. package/lib/esm/select/stories/select-disabled.story.js +39 -0
  88. package/lib/esm/select/stories/select-disabled.story.js.map +1 -0
  89. package/lib/esm/select/stories/select-empty.story.js +32 -0
  90. package/lib/esm/select/stories/select-empty.story.js.map +1 -0
  91. package/lib/esm/select/stories/select-error-state.story.js +38 -0
  92. package/lib/esm/select/stories/select-error-state.story.js.map +1 -0
  93. package/lib/esm/select/stories/select-inside-modal.story.js +42 -0
  94. package/lib/esm/select/stories/select-inside-modal.story.js.map +1 -0
  95. package/lib/esm/select/stories/select-menu-positionings.story.js +45 -0
  96. package/lib/esm/select/stories/select-menu-positionings.story.js.map +1 -0
  97. package/lib/esm/select/stories/select-multi.story.js +41 -0
  98. package/lib/esm/select/stories/select-multi.story.js.map +1 -0
  99. package/lib/esm/select/stories/select-sizes.story.js +44 -0
  100. package/lib/esm/select/stories/select-sizes.story.js.map +1 -0
  101. package/lib/esm/select/stories/select.stories.js +220 -0
  102. package/lib/esm/select/stories/select.stories.js.map +1 -0
  103. package/lib/esm/tooltip/stories/index.js +52 -0
  104. package/lib/esm/tooltip/stories/index.js.map +1 -0
  105. package/lib/esm/tooltip/stories/tooltip-controlled.story.js +30 -0
  106. package/lib/esm/tooltip/stories/tooltip-controlled.story.js.map +1 -0
  107. package/lib/esm/tooltip/stories/tooltip-default.story.js +28 -0
  108. package/lib/esm/tooltip/stories/tooltip-default.story.js.map +1 -0
  109. package/lib/esm/tooltip/stories/tooltip-disabled.story.js +28 -0
  110. package/lib/esm/tooltip/stories/tooltip-disabled.story.js.map +1 -0
  111. package/lib/esm/tooltip/stories/tooltip-hover-delay.story.js +28 -0
  112. package/lib/esm/tooltip/stories/tooltip-hover-delay.story.js.map +1 -0
  113. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js +28 -0
  114. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js.map +1 -0
  115. package/lib/esm/tooltip/stories/tooltip-initial-open.story.js +28 -0
  116. package/lib/esm/tooltip/stories/tooltip-initial-open.story.js.map +1 -0
  117. package/lib/esm/tooltip/stories/tooltip-placements.story.js +38 -0
  118. package/lib/esm/tooltip/stories/tooltip-placements.story.js.map +1 -0
  119. package/lib/esm/tooltip/stories/tooltip-rich-pass-through.story.js +28 -0
  120. package/lib/esm/tooltip/stories/tooltip-rich-pass-through.story.js.map +1 -0
  121. package/lib/esm/tooltip/stories/tooltip-rich.story.js +28 -0
  122. package/lib/esm/tooltip/stories/tooltip-rich.story.js.map +1 -0
  123. package/lib/esm/tooltip/stories/tooltip-trigger-button-wrapper.story.js +28 -0
  124. package/lib/esm/tooltip/stories/tooltip-trigger-button-wrapper.story.js.map +1 -0
  125. package/lib/esm/tooltip/stories/tooltip.stories.js +170 -0
  126. package/lib/esm/tooltip/stories/tooltip.stories.js.map +1 -0
  127. package/lib/esm/wizard/stories/index.js +37 -0
  128. package/lib/esm/wizard/stories/index.js.map +1 -0
  129. package/lib/esm/wizard/stories/wizard-error-state.story.js +33 -0
  130. package/lib/esm/wizard/stories/wizard-error-state.story.js.map +1 -0
  131. package/lib/esm/wizard/stories/wizard-horizontal-small.story.js +33 -0
  132. package/lib/esm/wizard/stories/wizard-horizontal-small.story.js.map +1 -0
  133. package/lib/esm/wizard/stories/wizard-horizontal.story.js +33 -0
  134. package/lib/esm/wizard/stories/wizard-horizontal.story.js.map +1 -0
  135. package/lib/esm/wizard/stories/wizard-vertical-small.story.js +33 -0
  136. package/lib/esm/wizard/stories/wizard-vertical-small.story.js.map +1 -0
  137. package/lib/esm/wizard/stories/wizard-vertical.story.js +33 -0
  138. package/lib/esm/wizard/stories/wizard-vertical.story.js.map +1 -0
  139. package/lib/esm/wizard/stories/wizard.stories.js +96 -0
  140. package/lib/esm/wizard/stories/wizard.stories.js.map +1 -0
  141. package/lib/types/select/stories/index.d.ts +46 -0
  142. package/lib/types/select/stories/select-async.story.d.ts +24 -0
  143. package/lib/types/select/stories/select-clean.story.d.ts +24 -0
  144. package/lib/types/select/stories/select-controlled.story.d.ts +23 -0
  145. package/lib/types/select/stories/select-creatable.story.d.ts +24 -0
  146. package/lib/types/select/stories/select-custom-label.story.d.ts +24 -0
  147. package/lib/types/select/stories/select-default.story.d.ts +24 -0
  148. package/lib/types/select/stories/select-disabled.story.d.ts +24 -0
  149. package/lib/types/select/stories/select-empty.story.d.ts +24 -0
  150. package/lib/types/select/stories/select-error-state.story.d.ts +24 -0
  151. package/lib/types/select/stories/select-inside-modal.story.d.ts +24 -0
  152. package/lib/types/select/stories/select-menu-positionings.story.d.ts +24 -0
  153. package/lib/types/select/stories/select-multi.story.d.ts +24 -0
  154. package/lib/types/select/stories/select-sizes.story.d.ts +24 -0
  155. package/lib/types/select/stories/select.stories.d.ts +38 -0
  156. package/lib/types/tooltip/stories/index.d.ts +40 -0
  157. package/lib/types/tooltip/stories/tooltip-controlled.story.d.ts +23 -0
  158. package/lib/types/tooltip/stories/tooltip-default.story.d.ts +23 -0
  159. package/lib/types/tooltip/stories/tooltip-disabled.story.d.ts +23 -0
  160. package/lib/types/tooltip/stories/tooltip-hover-delay.story.d.ts +23 -0
  161. package/lib/types/tooltip/stories/tooltip-in-dialog.story.d.ts +23 -0
  162. package/lib/types/tooltip/stories/tooltip-initial-open.story.d.ts +23 -0
  163. package/lib/types/tooltip/stories/tooltip-placements.story.d.ts +23 -0
  164. package/lib/types/tooltip/stories/tooltip-rich-pass-through.story.d.ts +23 -0
  165. package/lib/types/tooltip/stories/tooltip-rich.story.d.ts +23 -0
  166. package/lib/types/tooltip/stories/tooltip-trigger-button-wrapper.story.d.ts +23 -0
  167. package/lib/types/tooltip/stories/tooltip.stories.d.ts +35 -0
  168. package/lib/types/wizard/stories/index.d.ts +30 -0
  169. package/lib/types/wizard/stories/wizard-error-state.story.d.ts +23 -0
  170. package/lib/types/wizard/stories/wizard-horizontal-small.story.d.ts +23 -0
  171. package/lib/types/wizard/stories/wizard-horizontal.story.d.ts +23 -0
  172. package/lib/types/wizard/stories/wizard-vertical-small.story.d.ts +23 -0
  173. package/lib/types/wizard/stories/wizard-vertical.story.d.ts +23 -0
  174. package/lib/types/wizard/stories/wizard.stories.d.ts +30 -0
  175. package/package.json +3 -3
@@ -29,7 +29,7 @@ const react_2 = require("react");
29
29
  const Component = () => {
30
30
  const [selected, setSelected] = (0, react_2.useState)(null);
31
31
  const [isExpanded, setIsExpanded] = (0, react_2.useState)(false);
32
- return ((0, jsx_runtime_1.jsxs)("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-bg-palette-neutral-bg-default", children: [(0, jsx_runtime_1.jsxs)(next_1.SideNavigation, { isExpanded: isExpanded, shouldExpandOnHover: true, pinButtonCallback: () => setIsExpanded(!isExpanded), children: [(0, jsx_runtime_1.jsxs)(next_1.SideNavigation.List, { children: [(0, jsx_runtime_1.jsx)(next_1.SideNavigation.NavItem, { icon: (0, jsx_runtime_1.jsx)(icons_1.HomeIconOutline, {}), label: "Nav Item", isSelected: selected === 'nav-item-1', htmlAttributes: {
32
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-bg-palette-neutral-bg-default", children: [(0, jsx_runtime_1.jsxs)(next_1.SideNavigation, { isExpanded: isExpanded, shouldExpandOnHover: true, pinButtonCallback: () => setIsExpanded(!isExpanded), children: [(0, jsx_runtime_1.jsx)(next_1.SideNavigation.CategoryHeader, { children: "Example Category Header" }), (0, jsx_runtime_1.jsxs)(next_1.SideNavigation.List, { children: [(0, jsx_runtime_1.jsx)(next_1.SideNavigation.NavItem, { icon: (0, jsx_runtime_1.jsx)(icons_1.HomeIconOutline, {}), label: "Nav Item", isSelected: selected === 'nav-item-1', htmlAttributes: {
33
33
  onClick: () => {
34
34
  setSelected('nav-item-1');
35
35
  },
@@ -1 +1 @@
1
- {"version":3,"file":"side-nav-default.story.js","sourceRoot":"","sources":["../../../../../src/next/side-navigation/stories/side-nav-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;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,EACtB,uBAAC,qBAAc,CAAC,OAAO,KAAG,EAC1B,uBAAC,qBAAc,CAAC,IAAI,cAClB,uBAAC,qBAAc,CAAC,OAAO,IACrB,IAAI,EAAE,uBAAC,8BAAsB,KAAG,EAChC,KAAK,EAAC,UAAU,EAChB,UAAU,EAAE,QAAQ,KAAK,YAAY,EACrC,cAAc,EAAE;gCACd,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC;6BACzC,GACD,GACkB,IACP,EAEjB,gCAAK,SAAS,EAAC,mBAAmB,YAChC,gCAAK,SAAS,EAAC,6DAA6D,YAC1E,iCAAK,SAAS,EAAC,uHAAuH,aACpI,uBAAC,kBAAU,IAAC,OAAO,EAAC,IAAI,iCAA8B,EACtD,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,sHAGpB,IACT,GACF,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"side-nav-default.story.js","sourceRoot":"","sources":["../../../../../src/next/side-navigation/stories/side-nav-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA8C;AAC9C,kDASgC;AAChC,gDAAuD;AACvD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,CAAC,CAAC;IAC9D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,iCAAK,SAAS,EAAC,8EAA8E,aAC3F,wBAAC,qBAAc,IACb,UAAU,EAAE,UAAU,EACtB,mBAAmB,EAAE,IAAI,EACzB,iBAAiB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,aAEnD,uBAAC,qBAAc,CAAC,cAA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U,IAAC,OAAO,EAAC,aAAa,sHAGpB,IACT,GACF,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.SelectEmptySource = exports.SelectControlledSource = exports.SelectAsyncSource = exports.SelectMenuPositioningsSource = exports.SelectSizesSource = exports.SelectCleanSource = exports.SelectDisabledSource = exports.SelectInsideModalSource = exports.SelectCustomLabelSource = exports.SelectMultiSource = exports.SelectCreatableSource = exports.SelectErrorStateSource = exports.SelectDefaultSource = exports.SelectEmpty = exports.SelectControlled = exports.SelectAsync = exports.SelectMenuPositionings = exports.SelectSizes = exports.SelectClean = exports.SelectDisabled = exports.SelectInsideModal = exports.SelectCustomLabel = exports.SelectMulti = exports.SelectCreatable = exports.SelectErrorState = exports.SelectDefault = void 0;
27
+ var select_default_story_1 = require("./select-default.story");
28
+ Object.defineProperty(exports, "SelectDefault", { enumerable: true, get: function () { return __importDefault(select_default_story_1).default; } });
29
+ var select_error_state_story_1 = require("./select-error-state.story");
30
+ Object.defineProperty(exports, "SelectErrorState", { enumerable: true, get: function () { return __importDefault(select_error_state_story_1).default; } });
31
+ var select_creatable_story_1 = require("./select-creatable.story");
32
+ Object.defineProperty(exports, "SelectCreatable", { enumerable: true, get: function () { return __importDefault(select_creatable_story_1).default; } });
33
+ var select_multi_story_1 = require("./select-multi.story");
34
+ Object.defineProperty(exports, "SelectMulti", { enumerable: true, get: function () { return __importDefault(select_multi_story_1).default; } });
35
+ var select_custom_label_story_1 = require("./select-custom-label.story");
36
+ Object.defineProperty(exports, "SelectCustomLabel", { enumerable: true, get: function () { return __importDefault(select_custom_label_story_1).default; } });
37
+ var select_inside_modal_story_1 = require("./select-inside-modal.story");
38
+ Object.defineProperty(exports, "SelectInsideModal", { enumerable: true, get: function () { return __importDefault(select_inside_modal_story_1).default; } });
39
+ var select_disabled_story_1 = require("./select-disabled.story");
40
+ Object.defineProperty(exports, "SelectDisabled", { enumerable: true, get: function () { return __importDefault(select_disabled_story_1).default; } });
41
+ var select_clean_story_1 = require("./select-clean.story");
42
+ Object.defineProperty(exports, "SelectClean", { enumerable: true, get: function () { return __importDefault(select_clean_story_1).default; } });
43
+ var select_sizes_story_1 = require("./select-sizes.story");
44
+ Object.defineProperty(exports, "SelectSizes", { enumerable: true, get: function () { return __importDefault(select_sizes_story_1).default; } });
45
+ var select_menu_positionings_story_1 = require("./select-menu-positionings.story");
46
+ Object.defineProperty(exports, "SelectMenuPositionings", { enumerable: true, get: function () { return __importDefault(select_menu_positionings_story_1).default; } });
47
+ var select_async_story_1 = require("./select-async.story");
48
+ Object.defineProperty(exports, "SelectAsync", { enumerable: true, get: function () { return __importDefault(select_async_story_1).default; } });
49
+ var select_controlled_story_1 = require("./select-controlled.story");
50
+ Object.defineProperty(exports, "SelectControlled", { enumerable: true, get: function () { return __importDefault(select_controlled_story_1).default; } });
51
+ var select_empty_story_1 = require("./select-empty.story");
52
+ Object.defineProperty(exports, "SelectEmpty", { enumerable: true, get: function () { return __importDefault(select_empty_story_1).default; } });
53
+ const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
54
+ const select_async_story_raw_1 = __importDefault(require("./select-async.story?raw"));
55
+ const select_clean_story_raw_1 = __importDefault(require("./select-clean.story?raw"));
56
+ const select_controlled_story_raw_1 = __importDefault(require("./select-controlled.story?raw"));
57
+ const select_creatable_story_raw_1 = __importDefault(require("./select-creatable.story?raw"));
58
+ const select_custom_label_story_raw_1 = __importDefault(require("./select-custom-label.story?raw"));
59
+ const select_default_story_raw_1 = __importDefault(require("./select-default.story?raw"));
60
+ const select_disabled_story_raw_1 = __importDefault(require("./select-disabled.story?raw"));
61
+ const select_empty_story_raw_1 = __importDefault(require("./select-empty.story?raw"));
62
+ const select_error_state_story_raw_1 = __importDefault(require("./select-error-state.story?raw"));
63
+ const select_inside_modal_story_raw_1 = __importDefault(require("./select-inside-modal.story?raw"));
64
+ const select_menu_positionings_story_raw_1 = __importDefault(require("./select-menu-positionings.story?raw"));
65
+ const select_multi_story_raw_1 = __importDefault(require("./select-multi.story?raw"));
66
+ const select_sizes_story_raw_1 = __importDefault(require("./select-sizes.story?raw"));
67
+ exports.SelectDefaultSource = (0, export_stories_utils_1.removeLicenseHeader)(select_default_story_raw_1.default);
68
+ exports.SelectErrorStateSource = (0, export_stories_utils_1.removeLicenseHeader)(select_error_state_story_raw_1.default);
69
+ exports.SelectCreatableSource = (0, export_stories_utils_1.removeLicenseHeader)(select_creatable_story_raw_1.default);
70
+ exports.SelectMultiSource = (0, export_stories_utils_1.removeLicenseHeader)(select_multi_story_raw_1.default);
71
+ exports.SelectCustomLabelSource = (0, export_stories_utils_1.removeLicenseHeader)(select_custom_label_story_raw_1.default);
72
+ exports.SelectInsideModalSource = (0, export_stories_utils_1.removeLicenseHeader)(select_inside_modal_story_raw_1.default);
73
+ exports.SelectDisabledSource = (0, export_stories_utils_1.removeLicenseHeader)(select_disabled_story_raw_1.default);
74
+ exports.SelectCleanSource = (0, export_stories_utils_1.removeLicenseHeader)(select_clean_story_raw_1.default);
75
+ exports.SelectSizesSource = (0, export_stories_utils_1.removeLicenseHeader)(select_sizes_story_raw_1.default);
76
+ exports.SelectMenuPositioningsSource = (0, export_stories_utils_1.removeLicenseHeader)(select_menu_positionings_story_raw_1.default);
77
+ exports.SelectAsyncSource = (0, export_stories_utils_1.removeLicenseHeader)(select_async_story_raw_1.default);
78
+ exports.SelectControlledSource = (0, export_stories_utils_1.removeLicenseHeader)(select_controlled_story_raw_1.default);
79
+ exports.SelectEmptySource = (0, export_stories_utils_1.removeLicenseHeader)(select_empty_story_raw_1.default);
80
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/select/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,+DAAkE;AAAzD,sIAAA,OAAO,OAAiB;AACjC,uEAAyE;AAAhE,6IAAA,OAAO,OAAoB;AACpC,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,yEAA2E;AAAlE,+IAAA,OAAO,OAAqB;AACrC,yEAA2E;AAAlE,+IAAA,OAAO,OAAqB;AACrC,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,mFAAqF;AAA5E,yJAAA,OAAO,OAA0B;AAC1C,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,qEAAwE;AAA/D,4IAAA,OAAO,OAAoB;AACpC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAE/B,wFAAoF;AAEpF,sFAA4D;AAC5D,sFAA4D;AAC5D,gGAAsE;AACtE,8FAAoE;AACpE,oGAAyE;AACzE,0FAAgE;AAChE,4FAAkE;AAClE,sFAA4D;AAC5D,kGAAuE;AACvE,oGAAyE;AACzE,8GAAmF;AACnF,sFAA4D;AAC5D,sFAA4D;AAE/C,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,kCAAsB,CAAC,CAAC;AAClE,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,sCAAyB,CAC1B,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,oCAAwB,CACzB,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,uCAA0B,CAC3B,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,uCAA0B,CAC3B,CAAC;AACW,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,mCAAuB,CACxB,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,4BAA4B,GAAG,IAAA,0CAAmB,EAC7D,4CAA+B,CAChC,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,qCAAyB,CAC1B,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC"}
@@ -0,0 +1,52 @@
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 EXAMPLE_OPTIONS = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Needle 🪡', value: 'needle' },
29
+ { label: 'Graph Databases', value: 'graph-database' },
30
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
31
+ ];
32
+ const loadOptions = (inputValue) => {
33
+ return new Promise((resolve) => {
34
+ setTimeout(() => {
35
+ const filteredOptions = EXAMPLE_OPTIONS.filter((option) => option.label.toLowerCase().includes(inputValue.toLowerCase()));
36
+ resolve(filteredOptions);
37
+ }, 1000);
38
+ });
39
+ };
40
+ const Component = (props) => {
41
+ var _a;
42
+ return ((0, jsx_runtime_1.jsx)(react_1.Select, { label: "Label", helpText: "Start typing to load options dynamically", type: "async", selectProps: {
43
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
44
+ loadOptions,
45
+ placeholder: 'Type to search...',
46
+ isClearable: true,
47
+ cacheOptions: true,
48
+ defaultOptions: true,
49
+ } }));
50
+ };
51
+ exports.default = Component;
52
+ //# sourceMappingURL=select-async.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-async.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-async.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA0C;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,WAAW,GAAG,CAAC,UAAkB,EAAE,EAAE;IACzC,OAAO,IAAI,OAAO,CAAyB,CAAC,OAAO,EAAE,EAAE;QACrD,UAAU,CAAC,GAAG,EAAE;YACd,MAAM,eAAe,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CACxD,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAC9D,CAAC;YACF,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3B,CAAC,EAAE,IAAI,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,uBAAC,cAAM,IACL,KAAK,EAAC,OAAO,EACb,QAAQ,EAAC,0CAA0C,EACnD,IAAI,EAAC,OAAO,EACZ,WAAW,EAAE;YACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;YACzC,WAAW;YACX,WAAW,EAAE,mBAAmB;YAChC,WAAW,EAAE,IAAI;YACjB,YAAY,EAAE,IAAI;YAClB,cAAc,EAAE,IAAI;SACrB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -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 EXAMPLE_OPTIONS = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Needle 🪡', value: 'needle' },
29
+ { label: 'Graph Databases', value: 'graph-database' },
30
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
31
+ ];
32
+ const Component = (props) => {
33
+ var _a;
34
+ return ((0, jsx_runtime_1.jsx)(react_1.Select, { label: "Label", type: "select", hasBorder: false, isFluid: false, selectProps: {
35
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
36
+ options: EXAMPLE_OPTIONS,
37
+ } }));
38
+ };
39
+ exports.default = Component;
40
+ //# sourceMappingURL=select-clean.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-clean.story.js","sourceRoot":"","sources":["../../../../src/select/stories/select-clean.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA0C;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,uBAAC,cAAM,IACL,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,KAAK,EAChB,OAAO,EAAE,KAAK,EACd,WAAW,EAAE;YACX,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;YACzC,OAAO,EAAE,eAAe;SACzB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -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
+ const react_1 = require("@neo4j-ndl/react");
25
+ const react_2 = require("react");
26
+ const EXAMPLE_OPTIONS = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Needle 🪡', value: 'needle' },
29
+ { label: 'Graph Databases', value: 'graph-database' },
30
+ { label: 'Disabled database option', value: 'disabled' },
31
+ ];
32
+ const Component = (props) => {
33
+ var _a;
34
+ const [value, setValue] = (0, react_2.useState)(EXAMPLE_OPTIONS[0]);
35
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-4", children: [(0, jsx_runtime_1.jsx)(react_1.Select, { label: "Label", type: "select", selectProps: {
36
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
37
+ value: value,
38
+ options: EXAMPLE_OPTIONS,
39
+ isMulti: false,
40
+ onChange: (newValue) => newValue && setValue(newValue),
41
+ menuPortalTarget: document.querySelector('body'),
42
+ } }), (0, jsx_runtime_1.jsxs)(react_1.Typography, { variant: "body-small", children: ["Value Selected: ", JSON.stringify(value)] })] }));
43
+ };
44
+ exports.default = Component;
45
+ //# 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,4CAAsD;AACtD,iCAAiC;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,IAAA,gBAAQ,EAChC,eAAe,CAAC,CAAC,CAAC,CACnB,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,cAAM,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,wBAAC,kBAAU,IAAC,OAAO,EAAC,YAAY,iCACb,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAC3B,IACT,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,41 @@
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 EXAMPLE_OPTIONS = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Needle 🪡', value: 'needle' },
29
+ { label: 'Graph Databases', value: 'graph-database' },
30
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
31
+ ];
32
+ const Component = (props) => {
33
+ var _a;
34
+ return ((0, jsx_runtime_1.jsx)(react_1.Select, { label: "Label", helpText: "You can create values even if they don't exist as options", type: "creatable", selectProps: {
35
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
36
+ options: EXAMPLE_OPTIONS,
37
+ isClearable: true,
38
+ } }));
39
+ };
40
+ exports.default = Component;
41
+ //# 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,mDAAiD;AAEjD,4CAA0C;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,uBAAC,cAAM,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,kBAAe,SAAS,CAAC"}
@@ -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 icons_1 = require("@neo4j-ndl/react/icons");
27
+ const EXAMPLE_OPTIONS = [
28
+ { label: 'Neo4j', value: 'neo4j' },
29
+ { label: 'Needle 🪡', value: 'needle' },
30
+ { label: 'Graph Databases', value: 'graph-database' },
31
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
32
+ ];
33
+ const Component = (props) => {
34
+ var _a;
35
+ return ((0, jsx_runtime_1.jsx)(react_1.Select, { label: (0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-row n-gap-token-3 n-h-7 n-items-center", children: ["Custom JSX element", (0, jsx_runtime_1.jsx)(icons_1.QuestionMarkCircleIconOutline, { className: "n-h-token-6" })] }), helpText: "You can have a custom label with JSX code \uD83D\uDE31", 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
+ exports.default = Component;
42
+ //# 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,mDAAiD;AAEjD,4CAA0C;AAC1C,kDAAuE;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,uBAAC,cAAM,IACL,KAAK,EACH,iCAAK,SAAS,EAAC,sDAAsD,mCAEnE,uBAAC,qCAA6B,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,kBAAe,SAAS,CAAC"}
@@ -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 EXAMPLE_OPTIONS = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Needle 🪡', value: 'needle' },
29
+ { label: 'Graph Databases', value: 'graph-database' },
30
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
31
+ ];
32
+ const Component = (props) => {
33
+ var _a;
34
+ return ((0, jsx_runtime_1.jsx)(react_1.Select, { label: "Label", helpText: "Help text", type: "select", selectProps: {
35
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
36
+ options: EXAMPLE_OPTIONS,
37
+ } }));
38
+ };
39
+ exports.default = Component;
40
+ //# 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,mDAAiD;AAEjD,4CAA0C;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,uBAAC,cAAM,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,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,41 @@
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 EXAMPLE_OPTIONS = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Needle 🪡', value: 'needle' },
29
+ { label: 'Graph Databases', value: 'graph-database' },
30
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
31
+ ];
32
+ const Component = (props) => {
33
+ var _a;
34
+ return ((0, jsx_runtime_1.jsx)(react_1.Select, { label: "Label", type: "select", selectProps: {
35
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
36
+ isDisabled: true,
37
+ options: EXAMPLE_OPTIONS,
38
+ } }));
39
+ };
40
+ exports.default = Component;
41
+ //# 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,mDAAiD;AAEjD,4CAA0C;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,uBAAC,cAAM,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,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = (props) => {
27
+ var _a;
28
+ return ((0, jsx_runtime_1.jsx)(react_1.Select, { label: "Label", helpText: "Help text", type: "select", selectProps: {
29
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
30
+ options: [],
31
+ } }));
32
+ };
33
+ exports.default = Component;
34
+ //# 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,mDAAiD;AAEjD,4CAA0C;AAE1C,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,uBAAC,cAAM,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,kBAAe,SAAS,CAAC"}
@@ -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 EXAMPLE_OPTIONS = [
27
+ { label: 'Neo4j', value: 'neo4j' },
28
+ { label: 'Needle 🪡', value: 'needle' },
29
+ { label: 'Graph Databases', value: 'graph-database' },
30
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
31
+ ];
32
+ const Component = (props) => {
33
+ var _a;
34
+ return ((0, jsx_runtime_1.jsx)(react_1.Select, { label: "Label", errorText: "Validate that your selection is correct", type: "select", selectProps: {
35
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
36
+ options: EXAMPLE_OPTIONS,
37
+ } }));
38
+ };
39
+ exports.default = Component;
40
+ //# 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,mDAAiD;AAEjD,4CAA0C;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,uBAAC,cAAM,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,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,44 @@
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 EXAMPLE_OPTIONS = [
28
+ { label: 'Neo4j', value: 'neo4j' },
29
+ { label: 'Needle 🪡', value: 'needle' },
30
+ { label: 'Graph Databases', value: 'graph-database' },
31
+ { isDisabled: true, label: 'Disabled database option', value: 'disabled' },
32
+ ];
33
+ const Component = (props) => {
34
+ var _a;
35
+ const ref = (0, react_2.useRef)(null);
36
+ const [isOpen, setIsOpen] = (0, react_2.useState)(false);
37
+ return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, className: "n-flex n-flex-col n-items-center n-justify-center n-relative n-h-[500px]", children: [(0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsOpen(true), children: "Open Modal" }), (0, jsx_runtime_1.jsxs)(react_1.Dialog, { container: (ref === null || ref === void 0 ? void 0 : ref.current) || undefined, isOpen: isOpen, onClose: () => setIsOpen(false), "aria-label": "Dialog", children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Using Select inside a modal" }), (0, jsx_runtime_1.jsxs)(react_1.Dialog.Description, { className: "n-flex n-flex-col n-gap-token-8", children: [(0, jsx_runtime_1.jsxs)(react_1.Typography, { variant: "body-medium", children: ["To use select inside a modal and avoid the cut-off, you need to use the property ", (0, jsx_runtime_1.jsx)("code", { children: "menuPosition: \"fixed\"" }), " inside the", ' ', (0, jsx_runtime_1.jsx)("code", { children: "selectProps" }), ". This is done automatically if used in a Needle Dialog, but can always be overridden manually."] }), (0, jsx_runtime_1.jsx)(react_1.Select, { label: "Inside a modal", type: "select", selectProps: {
38
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
39
+ options: EXAMPLE_OPTIONS,
40
+ defaultValue: EXAMPLE_OPTIONS[1],
41
+ } })] })] })] }));
42
+ };
43
+ exports.default = Component;
44
+ //# 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,mDAAiD;AAEjD,4CAAsE;AACtE,iCAAyC;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,K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