@luscii-healthtech/web-ui 2.19.0 → 2.19.2

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
  import React from "react";
2
2
  import { ModalBaseProps } from "./ModalBase";
3
- export declare type ModalProps = Omit<ModalBaseProps, "title"> & {
3
+ export declare type ModalProps = Omit<ModalBaseProps, "title" | "withExtraMarginTop"> & {
4
4
  title: string;
5
5
  };
6
6
  export declare const Modal: React.FC<ModalProps>;
@@ -6,6 +6,7 @@ export declare type ModalBaseProps = Omit<ModalHeaderProps, "title"> & {
6
6
  children: React.ReactNode;
7
7
  size?: ModalSize;
8
8
  withExtraMarginTop?: boolean;
9
+ withContentPaddingY?: boolean;
9
10
  isOpen?: boolean;
10
11
  shouldCloseOnOverlayClick?: boolean;
11
12
  title?: string;
@@ -1178,6 +1178,10 @@ video {
1178
1178
  align-items: center;
1179
1179
  }
1180
1180
 
1181
+ .self-start {
1182
+ align-self: flex-start;
1183
+ }
1184
+
1181
1185
  .justify-items-stretch {
1182
1186
  justify-items: stretch;
1183
1187
  }
@@ -1326,6 +1330,10 @@ video {
1326
1330
  font-size: 4rem;
1327
1331
  }
1328
1332
 
1333
+ .leading-4 {
1334
+ line-height: 1rem;
1335
+ }
1336
+
1329
1337
  .leading-5 {
1330
1338
  line-height: 1.25rem;
1331
1339
  }
@@ -1453,10 +1461,6 @@ video {
1453
1461
  margin-bottom: 1.5rem;
1454
1462
  }
1455
1463
 
1456
- .ml-6 {
1457
- margin-left: 1.5rem;
1458
- }
1459
-
1460
1464
  .ml-10 {
1461
1465
  margin-left: 2.5rem;
1462
1466
  }
@@ -2202,11 +2206,6 @@ video {
2202
2206
  transform: translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));
2203
2207
  }
2204
2208
 
2205
- .scale-150 {
2206
- --transform-scale-x: 1.5;
2207
- --transform-scale-y: 1.5;
2208
- }
2209
-
2210
2209
  .-translate-x-1\/2 {
2211
2210
  --transform-translate-x: -50%;
2212
2211
  }
@@ -1774,7 +1774,8 @@ var ModalBase = function ModalBase(props) {
1774
1774
  title: props.title,
1775
1775
  onCloseClick: props.onCloseClick
1776
1776
  }), /*#__PURE__*/React__default.createElement("div", {
1777
- className: classNames("p-6", {
1777
+ className: classNames("px-6", {
1778
+ "py-6": props.withContentPaddingY,
1778
1779
  "rounded-t-lg": !props.title
1779
1780
  })
1780
1781
  }, props.children), /*#__PURE__*/React__default.createElement(ModalFooter, {
@@ -2469,11 +2470,12 @@ var ConfirmationDialogTitle = function ConfirmationDialogTitle(props) {
2469
2470
  var _props$title;
2470
2471
 
2471
2472
  return props.title ? /*#__PURE__*/React__default.createElement("div", {
2472
- className: classNames("flex flex-col space-y-2 ", {
2473
+ "data-test-id": "confirmation-dialog-title",
2474
+ className: classNames("flex flex-col space-y-2", {
2473
2475
  "items-center justify-center": (_props$title = props.title) == null ? void 0 : _props$title.icon
2474
2476
  })
2475
2477
  }, props.title.icon && /*#__PURE__*/React__default.createElement(props.title.icon, {
2476
- className: "transform scale-150 text-blue-800"
2478
+ className: "text-blue-800 dialog-header-icon h-12 w-12"
2477
2479
  }), /*#__PURE__*/React__default.createElement(Title, {
2478
2480
  text: props.title.title
2479
2481
  })) : null;
@@ -2587,12 +2589,12 @@ function RadioInner(_ref) {
2587
2589
  disabled = otherProps.disabled;
2588
2590
  var nameHtmlFor = "field-" + value;
2589
2591
  return /*#__PURE__*/React__default.createElement("label", {
2590
- className: "radio-form-field-label leading-tight",
2592
+ className: "radio-form-field-label leading-tight flex flex-row",
2591
2593
  htmlFor: nameHtmlFor,
2592
2594
  "data-has-error": isError,
2593
2595
  "data-test-id": nameHtmlFor
2594
2596
  }, /*#__PURE__*/React__default.createElement("div", {
2595
- className: "flex flex-row items-center "
2597
+ className: "flex flex-row items-center self-start"
2596
2598
  }, /*#__PURE__*/React__default.createElement("input", _extends({}, otherProps, {
2597
2599
  className: classNames("appearance-none", className),
2598
2600
  ref: innerRef,
@@ -2603,20 +2605,21 @@ function RadioInner(_ref) {
2603
2605
  className: classNames("flex flex-col items-center justify-center w-4 h-4 transition-colors duration-300 ease-in-out border radio-circle rounded-xl border-slate-300")
2604
2606
  }, /*#__PURE__*/React__default.createElement("span", {
2605
2607
  className: "block transition-colors duration-300 ease-in-out radio-inner-circle w-1.5 h-1.5 rounded-xl"
2606
- })), text && /*#__PURE__*/React__default.createElement("div", {
2607
- className: "ml-2"
2608
+ }))), /*#__PURE__*/React__default.createElement("div", {
2609
+ className: "space-y-2"
2610
+ }, text && /*#__PURE__*/React__default.createElement("div", {
2611
+ className: "ml-2 flex items-center"
2608
2612
  }, /*#__PURE__*/React__default.createElement(Text, {
2609
2613
  inline: true,
2610
2614
  text: text,
2611
2615
  type: "base",
2612
2616
  color: disabled ? "slate-500" : undefined
2613
- }))), info && /*#__PURE__*/React__default.createElement(Text, {
2614
- inline: true,
2615
- className: "ml-6",
2617
+ })), info && /*#__PURE__*/React__default.createElement(Text, {
2618
+ className: "ml-2 leading-4",
2616
2619
  text: info,
2617
2620
  type: "sm",
2618
2621
  color: disabled ? "slate-200" : "slate-500"
2619
- }));
2622
+ })));
2620
2623
  }
2621
2624
  /**
2622
2625
  * TODO: The CSS styling is all messed up, including isError