@touchtech/web-navigation-menu 0.0.1-alpha.16 → 0.0.1-alpha.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.
Files changed (133) hide show
  1. package/dist/06cea64a3496fbd9984a.ttf +0 -0
  2. package/dist/4d727e888a46c0fbe479.woff +0 -0
  3. package/dist/9e6846502344d86a3f50.woff2 +0 -0
  4. package/dist/aadb65ac45347ff46699.ttf +0 -0
  5. package/dist/components/Nav/BrandsLevel/BrandsLevel.d.ts +5 -0
  6. package/dist/components/Nav/BrandsLevel/index.d.ts +1 -0
  7. package/dist/components/Nav/Button/Button.d.ts +7 -0
  8. package/dist/components/Nav/Button/index.d.ts +1 -0
  9. package/dist/components/Nav/Drawer/Drawer.d.ts +16 -0
  10. package/dist/components/Nav/Drawer/index.d.ts +2 -0
  11. package/dist/components/Nav/Level/Level.d.ts +10 -0
  12. package/dist/components/Nav/Level/index.d.ts +1 -0
  13. package/dist/components/Nav/Logo/Logo.d.ts +7 -0
  14. package/dist/components/Nav/Logo/index.d.ts +1 -0
  15. package/dist/components/Nav/Navigation.d.ts +6 -0
  16. package/dist/components/Nav/NavigationButton/NavigationButton.d.ts +5 -0
  17. package/dist/components/Nav/NavigationButton/index.d.ts +1 -0
  18. package/dist/components/Nav/Navigation_old.d.ts +6 -0
  19. package/dist/components/Nav/PrimaryLevel/PrimaryLevel.d.ts +7 -0
  20. package/dist/components/Nav/PrimaryLevel/index.d.ts +1 -0
  21. package/dist/components/Nav/TenantsLevel/TenantsLevel.d.ts +6 -0
  22. package/dist/components/Nav/TenantsLevel/index.d.ts +1 -0
  23. package/dist/components/Nav/index.d.ts +1 -0
  24. package/dist/components/NavTest1/Drawer/Drawer.d.ts +16 -0
  25. package/dist/components/NavTest1/Drawer/index.d.ts +2 -0
  26. package/dist/components/NavTest1/Logo/Logo.d.ts +7 -0
  27. package/dist/components/NavTest1/Logo/index.d.ts +1 -0
  28. package/dist/components/NavTest1/Navigation.d.ts +2 -0
  29. package/dist/components/NavTest1/index.d.ts +1 -0
  30. package/dist/components/NavTest2/BrandsLevel/BrandsLevel.d.ts +5 -0
  31. package/dist/components/NavTest2/BrandsLevel/index.d.ts +1 -0
  32. package/dist/components/NavTest2/Drawer/Drawer.d.ts +16 -0
  33. package/dist/components/NavTest2/Drawer/index.d.ts +2 -0
  34. package/dist/components/NavTest2/Level/Level.d.ts +10 -0
  35. package/dist/components/NavTest2/Level/index.d.ts +1 -0
  36. package/dist/components/NavTest2/Logo/Logo.d.ts +7 -0
  37. package/dist/components/NavTest2/Logo/index.d.ts +1 -0
  38. package/dist/components/NavTest2/Navigation.d.ts +6 -0
  39. package/dist/components/NavTest2/NavigationButton/NavigationButton.d.ts +5 -0
  40. package/dist/components/NavTest2/NavigationButton/index.d.ts +1 -0
  41. package/dist/components/NavTest2/Navigation_old.d.ts +6 -0
  42. package/dist/components/NavTest2/PrimaryLevel/PrimaryLevel.d.ts +7 -0
  43. package/dist/components/NavTest2/PrimaryLevel/index.d.ts +1 -0
  44. package/dist/components/NavTest2/TenantsLevel/TenantsLevel.d.ts +6 -0
  45. package/dist/components/NavTest2/TenantsLevel/index.d.ts +1 -0
  46. package/dist/components/NavTest2/index.d.ts +1 -0
  47. package/dist/components/Navigation/AppsNavigation/AppsNavigation.d.ts +8 -0
  48. package/dist/components/Navigation/AppsNavigation/NavigationLink/NavigationLink.d.ts +7 -0
  49. package/dist/components/Navigation/AppsNavigation/NavigationLink/index.d.ts +1 -0
  50. package/dist/components/Navigation/AppsNavigation/index.d.ts +1 -0
  51. package/dist/components/Navigation/Base.d.ts +7 -0
  52. package/dist/components/Navigation/Context.d.ts +9 -13
  53. package/dist/components/Navigation/DefaultNavigation/DefaultNavigation.d.ts +7 -0
  54. package/dist/components/Navigation/DefaultNavigation/PrimaryLevel.d.ts +10 -0
  55. package/dist/components/Navigation/DefaultNavigation/index.d.ts +1 -0
  56. package/dist/components/Navigation/DefaultNavigationView/DefaultNavigation.d.ts +7 -0
  57. package/dist/components/Navigation/DefaultNavigationView/DefaultNavigationView.d.ts +7 -0
  58. package/dist/components/Navigation/DefaultNavigationView/index.d.ts +1 -0
  59. package/dist/components/Navigation/Drawer/Drawer.d.ts +16 -0
  60. package/dist/components/Navigation/Drawer/index.d.ts +2 -0
  61. package/dist/components/Navigation/Level/Level.d.ts +10 -0
  62. package/dist/components/Navigation/Level/index.d.ts +1 -0
  63. package/dist/components/Navigation/Logo/Logo.d.ts +1 -1
  64. package/dist/components/Navigation/Navigation.d.ts +1 -5
  65. package/dist/components/Navigation/NavigationButton/NavigationButton.d.ts +7 -0
  66. package/dist/components/Navigation/NavigationButton/NavigationLink.d.ts +7 -0
  67. package/dist/components/Navigation/NavigationButton/index.d.ts +1 -0
  68. package/dist/components/Navigation/NavigationLevel/Level.d.ts +10 -0
  69. package/dist/components/Navigation/NavigationLevel/index.d.ts +1 -0
  70. package/dist/components/Navigation/NavigationLink/NavigationLink.d.ts +7 -0
  71. package/dist/components/Navigation/NavigationLink/index.d.ts +1 -0
  72. package/dist/components/Navigation/NavigationView/NavigationView.d.ts +10 -0
  73. package/dist/components/Navigation/NavigationView/index.d.ts +1 -0
  74. package/dist/components/Navigation/PrimaryLevel/PrimaryLevel.d.ts +7 -0
  75. package/dist/components/Navigation/PrimaryLevel/index.d.ts +1 -0
  76. package/dist/components/Navigation/PrimaryNavigation/PrimaryLevel.d.ts +10 -0
  77. package/dist/components/Navigation/PrimaryNavigation/index.d.ts +1 -0
  78. package/dist/components/Navigation/TenantsLevel/TenantsLevel.d.ts +6 -0
  79. package/dist/components/Navigation/TenantsLevel/index.d.ts +1 -0
  80. package/dist/components/Navigation/TenantsNavigation/ModalCreateTenant/ModalCreateTenant.d.ts +5 -0
  81. package/dist/components/Navigation/TenantsNavigation/ModalCreateTenant/index.d.ts +1 -0
  82. package/dist/components/Navigation/TenantsNavigation/TenantButton/TenantButton.d.ts +6 -0
  83. package/dist/components/Navigation/TenantsNavigation/TenantButton/index.d.ts +1 -0
  84. package/dist/components/Navigation/TenantsNavigation/TenantsLevel.d.ts +6 -0
  85. package/dist/components/Navigation/TenantsNavigation/TenantsNavigation.d.ts +7 -0
  86. package/dist/components/Navigation/TenantsNavigation/index.d.ts +1 -0
  87. package/dist/components/Navigation/Tiers/Tenants/TenantButton/TenantButton.d.ts +1 -1
  88. package/dist/components/Navigation/Tiers/Tier/Tier.d.ts +1 -2
  89. package/dist/components/Navigation/index.d.ts +1 -2
  90. package/dist/components/Navigation2/Applications/ApplicationLink/ApplicationLink.d.ts +7 -0
  91. package/dist/components/Navigation2/Applications/ApplicationLink/NavigationLink.d.ts +7 -0
  92. package/dist/components/Navigation2/Applications/ApplicationLink/index.d.ts +1 -0
  93. package/dist/components/Navigation2/Applications/Applications.d.ts +6 -0
  94. package/dist/components/Navigation2/Applications/NavigationLink/NavigationLink.d.ts +7 -0
  95. package/dist/components/Navigation2/Applications/NavigationLink/index.d.ts +1 -0
  96. package/dist/components/Navigation2/Applications/index.d.ts +1 -0
  97. package/dist/components/Navigation2/Base.d.ts +6 -0
  98. package/dist/components/Navigation2/Context.d.ts +27 -0
  99. package/dist/components/Navigation2/Logo/Logo.d.ts +7 -0
  100. package/dist/components/Navigation2/Logo/index.d.ts +1 -0
  101. package/dist/components/Navigation2/Navigation.d.ts +2 -0
  102. package/dist/components/Navigation2/Tenants/ModalCreateTenant/ModalCreateTenant.d.ts +5 -0
  103. package/dist/components/Navigation2/Tenants/ModalCreateTenant/index.d.ts +1 -0
  104. package/dist/components/Navigation2/Tenants/TenantButton/TenantButton.d.ts +6 -0
  105. package/dist/components/Navigation2/Tenants/TenantButton/index.d.ts +1 -0
  106. package/dist/components/Navigation2/Tenants/Tenants.d.ts +5 -0
  107. package/dist/components/Navigation2/Tenants/index.d.ts +1 -0
  108. package/dist/components/Navigation2/Tier/Tier.d.ts +10 -0
  109. package/dist/components/Navigation2/Tier/index.d.ts +1 -0
  110. package/dist/components/Navigation2/Tiers/Applications/ApplicationLink/ApplicationLink.d.ts +7 -0
  111. package/dist/components/Navigation2/Tiers/Applications/ApplicationLink/index.d.ts +1 -0
  112. package/dist/components/Navigation2/Tiers/Applications/Applications.d.ts +2 -0
  113. package/dist/components/Navigation2/Tiers/Applications/index.d.ts +1 -0
  114. package/dist/components/Navigation2/Tiers/Tenants/ModalCreateTenant/ModalCreateTenant.d.ts +5 -0
  115. package/dist/components/Navigation2/Tiers/Tenants/ModalCreateTenant/index.d.ts +1 -0
  116. package/dist/components/Navigation2/Tiers/Tenants/TenantButton/TenantButton.d.ts +6 -0
  117. package/dist/components/Navigation2/Tiers/Tenants/TenantButton/index.d.ts +1 -0
  118. package/dist/components/Navigation2/Tiers/Tenants/Tenants.d.ts +2 -0
  119. package/dist/components/Navigation2/Tiers/Tenants/index.d.ts +1 -0
  120. package/dist/components/Navigation2/Tiers/Tier/Tier.d.ts +10 -0
  121. package/dist/components/Navigation2/Tiers/Tier/index.d.ts +1 -0
  122. package/dist/components/Navigation2/Tiers/Tiers.d.ts +2 -0
  123. package/dist/components/Navigation2/Tiers/index.d.ts +3 -0
  124. package/dist/components/Navigation2/index.d.ts +1 -0
  125. package/dist/components/TestComponent/TestComponent.d.ts +2 -0
  126. package/dist/components/TestComponent/index.d.ts +1 -0
  127. package/dist/constants/index.d.ts +2 -4
  128. package/dist/hooks/useTenants.d.ts +9 -7
  129. package/dist/index.js +2 -2
  130. package/dist/styles.css +118 -125
  131. package/dist/types/application.d.ts +5 -0
  132. package/package.json +2 -2
  133. package/dist/components/Navigation/NavigationButton.d.ts +0 -8
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ expanded: boolean;
3
+ };
4
+ declare function BrandsLevel({ expanded }: Props): JSX.Element;
5
+ export default BrandsLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./BrandsLevel";
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ children: string;
3
+ className?: string;
4
+ onClick?: () => void;
5
+ };
6
+ declare function Button({ children, className, onClick }: Props): JSX.Element;
7
+ export default Button;
@@ -0,0 +1 @@
1
+ export { default } from "./Button";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ type DrawerProps = {
3
+ children: React.ReactNode | React.ReactNode[];
4
+ open: boolean;
5
+ className?: string;
6
+ };
7
+ type DrawerLevelProps = {
8
+ children?: React.ReactNode;
9
+ header?: React.ReactNode;
10
+ footer?: React.ReactNode;
11
+ className?: string;
12
+ hidden?: boolean;
13
+ };
14
+ export declare function DrawerLevel({ children, header, footer, className, hidden, }: DrawerLevelProps): JSX.Element;
15
+ declare function Drawer({ children, open, className }: DrawerProps): JSX.Element;
16
+ export default Drawer;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Drawer";
2
+ export * from "./Drawer";
@@ -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 Level({ children, header, footer, className, width }: Props): JSX.Element;
10
+ export default Level;
@@ -0,0 +1 @@
1
+ export { default } from "./Level";
@@ -0,0 +1,7 @@
1
+ import { ImageProps } from "@touchtech/baselayer-ui";
2
+ type Props = {
3
+ layout?: ImageProps["layout"];
4
+ onClick?: () => void;
5
+ };
6
+ declare function Logo({ layout, onClick }: Props): JSX.Element;
7
+ export default Logo;
@@ -0,0 +1 @@
1
+ export { default } from "./Logo";
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ };
5
+ declare function Navigation({ open, onClose }: Props): JSX.Element;
6
+ export default Navigation;
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ children: string;
3
+ };
4
+ declare function NavigationButton({ children }: Props): JSX.Element;
5
+ export default NavigationButton;
@@ -0,0 +1 @@
1
+ export { default } from "./NavigationButton";
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ };
5
+ declare function Navigation({ open, onClose }: Props): JSX.Element;
6
+ export default Navigation;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ width?: number;
3
+ onChangeBrand: () => void;
4
+ onClose: () => void;
5
+ };
6
+ declare function PrimaryLevel({ onChangeBrand, onClose, width }: Props): JSX.Element;
7
+ export default PrimaryLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./PrimaryLevel";
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ width?: number;
3
+ onGoBack: () => void;
4
+ };
5
+ declare function TenantsLevel({ width, onGoBack }: Props): JSX.Element;
6
+ export default TenantsLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./TenantsLevel";
@@ -0,0 +1 @@
1
+ export { default as Nav } from "./Navigation";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ type Props = {
3
+ children: React.ReactElement<LevelProps> | Array<React.ReactElement<LevelProps>>;
4
+ header?: React.ReactNode;
5
+ footer?: React.ReactNode;
6
+ open: boolean;
7
+ };
8
+ type LevelProps = {
9
+ children?: React.ReactNode;
10
+ header?: React.ReactNode;
11
+ footer?: React.ReactNode;
12
+ width?: number;
13
+ };
14
+ export declare const DrawerLevel: React.FC<LevelProps>;
15
+ declare const Drawer: React.FC<Props>;
16
+ export default Drawer;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Drawer";
2
+ export * from "./Drawer";
@@ -0,0 +1,7 @@
1
+ import { ImageProps } from "@touchtech/baselayer-ui";
2
+ type Props = {
3
+ layout?: ImageProps["layout"];
4
+ onClick?: () => void;
5
+ };
6
+ declare function Logo({ layout, onClick }: Props): JSX.Element;
7
+ export default Logo;
@@ -0,0 +1 @@
1
+ export { default } from "./Logo";
@@ -0,0 +1,2 @@
1
+ declare function Navigation(): JSX.Element;
2
+ export default Navigation;
@@ -0,0 +1 @@
1
+ export { default as Navigation } from "./Navigation";
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ expanded: boolean;
3
+ };
4
+ declare function BrandsLevel({ expanded }: Props): JSX.Element;
5
+ export default BrandsLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./BrandsLevel";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ type DrawerProps = {
3
+ children: React.ReactNode | React.ReactNode[];
4
+ open: boolean;
5
+ className?: string;
6
+ };
7
+ type DrawerLevelProps = {
8
+ children?: React.ReactNode;
9
+ header?: React.ReactNode;
10
+ footer?: React.ReactNode;
11
+ className?: string;
12
+ hidden?: boolean;
13
+ };
14
+ export declare function DrawerLevel({ children, header, footer, className, hidden, }: DrawerLevelProps): JSX.Element;
15
+ declare function Drawer({ children, open, className }: DrawerProps): JSX.Element;
16
+ export default Drawer;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Drawer";
2
+ export * from "./Drawer";
@@ -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 Level({ children, header, footer, className, width }: Props): JSX.Element;
10
+ export default Level;
@@ -0,0 +1 @@
1
+ export { default } from "./Level";
@@ -0,0 +1,7 @@
1
+ import { ImageProps } from "@touchtech/baselayer-ui";
2
+ type Props = {
3
+ layout?: ImageProps["layout"];
4
+ onClick?: () => void;
5
+ };
6
+ declare function Logo({ layout, onClick }: Props): JSX.Element;
7
+ export default Logo;
@@ -0,0 +1 @@
1
+ export { default } from "./Logo";
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ };
5
+ declare function Navigation({ open, onClose }: Props): JSX.Element;
6
+ export default Navigation;
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ children: string;
3
+ };
4
+ declare function NavigationButton({ children }: Props): JSX.Element;
5
+ export default NavigationButton;
@@ -0,0 +1 @@
1
+ export { default } from "./NavigationButton";
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ };
5
+ declare function Navigation({ open, onClose }: Props): JSX.Element;
6
+ export default Navigation;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ width?: number;
3
+ onChangeBrand: () => void;
4
+ onClose: () => void;
5
+ };
6
+ declare function PrimaryLevel({ onChangeBrand, onClose, width }: Props): JSX.Element;
7
+ export default PrimaryLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./PrimaryLevel";
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ width?: number;
3
+ onGoBack: () => void;
4
+ };
5
+ declare function TenantsLevel({ width, onGoBack }: Props): JSX.Element;
6
+ export default TenantsLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./TenantsLevel";
@@ -0,0 +1 @@
1
+ export { default as Nav } from "./Navigation";
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ width?: number;
3
+ open: boolean;
4
+ onChangeBrand: () => void;
5
+ onClose: () => void;
6
+ };
7
+ declare function AppsNavigation({ onChangeBrand, onClose, width, open }: Props): JSX.Element;
8
+ export default AppsNavigation;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ children: string;
3
+ to: string;
4
+ hidden?: boolean;
5
+ };
6
+ declare function NavigationLink({ children, to, hidden }: Props): JSX.Element | null;
7
+ export default NavigationLink;
@@ -0,0 +1 @@
1
+ export { default } from "./NavigationLink";
@@ -0,0 +1 @@
1
+ export { default } from "./AppsNavigation";
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ };
6
+ declare function Base({ open, onClose }: Props): JSX.Element;
7
+ export default Base;
@@ -1,31 +1,27 @@
1
1
  import React from "react";
