@neo4j-ndl/react 1.7.4 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - dc3ba1c: Implement Widget Component
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [dc3ba1c]
12
+ - @neo4j-ndl/base@1.8.0
13
+
3
14
  ## 1.7.4
4
15
 
5
16
  ### Patch Changes
package/lib/LICENSES.txt CHANGED
@@ -5210,7 +5210,7 @@ MIT License
5210
5210
 
5211
5211
  -----
5212
5212
 
5213
- The following software may be included in this product: @types/jest, @types/jest-axe, @types/node, @types/react, @types/react-dom, @types/react-syntax-highlighter, @types/react-table, @types/tinycolor2. A copy of the source code may be downloaded from https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/jest), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/jest-axe), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/node), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react-dom), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react-syntax-highlighter), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react-table), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/tinycolor2). This software contains the following license and notice below:
5213
+ The following software may be included in this product: @types/jest, @types/jest-axe, @types/node, @types/react, @types/react-dom, @types/react-resizable, @types/react-syntax-highlighter, @types/react-table, @types/tinycolor2. A copy of the source code may be downloaded from https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/jest), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/jest-axe), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/node), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react-dom), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react-resizable), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react-syntax-highlighter), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/react-table), https://github.com/DefinitelyTyped/DefinitelyTyped.git (@types/tinycolor2). This software contains the following license and notice below:
5214
5214
 
5215
5215
  MIT License
5216
5216
 
@@ -12381,6 +12381,32 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12381
12381
 
12382
12382
  -----
12383
12383
 
12384
+ The following software may be included in this product: react-resizable. A copy of the source code may be downloaded from git@github.com:react-grid-layout/react-resizable.git. This software contains the following license and notice below:
12385
+
12386
+ The MIT License (MIT)
12387
+
12388
+ Copyright (c) 2016-2018 Samuel Reed
12389
+
12390
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12391
+ of this software and associated documentation files (the "Software"), to deal
12392
+ in the Software without restriction, including without limitation the rights
12393
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12394
+ copies of the Software, and to permit persons to whom the Software is
12395
+ furnished to do so, subject to the following conditions:
12396
+
12397
+ The above copyright notice and this permission notice shall be included in all
12398
+ copies or substantial portions of the Software.
12399
+
12400
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12401
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12402
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
12403
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
12404
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
12405
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
12406
+ SOFTWARE.
12407
+
12408
+ -----
12409
+
12384
12410
  The following software may be included in this product: react-select-event. A copy of the source code may be downloaded from git+https://github.com/romgain/react-select-event.git. This software contains the following license and notice below:
12385
12411
 
12386
12412
  Copyright 2019 Romain Bertrand
package/lib/NOTICE.txt CHANGED
@@ -118,6 +118,9 @@ Third-party licenses
118
118
  │ ├─ @types/react-dom@npm:17.0.18 (via npm:17.0.18)
119
119
  │ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
120
120
  │ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom
121
+ │ ├─ @types/react-resizable@npm:3.0.4 (via npm:^3.0.4)
122
+ │ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
123
+ │ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-resizable
121
124
  │ ├─ @types/react-syntax-highlighter@npm:15.5.6 (via npm:^15.5.5)
122
125
  │ │ ├─ URL: https://github.com/DefinitelyTyped/DefinitelyTyped.git
123
126
  │ │ └─ VendorUrl: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-syntax-highlighter
@@ -232,6 +235,10 @@ Third-party licenses
232
235
  │ ├─ react-hot-toast@npm:2.4.1 [d75d7] (via npm:^2.3.0 [d75d7])
233
236
  │ │ ├─ URL: git+https://github.com/timolins/react-hot-toast.git
234
237
  │ │ └─ VendorName: Timo Lins
238
+ │ ├─ react-resizable@npm:3.0.5 [d75d7] (via npm:^3.0.5 [d75d7])
239
+ │ │ ├─ URL: git@github.com:react-grid-layout/react-resizable.git
240
+ │ │ ├─ VendorName: Samuel Reed
241
+ │ │ └─ VendorUrl: https://github.com/react-grid-layout/react-resizable
235
242
  │ ├─ react-select@npm:5.7.0 [a2e03] (via npm:5.7.0 [a2e03])
236
243
  │ │ ├─ URL: https://github.com/JedWatson/react-select/tree/master/packages/react-select
