@touchtech/web-navigation-menu 0.0.1-alpha.0 → 0.0.1-alpha.10

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 (104) hide show
  1. package/dist/components/Navigation/Context.d.ts +18 -7
  2. package/dist/components/Navigation/Logo/Logo.d.ts +1 -1
  3. package/dist/components/Navigation/Navigation.d.ts +2 -2
  4. package/dist/components/Navigation/NavigationButton.d.ts +8 -0
  5. package/dist/components/Navigation/Tiers/Applications/ApplicationLink/ApplicationLink.d.ts +8 -0
  6. package/dist/components/Navigation/Tiers/Applications/ApplicationLink/index.d.ts +1 -0
  7. package/dist/components/Navigation/Tiers/Applications/Applications.d.ts +3 -0
  8. package/dist/components/Navigation/Tiers/Applications/index.d.ts +1 -0
  9. package/dist/components/Navigation/{TenantsNavigation → Tiers/Tenants}/TenantButton/TenantButton.d.ts +1 -1
  10. package/dist/components/Navigation/Tiers/Tenants/Tenants.d.ts +3 -0
  11. package/dist/components/Navigation/Tiers/Tenants/index.d.ts +1 -0
  12. package/dist/components/{NavTest2/Level/Level.d.ts → Navigation/Tiers/Tier/Tier.d.ts} +3 -2
  13. package/dist/components/Navigation/Tiers/Tier/index.d.ts +1 -0
  14. package/dist/components/Navigation/Tiers/Tiers.d.ts +3 -0
  15. package/dist/components/Navigation/Tiers/index.d.ts +3 -0
  16. package/dist/components/Navigation/index.d.ts +1 -0
  17. package/dist/constants/index.d.ts +2 -0
  18. package/dist/hooks/useTenants.d.ts +1 -1
  19. package/dist/index.js +2 -2
  20. package/dist/styles.css +163 -144
  21. package/package.json +17 -17
  22. package/dist/06cea64a3496fbd9984a.ttf +0 -0
  23. package/dist/4d727e888a46c0fbe479.woff +0 -0
  24. package/dist/9e6846502344d86a3f50.woff2 +0 -0
  25. package/dist/aadb65ac45347ff46699.ttf +0 -0
  26. package/dist/components/Nav/BrandsLevel/BrandsLevel.d.ts +0 -5
  27. package/dist/components/Nav/BrandsLevel/index.d.ts +0 -1
  28. package/dist/components/Nav/Button/Button.d.ts +0 -7
  29. package/dist/components/Nav/Button/index.d.ts +0 -1
  30. package/dist/components/Nav/Drawer/Drawer.d.ts +0 -16
  31. package/dist/components/Nav/Drawer/index.d.ts +0 -2
  32. package/dist/components/Nav/Level/Level.d.ts +0 -10
  33. package/dist/components/Nav/Level/index.d.ts +0 -1
  34. package/dist/components/Nav/Logo/Logo.d.ts +0 -7
  35. package/dist/components/Nav/Logo/index.d.ts +0 -1
  36. package/dist/components/Nav/Navigation.d.ts +0 -6
  37. package/dist/components/Nav/NavigationButton/NavigationButton.d.ts +0 -5
  38. package/dist/components/Nav/NavigationButton/index.d.ts +0 -1
  39. package/dist/components/Nav/Navigation_old.d.ts +0 -6
  40. package/dist/components/Nav/PrimaryLevel/PrimaryLevel.d.ts +0 -7
  41. package/dist/components/Nav/PrimaryLevel/index.d.ts +0 -1
  42. package/dist/components/Nav/TenantsLevel/TenantsLevel.d.ts +0 -6
  43. package/dist/components/Nav/TenantsLevel/index.d.ts +0 -1
  44. package/dist/components/Nav/index.d.ts +0 -1
  45. package/dist/components/NavTest1/Drawer/Drawer.d.ts +0 -16
  46. package/dist/components/NavTest1/Drawer/index.d.ts +0 -2
  47. package/dist/components/NavTest1/Logo/Logo.d.ts +0 -7
  48. package/dist/components/NavTest1/Logo/index.d.ts +0 -1
  49. package/dist/components/NavTest1/Navigation.d.ts +0 -2
  50. package/dist/components/NavTest1/index.d.ts +0 -1
  51. package/dist/components/NavTest2/BrandsLevel/BrandsLevel.d.ts +0 -5
  52. package/dist/components/NavTest2/BrandsLevel/index.d.ts +0 -1
  53. package/dist/components/NavTest2/Drawer/Drawer.d.ts +0 -16
  54. package/dist/components/NavTest2/Drawer/index.d.ts +0 -2
  55. package/dist/components/NavTest2/Level/index.d.ts +0 -1
  56. package/dist/components/NavTest2/Logo/Logo.d.ts +0 -7
  57. package/dist/components/NavTest2/Logo/index.d.ts +0 -1
  58. package/dist/components/NavTest2/Navigation.d.ts +0 -6
  59. package/dist/components/NavTest2/NavigationButton/NavigationButton.d.ts +0 -5
  60. package/dist/components/NavTest2/NavigationButton/index.d.ts +0 -1
  61. package/dist/components/NavTest2/Navigation_old.d.ts +0 -6
  62. package/dist/components/NavTest2/PrimaryLevel/PrimaryLevel.d.ts +0 -7
  63. package/dist/components/NavTest2/PrimaryLevel/index.d.ts +0 -1
  64. package/dist/components/NavTest2/TenantsLevel/TenantsLevel.d.ts +0 -6
  65. package/dist/components/NavTest2/TenantsLevel/index.d.ts +0 -1
  66. package/dist/components/NavTest2/index.d.ts +0 -1
  67. package/dist/components/Navigation/AppsNavigation/AppsNavigation.d.ts +0 -9
  68. package/dist/components/Navigation/AppsNavigation/NavigationLink/NavigationLink.d.ts +0 -8
  69. package/dist/components/Navigation/AppsNavigation/NavigationLink/index.d.ts +0 -1
  70. package/dist/components/Navigation/AppsNavigation/index.d.ts +0 -1
  71. package/dist/components/Navigation/DefaultNavigation/DefaultNavigation.d.ts +0 -7
  72. package/dist/components/Navigation/DefaultNavigation/PrimaryLevel.d.ts +0 -10
  73. package/dist/components/Navigation/DefaultNavigation/index.d.ts +0 -1
  74. package/dist/components/Navigation/DefaultNavigationView/DefaultNavigation.d.ts +0 -7
  75. package/dist/components/Navigation/DefaultNavigationView/DefaultNavigationView.d.ts +0 -7
  76. package/dist/components/Navigation/DefaultNavigationView/index.d.ts +0 -1
  77. package/dist/components/Navigation/Drawer/Drawer.d.ts +0 -16
  78. package/dist/components/Navigation/Drawer/index.d.ts +0 -2
  79. package/dist/components/Navigation/Level/Level.d.ts +0 -10
  80. package/dist/components/Navigation/Level/index.d.ts +0 -1
  81. package/dist/components/Navigation/NavigationButton/NavigationButton.d.ts +0 -7
  82. package/dist/components/Navigation/NavigationButton/NavigationLink.d.ts +0 -7
  83. package/dist/components/Navigation/NavigationButton/index.d.ts +0 -1
  84. package/dist/components/Navigation/NavigationLevel/Level.d.ts +0 -10
  85. package/dist/components/Navigation/NavigationLevel/index.d.ts +0 -1
  86. package/dist/components/Navigation/NavigationLink/NavigationLink.d.ts +0 -7
  87. package/dist/components/Navigation/NavigationLink/index.d.ts +0 -1
  88. package/dist/components/Navigation/NavigationView/NavigationView.d.ts +0 -10
  89. package/dist/components/Navigation/NavigationView/index.d.ts +0 -1
  90. package/dist/components/Navigation/PrimaryLevel/PrimaryLevel.d.ts +0 -7
  91. package/dist/components/Navigation/PrimaryLevel/index.d.ts +0 -1
  92. package/dist/components/Navigation/PrimaryNavigation/PrimaryLevel.d.ts +0 -10
  93. package/dist/components/Navigation/PrimaryNavigation/index.d.ts +0 -1
  94. package/dist/components/Navigation/TenantsLevel/TenantsLevel.d.ts +0 -6
  95. package/dist/components/Navigation/TenantsLevel/index.d.ts +0 -1
  96. package/dist/components/Navigation/TenantsNavigation/TenantsLevel.d.ts +0 -6
  97. package/dist/components/Navigation/TenantsNavigation/TenantsNavigation.d.ts +0 -8
  98. package/dist/components/Navigation/TenantsNavigation/index.d.ts +0 -1
  99. package/dist/components/TestComponent/TestComponent.d.ts +0 -2
  100. package/dist/components/TestComponent/index.d.ts +0 -1
  101. package/dist/types/application.d.ts +0 -5
  102. /package/dist/components/Navigation/{TenantsNavigation → Tiers/Tenants}/ModalCreateTenant/ModalCreateTenant.d.ts +0 -0
  103. /package/dist/components/Navigation/{TenantsNavigation → Tiers/Tenants}/ModalCreateTenant/index.d.ts +0 -0
  104. /package/dist/components/Navigation/{TenantsNavigation → Tiers/Tenants}/TenantButton/index.d.ts +0 -0
