revdev-components 0.58.0 → 0.60.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/{content/header1 → contentHeader1}/index.d.ts +1 -1
- package/build/{content/header2 → contentHeader2}/index.d.ts +1 -1
- package/build/icon/regular/names.d.ts +1 -1
- package/build/index.d.ts +6 -1
- package/build/index.js +120 -120
- package/build/styles.css +36 -38
- package/package.json +1 -1
- package/build/content/index.d.ts +0 -6
- /package/build/{content/centralDivision → centralDivision}/index.d.ts +0 -0
- /package/build/{content/pageTitle → pageTitle}/index.d.ts +0 -0
- /package/build/{content/paragraph → paragraph}/index.d.ts +0 -0
- /package/build/{content/rowDivision → rowDivision}/index.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const RegularIconNameList: ("add" | "add-box" | "add-circle" | "add-circle-outline" | "arrow-back" | "arrow-back-ios" | "arrow-drop-down" | "arrow-drop-up" | "arrow-forward" | "arrow-forward-ios" | "arrow-left" | "arrow-right" | "autorenew" | "backspace" | "book" | "bookmark" | "bookmark-outline" | "brightness" | "brightness-outline" | "calendar" | "cards" | "check-circle" | "check-circle-outline" | "circle-notifications" | "collections-bookmark" | "contact-support" | "cross" | "cube-letter" | "cube-outline" | "date-range" | "delete" | "delete-forever" | "delete-outline" | "edit" | "enter" | "equalizer" | "expand-less" | "expand-more" | "external-link" | "favorite" | "favorite-outline" | "file-upload" | "flag" | "flag-outline" | "flip" | "folder" | "globe" | "group" | "group-add" | "help" | "help-live" | "help-outline" | "highlight-remove" | "key" | "keyboard" | "keyboard-arrow-down" | "keyboard-arrow-left" | "keyboard-arrow-right" | "keyboard-arrow-up" | "keyboard-voice" | "known" | "known-outline" | "language" | "letter-match" | "library-books" | "lightbulb" | "lightbulb-outline" | "list" | "lock" | "lock-open-outline" | "lock-outline" | "logout" | "loop" | "mail" | "mail-outline" | "match-up" | "menu" | "menu-book" | "more-horizontal" | "more-vertical" | "multiple-choice" | "person" | "person-add" | "person-outline" | "pie-chart" | "pie-chart-outlined" | "play-arrow" | "play-circle-filled" | "play-circle-outline" | "playlist-add" | "playlist-add-check" | "power-off" | "price-tag" | "rate-down" | "rate-down-outline" | "rate-up" | "rate-up-outline" | "refresh" | "remove" | "remove-circle" | "remove-circle-outline" | "replay-circle-filled" | "
|
|
1
|
+
export declare const RegularIconNameList: ("search" | "add" | "add-box" | "add-circle" | "add-circle-outline" | "arrow-back" | "arrow-back-ios" | "arrow-drop-down" | "arrow-drop-up" | "arrow-forward" | "arrow-forward-ios" | "arrow-left" | "arrow-right" | "autorenew" | "backspace" | "book" | "bookmark" | "bookmark-outline" | "brightness" | "brightness-outline" | "calendar" | "cards" | "check-circle" | "check-circle-outline" | "circle-notifications" | "collections-bookmark" | "contact-support" | "cross" | "cube-letter" | "cube-outline" | "date-range" | "delete" | "delete-forever" | "delete-outline" | "edit" | "enter" | "equalizer" | "expand-less" | "expand-more" | "external-link" | "favorite" | "favorite-outline" | "file-upload" | "flag" | "flag-outline" | "flip" | "folder" | "globe" | "group" | "group-add" | "help" | "help-live" | "help-outline" | "highlight-remove" | "key" | "keyboard" | "keyboard-arrow-down" | "keyboard-arrow-left" | "keyboard-arrow-right" | "keyboard-arrow-up" | "keyboard-voice" | "known" | "known-outline" | "language" | "letter-match" | "library-books" | "lightbulb" | "lightbulb-outline" | "list" | "lock" | "lock-open-outline" | "lock-outline" | "logout" | "loop" | "mail" | "mail-outline" | "match-up" | "menu" | "menu-book" | "more-horizontal" | "more-vertical" | "multiple-choice" | "person" | "person-add" | "person-outline" | "pie-chart" | "pie-chart-outlined" | "play-arrow" | "play-circle-filled" | "play-circle-outline" | "playlist-add" | "playlist-add-check" | "power-off" | "price-tag" | "rate-down" | "rate-down-outline" | "rate-up" | "rate-up-outline" | "refresh" | "remove" | "remove-circle" | "remove-circle-outline" | "replay-circle-filled" | "sentiment-dissatisfied" | "sentiment-satisfied" | "settings" | "share" | "snowflake" | "sort" | "space" | "spelling" | "star-half" | "star-outline" | "star" | "sun" | "table" | "thumb-down" | "thumb-down-outline" | "thumb-up" | "thumb-up-outline" | "time" | "translate" | "visibility" | "volume-off" | "volume-up" | "word" | "image" | "magic-wand" | "microphone-off" | "microphone" | "moon" | "music" | "learn" | "audio" | "tag" | "unknown" | "unknown-outline" | "discover")[];
|
|
2
2
|
export type RegularIconName = (typeof RegularIconNameList)[number];
|
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "./style/index.scss";
|
|
2
|
+
export * from "./contentHeader1";
|
|
3
|
+
export * from "./contentHeader2";
|
|
4
|
+
export * from "./paragraph";
|
|
5
|
+
export * from "./pageTitle";
|
|
6
|
+
export * from "./centralDivision";
|
|
7
|
+
export * from "./rowDivision";
|
|
2
8
|
export * from "./icon";
|
|
3
9
|
export * from "./interfaces";
|
|
4
10
|
export * from "./form";
|
|
@@ -10,7 +16,6 @@ export * from "./flatButton";
|
|
|
10
16
|
export * from "./link";
|
|
11
17
|
export * from "./backSidebar";
|
|
12
18
|
export * from "./backLayout";
|
|
13
|
-
export * from "./content";
|
|
14
19
|
export * from "./frontHeader";
|
|
15
20
|
export * from "./frontFooter";
|
|
16
21
|
export * from "./frontLayout";
|
package/build/index.js
CHANGED
|
@@ -7,24 +7,66 @@ var router = require('next/router');
|
|
|
7
7
|
var Link = require('next/link');
|
|
8
8
|
|
|
9
9
|
function _interopNamespaceDefault(e) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
}
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
20
18
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
27
27
|
|
|
28
|
+
var s$t = {"root":"index-module_root__oU85z"};
|
|
29
|
+
|
|
30
|
+
var ContentHeader1 = function (_a) {
|
|
31
|
+
var children = _a.children, className = _a.className;
|
|
32
|
+
return React.createElement("h1", { className: classNames(s$t.root, className) }, children);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var s$s = {"root":"index-module_root__51YHj"};
|
|
36
|
+
|
|
37
|
+
var ContentHeader2 = function (_a) {
|
|
38
|
+
var children = _a.children, className = _a.className;
|
|
39
|
+
return React.createElement("h1", { className: classNames(s$s.root, className) }, children);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var s$r = {"root":"index-module_root__Fq-q1"};
|
|
43
|
+
|
|
44
|
+
var Paragraph = function (_a) {
|
|
45
|
+
var children = _a.children;
|
|
46
|
+
return React.createElement("p", { className: s$r.root }, children);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var s$q = {"root":"index-module_root__VIFF-"};
|
|
50
|
+
|
|
51
|
+
var PageTitle = function (_a) {
|
|
52
|
+
var children = _a.children, className = _a.className;
|
|
53
|
+
return React.createElement("h1", { className: classNames(s$q.root, className) }, children);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var s$p = {"root":"index-module_root__p0I0n"};
|
|
57
|
+
|
|
58
|
+
var CentralDivision = function (_a) {
|
|
59
|
+
var children = _a.children, className = _a.className;
|
|
60
|
+
return React.createElement("div", { className: classNames(s$p.root, className) }, children);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
var s$o = {"root":"index-module_root__yiKO0"};
|
|
64
|
+
|
|
65
|
+
var RowDivision = function (_a) {
|
|
66
|
+
var children = _a.children, className = _a.className;
|
|
67
|
+
return React.createElement("div", { className: classNames(s$o.root, className) }, children);
|
|
68
|
+
};
|
|
69
|
+
|
|
28
70
|
var _path$2l;
|
|
29
71
|
function _extends$2n() { return _extends$2n = 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$2n.apply(null, arguments); }
|
|
30
72
|
var SvgAdd = function SvgAdd(props) {
|
|
@@ -1521,13 +1563,13 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
1521
1563
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1522
1564
|
};
|
|
1523
1565
|
|
|
1524
|
-
var s$
|
|
1566
|
+
var s$n = {"root":"index-module_root__-LDR1"};
|
|
1525
1567
|
|
|
1526
1568
|
// https://www.svgrepo.com/
|
|
1527
1569
|
function useBasicIcon(_a, icons) {
|
|
1528
1570
|
var className = _a.className, name = _a.name, props = __rest(_a, ["className", "name"]);
|
|
1529
1571
|
var svgAttrs = React.useMemo(function () {
|
|
1530
|
-
return __assign({ className: classNames(s$
|
|
1572
|
+
return __assign({ className: classNames(s$n.root, className), fill: "currentColor" }, props);
|
|
1531
1573
|
}, [className, props]);
|
|
1532
1574
|
var Icon = icons[name];
|
|
1533
1575
|
return Icon ? React.createElement(Icon, __assign({}, svgAttrs)) : undefined;
|
|
@@ -4614,7 +4656,7 @@ var SocialIcon = function (props) {
|
|
|
4614
4656
|
return useBasicIcon(props, icons);
|
|
4615
4657
|
};
|
|
4616
4658
|
|
|
4617
|
-
var s$
|
|
4659
|
+
var s$m = {"root":"index-module_root__gtTIa","action":"index-module_action__pOSde"};
|
|
4618
4660
|
|
|
4619
4661
|
function useForm(form) {
|
|
4620
4662
|
var newForm = antd.Form.useForm()[0];
|
|
@@ -4634,10 +4676,10 @@ function AppForm(_a) {
|
|
|
4634
4676
|
React.useEffect(function () {
|
|
4635
4677
|
onValid === null || onValid === void 0 ? void 0 : onValid(valid);
|
|
4636
4678
|
}, [onValid, valid]);
|
|
4637
|
-
return (React.createElement(antd.Form, { form: form, onFinish: onFinish, className: classNames(s$
|
|
4679
|
+
return (React.createElement(antd.Form, { form: form, onFinish: onFinish, className: classNames(s$m.root, className), layout: "vertical", onValuesChange: onValuesChange, onFieldsChange: onFieldsChange, initialValues: initialValues }, typeof children === "function" ? children({ valid: valid }) : children));
|
|
4638
4680
|
}
|
|
4639
4681
|
|
|
4640
|
-
var s$
|
|
4682
|
+
var s$l = {"root":"index-module_root__2S1Jp"};
|
|
4641
4683
|
|
|
4642
4684
|
function useLineProps(_a) {
|
|
4643
4685
|
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"]);
|
|
@@ -4651,7 +4693,7 @@ var FormLine = function (_a) {
|
|
|
4651
4693
|
}
|
|
4652
4694
|
return [];
|
|
4653
4695
|
}, [validateRules]);
|
|
4654
|
-
return React.createElement(antd.Form.Item, __assign({ className: classNames(s$
|
|
4696
|
+
return React.createElement(antd.Form.Item, __assign({ className: classNames(s$l.root, className), rules: rules }, props));
|
|
4655
4697
|
};
|
|
4656
4698
|
|
|
4657
4699
|
var DatePickerField = function (props) {
|
|
@@ -4672,12 +4714,12 @@ var InputField = function (props) {
|
|
|
4672
4714
|
React.createElement(antd.Input, __assign({}, controlProps))));
|
|
4673
4715
|
};
|
|
4674
4716
|
|
|
4675
|
-
var s$
|
|
4717
|
+
var s$k = {"input":"index-module_input__71iJw"};
|
|
4676
4718
|
|
|
4677
4719
|
var InputNumberField = function (props) {
|
|
4678
4720
|
var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], className = _b.className, controlProps = __rest(_b, ["className"]);
|
|
4679
4721
|
return (React.createElement(FormLine, __assign({}, lineProps),
|
|
4680
|
-
React.createElement(antd.InputNumber, __assign({ className: classNames(s$
|
|
4722
|
+
React.createElement(antd.InputNumber, __assign({ className: classNames(s$k.input, className) }, controlProps))));
|
|
4681
4723
|
};
|
|
4682
4724
|
|
|
4683
4725
|
var RadioButtonField = function (props) {
|
|
@@ -4686,13 +4728,13 @@ var RadioButtonField = function (props) {
|
|
|
4686
4728
|
React.createElement(antd.Radio.Group, __assign({ buttonStyle: buttonStyle, optionType: optionType }, controlProps))));
|
|
4687
4729
|
};
|
|
4688
4730
|
|
|
4689
|
-
var s$
|
|
4731
|
+
var s$j = {"popup":"index-module_popup__Im5Y-"};
|
|
4690
4732
|
|
|
4691
4733
|
var RangePicker = antd.DatePicker.RangePicker;
|
|
4692
4734
|
var RangePickerField = function (props) {
|
|
4693
4735
|
var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], oneMonth = _b.oneMonth, controlProps = __rest(_b, ["oneMonth"]);
|
|
4694
4736
|
return (React.createElement(FormLine, __assign({}, lineProps),
|
|
4695
|
-
React.createElement(RangePicker, __assign({}, controlProps, { popupClassName: oneMonth ? s$
|
|
4737
|
+
React.createElement(RangePicker, __assign({}, controlProps, { popupClassName: oneMonth ? s$j.popup : undefined }))));
|
|
4696
4738
|
};
|
|
4697
4739
|
|
|
4698
4740
|
var SelectField = function (props) {
|
|
@@ -4714,14 +4756,14 @@ var CheckboxField = function (props) {
|
|
|
4714
4756
|
React.createElement(antd.Checkbox, __assign({}, controlProps))));
|
|
4715
4757
|
};
|
|
4716
4758
|
|
|
4717
|
-
var s$
|
|
4759
|
+
var s$i = {"root":"index-module_root__3Y1jZ"};
|
|
4718
4760
|
|
|
4719
4761
|
var SwitchField = function (props) {
|
|
4720
4762
|
var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], children = _b.children, controlProps = __rest(_b, ["children"]);
|
|
4721
4763
|
return (React.createElement(FormLine, __assign({}, lineProps, { valuePropName: "checked" }),
|
|
4722
|
-
React.createElement("div", { className: s$
|
|
4764
|
+
React.createElement("div", { className: s$i.root },
|
|
4723
4765
|
React.createElement(antd.Switch, __assign({}, controlProps)),
|
|
4724
|
-
children && React.createElement("div", { className: s$
|
|
4766
|
+
children && React.createElement("div", { className: s$i.content }, children))));
|
|
4725
4767
|
};
|
|
4726
4768
|
|
|
4727
4769
|
// export function useDebounceCallback<T extends (...args: any[]) => any>(delay: number, callback: T, deps: DependencyList = []): DebouncedFunc<T> {
|
|
@@ -4778,22 +4820,22 @@ function useSuccessMutation(response, successCallback) {
|
|
|
4778
4820
|
}, [response.isSuccess]);
|
|
4779
4821
|
}
|
|
4780
4822
|
|
|
4781
|
-
var s$
|
|
4823
|
+
var s$h = {"root":"index-module_root__9GQDU"};
|
|
4782
4824
|
|
|
4783
4825
|
var FormButton = function (_a) {
|
|
4784
4826
|
var className = _a.className, _b = _a.children, children = _b === void 0 ? "Save" : _b, loading = _a.loading;
|
|
4785
|
-
return (React.createElement("div", { className: classNames(s$
|
|
4827
|
+
return (React.createElement("div", { className: classNames(s$h.root, className) },
|
|
4786
4828
|
React.createElement(antd.Button, { htmlType: "submit", type: "primary", loading: loading }, children)));
|
|
4787
4829
|
};
|
|
4788
4830
|
|
|
4789
|
-
var s$
|
|
4831
|
+
var s$g = {"root":"index-module_root__C05Ty"};
|
|
4790
4832
|
|
|
4791
4833
|
var FormError = function (_a) {
|
|
4792
4834
|
var children = _a.children, className = _a.className;
|
|
4793
|
-
return children ? React.createElement("div", { className: classNames(s$
|
|
4835
|
+
return children ? React.createElement("div", { className: classNames(s$g.root, className) }, children) : null;
|
|
4794
4836
|
};
|
|
4795
4837
|
|
|
4796
|
-
var s$
|
|
4838
|
+
var s$f = {"root":"index-module_root__C7wx2","content":"index-module_content__RsiJT","close":"index-module_close__lBc6p"};
|
|
4797
4839
|
|
|
4798
4840
|
var InfoDialog = function (_a) {
|
|
4799
4841
|
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;
|
|
@@ -4805,23 +4847,23 @@ var InfoDialog = function (_a) {
|
|
|
4805
4847
|
}
|
|
4806
4848
|
return result;
|
|
4807
4849
|
}, [width]);
|
|
4808
|
-
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$
|
|
4809
|
-
React.createElement("div", { className: classNames(s$
|
|
4850
|
+
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$f.root, className), maskClosable: maskClosable, footer: null },
|
|
4851
|
+
React.createElement("div", { className: classNames(s$f.content, contentClassName) },
|
|
4810
4852
|
children,
|
|
4811
|
-
hideClose ? null : React.createElement(RegularIcon, { name: "cross", className: s$
|
|
4853
|
+
hideClose ? null : React.createElement(RegularIcon, { name: "cross", className: s$f.close, onClick: onClose }))));
|
|
4812
4854
|
};
|
|
4813
4855
|
|
|
4814
|
-
var s$
|
|
4856
|
+
var s$e = {"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"};
|
|
4815
4857
|
|
|
4816
4858
|
var RegularDialog = function (_a) {
|
|
4817
4859
|
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;
|
|
4818
4860
|
var close = React.useMemo(function () {
|
|
4819
|
-
return React.createElement(RegularIcon, { name: "cross", className: s$
|
|
4861
|
+
return React.createElement(RegularIcon, { name: "cross", className: s$e.close, onClick: onClose });
|
|
4820
4862
|
}, [onClose]);
|
|
4821
4863
|
var titleContent = React.useMemo(function () {
|
|
4822
4864
|
if (typeof title === "string") {
|
|
4823
|
-
return (React.createElement("div", { className: s$
|
|
4824
|
-
React.createElement("div", { className: s$
|
|
4865
|
+
return (React.createElement("div", { className: s$e.header },
|
|
4866
|
+
React.createElement("div", { className: s$e.title },
|
|
4825
4867
|
titleIcon && React.createElement(RegularIcon, { name: titleIcon }),
|
|
4826
4868
|
React.createElement("span", null,
|
|
4827
4869
|
" ",
|
|
@@ -4832,7 +4874,7 @@ var RegularDialog = function (_a) {
|
|
|
4832
4874
|
return title(close);
|
|
4833
4875
|
}
|
|
4834
4876
|
return null;
|
|
4835
|
-
}, [s$
|
|
4877
|
+
}, [s$e, title, titlePrefix, close, titleIcon]);
|
|
4836
4878
|
var style = React.useMemo(function () {
|
|
4837
4879
|
var result = {};
|
|
4838
4880
|
if (width) {
|
|
@@ -4846,15 +4888,15 @@ var RegularDialog = function (_a) {
|
|
|
4846
4888
|
onOk();
|
|
4847
4889
|
}
|
|
4848
4890
|
}, [onOk]);
|
|
4849
|
-
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$
|
|
4891
|
+
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$e.root, className), maskClosable: false, footer: null },
|
|
4850
4892
|
titleContent,
|
|
4851
|
-
React.createElement("div", { className: classNames(s$
|
|
4852
|
-
hideFooter ? null : (React.createElement("div", { className: classNames(s$
|
|
4893
|
+
React.createElement("div", { className: classNames(s$e.content, contentClassName) }, children),
|
|
4894
|
+
hideFooter ? null : (React.createElement("div", { className: classNames(s$e.footer, footerClassName) },
|
|
4853
4895
|
React.createElement(antd.Button, { onClick: onClose }, cancelText || "Cancel"),
|
|
4854
4896
|
okHide ? null : (React.createElement(antd.Button, { type: "primary", onClick: handleOk, disabled: okDisabled }, okText || "OK"))))));
|
|
4855
4897
|
};
|
|
4856
4898
|
|
|
4857
|
-
var s$
|
|
4899
|
+
var s$d = {"root":"index-module_root__qFuRH"};
|
|
4858
4900
|
|
|
4859
4901
|
function isRegular(icon) {
|
|
4860
4902
|
return RegularIconNameList.includes(icon);
|
|
@@ -4864,13 +4906,13 @@ function isSocial(icon) {
|
|
|
4864
4906
|
}
|
|
4865
4907
|
var FlatButton = function (_a) {
|
|
4866
4908
|
var children = _a.children, className = _a.className, icon = _a.icon, onClick = _a.onClick;
|
|
4867
|
-
return (React.createElement("div", { className: classNames(s$
|
|
4909
|
+
return (React.createElement("div", { className: classNames(s$d.root, className), onClick: onClick },
|
|
4868
4910
|
isRegular(icon) ? React.createElement(RegularIcon, { name: icon }) : null,
|
|
4869
4911
|
isSocial(icon) ? React.createElement(SocialIcon, { name: icon }) : null,
|
|
4870
4912
|
children ? React.createElement("span", null, children) : null));
|
|
4871
4913
|
};
|
|
4872
4914
|
|
|
4873
|
-
var s$
|
|
4915
|
+
var s$c = {"root":"index-module_root__r-dVh"};
|
|
4874
4916
|
|
|
4875
4917
|
function AppLink(_a) {
|
|
4876
4918
|
var _b;
|
|
@@ -4881,29 +4923,29 @@ function AppLink(_a) {
|
|
|
4881
4923
|
href = route.build(params || {});
|
|
4882
4924
|
}
|
|
4883
4925
|
}
|
|
4884
|
-
return (React.createElement(Link, __assign({ href: href, as: as, shallow: shallow, title: title, className: classNames(s$
|
|
4885
|
-
_b[s$
|
|
4886
|
-
_b[s$
|
|
4926
|
+
return (React.createElement(Link, __assign({ href: href, as: as, shallow: shallow, title: title, className: classNames(s$c.root, className, (_b = {},
|
|
4927
|
+
_b[s$c.none__decoration] = noneDecoration,
|
|
4928
|
+
_b[s$c.show__underline] = showUnderline,
|
|
4887
4929
|
_b)), ref: aRef }, rest), children));
|
|
4888
4930
|
}
|
|
4889
4931
|
|
|
4890
|
-
var s$
|
|
4932
|
+
var s$b = {"root":"index-module_root__gpEkZ"};
|
|
4891
4933
|
|
|
4892
4934
|
var AppLinkButton = function (_a) {
|
|
4893
4935
|
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
|
|
4894
|
-
return (React.createElement("div", __assign({ className: classNames(s$
|
|
4936
|
+
return (React.createElement("div", __assign({ className: classNames(s$b.root, className) }, rest), children));
|
|
4895
4937
|
};
|
|
4896
4938
|
|
|
4897
|
-
var s$
|
|
4939
|
+
var s$a = {"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"};
|
|
4898
4940
|
|
|
4899
|
-
var s$
|
|
4941
|
+
var s$9 = {"root":"index-module_root__AZ9HE","root__active":"index-module_root__active__UqszT"};
|
|
4900
4942
|
|
|
4901
4943
|
var BackSidebarSubMenuItem = function (_a) {
|
|
4902
4944
|
var _b;
|
|
4903
4945
|
var _c = _a.activePath, activePath = _c === void 0 ? "" : _c, option = _a.option;
|
|
4904
4946
|
var icon = option.icon, label = option.label, path = option.path;
|
|
4905
4947
|
var isActive = path.isActive(activePath);
|
|
4906
|
-
return (React.createElement(AppLink, { className: classNames(s$
|
|
4948
|
+
return (React.createElement(AppLink, { className: classNames(s$9.root, (_b = {}, _b[s$9.root__active] = isActive, _b)), href: path.build() },
|
|
4907
4949
|
icon && React.createElement(RegularIcon, { name: icon }),
|
|
4908
4950
|
React.createElement("span", null, label)));
|
|
4909
4951
|
};
|
|
@@ -4931,17 +4973,17 @@ var BackSidebarMenuItem = function (_a) {
|
|
|
4931
4973
|
var handleClick = React.useCallback(function () {
|
|
4932
4974
|
setOpen(!open);
|
|
4933
4975
|
}, [open]);
|
|
4934
|
-
return (React.createElement("div", { className: s$
|
|
4935
|
-
React.createElement("div", { className: classNames(s$
|
|
4976
|
+
return (React.createElement("div", { className: s$a.root },
|
|
4977
|
+
React.createElement("div", { className: classNames(s$a.title, (_b = {}, _b[s$a.title__active] = isActive, _b)), onClick: handleClick },
|
|
4936
4978
|
icon && React.createElement(RegularIcon, { name: icon }),
|
|
4937
|
-
React.createElement("span", { className: s$
|
|
4979
|
+
React.createElement("span", { className: s$a.title__label }, label),
|
|
4938
4980
|
React.createElement(RegularIcon, { name: open ? "keyboard-arrow-down" : "keyboard-arrow-right" })),
|
|
4939
|
-
React.createElement("div", { className: classNames(s$
|
|
4981
|
+
React.createElement("div", { className: classNames(s$a.list, (_c = {}, _c[s$a.list__open] = open, _c)) }, options.map(function (x, i) {
|
|
4940
4982
|
return React.createElement(BackSidebarSubMenuItem, { key: i, option: x, activePath: activePath });
|
|
4941
4983
|
}))));
|
|
4942
4984
|
};
|
|
4943
4985
|
|
|
4944
|
-
var s$
|
|
4986
|
+
var s$8 = {"root":"index-module_root__yMCtx","list":"index-module_list__Xr6Z5","master":"index-module_master__Eexhz","master__active":"index-module_master__active__j-iWA"};
|
|
4945
4987
|
|
|
4946
4988
|
var BackSidebarShortMenuItem = function (_a) {
|
|
4947
4989
|
var _b;
|
|
@@ -4957,34 +4999,34 @@ var BackSidebarShortMenuItem = function (_a) {
|
|
|
4957
4999
|
var handleClick = React.useCallback(function () {
|
|
4958
5000
|
setOpen(!open);
|
|
4959
5001
|
}, [open]);
|
|
4960
|
-
return (React.createElement("div", { className: s$
|
|
4961
|
-
React.createElement("div", { className: classNames(s$
|
|
4962
|
-
React.createElement("div", { className: classNames(s$
|
|
5002
|
+
return (React.createElement("div", { className: s$8.root },
|
|
5003
|
+
React.createElement("div", { className: classNames(s$8.master, (_b = {}, _b[s$8.master__active] = isActive, _b)), onClick: handleClick }, icon && React.createElement(RegularIcon, { name: icon })),
|
|
5004
|
+
React.createElement("div", { className: classNames(s$8.list) }, options.map(function (x, i) {
|
|
4963
5005
|
return React.createElement(BackSidebarSubMenuItem, { key: i, option: x });
|
|
4964
5006
|
}))));
|
|
4965
5007
|
};
|
|
4966
5008
|
|
|
4967
|
-
var s$
|
|
5009
|
+
var s$7 = {"root":"index-module_root__r4Egx"};
|
|
4968
5010
|
|
|
4969
5011
|
// https://www.einfosoft.com/templates/admin/spice/source/edit_booking.html#
|
|
4970
5012
|
var BackSidebar = function (_a) {
|
|
4971
5013
|
var className = _a.className, options = _a.options, top = _a.top, shortMode = _a.shortMode, activePath = _a.activePath, defaultPath = _a.defaultPath;
|
|
4972
5014
|
var path = (activePath || "").replace("/", "") ? activePath : defaultPath;
|
|
4973
|
-
return (React.createElement("div", { className: classNames(s$
|
|
4974
|
-
top ? React.createElement("div", { className: classNames(s$
|
|
4975
|
-
React.createElement("div", { className: s$
|
|
5015
|
+
return (React.createElement("div", { className: classNames(s$7.root, className) },
|
|
5016
|
+
top ? React.createElement("div", { className: classNames(s$7.top) }, top) : null,
|
|
5017
|
+
React.createElement("div", { className: s$7.menu }, options.map(function (option, i) {
|
|
4976
5018
|
return shortMode ? (React.createElement(BackSidebarShortMenuItem, { key: i, option: option, activePath: path })) : (React.createElement(BackSidebarMenuItem, { key: i, option: option, activePath: path }));
|
|
4977
5019
|
}))));
|
|
4978
5020
|
};
|
|
4979
5021
|
|
|
4980
|
-
var s$
|
|
5022
|
+
var s$6 = {"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"};
|
|
4981
5023
|
|
|
4982
|
-
var s$
|
|
5024
|
+
var s$5 = {"root":"index-module_root__Q-TED","loader":"index-module_loader__qxQNC"};
|
|
4983
5025
|
|
|
4984
5026
|
var LoadingPanel = function (_a) {
|
|
4985
5027
|
var className = _a.className;
|
|
4986
|
-
return (React.createElement("div", { className: classNames(s$
|
|
4987
|
-
React.createElement(antd.Spin, { size: "large", className: s$
|
|
5028
|
+
return (React.createElement("div", { className: classNames(s$5.root, className) },
|
|
5029
|
+
React.createElement(antd.Spin, { size: "large", className: s$5.loader })));
|
|
4988
5030
|
};
|
|
4989
5031
|
|
|
4990
5032
|
var BackLayout = function (_a) {
|
|
@@ -4994,56 +5036,14 @@ var BackLayout = function (_a) {
|
|
|
4994
5036
|
var handleMenu = React.useCallback(function () {
|
|
4995
5037
|
setShort(!short);
|
|
4996
5038
|
}, [short]);
|
|
4997
|
-
return loading ? (React.createElement(LoadingPanel, { className: s$
|
|
4998
|
-
React.createElement("div", { className: classNames(s$
|
|
4999
|
-
React.createElement("div", { className: classNames(s$
|
|
5000
|
-
React.createElement("div", { className: s$
|
|
5001
|
-
React.createElement(RegularIcon, { className: s$
|
|
5002
|
-
!short && React.createElement("div", { className: s$
|
|
5039
|
+
return loading ? (React.createElement(LoadingPanel, { className: s$6.loading })) : (React.createElement("div", { className: classNames(s$6.root, className, (_b = {}, _b[s$6.root__short] = short, _b)) },
|
|
5040
|
+
React.createElement("div", { className: classNames(s$6.header, headerClassName) }, header),
|
|
5041
|
+
React.createElement("div", { className: classNames(s$6.sidebar, sidebarClassName) },
|
|
5042
|
+
React.createElement("div", { className: s$6.menu },
|
|
5043
|
+
React.createElement(RegularIcon, { className: s$6.menu__icon, name: "menu", onClick: handleMenu }),
|
|
5044
|
+
!short && React.createElement("div", { className: s$6.menu__title }, sidebarTitle)),
|
|
5003
5045
|
React.createElement(BackSidebar, __assign({}, sidebarProps, { shortMode: short }))),
|
|
5004
|
-
contentLoading ? React.createElement(LoadingPanel, { className: s$
|
|
5005
|
-
};
|
|
5006
|
-
|
|
5007
|
-
var s$a = {"root":"index-module_root__-jB4M"};
|
|
5008
|
-
|
|
5009
|
-
var Header1 = function (_a) {
|
|
5010
|
-
var children = _a.children, className = _a.className;
|
|
5011
|
-
return React.createElement("h1", { className: classNames(s$a.root, className) }, children);
|
|
5012
|
-
};
|
|
5013
|
-
|
|
5014
|
-
var s$9 = {"root":"index-module_root__4eRbr"};
|
|
5015
|
-
|
|
5016
|
-
var Header2 = function (_a) {
|
|
5017
|
-
var children = _a.children, className = _a.className;
|
|
5018
|
-
return React.createElement("h1", { className: classNames(s$9.root, className) }, children);
|
|
5019
|
-
};
|
|
5020
|
-
|
|
5021
|
-
var s$8 = {"root":"index-module_root__fJ5t3"};
|
|
5022
|
-
|
|
5023
|
-
var Paragraph = function (_a) {
|
|
5024
|
-
var children = _a.children;
|
|
5025
|
-
return React.createElement("p", { className: s$8.root }, children);
|
|
5026
|
-
};
|
|
5027
|
-
|
|
5028
|
-
var s$7 = {"root":"index-module_root__USP1u"};
|
|
5029
|
-
|
|
5030
|
-
var PageTitle = function (_a) {
|
|
5031
|
-
var children = _a.children, className = _a.className;
|
|
5032
|
-
return React.createElement("h1", { className: classNames(s$7.root, className) }, children);
|
|
5033
|
-
};
|
|
5034
|
-
|
|
5035
|
-
var s$6 = {"root":"index-module_root__Iszgj"};
|
|
5036
|
-
|
|
5037
|
-
var CentralDivision = function (_a) {
|
|
5038
|
-
var children = _a.children, className = _a.className;
|
|
5039
|
-
return React.createElement("div", { className: classNames(s$6.root, className) }, children);
|
|
5040
|
-
};
|
|
5041
|
-
|
|
5042
|
-
var s$5 = {"root":"index-module_root__OPU-p"};
|
|
5043
|
-
|
|
5044
|
-
var RowDivision = function (_a) {
|
|
5045
|
-
var children = _a.children, className = _a.className;
|
|
5046
|
-
return React.createElement("div", { className: classNames(s$5.root, className) }, children);
|
|
5046
|
+
contentLoading ? React.createElement(LoadingPanel, { className: s$6.content }) : React.createElement("div", { className: classNames(s$6.content, contentClassName) }, children)));
|
|
5047
5047
|
};
|
|
5048
5048
|
|
|
5049
5049
|
var s$4 = {"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"};
|
|
@@ -5183,6 +5183,8 @@ exports.BackLayout = BackLayout;
|
|
|
5183
5183
|
exports.BackSidebar = BackSidebar;
|
|
5184
5184
|
exports.CentralDivision = CentralDivision;
|
|
5185
5185
|
exports.CheckboxField = CheckboxField;
|
|
5186
|
+
exports.ContentHeader1 = ContentHeader1;
|
|
5187
|
+
exports.ContentHeader2 = ContentHeader2;
|
|
5186
5188
|
exports.DatePickerField = DatePickerField;
|
|
5187
5189
|
exports.FlagIcon = FlagIcon;
|
|
5188
5190
|
exports.FlagIconNameList = FlagIconNameList;
|
|
@@ -5193,8 +5195,6 @@ exports.FormLine = FormLine;
|
|
|
5193
5195
|
exports.FrontFooter = FrontFooter;
|
|
5194
5196
|
exports.FrontHeader = FrontHeader;
|
|
5195
5197
|
exports.FrontLayout = FrontLayout;
|
|
5196
|
-
exports.Header1 = Header1;
|
|
5197
|
-
exports.Header2 = Header2;
|
|
5198
5198
|
exports.HiddenField = HiddenField;
|
|
5199
5199
|
exports.IconDivision = IconDivision;
|
|
5200
5200
|
exports.InfoDialog = InfoDialog;
|
package/build/styles.css
CHANGED
|
@@ -39,6 +39,42 @@ body {
|
|
|
39
39
|
color: var(--color);
|
|
40
40
|
font-family: var(--fontFamily);
|
|
41
41
|
}
|
|
42
|
+
.index-module_root__oU85z {
|
|
43
|
+
margin: 1em 0 0.5em;
|
|
44
|
+
padding-bottom: 0.3em;
|
|
45
|
+
font-size: 2em;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
font-size: 2.1em;
|
|
48
|
+
border-bottom: 1px solid var(--headerBorderColor);
|
|
49
|
+
}
|
|
50
|
+
.index-module_root__51YHj {
|
|
51
|
+
margin: 1em 0 0.5em;
|
|
52
|
+
padding-bottom: 0.3em;
|
|
53
|
+
font-size: 2em;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
border-bottom: 1px solid var(--headerBorderColor);
|
|
56
|
+
font-size: 1.5em;
|
|
57
|
+
}
|
|
58
|
+
.index-module_root__Fq-q1 {
|
|
59
|
+
margin: 1.2em 0;
|
|
60
|
+
}
|
|
61
|
+
.index-module_root__VIFF- {
|
|
62
|
+
font-size: 2.1em;
|
|
63
|
+
margin: 0.5em 0;
|
|
64
|
+
padding: 0;
|
|
65
|
+
}
|
|
66
|
+
.index-module_root__p0I0n {
|
|
67
|
+
max-width: var(--centralDivisionMaxWidth);
|
|
68
|
+
margin-right: auto;
|
|
69
|
+
margin-left: auto;
|
|
70
|
+
}
|
|
71
|
+
.index-module_root__yiKO0 {
|
|
72
|
+
display: flex;
|
|
73
|
+
gap: 1em;
|
|
74
|
+
}
|
|
75
|
+
.index-module_root__yiKO0 > * {
|
|
76
|
+
flex: 1;
|
|
77
|
+
}
|
|
42
78
|
.index-module_root__-LDR1 {
|
|
43
79
|
display: inline-block;
|
|
44
80
|
height: 1em;
|
|
@@ -331,44 +367,6 @@ body {
|
|
|
331
367
|
.index-module_loader__qxQNC .ant-spin-dot-item {
|
|
332
368
|
background-color: var(--backLayoutSpinColor);
|
|
333
369
|
}
|
|
334
|
-
.index-module_root__-jB4M {
|
|
335
|
-
margin: 1em 0 0.5em;
|
|
336
|
-
padding-bottom: 0.3em;
|
|
337
|
-
font-size: 2em;
|
|
338
|
-
font-weight: 600;
|
|
339
|
-
font-size: 2.1em;
|
|
340
|
-
border-bottom: 1px solid var(--headerBorderColor);
|
|
341
|
-
}
|
|
342
|
-
.index-module_root__4eRbr {
|
|
343
|
-
margin: 1em 0 0.5em;
|
|
344
|
-
padding-bottom: 0.3em;
|
|
345
|
-
font-size: 2em;
|
|
346
|
-
font-weight: 600;
|
|
347
|
-
border-bottom: 1px solid var(--headerBorderColor);
|
|
348
|
-
font-size: 1.5em;
|
|
349
|
-
}
|
|
350
|
-
.index-module_root__fJ5t3 {
|
|
351
|
-
margin: 1.2em 0;
|
|
352
|
-
}
|
|
353
|
-
.index-module_root__USP1u {
|
|
354
|
-
margin: 1em 0 0.5em;
|
|
355
|
-
padding-bottom: 0.3em;
|
|
356
|
-
font-size: 2em;
|
|
357
|
-
font-weight: 600;
|
|
358
|
-
font-size: 2.1em;
|
|
359
|
-
}
|
|
360
|
-
.index-module_root__Iszgj {
|
|
361
|
-
max-width: var(--centralDivisionMaxWidth);
|
|
362
|
-
margin-right: auto;
|
|
363
|
-
margin-left: auto;
|
|
364
|
-
}
|
|
365
|
-
.index-module_root__OPU-p {
|
|
366
|
-
display: flex;
|
|
367
|
-
gap: 1em;
|
|
368
|
-
}
|
|
369
|
-
.index-module_root__OPU-p > * {
|
|
370
|
-
flex: 1;
|
|
371
|
-
}
|
|
372
370
|
.index-module_root__Q7VjD {
|
|
373
371
|
display: flex;
|
|
374
372
|
align-items: center;
|
package/package.json
CHANGED
package/build/content/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|