@luscii-healthtech/web-ui 2.45.1 → 2.46.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.
@@ -1,4 +1,4 @@
1
- import { Props, GroupBase } from "react-select";
1
+ import { GroupBase, Props } from "react-select";
2
2
  import React from "react";
3
3
  /**
4
4
  * Exceptional case for this file:
@@ -1,7 +1,8 @@
1
- import React from "react";
2
- export interface TimelineStepProps {
1
+ import React, { RefAttributes } from "react";
2
+ export interface TimelineStepProps extends RefAttributes<HTMLDivElement> {
3
3
  key: string | number;
4
4
  type?: "wide" | "base" | "withoutDot" | "emptyDot";
5
5
  content: React.ReactNode;
6
+ dataTestId?: string | number;
6
7
  }
7
- export declare const TimelineStep: ({ content, type, }: TimelineStepProps) => JSX.Element;
8
+ export declare const TimelineStep: React.ForwardRefExoticComponent<Pick<TimelineStepProps, "content" | "type" | "dataTestId" | "key"> & React.RefAttributes<HTMLDivElement>>;
@@ -3709,6 +3709,21 @@ function generateCustomStyles(hasError, isIE11) {
3709
3709
  flexGrow: isIE11 ? 0.5 : "initial"
3710
3710
  });
3711
3711
  },
3712
+ input: function input(baseStyles) {
3713
+ return _extends({}, baseStyles, {
3714
+ padding: 0
3715
+ });
3716
+ },
3717
+ multiValue: function multiValue(baseStyles) {
3718
+ return _extends({}, baseStyles, {
3719
+ lineHeight: isIE11 ? "25px" : "1rem"
3720
+ });
3721
+ },
3722
+ valueContainer: function valueContainer(baseStyles) {
3723
+ return _extends({}, baseStyles, {
3724
+ padding: ".5rem"
3725
+ });
3726
+ },
3712
3727
  control: function control(baseStyles, state) {
3713
3728
  var defaultBorderColor = state.isFocused ? "#045baa" : "#D1D5DB";
3714
3729
  var validatedBorderColor = hasError ? "#c53030" : defaultBorderColor;
@@ -3717,7 +3732,6 @@ function generateCustomStyles(hasError, isIE11) {
3717
3732
  return _extends({}, baseStyles, {
3718
3733
  fontSize: "14px",
3719
3734
  transition: "border 0.3s ease-in-out",
3720
- height: isIE11 ? "50px" : "2.75rem",
3721
3735
  // primary outline
3722
3736
  outline: validatedOutline,
3723
3737
  borderColor: validatedBorderColor,
@@ -6460,19 +6474,22 @@ var TextEditorV2 = function TextEditorV2(_ref) {
6460
6474
  }));
6461
6475
  };
6462
6476
 
6463
- var TimelineStep = function TimelineStep(_ref) {
6477
+ var TimelineStep = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
6464
6478
  var _classNames;
6465
6479
 
6466
6480
  var content = _ref.content,
6467
6481
  _ref$type = _ref.type,
6468
- type = _ref$type === void 0 ? "base" : _ref$type;
6482
+ type = _ref$type === void 0 ? "base" : _ref$type,
6483
+ dataTestId = _ref.dataTestId;
6469
6484
  var isWideStep = type === "wide";
6470
6485
  var borderClassNames = "ml-4 pl-6 border-blue-800 border-l-2";
6471
6486
  var containerClassNames = classNames("relative", (_classNames = {}, _classNames[borderClassNames] = !isWideStep, _classNames["bg-white rounded-lg overflow-hidden"] = isWideStep, _classNames));
6472
6487
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isWideStep && /*#__PURE__*/React__default.createElement("div", {
6473
6488
  className: classNames(borderClassNames, "h-4 first:h-0")
6474
6489
  }), /*#__PURE__*/React__default.createElement("div", {
6475
- className: containerClassNames
6490
+ className: containerClassNames,
6491
+ "data-test-id": dataTestId === undefined ? "" : "timeline-step-" + dataTestId,
6492
+ ref: ref
6476
6493
  }, /*#__PURE__*/React__default.createElement("div", {
6477
6494
  className: "flex flex-col"
6478
6495
  }, content), /*#__PURE__*/React__default.createElement("span", {
@@ -6482,7 +6499,7 @@ var TimelineStep = function TimelineStep(_ref) {
6482
6499
  "bg-white border-blue-800 border-4": "emptyDot" === type
6483
6500
  })
6484
6501
  })));
6485
- };
6502
+ });
6486
6503
 
6487
6504
  var Timeline = function Timeline(props) {
6488
6505
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, props.steps.map(function (step) {