@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/checkbox/Checkbox.js
DELETED
|
@@ -1,62 +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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
34
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
35
|
-
};
|
|
36
|
-
exports.__esModule = true;
|
|
37
|
-
var react_1 = __importDefault(require("react"));
|
|
38
|
-
var input_1 = require("../input");
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* Helpers
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
/** Add any helper functions here. */
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* Checkbox Component
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
var Checkbox = react_1["default"].forwardRef(function (props, ref) {
|
|
55
|
-
if (!props['aria-label'] && !props.label) {
|
|
56
|
-
console.warn('To be accesible the input component requires either `aria-label` or `label` prop: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI');
|
|
57
|
-
}
|
|
58
|
-
return react_1["default"].createElement(input_1.Input, __assign({}, props, { ref: ref, type: "checkbox", role: "checkbox" }));
|
|
59
|
-
});
|
|
60
|
-
Checkbox.displayName = 'Checkbox';
|
|
61
|
-
exports["default"] = Checkbox;
|
|
62
|
-
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../src/checkbox/Checkbox.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,gDAA0B;AAC1B,kCAAiC;AAGjC;;;;;;GAMG;AAEH,qCAAqC;AAErC;;;;;;GAMG;AAEH,IAAM,QAAQ,GAAG,kBAAK,CAAC,UAAU,CAC/B,UAAC,KAAiB,EAAE,GAAyC;IAC3D,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;QACxC,OAAO,CAAC,IAAI,CACV,sJAAsJ,CACvJ,CAAC;KACH;IAED,OAAO,iCAAC,aAAK,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,UAAU,IAAG,CAAC;AACxE,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,qBAAe,QAAQ,CAAC"}
|
package/lib/checkbox/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 Checkbox } from './Checkbox';
|
package/lib/checkbox/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.Checkbox = void 0;
|
|
31
|
-
var Checkbox_1 = require("./Checkbox");
|
|
32
|
-
__createBinding(exports, Checkbox_1, "default", "Checkbox");
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/checkbox/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,uCAAiD;AAAxC,4DAAmB"}
|
|
@@ -1,65 +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 { PopoverProps } from '../popover';
|
|
23
|
-
/**
|
|
24
|
-
* A Menu component. A significant portion of this code is a subset of the Material UI React Menu component
|
|
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
|
-
export interface ContextMenuProps extends PopoverProps {
|
|
31
|
-
menuSize?: 'small' | 'large';
|
|
32
|
-
/** The minimum width of the menu */
|
|
33
|
-
minWidth?: number;
|
|
34
|
-
}
|
|
35
|
-
export declare const Menu: React.ForwardRefExoticComponent<Pick<ContextMenuProps, "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" | "menuSize" | "minWidth"> & React.RefAttributes<unknown>>;
|
|
36
|
-
interface MenuItemsProps extends ElementBase {
|
|
37
|
-
children: React.ReactNode | string;
|
|
38
|
-
/** Additional classes */
|
|
39
|
-
className?: string;
|
|
40
|
-
}
|
|
41
|
-
export declare const MenuItems: React.ForwardRefExoticComponent<Pick<MenuItemsProps, "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"> & React.RefAttributes<unknown>>;
|
|
42
|
-
interface MenuItemProps extends Omit<ElementBase, 'title' | 'onClick'> {
|
|
43
|
-
/** Item title text */
|
|
44
|
-
title: string | React.ReactNode;
|
|
45
|
-
/** Item description text */
|
|
46
|
-
description?: string | React.ReactNode;
|
|
47
|
-
/** An icon to render on the left side of the list item */
|
|
48
|
-
icon?: React.ReactNode;
|
|
49
|
-
/** Additional classes */
|
|
50
|
-
className?: string;
|
|
51
|
-
/** Disable this menu item */
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>) => void;
|
|
54
|
-
}
|
|
55
|
-
export declare const MenuItem: React.ForwardRefExoticComponent<Pick<MenuItemProps, "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" | "icon" | "description"> & React.RefAttributes<unknown>>;
|
|
56
|
-
interface MenuHeaderProps extends Omit<ElementBase, 'title'> {
|
|
57
|
-
/** Header title text */
|
|
58
|
-
title: string | React.ReactNode;
|
|
59
|
-
/** Header description text */
|
|
60
|
-
description?: string | React.ReactNode;
|
|
61
|
-
/** Additional classes */
|
|
62
|
-
className?: string;
|
|
63
|
-
}
|
|
64
|
-
export declare const MenuHeader: React.ForwardRefExoticComponent<Pick<MenuHeaderProps, "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" | "description"> & React.RefAttributes<unknown>>;
|
|
65
|
-
export {};
|
|
@@ -1,230 +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.MenuHeader = exports.MenuItem = exports.MenuItems = exports.Menu = void 0;
|
|
68
|
-
var react_1 = __importStar(require("react"));
|
|
69
|
-
var icons_1 = require("../icons");
|
|
70
|
-
var popover_1 = require("../popover");
|
|
71
|
-
var classnames_1 = __importDefault(require("classnames"));
|
|
72
|
-
var MenuContext = react_1["default"].createContext(null);
|
|
73
|
-
var useMenuContext = function () {
|
|
74
|
-
var context = (0, react_1.useContext)(MenuContext);
|
|
75
|
-
if (context === null) {
|
|
76
|
-
throw new Error('Menu used without context. Did you render this component inside a <Menu />?');
|
|
77
|
-
}
|
|
78
|
-
return context;
|
|
79
|
-
};
|
|
80
|
-
exports.Menu = (0, react_1.forwardRef)(function Menu(_a, ref) {
|
|
81
|
-
var _b = _a.menuSize, menuSize = _b === void 0 ? 'small' : _b, className = _a.className, _c = _a.minWidth, minWidth = _c === void 0 ? 250 : _c, open = _a.open, onClose = _a.onClose, children = _a.children, rest = __rest(_a, ["menuSize", "className", "minWidth", "open", "onClose", "children"]);
|
|
82
|
-
var menuRef = (0, react_1.useRef)();
|
|
83
|
-
var focusFirstMenuItem = (0, react_1.useCallback)(function () {
|
|
84
|
-
var menu = menuRef.current;
|
|
85
|
-
if (!menu)
|
|
86
|
-
return;
|
|
87
|
-
var items = menu.querySelectorAll(':scope > .menu-items > .menu-item');
|
|
88
|
-
if (items.length === 0) {
|
|
89
|
-
menu.focus();
|
|
90
|
-
}
|
|
91
|
-
items[0].focus();
|
|
92
|
-
}, []);
|
|
93
|
-
// Override ref to map to internal ref
|
|
94
|
-
// as well as change focus to focus the
|
|
95
|
-
// first menu item
|
|
96
|
-
(0, react_1.useImperativeHandle)(ref, function () {
|
|
97
|
-
var menu = menuRef.current;
|
|
98
|
-
if (!menu) {
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
return __assign(__assign({}, menu), { focus: focusFirstMenuItem });
|
|
102
|
-
});
|
|
103
|
-
// Focus first menu item on open.
|
|
104
|
-
// This effect is separate from the above
|
|
105
|
-
// `setPositiongStyles` effect as the above
|
|
106
|
-
// is triggered on every render usually as
|
|
107
|
-
// anchorOrigin and transformOrigin
|
|
108
|
-
// are typically not memoized
|
|
109
|
-
(0, react_1.useEffect)(function () {
|
|
110
|
-
if (open) {
|
|
111
|
-
focusFirstMenuItem();
|
|
112
|
-
}
|
|
113
|
-
}, [open, focusFirstMenuItem]);
|
|
114
|
-
var classes = (0, classnames_1["default"])('ndl-menu', menuSize, className);
|
|
115
|
-
return (react_1["default"].createElement(MenuContext.Provider, { value: { onClose: onClose } },
|
|
116
|
-
react_1["default"].createElement(popover_1.Popover, __assign({ tabIndex: -1 }, rest, { open: open, style: __assign({ minWidth: minWidth }, (rest.style || {})), className: classes, ref: menuRef, onClose: onClose }), children)));
|
|
117
|
-
});
|
|
118
|
-
var getMenuItem = function (menuItems, iterator) {
|
|
119
|
-
var activeElement = document.activeElement;
|
|
120
|
-
var newEl = iterator(menuItems, activeElement);
|
|
121
|
-
var menuItem = null;
|
|
122
|
-
// Iterate over next element until we find a menu item
|
|
123
|
-
// Iterate a maximum of 10 times looking for an element
|
|
124
|
-
for (var i = 0; i < 10; i++) {
|
|
125
|
-
// Can't find new element, break
|
|
126
|
-
if (!newEl) {
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
var role = newEl.getAttribute('role');
|
|
130
|
-
if (role === 'menuitem') {
|
|
131
|
-
menuItem = newEl;
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
134
|
-
newEl = iterator(menuItems, newEl);
|
|
135
|
-
}
|
|
136
|
-
return menuItem;
|
|
137
|
-
};
|
|
138
|
-
// Gets next sibling child of the menu items, looping at the end
|
|
139
|
-
var nextElement = function (menuItems, currentEl) {
|
|
140
|
-
if (currentEl === menuItems || !(currentEl === null || currentEl === void 0 ? void 0 : currentEl.nextElementSibling)) {
|
|
141
|
-
return menuItems.firstChild ? menuItems.firstChild : null;
|
|
142
|
-
}
|
|
143
|
-
else if (currentEl === null || currentEl === void 0 ? void 0 : currentEl.nextElementSibling) {
|
|
144
|
-
return currentEl.nextElementSibling;
|
|
145
|
-
}
|
|
146
|
-
return null;
|
|
147
|
-
};
|
|
148
|
-
// Gets prev sibling child of the menu items, looping at the top
|
|
149
|
-
var prevElement = function (menuItems, currentEl) {
|
|
150
|
-
if (currentEl === menuItems || !(currentEl === null || currentEl === void 0 ? void 0 : currentEl.previousElementSibling)) {
|
|
151
|
-
return menuItems.lastChild ? menuItems.lastChild : null;
|
|
152
|
-
}
|
|
153
|
-
else if (currentEl === null || currentEl === void 0 ? void 0 : currentEl.previousElementSibling) {
|
|
154
|
-
return currentEl.previousElementSibling;
|
|
155
|
-
}
|
|
156
|
-
return null;
|
|
157
|
-
};
|
|
158
|
-
exports.MenuItems = (0, react_1.forwardRef)(function MenuItems(_a, ref) {
|
|
159
|
-
var _b = _a.as, as = _b === void 0 ? 'ul' : _b, children = _a.children, className = _a.className, rest = __rest(_a, ["as", "children", "className"]);
|
|
160
|
-
var menuItemsRef = (0, react_1.useRef)();
|
|
161
|
-
var onClose = useMenuContext().onClose;
|
|
162
|
-
var handleKeyDown = function (event) {
|
|
163
|
-
var menuItems = menuItemsRef.current;
|
|
164
|
-
if (!menuItems) {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
if (event.key == 'ArrowDown') {
|
|
168
|
-
event.preventDefault();
|
|
169
|
-
event.stopPropagation();
|
|
170
|
-
var newFocusedElement = getMenuItem(menuItems, nextElement);
|
|
171
|
-
newFocusedElement === null || newFocusedElement === void 0 ? void 0 : newFocusedElement.focus();
|
|
172
|
-
}
|
|
173
|
-
else if (event.key == 'ArrowUp') {
|
|
174
|
-
event.preventDefault();
|
|
175
|
-
event.stopPropagation();
|
|
176
|
-
var newFocusedElement = getMenuItem(menuItems, prevElement);
|
|
177
|
-
newFocusedElement === null || newFocusedElement === void 0 ? void 0 : newFocusedElement.focus();
|
|
178
|
-
}
|
|
179
|
-
else if (event.key == 'Tab' || event.key == 'Escape') {
|
|
180
|
-
event.preventDefault();
|
|
181
|
-
onClose && onClose(event);
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
(0, react_1.useImperativeHandle)(ref, function () { return menuItemsRef.current; });
|
|
185
|
-
var Component = as;
|
|
186
|
-
var classes = (0, classnames_1["default"])('menu-items', className);
|
|
187
|
-
return (react_1["default"].createElement(Component, __assign({ tabIndex: -1, onKeyDown: handleKeyDown, role: "menu" }, rest, { className: classes, ref: menuItemsRef }), children));
|
|
188
|
-
});
|
|
189
|
-
exports.MenuItem = (0, react_1.forwardRef)(function MenuItem(_a, ref) {
|
|
190
|
-
var _b = _a.as, as = _b === void 0 ? 'li' : _b, icon = _a.icon, title = _a.title, description = _a.description, className = _a.className, _c = _a.disabled, disabled = _c === void 0 ? false : _c, onClick = _a.onClick, onKeyDown = _a.onKeyDown, rest = __rest(_a, ["as", "icon", "title", "description", "className", "disabled", "onClick", "onKeyDown"]);
|
|
191
|
-
var Component = as;
|
|
192
|
-
var classes = (0, classnames_1["default"])("menu-item n-flex n-flex-col", className, {
|
|
193
|
-
disabled: disabled
|
|
194
|
-
});
|
|
195
|
-
var handleClick = function (e) {
|
|
196
|
-
if (disabled)
|
|
197
|
-
return;
|
|
198
|
-
if (onClick)
|
|
199
|
-
onClick(e);
|
|
200
|
-
};
|
|
201
|
-
var handleKeyDown = function (e) {
|
|
202
|
-
if (onKeyDown)
|
|
203
|
-
onKeyDown(e);
|
|
204
|
-
if (e.key === 'Enter') {
|
|
205
|
-
if (disabled)
|
|
206
|
-
return;
|
|
207
|
-
if (onClick)
|
|
208
|
-
onClick(e);
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
return (react_1["default"].createElement(Component, __assign({ tabIndex: -1, role: "menuitem" }, rest, { className: classes, onClick: handleClick, onKeyDown: handleKeyDown, ref: ref }),
|
|
212
|
-
react_1["default"].createElement("div", { className: "n-flex n-items-center" },
|
|
213
|
-
icon && react_1["default"].createElement("div", { className: "menu-item-icon" }, icon),
|
|
214
|
-
react_1["default"].createElement("div", { className: "menu-item-title" }, title)),
|
|
215
|
-
description && (react_1["default"].createElement("div", { className: "menu-item-description" }, description))));
|
|
216
|
-
});
|
|
217
|
-
exports.MenuHeader = (0, react_1.forwardRef)(function MenuHeader(_a, ref) {
|
|
218
|
-
var _b = _a.as, as = _b === void 0 ? 'div' : _b, title = _a.title, description = _a.description, className = _a.className, rest = __rest(_a, ["as", "title", "description", "className"]);
|
|
219
|
-
var Component = as;
|
|
220
|
-
var onClose = useMenuContext().onClose;
|
|
221
|
-
var handleClose = function (e) { return onClose && onClose(e); };
|
|
222
|
-
var classes = (0, classnames_1["default"])('menu-header n-flex n-flex-col', className);
|
|
223
|
-
return (react_1["default"].createElement(Component, __assign({}, rest, { className: classes, ref: ref }),
|
|
224
|
-
react_1["default"].createElement("div", { className: "n-flex n-justify-between n-items-center" },
|
|
225
|
-
react_1["default"].createElement("div", { className: "menu-header-title" }, title),
|
|
226
|
-
react_1["default"].createElement("div", { tabIndex: 0, role: "button", onKeyDown: handleClose, onClick: handleClose, className: "menu-header-icon" },
|
|
227
|
-
react_1["default"].createElement(icons_1.HeroIcon, { iconName: "XIcon" }))),
|
|
228
|
-
description && (react_1["default"].createElement("div", { className: "menu-header-description" }, description))));
|
|
229
|
-
});
|
|
230
|
-
//# sourceMappingURL=ContextMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../src/context-menu/ContextMenu.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAOe;AACf,kCAAoC;AACpC,sCAAmD;AACnD,0DAAoC;AAiBpC,IAAM,WAAW,GAAG,kBAAK,CAAC,aAAa,CAAyB,IAAI,CAAC,CAAC;AAEtE,IAAM,cAAc,GAAG;IACrB,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAC;IACxC,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,KAAK,CACb,6EAA6E,CAC9E,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAQW,QAAA,IAAI,GAAG,IAAA,kBAAU,EAAC,SAAS,IAAI,CAC1C,EAQmB,EACnB,GAAG;IARD,IAAA,gBAAkB,EAAlB,QAAQ,mBAAG,OAAO,KAAA,EAClB,SAAS,eAAA,EACT,gBAAc,EAAd,QAAQ,mBAAG,GAAG,KAAA,EACd,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,QAAQ,cAAA,EACL,IAAI,cAPT,oEAQC,CADQ;IAIT,IAAM,OAAO,GAAG,IAAA,cAAM,GAAe,CAAC;IAEtC,IAAM,kBAAkB,GAAG,IAAA,mBAAW,EAAC;QACrC,IAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC;QAC7B,IAAI,CAAC,IAAI;YAAE,OAAO;QAElB,IAAM,KAAK,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,EAAE,GAAG;QAC/C,0CAAK,SAAS,EAAC,yCAAyC;YACtD,0CAAK,SAAS,EAAC,mBAAmB,IAAE,KAAK,CAAO;YAChD,0CACE,QAAQ,EAAE,CAAC,EACX,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,kBAAkB;gBAE5B,iCAAC,gBAAQ,IAAC,QAAQ,EAAC,OAAO,GAAG,CACzB,CACF;QACL,WAAW,IAAI,CACd,0CAAK,SAAS,EAAC,yBAAyB,IAAE,WAAW,CAAO,CAC7D,CACS,CACb,CAAC;AACJ,CAAC,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 * from './ContextMenu';
|
|
@@ -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("./ContextMenu"), exports);
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/context-menu/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,gDAA8B"}
|
|
@@ -1,24 +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 declare function debounce(func: (...args: unknown[]) => unknown, wait?: number): {
|
|
22
|
-
(this: unknown, ...args: unknown[]): void;
|
|
23
|
-
clear(): void;
|
|
24
|
-
};
|