237
244
  │ │ └─ VendorName: Jed Watson
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const SvgResizeCorner = (props) => ((0, jsx_runtime_1.jsx)("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: (0, jsx_runtime_1.jsx)("path", { d: "M17 6L17 17L6 17", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })));
5
+ exports.default = SvgResizeCorner;
6
+ //# sourceMappingURL=ResizeCorner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResizeCorner.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/ResizeCorner.tsx"],"names":[],"mappings":";;;AAwBA,MAAM,eAAe,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC1D,8CACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,iCACE,CAAC,EAAC,kBAAkB,EACpB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,GAAG,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,CACP,CAAC;AACF,kBAAe,eAAe,CAAC"}
@@ -23,7 +23,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
23
23
  return (mod && mod.__esModule) ? mod : { "default": mod };
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.VisualizeBloomIcon = exports.UnderlineIcon = exports.TriangleIcon = exports.TextIcon = exports.StatusIcon = exports.SquareIcon = exports.SidebarLineRightIcon = exports.SidebarLineLeftIcon = exports.ShrinkIcon = exports.ScienceMoleculeIcon = exports.RhombusIcon = exports.QueryBrowserIcon = exports.PresentationIcon = exports.PlanViewIcon = exports.PinIcon = exports.NomLevelIcon = exports.ItalicIcon = exports.Hierarchy2Icon = exports.Hierarchy1Icon = exports.Heirarchy2Icon = exports.FolderBookmarkIcon = exports.FitToScreenIcon = exports.ExternalLinkIcon = exports.ExpandIcon = exports.DragIcon = exports.DbmsIcon = exports.DatabaseAddCircleIcon = exports.ConfigureIcon = exports.CollapseExpandIcon = exports.CollapseExpandRightIcon = exports.CollapseExpandLeftIcon = exports.CircleIcon = exports.BoldIcon = exports.AlignTopIcon = exports.AlignCenterIcon = exports.AlignBottomIcon = exports.AddNodeIcon = void 0;
26
+ exports.VisualizeBloomIcon = exports.UnderlineIcon = exports.TriangleIcon = exports.TextIcon = exports.StatusIcon = exports.SquareIcon = exports.SidebarLineRightIcon = exports.SidebarLineLeftIcon = exports.ShrinkIcon = exports.ScienceMoleculeIcon = exports.RhombusIcon = exports.ResizeCornerIcon = exports.QueryBrowserIcon = exports.PresentationIcon = exports.PlanViewIcon = exports.PinIcon = exports.NomLevelIcon = exports.ItalicIcon = exports.Hierarchy2Icon = exports.Hierarchy1Icon = exports.Heirarchy2Icon = exports.FolderBookmarkIcon = exports.FitToScreenIcon = exports.ExternalLinkIcon = exports.ExpandIcon = exports.DragIcon = exports.DbmsIcon = exports.DatabaseAddCircleIcon = exports.ConfigureIcon = exports.CollapseExpandIcon = exports.CollapseExpandRightIcon = exports.CollapseExpandLeftIcon = exports.CircleIcon = exports.BoldIcon = exports.AlignTopIcon = exports.AlignCenterIcon = exports.AlignBottomIcon = exports.AddNodeIcon = void 0;
27
27
  // THIS FILE IS GENERATED BY BUILD TOOL
28
28
  // DO NOT EDIT IT MANUAL
29
29
  var AddNode_1 = require("./AddNode");
@@ -78,6 +78,8 @@ var Presentation_1 = require("./Presentation");
78
78
  Object.defineProperty(exports, "PresentationIcon", { enumerable: true, get: function () { return __importDefault(Presentation_1).default; } });
79
79
  var QueryBrowser_1 = require("./QueryBrowser");
80
80
  Object.defineProperty(exports, "QueryBrowserIcon", { enumerable: true, get: function () { return __importDefault(QueryBrowser_1).default; } });
81
+ var ResizeCorner_1 = require("./ResizeCorner");
82
+ Object.defineProperty(exports, "ResizeCornerIcon", { enumerable: true, get: function () { return __importDefault(ResizeCorner_1).default; } });
81
83
  var Rhombus_1 = require("./Rhombus");
82
84
  Object.defineProperty(exports, "RhombusIcon", { enumerable: true, get: function () { return __importDefault(Rhombus_1).default; } });
83
85
  var ScienceMolecule_1 = require("./ScienceMolecule");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,uCAAuC;AACvC,wBAAwB;AACxB,qCAAmD;AAA1C,uHAAA,OAAO,OAAe;AAC/B,6CAA2D;AAAlD,+HAAA,OAAO,OAAmB;AACnC,6CAA2D;AAAlD,+HAAA,OAAO,OAAmB;AACnC,uCAAqD;AAA5C,yHAAA,OAAO,OAAgB;AAChC,+BAA6C;AAApC,iHAAA,OAAO,OAAY;AAC5B,mCAAiD;AAAxC,qHAAA,OAAO,OAAc;AAC9B,2DAAyE;AAAhE,6IAAA,OAAO,OAA0B;AAC1C,6DAA2E;AAAlE,+IAAA,OAAO,OAA2B;AAC3C,mDAAiE;AAAxD,qIAAA,OAAO,OAAsB;AACtC,yCAAuD;AAA9C,2HAAA,OAAO,OAAiB;AACjC,yDAAuE;AAA9D,2IAAA,OAAO,OAAyB;AACzC,+BAA6C;AAApC,iHAAA,OAAO,OAAY;AAC5B,+BAA6C;AAApC,iHAAA,OAAO,OAAY;AAC5B,mCAAiD;AAAxC,qHAAA,OAAO,OAAc;AAC9B,+CAA6D;AAApD,iIAAA,OAAO,OAAoB;AACpC,6CAA2D;AAAlD,+HAAA,OAAO,OAAmB;AACnC,mDAAiE;AAAxD,qIAAA,OAAO,OAAsB;AACtC,2CAAyD;AAAhD,6HAAA,OAAO,OAAkB;AAClC,2CAAyD;AAAhD,6HAAA,OAAO,OAAkB;AAClC,2CAAyD;AAAhD,6HAAA,OAAO,OAAkB;AAClC,mCAAiD;AAA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-57,6 +57,7 @@ __exportStar(require("./textarea"), exports);
57
57
  __exportStar(require("./text-link"), exports);
58
58
  __exportStar(require("./dropdown"), exports);
59
59
  __exportStar(require("./tag"), exports);
60
+ __exportStar(require("./widget"), exports);
60
61
  __exportStar(require("./wizard"), exports);
61
62
  __exportStar(require("./graph-label"), exports);
62
63
  __exportStar(require("./code-block"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,iDAA+B;AAC/B,2CAAyB;AACzB,0CAAwB;AACxB,oDAAkC;AAClC,yCAAuB;AACvB,kDAAgC;AAChC,4CAA0B;AAC1B,iDAA+B;AAC/B,qDAAmC;AACnC,0CAAwB;AACxB,kDAAgC;AAChC,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,wCAAsB;AACtB,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,sDAAoC;AACpC,qDAAmC;AACnC,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,iDAA+B;AAC/B,2CAAyB;AACzB,0CAAwB;AACxB,oDAAkC;AAClC,yCAAuB;AACvB,kDAAgC;AAChC,4CAA0B;AAC1B,iDAA+B;AAC/B,qDAAmC;AACnC,0CAAwB;AACxB,kDAAgC;AAChC,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,sDAAoC;AACpC,qDAAmC;AACnC,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ const jsx_runtime_1 = require("react/jsx-runtime");
18
+ /**
19
+ *
20
+ * Copyright (c) "Neo4j"
21
+ * Neo4j Sweden AB [http://neo4j.com]
22
+ *
23
+ * This file is part of Neo4j.
24
+ *
25
+ * Neo4j is free software: you can redistribute it and/or modify
26
+ * it under the terms of the GNU General Public License as published by
27
+ * the Free Software Foundation, either version 3 of the License, or
28
+ * (at your option) any later version.
29
+ *
30
+ * This program is distributed in the hope that it will be useful,
31
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
32
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33
+ * GNU General Public License for more details.
34
+ *
35
+ * You should have received a copy of the GNU General Public License
36
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
37
+ */
38
+ const react_1 = require("react");
39
+ const classnames_1 = __importDefault(require("classnames"));
40
+ const ResizeCorner_1 = __importDefault(require("../icons/generated/custom/ResizeCorner"));
41
+ /**
42
+ *
43
+ *
44
+ * Widget Component
45
+ *
46
+ *
47
+ */
48
+ const Widget = (0, react_1.forwardRef)(function Widget(_a, ref) {
49
+ var _b;
50
+ var { header, subheader, leftMenu, rightMenu, isElevated = false, isResizeable = false, resizeableProps, children, className } = _a, props = __rest(_a, ["header", "subheader", "leftMenu", "rightMenu", "isElevated", "isResizeable", "resizeableProps", "children", "className"]);
51
+ const classes = (0, classnames_1.default)('ndl-widget', {
52
+ 'ndl-leftmenu': leftMenu,
53
+ 'ndl-elevated': isElevated,
54
+ className,
55
+ });
56
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: classes, ref: ref }, props, { children: [(0, jsx_runtime_1.jsxs)("header", Object.assign({ className: "ndl-header-wrapper" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "ndl-header-left" }, { children: [leftMenu, (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "ndl-headers" }, { children: [(0, jsx_runtime_1.jsx)("h6", { children: header }), (0, jsx_runtime_1.jsx)("p", { children: subheader })] }))] })), rightMenu] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ndl-widget-content n-flex-grow" }, { children: children })), isResizeable && ((0, jsx_runtime_1.jsx)("button", Object.assign({}, resizeableProps, { "aria-label": "Resizing handle", className: `ndl-resize-handle ${(_b = resizeableProps === null || resizeableProps === void 0 ? void 0 : resizeableProps.className) !== null && _b !== void 0 ? _b : ''}` }, { children: (0, jsx_runtime_1.jsx)(ResizeCorner_1.default, {}) })))] })));
57
+ });
58
+ exports.default = Widget;
59
+ //# sourceMappingURL=Widget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Widget.js","sourceRoot":"","sources":["../../../src/widget/Widget.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAwD;AACxD,4DAAoC;AACpC,0FAAqF;AAiCrF;;;;;;GAMG;AAEH,MAAM,MAAM,GAAG,IAAA,kBAAU,EAAC,SAAS,MAAM,CACvC,EAWc,EACd,GAAiC;;QAZjC,EACE,MAAM,EACN,SAAS,EACT,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,YAAY,GAAG,KAAK,EACpB,eAAe,EACf,QAAQ,EACR,SAAS,OAEG,EADT,KAAK,cAVV,0HAWC,CADS;IAIV,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,YAAY,EAAE;QACvC,cAAc,EAAE,QAAQ;QACxB,cAAc,EAAE,UAAU;QAC1B,SAAS;KACV,CAAC,CAAC;IAEH,OAAO,CACL,+CAAK,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAAM,KAAK,eAC1C,kDAAQ,SAAS,EAAC,oBAAoB,iBACpC,+CAAK,SAAS,EAAC,iBAAiB,iBAC7B,QAAQ,EACT,+CAAK,SAAS,EAAC,aAAa,iBAC1B,yCAAK,MAAM,GAAM,EACjB,wCAAI,SAAS,GAAK,KACd,KACF,EACL,SAAS,KACH,EACT,8CAAK,SAAS,EAAC,gCAAgC,gBAAE,QAAQ,IAAO,EAC/D,YAAY,IAAI,CACf,mDACM,eAAe,kBACR,iBAAiB,EAC5B,SAAS,EAAE,qBAAqB,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,SAAS,mCAAI,EAAE,EAAE,gBAElE,uBAAC,sBAAgB,KAAG,IACb,CACV,KACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,MAAM,CAAC"}
@@ -0,0 +1,29 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Widget = void 0;
27
+ var Widget_1 = require("./Widget");
28
+ Object.defineProperty(exports, "Widget", { enumerable: true, get: function () { return __importDefault(Widget_1).default; } });
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/widget/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,mCAA6C;AAApC,iHAAA,OAAO,OAAU"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const SvgResizeCorner = (props) => (_jsx("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: _jsx("path", { d: "M17 6L17 17L6 17", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })));
3
+ export default SvgResizeCorner;
4
+ //# sourceMappingURL=ResizeCorner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResizeCorner.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/ResizeCorner.tsx"],"names":[],"mappings":";AAwBA,MAAM,eAAe,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CAC1D,4BACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,cAET,eACE,CAAC,EAAC,kBAAkB,EACpB,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,GAAG,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACE,CACP,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -46,6 +46,7 @@ export { default as PinIcon } from './Pin';
46
46
  export { default as PlanViewIcon } from './PlanView';
