@neo4j-ndl/react 2.9.1 → 2.9.3
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 +18 -0
- package/lib/LICENSES.txt +292 -37
- package/lib/NOTICE.txt +34 -14
- package/lib/cjs/_common/CodeBlockWrapper.js +1 -1
- package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/cjs/_common/defaultImports.js +5 -5
- package/lib/cjs/_common/defaultImports.js.map +1 -1
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +5 -1
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/cjs/_common/input/types.js +2 -1
- package/lib/cjs/_common/input/types.js.map +1 -1
- package/lib/cjs/_common/utils.js +6 -2
- package/lib/cjs/_common/utils.js.map +1 -1
- package/lib/cjs/accordion/Accordion.js +4 -2
- package/lib/cjs/accordion/Accordion.js.map +1 -1
- package/lib/cjs/avatar/Avatar.js +2 -2
- package/lib/cjs/avatar/Avatar.js.map +1 -1
- package/lib/cjs/banner/Banner.js +2 -2
- package/lib/cjs/banner/Banner.js.map +1 -1
- package/lib/cjs/breadcrumbs/Breadcrumbs.js +2 -2
- package/lib/cjs/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/lib/cjs/button/Button.js +28 -27
- package/lib/cjs/button/Button.js.map +1 -1
- package/lib/cjs/button/IconButton.js +4 -4
- package/lib/cjs/button/IconButton.js.map +1 -1
- package/lib/cjs/button/IconButtonArray.js.map +1 -1
- package/lib/cjs/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/clipboard-copier/ClipboardButton.js +2 -2
- package/lib/cjs/clipboard-copier/ClipboardButton.js.map +1 -1
- package/lib/cjs/code-block/CodeBlock.js +1 -15
- package/lib/cjs/code-block/CodeBlock.js.map +1 -1
- package/lib/cjs/context-menu/ContextMenu.js +5 -4
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
- package/lib/cjs/context-menu/SafeArea.js +1 -1
- package/lib/cjs/context-menu/SafeArea.js.map +1 -1
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js +1 -1
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +1 -1
- package/lib/cjs/data-grid/Components.js +7 -5
- package/lib/cjs/data-grid/Components.js.map +1 -1
- package/lib/cjs/data-grid/DataGrid.js +7 -7
- package/lib/cjs/data-grid/DataGrid.js.map +1 -1
- package/lib/cjs/data-grid/DataGridContext.js +3 -1
- package/lib/cjs/data-grid/DataGridContext.js.map +1 -1
- package/lib/cjs/data-grid/datagrid-types.js +2 -1
- package/lib/cjs/data-grid/datagrid-types.js.map +1 -1
- package/lib/cjs/data-grid/helpers.js +2 -1
- package/lib/cjs/data-grid/helpers.js.map +1 -1
- package/lib/cjs/data-grid/index.js +24 -24
- package/lib/cjs/data-grid/index.js.map +1 -1
- package/lib/cjs/date-picker/DatePicker.js +4 -3
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/dialog/Dialog.js +1 -1
- package/lib/cjs/dialog/Dialog.js.map +1 -1
- package/lib/cjs/drawer/Drawer.js +8 -8
- package/lib/cjs/drawer/Drawer.js.map +1 -1
- package/lib/cjs/dropdown/Dropdown.js +7 -5
- package/lib/cjs/dropdown/Dropdown.js.map +1 -1
- package/lib/cjs/dropdown/Overrides.js +2 -1
- package/lib/cjs/dropdown/Overrides.js.map +1 -1
- package/lib/cjs/dropdown/types.js +2 -1
- package/lib/cjs/dropdown/types.js.map +1 -1
- package/lib/cjs/dropzone/Dropzone.js +4 -4
- package/lib/cjs/dropzone/Dropzone.js.map +1 -1
- package/lib/cjs/dropzone/icons/CSV-file.js.map +1 -1
- package/lib/cjs/dropzone/icons/Cloud.js.map +1 -1
- package/lib/cjs/dropzone/icons/File.js.map +1 -1
- package/lib/cjs/dropzone/icons/InvalidFile.js.map +1 -1
- package/lib/cjs/graph-label/GraphLabel.js +1 -1
- package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
- package/lib/cjs/graph-label/color.js +6 -6
- package/lib/cjs/graph-label/color.js.map +1 -1
- package/lib/cjs/helpers/forwardRef.js +2 -2
- package/lib/cjs/helpers/forwardRef.js.map +1 -1
- package/lib/cjs/hooks/index.js +5 -3
- package/lib/cjs/hooks/index.js.map +1 -1
- package/lib/cjs/icons/generated/custom/ResetZoom.js +27 -0
- package/lib/cjs/icons/generated/custom/ResetZoom.js.map +1 -0
- package/lib/cjs/inline-edit/InlineEdit.js +4 -4
- package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
- package/lib/cjs/label/Label.js.map +1 -1
- package/lib/cjs/layout/Box.js.map +1 -1
- package/lib/cjs/layout/Flex.js +1 -1
- package/lib/cjs/layout/Flex.js.map +1 -1
- package/lib/cjs/layout/types.js +2 -2
- package/lib/cjs/layout/types.js.map +1 -1
- package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/cjs/logo/Logo.js +1 -1
- package/lib/cjs/logo/Logo.js.map +1 -1
- package/lib/cjs/modal/Modal.js +2 -2
- package/lib/cjs/modal/Modal.js.map +1 -1
- package/lib/cjs/popover/Popover.js +5 -4
- package/lib/cjs/popover/Popover.js.map +1 -1
- package/lib/cjs/portal/Portal.js +2 -2
- package/lib/cjs/portal/Portal.js.map +1 -1
- package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
- package/lib/cjs/radio/Radio.js.map +1 -1
- package/lib/cjs/segmented-control/SegmentedControl.js +3 -1
- package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js +5 -2
- package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
- package/lib/cjs/slider/Slider.js +3 -3
- package/lib/cjs/slider/Slider.js.map +1 -1
- package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/cjs/switch/Switch.js.map +1 -1
- package/lib/cjs/table/Components.js +7 -3
- package/lib/cjs/table/Components.js.map +1 -1
- package/lib/cjs/table/Table.js +18 -17
- package/lib/cjs/table/Table.js.map +1 -1
- package/lib/cjs/table/TableContext.js +3 -1
- package/lib/cjs/table/TableContext.js.map +1 -1
- package/lib/cjs/table/helpers.js +2 -1
- package/lib/cjs/table/helpers.js.map +1 -1
- package/lib/cjs/table/index.js +24 -24
- package/lib/cjs/table/index.js.map +1 -1
- package/lib/cjs/tabs/Tabs.js +1 -0
- package/lib/cjs/tabs/Tabs.js.map +1 -1
- package/lib/cjs/tag/Tag.js +4 -2
- package/lib/cjs/tag/Tag.js.map +1 -1
- package/lib/cjs/text-input/TextInput.js +5 -3
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/text-link/TextLink.js.map +1 -1
- package/lib/cjs/textarea/Textarea.js +5 -3
- package/lib/cjs/textarea/Textarea.js.map +1 -1
- package/lib/cjs/theme/ThemeProvider.js.map +1 -1
- package/lib/cjs/theme/agnostic.js +3 -2
- package/lib/cjs/theme/agnostic.js.map +1 -1
- package/lib/cjs/tip/Tip.js +7 -5
- package/lib/cjs/tip/Tip.js.map +1 -1
- package/lib/cjs/tip/Tooltip.js.map +1 -1
- package/lib/cjs/typography/Typography.js.map +1 -1
- package/lib/cjs/typography/types.js +4 -1
- package/lib/cjs/typography/types.js.map +1 -1
- package/lib/cjs/widget/Widget.js.map +1 -1
- package/lib/cjs/wizard/Wizard.js.map +1 -1
- package/lib/esm/_common/CodeBlockWrapper.js +1 -1
- package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/esm/_common/defaultImports.js.map +1 -1
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +5 -1
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/esm/_common/input/types.js +1 -0
- package/lib/esm/_common/input/types.js.map +1 -1
- package/lib/esm/_common/utils.js +4 -0
- package/lib/esm/_common/utils.js.map +1 -1
- package/lib/esm/accordion/Accordion.js +4 -2
- package/lib/esm/accordion/Accordion.js.map +1 -1
- package/lib/esm/avatar/Avatar.js +2 -2
- package/lib/esm/avatar/Avatar.js.map +1 -1
- package/lib/esm/banner/Banner.js +2 -2
- package/lib/esm/banner/Banner.js.map +1 -1
- package/lib/esm/breadcrumbs/Breadcrumbs.js +3 -3
- package/lib/esm/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/lib/esm/button/Button.js +22 -21
- package/lib/esm/button/Button.js.map +1 -1
- package/lib/esm/button/IconButton.js +4 -4
- package/lib/esm/button/IconButton.js.map +1 -1
- package/lib/esm/button/IconButtonArray.js.map +1 -1
- package/lib/esm/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/clipboard-copier/ClipboardButton.js +2 -2
- package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
- package/lib/esm/code-block/CodeBlock.js +1 -15
- package/lib/esm/code-block/CodeBlock.js.map +1 -1
- package/lib/esm/context-menu/ContextMenu.js +5 -4
- package/lib/esm/context-menu/ContextMenu.js.map +1 -1
- package/lib/esm/context-menu/SafeArea.js +1 -1
- package/lib/esm/context-menu/SafeArea.js.map +1 -1
- package/lib/esm/cypher-code-block/CypherCodeBlock.js +1 -1
- package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +1 -1
- package/lib/esm/data-grid/Components.js +7 -5
- package/lib/esm/data-grid/Components.js.map +1 -1
- package/lib/esm/data-grid/DataGrid.js +3 -3
- package/lib/esm/data-grid/DataGrid.js.map +1 -1
- package/lib/esm/data-grid/DataGridContext.js +3 -1
- package/lib/esm/data-grid/DataGridContext.js.map +1 -1
- package/lib/esm/data-grid/datagrid-types.js +1 -0
- package/lib/esm/data-grid/datagrid-types.js.map +1 -1
- package/lib/esm/data-grid/helpers.js +1 -0
- package/lib/esm/data-grid/helpers.js.map +1 -1
- package/lib/esm/data-grid/index.js +2 -2
- package/lib/esm/data-grid/index.js.map +1 -1
- package/lib/esm/date-picker/DatePicker.js +5 -4
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/dialog/Dialog.js +1 -1
- package/lib/esm/dialog/Dialog.js.map +1 -1
- package/lib/esm/drawer/Drawer.js +7 -7
- package/lib/esm/drawer/Drawer.js.map +1 -1
- package/lib/esm/dropdown/Dropdown.js +7 -5
- package/lib/esm/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/dropdown/Overrides.js +2 -1
- package/lib/esm/dropdown/Overrides.js.map +1 -1
- package/lib/esm/dropdown/types.js +1 -0
- package/lib/esm/dropdown/types.js.map +1 -1
- package/lib/esm/dropzone/Dropzone.js +4 -4
- package/lib/esm/dropzone/Dropzone.js.map +1 -1
- package/lib/esm/dropzone/icons/CSV-file.js.map +1 -1
- package/lib/esm/dropzone/icons/Cloud.js.map +1 -1
- package/lib/esm/dropzone/icons/File.js.map +1 -1
- package/lib/esm/dropzone/icons/InvalidFile.js.map +1 -1
- package/lib/esm/graph-label/GraphLabel.js +1 -1
- package/lib/esm/graph-label/GraphLabel.js.map +1 -1
- package/lib/esm/graph-label/color.js +1 -1
- package/lib/esm/graph-label/color.js.map +1 -1
- package/lib/esm/helpers/forwardRef.js.map +1 -1
- package/lib/esm/hooks/index.js +3 -1
- package/lib/esm/hooks/index.js.map +1 -1
- package/lib/esm/icons/generated/custom/ResetZoom.js +25 -0
- package/lib/esm/icons/generated/custom/ResetZoom.js.map +1 -0
- package/lib/esm/inline-edit/InlineEdit.js +5 -5
- package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
- package/lib/esm/label/Label.js +1 -1
- package/lib/esm/label/Label.js.map +1 -1
- package/lib/esm/layout/Box.js +1 -1
- package/lib/esm/layout/Box.js.map +1 -1
- package/lib/esm/layout/Flex.js +2 -2
- package/lib/esm/layout/Flex.js.map +1 -1
- package/lib/esm/layout/types.js.map +1 -1
- package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/esm/logo/Logo.js +1 -1
- package/lib/esm/logo/Logo.js.map +1 -1
- package/lib/esm/modal/Modal.js +2 -2
- package/lib/esm/modal/Modal.js.map +1 -1
- package/lib/esm/popover/Popover.js +5 -4
- package/lib/esm/popover/Popover.js.map +1 -1
- package/lib/esm/portal/Portal.js.map +1 -1
- package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
- package/lib/esm/radio/Radio.js.map +1 -1
- package/lib/esm/segmented-control/SegmentedControl.js +3 -1
- package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/esm/side-navigation/SideNavigation.js +6 -3
- package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
- package/lib/esm/slider/Slider.js +3 -3
- package/lib/esm/slider/Slider.js.map +1 -1
- package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/esm/switch/Switch.js.map +1 -1
- package/lib/esm/table/Components.js +7 -3
- package/lib/esm/table/Components.js.map +1 -1
- package/lib/esm/table/Table.js +15 -14
- package/lib/esm/table/Table.js.map +1 -1
- package/lib/esm/table/TableContext.js +3 -1
- package/lib/esm/table/TableContext.js.map +1 -1
- package/lib/esm/table/helpers.js +1 -0
- package/lib/esm/table/helpers.js.map +1 -1
- package/lib/esm/table/index.js +2 -2
- package/lib/esm/table/index.js.map +1 -1
- package/lib/esm/tabs/Tabs.js +1 -0
- package/lib/esm/tabs/Tabs.js.map +1 -1
- package/lib/esm/tag/Tag.js +4 -2
- package/lib/esm/tag/Tag.js.map +1 -1
- package/lib/esm/text-input/TextInput.js +5 -3
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/text-link/TextLink.js.map +1 -1
- package/lib/esm/textarea/Textarea.js +5 -3
- package/lib/esm/textarea/Textarea.js.map +1 -1
- package/lib/esm/theme/ThemeProvider.js.map +1 -1
- package/lib/esm/theme/agnostic.js +1 -0
- package/lib/esm/theme/agnostic.js.map +1 -1
- package/lib/esm/tip/Tip.js +8 -6
- package/lib/esm/tip/Tip.js.map +1 -1
- package/lib/esm/tip/Tooltip.js.map +1 -1
- package/lib/esm/typography/Typography.js.map +1 -1
- package/lib/esm/typography/types.js +3 -0
- package/lib/esm/typography/types.js.map +1 -1
- package/lib/esm/widget/Widget.js.map +1 -1
- package/lib/esm/wizard/Wizard.js.map +1 -1
- package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +1 -0
- package/lib/types/_common/input/types.d.ts +1 -1
- package/lib/types/avatar/Avatar.d.ts +0 -1
- package/lib/types/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/lib/types/button/Button.d.ts +1 -1
- package/lib/types/clipboard-copier/ClipboardButton.d.ts +1 -0
- package/lib/types/context-menu/SafeArea.d.ts +1 -0
- package/lib/types/cypher-code-block/CypherCodeBlock.d.ts +2 -1
- package/lib/types/data-grid/Components.d.ts +2 -2
- package/lib/types/data-grid/DataGrid.d.ts +2 -1
- package/lib/types/data-grid/DataGridContext.d.ts +3 -3
- package/lib/types/data-grid/datagrid-types.d.ts +1 -1
- package/lib/types/data-grid/helpers.d.ts +1 -1
- package/lib/types/data-grid/index.d.ts +2 -2
- package/lib/types/date-picker/DatePicker.d.ts +2 -1
- package/lib/types/drawer/Drawer.d.ts +2 -2
- package/lib/types/dropdown/Dropdown.d.ts +1 -1
- package/lib/types/dropdown/Overrides.d.ts +1 -1
- package/lib/types/dropdown/types.d.ts +2 -2
- package/lib/types/dropzone/Dropzone.d.ts +1 -0
- package/lib/types/graph-label/GraphLabel.d.ts +1 -0
- package/lib/types/graph-label/color.d.ts +1 -0
- package/lib/types/hooks/index.d.ts +1 -0
- package/lib/types/icons/generated/custom/ResetZoom.d.ts +23 -0
- package/lib/types/inline-edit/InlineEdit.d.ts +1 -0
- package/lib/types/layout/Box.d.ts +1 -1
- package/lib/types/layout/Flex.d.ts +2 -1
- package/lib/types/layout/types.d.ts +1 -1
- package/lib/types/portal/Portal.d.ts +1 -0
- package/lib/types/slider/Slider.d.ts +0 -1
- package/lib/types/table/Components.d.ts +3 -4
- package/lib/types/table/Table.d.ts +2 -2
- package/lib/types/table/TableContext.d.ts +2 -2
- package/lib/types/table/index.d.ts +2 -2
- package/lib/types/theme/agnostic.d.ts +1 -0
- package/lib/types/tip/Tip.d.ts +1 -1
- package/lib/types/typography/Typography.d.ts +1 -0
- package/lib/types/typography/types.d.ts +1 -1
- package/lib/types/wizard/Wizard.d.ts +1 -0
- package/package.json +6 -14
|
@@ -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
|
+
|
|
21
22
|
/// <reference types="react" />
|
|
22
23
|
import { type DropzoneOptions } from 'react-dropzone';
|
|
23
24
|
import { type 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
|
+
|
|
21
22
|
import React from 'react';
|
|
22
23
|
declare const GraphLabel: React.ForwardRefExoticComponent<{
|
|
23
24
|
type: 'node' | 'relationship' | 'propertyKey';
|
|
@@ -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
|
+
|
|
21
22
|
/**
|
|
22
23
|
* Takes a color string and returns color string
|
|
23
24
|
* that is readable on top of that background. Prioritizes pallete
|
|
@@ -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
|
+
|
|
21
22
|
export { useDebounce, useWindowSize, useOnClickOutside, useInterval, useMediaQuery, useCopyToClipboard, useLockedBody, useEventListener, } from 'usehooks-ts';
|
|
22
23
|
/**
|
|
23
24
|
* Below are hooks that cannot be found in `usehooks-ts`
|
|
@@ -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 SvgResetZoom: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default SvgResetZoom;
|
|
@@ -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
|
+
|
|
21
22
|
import { type ComponentPropsWithoutRef, type InputHTMLAttributes, type ReactNode } from 'react';
|
|
22
23
|
import { type TooltipObjectProps } from '../_common/input/types';
|
|
23
24
|
import { Typography } from '../typography';
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
22
|
-
import { type CustomElementType, type
|
|
22
|
+
import { type CustomElementType, type Radius, type Spacing } from './types';
|
|
23
23
|
type BaseBoxProps<T extends CustomElementType> = {
|
|
24
24
|
/**
|
|
25
25
|
* The DOM element to render as the Box.
|
|
@@ -18,8 +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
|
+
|
|
21
22
|
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
22
|
-
import { type CustomElementType, type
|
|
23
|
+
import { type CustomElementType, type Radius, type Spacing } from './types';
|
|
23
24
|
type AllowedFlexElements = 'div' | 'span' | 'ul' | 'ol' | 'li';
|
|
24
25
|
type BaseFlexProps<T extends CustomElementType> = {
|
|
25
26
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* Copyright (c) "Neo4j"
|
|
@@ -18,7 +19,6 @@
|
|
|
18
19
|
* You should have received a copy of the GNU General Public License
|
|
19
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
21
|
*/
|
|
21
|
-
/// <reference types="react" />
|
|
22
22
|
import { tokens } from '@neo4j-ndl/base';
|
|
23
23
|
/**
|
|
24
24
|
* Currently supporting only native HTML elements.
|
|
@@ -18,7 +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
|
-
|
|
22
21
|
import React from 'react';
|
|
23
22
|
import { type ComponentPropsWithoutRefAsObj } from '../helpers';
|
|
24
23
|
export interface SliderPropsBase {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* Copyright (c) "Neo4j"
|
|
@@ -18,11 +19,9 @@
|
|
|
18
19
|
* You should have received a copy of the GNU General Public License
|
|
19
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
|
-
/// <reference types="react" />
|
|
23
|
-
import { type RowData, type Row, type Cell, type Header as HeaderType } from '@tanstack/react-table';
|
|
24
|
-
import { type ElementBase } from '../helpers';
|
|
22
|
+
import { type Cell, type Header as HeaderType, type Row, type RowData } from '@tanstack/react-table';
|
|
25
23
|
import { type SortingColumn } from '@tanstack/table-core';
|
|
24
|
+
import { type ElementBase } from '../helpers';
|
|
26
25
|
export interface CommonInnerProps<T = HTMLDivElement> {
|
|
27
26
|
/** Children are surfaced to allow easy overriding */
|
|
28
27
|
children?: React.ReactNode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* Copyright (c) "Neo4j"
|
|
@@ -18,9 +19,8 @@
|
|
|
18
19
|
* You should have received a copy of the GNU General Public License
|
|
19
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
21
|
*/
|
|
21
|
-
/// <reference types="react" />
|
|
22
|
-
import { type ElementBase } from '../helpers';
|
|
23
22
|
import { type Table as TableType } from '@tanstack/react-table';
|
|
23
|
+
import { type ElementBase } from '../helpers';
|
|
24
24
|
import { type TableComponentsInterface } from './TableContext';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* Copyright (c) "Neo4j"
|
|
@@ -18,9 +19,8 @@
|
|
|
18
19
|
* You should have received a copy of the GNU General Public License
|
|
19
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
21
|
*/
|
|
21
|
-
/// <reference types="react" />
|
|
22
22
|
import { type RowData, type Table as TableType } from '@tanstack/react-table';
|
|
23
|
-
import { type Body, type BodyCell, type BodyRow, type
|
|
23
|
+
import { type Body, type BodyCell, type BodyRow, type ColumnControls, type Header, type HeaderCell, type LoadingPlaceholder, type Navigation, type NoDataPlaceholder, type Pagination, type PaginationArrowButton, type PaginationNumericButton, type PaginationNumericButtons, type ResizingBar, type RowsPerPage, type Scrollable, type SortingButton, type TableResults } from './Components';
|
|
24
24
|
type Nullable<T> = T | null;
|
|
25
25
|
export interface TableComponentsInterface<T extends RowData> {
|
|
26
26
|
ResizingBar?: Nullable<typeof ResizingBar<T>>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { useTableContext } from './TableContext';
|
|
2
|
+
import * as tableUtils from './helpers';
|
|
1
3
|
/**
|
|
2
4
|
*
|
|
3
5
|
* Copyright (c) "Neo4j"
|
|
@@ -19,6 +21,4 @@
|
|
|
19
21
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
22
|
*/
|
|
21
23
|
export { default as Table, TableComponents } from './Table';
|
|
22
|
-
import * as tableUtils from './helpers';
|
|
23
|
-
import { useTableContext } from './TableContext';
|
|
24
24
|
export { tableUtils, useTableContext };
|
|
@@ -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
|
+
|
|
21
22
|
declare function defaultStringToJson(path: string, json: any, theme: string): any;
|
|
22
23
|
export declare const n: (path: string, stringToJson?: typeof defaultStringToJson) => string | void;
|
|
23
24
|
export {};
|
package/lib/types/tip/Tip.d.ts
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
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 React, { type ComponentProps } from 'react';
|
|
22
23
|
import { type ElementBase } from '../helpers';
|
|
23
24
|
import { Typography } from '../typography';
|
|
24
|
-
import React, { type ComponentProps } from 'react';
|
|
25
25
|
export interface TipProps {
|
|
26
26
|
/** Type of the tip */
|
|
27
27
|
type?: 'tooltip' | 'toggletip';
|
|
@@ -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
|
+
|
|
21
22
|
import { type AsType, type ConditionalTypography } from './types';
|
|
22
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: {
|
|
23
24
|
as?: TAs | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* Copyright (c) "Neo4j"
|
|
@@ -18,7 +19,6 @@
|
|
|
18
19
|
* You should have received a copy of the GNU General Public License
|
|
19
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
21
|
*/
|
|
21
|
-
/// <reference types="react" />
|
|
22
22
|
import { type tokens } from '@neo4j-ndl/base';
|
|
23
23
|
export type TypographyVariants = keyof typeof tokens.font.size;
|
|
24
24
|
export declare const TypographyDefaultMapping: {
|
|
@@ -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
|
+
|
|
21
22
|
/// <reference types="react" />
|
|
22
23
|
import { type ElementBase } from '../helpers';
|
|
23
24
|
export declare const Horizontal: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps, 'type'>) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -69,34 +69,26 @@
|
|
|
69
69
|
"@types/react-table": "^7.7.10",
|
|
70
70
|
"@types/sinon": "17",
|
|
71
71
|
"@types/tinycolor2": "^1.4.3",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
73
|
-
"@typescript-eslint/parser": "6.15.0",
|
|
74
72
|
"@vitejs/plugin-react": "4.2.1",
|
|
75
|
-
"eslint": "^8.3.0",
|
|
76
|
-
"eslint-config-prettier": "^8.3.0",
|
|
77
|
-
"eslint-plugin-import": "2.28.1",
|
|
78
|
-
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
79
|
-
"eslint-plugin-prettier": "5.1.3",
|
|
80
|
-
"eslint-plugin-react": "^7.27.1",
|
|
81
|
-
"eslint-plugin-react-hooks": "^4.3.0",
|
|
82
73
|
"jsdom": "22.1.0",
|
|
83
74
|
"react": "18.2.0",
|
|
84
75
|
"react-select-event": "^5.5.0",
|
|
85
76
|
"resize-observer-polyfill": "^1.5.1",
|
|
86
77
|
"sinon": "17.0.1",
|
|
87
|
-
"ts-node": "
|
|
88
|
-
"typescript": "5.
|
|
78
|
+
"ts-node": "10.9.2",
|
|
79
|
+
"typescript": "5.4.3",
|
|
89
80
|
"vitest": "1.3.1"
|
|
90
81
|
},
|
|
91
82
|
"peerDependencies": {
|
|
92
83
|
"@heroicons/react": "2.0.13",
|
|
93
|
-
"react": ">=16.8.0"
|
|
84
|
+
"react": ">=16.8.0",
|
|
85
|
+
"react-dom": ">=16.8.0"
|
|
94
86
|
},
|
|
95
87
|
"dependencies": {
|
|
96
88
|
"@floating-ui/react": "0.25.1",
|
|
97
89
|
"@heroicons/react": "2.0.13",
|
|
98
90
|
"@neo4j-cypher/react-codemirror": "^1.0.1",
|
|
99
|
-
"@neo4j-ndl/base": "^2.7.
|
|
91
|
+
"@neo4j-ndl/base": "^2.7.12",
|
|
100
92
|
"@table-nav/core": "0.0.7",
|
|
101
93
|
"@table-nav/react": "0.0.7",
|
|
102
94
|
"@tanstack/react-table": "^8.9.3",
|