revdev-components 0.124.0 → 0.125.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/contentHeader2/index.d.ts +6 -1
- package/build/index.js +189 -188
- package/build/styles.css +29 -29
- package/package.json +1 -1
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { HeaderProps } from "src/interfaces";
|
|
3
|
-
|
|
3
|
+
import { RegularIconName } from "src/icon";
|
|
4
|
+
interface Props extends HeaderProps {
|
|
5
|
+
icon?: RegularIconName;
|
|
6
|
+
}
|
|
7
|
+
export declare const ContentHeader2: React.FC<Props>;
|
|
8
|
+
export {};
|
package/build/index.js
CHANGED
|
@@ -34,39 +34,62 @@ var ContentHeader1 = function (_a) {
|
|
|
34
34
|
|
|
35
35
|
var s$z = {"root":"index-module_root__51YHj"};
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
var s
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
37
|
+
/******************************************************************************
|
|
38
|
+
Copyright (c) Microsoft Corporation.
|
|
39
|
+
|
|
40
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
41
|
+
purpose with or without fee is hereby granted.
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
44
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
45
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
46
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
47
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
48
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
49
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
50
|
+
***************************************************************************** */
|
|
51
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
var __assign = function() {
|
|
55
|
+
__assign = Object.assign || function __assign(t) {
|
|
56
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
+
s = arguments[i];
|
|
58
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
59
|
+
}
|
|
60
|
+
return t;
|
|
61
|
+
};
|
|
62
|
+
return __assign.apply(this, arguments);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
function __rest(s, e) {
|
|
66
|
+
var t = {};
|
|
67
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
68
|
+
t[p] = s[p];
|
|
69
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
70
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
71
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
72
|
+
t[p[i]] = s[p[i]];
|
|
73
|
+
}
|
|
74
|
+
return t;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function __spreadArray(to, from, pack) {
|
|
78
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
+
if (ar || !(i in from)) {
|
|
80
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
+
ar[i] = from[i];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
88
|
+
var e = new Error(message);
|
|
89
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
61
90
|
};
|
|
62
91
|
|
|
63
|
-
var s$
|
|
64
|
-
|
|
65
|
-
var RowDivision = function (_a) {
|
|
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);
|
|
69
|
-
};
|
|
92
|
+
var s$y = {"root":"index-module_root__UzFV2","column":"index-module_column__XEWzG","children":"index-module_children__y7-7m","flex":"index-module_flex__83M30","button":"index-module_button__U8D6K"};
|
|
70
93
|
|
|
71
94
|
var _path$2r;
|
|
72
95
|
function _extends$2t() { return _extends$2t = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2t.apply(null, arguments); }
|
|
@@ -1575,68 +1598,13 @@ var SvgWord = function SvgWord(props) {
|
|
|
1575
1598
|
})));
|
|
1576
1599
|
};
|
|
1577
1600
|
|
|
1578
|
-
|
|
1579
|
-
Copyright (c) Microsoft Corporation.
|
|
1580
|
-
|
|
1581
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
1582
|
-
purpose with or without fee is hereby granted.
|
|
1583
|
-
|
|
1584
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1585
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1586
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1587
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1588
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1589
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1590
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
1591
|
-
***************************************************************************** */
|
|
1592
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
var __assign = function() {
|
|
1596
|
-
__assign = Object.assign || function __assign(t) {
|
|
1597
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1598
|
-
s = arguments[i];
|
|
1599
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
1600
|
-
}
|
|
1601
|
-
return t;
|
|
1602
|
-
};
|
|
1603
|
-
return __assign.apply(this, arguments);
|
|
1604
|
-
};
|
|
1605
|
-
|
|
1606
|
-
function __rest(s, e) {
|
|
1607
|
-
var t = {};
|
|
1608
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1609
|
-
t[p] = s[p];
|
|
1610
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1611
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1612
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1613
|
-
t[p[i]] = s[p[i]];
|
|
1614
|
-
}
|
|
1615
|
-
return t;
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
function __spreadArray(to, from, pack) {
|
|
1619
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1620
|
-
if (ar || !(i in from)) {
|
|
1621
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
1622
|
-
ar[i] = from[i];
|
|
1623
|
-
}
|
|
1624
|
-
}
|
|
1625
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
1629
|
-
var e = new Error(message);
|
|
1630
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1631
|
-
};
|
|
1632
|
-
|
|
1633
|
-
var s$u = {"root":"index-module_root__-LDR1"};
|
|
1601
|
+
var s$x = {"root":"index-module_root__-LDR1"};
|
|
1634
1602
|
|
|
1635
1603
|
// https://www.svgrepo.com/
|
|
1636
1604
|
function useBasicIcon(_a, icons) {
|
|
1637
1605
|
var className = _a.className, name = _a.name, props = __rest(_a, ["className", "name"]);
|
|
1638
1606
|
var svgAttrs = React.useMemo(function () {
|
|
1639
|
-
return __assign({ className: classNames(s$
|
|
1607
|
+
return __assign({ className: classNames(s$x.root, className), fill: "currentColor" }, props);
|
|
1640
1608
|
}, [className, props]);
|
|
1641
1609
|
var Icon = icons[name];
|
|
1642
1610
|
return Icon ? React.createElement(Icon, __assign({}, svgAttrs)) : undefined;
|
|
@@ -1945,6 +1913,65 @@ var RegularIcon = function (props) {
|
|
|
1945
1913
|
return useBasicIcon(props, icons$2);
|
|
1946
1914
|
};
|
|
1947
1915
|
|
|
1916
|
+
var AppTooltip = function (_a) {
|
|
1917
|
+
var _b = _a.placement, placement = _b === void 0 ? "top" : _b, children = _a.children, props = __rest(_a, ["placement", "children"]);
|
|
1918
|
+
return (React.createElement(antd.Tooltip, __assign({ placement: placement }, props),
|
|
1919
|
+
React.createElement(React.Fragment, null, children)));
|
|
1920
|
+
};
|
|
1921
|
+
|
|
1922
|
+
var IconBoxContent = function (_a) {
|
|
1923
|
+
var _b;
|
|
1924
|
+
var flexRoot = _a.flexRoot, icon = _a.icon, rightIcon = _a.rightIcon, children = _a.children, className = _a.className, contentClassName = _a.contentClassName, onClick = _a.onClick, _c = _a.direction, direction = _c === void 0 ? "row" : _c, elementRev = _a.elementRev, style = _a.style;
|
|
1925
|
+
return (React.createElement("div", { ref: elementRev, style: style, className: classNames(s$y.root, (_b = {},
|
|
1926
|
+
_b[s$y.flex] = flexRoot,
|
|
1927
|
+
_b[s$y.button] = !!onClick,
|
|
1928
|
+
_b[s$y.column] = direction === "column",
|
|
1929
|
+
_b), className), onClick: onClick },
|
|
1930
|
+
icon ? React.createElement(RegularIcon, { className: s$y.icon, name: icon }) : null,
|
|
1931
|
+
children ? React.createElement("div", { className: classNames(contentClassName, s$y.root__children) }, children) : null,
|
|
1932
|
+
rightIcon ? React.createElement(RegularIcon, { className: s$y.icon, name: rightIcon }) : null));
|
|
1933
|
+
};
|
|
1934
|
+
var IconDivision = function (props) {
|
|
1935
|
+
var tooltip = props.tooltip, tooltipPlacement = props.tooltipPlacement, tooltipMouseEnterDelay = props.tooltipMouseEnterDelay;
|
|
1936
|
+
return tooltip ? (React.createElement(AppTooltip, { placement: tooltipPlacement, title: tooltip, mouseEnterDelay: tooltipMouseEnterDelay },
|
|
1937
|
+
React.createElement(IconBoxContent, __assign({}, props)))) : (React.createElement(IconBoxContent, __assign({}, props)));
|
|
1938
|
+
};
|
|
1939
|
+
|
|
1940
|
+
var ContentHeader2 = function (_a) {
|
|
1941
|
+
var icon = _a.icon, children = _a.children, className = _a.className;
|
|
1942
|
+
var content = React.createElement("h2", { className: classNames(s$z.root, className) }, children);
|
|
1943
|
+
return icon ? React.createElement(IconDivision, { icon: icon }, content) : content;
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
var s$w = {"root":"index-module_root__Fq-q1"};
|
|
1947
|
+
|
|
1948
|
+
var Paragraph = function (_a) {
|
|
1949
|
+
var children = _a.children, className = _a.className;
|
|
1950
|
+
return React.createElement("p", { className: classNames(s$w.root, className) }, children);
|
|
1951
|
+
};
|
|
1952
|
+
|
|
1953
|
+
var s$v = {"root":"index-module_root__VIFF-"};
|
|
1954
|
+
|
|
1955
|
+
var PageTitle = function (_a) {
|
|
1956
|
+
var children = _a.children, className = _a.className;
|
|
1957
|
+
return React.createElement("h1", { className: classNames(s$v.root, className) }, children);
|
|
1958
|
+
};
|
|
1959
|
+
|
|
1960
|
+
var s$u = {"root":"index-module_root__p0I0n"};
|
|
1961
|
+
|
|
1962
|
+
var CentralDivision = function (_a) {
|
|
1963
|
+
var children = _a.children, className = _a.className;
|
|
1964
|
+
return React.createElement("div", { className: classNames(s$u.root, className) }, children);
|
|
1965
|
+
};
|
|
1966
|
+
|
|
1967
|
+
var s$t = {"root":"index-module_root__yiKO0","first":"index-module_first__560SY","last":"index-module_last__fYezY"};
|
|
1968
|
+
|
|
1969
|
+
var RowDivision = function (_a) {
|
|
1970
|
+
var _b;
|
|
1971
|
+
var children = _a.children, className = _a.className, flex = _a.flex;
|
|
1972
|
+
return React.createElement("div", { className: classNames(s$t.root, className, (_b = {}, _b[s$t.first] = flex === "first", _b[s$t.last] = flex === "last", _b)) }, children);
|
|
1973
|
+
};
|
|
1974
|
+
|
|
1948
1975
|
var _path$i, _path2$a, _path3$8;
|
|
1949
1976
|
function _extends$k() { return _extends$k = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$k.apply(null, arguments); }
|
|
1950
1977
|
var SvgAm = function SvgAm(props) {
|
|
@@ -4735,7 +4762,7 @@ var SocialIcon = function (props) {
|
|
|
4735
4762
|
return useBasicIcon(props, icons);
|
|
4736
4763
|
};
|
|
4737
4764
|
|
|
4738
|
-
var s$
|
|
4765
|
+
var s$s = {"root":"index-module_root__gtTIa","action":"index-module_action__pOSde"};
|
|
4739
4766
|
|
|
4740
4767
|
var CONSOLE_COLOR = "background:rgb(28, 46, 82); color:rgb(231, 231, 231)";
|
|
4741
4768
|
|
|
@@ -4852,10 +4879,10 @@ function AppForm(_a) {
|
|
|
4852
4879
|
setValues(changedValues, values);
|
|
4853
4880
|
onValuesChange === null || onValuesChange === void 0 ? void 0 : onValuesChange(changedValues, values);
|
|
4854
4881
|
}, [setValues, onValuesChange]);
|
|
4855
|
-
return (React.createElement(antd.Form, { form: form, onFinish: onFinish, className: classNames(s$
|
|
4882
|
+
return (React.createElement(antd.Form, { form: form, onFinish: onFinish, className: classNames(s$s.root, className), layout: "vertical", onValuesChange: handleValuesChange, onFieldsChange: onFieldsChange, initialValues: initialValues }, typeof children === "function" ? children({ valid: valid }) : children));
|
|
4856
4883
|
}
|
|
4857
4884
|
|
|
4858
|
-
var s$
|
|
4885
|
+
var s$r = {"root":"index-module_root__2S1Jp"};
|
|
4859
4886
|
|
|
4860
4887
|
function useLineProps(_a) {
|
|
4861
4888
|
var lineClassName = _a.lineClassName, name = _a.name, label = _a.label, rules = _a.rules, valuePropName = _a.valuePropName, noStyle = _a.noStyle, hasFeedback = _a.hasFeedback, dependencies = _a.dependencies, rest = __rest(_a, ["lineClassName", "name", "label", "rules", "valuePropName", "noStyle", "hasFeedback", "dependencies"]);
|
|
@@ -4869,7 +4896,7 @@ var FormLine = function (_a) {
|
|
|
4869
4896
|
}
|
|
4870
4897
|
return [];
|
|
4871
4898
|
}, [validateRules]);
|
|
4872
|
-
return React.createElement(antd.Form.Item, __assign({ className: classNames(s$
|
|
4899
|
+
return React.createElement(antd.Form.Item, __assign({ className: classNames(s$r.root, className), rules: rules }, props));
|
|
4873
4900
|
};
|
|
4874
4901
|
|
|
4875
4902
|
var DatePickerField = function (props) {
|
|
@@ -4890,12 +4917,12 @@ var InputField = function (props) {
|
|
|
4890
4917
|
React.createElement(antd.Input, __assign({}, controlProps))));
|
|
4891
4918
|
};
|
|
4892
4919
|
|
|
4893
|
-
var s$
|
|
4920
|
+
var s$q = {"input":"index-module_input__71iJw"};
|
|
4894
4921
|
|
|
4895
4922
|
var InputNumberField = function (props) {
|
|
4896
4923
|
var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], className = _b.className, controlProps = __rest(_b, ["className"]);
|
|
4897
4924
|
return (React.createElement(FormLine, __assign({}, lineProps),
|
|
4898
|
-
React.createElement(antd.InputNumber, __assign({ className: classNames(s$
|
|
4925
|
+
React.createElement(antd.InputNumber, __assign({ className: classNames(s$q.input, className) }, controlProps))));
|
|
4899
4926
|
};
|
|
4900
4927
|
|
|
4901
4928
|
var RadioButtonField = function (props) {
|
|
@@ -4904,13 +4931,13 @@ var RadioButtonField = function (props) {
|
|
|
4904
4931
|
React.createElement(antd.Radio.Group, __assign({ buttonStyle: buttonStyle, optionType: optionType }, controlProps))));
|
|
4905
4932
|
};
|
|
4906
4933
|
|
|
4907
|
-
var s$
|
|
4934
|
+
var s$p = {"popup":"index-module_popup__Im5Y-"};
|
|
4908
4935
|
|
|
4909
4936
|
var RangePicker = antd.DatePicker.RangePicker;
|
|
4910
4937
|
var RangePickerField = function (props) {
|
|
4911
4938
|
var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], oneMonth = _b.oneMonth, controlProps = __rest(_b, ["oneMonth"]);
|
|
4912
4939
|
return (React.createElement(FormLine, __assign({}, lineProps),
|
|
4913
|
-
React.createElement(RangePicker, __assign({}, controlProps, { popupClassName: oneMonth ? s$
|
|
4940
|
+
React.createElement(RangePicker, __assign({}, controlProps, { popupClassName: oneMonth ? s$p.popup : undefined }))));
|
|
4914
4941
|
};
|
|
4915
4942
|
|
|
4916
4943
|
var SelectField = function (props) {
|
|
@@ -4919,7 +4946,7 @@ var SelectField = function (props) {
|
|
|
4919
4946
|
React.createElement(antd.Select, __assign({}, controlProps))));
|
|
4920
4947
|
};
|
|
4921
4948
|
|
|
4922
|
-
var s$
|
|
4949
|
+
var s$o = {"empty":"index-module_empty__sV0Gg","add":"index-module_add__f03vM"};
|
|
4923
4950
|
|
|
4924
4951
|
var SearchSelectField = function (props) {
|
|
4925
4952
|
var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], onSearch = _b.onSearch, onAdd = _b.onAdd, loading = _b.loading, text = _b.text, controlProps = __rest(_b, ["onSearch", "onAdd", "loading", "text"]);
|
|
@@ -4932,9 +4959,9 @@ var SearchSelectField = function (props) {
|
|
|
4932
4959
|
onAdd === null || onAdd === void 0 ? void 0 : onAdd(searchText);
|
|
4933
4960
|
}, [searchText, onAdd]);
|
|
4934
4961
|
return (React.createElement(FormLine, __assign({}, lineProps),
|
|
4935
|
-
React.createElement(antd.Select, __assign({}, controlProps, { showSearch: true, onSearch: handleSearch, loading: loading, notFoundContent: loading ? null : (React.createElement("div", { className: s$
|
|
4962
|
+
React.createElement(antd.Select, __assign({}, controlProps, { showSearch: true, onSearch: handleSearch, loading: loading, notFoundContent: loading ? null : (React.createElement("div", { className: s$o.empty }, searchText ? (React.createElement(React.Fragment, null,
|
|
4936
4963
|
(text === null || text === void 0 ? void 0 : text.notFound) || "Not found",
|
|
4937
|
-
React.createElement(antd.Button, { size: "small", className: s$
|
|
4964
|
+
React.createElement(antd.Button, { size: "small", className: s$o.add, onClick: handleAdd }, (text === null || text === void 0 ? void 0 : text.addNew) || "Add New"))) : ((text === null || text === void 0 ? void 0 : text.enterToSearch) || "Enter text to start search"))) }))));
|
|
4938
4965
|
};
|
|
4939
4966
|
|
|
4940
4967
|
var TextArea = antd.Input.TextArea;
|
|
@@ -4950,13 +4977,13 @@ var CheckboxField = function (props) {
|
|
|
4950
4977
|
React.createElement(antd.Checkbox, __assign({}, controlProps))));
|
|
4951
4978
|
};
|
|
4952
4979
|
|
|
4953
|
-
var s$
|
|
4980
|
+
var s$n = {"root":"index-module_root__GGl-p"};
|
|
4954
4981
|
|
|
4955
4982
|
var SwitchFieldControl = function (_a) {
|
|
4956
4983
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
4957
|
-
return (React.createElement("div", { className: s$
|
|
4984
|
+
return (React.createElement("div", { className: s$n.root },
|
|
4958
4985
|
React.createElement(antd.Switch, __assign({}, props)),
|
|
4959
|
-
children && React.createElement("div", { className: s$
|
|
4986
|
+
children && React.createElement("div", { className: s$n.content }, children)));
|
|
4960
4987
|
};
|
|
4961
4988
|
|
|
4962
4989
|
var SwitchField = function (props) {
|
|
@@ -4971,22 +4998,22 @@ var AutoCompleteField = function (props) {
|
|
|
4971
4998
|
React.createElement(antd.AutoComplete, __assign({}, controlProps))));
|
|
4972
4999
|
};
|
|
4973
5000
|
|
|
4974
|
-
var s$
|
|
5001
|
+
var s$m = {"root":"index-module_root__9GQDU"};
|
|
4975
5002
|
|
|
4976
5003
|
var FormButton = function (_a) {
|
|
4977
5004
|
var className = _a.className, _b = _a.children, children = _b === void 0 ? "Save" : _b, loading = _a.loading, disabled = _a.disabled;
|
|
4978
|
-
return (React.createElement("div", { className: classNames(s$
|
|
5005
|
+
return (React.createElement("div", { className: classNames(s$m.root, className) },
|
|
4979
5006
|
React.createElement(antd.Button, { htmlType: "submit", type: "primary", loading: loading, disabled: disabled }, children)));
|
|
4980
5007
|
};
|
|
4981
5008
|
|
|
4982
|
-
var s$
|
|
5009
|
+
var s$l = {"root":"index-module_root__C05Ty"};
|
|
4983
5010
|
|
|
4984
5011
|
var FormError = function (_a) {
|
|
4985
5012
|
var children = _a.children, className = _a.className;
|
|
4986
|
-
return children ? React.createElement("div", { className: classNames(s$
|
|
5013
|
+
return children ? React.createElement("div", { className: classNames(s$l.root, className) }, children) : null;
|
|
4987
5014
|
};
|
|
4988
5015
|
|
|
4989
|
-
var s$
|
|
5016
|
+
var s$k = {"root":"index-module_root__C7wx2","content":"index-module_content__RsiJT","close":"index-module_close__lBc6p"};
|
|
4990
5017
|
|
|
4991
5018
|
var InfoDialog = function (_a) {
|
|
4992
5019
|
var children = _a.children, className = _a.className, width = _a.width, hideClose = _a.hideClose, onClose = _a.onClose, _b = _a.open, open = _b === void 0 ? true : _b, contentClassName = _a.contentClassName, _c = _a.maskClosable, maskClosable = _c === void 0 ? false : _c;
|
|
@@ -4998,23 +5025,23 @@ var InfoDialog = function (_a) {
|
|
|
4998
5025
|
}
|
|
4999
5026
|
return result;
|
|
5000
5027
|
}, [width]);
|
|
5001
|
-
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$
|
|
5002
|
-
React.createElement("div", { className: classNames(s$
|
|
5028
|
+
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$k.root, className), maskClosable: maskClosable, footer: null },
|
|
5029
|
+
React.createElement("div", { className: classNames(s$k.content, contentClassName) },
|
|
5003
5030
|
children,
|
|
5004
|
-
hideClose ? null : React.createElement(RegularIcon, { name: "cross", className: s$
|
|
5031
|
+
hideClose ? null : React.createElement(RegularIcon, { name: "cross", className: s$k.close, onClick: onClose }))));
|
|
5005
5032
|
};
|
|
5006
5033
|
|
|
5007
|
-
var s$
|
|
5034
|
+
var s$j = {"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"};
|
|
5008
5035
|
|
|
5009
5036
|
var RegularDialog = function (_a) {
|
|
5010
5037
|
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;
|
|
5011
5038
|
var close = React.useMemo(function () {
|
|
5012
|
-
return React.createElement(RegularIcon, { name: "cross", className: s$
|
|
5039
|
+
return React.createElement(RegularIcon, { name: "cross", className: s$j.close, onClick: onClose });
|
|
5013
5040
|
}, [onClose]);
|
|
5014
5041
|
var titleContent = React.useMemo(function () {
|
|
5015
5042
|
if (typeof title === "string") {
|
|
5016
|
-
return (React.createElement("div", { className: s$
|
|
5017
|
-
React.createElement("div", { className: s$
|
|
5043
|
+
return (React.createElement("div", { className: s$j.header },
|
|
5044
|
+
React.createElement("div", { className: s$j.title },
|
|
5018
5045
|
titleIcon && React.createElement(RegularIcon, { name: titleIcon }),
|
|
5019
5046
|
React.createElement("span", null,
|
|
5020
5047
|
" ",
|
|
@@ -5025,7 +5052,7 @@ var RegularDialog = function (_a) {
|
|
|
5025
5052
|
return title(close);
|
|
5026
5053
|
}
|
|
5027
5054
|
return null;
|
|
5028
|
-
}, [s$
|
|
5055
|
+
}, [s$j, title, titlePrefix, close, titleIcon]);
|
|
5029
5056
|
var style = React.useMemo(function () {
|
|
5030
5057
|
var result = {};
|
|
5031
5058
|
if (width) {
|
|
@@ -5034,15 +5061,15 @@ var RegularDialog = function (_a) {
|
|
|
5034
5061
|
}
|
|
5035
5062
|
return result;
|
|
5036
5063
|
}, [width]);
|
|
5037
|
-
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$
|
|
5064
|
+
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$j.root, className), maskClosable: false, footer: null },
|
|
5038
5065
|
titleContent,
|
|
5039
|
-
React.createElement("div", { className: classNames(s$
|
|
5040
|
-
hideFooter ? null : (React.createElement("div", { className: classNames(s$
|
|
5066
|
+
React.createElement("div", { className: classNames(s$j.content, contentClassName) }, children),
|
|
5067
|
+
hideFooter ? null : (React.createElement("div", { className: classNames(s$j.footer, footerClassName) },
|
|
5041
5068
|
React.createElement(antd.Button, { onClick: onClose }, cancelText || "Cancel"),
|
|
5042
5069
|
okHide ? null : (React.createElement(antd.Button, { type: "primary", onClick: onOk, disabled: okDisabled }, okText || "OK"))))));
|
|
5043
5070
|
};
|
|
5044
5071
|
|
|
5045
|
-
var s$
|
|
5072
|
+
var s$i = {"root":"index-module_root__qFuRH"};
|
|
5046
5073
|
|
|
5047
5074
|
function isRegular(icon) {
|
|
5048
5075
|
return RegularIconNameList.includes(icon);
|
|
@@ -5052,13 +5079,13 @@ function isSocial(icon) {
|
|
|
5052
5079
|
}
|
|
5053
5080
|
var FlatButton = function (_a) {
|
|
5054
5081
|
var children = _a.children, className = _a.className, icon = _a.icon, onClick = _a.onClick;
|
|
5055
|
-
return (React.createElement("div", { className: classNames(s$
|
|
5082
|
+
return (React.createElement("div", { className: classNames(s$i.root, className), onClick: onClick },
|
|
5056
5083
|
isRegular(icon) ? React.createElement(RegularIcon, { name: icon }) : null,
|
|
5057
5084
|
isSocial(icon) ? React.createElement(SocialIcon, { name: icon }) : null,
|
|
5058
5085
|
children ? React.createElement("span", null, children) : null));
|
|
5059
5086
|
};
|
|
5060
5087
|
|
|
5061
|
-
var s$
|
|
5088
|
+
var s$h = {"root":"index-module_root__r-dVh","noneDecoration":"index-module_noneDecoration__N4OkH"};
|
|
5062
5089
|
|
|
5063
5090
|
function AppLink(_a) {
|
|
5064
5091
|
var _b;
|
|
@@ -5069,28 +5096,28 @@ function AppLink(_a) {
|
|
|
5069
5096
|
href = route.build(params || {});
|
|
5070
5097
|
}
|
|
5071
5098
|
}
|
|
5072
|
-
return (React.createElement(Link, __assign({ href: href, as: as, shallow: shallow, title: title, className: classNames(s$
|
|
5073
|
-
_b[s$
|
|
5074
|
-
_b[s$
|
|
5099
|
+
return (React.createElement(Link, __assign({ href: href, as: as, shallow: shallow, title: title, className: classNames(s$h.root, className, (_b = {},
|
|
5100
|
+
_b[s$h.noneDecoration] = noneDecoration,
|
|
5101
|
+
_b[s$h.show__underline] = showUnderline,
|
|
5075
5102
|
_b)), ref: aRef }, rest), children));
|
|
5076
5103
|
}
|
|
5077
5104
|
|
|
5078
|
-
var s$
|
|
5105
|
+
var s$g = {"root":"index-module_root__gpEkZ"};
|
|
5079
5106
|
|
|
5080
5107
|
var AppLinkButton = function (_a) {
|
|
5081
5108
|
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
|
|
5082
|
-
return (React.createElement("div", __assign({ className: classNames(s$
|
|
5109
|
+
return (React.createElement("div", __assign({ className: classNames(s$g.root, className) }, rest), children));
|
|
5083
5110
|
};
|
|
5084
5111
|
|
|
5085
|
-
var s$
|
|
5112
|
+
var s$f = {"root":"index-module_root__CQ7Qm","title":"index-module_title__Aud2u","title__active":"index-module_title__active__AueKr","title__label":"index-module_title__label__B3vUU","list":"index-module_list__EAf08","list__open":"index-module_list__open__1-0cD"};
|
|
5086
5113
|
|
|
5087
|
-
var s$
|
|
5114
|
+
var s$e = {"root":"index-module_root__AZ9HE","root__active":"index-module_root__active__UqszT"};
|
|
5088
5115
|
|
|
5089
5116
|
var BackSidebarSubMenuItem = function (_a) {
|
|
5090
5117
|
var _b;
|
|
5091
5118
|
var isActive = _a.isActive, option = _a.option;
|
|
5092
5119
|
var icon = option.icon, label = option.label, path = option.path;
|
|
5093
|
-
return (React.createElement(AppLink, { className: classNames(s$
|
|
5120
|
+
return (React.createElement(AppLink, { className: classNames(s$e.root, (_b = {}, _b[s$e.root__active] = isActive, _b)), href: path },
|
|
5094
5121
|
icon && React.createElement(RegularIcon, { name: icon }),
|
|
5095
5122
|
React.createElement("span", null, label)));
|
|
5096
5123
|
};
|
|
@@ -5118,12 +5145,12 @@ var BackSidebarMenuItem = function (_a) {
|
|
|
5118
5145
|
var handleClick = React.useCallback(function () {
|
|
5119
5146
|
setOpen(!open);
|
|
5120
5147
|
}, [open]);
|
|
5121
|
-
return (React.createElement("div", { className: s$
|
|
5122
|
-
React.createElement("div", { className: classNames(s$
|
|
5148
|
+
return (React.createElement("div", { className: s$f.root },
|
|
5149
|
+
React.createElement("div", { className: classNames(s$f.title, (_b = {}, _b[s$f.title__active] = isActive, _b)), onClick: handleClick },
|
|
5123
5150
|
icon && React.createElement(RegularIcon, { name: icon }),
|
|
5124
|
-
React.createElement("span", { className: s$
|
|
5151
|
+
React.createElement("span", { className: s$f.title__label }, label),
|
|
5125
5152
|
React.createElement(RegularIcon, { name: open ? "keyboard-arrow-down" : "keyboard-arrow-right" })),
|
|
5126
|
-
React.createElement("div", { className: classNames(s$
|
|
5153
|
+
React.createElement("div", { className: classNames(s$f.list, (_c = {}, _c[s$f.list__open] = open, _c)) }, keys.map(function (x) {
|
|
5127
5154
|
var option = mapper[x];
|
|
5128
5155
|
if (typeof option === "object") {
|
|
5129
5156
|
return React.createElement(BackSidebarSubMenuItem, { key: x, option: option, isActive: x === activePathKey });
|
|
@@ -5131,7 +5158,7 @@ var BackSidebarMenuItem = function (_a) {
|
|
|
5131
5158
|
}))));
|
|
5132
5159
|
};
|
|
5133
5160
|
|
|
5134
|
-
var s$
|
|
5161
|
+
var s$d = {"root":"index-module_root__yMCtx","list":"index-module_list__Xr6Z5","master":"index-module_master__Eexhz","master__active":"index-module_master__active__j-iWA"};
|
|
5135
5162
|
|
|
5136
5163
|
var BackSidebarShortMenuItem = function (_a) {
|
|
5137
5164
|
var _b;
|
|
@@ -5147,9 +5174,9 @@ var BackSidebarShortMenuItem = function (_a) {
|
|
|
5147
5174
|
var handleClick = React.useCallback(function () {
|
|
5148
5175
|
setOpen(!open);
|
|
5149
5176
|
}, [open]);
|
|
5150
|
-
return (React.createElement("div", { className: s$
|
|
5151
|
-
React.createElement("div", { className: classNames(s$
|
|
5152
|
-
React.createElement("div", { className: classNames(s$
|
|
5177
|
+
return (React.createElement("div", { className: s$d.root },
|
|
5178
|
+
React.createElement("div", { className: classNames(s$d.master, (_b = {}, _b[s$d.master__active] = isActive, _b)), onClick: handleClick }, icon && React.createElement(RegularIcon, { name: icon })),
|
|
5179
|
+
React.createElement("div", { className: classNames(s$d.list) }, keys.map(function (x) {
|
|
5153
5180
|
var option = mapper[x];
|
|
5154
5181
|
if (typeof option === "object") {
|
|
5155
5182
|
return React.createElement(BackSidebarSubMenuItem, { key: x, option: option, isActive: x === activePathKey });
|
|
@@ -5157,26 +5184,26 @@ var BackSidebarShortMenuItem = function (_a) {
|
|
|
5157
5184
|
}))));
|
|
5158
5185
|
};
|
|
5159
5186
|
|
|
5160
|
-
var s$
|
|
5187
|
+
var s$c = {"root":"index-module_root__r4Egx"};
|
|
5161
5188
|
|
|
5162
5189
|
// https://www.einfosoft.com/templates/admin/spice/source/edit_booking.html#
|
|
5163
5190
|
var BackSidebar = function (_a) {
|
|
5164
5191
|
var className = _a.className, options = _a.options, mapper = _a.mapper, top = _a.top, shortMode = _a.shortMode, activePathKey = _a.activePathKey, defaultPathKey = _a.defaultPathKey;
|
|
5165
|
-
return (React.createElement("div", { className: classNames(s$
|
|
5166
|
-
top ? React.createElement("div", { className: classNames(s$
|
|
5167
|
-
React.createElement("div", { className: s$
|
|
5192
|
+
return (React.createElement("div", { className: classNames(s$c.root, className) },
|
|
5193
|
+
top ? React.createElement("div", { className: classNames(s$c.top) }, top) : null,
|
|
5194
|
+
React.createElement("div", { className: s$c.menu }, options.map(function (option, i) {
|
|
5168
5195
|
return shortMode ? (React.createElement(BackSidebarShortMenuItem, { key: i, mapper: mapper, option: option, activePathKey: activePathKey || defaultPathKey })) : (React.createElement(BackSidebarMenuItem, { key: i, mapper: mapper, option: option, activePathKey: activePathKey || defaultPathKey }));
|
|
5169
5196
|
}))));
|
|
5170
5197
|
};
|
|
5171
5198
|
|
|
5172
|
-
var s$
|
|
5199
|
+
var s$b = {"root":"index-module_root__SICCv","root__short":"index-module_root__short__XnXWP","header":"index-module_header__00DV1","sidebar":"index-module_sidebar__o2Obb","content":"index-module_content__D0okO","menu":"index-module_menu__48Uz3","menu__icon":"index-module_menu__icon__BFpAs","loading":"index-module_loading__SpWat"};
|
|
5173
5200
|
|
|
5174
|
-
var s$
|
|
5201
|
+
var s$a = {"root":"index-module_root__Q-TED","loader":"index-module_loader__qxQNC"};
|
|
5175
5202
|
|
|
5176
5203
|
var LoadingPanel = function (_a) {
|
|
5177
5204
|
var className = _a.className;
|
|
5178
|
-
return (React.createElement("div", { className: classNames(s$
|
|
5179
|
-
React.createElement(antd.Spin, { size: "large", className: s$
|
|
5205
|
+
return (React.createElement("div", { className: classNames(s$a.root, className) },
|
|
5206
|
+
React.createElement(antd.Spin, { size: "large", className: s$a.loader })));
|
|
5180
5207
|
};
|
|
5181
5208
|
|
|
5182
5209
|
var BackLayout = function (_a) {
|
|
@@ -5186,45 +5213,19 @@ var BackLayout = function (_a) {
|
|
|
5186
5213
|
var handleMenu = React.useCallback(function () {
|
|
5187
5214
|
setShort(!short);
|
|
5188
5215
|
}, [short]);
|
|
5189
|
-
return loading ? (React.createElement(LoadingPanel, { className: s$
|
|
5190
|
-
React.createElement("div", { className: classNames(s$
|
|
5191
|
-
React.createElement("div", { className: classNames(s$
|
|
5192
|
-
React.createElement("div", { className: s$
|
|
5193
|
-
React.createElement(RegularIcon, { className: s$
|
|
5194
|
-
!short && React.createElement("div", { className: s$
|
|
5216
|
+
return loading ? (React.createElement(LoadingPanel, { className: s$b.loading })) : (React.createElement("div", { className: classNames(s$b.root, className, (_b = {}, _b[s$b.root__short] = short, _b)) },
|
|
5217
|
+
React.createElement("div", { className: classNames(s$b.header, headerClassName) }, header),
|
|
5218
|
+
React.createElement("div", { className: classNames(s$b.sidebar, sidebarClassName) },
|
|
5219
|
+
React.createElement("div", { className: s$b.menu },
|
|
5220
|
+
React.createElement(RegularIcon, { className: s$b.menu__icon, name: "menu", onClick: handleMenu }),
|
|
5221
|
+
!short && React.createElement("div", { className: s$b.menu__title }, sidebarTitle)),
|
|
5195
5222
|
React.createElement(BackSidebar, __assign({}, sidebarProps, { shortMode: short }))),
|
|
5196
|
-
contentLoading ? React.createElement(LoadingPanel, { className: s$
|
|
5223
|
+
contentLoading ? React.createElement(LoadingPanel, { className: s$b.content }) : React.createElement("div", { className: classNames(s$b.content, contentClassName) }, children)));
|
|
5197
5224
|
};
|
|
5198
5225
|
|
|
5199
|
-
var s$
|
|
5200
|
-
|
|
5201
|
-
var s$9 = {"popover":"index-module_popover__lwzdT","item":"index-module_item__pfayG"};
|
|
5226
|
+
var s$9 = {"root":"index-module_root__Q7VjD","root__shadow":"index-module_root__shadow__OhPad","logo":"index-module_logo__KCA1E","content":"index-module_content__T-JEW","link":"index-module_link__nXsvL","select":"index-module_select__22zW6"};
|
|
5202
5227
|
|
|
5203
|
-
var s$8 = {"
|
|
5204
|
-
|
|
5205
|
-
var AppTooltip = function (_a) {
|
|
5206
|
-
var _b = _a.placement, placement = _b === void 0 ? "top" : _b, children = _a.children, props = __rest(_a, ["placement", "children"]);
|
|
5207
|
-
return (React.createElement(antd.Tooltip, __assign({ placement: placement }, props),
|
|
5208
|
-
React.createElement(React.Fragment, null, children)));
|
|
5209
|
-
};
|
|
5210
|
-
|
|
5211
|
-
var IconBoxContent = function (_a) {
|
|
5212
|
-
var _b;
|
|
5213
|
-
var flexRoot = _a.flexRoot, icon = _a.icon, rightIcon = _a.rightIcon, children = _a.children, className = _a.className, contentClassName = _a.contentClassName, onClick = _a.onClick, _c = _a.direction, direction = _c === void 0 ? "row" : _c, elementRev = _a.elementRev, style = _a.style;
|
|
5214
|
-
return (React.createElement("div", { ref: elementRev, style: style, className: classNames(s$8.root, (_b = {},
|
|
5215
|
-
_b[s$8.flex] = flexRoot,
|
|
5216
|
-
_b[s$8.button] = !!onClick,
|
|
5217
|
-
_b[s$8.column] = direction === "column",
|
|
5218
|
-
_b), className), onClick: onClick },
|
|
5219
|
-
icon ? React.createElement(RegularIcon, { className: s$8.icon, name: icon }) : null,
|
|
5220
|
-
children ? React.createElement("div", { className: classNames(contentClassName, s$8.root__children) }, children) : null,
|
|
5221
|
-
rightIcon ? React.createElement(RegularIcon, { className: s$8.icon, name: rightIcon }) : null));
|
|
5222
|
-
};
|
|
5223
|
-
var IconDivision = function (props) {
|
|
5224
|
-
var tooltip = props.tooltip, tooltipPlacement = props.tooltipPlacement, tooltipMouseEnterDelay = props.tooltipMouseEnterDelay;
|
|
5225
|
-
return tooltip ? (React.createElement(AppTooltip, { placement: tooltipPlacement, title: tooltip, mouseEnterDelay: tooltipMouseEnterDelay },
|
|
5226
|
-
React.createElement(IconBoxContent, __assign({}, props)))) : (React.createElement(IconBoxContent, __assign({}, props)));
|
|
5227
|
-
};
|
|
5228
|
+
var s$8 = {"popover":"index-module_popover__lwzdT","item":"index-module_item__pfayG"};
|
|
5228
5229
|
|
|
5229
5230
|
var PopoverSelect = function (_a) {
|
|
5230
5231
|
var options = _a.options, value = _a.value, onChange = _a.onChange, icon = _a.icon, renderOption = _a.renderOption, showValue = _a.showValue;
|
|
@@ -5242,9 +5243,9 @@ var PopoverSelect = function (_a) {
|
|
|
5242
5243
|
var selectedOption = React.useMemo(function () {
|
|
5243
5244
|
return options.find(function (x) { return x.value === value; });
|
|
5244
5245
|
}, [options, value]);
|
|
5245
|
-
var popoverContent = React.useMemo(function () { return (React.createElement("div", { className: s$
|
|
5246
|
+
var popoverContent = React.useMemo(function () { return (React.createElement("div", { className: s$8.popover }, options
|
|
5246
5247
|
.filter(function (x) { return x.value !== value; })
|
|
5247
|
-
.map(function (x) { return (React.createElement(React.Fragment, { key: x.value }, renderOption ? (renderOption(x, { className: s$
|
|
5248
|
+
.map(function (x) { return (React.createElement(React.Fragment, { key: x.value }, renderOption ? (renderOption(x, { className: s$8.item, onClick: function () { return handleChange(x.value); } })) : (React.createElement("div", { className: s$8.item, onClick: function () { return handleChange(x.value); } }, x.label)))); }))); }, [options, value, handleChange, renderOption]);
|
|
5248
5249
|
return (React.createElement(antd.Popover, { content: popoverContent, open: open, onOpenChange: closePopover, placement: "bottomRight" },
|
|
5249
5250
|
React.createElement(IconDivision, { icon: icon, onClick: handleOpen, rightIcon: open ? "expand-less" : "expand-more" }, showValue ? value : selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label)));
|
|
5250
5251
|
};
|
|
@@ -5310,16 +5311,16 @@ var FrontHeader = function (_a) {
|
|
|
5310
5311
|
var className = _b.className;
|
|
5311
5312
|
return value === "logout" ? (React.createElement("div", { className: className, onClick: user === null || user === void 0 ? void 0 : user.onLogOut }, label)) : (React.createElement(AppLink, { href: value, className: className }, label));
|
|
5312
5313
|
}, [user]);
|
|
5313
|
-
return (React.createElement("div", { className: classNames(s$
|
|
5314
|
-
_b[s$
|
|
5314
|
+
return (React.createElement("div", { className: classNames(s$9.root, (_b = {},
|
|
5315
|
+
_b[s$9.root__shadow] = shadow,
|
|
5315
5316
|
_b), className) },
|
|
5316
5317
|
onMenuClick && React.createElement(Button, { icon: "menu", onClick: onMenuClick }),
|
|
5317
|
-
React.createElement(AppLink, { className: s$
|
|
5318
|
-
React.createElement("div", { className: s$
|
|
5319
|
-
!user && (React.createElement("div", { className: s$
|
|
5318
|
+
React.createElement(AppLink, { className: s$9.logo, href: logoHref }, logoContent || "AlfaSchool"),
|
|
5319
|
+
React.createElement("div", { className: s$9.content }, children),
|
|
5320
|
+
!user && (React.createElement("div", { className: s$9.link },
|
|
5320
5321
|
React.createElement(AppLink, { href: loginHref }, text.login || "Login"),
|
|
5321
5322
|
React.createElement(AppLink, { href: registerHref }, text.register || "Register"))),
|
|
5322
|
-
React.createElement("div", { className: s$
|
|
5323
|
+
React.createElement("div", { className: s$9.select },
|
|
5323
5324
|
user && React.createElement(PopoverSelect, { showValue: true, value: user.username, options: settingsOptions, renderOption: handleSettingRender }),
|
|
5324
5325
|
React.createElement(PopoverSelect, __assign({ icon: "language" }, language)))));
|
|
5325
5326
|
};
|
package/build/styles.css
CHANGED
|
@@ -57,6 +57,35 @@ body {
|
|
|
57
57
|
border-bottom: 1px solid var(--headerBorderColor);
|
|
58
58
|
font-size: 1.5em;
|
|
59
59
|
}
|
|
60
|
+
.index-module_root__UzFV2 {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
flex-direction: row;
|
|
64
|
+
outline: none;
|
|
65
|
+
gap: 0.3em;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.index-module_column__XEWzG {
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
gap: 0;
|
|
71
|
+
gap: 0.3em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.index-module_children__y7-7m {
|
|
75
|
+
flex: 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.index-module_flex__83M30 {
|
|
79
|
+
flex: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.index-module_button__U8D6K {
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
.index-module_root__-LDR1 {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
height: 1em;
|
|
88
|
+
}
|
|
60
89
|
.index-module_root__Fq-q1 {
|
|
61
90
|
margin: 1.2em 0;
|
|
62
91
|
}
|
|
@@ -89,10 +118,6 @@ body {
|
|
|
89
118
|
.index-module_root__yiKO0.index-module_last__fYezY > *:last-child {
|
|
90
119
|
flex: 1;
|
|
91
120
|
}
|
|
92
|
-
.index-module_root__-LDR1 {
|
|
93
|
-
display: inline-block;
|
|
94
|
-
height: 1em;
|
|
95
|
-
}
|
|
96
121
|
.index-module_root__gtTIa {
|
|
97
122
|
display: block;
|
|
98
123
|
}
|
|
@@ -452,31 +477,6 @@ body {
|
|
|
452
477
|
.index-module_item__pfayG:hover {
|
|
453
478
|
background-color: var(--hoverBackgroundColor);
|
|
454
479
|
}
|
|
455
|
-
.index-module_root__UzFV2 {
|
|
456
|
-
display: flex;
|
|
457
|
-
align-items: center;
|
|
458
|
-
flex-direction: row;
|
|
459
|
-
outline: none;
|
|
460
|
-
gap: 0.3em;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.index-module_column__XEWzG {
|
|
464
|
-
flex-direction: column;
|
|
465
|
-
gap: 0;
|
|
466
|
-
gap: 0.3em;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
.index-module_children__y7-7m {
|
|
470
|
-
flex: 1;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
.index-module_flex__83M30 {
|
|
474
|
-
flex: 1;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.index-module_button__U8D6K {
|
|
478
|
-
cursor: pointer;
|
|
479
|
-
}
|
|
480
480
|
.index-module_root__EQ0II {
|
|
481
481
|
--rcButtonSize: 32px;
|
|
482
482
|
}
|