47
47
  export { default as PresentationIcon } from './Presentation';
48
48
  export { default as QueryBrowserIcon } from './QueryBrowser';
49
+ export { default as ResizeCornerIcon } from './ResizeCorner';
49
50
  export { default as RhombusIcon } from './Rhombus';
50
51
  export { default as ScienceMoleculeIcon } from './ScienceMolecule';
51
52
  export { default as ShrinkIcon } from './Shrink';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/icons/generated/custom/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,uCAAuC;AACvC,wBAAwB;AACxB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,qBAAq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mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
package/lib/esm/index.js CHANGED
@@ -41,6 +41,7 @@ export * from './textarea';
41
41
  export * from './text-link';
42
42
  export * from './dropdown';
43
43
  export * from './tag';
44
+ export * from './widget';
44
45
  export * from './wizard';
45
46
  export * from './graph-label';
46
47
  export * from './code-block';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC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+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ /**
14
+ *
15
+ * Copyright (c) "Neo4j"
16
+ * Neo4j Sweden AB [http://neo4j.com]
17
+ *
18
+ * This file is part of Neo4j.
19
+ *
20
+ * Neo4j is free software: you can redistribute it and/or modify
21
+ * it under the terms of the GNU General Public License as published by
22
+ * the Free Software Foundation, either version 3 of the License, or
23
+ * (at your option) any later version.
24
+ *
25
+ * This program is distributed in the hope that it will be useful,
26
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ * GNU General Public License for more details.
29
+ *
30
+ * You should have received a copy of the GNU General Public License
31
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
32
+ */
33
+ import { forwardRef } from 'react';
34
+ import classnames from 'classnames';
35
+ import { default as ResizeCornerIcon } from '../icons/generated/custom/ResizeCorner';
36
+ /**
37
+ *
38
+ *
39
+ * Widget Component
40
+ *
41
+ *
42
+ */
43
+ const Widget = forwardRef(function Widget(_a, ref) {
44
+ var _b;
45
+ var { header, subheader, leftMenu, rightMenu, isElevated = false, isResizeable = false, resizeableProps, children, className } = _a, props = __rest(_a, ["header", "subheader", "leftMenu", "rightMenu", "isElevated", "isResizeable", "resizeableProps", "children", "className"]);
46
+ const classes = classnames('ndl-widget', {
47
+ 'ndl-leftmenu': leftMenu,
48
+ 'ndl-elevated': isElevated,
49
+ className,
50
+ });
51
+ return (_jsxs("div", Object.assign({ className: classes, ref: ref }, props, { children: [_jsxs("header", Object.assign({ className: "ndl-header-wrapper" }, { children: [_jsxs("div", Object.assign({ className: "ndl-header-left" }, { children: [leftMenu, _jsxs("div", Object.assign({ className: "ndl-headers" }, { children: [_jsx("h6", { children: header }), _jsx("p", { children: subheader })] }))] })), rightMenu] })), _jsx("div", Object.assign({ className: "ndl-widget-content n-flex-grow" }, { children: children })), isResizeable && (_jsx("button", Object.assign({}, resizeableProps, { "aria-label": "Resizing handle", className: `ndl-resize-handle ${(_b = resizeableProps === null || resizeableProps === void 0 ? void 0 : resizeableProps.className) !== null && _b !== void 0 ? _b : ''}` }, { children: _jsx(ResizeCornerIcon, {}) })))] })));
52
+ });
53
+ export default Widget;
54
+ //# sourceMappingURL=Widget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Widget.js","sourceRoot":"","sources":["../../../src/widget/Widget.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAc,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAiCrF;;;;;;GAMG;AAEH,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,MAAM,CACvC,EAWc,EACd,GAAiC;;QAZjC,EACE,MAAM,EACN,SAAS,EACT,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,YAAY,GAAG,KAAK,EACpB,eAAe,EACf,QAAQ,EACR,SAAS,OAEG,EADT,KAAK,cAVV,0HAWC,CADS;IAIV,MAAM,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE;QACvC,cAAc,EAAE,QAAQ;QACxB,cAAc,EAAE,UAAU;QAC1B,SAAS;KACV,CAAC,CAAC;IAEH,OAAO,CACL,6BAAK,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAAM,KAAK,eAC1C,gCAAQ,SAAS,EAAC,oBAAoB,iBACpC,6BAAK,SAAS,EAAC,iBAAiB,iBAC7B,QAAQ,EACT,6BAAK,SAAS,EAAC,aAAa,iBAC1B,uBAAK,MAAM,GAAM,EACjB,sBAAI,SAAS,GAAK,KACd,KACF,EACL,SAAS,KACH,EACT,4BAAK,SAAS,EAAC,gCAAgC,gBAAE,QAAQ,IAAO,EAC/D,YAAY,IAAI,CACf,iCACM,eAAe,kBACR,iBAAiB,EAC5B,SAAS,EAAE,qBAAqB,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,SAAS,mCAAI,EAAE,EAAE,gBAElE,KAAC,gBAAgB,KAAG,IACb,CACV,KACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,22 @@
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 Widget } from './Widget';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/widget/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import { SVGProps } from 'react';
22
+ declare const SvgResizeCorner: (props: SVGProps<SVGSVGElement>) => JSX.Element;
23
+ export default SvgResizeCorner;
@@ -44,6 +44,7 @@ export { default as PinIcon } from './Pin';
44
44
  export { default as PlanViewIcon } from './PlanView';
