@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,220 @@
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
+ import { jsx as _jsx } from "react/jsx-runtime";
23
+ import isChromatic from 'chromatic/isChromatic';
24
+ import { Select } from '../../index';
25
+ import { SelectAsync, SelectAsyncSource, SelectClean, SelectCleanSource, SelectControlled, SelectControlledSource, SelectCreatable, SelectCreatableSource, SelectCustomLabel, SelectCustomLabelSource, SelectDefault, SelectDefaultSource, SelectDisabled, SelectDisabledSource, SelectEmpty, SelectEmptySource, SelectErrorState, SelectErrorStateSource, SelectInsideModal, SelectInsideModalSource, SelectMenuPositionings, SelectMenuPositioningsSource, SelectMulti, SelectMultiSource, SelectSizes, SelectSizesSource, } from '.';
26
+ const centeredContainerDecorator = (Story) => (_jsx("div", { className: "n-flex n-justify-center", children: _jsx(Story, {}) }));
27
+ const widthDecorator = (Story) => (_jsx("div", { className: "n-w-80", children: _jsx(Story, {}) }));
28
+ const fullSizeDecorator = (Story) => (_jsx("div", { className: "n-w-full n-h-full", children: _jsx(Story, {}) }));
29
+ const componentMeta = {
30
+ title: 'Components/Select',
31
+ id: 'components-select',
32
+ component: Select,
33
+ tags: ['docsPage'],
34
+ parameters: {
35
+ controls: { disable: true },
36
+ },
37
+ decorators: [centeredContainerDecorator],
38
+ };
39
+ export default componentMeta;
40
+ export const Default = {
41
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
42
+ decorators: [widthDecorator],
43
+ render: SelectDefault,
44
+ parameters: {
45
+ docs: {
46
+ source: {
47
+ language: 'tsx',
48
+ type: 'code',
49
+ code: SelectDefaultSource,
50
+ },
51
+ },
52
+ },
53
+ };
54
+ export const Async = {
55
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
56
+ decorators: [widthDecorator],
57
+ render: SelectAsync,
58
+ parameters: {
59
+ docs: {
60
+ source: {
61
+ language: 'tsx',
62
+ type: 'code',
63
+ code: SelectAsyncSource,
64
+ },
65
+ },
66
+ },
67
+ };
68
+ export const Creatable = {
69
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
70
+ decorators: [widthDecorator],
71
+ render: SelectCreatable,
72
+ parameters: {
73
+ docs: {
74
+ source: {
75
+ language: 'tsx',
76
+ type: 'code',
77
+ code: SelectCreatableSource,
78
+ },
79
+ },
80
+ },
81
+ };
82
+ export const Controlled = {
83
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
84
+ decorators: [widthDecorator],
85
+ render: SelectControlled,
86
+ parameters: {
87
+ docs: {
88
+ source: {
89
+ language: 'tsx',
90
+ type: 'code',
91
+ code: SelectControlledSource,
92
+ },
93
+ },
94
+ },
95
+ };
96
+ export const MultipleSelections = {
97
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
98
+ decorators: [widthDecorator],
99
+ render: SelectMulti,
100
+ parameters: {
101
+ docs: {
102
+ source: {
103
+ language: 'tsx',
104
+ type: 'code',
105
+ code: SelectMultiSource,
106
+ },
107
+ },
108
+ },
109
+ };
110
+ export const Empty = {
111
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
112
+ decorators: [widthDecorator],
113
+ render: SelectEmpty,
114
+ parameters: {
115
+ docs: {
116
+ source: {
117
+ language: 'tsx',
118
+ type: 'code',
119
+ code: SelectEmptySource,
120
+ },
121
+ },
122
+ },
123
+ };
124
+ export const ErrorState = {
125
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
126
+ decorators: [widthDecorator],
127
+ render: SelectErrorState,
128
+ parameters: {
129
+ docs: {
130
+ source: {
131
+ language: 'tsx',
132
+ type: 'code',
133
+ code: SelectErrorStateSource,
134
+ },
135
+ },
136
+ },
137
+ };
138
+ export const Disabled = {
139
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
140
+ decorators: [widthDecorator],
141
+ render: SelectDisabled,
142
+ parameters: {
143
+ docs: {
144
+ source: {
145
+ language: 'tsx',
146
+ type: 'code',
147
+ code: SelectDisabledSource,
148
+ },
149
+ },
150
+ },
151
+ };
152
+ export const Clean = {
153
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
154
+ decorators: [widthDecorator],
155
+ render: SelectClean,
156
+ parameters: {
157
+ docs: {
158
+ source: {
159
+ language: 'tsx',
160
+ type: 'code',
161
+ code: SelectCleanSource,
162
+ },
163
+ },
164
+ },
165
+ };
166
+ export const CustomLabel = {
167
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
168
+ decorators: [widthDecorator],
169
+ render: SelectCustomLabel,
170
+ parameters: {
171
+ docs: {
172
+ source: {
173
+ language: 'tsx',
174
+ type: 'code',
175
+ code: SelectCustomLabelSource,
176
+ },
177
+ },
178
+ },
179
+ };
180
+ export const Sizes = {
181
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
182
+ render: SelectSizes,
183
+ parameters: {
184
+ docs: {
185
+ source: {
186
+ language: 'tsx',
187
+ type: 'code',
188
+ code: SelectSizesSource,
189
+ },
190
+ },
191
+ },
192
+ };
193
+ export const MenuPositionings = {
194
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
195
+ render: SelectMenuPositionings,
196
+ parameters: {
197
+ docs: {
198
+ source: {
199
+ language: 'tsx',
200
+ type: 'code',
201
+ code: SelectMenuPositioningsSource,
202
+ },
203
+ },
204
+ },
205
+ };
206
+ export const InsideModal = {
207
+ args: { selectProps: { menuIsOpen: isChromatic() || undefined } },
208
+ decorators: [fullSizeDecorator],
209
+ render: SelectInsideModal,
210
+ parameters: {
211
+ docs: {
212
+ source: {
213
+ language: 'tsx',
214
+ type: 'code',
215
+ code: SelectInsideModalSource,
216
+ },
217
+ },
218
+ },
219
+ };
220
+ //# 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,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,EAC5B,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,iBAAiB,GAClB,MAAM,GAAG,CAAC;AAEX,MAAM,0BAA0B,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,CACjE,cAAK,SAAS,EAAC,yBAAyB,YACtC,KAAC,KAAK,KAAG,GACL,CACP,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,CACrD,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,KAAK,KAAG,GACL,CACP,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,CACxD,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,KAAK,KAAG,GACL,CACP,CAAC;AAEF,MAAM,aAAa,GAAwB;IACzC,KAAK,EAAE,mBAAmB;IAC1B,EAAE,EAAE,mBAAmB;IACvB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,UAAU,EAAE,CAAC,0BAA0B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AE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,iBAAiB;aACxB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,SAAS,EAAE,EAAE;IACjE,MAAM,EAAE,sBAAsB;IAC9B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,4BAA4B;aACnC;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,IAAI,EAAE,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,SAAS,EAAE,EAAE;IACjE,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,MAAM,EAAE,iBAAiB;IACzB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,uBAAuB;aAC9B;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,52 @@
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
+ export { default as TooltipDefault } from './tooltip-default.story';
22
+ export { default as TooltipDisabled } from './tooltip-disabled.story';
23
+ export { default as TooltipControlled } from './tooltip-controlled.story';
24
+ export { default as TooltipInitialOpen } from './tooltip-initial-open.story';
25
+ export { default as TooltipPlacements } from './tooltip-placements.story';
26
+ export { default as TooltipInDialog } from './tooltip-in-dialog.story';
27
+ export { default as TooltipHoverDelay } from './tooltip-hover-delay.story';
28
+ export { default as TooltipTriggerButtonWrapper } from './tooltip-trigger-button-wrapper.story';
29
+ export { default as TooltipRich } from './tooltip-rich.story';
30
+ export { default as TooltipRichPassThrough } from './tooltip-rich-pass-through.story';
31
+ import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
32
+ import TooltipControlledSourceRaw from './tooltip-controlled.story?raw';
33
+ import TooltipDefaultSourceRaw from './tooltip-default.story?raw';
34
+ import TooltipDisabledSourceRaw from './tooltip-disabled.story?raw';
35
+ import TooltipHoverDelaySourceRaw from './tooltip-hover-delay.story?raw';
36
+ import TooltipInDialogSourceRaw from './tooltip-in-dialog.story?raw';
37
+ import TooltipInitialOpenSourceRaw from './tooltip-initial-open.story?raw';
38
+ import TooltipPlacementsSourceRaw from './tooltip-placements.story?raw';
39
+ import TooltipRichSourceRaw from './tooltip-rich.story?raw';
40
+ import TooltipRichPassThroughSourceRaw from './tooltip-rich-pass-through.story?raw';
41
+ import TooltipTriggerButtonWrapperSourceRaw from './tooltip-trigger-button-wrapper.story?raw';
42
+ export const TooltipDefaultSource = removeLicenseHeader(TooltipDefaultSourceRaw);
43
+ export const TooltipDisabledSource = removeLicenseHeader(TooltipDisabledSourceRaw);
44
+ export const TooltipControlledSource = removeLicenseHeader(TooltipControlledSourceRaw);
45
+ export const TooltipInitialOpenSource = removeLicenseHeader(TooltipInitialOpenSourceRaw);
46
+ export const TooltipPlacementsSource = removeLicenseHeader(TooltipPlacementsSourceRaw);
47
+ export const TooltipInDialogSource = removeLicenseHeader(TooltipInDialogSourceRaw);
48
+ export const TooltipHoverDelaySource = removeLicenseHeader(TooltipHoverDelaySourceRaw);
49
+ export const TooltipTriggerButtonWrapperSource = removeLicenseHeader(TooltipTriggerButtonWrapperSourceRaw);
50
+ export const TooltipRichSource = removeLicenseHeader(TooltipRichSourceRaw);
51
+ export const TooltipRichPassThroughSource = removeLicenseHeader(TooltipRichPassThroughSourceRaw);
52
+ //# 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,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,0BAA0B,MAAM,gCAAgC,CAAC;AACxE,OAAO,uBAAuB,MAAM,6BAA6B,CAAC;AAClE,OAAO,wBAAwB,MAAM,8BAA8B,CAAC;AACpE,OAAO,0BAA0B,MAAM,iCAAiC,CAAC;AACzE,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AACrE,OAAO,2BAA2B,MAAM,kCAAkC,CAAC;AAC3E,OAAO,0BAA0B,MAAM,gCAAgC,CAAC;AACxE,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAC5D,OAAO,+BAA+B,MAAM,uCAAuC,CAAC;AACpF,OAAO,oCAAoC,MAAM,4CAA4C,CAAC;AAE9F,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,uBAAuB,CACxB,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CACxD,0BAA0B,CAC3B,CAAC;AACF,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CACzD,2BAA2B,CAC5B,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CACxD,0BAA0B,CAC3B,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CACxD,0BAA0B,CAC3B,CAAC;AACF,MAAM,CAAC,MAAM,iCAAiC,GAAG,mBAAmB,CAClE,oCAAoC,CACrC,CAAC;AACF,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAC7D,+BAA+B,CAChC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Tooltip } from '@neo4j-ndl/react';
24
+ import { useState } from 'react';
25
+ const Component = () => {
26
+ const [isOpen, setIsOpen] = useState(false);
27
+ return (_jsxs(Tooltip, { type: "simple", isOpen: isOpen, onOpenChange: setIsOpen, children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(Button, { onClick: () => setIsOpen((prev) => !prev), children: "Click me" }) }), _jsx(Tooltip.Content, { children: "This is a controlled tooltip" })] }));
28
+ };
29
+ export default Component;
30
+ //# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,aAC5D,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,yBAAmB,GACpD,EAClB,KAAC,OAAO,CAAC,OAAO,+CAA+C,IACvD,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Tooltip } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs(Tooltip, { type: "simple", children: [_jsx(Tooltip.Trigger, { children: "Hover me!" }), _jsx(Tooltip.Content, { children: "This is a tooltip!" })] }));
26
+ };
27
+ export default Component;
28
+ //# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,KAAC,OAAO,CAAC,OAAO,4BAA4B,EAC5C,KAAC,OAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Tooltip } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs(Tooltip, { type: "simple", isDisabled: true, children: [_jsx(Tooltip.Trigger, { children: "Hover me!" }), _jsx(Tooltip.Content, { children: "This is a tooltip!" })] }));
26
+ };
27
+ export default Component;
28
+ //# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,IAAI,aACrC,KAAC,OAAO,CAAC,OAAO,4BAA4B,EAC5C,KAAC,OAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Tooltip } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs(Tooltip, { type: "simple", hoverDelay: { open: 200, close: 200 }, children: [_jsx(Tooltip.Trigger, { children: "Hover me!" }), _jsx(Tooltip.Content, { children: "This is a tooltip!" })] }));
26
+ };
27
+ export default Component;
28
+ //# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,aAC1D,KAAC,OAAO,CAAC,OAAO,4BAA4B,EAC5C,KAAC,OAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Dialog, Tooltip, Typography } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs(Dialog, { isOpen: true, onClose: () => void 0, children: [_jsx(Dialog.Header, { children: "Header" }), _jsx(Dialog.Content, { children: _jsxs(Tooltip, { type: "simple", isPortaled: false, children: [_jsx(Tooltip.Trigger, { children: _jsx(Typography, { variant: "body-medium", children: "Hover me!" }) }), _jsx(Tooltip.Content, { children: "This is a long tooltip!" })] }) })] }));
26
+ };
27
+ export default Component;
28
+ //# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,MAAM,IAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,aACzC,KAAC,MAAM,CAAC,MAAM,yBAAuB,EACrC,KAAC,MAAM,CAAC,OAAO,cACb,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,KAAK,aACtC,KAAC,OAAO,CAAC,OAAO,cACd,KAAC,UAAU,IAAC,OAAO,EAAC,aAAa,0BAAuB,GACxC,EAClB,KAAC,OAAO,CAAC,OAAO,0CAA0C,IAClD,GACK,IACV,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Tooltip } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs(Tooltip, { type: "simple", isInitialOpen: true, children: [_jsx(Tooltip.Trigger, { children: "Hover me!" }), _jsx(Tooltip.Content, { children: "This is a tooltip!" })] }));
26
+ };
27
+ export default Component;
28
+ //# sourceMappingURL=tooltip-initial-open.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-initial-open.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-initial-open.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,aAAa,EAAE,IAAI,aACxC,KAAC,OAAO,CAAC,OAAO,4BAA4B,EAC5C,KAAC,OAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Tooltip } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ const placements = [
26
+ { placement: 'top', label: 'Top' },
27
+ { placement: 'bottom', label: 'Bottom' },
28
+ { placement: 'left', label: 'Left' },
29
+ { placement: 'right', label: 'Right' },
30
+ { placement: 'top-start', label: 'Top Start' },
31
+ { placement: 'top-end', label: 'Top End' },
32
+ { placement: 'bottom-start', label: 'Bottom Start' },
33
+ { placement: 'bottom-end', label: 'Bottom End' },
34
+ ];
35
+ return (_jsx("div", { className: "n-grid n-grid-cols-4 n-gap-token-6 n-p-token-6 n-place-items-center", children: placements.map(({ placement, label }) => (_jsxs(Tooltip, { type: "simple", placement: placement, children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(Button, { size: "small", children: label }) }), _jsxs(Tooltip.Content, { children: ["Tooltip on ", label.toLowerCase()] })] }, placement))) }));
36
+ };
37
+ export default Component;
38
+ //# sourceMappingURL=tooltip-placements.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-placements.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-placements.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,UAAU,GAAG;QACjB,EAAE,SAAS,EAAE,KAAc,EAAE,KAAK,EAAE,KAAK,EAAE;QAC3C,EAAE,SAAS,EAAE,QAAiB,EAAE,KAAK,EAAE,QAAQ,EAAE;QACjD,EAAE,SAAS,EAAE,MAAe,EAAE,KAAK,EAAE,MAAM,EAAE;QAC7C,EAAE,SAAS,EAAE,OAAgB,EAAE,KAAK,EAAE,OAAO,EAAE;QAC/C,EAAE,SAAS,EAAE,WAAoB,EAAE,KAAK,EAAE,WAAW,EAAE;QACvD,EAAE,SAAS,EAAE,SAAkB,EAAE,KAAK,EAAE,SAAS,EAAE;QACnD,EAAE,SAAS,EAAE,cAAuB,EAAE,KAAK,EAAE,cAAc,EAAE;QAC7D,EAAE,SAAS,EAAE,YAAqB,EAAE,KAAK,EAAE,YAAY,EAAE;KAC1D,CAAC;IAEF,OAAO,CACL,cAAK,SAAS,EAAC,qEAAqE,YACjF,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACxC,MAAC,OAAO,IAAiB,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,aACzD,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,YAAE,KAAK,GAAU,GACrB,EAClB,MAAC,OAAO,CAAC,OAAO,8BAAa,KAAK,CAAC,WAAW,EAAE,IAAmB,KAJvD,SAAS,CAKb,CACX,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Tooltip } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs(Tooltip, { type: "rich", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(Button, { children: "Click me!" }) }), _jsxs(Tooltip.Content, { children: [_jsx(Tooltip.Header, { passThroughProps: { style: { color: 'red' } }, children: "Header" }), _jsx(Tooltip.Body, { passThroughProps: { style: { color: 'green' } }, children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do" }), _jsx(Tooltip.Actions, { children: _jsx(Tooltip.Action, { onClick: () => alert('Custom action'), children: "Action" }) })] })] }));
26
+ };
27
+ export default Component;
28
+ //# sourceMappingURL=tooltip-rich-pass-through.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-rich-pass-through.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-rich-pass-through.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,MAAM,aAClB,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,MAAM,4BAAmB,GACV,EAClB,MAAC,OAAO,CAAC,OAAO,eACd,KAAC,OAAO,CAAC,MAAM,IAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,uBAE5C,EACjB,KAAC,OAAO,CAAC,IAAI,IAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,gFAE9C,EACf,KAAC,OAAO,CAAC,OAAO,cACd,KAAC,OAAO,CAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,uBAEpC,GACD,IACF,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Tooltip } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs(Tooltip, { type: "rich", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(Button, { children: "Click me!" }) }), _jsxs(Tooltip.Content, { children: [_jsx(Tooltip.Header, { children: "Header" }), _jsx(Tooltip.Body, { children: "This rich tooltip demonstrates all the available subcomponents: Header, Body, and Actions." }), _jsxs(Tooltip.Actions, { children: [_jsx(Tooltip.Action, { onClick: () => alert('Primary action'), children: "Primary Action" }), _jsx(Tooltip.Action, { onClick: () => alert('Secondary action'), children: "Secondary Action" })] })] })] }));
26
+ };
27
+ export default Component;
28
+ //# sourceMappingURL=tooltip-rich.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-rich.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-rich.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,MAAM,aAClB,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,MAAM,4BAAmB,GACV,EAClB,MAAC,OAAO,CAAC,OAAO,eACd,KAAC,OAAO,CAAC,MAAM,yBAAwB,EACvC,KAAC,OAAO,CAAC,IAAI,6GAGE,EACf,MAAC,OAAO,CAAC,OAAO,eACd,KAAC,OAAO,CAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,+BAErC,EACjB,KAAC,OAAO,CAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,iCAEvC,IACD,IACF,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
23
+ import { Button, Tooltip } from '@neo4j-ndl/react';
24
+ const Component = () => {
25
+ return (_jsxs(Tooltip, { type: "simple", children: [_jsx(Tooltip.Trigger, { hasButtonWrapper: true, children: _jsx(Button, { children: "Click me!" }) }), _jsx(Tooltip.Content, { children: "This is a tooltip!" })] }));
26
+ };
27
+ export default Component;
28
+ //# sourceMappingURL=tooltip-trigger-button-wrapper.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip-trigger-button-wrapper.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-trigger-button-wrapper.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,KAAC,OAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,KAAC,MAAM,4BAAmB,GACV,EAClB,KAAC,OAAO,CAAC,OAAO,qCAAqC,IAC7C,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}