@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,223 @@
|
|
|
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, _e = _a.className, className = _e === void 0 ? '' : _e, _f = _a.nested, nested = _f === void 0 ? false : _f, 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 _g = (0, react_1.useState)(false), enter = _g[0], setEnter = _g[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
|
+
return (react_1["default"].createElement(Portal, { container: document.body },
|
|
216
|
+
react_1["default"].createElement("div", { className: "ndl-popover-backdrop", role: "button", tabIndex: 0, onClick: handleBackdropClick, onKeyDown: handleBackdropClick, "data-testid": "popover-backdrop" }),
|
|
217
|
+
react_1["default"].createElement(Component, __assign({ tabIndex: -1 }, rest, { className: "ndl-popover ".concat(base, " ").concat(className), ref: popoverRef, "data-testid": "popover-content" }), children)));
|
|
218
|
+
});
|
|
219
|
+
var Portal = function (_a) {
|
|
220
|
+
var children = _a.children, container = _a.container;
|
|
221
|
+
return ReactDOM.createPortal(children, container);
|
|
222
|
+
};
|
|
223
|
+
//# sourceMappingURL=Popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../src/popover/Popover.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6CAOe;AACf,kDAAsC;AACtC,0DAA4B;AAC5B,sCAAsC;AAetC,IAAM,gBAAgB,GAAG,UAAC,GAAa;IACrC,iFAAiF;IACjF,IAAM,aAAa,GAAG,GAAG,CAAC,eAAe,CAAC,WAAW,CAAC;IACtD,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,GAAG,aAAa,CAAC,CAAC;AACrD,CAAC,CAAC;AAEF,IAAM,eAAe,GAAG,UAAC,OAAgB;IACvC,OAAA,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC;AAAhE,CAAgE,CAAC;AAEnE,IAAM,YAAY,GAAG,UAAC,IAAa,EAAE,QAAkB;IACrD,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,IAAI,QAAQ,KAAK,QAAQ,EAAE;QACzB,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;KACtB;IAED,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AC,CAAC;IAE3C,IAAM,mBAAmB,GAAG,UAC1B,KAAuE;QAEvE,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,KAAK,CAAC,cAAc,EAAE,CAAC;QAEvB,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,iCAAC,MAAM,IAAC,SAAS,EAAE,QAAQ,CAAC,IAAI;QAE9B,0CACE,SAAS,EAAC,sBAAsB,EAChC,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,mBAAmB,iBAClB,kBAAkB,GAC9B;QACF,iCAAC,SAAS,aACR,QAAQ,EAAE,CAAC,CAAC,IACR,IAAI,IACR,SAAS,EAAE,sBAAe,IAAI,cAAI,SAAS,CAAE,EAC7C,GAAG,EAAE,UAAU,iBACH,iBAAiB,KAE5B,QAAQ,CACC,CACL,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAMH,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"}
|
|
@@ -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 './Popover';
|
|
@@ -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("./Popover"), exports);
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/popover/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;AAEH,4CAA0B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}
|
|
28
|
+
declare const ProgressBar: ({ heading, estimatedTime, value, barSize, }: ProgressBarProps) => JSX.Element;
|
|
29
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
exports.__esModule = true;
|
|
26
|
+
var react_1 = __importDefault(require("react"));
|
|
27
|
+
var ProgressBar = function (_a) {
|
|
28
|
+
var heading = _a.heading, estimatedTime = _a.estimatedTime, value = _a.value, _b = _a.barSize, barSize = _b === void 0 ? 'small' : _b;
|
|
29
|
+
return (react_1["default"].createElement("div", { className: "ndl-progress-bar-wrapper ".concat(barSize) },
|
|
30
|
+
react_1["default"].createElement("div", { className: "header" },
|
|
31
|
+
react_1["default"].createElement("span", { className: "heading" }, heading),
|
|
32
|
+
react_1["default"].createElement("span", { className: "progress-number" }, value + '%')),
|
|
33
|
+
react_1["default"].createElement("div", { className: "progress-bar-container", role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": value },
|
|
34
|
+
react_1["default"].createElement("div", { className: "progress-bar", style: { width: value + '%' } })),
|
|
35
|
+
estimatedTime && (react_1["default"].createElement("div", { className: "details" },
|
|
36
|
+
react_1["default"].createElement("span", { className: "estimated-time-heading" }, "Estimated time:"),
|
|
37
|
+
react_1["default"].createElement("span", { className: "estimated-time" }, estimatedTime)))));
|
|
38
|
+
};
|
|
39
|
+
exports["default"] = ProgressBar;
|
|
40
|
+
//# sourceMappingURL=ProgressBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../src/progress-bar/ProgressBar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;AAEH,gDAA0B;AAS1B,IAAM,WAAW,GAAG,UAAC,EAKF;QAJjB,OAAO,aAAA,EACP,aAAa,mBAAA,EACb,KAAK,WAAA,EACL,eAAiB,EAAjB,OAAO,mBAAG,OAAO,KAAA;IACK,OAAA,CACtB,0CAAK,SAAS,EAAE,mCAA4B,OAAO,CAAE;QACnD,0CAAK,SAAS,EAAC,QAAQ;YACrB,2CAAM,SAAS,EAAC,SAAS,IAAE,OAAO,CAAQ;YAC1C,2CAAM,SAAS,EAAC,iBAAiB,IAAE,KAAK,GAAG,GAAG,CAAQ,CAClD;QACN,0CACE,SAAS,EAAC,wBAAwB,EAClC,IAAI,EAAC,aAAa,mBACH,CAAC,mBACD,GAAG,mBACH,KAAK;YAEpB,0CAAK,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,GAAG,GAAG,EAAE,GAAI,CAC3D;QACL,aAAa,IAAI,CAChB,0CAAK,SAAS,EAAC,SAAS;YACtB,2CAAM,SAAS,EAAC,wBAAwB,sBAAuB;YAC/D,2CAAM,SAAS,EAAC,gBAAgB,IAAE,aAAa,CAAQ,CACnD,CACP,CACG,CACP;AAtBuB,CAsBvB,CAAC;AAEF,qBAAe,WAAW,CAAC"}
|
|
@@ -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 ProgressBar } from './ProgressBar';
|
|
@@ -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.ProgressBar = void 0;
|
|
31
|
+
var ProgressBar_1 = require("./ProgressBar");
|
|
32
|
+
__createBinding(exports, ProgressBar_1, "default", "ProgressBar");
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/progress-bar/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,6CAAuD;AAA9C,kEAAsB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
22
|
+
import { InputProps } from '../input/Input';
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* Helpers
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/** Add any helper functions here. */
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
* Radio Component
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
declare const Radio: (props: InputProps) => JSX.Element;
|
|
39
|
+
export default Radio;
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
* Radio Component
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
var Radio = function (props) {
|
|
55
|
+
return react_1["default"].createElement(input_1.Input, __assign({}, props, { type: "radio", role: "radio" }));
|
|
56
|
+
};
|
|
57
|
+
exports["default"] = Radio;
|
|
58
|
+
//# sourceMappingURL=Radio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../src/radio/Radio.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,gDAA0B;AAC1B,kCAAiC;AAGjC;;;;;;GAMG;AAEH,qCAAqC;AAErC;;;;;;GAMG;AAEH,IAAM,KAAK,GAAG,UAAC,KAAiB;IAC9B,OAAO,iCAAC,aAAK,eAAK,KAAK,IAAE,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,IAAG,CAAC;AACxD,CAAC,CAAC;AAEF,qBAAe,KAAK,CAAC"}
|
|
@@ -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 Radio } from './Radio';
|
|
@@ -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.Radio = void 0;
|
|
31
|
+
var Radio_1 = require("./Radio");
|
|
32
|
+
__createBinding(exports, Radio_1, "default", "Radio");
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/radio/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;AAEH,iCAA2C;AAAlC,sDAAgB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { InputProps } from '../input/Input';
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* Helpers
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/** Add any helper functions here. */
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
* Switch Component
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
declare const Switch: React.ForwardRefExoticComponent<Pick<InputProps, "size" | "className" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "list" | "children" | "role" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "width" | "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" | "enterKeyHint" | "fluid" | "labelBefore"> & React.RefAttributes<HTMLInputElement>>;
|
|
39
|
+
export default Switch;
|