@agility/plenum-ui 1.3.37 → 1.3.38
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/components/Button/Button.d.ts +1 -1
- package/lib/index.esm.js +8 -10
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +8 -10
- package/lib/index.js.map +1 -1
- package/lib/tailwind.css +0 -4
- package/lib/util/Loader.d.ts +2 -2
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -7009,10 +7009,8 @@ var DynamicIcons = function (_a) {
|
|
|
7009
7009
|
};
|
|
7010
7010
|
|
|
7011
7011
|
function Loader(_a) {
|
|
7012
|
-
var
|
|
7013
|
-
var outerLoaderStyles = cn(
|
|
7014
|
-
'w-16 h-16 border-8': !classes
|
|
7015
|
-
});
|
|
7012
|
+
var className = _a.className;
|
|
7013
|
+
var outerLoaderStyles = cn("rounded-full border-purple-700 inline-block border-r-gray-200 animate-spin", className ? className : "w-16 h-16 border-8 m-auto");
|
|
7016
7014
|
return React__default.createElement("div", { className: outerLoaderStyles, role: "status" });
|
|
7017
7015
|
}
|
|
7018
7016
|
|
|
@@ -7037,10 +7035,10 @@ var Button = function (_a, ref) {
|
|
|
7037
7035
|
: function () {
|
|
7038
7036
|
}, disabled: isDisabled, "aria-disabled": isDisabled },
|
|
7039
7037
|
iconObj &&
|
|
7040
|
-
(isLoading ? (React__default.createElement(Loader, {
|
|
7038
|
+
(isLoading ? (React__default.createElement(Loader, { className: "h-5 w-5 border-2" })) : (React__default.createElement(React__default.Fragment, null, iconObj))),
|
|
7041
7039
|
icon &&
|
|
7042
|
-
(isLoading ? (React__default.createElement(Loader, {
|
|
7043
|
-
!icon && !iconObj && isLoading && (React__default.createElement(Loader, {
|
|
7040
|
+
(isLoading ? (React__default.createElement(Loader, { className: "h-5 w-5 border-2" })) : (React__default.createElement(DynamicIcons, { icon: icon, className: iconStyles, outline: false }))),
|
|
7041
|
+
!icon && !iconObj && isLoading && (React__default.createElement(Loader, { className: "h-5 w-5 border-2" })),
|
|
7044
7042
|
label && React__default.createElement("span", null, label))) : (React__default.createElement("a", { type: isSubmit ? "submit" : "button", title: asLink.title || title, href: asLink.href, target: asLink.target, className: cn("inline-flex items-center justify-center space-x-2 rounded border transition-all", { "w-full": isWidthFull === true }, { "px-4 py-2 text-sm": size === "sm" }, { "px-5 py-2 text-base": size === "base" }, { "px-5 py-2 text-lg": size === "lg" }, {
|
|
7045
7043
|
"cursor-auto opacity-50": isDisabled
|
|
7046
7044
|
}, {
|
|
@@ -7053,10 +7051,10 @@ var Button = function (_a, ref) {
|
|
|
7053
7051
|
"border-red-300 bg-red-600 text-white hover:bg-red-700 hover:text-white": type === "danger"
|
|
7054
7052
|
}, className), "aria-disabled": isDisabled },
|
|
7055
7053
|
iconObj &&
|
|
7056
|
-
(isLoading ? (React__default.createElement(Loader, {
|
|
7054
|
+
(isLoading ? (React__default.createElement(Loader, { className: "h-5 w-5 border-2" })) : (React__default.createElement(React__default.Fragment, null, iconObj))),
|
|
7057
7055
|
icon &&
|
|
7058
|
-
(isLoading ? (React__default.createElement(Loader, {
|
|
7059
|
-
!icon && !iconObj && isLoading && (React__default.createElement(Loader, {
|
|
7056
|
+
(isLoading ? (React__default.createElement(Loader, { className: "h-5 w-5 border-2" })) : (React__default.createElement(DynamicIcons, { icon: icon, className: iconStyles, outline: false }))),
|
|
7057
|
+
!icon && !iconObj && isLoading && (React__default.createElement(Loader, { className: "h-5 w-5 border-2" })),
|
|
7060
7058
|
label && React__default.createElement("span", null, label)));
|
|
7061
7059
|
};
|
|
7062
7060
|
var _Button = forwardRef(Button);
|