@reeverdev/ui 0.2.9 → 0.2.11

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.cts CHANGED
@@ -3682,29 +3682,40 @@ declare const bottomNavigationVariants: (props?: ({
3682
3682
  size?: "sm" | "md" | "lg" | null | undefined;
3683
3683
  } & class_variance_authority_types.ClassProp) | undefined) => string;
3684
3684
  interface BottomNavigationItem {
3685
+ /** Unique identifier for the item */
3685
3686
  key: string;
3686
- label: string;
3687
+ /** Icon to display */
3687
3688
  icon: React$1.ReactNode;
3689
+ /** Active state icon (optional) */
3688
3690
  activeIcon?: React$1.ReactNode;
3689
- badge?: number | string;
3691
+ /** Label text */
3692
+ label?: string;
3693
+ /** Badge count (0 or undefined to hide) */
3694
+ badge?: number;
3695
+ /** Show dot badge instead of count */
3696
+ showDot?: boolean;
3697
+ /** Disabled state */
3698
+ disabled?: boolean;
3699
+ /** Custom href for navigation */
3690
3700
  href?: string;
3691
- onClick?: () => void;
3692
3701
  }
3693
- interface BottomNavigationProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "onChange">, VariantProps<typeof bottomNavigationVariants> {
3702
+ interface BottomNavigationProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof bottomNavigationVariants> {
3694
3703
  /** Navigation items */
3695
3704
  items: BottomNavigationItem[];
3696
- /** Active item key */
3697
- activeKey?: string;
3698
- /** Default active key */
3699
- defaultActiveKey?: string;
3700
- /** Called when active item changes */
3701
- onChange?: (key: string) => void;
3702
- /** When to show labels */
3703
- showLabels?: "always" | "active" | "never";
3704
- /** Hide on scroll down */
3705
- hideOnScroll?: boolean;
3706
- }
3707
- declare const BottomNavigation: React$1.ForwardRefExoticComponent<BottomNavigationProps & React$1.RefAttributes<HTMLElement>>;
3705
+ /** Currently active item key (controlled) */
3706
+ value?: string;
3707
+ /** Default active item key (uncontrolled) */
3708
+ defaultValue?: string;
3709
+ /** Callback when active item changes */
3710
+ onValueChange?: (value: string) => void;
3711
+ /** Hide labels, show only icons */
3712
+ hideLabels?: boolean;
3713
+ /** Show labels only for active item */
3714
+ showActiveLabel?: boolean;
3715
+ /** Custom render for navigation item */
3716
+ renderItem?: (item: BottomNavigationItem, isActive: boolean) => React$1.ReactNode;
3717
+ }
3718
+ declare const BottomNavigation: React$1.ForwardRefExoticComponent<BottomNavigationProps & React$1.RefAttributes<HTMLDivElement>>;
3708
3719
 
3709
3720
  declare const actionSheetItemVariants: (props?: ({
3710
3721
  variant?: "default" | "destructive" | null | undefined;
package/dist/index.d.ts CHANGED
@@ -3682,29 +3682,40 @@ declare const bottomNavigationVariants: (props?: ({
3682
3682
  size?: "sm" | "md" | "lg" | null | undefined;
3683
3683
  } & class_variance_authority_types.ClassProp) | undefined) => string;
3684
3684
  interface BottomNavigationItem {
3685
+ /** Unique identifier for the item */
3685
3686
  key: string;
3686
- label: string;
3687
+ /** Icon to display */
3687
3688
  icon: React$1.ReactNode;
3689
+ /** Active state icon (optional) */
3688
3690
  activeIcon?: React$1.ReactNode;
3689
- badge?: number | string;
3691
+ /** Label text */
3692
+ label?: string;
3693
+ /** Badge count (0 or undefined to hide) */
3694
+ badge?: number;
3695
+ /** Show dot badge instead of count */
3696
+ showDot?: boolean;
3697
+ /** Disabled state */
3698
+ disabled?: boolean;
3699
+ /** Custom href for navigation */
3690
3700
  href?: string;
3691
- onClick?: () => void;
3692
3701
  }
3693
- interface BottomNavigationProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "onChange">, VariantProps<typeof bottomNavigationVariants> {
3702
+ interface BottomNavigationProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof bottomNavigationVariants> {
3694
3703
  /** Navigation items */
3695
3704
  items: BottomNavigationItem[];
3696
- /** Active item key */
3697
- activeKey?: string;
3698
- /** Default active key */
3699
- defaultActiveKey?: string;
3700
- /** Called when active item changes */
3701
- onChange?: (key: string) => void;
3702
- /** When to show labels */
3703
- showLabels?: "always" | "active" | "never";
3704
- /** Hide on scroll down */
3705
- hideOnScroll?: boolean;
3706
- }
3707
- declare const BottomNavigation: React$1.ForwardRefExoticComponent<BottomNavigationProps & React$1.RefAttributes<HTMLElement>>;
3705
+ /** Currently active item key (controlled) */
3706
+ value?: string;
3707
+ /** Default active item key (uncontrolled) */
3708
+ defaultValue?: string;
3709
+ /** Callback when active item changes */
3710
+ onValueChange?: (value: string) => void;
3711
+ /** Hide labels, show only icons */
3712
+ hideLabels?: boolean;
3713
+ /** Show labels only for active item */
3714
+ showActiveLabel?: boolean;
3715
+ /** Custom render for navigation item */
3716
+ renderItem?: (item: BottomNavigationItem, isActive: boolean) => React$1.ReactNode;
3717
+ }
3718
+ declare const BottomNavigation: React$1.ForwardRefExoticComponent<BottomNavigationProps & React$1.RefAttributes<HTMLDivElement>>;
3708
3719
 
3709
3720
  declare const actionSheetItemVariants: (props?: ({
3710
3721
  variant?: "default" | "destructive" | null | undefined;