@@ -1,20 +1,31 @@
1
1
  import React from "react";
2
2
  type Props = {
3
3
  children: React.ReactNode;
4
+ isOpen: boolean;
5
+ onNavigationClose?: () => void;
4
6
  };
5
7
  type NavigationViewState = {
6
- selectedTenantId: string | null;
8
+ selectedTenantId: string;
9
+ currentPosition: NavigationPosition;
7
10
  };
8
- type NavigationContextValue = {
9
- hasMarketingAccess: boolean;
11
+ export type NavigationContextValue = {
12
+ hasMarketingEngineAccess: boolean;
10
13
  hasShowroomAccess: boolean;
11
- hasSendoutAccess: boolean;
12
- hasSendoutCmsAccess: boolean;
13
- hasManageUsersAccess: boolean;
14
+ hasSendoutsAccess: boolean;
15
+ hasSendoutsCmsAccess: boolean;
16
+ hasUserManagementAccess: boolean;
14
17
  viewState: NavigationViewState;
15
18
  updateViewState: (viewStateUpdate: Partial<NavigationViewState>) => void;
16
19
  signOut: () => void;
20
+ toggleTenants: () => void;
21
+ onNavigationClose: () => void;
17
22
  };
23
+ export declare enum NavigationPosition {
24
+ OPEN = "OPEN",
25
+ HIDDEN = "HIDDEN",
26
+ EXPANDED = "EXPANDED"
27
+ }
28
+ export declare const NavigationContext: React.Context<NavigationContextValue>;
18
29
  export declare function useNavigationContext(): NavigationContextValue;
19
- export declare function NavigationProvider({ children }: Props): JSX.Element;
30
+ export declare function NavigationContextProvider({ children, isOpen, onNavigationClose, }: Props): JSX.Element;
20
31
  export {};
@@ -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;
7
+ declare function Logo({ layout }: Props): JSX.Element | null;
8
8
  export default Logo;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  type Props = {
3
- open: boolean;
3
+ isOpen: boolean;
4
4
  onClose: () => void;
5
5
  };
6
- declare function Navigation({ open, onClose }: Props): JSX.Element;
6
+ declare function Navigation({ isOpen, onClose }: Props): JSX.Element;
7
7
  export default Navigation;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { IconButton } from "@touchtech/baselayer-ui";
3
+ type IconButtonProps = React.ComponentProps<typeof IconButton>;
4
+ type Props = Partial<IconButtonProps> & {
5
+ navigationContainer?: Element | DocumentFragment;
6
+ };
7
+ declare function NavigationButton({ size, alt, src, navigationContainer, ...props }: Props): JSX.Element;
8
+ export default NavigationButton;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ children: string;
4
+ to: string;
5
+ hidden?: boolean;
6
+ };
7
+ declare function ApplicationLink({ children, to, hidden }: Props): JSX.Element | null;
8
+ export default ApplicationLink;
@@ -0,0 +1 @@
1
+ export { default } from "./ApplicationLink";
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function Applications(): JSX.Element;
3
+ export default Applications;
@@ -0,0 +1 @@
1
+ export { default } from "./Applications";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Tenant } from "../../../../types";
2
+ import { Tenant } from "../../../../../types";
3
3
  type Props = {
4
4
  tenant: Tenant;
5
5
  };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function Tenants(): JSX.Element;
