@agility/plenum-ui 1.3.21 → 1.3.22
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/lib/index.esm.js +2 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -7092,7 +7092,8 @@ var Button = function (_a, ref) {
|
|
|
7092
7092
|
} },
|
|
7093
7093
|
iconObj &&
|
|
7094
7094
|
(isLoading ? (React__default["default"].createElement(Loader, { classes: "h-5 w-5 border-2" })) : (React__default["default"].createElement(React__default["default"].Fragment, null, iconObj))),
|
|
7095
|
-
icon
|
|
7095
|
+
icon && (isLoading ? (React__default["default"].createElement(Loader, { classes: "h-5 w-5 border-2" })) : (React__default["default"].createElement(DynamicIcons, { icon: icon, className: iconStyles, outline: false }))),
|
|
7096
|
+
!icon && !iconObj && (isLoading && React__default["default"].createElement(Loader, { classes: "h-5 w-5 border-2" })),
|
|
7096
7097
|
label && React__default["default"].createElement("span", null, label)));
|
|
7097
7098
|
};
|
|
7098
7099
|
var _Button = React.forwardRef(Button);
|