@luscii-healthtech/web-ui 2.41.3 → 2.42.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.
@@ -6,7 +6,8 @@ export interface NotificationBannerLinkProps {
6
6
  handleClick?: () => void;
7
7
  }
8
8
  export interface NotificationBannerProps {
9
- text: string;
9
+ title?: string;
10
+ text?: string;
10
11
  color?: NotificationBannerColor;
11
12
  /**
12
13
  * The icon can either be one of our icon components or an image url
@@ -615,12 +615,6 @@ video {
615
615
  margin-bottom: calc(0.25rem * var(--space-y-reverse));
616
616
  }
617
617
 
618
- .space-x-1 > :not(template) ~ :not(template) {
619
- --space-x-reverse: 0;
620
- margin-right: calc(0.25rem * var(--space-x-reverse));
621
- margin-left: calc(0.25rem * calc(1 - var(--space-x-reverse)));
622
- }
623
-
624
618
  .space-y-2 > :not(template) ~ :not(template) {
625
619
  --space-y-reverse: 0;
626
620
  margin-top: calc(0.5rem * calc(1 - var(--space-y-reverse)));
@@ -1422,6 +1416,10 @@ video {
1422
1416
  margin-top: 0.25rem;
1423
1417
  }
1424
1418
 
1419
+ .mr-1 {
1420
+ margin-right: 0.25rem;
1421
+ }
1422
+
1425
1423
  .mb-1 {
1426
1424
  margin-bottom: 0.25rem;
1427
1425
  }
@@ -2627,20 +2627,33 @@ var NotificationBanner = function NotificationBanner(props) {
2627
2627
  className: "w-6 h-6",
2628
2628
  icon: props.icon
2629
2629
  }), /*#__PURE__*/React__default.createElement("div", {
2630
- className: "flex flex-row items-center space-x-1"
2631
- }, /*#__PURE__*/React__default.createElement(Text, {
2630
+ className: "flex flex-col"
2631
+ }, props.title && /*#__PURE__*/React__default.createElement(Text, {
2632
2632
  className: classNames({
2633
2633
  "ml-3": props.icon
2634
2634
  }),
2635
+ text: props.title,
2636
+ "data-test-id": "notification-title",
2637
+ type: "strong",
2638
+ color: color
2639
+ }), (props.text || props.linkProps) && /*#__PURE__*/React__default.createElement("div", {
2640
+ className: "flex flex-row items-center"
2641
+ }, props.text && /*#__PURE__*/React__default.createElement(Text, {
2642
+ className: classNames({
2643
+ "ml-3": props.icon,
2644
+ "mr-1": props.linkProps
2645
+ }),
2635
2646
  text: props.text,
2647
+ "data-test-id": "notification-text",
2636
2648
  color: color
2637
2649
  }), props.linkProps && /*#__PURE__*/React__default.createElement(TextLink, {
2638
2650
  text: props.linkProps.text,
2651
+ "data-test-id": "notification-text-link",
2639
2652
  enabled: props.linkProps.enabled,
2640
2653
  rel: "noopener",
2641
2654
  target: "_blank",
2642
2655
  onClick: props.linkProps.handleClick
2643
- }))));
2656
+ })))));
2644
2657
  };
2645
2658
  NotificationBanner.defaultProps = {
2646
2659
  color: "base",