@neo4j-ndl/react 2.4.1 → 2.6.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 +22 -0
- package/lib/LICENSES.txt +1 -1
- package/lib/NOTICE.txt +3 -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/cjs/slider/Slider.js +134 -0
- package/lib/cjs/slider/Slider.js.map +1 -0
- package/lib/cjs/slider/index.js +38 -0
- package/lib/cjs/slider/index.js.map +1 -0
- 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/esm/slider/Slider.js +128 -0
- package/lib/esm/slider/Slider.js.map +1 -0
- package/lib/esm/slider/index.js +22 -0
- package/lib/esm/slider/index.js.map +1 -0
- 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/slider/Slider.d.ts +77 -0
- package/lib/types/slider/index.d.ts +21 -0
- package/package.json +4 -3
|
@@ -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';
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { type ComponentPropsWithoutRefAsObj } from '../helpers';
|
|
24
|
+
export interface SliderPropsBase {
|
|
25
|
+
as?: string | React.ComponentType<any>;
|
|
26
|
+
/** Forwards the props to the slider container's wrapper */
|
|
27
|
+
rootProps?: ComponentPropsWithoutRefAsObj<'div'>;
|
|
28
|
+
/** Forwards the input element(s) of the slider */
|
|
29
|
+
inputProps?: ComponentPropsWithoutRefAsObj<'input'>;
|
|
30
|
+
/**
|
|
31
|
+
* Which value interval will be added or removed from
|
|
32
|
+
* the current value when moving the slider button.
|
|
33
|
+
*
|
|
34
|
+
* @default 1
|
|
35
|
+
*/
|
|
36
|
+
step?: number;
|
|
37
|
+
isDisabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The minimum value possible to choose.
|
|
40
|
+
* @default 0
|
|
41
|
+
*/
|
|
42
|
+
minValue?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The maximum value possible to choose.
|
|
45
|
+
* @default 100
|
|
46
|
+
*/
|
|
47
|
+
maxValue?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Displays a tooltip with the current
|
|
50
|
+
* value for a brief second.
|
|
51
|
+
*/
|
|
52
|
+
showValues?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Displays visual indicators for each
|
|
55
|
+
* of the steps in the slider.
|
|
56
|
+
*/
|
|
57
|
+
showSteps?: boolean;
|
|
58
|
+
}
|
|
59
|
+
type SingleSlider = SliderPropsBase & {
|
|
60
|
+
type?: 'single' | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Current value of the single slider.
|
|
63
|
+
*/
|
|
64
|
+
value: number;
|
|
65
|
+
onChange: (value: number) => void;
|
|
66
|
+
};
|
|
67
|
+
type RangeSlider = SliderPropsBase & {
|
|
68
|
+
type: 'range';
|
|
69
|
+
/**
|
|
70
|
+
* Current values of the range slider.
|
|
71
|
+
*/
|
|
72
|
+
values: [number, number];
|
|
73
|
+
onChange: (value: [number, number]) => void;
|
|
74
|
+
};
|
|
75
|
+
export type SliderProps = SingleSlider | RangeSlider;
|
|
76
|
+
export declare const Slider: (props: SliderProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
77
|
+
export default Slider;
|
|
@@ -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 './Slider';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -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.6.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",
|
|
@@ -101,11 +101,12 @@
|
|
|
101
101
|
"date-fns": "^2.30.0",
|
|
102
102
|
"detect-browser": "^5.3.0",
|
|
103
103
|
"re-resizable": "^6.9.11",
|
|
104
|
-
"react-aria": "
|
|
104
|
+
"react-aria": "3.31.0",
|
|
105
105
|
"react-datepicker": "^4.14.1",
|
|
106
106
|
"react-dropzone": "^14.0.0",
|
|
107
107
|
"react-focus-lock": "^2.9.4",
|
|
108
108
|
"react-select": "5.7.0",
|
|
109
|
+
"react-stately": "3.29.1",
|
|
109
110
|
"react-syntax-highlighter": "^15.5.0",
|
|
110
111
|
"react-table": "^7.7.0",
|
|
111
112
|
"react-use": "^17.4.0",
|