@neo4j-ndl/react 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/lib/LICENSES.txt +59 -32
- package/lib/NOTICE.txt +43 -40
- package/lib/cjs/_common/CodeBlockWrapper.js +108 -0
- package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -0
- package/lib/cjs/code-block/CodeBlock.js +19 -73
- package/lib/cjs/code-block/CodeBlock.js.map +1 -1
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js +74 -0
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +1 -0
- package/lib/cjs/cypher-code-block/index.js +38 -0
- package/lib/cjs/cypher-code-block/index.js.map +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/popover/Popover.js +3 -1
- package/lib/cjs/popover/Popover.js.map +1 -1
- package/lib/esm/_common/CodeBlockWrapper.js +79 -0
- package/lib/esm/_common/CodeBlockWrapper.js.map +1 -0
- package/lib/esm/code-block/CodeBlock.js +21 -72
- package/lib/esm/code-block/CodeBlock.js.map +1 -1
- package/lib/esm/cypher-code-block/CypherCodeBlock.js +48 -0
- package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +1 -0
- package/lib/esm/cypher-code-block/index.js +22 -0
- package/lib/esm/cypher-code-block/index.js.map +1 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/popover/Popover.js +3 -1
- package/lib/esm/popover/Popover.js.map +1 -1
- package/lib/types/_common/CodeBlockWrapper.d.ts +34 -0
- package/lib/types/_common/ConditionalWrap.d.ts +1 -0
- package/lib/types/cypher-code-block/CypherCodeBlock.d.ts +32 -0
- package/lib/types/cypher-code-block/index.d.ts +21 -0
- package/lib/types/dropdown/Overrides.d.ts +1 -0
- package/lib/types/dropdown/types.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/table/Table.d.ts +1 -0
- package/lib/types/table-deprecated/Table.d.ts +1 -0
- package/lib/types/table-deprecated/TableNavigation.d.ts +1 -0
- package/lib/types/typography/Typography.d.ts +1 -0
- package/lib/types/wizard/Wizard.d.ts +1 -0
- package/package.json +7 -2
|
@@ -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 './CypherCodeBlock';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cypher-code-block/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,mBAAmB,CAAC"}
|
package/lib/esm/index.js
CHANGED
|
@@ -43,6 +43,7 @@ export * from './tag';
|
|
|
43
43
|
export * from './wizard';
|
|
44
44
|
export * from './graph-label';
|
|
45
45
|
export * from './code-block';
|
|
46
|
+
export * from './cypher-code-block';
|
|
46
47
|
export * from './status-indicator';
|
|
47
48
|
export * from './side-navigation';
|
|
48
49
|
export * from './typography';
|
package/lib/esm/index.js.map
CHANGED
|
@@ -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;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
|
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;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
|
@@ -135,7 +135,9 @@ export const Popover = forwardRef(function Popover(_a, ref) {
|
|
|
135
135
|
top,
|
|
136
136
|
left,
|
|
137
137
|
};
|
|
138
|
-
},
|
|
138
|
+
},
|
|
139
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
140
|
+
[anchorOrigin, transformOrigin, anchorEl]);
|
|
139
141
|
const setPositioningStyles = useCallback(() => {
|
|
140
142
|
const element = popoverRef.current;
|
|
141
143
|
if (!element) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../src/popover/Popover.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAc,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,eAAe,EACf,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB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AC,UAAU,kBAAC,OAAO,EAAE,IAAI,EAAE,YAAY,QAAC,SAAS,sBAC9C,QAAQ,IACE,CACd,gBAED,KAAC,SAAS,oBACJ,IAAI,IACR,SAAS,EAAE,OAAO,EAClB,GAAG,EAAE,UAAU,iBACH,iBAAiB,EAC7B,SAAS,EAAE,aAAa,gBAEvB,QAAQ,IACC,IACI,KACX,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -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
|
+
import { ElementBase } from '../helpers';
|
|
23
|
+
import { IconButtonProps } from '../button';
|
|
24
|
+
export interface CodeBlockWrapperProps extends ElementBase<HTMLElement> {
|
|
25
|
+
maxHeight?: number;
|
|
26
|
+
code: string;
|
|
27
|
+
headerTitle?: string | JSX.Element;
|
|
28
|
+
children: JSX.Element;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
actions?: IconButtonProps[];
|
|
31
|
+
shouldShowExpandButton: boolean;
|
|
32
|
+
setShouldShowExpandButton: React.Dispatch<React.SetStateAction<boolean>>;
|
|
33
|
+
}
|
|
34
|
+
export declare const CodeBlockWrapper: React.ForwardRefExoticComponent<CodeBlockWrapperProps & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import React from 'react';
|
|
22
|
+
import { ElementBase } from '../helpers';
|
|
23
|
+
import { IconButtonProps } from '../button';
|
|
24
|
+
export interface CypherCodeBlockProps extends ElementBase<HTMLElement> {
|
|
25
|
+
maxHeight?: number;
|
|
26
|
+
code: string;
|
|
27
|
+
showLineNumbers?: boolean;
|
|
28
|
+
headerTitle: string | JSX.Element;
|
|
29
|
+
theme: 'light' | 'dark';
|
|
30
|
+
actions?: IconButtonProps[];
|
|
31
|
+
}
|
|
32
|
+
export declare const CypherCodeBlock: React.ForwardRefExoticComponent<CypherCodeBlockProps & React.RefAttributes<unknown>>;
|
|
@@ -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 './CypherCodeBlock';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ClearIndicatorProps, DropdownIndicatorProps, GroupBase, MultiValueRemoveProps, PlaceholderProps } from 'react-select';
|
|
2
3
|
import { DropdownOverrideCustomProps } from './types';
|
|
3
4
|
export declare const DropdownIndicatorCurrying: <OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>>({ errorText, size, }: DropdownOverrideCustomProps<OptionType, IsMulti, GroupType>) => (props: DropdownIndicatorProps<OptionType, IsMulti, GroupType>) => JSX.Element;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
/// <reference types="react" />
|
|
21
22
|
import { GroupBase, Props } from 'react-select';
|
|
22
23
|
import { CreatableProps } from 'react-select/creatable';
|
|
23
24
|
import { AsyncProps } from 'react-select/async';
|
package/lib/types/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export * from './tag';
|
|
|
43
43
|
export * from './wizard';
|
|
44
44
|
export * from './graph-label';
|
|
45
45
|
export * from './code-block';
|
|
46
|
+
export * from './cypher-code-block';
|
|
46
47
|
export * from './status-indicator';
|
|
47
48
|
export * from './side-navigation';
|
|
48
49
|
export * from './typography';
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
/// <reference types="react" />
|
|
21
22
|
import type { Table as TableType } from '@tanstack/react-table';
|
|
22
23
|
import { TableComponentsInterface } from './TableContext';
|
|
23
24
|
import { ElementBase } from '../helpers';
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
/// <reference types="react" />
|
|
21
22
|
import { Row, UseColumnOrderState, UseExpandedState, UseFiltersState, UsePaginationState, UseGlobalFiltersState, UsePaginationInstanceProps, UseSortByInstanceProps, UseTableInstanceProps } from 'react-table';
|
|
22
23
|
import { ElementBase } from '../helpers/types';
|
|
23
24
|
declare type Sections = Record<'controls' | 'header' | 'body' | 'navigation', JSX.Element | JSX.Element[]>;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
/// <reference types="react" />
|
|
21
22
|
interface TableNavigationProps {
|
|
22
23
|
/** If there is a previous page available */
|
|
23
24
|
canPreviousPage: boolean;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
/// <reference types="react" />
|
|
21
22
|
import { AsType, ConditionalTypography } from './types';
|
|
22
23
|
export declare const Typography: <TVar extends "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "subheading-large" | "subheading-medium" | "subheading-small" | "body-large" | "body-medium" | "body-small", TAs extends AsType = undefined>(props: {
|
|
23
24
|
as?: TAs | undefined;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
/// <reference types="react" />
|
|
21
22
|
import { ElementBase } from '../helpers';
|
|
22
23
|
export declare const Horizontal: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => JSX.Element;
|
|
23
24
|
export declare const Vertical: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -91,7 +91,8 @@
|
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"@floating-ui/react-dom-interactions": "^0.12.0",
|
|
93
93
|
"@heroicons/react": "2.0.13",
|
|
94
|
-
"@neo4j-
|
|
94
|
+
"@neo4j-cypher/react-codemirror": "^1.0.1",
|
|
95
|
+
"@neo4j-ndl/base": "^1.1.0",
|
|
95
96
|
"@react-aria/focus": "^3.10.1",
|
|
96
97
|
"@tanstack/react-table": "^8.5.22",
|
|
97
98
|
"classnames": "^2.3.1",
|
|
@@ -102,5 +103,9 @@
|
|
|
102
103
|
"react-table": "^7.7.0",
|
|
103
104
|
"react-use": "^17.4.0",
|
|
104
105
|
"tinycolor2": "^1.4.2"
|
|
106
|
+
},
|
|
107
|
+
"resolutions": {
|
|
108
|
+
"@types/react": "17.0.52",
|
|
109
|
+
"@types/react-dom": "17.0.18"
|
|
105
110
|
}
|
|
106
111
|
}
|