@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,184 @@
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 { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState, } from 'react';
34
+ import * as ReactDOM from 'react-dom';
35
+ import classnames from 'classnames';
36
+ import { debounce } from '../helpers';
37
+ const getScrollbarSize = (doc) => {
38
+ // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
39
+ const documentWidth = doc.documentElement.clientWidth;
40
+ return Math.abs(window.innerWidth - documentWidth);
41
+ };
42
+ const getPaddingRight = (element) => parseInt(window.getComputedStyle(element).paddingRight, 10) || 0;
43
+ const getOffsetTop = (rect, vertical) => {
44
+ let offset = 0;
45
+ if (vertical === 'bottom') {
46
+ offset = rect.height;
47
+ }
48
+ return offset;
49
+ };
50
+ const getOffsetLeft = (rect, horizontal) => {
51
+ let offset = 0;
52
+ if (horizontal === 'right') {
53
+ offset = rect.width;
54
+ }
55
+ return offset;
56
+ };
57
+ export const Popover = forwardRef(function Popover(_a, ref) {
58
+ var { as = 'div', children, open, anchorEl, onClose, anchorOrigin = { vertical: 'bottom', horizontal: 'left' }, transformOrigin = { vertical: 'top', horizontal: 'left' }, className, nested = false } = _a, rest = __rest(_a, ["as", "children", "open", "anchorEl", "onClose", "anchorOrigin", "transformOrigin", "className", "nested"]);
59
+ const Component = as;
60
+ const popoverRef = useRef();
61
+ const bodyPadding = useRef(0);
62
+ // Override ref to map to internal ref
63
+ useImperativeHandle(ref, () => {
64
+ const popover = popoverRef.current;
65
+ if (!popover) {
66
+ return null;
67
+ }
68
+ return popover;
69
+ });
70
+ const [enter, setEnter] = useState(false);
71
+ const base = classnames({
72
+ open,
73
+ enter,
74
+ });
75
+ const getPositioningStyles = useCallback((element) => {
76
+ if (!anchorEl)
77
+ throw Error('Missing anchorEl for Popover component');
78
+ const anchorRect = anchorEl.getBoundingClientRect();
79
+ const menuRect = {
80
+ width: element.offsetWidth,
81
+ height: element.offsetHeight,
82
+ };
83
+ const transformX = transformOrigin.horizontal == 'right' ? -menuRect.width : 0;
84
+ const transformY = transformOrigin.vertical == 'bottom' ? -menuRect.height : 0;
85
+ const marginThreshold = 16; // An arbitrary margin between the menu popup and the border of the window
86
+ // Window thresholds taking required margin into account
87
+ const heightThreshold = window.innerHeight - marginThreshold;
88
+ const widthThreshold = window.innerWidth - marginThreshold;
89
+ let top = anchorRect.top +
90
+ getOffsetTop(anchorRect, anchorOrigin.vertical) +
91
+ transformY;
92
+ let left = anchorRect.left +
93
+ getOffsetLeft(anchorRect, anchorOrigin.horizontal) +
94
+ transformX;
95
+ const right = left + menuRect.width;
96
+ const bottom = top + menuRect.height;
97
+ // Check if the vertical axis needs shifting
98
+ if (top < marginThreshold) {
99
+ const diff = top - marginThreshold;
100
+ top -= diff;
101
+ }
102
+ else if (bottom > heightThreshold) {
103
+ const diff = bottom - heightThreshold;
104
+ top -= diff;
105
+ }
106
+ // Check if the horizontal axis needs shifting
107
+ if (left < marginThreshold) {
108
+ const diff = left - marginThreshold;
109
+ left -= diff;
110
+ }
111
+ else if (right > widthThreshold) {
112
+ const diff = right - widthThreshold;
113
+ left -= diff;
114
+ }
115
+ return {
116
+ top,
117
+ left,
118
+ };
119
+ }, [anchorOrigin, transformOrigin, anchorEl]);
120
+ const setPositioningStyles = useCallback(() => {
121
+ const element = popoverRef.current;
122
+ if (!element) {
123
+ return;
124
+ }
125
+ const positioning = getPositioningStyles(element);
126
+ if (positioning.top !== null) {
127
+ element.style.top = `${positioning.top}px`;
128
+ }
129
+ if (positioning.left !== null) {
130
+ element.style.left = `${positioning.left}px`;
131
+ }
132
+ }, [getPositioningStyles]);
133
+ // Disable scroll and add padding when the popover is open
134
+ useEffect(() => {
135
+ if (nested) {
136
+ return;
137
+ }
138
+ if (open) {
139
+ const existingPaddingRight = getPaddingRight(document.body);
140
+ bodyPadding.current = existingPaddingRight;
141
+ const newPaddingRight = existingPaddingRight + getScrollbarSize(document);
142
+ document.body.style.overflow = 'hidden';
143
+ document.body.style.paddingRight = `${newPaddingRight}px`;
144
+ }
145
+ else {
146
+ document.body.style.overflow = '';
147
+ document.body.style.paddingRight = `${bodyPadding.current}px`;
148
+ }
149
+ }, [open, nested]);
150
+ useEffect(() => {
151
+ if (open) {
152
+ setPositioningStyles();
153
+ }
154
+ }, [open, setPositioningStyles]);
155
+ // Set Enter to trigger fade in animation
156
+ useEffect(() => setEnter(open), [open]);
157
+ useEffect(() => {
158
+ if (!open) {
159
+ return undefined;
160
+ }
161
+ const handleResize = debounce(() => {
162
+ setPositioningStyles();
163
+ });
164
+ window.addEventListener('resize', handleResize);
165
+ return () => {
166
+ handleResize.clear();
167
+ window.removeEventListener('resize', handleResize);
168
+ };
169
+ }, [anchorEl, open, setPositioningStyles]);
170
+ const handleBackdropClick = (event) => {
171
+ event.stopPropagation();
172
+ event.preventDefault();
173
+ onClose && onClose(event);
174
+ };
175
+ if (!open) {
176
+ return null;
177
+ }
178
+ const classes = classnames('ndl-popover', base, className);
179
+ return (_jsxs(Portal, Object.assign({ container: document.body }, { children: [_jsx("div", { className: "ndl-popover-backdrop", role: "button", tabIndex: 0, onClick: handleBackdropClick, onKeyDown: handleBackdropClick, "data-testid": "popover-backdrop" }, void 0), _jsx(Component, Object.assign({ tabIndex: -1 }, rest, { className: classes, ref: popoverRef, "data-testid": "popover-content" }, { children: children }), void 0)] }), void 0));
180
+ });
181
+ const Portal = ({ children, container }) => {
182
+ return ReactDOM.createPortal(children, container);
183
+ };
184
+ //# sourceMappingURL=Popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../src/popover/Popover.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAc,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAetC,MAAM,gBAAgB,GAAG,CAAC,GAAa,EAAU,EAAE;IACjD,iFAAiF;IACjF,MAAM,aAAa,GAAG,GAAG,CAAC,eAAe,CAAC,WAAW,CAAC;IACtD,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,GAAG,aAAa,CAAC,CAAC;AACrD,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,OAAgB,EAAU,EAAE,CACnD,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AAEnE,MAAM,YAAY,GAAG,CAAC,IAAa,EAAE,QAAkB,EAAE,EAAE;IACzD,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,IAAI,QAAQ,KAAK,QAAQ,EAAE;QACzB,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;KACtB;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAa,EAAE,UAAsB,EAAE,EAAE;IAC9D,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,IAAI,UAAU,KAAK,OAAO,EAAE;QAC1B,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC;KACrB;IAED,OAAO,MAAM,CAAC;AAChB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,CAAC,IAAI,iBAE9B,cACE,SAAS,EAAC,sBAAsB,EAChC,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,mBAAmB,iBAClB,kBAAkB,WAC9B,EACF,KAAC,SAAS,kBACR,QAAQ,EAAE,CAAC,CAAC,IACR,IAAI,IACR,SAAS,EAAE,OAAO,EAClB,GAAG,EAAE,UAAU,iBACH,iBAAiB,gBAE5B,QAAQ,YACC,aACL,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAMH,MAAM,MAAM,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAe,EAAE,EAAE;IACtD,OAAO,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AACpD,CAAC,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 * from './Popover';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/popover/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,WAAW,CAAC"}
@@ -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, 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 from 'react';
34
+ import classnames from 'classnames';
35
+ const ProgressBar = React.forwardRef(function ProgressBar(_a, ref) {
36
+ var { heading, estimatedTime, value, barSize = 'small', className } = _a, rest = __rest(_a, ["heading", "estimatedTime", "value", "barSize", "className"]);
37
+ const classes = classnames('ndl-progress-bar-wrapper', barSize, className);
38
+ return (_jsxs("div", Object.assign({}, rest, { className: classes, ref: ref }, { children: [_jsxs("div", Object.assign({ className: "header" }, { children: [_jsx("span", Object.assign({ className: "heading" }, { children: heading }), void 0), _jsx("span", Object.assign({ className: "progress-number" }, { children: value + '%' }), void 0)] }), void 0), _jsx("div", Object.assign({ className: "progress-bar-container", role: "progressbar", title: "progress bar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": value }, { children: _jsx("div", { className: "progress-bar", style: { width: value + '%' } }, void 0) }), void 0), estimatedTime && (_jsxs("div", Object.assign({ className: "details" }, { children: [_jsx("span", Object.assign({ className: "estimated-time-heading" }, { children: "Estimated time:" }), void 0), _jsx("span", Object.assign({ className: "estimated-time" }, { children: estimatedTime }), void 0)] }), void 0))] }), void 0));
39
+ });
40
+ export default ProgressBar;
41
+ //# sourceMappingURL=ProgressBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../src/progress-bar/ProgressBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAUpC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,WAAW,CACvD,EAOmB,EACnB,GAAuC;QARvC,EACE,OAAO,EACP,aAAa,EACb,KAAK,EACL,OAAO,GAAG,OAAO,EACjB,SAAS,OAEQ,EADd,IAAI,cANT,6DAOC,CADQ;IAIT,MAAM,OAAO,GAAG,UAAU,CAAC,0BAA0B,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAE3E,OAAO,CACL,+BAAS,IAAI,IAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,iBACzC,6BAAK,SAAS,EAAC,QAAQ,iBACrB,6BAAM,SAAS,EAAC,SAAS,gBAAE,OAAO,YAAQ,EAC1C,6BAAM,SAAS,EAAC,iBAAiB,gBAAE,KAAK,GAAG,GAAG,YAAQ,aAClD,EACN,4BACE,SAAS,EAAC,wBAAwB,EAClC,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,cAAc,mBACL,CAAC,mBACD,GAAG,mBACH,KAAK,gBAEpB,cAAK,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,GAAG,GAAG,EAAE,WAAI,YAC3D,EACL,aAAa,IAAI,CAChB,6BAAK,SAAS,EAAC,SAAS,iBACtB,6BAAM,SAAS,EAAC,wBAAwB,6CAAuB,EAC/D,6BAAM,SAAS,EAAC,gBAAgB,gBAAE,aAAa,YAAQ,aACnD,CACP,aACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,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 ProgressBar } from './ProgressBar';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/progress-bar/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,43 @@
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
+ * Radio Component
36
+ *
37
+ *
38
+ */
39
+ const Radio = React.forwardRef(function Radio(props, ref) {
40
+ return _jsx(Input, Object.assign({}, props, { type: "radio", role: "radio", ref: ref }), void 0);
41
+ });
42
+ export default Radio;
43
+ //# sourceMappingURL=Radio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../src/radio/Radio.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,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,KAAK,CAC3C,KAAiB,EACjB,GAAyC;IAEzC,OAAO,KAAC,KAAK,oBAAK,KAAK,IAAE,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAC,GAAG,EAAE,GAAG,YAAI,CAAC;AAClE,CAAC,CAAC,CAAC;AAEH,eAAe,KAAK,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 Radio } from './Radio';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/radio/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,43 @@
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
+ * Switch Component
36
+ *
37
+ *
38
+ */
39
+ const Switch = React.forwardRef(function Switch(props, ref) {
40
+ return _jsx(Input, Object.assign({}, props, { ref: ref, type: "checkbox", role: "switch" }), void 0);
41
+ });
42
+ export default Switch;
43
+ //# sourceMappingURL=Switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../src/switch/Switch.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,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,MAAM,CAC7C,KAAiB,EACjB,GAAyC;IAEzC,OAAO,KAAC,KAAK,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,QAAQ,YAAG,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,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 Switch } from './Switch';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/switch/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,76 @@
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, Fragment as _Fragment } 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, { useContext } from 'react';
34
+ import classnames from 'classnames';
35
+ const TabsContext = React.createContext(null);
36
+ const useTabsContext = () => {
37
+ const context = useContext(TabsContext);
38
+ if (context === null) {
39
+ throw new Error('Tab used without context');
40
+ }
41
+ return context;
42
+ };
43
+ const getTabPanelId = (tabId) => `tabpanel-${tabId}`;
44
+ const getGeneralTabClasses = (size, fill) => {
45
+ return {
46
+ large: size === 'large',
47
+ small: size === 'small',
48
+ filled: fill === 'filled',
49
+ underline: fill === 'underline',
50
+ };
51
+ };
52
+ export const Tabs = React.forwardRef(function Tabs(_a, ref) {
53
+ var { children, size = 'large', fill = 'underline', onChange, value, className, as = 'div' } = _a, rest = __rest(_a, ["children", "size", "fill", "onChange", "value", "className", "as"]);
54
+ const classes = classnames('ndl-tabs', getGeneralTabClasses(size, fill), className);
55
+ const Component = as;
56
+ return (_jsx(Component, Object.assign({ className: classes, role: "tablist" }, rest, { ref: ref }, { children: _jsx(TabsContext.Provider, Object.assign({ value: { value, size, fill, onChange } }, { children: children }), void 0) }), void 0));
57
+ });
58
+ export const Tab = React.forwardRef(function Tab(_a, ref) {
59
+ var { children, tabId, disabled = false, className, as = 'button' } = _a, rest = __rest(_a, ["children", "tabId", "disabled", "className", "as"]);
60
+ const { size, fill, value, onChange } = useTabsContext();
61
+ const base = classnames(Object.assign(Object.assign({}, getGeneralTabClasses(size, fill)), { selected: value === tabId, disabled }));
62
+ const Component = as;
63
+ // Cast onChange since the compiler isn't smart enough to figure out union of function's parameters
64
+ // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-3.html#improved-behavior-for-calling-union-types
65
+ // https://stackoverflow.com/questions/55572797/why-does-typescript-expect-never-as-function-argument-when-retrieving-the-func
66
+ const castOnChange = onChange;
67
+ const handleChange = () => !disabled && castOnChange(tabId);
68
+ const classes = classnames('tab', base, className);
69
+ return (_jsxs(Component, Object.assign({ className: classes, onClick: handleChange, role: "tab", "aria-controls": getTabPanelId(tabId) }, rest, { ref: ref }, { children: [children, fill === 'underline' && _jsx("span", { className: "tab-underline" }, void 0)] }), void 0));
70
+ });
71
+ export const TabPanel = React.forwardRef(function TabPanel(_a, ref) {
72
+ var { as = 'div', children, value, tabId } = _a, rest = __rest(_a, ["as", "children", "value", "tabId"]);
73
+ const Component = as;
74
+ return (_jsx(_Fragment, { children: value === tabId && (_jsx(Component, Object.assign({ role: "tabpanel", id: getTabPanelId(tabId) }, rest, { ref: ref }, { children: children }), void 0)) }, void 0));
75
+ });
76
+ //# sourceMappingURL=Tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.js","source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C,eAAe,WAAG,aACjD,CACb,CAAC;AACJ,CAAC,CAAC,CAAC;AAqBH,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,QAAQ,CACxD,EAA8D,EAC9D,GAAG;QADH,EAAE,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,OAA0B,EAArB,IAAI,cAA7C,oCAA+C,CAAF;IAG7C,MAAM,SAAS,GAAG,EAAE,CAAC;IAErB,OAAO,CACL,4BACG,KAAK,KAAK,KAAK,IAAI,CAClB,KAAC,SAAS,kBACR,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,IACpB,IAAI,IACR,GAAG,EAAE,GAAG,gBAEP,QAAQ,YACC,CACb,WACA,CACJ,CAAC;AACJ,CAAC,CAAC,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 * from './Tabs';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tabs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,62 @@
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 from 'react';
34
+ import classnames from 'classnames';
35
+ import { HeroIcon } from '../icons';
36
+ /**
37
+ *
38
+ *
39
+ * Helpers
40
+ *
41
+ *
42
+ */
43
+ /** Add any helper functions here. */
44
+ /**
45
+ *
46
+ *
47
+ * Tag Component
48
+ *
49
+ *
50
+ */
51
+ const Tag = React.forwardRef(function Tag(props, ref) {
52
+ const { children, type = 'default', removeable, onRemove } = props, rest = __rest(props, ["children", "type", "removeable", "onRemove"]);
53
+ if (removeable && typeof onRemove !== 'function') {
54
+ console.error('Tag element is removable but onRemove prop is not a function or provided');
55
+ }
56
+ const classes = classnames(`ndl-tag`, type, {
57
+ removeable: removeable,
58
+ });
59
+ return (_jsxs("div", Object.assign({}, rest, { className: classes, ref: ref }, { children: [children, removeable && (_jsx("button", Object.assign({ type: "button", className: "remove-icon", onClick: onRemove }, { children: _jsx(HeroIcon, { iconName: "XIcon" }, void 0) }), void 0))] }), void 0));
60
+ });
61
+ export default Tag;
62
+ //# sourceMappingURL=Tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/tag/Tag.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAgCpC;;;;;;GAMG;AAEH,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,GAAG,CACvC,KAAe,EACf,GAAuC;IAEvC,MAAM,EAAE,QAAQ,EAAE,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,QAAQ,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAArE,8CAA6D,CAAQ,CAAC;IAE5E,IAAI,UAAU,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;QAChD,OAAO,CAAC,KAAK,CACX,0EAA0E,CAC3E,CAAC;KACH;IAED,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,EAAE,IAAI,EAAE;QAC1C,UAAU,EAAE,UAAU;KACvB,CAAC,CAAC;IAEH,OAAO,CACL,+BAAS,IAAI,IAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,iBACxC,QAAQ,EACR,UAAU,IAAI,CACb,+BAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,aAAa,EAAC,OAAO,EAAE,QAAQ,gBAC7D,KAAC,QAAQ,IAAC,QAAQ,EAAC,OAAO,WAAG,YACtB,CACV,aACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,GAAG,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 Tag } from './Tag';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tag/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC"}