reykit 1.0.159 → 1.0.160
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/index.js +11166 -11410
- package/dist/src/component/index.d.ts +16 -0
- package/dist/src/{components → component}/ui/alert-dialog.d.ts +7 -7
- package/dist/src/{components → component}/ui/alert.d.ts +5 -5
- package/dist/src/{components → component}/ui/aspect-ratio.d.ts +1 -1
- package/dist/src/{components → component}/ui/avatar.d.ts +5 -5
- package/dist/src/{components → component}/ui/badge.d.ts +1 -1
- package/dist/src/{components → component}/ui/breadcrumb.d.ts +8 -8
- package/dist/src/{components → component}/ui/button-group.d.ts +3 -3
- package/dist/src/{components → component}/ui/calendar.d.ts +3 -3
- package/dist/src/{components → component}/ui/card.d.ts +9 -9
- package/dist/src/{components → component}/ui/carousel.d.ts +6 -6
- package/dist/src/{components → component}/ui/chart.d.ts +7 -7
- package/dist/src/{components → component}/ui/combobox.d.ts +2 -2
- package/dist/src/{components → component}/ui/command.d.ts +4 -4
- package/dist/src/{components → component}/ui/context-menu.d.ts +4 -4
- package/dist/src/{components → component}/ui/dialog.d.ts +3 -3
- package/dist/src/{components → component}/ui/drawer.d.ts +3 -3
- package/dist/src/{components → component}/ui/dropdown-menu.d.ts +4 -4
- package/dist/src/{components → component}/ui/empty.d.ts +6 -6
- package/dist/src/{components → component}/ui/field.d.ts +11 -11
- package/dist/src/{components → component}/ui/hover-card.d.ts +1 -1
- package/dist/src/component/ui/index.d.ts +68 -0
- package/dist/src/{components → component}/ui/input-group.d.ts +9 -9
- package/dist/src/{components → component}/ui/input-otp.d.ts +4 -4
- package/dist/src/component/ui/input.d.ts +3 -0
- package/dist/src/{components → component}/ui/item.d.ts +11 -11
- package/dist/src/{components → component}/ui/kbd.d.ts +2 -2
- package/dist/src/component/ui/label.d.ts +3 -0
- package/dist/src/{components → component}/ui/menubar.d.ts +2 -2
- package/dist/src/{components → component}/ui/native-select.d.ts +5 -5
- package/dist/src/{components → component}/ui/navigation-menu.d.ts +1 -1
- package/dist/src/{components → component}/ui/pagination.d.ts +7 -7
- package/dist/src/{components → component}/ui/popover.d.ts +3 -3
- package/dist/src/{components → component}/ui/resizable.d.ts +1 -1
- package/dist/src/{components → component}/ui/select.d.ts +3 -3
- package/dist/src/{components → component}/ui/sheet.d.ts +4 -4
- package/dist/src/component/ui/sidebar.d.ts +89 -0
- package/dist/src/{components → component}/ui/skeleton.d.ts +1 -1
- package/dist/src/{components → component}/ui/spinner.d.ts +1 -1
- package/dist/src/{components → component}/ui/switch.d.ts +1 -1
- package/dist/src/{components → component}/ui/table.d.ts +9 -9
- package/dist/src/component/ui/textarea.d.ts +3 -0
- package/dist/src/{components → component}/ui/toggle-group.d.ts +2 -2
- package/dist/src/{components → component}/ui/tooltip.d.ts +1 -1
- package/dist/src/index.d.ts +4 -11
- package/dist/src/lib/index.d.ts +9 -0
- package/dist/src/{window.d.ts → lib/window.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/src/components/index.d.ts +0 -10
- package/dist/src/components/ui/index.d.ts +0 -313
- package/dist/src/components/ui/input.d.ts +0 -3
- package/dist/src/components/ui/label.d.ts +0 -3
- package/dist/src/components/ui/textarea.d.ts +0 -3
- /package/dist/src/{components → component}/Breadcrumb.d.ts +0 -0
- /package/dist/src/{components → component}/Button.d.ts +0 -0
- /package/dist/src/{components → component}/Form.d.ts +0 -0
- /package/dist/src/{components → component}/Loading/Loading.d.ts +0 -0
- /package/dist/src/{components → component}/Loading/uesLoading.d.ts +0 -0
- /package/dist/src/{components → component}/Notice.d.ts +0 -0
- /package/dist/src/{components → component}/Table.d.ts +0 -0
- /package/dist/src/{components → component}/Toggle.d.ts +0 -0
- /package/dist/src/{components → component}/ui/accordion.d.ts +0 -0
- /package/dist/src/{components → component}/ui/button.d.ts +0 -0
- /package/dist/src/{components → component}/ui/checkbox.d.ts +0 -0
- /package/dist/src/{components → component}/ui/collapsible.d.ts +0 -0
- /package/dist/src/{components → component}/ui/direction.d.ts +0 -0
- /package/dist/src/{components → component}/ui/icon.d.ts +0 -0
- /package/dist/src/{components → component}/ui/progress.d.ts +0 -0
- /package/dist/src/{components → component}/ui/radio-group.d.ts +0 -0
- /package/dist/src/{components → component}/ui/scroll-area.d.ts +0 -0
- /package/dist/src/{components → component}/ui/separator.d.ts +0 -0
- /package/dist/src/{components → component}/ui/slider.d.ts +0 -0
- /package/dist/src/{components → component}/ui/sonner.d.ts +0 -0
- /package/dist/src/{components → component}/ui/tabs.d.ts +0 -0
- /package/dist/src/{components → component}/ui/toggle.d.ts +0 -0
- /package/dist/src/{base.d.ts → lib/base.d.ts} +0 -0
- /package/dist/src/{data.d.ts → lib/data.d.ts} +0 -0
- /package/dist/src/{image.d.ts → lib/image.d.ts} +0 -0
- /package/dist/src/{net.d.ts → lib/net.d.ts} +0 -0
- /package/dist/src/{re.d.ts → lib/re.d.ts} +0 -0
- /package/dist/src/{react.d.ts → lib/react.d.ts} +0 -0
- /package/dist/src/{twc.d.ts → lib/twc.d.ts} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { Separator } from '../../../
|
|
4
|
-
import * as React from
|
|
5
|
-
declare function ItemGroup({ className, ...props }: React.ComponentProps<
|
|
3
|
+
import { Separator } from '../../../component/ui/separator';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
declare function ItemGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const itemVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
9
9
|
size?: "default" | "xs" | "sm" | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
11
|
-
declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<
|
|
11
|
+
declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<'div'> & VariantProps<typeof itemVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
12
12
|
declare const itemMediaVariants: (props?: ({
|
|
13
13
|
variant?: "default" | "icon" | "image" | null | undefined;
|
|
14
14
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
15
|
-
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<
|
|
16
|
-
declare function ItemContent({ className, ...props }: React.ComponentProps<
|
|
17
|
-
declare function ItemTitle({ className, ...props }: React.ComponentProps<
|
|
18
|
-
declare function ItemDescription({ className, ...props }: React.ComponentProps<
|
|
19
|
-
declare function ItemActions({ className, ...props }: React.ComponentProps<
|
|
20
|
-
declare function ItemHeader({ className, ...props }: React.ComponentProps<
|
|
21
|
-
declare function ItemFooter({ className, ...props }: React.ComponentProps<
|
|
15
|
+
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function ItemContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function ItemTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function ItemDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function ItemActions({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function ItemHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function ItemFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function Kbd({ className, ...props }: React.ComponentProps<
|
|
2
|
-
declare function KbdGroup({ className, ...props }: React.ComponentProps<
|
|
1
|
+
declare function Kbd({ className, ...props }: React.ComponentProps<'kbd'>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function KbdGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { Kbd, KbdGroup };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Menu as MenuPrimitive } from '@base-ui/react/menu';
|
|
2
2
|
import { Menubar as MenubarPrimitive } from '@base-ui/react/menubar';
|
|
3
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '../../../
|
|
4
|
-
import * as React from
|
|
3
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '../../../component/ui/dropdown-menu';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
declare function Menubar({ className, ...props }: MenubarPrimitive.Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof DropdownMenu>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof DropdownMenuGroup>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
type NativeSelectProps = Omit<React.ComponentProps<
|
|
3
|
-
size?:
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type NativeSelectProps = Omit<React.ComponentProps<'select'>, 'size'> & {
|
|
3
|
+
size?: 'sm' | 'default';
|
|
4
4
|
};
|
|
5
5
|
declare function NativeSelect({ className, size, ...props }: NativeSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function NativeSelectOption({ ...props }: React.ComponentProps<
|
|
7
|
-
declare function NativeSelectOptGroup({ className, ...props }: React.ComponentProps<
|
|
6
|
+
declare function NativeSelectOption({ ...props }: React.ComponentProps<'option'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function NativeSelectOptGroup({ className, ...props }: React.ComponentProps<'optgroup'>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavigationMenu as NavigationMenuPrimitive } from '@base-ui/react/navigation-menu';
|
|
2
|
-
declare function NavigationMenu({ align, className, children, ...props }: NavigationMenuPrimitive.Root.Props & Pick<NavigationMenuPrimitive.Positioner.Props,
|
|
2
|
+
declare function NavigationMenu({ align, className, children, ...props }: NavigationMenuPrimitive.Root.Props & Pick<NavigationMenuPrimitive.Positioner.Props, 'align'>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function NavigationMenuList({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function NavigationMenuItem({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const navigationMenuTriggerStyle: (props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Button } from '../../../
|
|
2
|
-
import * as React from
|
|
3
|
-
declare function Pagination({ className, ...props }: React.ComponentProps<
|
|
4
|
-
declare function PaginationContent({ className, ...props }: React.ComponentProps<
|
|
5
|
-
declare function PaginationItem({ ...props }: React.ComponentProps<
|
|
1
|
+
import { Button } from '../../../component/ui/button';
|
|
2
|
+
import * as React from 'react';
|
|
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
6
|
type PaginationLinkProps = {
|
|
7
7
|
isActive?: boolean;
|
|
8
|
-
} & Pick<React.ComponentProps<typeof Button>,
|
|
8
|
+
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
9
9
|
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare function PaginationPrevious({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
|
|
11
11
|
text?: string;
|
|
@@ -13,5 +13,5 @@ declare function PaginationPrevious({ className, text, ...props }: React.Compone
|
|
|
13
13
|
declare function PaginationNext({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
|
|
14
14
|
text?: string;
|
|
15
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<
|
|
16
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare function Popover({ ...props }: PopoverPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function PopoverTrigger({ ...props }: PopoverPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function PopoverContent({ className, align, alignOffset, side, sideOffset, ...props }: PopoverPrimitive.Popup.Props & Pick<PopoverPrimitive.Positioner.Props,
|
|
6
|
-
declare function PopoverHeader({ className, ...props }: React.ComponentProps<
|
|
5
|
+
declare function PopoverContent({ className, align, alignOffset, side, sideOffset, ...props }: PopoverPrimitive.Popup.Props & Pick<PopoverPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function PopoverDescription({ className, ...props }: PopoverPrimitive.Description.Props): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as ResizablePrimitive from
|
|
1
|
+
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
2
2
|
declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Select as SelectPrimitive } from '@base-ui/react/select';
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const Select: typeof SelectPrimitive.Root;
|
|
4
4
|
declare function SelectGroup({ className, ...props }: SelectPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function SelectValue({ className, ...props }: SelectPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function SelectTrigger({ className, size, children, ...props }: SelectPrimitive.Trigger.Props & {
|
|
7
|
-
size?:
|
|
7
|
+
size?: 'sm' | 'default';
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: SelectPrimitive.Popup.Props & Pick<SelectPrimitive.Positioner.Props,
|
|
9
|
+
declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: SelectPrimitive.Popup.Props & Pick<SelectPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'>): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare function SelectLabel({ className, ...props }: SelectPrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare function SelectItem({ className, children, ...props }: SelectPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Dialog as SheetPrimitive } from '@base-ui/react/dialog';
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare function Sheet({ ...props }: SheetPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function SheetTrigger({ ...props }: SheetPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function SheetClose({ ...props }: SheetPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function SheetContent({ className, children, side, showCloseButton, ...props }: SheetPrimitive.Popup.Props & {
|
|
7
|
-
side?:
|
|
7
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
8
8
|
showCloseButton?: boolean;
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function SheetHeader({ className, ...props }: React.ComponentProps<
|
|
11
|
-
declare function SheetFooter({ className, ...props }: React.ComponentProps<
|
|
10
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare function SheetDescription({ className, ...props }: SheetPrimitive.Description.Props): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { Button } from '../../../component/ui/button';
|
|
4
|
+
import { Input } from '../../../component/ui/input';
|
|
5
|
+
import { Separator } from '../../../component/ui/separator';
|
|
6
|
+
import { TooltipContent } from '../../../component/ui/tooltip';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
type SidebarContextProps = {
|
|
9
|
+
state: 'expanded' | 'collapsed';
|
|
10
|
+
open: boolean;
|
|
11
|
+
setOpen: (open: boolean) => void;
|
|
12
|
+
openMobile: boolean;
|
|
13
|
+
setOpenMobile: (open: boolean) => void;
|
|
14
|
+
isMobile: boolean;
|
|
15
|
+
toggleSidebar: () => void;
|
|
16
|
+
};
|
|
17
|
+
declare function useSidebar(): SidebarContextProps;
|
|
18
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
|
|
19
|
+
defaultOpen?: boolean;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React.ComponentProps<'div'> & {
|
|
24
|
+
side?: 'left' | 'right';
|
|
25
|
+
variant?: 'sidebar' | 'floating' | 'inset';
|
|
26
|
+
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<'button'>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<'main'>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
declare function SidebarGroupLabel({ className, render, ...props }: useRender.ComponentProps<'div'> & React.ComponentProps<'div'>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
38
|
+
declare function SidebarGroupAction({ className, render, ...props }: useRender.ComponentProps<'button'> & React.ComponentProps<'button'>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
39
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
43
|
+
variant?: "default" | "outline" | null | undefined;
|
|
44
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
45
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
46
|
+
declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<'button'> & React.ComponentProps<'button'> & {
|
|
47
|
+
isActive?: boolean;
|
|
48
|
+
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
49
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<'button'> & React.ComponentProps<'button'> & {
|
|
51
|
+
showOnHover?: boolean;
|
|
52
|
+
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
53
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<'div'> & {
|
|
55
|
+
showIcon?: boolean;
|
|
56
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
declare function SidebarMenuSubButton({ render, size, isActive, className, ...props }: useRender.ComponentProps<'a'> & React.ComponentProps<'a'> & {
|
|
60
|
+
size?: 'sm' | 'md';
|
|
61
|
+
isActive?: boolean;
|
|
62
|
+
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
63
|
+
declare const _default: {
|
|
64
|
+
Sidebar: typeof Sidebar;
|
|
65
|
+
SidebarContent: typeof SidebarContent;
|
|
66
|
+
SidebarFooter: typeof SidebarFooter;
|
|
67
|
+
SidebarGroup: typeof SidebarGroup;
|
|
68
|
+
SidebarGroupAction: typeof SidebarGroupAction;
|
|
69
|
+
SidebarGroupContent: typeof SidebarGroupContent;
|
|
70
|
+
SidebarGroupLabel: typeof SidebarGroupLabel;
|
|
71
|
+
SidebarHeader: typeof SidebarHeader;
|
|
72
|
+
SidebarInput: typeof SidebarInput;
|
|
73
|
+
SidebarInset: typeof SidebarInset;
|
|
74
|
+
SidebarMenu: typeof SidebarMenu;
|
|
75
|
+
SidebarMenuAction: typeof SidebarMenuAction;
|
|
76
|
+
SidebarMenuBadge: typeof SidebarMenuBadge;
|
|
77
|
+
SidebarMenuButton: typeof SidebarMenuButton;
|
|
78
|
+
SidebarMenuItem: typeof SidebarMenuItem;
|
|
79
|
+
SidebarMenuSkeleton: typeof SidebarMenuSkeleton;
|
|
80
|
+
SidebarMenuSub: typeof SidebarMenuSub;
|
|
81
|
+
SidebarMenuSubButton: typeof SidebarMenuSubButton;
|
|
82
|
+
SidebarMenuSubItem: typeof SidebarMenuSubItem;
|
|
83
|
+
SidebarProvider: typeof SidebarProvider;
|
|
84
|
+
SidebarRail: typeof SidebarRail;
|
|
85
|
+
SidebarSeparator: typeof SidebarSeparator;
|
|
86
|
+
SidebarTrigger: typeof SidebarTrigger;
|
|
87
|
+
useSidebar: typeof useSidebar;
|
|
88
|
+
};
|
|
89
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function Skeleton({ className, ...props }: React.ComponentProps<
|
|
1
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export { Skeleton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function Spinner({ className, ...props }: React.ComponentProps<
|
|
1
|
+
declare function Spinner({ className, ...props }: React.ComponentProps<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export { Spinner };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
|
|
2
2
|
declare function Switch({ className, size, ...props }: SwitchPrimitive.Root.Props & {
|
|
3
|
-
size?:
|
|
3
|
+
size?: 'sm' | 'default';
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export { Switch };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
declare function Table({ className, ...props }: React.ComponentProps<
|
|
3
|
-
declare function TableHeader({ className, ...props }: React.ComponentProps<
|
|
4
|
-
declare function TableBody({ className, ...props }: React.ComponentProps<
|
|
5
|
-
declare function TableFooter({ className, ...props }: React.ComponentProps<
|
|
6
|
-
declare function TableRow({ className, ...props }: React.ComponentProps<
|
|
7
|
-
declare function TableHead({ className, ...props }: React.ComponentProps<
|
|
8
|
-
declare function TableCell({ className, ...props }: React.ComponentProps<
|
|
9
|
-
declare function TableCaption({ className, ...props }: React.ComponentProps<
|
|
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
10
|
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';
|
|
2
2
|
import { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { toggleVariants } from '../../../
|
|
4
|
+
import { toggleVariants } from '../../../component/ui/toggle';
|
|
5
5
|
declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: ToggleGroupPrimitive.Props & VariantProps<typeof toggleVariants> & {
|
|
6
6
|
spacing?: number;
|
|
7
|
-
orientation?:
|
|
7
|
+
orientation?: 'horizontal' | 'vertical';
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: TogglePrimitive.Props & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -2,5 +2,5 @@ import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
|
2
2
|
declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function Tooltip({ ...props }: TooltipPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props,
|
|
5
|
+
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
|
+
import { base, data, image, net, re, react, twc, window } from '../lib';
|
|
1
2
|
/**
|
|
2
3
|
* @Time : 2026-03-11
|
|
3
4
|
* @Author : Rey
|
|
4
5
|
* @Contact : reyxbo@163.com
|
|
5
6
|
* @Explain : Main index file.
|
|
6
7
|
*/
|
|
7
|
-
import * as component from '
|
|
8
|
-
import * as ui from '
|
|
9
|
-
import * as base from './base';
|
|
10
|
-
import * as data from './data';
|
|
11
|
-
import * as image from './image';
|
|
12
|
-
import * as net from './net';
|
|
13
|
-
import * as re from './re';
|
|
14
|
-
import * as react from './react';
|
|
15
|
-
import * as twc from './twc';
|
|
16
|
-
import * as window from './window';
|
|
8
|
+
import * as component from 'component';
|
|
9
|
+
import * as ui from 'component/ui';
|
|
17
10
|
declare const _default: {
|
|
18
11
|
component: typeof component;
|
|
19
|
-
ui: typeof ui;
|
|
12
|
+
ui: typeof component.ui;
|
|
20
13
|
base: typeof base;
|
|
21
14
|
data: typeof data;
|
|
22
15
|
image: typeof image;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as base from 'lib/base';
|
|
2
|
+
import * as data from 'lib/data';
|
|
3
|
+
import * as image from 'lib/image';
|
|
4
|
+
import * as net from 'lib/net';
|
|
5
|
+
import * as re from 'lib/re';
|
|
6
|
+
import * as react from 'lib/react';
|
|
7
|
+
import * as twc from 'lib/twc';
|
|
8
|
+
import * as window from 'lib/window';
|
|
9
|
+
export { base, data, image, net, re, react, twc, window };
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as ui } from './ui';
|
|
2
|
-
export { ui };
|
|
3
|
-
export { type BreadcrumbDict, Breadcrumb } from './Breadcrumb';
|
|
4
|
-
export { CycleButton } from './Button';
|
|
5
|
-
export { Form } from './Form';
|
|
6
|
-
export { Loading } from './Loading/Loading';
|
|
7
|
-
export { useLoading } from './Loading/uesLoading';
|
|
8
|
-
export { Notice, notice } from './Notice';
|
|
9
|
-
export { type HeaderOption, type SearchOption, type ButtonOption, type OptionName, type RowOption, type SelectRowsOption, Table } from './Table';
|
|
10
|
-
export { IconToggle } from './Toggle';
|