@para-ui/core 3.0.28 → 3.0.30
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/AutoBox/index.js +48 -88
- package/AutoTips/index.js +25 -32
- package/Breadcrumbs/index.js +43 -63
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/Button/index.js +88 -118
- package/ButtonGroup/index.js +27 -36
- package/Carousel/index.d.ts +2 -2
- package/Carousel/index.js +27 -28
- package/Cascader/index.js +52 -64
- package/Checkbox/index.js +23 -39
- package/CheckboxGroup/index.js +31 -48
- package/Collapse/collapsePanel.d.ts +1 -1
- package/Collapse/index.d.ts +1 -1
- package/Collapse/index.js +9 -29
- package/Collapse/util.d.ts +2 -2
- package/CollapseBox/index.js +45 -56
- package/CollapseLayout/index.js +35 -54
- package/ComboSelect/index.js +222 -349
- package/ComboSelect/interface.d.ts +3 -3
- package/Container/index.js +17 -20
- package/DatePicker/generatePicker/index.d.ts +17 -17
- package/DatePicker/index.d.ts +4 -4
- package/DatePicker/index.js +111 -167
- package/Desktop/index.js +62 -173
- package/Drawer/index.js +65 -58
- package/Drawer/interface.d.ts +7 -3
- package/Dropdown/index.d.ts +1 -1
- package/Dropdown/index.js +3 -3
- package/Empty/index.js +17 -22
- package/Form/index.d.ts +1 -1
- package/Form/index.js +38 -80
- package/FormItem/index.d.ts +1 -1
- package/FormItem/index.js +11 -11
- package/FormItem/validateFunction.d.ts +1 -1
- package/FunctionModal/index.js +11 -11
- package/GlobalContext/index.js +3 -3
- package/GlobalContext/usePopupContainer.d.ts +1 -1
- package/Help/index.js +11 -11
- package/HelperText/index.js +11 -12
- package/InputLang/index.js +47 -80
- package/InputNumber/index.js +65 -100
- package/Label/index.js +15 -16
- package/Loading/index.js +6 -7
- package/Menu/index.js +148 -328
- package/Menu/interface.d.ts +2 -2
- package/Menu/verticalMenuList.d.ts +1 -1
- package/Message/index.d.ts +1 -1
- package/Message/index.js +45 -64
- package/Modal/Confirm/index.d.ts +2 -2
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +119 -152
- package/MultiBox/index.js +44 -76
- package/Notification/index.d.ts +2 -2
- package/Notification/index.js +51 -72
- package/OperateBtn/index.js +42 -70
- package/PageHeader/index.js +120 -286
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +2 -2
- package/Pagination/index.js +79 -131
- package/ParauiProvider/index.js +2 -3
- package/PasswordRules/index.js +12 -30
- package/PopConfirm/index.d.ts +1 -1
- package/PopConfirm/index.js +52 -59
- package/Popover/index.js +8 -9
- package/Progress/index.d.ts +6 -6
- package/Progress/index.js +50 -89
- package/Querying/index.js +14 -17
- package/README.md +813 -800
- package/Radio/index.js +21 -33
- package/RadioGroup/index.js +32 -47
- package/Search/index.js +44 -66
- package/Select/index.js +176 -343
- package/SelectInput/index.js +8 -9
- package/Selector/index.js +285 -681
- package/SelectorPicker/index.js +62 -97
- package/SingleBox/index.js +30 -55
- package/Slider/index.d.ts +1 -1
- package/Slider/index.js +29 -41
- package/Slider/interface.d.ts +2 -2
- package/Split/index.js +10 -23
- package/Status/index.js +8 -7
- package/Stepper/index.d.ts +1 -1
- package/Stepper/index.js +20 -25
- package/Styles/form.scss +5 -5
- package/Styles/index.scss +37 -37
- package/Styles/normalize.scss +348 -348
- package/Styles/scrollbar.scss +223 -223
- package/Styles/theme.scss +74 -74
- package/Switch/index.d.ts +2 -2
- package/Switch/index.js +19 -20
- package/Table/index.js +568 -1019
- package/Table/interface.d.ts +5 -5
- package/Tabs/index.d.ts +3 -3
- package/Tabs/index.js +47 -65
- package/Tag/TagGroup.d.ts +1 -1
- package/Tag/index.d.ts +2 -2
- package/Tag/index.js +72 -107
- package/TextEditor/index.d.ts +2 -2
- package/TextEditor/index.js +81 -105
- package/TextField/index.js +141 -220
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +12 -15
- package/Timeline/index.js +42 -52
- package/Title/index.js +10 -9
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButton/index.js +50 -70
- package/Tooltip/index.js +64 -98
- package/Tooltip/interface.d.ts +1 -1
- package/Transfer/index.d.ts +1 -1
- package/Transfer/index.js +114 -137
- package/Transfer/useClick.d.ts +1 -1
- package/Tree/index.js +10 -10
- package/Tree/interface.d.ts +6 -6
- package/Upload/Dragger/index.d.ts +1 -1
- package/Upload/ImageUpload/index.d.ts +1 -1
- package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
- package/Upload/index.d.ts +1 -1
- package/Upload/index.js +283 -475
- package/Upload/interface.d.ts +2 -2
- package/_verture/{constant-bf34e6fa.js → constant-66aa48a1.js} +0 -1
- package/_verture/defineProperty-62acccfc.js +34 -0
- package/_verture/{index-342379c6.js → index-06fea29b.js} +79 -124
- package/_verture/{index-48875ffd.js → index-131f8fe5.js} +80 -181
- package/_verture/{index-31ce5a11.js → index-92144ad3.js} +238 -445
- package/_verture/{index-bbed73a3.js → index-be4faaee.js} +19 -61
- package/_verture/{intl-336570e4.js → intl-5cbb940c.js} +4 -12
- package/_verture/{modalContext-d646d9db.js → modalContext-c749e1c6.js} +18 -43
- package/_verture/{slicedToArray-d7722f4b.js → slicedToArray-77980792.js} +23 -25
- package/_verture/{toConsumableArray-f8047a75.js → toConsumableArray-87c7d895.js} +1 -1
- package/_verture/{useFormatMessage-f4452258.js → useFormatMessage-703f8b20.js} +1 -3
- package/_verture/{useGlobalProps-af9a2af6.js → useGlobalProps-1b846a65.js} +1 -2
- package/_verture/{usePopupContainer-b8ab7cab.js → usePopupContainer-87febeb9.js} +10 -25
- package/_verture/{util-a77b261e.js → util-7e1fb1e2.js} +2 -3
- package/index.d.ts +2 -4
- package/index.js +15 -16
- package/package.json +167 -168
- package/Test/index.d.ts +0 -3
- package/Test/index.js +0 -9
- package/_verture/defineProperty-0590dc61.js +0 -16
package/TimePicker/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface TimePickerProps extends Omit<PickerTimeProps<Dayjs>, 'picker'>
|
|
|
14
14
|
popupClassName?: string;
|
|
15
15
|
}
|
|
16
16
|
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<any>>;
|
|
17
|
-
|
|
17
|
+
type MergedTimePicker = typeof TimePicker & {
|
|
18
18
|
TimeRangePicker: typeof RangePicker;
|
|
19
19
|
RangePicker: typeof RangePicker;
|
|
20
20
|
};
|
package/TimePicker/index.js
CHANGED
|
@@ -5,27 +5,27 @@ import DatePicker from '../DatePicker/index.js';
|
|
|
5
5
|
import 'rc-picker/es/generate/dayjs';
|
|
6
6
|
import '../Button/index.js';
|
|
7
7
|
import '../_verture/typeof-498dd2b1.js';
|
|
8
|
-
import '../_verture/slicedToArray-
|
|
8
|
+
import '../_verture/slicedToArray-77980792.js';
|
|
9
9
|
import 'clsx';
|
|
10
10
|
import '@para-ui/icons/LoadingF';
|
|
11
11
|
import '@para-ui/icons/Forbid';
|
|
12
12
|
import '../Tooltip/index.js';
|
|
13
13
|
import 'rc-tooltip';
|
|
14
14
|
import 'rc-tooltip/lib/placements';
|
|
15
|
-
import '../_verture/constant-
|
|
15
|
+
import '../_verture/constant-66aa48a1.js';
|
|
16
16
|
import '../_verture/style-inject.es-300983ab.js';
|
|
17
17
|
import '@para-ui/icons/Down';
|
|
18
|
-
import '../_verture/index-
|
|
18
|
+
import '../_verture/index-be4faaee.js';
|
|
19
19
|
import 'rc-dropdown';
|
|
20
|
-
import '../_verture/usePopupContainer-
|
|
20
|
+
import '../_verture/usePopupContainer-87febeb9.js';
|
|
21
21
|
import 'dayjs';
|
|
22
22
|
import '@paraview/lib';
|
|
23
|
-
import '../_verture/useFormatMessage-
|
|
23
|
+
import '../_verture/useFormatMessage-703f8b20.js';
|
|
24
24
|
import '@para-ui/core/GlobalContext';
|
|
25
25
|
import '../Tag/index.js';
|
|
26
|
-
import '../_verture/defineProperty-
|
|
26
|
+
import '../_verture/defineProperty-62acccfc.js';
|
|
27
27
|
import '@para-ui/icons/Close';
|
|
28
|
-
import '../_verture/toConsumableArray-
|
|
28
|
+
import '../_verture/toConsumableArray-87c7d895.js';
|
|
29
29
|
import '../AutoTips/index.js';
|
|
30
30
|
import '@para-ui/icons/Plus';
|
|
31
31
|
import 'rc-picker';
|
|
@@ -41,8 +41,8 @@ import '../HelperText/index.js';
|
|
|
41
41
|
import '@para-ui/icons/SortRight';
|
|
42
42
|
|
|
43
43
|
var InternalTimePicker = DatePicker.TimePicker,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
InternalRangePicker = DatePicker.RangePicker;
|
|
45
|
+
//time range
|
|
46
46
|
var RangePicker = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
47
47
|
return jsx(InternalRangePicker, Object.assign({}, props, {
|
|
48
48
|
dropdownClassName: props.popupClassName,
|
|
@@ -53,19 +53,16 @@ var RangePicker = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
53
53
|
});
|
|
54
54
|
var TimePicker = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
55
55
|
var addon = _a.addon,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
renderExtraFooter = _a.renderExtraFooter,
|
|
57
|
+
popupClassName = _a.popupClassName,
|
|
58
|
+
restProps = __rest(_a, ["addon", "renderExtraFooter", "popupClassName"]);
|
|
60
59
|
var internalRenderExtraFooter = React__default.useMemo(function () {
|
|
61
60
|
if (renderExtraFooter) {
|
|
62
61
|
return renderExtraFooter;
|
|
63
62
|
}
|
|
64
|
-
|
|
65
63
|
if (addon) {
|
|
66
64
|
return addon;
|
|
67
65
|
}
|
|
68
|
-
|
|
69
66
|
return undefined;
|
|
70
67
|
}, [addon, renderExtraFooter]);
|
|
71
68
|
return jsx(InternalTimePicker, Object.assign({}, restProps, {
|
package/Timeline/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-
|
|
1
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
|
|
2
2
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-
|
|
6
|
+
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
+
import '../_verture/typeof-498dd2b1.js';
|
|
8
9
|
|
|
10
|
+
//TimelineItem
|
|
9
11
|
var TimelineItem = function TimelineItem(props) {
|
|
10
12
|
var _clsx, _clsx2;
|
|
11
|
-
|
|
12
13
|
var className = props.className,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
color = props.color,
|
|
15
|
+
dot = props.dot,
|
|
16
|
+
_props$pending = props.pending,
|
|
17
|
+
pending = _props$pending === void 0 ? false : _props$pending;
|
|
18
|
+
props.position;
|
|
19
|
+
var label = props.label,
|
|
20
|
+
children = props.children,
|
|
21
|
+
restProps = __rest(props, ["className", "color", "dot", "pending", "position", "label", "children"]);
|
|
22
|
+
var prefixCls = "".concat($rcPrefixCls, "-timeline");
|
|
23
|
+
//item cls
|
|
24
|
+
var itemClassName = clsx((_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-item"), true), _defineProperty(_clsx, "".concat(prefixCls, "-item-pending"), pending), _clsx), className);
|
|
25
|
+
//dot cls
|
|
26
26
|
var dotClassName = clsx((_clsx2 = {}, _defineProperty(_clsx2, "".concat(prefixCls, "-item-head"), true), _defineProperty(_clsx2, "".concat(prefixCls, "-item-head-custom"), !!dot), _defineProperty(_clsx2, "".concat(prefixCls, "-item-head-").concat(color), color), _clsx2));
|
|
27
27
|
return jsxs("li", Object.assign({}, restProps, {
|
|
28
28
|
className: itemClassName
|
|
@@ -52,28 +52,25 @@ var TimelineItem = function TimelineItem(props) {
|
|
|
52
52
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/9 下午8:00\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-timeline {\n color: rgb(46, 55, 67);\n font-size: 14px;\n line-height: 1.5715;\n list-style: none;\n}\n.paraui-v3-timeline .component-timeline-item {\n position: relative;\n margin: 0;\n min-height: 70px;\n padding-bottom: 20px;\n font-size: 14px;\n list-style: none;\n}\n.paraui-v3-timeline .component-timeline-item-disabled .component-timeline-item-head:not(.component-timeline-item-head-custom) {\n background-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-timeline .component-timeline-item-disabled .component-timeline-item-head svg {\n color: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-timeline .component-timeline-item-disabled .component-timeline-item-content {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-timeline .component-timeline-item-tail {\n position: absolute;\n top: 16px;\n bottom: 8px;\n left: 3.5px;\n border-left: 1px solid rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-timeline .component-timeline-item-pending .component-timeline-item-head {\n font-size: 12px;\n background-color: transparent;\n}\n.paraui-v3-timeline .component-timeline-item-pending .component-timeline-item-tail {\n display: none;\n}\n.paraui-v3-timeline .component-timeline-item-head {\n position: absolute;\n width: 8px;\n height: 8px;\n background-color: rgb(54, 102, 214);\n border-radius: 100px;\n}\n.paraui-v3-timeline .component-timeline-item-head-custom {\n position: absolute;\n top: 5.5px;\n left: 5px;\n width: auto;\n height: auto;\n margin-top: 0;\n padding: 3px 1px;\n line-height: 1;\n text-align: center;\n border: 0;\n border-radius: 0;\n background-color: transparent;\n transform: translate(-50%, -50%);\n}\n.paraui-v3-timeline .component-timeline-item-content {\n position: relative;\n top: -7px;\n margin: 0 0 0 20px;\n word-break: break-word;\n}\n.paraui-v3-timeline .component-timeline-item-last > .component-timeline-item-tail {\n display: none;\n}\n.paraui-v3-timeline .component-timeline-item-last > .component-timeline-item-content {\n min-height: 48px;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-alternate .component-timeline-item-tail,\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-tail,\n.paraui-v3-timeline.paraui-v3-timeline-label .component-timeline-item-tail,\n.paraui-v3-timeline.paraui-v3-timeline-alternate .component-timeline-item-head,\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-head,\n.paraui-v3-timeline.paraui-v3-timeline-label .component-timeline-item-head,\n.paraui-v3-timeline.paraui-v3-timeline-alternate .component-timeline-item-head-custom,\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-head-custom,\n.paraui-v3-timeline.paraui-v3-timeline-label .component-timeline-item-head-custom {\n left: 50%;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-alternate .component-timeline-item-head,\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-head,\n.paraui-v3-timeline.paraui-v3-timeline-label .component-timeline-item-head {\n margin-left: -4px;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-alternate .component-timeline-item-head-custom,\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-head-custom,\n.paraui-v3-timeline.paraui-v3-timeline-label .component-timeline-item-head-custom {\n margin-left: 1px;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-alternate .component-timeline-item-left .component-timeline-item-content,\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-left .component-timeline-item-content,\n.paraui-v3-timeline.paraui-v3-timeline-label .component-timeline-item-left .component-timeline-item-content {\n left: calc(50% - 4px);\n width: calc(50% - 14px);\n text-align: left;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-alternate .component-timeline-item-right .component-timeline-item-content,\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-right .component-timeline-item-content,\n.paraui-v3-timeline.paraui-v3-timeline-label .component-timeline-item-right .component-timeline-item-content {\n width: calc(50% - 12px);\n margin: 0;\n text-align: right;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-right .component-timeline-item-tail,\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-right .component-timeline-item-head,\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-right .component-timeline-item-head-custom {\n left: calc(100% - 4px - 2px);\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-right .component-timeline-item-right .component-timeline-item-content {\n width: calc(100% - 18px);\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-pending .component-timeline-item-last .component-timeline-item-tail {\n display: block;\n height: calc(100% - 14px);\n border-left: 2px dotted #f0f0f0;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-reverse .component-timeline-item-last .component-timeline-item-tail {\n display: none;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-reverse .component-timeline-item-pending .component-timeline-item-tail {\n top: 15px;\n display: block;\n height: calc(100% - 15px);\n border-left: 2px dotted #f0f0f0;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-reverse .component-timeline-item-pending .component-timeline-item-content {\n min-height: 48px;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-label .component-timeline-item-label {\n position: absolute;\n top: -7.001px;\n width: calc(50% - 12px);\n text-align: right;\n}\n\n.paraui-v3-timeline.paraui-v3-timeline-label .component-timeline-item-right .component-timeline-item-label {\n left: calc(50% + 14px);\n width: calc(50% - 14px);\n text-align: left;\n}";
|
|
53
53
|
styleInject(css_248z);
|
|
54
54
|
|
|
55
|
+
//Timeline
|
|
55
56
|
var Timeline = function Timeline(props) {
|
|
56
57
|
var _clsx;
|
|
57
|
-
|
|
58
58
|
var _props$pending = props.pending,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
pending = _props$pending === void 0 ? null : _props$pending,
|
|
60
|
+
pendingDot = props.pendingDot,
|
|
61
|
+
children = props.children,
|
|
62
|
+
className = props.className,
|
|
63
|
+
_props$reverse = props.reverse,
|
|
64
|
+
reverse = _props$reverse === void 0 ? false : _props$reverse,
|
|
65
|
+
_props$mode = props.mode,
|
|
66
|
+
mode = _props$mode === void 0 ? 'left' : _props$mode,
|
|
67
|
+
align = props.align,
|
|
68
|
+
data = props.data,
|
|
69
|
+
restProps = __rest(props, ["pending", "pendingDot", "children", "className", "reverse", "mode", "align", "data"]);
|
|
71
70
|
var prefixCls = "".concat($prefixCls, "-timeline");
|
|
72
71
|
var innerMode = align !== null && align !== void 0 ? align : mode; //时间轴和内容相对位置
|
|
73
|
-
|
|
74
72
|
var pendingNode = typeof pending === 'boolean' ? null : pending; //是否有幽灵节点
|
|
75
73
|
//pending节点项
|
|
76
|
-
|
|
77
74
|
var pendingItem = pending ? jsx(TimelineItem, Object.assign({
|
|
78
75
|
pending: !!pending,
|
|
79
76
|
dot: pendingDot
|
|
@@ -82,29 +79,24 @@ var Timeline = function Timeline(props) {
|
|
|
82
79
|
})) : null;
|
|
83
80
|
var timeLineItems = React__default.Children.toArray(children);
|
|
84
81
|
timeLineItems.push(pendingItem);
|
|
85
|
-
|
|
86
82
|
if (reverse) {
|
|
87
83
|
//取反
|
|
88
84
|
timeLineItems.reverse();
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
}
|
|
86
|
+
//position cls
|
|
92
87
|
var getPositionCls = function getPositionCls(ele, idx) {
|
|
93
88
|
var _a, _b, _c;
|
|
94
|
-
|
|
95
89
|
if (innerMode === 'alternate') {
|
|
96
90
|
if (((_a = ele === null || ele === void 0 ? void 0 : ele.props) === null || _a === void 0 ? void 0 : _a.position) === 'right') return "".concat($rcPrefixCls, "-timeline-item-right");
|
|
97
91
|
if (((_b = ele === null || ele === void 0 ? void 0 : ele.props) === null || _b === void 0 ? void 0 : _b.position) === 'left') return "".concat($rcPrefixCls, "-timeline-item-left");
|
|
98
92
|
return idx % 2 === 0 ? "".concat($rcPrefixCls, "-timeline-item-left") : "".concat($rcPrefixCls, "-timeline-item-right");
|
|
99
93
|
}
|
|
100
|
-
|
|
101
94
|
if (innerMode === 'left') return "".concat($rcPrefixCls, "-timeline-item-left");
|
|
102
95
|
if (innerMode === 'right') return "".concat($rcPrefixCls, "-timeline-item-right");
|
|
103
96
|
if (((_c = ele === null || ele === void 0 ? void 0 : ele.props) === null || _c === void 0 ? void 0 : _c.position) === 'right') return "".concat($rcPrefixCls, "-timeline-item-right");
|
|
104
97
|
return '';
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
};
|
|
99
|
+
//实际渲染项
|
|
108
100
|
var truthyItems = timeLineItems.filter(function (item) {
|
|
109
101
|
return !!item;
|
|
110
102
|
});
|
|
@@ -116,26 +108,25 @@ var Timeline = function Timeline(props) {
|
|
|
116
108
|
return /*#__PURE__*/React__default.cloneElement(ele, {
|
|
117
109
|
className: clsx([ele.props.className, !reverse && !!pending ? pendingClass : readyClass, getPositionCls(ele, idx)])
|
|
118
110
|
});
|
|
119
|
-
});
|
|
120
|
-
|
|
111
|
+
});
|
|
112
|
+
//label
|
|
121
113
|
var hasLabelItem = timeLineItems.some(function (item) {
|
|
122
114
|
var _a;
|
|
123
|
-
|
|
124
115
|
return !!((_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.label);
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
var makeCls = clsx(prefixCls, (_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-pending"), !!pending), _defineProperty(_clsx, "".concat(prefixCls, "-reverse"), !!reverse), _defineProperty(_clsx, "".concat(prefixCls, "-").concat(innerMode), !!innerMode && !hasLabelItem), _defineProperty(_clsx, "".concat(prefixCls, "-label"), hasLabelItem), _clsx), className);
|
|
128
|
-
|
|
116
|
+
});
|
|
117
|
+
//classname
|
|
118
|
+
var makeCls = clsx(prefixCls, (_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-pending"), !!pending), _defineProperty(_clsx, "".concat(prefixCls, "-reverse"), !!reverse), _defineProperty(_clsx, "".concat(prefixCls, "-").concat(innerMode), !!innerMode && !hasLabelItem), _defineProperty(_clsx, "".concat(prefixCls, "-label"), hasLabelItem), _clsx), className);
|
|
119
|
+
//渲染items
|
|
129
120
|
var renderItems = function renderItems() {
|
|
130
121
|
if (!(data === null || data === void 0 ? void 0 : data.length)) return items;
|
|
131
122
|
var itemsCount = data.length;
|
|
132
123
|
var lastCls = "".concat($rcPrefixCls, "-timeline-item-last");
|
|
133
124
|
return data.map(function (item, idx) {
|
|
134
125
|
var dotIcon = item.dotIcon,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
126
|
+
content = item.content,
|
|
127
|
+
_item$disabled = item.disabled,
|
|
128
|
+
disabled = _item$disabled === void 0 ? false : _item$disabled,
|
|
129
|
+
className = item.className;
|
|
139
130
|
var pendingClass = idx === itemsCount - 2 ? lastCls : '';
|
|
140
131
|
var readyClass = idx === itemsCount - 1 ? lastCls : '';
|
|
141
132
|
return jsx(TimelineItem, Object.assign({
|
|
@@ -146,7 +137,6 @@ var Timeline = function Timeline(props) {
|
|
|
146
137
|
}));
|
|
147
138
|
});
|
|
148
139
|
};
|
|
149
|
-
|
|
150
140
|
return jsx("ul", Object.assign({}, restProps, {
|
|
151
141
|
className: makeCls
|
|
152
142
|
}, {
|
package/Title/index.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
3
|
+
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
4
4
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
5
5
|
|
|
6
6
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/8/11 2:55 PM\n* @description 标题\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-title {\n display: flex;\n align-items: center;\n line-height: 20px;\n}\n.paraui-v3-title .title-ink {\n width: 4px;\n height: 14px;\n background-color: rgb(54, 102, 214);\n border-radius: 2px;\n}\n.paraui-v3-title .title-icon {\n display: inline-flex;\n}\n.paraui-v3-title .title-text {\n margin-left: 8px;\n font-size: 14px;\n font-weight: 700;\n color: rgb(28, 41, 60);\n}\n.paraui-v3-title .title-subtext {\n margin-left: 12px;\n font-size: 14px;\n font-weight: 400;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-title .title-link {\n margin-left: 12px;\n text-decoration: none;\n outline: none;\n font-size: 14px;\n font-weight: 400;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-title.paraui-v3-title-large .title-icon svg {\n font-size: 30px;\n}\n.paraui-v3-title.paraui-v3-title-large .title-text {\n font-size: 18px;\n}\n.paraui-v3-title.paraui-v3-title-medium .title-icon svg {\n font-size: 24px;\n}\n.paraui-v3-title.paraui-v3-title-medium .title-text {\n font-size: 16px;\n}\n.paraui-v3-title.paraui-v3-title-small .title-icon svg {\n font-size: 20px;\n}\n.paraui-v3-title.paraui-v3-title-small .title-text {\n margin-left: 4px;\n}";
|
|
7
7
|
styleInject(css_248z);
|
|
8
8
|
|
|
9
|
+
//标题
|
|
9
10
|
var Title = function Title(props) {
|
|
10
11
|
var title = props.title,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
subTitle = props.subTitle,
|
|
13
|
+
icon = props.icon,
|
|
14
|
+
link = props.link,
|
|
15
|
+
_props$size = props.size,
|
|
16
|
+
size = _props$size === void 0 ? 'medium' : _props$size,
|
|
17
|
+
className = props.className,
|
|
18
|
+
style = props.style;
|
|
19
|
+
//cls
|
|
19
20
|
var makeCls = clsx("".concat($prefixCls, "-title"), className, icon && "".concat($prefixCls, "-title-").concat(size));
|
|
20
21
|
return jsxs("div", Object.assign({
|
|
21
22
|
className: makeCls,
|
package/ToggleButton/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
|
|
3
3
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
4
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { useState, useRef, useLayoutEffect } from 'react';
|
|
@@ -7,17 +7,17 @@ import { Button } from '../Button/index.js';
|
|
|
7
7
|
import { Tooltip } from '../Tooltip/index.js';
|
|
8
8
|
import { UUID } from '@paraview/lib';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
10
|
+
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
11
11
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
12
12
|
import '../_verture/typeof-498dd2b1.js';
|
|
13
13
|
import '@para-ui/icons/LoadingF';
|
|
14
14
|
import '@para-ui/icons/Forbid';
|
|
15
15
|
import '@para-ui/icons/Down';
|
|
16
|
-
import '../_verture/index-
|
|
16
|
+
import '../_verture/index-be4faaee.js';
|
|
17
17
|
import 'rc-dropdown';
|
|
18
|
-
import '../_verture/usePopupContainer-
|
|
18
|
+
import '../_verture/usePopupContainer-87febeb9.js';
|
|
19
19
|
import 'dayjs';
|
|
20
|
-
import '../_verture/useFormatMessage-
|
|
20
|
+
import '../_verture/useFormatMessage-703f8b20.js';
|
|
21
21
|
import '@para-ui/core/GlobalContext';
|
|
22
22
|
import 'rc-tooltip';
|
|
23
23
|
import 'rc-tooltip/lib/placements';
|
|
@@ -25,72 +25,61 @@ import 'rc-tooltip/lib/placements';
|
|
|
25
25
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/23 上午9:50\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-toggle-button.paraui-v3-button {\n height: 30px;\n padding: 0 20px;\n color: rgb(46, 55, 67);\n line-height: 30px;\n}\n.paraui-v3-toggle-button.paraui-v3-button:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-toggle-button-wrap {\n display: inline-block;\n}\n.paraui-v3-toggle-button .toggle-button-text {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.paraui-v3-toggle-button.paraui-v3-toggle-button-selected {\n border-color: rgb(54, 102, 214);\n color: rgb(54, 102, 214);\n}\n.paraui-v3-toggle-button.paraui-v3-toggle-button-selected:hover {\n border-color: rgb(54, 102, 214);\n color: rgb(54, 102, 214);\n}\n.paraui-v3-toggle-button.paraui-v3-toggle-button-selected[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-toggle-button.paraui-v3-toggle-button-selected[disabled]:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-toggle-button.paraui-v3-toggle-button-selected[disabled]::before {\n border-color: rgba(46, 55, 67, 0.4);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v3-toggle-button.paraui-v3-toggle-button-selected::before {\n content: \" \";\n position: absolute;\n bottom: 0;\n right: 0;\n border: 10px solid rgb(54, 102, 214);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v3-toggle-button.paraui-v3-toggle-button-selected::after {\n content: \" \";\n position: absolute;\n bottom: 2px;\n right: 3px;\n width: 4px;\n height: 8px;\n border: 2px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n border-radius: 2px;\n transform: rotate(45deg);\n}\n.paraui-v3-toggle-button-disabled.paraui-v3-toggle-button {\n color: rgba(46, 55, 67, 0.4);\n pointer-events: auto;\n cursor: not-allowed;\n}\n.paraui-v3-toggle-button-disabled.paraui-v3-toggle-button:hover {\n color: rgba(46, 55, 67, 0.4);\n}\n\n.paraui-v3-togglebutton-group {\n display: flex;\n flex-flow: row wrap;\n}\n.paraui-v3-togglebutton-group .paraui-v3-toggle-button {\n margin: 0 10px;\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button {\n margin: 0;\n padding: 0 16px;\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button:hover {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: transparent;\n border: 0;\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button ~ .paraui-v3-toggle-button::before {\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n content: \"\";\n width: 1px;\n height: 14px;\n background-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button-selected {\n color: rgb(54, 102, 214);\n border: 0;\n font-weight: 700;\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button-selected:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button-selected[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: transparent;\n border: 0;\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button-selected[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button-selected:first-child:before {\n display: none;\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button-selected:not(:first-child)::before {\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n content: \"\";\n width: 1px;\n height: 14px;\n background-color: rgba(171, 176, 185, 0.4);\n border: 0;\n}\n.paraui-v3-togglebutton-group-text .paraui-v3-toggle-button-selected::after {\n display: none;\n}";
|
|
26
26
|
styleInject(css_248z);
|
|
27
27
|
|
|
28
|
+
//切换按钮组
|
|
28
29
|
var ToggleButtonGroup = function ToggleButtonGroup(props) {
|
|
29
30
|
var _props$type = props.type,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
type = _props$type === void 0 ? 'outlined' : _props$type,
|
|
32
|
+
className = props.className,
|
|
33
|
+
style = props.style,
|
|
34
|
+
_props$exclusive = props.exclusive,
|
|
35
|
+
exclusive = _props$exclusive === void 0 ? false : _props$exclusive,
|
|
36
|
+
_props$toggleable = props.toggleable,
|
|
37
|
+
toggleable = _props$toggleable === void 0 ? true : _props$toggleable,
|
|
38
|
+
data = props.data,
|
|
39
|
+
value = props.value,
|
|
40
|
+
onChange = props.onChange;
|
|
41
41
|
if (type === 'text' && !('exclusive' in props)) {
|
|
42
42
|
exclusive = true;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
var makeCls = clsx("".concat($prefixCls, "-togglebutton-group"), className, _defineProperty({}, "".concat($prefixCls, "-togglebutton-group-text"), type === 'text'));
|
|
45
|
+
//多选
|
|
47
46
|
var handleChange = function handleChange(evt, buttonValue) {
|
|
48
47
|
if (!onChange) return;
|
|
49
48
|
var index = value && (value === null || value === void 0 ? void 0 : value.indexOf(buttonValue));
|
|
50
49
|
var newValue;
|
|
51
|
-
|
|
52
50
|
if (value && index >= 0) {
|
|
53
51
|
newValue = value.slice();
|
|
54
52
|
newValue.splice(index, 1);
|
|
55
53
|
} else {
|
|
56
54
|
newValue = value ? value.concat(buttonValue) : [buttonValue];
|
|
57
55
|
}
|
|
58
|
-
|
|
59
56
|
onChange(evt, newValue);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
};
|
|
58
|
+
//单选
|
|
63
59
|
var handleExclusiveChange = function handleExclusiveChange(evt, buttonValue) {
|
|
64
60
|
if (!onChange) return;
|
|
65
|
-
|
|
66
61
|
if (!toggleable) {
|
|
67
62
|
if (value === buttonValue) return;
|
|
68
63
|
onChange(evt, buttonValue);
|
|
69
64
|
return;
|
|
70
65
|
}
|
|
71
|
-
|
|
72
66
|
onChange(evt, value === buttonValue ? null : buttonValue);
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
};
|
|
68
|
+
//是否选中
|
|
76
69
|
var hasValueSelected = function hasValueSelected(value, candidate) {
|
|
77
70
|
if (candidate === undefined || value === undefined) return false;
|
|
78
|
-
|
|
79
71
|
if (Array.isArray(candidate)) {
|
|
80
72
|
return candidate.includes(value);
|
|
81
73
|
}
|
|
82
|
-
|
|
83
74
|
return value === candidate;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
|
|
75
|
+
};
|
|
76
|
+
//渲染组
|
|
87
77
|
var renderGroup = function renderGroup() {
|
|
88
78
|
if (!data || !(data === null || data === void 0 ? void 0 : data.length)) return null;
|
|
89
79
|
return data.map(function (item, idx) {
|
|
90
80
|
var label = item.label,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
81
|
+
selected = item.selected,
|
|
82
|
+
rest = __rest(item, ["label", "selected"]);
|
|
94
83
|
var hasSelected = selected === undefined ? hasValueSelected(rest.value, value) : selected;
|
|
95
84
|
return jsx(ToggleButton, Object.assign({}, rest, {
|
|
96
85
|
style: style,
|
|
@@ -103,7 +92,6 @@ var ToggleButtonGroup = function ToggleButtonGroup(props) {
|
|
|
103
92
|
}), idx);
|
|
104
93
|
});
|
|
105
94
|
};
|
|
106
|
-
|
|
107
95
|
return jsx("div", Object.assign({
|
|
108
96
|
className: makeCls
|
|
109
97
|
}, {
|
|
@@ -111,38 +99,35 @@ var ToggleButtonGroup = function ToggleButtonGroup(props) {
|
|
|
111
99
|
}));
|
|
112
100
|
};
|
|
113
101
|
|
|
102
|
+
//切换按钮
|
|
114
103
|
var ToggleButton = function ToggleButton(props) {
|
|
115
104
|
var _clsx;
|
|
116
|
-
|
|
117
105
|
var className = props.className,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
106
|
+
style = props.style,
|
|
107
|
+
children = props.children,
|
|
108
|
+
_props$disabled = props.disabled,
|
|
109
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
110
|
+
_props$selected = props.selected,
|
|
111
|
+
selected = _props$selected === void 0 ? false : _props$selected,
|
|
112
|
+
value = props.value,
|
|
113
|
+
_props$autoToolTipOve = props.autoToolTipOverflow,
|
|
114
|
+
autoToolTipOverflow = _props$autoToolTipOve === void 0 ? true : _props$autoToolTipOve,
|
|
115
|
+
_props$width = props.width,
|
|
116
|
+
width = _props$width === void 0 ? 120 : _props$width,
|
|
117
|
+
onClick = props.onClick,
|
|
118
|
+
restProps = __rest(props, ["className", "style", "children", "disabled", "selected", "value", "autoToolTipOverflow", "width", "onClick"]);
|
|
132
119
|
var _useState = useState(false),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
120
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
121
|
+
hasTip = _useState2[0],
|
|
122
|
+
setHasTip = _useState2[1];
|
|
137
123
|
var id = useRef(UUID()).current;
|
|
138
|
-
var prefixCls = "".concat($prefixCls, "-toggle-button");
|
|
139
|
-
|
|
140
|
-
var makeCls = clsx(prefixCls, className, (_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-selected"), selected), _defineProperty(_clsx, "".concat(prefixCls, "-disabled"), disabled), _clsx));
|
|
141
|
-
|
|
124
|
+
var prefixCls = "".concat($prefixCls, "-toggle-button");
|
|
125
|
+
//className
|
|
126
|
+
var makeCls = clsx(prefixCls, className, (_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-selected"), selected), _defineProperty(_clsx, "".concat(prefixCls, "-disabled"), disabled), _clsx));
|
|
127
|
+
//点击事件
|
|
142
128
|
var handleClick = function handleClick(evt) {
|
|
143
129
|
if (onClick) onClick(evt, value);
|
|
144
130
|
};
|
|
145
|
-
|
|
146
131
|
useLayoutEffect(function () {
|
|
147
132
|
if (!autoToolTipOverflow) return;
|
|
148
133
|
var btn = document.querySelector("[data-id=\"".concat(id, "\"]"));
|
|
@@ -150,14 +135,12 @@ var ToggleButton = function ToggleButton(props) {
|
|
|
150
135
|
var span = document.createElement('span');
|
|
151
136
|
span.textContent = children;
|
|
152
137
|
document.body.appendChild(span);
|
|
153
|
-
|
|
154
138
|
if (span.offsetWidth > btn.offsetWidth - 16 * 2) {
|
|
155
139
|
setHasTip(true);
|
|
156
140
|
}
|
|
157
|
-
|
|
158
141
|
span === null || span === void 0 ? void 0 : span.remove();
|
|
159
|
-
}, []);
|
|
160
|
-
|
|
142
|
+
}, []);
|
|
143
|
+
//渲染
|
|
161
144
|
var renderToggleButton = function renderToggleButton() {
|
|
162
145
|
var btn = jsx(Button, Object.assign({
|
|
163
146
|
"data-id": id,
|
|
@@ -178,7 +161,6 @@ var ToggleButton = function ToggleButton(props) {
|
|
|
178
161
|
children: children
|
|
179
162
|
}))
|
|
180
163
|
}));
|
|
181
|
-
|
|
182
164
|
if (hasTip) {
|
|
183
165
|
return jsx(Tooltip, Object.assign({
|
|
184
166
|
title: children
|
|
@@ -190,10 +172,8 @@ var ToggleButton = function ToggleButton(props) {
|
|
|
190
172
|
}))
|
|
191
173
|
}));
|
|
192
174
|
}
|
|
193
|
-
|
|
194
175
|
return btn;
|
|
195
176
|
};
|
|
196
|
-
|
|
197
177
|
return jsx(Fragment, {
|
|
198
178
|
children: renderToggleButton()
|
|
199
179
|
});
|