@neo4j-ndl/react 0.1.3 → 0.1.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 (276) hide show
  1. package/lib/cjs/alert/Alert.js +102 -0
  2. package/lib/cjs/alert/Alert.js.map +1 -0
  3. package/lib/cjs/alert/index.js +30 -0
  4. package/lib/cjs/alert/index.js.map +1 -0
  5. package/lib/cjs/button/Button.js +116 -0
  6. package/lib/cjs/button/Button.js.map +1 -0
  7. package/lib/cjs/button/index.js +34 -0
  8. package/lib/cjs/button/index.js.map +1 -0
  9. package/lib/cjs/checkbox/Checkbox.js +52 -0
  10. package/lib/cjs/checkbox/Checkbox.js.map +1 -0
  11. package/lib/cjs/checkbox/index.js +29 -0
  12. package/lib/cjs/checkbox/index.js.map +1 -0
  13. package/lib/cjs/context-menu/ContextMenu.js +214 -0
  14. package/lib/cjs/context-menu/ContextMenu.js.map +1 -0
  15. package/lib/cjs/context-menu/index.js +34 -0
  16. package/lib/cjs/context-menu/index.js.map +1 -0
  17. package/lib/cjs/helpers/debounce.js +41 -0
  18. package/lib/cjs/helpers/debounce.js.map +1 -0
  19. package/lib/cjs/helpers/forwardRef.js +26 -0
  20. package/lib/cjs/helpers/forwardRef.js.map +1 -0
  21. package/lib/cjs/helpers/index.js +36 -0
  22. package/lib/cjs/helpers/index.js.map +1 -0
  23. package/lib/cjs/helpers/testing.js +46 -0
  24. package/lib/cjs/helpers/testing.js.map +1 -0
  25. package/lib/cjs/helpers/types.js +23 -0
  26. package/lib/cjs/helpers/types.js.map +1 -0
  27. package/lib/cjs/icons/Custom.js +63 -0
  28. package/lib/cjs/icons/Custom.js.map +1 -0
  29. package/lib/cjs/icons/Hero.js +55 -0
  30. package/lib/cjs/icons/Hero.js.map +1 -0
  31. package/lib/cjs/icons/custom/Circle.js +6 -0
  32. package/lib/cjs/icons/custom/Circle.js.map +1 -0
  33. package/lib/cjs/icons/custom/DatabaseAddCircle.js +6 -0
  34. package/lib/cjs/icons/custom/DatabaseAddCircle.js.map +1 -0
  35. package/lib/cjs/icons/custom/Drag.js +6 -0
  36. package/lib/cjs/icons/custom/Drag.js.map +1 -0
  37. package/lib/cjs/icons/custom/Expand.js +6 -0
  38. package/lib/cjs/icons/custom/Expand.js.map +1 -0
  39. package/lib/cjs/icons/custom/ExternalLink.js +6 -0
  40. package/lib/cjs/icons/custom/ExternalLink.js.map +1 -0
  41. package/lib/cjs/icons/custom/FitToScreen.js +6 -0
  42. package/lib/cjs/icons/custom/FitToScreen.js.map +1 -0
  43. package/lib/cjs/icons/custom/FolderBookmark.js +6 -0
  44. package/lib/cjs/icons/custom/FolderBookmark.js.map +1 -0
  45. package/lib/cjs/icons/custom/Heirarchy2.js +6 -0
  46. package/lib/cjs/icons/custom/Heirarchy2.js.map +1 -0
  47. package/lib/cjs/icons/custom/Hierarchy1.js +6 -0
  48. package/lib/cjs/icons/custom/Hierarchy1.js.map +1 -0
  49. package/lib/cjs/icons/custom/Pin.js +6 -0
  50. package/lib/cjs/icons/custom/Pin.js.map +1 -0
  51. package/lib/cjs/icons/custom/Presentation.js +6 -0
  52. package/lib/cjs/icons/custom/Presentation.js.map +1 -0
  53. package/lib/cjs/icons/custom/Rhombus.js +6 -0
  54. package/lib/cjs/icons/custom/Rhombus.js.map +1 -0
  55. package/lib/cjs/icons/custom/Shrink.js +6 -0
  56. package/lib/cjs/icons/custom/Shrink.js.map +1 -0
  57. package/lib/cjs/icons/custom/Text.js +6 -0
  58. package/lib/cjs/icons/custom/Text.js.map +1 -0
  59. package/lib/cjs/icons/custom/Triangle.js +6 -0
  60. package/lib/cjs/icons/custom/Triangle.js.map +1 -0
  61. package/lib/cjs/icons/custom/index.js +57 -0
  62. package/lib/cjs/icons/custom/index.js.map +1 -0
  63. package/lib/cjs/icons/index.js +31 -0
  64. package/lib/cjs/icons/index.js.map +1 -0
  65. package/lib/cjs/index.js +47 -0
  66. package/lib/cjs/index.js.map +1 -0
  67. package/lib/cjs/input/Input.js +60 -0
  68. package/lib/cjs/input/Input.js.map +1 -0
  69. package/lib/cjs/input/index.js +29 -0
  70. package/lib/cjs/input/index.js.map +1 -0
  71. package/lib/cjs/label/Label.js +103 -0
  72. package/lib/cjs/label/Label.js.map +1 -0
  73. package/lib/cjs/label/index.js +29 -0
  74. package/lib/cjs/label/index.js.map +1 -0
  75. package/lib/cjs/loading-spinner/LoadingSpinner.js +53 -0
  76. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -0
  77. package/lib/cjs/loading-spinner/index.js +29 -0
  78. package/lib/cjs/loading-spinner/index.js.map +1 -0
  79. package/lib/cjs/popover/Popover.js +209 -0
  80. package/lib/cjs/popover/Popover.js.map +1 -0
  81. package/lib/cjs/popover/index.js +34 -0
  82. package/lib/cjs/popover/index.js.map +1 -0
  83. package/lib/cjs/progress-bar/ProgressBar.js +46 -0
  84. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -0
  85. package/lib/cjs/progress-bar/index.js +29 -0
  86. package/lib/cjs/progress-bar/index.js.map +1 -0
  87. package/lib/cjs/radio/Radio.js +48 -0
  88. package/lib/cjs/radio/Radio.js.map +1 -0
  89. package/lib/cjs/radio/index.js +29 -0
  90. package/lib/cjs/radio/index.js.map +1 -0
  91. package/lib/cjs/switch/Switch.js +48 -0
  92. package/lib/cjs/switch/Switch.js.map +1 -0
  93. package/lib/cjs/switch/index.js +29 -0
  94. package/lib/cjs/switch/index.js.map +1 -0
  95. package/lib/cjs/tabs/Tabs.js +101 -0
  96. package/lib/cjs/tabs/Tabs.js.map +1 -0
  97. package/lib/cjs/tabs/index.js +34 -0
  98. package/lib/cjs/tabs/index.js.map +1 -0
  99. package/lib/cjs/tag/Tag.js +67 -0
  100. package/lib/cjs/tag/Tag.js.map +1 -0
  101. package/lib/cjs/tag/index.js +29 -0
  102. package/lib/cjs/tag/index.js.map +1 -0
  103. package/lib/cjs/tooltip/Tooltip.js +46 -0
  104. package/lib/cjs/tooltip/Tooltip.js.map +1 -0
  105. package/lib/cjs/tooltip/index.js +29 -0
  106. package/lib/cjs/tooltip/index.js.map +1 -0
  107. package/lib/cjs/view-selector/ViewSelector.js +85 -0
  108. package/lib/cjs/view-selector/ViewSelector.js.map +1 -0
  109. package/lib/cjs/view-selector/index.js +34 -0
  110. package/lib/cjs/view-selector/index.js.map +1 -0
  111. package/lib/esm/alert/Alert.js +95 -0
  112. package/lib/esm/alert/Alert.js.map +1 -0
  113. package/lib/esm/alert/index.js +22 -0
  114. package/lib/esm/alert/index.js.map +1 -0
  115. package/lib/esm/button/Button.js +108 -0
  116. package/lib/esm/button/Button.js.map +1 -0
  117. package/lib/esm/button/index.js +22 -0
  118. package/lib/esm/button/index.js.map +1 -0
  119. package/lib/esm/checkbox/Checkbox.js +47 -0
  120. package/lib/esm/checkbox/Checkbox.js.map +1 -0
  121. package/lib/esm/checkbox/index.js +22 -0
  122. package/lib/esm/checkbox/index.js.map +1 -0
  123. package/lib/esm/context-menu/ContextMenu.js +189 -0
  124. package/lib/esm/context-menu/ContextMenu.js.map +1 -0
  125. package/lib/esm/context-menu/index.js +22 -0
  126. package/lib/esm/context-menu/index.js.map +1 -0
  127. package/lib/esm/helpers/debounce.js +37 -0
  128. package/lib/esm/helpers/debounce.js.map +1 -0
  129. package/lib/esm/helpers/forwardRef.js +23 -0
  130. package/lib/esm/helpers/forwardRef.js.map +1 -0
  131. package/lib/esm/helpers/index.js +24 -0
  132. package/lib/esm/helpers/index.js.map +1 -0
  133. package/lib/esm/helpers/testing.js +42 -0
  134. package/lib/esm/helpers/testing.js.map +1 -0
  135. package/lib/esm/helpers/types.js +22 -0
  136. package/lib/esm/helpers/types.js.map +1 -0
  137. package/lib/esm/icons/Custom.js +41 -0
  138. package/lib/esm/icons/Custom.js.map +1 -0
  139. package/lib/esm/icons/Hero.js +33 -0
  140. package/lib/esm/icons/Hero.js.map +1 -0
  141. package/lib/esm/icons/custom/Circle.js +4 -0
  142. package/lib/esm/icons/custom/Circle.js.map +1 -0
  143. package/lib/esm/icons/custom/DatabaseAddCircle.js +4 -0
  144. package/lib/esm/icons/custom/DatabaseAddCircle.js.map +1 -0
  145. package/lib/esm/icons/custom/Drag.js +4 -0
  146. package/lib/esm/icons/custom/Drag.js.map +1 -0
  147. package/lib/esm/icons/custom/Expand.js +4 -0
  148. package/lib/esm/icons/custom/Expand.js.map +1 -0
  149. package/lib/esm/icons/custom/ExternalLink.js +4 -0
  150. package/lib/esm/icons/custom/ExternalLink.js.map +1 -0
  151. package/lib/esm/icons/custom/FitToScreen.js +4 -0
  152. package/lib/esm/icons/custom/FitToScreen.js.map +1 -0
  153. package/lib/esm/icons/custom/FolderBookmark.js +4 -0
  154. package/lib/esm/icons/custom/FolderBookmark.js.map +1 -0
  155. package/lib/esm/icons/custom/Heirarchy2.js +4 -0
  156. package/lib/esm/icons/custom/Heirarchy2.js.map +1 -0
  157. package/lib/esm/icons/custom/Hierarchy1.js +4 -0
  158. package/lib/esm/icons/custom/Hierarchy1.js.map +1 -0
  159. package/lib/esm/icons/custom/Pin.js +4 -0
  160. package/lib/esm/icons/custom/Pin.js.map +1 -0
  161. package/lib/esm/icons/custom/Presentation.js +4 -0
  162. package/lib/esm/icons/custom/Presentation.js.map +1 -0
  163. package/lib/esm/icons/custom/Rhombus.js +4 -0
  164. package/lib/esm/icons/custom/Rhombus.js.map +1 -0
  165. package/lib/esm/icons/custom/Shrink.js +4 -0
  166. package/lib/esm/icons/custom/Shrink.js.map +1 -0
  167. package/lib/esm/icons/custom/Text.js +4 -0
  168. package/lib/esm/icons/custom/Text.js.map +1 -0
  169. package/lib/esm/icons/custom/Triangle.js +4 -0
  170. package/lib/esm/icons/custom/Triangle.js.map +1 -0
  171. package/lib/esm/icons/custom/index.js +36 -0
  172. package/lib/esm/icons/custom/index.js.map +1 -0
  173. package/lib/esm/icons/index.js +23 -0
  174. package/lib/esm/icons/index.js.map +1 -0
  175. package/lib/esm/index.js +35 -0
  176. package/lib/esm/index.js.map +1 -0
  177. package/lib/esm/input/Input.js +55 -0
  178. package/lib/esm/input/Input.js.map +1 -0
  179. package/lib/esm/input/index.js +22 -0
  180. package/lib/esm/input/index.js.map +1 -0
  181. package/lib/esm/label/Label.js +97 -0
  182. package/lib/esm/label/Label.js.map +1 -0
  183. package/lib/esm/label/index.js +22 -0
  184. package/lib/esm/label/index.js.map +1 -0
  185. package/lib/esm/loading-spinner/LoadingSpinner.js +48 -0
  186. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -0
  187. package/lib/esm/loading-spinner/index.js +22 -0
  188. package/lib/esm/loading-spinner/index.js.map +1 -0
  189. package/lib/esm/popover/Popover.js +184 -0
  190. package/lib/esm/popover/Popover.js.map +1 -0
  191. package/lib/esm/popover/index.js +22 -0
  192. package/lib/esm/popover/index.js.map +1 -0
  193. package/lib/esm/progress-bar/ProgressBar.js +41 -0
  194. package/lib/esm/progress-bar/ProgressBar.js.map +1 -0
  195. package/lib/esm/progress-bar/index.js +22 -0
  196. package/lib/esm/progress-bar/index.js.map +1 -0
  197. package/lib/esm/radio/Radio.js +43 -0
  198. package/lib/esm/radio/Radio.js.map +1 -0
  199. package/lib/esm/radio/index.js +22 -0
  200. package/lib/esm/radio/index.js.map +1 -0
  201. package/lib/esm/switch/Switch.js +43 -0
  202. package/lib/esm/switch/Switch.js.map +1 -0
  203. package/lib/esm/switch/index.js +22 -0
  204. package/lib/esm/switch/index.js.map +1 -0
  205. package/lib/esm/tabs/Tabs.js +76 -0
  206. package/lib/esm/tabs/Tabs.js.map +1 -0
  207. package/lib/esm/tabs/index.js +22 -0
  208. package/lib/esm/tabs/index.js.map +1 -0
  209. package/lib/esm/tag/Tag.js +62 -0
  210. package/lib/esm/tag/Tag.js.map +1 -0
  211. package/lib/esm/tag/index.js +22 -0
  212. package/lib/esm/tag/index.js.map +1 -0
  213. package/lib/esm/tooltip/Tooltip.js +41 -0
  214. package/lib/esm/tooltip/Tooltip.js.map +1 -0
  215. package/lib/esm/tooltip/index.js +22 -0
  216. package/lib/esm/tooltip/index.js.map +1 -0
  217. package/lib/esm/view-selector/ViewSelector.js +60 -0
  218. package/lib/esm/view-selector/ViewSelector.js.map +1 -0
  219. package/lib/esm/view-selector/index.js +22 -0
  220. package/lib/esm/view-selector/index.js.map +1 -0
  221. package/lib/types/alert/Alert.d.ts +75 -0
  222. package/lib/types/alert/index.d.ts +21 -0
  223. package/lib/types/button/Button.d.ts +52 -0
  224. package/lib/types/button/index.d.ts +21 -0
  225. package/lib/types/checkbox/Checkbox.d.ts +39 -0
  226. package/lib/types/checkbox/index.d.ts +21 -0
  227. package/lib/types/context-menu/ContextMenu.d.ts +65 -0
  228. package/lib/types/context-menu/index.d.ts +21 -0
  229. package/lib/types/helpers/debounce.d.ts +24 -0
  230. package/lib/types/helpers/forwardRef.d.ts +24 -0
  231. package/lib/types/helpers/index.d.ts +23 -0
  232. package/lib/types/helpers/testing.d.ts +28 -0
  233. package/lib/types/helpers/types.d.ts +25 -0
  234. package/lib/types/icons/Custom.d.ts +27 -0
  235. package/lib/types/icons/Hero.d.ts +28 -0
  236. package/lib/types/icons/custom/Circle.d.ts +23 -0
  237. package/lib/types/icons/custom/DatabaseAddCircle.d.ts +23 -0
  238. package/lib/types/icons/custom/Drag.d.ts +23 -0
  239. package/lib/types/icons/custom/Expand.d.ts +23 -0
  240. package/lib/types/icons/custom/ExternalLink.d.ts +23 -0
  241. package/lib/types/icons/custom/FitToScreen.d.ts +23 -0
  242. package/lib/types/icons/custom/FolderBookmark.d.ts +23 -0
  243. package/lib/types/icons/custom/Heirarchy2.d.ts +23 -0
  244. package/lib/types/icons/custom/Hierarchy1.d.ts +23 -0
  245. package/lib/types/icons/custom/Pin.d.ts +23 -0
  246. package/lib/types/icons/custom/Presentation.d.ts +23 -0
  247. package/lib/types/icons/custom/Rhombus.d.ts +23 -0
  248. package/lib/types/icons/custom/Shrink.d.ts +23 -0
  249. package/lib/types/icons/custom/Text.d.ts +23 -0
  250. package/lib/types/icons/custom/Triangle.d.ts +23 -0
  251. package/lib/types/icons/custom/index.d.ts +35 -0
  252. package/lib/types/icons/index.d.ts +22 -0
  253. package/lib/types/index.d.ts +34 -0
  254. package/lib/types/input/Input.d.ts +44 -0
  255. package/lib/types/input/index.d.ts +21 -0
  256. package/lib/types/label/Label.d.ts +41 -0
  257. package/lib/types/label/index.d.ts +21 -0
  258. package/lib/types/loading-spinner/LoadingSpinner.d.ts +41 -0
  259. package/lib/types/loading-spinner/index.d.ts +21 -0
  260. package/lib/types/popover/Popover.d.ts +70 -0
  261. package/lib/types/popover/index.d.ts +21 -0
  262. package/lib/types/progress-bar/ProgressBar.d.ts +30 -0
  263. package/lib/types/progress-bar/index.d.ts +21 -0
  264. package/lib/types/radio/Radio.d.ts +39 -0
  265. package/lib/types/radio/index.d.ts +21 -0
  266. package/lib/types/switch/Switch.d.ts +39 -0
  267. package/lib/types/switch/index.d.ts +21 -0
  268. package/lib/types/tabs/Tabs.d.ts +72 -0
  269. package/lib/types/tabs/index.d.ts +21 -0
  270. package/lib/types/tag/Tag.d.ts +61 -0
  271. package/lib/types/tag/index.d.ts +21 -0
  272. package/lib/types/tooltip/Tooltip.d.ts +29 -0
  273. package/lib/types/tooltip/index.d.ts +21 -0
  274. package/lib/types/view-selector/ViewSelector.d.ts +51 -0
  275. package/lib/types/view-selector/index.d.ts +21 -0
  276. package/package.json +3 -3
