@neo4j-ndl/react 1.10.4 → 1.10.6
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 +13 -0
- package/lib/LICENSES.txt +26 -0
- package/lib/NOTICE.txt +4 -0
- package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/cjs/_common/utils.js.map +1 -1
- package/lib/cjs/accordion/Accordion.js.map +1 -1
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
- package/lib/cjs/context-menu/SafeArea.js.map +1 -1
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/dialog/Dialog.js.map +1 -1
- package/lib/cjs/drawer/Drawer.js.map +1 -1
- package/lib/cjs/dropdown/Dropdown.js +1 -1
- package/lib/cjs/dropdown/Dropdown.js.map +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
- package/lib/cjs/table/Components.js +9 -10
- package/lib/cjs/table/Components.js.map +1 -1
- package/lib/cjs/table/Table.js.map +1 -1
- package/lib/cjs/table-deprecated/hooks/useSingleRowSelect.js.map +1 -1
- package/lib/cjs/tabs/Tabs.js.map +1 -1
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/textarea/Textarea.js.map +1 -1
- package/lib/cjs/tooltip/Tip.js.map +1 -1
- package/lib/cjs/view-selector/ViewSelector.js.map +1 -1
- package/lib/cjs/widget/Widget.js.map +1 -1
- package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/esm/_common/utils.js +1 -1
- package/lib/esm/_common/utils.js.map +1 -1
- package/lib/esm/accordion/Accordion.js.map +1 -1
- package/lib/esm/context-menu/ContextMenu.js.map +1 -1
- package/lib/esm/context-menu/SafeArea.js.map +1 -1
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/dialog/Dialog.js.map +1 -1
- package/lib/esm/drag-and-drop/DragAndDrop.js.map +1 -1
- package/lib/esm/drawer/Drawer.js.map +1 -1
- package/lib/esm/dropdown/Dropdown.js +1 -1
- package/lib/esm/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/dropdown/Overrides.js.map +1 -1
- package/lib/esm/helpers/forwardRef.js.map +1 -1
- package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
- package/lib/esm/table/Components.js +4 -5
- package/lib/esm/table/Components.js.map +1 -1
- package/lib/esm/table/Table.js.map +1 -1
- package/lib/esm/table-deprecated/hooks/useMultiRowSelect.js.map +1 -1
- package/lib/esm/table-deprecated/hooks/useSingleRowSelect.js.map +1 -1
- package/lib/esm/tabs/Tabs.js.map +1 -1
- package/lib/esm/text-input/TextInput.js +1 -1
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/textarea/Textarea.js.map +1 -1
- package/lib/esm/tooltip/Tip.js.map +1 -1
- package/lib/esm/typography/Typography.js.map +1 -1
- package/lib/esm/view-selector/ViewSelector.js.map +1 -1
- package/lib/esm/widget/Widget.js.map +1 -1
- package/lib/types/_common/CodeBlockWrapper.d.ts +2 -2
- package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +1 -1
- package/lib/types/_common/input/types.d.ts +1 -1
- package/lib/types/_common/utils.d.ts +1 -1
- package/lib/types/accordion/Accordion.d.ts +1 -1
- package/lib/types/banner/Banner.d.ts +1 -1
- package/lib/types/button/Button.d.ts +2 -2
- package/lib/types/button/IconButton.d.ts +1 -1
- package/lib/types/button/IconButtonArray.d.ts +1 -1
- package/lib/types/checkbox/Checkbox.d.ts +1 -1
- package/lib/types/code-block/CodeBlock.d.ts +3 -3
- package/lib/types/context-menu/ContextMenu.d.ts +1 -1
- package/lib/types/cypher-code-block/CypherCodeBlock.d.ts +2 -2
- package/lib/types/date-picker/DatePicker.d.ts +3 -3
- package/lib/types/dialog/Dialog.d.ts +2 -2
- package/lib/types/drag-and-drop/DragAndDrop.d.ts +2 -2
- package/lib/types/drag-and-drop/icons/CSV-file.d.ts +1 -1
- package/lib/types/drag-and-drop/icons/Cloud.d.ts +1 -1
- package/lib/types/drag-and-drop/icons/File.d.ts +1 -1
- package/lib/types/drag-and-drop/icons/InvalidFile.d.ts +1 -1
- package/lib/types/drawer/Drawer.d.ts +3 -3
- package/lib/types/dropdown/Dropdown.d.ts +2 -3
- package/lib/types/dropdown/Overrides.d.ts +2 -2
- package/lib/types/dropdown/types.d.ts +4 -4
- package/lib/types/helpers/forwardRef.d.ts +1 -1
- package/lib/types/icons/generated/custom/AddNode.d.ts +1 -1
- package/lib/types/icons/generated/custom/AlignBottom.d.ts +1 -1
- package/lib/types/icons/generated/custom/AlignCenter.d.ts +1 -1
- package/lib/types/icons/generated/custom/AlignTop.d.ts +1 -1
- package/lib/types/icons/generated/custom/Bold.d.ts +1 -1
- package/lib/types/icons/generated/custom/Circle.d.ts +1 -1
- package/lib/types/icons/generated/custom/CollapseExpand.d.ts +1 -1
- package/lib/types/icons/generated/custom/CollapseExpandLeft.d.ts +1 -1
- package/lib/types/icons/generated/custom/CollapseExpandRight.d.ts +1 -1
- package/lib/types/icons/generated/custom/Configure.d.ts +1 -1
- package/lib/types/icons/generated/custom/DatabaseAddCircle.d.ts +1 -1
- package/lib/types/icons/generated/custom/Dbms.d.ts +1 -1
- package/lib/types/icons/generated/custom/Drag.d.ts +1 -1
- package/lib/types/icons/generated/custom/Expand.d.ts +1 -1
- package/lib/types/icons/generated/custom/ExternalLink.d.ts +1 -1
- package/lib/types/icons/generated/custom/FitToScreen.d.ts +1 -1
- package/lib/types/icons/generated/custom/FolderBookmark.d.ts +1 -1
- package/lib/types/icons/generated/custom/Heirarchy2.d.ts +1 -1
- package/lib/types/icons/generated/custom/Hierarchy1.d.ts +1 -1
- package/lib/types/icons/generated/custom/Hierarchy2.d.ts +1 -1
- package/lib/types/icons/generated/custom/Italic.d.ts +1 -1
- package/lib/types/icons/generated/custom/NomLevel.d.ts +1 -1
- package/lib/types/icons/generated/custom/Pin.d.ts +1 -1
- package/lib/types/icons/generated/custom/PlanView.d.ts +1 -1
- package/lib/types/icons/generated/custom/Presentation.d.ts +1 -1
- package/lib/types/icons/generated/custom/QueryBrowser.d.ts +1 -1
- package/lib/types/icons/generated/custom/ResizeCorner.d.ts +1 -1
- package/lib/types/icons/generated/custom/Rhombus.d.ts +1 -1
- package/lib/types/icons/generated/custom/ScienceMolecule.d.ts +1 -1
- package/lib/types/icons/generated/custom/Shrink.d.ts +1 -1
- package/lib/types/icons/generated/custom/SidebarLineLeft.d.ts +1 -1
- package/lib/types/icons/generated/custom/SidebarLineRight.d.ts +1 -1
- package/lib/types/icons/generated/custom/Square.d.ts +1 -1
- package/lib/types/icons/generated/custom/Status.d.ts +1 -1
- package/lib/types/icons/generated/custom/Text.d.ts +1 -1
- package/lib/types/icons/generated/custom/Triangle.d.ts +1 -1
- package/lib/types/icons/generated/custom/Underline.d.ts +1 -1
- package/lib/types/icons/generated/custom/VisualizeBloom.d.ts +1 -1
- package/lib/types/label/Label.d.ts +1 -1
- package/lib/types/modal/Modal.d.ts +1 -1
- package/lib/types/radio/Radio.d.ts +1 -1
- package/lib/types/side-navigation/SideNavigation.d.ts +1 -1
- package/lib/types/status-indicator/StatusIndicator.d.ts +1 -1
- package/lib/types/switch/Switch.d.ts +1 -1
- package/lib/types/table/Components.d.ts +3 -3
- package/lib/types/table/Table.d.ts +3 -3
- package/lib/types/table/TableContext.d.ts +2 -2
- package/lib/types/table/helpers.d.ts +1 -1
- package/lib/types/table-deprecated/Table.d.ts +2 -2
- package/lib/types/table-deprecated/helpers.d.ts +1 -1
- package/lib/types/table-deprecated/hooks/hookCallbackTypes.d.ts +1 -1
- package/lib/types/table-deprecated/hooks/useMultiRowSelect.d.ts +1 -1
- package/lib/types/table-deprecated/hooks/useSingleRowSelect.d.ts +1 -1
- package/lib/types/tabs/Tabs.d.ts +1 -1
- package/lib/types/tag/Tag.d.ts +1 -1
- package/lib/types/text-input/TextInput.d.ts +3 -3
- package/lib/types/text-link/TextLink.d.ts +1 -1
- package/lib/types/textarea/Textarea.d.ts +2 -2
- package/lib/types/tooltip/SmartTooltip.d.ts +2 -2
- package/lib/types/tooltip/Tip.d.ts +4 -4
- package/lib/types/typography/Typography.d.ts +1 -1
- package/lib/types/typography/types.d.ts +1 -1
- package/lib/types/view-selector/ViewSelector.d.ts +1 -1
- package/lib/types/wizard/Wizard.d.ts +1 -1
- package/package.json +3 -2
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgScienceMolecule: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgScienceMolecule;
|
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgShrink: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgShrink;
|
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgSidebarLineLeft: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgSidebarLineLeft;
|
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgSidebarLineRight: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgSidebarLineRight;
|
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgSquare: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgSquare;
|
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgStatus: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgStatus;
|
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgText: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgText;
|
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgTriangle: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgTriangle;
|
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgUnderline: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgUnderline;
|
|
@@ -18,6 +18,6 @@
|
|
|
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
|
-
import { SVGProps } from 'react';
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
22
|
declare const SvgVisualizeBloom: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
23
23
|
export default SvgVisualizeBloom;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { ElementBase } from '../helpers';
|
|
22
|
+
import { type ElementBase } from '../helpers';
|
|
23
23
|
export declare enum ModalCloseReason {
|
|
24
24
|
BACKDROP_CLICK = "backdropClick",
|
|
25
25
|
ESCAPE_KEY_DOWN = "escapeKeyDown"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { RadioAndCheckboxProps } from '../_common/input/RadioAndCheckboxWrapper';
|
|
22
|
+
import { type RadioAndCheckboxProps } from '../_common/input/RadioAndCheckboxWrapper';
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { ElementBase } from '../helpers';
|
|
22
|
+
import { type ElementBase } from '../helpers';
|
|
23
23
|
declare type SideNavigationPosition = 'left' | 'right';
|
|
24
24
|
export interface SideNavigationProps extends ElementBase<HTMLDivElement> {
|
|
25
25
|
/** True if the menu is expanded. */
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { ElementBase } from '../helpers';
|
|
22
|
+
import { type ElementBase } from '../helpers';
|
|
23
23
|
export interface StatusIndicatorProps extends ElementBase<HTMLSpanElement> {
|
|
24
24
|
/** Status indicator type. Defaults to "unknown". */
|
|
25
25
|
type?: 'unknown' | 'success' | 'info' | 'warning' | 'danger';
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { RadioAndCheckboxProps } from '../_common/input/RadioAndCheckboxWrapper';
|
|
22
|
+
import { type RadioAndCheckboxProps } from '../_common/input/RadioAndCheckboxWrapper';
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
*
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/// <reference types="react" />
|
|
23
|
-
import type
|
|
24
|
-
import { ElementBase } from '../helpers';
|
|
25
|
-
import { SortingColumn } from '@tanstack/table-core';
|
|
23
|
+
import { type RowData, type Row, type Cell, type Header as HeaderType } from '@tanstack/react-table';
|
|
24
|
+
import { type ElementBase } from '../helpers';
|
|
25
|
+
import { type SortingColumn } from '@tanstack/table-core';
|
|
26
26
|
export interface CommonInnerProps<T = HTMLDivElement> {
|
|
27
27
|
/** Children are surfaced to allow easy overriding */
|
|
28
28
|
children?: React.ReactNode;
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="react" />
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import { type ElementBase } from '../helpers';
|
|
23
|
+
import { type Table as TableType } from '@tanstack/react-table';
|
|
24
|
+
import { type TableComponentsInterface } from './TableContext';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* Helping functions
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="react" />
|
|
22
|
-
import type
|
|
23
|
-
import { Body, BodyCell, BodyRow, TableResults, ResizingBar, Navigation, Header, Pagination, NoDataPlaceholder, LoadingPlaceholder, PaginationNumericButtons, PaginationNumericButton, HeaderCell, PaginationArrowButton, RowsPerPage, ColumnControls, SortingButton, Scrollable } from './Components';
|
|
22
|
+
import { type RowData, type Table as TableType } 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 ColumnControls, type SortingButton, type Scrollable } from './Components';
|
|
24
24
|
declare type Nullable<T> = T | null;
|
|
25
25
|
export interface TableComponentsInterface<T extends RowData> {
|
|
26
26
|
ResizingBar?: Nullable<typeof ResizingBar<T>>;
|
|
@@ -18,7 +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
|
-
import { Table } from '@tanstack/react-table';
|
|
21
|
+
import { type Table } from '@tanstack/react-table';
|
|
22
22
|
/**
|
|
23
23
|
* Modified from here: https://gist.github.com/kottenator/9d936eb3e4e3c3e02598
|
|
24
24
|
*
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="react" />
|
|
22
|
-
import { Row, UseColumnOrderState, UseExpandedState, UseFiltersState, UsePaginationState, UseGlobalFiltersState, UsePaginationInstanceProps, UseSortByInstanceProps, UseTableInstanceProps } from 'react-table';
|
|
23
|
-
import { ElementBase } from '../helpers/types';
|
|
22
|
+
import { type Row, type UseColumnOrderState, type UseExpandedState, type UseFiltersState, type UsePaginationState, type UseGlobalFiltersState, type UsePaginationInstanceProps, type UseSortByInstanceProps, type UseTableInstanceProps } from 'react-table';
|
|
23
|
+
import { type ElementBase } from '../helpers/types';
|
|
24
24
|
declare type Sections = Record<'controls' | 'header' | 'body' | 'navigation', JSX.Element | JSX.Element[]>;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="react" />
|
|
22
|
-
import { TableResizerProps } from 'react-table';
|
|
22
|
+
import { type TableResizerProps } from 'react-table';
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* React Table helper to display sorting icon
|
|
@@ -18,7 +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
|
-
import { TableInstance } from 'react-table';
|
|
21
|
+
import { type TableInstance } from 'react-table';
|
|
22
22
|
export declare type RowInstance<T extends Record<string, unknown>> = {
|
|
23
23
|
onAllRowSelect: onAllRowSelectType;
|
|
24
24
|
onRowSelect: onRowSelectType<T>;
|
|
@@ -18,7 +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
|
-
import { Hooks, UseGroupByCellProps, UseTableCellProps, UseRowStateCellProps, UseRowSelectRowProps } from 'react-table';
|
|
21
|
+
import { type Hooks, type UseGroupByCellProps, type UseTableCellProps, type UseRowStateCellProps, type UseRowSelectRowProps } from 'react-table';
|
|
22
22
|
export interface CustomCell<D extends Record<string, unknown> = Record<string, unknown>, V = any> extends UseTableCellProps<D, V>, UseGroupByCellProps<D>, UseRowSelectRowProps<D>, UseRowStateCellProps<D> {
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -18,7 +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
|
-
import { Hooks } from 'react-table';
|
|
21
|
+
import { type Hooks } from 'react-table';
|
|
22
22
|
/**
|
|
23
23
|
* A react-table plugin to support controlled selected row state for a single row
|
|
24
24
|
*
|
package/lib/types/tabs/Tabs.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 React from 'react';
|
|
22
|
-
import { ElementBase } from '../helpers';
|
|
22
|
+
import { type ElementBase } from '../helpers';
|
|
23
23
|
declare type TabId = string | number;
|
|
24
24
|
declare type Size = 'small' | 'large';
|
|
25
25
|
declare type Fill = 'underline' | 'filled';
|
package/lib/types/tag/Tag.d.ts
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
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
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
21
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
22
|
+
import { type CommonInputProps } from '../_common/input/types';
|
|
23
|
+
import { type SmartTooltipProps } from '../tooltip/SmartTooltip';
|
|
24
24
|
export interface TextInputProperties extends Omit<CommonInputProps, 'label'> {
|
|
25
25
|
/** Label text */
|
|
26
26
|
label?: ReactNode;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { ElementBase } from '../helpers';
|
|
22
|
+
import { type ElementBase } from '../helpers';
|
|
23
23
|
export interface TextLinkProps extends ElementBase<HTMLAnchorElement> {
|
|
24
24
|
/** The text of the link. */
|
|
25
25
|
children: React.ReactNode;
|
|
@@ -18,8 +18,8 @@
|
|
|
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
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
22
|
-
import { SmartTooltipProps } from '../tooltip/SmartTooltip';
|
|
21
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
22
|
+
import { type SmartTooltipProps } from '../tooltip/SmartTooltip';
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
*
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import type
|
|
23
|
-
import { TooltipProps } from './Tooltip';
|
|
22
|
+
import { type Side } from '@floating-ui/core/src/types';
|
|
23
|
+
import { type TooltipProps } from './Tooltip';
|
|
24
24
|
export interface SmartTooltipProps extends Omit<TooltipProps, 'arrowPosition'> {
|
|
25
25
|
/** Allowed places of the tooltip */
|
|
26
26
|
allowedPlacements?: Side[];
|
|
@@ -18,10 +18,10 @@
|
|
|
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
|
-
import React, { ReactNode } from 'react';
|
|
22
|
-
import type
|
|
23
|
-
import { TooltipProps } from './Tooltip';
|
|
24
|
-
import type
|
|
21
|
+
import React, { type ReactNode } from 'react';
|
|
22
|
+
import { type Side } from '@floating-ui/core/src/types';
|
|
23
|
+
import { type TooltipProps } from './Tooltip';
|
|
24
|
+
import { type PressEvent } from '@react-types/shared';
|
|
25
25
|
export interface ToggletipActionProps extends Omit<React.HTMLProps<HTMLAnchorElement>, 'onClick'> {
|
|
26
26
|
/** Label of the action item */
|
|
27
27
|
label: string;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="react" />
|
|
22
|
-
import { AsType, ConditionalTypography } from './types';
|
|
22
|
+
import { type AsType, type ConditionalTypography } from './types';
|
|
23
23
|
export declare const Typography: <TVar extends "label" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subheading-large" | "subheading-medium" | "subheading-small" | "body-large" | "body-medium" | "body-small", TAs extends AsType = undefined>(props: {
|
|
24
24
|
as?: TAs | undefined;
|
|
25
25
|
variant: TVar;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="react" />
|
|
22
|
-
import { tokens } from '@neo4j-ndl/base';
|
|
22
|
+
import { type tokens } from '@neo4j-ndl/base';
|
|
23
23
|
export declare type TypographyVariants = keyof typeof tokens.font.size;
|
|
24
24
|
export declare const TypographyDefaultMapping: {
|
|
25
25
|
[key in TypographyVariants]: React.ElementType;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="react" />
|
|
22
|
-
import { ElementBase } from '../helpers';
|
|
22
|
+
import { type ElementBase } from '../helpers';
|
|
23
23
|
export declare const Horizontal: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => JSX.Element;
|
|
24
24
|
export declare const Vertical: ({ activeStep, steps, ...props }: Omit<WizardProps, 'type'>) => JSX.Element;
|
|
25
25
|
export declare const Footer: ({ 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.10.
|
|
3
|
+
"version": "1.10.6",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"babel-jest": "^27.3.1",
|
|
73
73
|
"eslint": "^8.3.0",
|
|
74
74
|
"eslint-config-prettier": "^8.3.0",
|
|
75
|
+
"eslint-plugin-import": "2.28.1",
|
|
75
76
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
76
77
|
"eslint-plugin-prettier": "^4.0.0",
|
|
77
78
|
"eslint-plugin-react": "^7.27.1",
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
"@floating-ui/react": "^0.24.2",
|
|
94
95
|
"@heroicons/react": "2.0.13",
|
|
95
96
|
"@neo4j-cypher/react-codemirror": "^1.0.1",
|
|
96
|
-
"@neo4j-ndl/base": "^1.10.
|
|
97
|
+
"@neo4j-ndl/base": "^1.10.2",
|
|
97
98
|
"@tanstack/react-table": "^8.9.3",
|
|
98
99
|
"classnames": "^2.3.1",
|
|
99
100
|
"date-fns": "^2.30.0",
|