UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

31 lines (30 loc) 1.24 kB
import { Dict } from "../utils/types.js"; import "../utils/index.js"; import { ReactNode } from "react"; //#region src/sidemenuV2/context.d.ts interface SidemenuContextValue extends Dict { variant?: string; size?: string; isMenuExpanded?: boolean; submenuStates?: Record<string, boolean>; setSubmenuState?: (itemId: string, isOpen: boolean) => void; toggleSubmenu?: (itemId: string) => void; setIsExpanded?: (isExpanded: boolean) => void; onExpandedChange?: (isExpanded: boolean) => void; resetAllStates?: () => void; resetExpansionOnly?: () => void; resetSubmenuOnly?: () => void; } interface SidemenuStateProviderProps { children: ReactNode; isExpandedInitial?: boolean; onExpandedChange?: (isExpanded: boolean) => void; variant?: string; size?: string; isDark?: boolean; } declare const SidemenuProvider: import("react").Provider<SidemenuContextValue>, useSidemenuContext: () => SidemenuContextValue; declare const SidemenuStateProvider: ({ children, isExpandedInitial, onExpandedChange, variant, size, isDark }: SidemenuStateProviderProps) => import("react").JSX.Element; //#endregion export { SidemenuContextValue, SidemenuStateProvider, useSidemenuContext }; //# sourceMappingURL=context.d.ts.map