45
45
  export { default as PresentationIcon } from './Presentation';
46
46
  export { default as QueryBrowserIcon } from './QueryBrowser';
47
+ export { default as ResizeCornerIcon } from './ResizeCorner';
47
48
  export { default as RhombusIcon } from './Rhombus';
48
49
  export { default as ScienceMoleculeIcon } from './ScienceMolecule';
49
50
  export { default as ShrinkIcon } from './Shrink';
@@ -41,6 +41,7 @@ export * from './textarea';
41
41
  export * from './text-link';
42
42
  export * from './dropdown';
43
43
  export * from './tag';
44
+ export * from './widget';
44
45
  export * from './wizard';
45
46
  export * from './graph-label';
46
47
  export * from './code-block';
@@ -0,0 +1,52 @@
1
+ /**
2
+ *
3
+ * Copyright (c) "Neo4j"
4
+ * Neo4j Sweden AB [http://neo4j.com]
5
+ *
6
+ * This file is part of Neo4j.
7
+ *
8
+ * Neo4j is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+ import React from 'react';
22
+ /**
23
+ *
24
+ *
25
+ * Types
26
+ *
27
+ *
28
+ */
29
+ declare type CommonProps = {
30
+ header: React.ReactNode;
31
+ subheader?: React.ReactNode;
32
+ leftMenu?: React.ReactNode;
33
+ rightMenu?: React.ReactNode;
34
+ isElevated?: boolean;
35
+ children: React.ReactNode;
36
+ className?: string;
37
+ };
38
+ /**
39
+ *
40
+ *
41
+ * Widget Component
42
+ *
43
+ *
44
+ */
45
+ declare const Widget: React.ForwardRefExoticComponent<(Omit<CommonProps & {
46
+ isResizeable?: false | undefined;
47
+ resizeableProps?: undefined;
48
+ } & React.HTMLProps<HTMLDivElement>, "ref"> | Omit<CommonProps & {
49
+ isResizeable: true;
50
+ resizeableProps?: React.ButtonHTMLAttributes<HTMLButtonElement> | undefined;
51
+ } & React.HTMLProps<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>;
52
+ export default Widget;
@@ -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 Widget } from './Widget';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "1.7.4",
3
+ "version": "1.8.0",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -92,7 +92,7 @@
92
92
  "@floating-ui/react": "^0.24.2",
93
93
  "@heroicons/react": "2.0.13",
94
94
  "@neo4j-cypher/react-codemirror": "^1.0.1",
95
- "@neo4j-ndl/base": "^1.7.3",
95
+ "@neo4j-ndl/base": "^1.8.0",
96
96
  "@tanstack/react-table": "^8.5.22",
97
97
  "classnames": "^2.3.1",
98
98
  "detect-browser": "^5.3.0",