@syscore/ui-library 1.25.0 → 1.27.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.
@@ -281,8 +281,12 @@ SidebarTrigger.displayName = "SidebarTrigger";
281
281
 
282
282
  const SidebarRail = React.forwardRef<
283
283
  HTMLButtonElement,
284
- React.ComponentProps<"button">
285
- >(({ className, ...props }, ref) => {
284
+ React.ComponentProps<"button"> & {
285
+ side?: "left" | "right";
286
+ state?: "expanded" | "collapsed";
287
+ collapsible?: "offcanvas" | "icon" | "none";
288
+ }
289
+ >(({ className, side, state, collapsible, ...props }, ref) => {
286
290
  const { toggleSidebar } = useSidebar();
287
291
 
288
292
  return (
@@ -308,8 +312,11 @@ SidebarRail.displayName = "SidebarRail";
308
312
 
309
313
  const SidebarInset = React.forwardRef<
310
314
  HTMLDivElement,
311
- React.ComponentProps<"main">
312
- >(({ className, ...props }, ref) => {
315
+ React.ComponentProps<"main"> & {
316
+ state?: "expanded" | "collapsed";
317
+ variant?: "sidebar" | "floating" | "inset";
318
+ }
319
+ >(({ className, state, variant, ...props }, ref) => {
313
320
  return (
314
321
  <main
315
322
  ref={ref}
@@ -707,7 +714,6 @@ const SidebarMenuSubButton = React.forwardRef<
707
714
  size === "md" && "sidebar-menu-sub-button--size-md",
708
715
  className,
709
716
  )}
710
- data-size={size}
711
717
  {...props}
712
718
  />
713
719
  );