@touchtech/web-navigation-menu 0.0.1-alpha.6 → 0.0.1-alpha.8
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/components/Navigation/Context.d.ts +6 -6
- package/dist/components/Navigation/Navigation.d.ts +2 -2
- package/dist/components/Navigation/NavigationButton.d.ts +1 -1
- package/dist/components/Navigation/Tiers/Tier/Tier.d.ts +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/styles.css +95 -84
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type Props = {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
-
|
|
4
|
+
isOpen: boolean;
|
|
5
5
|
onNavigationClose?: () => void;
|
|
6
6
|
};
|
|
7
7
|
type NavigationViewState = {
|
|
@@ -10,11 +10,11 @@ type NavigationViewState = {
|
|
|
10
10
|
isNavigationOpen: boolean;
|
|
11
11
|
};
|
|
12
12
|
export type NavigationContextValue = {
|
|
13
|
-
|
|
13
|
+
hasMarketingEngineAccess: boolean;
|
|
14
14
|
hasShowroomAccess: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
hasSendoutsAccess: boolean;
|
|
16
|
+
hasSendoutsCmsAccess: boolean;
|
|
17
|
+
hasUserManagementAccess: boolean;
|
|
18
18
|
viewState: NavigationViewState;
|
|
19
19
|
updateViewState: (viewStateUpdate: Partial<NavigationViewState>) => void;
|
|
20
20
|
signOut: () => void;
|
|
@@ -23,5 +23,5 @@ export type NavigationContextValue = {
|
|
|
23
23
|
};
|
|
24
24
|
export declare const NavigationContext: React.Context<NavigationContextValue>;
|
|
25
25
|
export declare function useNavigationContext(): NavigationContextValue;
|
|
26
|
-
export declare function NavigationContextProvider({ children,
|
|
26
|
+
export declare function NavigationContextProvider({ children, isOpen, onNavigationClose, }: Props): JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
type Props = {
|
|
3
|
-
|
|
3
|
+
isOpen: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
};
|
|
6
|
-
declare function Navigation({
|
|
6
|
+
declare function Navigation({ isOpen, onClose }: Props): JSX.Element;
|
|
7
7
|
export default Navigation;
|
|
@@ -4,5 +4,5 @@ type IconButtonProps = React.ComponentProps<typeof IconButton>;
|
|
|
4
4
|
type Props = Partial<IconButtonProps> & {
|
|
5
5
|
navigationContainer?: Element | DocumentFragment;
|
|
6
6
|
};
|
|
7
|
-
declare function NavigationButton({ size, alt, src,
|
|
7
|
+
declare function NavigationButton({ size, alt, src, navigationContainer, ...props }: Props): JSX.Element;
|
|
8
8
|
export default NavigationButton;
|
|
@@ -2,10 +2,10 @@ import React from "react";
|
|
|
2
2
|
type Props = {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
header?: React.ReactNode;
|
|
5
|
-
|
|
5
|
+
showHeaderBorder?: boolean;
|
|
6
6
|
footer?: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
width?: number;
|
|
9
9
|
};
|
|
10
|
-
declare function Tier({ children, header, footer, className, width,
|
|
10
|
+
declare function Tier({ children, header, footer, className, width, showHeaderBorder, }: Props): JSX.Element;
|
|
11
11
|
export default Tier;
|
|
@@ -6,5 +6,5 @@ export declare const AppPaths: {
|
|
|
6
6
|
USER_MANAGEMENT: string;
|
|
7
7
|
TENANTS: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const TENANTS_TIER_WIDTH =
|
|
10
|
-
export declare const APPLICATIONS_TIER_WIDTH =
|
|
9
|
+
export declare const TENANTS_TIER_WIDTH = 300;
|
|
10
|
+
export declare const APPLICATIONS_TIER_WIDTH = 300;
|