@luscii-healthtech/web-ui 16.0.0 → 17.0.0

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,6 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import type { Props as PageHeaderProps } from "../PageHeader/PageHeader";
2
3
  import type { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
3
- import type { PageHeaderProps } from "../PageHeader";
4
4
  import type { StepsProps } from "../Steps/Steps";
5
5
  type CRUDPageButtonProps = Pick<BaseButtonProps, "onClick" | "text" | "isDisabled">;
6
6
  type CRUDPageTitle = {
@@ -1,4 +1,34 @@
1
1
  import React from "react";
2
- import { PageHeaderProps } from "./PageHeader.types";
3
- declare const PageHeader: React.FC<PageHeaderProps>;
4
- export default PageHeader;
2
+ export type Props = {
3
+ /**
4
+ * This is usually the `Tabbar` component.
5
+ */
6
+ navigation?: React.ReactNode;
7
+ /**
8
+ * This is usually the `Breadcrumbs` component.
9
+ */
10
+ breadcrumbs?: React.ReactNode;
11
+ /**
12
+ * This is usually the `NotificationBanner` component.
13
+ */
14
+ banner?: React.ReactNode;
15
+ /**
16
+ * Buttons, badges, anything extra you need to display next to the page title.
17
+ */
18
+ accessories?: React.ReactNode;
19
+ title?: string;
20
+ /**
21
+ * Show a small spinner to indicate that the page is currently doing some work.
22
+ */
23
+ isPolling?: boolean;
24
+ /**
25
+ * Sets a max-width and centers all elements.
26
+ */
27
+ contained?: boolean;
28
+ /**
29
+ * Used to suffix the data-test-id attribute of the child `Title` component.
30
+ */
31
+ titleDataTestIdPrefix?: string;
32
+ className?: string;
33
+ };
34
+ export declare const PageHeader: React.FC<Props>;
@@ -46,7 +46,13 @@ declare const Padding: React.FC<{
46
46
  children?: React.ReactNode;
47
47
  className?: string;
48
48
  }>;
49
- type ItemProps = React.ComponentPropsWithoutRef<"li">;
49
+ type ItemProps = React.ComponentPropsWithoutRef<"li"> & {
50
+ /**
51
+ * @private
52
+ * This prop is for internal logic. Do not use.
53
+ */
54
+ _DO_NOT_USE_index?: number;
55
+ };
50
56
  declare const Item: React.FC<ItemProps>;
51
57
  export declare const UnorderedList: React.FC<Props> & StaticComponents;
52
58
  declare const Indent: React.FC<{
package/dist/index.d.ts CHANGED
@@ -35,7 +35,9 @@ export { CheckboxListModal, CheckboxListModalProps, } from "./components/CheckBo
35
35
  export { NavLayout, Props as NavLayoutProps, } from "./components/NavMenu/NavLayout";
36
36
  export { NavMenu } from "./components/NavMenu/NavMenu";
37
37
  export { NotificationBanner, NotificationBannerColor, NotificationBannerLinkProps, } from "./components/NotificationBanner/NotificationBanner";
38
- export { Page, CRUDPage, CRUDPageProps } from "./components/Page";
38
+ export { PageLayout } from "./layouts/PageLayout/PageLayout";
39
+ export { default as CRUDPage } from "./components/Page/CRUDPage";
40
+ export { type CRUDPageProps } from "./components/Page/CRUDPage.types";
39
41
  export { PaginationMenu } from "./components/PaginationMenu/PaginationMenu";
40
42
  export { PageSize as PaginationMenuPageSize, OnPaginationChange as OnPaginationMenuChange, Localization as PaginationMenuLocalization, PaginationMenuProps, } from "./components/PaginationMenu/PaginationMenu.types";
41
43
  export { default as PreviewPhone } from "./components/PreviewPhone/PreviewPhone";
@@ -56,7 +58,7 @@ export { ImagePicker } from "./components/MediaPicker/MediaPicker";
56
58
  export { MediaPicker, TargetProps } from "./components/MediaPicker/MediaPicker";
57
59
  export { default as Tabbar, TabbarProps, TabItemDetails, } from "./components/Tabbar/Tabbar";
58
60
  export { Breadcrumbs, BreadcrumbProps } from "./components/Breadcrumbs";
59
- export { PageHeader, PageHeaderProps } from "./components/PageHeader";
61
+ export { PageHeader, Props as PageHeaderProps, } from "./components/PageHeader/PageHeader";
60
62
  export { Tag } from "./components/Tag/Tag";
61
63
  export { TagGroup } from "./components/Tag/TagGroup";
62
64
  export { Textarea, TextareaProps, ResizeTypes, } from "./components/Textarea/Textarea";