@reapit/elements 4.0.0 → 4.0.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/cjs/components/nav/__styles__/index.d.ts +1 -0
- package/dist/cjs/components/nav/nav-responsive.d.ts +6 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/nav/__styles__/index.d.ts +1 -0
- package/dist/esm/components/nav/nav-responsive.d.ts +6 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.css +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ElNavBg: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const ElNavControlsBg: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
4
|
export declare const ElNavContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & Record<never, unknown>>;
|
|
4
5
|
export declare const ElNavSubContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
6
|
export declare const elNavItemSecondary: import("@linaria/core").LinariaClassName;
|
|
@@ -20,9 +20,14 @@ export interface NavResponsiveAppSwitcherOption {
|
|
|
20
20
|
callback?: () => void;
|
|
21
21
|
iconUrl?: ReactNode;
|
|
22
22
|
}
|
|
23
|
+
export interface BrandOptions {
|
|
24
|
+
callback?: () => void;
|
|
25
|
+
logoUrl?: string;
|
|
26
|
+
}
|
|
23
27
|
export interface NavResponsiveProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
28
|
options: NavResponsiveOption[];
|
|
25
29
|
appSwitcherOptions?: NavResponsiveAppSwitcherOption[];
|
|
30
|
+
brandOptions?: BrandOptions;
|
|
26
31
|
avatarOptions?: NavResponsiveAvatarOption[];
|
|
27
32
|
avatarText?: string;
|
|
28
33
|
defaultNavIndex?: number;
|
|
@@ -39,6 +44,7 @@ export interface NavResponsiveAppSwitcherProps {
|
|
|
39
44
|
export type LogoIcon = 'reapitLogoSelectedMenu' | 'reapitLogoMenu';
|
|
40
45
|
export declare const handleToggleLogo: (logoState: LogoIcon, setLogoState: Dispatch<SetStateAction<LogoIcon>>) => () => void;
|
|
41
46
|
export declare const handleToggleMenu: (setState: Dispatch<SetStateAction<boolean>>, callback?: () => void) => (event: MouseEvent<HTMLDivElement>) => void;
|
|
47
|
+
export declare const clickNavEventHandler: (setActive: Dispatch<SetStateAction<boolean>>) => (event: MouseEvent<HTMLAnchorElement | HTMLDivElement>) => void;
|
|
42
48
|
export declare const NavResponsiveAvatar: FC<NavResponsiveAvatarProps>;
|
|
43
49
|
export declare const NavResponsiveAppSwitcher: FC<NavResponsiveAppSwitcherProps>;
|
|
44
50
|
export declare const NavResponsive: FC<NavResponsiveProps>;
|