@touchtech/web-navigation-menu 0.0.1-alpha.0 → 0.0.1-alpha.1
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/AppsNavigation/AppsNavigation.d.ts +0 -1
- package/dist/components/Navigation/AppsNavigation/NavigationLink/NavigationLink.d.ts +0 -1
- package/dist/components/Navigation/Base.d.ts +7 -0
- package/dist/components/Navigation/Context.d.ts +9 -2
- package/dist/components/Navigation/Navigation.d.ts +1 -5
- package/dist/components/Navigation/TenantsNavigation/ModalCreateTenant/ModalCreateTenant.d.ts +0 -1
- package/dist/components/Navigation/TenantsNavigation/TenantButton/TenantButton.d.ts +0 -1
- package/dist/components/Navigation/TenantsNavigation/TenantsNavigation.d.ts +0 -1
- package/dist/components/Navigation/Tiers/Applications/ApplicationLink/ApplicationLink.d.ts +8 -0
- package/dist/components/Navigation/Tiers/Applications/ApplicationLink/index.d.ts +1 -0
- package/dist/components/Navigation/Tiers/Applications/Applications.d.ts +3 -0
- package/dist/components/Navigation/Tiers/Applications/index.d.ts +1 -0
- package/dist/components/Navigation/Tiers/Tenants/ModalCreateTenant/ModalCreateTenant.d.ts +6 -0
- package/dist/components/Navigation/Tiers/Tenants/ModalCreateTenant/index.d.ts +1 -0
- package/dist/components/Navigation/Tiers/Tenants/TenantButton/TenantButton.d.ts +7 -0
- package/dist/components/Navigation/Tiers/Tenants/TenantButton/index.d.ts +1 -0
- package/dist/components/Navigation/Tiers/Tenants/Tenants.d.ts +3 -0
- package/dist/components/Navigation/Tiers/Tenants/index.d.ts +1 -0
- package/dist/components/Navigation/Tiers/Tier/Tier.d.ts +10 -0
- package/dist/components/Navigation/Tiers/Tier/index.d.ts +1 -0
- package/dist/components/Navigation/Tiers/Tiers.d.ts +3 -0
- package/dist/components/Navigation/Tiers/index.d.ts +3 -0
- package/dist/components/Navigation/index.d.ts +1 -1
- package/dist/components/Navigation2/Applications/ApplicationLink/ApplicationLink.d.ts +7 -0
- package/dist/components/Navigation2/Applications/ApplicationLink/NavigationLink.d.ts +7 -0
- package/dist/components/Navigation2/Applications/ApplicationLink/index.d.ts +1 -0
- package/dist/components/Navigation2/Applications/Applications.d.ts +6 -0
- package/dist/components/Navigation2/Applications/NavigationLink/NavigationLink.d.ts +7 -0
- package/dist/components/Navigation2/Applications/NavigationLink/index.d.ts +1 -0
- package/dist/components/Navigation2/Applications/index.d.ts +1 -0
- package/dist/components/Navigation2/Base.d.ts +6 -0
- package/dist/components/Navigation2/Context.d.ts +27 -0
- package/dist/components/Navigation2/Logo/Logo.d.ts +7 -0
- package/dist/components/Navigation2/Logo/index.d.ts +1 -0
- package/dist/components/Navigation2/Navigation.d.ts +2 -0
- package/dist/components/Navigation2/Tenants/ModalCreateTenant/ModalCreateTenant.d.ts +5 -0
- package/dist/components/Navigation2/Tenants/ModalCreateTenant/index.d.ts +1 -0
- package/dist/components/Navigation2/Tenants/TenantButton/TenantButton.d.ts +6 -0
- package/dist/components/Navigation2/Tenants/TenantButton/index.d.ts +1 -0
- package/dist/components/Navigation2/Tenants/Tenants.d.ts +5 -0
- package/dist/components/Navigation2/Tenants/index.d.ts +1 -0
- package/dist/components/Navigation2/Tier/Tier.d.ts +10 -0
- package/dist/components/Navigation2/Tier/index.d.ts +1 -0
- package/dist/components/Navigation2/Tiers/Applications/ApplicationLink/ApplicationLink.d.ts +7 -0
- package/dist/components/Navigation2/Tiers/Applications/ApplicationLink/index.d.ts +1 -0
- package/dist/components/Navigation2/Tiers/Applications/Applications.d.ts +2 -0
- package/dist/components/Navigation2/Tiers/Applications/index.d.ts +1 -0
- package/dist/components/Navigation2/Tiers/Tenants/ModalCreateTenant/ModalCreateTenant.d.ts +5 -0
- package/dist/components/Navigation2/Tiers/Tenants/ModalCreateTenant/index.d.ts +1 -0
- package/dist/components/Navigation2/Tiers/Tenants/TenantButton/TenantButton.d.ts +6 -0
- package/dist/components/Navigation2/Tiers/Tenants/TenantButton/index.d.ts +1 -0
- package/dist/components/Navigation2/Tiers/Tenants/Tenants.d.ts +2 -0
- package/dist/components/Navigation2/Tiers/Tenants/index.d.ts +1 -0
- package/dist/components/Navigation2/Tiers/Tier/Tier.d.ts +10 -0
- package/dist/components/Navigation2/Tiers/Tier/index.d.ts +1 -0
- package/dist/components/Navigation2/Tiers/Tiers.d.ts +2 -0
- package/dist/components/Navigation2/Tiers/index.d.ts +3 -0
- package/dist/components/Navigation2/index.d.ts +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/styles.css +157 -133
- package/package.json +17 -17
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type Props = {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
+
open: boolean;
|
|
5
|
+
onNavigationClose?: () => void;
|
|
4
6
|
};
|
|
5
7
|
type NavigationViewState = {
|
|
6
|
-
selectedTenantId: string
|
|
8
|
+
selectedTenantId: string;
|
|
9
|
+
isTenantsOpen: boolean;
|
|
10
|
+
isNavigationOpen: boolean;
|
|
7
11
|
};
|
|
8
12
|
type NavigationContextValue = {
|
|
9
13
|
hasMarketingAccess: boolean;
|
|
@@ -14,7 +18,10 @@ type NavigationContextValue = {
|
|
|
14
18
|
viewState: NavigationViewState;
|
|
15
19
|
updateViewState: (viewStateUpdate: Partial<NavigationViewState>) => void;
|
|
16
20
|
signOut: () => void;
|
|
21
|
+
toggleTenants: () => void;
|
|
22
|
+
onNavigationClose: () => void;
|
|
17
23
|
};
|
|
24
|
+
export declare const NavigationContext: React.Context<NavigationContextValue>;
|
|
18
25
|
export declare function useNavigationContext(): NavigationContextValue;
|
|
19
|
-
export declare function
|
|
26
|
+
export declare function NavigationContextProvider({ children, open, onNavigationClose, }: Props): JSX.Element;
|
|
20
27
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ApplicationLink";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Applications";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ModalCreateTenant";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./TenantButton";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Tenants";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
header?: React.ReactNode;
|
|
5
|
+
footer?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
};
|
|
9
|
+
declare function Tier({ children, header, footer, className, width }: Props): JSX.Element;
|
|
10
|
+
export default Tier;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Tier";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Navigation } from "./
|
|
1
|
+
export { default as Navigation } from "./Base";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ApplicationLink";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./NavigationLink";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Applications";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
open: boolean;
|
|
5
|
+
onNavigationClose?: () => void;
|
|
6
|
+
};
|
|
7
|
+
type NavigationViewState = {
|
|
8
|
+
selectedTenantId: string;
|
|
9
|
+
isTenantsOpen: boolean;
|
|
10
|
+
isNavigationOpen: boolean;
|
|
11
|
+
};
|
|
12
|
+
type NavigationContextValue = {
|
|
13
|
+
hasMarketingAccess: boolean;
|
|
14
|
+
hasShowroomAccess: boolean;
|
|
15
|
+
hasSendoutAccess: boolean;
|
|
16
|
+
hasSendoutCmsAccess: boolean;
|
|
17
|
+
hasManageUsersAccess: boolean;
|
|
18
|
+
viewState: NavigationViewState;
|
|
19
|
+
updateViewState: (viewStateUpdate: Partial<NavigationViewState>) => void;
|
|
20
|
+
signOut: () => void;
|
|
21
|
+
toggleTenants: () => void;
|
|
22
|
+
onNavigationClose: () => void;
|
|
23
|
+
};
|
|
24
|
+
export declare const NavigationContext: React.Context<NavigationContextValue>;
|
|
25
|
+
export declare function useNavigationContext(): NavigationContextValue;
|
|
26
|
+
export declare function NavigationContextProvider({ children, open, onNavigationClose, }: Props): JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Logo";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ModalCreateTenant";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./TenantButton";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Tenants";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
header?: React.ReactNode;
|
|
5
|
+
footer?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
};
|
|
9
|
+
declare function Tier({ children, header, footer, className, width }: Props): JSX.Element;
|
|
10
|
+
export default Tier;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Tier";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ApplicationLink";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Applications";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ModalCreateTenant";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./TenantButton";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Tenants";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
header?: React.ReactNode;
|
|
5
|
+
footer?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
};
|
|
9
|
+
declare function Tier({ children, header, footer, className, width }: Props): JSX.Element;
|
|
10
|
+
export default Tier;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Tier";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Navigation } from "./Base";
|