@neo4j-ndl/react 0.1.2 → 0.1.3
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.
- package/package.json +16 -8
- package/lib/alert/Alert.d.ts +0 -75
- package/lib/alert/Alert.js +0 -121
- package/lib/alert/Alert.js.map +0 -1
- package/lib/alert/index.d.ts +0 -21
- package/lib/alert/index.js +0 -34
- package/lib/alert/index.js.map +0 -1
- package/lib/button/Button.d.ts +0 -52
- package/lib/button/Button.js +0 -112
- package/lib/button/Button.js.map +0 -1
- package/lib/button/index.d.ts +0 -21
- package/lib/button/index.js +0 -34
- package/lib/button/index.js.map +0 -1
- package/lib/checkbox/Checkbox.d.ts +0 -39
- package/lib/checkbox/Checkbox.js +0 -62
- package/lib/checkbox/Checkbox.js.map +0 -1
- package/lib/checkbox/index.d.ts +0 -21
- package/lib/checkbox/index.js +0 -33
- package/lib/checkbox/index.js.map +0 -1
- package/lib/context-menu/ContextMenu.d.ts +0 -65
- package/lib/context-menu/ContextMenu.js +0 -230
- package/lib/context-menu/ContextMenu.js.map +0 -1
- package/lib/context-menu/index.d.ts +0 -21
- package/lib/context-menu/index.js +0 -34
- package/lib/context-menu/index.js.map +0 -1
- package/lib/helpers/debounce.d.ts +0 -24
- package/lib/helpers/debounce.js +0 -47
- package/lib/helpers/debounce.js.map +0 -1
- package/lib/helpers/forwardRef.d.ts +0 -24
- package/lib/helpers/forwardRef.js +0 -26
- package/lib/helpers/forwardRef.js.map +0 -1
- package/lib/helpers/index.d.ts +0 -23
- package/lib/helpers/index.js +0 -36
- package/lib/helpers/index.js.map +0 -1
- package/lib/helpers/testing.d.ts +0 -28
- package/lib/helpers/testing.js +0 -81
- package/lib/helpers/testing.js.map +0 -1
- package/lib/helpers/types.d.ts +0 -25
- package/lib/helpers/types.js +0 -23
- package/lib/helpers/types.js.map +0 -1
- package/lib/icons/Custom.d.ts +0 -27
- package/lib/icons/Custom.js +0 -77
- package/lib/icons/Custom.js.map +0 -1
- package/lib/icons/Hero.d.ts +0 -28
- package/lib/icons/Hero.js +0 -89
- package/lib/icons/Hero.js.map +0 -1
- package/lib/icons/custom/Circle.d.ts +0 -23
- package/lib/icons/custom/Circle.js +0 -57
- package/lib/icons/custom/Circle.js.map +0 -1
- package/lib/icons/custom/DatabaseAddCircle.d.ts +0 -23
- package/lib/icons/custom/DatabaseAddCircle.js +0 -57
- package/lib/icons/custom/DatabaseAddCircle.js.map +0 -1
- package/lib/icons/custom/Drag.d.ts +0 -23
- package/lib/icons/custom/Drag.js +0 -62
- package/lib/icons/custom/Drag.js.map +0 -1
- package/lib/icons/custom/Expand.d.ts +0 -23
- package/lib/icons/custom/Expand.js +0 -57
- package/lib/icons/custom/Expand.js.map +0 -1
- package/lib/icons/custom/ExternalLink.d.ts +0 -23
- package/lib/icons/custom/ExternalLink.js +0 -57
- package/lib/icons/custom/ExternalLink.js.map +0 -1
- package/lib/icons/custom/FitToScreen.d.ts +0 -23
- package/lib/icons/custom/FitToScreen.js +0 -57
- package/lib/icons/custom/FitToScreen.js.map +0 -1
- package/lib/icons/custom/FolderBookmark.d.ts +0 -23
- package/lib/icons/custom/FolderBookmark.js +0 -57
- package/lib/icons/custom/FolderBookmark.js.map +0 -1
- package/lib/icons/custom/Heirarchy2.d.ts +0 -23
- package/lib/icons/custom/Heirarchy2.js +0 -57
- package/lib/icons/custom/Heirarchy2.js.map +0 -1
- package/lib/icons/custom/Hierarchy1.d.ts +0 -23
- package/lib/icons/custom/Hierarchy1.js +0 -57
- package/lib/icons/custom/Hierarchy1.js.map +0 -1
- package/lib/icons/custom/Pin.d.ts +0 -23
- package/lib/icons/custom/Pin.js +0 -57
- package/lib/icons/custom/Pin.js.map +0 -1
- package/lib/icons/custom/Presentation.d.ts +0 -23
- package/lib/icons/custom/Presentation.js +0 -57
- package/lib/icons/custom/Presentation.js.map +0 -1
- package/lib/icons/custom/Rhombus.d.ts +0 -23
- package/lib/icons/custom/Rhombus.js +0 -57
- package/lib/icons/custom/Rhombus.js.map +0 -1
- package/lib/icons/custom/Shrink.d.ts +0 -23
- package/lib/icons/custom/Shrink.js +0 -57
- package/lib/icons/custom/Shrink.js.map +0 -1
- package/lib/icons/custom/Text.d.ts +0 -23
- package/lib/icons/custom/Text.js +0 -57
- package/lib/icons/custom/Text.js.map +0 -1
- package/lib/icons/custom/Triangle.d.ts +0 -23
- package/lib/icons/custom/Triangle.js +0 -57
- package/lib/icons/custom/Triangle.js.map +0 -1
- package/lib/icons/custom/index.d.ts +0 -35
- package/lib/icons/custom/index.js +0 -61
- package/lib/icons/custom/index.js.map +0 -1
- package/lib/icons/index.d.ts +0 -22
- package/lib/icons/index.js +0 -35
- package/lib/icons/index.js.map +0 -1
- package/lib/index.d.ts +0 -33
- package/lib/index.js +0 -46
- package/lib/index.js.map +0 -1
- package/lib/input/Input.d.ts +0 -44
- package/lib/input/Input.js +0 -92
- package/lib/input/Input.js.map +0 -1
- package/lib/input/index.d.ts +0 -21
- package/lib/input/index.js +0 -33
- package/lib/input/index.js.map +0 -1
- package/lib/label/Label.d.ts +0 -41
- package/lib/label/Label.js +0 -103
- package/lib/label/Label.js.map +0 -1
- package/lib/label/index.d.ts +0 -21
- package/lib/label/index.js +0 -33
- package/lib/label/index.js.map +0 -1
- package/lib/loading-spinner/LoadingSpinner.d.ts +0 -41
- package/lib/loading-spinner/LoadingSpinner.js +0 -64
- package/lib/loading-spinner/LoadingSpinner.js.map +0 -1
- package/lib/loading-spinner/index.d.ts +0 -21
- package/lib/loading-spinner/index.js +0 -33
- package/lib/loading-spinner/index.js.map +0 -1
- package/lib/popover/Popover.d.ts +0 -70
- package/lib/popover/Popover.js +0 -224
- package/lib/popover/Popover.js.map +0 -1
- package/lib/popover/index.d.ts +0 -21
- package/lib/popover/index.js +0 -34
- package/lib/popover/index.js.map +0 -1
- package/lib/progress-bar/ProgressBar.d.ts +0 -30
- package/lib/progress-bar/ProgressBar.js +0 -64
- package/lib/progress-bar/ProgressBar.js.map +0 -1
- package/lib/progress-bar/index.d.ts +0 -21
- package/lib/progress-bar/index.js +0 -33
- package/lib/progress-bar/index.js.map +0 -1
- package/lib/radio/Radio.d.ts +0 -39
- package/lib/radio/Radio.js +0 -58
- package/lib/radio/Radio.js.map +0 -1
- package/lib/radio/index.d.ts +0 -21
- package/lib/radio/index.js +0 -33
- package/lib/radio/index.js.map +0 -1
- package/lib/switch/Switch.d.ts +0 -39
- package/lib/switch/Switch.js +0 -58
- package/lib/switch/Switch.js.map +0 -1
- package/lib/switch/index.d.ts +0 -21
- package/lib/switch/index.js +0 -33
- package/lib/switch/index.js.map +0 -1
- package/lib/tabs/Tabs.d.ts +0 -72
- package/lib/tabs/Tabs.js +0 -114
- package/lib/tabs/Tabs.js.map +0 -1
- package/lib/tabs/index.d.ts +0 -21
- package/lib/tabs/index.js +0 -34
- package/lib/tabs/index.js.map +0 -1
- package/lib/tag/Tag.d.ts +0 -61
- package/lib/tag/Tag.js +0 -80
- package/lib/tag/Tag.js.map +0 -1
- package/lib/tag/index.d.ts +0 -21
- package/lib/tag/index.js +0 -33
- package/lib/tag/index.js.map +0 -1
- package/lib/tooltip/Tooltip.d.ts +0 -29
- package/lib/tooltip/Tooltip.js +0 -58
- package/lib/tooltip/Tooltip.js.map +0 -1
- package/lib/tooltip/index.d.ts +0 -21
- package/lib/tooltip/index.js +0 -33
- package/lib/tooltip/index.js.map +0 -1
- package/lib/view-selector/ViewSelector.d.ts +0 -51
- package/lib/view-selector/ViewSelector.js +0 -96
- package/lib/view-selector/ViewSelector.js.map +0 -1
- package/lib/view-selector/index.d.ts +0 -21
- package/lib/view-selector/index.js +0 -34
- package/lib/view-selector/index.js.map +0 -1
package/lib/tabs/Tabs.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
23
|
-
__assign = Object.assign || function(t) {
|
|
24
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25
|
-
s = arguments[i];
|
|
26
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
27
|
-
t[p] = s[p];
|
|
28
|
-
}
|
|
29
|
-
return t;
|
|
30
|
-
};
|
|
31
|
-
return __assign.apply(this, arguments);
|
|
32
|
-
};
|
|
33
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
34
|
-
if (k2 === undefined) k2 = k;
|
|
35
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
36
|
-
}) : (function(o, m, k, k2) {
|
|
37
|
-
if (k2 === undefined) k2 = k;
|
|
38
|
-
o[k2] = m[k];
|
|
39
|
-
}));
|
|
40
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
41
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
42
|
-
}) : function(o, v) {
|
|
43
|
-
o["default"] = v;
|
|
44
|
-
});
|
|
45
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
46
|
-
if (mod && mod.__esModule) return mod;
|
|
47
|
-
var result = {};
|
|
48
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
49
|
-
__setModuleDefault(result, mod);
|
|
50
|
-
return result;
|
|
51
|
-
};
|
|
52
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
53
|
-
var t = {};
|
|
54
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
55
|
-
t[p] = s[p];
|
|
56
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
57
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
58
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
59
|
-
t[p[i]] = s[p[i]];
|
|
60
|
-
}
|
|
61
|
-
return t;
|
|
62
|
-
};
|
|
63
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
64
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
65
|
-
};
|
|
66
|
-
exports.__esModule = true;
|
|
67
|
-
exports.TabPanel = exports.Tab = exports.Tabs = void 0;
|
|
68
|
-
var react_1 = __importStar(require("react"));
|
|
69
|
-
var classnames_1 = __importDefault(require("classnames"));
|
|
70
|
-
var TabsContext = react_1["default"].createContext(null);
|
|
71
|
-
var useTabsContext = function () {
|
|
72
|
-
var context = (0, react_1.useContext)(TabsContext);
|
|
73
|
-
if (context === null) {
|
|
74
|
-
throw new Error('Tab used without context');
|
|
75
|
-
}
|
|
76
|
-
return context;
|
|
77
|
-
};
|
|
78
|
-
var getTabPanelId = function (tabId) { return "tabpanel-".concat(tabId); };
|
|
79
|
-
var getGeneralTabClasses = function (size, fill) {
|
|
80
|
-
return {
|
|
81
|
-
large: size === 'large',
|
|
82
|
-
small: size === 'small',
|
|
83
|
-
filled: fill === 'filled',
|
|
84
|
-
underline: fill === 'underline'
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
exports.Tabs = react_1["default"].forwardRef(function Tabs(_a, ref) {
|
|
88
|
-
var children = _a.children, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.fill, fill = _c === void 0 ? 'underline' : _c, onChange = _a.onChange, value = _a.value, className = _a.className, _d = _a.as, as = _d === void 0 ? 'div' : _d, rest = __rest(_a, ["children", "size", "fill", "onChange", "value", "className", "as"]);
|
|
89
|
-
var classes = (0, classnames_1["default"])('ndl-tabs', getGeneralTabClasses(size, fill), className);
|
|
90
|
-
var Component = as;
|
|
91
|
-
return (react_1["default"].createElement(Component, __assign({ className: classes, role: "tablist" }, rest, { ref: ref }),
|
|
92
|
-
react_1["default"].createElement(TabsContext.Provider, { value: { value: value, size: size, fill: fill, onChange: onChange } }, children)));
|
|
93
|
-
});
|
|
94
|
-
exports.Tab = react_1["default"].forwardRef(function Tab(_a, ref) {
|
|
95
|
-
var children = _a.children, tabId = _a.tabId, _b = _a.disabled, disabled = _b === void 0 ? false : _b, className = _a.className, _c = _a.as, as = _c === void 0 ? 'button' : _c, rest = __rest(_a, ["children", "tabId", "disabled", "className", "as"]);
|
|
96
|
-
var _d = useTabsContext(), size = _d.size, fill = _d.fill, value = _d.value, onChange = _d.onChange;
|
|
97
|
-
var base = (0, classnames_1["default"])(__assign(__assign({}, getGeneralTabClasses(size, fill)), { selected: value === tabId, disabled: disabled }));
|
|
98
|
-
var Component = as;
|
|
99
|
-
// Cast onChange since the compiler isn't smart enough to figure out union of function's parameters
|
|
100
|
-
// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-3.html#improved-behavior-for-calling-union-types
|
|
101
|
-
// https://stackoverflow.com/questions/55572797/why-does-typescript-expect-never-as-function-argument-when-retrieving-the-func
|
|
102
|
-
var castOnChange = onChange;
|
|
103
|
-
var handleChange = function () { return !disabled && castOnChange(tabId); };
|
|
104
|
-
var classes = (0, classnames_1["default"])('tab', base, className);
|
|
105
|
-
return (react_1["default"].createElement(Component, __assign({ className: classes, onClick: handleChange, role: "tab", "aria-controls": getTabPanelId(tabId) }, rest, { ref: ref }),
|
|
106
|
-
children,
|
|
107
|
-
fill === 'underline' && react_1["default"].createElement("span", { className: "tab-underline" })));
|
|
108
|
-
});
|
|
109
|
-
exports.TabPanel = react_1["default"].forwardRef(function TabPanel(_a, ref) {
|
|
110
|
-
var _b = _a.as, as = _b === void 0 ? 'div' : _b, children = _a.children, value = _a.value, tabId = _a.tabId, rest = __rest(_a, ["as", "children", "value", "tabId"]);
|
|
111
|
-
var Component = as;
|
|
112
|
-
return (react_1["default"].createElement(react_1["default"].Fragment, null, value === tabId && (react_1["default"].createElement(Component, __assign({ role: "tabpanel", id: getTabPanelId(tabId) }, rest, { ref: ref }), children))));
|
|
113
|
-
});
|
|
114
|
-
//# sourceMappingURL=Tabs.js.map
|
package/lib/tabs/Tabs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../src/tabs/Tabs.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAA0C;AAC1C,0DAAoC;AAsCpC,IAAM,WAAW,GAAG,kBAAK,CAAC,aAAa,CAAyB,IAAI,CAAC,CAAC;AAEtE,IAAM,cAAc,GAAG;IACrB,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAC;IAExC,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;KAC7C;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,IAAM,aAAa,GAAG,UAAC,KAAY,IAAK,OAAA,mBAAY,KAAK,CAAE,EAAnB,CAAmB,CAAC;AAE5D,IAAM,oBAAoB,GAAG,UAAC,IAAU,EAAE,IAAU;IAClD,OAAO;QACL,KAA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AI,IACR,GAAG,EAAE,GAAG,KAEP,QAAQ,CACC,CACb,CACA,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/tabs/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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';
|
package/lib/tabs/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
30
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
31
|
-
};
|
|
32
|
-
exports.__esModule = true;
|
|
33
|
-
__exportStar(require("./Tabs"), exports);
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
package/lib/tabs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tabs/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,yCAAuB"}
|
package/lib/tag/Tag.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
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
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* Types
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
interface CommonTagProps {
|
|
30
|
-
children: string | React.ReactNode;
|
|
31
|
-
/** Type of the tag */
|
|
32
|
-
type?: 'destructive' | 'default';
|
|
33
|
-
}
|
|
34
|
-
interface RemoveableTagProps extends CommonTagProps {
|
|
35
|
-
/** Adds a "x" icon is set to true */
|
|
36
|
-
removeable: true;
|
|
37
|
-
/** Handler when remove icon is clicked. Required if `removeable` is true */
|
|
38
|
-
onRemove: () => void;
|
|
39
|
-
}
|
|
40
|
-
interface NonRemovableTagProps extends CommonTagProps {
|
|
41
|
-
removeable?: false;
|
|
42
|
-
onRemove?: never;
|
|
43
|
-
}
|
|
44
|
-
export declare type TagProps = RemoveableTagProps | NonRemovableTagProps;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* Helpers
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
/** Add any helper functions here. */
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* Tag Component
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
-
export default Tag;
|
package/lib/tag/Tag.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
23
|
-
__assign = Object.assign || function(t) {
|
|
24
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25
|
-
s = arguments[i];
|
|
26
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
27
|
-
t[p] = s[p];
|
|
28
|
-
}
|
|
29
|
-
return t;
|
|
30
|
-
};
|
|
31
|
-
return __assign.apply(this, arguments);
|
|
32
|
-
};
|
|
33
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
34
|
-
var t = {};
|
|
35
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
36
|
-
t[p] = s[p];
|
|
37
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
38
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
39
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
40
|
-
t[p[i]] = s[p[i]];
|
|
41
|
-
}
|
|
42
|
-
return t;
|
|
43
|
-
};
|
|
44
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
-
};
|
|
47
|
-
exports.__esModule = true;
|
|
48
|
-
var react_1 = __importDefault(require("react"));
|
|
49
|
-
var classnames_1 = __importDefault(require("classnames"));
|
|
50
|
-
var icons_1 = require("../icons");
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* Helpers
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
/** Add any helper functions here. */
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* Tag Component
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
var Tag = react_1["default"].forwardRef(function Tag(props, ref) {
|
|
67
|
-
var children = props.children, _a = props.type, type = _a === void 0 ? 'default' : _a, removeable = props.removeable, onRemove = props.onRemove, rest = __rest(props, ["children", "type", "removeable", "onRemove"]);
|
|
68
|
-
if (removeable && typeof onRemove !== 'function') {
|
|
69
|
-
console.error('Tag element is removable but onRemove prop is not a function or provided');
|
|
70
|
-
}
|
|
71
|
-
var classes = (0, classnames_1["default"])("ndl-tag", type, {
|
|
72
|
-
removeable: removeable
|
|
73
|
-
});
|
|
74
|
-
return (react_1["default"].createElement("div", __assign({}, rest, { className: classes, ref: ref }),
|
|
75
|
-
children,
|
|
76
|
-
removeable && (react_1["default"].createElement("button", { type: "button", className: "remove-icon", onClick: onRemove },
|
|
77
|
-
react_1["default"].createElement(icons_1.HeroIcon, { iconName: "XIcon" })))));
|
|
78
|
-
});
|
|
79
|
-
exports["default"] = Tag;
|
|
80
|
-
//# sourceMappingURL=Tag.js.map
|
package/lib/tag/Tag.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../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
|
|
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';
|
package/lib/tag/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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.Tag = void 0;
|
|
31
|
-
var Tag_1 = require("./Tag");
|
|
32
|
-
__createBinding(exports, Tag_1, "default", "Tag");
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
package/lib/tag/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tag/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,6BAAuC;AAA9B,kDAAc"}
|
package/lib/tooltip/Tooltip.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
declare type ArrowPosition = 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right';
|
|
23
|
-
export interface TooltipProps extends React.HTMLProps<HTMLDivElement> {
|
|
24
|
-
arrowPosition: ArrowPosition;
|
|
25
|
-
children: React.ReactNode | string;
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
declare const Tooltip: React.ForwardRefExoticComponent<Pick<TooltipProps, "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" | "arrowPosition"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
-
export default Tooltip;
|
package/lib/tooltip/Tooltip.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
23
|
-
__assign = Object.assign || function(t) {
|
|
24
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25
|
-
s = arguments[i];
|
|
26
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
27
|
-
t[p] = s[p];
|
|
28
|
-
}
|
|
29
|
-
return t;
|
|
30
|
-
};
|
|
31
|
-
return __assign.apply(this, arguments);
|
|
32
|
-
};
|
|
33
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
34
|
-
var t = {};
|
|
35
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
36
|
-
t[p] = s[p];
|
|
37
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
38
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
39
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
40
|
-
t[p[i]] = s[p[i]];
|
|
41
|
-
}
|
|
42
|
-
return t;
|
|
43
|
-
};
|
|
44
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
-
};
|
|
47
|
-
exports.__esModule = true;
|
|
48
|
-
var react_1 = __importDefault(require("react"));
|
|
49
|
-
var classnames_1 = __importDefault(require("classnames"));
|
|
50
|
-
var Tooltip = react_1["default"].forwardRef(function Tooltip(_a, ref) {
|
|
51
|
-
var arrowPosition = _a.arrowPosition, children = _a.children, className = _a.className, props = __rest(_a, ["arrowPosition", "children", "className"]);
|
|
52
|
-
var classes = (0, classnames_1["default"])('ndl-tooltip-wrapper', className);
|
|
53
|
-
return (react_1["default"].createElement("div", __assign({}, props, { role: "tooltip", className: classes, ref: ref }),
|
|
54
|
-
children,
|
|
55
|
-
react_1["default"].createElement("div", { className: "tooltip-triangle ".concat(arrowPosition) })));
|
|
56
|
-
});
|
|
57
|
-
exports["default"] = Tooltip;
|
|
58
|
-
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../src/tooltip/Tooltip.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAA0B;AAC1B,0DAAoC;AAgBpC,IAAM,OAAO,GAAG,kBAAK,CAAC,UAAU,CAAC,SAAS,OAAO,CAC/C,EAA8D,EAC9D,GAAuC;IADrC,IAAA,aAAa,mBAAA,EAAE,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAK,KAAK,cAA9C,0CAAgD,CAAF;IAG9C,IAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;IAE7D,OAAO,CACL,qDAAS,KAAK,IAAE,IAAI,EAAC,SAAS,EAAC,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG;QACxD,QAAQ;QACT,0CAAK,SAAS,EAAE,2BAAoB,aAAa,CAAE,GAAI,CACnD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,qBAAe,OAAO,CAAC"}
|
package/lib/tooltip/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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 Tooltip } from './Tooltip';
|
package/lib/tooltip/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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.Tooltip = void 0;
|
|
31
|
-
var Tooltip_1 = require("./Tooltip");
|
|
32
|
-
__createBinding(exports, Tooltip_1, "default", "Tooltip");
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
package/lib/tooltip/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tooltip/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,qCAA+C;AAAtC,0DAAkB"}
|
|
@@ -1,51 +0,0 @@
|
|
|
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 { ElementBase } from '../helpers';
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* Types
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
declare type ViewSelectorID = string | number;
|
|
31
|
-
export interface ViewSelectorProps<T extends ViewSelectorID> extends ElementBase {
|
|
32
|
-
/** Size of the selector */
|
|
33
|
-
size?: 'small' | 'large';
|
|
34
|
-
/** If selector items will include only icons */
|
|
35
|
-
icons?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* onChange function is more generic to support union type of strings as input
|
|
38
|
-
* to help useState in components that uses Switch group with typesafety
|
|
39
|
-
*/
|
|
40
|
-
onChange: (e: T) => void | ((e: React.SetStateAction<T>) => void);
|
|
41
|
-
/** Currently selected option */
|
|
42
|
-
selected: T;
|
|
43
|
-
children: React.ReactNode | string;
|
|
44
|
-
}
|
|
45
|
-
export declare const ViewSelector: <T extends ViewSelectorID>(props: ViewSelectorProps<T> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
46
|
-
export declare const ViewSelectorItem: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement>, "ref" | "size" | "as" | "selected" | "onChange"> & {
|
|
47
|
-
as?: string | React.ComponentType<any> | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
value: string;
|
|
50
|
-
} & React.RefAttributes<unknown>>;
|
|
51
|
-
export {};
|