@luscii-healthtech/web-ui 2.41.3 → 2.43.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
  }
@@ -1168,7 +1168,8 @@ var ListItem = function ListItem(_ref) {
1168
1168
  text: title
1169
1169
  }), subtitle && /*#__PURE__*/React__default.createElement(Text, {
1170
1170
  text: subtitle,
1171
- type: "sm"
1171
+ type: "sm",
1172
+ color: "slate-500"
1172
1173
  })), /*#__PURE__*/React__default.createElement("div", {
1173
1174
  className: "flex-grow"
1174
1175
  }), accessories);
@@ -2627,20 +2628,33 @@ var NotificationBanner = function NotificationBanner(props) {
2627
2628
  className: "w-6 h-6",
2628
2629
  icon: props.icon
2629
2630
  }), /*#__PURE__*/React__default.createElement("div", {
2630
- className: "flex flex-row items-center space-x-1"
2631
- }, /*#__PURE__*/React__default.createElement(Text, {
2631
+ className: "flex flex-col"
2632
+ }, props.title && /*#__PURE__*/React__default.createElement(Text, {
2632
2633
  className: classNames({
2633
2634
  "ml-3": props.icon
2634
2635
  }),
2636
+ text: props.title,
2637
+ "data-test-id": "notification-title",
2638
+ type: "strong",
2639
+ color: color
2640
+ }), (props.text || props.linkProps) && /*#__PURE__*/React__default.createElement("div", {
2641
+ className: "flex flex-row items-center"
2642
+ }, props.text && /*#__PURE__*/React__default.createElement(Text, {
2643
+ className: classNames({
2644
+ "ml-3": props.icon,
2645
+ "mr-1": props.linkProps
2646
+ }),
2635
2647
  text: props.text,
2648
+ "data-test-id": "notification-text",
2636
2649
  color: color
2637
2650
  }), props.linkProps && /*#__PURE__*/React__default.createElement(TextLink, {
2638
2651
  text: props.linkProps.text,
2652
+ "data-test-id": "notification-text-link",
2639
2653
  enabled: props.linkProps.enabled,
2640
2654
  rel: "noopener",
2641
2655
  target: "_blank",
2642
2656
  onClick: props.linkProps.handleClick
2643
- }))));
2657
+ })))));
2644
2658
  };
2645
2659
  NotificationBanner.defaultProps = {
2646
2660
  color: "base",