@luscii-healthtech/web-ui 2.41.1 → 2.41.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.
- package/dist/components/Modal/ModalFooter.d.ts +2 -2
- package/dist/web-ui.cjs.development.js +4 -3
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +4 -3
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonWithPendingStateProps, NonPrimaryButtonProps, PrimaryButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
3
3
|
export interface ModalFooterTrailingComponents {
|
|
4
4
|
primaryButtonProps: PrimaryButtonProps;
|
|
5
5
|
secondaryButtonProps?: NonPrimaryButtonProps;
|
|
6
6
|
}
|
|
7
|
-
export declare type ModalFooterLeadingComponent = string |
|
|
7
|
+
export declare type ModalFooterLeadingComponent = string | ButtonWithPendingStateProps;
|
|
8
8
|
export declare type ModalFooterProps = {
|
|
9
9
|
footerLeadingComponent?: ModalFooterLeadingComponent;
|
|
10
10
|
footerTrailingComponents: ModalFooterTrailingComponents;
|
|
@@ -1569,6 +1569,7 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
1569
1569
|
"opacity-50": isDisabled,
|
|
1570
1570
|
"pointer-events-none": isDisabled || isPending
|
|
1571
1571
|
}, className);
|
|
1572
|
+
var textColorClass = allowedColors[textColor != null ? textColor : "base"];
|
|
1572
1573
|
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1573
1574
|
ref: innerRef
|
|
1574
1575
|
}, otherAttributes, {
|
|
@@ -1577,8 +1578,8 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
1577
1578
|
onClick: handleClick,
|
|
1578
1579
|
disabled: isDisabled,
|
|
1579
1580
|
"aria-disabled": isDisabled
|
|
1580
|
-
}), icon && /*#__PURE__*/React__default.createElement(icon, {
|
|
1581
|
-
className: "w-6 h-6"
|
|
1581
|
+
}), icon && !isPending && /*#__PURE__*/React__default.createElement(icon, {
|
|
1582
|
+
className: "w-6 h-6 " + textColorClass
|
|
1582
1583
|
}), isPending && /*#__PURE__*/React__default.createElement("span", {
|
|
1583
1584
|
className: "opacity-100",
|
|
1584
1585
|
// IE11 center translate fix
|
|
@@ -1589,7 +1590,7 @@ var ButtonV2 = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef)
|
|
|
1589
1590
|
transform: "translate(-50%, -50%)"
|
|
1590
1591
|
}
|
|
1591
1592
|
}, /*#__PURE__*/React__default.createElement(Spinner, {
|
|
1592
|
-
className:
|
|
1593
|
+
className: textColorClass
|
|
1593
1594
|
})), text && /*#__PURE__*/React__default.createElement(Text, {
|
|
1594
1595
|
className: classNames({
|
|
1595
1596
|
invisible: isPending,
|