@bsol-oss/react-datatable5 3.4.3 → 5.0.0
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/README.md +1 -1
- package/dist/index.d.ts +12 -17
- package/dist/index.js +265 -117
- package/dist/index.mjs +217 -87
- package/dist/types/components/Controls/EditFilterButton.d.ts +1 -1
- package/dist/types/components/DataTable/DefaultTable.d.ts +2 -2
- package/dist/types/components/DataTable/Table.d.ts +4 -3
- package/dist/types/components/DataTable/TableComponent.d.ts +1 -1
- package/dist/types/components/DataTable/TableHeader.d.ts +2 -2
- package/dist/types/components/DataTable/TablePagination.d.ts +1 -3
- package/dist/types/components/DataTable/TextCell.d.ts +2 -3
- package/dist/types/components/Filter/GlobalFilter.d.ts +1 -3
- package/dist/types/components/ui/avatar.d.ts +17 -0
- package/dist/types/components/ui/button.d.ts +10 -0
- package/dist/types/components/ui/checkbox.d.ts +8 -0
- package/dist/types/components/ui/close-button.d.ts +4 -0
- package/dist/types/components/ui/color-mode.d.ts +17 -0
- package/dist/types/components/ui/dialog.d.ts +19 -0
- package/dist/types/components/ui/drawer.d.ts +19 -0
- package/dist/types/components/ui/empty-state.d.ts +8 -0
- package/dist/types/components/ui/field.d.ts +9 -0
- package/dist/types/components/ui/input-group.d.ts +12 -0
- package/dist/types/components/ui/menu.d.ts +24 -0
- package/dist/types/components/ui/popover.d.ts +17 -0
- package/dist/types/components/ui/provider.d.ts +2 -0
- package/dist/types/components/ui/radio.d.ts +8 -0
- package/dist/types/components/ui/select.d.ts +25 -0
- package/dist/types/components/ui/slider.d.ts +11 -0
- package/dist/types/components/ui/switch.d.ts +15 -0
- package/dist/types/components/ui/tag.d.ts +9 -0
- package/dist/types/components/ui/tooltip.d.ts +11 -0
- package/package.json +11 -10
|
@@ -6,4 +6,4 @@ export interface EditFilterButtonProps {
|
|
|
6
6
|
resetText?: string;
|
|
7
7
|
icon?: React.ReactElement;
|
|
8
8
|
}
|
|
9
|
-
export declare const EditFilterButton: ({ text, title, closeText, resetText, icon,
|
|
9
|
+
export declare const EditFilterButton: ({ text, title, closeText, resetText, icon, }: EditFilterButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableHeaderProps } from "@chakra-ui/react";
|
|
2
2
|
import { TableProps } from "../../index";
|
|
3
3
|
import { TableControlsProps } from "./TableControls";
|
|
4
4
|
export interface DefaultTableProps extends TableControlsProps {
|
|
5
5
|
showFooter?: boolean;
|
|
6
6
|
showSelector?: boolean;
|
|
7
7
|
tableProps?: Omit<TableProps, "children">;
|
|
8
|
-
tHeadProps?:
|
|
8
|
+
tHeadProps?: TableHeaderProps;
|
|
9
9
|
}
|
|
10
10
|
export declare const DefaultTable: ({ totalText, showFilter, showFooter, fitTableWidth, fitTableHeight, isMobile, filterOptions, showFilterTags, showFilterName, showReload, showSelector, extraItems, tableProps, tHeadProps, }: DefaultTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableRootProps } from "@chakra-ui/react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
export interface TableProps extends
|
|
3
|
+
export interface TableProps extends TableRootProps {
|
|
4
4
|
showLoading?: boolean;
|
|
5
5
|
loadingComponent?: JSX.Element;
|
|
6
|
+
emptyComponent?: JSX.Element;
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
}
|
|
8
|
-
export declare const Table: ({ children,
|
|
9
|
+
export declare const Table: ({ children, emptyComponent, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ import React from "react";
|
|
|
3
3
|
export interface TableRendererProps<TData> {
|
|
4
4
|
render: (render: Table<TData>) => React.ReactElement;
|
|
5
5
|
}
|
|
6
|
-
export declare const TableComponent: <TData>({ render, }: TableRendererProps<TData>) => React.ReactElement<
|
|
6
|
+
export declare const TableComponent: <TData>({ render, }: TableRendererProps<TData>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableHeaderProps as ChakraTableHeaderProps } from "@chakra-ui/react";
|
|
2
2
|
export interface TableHeaderProps {
|
|
3
3
|
canResize?: boolean;
|
|
4
4
|
pinnedBgColor?: {
|
|
@@ -8,6 +8,6 @@ export interface TableHeaderProps {
|
|
|
8
8
|
showSelector?: boolean;
|
|
9
9
|
isSticky?: boolean;
|
|
10
10
|
alwaysShowSelector?: boolean;
|
|
11
|
-
tHeadProps?:
|
|
11
|
+
tHeadProps?: ChakraTableHeaderProps;
|
|
12
12
|
}
|
|
13
13
|
export declare const TableHeader: ({ canResize, pinnedBgColor, showSelector, isSticky, alwaysShowSelector, tHeadProps, }: TableHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TextProps
|
|
2
|
+
import { TextProps } from "@chakra-ui/react";
|
|
3
3
|
export interface TextCellProps extends TextProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
noOfLines?: number[];
|
|
6
6
|
padding?: string;
|
|
7
7
|
children: string | number | JSX.Element | JSX.Element[];
|
|
8
|
-
tooltipProps?: TooltipProps;
|
|
9
8
|
}
|
|
10
|
-
export declare const TextCell: ({ label,
|
|
9
|
+
export declare const TextCell: ({ label, padding, children, ...props }: TextCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GroupProps, SlotRecipeProps } from "@chakra-ui/react";
|
|
2
|
+
import { Avatar as ChakraAvatar } from "@chakra-ui/react";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
type ImageProps = React.ImgHTMLAttributes<HTMLImageElement>;
|
|
5
|
+
export interface AvatarProps extends ChakraAvatar.RootProps {
|
|
6
|
+
name?: string;
|
|
7
|
+
src?: string;
|
|
8
|
+
srcSet?: string;
|
|
9
|
+
loading?: ImageProps["loading"];
|
|
10
|
+
icon?: React.ReactElement;
|
|
11
|
+
fallback?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
interface AvatarGroupProps extends GroupProps, SlotRecipeProps<"avatar"> {
|
|
15
|
+
}
|
|
16
|
+
export declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ButtonProps as ChakraButtonProps } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface ButtonLoadingProps {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
loadingText?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface ButtonProps extends ChakraButtonProps, ButtonLoadingProps {
|
|
8
|
+
}
|
|
9
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Checkbox as ChakraCheckbox } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface CheckboxProps extends ChakraCheckbox.RootProps {
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
6
|
+
rootRef?: React.Ref<HTMLLabelElement>;
|
|
7
|
+
}
|
|
8
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IconButtonProps } from "@chakra-ui/react";
|
|
2
|
+
import type { ThemeProviderProps } from "next-themes";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
export interface ColorModeProviderProps extends ThemeProviderProps {
|
|
5
|
+
}
|
|
6
|
+
export declare function ColorModeProvider(props: ColorModeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function useColorMode(): {
|
|
8
|
+
colorMode: string | undefined;
|
|
9
|
+
setColorMode: React.Dispatch<React.SetStateAction<string>>;
|
|
10
|
+
toggleColorMode: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function useColorModeValue<T>(light: T, dark: T): T;
|
|
13
|
+
export declare function ColorModeIcon(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
interface ColorModeButtonProps extends Omit<IconButtonProps, "aria-label"> {
|
|
15
|
+
}
|
|
16
|
+
export declare const ColorModeButton: React.ForwardRefExoticComponent<ColorModeButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Dialog as ChakraDialog } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface DialogContentProps extends ChakraDialog.ContentProps {
|
|
4
|
+
portalled?: boolean;
|
|
5
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
6
|
+
backdrop?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const DialogCloseTrigger: React.ForwardRefExoticComponent<ChakraDialog.CloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export declare const DialogRoot: React.FC<ChakraDialog.RootProps>;
|
|
11
|
+
export declare const DialogFooter: React.ForwardRefExoticComponent<ChakraDialog.FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const DialogHeader: React.ForwardRefExoticComponent<ChakraDialog.HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const DialogBody: React.ForwardRefExoticComponent<ChakraDialog.BodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const DialogBackdrop: React.ForwardRefExoticComponent<ChakraDialog.BackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const DialogTitle: React.ForwardRefExoticComponent<ChakraDialog.TitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const DialogDescription: React.ForwardRefExoticComponent<ChakraDialog.DescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare const DialogTrigger: React.ForwardRefExoticComponent<ChakraDialog.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
export declare const DialogActionTrigger: React.ForwardRefExoticComponent<ChakraDialog.ActionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Drawer as ChakraDrawer } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface DrawerContentProps extends ChakraDrawer.ContentProps {
|
|
4
|
+
portalled?: boolean;
|
|
5
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
6
|
+
offset?: ChakraDrawer.ContentProps["padding"];
|
|
7
|
+
}
|
|
8
|
+
export declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const DrawerCloseTrigger: React.ForwardRefExoticComponent<ChakraDrawer.CloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export declare const DrawerTrigger: React.ForwardRefExoticComponent<ChakraDrawer.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export declare const DrawerRoot: React.FC<ChakraDrawer.RootProps>;
|
|
12
|
+
export declare const DrawerFooter: React.ForwardRefExoticComponent<ChakraDrawer.FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const DrawerHeader: React.ForwardRefExoticComponent<ChakraDrawer.HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const DrawerBody: React.ForwardRefExoticComponent<ChakraDrawer.BodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const DrawerBackdrop: React.ForwardRefExoticComponent<ChakraDrawer.BackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const DrawerDescription: React.ForwardRefExoticComponent<ChakraDrawer.DescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare const DrawerTitle: React.ForwardRefExoticComponent<ChakraDrawer.TitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export declare const DrawerActionTrigger: React.ForwardRefExoticComponent<ChakraDrawer.ActionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EmptyState as ChakraEmptyState } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface EmptyStateProps extends ChakraEmptyState.RootProps {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Field as ChakraField } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface FieldProps extends Omit<ChakraField.RootProps, "label"> {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
helperText?: React.ReactNode;
|
|
6
|
+
errorText?: React.ReactNode;
|
|
7
|
+
optionalText?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BoxProps, InputElementProps } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface InputGroupProps extends BoxProps {
|
|
4
|
+
startElementProps?: InputElementProps;
|
|
5
|
+
endElementProps?: InputElementProps;
|
|
6
|
+
startElement?: React.ReactNode;
|
|
7
|
+
endElement?: React.ReactNode;
|
|
8
|
+
children: React.ReactElement;
|
|
9
|
+
startOffset?: InputElementProps["paddingStart"];
|
|
10
|
+
endOffset?: InputElementProps["paddingEnd"];
|
|
11
|
+
}
|
|
12
|
+
export declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Menu as ChakraMenu } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface MenuContentProps extends ChakraMenu.ContentProps {
|
|
4
|
+
portalled?: boolean;
|
|
5
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const MenuContent: React.ForwardRefExoticComponent<MenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const MenuArrow: React.ForwardRefExoticComponent<ChakraMenu.ArrowProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const MenuCheckboxItem: React.ForwardRefExoticComponent<ChakraMenu.CheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const MenuRadioItem: React.ForwardRefExoticComponent<ChakraMenu.RadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const MenuItemGroup: React.ForwardRefExoticComponent<ChakraMenu.ItemGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export interface MenuTriggerItemProps extends ChakraMenu.ItemProps {
|
|
13
|
+
startIcon?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const MenuTriggerItem: React.ForwardRefExoticComponent<MenuTriggerItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const MenuRadioItemGroup: React.ForwardRefExoticComponent<ChakraMenu.RadioItemGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare const MenuContextTrigger: React.ForwardRefExoticComponent<ChakraMenu.ContextTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
18
|
+
export declare const MenuRoot: React.FC<ChakraMenu.RootProps>;
|
|
19
|
+
export declare const MenuSeparator: React.ForwardRefExoticComponent<ChakraMenu.SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export declare const MenuItem: React.ForwardRefExoticComponent<ChakraMenu.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export declare const MenuItemText: React.ForwardRefExoticComponent<ChakraMenu.ItemTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export declare const MenuItemCommand: React.ForwardRefExoticComponent<ChakraMenu.CommandProps & React.RefAttributes<HTMLElement>>;
|
|
23
|
+
export declare const MenuTrigger: React.ForwardRefExoticComponent<ChakraMenu.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Popover as ChakraPopover } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface PopoverContentProps extends ChakraPopover.ContentProps {
|
|
4
|
+
portalled?: boolean;
|
|
5
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const PopoverArrow: React.ForwardRefExoticComponent<ChakraPopover.ArrowProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const PopoverCloseTrigger: React.ForwardRefExoticComponent<ChakraPopover.CloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export declare const PopoverTitle: React.ForwardRefExoticComponent<ChakraPopover.TitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const PopoverDescription: React.ForwardRefExoticComponent<ChakraPopover.DescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const PopoverFooter: React.ForwardRefExoticComponent<ChakraPopover.FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const PopoverHeader: React.ForwardRefExoticComponent<ChakraPopover.HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const PopoverRoot: React.FC<ChakraPopover.RootProps>;
|
|
15
|
+
export declare const PopoverBody: React.ForwardRefExoticComponent<ChakraPopover.BodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const PopoverTrigger: React.ForwardRefExoticComponent<ChakraPopover.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RadioGroup as ChakraRadioGroup } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface RadioProps extends ChakraRadioGroup.ItemProps {
|
|
4
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
5
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export declare const RadioGroup: React.ForwardRefExoticComponent<ChakraRadioGroup.RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CollectionItem } from "@chakra-ui/react";
|
|
2
|
+
import { Select as ChakraSelect } from "@chakra-ui/react";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
interface SelectTriggerProps extends ChakraSelect.ControlProps {
|
|
5
|
+
clearable?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
interface SelectContentProps extends ChakraSelect.ContentProps {
|
|
9
|
+
portalled?: boolean;
|
|
10
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
export declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const SelectItem: React.ForwardRefExoticComponent<ChakraSelect.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
interface SelectValueTextProps extends Omit<ChakraSelect.ValueTextProps, "children"> {
|
|
15
|
+
children?(items: CollectionItem[]): React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const SelectValueText: React.ForwardRefExoticComponent<SelectValueTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
18
|
+
export declare const SelectRoot: ChakraSelect.RootComponent;
|
|
19
|
+
interface SelectItemGroupProps extends ChakraSelect.ItemGroupProps {
|
|
20
|
+
label: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare const SelectItemGroup: React.ForwardRefExoticComponent<SelectItemGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export declare const SelectLabel: React.ForwardRefExoticComponent<ChakraSelect.LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
24
|
+
export declare const SelectItemText: React.ForwardRefExoticComponent<ChakraSelect.ItemTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Slider as ChakraSlider } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface SliderProps extends ChakraSlider.RootProps {
|
|
4
|
+
marks?: Array<number | {
|
|
5
|
+
value: number;
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
}>;
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
showValue?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Switch as ChakraSwitch } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface SwitchProps extends ChakraSwitch.RootProps {
|
|
4
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
5
|
+
rootRef?: React.Ref<HTMLLabelElement>;
|
|
6
|
+
trackLabel?: {
|
|
7
|
+
on: React.ReactNode;
|
|
8
|
+
off: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
thumbLabel?: {
|
|
11
|
+
on: React.ReactNode;
|
|
12
|
+
off: React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Tag as ChakraTag } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface TagProps extends ChakraTag.RootProps {
|
|
4
|
+
startElement?: React.ReactNode;
|
|
5
|
+
endElement?: React.ReactNode;
|
|
6
|
+
onClose?: VoidFunction;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Tooltip as ChakraTooltip } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface TooltipProps extends ChakraTooltip.RootProps {
|
|
4
|
+
showArrow?: boolean;
|
|
5
|
+
portalled?: boolean;
|
|
6
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
7
|
+
content: React.ReactNode;
|
|
8
|
+
contentProps?: ChakraTooltip.ContentProps;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bsol-oss/react-datatable5",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,17 +36,15 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@chakra-ui/icons": "^2.1.1",
|
|
39
|
-
"@chakra-ui/react": "^2.
|
|
40
|
-
"@emotion/react": "^11.
|
|
41
|
-
"@emotion/styled": "^11.11.0",
|
|
39
|
+
"@chakra-ui/react": "^3.2.2",
|
|
40
|
+
"@emotion/react": "^11.13.5",
|
|
42
41
|
"@tanstack/match-sorter-utils": "^8.15.1",
|
|
43
42
|
"@tanstack/react-table": "^8.16.0",
|
|
44
43
|
"axios": "^1.6.8",
|
|
45
|
-
"
|
|
46
|
-
"react": "^18.2.0",
|
|
44
|
+
"react": "^19.0.0",
|
|
47
45
|
"react-beautiful-dnd": "^13.1.1",
|
|
48
|
-
"react-dom": "^
|
|
49
|
-
"react-icons": "^5.
|
|
46
|
+
"react-dom": "^19.0.0",
|
|
47
|
+
"react-icons": "^5.4.0"
|
|
50
48
|
},
|
|
51
49
|
"devDependencies": {
|
|
52
50
|
"@chromatic-com/storybook": "^1.2.25",
|
|
@@ -59,9 +57,9 @@
|
|
|
59
57
|
"@storybook/react": "^8.0.4",
|
|
60
58
|
"@storybook/react-vite": "^8.0.4",
|
|
61
59
|
"@storybook/test": "^8.0.4",
|
|
62
|
-
"@types/react": "
|
|
60
|
+
"@types/react": "19.0.2",
|
|
63
61
|
"@types/react-beautiful-dnd": "^13.1.8",
|
|
64
|
-
"@types/react-dom": "
|
|
62
|
+
"@types/react-dom": "19.0.2",
|
|
65
63
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
66
64
|
"@typescript-eslint/parser": "^7.2.0",
|
|
67
65
|
"@vitejs/plugin-react": "^4.2.1",
|
|
@@ -74,5 +72,8 @@
|
|
|
74
72
|
"storybook": "^8.0.4",
|
|
75
73
|
"typescript": "^5.2.2",
|
|
76
74
|
"vite": "^5.2.0"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"next-themes": "^0.4.3"
|
|
77
78
|
}
|
|
78
79
|
}
|