@luscii-healthtech/web-ui 0.4.0 → 0.4.3

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.
@@ -1 +1,9 @@
1
- export function NavMenu(props: any): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { NavMenuItemProps } from "./NavMenuItem";
3
+ export declare type NavMenuElement = NavMenuItemProps | {
4
+ type: "separator" | "spacer";
5
+ };
6
+ export declare type NavMenuProps = {
7
+ items: NavMenuElement[];
8
+ };
9
+ export declare function NavMenu({ items }: NavMenuProps): JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { NavMenuElement } from "./NavMenu";
2
+ import { NavMenuItemProps } from "./NavMenuItem";
3
+ export declare function isNavMenuItem(item: NavMenuElement): item is NavMenuItemProps;
@@ -1,7 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { NavMenuItemProps } from "./NavMenuItem";
3
- interface NavMenuContentProps {
4
- items: Array<NavMenuItemProps>;
5
- }
6
- export declare const NavMenuContent: (props: NavMenuContentProps) => JSX.Element;
7
- export {};
2
+ import { NavMenuProps } from "./NavMenu";
3
+ export declare const NavMenuContent: ({ items }: NavMenuProps) => JSX.Element;
@@ -9,7 +9,7 @@ export interface NavMenuItemProps {
9
9
  dataTestId: string;
10
10
  gtmEvent?: string;
11
11
  isExternal?: boolean;
12
- type?: "separator" | "spacer" | "base" | void;
12
+ type?: "base";
13
13
  track?: (event: string) => void;
14
14
  }
15
15
  export declare const NavMenuItem: (props: NavMenuItemProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TagSize } from "./TagGroup";
2
+ import { TagSize } from "./Tag.utils";
3
3
  export declare enum TagColorTheme {
4
4
  Red = "red",
5
5
  Amber = "amber",
@@ -0,0 +1,4 @@
1
+ export declare enum TagSize {
2
+ "small" = "small",
3
+ "base" = "base"
4
+ }
@@ -1,13 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { TagProps } from "./Tag";
3
- export declare enum TagSize {
4
- "small" = "small",
5
- "base" = "base"
6
- }
3
+ import { TagSize } from "./Tag.utils";
7
4
  interface TagGroupProps {
8
5
  tags: TagProps[];
9
6
  tagSize?: TagSize;
10
7
  className?: string;
11
8
  }
12
- declare const TagGroup: ({ tags, tagSize, className }: TagGroupProps) => JSX.Element;
9
+ declare const TagGroup: ({ tags, tagSize, className, }: TagGroupProps) => JSX.Element;
13
10
  export default TagGroup;
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export { LoadingIndicator, LoadingIndicatorProps, } from "./components/LoadingIn
23
23
  export { default as Menu } from "./components/Menu/Menu";
24
24
  export { MultiSelect } from "./components/MultiSelect/MultiSelect";
25
25
  export { NavLayout, NavMenuLayoutProps } from "./components/NavMenu/NavLayout";
26
- export { NavMenu } from "./components/NavMenu/NavMenu";
26
+ export { NavMenu, NavMenuElement } from "./components/NavMenu/NavMenu";
27
27
  export { NotificationBanner, NotificationBannerColor, NotificationBannerLinkProps, } from "./components/NotificationBanner/NotificationBanner";
28
28
  export { default as Page } from "./components/Page/Page";
29
29
  export { default as CRUDPage } from "./components/Page/CRUDPage";