@neo4j-ndl/react 2.16.19 → 2.16.20
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 +1 -1
|
@@ -35,9 +35,9 @@ export interface SegmentedControlProps<T extends SegmentedControlID> extends Ele
|
|
|
35
35
|
selected: T;
|
|
36
36
|
children: React.ReactNode | string;
|
|
37
37
|
}
|
|
38
|
-
declare const SegmentedControl: (<T extends SegmentedControlID>(props: SegmentedControlProps<T> & React.RefAttributes<unknown>) => React.ReactElement
|
|
38
|
+
declare const SegmentedControl: (<T extends SegmentedControlID>(props: SegmentedControlProps<T> & React.RefAttributes<unknown>) => React.ReactElement | null) & {
|
|
39
39
|
Item: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
|
|
40
|
-
as?: string | React.ComponentType<any
|
|
40
|
+
as?: string | React.ComponentType<any>;
|
|
41
41
|
} & {
|
|
42
42
|
value: string;
|
|
43
43
|
} & React.RefAttributes<unknown>>;
|
|
@@ -49,10 +49,10 @@ export interface SideNavigationItemBadgeProps extends Omit<ElementBase<HTMLSpanE
|
|
|
49
49
|
export type SideNavigationGroupHeaderProps = ElementBase<HTMLLIElement>;
|
|
50
50
|
declare const SideNavigation: React.ForwardRefExoticComponent<SideNavigationProps & React.RefAttributes<HTMLDivElement>> & {
|
|
51
51
|
List: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLUListElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
|
|
52
|
-
as?: string | React.ComponentType<any
|
|
52
|
+
as?: string | React.ComponentType<any>;
|
|
53
53
|
} & React.RefAttributes<HTMLUListElement>>;
|
|
54
54
|
GroupHeader: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLLIElement>, "as" | "selected" | "size" | "onChange" | "ref"> & {
|
|
55
|
-
as?: string | React.ComponentType<any
|
|
55
|
+
as?: string | React.ComponentType<any>;
|
|
56
56
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
57
57
|
Item: React.ForwardRefExoticComponent<SideNavigationItemProps & React.RefAttributes<any>>;
|
|
58
58
|
ItemBadge: React.ForwardRefExoticComponent<SideNavigationItemBadgeProps & React.RefAttributes<any>>;
|
|
@@ -72,5 +72,5 @@ type RangeSlider = SliderPropsBase & {
|
|
|
72
72
|
onChange: (value: [number, number]) => void;
|
|
73
73
|
};
|
|
74
74
|
export type SliderProps = SingleSlider | RangeSlider;
|
|
75
|
-
export declare const Slider: (props: SliderProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement
|
|
75
|
+
export declare const Slider: (props: SliderProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
76
76
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
*
|
|
4
3
|
* Copyright (c) "Neo4j"
|
|
@@ -29,7 +28,7 @@ export interface CommonInnerProps<T = HTMLDivElement> {
|
|
|
29
28
|
export interface ResizingBarProps<T extends RowData> extends CommonInnerProps<HTMLButtonElement> {
|
|
30
29
|
header: HeaderType<T, unknown>;
|
|
31
30
|
}
|
|
32
|
-
declare const ResizingBar: <T extends
|
|
31
|
+
declare const ResizingBar: <T extends RowData>({ header, children, innerProps, }: ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
33
32
|
declare const Scrollable: ({ children, innerProps }: CommonInnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
33
|
declare const Header: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
35
34
|
export interface SortingButtonProps {
|
|
@@ -42,20 +41,20 @@ export interface ColumnControlsProps<T extends RowData> extends CommonInnerProps
|
|
|
42
41
|
cell: HeaderType<T, unknown>;
|
|
43
42
|
controls: Array<React.ReactNode>;
|
|
44
43
|
}
|
|
45
|
-
export declare const ColumnControls: <T extends
|
|
44
|
+
export declare const ColumnControls: <T extends RowData>({ cell, controls, children, innerProps, }: ColumnControlsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
46
45
|
export interface HeaderCellProps<T> extends CommonInnerProps<HTMLDivElement> {
|
|
47
46
|
cell: HeaderType<T, unknown>;
|
|
48
47
|
}
|
|
49
|
-
declare const HeaderCell: <T extends
|
|
48
|
+
declare const HeaderCell: <T extends RowData>({ cell, children, innerProps, }: HeaderCellProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
50
49
|
declare const Body: ({ children, innerProps }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
51
50
|
export interface BodyCellProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
|
|
52
51
|
cell: Cell<T, unknown>;
|
|
53
52
|
}
|
|
54
|
-
declare const BodyCell: <T extends
|
|
53
|
+
declare const BodyCell: <T extends RowData>({ cell, children, innerProps, }: BodyCellProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
55
54
|
export interface BodyRowProps<T extends RowData> extends CommonInnerProps<HTMLDivElement> {
|
|
56
55
|
row: Row<T>;
|
|
57
56
|
}
|
|
58
|
-
declare const BodyRow: <T extends
|
|
57
|
+
declare const BodyRow: <T extends RowData>({ row, children, innerProps, }: BodyRowProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
59
58
|
export interface TableResultProps extends CommonInnerProps<HTMLSpanElement> {
|
|
60
59
|
manualPagination?: {
|
|
61
60
|
from: number;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
*
|
|
4
3
|
* Copyright (c) "Neo4j"
|
|
@@ -19,7 +18,7 @@
|
|
|
19
18
|
* You should have received a copy of the GNU General Public License
|
|
20
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
20
|
*/
|
|
22
|
-
import { type Table as TableType } from '@tanstack/react-table';
|
|
21
|
+
import { type RowData, type Table as TableType } from '@tanstack/react-table';
|
|
23
22
|
import { type ElementBase } from '../helpers';
|
|
24
23
|
import { type TableComponentsInterface } from './TableContext';
|
|
25
24
|
/**
|
|
@@ -28,13 +27,13 @@ import { type TableComponentsInterface } from './TableContext';
|
|
|
28
27
|
*
|
|
29
28
|
*/
|
|
30
29
|
export declare const TableComponents: {
|
|
31
|
-
ResizingBar: <T extends
|
|
30
|
+
ResizingBar: <T extends RowData>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
32
31
|
Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
33
32
|
Body: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
BodyCell: <
|
|
35
|
-
BodyRow: <
|
|
36
|
-
HeaderCell: <
|
|
37
|
-
ColumnControls: <
|
|
33
|
+
BodyCell: <T extends RowData>({ cell, children, innerProps, }: import("./Components").BodyCellProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
BodyRow: <T extends RowData>({ row, children, innerProps, }: import("./Components").BodyRowProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
HeaderCell: <T extends RowData>({ cell, children, innerProps, }: import("./Components").HeaderCellProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
ColumnControls: <T extends RowData>({ cell, controls, children, innerProps, }: import("./Components").ColumnControlsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
38
37
|
Navigation: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
39
38
|
TableResults: ({ children, innerProps, manualPagination, }: import("./Components").TableResultProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
39
|
RowsPerPage: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -45,19 +44,19 @@ export declare const TableComponents: {
|
|
|
45
44
|
LoadingPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
46
45
|
NoDataPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
47
46
|
SortingButton: ({ sortDirection, children, innerProps, }: import("./Components").SortingButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps
|
|
47
|
+
Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
48
|
};
|
|
50
49
|
/**
|
|
51
50
|
* @deprecated Use DataGrid component instead
|
|
52
51
|
* Will be removed in Needle v3.0
|
|
53
52
|
*/
|
|
54
|
-
declare const TableNameSpace: (<T extends
|
|
55
|
-
resizable?: boolean
|
|
56
|
-
loading?: boolean
|
|
57
|
-
focusableCells?: boolean
|
|
53
|
+
declare const TableNameSpace: (<T extends RowData>(props: {
|
|
54
|
+
resizable?: boolean;
|
|
55
|
+
loading?: boolean;
|
|
56
|
+
focusableCells?: boolean;
|
|
58
57
|
tableProps: TableType<T>;
|
|
59
58
|
components?: TableComponentsInterface<T> | undefined;
|
|
60
|
-
} & Omit<ElementBase<HTMLDivElement>, "data" | "as" | "controls" | "headers" | "rows"> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement
|
|
59
|
+
} & Omit<ElementBase<HTMLDivElement>, "data" | "as" | "controls" | "headers" | "rows"> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement | null) & {
|
|
61
60
|
RowActions: ({ className, ...restProps }: ElementBase<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
62
61
|
};
|
|
63
62
|
export { TableNameSpace as Table };
|
|
@@ -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 Table } from '@tanstack/react-table';
|
|
21
|
+
import { type RowData, type Table } from '@tanstack/react-table';
|
|
22
22
|
/**
|
|
23
23
|
* Modified from here: https://gist.github.com/kottenator/9d936eb3e4e3c3e02598
|
|
24
24
|
*
|
|
@@ -36,4 +36,4 @@ 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;
|
package/lib/types/tabs/Tabs.d.ts
CHANGED
|
@@ -66,8 +66,8 @@ interface TabPanelProps {
|
|
|
66
66
|
*/
|
|
67
67
|
as?: string | React.ComponentType<any>;
|
|
68
68
|
}
|
|
69
|
-
declare const Tabs: (<T extends TabId>(props: BaseTabsProps<T> & React.RefAttributes<unknown>) => React.ReactElement
|
|
70
|
-
Tab: <
|
|
69
|
+
declare const Tabs: (<T extends TabId>(props: BaseTabsProps<T> & React.RefAttributes<unknown>) => React.ReactElement | null) & {
|
|
70
|
+
Tab: <T extends TabId = TabId>(props: TabProps<T> & React.RefAttributes<unknown>) => React.ReactElement | null;
|
|
71
71
|
TabPanel: React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<unknown>>;
|
|
72
72
|
};
|
|
73
73
|
export { Tabs };
|
package/lib/types/tip/Tip.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export declare function useTip({ allowedPlacements, isOpen: controlledOpen, isDi
|
|
|
64
64
|
update: () => void;
|
|
65
65
|
floatingStyles: React.CSSProperties;
|
|
66
66
|
open: boolean;
|
|
67
|
-
onOpenChange: (open: boolean, event?: Event
|
|
67
|
+
onOpenChange: (open: boolean, event?: Event) => void;
|
|
68
68
|
events: import("@floating-ui/react").FloatingEvents;
|
|
69
69
|
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
70
70
|
nodeId: string | undefined;
|
|
@@ -72,11 +72,11 @@ export declare function useTip({ allowedPlacements, isOpen: controlledOpen, isDi
|
|
|
72
72
|
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
73
73
|
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
74
74
|
};
|
|
75
|
-
getReferenceProps: (userProps?: React.HTMLProps<Element>
|
|
76
|
-
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>
|
|
77
|
-
getItemProps: (userProps?: React.HTMLProps<HTMLElement>
|
|
75
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
76
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
77
|
+
getItemProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
78
78
|
open: boolean;
|
|
79
|
-
setOpen: (isOpen: boolean, event?: Event
|
|
79
|
+
setOpen: (isOpen: boolean, event?: Event) => void;
|
|
80
80
|
type: "tooltip" | "toggletip";
|
|
81
81
|
};
|
|
82
82
|
export declare const useTipContext: () => {
|
|
@@ -108,7 +108,7 @@ export declare const useTipContext: () => {
|
|
|
108
108
|
update: () => void;
|
|
109
109
|
floatingStyles: React.CSSProperties;
|
|
110
110
|
open: boolean;
|
|
111
|
-
onOpenChange: (open: boolean, event?: Event
|
|
111
|
+
onOpenChange: (open: boolean, event?: Event) => void;
|
|
112
112
|
events: import("@floating-ui/react").FloatingEvents;
|
|
113
113
|
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
114
114
|
nodeId: string | undefined;
|
|
@@ -116,9 +116,9 @@ export declare const useTipContext: () => {
|
|
|
116
116
|
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
117
117
|
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
118
118
|
};
|
|
119
|
-
getReferenceProps: (userProps?: React.HTMLProps<Element>
|
|
120
|
-
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>
|
|
121
|
-
getItemProps: (userProps?: React.HTMLProps<HTMLElement>
|
|
119
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
120
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
121
|
+
getItemProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
122
122
|
open: boolean;
|
|
123
123
|
setOpen: (isOpen: boolean, event?: Event) => void;
|
|
124
124
|
type: "tooltip" | "toggletip";
|
|
@@ -130,7 +130,7 @@ export declare namespace Tip {
|
|
|
130
130
|
var Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
131
131
|
var Trigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
|
|
132
132
|
/** Wraps trigger element in an accessible `button` element */
|
|
133
|
-
hasButtonWrapper?: boolean
|
|
133
|
+
hasButtonWrapper?: boolean;
|
|
134
134
|
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
135
135
|
var Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
136
136
|
var Body: React.ForwardRefExoticComponent<BodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -143,7 +143,7 @@ export declare namespace Tip {
|
|
|
143
143
|
*/
|
|
144
144
|
export declare const Trigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & {
|
|
145
145
|
/** Wraps trigger element in an accessible `button` element */
|
|
146
|
-
hasButtonWrapper?: boolean
|
|
146
|
+
hasButtonWrapper?: boolean;
|
|
147
147
|
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
148
148
|
export interface ContentProps extends Omit<ElementBase<HTMLDivElement>, 'as'> {
|
|
149
149
|
/** Whether to portal the content */
|
|
@@ -77,31 +77,31 @@ declare const Toast: React.ForwardRefExoticComponent<(Omit<ToastNeutralProps & {
|
|
|
77
77
|
id: ToastId;
|
|
78
78
|
variant: ToastVariants;
|
|
79
79
|
text: ReactNode;
|
|
80
|
-
initialProgressBarValue?: number
|
|
80
|
+
initialProgressBarValue?: number;
|
|
81
81
|
}, "ref"> | Omit<ToastSuccessProps & {
|
|
82
82
|
icon: ReactNode;
|
|
83
83
|
id: ToastId;
|
|
84
84
|
variant: ToastVariants;
|
|
85
85
|
text: ReactNode;
|
|
86
|
-
initialProgressBarValue?: number
|
|
86
|
+
initialProgressBarValue?: number;
|
|
87
87
|
}, "ref"> | Omit<ToastDangerProps & {
|
|
88
88
|
icon: ReactNode;
|
|
89
89
|
id: ToastId;
|
|
90
90
|
variant: ToastVariants;
|
|
91
91
|
text: ReactNode;
|
|
92
|
-
initialProgressBarValue?: number
|
|
92
|
+
initialProgressBarValue?: number;
|
|
93
93
|
}, "ref"> | Omit<ToastLoadingSpinnerProps & {
|
|
94
94
|
icon: ReactNode;
|
|
95
95
|
id: ToastId;
|
|
96
96
|
variant: ToastVariants;
|
|
97
97
|
text: ReactNode;
|
|
98
|
-
initialProgressBarValue?: number
|
|
98
|
+
initialProgressBarValue?: number;
|
|
99
99
|
}, "ref"> | Omit<ToastProgressBarProps & {
|
|
100
100
|
icon: ReactNode;
|
|
101
101
|
id: ToastId;
|
|
102
102
|
variant: ToastVariants;
|
|
103
103
|
text: ReactNode;
|
|
104
|
-
initialProgressBarValue?: number
|
|
104
|
+
initialProgressBarValue?: number;
|
|
105
105
|
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
106
106
|
interface Toast {
|
|
107
107
|
neutral: (text: ReactNode, props?: ToastNeutralProps) => ToastId;
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
import React from 'react';
|
|
23
23
|
import type { TreeItemComponentProps } from './tree-view-types';
|
|
24
24
|
export declare const TreeItemWrapper: <T extends Record<string, unknown>>(props: TreeItemComponentProps<T> & {
|
|
25
|
-
children?: React.ReactNode;
|
|
25
|
+
children?: React.ReactNode | undefined;
|
|
26
26
|
} & React.RefAttributes<HTMLElement>) => React.ReactNode;
|
|
@@ -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 ItemChangedReason, type TreeItem, type TreeItemComponent } from './tree-view-types';
|
|
24
23
|
export interface TreeViewProps<T extends Record<string, unknown>, E extends HTMLElement> extends React.HTMLAttributes<HTMLOListElement> {
|
|
25
24
|
items: TreeItem<T>[];
|
|
@@ -28,7 +27,7 @@ export interface TreeViewProps<T extends Record<string, unknown>, E extends HTML
|
|
|
28
27
|
}
|
|
29
28
|
export declare const TreeView: {
|
|
30
29
|
<T extends Record<string, unknown>, E extends HTMLElement>({ items, TreeItemComponent, onItemsChanged, ...rest }: TreeViewProps<T, E>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
TreeItemWrapper: <
|
|
32
|
-
children?: import("react").ReactNode;
|
|
30
|
+
TreeItemWrapper: <T extends Record<string, unknown>>(props: import("./tree-view-types").TreeItemComponentProps<T> & {
|
|
31
|
+
children?: import("react").ReactNode | undefined;
|
|
33
32
|
} & import("react").RefAttributes<HTMLElement>) => import("react").ReactNode;
|
|
34
33
|
};
|
|
@@ -48,5 +48,6 @@ type SortableTreeItemProps<T extends Record<string, unknown>, E extends HTMLElem
|
|
|
48
48
|
tabIndex?: number;
|
|
49
49
|
onFocus?: () => void;
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
declare const SortableTreeViewItemNotMemoized: <T extends Record<string, unknown>, E extends HTMLElement>({ id, depth, isLast, TreeItemComponent, parent, shouldDisableSorting, sortableProps, keepGhostInPlace, item, onCollapse, trails, onItemsChanged, items, tabIndex, onFocus, ...restProps }: SortableTreeItemProps<T, E>) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare const SortableTreeViewItem: typeof SortableTreeViewItemNotMemoized;
|
|
52
53
|
export {};
|
|
@@ -19,8 +19,8 @@
|
|
|
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';
|
|
23
|
-
export declare const Typography: <TVar extends
|
|
24
|
-
as?: TAs
|
|
22
|
+
import { type AsType, type ConditionalTypography, type TypographyVariants } from './types';
|
|
23
|
+
export declare const Typography: <TVar extends TypographyVariants, TAs extends AsType = undefined>(props: {
|
|
24
|
+
as?: TAs;
|
|
25
25
|
variant: TVar;
|
|
26
26
|
} & ConditionalTypography<TAs, TVar>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -42,10 +42,10 @@ type CommonProps = {
|
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
44
|
export declare const Widget: React.ForwardRefExoticComponent<(Omit<CommonProps & {
|
|
45
|
-
isResizeable?: false
|
|
46
|
-
resizeableProps?:
|
|
45
|
+
isResizeable?: false;
|
|
46
|
+
resizeableProps?: never;
|
|
47
47
|
} & React.HTMLProps<HTMLDivElement>, "ref"> | Omit<CommonProps & {
|
|
48
48
|
isResizeable: true;
|
|
49
|
-
resizeableProps?: React.ButtonHTMLAttributes<HTMLButtonElement
|
|
49
|
+
resizeableProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
50
50
|
} & React.HTMLProps<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
51
51
|
export {};
|
|
@@ -19,11 +19,10 @@
|
|
|
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
|
-
export declare const Horizontal: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps,
|
|
25
|
-
export declare const Vertical: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps,
|
|
26
|
-
export declare const Footer: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps,
|
|
23
|
+
export declare const Horizontal: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps, "type">) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const Vertical: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps, "type">) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const Footer: ({ activeStep, steps, className, ...restProps }: Omit<WizardProps, "type">) => import("react/jsx-runtime").JSX.Element;
|
|
27
26
|
export interface WizardProps extends ElementBase<HTMLDivElement> {
|
|
28
27
|
type?: 'horizontal' | 'vertical' | 'footer';
|
|
29
28
|
activeStep: number;
|