@luscii-healthtech/web-ui 2.63.1 → 2.63.3

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.
@@ -2086,14 +2086,18 @@ toast.info = function (message) {
2086
2086
  });
2087
2087
  };
2088
2088
 
2089
- var css_248z$2 = ".title {\n font-family: \"AvenirNextLTPro-Bold\", \"Roboto\", sans-serif;\n}";
2089
+ var css_248z$2 = ".title-avenir {\n font-family: \"AvenirNextLTPro-Bold\", \"Roboto\", sans-serif;\n}\n\n.title-inter {\n font-family: \"Inter\", \"Roboto\", \"Helvetica\", sans-serif;\n}";
2090
2090
  styleInject(css_248z$2);
2091
2091
 
2092
2092
  var Title = function Title(props) {
2093
2093
  var _props$color;
2094
2094
 
2095
- var containerClassName = classNames("title", //this is used to load the correct font from the css
2096
- "font-bold", allowedColors[(_props$color = props.color) != null ? _props$color : "base"], {
2095
+ var isSmallTitle = props.type === "xs" || props.type === "sm";
2096
+ var containerClassName = classNames("font-bold", allowedColors[(_props$color = props.color) != null ? _props$color : "base"], {
2097
+ "title-inter": isSmallTitle,
2098
+ "title-avenir": !isSmallTitle //this is used to load the correct font from the css
2099
+
2100
+ }, {
2097
2101
  "text-base": props.type === "xs",
2098
2102
  "text-xl": props.type === "sm",
2099
2103
  "text-2xl": props.type === "base",
@@ -3054,8 +3058,10 @@ var Spinner = function Spinner(props) {
3054
3058
  }));
3055
3059
  };
3056
3060
 
3057
- var _excluded$b = ["onClick", "text", "textColor", "textHoverColor", "icon", "isDisabled", "isPending", "className", "title"];
3061
+ var _excluded$b = ["onClick", "text", "textColor", "textHoverColor", "icon", "isDisabled", "isPending", "className", "title", "dataTestId"];
3058
3062
  var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
3063
+ var _otherAttributes$id;
3064
+
3059
3065
  var onClick = _ref.onClick,
3060
3066
  text = _ref.text,
3061
3067
  textColor = _ref.textColor,
@@ -3065,10 +3071,12 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
3065
3071
  isPending = _ref.isPending,
3066
3072
  className = _ref.className,
3067
3073
  title = _ref.title,
3074
+ dataTestId = _ref.dataTestId,
3068
3075
  otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3069
3076
 
3070
3077
  var generatedId = React__default.useId();
3071
- var buttonTooltipId = otherAttributes.id ? "button-tooltip-id-" + otherAttributes.id : "button-tooltip-id-" + generatedId;
3078
+ var buttonId = (_otherAttributes$id = otherAttributes.id) != null ? _otherAttributes$id : generatedId;
3079
+ var buttonTooltipId = "button-tooltip-id-" + buttonId;
3072
3080
 
3073
3081
  function handleClick(event) {
3074
3082
  event.stopPropagation();
@@ -3097,7 +3105,8 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
3097
3105
  type: "button",
3098
3106
  onClick: handleClick,
3099
3107
  disabled: isDisabled,
3100
- "aria-disabled": isDisabled
3108
+ "aria-disabled": isDisabled,
3109
+ "data-test-id": dataTestId != null ? dataTestId : buttonId
3101
3110
  }), /*#__PURE__*/React__default.createElement("span", _extends({}, tooltipAttrs, {
3102
3111
  className: classNames("relative flex flex-row items-center justify-center w-full h-full", // ensuring the buttons are 44px high including content
3103
3112
  {