2
2
  type Props = {
3
3
  children: React.ReactNode;
4
- isOpen: boolean;
4
+ open: boolean;
5
5
  onNavigationClose?: () => void;
6
6
  };
7
7
  type NavigationViewState = {
8
8
  selectedTenantId: string;
9
- currentPosition: NavigationPosition;
9
+ isTenantsOpen: boolean;
10
+ isNavigationOpen: boolean;
10
11
  };
11
- export type NavigationContextValue = {
12
- hasMarketingEngineAccess: boolean;
12
+ type NavigationContextValue = {
13
+ hasMarketingAccess: boolean;
13
14
  hasShowroomAccess: boolean;
14
- hasSendoutsAccess: boolean;
15
- hasSendoutsCmsAccess: boolean;
16
- hasUserManagementAccess: boolean;
15
+ hasSendoutAccess: boolean;
16
+ hasSendoutCmsAccess: boolean;
17
+ hasManageUsersAccess: boolean;
17
18
  viewState: NavigationViewState;
18
19
  updateViewState: (viewStateUpdate: Partial<NavigationViewState>) => void;
19
20
  signOut: () => void;
20
21
  toggleTenants: () => void;
21
22
  onNavigationClose: () => void;
22
23
  };
23
- export declare enum NavigationPosition {
24
- OPEN = "OPEN",
25
- HIDDEN = "HIDDEN",
26
- EXPANDED = "EXPANDED"
27
- }
28
24
  export declare const NavigationContext: React.Context<NavigationContextValue>;
29
25
  export declare function useNavigationContext(): NavigationContextValue;
30
- export declare function NavigationContextProvider({ children, isOpen, onNavigationClose, }: Props): JSX.Element;
26
+ export declare function NavigationContextProvider({ children, open, onNavigationClose, }: Props): JSX.Element;
31
27
  export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ width?: number;
3
+ onChangeBrand: () => void;
4
+ onClose: () => void;
5
+ };
6
+ declare function DefaultNavigation({ onChangeBrand, onClose, width }: Props): JSX.Element;
7
+ export default DefaultNavigation;
@@ -0,0 +1,10 @@
1
+ import { User } from "@touchtech/web-auth";
2
+ type Props = {
3
+ width?: number;
4
+ user?: User;
5
+ onChangeBrand: () => void;
6
+ onClose: () => void;
7
+ onSignOut: () => void;
8
+ };
9
+ declare function PrimaryLevel({ onChangeBrand, onClose, onSignOut, width, user, }: Props): JSX.Element;
10
+ export default PrimaryLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./DefaultNavigation";
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ width?: number;
3
+ onChangeBrand: () => void;
4
+ onClose: () => void;
5
+ };
6
+ declare function DefaultNavigation({ onChangeBrand, onClose, width }: Props): JSX.Element;
7
+ export default DefaultNavigation;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ width?: number;
3
+ onChangeBrand: () => void;
4
+ onClose: () => void;
5
+ };
6
+ declare function DefaultNavigationView({ onChangeBrand, onClose, width }: Props): JSX.Element;
7
+ export default DefaultNavigationView;
@@ -0,0 +1 @@
1
+ export { default } from "./DefaultNavigationView";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ type Props = {
3
+ children: React.ReactElement<LevelProps> | Array<React.ReactElement<LevelProps>>;
4
+ header?: React.ReactNode;
5
+ footer?: React.ReactNode;
6
+ open: boolean;
7
+ };
8
+ type LevelProps = {
9
+ children?: React.ReactNode;
10
+ header?: React.ReactNode;
11
+ footer?: React.ReactNode;
12
+ width?: number;
13
+ };
14
+ export declare const DrawerLevel: React.FC<LevelProps>;
15
+ declare const Drawer: React.FC<Props>;
16
+ export default Drawer;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Drawer";
2
+ export * from "./Drawer";
@@ -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 Level({ children, header, footer, className, width }: Props): JSX.Element;
10
+ export default Level;
@@ -0,0 +1 @@
1
+ export { default } from "./Level";
@@ -4,5 +4,5 @@ type Props = {
4
4
  layout?: ImageProps["layout"];
5
5
  onClick?: () => void;
6
6
  };
