@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
|
@@ -1,41 +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
|
-
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: React.ForwardRefExoticComponent<LoadingSpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
export default LoadingSpinner;
|
|
@@ -1,64 +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
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* LoadingSpinner Component
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
var LoadingSpinner = react_1["default"].forwardRef(function LoadingSpinner(props, ref) {
|
|
58
|
-
var _a = props.size, size = _a === void 0 ? 'small' : _a, className = props.className, rest = __rest(props, ["size", "className"]);
|
|
59
|
-
var classes = (0, classnames_1["default"])('ndl-spin-wrapper', size, className);
|
|
60
|
-
return (react_1["default"].createElement("div", __assign({ className: classes, role: "status", "aria-label": "loading-spinner" }, rest, { ref: ref }),
|
|
61
|
-
react_1["default"].createElement("div", { className: "spin" })));
|
|
62
|
-
});
|
|
63
|
-
exports["default"] = LoadingSpinner;
|
|
64
|
-
//# sourceMappingURL=LoadingSpinner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,kBAAK,CAAC,UAAU,CAAC,SAAS,cAAc,CAC7D,KAA0B,EAC1B,GAAuC;IAE/B,IAAA,KAAuC,KAAK,KAA9B,EAAd,IAAI,mBAAG,OAAO,KAAA,EAAE,SAAS,GAAc,KAAK,UAAnB,EAAK,IAAI,UAAK,KAAK,EAA9C,qBAAsC,CAAF,CAAW;IAErD,IAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,kBAAkB,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;IAEhE,OAAO,CACL,mDACE,SAAS,EAAE,OAAO,EAClB,IAAI,EAAC,QAAQ,gBACF,iBAAiB,IACxB,IAAI,IACR,GAAG,EAAE,GAAG;QAER,0CAAK,SAAS,EAAC,MAAM,GAAG,CACpB,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,qBAAe,cAAc,CAAC"}
|
|
@@ -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 LoadingSpinner } from './LoadingSpinner';
|
|
@@ -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.LoadingSpinner = void 0;
|
|
31
|
-
var LoadingSpinner_1 = require("./LoadingSpinner");
|
|
32
|
-
__createBinding(exports, LoadingSpinner_1, "default", "LoadingSpinner");
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/loading-spinner/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,mDAA6D;AAApD,wEAAyB"}
|
package/lib/popover/Popover.d.ts
DELETED
|
@@ -1,70 +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
|
-
* 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 {};
|
package/lib/popover/Popover.js
DELETED
|
@@ -1,224 +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.Popover = void 0;
|
|
68
|
-
var react_1 = __importStar(require("react"));
|
|
69
|
-
var ReactDOM = __importStar(require("react-dom"));
|
|
70
|
-
var classnames_1 = __importDefault(require("classnames"));
|
|
71
|
-
var helpers_1 = require("../helpers");
|
|
72
|
-
var getScrollbarSize = function (doc) {
|
|
73
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
|
|
74
|
-
var documentWidth = doc.documentElement.clientWidth;
|
|
75
|
-
return Math.abs(window.innerWidth - documentWidth);
|
|
76
|
-
};
|
|
77
|
-
var getPaddingRight = function (element) {
|
|
78
|
-
return parseInt(window.getComputedStyle(element).paddingRight, 10) || 0;
|
|
79
|
-
};
|
|
80
|
-
var getOffsetTop = function (rect, vertical) {
|
|
81
|
-
var offset = 0;
|
|
82
|
-
if (vertical === 'bottom') {
|
|
83
|
-
offset = rect.height;
|
|
84
|
-
}
|
|
85
|
-
return offset;
|
|
86
|
-
};
|
|
87
|
-
var getOffsetLeft = function (rect, horizontal) {
|
|
88
|
-
var offset = 0;
|
|
89
|
-
if (horizontal === 'right') {
|
|
90
|
-
offset = rect.width;
|
|
91
|
-
}
|
|
92
|
-
return offset;
|
|
93
|
-
};
|
|
94
|
-
exports.Popover = (0, react_1.forwardRef)(function Popover(_a, ref) {
|
|
95
|
-
var _b = _a.as, as = _b === void 0 ? 'div' : _b, children = _a.children, open = _a.open, anchorEl = _a.anchorEl, onClose = _a.onClose, _c = _a.anchorOrigin, anchorOrigin = _c === void 0 ? { vertical: 'bottom', horizontal: 'left' } : _c, _d = _a.transformOrigin, transformOrigin = _d === void 0 ? { vertical: 'top', horizontal: 'left' } : _d, className = _a.className, _e = _a.nested, nested = _e === void 0 ? false : _e, rest = __rest(_a, ["as", "children", "open", "anchorEl", "onClose", "anchorOrigin", "transformOrigin", "className", "nested"]);
|
|
96
|
-
var Component = as;
|
|
97
|
-
var popoverRef = (0, react_1.useRef)();
|
|
98
|
-
var bodyPadding = (0, react_1.useRef)(0);
|
|
99
|
-
// Override ref to map to internal ref
|
|
100
|
-
(0, react_1.useImperativeHandle)(ref, function () {
|
|
101
|
-
var popover = popoverRef.current;
|
|
102
|
-
if (!popover) {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
return popover;
|
|
106
|
-
});
|
|
107
|
-
var _f = (0, react_1.useState)(false), enter = _f[0], setEnter = _f[1];
|
|
108
|
-
var base = (0, classnames_1["default"])({
|
|
109
|
-
open: open,
|
|
110
|
-
enter: enter
|
|
111
|
-
});
|
|
112
|
-
var getPositioningStyles = (0, react_1.useCallback)(function (element) {
|
|
113
|
-
if (!anchorEl)
|
|
114
|
-
throw Error('Missing anchorEl for Popover component');
|
|
115
|
-
var anchorRect = anchorEl.getBoundingClientRect();
|
|
116
|
-
var menuRect = {
|
|
117
|
-
width: element.offsetWidth,
|
|
118
|
-
height: element.offsetHeight
|
|
119
|
-
};
|
|
120
|
-
var transformX = transformOrigin.horizontal == 'right' ? -menuRect.width : 0;
|
|
121
|
-
var transformY = transformOrigin.vertical == 'bottom' ? -menuRect.height : 0;
|
|
122
|
-
var marginThreshold = 16; // An arbitrary margin between the menu popup and the border of the window
|
|
123
|
-
// Window thresholds taking required margin into account
|
|
124
|
-
var heightThreshold = window.innerHeight - marginThreshold;
|
|
125
|
-
var widthThreshold = window.innerWidth - marginThreshold;
|
|
126
|
-
var top = anchorRect.top +
|
|
127
|
-
getOffsetTop(anchorRect, anchorOrigin.vertical) +
|
|
128
|
-
transformY;
|
|
129
|
-
var left = anchorRect.left +
|
|
130
|
-
getOffsetLeft(anchorRect, anchorOrigin.horizontal) +
|
|
131
|
-
transformX;
|
|
132
|
-
var right = left + menuRect.width;
|
|
133
|
-
var bottom = top + menuRect.height;
|
|
134
|
-
// Check if the vertical axis needs shifting
|
|
135
|
-
if (top < marginThreshold) {
|
|
136
|
-
var diff = top - marginThreshold;
|
|
137
|
-
top -= diff;
|
|
138
|
-
}
|
|
139
|
-
else if (bottom > heightThreshold) {
|
|
140
|
-
var diff = bottom - heightThreshold;
|
|
141
|
-
top -= diff;
|
|
142
|
-
}
|
|
143
|
-
// Check if the horizontal axis needs shifting
|
|
144
|
-
if (left < marginThreshold) {
|
|
145
|
-
var diff = left - marginThreshold;
|
|
146
|
-
left -= diff;
|
|
147
|
-
}
|
|
148
|
-
else if (right > widthThreshold) {
|
|
149
|
-
var diff = right - widthThreshold;
|
|
150
|
-
left -= diff;
|
|
151
|
-
}
|
|
152
|
-
return {
|
|
153
|
-
top: top,
|
|
154
|
-
left: left
|
|
155
|
-
};
|
|
156
|
-
}, [anchorOrigin, transformOrigin, anchorEl]);
|
|
157
|
-
var setPositioningStyles = (0, react_1.useCallback)(function () {
|
|
158
|
-
var element = popoverRef.current;
|
|
159
|
-
if (!element) {
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
var positioning = getPositioningStyles(element);
|
|
163
|
-
if (positioning.top !== null) {
|
|
164
|
-
element.style.top = "".concat(positioning.top, "px");
|
|
165
|
-
}
|
|
166
|
-
if (positioning.left !== null) {
|
|
167
|
-
element.style.left = "".concat(positioning.left, "px");
|
|
168
|
-
}
|
|
169
|
-
}, [getPositioningStyles]);
|
|
170
|
-
// Disable scroll and add padding when the popover is open
|
|
171
|
-
(0, react_1.useEffect)(function () {
|
|
172
|
-
if (nested) {
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
if (open) {
|
|
176
|
-
var existingPaddingRight = getPaddingRight(document.body);
|
|
177
|
-
bodyPadding.current = existingPaddingRight;
|
|
178
|
-
var newPaddingRight = existingPaddingRight + getScrollbarSize(document);
|
|
179
|
-
document.body.style.overflow = 'hidden';
|
|
180
|
-
document.body.style.paddingRight = "".concat(newPaddingRight, "px");
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
document.body.style.overflow = '';
|
|
184
|
-
document.body.style.paddingRight = "".concat(bodyPadding.current, "px");
|
|
185
|
-
}
|
|
186
|
-
}, [open, nested]);
|
|
187
|
-
(0, react_1.useEffect)(function () {
|
|
188
|
-
if (open) {
|
|
189
|
-
setPositioningStyles();
|
|
190
|
-
}
|
|
191
|
-
}, [open, setPositioningStyles]);
|
|
192
|
-
// Set Enter to trigger fade in animation
|
|
193
|
-
(0, react_1.useEffect)(function () { return setEnter(open); }, [open]);
|
|
194
|
-
(0, react_1.useEffect)(function () {
|
|
195
|
-
if (!open) {
|
|
196
|
-
return undefined;
|
|
197
|
-
}
|
|
198
|
-
var handleResize = (0, helpers_1.debounce)(function () {
|
|
199
|
-
setPositioningStyles();
|
|
200
|
-
});
|
|
201
|
-
window.addEventListener('resize', handleResize);
|
|
202
|
-
return function () {
|
|
203
|
-
handleResize.clear();
|
|
204
|
-
window.removeEventListener('resize', handleResize);
|
|
205
|
-
};
|
|
206
|
-
}, [anchorEl, open, setPositioningStyles]);
|
|
207
|
-
var handleBackdropClick = function (event) {
|
|
208
|
-
event.stopPropagation();
|
|
209
|
-
event.preventDefault();
|
|
210
|
-
onClose && onClose(event);
|
|
211
|
-
};
|
|
212
|
-
if (!open) {
|
|
213
|
-
return null;
|
|
214
|
-
}
|
|
215
|
-
var classes = (0, classnames_1["default"])('ndl-popover', base, className);
|
|
216
|
-
return (react_1["default"].createElement(Portal, { container: document.body },
|
|
217
|
-
react_1["default"].createElement("div", { className: "ndl-popover-backdrop", role: "button", tabIndex: 0, onClick: handleBackdropClick, onKeyDown: handleBackdropClick, "data-testid": "popover-backdrop" }),
|
|
218
|
-
react_1["default"].createElement(Component, __assign({ tabIndex: -1 }, rest, { className: classes, ref: popoverRef, "data-testid": "popover-content" }), children)));
|
|
219
|
-
});
|
|
220
|
-
var Portal = function (_a) {
|
|
221
|
-
var children = _a.children, container = _a.container;
|
|
222
|
-
return ReactDOM.createPortal(children, container);
|
|
223
|
-
};
|
|
224
|
-
//# sourceMappingURL=Popover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../src/popover/Popover.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAOe;AACf,kDAAsC;AACtC,0DAAoC;AACpC,sCAAsC;AAetC,IAAM,gBAAgB,GAAG,UAAC,GAAa;I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H,IAAM,MAAM,GAAG,UAAC,EAAoC;QAAlC,QAAQ,cAAA,EAAE,SAAS,eAAA;IACnC,OAAO,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AACpD,CAAC,CAAC"}
|
package/lib/popover/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 './Popover';
|
package/lib/popover/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("./Popover"), exports);
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
package/lib/popover/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/popover/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,4CAA0B"}
|
|
@@ -1,30 +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
|
-
export interface ProgressBarProps extends React.HTMLProps<HTMLDivElement> {
|
|
23
|
-
heading: string;
|
|
24
|
-
estimatedTime?: string;
|
|
25
|
-
value: number;
|
|
26
|
-
barSize: 'small' | 'large';
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
29
|
-
declare const ProgressBar: React.ForwardRefExoticComponent<Pick<ProgressBarProps, "size" | "className" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "heading" | "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" | "estimatedTime" | "barSize"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
export default ProgressBar;
|