revdev-components 0.114.0 → 0.117.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 +10 -5
- package/build/rowDivision/index.d.ts +1 -0
- package/build/styles.css +12 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -60,11 +60,12 @@ var CentralDivision = function (_a) {
|
|
|
60
60
|
return React.createElement("div", { className: classNames(s$w.root, className) }, children);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
var s$v = {"root":"index-module_root__yiKO0"};
|
|
63
|
+
var s$v = {"root":"index-module_root__yiKO0","first":"index-module_first__560SY","last":"index-module_last__fYezY"};
|
|
64
64
|
|
|
65
65
|
var RowDivision = function (_a) {
|
|
66
|
-
var
|
|
67
|
-
|
|
66
|
+
var _b;
|
|
67
|
+
var children = _a.children, className = _a.className, flex = _a.flex;
|
|
68
|
+
return React.createElement("div", { className: classNames(s$v.root, className, (_b = {}, _b[s$v.first] = flex === "first", _b[s$v.last] = flex === "last", _b)) }, children);
|
|
68
69
|
};
|
|
69
70
|
|
|
70
71
|
var _path$2r;
|
|
@@ -5256,11 +5257,15 @@ var Content = function (_a) {
|
|
|
5256
5257
|
}
|
|
5257
5258
|
return result;
|
|
5258
5259
|
}, [size]);
|
|
5259
|
-
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),
|
|
5260
5261
|
React.createElement(IconDivision, { icon: icon, rightIcon: rightIcon }, children)));
|
|
5261
5262
|
};
|
|
5262
5263
|
var Button = function (_a) {
|
|
5263
|
-
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 },
|
|
5267
|
+
React.createElement(Content, __assign({}, props, { href: href }))));
|
|
5268
|
+
}
|
|
5264
5269
|
return tooltip ? (React.createElement(AppTooltip, { placement: tooltipPlacement, title: tooltip, mouseEnterDelay: hoverOpenDelay },
|
|
5265
5270
|
React.createElement(Content, __assign({}, props)))) : (React.createElement(Content, __assign({}, props)));
|
|
5266
5271
|
};
|
package/build/styles.css
CHANGED
|
@@ -77,6 +77,18 @@ body {
|
|
|
77
77
|
.index-module_root__yiKO0 > * {
|
|
78
78
|
flex: 1;
|
|
79
79
|
}
|
|
80
|
+
.index-module_root__yiKO0.index-module_first__560SY > * {
|
|
81
|
+
flex: 0;
|
|
82
|
+
}
|
|
83
|
+
.index-module_root__yiKO0.index-module_first__560SY > *:first-child {
|
|
84
|
+
flex: 1;
|
|
85
|
+
}
|
|
86
|
+
.index-module_root__yiKO0.index-module_last__fYezY > * {
|
|
87
|
+
flex: 0;
|
|
88
|
+
}
|
|
89
|
+
.index-module_root__yiKO0.index-module_last__fYezY > *:last-child {
|
|
90
|
+
flex: 1;
|
|
91
|
+
}
|
|
80
92
|
.index-module_root__-LDR1 {
|
|
81
93
|
display: inline-block;
|
|
82
94
|
height: 1em;
|