@neo4j-ndl/react 3.9.3 → 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 (140) 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/esm/next/side-navigation/stories/side-nav-default.story.js +1 -1
  58. package/lib/esm/next/side-navigation/stories/side-nav-default.story.js.map +1 -1
  59. package/lib/esm/select/stories/index.js +61 -0
  60. package/lib/esm/select/stories/index.js.map +1 -0
  61. package/lib/esm/select/stories/select-async.story.js +50 -0
  62. package/lib/esm/select/stories/select-async.story.js.map +1 -0
  63. package/lib/esm/select/stories/select-clean.story.js +38 -0
  64. package/lib/esm/select/stories/select-clean.story.js.map +1 -0
  65. package/lib/esm/select/stories/select-controlled.story.js +43 -0
  66. package/lib/esm/select/stories/select-controlled.story.js.map +1 -0
  67. package/lib/esm/select/stories/select-creatable.story.js +39 -0
  68. package/lib/esm/select/stories/select-creatable.story.js.map +1 -0
  69. package/lib/esm/select/stories/select-custom-label.story.js +40 -0
  70. package/lib/esm/select/stories/select-custom-label.story.js.map +1 -0
  71. package/lib/esm/select/stories/select-default.story.js +38 -0
  72. package/lib/esm/select/stories/select-default.story.js.map +1 -0
  73. package/lib/esm/select/stories/select-disabled.story.js +39 -0
  74. package/lib/esm/select/stories/select-disabled.story.js.map +1 -0
  75. package/lib/esm/select/stories/select-empty.story.js +32 -0
  76. package/lib/esm/select/stories/select-empty.story.js.map +1 -0
  77. package/lib/esm/select/stories/select-error-state.story.js +38 -0
  78. package/lib/esm/select/stories/select-error-state.story.js.map +1 -0
  79. package/lib/esm/select/stories/select-inside-modal.story.js +42 -0
  80. package/lib/esm/select/stories/select-inside-modal.story.js.map +1 -0
  81. package/lib/esm/select/stories/select-menu-positionings.story.js +45 -0
  82. package/lib/esm/select/stories/select-menu-positionings.story.js.map +1 -0
  83. package/lib/esm/select/stories/select-multi.story.js +41 -0
  84. package/lib/esm/select/stories/select-multi.story.js.map +1 -0
  85. package/lib/esm/select/stories/select-sizes.story.js +44 -0
  86. package/lib/esm/select/stories/select-sizes.story.js.map +1 -0
  87. package/lib/esm/select/stories/select.stories.js +220 -0
  88. package/lib/esm/select/stories/select.stories.js.map +1 -0
  89. package/lib/esm/tooltip/stories/index.js +52 -0
  90. package/lib/esm/tooltip/stories/index.js.map +1 -0
  91. package/lib/esm/tooltip/stories/tooltip-controlled.story.js +30 -0
  92. package/lib/esm/tooltip/stories/tooltip-controlled.story.js.map +1 -0
  93. package/lib/esm/tooltip/stories/tooltip-default.story.js +28 -0
  94. package/lib/esm/tooltip/stories/tooltip-default.story.js.map +1 -0
  95. package/lib/esm/tooltip/stories/tooltip-disabled.story.js +28 -0
  96. package/lib/esm/tooltip/stories/tooltip-disabled.story.js.map +1 -0
  97. package/lib/esm/tooltip/stories/tooltip-hover-delay.story.js +28 -0
  98. package/lib/esm/tooltip/stories/tooltip-hover-delay.story.js.map +1 -0
  99. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js +28 -0
  100. package/lib/esm/tooltip/stories/tooltip-in-dialog.story.js.map +1 -0
  101. package/lib/esm/tooltip/stories/tooltip-initial-open.story.js +28 -0
  102. package/lib/esm/tooltip/stories/tooltip-initial-open.story.js.map +1 -0
  103. package/lib/esm/tooltip/stories/tooltip-placements.story.js +38 -0
  104. package/lib/esm/tooltip/stories/tooltip-placements.story.js.map +1 -0
  105. package/lib/esm/tooltip/stories/tooltip-rich-pass-through.story.js +28 -0
  106. package/lib/esm/tooltip/stories/tooltip-rich-pass-through.story.js.map +1 -0
  107. package/lib/esm/tooltip/stories/tooltip-rich.story.js +28 -0
  108. package/lib/esm/tooltip/stories/tooltip-rich.story.js.map +1 -0
  109. package/lib/esm/tooltip/stories/tooltip-trigger-button-wrapper.story.js +28 -0
  110. package/lib/esm/tooltip/stories/tooltip-trigger-button-wrapper.story.js.map +1 -0
  111. package/lib/esm/tooltip/stories/tooltip.stories.js +170 -0
  112. package/lib/esm/tooltip/stories/tooltip.stories.js.map +1 -0
  113. package/lib/types/select/stories/index.d.ts +46 -0
  114. package/lib/types/select/stories/select-async.story.d.ts +24 -0
  115. package/lib/types/select/stories/select-clean.story.d.ts +24 -0
  116. package/lib/types/select/stories/select-controlled.story.d.ts +23 -0
  117. package/lib/types/select/stories/select-creatable.story.d.ts +24 -0
  118. package/lib/types/select/stories/select-custom-label.story.d.ts +24 -0
  119. package/lib/types/select/stories/select-default.story.d.ts +24 -0
  120. package/lib/types/select/stories/select-disabled.story.d.ts +24 -0
  121. package/lib/types/select/stories/select-empty.story.d.ts +24 -0
  122. package/lib/types/select/stories/select-error-state.story.d.ts +24 -0
  123. package/lib/types/select/stories/select-inside-modal.story.d.ts +24 -0
  124. package/lib/types/select/stories/select-menu-positionings.story.d.ts +24 -0
  125. package/lib/types/select/stories/select-multi.story.d.ts +24 -0
  126. package/lib/types/select/stories/select-sizes.story.d.ts +24 -0
  127. package/lib/types/select/stories/select.stories.d.ts +38 -0
  128. package/lib/types/tooltip/stories/index.d.ts +40 -0
  129. package/lib/types/tooltip/stories/tooltip-controlled.story.d.ts +23 -0
  130. package/lib/types/tooltip/stories/tooltip-default.story.d.ts +23 -0
  131. package/lib/types/tooltip/stories/tooltip-disabled.story.d.ts +23 -0
  132. package/lib/types/tooltip/stories/tooltip-hover-delay.story.d.ts +23 -0
  133. package/lib/types/tooltip/stories/tooltip-in-dialog.story.d.ts +23 -0
  134. package/lib/types/tooltip/stories/tooltip-initial-open.story.d.ts +23 -0
  135. package/lib/types/tooltip/stories/tooltip-placements.story.d.ts +23 -0
  136. package/lib/types/tooltip/stories/tooltip-rich-pass-through.story.d.ts +23 -0
  137. package/lib/types/tooltip/stories/tooltip-rich.story.d.ts +23 -0
  138. package/lib/types/tooltip/stories/tooltip-trigger-button-wrapper.story.d.ts +23 -0
  139. package/lib/types/tooltip/stories/tooltip.stories.d.ts +35 -0
  140. package/package.json +3 -3
