@neo4j-ndl/react 2.16.19 → 2.16.21
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/cjs/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/cjs/_common/utils.js +3 -3
- package/lib/cjs/_common/utils.js.map +1 -1
- package/lib/cjs/accordion/Accordion.js.map +1 -1
- package/lib/cjs/avatar/Avatar.js.map +1 -1
- package/lib/cjs/banner/Banner.js.map +1 -1
- package/lib/cjs/button/Button.js.map +1 -1
- package/lib/cjs/button/IconButton.js.map +1 -1
- package/lib/cjs/callout/Callout.js.map +1 -1
- package/lib/cjs/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/clipboard-copier/ClipboardButton.js.map +1 -1
- package/lib/cjs/code-block/CodeBlock.js.map +1 -1
- package/lib/cjs/code-block/languages.js +1 -0
- package/lib/cjs/code-block/languages.js.map +1 -1
- package/lib/cjs/context-menu/ContextMenu.js +1 -1
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +1 -1
- package/lib/cjs/data-grid/Components.js +4 -3
- package/lib/cjs/data-grid/Components.js.map +1 -1
- package/lib/cjs/data-grid/DataGridContext.js +2 -2
- package/lib/cjs/data-grid/DataGridContext.js.map +1 -1
- package/lib/cjs/data-grid/helpers.js.map +1 -1
- package/lib/cjs/date-picker/DatePicker.js +1 -1
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/date-picker/utils.js +2 -2
- package/lib/cjs/date-picker/utils.js.map +1 -1
- package/lib/cjs/dialog/Dialog.js +2 -2
- package/lib/cjs/dialog/Dialog.js.map +1 -1
- package/lib/cjs/drawer/Drawer.js.map +1 -1
- package/lib/cjs/dropdown/Dropdown.js.map +1 -1
- package/lib/cjs/dropzone/Dropzone.js.map +1 -1
- package/lib/cjs/graph-label/GraphLabel.js +2 -2
- package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
- package/lib/cjs/graph-label/color.js.map +1 -1
- package/lib/cjs/helpers/debounce.js +1 -2
- package/lib/cjs/helpers/debounce.js.map +1 -1
- package/lib/cjs/hooks/index.js +4 -4
- package/lib/cjs/hooks/index.js.map +1 -1
- package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
- package/lib/cjs/label/Label.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 -5
- package/lib/cjs/popover/Popover.js.map +1 -1
- package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
- package/lib/cjs/slider/Slider.js.map +1 -1
- package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/cjs/table/Components.js.map +1 -1
- package/lib/cjs/table/TableContext.js +2 -2
- package/lib/cjs/table/TableContext.js.map +1 -1
- package/lib/cjs/table/helpers.js.map +1 -1
- package/lib/cjs/tabs/Tabs.js.map +1 -1
- package/lib/cjs/tag/Tag.js +1 -1
- package/lib/cjs/tag/Tag.js.map +1 -1
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/text-input-preview/TextInputPreview.js.map +1 -1
- package/lib/cjs/textarea/Textarea.js.map +1 -1
- package/lib/cjs/theme/ThemeProvider.js.map +1 -1
- package/lib/cjs/theme/agnostic.js.map +1 -1
- package/lib/cjs/tip/Tip.js +3 -3
- package/lib/cjs/tip/Tip.js.map +1 -1
- package/lib/cjs/toast/Toast.js.map +1 -1
- package/lib/cjs/toast/sonner-types.js +2 -2
- package/lib/cjs/toast/sonner-types.js.map +1 -1
- package/lib/cjs/tree-view/TreeItemWrapper.js.map +1 -1
- package/lib/cjs/tree-view/TreeView.js +3 -3
- package/lib/cjs/tree-view/TreeView.js.map +1 -1
- package/lib/cjs/tree-view/TreeViewItem.js +1 -1
- package/lib/cjs/tree-view/TreeViewItem.js.map +1 -1
- package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -1
- package/lib/cjs/tree-view/tree-view-keyboard-coordinates.js.map +1 -1
- package/lib/cjs/tree-view/tree-view-keyboard-helpers.js.map +1 -1
- package/lib/cjs/tree-view/tree-view-utils.js +4 -4
- package/lib/cjs/tree-view/tree-view-utils.js.map +1 -1
- package/lib/cjs/typography/Typography.js +2 -1
- package/lib/cjs/typography/Typography.js.map +1 -1
- package/lib/cjs/wizard/Wizard.js +2 -1
- package/lib/cjs/wizard/Wizard.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.map +1 -1
- package/lib/esm/accordion/Accordion.js.map +1 -1
- package/lib/esm/avatar/Avatar.js.map +1 -1
- package/lib/esm/banner/Banner.js.map +1 -1
- package/lib/esm/button/Button.js.map +1 -1
- package/lib/esm/button/IconButton.js.map +1 -1
- package/lib/esm/callout/Callout.js.map +1 -1
- package/lib/esm/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
- package/lib/esm/code-block/CodeBlock.js.map +1 -1
- package/lib/esm/code-block/languages.js +1 -0
- package/lib/esm/code-block/languages.js.map +1 -1
- package/lib/esm/context-menu/ContextMenu.js +1 -1
- package/lib/esm/context-menu/ContextMenu.js.map +1 -1
- package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +1 -1
- package/lib/esm/data-grid/Components.js +4 -3
- package/lib/esm/data-grid/Components.js.map +1 -1
- package/lib/esm/data-grid/DataGridContext.js.map +1 -1
- package/lib/esm/data-grid/helpers.js.map +1 -1
- package/lib/esm/date-picker/DatePicker.js +1 -1
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/dialog/Dialog.js +2 -2
- package/lib/esm/dialog/Dialog.js.map +1 -1
- package/lib/esm/drawer/Drawer.js.map +1 -1
- package/lib/esm/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/dropzone/Dropzone.js.map +1 -1
- package/lib/esm/graph-label/GraphLabel.js +2 -2
- package/lib/esm/graph-label/GraphLabel.js.map +1 -1
- package/lib/esm/graph-label/color.js.map +1 -1
- package/lib/esm/hooks/index.js.map +1 -1
- package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
- package/lib/esm/label/Label.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 -5
- package/lib/esm/popover/Popover.js.map +1 -1
- package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/esm/side-navigation/SideNavigation.js +1 -1
- package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
- package/lib/esm/slider/Slider.js.map +1 -1
- package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/esm/table/Components.js.map +1 -1
- package/lib/esm/table/TableContext.js.map +1 -1
- package/lib/esm/table/helpers.js.map +1 -1
- package/lib/esm/tabs/Tabs.js.map +1 -1
- package/lib/esm/tag/Tag.js +1 -1
- package/lib/esm/tag/Tag.js.map +1 -1
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/text-input-preview/TextInputPreview.js.map +1 -1
- package/lib/esm/textarea/Textarea.js.map +1 -1
- package/lib/esm/theme/ThemeProvider.js.map +1 -1
- package/lib/esm/theme/agnostic.js.map +1 -1
- package/lib/esm/tip/Tip.js.map +1 -1
- package/lib/esm/toast/Toast.js.map +1 -1
- package/lib/esm/tree-view/TreeItemWrapper.js.map +1 -1
- package/lib/esm/tree-view/TreeView.js +3 -3
- package/lib/esm/tree-view/TreeView.js.map +1 -1
- package/lib/esm/tree-view/TreeViewItem.js +1 -1
- package/lib/esm/tree-view/TreeViewItem.js.map +1 -1
- package/lib/esm/tree-view/TreeViewTextItem.js.map +1 -1
- package/lib/esm/tree-view/tree-view-keyboard-coordinates.js.map +1 -1
- package/lib/esm/tree-view/tree-view-keyboard-helpers.js.map +1 -1
- package/lib/esm/tree-view/tree-view-utils.js.map +1 -1
- package/lib/esm/typography/Typography.js +2 -1
- package/lib/esm/typography/Typography.js.map +1 -1
- package/lib/esm/wizard/Wizard.js +2 -1
- package/lib/esm/wizard/Wizard.js.map +1 -1
- package/lib/types/_common/ConditionalWrap.d.ts +0 -1
- package/lib/types/_common/coditionalWrap.d.ts +0 -1
- package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +0 -1
- package/lib/types/_common/utils.d.ts +2 -2
- package/lib/types/accordion/Accordion.d.ts +2 -2
- package/lib/types/context-menu/SafeArea.d.ts +0 -1
- package/lib/types/data-grid/Components.d.ts +9 -10
- package/lib/types/data-grid/DataGrid.d.ts +11 -12
- package/lib/types/data-grid/DataGridContext.d.ts +0 -1
- package/lib/types/data-grid/datagrid-types.d.ts +0 -1
- package/lib/types/data-grid/helpers.d.ts +3 -3
- package/lib/types/date-picker/DatePicker.d.ts +1 -2
- package/lib/types/divider/Divider.d.ts +0 -1
- package/lib/types/drawer/Drawer.d.ts +2 -2
- package/lib/types/dropdown/Dropdown.d.ts +1 -1
- package/lib/types/dropzone/Dropzone.d.ts +0 -1
- package/lib/types/graph-label/GraphLabel.d.ts +6 -6
- package/lib/types/icons/generated/heroIcons.d.ts +1168 -1169
- package/lib/types/layout/types.d.ts +0 -1
- package/lib/types/portal/Portal.d.ts +0 -1
- package/lib/types/segmented-control/SegmentedControl.d.ts +2 -2
- package/lib/types/side-navigation/SideNavigation.d.ts +2 -2
- package/lib/types/slider/Slider.d.ts +1 -1
- package/lib/types/table/Components.d.ts +5 -6
- package/lib/types/table/Table.d.ts +12 -13
- package/lib/types/table/TableContext.d.ts +0 -1
- package/lib/types/table/helpers.d.ts +2 -2
- package/lib/types/tabs/Tabs.d.ts +2 -2
- package/lib/types/tip/Tip.d.ts +11 -11
- package/lib/types/toast/Toast.d.ts +5 -5
- package/lib/types/tree-view/TreeItemWrapper.d.ts +1 -1
- package/lib/types/tree-view/TreeView.d.ts +2 -3
- package/lib/types/tree-view/TreeViewItem.d.ts +2 -1
- package/lib/types/typography/Typography.d.ts +3 -3
- package/lib/types/typography/types.d.ts +0 -1
- package/lib/types/widget/Widget.d.ts +3 -3
- package/lib/types/wizard/Wizard.d.ts +3 -4
- package/package.json +2 -2
|
@@ -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 { type ColumnDef, type Table } from '@tanstack/react-table';
|
|
21
|
+
import { type ColumnDef, type RowData, type Table } from '@tanstack/react-table';
|
|
22
22
|
/**
|
|
23
23
|
* Modified from here: https://gist.github.com/kottenator/9d936eb3e4e3c3e02598
|
|
24
24
|
*
|
|
@@ -36,10 +36,10 @@ export declare const userFriendlyPagination: (current: number, max: number) => (
|
|
|
36
36
|
* fill the available space, and the result till be for 4 columns:
|
|
37
37
|
* minmax(min column1Sizepx,column1Sizepx) minmax(min column2Sizepx,column2Sizepx) ... minmax(columnNSizepx, auto)
|
|
38
38
|
*/
|
|
39
|
-
export declare const gridGenerator: <T extends
|
|
39
|
+
export declare const gridGenerator: <T extends RowData>(table: Table<T>) => string;
|
|
40
40
|
/**
|
|
41
41
|
* Check if the column is size constrained,
|
|
42
42
|
* so we can let the column's width grow with `flex-grow: 1`
|
|
43
43
|
* @param columnDef
|
|
44
44
|
*/
|
|
45
|
-
export declare const isSizeConstrained: <T extends
|
|
45
|
+
export declare const isSizeConstrained: <T extends RowData>(columnDef: ColumnDef<T>) => boolean;
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
/// <reference types="react" />
|
|
23
22
|
import { type ReactDatePickerProps } from 'react-datepicker';
|
|
24
23
|
import { type ElementBase } from '../helpers';
|
|
25
24
|
import { type TextInputProperties } from '../text-input/TextInput';
|
|
@@ -33,4 +32,4 @@ export interface DatePickerProps<WithRange extends boolean = false> extends Elem
|
|
|
33
32
|
*/
|
|
34
33
|
reactDatePickerProps: ReactDatePickerProps<string, WithRange>;
|
|
35
34
|
}
|
|
36
|
-
export declare const DatePicker: <T extends boolean>(props: DatePickerProps<T> & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement
|
|
35
|
+
export declare const DatePicker: <T extends boolean>(props: DatePickerProps<T> & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement | null;
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
/// <reference types="react" />
|
|
23
22
|
import { type ElementBase } from '../helpers';
|
|
24
23
|
export interface DividerProps extends ElementBase<HTMLDivElement> {
|
|
25
24
|
orientation?: 'horizontal' | 'vertical';
|
|
@@ -47,11 +47,11 @@ export interface DrawerProps extends ElementBase<HTMLDivElement> {
|
|
|
47
47
|
*/
|
|
48
48
|
portalProps?: ComponentProps<typeof FloatingPortal>;
|
|
49
49
|
}
|
|
50
|
-
export declare const DrawerComponent: (props: DrawerProps & import("react").RefAttributes<HTMLDivElement & Resizable>) => import("react").ReactElement
|
|
50
|
+
export declare const DrawerComponent: (props: DrawerProps & import("react").RefAttributes<HTMLDivElement & Resizable>) => import("react").ReactElement | null;
|
|
51
51
|
type DrawerHeaderProps = ComponentPropsWithoutRef<'h5'>;
|
|
52
52
|
type DrawerActionsProps = ComponentPropsWithoutRef<'div'>;
|
|
53
53
|
type DrawerBodyProps = ComponentPropsWithoutRef<'div'>;
|
|
54
|
-
declare const Drawer: ((props: DrawerProps & import("react").RefAttributes<HTMLDivElement & Resizable>) => import("react").ReactElement
|
|
54
|
+
declare const Drawer: ((props: DrawerProps & import("react").RefAttributes<HTMLDivElement & Resizable>) => import("react").ReactElement | null) & {
|
|
55
55
|
Header: ({ children, className, ...restProps }: DrawerHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
56
|
Actions: ({ children, className, ...restProps }: DrawerActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
57
|
Body: ({ children, className, ...restProps }: DrawerBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { type GroupBase } from 'react-select';
|
|
23
23
|
import { type DropdownProps } from './types';
|
|
24
|
-
export declare const Dropdown: <OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>>(props: DropdownProps<OptionType, IsMulti, GroupType> & React.RefAttributes<unknown>) => React.ReactElement
|
|
24
|
+
export declare const Dropdown: <OptionType, IsMulti extends boolean = false, GroupType extends GroupBase<OptionType> = GroupBase<OptionType>>(props: DropdownProps<OptionType, IsMulti, GroupType> & React.RefAttributes<unknown>) => React.ReactElement | null;
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
|
|
22
22
|
import React from 'react';
|
|
23
23
|
export declare const GraphLabel: React.ForwardRefExoticComponent<{
|
|
24
|
-
type:
|
|
24
|
+
type: "node" | "relationship" | "propertyKey";
|
|
25
25
|
children?: React.ReactNode;
|
|
26
26
|
/** The background color of the label only applicable to type node and relationship*/
|
|
27
|
-
color?: string
|
|
27
|
+
color?: string;
|
|
28
28
|
/** Sets the label to the disabled style */
|
|
29
|
-
disabled?: boolean
|
|
30
|
-
className?: string
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
className?: string;
|
|
31
31
|
/** If the element is selected */
|
|
32
|
-
selected?: boolean
|
|
32
|
+
selected?: boolean;
|
|
33
33
|
} & Omit<React.HTMLProps<HTMLButtonElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
|
|
34
|
-
as?: string | React.ComponentType<any
|
|
34
|
+
as?: string | React.ComponentType<any>;
|
|
35
35
|
} & React.RefAttributes<HTMLDivElement>>;
|