@neo4j-ndl/react 1.5.10 → 1.6.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.
- package/CHANGELOG.md +19 -0
- package/lib/LICENSES.txt +207 -1
- package/lib/NOTICE.txt +4 -2
- package/lib/cjs/_common/utils.js.map +1 -1
- package/lib/cjs/icons/generated/custom/AddNode.js +6 -0
- package/lib/cjs/icons/generated/custom/AddNode.js.map +1 -0
- package/lib/cjs/icons/generated/custom/SidebarLineLeft.js +6 -0
- package/lib/cjs/icons/generated/custom/SidebarLineLeft.js.map +1 -0
- package/lib/cjs/icons/generated/custom/SidebarLineRight.js +6 -0
- package/lib/cjs/icons/generated/custom/SidebarLineRight.js.map +1 -0
- package/lib/cjs/icons/generated/custom/index.js +7 -1
- package/lib/cjs/icons/generated/custom/index.js.map +1 -1
- package/lib/cjs/tooltip/SmartTooltip.js +4 -87
- package/lib/cjs/tooltip/SmartTooltip.js.map +1 -1
- package/lib/cjs/tooltip/Tip.js +169 -0
- package/lib/cjs/tooltip/Tip.js.map +1 -0
- package/lib/cjs/tooltip/index.js +3 -1
- package/lib/cjs/tooltip/index.js.map +1 -1
- package/lib/esm/_common/utils.js.map +1 -1
- package/lib/esm/icons/generated/custom/AddNode.js +4 -0
- package/lib/esm/icons/generated/custom/AddNode.js.map +1 -0
- package/lib/esm/icons/generated/custom/SidebarLineLeft.js +4 -0
- package/lib/esm/icons/generated/custom/SidebarLineLeft.js.map +1 -0
- package/lib/esm/icons/generated/custom/SidebarLineRight.js +4 -0
- package/lib/esm/icons/generated/custom/SidebarLineRight.js.map +1 -0
- package/lib/esm/icons/generated/custom/index.js +3 -0
- package/lib/esm/icons/generated/custom/index.js.map +1 -1
- package/lib/esm/tooltip/SmartTooltip.js +5 -65
- package/lib/esm/tooltip/SmartTooltip.js.map +1 -1
- package/lib/esm/tooltip/Tip.js +141 -0
- package/lib/esm/tooltip/Tip.js.map +1 -0
- package/lib/esm/tooltip/index.js +1 -0
- package/lib/esm/tooltip/index.js.map +1 -1
- package/lib/types/_common/utils.d.ts +1 -2
- package/lib/types/icons/generated/custom/AddNode.d.ts +23 -0
- package/lib/types/icons/generated/custom/SidebarLineLeft.d.ts +23 -0
- package/lib/types/icons/generated/custom/SidebarLineRight.d.ts +23 -0
- package/lib/types/icons/generated/custom/index.d.ts +3 -0
- package/lib/types/text-input/TextInput.d.ts +1 -1
- package/lib/types/tooltip/SmartTooltip.d.ts +1 -1
- package/lib/types/tooltip/Tip.d.ts +62 -0
- package/lib/types/tooltip/index.d.ts +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
const react_1 = require("react");
|
|
41
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) "Neo4j"
|
|
45
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
46
|
+
*
|
|
47
|
+
* This file is part of Neo4j.
|
|
48
|
+
*
|
|
49
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
50
|
+
* it under the terms of the GNU General Public License as published by
|
|
51
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
52
|
+
* (at your option) any later version.
|
|
53
|
+
*
|
|
54
|
+
* This program is distributed in the hope that it will be useful,
|
|
55
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
56
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
57
|
+
* GNU General Public License for more details.
|
|
58
|
+
*
|
|
59
|
+
* You should have received a copy of the GNU General Public License
|
|
60
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
61
|
+
*/
|
|
62
|
+
const react_2 = __importStar(require("react"));
|
|
63
|
+
const react_3 = require("@floating-ui/react");
|
|
64
|
+
const Tooltip_1 = __importDefault(require("./Tooltip"));
|
|
65
|
+
const base_1 = require("@neo4j-ndl/base");
|
|
66
|
+
const portal_1 = require("../portal");
|
|
67
|
+
const ConditionalWrap_1 = __importDefault(require("../_common/ConditionalWrap"));
|
|
68
|
+
const icons_1 = require("../icons");
|
|
69
|
+
const typography_1 = require("../typography");
|
|
70
|
+
const react_aria_1 = require("react-aria");
|
|
71
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
72
|
+
const PLACEMENTS = ['top', 'bottom', 'left', 'right'];
|
|
73
|
+
const calculateArrow = (placement) => {
|
|
74
|
+
switch (placement) {
|
|
75
|
+
case 'bottom':
|
|
76
|
+
return 'top';
|
|
77
|
+
case 'left':
|
|
78
|
+
return 'right';
|
|
79
|
+
case 'right':
|
|
80
|
+
return 'left';
|
|
81
|
+
case 'top':
|
|
82
|
+
default:
|
|
83
|
+
return 'bottom';
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const ToggletipAction = (_a) => {
|
|
87
|
+
var { label, onClick } = _a, props = __rest(_a, ["label", "onClick"]);
|
|
88
|
+
const { pressProps } = (0, react_aria_1.usePress)({
|
|
89
|
+
onPress: (e) => {
|
|
90
|
+
onClick && onClick(e);
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
return ((0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({}, props, { className: (0, classnames_1.default)('ndl-toggletip-action', props.className) }, pressProps, { tabIndex: 0, variant: "label", as: onClick === undefined ? 'a' : 'button' }, { children: label })));
|
|
94
|
+
};
|
|
95
|
+
const Tip = react_2.default.forwardRef(function Tip(_a, ref) {
|
|
96
|
+
var { open: openProp, allowedPlacements = PLACEMENTS, portal = true } = _a, props = __rest(_a, ["open", "allowedPlacements", "portal"]);
|
|
97
|
+
const [open, setOpen] = (0, react_2.useState)(false);
|
|
98
|
+
const { type = 'tooltip' } = props;
|
|
99
|
+
const { context, x, y, strategy, placement, refs } = (0, react_3.useFloating)({
|
|
100
|
+
open: openProp !== null && openProp !== void 0 ? openProp : open,
|
|
101
|
+
onOpenChange: (e) => {
|
|
102
|
+
setOpen(e);
|
|
103
|
+
/**
|
|
104
|
+
* We do not receive an `event` here from the onOpenChange callback
|
|
105
|
+
* Need to investigate if we can propagate the underlying event for closing to `onClose`
|
|
106
|
+
*/
|
|
107
|
+
if (!open) {
|
|
108
|
+
props.type === 'toggletip' && props.onClose && props.onClose(undefined);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
whileElementsMounted: react_3.autoUpdate,
|
|
112
|
+
middleware: [
|
|
113
|
+
(0, react_3.offset)(10),
|
|
114
|
+
(0, react_3.autoPlacement)({
|
|
115
|
+
allowedPlacements,
|
|
116
|
+
}),
|
|
117
|
+
],
|
|
118
|
+
});
|
|
119
|
+
const hover = (0, react_3.useHover)(context, {
|
|
120
|
+
move: false,
|
|
121
|
+
enabled: type === 'tooltip',
|
|
122
|
+
delay: {
|
|
123
|
+
// TODO: add a slower animation token to avoid this being hardcoded
|
|
124
|
+
open: 200,
|
|
125
|
+
// Strip the 'ms' from the duration token, need to provide pure ms durations
|
|
126
|
+
close: parseInt(base_1.tokens.transitions.values.duration.default.replace('ms', '')),
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
const dismiss = (0, react_3.useDismiss)(context, {
|
|
130
|
+
enabled: type === 'toggletip',
|
|
131
|
+
outsidePress: (e) => {
|
|
132
|
+
/** Avoid calling onClose, if we click the reference element */
|
|
133
|
+
if (
|
|
134
|
+
/** Case that the target is a child of the referenced element **/
|
|
135
|
+
typeof ref !== 'function' &&
|
|
136
|
+
(ref === null || ref === void 0 ? void 0 : ref.current) instanceof Element &&
|
|
137
|
+
e.target instanceof Element &&
|
|
138
|
+
(ref === null || ref === void 0 ? void 0 : ref.current.contains(e.target))) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
return true;
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
const { getFloatingProps } = (0, react_3.useInteractions)([hover, dismiss]);
|
|
145
|
+
(0, react_2.useEffect)(() => {
|
|
146
|
+
/**
|
|
147
|
+
* Assign passed ref to the reference callback
|
|
148
|
+
* of the useFloating hook
|
|
149
|
+
*/
|
|
150
|
+
const { current = null } = ref || {};
|
|
151
|
+
if (current) {
|
|
152
|
+
refs.setReference(current);
|
|
153
|
+
}
|
|
154
|
+
}, [ref]);
|
|
155
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: open || openProp ? ((0, jsx_runtime_1.jsx)(ConditionalWrap_1.default, Object.assign({ condition: portal, wrap: (children) => (0, jsx_runtime_1.jsx)(portal_1.Portal, { children: children }) }, { children: (0, jsx_runtime_1.jsxs)(Tooltip_1.default, Object.assign({}, props, { ref: refs.setFloating }, getFloatingProps(), { arrowPosition: calculateArrow(placement), className: (0, classnames_1.default)(props.className, {
|
|
156
|
+
'ndl-toggletip': type === 'toggletip',
|
|
157
|
+
}), style: Object.assign({ position: strategy, top: y !== null && y !== void 0 ? y : 0, left: x !== null && x !== void 0 ? x : 0, width: 'max-content', zIndex: base_1.tokens.zIndex.alias.tooltip }, props.style) }, { children: [props.type === 'tooltip' && props.children, props.type === 'toggletip' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "ndl-toggletip-header" }, { children: [props.title && ((0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ variant: "h6" }, { children: props.title }))), !props.title && ((0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ variant: "body-medium", as: "div" }, { children: props.children }))), (0, jsx_runtime_1.jsx)("div", Object.assign({ tabIndex: 0, role: "button", className: "ndl-toggletip-close-icon", onKeyDown: (event) => {
|
|
158
|
+
var _a;
|
|
159
|
+
if (event.key === 'Enter' || event.key === 'Space') {
|
|
160
|
+
setOpen(false);
|
|
161
|
+
(_a = props === null || props === void 0 ? void 0 : props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, event);
|
|
162
|
+
}
|
|
163
|
+
}, onClick: (event) => {
|
|
164
|
+
setOpen(false);
|
|
165
|
+
(props === null || props === void 0 ? void 0 : props.onClose) && (props === null || props === void 0 ? void 0 : props.onClose(event));
|
|
166
|
+
}, "aria-label": "close-toggletip", "data-testid": "close-toggletip" }, { children: (0, jsx_runtime_1.jsx)(icons_1.XMarkIconOutline, {}) }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "ndl-toggletip-content", "data-testid": "toggletip-content" }, { children: [props.title && ((0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ variant: "body-medium" }, { children: props.children }))), props.actions && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ndl-toggletip-actions" }, { children: props.actions.map((action, index) => ((0, react_1.createElement)(ToggletipAction, Object.assign({}, action, { key: index })))) })))] }))] }))] })) }))) : null }));
|
|
167
|
+
});
|
|
168
|
+
exports.default = Tip;
|
|
169
|
+
//# sourceMappingURL=Tip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tip.js","sourceRoot":"","sources":["../../../src/tooltip/Tip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,+CAMe;AACf,8CAQ4B;AAE5B,wDAAkD;AAClD,0CAAyC;AACzC,sCAAmC;AACnC,iFAAyD;AACzD,oCAA4C;AAC5C,8CAA2C;AAE3C,2CAAsC;AACtC,4DAAmC;AAiDnC,MAAM,UAAU,GAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAE9D,MAAM,cAAc,GAAG,CACrB,SAAe,EACkC,EAAE;IACnD,QAAQ,SAAS,EAAE;QACjB,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,OAAO,CAAC;QACjB,KAAK,O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IAAI,CAC5C,CAAC,IACE,CACP,KACG,IACL,CACJ,KACO,IACM,CACnB,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,GAAG,CAAC"}
|
package/lib/cjs/tooltip/index.js
CHANGED
|
@@ -23,9 +23,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
23
23
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.SmartTooltip = exports.Tooltip = void 0;
|
|
26
|
+
exports.Tip = exports.SmartTooltip = exports.Tooltip = void 0;
|
|
27
27
|
var Tooltip_1 = require("./Tooltip");
|
|
28
28
|
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return __importDefault(Tooltip_1).default; } });
|
|
29
29
|
var SmartTooltip_1 = require("./SmartTooltip");
|
|
30
30
|
Object.defineProperty(exports, "SmartTooltip", { enumerable: true, get: function () { return __importDefault(SmartTooltip_1).default; } });
|
|
31
|
+
var Tip_1 = require("./Tip");
|
|
32
|
+
Object.defineProperty(exports, "Tip", { enumerable: true, get: function () { return __importDefault(Tip_1).default; } });
|
|
31
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qCAA+C;AAAtC,mHAAA,OAAO,OAAW;AAC3B,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qCAA+C;AAAtC,mHAAA,OAAO,OAAW;AAC3B,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,6BAAuC;AAA9B,2GAAA,OAAO,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/_common/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/_common/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAA0B,MAAM,OAAO,CAAC;AAE/E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE,CAC9C,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;AAEtC,qCAAqC;AACrC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE,CAC5C,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAEpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,OAAe,EAAE,EAAE,CACtD,OAAO,CAAC,IAAI,CAAC,iBAAiB,OAAO,EAAE,CAAC,CAAC;AAE3C,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;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAu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AE,QAAe,CAAC,CAAC;QACxD,QAAQ,CAAC,gBAAgB,CAAC,YAAY,EAAE,QAAe,CAAC,CAAC;QAEzD,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,QAAe,CAAC,CAAC;YAC3D,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,QAAe,CAAC,CAAC;QAC9D,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,wCAAwC;AAC9D,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,MAAc,EAAE,EAAE,CACzC,IAAI,CAAC,MAAM,EAAE;KACV,QAAQ,CAAC,EAAE,CAAC;KACZ,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgAddNode = (props) => (_jsx("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: _jsx("path", { d: "M15.9275 18.1774H20.4275M18.1775 15.9274V20.4274M17.7605 13.3024C18.3124 11.7395 18.3167 10.0353 17.7726 8.46965C17.2285 6.90396 16.1684 5.56971 14.7662 4.68584C13.364 3.80197 11.7029 3.42097 10.0557 3.60538C8.40845 3.78979 6.87281 4.52864 5.70075 5.70069C4.5287 6.87275 3.78985 8.40839 3.60544 10.0556C3.42104 11.7029 3.80203 13.3639 4.6859 14.7661C5.56977 16.1683 6.90402 17.2284 8.46971 17.7725C10.0354 18.3166 11.7395 18.3124 13.3025 17.7604", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })));
|
|
3
|
+
export default SvgAddNode;
|
|
4
|
+
//# sourceMappingURL=AddNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddNode.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/AddNode.tsx"],"names":[],"mappings":";AAwBA,MAAM,UAAU,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACrD,4BACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,eACE,CAAC,EAAC,+bAA+b,EACjc,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,GAAG,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,CACP,CAAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgSidebarLineLeft = (props) => (_jsx("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: _jsx("path", { d: "M9.9375 5.25V18.75M7.91249 8.02496H5.66249M7.91249 10.5H5.66249M7.91249 12.9H5.66249M7.9125 15.2999H6.9375M4.3125 18.75H19.6875C20.1375 18.75 20.4375 18.45 20.4375 18V6C20.4375 5.55 20.1375 5.25 19.6875 5.25H4.3125C3.8625 5.25 3.5625 5.55 3.5625 6V18C3.5625 18.375 3.9375 18.75 4.3125 18.75Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })));
|
|
3
|
+
export default SvgSidebarLineLeft;
|
|
4
|
+
//# sourceMappingURL=SidebarLineLeft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarLineLeft.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/SidebarLineLeft.tsx"],"names":[],"mappings":";AAwBA,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC7D,4BACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,eACE,CAAC,EAAC,qSAAqS,EACvS,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,GAAG,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,CACP,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgSidebarLineRight = (props) => (_jsx("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: _jsx("path", { d: "M14.0601 5.25V18.75M16.0851 8.02496H18.3351M16.0851 10.5H18.3351M16.0851 12.9H18.3351M16.0851 15.2999H17.0601M20.4351 18C20.4351 18.45 20.1351 18.75 19.6851 18.75H4.31006C3.86006 18.75 3.56006 18.45 3.56006 18V6C3.56006 5.55 3.86006 5.25 4.31006 5.25H19.6851C20.1351 5.25 20.4351 5.55 20.4351 6V18Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })));
|
|
3
|
+
export default SvgSidebarLineRight;
|
|
4
|
+
//# sourceMappingURL=SidebarLineRight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarLineRight.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/SidebarLineRight.tsx"],"names":[],"mappings":";AAwBA,MAAM,mBAAmB,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC9D,4BACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,eACE,CAAC,EAAC,4SAA4S,EAC9S,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,GAAG,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,CACP,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
// THIS FILE IS GENERATED BY BUILD TOOL
|
|
22
22
|
// DO NOT EDIT IT MANUAL
|
|
23
|
+
export { default as AddNodeIcon } from './AddNode';
|
|
23
24
|
export { default as AlignBottomIcon } from './AlignBottom';
|
|
24
25
|
export { default as AlignCenterIcon } from './AlignCenter';
|
|
25
26
|
export { default as AlignTopIcon } from './AlignTop';
|
|
@@ -48,6 +49,8 @@ export { default as QueryBrowserIcon } from './QueryBrowser';
|
|
|
48
49
|
export { default as RhombusIcon } from './Rhombus';
|
|
49
50
|
export { default as ScienceMoleculeIcon } from './ScienceMolecule';
|
|
50
51
|
export { default as ShrinkIcon } from './Shrink';
|
|
52
|
+
export { default as SidebarLineLeftIcon } from './SidebarLineLeft';
|
|
53
|
+
export { default as SidebarLineRightIcon } from './SidebarLineRight';
|
|
51
54
|
export { default as SquareIcon } from './Square';
|
|
52
55
|
export { default as StatusIcon } from './Status';
|
|
53
56
|
export { default as TextIcon } from './Text';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,uCAAuC;AACvC,wBAAwB;AACxB,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,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D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
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, Fragment as _Fragment } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
/**
|
|
14
3
|
*
|
|
15
4
|
* Copyright (c) "Neo4j"
|
|
@@ -30,59 +19,10 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
30
19
|
* You should have received a copy of the GNU General Public License
|
|
31
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
32
21
|
*/
|
|
33
|
-
import React
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
import { Portal } from '../portal';
|
|
38
|
-
import ConditionalWrap from '../_common/ConditionalWrap';
|
|
39
|
-
const PLACEMENTS = ['top', 'bottom', 'left', 'right'];
|
|
40
|
-
const calculateArrow = (placement) => {
|
|
41
|
-
switch (placement) {
|
|
42
|
-
case 'bottom':
|
|
43
|
-
return 'top';
|
|
44
|
-
case 'left':
|
|
45
|
-
return 'right';
|
|
46
|
-
case 'right':
|
|
47
|
-
return 'left';
|
|
48
|
-
case 'top':
|
|
49
|
-
default:
|
|
50
|
-
return 'bottom';
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const SmartTooltip = React.forwardRef(function SmartTooltip(_a, ref) {
|
|
54
|
-
var { open: openProp, allowedPlacements = PLACEMENTS, portal = true } = _a, props = __rest(_a, ["open", "allowedPlacements", "portal"]);
|
|
55
|
-
const [open, setOpen] = useState(false);
|
|
56
|
-
const { context, x, y, reference, floating, strategy, placement } = useFloating({
|
|
57
|
-
open,
|
|
58
|
-
onOpenChange: setOpen,
|
|
59
|
-
whileElementsMounted: autoUpdate,
|
|
60
|
-
middleware: [
|
|
61
|
-
offset(10),
|
|
62
|
-
autoPlacement({
|
|
63
|
-
allowedPlacements,
|
|
64
|
-
}),
|
|
65
|
-
],
|
|
66
|
-
});
|
|
67
|
-
const hover = useHover(context, {
|
|
68
|
-
move: false,
|
|
69
|
-
delay: {
|
|
70
|
-
// Strip the 'ms' from the duration token, need to provide pure ms durations
|
|
71
|
-
close: parseInt(tokens.transitions.values.duration.default.replace('ms', '')),
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
const { getFloatingProps } = useInteractions([hover]);
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
/**
|
|
77
|
-
* Assign passed ref to the reference callback
|
|
78
|
-
* of the useFloating hook
|
|
79
|
-
*/
|
|
80
|
-
const { current = null } = ref || {};
|
|
81
|
-
if (current) {
|
|
82
|
-
reference(current);
|
|
83
|
-
}
|
|
84
|
-
}, [ref]);
|
|
85
|
-
return (_jsx(_Fragment, { children: open || openProp ? (_jsx(ConditionalWrap, Object.assign({ condition: portal, wrap: (children) => _jsx(Portal, { children: children }) }, { children: _jsx(Tooltip, Object.assign({}, props, getFloatingProps(), { ref: floating, arrowPosition: calculateArrow(placement), style: Object.assign({ position: strategy, top: y !== null && y !== void 0 ? y : 0, left: x !== null && x !== void 0 ? x : 0, width: 'max-content', zIndex: tokens.zIndex.alias.tooltip }, props.style) })) }))) : null }));
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import Tip from './Tip';
|
|
24
|
+
const SmartTooltip = React.forwardRef(function SmartTooltip(props, ref) {
|
|
25
|
+
return _jsx(Tip, Object.assign({}, props, { type: "tooltip", ref: ref }));
|
|
86
26
|
});
|
|
87
27
|
export default SmartTooltip;
|
|
88
28
|
//# sourceMappingURL=SmartTooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmartTooltip.js","sourceRoot":"","sources":["../../../src/tooltip/SmartTooltip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SmartTooltip.js","sourceRoot":"","sources":["../../../src/tooltip/SmartTooltip.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,GAAG,MAAM,OAAO,CAAC;AAcxB,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,YAAY,CACzD,KAAwB,EACxB,GAAgC;IAEhC,OAAO,KAAC,GAAG,oBAAK,KAAK,IAAE,IAAI,EAAC,SAAS,EAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AACrD,CAAC,CAAC,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
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 { createElement as _createElement } from "react";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) "Neo4j"
|
|
17
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
18
|
+
*
|
|
19
|
+
* This file is part of Neo4j.
|
|
20
|
+
*
|
|
21
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
22
|
+
* it under the terms of the GNU General Public License as published by
|
|
23
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
24
|
+
* (at your option) any later version.
|
|
25
|
+
*
|
|
26
|
+
* This program is distributed in the hope that it will be useful,
|
|
27
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
28
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
29
|
+
* GNU General Public License for more details.
|
|
30
|
+
*
|
|
31
|
+
* You should have received a copy of the GNU General Public License
|
|
32
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
33
|
+
*/
|
|
34
|
+
import React, { useEffect, useState, } from 'react';
|
|
35
|
+
import { useFloating, useDismiss, offset, autoPlacement, autoUpdate, useHover, useInteractions, } from '@floating-ui/react';
|
|
36
|
+
import Tooltip from './Tooltip';
|
|
37
|
+
import { tokens } from '@neo4j-ndl/base';
|
|
38
|
+
import { Portal } from '../portal';
|
|
39
|
+
import ConditionalWrap from '../_common/ConditionalWrap';
|
|
40
|
+
import { XMarkIconOutline } from '../icons';
|
|
41
|
+
import { Typography } from '../typography';
|
|
42
|
+
import { usePress } from 'react-aria';
|
|
43
|
+
import classname from 'classnames';
|
|
44
|
+
const PLACEMENTS = ['top', 'bottom', 'left', 'right'];
|
|
45
|
+
const calculateArrow = (placement) => {
|
|
46
|
+
switch (placement) {
|
|
47
|
+
case 'bottom':
|
|
48
|
+
return 'top';
|
|
49
|
+
case 'left':
|
|
50
|
+
return 'right';
|
|
51
|
+
case 'right':
|
|
52
|
+
return 'left';
|
|
53
|
+
case 'top':
|
|
54
|
+
default:
|
|
55
|
+
return 'bottom';
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const ToggletipAction = (_a) => {
|
|
59
|
+
var { label, onClick } = _a, props = __rest(_a, ["label", "onClick"]);
|
|
60
|
+
const { pressProps } = usePress({
|
|
61
|
+
onPress: (e) => {
|
|
62
|
+
onClick && onClick(e);
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
return (_jsx(Typography, Object.assign({}, props, { className: classname('ndl-toggletip-action', props.className) }, pressProps, { tabIndex: 0, variant: "label", as: onClick === undefined ? 'a' : 'button' }, { children: label })));
|
|
66
|
+
};
|
|
67
|
+
const Tip = React.forwardRef(function Tip(_a, ref) {
|
|
68
|
+
var { open: openProp, allowedPlacements = PLACEMENTS, portal = true } = _a, props = __rest(_a, ["open", "allowedPlacements", "portal"]);
|
|
69
|
+
const [open, setOpen] = useState(false);
|
|
70
|
+
const { type = 'tooltip' } = props;
|
|
71
|
+
const { context, x, y, strategy, placement, refs } = useFloating({
|
|
72
|
+
open: openProp !== null && openProp !== void 0 ? openProp : open,
|
|
73
|
+
onOpenChange: (e) => {
|
|
74
|
+
setOpen(e);
|
|
75
|
+
/**
|
|
76
|
+
* We do not receive an `event` here from the onOpenChange callback
|
|
77
|
+
* Need to investigate if we can propagate the underlying event for closing to `onClose`
|
|
78
|
+
*/
|
|
79
|
+
if (!open) {
|
|
80
|
+
props.type === 'toggletip' && props.onClose && props.onClose(undefined);
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
whileElementsMounted: autoUpdate,
|
|
84
|
+
middleware: [
|
|
85
|
+
offset(10),
|
|
86
|
+
autoPlacement({
|
|
87
|
+
allowedPlacements,
|
|
88
|
+
}),
|
|
89
|
+
],
|
|
90
|
+
});
|
|
91
|
+
const hover = useHover(context, {
|
|
92
|
+
move: false,
|
|
93
|
+
enabled: type === 'tooltip',
|
|
94
|
+
delay: {
|
|
95
|
+
// TODO: add a slower animation token to avoid this being hardcoded
|
|
96
|
+
open: 200,
|
|
97
|
+
// Strip the 'ms' from the duration token, need to provide pure ms durations
|
|
98
|
+
close: parseInt(tokens.transitions.values.duration.default.replace('ms', '')),
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
const dismiss = useDismiss(context, {
|
|
102
|
+
enabled: type === 'toggletip',
|
|
103
|
+
outsidePress: (e) => {
|
|
104
|
+
/** Avoid calling onClose, if we click the reference element */
|
|
105
|
+
if (
|
|
106
|
+
/** Case that the target is a child of the referenced element **/
|
|
107
|
+
typeof ref !== 'function' &&
|
|
108
|
+
(ref === null || ref === void 0 ? void 0 : ref.current) instanceof Element &&
|
|
109
|
+
e.target instanceof Element &&
|
|
110
|
+
(ref === null || ref === void 0 ? void 0 : ref.current.contains(e.target))) {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
return true;
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
const { getFloatingProps } = useInteractions([hover, dismiss]);
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
/**
|
|
119
|
+
* Assign passed ref to the reference callback
|
|
120
|
+
* of the useFloating hook
|
|
121
|
+
*/
|
|
122
|
+
const { current = null } = ref || {};
|
|
123
|
+
if (current) {
|
|
124
|
+
refs.setReference(current);
|
|
125
|
+
}
|
|
126
|
+
}, [ref]);
|
|
127
|
+
return (_jsx(_Fragment, { children: open || openProp ? (_jsx(ConditionalWrap, Object.assign({ condition: portal, wrap: (children) => _jsx(Portal, { children: children }) }, { children: _jsxs(Tooltip, Object.assign({}, props, { ref: refs.setFloating }, getFloatingProps(), { arrowPosition: calculateArrow(placement), className: classname(props.className, {
|
|
128
|
+
'ndl-toggletip': type === 'toggletip',
|
|
129
|
+
}), style: Object.assign({ position: strategy, top: y !== null && y !== void 0 ? y : 0, left: x !== null && x !== void 0 ? x : 0, width: 'max-content', zIndex: tokens.zIndex.alias.tooltip }, props.style) }, { children: [props.type === 'tooltip' && props.children, props.type === 'toggletip' && (_jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: "ndl-toggletip-header" }, { children: [props.title && (_jsx(Typography, Object.assign({ variant: "h6" }, { children: props.title }))), !props.title && (_jsx(Typography, Object.assign({ variant: "body-medium", as: "div" }, { children: props.children }))), _jsx("div", Object.assign({ tabIndex: 0, role: "button", className: "ndl-toggletip-close-icon", onKeyDown: (event) => {
|
|
130
|
+
var _a;
|
|
131
|
+
if (event.key === 'Enter' || event.key === 'Space') {
|
|
132
|
+
setOpen(false);
|
|
133
|
+
(_a = props === null || props === void 0 ? void 0 : props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, event);
|
|
134
|
+
}
|
|
135
|
+
}, onClick: (event) => {
|
|
136
|
+
setOpen(false);
|
|
137
|
+
(props === null || props === void 0 ? void 0 : props.onClose) && (props === null || props === void 0 ? void 0 : props.onClose(event));
|
|
138
|
+
}, "aria-label": "close-toggletip", "data-testid": "close-toggletip" }, { children: _jsx(XMarkIconOutline, {}) }))] })), _jsxs("div", Object.assign({ className: "ndl-toggletip-content", "data-testid": "toggletip-content" }, { children: [props.title && (_jsx(Typography, Object.assign({ variant: "body-medium" }, { children: props.children }))), props.actions && (_jsx("div", Object.assign({ className: "ndl-toggletip-actions" }, { children: props.actions.map((action, index) => (_createElement(ToggletipAction, Object.assign({}, action, { key: index })))) })))] }))] }))] })) }))) : null }));
|
|
139
|
+
});
|
|
140
|
+
export default Tip;
|
|
141
|
+
//# sourceMappingURL=Tip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tip.js","sourceRoot":"","sources":["../../../src/tooltip/Tip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,EAIZ,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EACL,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,EACb,UAAU,EACV,QAAQ,EACR,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,OAAyB,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,SAAS,MAAM,YAAY,CAAC;AAiDnC,MAAM,UAAU,GAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAE9D,MAAM,cAAc,GAAG,CACrB,SAAe,EACkC,EAAE;IACnD,QAAQ,SAAS,EAAE;QACjB,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,OAAO,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,MAAM,CAAC;QAChB,KAAK,KAAK,CAAC;QACX;YACE,OAAO,QAAQ,CAAC;KACnB;AACH,CAAC,CAAC;AAEF,MAAM,e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"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
/// <reference types="react" />
|
|
21
|
+
import { MouseEvent, TouchEvent } from 'react';
|
|
23
22
|
export declare const removeNewlines: (input: string) => string;
|
|
24
23
|
/** Remove extra spaces from sting */
|
|
25
24
|
export declare const removeSpaces: (input: string) => string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { SVGProps } from 'react';
|
|
22
|
+
declare const SvgAddNode: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
|
+
export default SvgAddNode;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { SVGProps } from 'react';
|
|
22
|
+
declare const SvgSidebarLineLeft: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
|
+
export default SvgSidebarLineLeft;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { SVGProps } from 'react';
|
|
22
|
+
declare const SvgSidebarLineRight: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
|
+
export default SvgSidebarLineRight;
|