revdev-components 0.115.0 → 0.118.0
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/build/index.js +6 -2
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -5257,11 +5257,15 @@ var Content = function (_a) {
|
|
|
5257
5257
|
}
|
|
5258
5258
|
return result;
|
|
5259
5259
|
}, [size]);
|
|
5260
|
-
return (React.createElement(antd.Button, __assign({ style: style, className: classNames(s$7.root, className, (_b = {}, _b[s$7.rounded] = !children, _b[s$7.link] = href, _b)), type: isPrimary ? "primary" : "default",
|
|
5260
|
+
return (React.createElement(antd.Button, __assign({ style: style, className: classNames(s$7.root, className, (_b = {}, _b[s$7.rounded] = !children, _b[s$7.link] = href, _b)), type: isPrimary ? "primary" : "default", size: size }, props),
|
|
5261
5261
|
React.createElement(IconDivision, { icon: icon, rightIcon: rightIcon }, children)));
|
|
5262
5262
|
};
|
|
5263
5263
|
var Button = function (_a) {
|
|
5264
|
-
var tooltip = _a.tooltip, tooltipPlacement = _a.tooltipPlacement, hoverOpenDelay = _a.hoverOpenDelay, props = __rest(_a, ["tooltip", "tooltipPlacement", "hoverOpenDelay"]);
|
|
5264
|
+
var tooltip = _a.tooltip, tooltipPlacement = _a.tooltipPlacement, hoverOpenDelay = _a.hoverOpenDelay, href = _a.href, props = __rest(_a, ["tooltip", "tooltipPlacement", "hoverOpenDelay", "href"]);
|
|
5265
|
+
if (href) {
|
|
5266
|
+
return (React.createElement(AppLink, { href: href, showUnderline: false },
|
|
5267
|
+
React.createElement(Content, __assign({}, props, { href: href }))));
|
|
5268
|
+
}
|
|
5265
5269
|
return tooltip ? (React.createElement(AppTooltip, { placement: tooltipPlacement, title: tooltip, mouseEnterDelay: hoverOpenDelay },
|
|
5266
5270
|
React.createElement(Content, __assign({}, props)))) : (React.createElement(Content, __assign({}, props)));
|
|
5267
5271
|
};
|