@luscii-healthtech/web-ui 23.2.4 → 23.2.6

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,7 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { BreadcrumbProps } from "../Breadcrumbs";
3
3
  import { NotificationBannerColor } from "../NotificationBanner/NotificationBanner";
4
4
  import type { TabbarProps } from "../Tabbar/Tabbar";
5
+ import { IconProps } from "../Icons/types/IconProps.type";
5
6
  type Nil = null | undefined;
6
7
  type WithPageHeaderBanner = {
7
8
  banner: Nil | {
@@ -12,6 +13,7 @@ type WithPageHeaderBanner = {
12
13
  };
13
14
  color: NotificationBannerColor;
14
15
  noBorder?: boolean | null;
16
+ icon?: string | React.FunctionComponent<IconProps>;
15
17
  };
16
18
  };
17
19
  export type PageHeaderProps = {
@@ -3795,7 +3795,7 @@ const CheckboxGroup = ({ title, items, onChange, className, isCollapsed = true,
3795
3795
  collapsible && React__namespace.default.createElement(GroupCollapseButton, { "aria-label": getGroupCollapseButtonAriaLabel({
3796
3796
  groupTitle: title,
3797
3797
  collapsed
3798
- }), collapsed, onClick: handleGroupCollapse })
3798
+ }), collapsed, type: "button", onClick: handleGroupCollapse })
3799
3799
  ),
3800
3800
  !collapsed && items.map((item) => React__namespace.default.createElement(Checkbox, Object.assign({}, item, { key: item.id, text: item.label, onChange: handleCheckboxChange, className: classNames__default.default("ui-py-3", {
3801
3801
  "ui-ml-10": collapsible,
@@ -4363,7 +4363,7 @@ const PageHeader = ({ navigation, breadcrumbs, dataTestId, accessories, isPollin
4363
4363
  }) },
4364
4364
  banner && React__namespace.default.createElement(
4365
4365
  NotificationBanner,
4366
- { noBorder: banner.noBorder, color: banner.color, "data-test-id": `page-header-banner-${title}`, className: "ui-mb-m" },
4366
+ { noBorder: banner.noBorder, color: banner.color, "data-test-id": `page-header-banner-${title}`, className: "ui-mb-m", icon: banner.icon },
4367
4367
  React__namespace.default.createElement(
4368
4368
  "div",
4369
4369
  { className: "ui-flex ui-flex-col" },