@neo4j-ndl/react 2.14.0 → 2.15.5
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/lib/LICENSES.txt +2 -25245
- package/lib/NOTICE.txt +2 -395
- package/lib/cjs/code-block/CodeBlock.js +1 -1
- package/lib/cjs/code-block/CodeBlock.js.map +1 -1
- package/lib/cjs/dropdown/Dropdown.js +56 -27
- package/lib/cjs/dropdown/Dropdown.js.map +1 -1
- package/lib/cjs/dropdown/Overrides.js +3 -2
- package/lib/cjs/dropdown/Overrides.js.map +1 -1
- package/lib/cjs/icons/generated/custom/AddNode.js +1 -1
- package/lib/cjs/icons/generated/custom/AddNode.js.map +1 -1
- package/lib/cjs/icons/generated/custom/AlignBottom.js +1 -1
- package/lib/cjs/icons/generated/custom/AlignBottom.js.map +1 -1
- package/lib/cjs/icons/generated/custom/AlignCenter.js +1 -1
- package/lib/cjs/icons/generated/custom/AlignCenter.js.map +1 -1
- package/lib/cjs/icons/generated/custom/AlignTop.js +1 -1
- package/lib/cjs/icons/generated/custom/AlignTop.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Bold.js +1 -1
- package/lib/cjs/icons/generated/custom/Bold.js.map +1 -1
- package/lib/cjs/icons/generated/custom/BoxSelect.js +1 -1
- package/lib/cjs/icons/generated/custom/BoxSelect.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Circle.js +1 -1
- package/lib/cjs/icons/generated/custom/Circle.js.map +1 -1
- package/lib/cjs/icons/generated/custom/CollapseExpand.js +1 -1
- package/lib/cjs/icons/generated/custom/CollapseExpand.js.map +1 -1
- package/lib/cjs/icons/generated/custom/CollapseExpandLeft.js +1 -1
- package/lib/cjs/icons/generated/custom/CollapseExpandLeft.js.map +1 -1
- package/lib/cjs/icons/generated/custom/CollapseExpandRight.js +1 -1
- package/lib/cjs/icons/generated/custom/CollapseExpandRight.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Configure.js +1 -1
- package/lib/cjs/icons/generated/custom/Configure.js.map +1 -1
- package/lib/cjs/icons/generated/custom/DatabaseAddCircle.js +1 -1
- package/lib/cjs/icons/generated/custom/DatabaseAddCircle.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Dbms.js +1 -1
- package/lib/cjs/icons/generated/custom/Dbms.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Drag.js +1 -1
- package/lib/cjs/icons/generated/custom/Drag.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Expand.js +1 -1
- package/lib/cjs/icons/generated/custom/Expand.js.map +1 -1
- package/lib/cjs/icons/generated/custom/ExternalLink.js +1 -1
- package/lib/cjs/icons/generated/custom/ExternalLink.js.map +1 -1
- package/lib/cjs/icons/generated/custom/FitToScreen.js +1 -1
- package/lib/cjs/icons/generated/custom/FitToScreen.js.map +1 -1
- package/lib/cjs/icons/generated/custom/FolderBookmark.js +1 -1
- package/lib/cjs/icons/generated/custom/FolderBookmark.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Github.js +1 -1
- package/lib/cjs/icons/generated/custom/Github.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Heirarchy2.js +1 -1
- package/lib/cjs/icons/generated/custom/Heirarchy2.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Hierarchy1.js +1 -1
- package/lib/cjs/icons/generated/custom/Hierarchy1.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Hierarchy2.js +1 -1
- package/lib/cjs/icons/generated/custom/Hierarchy2.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Italic.js +1 -1
- package/lib/cjs/icons/generated/custom/Italic.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Lasso.js +1 -1
- package/lib/cjs/icons/generated/custom/Lasso.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JIconBlack.js +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JIconBlack.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JIconColor.js +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JIconColor.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JIconWhite.js +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JIconWhite.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JLogoBlack.js +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JLogoBlack.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JLogoColor.js +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JLogoColor.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JLogoWhite.js +1 -1
- package/lib/cjs/icons/generated/custom/Neo4JLogoWhite.js.map +1 -1
- package/lib/cjs/icons/generated/custom/NomLevel.js +1 -1
- package/lib/cjs/icons/generated/custom/NomLevel.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Pan.js +1 -1
- package/lib/cjs/icons/generated/custom/Pan.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Pin.js +1 -1
- package/lib/cjs/icons/generated/custom/Pin.js.map +1 -1
- package/lib/cjs/icons/generated/custom/PlanView.js +1 -1
- package/lib/cjs/icons/generated/custom/PlanView.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Presentation.js +1 -1
- package/lib/cjs/icons/generated/custom/Presentation.js.map +1 -1
- package/lib/cjs/icons/generated/custom/QueryBrowser.js +1 -1
- package/lib/cjs/icons/generated/custom/QueryBrowser.js.map +1 -1
- package/lib/cjs/icons/generated/custom/ResetZoom.js +1 -1
- package/lib/cjs/icons/generated/custom/ResetZoom.js.map +1 -1
- package/lib/cjs/icons/generated/custom/ResizeCorner.js +1 -1
- package/lib/cjs/icons/generated/custom/ResizeCorner.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Rhombus.js +1 -1
- package/lib/cjs/icons/generated/custom/Rhombus.js.map +1 -1
- package/lib/cjs/icons/generated/custom/ScienceMolecule.js +1 -1
- package/lib/cjs/icons/generated/custom/ScienceMolecule.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Select.js +1 -1
- package/lib/cjs/icons/generated/custom/Select.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Shrink.js +1 -1
- package/lib/cjs/icons/generated/custom/Shrink.js.map +1 -1
- package/lib/cjs/icons/generated/custom/SidebarLineLeft.js +1 -1
- package/lib/cjs/icons/generated/custom/SidebarLineLeft.js.map +1 -1
- package/lib/cjs/icons/generated/custom/SidebarLineRight.js +1 -1
- package/lib/cjs/icons/generated/custom/SidebarLineRight.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Square.js +1 -1
- package/lib/cjs/icons/generated/custom/Square.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Status.js +1 -1
- package/lib/cjs/icons/generated/custom/Status.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Text.js +1 -1
- package/lib/cjs/icons/generated/custom/Text.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Triangle.js +1 -1
- package/lib/cjs/icons/generated/custom/Triangle.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Underline.js +1 -1
- package/lib/cjs/icons/generated/custom/Underline.js.map +1 -1
- package/lib/cjs/icons/generated/custom/VisualizeBloom.js +1 -1
- package/lib/cjs/icons/generated/custom/VisualizeBloom.js.map +1 -1
- package/lib/cjs/icons/generated/custom/index.js +5 -1
- package/lib/cjs/icons/generated/custom/index.js.map +1 -1
- package/lib/cjs/icons/generated/heroIcons.js +2949 -1184
- package/lib/cjs/icons/generated/heroIcons.js.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/table/Components.js +24 -3
- package/lib/cjs/table/Components.js.map +1 -1
- package/lib/cjs/tag/Tag.js +5 -3
- package/lib/cjs/tag/Tag.js.map +1 -1
- package/lib/cjs/tip/Tip.js.map +1 -1
- package/lib/cjs/toast/Toast.js +153 -0
- package/lib/cjs/toast/Toast.js.map +1 -0
- package/lib/cjs/toast/index.js +38 -0
- package/lib/cjs/toast/index.js.map +1 -0
- package/lib/cjs/toast/sonner-types.js +40 -0
- package/lib/cjs/toast/sonner-types.js.map +1 -0
- package/lib/esm/code-block/CodeBlock.js +1 -1
- package/lib/esm/code-block/CodeBlock.js.map +1 -1
- package/lib/esm/dropdown/Dropdown.js +56 -27
- package/lib/esm/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/dropdown/Overrides.js +3 -2
- package/lib/esm/dropdown/Overrides.js.map +1 -1
- package/lib/esm/icons/generated/custom/AddNode.js +1 -1
- package/lib/esm/icons/generated/custom/AddNode.js.map +1 -1
- package/lib/esm/icons/generated/custom/AlignBottom.js +1 -1
- package/lib/esm/icons/generated/custom/AlignBottom.js.map +1 -1
- package/lib/esm/icons/generated/custom/AlignCenter.js +1 -1
- package/lib/esm/icons/generated/custom/AlignCenter.js.map +1 -1
- package/lib/esm/icons/generated/custom/AlignTop.js +1 -1
- package/lib/esm/icons/generated/custom/AlignTop.js.map +1 -1
- package/lib/esm/icons/generated/custom/Bold.js +1 -1
- package/lib/esm/icons/generated/custom/Bold.js.map +1 -1
- package/lib/esm/icons/generated/custom/BoxSelect.js +1 -1
- package/lib/esm/icons/generated/custom/BoxSelect.js.map +1 -1
- package/lib/esm/icons/generated/custom/Circle.js +1 -1
- package/lib/esm/icons/generated/custom/Circle.js.map +1 -1
- package/lib/esm/icons/generated/custom/CollapseExpand.js +1 -1
- package/lib/esm/icons/generated/custom/CollapseExpand.js.map +1 -1
- package/lib/esm/icons/generated/custom/CollapseExpandLeft.js +1 -1
- package/lib/esm/icons/generated/custom/CollapseExpandLeft.js.map +1 -1
- package/lib/esm/icons/generated/custom/CollapseExpandRight.js +1 -1
- package/lib/esm/icons/generated/custom/CollapseExpandRight.js.map +1 -1
- package/lib/esm/icons/generated/custom/Configure.js +1 -1
- package/lib/esm/icons/generated/custom/Configure.js.map +1 -1
- package/lib/esm/icons/generated/custom/DatabaseAddCircle.js +1 -1
- package/lib/esm/icons/generated/custom/DatabaseAddCircle.js.map +1 -1
- package/lib/esm/icons/generated/custom/Dbms.js +1 -1
- package/lib/esm/icons/generated/custom/Dbms.js.map +1 -1
- package/lib/esm/icons/generated/custom/Drag.js +1 -1
- package/lib/esm/icons/generated/custom/Drag.js.map +1 -1
- package/lib/esm/icons/generated/custom/Expand.js +1 -1
- package/lib/esm/icons/generated/custom/Expand.js.map +1 -1
- package/lib/esm/icons/generated/custom/ExternalLink.js +1 -1
- package/lib/esm/icons/generated/custom/ExternalLink.js.map +1 -1
- package/lib/esm/icons/generated/custom/FitToScreen.js +1 -1
- package/lib/esm/icons/generated/custom/FitToScreen.js.map +1 -1
- package/lib/esm/icons/generated/custom/FolderBookmark.js +1 -1
- package/lib/esm/icons/generated/custom/FolderBookmark.js.map +1 -1
- package/lib/esm/icons/generated/custom/Github.js +1 -1
- package/lib/esm/icons/generated/custom/Github.js.map +1 -1
- package/lib/esm/icons/generated/custom/Heirarchy2.js +1 -1
- package/lib/esm/icons/generated/custom/Heirarchy2.js.map +1 -1
- package/lib/esm/icons/generated/custom/Hierarchy1.js +1 -1
- package/lib/esm/icons/generated/custom/Hierarchy1.js.map +1 -1
- package/lib/esm/icons/generated/custom/Hierarchy2.js +1 -1
- package/lib/esm/icons/generated/custom/Hierarchy2.js.map +1 -1
- package/lib/esm/icons/generated/custom/Italic.js +1 -1
- package/lib/esm/icons/generated/custom/Italic.js.map +1 -1
- package/lib/esm/icons/generated/custom/Lasso.js +1 -1
- package/lib/esm/icons/generated/custom/Lasso.js.map +1 -1
- package/lib/esm/icons/generated/custom/Neo4JIconBlack.js +1 -1
- package/lib/esm/icons/generated/custom/Neo4JIconBlack.js.map +1 -1
- package/lib/esm/icons/generated/custom/Neo4JIconColor.js +1 -1
- package/lib/esm/icons/generated/custom/Neo4JIconColor.js.map +1 -1
- package/lib/esm/icons/generated/custom/Neo4JIconWhite.js +1 -1
- package/lib/esm/icons/generated/custom/Neo4JIconWhite.js.map +1 -1
- package/lib/esm/icons/generated/custom/Neo4JLogoBlack.js +1 -1
- package/lib/esm/icons/generated/custom/Neo4JLogoBlack.js.map +1 -1
- package/lib/esm/icons/generated/custom/Neo4JLogoColor.js +1 -1
- package/lib/esm/icons/generated/custom/Neo4JLogoColor.js.map +1 -1
- package/lib/esm/icons/generated/custom/Neo4JLogoWhite.js +1 -1
- package/lib/esm/icons/generated/custom/Neo4JLogoWhite.js.map +1 -1
- package/lib/esm/icons/generated/custom/NomLevel.js +1 -1
- package/lib/esm/icons/generated/custom/NomLevel.js.map +1 -1
- package/lib/esm/icons/generated/custom/Pan.js +1 -1
- package/lib/esm/icons/generated/custom/Pan.js.map +1 -1
- package/lib/esm/icons/generated/custom/Pin.js +1 -1
- package/lib/esm/icons/generated/custom/Pin.js.map +1 -1
- package/lib/esm/icons/generated/custom/PlanView.js +1 -1
- package/lib/esm/icons/generated/custom/PlanView.js.map +1 -1
- package/lib/esm/icons/generated/custom/Presentation.js +1 -1
- package/lib/esm/icons/generated/custom/Presentation.js.map +1 -1
- package/lib/esm/icons/generated/custom/QueryBrowser.js +1 -1
- package/lib/esm/icons/generated/custom/QueryBrowser.js.map +1 -1
- package/lib/esm/icons/generated/custom/ResetZoom.js +1 -1
- package/lib/esm/icons/generated/custom/ResetZoom.js.map +1 -1
- package/lib/esm/icons/generated/custom/ResizeCorner.js +1 -1
- package/lib/esm/icons/generated/custom/ResizeCorner.js.map +1 -1
- package/lib/esm/icons/generated/custom/Rhombus.js +1 -1
- package/lib/esm/icons/generated/custom/Rhombus.js.map +1 -1
- package/lib/esm/icons/generated/custom/ScienceMolecule.js +1 -1
- package/lib/esm/icons/generated/custom/ScienceMolecule.js.map +1 -1
- package/lib/esm/icons/generated/custom/Select.js +1 -1
- package/lib/esm/icons/generated/custom/Select.js.map +1 -1
- package/lib/esm/icons/generated/custom/Shrink.js +1 -1
- package/lib/esm/icons/generated/custom/Shrink.js.map +1 -1
- package/lib/esm/icons/generated/custom/SidebarLineLeft.js +1 -1
- package/lib/esm/icons/generated/custom/SidebarLineLeft.js.map +1 -1
- package/lib/esm/icons/generated/custom/SidebarLineRight.js +1 -1
- package/lib/esm/icons/generated/custom/SidebarLineRight.js.map +1 -1
- package/lib/esm/icons/generated/custom/Square.js +1 -1
- package/lib/esm/icons/generated/custom/Square.js.map +1 -1
- package/lib/esm/icons/generated/custom/Status.js +1 -1
- package/lib/esm/icons/generated/custom/Status.js.map +1 -1
- package/lib/esm/icons/generated/custom/Text.js +1 -1
- package/lib/esm/icons/generated/custom/Text.js.map +1 -1
- package/lib/esm/icons/generated/custom/Triangle.js +1 -1
- package/lib/esm/icons/generated/custom/Triangle.js.map +1 -1
- package/lib/esm/icons/generated/custom/Underline.js +1 -1
- package/lib/esm/icons/generated/custom/Underline.js.map +1 -1
- package/lib/esm/icons/generated/custom/VisualizeBloom.js +1 -1
- package/lib/esm/icons/generated/custom/VisualizeBloom.js.map +1 -1
- package/lib/esm/icons/generated/custom/index.js +2 -0
- package/lib/esm/icons/generated/custom/index.js.map +1 -1
- package/lib/esm/icons/generated/heroIcons.js +2933 -584
- package/lib/esm/icons/generated/heroIcons.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/table/Components.js +24 -3
- package/lib/esm/table/Components.js.map +1 -1
- package/lib/esm/tag/Tag.js +5 -3
- package/lib/esm/tag/Tag.js.map +1 -1
- package/lib/esm/tip/Tip.js.map +1 -1
- package/lib/esm/toast/Toast.js +146 -0
- package/lib/esm/toast/Toast.js.map +1 -0
- package/lib/esm/toast/index.js +22 -0
- package/lib/esm/toast/index.js.map +1 -0
- package/lib/esm/toast/sonner-types.js +36 -0
- package/lib/esm/toast/sonner-types.js.map +1 -0
- package/lib/types/data-grid/datagrid-types.d.ts +1 -1
- package/lib/types/dropdown/Overrides.d.ts +1 -1
- package/lib/types/dropdown/types.d.ts +3 -1
- package/lib/types/icons/generated/custom/index.d.ts +2 -0
- package/lib/types/icons/generated/heroIcons.d.ts +2338 -584
- package/lib/types/index.d.ts +1 -0
- package/lib/types/table/Components.d.ts +1 -2
- package/lib/types/tag/Tag.d.ts +2 -0
- package/lib/types/tip/Tip.d.ts +19 -18
- package/lib/types/toast/Toast.d.ts +118 -0
- package/lib/types/toast/index.d.ts +21 -0
- package/lib/types/toast/sonner-types.d.ts +179 -0
- package/package.json +26 -28
- package/CHANGELOG.md +0 -1960
package/lib/types/index.d.ts
CHANGED
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
* You should have received a copy of the GNU General Public License
|
|
20
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
21
|
*/
|
|
22
|
-
import { type Cell, type Header as HeaderType, type Row, type RowData } from '@tanstack/react-table';
|
|
23
|
-
import { type SortingColumn } from '@tanstack/table-core';
|
|
22
|
+
import { type Cell, type Header as HeaderType, type Row, type RowData, type SortingColumn } from '@tanstack/react-table';
|
|
24
23
|
import { type ElementBase } from '../helpers';
|
|
25
24
|
export interface CommonInnerProps<T = HTMLDivElement> {
|
|
26
25
|
/** Children are surfaced to allow easy overriding */
|
package/lib/types/tag/Tag.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export interface CommonTagProps extends ElementBase {
|
|
|
31
31
|
children: string | React.ReactNode;
|
|
32
32
|
/** Type of the tag */
|
|
33
33
|
type?: 'destructive' | 'default';
|
|
34
|
+
/** Size of the tag */
|
|
35
|
+
size?: 'small' | 'medium' | 'large';
|
|
34
36
|
}
|
|
35
37
|
export interface RemoveableTagProps extends CommonTagProps {
|
|
36
38
|
/** Adds a "x" icon is set to true */
|
package/lib/types/tip/Tip.d.ts
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import { FloatingPortal, type Side } from '@floating-ui/react';
|
|
22
|
+
import * as floatingUiReactDom from '@floating-ui/react-dom';
|
|
22
23
|
import React, { type ComponentProps } from 'react';
|
|
23
24
|
import { type ElementBase } from '../helpers';
|
|
24
25
|
import { Typography } from '../typography';
|
|
@@ -35,30 +36,30 @@ export interface TipProps {
|
|
|
35
36
|
onOpenChange?: (isOpen: boolean, event?: Event) => void;
|
|
36
37
|
}
|
|
37
38
|
export declare function useTip({ allowedPlacements, isOpen: controlledOpen, isDisabled, onOpenChange: setControlledOpen, type, }?: TipProps): {
|
|
38
|
-
placement:
|
|
39
|
-
strategy:
|
|
40
|
-
middlewareData:
|
|
39
|
+
placement: floatingUiReactDom.Placement;
|
|
40
|
+
strategy: floatingUiReactDom.Strategy;
|
|
41
|
+
middlewareData: floatingUiReactDom.MiddlewareData;
|
|
41
42
|
x: number;
|
|
42
43
|
y: number;
|
|
43
44
|
isPositioned: boolean;
|
|
44
45
|
update: () => void;
|
|
45
46
|
floatingStyles: React.CSSProperties;
|
|
46
47
|
refs: {
|
|
47
|
-
reference: React.MutableRefObject<
|
|
48
|
+
reference: React.MutableRefObject<floatingUiReactDom.ReferenceType | null>;
|
|
48
49
|
floating: React.MutableRefObject<HTMLElement | null>;
|
|
49
|
-
setReference: (node:
|
|
50
|
+
setReference: (node: floatingUiReactDom.ReferenceType | null) => void;
|
|
50
51
|
setFloating: (node: HTMLElement | null) => void;
|
|
51
52
|
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
52
53
|
elements: {
|
|
53
|
-
reference:
|
|
54
|
+
reference: floatingUiReactDom.ReferenceType | null;
|
|
54
55
|
floating: HTMLElement | null;
|
|
55
56
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
56
57
|
context: {
|
|
57
|
-
placement: import("@floating-ui/utils").Placement;
|
|
58
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
59
58
|
x: number;
|
|
60
59
|
y: number;
|
|
61
|
-
|
|
60
|
+
placement: floatingUiReactDom.Placement;
|
|
61
|
+
strategy: floatingUiReactDom.Strategy;
|
|
62
|
+
middlewareData: floatingUiReactDom.MiddlewareData;
|
|
62
63
|
isPositioned: boolean;
|
|
63
64
|
update: () => void;
|
|
64
65
|
floatingStyles: React.CSSProperties;
|
|
@@ -79,30 +80,30 @@ export declare function useTip({ allowedPlacements, isOpen: controlledOpen, isDi
|
|
|
79
80
|
type: "tooltip" | "toggletip";
|
|
80
81
|
};
|
|
81
82
|
export declare const useTipContext: () => {
|
|
82
|
-
placement:
|
|
83
|
-
strategy:
|
|
84
|
-
middlewareData:
|
|
83
|
+
placement: floatingUiReactDom.Placement;
|
|
84
|
+
strategy: floatingUiReactDom.Strategy;
|
|
85
|
+
middlewareData: floatingUiReactDom.MiddlewareData;
|
|
85
86
|
x: number;
|
|
86
87
|
y: number;
|
|
87
88
|
isPositioned: boolean;
|
|
88
89
|
update: () => void;
|
|
89
90
|
floatingStyles: React.CSSProperties;
|
|
90
91
|
refs: {
|
|
91
|
-
reference: React.MutableRefObject<
|
|
92
|
+
reference: React.MutableRefObject<floatingUiReactDom.ReferenceType | null>;
|
|
92
93
|
floating: React.MutableRefObject<HTMLElement | null>;
|
|
93
|
-
setReference: (node:
|
|
94
|
+
setReference: (node: floatingUiReactDom.ReferenceType | null) => void;
|
|
94
95
|
setFloating: (node: HTMLElement | null) => void;
|
|
95
96
|
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
96
97
|
elements: {
|
|
97
|
-
reference:
|
|
98
|
+
reference: floatingUiReactDom.ReferenceType | null;
|
|
98
99
|
floating: HTMLElement | null;
|
|
99
100
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
100
101
|
context: {
|
|
101
|
-
placement: import("@floating-ui/utils").Placement;
|
|
102
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
103
102
|
x: number;
|
|
104
103
|
y: number;
|
|
105
|
-
|
|
104
|
+
placement: floatingUiReactDom.Placement;
|
|
105
|
+
strategy: floatingUiReactDom.Strategy;
|
|
106
|
+
middlewareData: floatingUiReactDom.MiddlewareData;
|
|
106
107
|
isPositioned: boolean;
|
|
107
108
|
update: () => void;
|
|
108
109
|
floatingStyles: React.CSSProperties;
|
|
@@ -0,0 +1,118 @@
|
|
|
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, { type ReactNode } from 'react';
|
|
22
|
+
import { toast as sonnerToast } from 'sonner';
|
|
23
|
+
import type { ExternalToast as SonnerExternalToast, ToasterProps as SonnerToasterProps } from './sonner-types';
|
|
24
|
+
type ToastVariants = 'neutral' | 'success' | 'danger' | 'loading-spinner' | 'progress-bar';
|
|
25
|
+
type ToastCommandVariants = 'neutral' | 'success' | 'danger' | 'loadingSpinner' | 'progressBar';
|
|
26
|
+
type ToastId = string | number;
|
|
27
|
+
interface BaseToastProps {
|
|
28
|
+
/** Reference to the toast custom container. */
|
|
29
|
+
ref?: React.ForwardedRef<HTMLDivElement>;
|
|
30
|
+
/** If `true` a close button will be displayed in the toast. */
|
|
31
|
+
isCloseable?: boolean;
|
|
32
|
+
/** If `true` the toast will close when the action button is triggered. */
|
|
33
|
+
shouldCloseOnAction?: boolean;
|
|
34
|
+
/** Function that will be called when the toast is closed. */
|
|
35
|
+
onClose?: (id: ToastId) => void;
|
|
36
|
+
/** If true the toast will close automatically after a certain time. */
|
|
37
|
+
shouldAutoClose?: boolean;
|
|
38
|
+
/** Function that will be called when the toast is automatically closed. */
|
|
39
|
+
onAutoClose?: (id: ToastId) => void;
|
|
40
|
+
/** If set an action button will be displayed. The value here will be displayed
|
|
41
|
+
* in the action button. If this is set the toast property `shouldAutoClose` will
|
|
42
|
+
* automatically be set to `false` unless overridden. */
|
|
43
|
+
actionLabel?: string;
|
|
44
|
+
/** Function that will be called when the action button is clicked. */
|
|
45
|
+
onAction?: (id: ToastId) => void;
|
|
46
|
+
/** If a dev wishes to set the underlying framework props (Sonner Toast).
|
|
47
|
+
* https://sonner.emilkowal.ski/toast#api-reference */
|
|
48
|
+
sonnerToastProps?: SonnerExternalToast;
|
|
49
|
+
}
|
|
50
|
+
interface ToastNeutralProps extends BaseToastProps {
|
|
51
|
+
icon?: ReactNode;
|
|
52
|
+
}
|
|
53
|
+
interface ToastSuccessProps extends BaseToastProps {
|
|
54
|
+
}
|
|
55
|
+
interface ToastDangerProps extends BaseToastProps {
|
|
56
|
+
}
|
|
57
|
+
interface ToastLoadingSpinnerProps extends BaseToastProps {
|
|
58
|
+
}
|
|
59
|
+
interface ToastProgressBarProps extends BaseToastProps {
|
|
60
|
+
icon?: ReactNode;
|
|
61
|
+
initialProgressBarValue?: number;
|
|
62
|
+
}
|
|
63
|
+
type ToastVariantsProps = ToastNeutralProps | ToastSuccessProps | ToastDangerProps | ToastLoadingSpinnerProps | ToastProgressBarProps;
|
|
64
|
+
interface ToasterProps extends Pick<SonnerToasterProps, 'position' | 'visibleToasts' | 'className'> {
|
|
65
|
+
sonnerToasterProps?: SonnerToasterProps;
|
|
66
|
+
}
|
|
67
|
+
declare const Toaster: (props: ToasterProps) => import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
type ToastElement = ToastVariantsProps & {
|
|
69
|
+
icon: ReactNode;
|
|
70
|
+
id: ToastId;
|
|
71
|
+
variant: ToastVariants;
|
|
72
|
+
text: ReactNode;
|
|
73
|
+
initialProgressBarValue?: number;
|
|
74
|
+
};
|
|
75
|
+
declare const Toast: React.ForwardRefExoticComponent<(Omit<ToastNeutralProps & {
|
|
76
|
+
icon: ReactNode;
|
|
77
|
+
id: ToastId;
|
|
78
|
+
variant: ToastVariants;
|
|
79
|
+
text: ReactNode;
|
|
80
|
+
initialProgressBarValue?: number | undefined;
|
|
81
|
+
}, "ref"> | Omit<ToastSuccessProps & {
|
|
82
|
+
icon: ReactNode;
|
|
83
|
+
id: ToastId;
|
|
84
|
+
variant: ToastVariants;
|
|
85
|
+
text: ReactNode;
|
|
86
|
+
initialProgressBarValue?: number | undefined;
|
|
87
|
+
}, "ref"> | Omit<ToastDangerProps & {
|
|
88
|
+
icon: ReactNode;
|
|
89
|
+
id: ToastId;
|
|
90
|
+
variant: ToastVariants;
|
|
91
|
+
text: ReactNode;
|
|
92
|
+
initialProgressBarValue?: number | undefined;
|
|
93
|
+
}, "ref"> | Omit<ToastLoadingSpinnerProps & {
|
|
94
|
+
icon: ReactNode;
|
|
95
|
+
id: ToastId;
|
|
96
|
+
variant: ToastVariants;
|
|
97
|
+
text: ReactNode;
|
|
98
|
+
initialProgressBarValue?: number | undefined;
|
|
99
|
+
}, "ref"> | Omit<ToastProgressBarProps & {
|
|
100
|
+
icon: ReactNode;
|
|
101
|
+
id: ToastId;
|
|
102
|
+
variant: ToastVariants;
|
|
103
|
+
text: ReactNode;
|
|
104
|
+
initialProgressBarValue?: number | undefined;
|
|
105
|
+
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
106
|
+
interface Toast {
|
|
107
|
+
neutral: (text: ReactNode, props?: ToastNeutralProps) => ToastId;
|
|
108
|
+
success: (text: ReactNode, props?: ToastSuccessProps) => ToastId;
|
|
109
|
+
danger: (text: ReactNode, props?: ToastDangerProps) => ToastId;
|
|
110
|
+
loadingSpinner: (text: ReactNode, props?: ToastLoadingSpinnerProps) => ToastId;
|
|
111
|
+
progressBar: (text: ReactNode, props?: ToastProgressBarProps) => ToastId;
|
|
112
|
+
updateProgressBarValue: (id: ToastId, value: number) => void;
|
|
113
|
+
close: (id: ToastId) => void;
|
|
114
|
+
sonnerToast: typeof sonnerToast;
|
|
115
|
+
}
|
|
116
|
+
declare const toast: Toast;
|
|
117
|
+
export { Toaster, toast };
|
|
118
|
+
export type { ToasterProps, ToastVariants, ToastCommandVariants, ToastNeutralProps, ToastSuccessProps, ToastDangerProps, ToastLoadingSpinnerProps, ToastProgressBarProps, ToastVariantsProps, ToastElement, };
|
|
@@ -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 './Toast';
|
|
@@ -0,0 +1,179 @@
|
|
|
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 React from 'react';
|
|
22
|
+
export type ToastTypes = 'normal' | 'action' | 'success' | 'info' | 'warning' | 'error' | 'loading' | 'default';
|
|
23
|
+
export type PromiseT<Data = any> = Promise<Data> | (() => Promise<Data>);
|
|
24
|
+
export type PromiseExternalToast = Omit<ExternalToast, 'description'>;
|
|
25
|
+
export type PromiseData<ToastData = any> = PromiseExternalToast & {
|
|
26
|
+
loading?: string | React.ReactNode;
|
|
27
|
+
success?: string | React.ReactNode | ((data: ToastData) => React.ReactNode | string);
|
|
28
|
+
error?: string | React.ReactNode | ((error: any) => React.ReactNode | string);
|
|
29
|
+
description?: string | React.ReactNode | ((data: any) => React.ReactNode | string);
|
|
30
|
+
finally?: () => void | Promise<void>;
|
|
31
|
+
};
|
|
32
|
+
export interface ToastClassnames {
|
|
33
|
+
toast?: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
loader?: string;
|
|
37
|
+
closeButton?: string;
|
|
38
|
+
cancelButton?: string;
|
|
39
|
+
actionButton?: string;
|
|
40
|
+
success?: string;
|
|
41
|
+
error?: string;
|
|
42
|
+
info?: string;
|
|
43
|
+
warning?: string;
|
|
44
|
+
loading?: string;
|
|
45
|
+
default?: string;
|
|
46
|
+
content?: string;
|
|
47
|
+
icon?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface ToastIcons {
|
|
50
|
+
success?: React.ReactNode;
|
|
51
|
+
info?: React.ReactNode;
|
|
52
|
+
warning?: React.ReactNode;
|
|
53
|
+
error?: React.ReactNode;
|
|
54
|
+
loading?: React.ReactNode;
|
|
55
|
+
}
|
|
56
|
+
interface Action {
|
|
57
|
+
label: string;
|
|
58
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
59
|
+
actionButtonStyle?: React.CSSProperties;
|
|
60
|
+
}
|
|
61
|
+
export interface ToastT {
|
|
62
|
+
id: number | string;
|
|
63
|
+
title?: string | React.ReactNode;
|
|
64
|
+
type?: ToastTypes;
|
|
65
|
+
icon?: React.ReactNode;
|
|
66
|
+
jsx?: React.ReactNode;
|
|
67
|
+
invert?: boolean;
|
|
68
|
+
closeButton?: boolean;
|
|
69
|
+
dismissible?: boolean;
|
|
70
|
+
description?: React.ReactNode;
|
|
71
|
+
duration?: number;
|
|
72
|
+
delete?: boolean;
|
|
73
|
+
important?: boolean;
|
|
74
|
+
action?: Action | React.ReactNode;
|
|
75
|
+
cancel?: Action | React.ReactNode;
|
|
76
|
+
onDismiss?: (toast: ToastT) => void;
|
|
77
|
+
onAutoClose?: (toast: ToastT) => void;
|
|
78
|
+
promise?: PromiseT;
|
|
79
|
+
cancelButtonStyle?: React.CSSProperties;
|
|
80
|
+
actionButtonStyle?: React.CSSProperties;
|
|
81
|
+
style?: React.CSSProperties;
|
|
82
|
+
unstyled?: boolean;
|
|
83
|
+
className?: string;
|
|
84
|
+
classNames?: ToastClassnames;
|
|
85
|
+
descriptionClassName?: string;
|
|
86
|
+
position?: Position;
|
|
87
|
+
}
|
|
88
|
+
export declare function isAction(action: Action | React.ReactNode): action is Action;
|
|
89
|
+
export type Position = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center';
|
|
90
|
+
export interface HeightT {
|
|
91
|
+
height: number;
|
|
92
|
+
toastId: number | string;
|
|
93
|
+
position: Position;
|
|
94
|
+
}
|
|
95
|
+
interface ToastOptions {
|
|
96
|
+
className?: string;
|
|
97
|
+
closeButton?: boolean;
|
|
98
|
+
descriptionClassName?: string;
|
|
99
|
+
style?: React.CSSProperties;
|
|
100
|
+
cancelButtonStyle?: React.CSSProperties;
|
|
101
|
+
actionButtonStyle?: React.CSSProperties;
|
|
102
|
+
duration?: number;
|
|
103
|
+
unstyled?: boolean;
|
|
104
|
+
classNames?: ToastClassnames;
|
|
105
|
+
}
|
|
106
|
+
type CnFunction = (...classes: Array<string | undefined>) => string;
|
|
107
|
+
export interface ToasterProps {
|
|
108
|
+
invert?: boolean;
|
|
109
|
+
theme?: 'light' | 'dark' | 'system';
|
|
110
|
+
position?: Position;
|
|
111
|
+
hotkey?: string[];
|
|
112
|
+
richColors?: boolean;
|
|
113
|
+
expand?: boolean;
|
|
114
|
+
duration?: number;
|
|
115
|
+
gap?: number;
|
|
116
|
+
visibleToasts?: number;
|
|
117
|
+
closeButton?: boolean;
|
|
118
|
+
toastOptions?: ToastOptions;
|
|
119
|
+
className?: string;
|
|
120
|
+
style?: React.CSSProperties;
|
|
121
|
+
offset?: string | number;
|
|
122
|
+
dir?: 'rtl' | 'ltr' | 'auto';
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated Please use the `icons` prop instead:
|
|
125
|
+
* ```jsx
|
|
126
|
+
* <Toaster
|
|
127
|
+
* icons={{ loading: <LoadingIcon /> }}
|
|
128
|
+
* />
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
loadingIcon?: React.ReactNode;
|
|
132
|
+
icons?: ToastIcons;
|
|
133
|
+
containerAriaLabel?: string;
|
|
134
|
+
pauseWhenPageIsHidden?: boolean;
|
|
135
|
+
cn?: CnFunction;
|
|
136
|
+
}
|
|
137
|
+
export interface ToastProps {
|
|
138
|
+
toast: ToastT;
|
|
139
|
+
toasts: ToastT[];
|
|
140
|
+
index: number;
|
|
141
|
+
expanded: boolean;
|
|
142
|
+
invert: boolean;
|
|
143
|
+
heights: HeightT[];
|
|
144
|
+
setHeights: React.Dispatch<React.SetStateAction<HeightT[]>>;
|
|
145
|
+
removeToast: (toast: ToastT) => void;
|
|
146
|
+
gap?: number;
|
|
147
|
+
position: Position;
|
|
148
|
+
visibleToasts: number;
|
|
149
|
+
expandByDefault: boolean;
|
|
150
|
+
closeButton: boolean;
|
|
151
|
+
interacting: boolean;
|
|
152
|
+
style?: React.CSSProperties;
|
|
153
|
+
cancelButtonStyle?: React.CSSProperties;
|
|
154
|
+
actionButtonStyle?: React.CSSProperties;
|
|
155
|
+
duration?: number;
|
|
156
|
+
className?: string;
|
|
157
|
+
unstyled?: boolean;
|
|
158
|
+
descriptionClassName?: string;
|
|
159
|
+
loadingIcon?: React.ReactNode;
|
|
160
|
+
classNames?: ToastClassnames;
|
|
161
|
+
icons?: ToastIcons;
|
|
162
|
+
closeButtonAriaLabel?: string;
|
|
163
|
+
pauseWhenPageIsHidden: boolean;
|
|
164
|
+
cn: CnFunction;
|
|
165
|
+
}
|
|
166
|
+
export declare enum SwipeStateTypes {
|
|
167
|
+
SwipedOut = "SwipedOut",
|
|
168
|
+
SwipedBack = "SwipedBack",
|
|
169
|
+
NotSwiped = "NotSwiped"
|
|
170
|
+
}
|
|
171
|
+
export type Theme = 'light' | 'dark';
|
|
172
|
+
export interface ToastToDismiss {
|
|
173
|
+
id: number | string;
|
|
174
|
+
dismiss: boolean;
|
|
175
|
+
}
|
|
176
|
+
export type ExternalToast = Omit<ToastT, 'id' | 'type' | 'title' | 'jsx' | 'delete' | 'promise'> & {
|
|
177
|
+
id?: number | string;
|
|
178
|
+
};
|
|
179
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -39,29 +39,10 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"generate-component": "node ./scripts/component-generator.js",
|
|
44
|
-
"pretest": "yarn run lint",
|
|
45
|
-
"test": "yarn test:unit && yarn test:playwright",
|
|
46
|
-
"test:unit": "vitest --run --typecheck",
|
|
47
|
-
"test:playwright": "playwright test -c playwright-component-testing.config.ts",
|
|
48
|
-
"build": "yarn build:esm && yarn build:cjs && yarn build:types",
|
|
49
|
-
"build:esm": "tsc -p tsconfig.esm.json",
|
|
50
|
-
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
51
|
-
"watch:esm": "tsc -p tsconfig.esm.json --watch",
|
|
52
|
-
"watch:cjs": "tsc -p tsconfig.cjs.json --watch",
|
|
53
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
54
|
-
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'",
|
|
55
|
-
"lint": "eslint --ext .jsx,.tsx,.js,.ts src",
|
|
56
|
-
"generate:all": "yarn generate:custom-icons && yarn generate:hero-icons",
|
|
57
|
-
"generate:custom-icons": "svgr --template svgr-template.js --index-template svgr-index-template.js --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --jsx-runtime 'automatic' --out-dir ./src/icons/generated/custom -- ../base/src/icons",
|
|
58
|
-
"generate:hero-icons": "ts-node ./scripts/generatedHeroIcons.ts"
|
|
59
|
-
},
|
|
60
42
|
"devDependencies": {
|
|
61
43
|
"@axe-core/playwright": "4.9.0",
|
|
62
44
|
"@playwright/experimental-ct-react": "1.43.1",
|
|
63
45
|
"@svgr/cli": "6.5.1",
|
|
64
|
-
"@types/node": "20.11.21",
|
|
65
46
|
"@types/react": "18.2.18",
|
|
66
47
|
"@types/react-datepicker": "^4.11.2",
|
|
67
48
|
"@types/react-dom": "18.2.7",
|
|
@@ -80,7 +61,7 @@
|
|
|
80
61
|
"vitest": "1.3.1"
|
|
81
62
|
},
|
|
82
63
|
"peerDependencies": {
|
|
83
|
-
"@heroicons/react": "2.0.
|
|
64
|
+
"@heroicons/react": "2.0.18",
|
|
84
65
|
"react": ">=16.8.0",
|
|
85
66
|
"react-dom": ">=16.8.0"
|
|
86
67
|
},
|
|
@@ -88,12 +69,12 @@
|
|
|
88
69
|
"@dnd-kit/core": "6.1.0",
|
|
89
70
|
"@dnd-kit/sortable": "8.0.0",
|
|
90
71
|
"@floating-ui/react": "0.25.1",
|
|
91
|
-
"@
|
|
72
|
+
"@floating-ui/react-dom": "2.0.1",
|
|
73
|
+
"@heroicons/react": "2.0.18",
|
|
92
74
|
"@neo4j-cypher/react-codemirror": "^1.0.1",
|
|
93
|
-
"@neo4j-ndl/base": "^2.10.0",
|
|
94
75
|
"@table-nav/core": "0.0.7",
|
|
95
76
|
"@table-nav/react": "0.0.7",
|
|
96
|
-
"@tanstack/react-table": "
|
|
77
|
+
"@tanstack/react-table": "8.17.3",
|
|
97
78
|
"classnames": "^2.3.1",
|
|
98
79
|
"date-fns": "^2.30.0",
|
|
99
80
|
"detect-browser": "^5.3.0",
|
|
@@ -107,11 +88,28 @@
|
|
|
107
88
|
"react-syntax-highlighter": "^15.5.0",
|
|
108
89
|
"react-table": "^7.7.0",
|
|
109
90
|
"react-use": "^17.4.0",
|
|
91
|
+
"sonner": "1.4.41",
|
|
110
92
|
"tinycolor2": "^1.4.2",
|
|
111
|
-
"usehooks-ts": "2.9.1"
|
|
93
|
+
"usehooks-ts": "2.9.1",
|
|
94
|
+
"@neo4j-ndl/base": "^2.11.4"
|
|
112
95
|
},
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
96
|
+
"scripts": {
|
|
97
|
+
"generate-component": "node ./scripts/component-generator.js",
|
|
98
|
+
"pretest": "pnpm lint",
|
|
99
|
+
"test": "pnpm test:unit && pnpm test:playwright",
|
|
100
|
+
"test:unit": "vitest --run --typecheck --exclude node_modules",
|
|
101
|
+
"test:playwright": "playwright test -c playwright-component-testing.config.ts",
|
|
102
|
+
"build": "pnpm build:esm && pnpm build:cjs && pnpm build:types",
|
|
103
|
+
"build:esm": "tsc -p tsconfig.esm.json",
|
|
104
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
105
|
+
"watch:esm": "tsc -p tsconfig.esm.json --watch",
|
|
106
|
+
"watch:cjs": "tsc -p tsconfig.cjs.json --watch",
|
|
107
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
108
|
+
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'",
|
|
109
|
+
"lint": "eslint --ext .jsx,.tsx,.js,.ts src",
|
|
110
|
+
"generate:all": "pnpm generate:custom-icons && pnpm generate:hero-icons",
|
|
111
|
+
"generate:custom-icons": "svgr --template svgr-template.js --index-template svgr-index-template.js --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --svg-props className=ndl-icon-svg --jsx-runtime 'automatic' --out-dir ./src/icons/generated/custom -- ../base/src/icons",
|
|
112
|
+
"generate:hero-icons": "ts-node ./scripts/generatedHeroIcons.ts",
|
|
113
|
+
"nuke:local": "npx --yes rimraf@5.0.5 .tsbuildinfo node_modules playwright-report test-results playwright/.cache"
|
|
116
114
|
}
|
|
117
115
|
}
|