uilab-core 0.2.12 → 0.2.13

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.
Files changed (47) hide show
  1. package/dist/components/accordion.d.ts +5 -6
  2. package/dist/components/alert-dialog.d.ts +8 -8
  3. package/dist/components/aspect-ratio.d.ts +3 -2
  4. package/dist/components/avatar.d.ts +4 -4
  5. package/dist/components/badge.d.ts +2 -4
  6. package/dist/components/breadcrumb.d.ts +2 -3
  7. package/dist/components/button-group.d.ts +2 -3
  8. package/dist/components/button.d.ts +2 -4
  9. package/dist/components/checkbox.d.ts +2 -3
  10. package/dist/components/collapsible.d.ts +4 -4
  11. package/dist/components/command.d.ts +2 -1
  12. package/dist/components/context-menu.d.ts +16 -18
  13. package/dist/components/dialog.d.ts +9 -9
  14. package/dist/components/dropdown-menu.d.ts +17 -17
  15. package/dist/components/hover-card.d.ts +4 -5
  16. package/dist/components/index.d.ts +0 -1
  17. package/dist/components/input-group.d.ts +4 -2
  18. package/dist/components/item.d.ts +2 -3
  19. package/dist/components/label.d.ts +1 -2
  20. package/dist/components/menubar.d.ts +19 -22
  21. package/dist/components/navigation-menu.d.ts +10 -13
  22. package/dist/components/popover.d.ts +7 -8
  23. package/dist/components/progress.d.ts +7 -4
  24. package/dist/components/radio-group.d.ts +4 -4
  25. package/dist/components/scroll-area.d.ts +3 -4
  26. package/dist/components/select.d.ts +11 -11
  27. package/dist/components/separator.d.ts +2 -3
  28. package/dist/components/sheet.d.ts +7 -7
  29. package/dist/components/sidebar.d.ts +8 -14
  30. package/dist/components/slider.d.ts +2 -3
  31. package/dist/components/switch.d.ts +2 -3
  32. package/dist/components/tabs.d.ts +5 -6
  33. package/dist/components/toggle-group.d.ts +4 -4
  34. package/dist/components/toggle.d.ts +2 -3
  35. package/dist/components/tooltip.d.ts +6 -7
  36. package/dist/index.cjs +1 -10
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.ts +182 -198
  39. package/dist/index.js +1 -10
  40. package/dist/index.js.map +1 -1
  41. package/dist/styles.css +1 -1
  42. package/dist/theme.css +1 -1
  43. package/package.json +3 -33
  44. package/dist/components/carousel.d.ts +0 -28
  45. package/dist/components/chart.d.ts +0 -40
  46. package/dist/components/form.d.ts +0 -24
  47. package/dist/components/sonner.d.ts +0 -3
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { useRender } from "@base-ui/react/use-render";
2
3
  import { type VariantProps } from "class-variance-authority";
3
4
  import { Button } from "@/components/button";
4
5
  import { Input } from "@/components/input";
@@ -33,12 +34,8 @@ declare function SidebarFooter({ className, ...props }: React.ComponentProps<"di
33
34
  declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
34
35
  declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
35
36
  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;
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>>;
42
39
  declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
43
40
  declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
44
41
  declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
@@ -46,24 +43,21 @@ declare const sidebarMenuButtonVariants: (props?: ({
46
43
  variant?: "default" | "outline" | null | undefined;
47
44
  size?: "default" | "sm" | "lg" | null | undefined;
48
45
  } & 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;
46
+ declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
51
47
  isActive?: boolean;
52
48
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
53
49
  } & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
54
- declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
55
- asChild?: boolean;
50
+ declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
56
51
  showOnHover?: boolean;
57
- }): import("react/jsx-runtime").JSX.Element;
52
+ }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
58
53
  declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
59
54
  declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
60
55
  showIcon?: boolean;
61
56
  }): import("react/jsx-runtime").JSX.Element;
62
57
  declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
63
58
  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;
59
+ declare function SidebarMenuSubButton({ render, size, isActive, className, ...props }: useRender.ComponentProps<"a"> & React.ComponentProps<"a"> & {
66
60
  size?: "sm" | "md";
67
61
  isActive?: boolean;
68
- }): import("react/jsx-runtime").JSX.Element;
62
+ }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
69
63
  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, };
@@ -1,4 +1,3 @@
1
- import * as React from "react";
2
- import { Slider as SliderPrimitive } from "radix-ui";
3
- declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
1
+ import { Slider as SliderPrimitive } from "@base-ui/react/slider";
2
+ declare function Slider({ className, defaultValue, value, min, max, ...props }: SliderPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
4
3
  export { Slider };
@@ -1,6 +1,5 @@
1
- import * as React from "react";
2
- import { Switch as SwitchPrimitive } from "radix-ui";
3
- declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
1
+ import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
2
+ declare function Switch({ className, size, ...props }: SwitchPrimitive.Root.Props & {
4
3
  size?: "sm" | "default";
5
4
  }): import("react/jsx-runtime").JSX.Element;
6
5
  export { Switch };
@@ -1,11 +1,10 @@
1
- import * as React from "react";
1
+ import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
2
2
  import { type VariantProps } from "class-variance-authority";
3
- import { Tabs as TabsPrimitive } from "radix-ui";
4
- declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Tabs({ className, orientation, ...props }: TabsPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
5
4
  declare const tabsListVariants: (props?: ({
6
5
  variant?: "line" | "default" | null | undefined;
7
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
9
- declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
10
- declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ declare function TabsList({ className, variant, ...props }: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
8
+ declare function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props): import("react/jsx-runtime").JSX.Element;
9
+ declare function TabsContent({ className, ...props }: TabsPrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
11
10
  export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
@@ -1,10 +1,10 @@
1
- import * as React from "react";
1
+ import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
2
+ import { ToggleGroup as ToggleGroupPrimitive } from "@base-ui/react/toggle-group";
2
3
  import { type VariantProps } from "class-variance-authority";
3
- import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
4
4
  import { toggleVariants } from "@/components/toggle";
5
- declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
5
+ declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: ToggleGroupPrimitive.Props & VariantProps<typeof toggleVariants> & {
6
6
  spacing?: number;
7
7
  orientation?: "horizontal" | "vertical";
8
8
  }): import("react/jsx-runtime").JSX.Element;
9
- declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
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 };
@@ -1,9 +1,8 @@
1
- import * as React from "react";
1
+ import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
2
2
  import { type VariantProps } from "class-variance-authority";
3
- import { Toggle as TogglePrimitive } from "radix-ui";
4
3
  declare const toggleVariants: (props?: ({
5
4
  variant?: "default" | "outline" | null | undefined;
6
5
  size?: "default" | "sm" | "lg" | null | undefined;
7
6
  } & 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;
7
+ declare function Toggle({ className, variant, size, ...props }: TogglePrimitive.Props & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
9
8
  export { Toggle, toggleVariants };
@@ -1,7 +1,6 @@
1
- import * as React from "react";
2
- import { Tooltip as TooltipPrimitive } from "radix-ui";
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 };
1
+ import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
2
+ declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): import("react/jsx-runtime").JSX.Element;
3
+ declare function Tooltip({ ...props }: TooltipPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
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, "align" | "alignOffset" | "side" | "sideOffset">): import("react/jsx-runtime").JSX.Element;
6
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };