@sito/dashboard-app 0.0.59 → 0.0.60

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.
@@ -0,0 +1,6 @@
1
+ import { BottomNavigationCenterActionType } from '../../components/BottomNavigation/types';
2
+ export type BottomNavActionContextType = {
3
+ centerAction: BottomNavigationCenterActionType | null;
4
+ setCenterAction: (action: BottomNavigationCenterActionType | null) => void;
5
+ };
6
+ export declare const BottomNavActionContext: import('react').Context<BottomNavActionContextType | undefined>;
@@ -0,0 +1,2 @@
1
+ import { BasicProviderPropTypes } from '../types';
2
+ export declare const BottomNavActionProvider: ({ children, }: BasicProviderPropTypes) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { BottomNavActionProvider } from './BottomNavActionProvider';
2
+ export { useBottomNavAction, useOptionalBottomNavAction, useRegisterBottomNavAction, } from './useBottomNavAction';
3
+ export type { BottomNavActionRegistrationType } from './useBottomNavAction';
@@ -0,0 +1,15 @@
1
+ import { BottomNavigationCenterActionType } from '../../components/BottomNavigation/types';
2
+ export type BottomNavActionRegistrationType = BottomNavigationCenterActionType | (() => void) | null;
3
+ /**
4
+ * Returns the current bottom nav action context or undefined when provider is absent.
5
+ */
6
+ export declare const useOptionalBottomNavAction: () => import('./BottomNavActionContext').BottomNavActionContextType | undefined;
7
+ /**
8
+ * Returns the current bottom nav action context.
9
+ */
10
+ export declare const useBottomNavAction: () => import('./BottomNavActionContext').BottomNavActionContextType;
11
+ /**
12
+ * Registers an action for the bottom navigation center button.
13
+ * Automatically clears the action on unmount.
14
+ */
15
+ export declare const useRegisterBottomNavAction: (action: BottomNavActionRegistrationType) => void;
@@ -4,4 +4,5 @@ export * from './Supbase';
4
4
  export * from './Auth';
5
5
  export * from './ConfigProvider';
6
6
  export * from './DrawerMenuProvider';
7
+ export * from './BottomNavAction';
7
8
  export type * from './types';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sito/dashboard-app",
3
3
  "private": false,
4
- "version": "0.0.59",
4
+ "version": "0.0.60",
5
5
  "type": "module",
6
6
  "description": "UI Library with prefab components",
7
7
  "main": "dist/dashboard-app.cjs",