@@ -0,0 +1,47 @@
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
+ ];
30
+ const Component = (props) => {
31
+ var _a, _b, _c;
32
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-gap-token-6 n-pt-6", children: [(0, jsx_runtime_1.jsx)(react_1.Select, { label: "Automatic menu placement", type: "select", selectProps: {
33
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
34
+ menuPlacement: 'auto',
35
+ options: EXAMPLE_OPTIONS,
36
+ } }), (0, jsx_runtime_1.jsx)(react_1.Select, { label: "Bottom menu placement", type: "select", selectProps: {
37
+ menuIsOpen: (_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.menuIsOpen,
38
+ menuPlacement: 'bottom',
39
+ options: EXAMPLE_OPTIONS,
40
+ } }), (0, jsx_runtime_1.jsx)(react_1.Select, { label: "Top menu placement", type: "select", selectProps: {
41
+ menuIsOpen: (_c = props.selectProps) === null || _c === void 0 ? void 0 : _c.menuIsOpen,
42
+ menuPlacement: 'top',
43
+ options: EXAMPLE_OPTIONS,
44
+ } })] }));
45
+ };
46
+ exports.default = Component;
47
+ //# 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,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;CACxC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA0C,EAAE,EAAE;;IAC/D,OAAO,CACL,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,uBAAC,cAAM,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,uBAAC,cAAM,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,uBAAC,cAAM,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,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,43 @@
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
+ defaultValue: EXAMPLE_OPTIONS[1],
37
+ isClearable: true,
38
+ isMulti: true,
39
+ options: EXAMPLE_OPTIONS,
40
+ } }));
41
+ };
42
+ exports.default = Component;
43
+ //# 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,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,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,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const 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, _b, _c;
34
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-gap-token-6", children: [(0, jsx_runtime_1.jsx)(react_1.Select, { label: "Small (default)", type: "select", size: "small", selectProps: {
35
+ menuIsOpen: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.menuIsOpen,
36
+ options: EXAMPLE_OPTIONS,
37
+ } }), (0, jsx_runtime_1.jsx)(react_1.Select, { label: "Medium", type: "select", size: "medium", selectProps: {
38
+ menuIsOpen: (_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.menuIsOpen,
39
+ options: EXAMPLE_OPTIONS,
40
+ } }), (0, jsx_runtime_1.jsx)(react_1.Select, { label: "Large", type: "select", size: "large", selectProps: {
41
+ menuIsOpen: (_c = props.selectProps) === null || _c === void 0 ? void 0 : _c.menuIsOpen,
42
+ options: EXAMPLE_OPTIONS,
43
+ } })] }));
44
+ };
45
+ exports.default = Component;
46
+ //# 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,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,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,cAAM,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,uBAAC,cAAM,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,uBAAC,cAAM,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,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,226 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+
22
+ "use strict";
23
+ var __importDefault = (this && this.__importDefault) || function (mod) {
24
+ return (mod && mod.__esModule) ? mod : { "default": mod };
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.InsideModal = exports.MenuPositionings = exports.Sizes = exports.CustomLabel = exports.Clean = exports.Disabled = exports.ErrorState = exports.Empty = exports.MultipleSelections = exports.Controlled = exports.Creatable = exports.Async = exports.Default = void 0;
28
+ const jsx_runtime_1 = require("react/jsx-runtime");
29
+ const isChromatic_1 = __importDefault(require("chromatic/isChromatic"));
30
+ const index_1 = require("../../index");
31
+ const _1 = require(".");
32
+ const centeredContainerDecorator = (Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-justify-center", children: (0, jsx_runtime_1.jsx)(Story, {}) }));
33
+ const widthDecorator = (Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-w-80", children: (0, jsx_runtime_1.jsx)(Story, {}) }));
34
+ const fullSizeDecorator = (Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-w-full n-h-full", children: (0, jsx_runtime_1.jsx)(Story, {}) }));
35
+ const componentMeta = {
36
+ title: 'Components/Select',
37
+ id: 'components-select',
38
+ component: index_1.Select,
39
+ tags: ['docsPage'],
40
+ parameters: {
41
+ controls: { disable: true },
42
+ },
43
+ decorators: [centeredContainerDecorator],
44
+ };
45
+ exports.default = componentMeta;
46
+ exports.Default = {
47
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
48
+ decorators: [widthDecorator],
49
+ render: _1.SelectDefault,
50
+ parameters: {
51
+ docs: {
52
+ source: {
53
+ language: 'tsx',
54
+ type: 'code',
55
+ code: _1.SelectDefaultSource,
56
+ },
57
+ },
58
+ },
59
+ };
60
+ exports.Async = {
61
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
62
+ decorators: [widthDecorator],
63
+ render: _1.SelectAsync,
64
+ parameters: {
65
+ docs: {
66
+ source: {
67
+ language: 'tsx',
68
+ type: 'code',
69
+ code: _1.SelectAsyncSource,
70
+ },
71
+ },
72
+ },
73
+ };
74
+ exports.Creatable = {
75
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
76
+ decorators: [widthDecorator],
77
+ render: _1.SelectCreatable,
78
+ parameters: {
79
+ docs: {
80
+ source: {
81
+ language: 'tsx',
82
+ type: 'code',
83
+ code: _1.SelectCreatableSource,
84
+ },
85
+ },
86
+ },
87
+ };
88
+ exports.Controlled = {
89
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
90
+ decorators: [widthDecorator],
91
+ render: _1.SelectControlled,
92
+ parameters: {
93
+ docs: {
94
+ source: {
95
+ language: 'tsx',
96
+ type: 'code',
97
+ code: _1.SelectControlledSource,
98
+ },
99
+ },
100
+ },
101
+ };
102
+ exports.MultipleSelections = {
103
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
104
+ decorators: [widthDecorator],
105
+ render: _1.SelectMulti,
106
+ parameters: {
107
+ docs: {
108
+ source: {
109
+ language: 'tsx',
110
+ type: 'code',
111
+ code: _1.SelectMultiSource,
112
+ },
113
+ },
114
+ },
115
+ };
116
+ exports.Empty = {
117
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
118
+ decorators: [widthDecorator],
119
+ render: _1.SelectEmpty,
120
+ parameters: {
121
+ docs: {
122
+ source: {
123
+ language: 'tsx',
124
+ type: 'code',
125
+ code: _1.SelectEmptySource,
126
+ },
127
+ },
128
+ },
129
+ };
130
+ exports.ErrorState = {
131
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
132
+ decorators: [widthDecorator],
133
+ render: _1.SelectErrorState,
134
+ parameters: {
135
+ docs: {
136
+ source: {
137
+ language: 'tsx',
138
+ type: 'code',
139
+ code: _1.SelectErrorStateSource,
140
+ },
141
+ },
142
+ },
143
+ };
144
+ exports.Disabled = {
145
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
146
+ decorators: [widthDecorator],
147
+ render: _1.SelectDisabled,
148
+ parameters: {
149
+ docs: {
150
+ source: {
151
+ language: 'tsx',
152
+ type: 'code',
153
+ code: _1.SelectDisabledSource,
154
+ },
155
+ },
156
+ },
157
+ };
158
+ exports.Clean = {
159
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
160
+ decorators: [widthDecorator],
161
+ render: _1.SelectClean,
162
+ parameters: {
163
+ docs: {
164
+ source: {
165
+ language: 'tsx',
166
+ type: 'code',
167
+ code: _1.SelectCleanSource,
168
+ },
169
+ },
170
+ },
171
+ };
172
+ exports.CustomLabel = {
173
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
174
+ decorators: [widthDecorator],
175
+ render: _1.SelectCustomLabel,
176
+ parameters: {
177
+ docs: {
178
+ source: {
179
+ language: 'tsx',
180
+ type: 'code',
181
+ code: _1.SelectCustomLabelSource,
182
+ },
183
+ },
184
+ },
185
+ };
186
+ exports.Sizes = {
187
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
188
+ render: _1.SelectSizes,
189
+ parameters: {
190
+ docs: {
191
+ source: {
192
+ language: 'tsx',
193
+ type: 'code',
194
+ code: _1.SelectSizesSource,
195
+ },
196
+ },
197
+ },
198
+ };
199
+ exports.MenuPositionings = {
200
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
201
+ render: _1.SelectMenuPositionings,
202
+ parameters: {
203
+ docs: {
204
+ source: {
205
+ language: 'tsx',
206
+ type: 'code',
207
+ code: _1.SelectMenuPositioningsSource,
208
+ },
209
+ },
210
+ },
211
+ };
212
+ exports.InsideModal = {
213
+ args: { selectProps: { menuIsOpen: (0, isChromatic_1.default)() || undefined } },
214
+ decorators: [fullSizeDecorator],
215
+ render: _1.SelectInsideModal,
216
+ parameters: {
217
+ docs: {
218
+ source: {
219
+ language: 'tsx',
220
+ type: 'code',
221
+ code: _1.SelectInsideModalSource,
222
+ },
223
+ },
224
+ },
225
+ };
226
+ //# sourceMappingURL=select.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../../../src/select/stories/select.stories.tsx"],"names":[],"mappings":";;;;;;;AAsBA,wEAAgD;AAEhD,uCAAqC;AACrC,wBA2BW;AAEX,MAAM,0BAA0B,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,CACjE,gCAAK,SAAS,EAAC,yBAAyB,YACtC,uBAAC,KAAK,KAAG,GACL,CACP,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,CACrD,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,KAAK,KAAG,GACL,CACP,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,CACxD,gCAAK,SAAS,EAAC,mBAAmB,YAChC,uBAAC,KAAK,KAAG,GACL,CACP,CAAC;AAEF,MAAM,aAAa,GAAwB;IACzC,KAAK,EAAE,mBAAmB;IAC1B,EAAE,EAAE,mBAAmB;IACvB,SAAS,EAAE,cAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,UAAU,EAAE,CAAC,0BAA0B,CAAC;CACzC,CAAC;AAEF,kBAAe,aAAa,CAAC;AAGhB,QAAA,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,IAAA,qBAAW,GAAE,IAAI,SAAS,EAAE,EAAE;IACjE,UAAU,EAAE,CAAC,cAAc,CAAC;IAC5B,MAAM,EAAE,gBAAa;IACrB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,sBA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B;aACnC;SACF;KACF;CACF,CAAC;AAEW,QAAA,WAAW,GAAU;IAChC,IAAI,EAAE,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,IAAA,qBAAW,GAAE,IAAI,SAAS,EAAE,EAAE;IACjE,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,MAAM,EAAE,oBAAiB;IACzB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,0BAAuB;aAC9B;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,68 @@
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.TooltipRichPassThroughSource = exports.TooltipRichSource = exports.TooltipTriggerButtonWrapperSource = exports.TooltipHoverDelaySource = exports.TooltipInDialogSource = exports.TooltipPlacementsSource = exports.TooltipInitialOpenSource = exports.TooltipControlledSource = exports.TooltipDisabledSource = exports.TooltipDefaultSource = exports.TooltipRichPassThrough = exports.TooltipRich = exports.TooltipTriggerButtonWrapper = exports.TooltipHoverDelay = exports.TooltipInDialog = exports.TooltipPlacements = exports.TooltipInitialOpen = exports.TooltipControlled = exports.TooltipDisabled = exports.TooltipDefault = void 0;
27
+ var tooltip_default_story_1 = require("./tooltip-default.story");
28
+ Object.defineProperty(exports, "TooltipDefault", { enumerable: true, get: function () { return __importDefault(tooltip_default_story_1).default; } });
29
+ var tooltip_disabled_story_1 = require("./tooltip-disabled.story");
30
+ Object.defineProperty(exports, "TooltipDisabled", { enumerable: true, get: function () { return __importDefault(tooltip_disabled_story_1).default; } });
31
+ var tooltip_controlled_story_1 = require("./tooltip-controlled.story");
32
+ Object.defineProperty(exports, "TooltipControlled", { enumerable: true, get: function () { return __importDefault(tooltip_controlled_story_1).default; } });
33
+ var tooltip_initial_open_story_1 = require("./tooltip-initial-open.story");
34
+ Object.defineProperty(exports, "TooltipInitialOpen", { enumerable: true, get: function () { return __importDefault(tooltip_initial_open_story_1).default; } });
35
+ var tooltip_placements_story_1 = require("./tooltip-placements.story");
36
+ Object.defineProperty(exports, "TooltipPlacements", { enumerable: true, get: function () { return __importDefault(tooltip_placements_story_1).default; } });
37
+ var tooltip_in_dialog_story_1 = require("./tooltip-in-dialog.story");
38
+ Object.defineProperty(exports, "TooltipInDialog", { enumerable: true, get: function () { return __importDefault(tooltip_in_dialog_story_1).default; } });
39
+ var tooltip_hover_delay_story_1 = require("./tooltip-hover-delay.story");
40
+ Object.defineProperty(exports, "TooltipHoverDelay", { enumerable: true, get: function () { return __importDefault(tooltip_hover_delay_story_1).default; } });
41
+ var tooltip_trigger_button_wrapper_story_1 = require("./tooltip-trigger-button-wrapper.story");
42
+ Object.defineProperty(exports, "TooltipTriggerButtonWrapper", { enumerable: true, get: function () { return __importDefault(tooltip_trigger_button_wrapper_story_1).default; } });
43
+ var tooltip_rich_story_1 = require("./tooltip-rich.story");
44
+ Object.defineProperty(exports, "TooltipRich", { enumerable: true, get: function () { return __importDefault(tooltip_rich_story_1).default; } });
45
+ var tooltip_rich_pass_through_story_1 = require("./tooltip-rich-pass-through.story");
46
+ Object.defineProperty(exports, "TooltipRichPassThrough", { enumerable: true, get: function () { return __importDefault(tooltip_rich_pass_through_story_1).default; } });
47
+ const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
48
+ const tooltip_controlled_story_raw_1 = __importDefault(require("./tooltip-controlled.story?raw"));
49
+ const tooltip_default_story_raw_1 = __importDefault(require("./tooltip-default.story?raw"));
50
+ const tooltip_disabled_story_raw_1 = __importDefault(require("./tooltip-disabled.story?raw"));
51
+ const tooltip_hover_delay_story_raw_1 = __importDefault(require("./tooltip-hover-delay.story?raw"));
52
+ const tooltip_in_dialog_story_raw_1 = __importDefault(require("./tooltip-in-dialog.story?raw"));
53
+ const tooltip_initial_open_story_raw_1 = __importDefault(require("./tooltip-initial-open.story?raw"));
54
+ const tooltip_placements_story_raw_1 = __importDefault(require("./tooltip-placements.story?raw"));
55
+ const tooltip_rich_story_raw_1 = __importDefault(require("./tooltip-rich.story?raw"));
56
+ const tooltip_rich_pass_through_story_raw_1 = __importDefault(require("./tooltip-rich-pass-through.story?raw"));
57
+ const tooltip_trigger_button_wrapper_story_raw_1 = __importDefault(require("./tooltip-trigger-button-wrapper.story?raw"));
58
+ exports.TooltipDefaultSource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_default_story_raw_1.default);
59
+ exports.TooltipDisabledSource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_disabled_story_raw_1.default);
60
+ exports.TooltipControlledSource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_controlled_story_raw_1.default);
61
+ exports.TooltipInitialOpenSource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_initial_open_story_raw_1.default);
62
+ exports.TooltipPlacementsSource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_placements_story_raw_1.default);
63
+ exports.TooltipInDialogSource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_in_dialog_story_raw_1.default);
64
+ exports.TooltipHoverDelaySource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_hover_delay_story_raw_1.default);
65
+ exports.TooltipTriggerButtonWrapperSource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_trigger_button_wrapper_story_raw_1.default);
66
+ exports.TooltipRichSource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_rich_story_raw_1.default);
67
+ exports.TooltipRichPassThroughSource = (0, export_stories_utils_1.removeLicenseHeader)(tooltip_rich_pass_through_story_raw_1.default);
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AACrC,2EAA6E;AAApE,iJAAA,OAAO,OAAsB;AACtC,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AACrC,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,yEAA2E;AAAlE,+IAAA,OAAO,OAAqB;AACrC,+FAAgG;AAAvF,oKAAA,OAAO,OAA+B;AAC/C,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,qFAAsF;AAA7E,0JAAA,OAAO,OAA0B;AAE1C,wFAAoF;AAEpF,kGAAwE;AACxE,4FAAkE;AAClE,8FAAoE;AACpE,oGAAyE;AACzE,gGAAqE;AACrE,sGAA2E;AAC3E,kGAAwE;AACxE,sFAA4D;AAC5D,gHAAoF;AACpF,0HAA8F;AAEjF,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,mCAAuB,CACxB,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,oCAAwB,CACzB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,sCAA0B,CAC3B,CAAC;AACW,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,wCAA2B,CAC5B,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,sCAA0B,CAC3B,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,qCAAwB,CACzB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,uCAA0B,CAC3B,CAAC;AACW,QAAA,iCAAiC,GAAG,IAAA,0CAAmB,EAClE,kDAAoC,CACrC,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,4BAA4B,GAAG,IAAA,0CAAmB,EAC7D,6CAA+B,CAChC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const react_2 = require("react");
27
+ const Component = () => {
28
+ const [isOpen, setIsOpen] = (0, react_2.useState)(false);
29
+ return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", isOpen: isOpen, onOpenChange: setIsOpen, children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => setIsOpen((prev) => !prev), children: "Click me" }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: "This is a controlled tooltip" })] }));
30
+ };
31
+ exports.default = Component;
32
+ //# sourceMappingURL=tooltip-controlled.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-controlled.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-controlled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAmD;AACnD,iCAAiC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,wBAAC,eAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,aAC5D,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,cAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,yBAAmB,GACpD,EAClB,uBAAC,eAAO,CAAC,OAAO,+CAA+C,IACvD,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { children: "Hover me!" }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: "This is a tooltip!" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=tooltip-default.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-default.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2C;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,eAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,uBAAC,eAAO,CAAC,OAAO,4BAA4B,EAC5C,uBAAC,eAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", isDisabled: true, children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { children: "Hover me!" }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: "This is a tooltip!" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=tooltip-disabled.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-disabled.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2C;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,eAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,IAAI,aACrC,uBAAC,eAAO,CAAC,OAAO,4BAA4B,EAC5C,uBAAC,eAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", hoverDelay: { open: 200, close: 200 }, children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { children: "Hover me!" }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: "This is a tooltip!" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=tooltip-hover-delay.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-hover-delay.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-hover-delay.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2C;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,eAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,aAC1D,uBAAC,eAAO,CAAC,OAAO,4BAA4B,EAC5C,uBAAC,eAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /**
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Dialog, { isOpen: true, onClose: () => void 0, children: [(0, jsx_runtime_1.jsx)(react_1.Dialog.Header, { children: "Header" }), (0, jsx_runtime_1.jsx)(react_1.Dialog.Content, { children: (0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", isPortaled: false, children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { children: (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-medium", children: "Hover me!" }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: "This is a long tooltip!" })] }) })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=tooltip-in-dialog.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-in-dialog.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-in-dialog.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA+D;AAE/D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,cAAM,IAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,aACzC,uBAAC,cAAM,CAAC,MAAM,yBAAuB,EACrC,uBAAC,cAAM,CAAC,OAAO,cACb,wBAAC,eAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,KAAK,aACtC,uBAAC,eAAO,CAAC,OAAO,cACd,uBAAC,kBAAU,IAAC,OAAO,EAAC,aAAa,0BAAuB,GACxC,EAClB,uBAAC,eAAO,CAAC,OAAO,0CAA0C,IAClD,GACK,IACV,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}