@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.
- package/dist/components/NavMenu/NavMenu.d.ts +9 -1
- package/dist/components/NavMenu/NavMenu.utils.d.ts +3 -0
- package/dist/components/NavMenu/NavMenuContent.d.ts +2 -6
- package/dist/components/NavMenu/NavMenuItem.d.ts +1 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.utils.d.ts +4 -0
- package/dist/components/Tag/TagGroup.d.ts +2 -5
- package/dist/index.d.ts +1 -1
- package/dist/web-ui-tailwind.css +2111 -0
- package/dist/web-ui.cjs.development.js +36 -27
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +36 -27
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +13 -5
- package/src/components/NavMenu/{NavMenu.js → NavMenu.tsx} +7 -3
- package/src/components/NavMenu/NavMenu.utils.ts +6 -0
- package/src/components/NavMenu/NavMenuContent.tsx +8 -8
- package/src/components/NavMenu/NavMenuItem.tsx +1 -1
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/Tag/Tag.utils.ts +4 -0
- package/src/components/Tag/TagGroup.tsx +12 -8
- package/src/index.tsx +1 -1
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
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;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
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?: "
|
|
12
|
+
type?: "base";
|
|
13
13
|
track?: (event: string) => void;
|
|
14
14
|
}
|
|
15
15
|
export declare const NavMenuItem: (props: NavMenuItemProps) => JSX.Element;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TagProps } from "./Tag";
|
|
3
|
-
|
|
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";
|