@scalably/ui 0.14.0 → 0.14.2

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
@@ -302,11 +302,23 @@ interface BottomNavigationV2Props {
302
302
  fixed?: boolean;
303
303
  /** Custom z-index value when fixed. Defaults to 40. */
304
304
  zIndex?: number;
305
+ /** Controlled: hide the navigation entirely. */
306
+ hidden?: boolean;
307
+ /** Uncontrolled: initial hidden state when `hidden` is not provided. Defaults to false. */
308
+ defaultHidden?: boolean;
309
+ /** Callback when hidden state changes. */
310
+ onHiddenChange?: (hidden: boolean) => void;
311
+ /** Optional floating toggle button that can hide/unhide the BottomNavigationV2. */
312
+ toggleButton?: boolean | BottomNavigationToggleButtonOptions;
305
313
  }
306
314
 
315
+ declare const BottomNavigationV2: react.ForwardRefExoticComponent<BottomNavigationV2Props & react.RefAttributes<HTMLDivElement>>;
316
+
307
317
  /**
308
318
  * BottomNavigation - A mobile-optimized bottom navigation bar with animated interactions.
309
319
  *
320
+ * @deprecated Prefer `BottomNavigationV2` for new work.
321
+ *
310
322
  * Features:
311
323
  * - Compound component pattern (BottomNavigation, BottomNavigationItem)
312
324
  * - Smooth animations with scale and color transitions
@@ -335,32 +347,6 @@ declare const BottomNavigation: react.ForwardRefExoticComponent<BottomNavigation
335
347
 
336
348
  declare const BottomNavigationItem: react.ForwardRefExoticComponent<BottomNavigationItemProps & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
337
349
 
338
- /**
339
- * BottomNavigationV2 - A premium mobile bottom navigation bar with a curved cutout shape,
340
- * a central rotating app launcher button, and an expandable popup action drawer.
341
- *
342
- * @example
343
- * ```tsx
344
- * <BottomNavigationV2
345
- * defaultValue="home"
346
- * tabs={[
347
- * { value: 'home', label: 'Home', icon: <HomeIcon /> },
348
- * { value: 'feeds', label: 'Feeds', icon: <FeedIcon /> },
349
- * { value: 'shop', label: 'Shop', icon: <ShopIcon /> },
350
- * { value: 'notifications', label: 'Notifications', icon: <BellIcon />, badge: 99 },
351
- * ]}
352
- * menuItems={[
353
- * { value: 'campaigns', label: 'Campaigns', icon: <SocialCampaignIcon /> },
354
- * { value: 'reviews', label: 'Reviews', icon: <ReviewIcon /> },
355
- * { value: 'marketplace', label: 'Marketplace', icon: <StoreIcon /> },
356
- * { value: 'profile', label: 'Profile', icon: <UserIcon /> },
357
- * ]}
358
- * fixed
359
- * />
360
- * ```
361
- */
362
- declare const BottomNavigationV2: react.ForwardRefExoticComponent<BottomNavigationV2Props & react.RefAttributes<HTMLDivElement>>;
363
-
364
350
  type SvgProps = React.ComponentPropsWithoutRef<"svg">;
365
351
  interface IconBaseProps extends SvgProps {
366
352
  /** Size of the icon in pixels. Defaults to 24. */
package/dist/index.d.ts CHANGED
@@ -302,11 +302,23 @@ interface BottomNavigationV2Props {
302
302
  fixed?: boolean;
303
303
  /** Custom z-index value when fixed. Defaults to 40. */
304
304
  zIndex?: number;
305
+ /** Controlled: hide the navigation entirely. */
306
+ hidden?: boolean;
307
+ /** Uncontrolled: initial hidden state when `hidden` is not provided. Defaults to false. */
308
+ defaultHidden?: boolean;
309
+ /** Callback when hidden state changes. */
310
+ onHiddenChange?: (hidden: boolean) => void;
311
+ /** Optional floating toggle button that can hide/unhide the BottomNavigationV2. */
312
+ toggleButton?: boolean | BottomNavigationToggleButtonOptions;
305
313
  }
306
314
 
315
+ declare const BottomNavigationV2: react.ForwardRefExoticComponent<BottomNavigationV2Props & react.RefAttributes<HTMLDivElement>>;
316
+
307
317
  /**
308
318
  * BottomNavigation - A mobile-optimized bottom navigation bar with animated interactions.
309
319
  *
320
+ * @deprecated Prefer `BottomNavigationV2` for new work.
321
+ *
310
322
  * Features:
311
323
  * - Compound component pattern (BottomNavigation, BottomNavigationItem)
312
324
  * - Smooth animations with scale and color transitions
@@ -335,32 +347,6 @@ declare const BottomNavigation: react.ForwardRefExoticComponent<BottomNavigation
335
347
 
336
348
  declare const BottomNavigationItem: react.ForwardRefExoticComponent<BottomNavigationItemProps & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
337
349
 
338
- /**
339
- * BottomNavigationV2 - A premium mobile bottom navigation bar with a curved cutout shape,
340
- * a central rotating app launcher button, and an expandable popup action drawer.
341
- *
342
- * @example
343
- * ```tsx
344
- * <BottomNavigationV2
345
- * defaultValue="home"
346
- * tabs={[
347
- * { value: 'home', label: 'Home', icon: <HomeIcon /> },
348
- * { value: 'feeds', label: 'Feeds', icon: <FeedIcon /> },
349
- * { value: 'shop', label: 'Shop', icon: <ShopIcon /> },
350
- * { value: 'notifications', label: 'Notifications', icon: <BellIcon />, badge: 99 },
351
- * ]}
352
- * menuItems={[
353
- * { value: 'campaigns', label: 'Campaigns', icon: <SocialCampaignIcon /> },
354
- * { value: 'reviews', label: 'Reviews', icon: <ReviewIcon /> },
355
- * { value: 'marketplace', label: 'Marketplace', icon: <StoreIcon /> },
356
- * { value: 'profile', label: 'Profile', icon: <UserIcon /> },
357
- * ]}
358
- * fixed
359
- * />
360
- * ```
361
- */
362
- declare const BottomNavigationV2: react.ForwardRefExoticComponent<BottomNavigationV2Props & react.RefAttributes<HTMLDivElement>>;
363
-
364
350
  type SvgProps = React.ComponentPropsWithoutRef<"svg">;
365
351
  interface IconBaseProps extends SvgProps {
366
352
  /** Size of the icon in pixels. Defaults to 24. */