@neo4j-ndl/react 0.1.0

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 (161) hide show
  1. package/LICENSE +674 -0
  2. package/lib/alert/Alert.d.ts +70 -0
  3. package/lib/alert/Alert.js +114 -0
  4. package/lib/alert/Alert.js.map +1 -0
  5. package/lib/alert/index.d.ts +21 -0
  6. package/lib/alert/index.js +34 -0
  7. package/lib/alert/index.js.map +1 -0
  8. package/lib/button/Button.d.ts +52 -0
  9. package/lib/button/Button.js +110 -0
  10. package/lib/button/Button.js.map +1 -0
  11. package/lib/button/index.d.ts +21 -0
  12. package/lib/button/index.js +34 -0
  13. package/lib/button/index.js.map +1 -0
  14. package/lib/checkbox/Checkbox.d.ts +39 -0
  15. package/lib/checkbox/Checkbox.js +59 -0
  16. package/lib/checkbox/Checkbox.js.map +1 -0
  17. package/lib/checkbox/index.d.ts +21 -0
  18. package/lib/checkbox/index.js +33 -0
  19. package/lib/checkbox/index.js.map +1 -0
  20. package/lib/context-menu/ContextMenu.d.ts +65 -0
  21. package/lib/context-menu/ContextMenu.js +228 -0
  22. package/lib/context-menu/ContextMenu.js.map +1 -0
  23. package/lib/context-menu/index.d.ts +21 -0
  24. package/lib/context-menu/index.js +34 -0
  25. package/lib/context-menu/index.js.map +1 -0
  26. package/lib/helpers/debounce.d.ts +24 -0
  27. package/lib/helpers/debounce.js +47 -0
  28. package/lib/helpers/debounce.js.map +1 -0
  29. package/lib/helpers/index.d.ts +22 -0
  30. package/lib/helpers/index.js +35 -0
  31. package/lib/helpers/index.js.map +1 -0
  32. package/lib/helpers/types.d.ts +25 -0
  33. package/lib/helpers/types.js +23 -0
  34. package/lib/helpers/types.js.map +1 -0
  35. package/lib/icons/Custom.d.ts +27 -0
  36. package/lib/icons/Custom.js +77 -0
  37. package/lib/icons/Custom.js.map +1 -0
  38. package/lib/icons/Hero.d.ts +28 -0
  39. package/lib/icons/Hero.js +89 -0
  40. package/lib/icons/Hero.js.map +1 -0
  41. package/lib/icons/custom/Circle.d.ts +23 -0
  42. package/lib/icons/custom/Circle.js +57 -0
  43. package/lib/icons/custom/Circle.js.map +1 -0
  44. package/lib/icons/custom/DatabaseAddCircle.d.ts +23 -0
  45. package/lib/icons/custom/DatabaseAddCircle.js +57 -0
  46. package/lib/icons/custom/DatabaseAddCircle.js.map +1 -0
  47. package/lib/icons/custom/Drag.d.ts +23 -0
  48. package/lib/icons/custom/Drag.js +62 -0
  49. package/lib/icons/custom/Drag.js.map +1 -0
  50. package/lib/icons/custom/Expand.d.ts +23 -0
  51. package/lib/icons/custom/Expand.js +57 -0
  52. package/lib/icons/custom/Expand.js.map +1 -0
  53. package/lib/icons/custom/ExternalLink.d.ts +23 -0
  54. package/lib/icons/custom/ExternalLink.js +57 -0
  55. package/lib/icons/custom/ExternalLink.js.map +1 -0
  56. package/lib/icons/custom/FitToScreen.d.ts +23 -0
  57. package/lib/icons/custom/FitToScreen.js +57 -0
  58. package/lib/icons/custom/FitToScreen.js.map +1 -0
  59. package/lib/icons/custom/FolderBookmark.d.ts +23 -0
  60. package/lib/icons/custom/FolderBookmark.js +57 -0
  61. package/lib/icons/custom/FolderBookmark.js.map +1 -0
  62. package/lib/icons/custom/Heirarchy2.d.ts +23 -0
  63. package/lib/icons/custom/Heirarchy2.js +57 -0
  64. package/lib/icons/custom/Heirarchy2.js.map +1 -0
  65. package/lib/icons/custom/Hierarchy1.d.ts +23 -0
  66. package/lib/icons/custom/Hierarchy1.js +57 -0
  67. package/lib/icons/custom/Hierarchy1.js.map +1 -0
  68. package/lib/icons/custom/Pin.d.ts +23 -0
  69. package/lib/icons/custom/Pin.js +57 -0
  70. package/lib/icons/custom/Pin.js.map +1 -0
  71. package/lib/icons/custom/Presentation.d.ts +23 -0
  72. package/lib/icons/custom/Presentation.js +57 -0
  73. package/lib/icons/custom/Presentation.js.map +1 -0
  74. package/lib/icons/custom/Rhombus.d.ts +23 -0
  75. package/lib/icons/custom/Rhombus.js +57 -0
  76. package/lib/icons/custom/Rhombus.js.map +1 -0
  77. package/lib/icons/custom/Shrink.d.ts +23 -0
  78. package/lib/icons/custom/Shrink.js +57 -0
  79. package/lib/icons/custom/Shrink.js.map +1 -0
  80. package/lib/icons/custom/Text.d.ts +23 -0
  81. package/lib/icons/custom/Text.js +57 -0
  82. package/lib/icons/custom/Text.js.map +1 -0
  83. package/lib/icons/custom/Triangle.d.ts +23 -0
  84. package/lib/icons/custom/Triangle.js +57 -0
  85. package/lib/icons/custom/Triangle.js.map +1 -0
  86. package/lib/icons/custom/index.d.ts +35 -0
  87. package/lib/icons/custom/index.js +61 -0
  88. package/lib/icons/custom/index.js.map +1 -0
  89. package/lib/icons/index.d.ts +22 -0
  90. package/lib/icons/index.js +35 -0
  91. package/lib/icons/index.js.map +1 -0
  92. package/lib/index.d.ts +30 -0
  93. package/lib/index.js +43 -0
  94. package/lib/index.js.map +1 -0
  95. package/lib/input/Input.d.ts +44 -0
  96. package/lib/input/Input.js +92 -0
  97. package/lib/input/Input.js.map +1 -0
  98. package/lib/input/index.d.ts +21 -0
  99. package/lib/input/index.js +33 -0
  100. package/lib/input/index.js.map +1 -0
  101. package/lib/label/Label.d.ts +41 -0
  102. package/lib/label/Label.js +81 -0
  103. package/lib/label/Label.js.map +1 -0
  104. package/lib/label/index.d.ts +21 -0
  105. package/lib/label/index.js +33 -0
  106. package/lib/label/index.js.map +1 -0
  107. package/lib/loading-spinner/LoadingSpinner.d.ts +41 -0
  108. package/lib/loading-spinner/LoadingSpinner.js +45 -0
  109. package/lib/loading-spinner/LoadingSpinner.js.map +1 -0
  110. package/lib/loading-spinner/index.d.ts +21 -0
  111. package/lib/loading-spinner/index.js +33 -0
  112. package/lib/loading-spinner/index.js.map +1 -0
  113. package/lib/popover/Popover.d.ts +70 -0
  114. package/lib/popover/Popover.js +223 -0
  115. package/lib/popover/Popover.js.map +1 -0
  116. package/lib/popover/index.d.ts +21 -0
  117. package/lib/popover/index.js +34 -0
  118. package/lib/popover/index.js.map +1 -0
  119. package/lib/progress-bar/ProgressBar.d.ts +29 -0
  120. package/lib/progress-bar/ProgressBar.js +40 -0
  121. package/lib/progress-bar/ProgressBar.js.map +1 -0
  122. package/lib/progress-bar/index.d.ts +21 -0
  123. package/lib/progress-bar/index.js +33 -0
  124. package/lib/progress-bar/index.js.map +1 -0
  125. package/lib/radio/Radio.d.ts +39 -0
  126. package/lib/radio/Radio.js +58 -0
  127. package/lib/radio/Radio.js.map +1 -0
  128. package/lib/radio/index.d.ts +21 -0
  129. package/lib/radio/index.js +33 -0
  130. package/lib/radio/index.js.map +1 -0
  131. package/lib/switch/Switch.d.ts +39 -0
  132. package/lib/switch/Switch.js +59 -0
  133. package/lib/switch/Switch.js.map +1 -0
  134. package/lib/switch/index.d.ts +21 -0
  135. package/lib/switch/index.js +33 -0
  136. package/lib/switch/index.js.map +1 -0
  137. package/lib/tabs/Tabs.d.ts +72 -0
  138. package/lib/tabs/Tabs.js +105 -0
  139. package/lib/tabs/Tabs.js.map +1 -0
  140. package/lib/tabs/index.d.ts +21 -0
  141. package/lib/tabs/index.js +34 -0
  142. package/lib/tabs/index.js.map +1 -0
  143. package/lib/tag/Tag.d.ts +61 -0
  144. package/lib/tag/Tag.js +60 -0
  145. package/lib/tag/Tag.js.map +1 -0
  146. package/lib/tag/index.d.ts +21 -0
  147. package/lib/tag/index.js +33 -0
  148. package/lib/tag/index.js.map +1 -0
  149. package/lib/tooltip/Tooltip.d.ts +29 -0
  150. package/lib/tooltip/Tooltip.js +56 -0
  151. package/lib/tooltip/Tooltip.js.map +1 -0
  152. package/lib/tooltip/index.d.ts +21 -0
  153. package/lib/tooltip/index.js +33 -0
  154. package/lib/tooltip/index.js.map +1 -0
  155. package/lib/view-selector/ViewSelector.d.ts +58 -0
  156. package/lib/view-selector/ViewSelector.js +78 -0
  157. package/lib/view-selector/ViewSelector.js.map +1 -0
  158. package/lib/view-selector/index.d.ts +21 -0
  159. package/lib/view-selector/index.js +34 -0
  160. package/lib/view-selector/index.js.map +1 -0
  161. package/package.json +63 -0
