@eintrek/erp-theme 1.0.0 → 1.0.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/dist/components/command-block.d.ts +3 -0
- package/dist/components/data-table/data-table-action-bar.d.ts +20 -0
- package/dist/components/data-table/data-table-advanced-toolbar.d.ts +7 -0
- package/dist/components/data-table/data-table-column-header.d.ts +8 -0
- package/dist/components/data-table/data-table-date-filter.d.ts +8 -0
- package/dist/components/data-table/data-table-faceted-filter.d.ts +10 -0
- package/dist/components/data-table/data-table-filter-list.d.ts +11 -0
- package/dist/components/data-table/data-table-filter-menu.d.ts +11 -0
- package/dist/components/data-table/data-table-pagination.d.ts +7 -0
- package/dist/components/data-table/data-table-range-filter.d.ts +11 -0
- package/dist/components/data-table/data-table-skeleton.d.ts +11 -0
- package/dist/components/data-table/data-table-slider-filter.d.ts +7 -0
- package/dist/components/data-table/data-table-sort-list.d.ts +8 -0
- package/dist/components/data-table/data-table-toolbar.d.ts +7 -0
- package/dist/components/data-table/data-table-view-options.d.ts +6 -0
- package/dist/components/data-table/data-table.d.ts +8 -0
- package/dist/components/footer.d.ts +1 -0
- package/dist/components/header.d.ts +1 -0
- package/dist/components/registry_item_row.d.ts +10 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +14 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button.d.ts +4 -8
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +8 -7
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/chart.d.ts +40 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/context-menu.d.ts +25 -0
- package/dist/components/ui/dialog.d.ts +15 -0
- package/dist/components/ui/drawer.d.ts +13 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/faceted.d.ts +33 -0
- package/dist/components/ui/form.d.ts +23 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/menubar.d.ts +26 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/pagination.d.ts +13 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +13 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/sortable.d.ts +53 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle-group.d.ts +7 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/config/data-table.d.ts +124 -0
- package/dist/config/flag.d.ts +16 -0
- package/dist/config/site.d.ts +9 -0
- package/dist/hooks/use-callback-ref.d.ts +9 -0
- package/dist/hooks/use-data-table.d.ts +23 -0
- package/dist/hooks/use-debounced-callback.d.ts +4 -0
- package/dist/hooks/use-media-query.d.ts +1 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +65 -9
- package/dist/index.esm.css +1 -0
- package/dist/index.esm.js +48678 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +48048 -10383
- package/dist/index.js.map +1 -1
- package/dist/lib/composition.d.ts +23 -0
- package/dist/lib/constants.d.ts +2 -0
- package/dist/lib/data-table.d.ts +12 -0
- package/dist/lib/export.d.ts +6 -0
- package/dist/lib/filter-columns.d.ts +8 -0
- package/dist/lib/fonts.d.ts +2 -0
- package/dist/lib/format.d.ts +1 -0
- package/dist/lib/handle-error.d.ts +1 -0
- package/dist/lib/id.d.ts +7 -0
- package/dist/lib/parsers.d.ts +25 -0
- package/dist/lib/unstable-cache.d.ts +10 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/registry/alert.stories.d.ts +34 -0
- package/dist/registry/aspect-ratio.stories.d.ts +24 -0
- package/dist/registry/badge.stories.d.ts +42 -0
- package/dist/registry/breadcrumb.stories.d.ts +26 -0
- package/dist/registry/button.stories.d.ts +82 -0
- package/dist/registry/calendar.stories.d.ts +43 -0
- package/dist/registry/card.stories.d.ts +24 -0
- package/dist/registry/carousel.stories.d.ts +17 -0
- package/dist/registry/chart.stories.d.ts +32 -0
- package/dist/registry/checkbox.stories.d.ts +17 -0
- package/dist/registry/command.stories.d.ts +41 -0
- package/dist/registry/data-table.stories.d.ts +59 -0
- package/dist/registry/date-picker.stories.d.ts +32 -0
- package/dist/registry/drawer.stories.d.ts +27 -0
- package/dist/registry/form.stories.d.ts +14 -0
- package/dist/registry/input-otp.stories.d.ts +41 -0
- package/dist/registry/input.stories.d.ts +47 -0
- package/dist/registry/label.stories.d.ts +27 -0
- package/dist/registry/pagination.stories.d.ts +91 -0
- package/dist/registry/progress.stories.d.ts +31 -0
- package/dist/registry/resizable.stories.d.ts +12 -0
- package/dist/registry/scroll-area.stories.d.ts +41 -0
- package/dist/registry/select.stories.d.ts +13 -0
- package/dist/registry/separator.stories.d.ts +21 -0
- package/dist/registry/sheet.stories.d.ts +16 -0
- package/dist/registry/sidebar.stories.d.ts +336 -0
- package/dist/registry/skeleton.stories.d.ts +20 -0
- package/dist/registry/slider.stories.d.ts +30 -0
- package/dist/registry/sonner.stories.d.ts +14 -0
- package/dist/registry/table.stories.d.ts +104 -0
- package/dist/registry/textarea.stories.d.ts +40 -0
- package/dist/registry/toggle.stories.d.ts +35 -0
- package/dist/registry/tokens/color.stories.d.ts +23 -0
- package/dist/registry/tokens/radius.stories.d.ts +17 -0
- package/dist/registry/tokens/typography.stories.d.ts +28 -0
- package/dist/registry/tooltip.stories.d.ts +26 -0
- package/dist/types/data-table.d.ts +33 -0
- package/dist/types/doc.d.ts +195 -0
- package/dist/types/index.d.ts +26 -0
- package/package.json +54 -40
- package/dist/components/ui/Form.d.ts +0 -25
- package/dist/components/ui/Form.stories.d.ts +0 -8
- package/dist/components/ui/Input.d.ts +0 -17
- package/dist/components/ui/Input.stories.d.ts +0 -10
- package/dist/components/ui/InputDropdown.d.ts +0 -19
- package/dist/components/ui/InputDropdown.stories.d.ts +0 -9
- package/dist/components/ui/Label.d.ts +0 -8
- package/dist/components/ui/Label.stories.d.ts +0 -8
- package/dist/components/ui/Modal.d.ts +0 -12
- package/dist/components/ui/Modal.stories.d.ts +0 -13
- package/dist/components/ui/badge/Badge.d.ts +0 -6
- package/dist/components/ui/button/Button.d.ts +0 -7
- package/dist/components/ui/button.stories.d.ts +0 -25
- package/dist/components/ui/card.stories.d.ts +0 -8
- package/dist/components/ui/table/Table.d.ts +0 -5
- package/dist/components/ui/table/Table.stories.d.ts +0 -6
- package/dist/components/ui/table/TableBody.d.ts +0 -3
- package/dist/components/ui/table/TableBody.stories.d.ts +0 -7
- package/dist/components/ui/table/TableFilter.d.ts +0 -3
- package/dist/components/ui/table/TableFilter.stories.d.ts +0 -6
- package/dist/components/ui/table/TablePagination.d.ts +0 -10
- package/dist/components/ui/table/TablePagination.stories.d.ts +0 -6
- package/dist/components/ui/table/index.d.ts +0 -13
- package/dist/components/ui/table/types.d.ts +0 -54
- package/dist/components/ui/tabs/Tabs.d.ts +0 -11
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Menubar as MenubarPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof MenubarPrimitive.Item> & {
|
|
11
|
+
inset?: boolean;
|
|
12
|
+
variant?: "default" | "destructive";
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Label> & {
|
|
17
|
+
inset?: boolean;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function MenubarShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
|
|
23
|
+
inset?: boolean;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
4
|
+
viewport?: boolean;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerStyle, NavigationMenuViewport, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Button } from "@/components/ui/button";
|
|
3
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
type PaginationLinkProps = {
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
} & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
|
|
9
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ResizablePrimitive from "react-resizable-panels";
|
|
3
|
+
declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function ResizableHandle({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
6
|
+
withHandle?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Separator };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
7
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Button } from "@/components/ui/button";
|
|
4
|
+
import { Input } from "@/components/ui/input";
|
|
5
|
+
import { Separator } from "@/components/ui/separator";
|
|
6
|
+
import { TooltipContent } from "@/components/ui/tooltip";
|
|
7
|
+
type SidebarContextProps = {
|
|
8
|
+
state: "expanded" | "collapsed";
|
|
9
|
+
open: boolean;
|
|
10
|
+
setOpen: (open: boolean) => void;
|
|
11
|
+
openMobile: boolean;
|
|
12
|
+
setOpenMobile: (open: boolean) => void;
|
|
13
|
+
isMobile: boolean;
|
|
14
|
+
toggleSidebar: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare function useSidebar(): SidebarContextProps;
|
|
17
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
23
|
+
side?: "left" | "right";
|
|
24
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
25
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
|
|
40
|
+
asChild?: boolean;
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
46
|
+
variant?: "default" | "outline" | null | undefined;
|
|
47
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
48
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
49
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
|
|
50
|
+
asChild?: boolean;
|
|
51
|
+
isActive?: boolean;
|
|
52
|
+
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
53
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
|
|
55
|
+
asChild?: boolean;
|
|
56
|
+
showOnHover?: boolean;
|
|
57
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
|
|
60
|
+
showIcon?: boolean;
|
|
61
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
|
|
65
|
+
asChild?: boolean;
|
|
66
|
+
size?: "sm" | "md";
|
|
67
|
+
isActive?: boolean;
|
|
68
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Slider as SliderPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Slider };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type DndContextProps, type DragEndEvent, DragOverlay, type UniqueIdentifier } from "@dnd-kit/core";
|
|
2
|
+
import { type SortableContextProps } from "@dnd-kit/sortable";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
interface GetItemValue<T> {
|
|
5
|
+
/**
|
|
6
|
+
* Callback that returns a unique identifier for each sortable item. Required for array of objects.
|
|
7
|
+
* @example getItemValue={(item) => item.id}
|
|
8
|
+
*/
|
|
9
|
+
getItemValue: (item: T) => UniqueIdentifier;
|
|
10
|
+
}
|
|
11
|
+
type SortableProps<T> = DndContextProps & {
|
|
12
|
+
value: T[];
|
|
13
|
+
onValueChange?: (items: T[]) => void;
|
|
14
|
+
onMove?: (event: DragEndEvent & {
|
|
15
|
+
activeIndex: number;
|
|
16
|
+
overIndex: number;
|
|
17
|
+
}) => void;
|
|
18
|
+
strategy?: SortableContextProps["strategy"];
|
|
19
|
+
orientation?: "vertical" | "horizontal" | "mixed";
|
|
20
|
+
flatCursor?: boolean;
|
|
21
|
+
} & (T extends object ? GetItemValue<T> : Partial<GetItemValue<T>>);
|
|
22
|
+
declare function Sortable<T>(props: SortableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
interface SortableContentProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
24
|
+
strategy?: SortableContextProps["strategy"];
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
asChild?: boolean;
|
|
27
|
+
withoutSlot?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const SortableContent: React.ForwardRefExoticComponent<SortableContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
interface SortableItemProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
31
|
+
value: UniqueIdentifier;
|
|
32
|
+
asHandle?: boolean;
|
|
33
|
+
asChild?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
}
|
|
36
|
+
declare const SortableItem: React.ForwardRefExoticComponent<SortableItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
interface SortableItemHandleProps extends React.ComponentPropsWithoutRef<"button"> {
|
|
38
|
+
asChild?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const SortableItemHandle: React.ForwardRefExoticComponent<SortableItemHandleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
41
|
+
interface SortableOverlayProps extends Omit<React.ComponentPropsWithoutRef<typeof DragOverlay>, "children"> {
|
|
42
|
+
container?: Element | DocumentFragment | null;
|
|
43
|
+
children?: ((params: {
|
|
44
|
+
value: UniqueIdentifier;
|
|
45
|
+
}) => React.ReactNode) | React.ReactNode;
|
|
46
|
+
}
|
|
47
|
+
declare function SortableOverlay(props: SortableOverlayProps): React.ReactPortal | null;
|
|
48
|
+
declare const Root: typeof Sortable;
|
|
49
|
+
declare const Content: React.ForwardRefExoticComponent<SortableContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const Item: React.ForwardRefExoticComponent<SortableItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
declare const ItemHandle: React.ForwardRefExoticComponent<SortableItemHandleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
declare const Overlay: typeof SortableOverlay;
|
|
53
|
+
export { Root, Content, Item, ItemHandle, Overlay, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Table({ className, ...props }: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<"th">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<"td">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { toggleVariants } from "@/components/ui/toggle";
|
|
5
|
+
declare function ToggleGroup({ className, variant, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare const toggleVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export type DataTableConfig = typeof dataTableConfig;
|
|
2
|
+
export declare const dataTableConfig: {
|
|
3
|
+
textOperators: ({
|
|
4
|
+
label: string;
|
|
5
|
+
value: "iLike";
|
|
6
|
+
} | {
|
|
7
|
+
label: string;
|
|
8
|
+
value: "notILike";
|
|
9
|
+
} | {
|
|
10
|
+
label: string;
|
|
11
|
+
value: "eq";
|
|
12
|
+
} | {
|
|
13
|
+
label: string;
|
|
14
|
+
value: "ne";
|
|
15
|
+
} | {
|
|
16
|
+
label: string;
|
|
17
|
+
value: "isEmpty";
|
|
18
|
+
} | {
|
|
19
|
+
label: string;
|
|
20
|
+
value: "isNotEmpty";
|
|
21
|
+
})[];
|
|
22
|
+
numericOperators: ({
|
|
23
|
+
label: string;
|
|
24
|
+
value: "eq";
|
|
25
|
+
} | {
|
|
26
|
+
label: string;
|
|
27
|
+
value: "ne";
|
|
28
|
+
} | {
|
|
29
|
+
label: string;
|
|
30
|
+
value: "lt";
|
|
31
|
+
} | {
|
|
32
|
+
label: string;
|
|
33
|
+
value: "lte";
|
|
34
|
+
} | {
|
|
35
|
+
label: string;
|
|
36
|
+
value: "gt";
|
|
37
|
+
} | {
|
|
38
|
+
label: string;
|
|
39
|
+
value: "gte";
|
|
40
|
+
} | {
|
|
41
|
+
label: string;
|
|
42
|
+
value: "isBetween";
|
|
43
|
+
} | {
|
|
44
|
+
label: string;
|
|
45
|
+
value: "isEmpty";
|
|
46
|
+
} | {
|
|
47
|
+
label: string;
|
|
48
|
+
value: "isNotEmpty";
|
|
49
|
+
})[];
|
|
50
|
+
dateOperators: ({
|
|
51
|
+
label: string;
|
|
52
|
+
value: "eq";
|
|
53
|
+
} | {
|
|
54
|
+
label: string;
|
|
55
|
+
value: "ne";
|
|
56
|
+
} | {
|
|
57
|
+
label: string;
|
|
58
|
+
value: "lt";
|
|
59
|
+
} | {
|
|
60
|
+
label: string;
|
|
61
|
+
value: "gt";
|
|
62
|
+
} | {
|
|
63
|
+
label: string;
|
|
64
|
+
value: "lte";
|
|
65
|
+
} | {
|
|
66
|
+
label: string;
|
|
67
|
+
value: "gte";
|
|
68
|
+
} | {
|
|
69
|
+
label: string;
|
|
70
|
+
value: "isBetween";
|
|
71
|
+
} | {
|
|
72
|
+
label: string;
|
|
73
|
+
value: "isRelativeToToday";
|
|
74
|
+
} | {
|
|
75
|
+
label: string;
|
|
76
|
+
value: "isEmpty";
|
|
77
|
+
} | {
|
|
78
|
+
label: string;
|
|
79
|
+
value: "isNotEmpty";
|
|
80
|
+
})[];
|
|
81
|
+
selectOperators: ({
|
|
82
|
+
label: string;
|
|
83
|
+
value: "eq";
|
|
84
|
+
} | {
|
|
85
|
+
label: string;
|
|
86
|
+
value: "ne";
|
|
87
|
+
} | {
|
|
88
|
+
label: string;
|
|
89
|
+
value: "isEmpty";
|
|
90
|
+
} | {
|
|
91
|
+
label: string;
|
|
92
|
+
value: "isNotEmpty";
|
|
93
|
+
})[];
|
|
94
|
+
multiSelectOperators: ({
|
|
95
|
+
label: string;
|
|
96
|
+
value: "inArray";
|
|
97
|
+
} | {
|
|
98
|
+
label: string;
|
|
99
|
+
value: "notInArray";
|
|
100
|
+
} | {
|
|
101
|
+
label: string;
|
|
102
|
+
value: "isEmpty";
|
|
103
|
+
} | {
|
|
104
|
+
label: string;
|
|
105
|
+
value: "isNotEmpty";
|
|
106
|
+
})[];
|
|
107
|
+
booleanOperators: ({
|
|
108
|
+
label: string;
|
|
109
|
+
value: "eq";
|
|
110
|
+
} | {
|
|
111
|
+
label: string;
|
|
112
|
+
value: "ne";
|
|
113
|
+
})[];
|
|
114
|
+
sortOrders: ({
|
|
115
|
+
label: string;
|
|
116
|
+
value: "asc";
|
|
117
|
+
} | {
|
|
118
|
+
label: string;
|
|
119
|
+
value: "desc";
|
|
120
|
+
})[];
|
|
121
|
+
filterVariants: readonly ["text", "number", "range", "date", "dateRange", "boolean", "select", "multiSelect"];
|
|
122
|
+
operators: readonly ["iLike", "notILike", "eq", "ne", "inArray", "notInArray", "isEmpty", "isNotEmpty", "lt", "lte", "gt", "gte", "isBetween", "isRelativeToToday"];
|
|
123
|
+
joinOperators: readonly ["and", "or"];
|
|
124
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type FlagConfig = typeof flagConfig;
|
|
2
|
+
export declare const flagConfig: {
|
|
3
|
+
featureFlags: ({
|
|
4
|
+
label: string;
|
|
5
|
+
value: "advancedFilters";
|
|
6
|
+
icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
7
|
+
tooltipTitle: string;
|
|
8
|
+
tooltipDescription: string;
|
|
9
|
+
} | {
|
|
10
|
+
label: string;
|
|
11
|
+
value: "commandFilters";
|
|
12
|
+
icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
13
|
+
tooltipTitle: string;
|
|
14
|
+
tooltipDescription: string;
|
|
15
|
+
})[];
|
|
16
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://github.com/radix-ui/primitives/blob/main/packages/react/use-callback-ref/src/useCallbackRef.tsx
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
|
|
6
|
+
* prop or avoid re-executing effects when passed as a dependency
|
|
7
|
+
*/
|
|
8
|
+
declare function useCallbackRef<T extends (...args: never[]) => unknown>(callback: T | undefined): T;
|
|
9
|
+
export { useCallbackRef };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type TableOptions, type TableState } from "@tanstack/react-table";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { ExtendedColumnSort } from "@/types/data-table";
|
|
4
|
+
interface UseDataTableProps<TData> extends Omit<TableOptions<TData>, "state" | "pageCount" | "getCoreRowModel" | "manualFiltering" | "manualPagination" | "manualSorting">, Required<Pick<TableOptions<TData>, "pageCount">> {
|
|
5
|
+
initialState?: Omit<Partial<TableState>, "sorting"> & {
|
|
6
|
+
sorting?: ExtendedColumnSort<TData>[];
|
|
7
|
+
};
|
|
8
|
+
history?: "push" | "replace";
|
|
9
|
+
debounceMs?: number;
|
|
10
|
+
throttleMs?: number;
|
|
11
|
+
clearOnDefault?: boolean;
|
|
12
|
+
enableAdvancedFilter?: boolean;
|
|
13
|
+
scroll?: boolean;
|
|
14
|
+
shallow?: boolean;
|
|
15
|
+
startTransition?: React.TransitionStartFunction;
|
|
16
|
+
}
|
|
17
|
+
export declare function useDataTable<TData>(props: UseDataTableProps<TData>): {
|
|
18
|
+
table: import("@tanstack/react-table").Table<TData>;
|
|
19
|
+
shallow: boolean;
|
|
20
|
+
debounceMs: number;
|
|
21
|
+
throttleMs: number;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://github.com/mantinedev/mantine/blob/master/packages/@mantine/hooks/src/use-debounced-callback/use-debounced-callback.ts
|
|
3
|
+
*/
|
|
4
|
+
export declare function useDebouncedCallback<T extends (...args: never[]) => unknown>(callback: T, delay: number): (...args: Parameters<T>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useMediaQuery(query: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsMobile(): boolean;
|