@neo4j-ndl/react 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/lib/alert/Alert.d.ts +70 -0
- package/lib/alert/Alert.js +114 -0
- package/lib/alert/Alert.js.map +1 -0
- package/lib/alert/index.d.ts +21 -0
- package/lib/alert/index.js +34 -0
- package/lib/alert/index.js.map +1 -0
- package/lib/button/Button.d.ts +52 -0
- package/lib/button/Button.js +110 -0
- package/lib/button/Button.js.map +1 -0
- package/lib/button/index.d.ts +21 -0
- package/lib/button/index.js +34 -0
- package/lib/button/index.js.map +1 -0
- package/lib/checkbox/Checkbox.d.ts +39 -0
- package/lib/checkbox/Checkbox.js +59 -0
- package/lib/checkbox/Checkbox.js.map +1 -0
- package/lib/checkbox/index.d.ts +21 -0
- package/lib/checkbox/index.js +33 -0
- package/lib/checkbox/index.js.map +1 -0
- package/lib/context-menu/ContextMenu.d.ts +65 -0
- package/lib/context-menu/ContextMenu.js +228 -0
- package/lib/context-menu/ContextMenu.js.map +1 -0
- package/lib/context-menu/index.d.ts +21 -0
- package/lib/context-menu/index.js +34 -0
- package/lib/context-menu/index.js.map +1 -0
- package/lib/helpers/debounce.d.ts +24 -0
- package/lib/helpers/debounce.js +47 -0
- package/lib/helpers/debounce.js.map +1 -0
- package/lib/helpers/index.d.ts +22 -0
- package/lib/helpers/index.js +35 -0
- package/lib/helpers/index.js.map +1 -0
- package/lib/helpers/types.d.ts +25 -0
- package/lib/helpers/types.js +23 -0
- package/lib/helpers/types.js.map +1 -0
- package/lib/icons/Custom.d.ts +27 -0
- package/lib/icons/Custom.js +77 -0
- package/lib/icons/Custom.js.map +1 -0
- package/lib/icons/Hero.d.ts +28 -0
- package/lib/icons/Hero.js +89 -0
- package/lib/icons/Hero.js.map +1 -0
- package/lib/icons/custom/Circle.d.ts +23 -0
- package/lib/icons/custom/Circle.js +57 -0
- package/lib/icons/custom/Circle.js.map +1 -0
- package/lib/icons/custom/DatabaseAddCircle.d.ts +23 -0
- package/lib/icons/custom/DatabaseAddCircle.js +57 -0
- package/lib/icons/custom/DatabaseAddCircle.js.map +1 -0
- package/lib/icons/custom/Drag.d.ts +23 -0
- package/lib/icons/custom/Drag.js +62 -0
- package/lib/icons/custom/Drag.js.map +1 -0
- package/lib/icons/custom/Expand.d.ts +23 -0
- package/lib/icons/custom/Expand.js +57 -0
- package/lib/icons/custom/Expand.js.map +1 -0
- package/lib/icons/custom/ExternalLink.d.ts +23 -0
- package/lib/icons/custom/ExternalLink.js +57 -0
- package/lib/icons/custom/ExternalLink.js.map +1 -0
- package/lib/icons/custom/FitToScreen.d.ts +23 -0
- package/lib/icons/custom/FitToScreen.js +57 -0
- package/lib/icons/custom/FitToScreen.js.map +1 -0
- package/lib/icons/custom/FolderBookmark.d.ts +23 -0
- package/lib/icons/custom/FolderBookmark.js +57 -0
- package/lib/icons/custom/FolderBookmark.js.map +1 -0
- package/lib/icons/custom/Heirarchy2.d.ts +23 -0
- package/lib/icons/custom/Heirarchy2.js +57 -0
- package/lib/icons/custom/Heirarchy2.js.map +1 -0
- package/lib/icons/custom/Hierarchy1.d.ts +23 -0
- package/lib/icons/custom/Hierarchy1.js +57 -0
- package/lib/icons/custom/Hierarchy1.js.map +1 -0
- package/lib/icons/custom/Pin.d.ts +23 -0
- package/lib/icons/custom/Pin.js +57 -0
- package/lib/icons/custom/Pin.js.map +1 -0
- package/lib/icons/custom/Presentation.d.ts +23 -0
- package/lib/icons/custom/Presentation.js +57 -0
- package/lib/icons/custom/Presentation.js.map +1 -0
- package/lib/icons/custom/Rhombus.d.ts +23 -0
- package/lib/icons/custom/Rhombus.js +57 -0
- package/lib/icons/custom/Rhombus.js.map +1 -0
- package/lib/icons/custom/Shrink.d.ts +23 -0
- package/lib/icons/custom/Shrink.js +57 -0
- package/lib/icons/custom/Shrink.js.map +1 -0
- package/lib/icons/custom/Text.d.ts +23 -0
- package/lib/icons/custom/Text.js +57 -0
- package/lib/icons/custom/Text.js.map +1 -0
- package/lib/icons/custom/Triangle.d.ts +23 -0
- package/lib/icons/custom/Triangle.js +57 -0
- package/lib/icons/custom/Triangle.js.map +1 -0
- package/lib/icons/custom/index.d.ts +35 -0
- package/lib/icons/custom/index.js +61 -0
- package/lib/icons/custom/index.js.map +1 -0
- package/lib/icons/index.d.ts +22 -0
- package/lib/icons/index.js +35 -0
- package/lib/icons/index.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.js +43 -0
- package/lib/index.js.map +1 -0
- package/lib/input/Input.d.ts +44 -0
- package/lib/input/Input.js +92 -0
- package/lib/input/Input.js.map +1 -0
- package/lib/input/index.d.ts +21 -0
- package/lib/input/index.js +33 -0
- package/lib/input/index.js.map +1 -0
- package/lib/label/Label.d.ts +41 -0
- package/lib/label/Label.js +81 -0
- package/lib/label/Label.js.map +1 -0
- package/lib/label/index.d.ts +21 -0
- package/lib/label/index.js +33 -0
- package/lib/label/index.js.map +1 -0
- package/lib/loading-spinner/LoadingSpinner.d.ts +41 -0
- package/lib/loading-spinner/LoadingSpinner.js +45 -0
- package/lib/loading-spinner/LoadingSpinner.js.map +1 -0
- package/lib/loading-spinner/index.d.ts +21 -0
- package/lib/loading-spinner/index.js +33 -0
- package/lib/loading-spinner/index.js.map +1 -0
- package/lib/popover/Popover.d.ts +70 -0
- package/lib/popover/Popover.js +223 -0
- package/lib/popover/Popover.js.map +1 -0
- package/lib/popover/index.d.ts +21 -0
- package/lib/popover/index.js +34 -0
- package/lib/popover/index.js.map +1 -0
- package/lib/progress-bar/ProgressBar.d.ts +29 -0
- package/lib/progress-bar/ProgressBar.js +40 -0
- package/lib/progress-bar/ProgressBar.js.map +1 -0
- package/lib/progress-bar/index.d.ts +21 -0
- package/lib/progress-bar/index.js +33 -0
- package/lib/progress-bar/index.js.map +1 -0
- package/lib/radio/Radio.d.ts +39 -0
- package/lib/radio/Radio.js +58 -0
- package/lib/radio/Radio.js.map +1 -0
- package/lib/radio/index.d.ts +21 -0
- package/lib/radio/index.js +33 -0
- package/lib/radio/index.js.map +1 -0
- package/lib/switch/Switch.d.ts +39 -0
- package/lib/switch/Switch.js +59 -0
- package/lib/switch/Switch.js.map +1 -0
- package/lib/switch/index.d.ts +21 -0
- package/lib/switch/index.js +33 -0
- package/lib/switch/index.js.map +1 -0
- package/lib/tabs/Tabs.d.ts +72 -0
- package/lib/tabs/Tabs.js +105 -0
- package/lib/tabs/Tabs.js.map +1 -0
- package/lib/tabs/index.d.ts +21 -0
- package/lib/tabs/index.js +34 -0
- package/lib/tabs/index.js.map +1 -0
- package/lib/tag/Tag.d.ts +61 -0
- package/lib/tag/Tag.js +60 -0
- package/lib/tag/Tag.js.map +1 -0
- package/lib/tag/index.d.ts +21 -0
- package/lib/tag/index.js +33 -0
- package/lib/tag/index.js.map +1 -0
- package/lib/tooltip/Tooltip.d.ts +29 -0
- package/lib/tooltip/Tooltip.js +56 -0
- package/lib/tooltip/Tooltip.js.map +1 -0
- package/lib/tooltip/index.d.ts +21 -0
- package/lib/tooltip/index.js +33 -0
- package/lib/tooltip/index.js.map +1 -0
- package/lib/view-selector/ViewSelector.d.ts +58 -0
- package/lib/view-selector/ViewSelector.js +78 -0
- package/lib/view-selector/ViewSelector.js.map +1 -0
- package/lib/view-selector/index.d.ts +21 -0
- package/lib/view-selector/index.js +34 -0
- package/lib/view-selector/index.js.map +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as Tooltip } from './Tooltip';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
25
|
+
}) : (function(o, m, k, k2) {
|
|
26
|
+
if (k2 === undefined) k2 = k;
|
|
27
|
+
o[k2] = m[k];
|
|
28
|
+
}));
|
|
29
|
+
exports.__esModule = true;
|
|
30
|
+
exports.Tooltip = void 0;
|
|
31
|
+
var Tooltip_1 = require("./Tooltip");
|
|
32
|
+
__createBinding(exports, Tooltip_1, "default", "Tooltip");
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tooltip/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,qCAA+C;AAAtC,0DAAkB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import React from 'react';
|
|
22
|
+
import { ElementBase } from 'helpers';
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* Types
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
declare type ViewSelectorID = string | number;
|
|
31
|
+
export interface ViewSelectorProps<T extends ViewSelectorID> extends ElementBase {
|
|
32
|
+
/** Size of the selector */
|
|
33
|
+
size?: 'small' | 'large';
|
|
34
|
+
/** If selector items will include only icons */
|
|
35
|
+
icons?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* onChange function is more generic to support union type of strings as input
|
|
38
|
+
* to help useState in components that uses Switch group with typesafety
|
|
39
|
+
*/
|
|
40
|
+
onChange: (e: T) => void | ((e: React.SetStateAction<T>) => void);
|
|
41
|
+
/** Currently selected option */
|
|
42
|
+
selected: T;
|
|
43
|
+
children: React.ReactNode | string;
|
|
44
|
+
}
|
|
45
|
+
export declare const ViewSelector: <T extends ViewSelectorID>({ size, icons, children, selected, onChange, as, }: ViewSelectorProps<T>) => JSX.Element;
|
|
46
|
+
export declare const ViewSelectorItem: ({ children, value, as, }: Omit<React.HTMLProps<HTMLElement>, "size" | "as" | "selected" | "onChange"> & {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
* Types
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
as?: string | React.ComponentType<any> | undefined;
|
|
55
|
+
} & {
|
|
56
|
+
value: string;
|
|
57
|
+
}) => JSX.Element;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
30
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
31
|
+
}) : function(o, v) {
|
|
32
|
+
o["default"] = v;
|
|
33
|
+
});
|
|
34
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
35
|
+
if (mod && mod.__esModule) return mod;
|
|
36
|
+
var result = {};
|
|
37
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
38
|
+
__setModuleDefault(result, mod);
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
42
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
43
|
+
};
|
|
44
|
+
exports.__esModule = true;
|
|
45
|
+
exports.ViewSelectorItem = exports.ViewSelector = void 0;
|
|
46
|
+
var react_1 = __importStar(require("react"));
|
|
47
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
48
|
+
var ViewSelectorContext = react_1["default"].createContext(null);
|
|
49
|
+
var useSelectorContext = function () {
|
|
50
|
+
var context = (0, react_1.useContext)(ViewSelectorContext);
|
|
51
|
+
if (context === null) {
|
|
52
|
+
throw new Error('View Selector used without context');
|
|
53
|
+
}
|
|
54
|
+
return context;
|
|
55
|
+
};
|
|
56
|
+
var ViewSelector = function (_a) {
|
|
57
|
+
var _b;
|
|
58
|
+
var _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.icons, icons = _d === void 0 ? false : _d, children = _a.children, selected = _a.selected, onChange = _a.onChange, _e = _a.as, as = _e === void 0 ? 'div' : _e;
|
|
59
|
+
var classes = (0, classnames_1["default"])("ndl-view-selector", (_b = {},
|
|
60
|
+
_b[size] = size,
|
|
61
|
+
_b));
|
|
62
|
+
var Component = as;
|
|
63
|
+
return (react_1["default"].createElement(Component, { className: classes, role: "group" },
|
|
64
|
+
react_1["default"].createElement(ViewSelectorContext.Provider, { value: { onChange: onChange, selected: selected, icons: icons } }, children)));
|
|
65
|
+
};
|
|
66
|
+
exports.ViewSelector = ViewSelector;
|
|
67
|
+
var ViewSelectorItem = function (_a) {
|
|
68
|
+
var children = _a.children, value = _a.value, _b = _a.as, as = _b === void 0 ? 'button' : _b;
|
|
69
|
+
var _c = useSelectorContext(), onChange = _c.onChange, selected = _c.selected, icons = _c.icons;
|
|
70
|
+
var isSelected = value && value === selected;
|
|
71
|
+
var base = (0, classnames_1["default"])("selector-".concat(icons ? 'icon' : 'item'), {
|
|
72
|
+
current: value && value === selected
|
|
73
|
+
});
|
|
74
|
+
var Component = as;
|
|
75
|
+
return (react_1["default"].createElement(Component, { onClick: function () { return !isSelected && onChange(value); }, className: base }, children));
|
|
76
|
+
};
|
|
77
|
+
exports.ViewSelectorItem = ViewSelectorItem;
|
|
78
|
+
//# sourceMappingURL=ViewSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewSelector.js","sourceRoot":"","sources":["../../src/view-selector/ViewSelector.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAA0C;AAC1C,0DAAoC;AAwCpC,IAAM,mBAAmB,GACvB,kBAAK,CAAC,aAAa,CAAkC,IAAI,CAAC,CAAC;AAE7D,IAAM,kBAAkB,GAAG;IACzB,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,mBAAmB,CAAC,CAAC;IAEhD,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACvD;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,IAAM,YAAY,GAAG,UAA2B,EAOhC;;QANrB,YAAc,EAAd,IAAI,mBAAG,OAAO,KAAA,EACd,aAAa,EAAb,KAAK,mBAAG,KAAK,KAAA,EACb,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,UAAU,EAAV,EAAE,mBAAG,KAAK,KAAA;IAEV,IAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,mBAAmB;QAC5C,GAAC,IAAI,IAAG,IAAI;YACZ,CAAC;IAEH,IAAM,SAAS,GAAG,EAAE,CAAC;IAErB,OAAO,CACL,iCAAC,SAAS,IAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO;QACzC,iCAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,QAAQ,UAAA,EAAE,QAAQ,UAAA,EAAE,KAAK,OAAA,EAAE,IAC/D,QAAQ,CACoB,CACrB,CACb,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,YAAY,gBAqBvB;AAEK,IAAM,gBAAgB,GAAG,UAAC,EAMhC;QALC,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,UAAa,EAAb,EAAE,mBAAG,QAAQ,KAAA;IAIP,IAAA,KAAgC,kBAAkB,EAAE,EAAlD,QAAQ,cAAA,EAAE,QAAQ,cAAA,EAAE,KAAK,WAAyB,CAAC;IAE3D,IAAM,UAAU,GAAG,KAAK,IAAI,KAAK,KAAK,QAAQ,CAAC;IAE/C,IAAM,IAAI,GAAG,IAAA,uBAAU,EAAC,mBAAY,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAE,EAAE;QAC7D,OAAO,EAAE,KAAK,IAAI,KAAK,KAAK,QAAQ;KACrC,CAAC,CAAC;IAEH,IAAM,SAAS,GAAG,EAAE,CAAC;IAErB,OAAO,CACL,iCAAC,SAAS,IAAC,OAAO,EAAE,cAAM,OAAA,CAAC,UAAU,IAAI,QAAQ,CAAC,KAAK,CAAC,EAA9B,CAA8B,EAAE,SAAS,EAAE,IAAI,IACtE,QAAQ,CACC,CACb,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,gBAAgB,oBAsB3B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export * from './ViewSelector';
|
|
@@ -0,0 +1,34 @@
|
|
|
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("./ViewSelector"), exports);
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/view-selector/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,iDAA+B"}
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@neo4j-ndl/react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React implementation of Neo4j Design System",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"button",
|
|
7
|
+
"react"
|
|
8
|
+
],
|
|
9
|
+
"author": "Neo4j Inc.",
|
|
10
|
+
"homepage": "",
|
|
11
|
+
"license": "GPL-3.0",
|
|
12
|
+
"main": "./lib/index.js",
|
|
13
|
+
"module": "./lib/index.js",
|
|
14
|
+
"types": "./lib/index.d.ts",
|
|
15
|
+
"directories": {
|
|
16
|
+
"lib": "lib",
|
|
17
|
+
"test": "__tests__"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"lib"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"generate-component": "node ./scripts/component-generator.js",
|
|
27
|
+
"pretest": "yarn run lint",
|
|
28
|
+
"test": "jest",
|
|
29
|
+
"tsc": "tsc",
|
|
30
|
+
"build": "tsc",
|
|
31
|
+
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'",
|
|
32
|
+
"lint": "eslint --ext .jsx,.tsx,.js,.ts src",
|
|
33
|
+
"create-icons": "svgr --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --out-dir ./src/icons/custom -- ../base/src/icons"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@babel/preset-env": "^7.16.4",
|
|
37
|
+
"@babel/preset-react": "^7.16.0",
|
|
38
|
+
"@testing-library/jest-dom": "^5.15.1",
|
|
39
|
+
"@testing-library/react": "^12.1.2",
|
|
40
|
+
"@types/react-dom": "^17.0.11",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
42
|
+
"@typescript-eslint/parser": "^5.5.0",
|
|
43
|
+
"babel-jest": "^27.3.1",
|
|
44
|
+
"eslint": "^8.3.0",
|
|
45
|
+
"eslint-config-prettier": "^8.3.0",
|
|
46
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
47
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
48
|
+
"eslint-plugin-react": "^7.27.1",
|
|
49
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
50
|
+
"jest": "^27.3.1",
|
|
51
|
+
"react": "^17.0.2",
|
|
52
|
+
"ts-jest": "^27.0.7"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react": "17.x"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@heroicons/react": "^1.0.5",
|
|
59
|
+
"@neo4j-ndl/base": "^0.1.0",
|
|
60
|
+
"classnames": "^2.3.1"
|
|
61
|
+
},
|
|
62
|
+
"gitHead": "3684958480b56ac6f3c90a017a08d5a478a2270f"
|
|
63
|
+
}
|