@luscii-healthtech/web-ui 2.60.0 → 2.60.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.
|
@@ -3088,13 +3088,10 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
3088
3088
|
return /*#__PURE__*/React__default.createElement("span", null, "Invalid props passed to this component.");
|
|
3089
3089
|
}
|
|
3090
3090
|
|
|
3091
|
-
var buttonClassName = classNames(["h-11", "
|
|
3092
|
-
"w-11": !text && icon,
|
|
3093
|
-
"pl-4 pr-6": text && icon,
|
|
3094
|
-
"px-4": text && !icon
|
|
3095
|
-
}, {
|
|
3091
|
+
var buttonClassName = classNames(["h-11", "border", "transition-outline transition-colors duration-300 ease-in-out", "rounded-full", "leading-none", "shadow-sm", "cursor-pointer", "focus:outline-primary", "group", "flex-shrink-0"], {
|
|
3096
3092
|
"opacity-50": isDisabled,
|
|
3097
|
-
"pointer-events-none": isPending
|
|
3093
|
+
"pointer-events-none": isPending,
|
|
3094
|
+
"w-11": !text && icon
|
|
3098
3095
|
}, className);
|
|
3099
3096
|
var textColorClass = allowedColors[textColor != null ? textColor : "base"];
|
|
3100
3097
|
var tooltipAttrs = title ? {
|
|
@@ -3109,7 +3106,13 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
3109
3106
|
onClick: handleClick,
|
|
3110
3107
|
disabled: isDisabled,
|
|
3111
3108
|
"aria-disabled": isDisabled
|
|
3112
|
-
}
|
|
3109
|
+
}), /*#__PURE__*/React__default.createElement("span", _extends({}, tooltipAttrs, {
|
|
3110
|
+
className: classNames("relative flex flex-row items-center justify-center w-full h-full", // ensuring the buttons are 44px high including content
|
|
3111
|
+
{
|
|
3112
|
+
"pl-4 pr-6": text && icon,
|
|
3113
|
+
"px-4": text && !icon
|
|
3114
|
+
})
|
|
3115
|
+
}), icon && !isPending && /*#__PURE__*/React__default.createElement(IconComponentOrKey, {
|
|
3113
3116
|
name: icon,
|
|
3114
3117
|
className: "w-6 h-6 " + textColorClass
|
|
3115
3118
|
}), isPending && /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -3132,7 +3135,7 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
3132
3135
|
color: textColor,
|
|
3133
3136
|
hoverColor: textHoverColor,
|
|
3134
3137
|
hoverInGroup: true
|
|
3135
|
-
}));
|
|
3138
|
+
})));
|
|
3136
3139
|
|
|
3137
3140
|
if (title) {
|
|
3138
3141
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ReactTooltip, {
|
|
@@ -3738,11 +3741,8 @@ function Button(props) {
|
|
|
3738
3741
|
icon: []
|
|
3739
3742
|
};
|
|
3740
3743
|
var containerClassName = classNames( // default button classes
|
|
3741
|
-
["h-11", "focus:outline-none", "
|
|
3742
|
-
|
|
3743
|
-
"py-2 px-2 w-11": isIconOnly,
|
|
3744
|
-
"px-4 py-3": !isIconOnly
|
|
3745
|
-
}, className, {
|
|
3744
|
+
["h-11", "focus:outline-none", "shadow-sm", "transition-outline transition-colors duration-300 ease-in-out", "cursor-pointer", "rounded-full", "leading-none"], className, {
|
|
3745
|
+
"w-11": isIconOnly,
|
|
3746
3746
|
"opacity-50 pointer-events-none": isButtonDisabled,
|
|
3747
3747
|
"hover:text-primary-dark text-primary": isNonPrimaryNonNegative,
|
|
3748
3748
|
"border border-transparent": isNonPrimaryNonNegative,
|
|
@@ -3772,7 +3772,13 @@ function Button(props) {
|
|
|
3772
3772
|
type: type,
|
|
3773
3773
|
title: title,
|
|
3774
3774
|
"data-role": role
|
|
3775
|
-
}
|
|
3775
|
+
}), /*#__PURE__*/React__default.createElement("span", _extends({}, tooltipAttrs, {
|
|
3776
|
+
className: classNames("relative flex flex-row items-center justify-center w-full h-full", // ensuring the buttons are 44px high including content
|
|
3777
|
+
{
|
|
3778
|
+
"py-2 px-2": isIconOnly,
|
|
3779
|
+
"px-4 py-3": !isIconOnly
|
|
3780
|
+
})
|
|
3781
|
+
}), hasAddIcon && /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
3776
3782
|
className: "w-5 h-5"
|
|
3777
3783
|
}), hasEditIcon && /*#__PURE__*/React__default.createElement(EditIcon, {
|
|
3778
3784
|
className: "w-5 h-5"
|
|
@@ -3803,7 +3809,7 @@ function Button(props) {
|
|
|
3803
3809
|
className: spinnerClassNames
|
|
3804
3810
|
})), /*#__PURE__*/React__default.createElement("span", {
|
|
3805
3811
|
className: buttonTextClasses
|
|
3806
|
-
}, text));
|
|
3812
|
+
}, text)));
|
|
3807
3813
|
|
|
3808
3814
|
if (title) {
|
|
3809
3815
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ReactTooltip, {
|
|
@@ -7952,9 +7958,9 @@ var TimelineStep = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
7952
7958
|
var Timeline = function Timeline(props) {
|
|
7953
7959
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, props.steps.map(function (step) {
|
|
7954
7960
|
return /*#__PURE__*/React__default.createElement(TimelineStep, _extends({}, step));
|
|
7955
|
-
})), props.loadMoreButtonProps && /*#__PURE__*/React__default.createElement(
|
|
7956
|
-
className: "mt-6
|
|
7957
|
-
}, props.loadMoreButtonProps)));
|
|
7961
|
+
})), props.loadMoreButtonProps && /*#__PURE__*/React__default.createElement("div", {
|
|
7962
|
+
className: "mt-6 flex flex-row justify-center items-center"
|
|
7963
|
+
}, /*#__PURE__*/React__default.createElement(SecondaryButton, _extends({}, props.loadMoreButtonProps))));
|
|
7958
7964
|
};
|
|
7959
7965
|
|
|
7960
7966
|
var _excluded$t = ["titleProps", "title", "titleAccessory", "contentProps", "content", "defaultContent", "className", "buttons"];
|