7
- declare function Logo({ layout }: Props): JSX.Element | null;
7
+ declare function Logo({ layout }: Props): JSX.Element;
8
8
  export default Logo;
@@ -1,7 +1,3 @@
1
1
  /// <reference types="react" />
2
- type Props = {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- };
6
- declare function Navigation({ isOpen, onClose }: Props): JSX.Element;
2
+ declare function Navigation(): JSX.Element;
7
3
  export default Navigation;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ children: string;
3
+ to: string;
4
+ hidden?: boolean;
5
+ };
6
+ declare function NavigationLink({ children, to, hidden }: Props): JSX.Element | null;
7
+ export default NavigationLink;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ children: string;
3
+ to: string;
4
+ hidden?: boolean;
5
+ };
6
+ declare function NavigationLink({ children, to, hidden }: Props): JSX.Element | null;
7
+ export default NavigationLink;
@@ -0,0 +1 @@
1
+ export { default } from "./NavigationLink";
@@ -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 Level({ children, header, footer, className, width }: Props): JSX.Element;
10
+ export default Level;
@@ -0,0 +1 @@
1
+ export { default } from "./Level";
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ children: string;
3
+ to: string;
4
+ hidden?: boolean;
5
+ };
6
+ declare function NavigationLink({ children, to, hidden }: Props): JSX.Element | null;
7
+ export default NavigationLink;
@@ -0,0 +1 @@
1
+ export { default } from "./NavigationLink";
@@ -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 NavigationView({ children, header, footer, className, width }: Props): JSX.Element;
10
+ export default NavigationView;
@@ -0,0 +1 @@
1
+ export { default } from "./NavigationView";
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ width?: number;
3
+ onChangeBrand: () => void;
4
+ onClose: () => void;
5
+ };
6
+ declare function PrimaryLevel({ onChangeBrand, onClose, width }: Props): JSX.Element;
7
+ export default PrimaryLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./PrimaryLevel";
@@ -0,0 +1,10 @@
1
+ import { User } from "@touchtech/web-auth";
2
+ type Props = {
3
+ width?: number;
4
+ user?: User;
5
+ onChangeBrand: () => void;
6
+ onClose: () => void;
7
+ onSignOut: () => void;
8
+ };
9
+ declare function PrimaryLevel({ onChangeBrand, onClose, onSignOut, width, user, }: Props): JSX.Element;
10
+ export default PrimaryLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./PrimaryLevel";
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ width?: number;
3
+ onGoBack: () => void;
4
+ };
5
+ declare function TenantsLevel({ width, onGoBack }: Props): JSX.Element;
6
+ export default TenantsLevel;
@@ -0,0 +1 @@
1
+ export { default } from "./TenantsLevel";
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ onClose: () => void;
3
+ };
4
+ declare function ModalCreateTenant({ onClose }: Props): JSX.Element;
5
+ export default ModalCreateTenant;
@@ -0,0 +1 @@
1
+ export { default } from "./ModalCreateTenant";
@@ -0,0 +1,6 @@
1
+ import { Tenant } from "../../../../types";
2
+ type Props = {
3
+ tenant: Tenant;
4
+ };
5
+ declare function TenantButton({ tenant }: Props): JSX.Element;
6
+ export default TenantButton;
@@ -0,0 +1 @@
1
+ export { default } from "./TenantButton";
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ width?: number;
3
+ onGoBack: () => void;
4
+ };
5
+ declare function TenantsLevel({ width, onGoBack }: Props): JSX.Element;
6
+ export default TenantsLevel;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ width?: number;
3
+ onGoBack: () => void;
4
+ onCreateBrandWorkspace: () => void;
5
+ };
6
+ declare function TenantsNavigation({ width, onGoBack, onCreateBrandWorkspace }: Props): JSX.Element;
7
+ export default TenantsNavigation;
@@ -0,0 +1 @@
1
+ export { default } from "./TenantsNavigation";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Tenant } from "../../../../../hooks/useTenants";
2
+ import { Tenant } from "../../../../../types";
3
3
  type Props = {
4
4
  tenant: Tenant;
5
5
  };