@@ -0,0 +1,47 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ import React from 'react';
23
+ import { Input } from '../input';
24
+ /**
25
+ *
26
+ *
27
+ * Helpers
28
+ *
29
+ *
30
+ */
31
+ /** Add any helper functions here. */
32
+ /**
33
+ *
34
+ *
35
+ * Checkbox Component
36
+ *
37
+ *
38
+ */
39
+ const Checkbox = React.forwardRef((props, ref) => {
40
+ if (!props['aria-label'] && !props.label) {
41
+ console.warn('To be accesible the input component requires either `aria-label` or `label` prop: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI');
42
+ }
43
+ return _jsx(Input, Object.assign({}, props, { ref: ref, type: "checkbox", role: "checkbox" }), void 0);
44
+ });
45
+ Checkbox.displayName = 'Checkbox';
46
+ export default Checkbox;
47
+ //# sourceMappingURL=Checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/checkbox/Checkbox.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC;;;;;;GAMG;AAEH,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,KAAiB,EAAE,GAAyC,EAAE,EAAE;IAC/D,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;QACxC,OAAO,CAAC,IAAI,CACV,sJAAsJ,CACvJ,CAAC;KACH;IAED,OAAO,KAAC,KAAK,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,UAAU,YAAG,CAAC;AACxE,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,22 @@
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 Checkbox } from './Checkbox';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/checkbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,189 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ /**
14
+ *
15
+ * Copyright (c) "Neo4j"
16
+ * Neo4j Sweden AB [http://neo4j.com]
17
+ *
18
+ * This file is part of Neo4j.
19
+ *
20
+ * Neo4j is free software: you can redistribute it and/or modify
21
+ * it under the terms of the GNU General Public License as published by
22
+ * the Free Software Foundation, either version 3 of the License, or
23
+ * (at your option) any later version.
24
+ *
25
+ * This program is distributed in the hope that it will be useful,
26
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ * GNU General Public License for more details.
29
+ *
30
+ * You should have received a copy of the GNU General Public License
31
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
32
+ */
33
+ import React, { forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useRef, } from 'react';
34
+ import { HeroIcon } from '../icons';
35
+ import { Popover } from '../popover';
36
+ import classnames from 'classnames';
37
+ const MenuContext = React.createContext(null);
38
+ const useMenuContext = () => {
39
+ const context = useContext(MenuContext);
40
+ if (context === null) {
41
+ throw new Error('Menu used without context. Did you render this component inside a <Menu />?');
42
+ }
43
+ return context;
44
+ };
45
+ export const Menu = forwardRef(function Menu(_a, ref) {
46
+ var { menuSize = 'small', className, minWidth = 250, open, onClose, children } = _a, rest = __rest(_a, ["menuSize", "className", "minWidth", "open", "onClose", "children"]);
47
+ const menuRef = useRef();
48
+ const focusFirstMenuItem = useCallback(() => {
49
+ const menu = menuRef.current;
50
+ if (!menu)
51
+ return;
52
+ const items = menu.querySelectorAll(':scope > .menu-items > .menu-item');
53
+ if (items.length === 0) {
54
+ menu.focus();
55
+ }
56
+ items[0].focus();
57
+ }, []);
58
+ // Override ref to map to internal ref
59
+ // as well as change focus to focus the
60
+ // first menu item
61
+ useImperativeHandle(ref, () => {
62
+ const menu = menuRef.current;
63
+ if (!menu) {
64
+ return null;
65
+ }
66
+ return Object.assign(Object.assign({}, menu), { focus: focusFirstMenuItem });
67
+ });
68
+ // Focus first menu item on open.
69
+ // This effect is separate from the above
70
+ // `setPositiongStyles` effect as the above
71
+ // is triggered on every render usually as
72
+ // anchorOrigin and transformOrigin
73
+ // are typically not memoized
74
+ useEffect(() => {
75
+ if (open) {
76
+ focusFirstMenuItem();
77
+ }
78
+ }, [open, focusFirstMenuItem]);
79
+ const classes = classnames('ndl-menu', menuSize, className);
80
+ return (_jsx(MenuContext.Provider, Object.assign({ value: { onClose } }, { children: _jsx(Popover, Object.assign({ tabIndex: -1 }, rest, { open: open, style: Object.assign({ minWidth }, (rest.style || {})), className: classes, ref: menuRef, onClose: onClose }, { children: children }), void 0) }), void 0));
81
+ });
82
+ const getMenuItem = (menuItems, iterator) => {
83
+ const activeElement = document.activeElement;
84
+ let newEl = iterator(menuItems, activeElement);
85
+ let menuItem = null;
86
+ // Iterate over next element until we find a menu item
87
+ // Iterate a maximum of 10 times looking for an element
88
+ for (let i = 0; i < 10; i++) {
89
+ // Can't find new element, break
90
+ if (!newEl) {
91
+ return null;
92
+ }
93
+ const role = newEl.getAttribute('role');
94
+ if (role === 'menuitem') {
95
+ menuItem = newEl;
96
+ break;
97
+ }
98
+ newEl = iterator(menuItems, newEl);
99
+ }
100
+ return menuItem;
101
+ };
102
+ // Gets next sibling child of the menu items, looping at the end
103
+ const nextElement = (menuItems, currentEl) => {
104
+ if (currentEl === menuItems || !(currentEl === null || currentEl === void 0 ? void 0 : currentEl.nextElementSibling)) {
105
+ return menuItems.firstChild ? menuItems.firstChild : null;
106
+ }
107
+ else if (currentEl === null || currentEl === void 0 ? void 0 : currentEl.nextElementSibling) {
108
+ return currentEl.nextElementSibling;
109
+ }
110
+ return null;
111
+ };
112
+ // Gets prev sibling child of the menu items, looping at the top
113
+ const prevElement = (menuItems, currentEl) => {
114
+ if (currentEl === menuItems || !(currentEl === null || currentEl === void 0 ? void 0 : currentEl.previousElementSibling)) {
115
+ return menuItems.lastChild ? menuItems.lastChild : null;
116
+ }
117
+ else if (currentEl === null || currentEl === void 0 ? void 0 : currentEl.previousElementSibling) {
118
+ return currentEl.previousElementSibling;
119
+ }
120
+ return null;
121
+ };
122
+ export const MenuItems = forwardRef(function MenuItems(_a, ref) {
123
+ var { as = 'ul', children, className } = _a, rest = __rest(_a, ["as", "children", "className"]);
124
+ const menuItemsRef = useRef();
125
+ const { onClose } = useMenuContext();
126
+ const handleKeyDown = (event) => {
127
+ const menuItems = menuItemsRef.current;
128
+ if (!menuItems) {
129
+ return;
130
+ }
131
+ if (event.key == 'ArrowDown') {
132
+ event.preventDefault();
133
+ event.stopPropagation();
134
+ const newFocusedElement = getMenuItem(menuItems, nextElement);
135
+ newFocusedElement === null || newFocusedElement === void 0 ? void 0 : newFocusedElement.focus();
136
+ }
137
+ else if (event.key == 'ArrowUp') {
138
+ event.preventDefault();
139
+ event.stopPropagation();
140
+ const newFocusedElement = getMenuItem(menuItems, prevElement);
141
+ newFocusedElement === null || newFocusedElement === void 0 ? void 0 : newFocusedElement.focus();
142
+ }
143
+ else if (event.key == 'Tab' || event.key == 'Escape') {
144
+ event.preventDefault();
145
+ onClose && onClose(event);
146
+ }
147
+ };
148
+ useImperativeHandle(ref, () => menuItemsRef.current);
149
+ const Component = as;
150
+ const classes = classnames('menu-items', className);
151
+ return (_jsx(Component, Object.assign({ tabIndex: -1, onKeyDown: handleKeyDown, role: "menu" }, rest, { className: classes, ref: menuItemsRef }, { children: children }), void 0));
152
+ });
153
+ export const MenuItem = forwardRef(function MenuItem(_a, ref) {
154
+ var { as = 'li', icon, title, description, className, disabled = false, onClick, onKeyDown } = _a, rest = __rest(_a, ["as", "icon", "title", "description", "className", "disabled", "onClick", "onKeyDown"]);
155
+ const Component = as;
156
+ const classes = classnames(`menu-item n-flex n-flex-col`, className, {
157
+ disabled,
158
+ });
159
+ const handleClick = (e) => {
160
+ if (disabled) {
161
+ e.preventDefault();
162
+ return;
163
+ }
164
+ if (onClick)
165
+ onClick(e);
166
+ };
167
+ const handleKeyDown = (e) => {
168
+ if (onKeyDown)
169
+ onKeyDown(e);
170
+ if (e.key === 'Enter') {
171
+ if (disabled) {
172
+ e.preventDefault();
173
+ return;
174
+ }
175
+ if (onClick)
176
+ onClick(e);
177
+ }
178
+ };
179
+ return (_jsxs(Component, Object.assign({ tabIndex: -1, role: "menuitem" }, rest, { className: classes, onClick: handleClick, onKeyDown: handleKeyDown, ref: ref }, { children: [_jsxs("div", Object.assign({ className: "n-flex n-items-center" }, { children: [icon && _jsx("div", Object.assign({ className: "menu-item-icon" }, { children: icon }), void 0), _jsx("div", Object.assign({ className: "menu-item-title" }, { children: title }), void 0)] }), void 0), description && (_jsx("div", Object.assign({ className: "menu-item-description" }, { children: description }), void 0))] }), void 0));
180
+ });
181
+ export const MenuHeader = forwardRef(function MenuHeader(_a, ref) {
182
+ var { as = 'div', title, description, className } = _a, rest = __rest(_a, ["as", "title", "description", "className"]);
183
+ const Component = as;
184
+ const { onClose } = useMenuContext();
185
+ const handleClose = (e) => onClose && onClose(e);
186
+ const classes = classnames('menu-header n-flex n-flex-col', className);
187
+ return (_jsxs(Component, Object.assign({}, rest, { className: classes, ref: ref }, { children: [_jsxs("div", Object.assign({ className: "n-flex n-justify-between n-items-center" }, { children: [_jsx("div", Object.assign({ className: "menu-header-title" }, { children: title }), void 0), _jsx("div", Object.assign({ tabIndex: 0, role: "button", onKeyDown: handleClose, onClick: handleClose, className: "menu-header-icon" }, { children: _jsx(HeroIcon, { iconName: "XIcon" }, void 0) }), void 0)] }), void 0), description && (_jsx("div", Object.assign({ className: "menu-header-description" }, { children: description }), void 0))] }), void 0));
188
+ });
189
+ //# sourceMappingURL=ContextMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../../src/context-menu/ContextMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,EACZ,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,MAAM,GACP,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,OAAO,EAAgB,MAAM,YAAY,CAAC;AACnD,OAAO,UAAU,MAAM,YAAY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
+ *
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 * from './ContextMenu';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context-menu/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,eAAe,CAAC"}
@@ -0,0 +1,37 @@
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
+ // Corresponds to 10 frames at 60 Hz.
22
+ // A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.
23
+ export function debounce(func, wait = 166) {
24
+ let timeout;
25
+ function debounced(...args) {
26
+ const later = () => {
27
+ func.apply(this, args);
28
+ };
29
+ clearTimeout(timeout);
30
+ timeout = setTimeout(later, wait);
31
+ }
32
+ debounced.clear = () => {
33
+ clearTimeout(timeout);
34
+ };
35
+ return debounced;
36
+ }
37
+ //# sourceMappingURL=debounce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../../src/helpers/debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,qCAAqC;AACrC,kFAAkF;AAClF,MAAM,UAAU,QAAQ,CAAC,IAAqC,EAAE,IAAI,GAAG,GAAG;IACxE,IAAI,OAAuB,CAAC;IAC5B,SAAS,SAAS,CAAgB,GAAG,IAAe;QAClD,MAAM,KAAK,GAAG,GAAG,EAAE;YACjB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzB,CAAC,CAAC;QACF,YAAY,CAAC,OAAO,CAAC,CAAC;QACtB,OAAO,GAAG,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,SAAS,CAAC,KAAK,GAAG,GAAG,EAAE;QACrB,YAAY,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,23 @@
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
+ import { forwardRef as reactForwardRef, } from 'react';
22
+ export const forwardRef = reactForwardRef;
23
+ //# sourceMappingURL=forwardRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forwardRef.js","sourceRoot":"","sources":["../../../src/helpers/forwardRef.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAEL,UAAU,IAAI,eAAe,GAG9B,MAAM,OAAO,CAAC;AAYf,MAAM,CAAC,MAAM,UAAU,GAAG,eAAiC,CAAC"}
@@ -0,0 +1,24 @@
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 * from './debounce';
22
+ export * from './types';
23
+ export * from './forwardRef';
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,42 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28
+ });
29
+ };
30
+ import { axe } from 'jest-axe';
31
+ /**
32
+ * A11y testing with Axe
33
+ * Jest helper to the container for HTML
34
+ * inaccessibilities
35
+ *
36
+ * More: https://github.com/nickcolley/jest-axe
37
+ */
38
+ export const a11yValidation = (container) => __awaiter(void 0, void 0, void 0, function* () {
39
+ const results = yield axe(container);
40
+ expect(results).toHaveNoViolations();
41
+ });
42
+ //# sourceMappingURL=testing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/helpers/testing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAO,SAAsB,EAAE,EAAE;IAC7D,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,SAAS,CAAC,CAAC;IACrC,MAAM,CAAC,OAAO,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACvC,CAAC,CAAA,CAAC"}
@@ -0,0 +1,22 @@
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 {};
22
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/helpers/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
@@ -0,0 +1,41 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ *
15
+ * Copyright (c) "Neo4j"
16
+ * Neo4j Sweden AB [http://neo4j.com]
17
+ *
18
+ * This file is part of Neo4j.
19
+ *
20
+ * Neo4j is free software: you can redistribute it and/or modify
21
+ * it under the terms of the GNU General Public License as published by
22
+ * the Free Software Foundation, either version 3 of the License, or
23
+ * (at your option) any later version.
24
+ *
25
+ * This program is distributed in the hope that it will be useful,
26
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ * GNU General Public License for more details.
29
+ *
30
+ * You should have received a copy of the GNU General Public License
31
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
32
+ */
33
+ import { forwardRef } from '../helpers';
34
+ import * as CustomIcons from './custom/index';
35
+ export const CustomIcon = forwardRef(function CustomIcon(_a, ref) {
36
+ var { iconName = 'Drag' } = _a, props = __rest(_a, ["iconName"]);
37
+ const IconComponent = CustomIcons[iconName];
38
+ return _jsx(IconComponent, Object.assign({}, props, { ref: ref }), void 0);
39
+ });
40
+ export default CustomIcon;
41
+ //# sourceMappingURL=Custom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Custom.js","sourceRoot":"","sources":["../../../src/icons/Custom.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAI9C,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,UAAU,CACtD,EAK2B,EAC3B,GAAsC;QANtC,EACE,QAAQ,GAAG,MAAM,OAIQ,EAHtB,KAAK,cAFV,YAGC,CADS;IAMV,MAAM,aAAa,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;IAE5C,OAAO,KAAC,aAAa,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,YAAI,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -0,0 +1,33 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as OutlinedIcons from '@heroicons/react/outline';
14
+ import * as SolidIcons from '@heroicons/react/solid';
15
+ import { forwardRef } from '../helpers';
16
+ export const HeroIcon = forwardRef(function HeroIcon(_a, ref) {
17
+ var { iconName = 'GlobeAltIcon', type = 'outline' } = _a, props = __rest(_a, ["iconName", "type"]);
18
+ let IconComponent;
19
+ switch (type) {
20
+ case 'solid':
21
+ IconComponent = SolidIcons[iconName];
22
+ break;
23
+ case 'outline':
24
+ IconComponent = OutlinedIcons[iconName];
25
+ break;
26
+ default:
27
+ IconComponent = SolidIcons[iconName];
28
+ console.error(`Type must be 'solid' or 'outline', you provided: ${type}`);
29
+ }
30
+ return _jsx(IconComponent, Object.assign({}, props, { ref: ref }), void 0);
31
+ });
32
+ export default HeroIcon;
33
+ //# sourceMappingURL=Hero.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.js","sourceRoot":"","sources":["../../../src/icons/Hero.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,QAAQ,CAClD,EAO2B,EAC3B,GAAsC;QARtC,EACE,QAAQ,GAAG,cAAc,EACzB,IAAI,GAAG,SAAS,OAKS,EAJtB,KAAK,cAHV,oBAIC,CADS;IAOV,IAAI,aAAa,CAAC;IAElB,QAAQ,IAAI,EAAE;QACZ,KAAK,OAAO;YACV,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;YACrC,MAAM;QACR,KAAK,SAAS;YACZ,aAAa,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;YACxC,MAAM;QACR;YACE,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;YACrC,OAAO,CAAC,KAAK,CAAC,oDAAoD,IAAI,EAAE,CAAC,CAAC;KAC7E;IAED,OAAO,KAAC,aAAa,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,YAAI,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const SvgCircle = (props) => (_jsx("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 9 9", fill: "none" }, props, { children: _jsx("circle", { cx: 4.5, cy: 4.5, r: 4, fill: "currentColor" }, void 0) }), void 0));
3
+ export default SvgCircle;
4
+ //# sourceMappingURL=Circle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Circle.js","sourceRoot":"","sources":["../../../../src/icons/custom/Circle.tsx"],"names":[],"mappings":";AAuBA,MAAM,SAAS,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACpD,4BAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,MAAM,IAAK,KAAK,cACnE,iBAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAC,cAAc,WAAG,YAClD,CACP,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const SvgDatabaseAddCircle = (props) => (_jsx("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: _jsx("path", { d: "M17.876 16.1188C17.876 15.7046 17.5402 15.3688 17.126 15.3688C16.7118 15.3688 16.376 15.7046 16.376 16.1188H17.876ZM16.376 19.1188C16.376 19.533 16.7118 19.8688 17.126 19.8688C17.5402 19.8688 17.876 19.533 17.876 19.1188H16.376ZM18.626 18.3688C19.0402 18.3688 19.376 18.033 19.376 17.6188C19.376 17.2046 19.0402 16.8688 18.626 16.8688V18.3688ZM15.626 16.8688C15.2118 16.8688 14.876 17.2046 14.876 17.6188C14.876 18.033 15.2118 18.3688 15.626 18.3688V16.8688ZM10.374 20.6313C10.7882 20.6313 11.124 20.2956 11.124 19.8813C11.124 19.4671 10.7882 19.1313 10.374 19.1313V20.6313ZM10.374 15.6313C10.7882 15.6313 11.124 15.2956 11.124 14.8813C11.124 14.4671 10.7882 14.1313 10.374 14.1313V15.6313ZM17.624 10.8813C17.624 11.2956 17.9598 11.6313 18.374 11.6313C18.7882 11.6313 19.124 11.2956 19.124 10.8813H17.624ZM16.376 16.1188V17.6188H17.876V16.1188H16.376ZM16.376 17.6188V19.1188H17.876V17.6188H16.376ZM18.626 16.8688H17.126V18.3688H18.626V16.8688ZM17.126 16.8688H15.626V18.3688H17.126V16.8688ZM20.876 17.6188C20.876 19.6898 19.197 21.3688 17.126 21.3688V22.8688C20.0255 22.8688 22.376 20.5183 22.376 17.6188H20.876ZM17.126 21.3688C15.0549 21.3688 13.376 19.6898 13.376 17.6188H11.876C11.876 20.5183 14.2265 22.8688 17.126 22.8688V21.3688ZM13.376 17.6188C13.376 15.5477 15.0549 13.8688 17.126 13.8688V12.3688C14.2265 12.3688 11.876 14.7193 11.876 17.6188H13.376ZM17.126 13.8688C19.197 13.8688 20.876 15.5477 20.876 17.6188H22.376C22.376 14.7193 20.0255 12.3688 17.126 12.3688V13.8688ZM3.12402 15.8813V5.88135H1.62402V15.8813H3.12402ZM10.374 19.1313C8.25607 19.1313 6.37571 18.7005 5.05258 18.039C3.68459 17.355 3.12402 16.5488 3.12402 15.8813H1.62402C1.62402 17.423 2.85432 18.6169 4.38176 19.3806C5.95406 20.1667 8.0737 20.6313 10.374 20.6313V19.1313ZM17.624 5.88135C17.624 6.5488 17.0635 7.35496 15.6955 8.03895C14.3723 8.70052 12.492 9.13135 10.374 9.13135V10.6313C12.6743 10.6313 14.794 10.1667 16.3663 9.3806C17.8937 8.61687 19.124 7.42304 19.124 5.88135H17.624ZM10.374 9.13135C8.25607 9.13135 6.37571 8.70052 5.05258 8.03895C3.68459 7.35496 3.12402 6.5488 3.12402 5.88135H1.62402C1.62402 7.42304 2.85432 8.61687 4.38176 9.3806C5.95406 10.1667 8.0737 10.6313 10.374 10.6313V9.13135ZM3.12402 5.88135C3.12402 5.2139 3.68459 4.40773 5.05258 3.72374C6.37571 3.06218 8.25607 2.63135 10.374 2.63135V1.13135C8.0737 1.13135 5.95406 1.59595 4.38176 2.3821C2.85432 3.14582 1.62402 4.33966 1.62402 5.88135H3.12402ZM10.374 2.63135C12.492 2.63135 14.3723 3.06218 15.6955 3.72374C17.0635 4.40773 17.624 5.2139 17.624 5.88135H19.124C19.124 4.33966 17.8937 3.14582 16.3663 2.3821C14.794 1.59595 12.6743 1.13135 10.374 1.13135V2.63135ZM10.374 14.1313C8.25607 14.1313 6.37571 13.7005 5.05258 13.039C3.68459 12.355 3.12402 11.5488 3.12402 10.8813H1.62402C1.62402 12.423 2.85432 13.6169 4.38176 14.3806C5.95406 15.1667 8.0737 15.6313 10.374 15.6313V14.1313ZM17.624 5.88135V10.8813H19.124V5.88135H17.624Z", fill: "currentColor" }, void 0) }), void 0));
3
+ export default SvgDatabaseAddCircle;
4
+ //# sourceMappingURL=DatabaseAddCircle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatabaseAddCircle.js","sourceRoot":"","sources":["../../../../src/icons/custom/DatabaseAddCircle.tsx"],"names":[],"mappings":";AAuBA,MAAM,oBAAoB,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC/D,4BACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,eACE,CAAC,EAAC,q0FAAq0F,EACv0F,IAAI,EAAC,cAAc,WACnB,YACE,CACP,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const SvgDrag = (props) => (_jsxs("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [_jsx("path", { d: "M8.66667 6H9.33333C9.70152 6 10 6.29848 10 6.66667V7.33333C10 7.70152 9.70152 8 9.33333 8H8.66667C8.29848 8 8 7.70152 8 7.33333V6.66667C8 6.29848 8.29848 6 8.66667 6Z", fill: "currentColor" }, void 0), _jsx("path", { d: "M14.6667 6H15.3333C15.7015 6 16 6.29848 16 6.66667V7.33333C16 7.70152 15.7015 8 15.3333 8H14.6667C14.2985 8 14 7.70152 14 7.33333V6.66667C14 6.29848 14.2985 6 14.6667 6Z", fill: "currentColor" }, void 0), _jsx("path", { d: "M15.3333 16H14.6667C14.2985 16 14 16.2985 14 16.6667V17.3333C14 17.7015 14.2985 18 14.6667 18H15.3333C15.7015 18 16 17.7015 16 17.3333V16.6667C16 16.2985 15.7015 16 15.3333 16Z", fill: "currentColor" }, void 0), _jsx("path", { d: "M8.66667 11H9.33333C9.70152 11 10 11.2985 10 11.6667V12.3333C10 12.7015 9.70152 13 9.33333 13H8.66667C8.29848 13 8 12.7015 8 12.3333V11.6667C8 11.2985 8.29848 11 8.66667 11Z", fill: "currentColor" }, void 0), _jsx("path", { d: "M15.3333 11H14.6667C14.2985 11 14 11.2985 14 11.6667V12.3333C14 12.7015 14.2985 13 14.6667 13H15.3333C15.7015 13 16 12.7015 16 12.3333V11.6667C16 11.2985 15.7015 11 15.3333 11Z", fill: "currentColor" }, void 0), _jsx("path", { d: "M8.66667 16H9.33333C9.70152 16 10 16.2985 10 16.6667V17.3333C10 17.7015 9.70152 18 9.33333 18H8.66667C8.29848 18 8 17.7015 8 17.3333V16.6667C8 16.2985 8.29848 16 8.66667 16Z", fill: "currentColor" }, void 0)] }), void 0));
3
+ export default SvgDrag;
4
+ //# sourceMappingURL=Drag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drag.js","sourceRoot":"","sources":["../../../../src/icons/custom/Drag.tsx"],"names":[],"mappings":";AAuBA,MAAM,OAAO,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAClD,6BACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,eAET,eACE,CAAC,EAAC,wKAAwK,EAC1K,IAAI,EAAC,cAAc,WACnB,EACF,eACE,CAAC,EAAC,2KAA2K,EAC7K,IAAI,EAAC,cAAc,WACnB,EACF,eACE,CAAC,EAAC,kLAAkL,EACpL,IAAI,EAAC,cAAc,WACnB,EACF,eACE,CAAC,EAAC,+KAA+K,EACjL,IAAI,EAAC,cAAc,WACnB,EACF,eACE,CAAC,EAAC,kLAAkL,EACpL,IAAI,EAAC,cAAc,WACnB,EACF,eACE,CAAC,EAAC,+KAA+K,EACjL,IAAI,EAAC,cAAc,WACnB,aACE,CACP,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const SvgExpand = (props) => (_jsx("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: _jsx("path", { d: "M10.2 13.7999L3 20.9999M3 20.9999V15.6001M3 20.9999L8.4 21.0001M20.9996 8.4V3M20.9996 3H15.5996M20.9996 3L13.7988 10.2", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }, void 0) }), void 0));
3
+ export default SvgExpand;
4
+ //# sourceMappingURL=Expand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Expand.js","sourceRoot":"","sources":["../../../../src/icons/custom/Expand.tsx"],"names":[],"mappings":";AAuBA,MAAM,SAAS,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACpD,4BACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,eACE,CAAC,EAAC,wHAAwH,EAC1H,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,GAAG,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,WACtB,YACE,CACP,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const SvgExternalLink = (props) => (_jsx("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: _jsx("path", { d: "M4.5 19.4991L19.4984 4.50073M19.5003 18.6416L19.5003 4.50105L5.35981 4.50105", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }, void 0) }), void 0));
3
+ export default SvgExternalLink;
4
+ //# sourceMappingURL=ExternalLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExternalLink.js","sourceRoot":"","sources":["../../../../src/icons/custom/ExternalLink.tsx"],"names":[],"mappings":";AAuBA,MAAM,eAAe,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC1D,4BACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,eACE,CAAC,EAAC,8EAA8E,EAChF,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,GAAG,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,WACtB,YACE,CACP,CAAC;AAEF,eAAe,eAAe,CAAC"}