3
+ export default Tenants;
@@ -0,0 +1 @@
1
+ export { default } from "./Tenants";
@@ -2,9 +2,10 @@ import React from "react";
2
2
  type Props = {
3
3
  children?: React.ReactNode;
4
4
  header?: React.ReactNode;
5
+ showHeaderBorder?: boolean;
5
6
  footer?: React.ReactNode;
6
7
  className?: string;
7
8
  width?: number;
8
9
  };
9
- declare function Level({ children, header, footer, className, width }: Props): JSX.Element;
10
- export default Level;
10
+ declare function Tier({ children, header, footer, className, width, showHeaderBorder, }: Props): JSX.Element;
11
+ export default Tier;
@@ -0,0 +1 @@
1
+ export { default } from "./Tier";
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function Tiers(): JSX.Element;
3
+ export default Tiers;
@@ -0,0 +1,3 @@
1
+ export { default as Applications } from "./Applications";
2
+ export { default as Tenants } from "./Tenants";
3
+ export { default } from "./Tiers";
@@ -1 +1,2 @@
1
1
  export { default as Navigation } from "./Navigation";
2
+ export { default as NavigationButton } from "./NavigationButton";
@@ -6,3 +6,5 @@ export declare const AppPaths: {
6
6
  USER_MANAGEMENT: string;
7
7
  TENANTS: string;
8
8
  };
9
+ export declare const TENANTS_TIER_WIDTH = 300;
10
+ export declare const APPLICATIONS_TIER_WIDTH = 300;
@@ -9,6 +9,6 @@ type State = {
9
9
  error?: Error;
10
10
  data: SelfViewData;
11
11
  };
12
- export declare function createTenantsSelfViewUrl(): string;
12
+ export declare function createTenantsViewSelfUrl(): string;
13
13
  export default function useTenants(): State;
14
14
  export {};