@cleen/ui 0.1.36 → 0.1.37

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.d.ts CHANGED
@@ -1662,6 +1662,7 @@ type DrawerProps = Omit<ComponentProps<'div'>, 'title'> & {
1662
1662
  isOpen?: boolean;
1663
1663
  onClose?: () => void;
1664
1664
  closeOnOverlayClick?: boolean;
1665
+ position?: 'left' | 'right';
1665
1666
  zIndex?: number;
1666
1667
  size?: keyof typeof sizes$1 | number;
1667
1668
  p?: number;
@@ -1686,7 +1687,7 @@ type DrawerProps = Omit<ComponentProps<'div'>, 'title'> & {
1686
1687
  };
1687
1688
  };
1688
1689
  /**
1689
- * A right-anchored slide-over panel (drawer) for presenting contextual UI.
1690
+ * A side-anchored slide-over panel (drawer) for presenting contextual UI.
1690
1691
  *
1691
1692
  * - Controlled via `isOpen` (boolean) and `onClose` (callback).
1692
1693
  * - Renders a clickable overlay/backdrop that closes the drawer when clicked.
@@ -2765,6 +2766,8 @@ interface SidebarProps {
2765
2766
  drawerFooter?: ReactNode | ((activeMenuId: string | null) => ReactNode);
2766
2767
  /** Width of the drawer when open (in pixels) */
2767
2768
  drawerWidth?: number;
2769
+ /** Side where drawer content slides in from */
2770
+ direction?: 'left' | 'right';
2768
2771
  /** Initial active menu ID */
2769
2772
  defaultActiveId?: string | null;
2770
2773
  /** Controlled active menu ID */
@@ -2822,7 +2825,7 @@ interface SidebarProps {
2822
2825
  * />
2823
2826
  * ```
2824
2827
  */
2825
- declare function Sidebar({ navigationItems, bottomNavigationItems, drawerContent, logo, onLogoClick, userAvatar, userInfo, drawerFooter, drawerWidth, defaultActiveId, activeId: controlledActiveId, onActiveChange, closeOnOutsideClick, closeOnBlur, className, classNames, style, styles, renderSidebarItem, }: SidebarProps): react_jsx_runtime.JSX.Element;
2828
+ declare function Sidebar({ navigationItems, bottomNavigationItems, drawerContent, logo, onLogoClick, userAvatar, userInfo, drawerFooter, drawerWidth, direction, defaultActiveId, activeId: controlledActiveId, onActiveChange, closeOnOutsideClick, closeOnBlur, className, classNames, style, styles, renderSidebarItem, }: SidebarProps): react_jsx_runtime.JSX.Element;
2826
2829
 
2827
2830
  /**
2828
2831
  * SidebarItem - A single navigation item in the sidebar