revdev-components 0.184.0 → 0.186.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/helpTip/index.d.ts +1 -1
- package/build/index.js +71 -63
- package/build/link/index.d.ts +1 -0
- package/build/link/simpleLinkButton/index.d.ts +6 -0
- package/build/styles.css +14 -0
- package/package.json +1 -1
package/build/helpTip/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -25,14 +25,14 @@ function _interopNamespaceDefault(e) {
|
|
|
25
25
|
|
|
26
26
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
27
27
|
|
|
28
|
-
var s$
|
|
28
|
+
var s$B = {"root":"index-module_root__oU85z"};
|
|
29
29
|
|
|
30
30
|
var ContentHeader1 = function (_a) {
|
|
31
31
|
var children = _a.children, className = _a.className;
|
|
32
|
-
return React.createElement("h1", { className: classNames(s$
|
|
32
|
+
return React.createElement("h1", { className: classNames(s$B.root, className) }, children);
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
var s$
|
|
35
|
+
var s$A = {"root":"index-module_root__51YHj"};
|
|
36
36
|
|
|
37
37
|
/******************************************************************************
|
|
38
38
|
Copyright (c) Microsoft Corporation.
|
|
@@ -89,7 +89,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
89
89
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
var s$
|
|
92
|
+
var s$z = {"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"};
|
|
93
93
|
|
|
94
94
|
var _path$2D;
|
|
95
95
|
function _extends$2G() { return _extends$2G = 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$2G.apply(null, arguments); }
|
|
@@ -1734,13 +1734,13 @@ var SvgRule = function SvgRule(props) {
|
|
|
1734
1734
|
})));
|
|
1735
1735
|
};
|
|
1736
1736
|
|
|
1737
|
-
var s$
|
|
1737
|
+
var s$y = {"root":"index-module_root__-LDR1"};
|
|
1738
1738
|
|
|
1739
1739
|
// https://www.svgrepo.com/
|
|
1740
1740
|
function useBasicIcon(_a, icons) {
|
|
1741
1741
|
var className = _a.className, name = _a.name, props = __rest(_a, ["className", "name"]);
|
|
1742
1742
|
var svgAttrs = React.useMemo(function () {
|
|
1743
|
-
return __assign({ className: classNames(s$
|
|
1743
|
+
return __assign({ className: classNames(s$y.root, className), fill: "currentColor" }, props);
|
|
1744
1744
|
}, [className, props]);
|
|
1745
1745
|
var Icon = icons[name];
|
|
1746
1746
|
return Icon ? React.createElement(Icon, __assign({}, svgAttrs)) : undefined;
|
|
@@ -2082,14 +2082,14 @@ var AppTooltip = function (_a) {
|
|
|
2082
2082
|
var IconBoxContent = function (_a) {
|
|
2083
2083
|
var _b;
|
|
2084
2084
|
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;
|
|
2085
|
-
return (React.createElement("div", { ref: elementRev, style: style, className: classNames(s$
|
|
2086
|
-
_b[s$
|
|
2087
|
-
_b[s$
|
|
2088
|
-
_b[s$
|
|
2085
|
+
return (React.createElement("div", { ref: elementRev, style: style, className: classNames(s$z.root, (_b = {},
|
|
2086
|
+
_b[s$z.flex] = flexRoot,
|
|
2087
|
+
_b[s$z.button] = !!onClick,
|
|
2088
|
+
_b[s$z.column] = direction === "column",
|
|
2089
2089
|
_b), className), onClick: onClick },
|
|
2090
|
-
typeof icon === "string" ? React.createElement(RegularIcon, { className: s$
|
|
2091
|
-
children ? React.createElement("div", { className: classNames(contentClassName, s$
|
|
2092
|
-
typeof rightIcon === "string" ? React.createElement(RegularIcon, { className: s$
|
|
2090
|
+
typeof icon === "string" ? React.createElement(RegularIcon, { className: s$z.icon, name: icon }) : icon,
|
|
2091
|
+
children ? React.createElement("div", { className: classNames(contentClassName, s$z.root__children) }, children) : null,
|
|
2092
|
+
typeof rightIcon === "string" ? React.createElement(RegularIcon, { className: s$z.icon, name: rightIcon }) : rightIcon));
|
|
2093
2093
|
};
|
|
2094
2094
|
var IconDivision = function (props) {
|
|
2095
2095
|
var tooltip = props.tooltip, tooltipPlacement = props.tooltipPlacement, tooltipMouseEnterDelay = props.tooltipMouseEnterDelay;
|
|
@@ -2099,37 +2099,37 @@ var IconDivision = function (props) {
|
|
|
2099
2099
|
|
|
2100
2100
|
var ContentHeader2 = function (_a) {
|
|
2101
2101
|
var icon = _a.icon, children = _a.children, className = _a.className;
|
|
2102
|
-
var content = React.createElement("h2", { className: classNames(s$
|
|
2102
|
+
var content = React.createElement("h2", { className: classNames(s$A.root, className) }, children);
|
|
2103
2103
|
return icon ? React.createElement(IconDivision, { icon: icon }, content) : content;
|
|
2104
2104
|
};
|
|
2105
2105
|
|
|
2106
|
-
var s$
|
|
2106
|
+
var s$x = {"root":"index-module_root__Fq-q1"};
|
|
2107
2107
|
|
|
2108
2108
|
var Paragraph = function (_a) {
|
|
2109
2109
|
var children = _a.children, className = _a.className;
|
|
2110
|
-
return React.createElement("p", { className: classNames(s$
|
|
2110
|
+
return React.createElement("p", { className: classNames(s$x.root, className) }, children);
|
|
2111
2111
|
};
|
|
2112
2112
|
|
|
2113
|
-
var s$
|
|
2113
|
+
var s$w = {"root":"index-module_root__VIFF-"};
|
|
2114
2114
|
|
|
2115
2115
|
var PageTitle = function (_a) {
|
|
2116
2116
|
var children = _a.children, className = _a.className;
|
|
2117
|
-
return React.createElement("h1", { className: classNames(s$
|
|
2117
|
+
return React.createElement("h1", { className: classNames(s$w.root, className) }, children);
|
|
2118
2118
|
};
|
|
2119
2119
|
|
|
2120
|
-
var s$
|
|
2120
|
+
var s$v = {"root":"index-module_root__p0I0n"};
|
|
2121
2121
|
|
|
2122
2122
|
var CentralDivision = function (_a) {
|
|
2123
2123
|
var children = _a.children, className = _a.className;
|
|
2124
|
-
return React.createElement("div", { className: classNames(s$
|
|
2124
|
+
return React.createElement("div", { className: classNames(s$v.root, className) }, children);
|
|
2125
2125
|
};
|
|
2126
2126
|
|
|
2127
|
-
var s$
|
|
2127
|
+
var s$u = {"root":"index-module_root__yiKO0","first":"index-module_first__560SY","last":"index-module_last__fYezY"};
|
|
2128
2128
|
|
|
2129
2129
|
var RowDivision = function (_a) {
|
|
2130
2130
|
var _b;
|
|
2131
2131
|
var children = _a.children, className = _a.className, flex = _a.flex;
|
|
2132
|
-
return React.createElement("div", { className: classNames(s$
|
|
2132
|
+
return React.createElement("div", { className: classNames(s$u.root, className, (_b = {}, _b[s$u.first] = flex === "first", _b[s$u.last] = flex === "last", _b)) }, children);
|
|
2133
2133
|
};
|
|
2134
2134
|
|
|
2135
2135
|
var _path$i, _path2$a, _path3$8;
|
|
@@ -4966,7 +4966,7 @@ var FillIcon = function (props) {
|
|
|
4966
4966
|
return useBasicIcon(props, icons);
|
|
4967
4967
|
};
|
|
4968
4968
|
|
|
4969
|
-
var s$
|
|
4969
|
+
var s$t = {"root":"index-module_root__gtTIa","action":"index-module_action__pOSde"};
|
|
4970
4970
|
|
|
4971
4971
|
var CONSOLE_COLOR = "background:rgb(28, 46, 82); color:rgb(231, 231, 231)";
|
|
4972
4972
|
|
|
@@ -5084,10 +5084,10 @@ function AppForm(_a) {
|
|
|
5084
5084
|
onValuesChange === null || onValuesChange === void 0 ? void 0 : onValuesChange(changedValues, values);
|
|
5085
5085
|
onChange === null || onChange === void 0 ? void 0 : onChange(values);
|
|
5086
5086
|
}, [setValues, onValuesChange, onChange]);
|
|
5087
|
-
return (React.createElement(antd.Form, { form: form, onFinish: onFinish, className: classNames(s$
|
|
5087
|
+
return (React.createElement(antd.Form, { form: form, onFinish: onFinish, className: classNames(s$t.root, className), layout: "vertical", onValuesChange: handleValuesChange, onFieldsChange: onFieldsChange, initialValues: initialValues }, typeof children === "function" ? children({ valid: valid }) : children));
|
|
5088
5088
|
}
|
|
5089
5089
|
|
|
5090
|
-
var s$
|
|
5090
|
+
var s$s = {"root":"index-module_root__2S1Jp","root__right":"index-module_root__right__AOLlF","label":"index-module_label__-pb4C"};
|
|
5091
5091
|
|
|
5092
5092
|
function useLineProps(_a) {
|
|
5093
5093
|
var lineClassName = _a.lineClassName, name = _a.name, label = _a.label, rightLabel = _a.rightLabel, rules = _a.rules, valuePropName = _a.valuePropName, noStyle = _a.noStyle, hasFeedback = _a.hasFeedback, dependencies = _a.dependencies, rest = __rest(_a, ["lineClassName", "name", "label", "rightLabel", "rules", "valuePropName", "noStyle", "hasFeedback", "dependencies"]);
|
|
@@ -5104,13 +5104,13 @@ var FormLine = function (_a) {
|
|
|
5104
5104
|
}, [validateRules]);
|
|
5105
5105
|
var singleLabel = React.useMemo(function () {
|
|
5106
5106
|
if (label && rightLabel) {
|
|
5107
|
-
return (React.createElement("div", { className: s$
|
|
5108
|
-
React.createElement("div", { className: s$
|
|
5109
|
-
React.createElement("div", { className: s$
|
|
5107
|
+
return (React.createElement("div", { className: s$s.label },
|
|
5108
|
+
React.createElement("div", { className: s$s.label__left }, label),
|
|
5109
|
+
React.createElement("div", { className: s$s.label__right }, rightLabel)));
|
|
5110
5110
|
}
|
|
5111
5111
|
return label;
|
|
5112
5112
|
}, [label, rightLabel]);
|
|
5113
|
-
return (React.createElement(antd.Form.Item, __assign({ className: classNames(s$
|
|
5113
|
+
return (React.createElement(antd.Form.Item, __assign({ className: classNames(s$s.root, (_b = {}, _b[s$s.root__right] = !!rightLabel, _b), className), rules: rules, label: singleLabel }, props)));
|
|
5114
5114
|
};
|
|
5115
5115
|
|
|
5116
5116
|
var DatePickerField = function (props) {
|
|
@@ -5131,12 +5131,12 @@ var InputField = function (props) {
|
|
|
5131
5131
|
React.createElement(antd.Input, __assign({}, controlProps))));
|
|
5132
5132
|
};
|
|
5133
5133
|
|
|
5134
|
-
var s$
|
|
5134
|
+
var s$r = {"input":"index-module_input__71iJw"};
|
|
5135
5135
|
|
|
5136
5136
|
var InputNumberField = function (props) {
|
|
5137
5137
|
var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], className = _b.className, controlProps = __rest(_b, ["className"]);
|
|
5138
5138
|
return (React.createElement(FormLine, __assign({}, lineProps),
|
|
5139
|
-
React.createElement(antd.InputNumber, __assign({ className: classNames(s$
|
|
5139
|
+
React.createElement(antd.InputNumber, __assign({ className: classNames(s$r.input, className) }, controlProps))));
|
|
5140
5140
|
};
|
|
5141
5141
|
|
|
5142
5142
|
var RadioButtonField = function (props) {
|
|
@@ -5145,13 +5145,13 @@ var RadioButtonField = function (props) {
|
|
|
5145
5145
|
React.createElement(antd.Radio.Group, __assign({ buttonStyle: buttonStyle, optionType: optionType }, controlProps))));
|
|
5146
5146
|
};
|
|
5147
5147
|
|
|
5148
|
-
var s$
|
|
5148
|
+
var s$q = {"popup":"index-module_popup__Im5Y-"};
|
|
5149
5149
|
|
|
5150
5150
|
var RangePicker = antd.DatePicker.RangePicker;
|
|
5151
5151
|
var RangePickerField = function (props) {
|
|
5152
5152
|
var _a = useLineProps(props), lineProps = _a[0], _b = _a[1], oneMonth = _b.oneMonth, controlProps = __rest(_b, ["oneMonth"]);
|
|
5153
5153
|
return (React.createElement(FormLine, __assign({}, lineProps),
|
|
5154
|
-
React.createElement(RangePicker, __assign({}, controlProps, { popupClassName: oneMonth ? s$
|
|
5154
|
+
React.createElement(RangePicker, __assign({}, controlProps, { popupClassName: oneMonth ? s$q.popup : undefined }))));
|
|
5155
5155
|
};
|
|
5156
5156
|
|
|
5157
5157
|
var SelectField = function (props) {
|
|
@@ -5160,7 +5160,7 @@ var SelectField = function (props) {
|
|
|
5160
5160
|
React.createElement(antd.Select, __assign({}, controlProps))));
|
|
5161
5161
|
};
|
|
5162
5162
|
|
|
5163
|
-
var s$
|
|
5163
|
+
var s$p = {"empty":"index-module_empty__sV0Gg","add":"index-module_add__f03vM"};
|
|
5164
5164
|
|
|
5165
5165
|
var SearchSelectField = function (props) {
|
|
5166
5166
|
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"]);
|
|
@@ -5173,9 +5173,9 @@ var SearchSelectField = function (props) {
|
|
|
5173
5173
|
onAdd === null || onAdd === void 0 ? void 0 : onAdd(searchText);
|
|
5174
5174
|
}, [searchText, onAdd]);
|
|
5175
5175
|
return (React.createElement(FormLine, __assign({}, lineProps),
|
|
5176
|
-
React.createElement(antd.Select, __assign({}, controlProps, { showSearch: true, onSearch: handleSearch, loading: loading, notFoundContent: loading ? null : (React.createElement("div", { className: s$
|
|
5176
|
+
React.createElement(antd.Select, __assign({}, controlProps, { showSearch: true, onSearch: handleSearch, loading: loading, notFoundContent: loading ? null : (React.createElement("div", { className: s$p.empty }, searchText ? (React.createElement(React.Fragment, null,
|
|
5177
5177
|
(text === null || text === void 0 ? void 0 : text.notFound) || "Not found",
|
|
5178
|
-
React.createElement(antd.Button, { size: "small", className: s$
|
|
5178
|
+
React.createElement(antd.Button, { size: "small", className: s$p.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"))) }))));
|
|
5179
5179
|
};
|
|
5180
5180
|
|
|
5181
5181
|
var TextArea = antd.Input.TextArea;
|
|
@@ -5191,13 +5191,13 @@ var CheckboxField = function (props) {
|
|
|
5191
5191
|
React.createElement(antd.Checkbox, __assign({}, controlProps))));
|
|
5192
5192
|
};
|
|
5193
5193
|
|
|
5194
|
-
var s$
|
|
5194
|
+
var s$o = {"root":"index-module_root__GGl-p"};
|
|
5195
5195
|
|
|
5196
5196
|
var SwitchFieldControl = function (_a) {
|
|
5197
5197
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
5198
|
-
return (React.createElement("div", { className: s$
|
|
5198
|
+
return (React.createElement("div", { className: s$o.root },
|
|
5199
5199
|
React.createElement(antd.Switch, __assign({}, props)),
|
|
5200
|
-
children && React.createElement("div", { className: s$
|
|
5200
|
+
children && React.createElement("div", { className: s$o.content }, children)));
|
|
5201
5201
|
};
|
|
5202
5202
|
|
|
5203
5203
|
var SwitchField = function (props) {
|
|
@@ -5231,22 +5231,22 @@ var SwitchButtonField = function (props) {
|
|
|
5231
5231
|
React.createElement(SwitchButtonControl, __assign({ buttonStyle: buttonStyle, optionType: optionType }, controlProps))));
|
|
5232
5232
|
};
|
|
5233
5233
|
|
|
5234
|
-
var s$
|
|
5234
|
+
var s$n = {"root":"index-module_root__9GQDU"};
|
|
5235
5235
|
|
|
5236
5236
|
var FormButton = function (_a) {
|
|
5237
5237
|
var className = _a.className, _b = _a.children, children = _b === void 0 ? "Save" : _b, loading = _a.loading, disabled = _a.disabled;
|
|
5238
|
-
return (React.createElement("div", { className: classNames(s$
|
|
5238
|
+
return (React.createElement("div", { className: classNames(s$n.root, className) },
|
|
5239
5239
|
React.createElement(antd.Button, { htmlType: "submit", type: "primary", loading: loading, disabled: disabled }, children)));
|
|
5240
5240
|
};
|
|
5241
5241
|
|
|
5242
|
-
var s$
|
|
5242
|
+
var s$m = {"root":"index-module_root__C05Ty"};
|
|
5243
5243
|
|
|
5244
5244
|
var FormError = function (_a) {
|
|
5245
5245
|
var children = _a.children, className = _a.className;
|
|
5246
|
-
return children ? React.createElement("div", { className: classNames(s$
|
|
5246
|
+
return children ? React.createElement("div", { className: classNames(s$m.root, className) }, children) : null;
|
|
5247
5247
|
};
|
|
5248
5248
|
|
|
5249
|
-
var s$
|
|
5249
|
+
var s$l = {"root":"index-module_root__C7wx2","content":"index-module_content__RsiJT","close":"index-module_close__lBc6p"};
|
|
5250
5250
|
|
|
5251
5251
|
var InfoDialog = function (_a) {
|
|
5252
5252
|
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;
|
|
@@ -5258,23 +5258,23 @@ var InfoDialog = function (_a) {
|
|
|
5258
5258
|
}
|
|
5259
5259
|
return result;
|
|
5260
5260
|
}, [width]);
|
|
5261
|
-
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$
|
|
5262
|
-
React.createElement("div", { className: classNames(s$
|
|
5261
|
+
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$l.root, className), maskClosable: maskClosable, footer: null },
|
|
5262
|
+
React.createElement("div", { className: classNames(s$l.content, contentClassName) },
|
|
5263
5263
|
children,
|
|
5264
|
-
hideClose ? null : React.createElement(RegularIcon, { name: "cross", className: s$
|
|
5264
|
+
hideClose ? null : React.createElement(RegularIcon, { name: "cross", className: s$l.close, onClick: onClose }))));
|
|
5265
5265
|
};
|
|
5266
5266
|
|
|
5267
|
-
var s$
|
|
5267
|
+
var s$k = {"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"};
|
|
5268
5268
|
|
|
5269
5269
|
var RegularDialog = function (_a) {
|
|
5270
5270
|
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, cancelHide = _a.cancelHide, footerClassName = _a.footerClassName, contentClassName = _a.contentClassName, okHide = _a.okHide, okDisabled = _a.okDisabled, okLoading = _a.okLoading, onOk = _a.onOk, onClose = _a.onClose, _c = _a.open, open = _c === void 0 ? true : _c, _d = _a.maskClosable, maskClosable = _d === void 0 ? false : _d;
|
|
5271
5271
|
var close = React.useMemo(function () {
|
|
5272
|
-
return React.createElement(RegularIcon, { name: "cross", className: s$
|
|
5272
|
+
return React.createElement(RegularIcon, { name: "cross", className: s$k.close, onClick: onClose });
|
|
5273
5273
|
}, [onClose]);
|
|
5274
5274
|
var titleContent = React.useMemo(function () {
|
|
5275
5275
|
if (typeof title === "string") {
|
|
5276
|
-
return (React.createElement("div", { className: s$
|
|
5277
|
-
React.createElement("div", { className: s$
|
|
5276
|
+
return (React.createElement("div", { className: s$k.header },
|
|
5277
|
+
React.createElement("div", { className: s$k.title },
|
|
5278
5278
|
titleIcon && React.createElement(RegularIcon, { name: titleIcon }),
|
|
5279
5279
|
React.createElement("span", null,
|
|
5280
5280
|
" ",
|
|
@@ -5285,7 +5285,7 @@ var RegularDialog = function (_a) {
|
|
|
5285
5285
|
return title(close);
|
|
5286
5286
|
}
|
|
5287
5287
|
return null;
|
|
5288
|
-
}, [s$
|
|
5288
|
+
}, [s$k, title, titlePrefix, close, titleIcon]);
|
|
5289
5289
|
var style = React.useMemo(function () {
|
|
5290
5290
|
var result = {};
|
|
5291
5291
|
if (width) {
|
|
@@ -5295,15 +5295,15 @@ var RegularDialog = function (_a) {
|
|
|
5295
5295
|
return result;
|
|
5296
5296
|
}, [width]);
|
|
5297
5297
|
var hideBottom = hideFooter || (cancelHide && okHide);
|
|
5298
|
-
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$
|
|
5298
|
+
return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$k.root, className), maskClosable: maskClosable, footer: null },
|
|
5299
5299
|
titleContent,
|
|
5300
|
-
React.createElement("div", { className: classNames(s$
|
|
5301
|
-
hideBottom ? null : (React.createElement("div", { className: classNames(s$
|
|
5300
|
+
React.createElement("div", { className: classNames(s$k.content, contentClassName) }, children),
|
|
5301
|
+
hideBottom ? null : (React.createElement("div", { className: classNames(s$k.footer, footerClassName) },
|
|
5302
5302
|
cancelHide ? null : React.createElement(antd.Button, { onClick: onClose }, cancelText || "Cancel"),
|
|
5303
5303
|
okHide ? null : (React.createElement(antd.Button, { type: "primary", onClick: onOk, disabled: okDisabled, loading: okLoading }, okText || "OK"))))));
|
|
5304
5304
|
};
|
|
5305
5305
|
|
|
5306
|
-
var s$
|
|
5306
|
+
var s$j = {"root":"index-module_root__qFuRH"};
|
|
5307
5307
|
|
|
5308
5308
|
function isRegular(icon) {
|
|
5309
5309
|
return RegularIconNameList.includes(icon);
|
|
@@ -5313,13 +5313,13 @@ function isSocial(icon) {
|
|
|
5313
5313
|
}
|
|
5314
5314
|
var FlatButton = function (_a) {
|
|
5315
5315
|
var children = _a.children, className = _a.className, icon = _a.icon, onClick = _a.onClick;
|
|
5316
|
-
return (React.createElement("div", { className: classNames(s$
|
|
5316
|
+
return (React.createElement("div", { className: classNames(s$j.root, className), onClick: onClick },
|
|
5317
5317
|
isRegular(icon) ? React.createElement(RegularIcon, { name: icon }) : null,
|
|
5318
5318
|
isSocial(icon) ? React.createElement(SocialIcon, { name: icon }) : null,
|
|
5319
5319
|
children ? React.createElement("span", null, children) : null));
|
|
5320
5320
|
};
|
|
5321
5321
|
|
|
5322
|
-
var s$
|
|
5322
|
+
var s$i = {"root":"index-module_root__r-dVh","noneDecoration":"index-module_noneDecoration__N4OkH"};
|
|
5323
5323
|
|
|
5324
5324
|
function AppLink(_a) {
|
|
5325
5325
|
var _b;
|
|
@@ -5330,17 +5330,24 @@ function AppLink(_a) {
|
|
|
5330
5330
|
href = route.build(params || {});
|
|
5331
5331
|
}
|
|
5332
5332
|
}
|
|
5333
|
-
return (React.createElement(Link, __assign({ href: href, as: as, shallow: shallow, title: title, className: classNames(s$
|
|
5334
|
-
_b[s$
|
|
5335
|
-
_b[s$
|
|
5333
|
+
return (React.createElement(Link, __assign({ href: href, as: as, shallow: shallow, title: title, className: classNames(s$i.root, className, (_b = {},
|
|
5334
|
+
_b[s$i.noneDecoration] = noneDecoration,
|
|
5335
|
+
_b[s$i.show__underline] = showUnderline,
|
|
5336
5336
|
_b)), ref: aRef }, rest), children));
|
|
5337
5337
|
}
|
|
5338
5338
|
|
|
5339
|
-
var s$
|
|
5339
|
+
var s$h = {"root":"index-module_root__gpEkZ"};
|
|
5340
5340
|
|
|
5341
5341
|
var AppLinkButton = function (_a) {
|
|
5342
5342
|
var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
|
|
5343
|
-
return (React.createElement("div", __assign({ className: classNames(s$
|
|
5343
|
+
return (React.createElement("div", __assign({ className: classNames(s$h.root, className) }, rest), children));
|
|
5344
|
+
};
|
|
5345
|
+
|
|
5346
|
+
var s$g = {"root":"index-module_root__KYWfI"};
|
|
5347
|
+
|
|
5348
|
+
var SimpleLinkButton = function (_a) {
|
|
5349
|
+
var className = _a.className, children = _a.children, _b = _a.type, type = _b === void 0 ? "button" : _b, rest = __rest(_a, ["className", "children", "type"]);
|
|
5350
|
+
return (React.createElement("button", __assign({ type: type, className: classNames(s$g.root, className) }, rest), children));
|
|
5344
5351
|
};
|
|
5345
5352
|
|
|
5346
5353
|
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"};
|
|
@@ -5830,6 +5837,7 @@ exports.RegularIconNameList = RegularIconNameList;
|
|
|
5830
5837
|
exports.RowDivision = RowDivision;
|
|
5831
5838
|
exports.SearchSelectField = SearchSelectField;
|
|
5832
5839
|
exports.SelectField = SelectField;
|
|
5840
|
+
exports.SimpleLinkButton = SimpleLinkButton;
|
|
5833
5841
|
exports.SocialIcon = SocialIcon;
|
|
5834
5842
|
exports.SocialIconNameList = SocialIconNameList;
|
|
5835
5843
|
exports.SplitLine = SplitLine;
|
package/build/link/index.d.ts
CHANGED
package/build/styles.css
CHANGED
|
@@ -282,6 +282,20 @@ body {
|
|
|
282
282
|
color: var(--linkColor);
|
|
283
283
|
text-decoration: underline;
|
|
284
284
|
}
|
|
285
|
+
.index-module_root__KYWfI {
|
|
286
|
+
display: inline;
|
|
287
|
+
padding: 0;
|
|
288
|
+
border: 0;
|
|
289
|
+
background: none;
|
|
290
|
+
font: inherit;
|
|
291
|
+
color: var(--linkColor) !important;
|
|
292
|
+
text-decoration: none;
|
|
293
|
+
cursor: pointer;
|
|
294
|
+
}
|
|
295
|
+
.index-module_root__KYWfI:hover {
|
|
296
|
+
color: var(--linkColor);
|
|
297
|
+
text-decoration: underline;
|
|
298
|
+
}
|
|
285
299
|
.index-module_root__CQ7Qm {
|
|
286
300
|
overflow: hidden;
|
|
287
301
|
}
|