@luscii-healthtech/web-ui 2.18.0 → 2.19.1

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,11 +1,9 @@
1
1
  /// <reference types="react" />
2
- export interface Item {
3
- id: string;
4
- label: string;
5
- isChecked: boolean;
2
+ import { CheckboxGroupItemProps } from "../CheckboxList/CheckboxList.types";
3
+ export declare type Item = {
6
4
  group?: string;
7
5
  isPinned?: boolean;
8
- }
6
+ } & Pick<CheckboxGroupItemProps, "id" | "label" | "isChecked" | "isDisabled">;
9
7
  export interface Group {
10
8
  title?: string;
11
9
  items: Item[];
@@ -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
  }
@@ -2469,11 +2469,12 @@ var ConfirmationDialogTitle = function ConfirmationDialogTitle(props) {
2469
2469
  var _props$title;
2470
2470
 
2471
2471
  return props.title ? /*#__PURE__*/React__default.createElement("div", {
2472
- className: classNames("flex flex-col space-y-2 ", {
2472
+ "data-test-id": "confirmation-dialog-title",
2473
+ className: classNames("flex flex-col space-y-2", {
2473
2474
  "items-center justify-center": (_props$title = props.title) == null ? void 0 : _props$title.icon
2474
2475
  })
2475
2476
  }, props.title.icon && /*#__PURE__*/React__default.createElement(props.title.icon, {
2476
- className: "transform scale-150 text-blue-800"
2477
+ className: "text-blue-800 dialog-header-icon h-12 w-12"
2477
2478
  }), /*#__PURE__*/React__default.createElement(Title, {
2478
2479
  text: props.title.title
2479
2480
  })) : null;
@@ -2587,12 +2588,12 @@ function RadioInner(_ref) {
2587
2588
  disabled = otherProps.disabled;
2588
2589
  var nameHtmlFor = "field-" + value;
2589
2590
  return /*#__PURE__*/React__default.createElement("label", {
2590
- className: "radio-form-field-label leading-tight",
2591
+ className: "radio-form-field-label leading-tight flex flex-row",
2591
2592
  htmlFor: nameHtmlFor,
2592
2593
  "data-has-error": isError,
2593
2594
  "data-test-id": nameHtmlFor
2594
2595
  }, /*#__PURE__*/React__default.createElement("div", {
2595
- className: "flex flex-row items-center "
2596
+ className: "flex flex-row items-center self-start"
2596
2597
  }, /*#__PURE__*/React__default.createElement("input", _extends({}, otherProps, {
2597
2598
  className: classNames("appearance-none", className),
2598
2599
  ref: innerRef,
@@ -2603,20 +2604,21 @@ function RadioInner(_ref) {
2603
2604
  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
2605
  }, /*#__PURE__*/React__default.createElement("span", {
2605
2606
  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"
2607
+ }))), /*#__PURE__*/React__default.createElement("div", {
2608
+ className: "space-y-2"
2609
+ }, text && /*#__PURE__*/React__default.createElement("div", {
2610
+ className: "ml-2 flex items-center"
2608
2611
  }, /*#__PURE__*/React__default.createElement(Text, {
2609
2612
  inline: true,
2610
2613
  text: text,
2611
2614
  type: "base",
2612
2615
  color: disabled ? "slate-500" : undefined
2613
- }))), info && /*#__PURE__*/React__default.createElement(Text, {
2614
- inline: true,
2615
- className: "ml-6",
2616
+ })), info && /*#__PURE__*/React__default.createElement(Text, {
2617
+ className: "ml-2 leading-4",
2616
2618
  text: info,
2617
2619
  type: "sm",
2618
2620
  color: disabled ? "slate-200" : "slate-500"
2619
- }));
2621
+ })));
2620
2622
  }
2621
2623
  /**
2622
2624
  * TODO: The CSS styling is all messed up, including isError