@neo4j-ndl/react 2.1.1 → 2.3.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/lib/NOTICE.txt +1 -1
  3. package/lib/cjs/breadcrumbs/Breadcrumbs.js +183 -0
  4. package/lib/cjs/breadcrumbs/Breadcrumbs.js.map +1 -0
  5. package/lib/cjs/breadcrumbs/index.js +38 -0
  6. package/lib/cjs/breadcrumbs/index.js.map +1 -0
  7. package/lib/cjs/index.js +3 -0
  8. package/lib/cjs/index.js.map +1 -1
  9. package/lib/cjs/layout/Box.js +56 -0
  10. package/lib/cjs/layout/Box.js.map +1 -0
  11. package/lib/cjs/layout/Flex.js +64 -0
  12. package/lib/cjs/layout/Flex.js.map +1 -0
  13. package/lib/cjs/layout/index.js +39 -0
  14. package/lib/cjs/layout/index.js.map +1 -0
  15. package/lib/cjs/layout/types.js +49 -0
  16. package/lib/cjs/layout/types.js.map +1 -0
  17. package/lib/esm/breadcrumbs/Breadcrumbs.js +180 -0
  18. package/lib/esm/breadcrumbs/Breadcrumbs.js.map +1 -0
  19. package/lib/esm/breadcrumbs/index.js +22 -0
  20. package/lib/esm/breadcrumbs/index.js.map +1 -0
  21. package/lib/esm/index.js +3 -0
  22. package/lib/esm/index.js.map +1 -1
  23. package/lib/esm/layout/Box.js +53 -0
  24. package/lib/esm/layout/Box.js.map +1 -0
  25. package/lib/esm/layout/Flex.js +61 -0
  26. package/lib/esm/layout/Flex.js.map +1 -0
  27. package/lib/esm/layout/index.js +23 -0
  28. package/lib/esm/layout/index.js.map +1 -0
  29. package/lib/esm/layout/types.js +44 -0
  30. package/lib/esm/layout/types.js.map +1 -0
  31. package/lib/types/breadcrumbs/Breadcrumbs.d.ts +98 -0
  32. package/lib/types/breadcrumbs/index.d.ts +21 -0
  33. package/lib/types/index.d.ts +3 -0
  34. package/lib/types/layout/Box.d.ts +66 -0
  35. package/lib/types/layout/Flex.d.ts +80 -0
  36. package/lib/types/layout/index.d.ts +22 -0
  37. package/lib/types/layout/types.d.ts +48 -0
  38. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#699](https://github.com/neo4j/neo4j-design/pull/699) [`a990957`](https://github.com/neo4j/neo4j-design/commit/a990957ce60463ce781f02b97bfea482bfa07b8c) Thanks [@basickarl](https://github.com/basickarl)! - New breadcrumbs component
