@luscii-healthtech/web-ui 2.63.2 → 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.
@@ -3058,8 +3058,10 @@ var Spinner = function Spinner(props) {
3058
3058
  }));
3059
3059
  };
3060
3060
 
3061
- 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"];
3062
3062
  var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
3063
+ var _otherAttributes$id;
3064
+
3063
3065
  var onClick = _ref.onClick,
3064
3066
  text = _ref.text,
3065
3067
  textColor = _ref.textColor,
@@ -3069,10 +3071,12 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
3069
3071
  isPending = _ref.isPending,
3070
3072
  className = _ref.className,
3071
3073
  title = _ref.title,
3074
+ dataTestId = _ref.dataTestId,
3072
3075
  otherAttributes = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3073
3076
 
3074
3077
  var generatedId = React__default.useId();
3075
- 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;
3076
3080
 
3077
3081
  function handleClick(event) {
3078
3082
  event.stopPropagation();
@@ -3101,7 +3105,8 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
3101
3105
  type: "button",
3102
3106
  onClick: handleClick,
3103
3107
  disabled: isDisabled,
3104
- "aria-disabled": isDisabled
3108
+ "aria-disabled": isDisabled,
3109
+ "data-test-id": dataTestId != null ? dataTestId : buttonId
3105
3110
  }), /*#__PURE__*/React__default.createElement("span", _extends({}, tooltipAttrs, {
3106
3111
  className: classNames("relative flex flex-row items-center justify-center w-full h-full", // ensuring the buttons are 44px high including content
3107
3112
  {