@neo4j-ndl/react 2.4.0 → 2.5.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 +17 -0
- package/lib/LICENSES.txt +1 -1
- package/lib/NOTICE.txt +15 -15
- package/lib/cjs/data-grid/Components.js +5 -4
- package/lib/cjs/data-grid/Components.js.map +1 -1
- package/lib/cjs/data-grid/DataGrid.js +1 -0
- package/lib/cjs/data-grid/DataGrid.js.map +1 -1
- package/lib/cjs/data-grid/DataGridContext.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JIconBlack.js +27 -0
- package/lib/cjs/icons/generated/custom/Neo4JIconBlack.js.map +1 -0
- package/lib/cjs/icons/generated/custom/Neo4JIconColor.js +27 -0
- package/lib/cjs/icons/generated/custom/Neo4JIconColor.js.map +1 -0
- package/lib/cjs/icons/generated/custom/Neo4JIconWhite.js +27 -0
- package/lib/cjs/icons/generated/custom/Neo4JIconWhite.js.map +1 -0
- package/lib/cjs/icons/generated/custom/Neo4JLogoBlack.js +27 -0
- package/lib/cjs/icons/generated/custom/Neo4JLogoBlack.js.map +1 -0
- package/lib/cjs/icons/generated/custom/Neo4JLogoColor.js +27 -0
- package/lib/cjs/icons/generated/custom/Neo4JLogoColor.js.map +1 -0
- package/lib/cjs/icons/generated/custom/Neo4JLogoWhite.js +27 -0
- package/lib/cjs/icons/generated/custom/Neo4JLogoWhite.js.map +1 -0
- package/lib/cjs/icons/generated/custom/index.js +13 -1
- package/lib/cjs/icons/generated/custom/index.js.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/logo/Logo.js +77 -0
- package/lib/cjs/logo/Logo.js.map +1 -0
- package/lib/cjs/logo/index.js +38 -0
- package/lib/cjs/logo/index.js.map +1 -0
- package/lib/esm/data-grid/Components.js +6 -5
- package/lib/esm/data-grid/Components.js.map +1 -1
- package/lib/esm/data-grid/DataGrid.js +2 -1
- package/lib/esm/data-grid/DataGrid.js.map +1 -1
- package/lib/esm/data-grid/DataGridContext.js.map +1 -1
- package/lib/esm/icons/generated/custom/Neo4JIconBlack.js +25 -0
- package/lib/esm/icons/generated/custom/Neo4JIconBlack.js.map +1 -0
- package/lib/esm/icons/generated/custom/Neo4JIconColor.js +25 -0
- package/lib/esm/icons/generated/custom/Neo4JIconColor.js.map +1 -0
- package/lib/esm/icons/generated/custom/Neo4JIconWhite.js +25 -0
- package/lib/esm/icons/generated/custom/Neo4JIconWhite.js.map +1 -0
- package/lib/esm/icons/generated/custom/Neo4JLogoBlack.js +25 -0
- package/lib/esm/icons/generated/custom/Neo4JLogoBlack.js.map +1 -0
- package/lib/esm/icons/generated/custom/Neo4JLogoColor.js +25 -0
- package/lib/esm/icons/generated/custom/Neo4JLogoColor.js.map +1 -0
- package/lib/esm/icons/generated/custom/Neo4JLogoWhite.js +25 -0
- package/lib/esm/icons/generated/custom/Neo4JLogoWhite.js.map +1 -0
- package/lib/esm/icons/generated/custom/index.js +6 -0
- package/lib/esm/icons/generated/custom/index.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/logo/Logo.js +71 -0
- package/lib/esm/logo/Logo.js.map +1 -0
- package/lib/esm/logo/index.js +22 -0
- package/lib/esm/logo/index.js.map +1 -0
- package/lib/types/data-grid/Components.d.ts +5 -3
- package/lib/types/data-grid/DataGrid.d.ts +3 -2
- package/lib/types/data-grid/DataGridContext.d.ts +2 -1
- package/lib/types/icons/generated/custom/Neo4JIconBlack.d.ts +23 -0
- package/lib/types/icons/generated/custom/Neo4JIconColor.d.ts +23 -0
- package/lib/types/icons/generated/custom/Neo4JIconWhite.d.ts +23 -0
- package/lib/types/icons/generated/custom/Neo4JLogoBlack.d.ts +23 -0
- package/lib/types/icons/generated/custom/Neo4JLogoColor.d.ts +23 -0
- package/lib/types/icons/generated/custom/Neo4JLogoWhite.d.ts +23 -0
- package/lib/types/icons/generated/custom/index.d.ts +6 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/logo/Logo.d.ts +34 -0
- package/lib/types/logo/index.d.ts +21 -0
- package/lib/types/tip/Tip.d.ts +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
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 } 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 React from 'react';
|
|
34
|
+
import { useNeedleTheme } from '../theme';
|
|
35
|
+
import Neo4JIconBlackIcon from '../icons/generated/custom/Neo4JIconBlack';
|
|
36
|
+
import Neo4JIconColorIcon from '../icons/generated/custom/Neo4JIconColor';
|
|
37
|
+
import Neo4JIconWhiteIcon from '../icons/generated/custom/Neo4JIconWhite';
|
|
38
|
+
import Neo4JLogoBlackIcon from '../icons/generated/custom/Neo4JLogoBlack';
|
|
39
|
+
import Neo4JLogoColorIcon from '../icons/generated/custom/Neo4JLogoColor';
|
|
40
|
+
import Neo4JLogoWhiteIcon from '../icons/generated/custom/Neo4JLogoWhite';
|
|
41
|
+
const iconMap = {
|
|
42
|
+
icon: {
|
|
43
|
+
black: Neo4JIconBlackIcon,
|
|
44
|
+
white: Neo4JIconWhiteIcon,
|
|
45
|
+
color: Neo4JIconColorIcon,
|
|
46
|
+
},
|
|
47
|
+
full: {
|
|
48
|
+
black: Neo4JLogoBlackIcon,
|
|
49
|
+
white: Neo4JLogoWhiteIcon,
|
|
50
|
+
color: Neo4JLogoColorIcon,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* By default, Logo will be theme aware, unless `color` is explicitly provided.
|
|
55
|
+
*
|
|
56
|
+
* On light theme it will be colored and on dark theme it will be white.
|
|
57
|
+
*/
|
|
58
|
+
export const Logo = React.forwardRef(function Neo4jIcon(_a, ref) {
|
|
59
|
+
var { color, type = 'full' } = _a, restProps = __rest(_a, ["color", "type"]);
|
|
60
|
+
const theme = useNeedleTheme();
|
|
61
|
+
// use themed logo if color is not explicitly provided
|
|
62
|
+
const iconColor = color
|
|
63
|
+
? color
|
|
64
|
+
: theme.theme === 'light'
|
|
65
|
+
? 'color'
|
|
66
|
+
: 'white';
|
|
67
|
+
const Icon = iconMap[type][iconColor];
|
|
68
|
+
return _jsx(Icon, Object.assign({}, restProps, { ref: ref }));
|
|
69
|
+
});
|
|
70
|
+
export default Logo;
|
|
71
|
+
//# sourceMappingURL=Logo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/logo/Logo.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,kBAAkB,MAAM,0CAA0C,CAAC;AAC1E,OAAO,kBAAkB,MAAM,0CAA0C,CAAC;AAC1E,OAAO,kBAAkB,MAAM,0CAA0C,CAAC;AAC1E,OAAO,kBAAkB,MAAM,0CAA0C,CAAC;AAC1E,OAAO,kBAAkB,MAAM,0CAA0C,CAAC;AAC1E,OAAO,kBAAkB,MAAM,0CAA0C,CAAC;AAU1E,MAAM,OAAO,GAAG;IACd,IAAI,EAAE;QACJ,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,kBAAkB;KAC1B;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,kBAAkB;KAC1B;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,SAAS,CACrD,EAAiD,EACjD,GAAsC;QADtC,EAAE,KAAK,EAAE,IAAI,GAAG,MAAM,OAA2B,EAAtB,SAAS,cAApC,iBAAsC,CAAF;IAGpC,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,sDAAsD;IACtD,MAAM,SAAS,GAAc,KAAK;QAChC,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,KAAK,CAAC,KAAK,KAAK,OAAO;YACvB,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,OAAO,CAAC;IAEd,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;IAEtC,OAAO,KAAC,IAAI,oBAAK,SAAS,IAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH,eAAe,IAAI,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 * from './Logo';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/logo/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,QAAQ,CAAC"}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
import { type RowData, type Row, type Cell, type Header as HeaderType, type CellContext, type SortDirection } from '@tanstack/react-table';
|
|
23
23
|
import { type ElementBase } from '../helpers';
|
|
24
|
+
import { IconButton } from '../button';
|
|
24
25
|
import { Menu } from '../context-menu';
|
|
25
26
|
import { type ColumnAction } from './datagrid-types';
|
|
26
27
|
type MenuItemProps = React.ComponentProps<typeof Menu.Item>;
|
|
@@ -48,9 +49,10 @@ export interface ActionButtonProps {
|
|
|
48
49
|
export declare const ActionButton: ({ action, children, onClose, innerProps, }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
50
|
export interface RowActionCellProps<T extends RowData> {
|
|
50
51
|
cell?: CellContext<T, unknown>;
|
|
51
|
-
|
|
52
|
+
innerIconButtonProps?: Partial<React.ComponentProps<typeof IconButton>>;
|
|
53
|
+
innerMenuProps?: Partial<React.ComponentProps<typeof Menu>>;
|
|
52
54
|
}
|
|
53
|
-
|
|
55
|
+
declare const RowActionCell: <T extends unknown>({ cell, innerIconButtonProps, innerMenuProps, }: RowActionCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
|
54
56
|
export interface ColumnControlsProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
|
|
55
57
|
cell: HeaderType<T, unknown>;
|
|
56
58
|
}
|
|
@@ -91,4 +93,4 @@ declare const Pagination: ({ children, innerProps, }: CommonInnerProps<HTMLDivEl
|
|
|
91
93
|
declare const Navigation: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
92
94
|
declare const LoadingPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
93
95
|
declare const NoDataPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
94
|
-
export { ResizingBar, Header, Body, BodyCell, BodyRow, HeaderCell, Navigation, TableResults, RowsPerPage, Pagination, PaginationNumericButtons, PaginationArrowButton, PaginationNumericButton, NoDataPlaceholder, LoadingPlaceholder, Scrollable, };
|
|
96
|
+
export { ResizingBar, Header, Body, BodyCell, BodyRow, RowActionCell, HeaderCell, Navigation, TableResults, RowsPerPage, Pagination, PaginationNumericButtons, PaginationArrowButton, PaginationNumericButton, NoDataPlaceholder, LoadingPlaceholder, Scrollable, };
|
|
@@ -28,9 +28,10 @@ export declare const DataGridComponents: {
|
|
|
28
28
|
Body: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
BodyCell: <T_1 extends unknown>({ cell, children, innerProps, }: import("./Components").BodyCellProps<T_1>) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
BodyRow: <T_2 extends unknown>({ row, children, innerProps, }: import("./Components").BodyRowProps<T_2>) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
|
|
31
|
+
RowActionCell: <T_3 extends unknown>({ cell, innerIconButtonProps, innerMenuProps, }: import("./Components").RowActionCellProps<T_3>) => import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
+
HeaderCell: <T_4 extends unknown>({ cell, children, innerProps, }: import("./Components").HeaderCellProps<T_4>) => import("react/jsx-runtime").JSX.Element;
|
|
32
33
|
ActionButton: ({ action, children, onClose, innerProps, }: import("./Components").ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
ColumnControls: <
|
|
34
|
+
ColumnControls: <T_5 extends unknown>({ cell, children, innerProps, }: import("./Components").ColumnControlsProps<T_5>) => import("react/jsx-runtime").JSX.Element | null;
|
|
34
35
|
Navigation: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
35
36
|
TableResults: ({ children, innerProps, manualPagination, }: import("./Components").TableResultProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
37
|
RowsPerPage: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="react" />
|
|
22
22
|
import type { RowData, Table as DataGridType } from '@tanstack/react-table';
|
|
23
|
-
import { type Body, type BodyCell, type BodyRow, type TableResults, type ResizingBar, type Navigation, type Header, type Pagination, type NoDataPlaceholder, type LoadingPlaceholder, type PaginationNumericButtons, type PaginationNumericButton, type HeaderCell, type PaginationArrowButton, type RowsPerPage, type ActionButton, type ColumnControls, type Scrollable } from './Components';
|
|
23
|
+
import { type Body, type BodyCell, type BodyRow, type RowActionCell, type TableResults, type ResizingBar, type Navigation, type Header, type Pagination, type NoDataPlaceholder, type LoadingPlaceholder, type PaginationNumericButtons, type PaginationNumericButton, type HeaderCell, type PaginationArrowButton, type RowsPerPage, type ActionButton, type ColumnControls, type Scrollable } from './Components';
|
|
24
24
|
type Nullable<T> = T | null;
|
|
25
25
|
export interface DataGridComponentsInterface<T extends RowData> {
|
|
26
26
|
ResizingBar?: Nullable<typeof ResizingBar<T>>;
|
|
@@ -38,6 +38,7 @@ export interface DataGridComponentsInterface<T extends RowData> {
|
|
|
38
38
|
Body?: Nullable<typeof Body>;
|
|
39
39
|
BodyCell?: Nullable<typeof BodyCell<T>>;
|
|
40
40
|
BodyRow?: Nullable<typeof BodyRow<T>>;
|
|
41
|
+
RowActionCell?: Nullable<typeof RowActionCell<T>>;
|
|
41
42
|
LoadingPlaceholder?: Nullable<typeof LoadingPlaceholder>;
|
|
42
43
|
NoDataPlaceholder?: Nullable<typeof NoDataPlaceholder>;
|
|
43
44
|
/**
|
|
@@ -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 { type SVGProps } from 'react';
|
|
22
|
+
declare const SvgNeo4JIconBlack: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default SvgNeo4JIconBlack;
|
|
@@ -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 { type SVGProps } from 'react';
|
|
22
|
+
declare const SvgNeo4JIconColor: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default SvgNeo4JIconColor;
|
|
@@ -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 { type SVGProps } from 'react';
|
|
22
|
+
declare const SvgNeo4JIconWhite: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default SvgNeo4JIconWhite;
|
|
@@ -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 { type SVGProps } from 'react';
|
|
22
|
+
declare const SvgNeo4JLogoBlack: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default SvgNeo4JLogoBlack;
|
|
@@ -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 { type SVGProps } from 'react';
|
|
22
|
+
declare const SvgNeo4JLogoColor: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default SvgNeo4JLogoColor;
|
|
@@ -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 { type SVGProps } from 'react';
|
|
22
|
+
declare const SvgNeo4JLogoWhite: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default SvgNeo4JLogoWhite;
|
|
@@ -39,6 +39,12 @@ export { default as Heirarchy2Icon } from './Heirarchy2';
|
|
|
39
39
|
export { default as Hierarchy1Icon } from './Hierarchy1';
|
|
40
40
|
export { default as Hierarchy2Icon } from './Hierarchy2';
|
|
41
41
|
export { default as ItalicIcon } from './Italic';
|
|
42
|
+
export { default as Neo4JIconBlackIcon } from './Neo4JIconBlack';
|
|
43
|
+
export { default as Neo4JIconColorIcon } from './Neo4JIconColor';
|
|
44
|
+
export { default as Neo4JIconWhiteIcon } from './Neo4JIconWhite';
|
|
45
|
+
export { default as Neo4JLogoBlackIcon } from './Neo4JLogoBlack';
|
|
46
|
+
export { default as Neo4JLogoColorIcon } from './Neo4JLogoColor';
|
|
47
|
+
export { default as Neo4JLogoWhiteIcon } from './Neo4JLogoWhite';
|
|
42
48
|
export { default as NomLevelIcon } from './NomLevel';
|
|
43
49
|
export { default as PinIcon } from './Pin';
|
|
44
50
|
export { default as PlanViewIcon } from './PlanView';
|
package/lib/types/index.d.ts
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
type IconColor = 'black' | 'white' | 'color';
|
|
23
|
+
type IconType = 'full' | 'icon';
|
|
24
|
+
export interface LogoProps extends React.SVGProps<SVGSVGElement> {
|
|
25
|
+
color?: IconColor;
|
|
26
|
+
type?: IconType;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* By default, Logo will be theme aware, unless `color` is explicitly provided.
|
|
30
|
+
*
|
|
31
|
+
* On light theme it will be colored and on dark theme it will be white.
|
|
32
|
+
*/
|
|
33
|
+
export declare const Logo: React.ForwardRefExoticComponent<Omit<LogoProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
34
|
+
export default Logo;
|
|
@@ -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 './Logo';
|
package/lib/types/tip/Tip.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import { FloatingPortal } from '@floating-ui/react';
|
|
22
|
-
import { type Side } from '@floating-ui/
|
|
22
|
+
import { type Side } from '@floating-ui/dom';
|
|
23
23
|
import { type ElementBase } from '../helpers';
|
|
24
24
|
import { Typography } from '../typography';
|
|
25
25
|
import React, { type ComponentProps } from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@types/react-table": "^7.7.10",
|
|
68
68
|
"@types/tinycolor2": "^1.4.3",
|
|
69
69
|
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
70
|
-
"@typescript-eslint/parser": "
|
|
70
|
+
"@typescript-eslint/parser": "6.15.0",
|
|
71
71
|
"eslint": "^8.3.0",
|
|
72
72
|
"eslint-config-prettier": "^8.3.0",
|
|
73
73
|
"eslint-plugin-import": "2.28.1",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@floating-ui/react": "0.25.1",
|
|
94
94
|
"@heroicons/react": "2.0.13",
|
|
95
95
|
"@neo4j-cypher/react-codemirror": "^1.0.1",
|
|
96
|
-
"@neo4j-ndl/base": "^2.
|
|
96
|
+
"@neo4j-ndl/base": "^2.5.0",
|
|
97
97
|
"@table-nav/core": "0.0.7",
|
|
98
98
|
"@table-nav/react": "0.0.7",
|
|
99
99
|
"@tanstack/react-table": "^8.9.3",
|