@singularsystems/neo-react 1.2.1 → 1.2.2
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.
|
@@ -61,18 +61,18 @@ var Button = /** @class */ (function (_super) {
|
|
|
61
61
|
Button.prototype.render = function () {
|
|
62
62
|
var _this = this;
|
|
63
63
|
var _a;
|
|
64
|
-
var _b = this.props, isSubmit = _b.isSubmit, variant = _b.variant, size = _b.size, isOutline = _b.isOutline,
|
|
64
|
+
var _b = this.props, isSubmit = _b.isSubmit, variant = _b.variant, size = _b.size, isOutline = _b.isOutline, inline = _b.inline, icon = _b.icon, iconAlignment = _b.iconAlignment, text = _b.text, menuItems = _b.menuItems, splitMenu = _b.splitMenu, menuAlignment = _b.menuAlignment, buttonGroupClassName = _b.buttonGroupClassName, tooltip = _b.tooltip, task = _b.task, isBusy = _b.isBusy, pulse = _b.pulse, customVariant = _b.customVariant, native = __rest(_b, ["isSubmit", "variant", "size", "isOutline", "inline", "icon", "iconAlignment", "text", "menuItems", "splitMenu", "menuAlignment", "buttonGroupClassName", "tooltip", "task", "isBusy", "pulse", "customVariant"]);
|
|
65
65
|
native.type = isSubmit ? "submit" : "button";
|
|
66
66
|
var variantClassName = ((_a = customVariant !== null && customVariant !== void 0 ? customVariant : variant) !== null && _a !== void 0 ? _a : "primary");
|
|
67
67
|
var isLoading = isBusy || (task === null || task === void 0 ? void 0 : task.isBusy);
|
|
68
68
|
var isDropDown = menuItems && menuItems.length;
|
|
69
|
-
var buttonClasses = "btn btn-" + ((
|
|
69
|
+
var buttonClasses = "btn btn-" + ((inline || isOutline) ? "outline-" : "") + variantClassName;
|
|
70
70
|
if (size)
|
|
71
71
|
buttonClasses += " btn-" + size;
|
|
72
|
-
if (
|
|
73
|
-
buttonClasses += " btn-
|
|
74
|
-
if (
|
|
75
|
-
buttonClasses += " btn-
|
|
72
|
+
if (inline)
|
|
73
|
+
buttonClasses += " btn-inline";
|
|
74
|
+
if (inline && isOutline)
|
|
75
|
+
buttonClasses += " btn-bordered";
|
|
76
76
|
if (isDropDown && !splitMenu) {
|
|
77
77
|
buttonClasses += " dropdown-toggle";
|
|
78
78
|
native.onClick = this.showMenu;
|