@@ -0,0 +1,21 @@
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 Input } from './Input';
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
25
+ }) : (function(o, m, k, k2) {
26
+ if (k2 === undefined) k2 = k;
27
+ o[k2] = m[k];
28
+ }));
29
+ exports.__esModule = true;
30
+ exports.Input = void 0;
31
+ var Input_1 = require("./Input");
32
+ __createBinding(exports, Input_1, "default", "Input");
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,iCAA2C;AAAlC,sDAAgB"}
@@ -0,0 +1,41 @@
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 React from 'react';
22
+ import { Neo4jColors } from '@neo4j-ndl/base';
23
+ /**
24
+ *
25
+ *
26
+ * Types
27
+ *
28
+ *
29
+ */
30
+ export declare type EventTypeLabelProps = {
31
+ /** Additional Classnames */
32
+ className?: string;
33
+ children: React.ReactNode | string;
34
+ color?: Neo4jColors;
35
+ /** Fill type of label */
36
+ fill?: 'filled' | 'outlined' | 'semi-filled' | 'clean';
37
+ /** If label should have an icon */
38
+ withIcon?: boolean;
39
+ };
40
+ export declare const Label: ({ color, children, className, fill, withIcon, }: EventTypeLabelProps) => JSX.Element;
41
+ export default Label;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ exports.__esModule = true;
26
+ exports.Label = void 0;
27
+ var react_1 = __importDefault(require("react"));
28
+ var classnames_1 = __importDefault(require("classnames"));
29
+ var index_1 = require("../icons/custom/index");
30
+ var Label = function (_a) {
31
+ var _b, _c;
32
+ var _d = _a.color, color = _d === void 0 ? 'neutral' : _d, children = _a.children, _e = _a.className, className = _e === void 0 ? '' : _e, _f = _a.fill, fill = _f === void 0 ? 'filled' : _f, _g = _a.withIcon, withIcon = _g === void 0 ? false : _g;
33
+ var base;
34
+ var icon;
35
+ // Clean Label without icon is not allowed
36
+ if (!withIcon && fill === 'clean') {
37
+ console.error('Label without icon is not allowed');
38
+ }
39
+ if (withIcon) {
40
+ if (color === 'danger') {
41
+ icon = react_1["default"].createElement(index_1.Rhombus, null);
42
+ }
43
+ else if (color === 'warning') {
44
+ base = fill;
45
+ icon = react_1["default"].createElement(index_1.Triangle, null);
46
+ }
47
+ else {
48
+ icon = react_1["default"].createElement(index_1.Circle, null);
49
+ }
50
+ }
51
+ switch (color) {
52
+ case 'primary':
53
+ case 'danger':
54
+ case 'blueberry':
55
+ case 'success':
56
+ case 'warning':
57
+ case 'mint': {
58
+ base = (0, classnames_1["default"])((_b = {},
59
+ _b["n-bg-".concat(color, "-50 n-text-neutral-10")] = fill === 'filled',
60
+ _b["outlined n-text-".concat(color, "-60 n-border-").concat(color, "-50")] = fill === 'outlined',
61
+ _b["semi-filled n-bg-".concat(color, "-10 n-text-").concat(color, "-60 n-border-").concat(color, "-40")] = fill === 'semi-filled',
62
+ _b["n-text-".concat(color, "-60")] = fill === 'clean',
63
+ _b));
64
+ break;
65
+ }
66
+ default:
67
+ base = (0, classnames_1["default"])((_c = {},
68
+ _c["n-bg-neutral-40 n-text-neutral-80"] = fill === 'filled',
69
+ _c["outlined n-text-neutral-70 n-border-neutral-70"] = fill === 'outlined',
70
+ _c["outlined n-bg-neutral-20 n-text-neutral-70 n-border-neutral-60"] = fill === 'semi-filled',
71
+ _c["n-text-neutral-70"] = fill === 'clean',
72
+ _c));
73
+ }
74
+ return (react_1["default"].createElement("span", { role: "status", "aria-label": "label", className: "ndl-label ".concat(base, " ").concat(className) },
75
+ react_1["default"].createElement("div", { className: "label-content" },
76
+ icon,
77
+ children)));
78
+ };
79
+ exports.Label = Label;
80
+ exports["default"] = exports.Label;
81
+ //# sourceMappingURL=Label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.js","sourceRoot":"","sources":["../../src/label/Label.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,gDAA0B;AAE1B,0DAA4B;AAC5B,+CAAkE;AAwB3D,IAAM,KAAK,GAAG,UAAC,EAMA;;QALpB,aAAiB,EAAjB,KAAK,mBAAG,SAAS,KAAA,EACjB,QAAQ,cAAA,EACR,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACf,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA;IAEhB,IAAI,IAAY,CAAC;IACjB,IAAI,IAA4B,CAAC;IAEjC,0CAA0C;IAC1C,IAAI,CAAC,QAAQ,IAAI,IAAI,KAAK,OAAO,EAAE;QACjC,OAAO,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;KACpD;IAED,IAAI,QAAQ,EAAE;QACZ,IAAI,KAAK,KAAK,QAAQ,EAAE;YACtB,IAAI,GAAG,iCAAC,eAAO,OAAG,CAAC;SACpB;aAAM,IAAI,KAAK,KAAK,SAAS,EAAE;YAC9B,IAAI,GAAG,IAAI,CAAC;YACZ,IAAI,GAAG,iCAAC,gBAAQ,OAAG,CAAC;SACrB;aAAM;YACL,IAAI,GAAG,iCAAC,cAAM,OAAG,CAAC;SACnB;KACF;IAED,QAAQ,KAAK,EAAE;QACb,KAAK,SAAS,CAAC;QACf,KAAK,QAAQ,CAAC;QACd,KAAK,WAAW,CAAC;QACjB,KAAK,SAAS,CAAC;QACf,KAAK,SAAS,CAAC;QACf,KAAK,MAAM,CAAC,CAAC;YACX,IAAI,GAAG,IAAA,uBAAE;gBACP,GAAC,eAAQ,KAAK,0BAAuB,IAAG,IAAI,KAAK,QAAQ;gBACzD,GAAC,0BAAmB,KAAK,0BAAgB,KAAK,QAAK,IACjD,IAAI,KAAK,UAAU;gBACrB,GAAC,2BAAoB,KAAK,wBAAc,KAAK,0BAAgB,KAAK,QAAK,IACrE,IAAI,KAAK,aAAa;gBACxB,GAAC,iBAAU,KAAK,QAAK,IAAG,IAAI,KAAK,OAAO;oBACxC,CAAC;YACH,MAAM;SACP;QACD;YACE,IAAI,GAAG,IAAA,uBAAE;gBACP,GAAC,mCAAmC,IAAG,IAAI,KAAK,QAAQ;gBACxD,GAAC,gDAAgD,IAAG,IAAI,KAAK,UAAU;gBACvE,GAAC,gEAAgE,IAC/D,IAAI,KAAK,aAAa;gBACxB,GAAC,mBAAmB,IAAG,IAAI,KAAK,OAAO;oBACvC,CAAC;KACN;IAED,OAAO,CACL,2CACE,IAAI,EAAC,QAAQ,gBACF,OAAO,EAClB,SAAS,EAAE,oBAAa,IAAI,cAAI,SAAS,CAAE;QAE3C,0CAAK,SAAS,EAAC,eAAe;YAC3B,IAAI;YACJ,QAAQ,CACL,CACD,CACR,CAAC;AACJ,CAAC,CAAC;AAjEW,QAAA,KAAK,SAiEhB;AAEF,qBAAe,aAAK,CAAC"}
@@ -0,0 +1,21 @@
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 Label } from './Label';
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
25
+ }) : (function(o, m, k, k2) {
26
+ if (k2 === undefined) k2 = k;
27
+ o[k2] = m[k];
28
+ }));
29
+ exports.__esModule = true;
30
+ exports.Label = void 0;
31
+ var Label_1 = require("./Label");
32
+ __createBinding(exports, Label_1, "default", "Label");
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/label/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,iCAA2C;AAAlC,sDAAgB"}
@@ -0,0 +1,41 @@
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
+ /// <reference types="react" />
22
+ /**
23
+ *
24
+ *
25
+ * Types
26
+ *
27
+ *
28
+ */
29
+ export declare type LoadingSpinnerProps = {
30
+ size?: 'small' | 'large';
31
+ className?: string;
32
+ };
33
+ /**
34
+ *
35
+ *
36
+ * LoadingSpinner Component
37
+ *
38
+ *
39
+ */
40
+ declare const LoadingSpinner: (props: LoadingSpinnerProps) => JSX.Element;
41
+ export default LoadingSpinner;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ exports.__esModule = true;
26
+ var react_1 = __importDefault(require("react"));
27
+ var classnames_1 = __importDefault(require("classnames"));
28
+ /**
29
+ *
30
+ *
31
+ * LoadingSpinner Component
32
+ *
33
+ *
34
+ */
35
+ var LoadingSpinner = function (props) {
36
+ var _a;
37
+ var _b = props.size, size = _b === void 0 ? 'small' : _b, _c = props.className, className = _c === void 0 ? '' : _c;
38
+ var classes = (0, classnames_1["default"])("ndl-spin-wrapper ".concat(className), (_a = {},
39
+ _a[size] = size,
40
+ _a));
41
+ return (react_1["default"].createElement("div", { className: classes, role: "status", "aria-label": "loading-spinner" },
42
+ react_1["default"].createElement("div", { className: "spin" })));
43
+ };
44
+ exports["default"] = LoadingSpinner;
45
+ //# sourceMappingURL=LoadingSpinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../src/loading-spinner/LoadingSpinner.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;AAEH,gDAA0B;AAC1B,0DAAoC;AAepC;;;;;;GAMG;AAEH,IAAM,cAAc,GAAG,UAAC,KAA0B;;IACxC,IAAA,KAAmC,KAAK,KAA1B,EAAd,IAAI,mBAAG,OAAO,KAAA,EAAE,KAAmB,KAAK,UAAV,EAAd,SAAS,mBAAG,EAAE,KAAA,CAAW;IAEjD,IAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,2BAAoB,SAAS,CAAE;QACxD,GAAC,IAAI,IAAG,IAAI;YACZ,CAAC;IAEH,OAAO,CACL,0CAAK,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,QAAQ,gBAAY,iBAAiB;QACjE,0CAAK,SAAS,EAAC,MAAM,GAAG,CACpB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,qBAAe,cAAc,CAAC"}
@@ -0,0 +1,21 @@
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 LoadingSpinner } from './LoadingSpinner';
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
25
+ }) : (function(o, m, k, k2) {
26
+ if (k2 === undefined) k2 = k;
27
+ o[k2] = m[k];
28
+ }));
29
+ exports.__esModule = true;
30
+ exports.LoadingSpinner = void 0;
31
+ var LoadingSpinner_1 = require("./LoadingSpinner");
32
+ __createBinding(exports, LoadingSpinner_1, "default", "LoadingSpinner");
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/loading-spinner/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,mDAA6D;AAApD,wEAAyB"}
@@ -0,0 +1,70 @@
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 React from 'react';
22
+ /**
23
+ * A Popover component. A significant portion of this code is a subset of the Material UI React Popover component
24
+ * code, especially for positioning/sizing
25
+ */
26
+ declare type ElementBase = Omit<React.HTMLProps<HTMLElement>, 'as'> & {
27
+ /** Override the root element rendered for the component */
28
+ as?: string | React.ComponentType<any>;
29
+ };
30
+ declare type Vertical = 'top' | 'bottom';
31
+ declare type Horizontal = 'left' | 'right';
32
+ export interface PopoverProps extends ElementBase {
33
+ open: boolean;
34
+ children: React.ReactNode | string;
35
+ /** The element the menu should attach to */
36
+ anchorEl?: HTMLElement | null;
37
+ /**
38
+ * The position on the anchor element
39
+ * that the menu should attach to
40
+ *
41
+ * +-----------------+
42
+ * | |
43
+ * | Popover | +--Transform Origin
44
+ * | Parent Element | | top, left
45
+ * | | |
46
+ * +-----------------+ |
47
+ * | +-------------+
48
+ * Anchor Origin ----+ | Popped |
49
+ * bottom,right | Element |
50
+ * +-------------+
51
+ *
52
+ */
53
+ anchorOrigin?: {
54
+ vertical: Vertical;
55
+ horizontal: Horizontal;
56
+ };
57
+ /** The position on the menu element that should attach to the anchorOrigin point
58
+ on the anchorEl */
59
+ transformOrigin?: {
60
+ vertical: Vertical;
61
+ horizontal: Horizontal;
62
+ };
63
+ onClose?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
64
+ /** Additional classes */
65
+ className?: string;
66
+ /** Whether or not the menu is nested. IE is this menu a sub menu */
67
+ nested?: boolean;
68
+ }
69
+ export declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, "size" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "list" | "children" | "role" | "as" | "selected" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "onClose" | "anchorEl" | "anchorOrigin" | "transformOrigin" | "nested"> & React.RefAttributes<unknown>>;
70
+ export {};