revdev-components 0.137.0 → 0.139.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
CHANGED
|
@@ -5037,7 +5037,7 @@ var InfoDialog = function (_a) {
|
|
|
5037
5037
|
var s$i = {"root":"index-module_root__BQI-i","header":"index-module_header__OUCQj","title":"index-module_title__HPbDC","close":"index-module_close__-FN6K","content":"index-module_content__BpXha","footer":"index-module_footer__xqKte"};
|
|
5038
5038
|
|
|
5039
5039
|
var RegularDialog = function (_a) {
|
|
5040
|
-
var titleIcon = _a.titleIcon, titlePrefix = _a.titlePrefix, title = _a.title, children = _a.children, _b = _a.hideFooter, hideFooter = _b === void 0 ? false : _b, className = _a.className, width = _a.width, okText = _a.okText, cancelText = _a.cancelText, footerClassName = _a.footerClassName, contentClassName = _a.contentClassName, okHide = _a.okHide, okDisabled = _a.okDisabled, onOk = _a.onOk, onClose = _a.onClose, _c = _a.open, open = _c === void 0 ? true : _c;
|
|
5040
|
+
var titleIcon = _a.titleIcon, titlePrefix = _a.titlePrefix, title = _a.title, children = _a.children, _b = _a.hideFooter, hideFooter = _b === void 0 ? false : _b, className = _a.className, width = _a.width, okText = _a.okText, cancelText = _a.cancelText, footerClassName = _a.footerClassName, contentClassName = _a.contentClassName, okHide = _a.okHide, okDisabled = _a.okDisabled, onOk = _a.onOk, onClose = _a.onClose, _c = _a.open, open = _c === void 0 ? true : _c, _d = _a.maskClosable, maskClosable = _d === void 0 ? false : _d;
|
|
5041
5041
|
var close = React.useMemo(function () {
|
|
5042
5042
|
return React.createElement(RegularIcon, { name: "cross", className: s$i.close, onClick: onClose });
|
|
5043
5043
|
}, [onClose]);
|
|
@@ -5064,7 +5064,7 @@ var RegularDialog = function (_a) {
|
|
|
5064
5064
|
}
|
|
5065
5065
|
return result;
|
|
5066
5066
|
}, [width]);
|
|
5067
|
-
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$i.root, className), maskClosable:
|
|
5067
|
+
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$i.root, className), maskClosable: maskClosable, footer: null },
|
|
5068
5068
|
titleContent,
|
|
5069
5069
|
React.createElement("div", { className: classNames(s$i.content, contentClassName) }, children),
|
|
5070
5070
|
hideFooter ? null : (React.createElement("div", { className: classNames(s$i.footer, footerClassName) },
|
|
@@ -5280,7 +5280,7 @@ var Button = function (_a) {
|
|
|
5280
5280
|
|
|
5281
5281
|
var FrontHeader = function (_a) {
|
|
5282
5282
|
var _b;
|
|
5283
|
-
var user = _a.user, children = _a.children, className = _a.className, logoHref = _a.logoHref, logoContent = _a.logoContent, loginHref = _a.loginHref, registerHref = _a.registerHref, language = _a.language, text = _a.text, onMenuClick = _a.onMenuClick;
|
|
5283
|
+
var user = _a.user, children = _a.children, className = _a.className, logoHref = _a.logoHref, logoContent = _a.logoContent, loginHref = _a.loginHref, registerHref = _a.registerHref, language = _a.language, text = _a.text, onMenuClick = _a.onMenuClick, onSearchClick = _a.onSearchClick;
|
|
5284
5284
|
var _c = React.useState(false), shadow = _c[0], setShadow = _c[1];
|
|
5285
5285
|
function handleScroll() {
|
|
5286
5286
|
setShadow(window.scrollY > 50);
|
|
@@ -5320,6 +5320,7 @@ var FrontHeader = function (_a) {
|
|
|
5320
5320
|
onMenuClick && React.createElement(Button, { icon: "menu", onClick: onMenuClick }),
|
|
5321
5321
|
React.createElement(AppLink, { className: s$8.logo, href: logoHref }, logoContent || "AlfaSchool"),
|
|
5322
5322
|
React.createElement("div", { className: s$8.content }, children),
|
|
5323
|
+
onSearchClick && (React.createElement(Button, { icon: "search", onClick: onSearchClick, size: "middle" }, "Search")),
|
|
5323
5324
|
!user && (React.createElement("div", { className: s$8.link },
|
|
5324
5325
|
React.createElement(AppLink, { href: loginHref }, text.login || "Login"),
|
|
5325
5326
|
React.createElement(AppLink, { href: registerHref }, text.register || "Register"))),
|