8
+
9
+ ### Patch Changes
10
+
11
+ - [#714](https://github.com/neo4j/neo4j-design/pull/714) [`ea1c470`](https://github.com/neo4j/neo4j-design/commit/ea1c4706407b9162e8d42dbe02a019d7fd482240) Thanks [@konsalex](https://github.com/konsalex)! - export layout comps and hooks
12
+
13
+ - Updated dependencies [[`8b8b478`](https://github.com/neo4j/neo4j-design/commit/8b8b478a2d5af2112b88444f69098ee16a0266a7), [`a990957`](https://github.com/neo4j/neo4j-design/commit/a990957ce60463ce781f02b97bfea482bfa07b8c)]:
14
+ - @neo4j-ndl/base@2.3.0
15
+
16
+ ## 2.2.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [#700](https://github.com/neo4j/neo4j-design/pull/700) [`3f2bb49`](https://github.com/neo4j/neo4j-design/commit/3f2bb49a3fe8480d2b1c709af76e90d9b6c3fd72) Thanks [@konsalex](https://github.com/konsalex)! - new layout components, that incorporate design tokens
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [[`3f2bb49`](https://github.com/neo4j/neo4j-design/commit/3f2bb49a3fe8480d2b1c709af76e90d9b6c3fd72)]:
25
+ - @neo4j-ndl/base@2.2.0
26
+
3
27
  ## 2.1.1
4
28
 
5
29
  ### Patch Changes
package/lib/NOTICE.txt CHANGED
@@ -338,7 +338,7 @@ Third-party licenses
338
338
  │ │ ├─ URL: git://github.com/amzn/style-dictionary.git
339
339
  │ │ ├─ VendorName: Amazon
340
340
  │ │ └─ VendorUrl: https://github.com/amzn/style-dictionary
341
- │ └─ typescript@patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=bda367 (via patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>)
341
+ │ └─ typescript@patch:typescript@npm%3A5.1.6#optional!builtin<compat/typescript>::version=5.1.6&hash=5da071 (via patch:typescript@npm%3A5.1.6#optional!builtin<compat/typescript>)
342
342
  │ ├─ URL: https://github.com/Microsoft/TypeScript.git
343
343
  │ ├─ VendorName: Microsoft Corp.
344
344
  │ └─ VendorUrl: https://www.typescriptlang.org/
@@ -0,0 +1,183 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Breadcrumbs = void 0;
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ /**
17
+ *
18
+ * Copyright (c) "Neo4j"
19
+ * Neo4j Sweden AB [http://neo4j.com]
20
+ *
21
+ * This file is part of Neo4j.
22
+ *
23
+ * Neo4j is free software: you can redistribute it and/or modify
24
+ * it under the terms of the GNU General Public License as published by
25
+ * the Free Software Foundation, either version 3 of the License, or
26
+ * (at your option) any later version.
27
+ *
28
+ * This program is distributed in the hope that it will be useful,
29
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
30
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31
+ * GNU General Public License for more details.
32
+ *
33
+ * You should have received a copy of the GNU General Public License
34
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
35
+ */
36
+ // NPM
37
+ const context_menu_1 = require("../context-menu");
38
+ const button_1 = require("../button");
39
+ const react_1 = require("react");
40
+ // Local
41
+ const defaultImports_1 = require("../_common/defaultImports");
42
+ const icons_1 = require("../icons");
43
+ const typography_1 = require("../typography");
44
+ const BreadcrumbsBaseItem = (_a) => {
45
+ var { as = 'a', children = (0, jsx_runtime_1.jsx)(icons_1.HomeIconOutline, {}), className, href, isCurrentPage = false, onClick } = _a, restProps = __rest(_a, ["as", "children", "className", "href", "isCurrentPage", "onClick"]);
46
+ const Component = as;
47
+ const classes = (0, defaultImports_1.classNames)('ndl-breadcrumbs-base-item-link', className, {
48
+ 'ndl-breadcrumbs-base-item-link-active': isCurrentPage,
49
+ });
50
+ return ((0, jsx_runtime_1.jsx)("li", { className: "ndl-breadcrumbs-base-item", children: (0, jsx_runtime_1.jsx)(Component
51
+ /* Overridable */
52
+ , Object.assign({
53
+ /* Overridable */
54
+ role: "button", tabIndex: 0 }, restProps, {
55
+ /* Non-overridable */
56
+ className: classes, href: href, onClick: (event) => {
57
+ if (onClick)
58
+ onClick(event, href);
59
+ }, children: children })) }));
60
+ };
61
+ BreadcrumbsBaseItem.displayName = 'Breadcrumbs.BaseItem';
62
+ const BreadcrumbsGroupItem = (_a) => {
63
+ var { as = 'li', children, className } = _a, restProps = __rest(_a, ["as", "children", "className"]);
64
+ const Component = as;
65
+ const classes = (0, defaultImports_1.classNames)('ndl-breadcrumbs-group-item', className);
66
+ return ((0, jsx_runtime_1.jsx)(Component
67
+ /* Overridable */
68
+ , Object.assign({}, restProps, {
69
+ /* Non-overridable */
70
+ className: classes, children: (0, jsx_runtime_1.jsx)("ol", { children: children }) })));
71
+ };
72
+ BreadcrumbsGroupItem.displayName = 'Breadcrumbs.GroupItem';
73
+ const BreadcrumbsItem = (_a) => {
74
+ var { as = 'a', children, className, hasSeparator = true, href, isCurrentPage = false, onClick } = _a, restProps = __rest(_a, ["as", "children", "className", "hasSeparator", "href", "isCurrentPage", "onClick"]);
75
+ const listItemClasses = (0, defaultImports_1.classNames)('ndl-breadcrumbs-item', {
76
+ 'ndl-breadcrumbs-separator': hasSeparator,
77
+ });
78
+ const linkClasses = (0, defaultImports_1.classNames)('ndl-breadcrumbs-item-link', {
79
+ 'ndl-breadcrumbs-item-link-active': isCurrentPage,
80
+ }, className);
81
+ return ((0, jsx_runtime_1.jsx)("li", { className: listItemClasses, children: (0, jsx_runtime_1.jsx)(typography_1.Typography
82
+ /* Overridable */
83
+ , Object.assign({ "aria-current": isCurrentPage ? 'page' : undefined, as: as, role: "button", tabIndex: 0, variant: "body-medium" }, restProps, {
84
+ /* Non-overridable */
85
+ className: linkClasses, href: href, onClick: (event) => {
86
+ if (onClick)
87
+ onClick(event, href);
88
+ }, children: children })) }));
89
+ };
90
+ BreadcrumbsItem.displayName = 'Breadcrumbs.Item';
91
+ const BreadcrumbsItemMenu = (_a) => {
92
+ var { children, className, isOpen = false, onClick, onClose } = _a, restProps = __rest(_a, ["children", "className", "isOpen", "onClick", "onClose"]);
93
+ const buttonRef = (0, react_1.useRef)(null);
94
+ const [isItemMenuOpen, setIsItemMenuOpen] = (0, react_1.useState)(isOpen);
95
+ const classes = (0, defaultImports_1.classNames)('ndl-breadcrumbs-item-menu-button', className);
96
+ return ((0, jsx_runtime_1.jsxs)("li", { className: "ndl-breadcrumbs-item-menu", children: [(0, jsx_runtime_1.jsx)(button_1.IconButton
97
+ /* Overridable */
98
+ , Object.assign({ "aria-haspopup": "true", "aria-label": "breadcrumbs item menu", clean: true, grouped: true, size: "small" }, restProps, {
99
+ /* Non-overridable */
100
+ className: classes, onClick: (event) => {
101
+ setIsItemMenuOpen(true);
102
+ if (onClick)
103
+ onClick(event);
104
+ }, ref: buttonRef, children: (0, jsx_runtime_1.jsx)(icons_1.ChevronDownIconOutline, {}) })), (0, jsx_runtime_1.jsx)(context_menu_1.Menu, { anchorEl: buttonRef, anchorOrigin: {
105
+ vertical: 'bottom',
106
+ horizontal: 'center',
107
+ }, captureFocus: true, onClose: (event) => {
108
+ setIsItemMenuOpen(false);
109
+ if (onClose)
110
+ onClose(event);
111
+ }, open: isItemMenuOpen, transformOrigin: { vertical: 'top', horizontal: 'left' }, children: (0, jsx_runtime_1.jsx)(context_menu_1.Menu.Items, { children: children }) })] }));
112
+ };
113
+ BreadcrumbsItemMenu.displayName = 'Breadcrumbs.ItemMenu';
114
+ const BreadcrumbsEllipsisMenu = (_a) => {
115
+ var { as = 'span', children, className, isOpen = false, onClick, onClose, onKeyDown } = _a, restProps = __rest(_a, ["as", "children", "className", "isOpen", "onClick", "onClose", "onKeyDown"]);
116
+ const ellipsisButtonRef = (0, react_1.useRef)(null);
117
+ const ellipsisMenuRef = (0, react_1.useRef)(null);
118
+ const [isEllipsisMenuOpen, setIsEllipsisMenuOpen] = (0, react_1.useState)(isOpen);
119
+ const Component = as;
120
+ const classes = (0, defaultImports_1.classNames)('ndl-breadcrumbs-ellipsis-menu-button', className);
121
+ return ((0, jsx_runtime_1.jsxs)("li", { className: "ndl-breadcrumbs-ellipsis-menu ndl-breadcrumbs-separator", children: [(0, jsx_runtime_1.jsx)(Component
122
+ /* Overridable */
123
+ , Object.assign({ "aria-controls": isEllipsisMenuOpen ? 'ellipsis-menu' : undefined, "aria-expanded": isEllipsisMenuOpen ? 'true' : undefined, "aria-haspopup": "true", role: "button", tabIndex: 0 }, restProps, {
124
+ /* Non-overridable */
125
+ className: classes, onClick: (event) => {
126
+ setIsEllipsisMenuOpen(true);
127
+ if (onClick)
128
+ onClick(event);
129
+ }, onKeyDown: (event) => {
130
+ if (event.key === 'Enter')
131
+ setIsEllipsisMenuOpen(true);
132
+ if (onKeyDown)
133
+ onKeyDown(event);
134
+ }, ref: ellipsisButtonRef, children: "\u2026" })), (0, jsx_runtime_1.jsx)(context_menu_1.Menu, { anchorEl: ellipsisButtonRef, captureFocus: true, onClose: (event) => {
135
+ setIsEllipsisMenuOpen(false);
136
+ if (onClose)
137
+ onClose(event);
138
+ }, open: isEllipsisMenuOpen, ref: ellipsisMenuRef, children: (0, jsx_runtime_1.jsx)(context_menu_1.Menu.Items, { children: children }) })] }));
139
+ };
140
+ BreadcrumbsEllipsisMenu.displayName = 'Breadcrumbs.EllipsisMenu';
141
+ const BreadcrumbsMenuItem = (_a) => {
142
+ var { as = 'span', children, className, href, isCurrentPage = false, onClick } = _a, restProps = __rest(_a, ["as", "children", "className", "href", "isCurrentPage", "onClick"]);
143
+ const linkClasses = (0, defaultImports_1.classNames)('ndl-breadcrumbs-item-link', className, {
144
+ 'ndl-breadcrumbs-item-link-active': isCurrentPage,
145
+ });
146
+ return ((0, jsx_runtime_1.jsx)(context_menu_1.Menu.Item, { as: as, className: "ndl-breadcrumbs-menu-item", title: href ? ((0, jsx_runtime_1.jsx)(typography_1.Typography
147
+ /* Overridable */
148
+ , Object.assign({ "aria-current": isCurrentPage ? 'page' : undefined, as: as, role: "button", tabIndex: 0, variant: "body-medium" }, restProps, {
149
+ /* Non-overridable */
150
+ className: linkClasses, href: href, onClick: (event) => {
151
+ if (onClick)
152
+ onClick(event, href);
153
+ }, children: children }))) : ((0, jsx_runtime_1.jsx)(typography_1.Typography
154
+ /* Overridable */
155
+ , Object.assign({
156
+ /* Overridable */
157
+ as: as, tabIndex: -1, variant: "body-medium" }, restProps, {
158
+ /* Non-overridable */
159
+ className: linkClasses, children: children }))) }));
160
+ };
161
+ BreadcrumbsMenuItem.displayName = 'Breadcrumbs.MenuItem';
162
+ const BreadcrumbsComponent = (_a) => {
163
+ var { as = 'nav', children, className } = _a, restProps = __rest(_a, ["as", "children", "className"]);
164
+ const Component = as;
165
+ const classes = (0, defaultImports_1.classNames)('ndl-breadcrumbs', className);
166
+ return ((0, jsx_runtime_1.jsx)(Component
167
+ /* Overridable */
168
+ , Object.assign({ "aria-label": "breadcrumb" }, restProps, {
169
+ /* Non-overridable */
170
+ className: classes, children: (0, jsx_runtime_1.jsx)("ol", { children: children }) })));
171
+ };
172
+ BreadcrumbsComponent.displayName = 'Breadcrumbs';
173
+ // Issue with TypeScript forwardRef and subcomponents: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-894053907
174
+ const Breadcrumbs = Object.assign(BreadcrumbsComponent, {
175
+ BaseItem: BreadcrumbsBaseItem,
176
+ GroupItem: BreadcrumbsGroupItem,
177
+ Item: BreadcrumbsItem,
178
+ ItemMenu: BreadcrumbsItemMenu,
179
+ EllipsisMenu: BreadcrumbsEllipsisMenu,
180
+ MenuItem: BreadcrumbsMenuItem,
181
+ });
182
+ exports.Breadcrumbs = Breadcrumbs;
183
+ //# sourceMappingURL=Breadcrumbs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumbs.js","sourceRoot":"","sources":["../../../src/breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM;AACN,kDAA8D;AAC9D,sCAAuC;AACvC,iCAAgD;AAChD,QAAQ;AACR,8DAAuD;AACvD,oCAAmE;AAEnE,8CAA2C;AAe3C,MAAM,mBAAmB,GAAG,CAAC,EAQF,EAAE,EAAE;QARF,EAC3B,EAAE,GAAG,GAAG,EACR,QAAQ,GAAG,uBAAC,uBAAe,KAAG,EAC9B,SAAS,EACT,IAAI,EACJ,aAAa,GAAG,KAAK,EACrB,OAAO,OAEkB,EADtB,SAAS,cAPe,mEAQ5B,CADa;IAEZ,MAAM,SAAS,GAAG,EAAE,CAAC;IACrB,MAAM,OAAO,GAAG,IAAA,2BAAU,EAAC,gCAAgC,EAAE,SAAS,EAAE;QACtE,uCAAuC,EAAE,aAAa;KACvD,CAAC,CAAC;IAEH,OAAO,CACL,+BAAI,SAAS,EAAC,2BAA2B,YACvC,uBAAC,SAAS;QACR,iBAAiB;;YAAjB,iBAAiB;YACjB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,IACP,SAAS;YACb,qBAAqB;YACrB,SAAS,EAAE,OAAO,EAClB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YAElB,yCAAK,QAAQ,GAAM,IACT,CACb,CAAC;AACJ,CAAC,CAAC;AACF,oBAAoB,CAAC,WAAW,GAAG,aAAa,CAAC;AAEjD,6IAA6I;AAC7I,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE;IACtD,QAAQ,EAAE,mBAAmB;IAC7B,SAAS,EAAE,oBAAoB;IAC/B,IAAI,EAAE,eAAe;IACrB,QAAQ,EAAE,mBAAmB;IAC7B,YAAY,EAAE,uBAAuB;IACrC,QAAQ,EAAE,mBAAmB;CAC9B,CAAC,CAAC;AAEM,kCAAW"}
@@ -0,0 +1,38 @@
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
+ var desc = Object.getOwnPropertyDescriptor(m, k);
25
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
26
+ desc = { enumerable: true, get: function() { return m[k]; } };
27
+ }
28
+ Object.defineProperty(o, k2, desc);
29
+ }) : (function(o, m, k, k2) {
30
+ if (k2 === undefined) k2 = k;
31
+ o[k2] = m[k];
32
+ }));
33
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
34
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ __exportStar(require("./Breadcrumbs"), exports);
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/breadcrumbs/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,gDAA8B"}
package/lib/cjs/index.js CHANGED
@@ -69,4 +69,7 @@ __exportStar(require("./status-indicator"), exports);
69
69
  __exportStar(require("./side-navigation"), exports);
70
70
  __exportStar(require("./typography"), exports);
71
71
  __exportStar(require("./drawer"), exports);
72
+ __exportStar(require("./breadcrumbs"), exports);
73
+ __exportStar(require("./hooks"), exports);
74
+ __exportStar(require("./layout"), exports);
72
75
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,iDAA+B;AAC/B,gDAA8B;AAC9B,2CAAyB;AACzB,0CAAwB;AACxB,oDAAkC;AAClC,yCAAuB;AACvB,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,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,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,iDAA+B;AAC/B,gDAA8B;AAC9B,2CAAyB;AACzB,0CAAwB;AACxB,oDAAkC;AAClC,yCAAuB;AACvB,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,sDAAoC;AACpC,qDAAmC;AACnC,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,gDAA8B;AAC9B,0CAAwB;AACxB,2CAAyB"}
@@ -0,0 +1,56 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Box = void 0;
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ /**
17
+ *
18
+ * Copyright (c) "Neo4j"
19
+ * Neo4j Sweden AB [http://neo4j.com]
20
+ *
21
+ * This file is part of Neo4j.
22
+ *
23
+ * Neo4j is free software: you can redistribute it and/or modify
24
+ * it under the terms of the GNU General Public License as published by
25
+ * the Free Software Foundation, either version 3 of the License, or
26
+ * (at your option) any later version.
27
+ *
28
+ * This program is distributed in the hope that it will be useful,
29
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
30
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31
+ * GNU General Public License for more details.
32
+ *
33
+ * You should have received a copy of the GNU General Public License
34
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
35
+ */
36
+ const react_1 = require("react");
37
+ const types_1 = require("./types");
38
+ /**
39
+ * Box is a general-purpose container that allows for controlled use of design tokens.
40
+ * Use the given props to configure display behavior and styling that aligns with Needle's tokens.
41
+ */
42
+ exports.Box = (0, react_1.forwardRef)(function Box(_a, ref) {
43
+ var { as = 'div', padding, paddingInline, paddingInlineStart, paddingInlineEnd, paddingBlockEnd, paddingBlockStart, borderRadius, children } = _a, restProps = __rest(_a, ["as", "padding", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlockEnd", "paddingBlockStart", "borderRadius", "children"]);
44
+ const Component = as;
45
+ const style = {
46
+ padding: (0, types_1.getSpacing)(padding, 'padding'),
47
+ paddingInline: (0, types_1.getSpacing)(paddingInline, 'paddingInline'),
48
+ paddingInlineStart: (0, types_1.getSpacing)(paddingInlineStart, 'paddingInlineStart'),
49
+ paddingInlineEnd: (0, types_1.getSpacing)(paddingInlineEnd, 'paddingInlineEnd'),
50
+ paddingBlockEnd: (0, types_1.getSpacing)(paddingBlockEnd, 'paddingBlockEnd'),
51
+ paddingBlockStart: (0, types_1.getSpacing)(paddingBlockStart, 'paddingBlockStart'),
52
+ borderRadius: (0, types_1.getRadius)(borderRadius, 'borderRadius'),
53
+ };
54
+ return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ ref: ref }, restProps, { style: Object.assign(Object.assign({}, style), restProps.style), children: children })));
55
+ });
56
+ //# sourceMappingURL=Box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.js","sourceRoot":"","sources":["../../../src/layout/Box.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAIe;AACf,mCAOiB;AAiDjB;;;GAGG;AACU,QAAA,GAAG,GAAiB,IAAA,kBAAU,EAAC,SAAS,GAAG,CAGtD,EAWc,EACd,GAAoC;QAZpC,EACE,EAAE,GAAG,KAAU,EACf,OAAO,EACP,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,QAAQ,OAEI,EADT,SAAS,cAVd,gJAWC,CADa;IAId,MAAM,SAAS,GAAG,EAA+B,CAAC;IAElD,MAAM,KAAK,GAAG;QACZ,OAAO,EAAE,IAAA,kBAAU,EAAC,OAAO,EAAE,SAAS,CAAC;QACvC,aAAa,EAAE,IAAA,kBAAU,EAAC,aAAa,EAAE,eAAe,CAAC;QACzD,kBAAkB,EAAE,IAAA,kBAAU,EAAC,kBAAkB,EAAE,oBAAoB,CAAC;QACxE,gBAAgB,EAAE,IAAA,kBAAU,EAAC,gBAAgB,EAAE,kBAAkB,CAAC;QAClE,eAAe,EAAE,IAAA,kBAAU,EAAC,eAAe,EAAE,iBAAiB,CAAC;QAC/D,iBAAiB,EAAE,IAAA,kBAAU,EAAC,iBAAiB,EAAE,mBAAmB,CAAC;QACrE,YAAY,EAAE,IAAA,iBAAS,EAAC,YAAY,EAAE,cAAc,CAAC;KACtD,CAAC;IAEF,OAAO,CACL,uBAAC,SAAS,kBACR,GAAG,EAAE,GAAG,IACJ,SAAS,IACb,KAAK,kCAAO,KAAK,GAAK,SAAS,CAAC,KAAK,aAEpC,QAAQ,IACC,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,64 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Flex = void 0;
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ /**
17
+ *
18
+ * Copyright (c) "Neo4j"
19
+ * Neo4j Sweden AB [http://neo4j.com]
20
+ *
21
+ * This file is part of Neo4j.
22
+ *
23
+ * Neo4j is free software: you can redistribute it and/or modify
24
+ * it under the terms of the GNU General Public License as published by
25
+ * the Free Software Foundation, either version 3 of the License, or
26
+ * (at your option) any later version.
27
+ *
28
+ * This program is distributed in the hope that it will be useful,
29
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
30
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31
+ * GNU General Public License for more details.
32
+ *
33
+ * You should have received a copy of the GNU General Public License
34
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
35
+ */
36
+ const react_1 = require("react");
37
+ const types_1 = require("./types");
38
+ const base_1 = require("@neo4j-ndl/base");
39
+ /**
40
+ * Flex is a general-purpose container that helps
41
+ * lay out components with consistent spacing in a row or column.
42
+ */
43
+ exports.Flex = (0, react_1.forwardRef)(function Flex(_a, ref) {
44
+ var { as = 'div', gap = '4', rowGap, columnGap, children, borderRadius, flexDirection = 'column', flexWrap = 'nowrap', alignItems, justifyContent } = _a, restProps = __rest(_a, ["as", "gap", "rowGap", "columnGap", "children", "borderRadius", "flexDirection", "flexWrap", "alignItems", "justifyContent"]);
45
+ const Component = as;
46
+ // If gap is not provided,
47
+ // and rowGap and columnGap are not provided,
48
+ // then use the default value.
49
+ const gapPx = (0, types_1.getSpacing)(gap, 'gap');
50
+ const rowGapPx = rowGap ? base_1.tokens.space[rowGap] : undefined;
51
+ const columnGapPx = columnGap ? base_1.tokens.space[columnGap] : undefined;
52
+ const gapFormatted = `${rowGapPx !== null && rowGapPx !== void 0 ? rowGapPx : gapPx} ${columnGapPx !== null && columnGapPx !== void 0 ? columnGapPx : gapPx}`;
53
+ const style = {
54
+ flexDirection,
55
+ alignItems,
56
+ flexWrap,
57
+ justifyContent,
58
+ display: 'flex',
59
+ gap: gapFormatted,
60
+ borderRadius: (0, types_1.getRadius)(borderRadius, 'borderRadius'),
61
+ };
62
+ return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ ref: ref }, restProps, { style: Object.assign(Object.assign({}, style), restProps.style), children: children })));
63
+ });
64
+ //# sourceMappingURL=Flex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Flex.js","sourceRoot":"","sources":["../../../src/layout/Flex.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAIe;AACf,mCAOiB;AACjB,0CAAyC;AAmEzC;;;GAGG;AACU,QAAA,IAAI,GAAkB,IAAA,kBAAU,EAAC,SAAS,IAAI,CAGzD,EAYe,EACf,GAAoC;QAbpC,EACE,EAAE,GAAG,KAAU,EACf,GAAG,GAAG,GAAG,EACT,MAAM,EACN,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,aAAa,GAAG,QAAQ,EACxB,QAAQ,GAAG,QAAQ,EACnB,UAAU,EACV,cAAc,OAED,EADV,SAAS,cAXd,6HAYC,CADa;IAId,MAAM,SAAS,GAAG,EAA+B,CAAC;IAElD,0BAA0B;IAC1B,6CAA6C;IAC7C,8BAA8B;IAC9B,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,MAAM,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,aAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACpE,MAAM,YAAY,GAAG,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,KAAK,IAAI,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,KAAK,EAAE,CAAC;IAEpE,MAAM,KAAK,GAAwB;QACjC,aAAa;QACb,UAAU;QACV,QAAQ;QACR,cAAc;QACd,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,YAAY;QACjB,YAAY,EAAE,IAAA,iBAAS,EAAC,YAAY,EAAE,cAAc,CAAC;KACtD,CAAC;IAEF,OAAO,CACL,uBAAC,SAAS,kBACR,GAAG,EAAE,GAAG,IACJ,SAAS,IACb,KAAK,kCAAO,KAAK,GAAK,SAAS,CAAC,KAAK,aAEpC,QAAQ,IACC,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,39 @@
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
+ var desc = Object.getOwnPropertyDescriptor(m, k);
25
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
26
+ desc = { enumerable: true, get: function() { return m[k]; } };
27
+ }
28
+ Object.defineProperty(o, k2, desc);
29
+ }) : (function(o, m, k, k2) {
30
+ if (k2 === undefined) k2 = k;
31
+ o[k2] = m[k];
32
+ }));
33
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
34
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ __exportStar(require("./Flex"), exports);
38
+ __exportStar(require("./Box"), exports);
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,yCAAuB;AACvB,wCAAsB"}
@@ -0,0 +1,49 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.getRadius = exports.RadiusDefaults = exports.getSpacing = exports.SpacingDefaults = void 0;
24
+ const base_1 = require("@neo4j-ndl/base");
25
+ exports.SpacingDefaults = {
26
+ padding: '4',
27
+ paddingBlockStart: undefined,
28
+ paddingBlockEnd: undefined,
29
+ paddingInline: undefined,
30
+ paddingInlineStart: undefined,
31
+ paddingInlineEnd: undefined,
32
+ gap: '4',
33
+ };
34
+ const getSpacing = (spacing, property) => {
35
+ return spacing
36
+ ? base_1.tokens.space[spacing || exports.SpacingDefaults[property]]
37
+ : undefined;
38
+ };
39
+ exports.getSpacing = getSpacing;
40
+ exports.RadiusDefaults = {
41
+ borderRadius: undefined,
42
+ };
43
+ const getRadius = (spacing, property) => {
44
+ return spacing
45
+ ? base_1.tokens.borderRadius[spacing || exports.RadiusDefaults[property]]
46
+ : undefined;
47
+ };
48
+ exports.getRadius = getRadius;
49
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/layout/types.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,0CAAyC;AAgB5B,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE,GAAG;IACZ,iBAAiB,EAAE,SAAS;IAC5B,eAAe,EAAE,SAAS;IAC1B,aAAa,EAAE,SAAS;IACxB,kBAAkB,EAAE,SAAS;IAC7B,gBAAgB,EAAE,SAAS;IAC3B,GAAG,EAAE,GAAG;CACA,CAAC;AAEJ,MAAM,UAAU,GAAG,CACxB,OAA4B,EAC5B,QAAsC,EACtC,EAAE;IACF,OAAO,OAAO;QACZ,CAAC,CAAC,aAAM,CAAC,KAAK,CAAC,OAAO,IAAI,uBAAe,CAAC,QAAQ,CAAC,CAAC;QACpD,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC;AAPW,QAAA,UAAU,cAOrB;AAIW,QAAA,cAAc,GAAG;IAC5B,YAAY,EAAE,SAAS;CACxB,CAAC;AAEK,MAAM,SAAS,GAAG,CACvB,OAA2B,EAC3B,QAAqC,EACrC,EAAE;IACF,OAAO,OAAO;QACZ,CAAC,CAAC,aAAM,CAAC,YAAY,CAAC,OAAO,IAAI,sBAAc,CAAC,QAAQ,CAAC,CAAC;QAC1D,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC;AAPW,QAAA,SAAS,aAOpB"}