@para-ui/core 3.0.53 → 3.0.55
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/README.md +24 -0
- package/package.json +1 -1
- package/AutoBox/index.d.ts +0 -34
- package/AutoBox/index.js +0 -277
- package/AutoBox/protal.d.ts +0 -17
- package/AutoTips/autoTipsMultiline/index.d.ts +0 -18
- package/AutoTips/index.d.ts +0 -35
- package/AutoTips/index.js +0 -271
- package/Breadcrumbs/index.d.ts +0 -53
- package/Breadcrumbs/index.js +0 -266
- package/Breadcrumbs/lang/en_US.d.ts +0 -4
- package/Breadcrumbs/lang/index.d.ts +0 -9
- package/Breadcrumbs/lang/zh_CN.d.ts +0 -4
- package/Button/SplitButton.d.ts +0 -64
- package/Button/index.d.ts +0 -79
- package/Button/index.js +0 -376
- package/Button/lang/en_US.d.ts +0 -4
- package/Button/lang/index.d.ts +0 -9
- package/Button/lang/zh_CN.d.ts +0 -4
- package/ButtonGroup/index.d.ts +0 -33
- package/ButtonGroup/index.js +0 -124
- package/Carousel/index.d.ts +0 -38
- package/Carousel/index.js +0 -78
- package/Cascader/index.d.ts +0 -54
- package/Cascader/index.js +0 -159
- package/Cascader/lang/en_US.d.ts +0 -4
- package/Cascader/lang/index.d.ts +0 -9
- package/Cascader/lang/zh_CN.d.ts +0 -4
- package/Checkbox/index.d.ts +0 -40
- package/Checkbox/index.js +0 -109
- package/CheckboxGroup/index.d.ts +0 -45
- package/CheckboxGroup/index.js +0 -142
- package/Collapse/collapsePanel.d.ts +0 -30
- package/Collapse/index.d.ts +0 -57
- package/Collapse/index.js +0 -152
- package/Collapse/motion.d.ts +0 -5
- package/Collapse/util.d.ts +0 -11
- package/CollapseBox/index.d.ts +0 -27
- package/CollapseBox/index.js +0 -148
- package/CollapseBox/util.d.ts +0 -5
- package/CollapseLayout/index.d.ts +0 -53
- package/CollapseLayout/index.js +0 -176
- package/ColorPicker/index.d.ts +0 -4
- package/ColorPicker/index.js +0 -4
- package/ComboSelect/index.d.ts +0 -6
- package/ComboSelect/index.js +0 -1049
- package/ComboSelect/interface.d.ts +0 -146
- package/ComboSelect/lang/en_US.d.ts +0 -9
- package/ComboSelect/lang/index.d.ts +0 -19
- package/ComboSelect/lang/zh_CN.d.ts +0 -9
- package/ComboSelect/utils.d.ts +0 -9
- package/Container/index.d.ts +0 -77
- package/Container/index.js +0 -232
- package/DatePicker/PickerButton.d.ts +0 -3
- package/DatePicker/PickerTag.d.ts +0 -3
- package/DatePicker/generatePicker/generateRangePicker.d.ts +0 -4
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +0 -11
- package/DatePicker/generatePicker/index.d.ts +0 -95
- package/DatePicker/index.d.ts +0 -18
- package/DatePicker/index.js +0 -633
- package/DatePicker/lang/en_US.d.ts +0 -3
- package/DatePicker/lang/index.d.ts +0 -7
- package/DatePicker/lang/zh_CN.d.ts +0 -3
- package/DatePicker/util.d.ts +0 -22
- package/Desktop/index.d.ts +0 -57
- package/Desktop/index.js +0 -746
- package/DragVerify/index.d.ts +0 -36
- package/DragVerify/index.js +0 -385
- package/DragVerify/lang/en_US.d.ts +0 -5
- package/DragVerify/lang/index.d.ts +0 -11
- package/DragVerify/lang/zh_CN.d.ts +0 -5
- package/Drawer/index.d.ts +0 -11
- package/Drawer/index.js +0 -235
- package/Drawer/interface.d.ts +0 -92
- package/Drawer/lang/en_US.d.ts +0 -5
- package/Drawer/lang/index.d.ts +0 -11
- package/Drawer/lang/zh_CN.d.ts +0 -5
- package/Dropdown/index.d.ts +0 -40
- package/Dropdown/index.js +0 -10
- package/DynamicMultiBox/formItem.d.ts +0 -14
- package/DynamicMultiBox/index.d.ts +0 -5
- package/DynamicMultiBox/index.js +0 -1313
- package/DynamicMultiBox/interface.d.ts +0 -161
- package/DynamicMultiBox/rowForm.d.ts +0 -24
- package/Empty/images/index.d.ts +0 -3
- package/Empty/index.d.ts +0 -30
- package/Empty/index.js +0 -642
- package/Empty/lang/en_US.d.ts +0 -6
- package/Empty/lang/index.d.ts +0 -13
- package/Empty/lang/zh_CN.d.ts +0 -6
- package/Form/index.d.ts +0 -187
- package/Form/index.js +0 -355
- package/FormItem/compoments/defaultCompoments/index.d.ts +0 -19
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +0 -8
- package/FormItem/compoments/formFile/index.d.ts +0 -38
- package/FormItem/compoments/formRadioGroup/index.d.ts +0 -8
- package/FormItem/compoments/formSelect/index.d.ts +0 -18
- package/FormItem/errorTips.d.ts +0 -12
- package/FormItem/index.d.ts +0 -152
- package/FormItem/index.js +0 -78
- package/FormItem/itemType.d.ts +0 -42
- package/FormItem/validateFunction.d.ts +0 -15
- package/FunctionModal/dialog.d.ts +0 -58
- package/FunctionModal/index.d.ts +0 -8
- package/FunctionModal/index.js +0 -43
- package/FunctionModal/modalContext.d.ts +0 -15
- package/GlobalContext/componentsProps.d.ts +0 -21
- package/GlobalContext/confirmLocale.d.ts +0 -7
- package/GlobalContext/constant.d.ts +0 -8
- package/GlobalContext/index.d.ts +0 -28
- package/GlobalContext/index.js +0 -41
- package/GlobalContext/intl.d.ts +0 -34
- package/GlobalContext/useFormatMessage.d.ts +0 -3
- package/GlobalContext/usePopupContainer.d.ts +0 -4
- package/Help/index.d.ts +0 -24
- package/Help/index.js +0 -41
- package/HelperText/index.d.ts +0 -27
- package/HelperText/index.js +0 -34
- package/Hooks/useGlobalProps.d.ts +0 -1
- package/InputLang/index.d.ts +0 -46
- package/InputLang/index.js +0 -247
- package/InputNumber/index.d.ts +0 -71
- package/InputNumber/index.js +0 -277
- package/Label/index.d.ts +0 -37
- package/Label/index.js +0 -85
- package/Loading/index.d.ts +0 -17
- package/Loading/index.js +0 -47
- package/Menu/footerExpansion.d.ts +0 -9
- package/Menu/index.d.ts +0 -10
- package/Menu/index.js +0 -1105
- package/Menu/interface.d.ts +0 -141
- package/Menu/logo.d.ts +0 -9
- package/Menu/verticalMenuList.d.ts +0 -14
- package/Message/index.d.ts +0 -99
- package/Message/index.js +0 -246
- package/Modal/Confirm/index.d.ts +0 -65
- package/Modal/index.d.ts +0 -99
- package/Modal/index.js +0 -421
- package/Modal/lang/en_US.d.ts +0 -5
- package/Modal/lang/index.d.ts +0 -11
- package/Modal/lang/zh_CN.d.ts +0 -5
- package/MultiBox/index.d.ts +0 -58
- package/MultiBox/index.js +0 -272
- package/MultiBox/lang/en_US.d.ts +0 -4
- package/MultiBox/lang/index.d.ts +0 -9
- package/MultiBox/lang/zh_CN.d.ts +0 -4
- package/Notification/index.d.ts +0 -74
- package/Notification/index.js +0 -252
- package/OperateBtn/index.d.ts +0 -59
- package/OperateBtn/index.js +0 -237
- package/OperateBtn/lang/en_US.d.ts +0 -4
- package/OperateBtn/lang/index.d.ts +0 -9
- package/OperateBtn/lang/zh_CN.d.ts +0 -4
- package/PageHeader/horizontalMeun.d.ts +0 -9
- package/PageHeader/horizontalMeunRight.d.ts +0 -9
- package/PageHeader/index.d.ts +0 -10
- package/PageHeader/index.js +0 -1050
- package/PageHeader/interface.d.ts +0 -169
- package/Pagination/index.d.ts +0 -46
- package/Pagination/index.js +0 -461
- package/Pagination/lang/en_US.d.ts +0 -8
- package/Pagination/lang/index.d.ts +0 -17
- package/Pagination/lang/zh_CN.d.ts +0 -8
- package/ParauiProvider/index.d.ts +0 -8
- package/ParauiProvider/index.js +0 -52
- package/PasswordRules/index.d.ts +0 -46
- package/PasswordRules/index.js +0 -113
- package/PopConfirm/index.d.ts +0 -61
- package/PopConfirm/index.js +0 -194
- package/PopConfirm/lang/en_US.d.ts +0 -5
- package/PopConfirm/lang/index.d.ts +0 -11
- package/PopConfirm/lang/zh_CN.d.ts +0 -5
- package/Popover/index.d.ts +0 -16
- package/Popover/index.js +0 -59
- package/Progress/Line.d.ts +0 -47
- package/Progress/Steps.d.ts +0 -17
- package/Progress/index.d.ts +0 -83
- package/Progress/index.js +0 -323
- package/Progress/utils.d.ts +0 -6
- package/Querying/images/index.d.ts +0 -3
- package/Querying/index.d.ts +0 -26
- package/Querying/index.js +0 -760
- package/Querying/lang/en_US.d.ts +0 -4
- package/Querying/lang/index.d.ts +0 -9
- package/Querying/lang/zh_CN.d.ts +0 -4
- package/Radio/index.d.ts +0 -38
- package/Radio/index.js +0 -97
- package/RadioGroup/index.d.ts +0 -46
- package/RadioGroup/index.js +0 -134
- package/Search/index.d.ts +0 -57
- package/Search/index.js +0 -208
- package/Select/index.d.ts +0 -93
- package/Select/index.js +0 -1146
- package/Select/lang/en_US.d.ts +0 -5
- package/Select/lang/index.d.ts +0 -11
- package/Select/lang/zh_CN.d.ts +0 -5
- package/SelectInput/index.d.ts +0 -12
- package/SelectInput/index.js +0 -55
- package/Selector/index.d.ts +0 -11
- package/Selector/index.js +0 -2175
- package/Selector/interface.d.ts +0 -432
- package/Selector/lang/en_US.d.ts +0 -11
- package/Selector/lang/index.d.ts +0 -23
- package/Selector/lang/zh_CN.d.ts +0 -11
- package/Selector/selectorData/index.d.ts +0 -10
- package/Selector/selectorMain/index.d.ts +0 -10
- package/Selector/selectorNode/index.d.ts +0 -10
- package/Selector/util.d.ts +0 -15
- package/SelectorPicker/index.d.ts +0 -53
- package/SelectorPicker/index.js +0 -444
- package/SelectorPicker/lang/en_US.d.ts +0 -5
- package/SelectorPicker/lang/index.d.ts +0 -11
- package/SelectorPicker/lang/zh_CN.d.ts +0 -5
- package/SingleBox/index.d.ts +0 -44
- package/SingleBox/index.js +0 -224
- package/SingleBox/lang/en_US.d.ts +0 -4
- package/SingleBox/lang/index.d.ts +0 -9
- package/SingleBox/lang/zh_CN.d.ts +0 -4
- package/Slider/index.d.ts +0 -14
- package/Slider/index.js +0 -119
- package/Slider/interface.d.ts +0 -102
- package/Split/index.d.ts +0 -7
- package/Split/index.js +0 -123
- package/Status/index.d.ts +0 -21
- package/Status/index.js +0 -37
- package/Stepper/icons.d.ts +0 -5
- package/Stepper/index.d.ts +0 -59
- package/Stepper/index.js +0 -97
- package/Switch/index.d.ts +0 -78
- package/Switch/index.js +0 -71
- package/Table/index.d.ts +0 -10
- package/Table/index.js +0 -2999
- package/Table/interface.d.ts +0 -346
- package/Table/lang/en_US.d.ts +0 -8
- package/Table/lang/index.d.ts +0 -17
- package/Table/lang/zh_CN.d.ts +0 -8
- package/Table/tableBody.d.ts +0 -9
- package/Table/tableBodyElement/index.d.ts +0 -15
- package/Table/tableBodyInterface.d.ts +0 -73
- package/Table/tableContainer/index.d.ts +0 -16
- package/Table/tableElement/index.d.ts +0 -17
- package/Table/tableHead.d.ts +0 -9
- package/Table/tableHeadElement/index.d.ts +0 -15
- package/Table/tableHeadInterface.d.ts +0 -37
- package/Table/tablePagination.d.ts +0 -9
- package/Table/tablePaginationInterface.d.ts +0 -27
- package/Table/tdElement/index.d.ts +0 -15
- package/Table/thElement/index.d.ts +0 -28
- package/Table/trElement/index.d.ts +0 -15
- package/Table/util.d.ts +0 -34
- package/Tabs/index.d.ts +0 -69
- package/Tabs/index.js +0 -205
- package/Tabs/lang/en_US.d.ts +0 -4
- package/Tabs/lang/index.d.ts +0 -9
- package/Tabs/lang/zh_CN.d.ts +0 -4
- package/Tag/TagGroup.d.ts +0 -66
- package/Tag/index.d.ts +0 -34
- package/Tag/index.js +0 -259
- package/TextEditor/common.d.ts +0 -11
- package/TextEditor/index.d.ts +0 -127
- package/TextEditor/index.js +0 -286
- package/TextField/index.d.ts +0 -90
- package/TextField/index.js +0 -611
- package/TimePicker/index.d.ts +0 -22
- package/TimePicker/index.js +0 -80
- package/TimePicker/locale/en_US.d.ts +0 -3
- package/TimePicker/locale/zh_CN.d.ts +0 -3
- package/TimePicker/style/index.d.ts +0 -1
- package/Timeline/TimelineItem.d.ts +0 -30
- package/Timeline/index.d.ts +0 -32
- package/Timeline/index.js +0 -148
- package/Title/index.d.ts +0 -30
- package/Title/index.js +0 -50
- package/ToggleButton/ToggleButtonGroup.d.ts +0 -49
- package/ToggleButton/index.d.ts +0 -49
- package/ToggleButton/index.js +0 -193
- package/Tooltip/index.d.ts +0 -11
- package/Tooltip/index.js +0 -368
- package/Tooltip/interface.d.ts +0 -35
- package/Tooltip/utils.d.ts +0 -18
- package/Transfer/box.d.ts +0 -38
- package/Transfer/index.d.ts +0 -32
- package/Transfer/index.js +0 -611
- package/Transfer/lang/en_US.d.ts +0 -10
- package/Transfer/lang/index.d.ts +0 -21
- package/Transfer/lang/zh_CN.d.ts +0 -10
- package/Transfer/useClick.d.ts +0 -3
- package/Tree/OperateBar/index.d.ts +0 -13
- package/Tree/Tree.d.ts +0 -4
- package/Tree/index.d.ts +0 -5
- package/Tree/index.js +0 -38
- package/Tree/interface.d.ts +0 -210
- package/Tree/lang/en_US.d.ts +0 -8
- package/Tree/lang/index.d.ts +0 -17
- package/Tree/lang/zh_CN.d.ts +0 -8
- package/Tree/utils/closestPolyfill.d.ts +0 -0
- package/Tree/utils/tools.d.ts +0 -25
- package/Tree/utils/treeUtil.d.ts +0 -15
- package/Upload/Dragger/index.d.ts +0 -10
- package/Upload/ErroTip/index.d.ts +0 -13
- package/Upload/ImageUpload/index.d.ts +0 -16
- package/Upload/ImgCrop/EasyCrop.d.ts +0 -17
- package/Upload/ImgCrop/constants.d.ts +0 -7
- package/Upload/ImgCrop/index.d.ts +0 -6
- package/Upload/ImgCrop/interface.d.ts +0 -48
- package/Upload/UploadList/index.d.ts +0 -5
- package/Upload/index.d.ts +0 -15
- package/Upload/index.js +0 -1446
- package/Upload/interface.d.ts +0 -136
- package/Upload/lang/en_US.d.ts +0 -12
- package/Upload/lang/index.d.ts +0 -25
- package/Upload/lang/zh_CN.d.ts +0 -12
- package/_verture/constant-66aa48a1.js +0 -10
- package/_verture/defineProperty-62acccfc.js +0 -34
- package/_verture/index-74f820ba.js +0 -1355
- package/_verture/index-77f9e0fb.js +0 -236
- package/_verture/index-9fd86055.js +0 -711
- package/_verture/index-a369ca3f.js +0 -4
- package/_verture/index-beef914f.js +0 -340
- package/_verture/index-e2881a53.js +0 -16
- package/_verture/intl-5cbb940c.js +0 -57
- package/_verture/modalContext-92bb0e16.js +0 -201
- package/_verture/slicedToArray-76060636.js +0 -43
- package/_verture/sortable.esm-49896035.js +0 -3791
- package/_verture/style-inject.es-300983ab.js +0 -28
- package/_verture/toConsumableArray-81040c9e.js +0 -19
- package/_verture/tslib.es6-55ed4bd2.js +0 -38
- package/_verture/typeof-498dd2b1.js +0 -11
- package/_verture/unsupportedIterableToArray-cb478f24.js +0 -16
- package/_verture/useFormatMessage-703f8b20.js +0 -20
- package/_verture/useGlobalProps-1b846a65.js +0 -11
- package/_verture/usePopupContainer-87febeb9.js +0 -68
- package/_verture/util-7e1fb1e2.js +0 -18
- package/index.d.ts +0 -144
- package/index.js +0 -180
- package/umd/AutoBox.js +0 -43
- package/umd/AutoTips.js +0 -15
- package/umd/Breadcrumbs.js +0 -42
- package/umd/Button.js +0 -43
- package/umd/ButtonGroup.js +0 -43
- package/umd/Carousel.js +0 -6
- package/umd/Cascader.js +0 -43
- package/umd/Checkbox.js +0 -42
- package/umd/CheckboxGroup.js +0 -42
- package/umd/Collapse.js +0 -43
- package/umd/CollapseBox.js +0 -1
- package/umd/CollapseLayout.js +0 -29
- package/umd/ColorPicker.js +0 -1
- package/umd/ComboSelect.js +0 -42
- package/umd/Container.js +0 -1
- package/umd/DatePicker.js +0 -42
- package/umd/Desktop.js +0 -42
- package/umd/DragVerify.js +0 -28
- package/umd/Drawer.js +0 -43
- package/umd/Dropdown.js +0 -15
- package/umd/DynamicMultiBox.js +0 -54
- package/umd/Empty.js +0 -15
- package/umd/Form.js +0 -42
- package/umd/FormItem.js +0 -42
- package/umd/FunctionModal.js +0 -42
- package/umd/GlobalContext.js +0 -1
- package/umd/Help.js +0 -42
- package/umd/HelperText.js +0 -1
- package/umd/InputLang.js +0 -42
- package/umd/InputNumber.js +0 -42
- package/umd/Label.js +0 -42
- package/umd/Loading.js +0 -29
- package/umd/Menu.js +0 -29
- package/umd/Message.js +0 -30
- package/umd/Modal.js +0 -42
- package/umd/MultiBox.js +0 -42
- package/umd/Notification.js +0 -43
- package/umd/OperateBtn.js +0 -42
- package/umd/PageHeader.js +0 -42
- package/umd/Pagination.js +0 -42
- package/umd/ParauiProvider.js +0 -15
- package/umd/PasswordRules.js +0 -29
- package/umd/PopConfirm.js +0 -42
- package/umd/Popover.js +0 -15
- package/umd/Progress.js +0 -35
- package/umd/Querying.js +0 -15
- package/umd/Radio.js +0 -42
- package/umd/RadioGroup.js +0 -42
- package/umd/Search.js +0 -42
- package/umd/Select.js +0 -42
- package/umd/SelectInput.js +0 -42
- package/umd/Selector.js +0 -42
- package/umd/SelectorPicker.js +0 -42
- package/umd/SingleBox.js +0 -42
- package/umd/Slider.js +0 -15
- package/umd/Split.js +0 -1
- package/umd/Status.js +0 -1
- package/umd/Stepper.js +0 -42
- package/umd/Switch.js +0 -42
- package/umd/Table.js +0 -42
- package/umd/Tabs.js +0 -42
- package/umd/Tag.js +0 -43
- package/umd/TextEditor.js +0 -205
- package/umd/TextField.js +0 -42
- package/umd/TimePicker.js +0 -42
- package/umd/Timeline.js +0 -1
- package/umd/Title.js +0 -1
- package/umd/ToggleButton.js +0 -43
- package/umd/Tooltip.js +0 -15
- package/umd/Transfer.js +0 -49
- package/umd/Tree.js +0 -42
- package/umd/Upload.js +0 -56
package/ToggleButton/index.js
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
|
|
2
|
-
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { useRef } from 'react';
|
|
5
|
-
import { Button } from '../Button/index.js';
|
|
6
|
-
import { UUID } from '@paraview/lib';
|
|
7
|
-
import clsx from 'clsx';
|
|
8
|
-
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
9
|
-
import AutoTips from '../AutoTips/index.js';
|
|
10
|
-
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
11
|
-
import '../_verture/typeof-498dd2b1.js';
|
|
12
|
-
import '../_verture/slicedToArray-76060636.js';
|
|
13
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
14
|
-
import '@para-ui/icons/LoadingF';
|
|
15
|
-
import '@para-ui/icons/Forbid';
|
|
16
|
-
import '../Tooltip/index.js';
|
|
17
|
-
import 'rc-tooltip';
|
|
18
|
-
import 'rc-tooltip/lib/placements';
|
|
19
|
-
import '@para-ui/icons/Down';
|
|
20
|
-
import '../_verture/index-77f9e0fb.js';
|
|
21
|
-
import 'rc-dropdown';
|
|
22
|
-
import '../_verture/usePopupContainer-87febeb9.js';
|
|
23
|
-
import 'dayjs';
|
|
24
|
-
import '../_verture/useFormatMessage-703f8b20.js';
|
|
25
|
-
import '@para-ui/core/GlobalContext';
|
|
26
|
-
|
|
27
|
-
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}";
|
|
28
|
-
styleInject(css_248z);
|
|
29
|
-
|
|
30
|
-
//切换按钮组
|
|
31
|
-
var ToggleButtonGroup = function ToggleButtonGroup(props) {
|
|
32
|
-
var _props$type = props.type,
|
|
33
|
-
type = _props$type === void 0 ? 'outlined' : _props$type,
|
|
34
|
-
className = props.className,
|
|
35
|
-
style = props.style,
|
|
36
|
-
_props$exclusive = props.exclusive,
|
|
37
|
-
exclusive = _props$exclusive === void 0 ? false : _props$exclusive,
|
|
38
|
-
_props$toggleable = props.toggleable,
|
|
39
|
-
toggleable = _props$toggleable === void 0 ? true : _props$toggleable,
|
|
40
|
-
data = props.data,
|
|
41
|
-
value = props.value,
|
|
42
|
-
onChange = props.onChange;
|
|
43
|
-
if (type === 'text' && !('exclusive' in props)) {
|
|
44
|
-
exclusive = true;
|
|
45
|
-
}
|
|
46
|
-
var makeCls = clsx("".concat($prefixCls, "-togglebutton-group"), className, _defineProperty({}, "".concat($prefixCls, "-togglebutton-group-text"), type === 'text'));
|
|
47
|
-
//多选
|
|
48
|
-
var handleChange = function handleChange(evt, buttonValue) {
|
|
49
|
-
if (!onChange) return;
|
|
50
|
-
var index = value && (value === null || value === void 0 ? void 0 : value.indexOf(buttonValue));
|
|
51
|
-
var newValue;
|
|
52
|
-
if (value && index >= 0) {
|
|
53
|
-
newValue = value.slice();
|
|
54
|
-
newValue.splice(index, 1);
|
|
55
|
-
} else {
|
|
56
|
-
newValue = value ? value.concat(buttonValue) : [buttonValue];
|
|
57
|
-
}
|
|
58
|
-
onChange(evt, newValue);
|
|
59
|
-
};
|
|
60
|
-
//单选
|
|
61
|
-
var handleExclusiveChange = function handleExclusiveChange(evt, buttonValue) {
|
|
62
|
-
if (!onChange) return;
|
|
63
|
-
if (!toggleable) {
|
|
64
|
-
if (value === buttonValue) return;
|
|
65
|
-
onChange(evt, buttonValue);
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
onChange(evt, value === buttonValue ? null : buttonValue);
|
|
69
|
-
};
|
|
70
|
-
//是否选中
|
|
71
|
-
var hasValueSelected = function hasValueSelected(value, candidate) {
|
|
72
|
-
if (candidate === undefined || value === undefined) return false;
|
|
73
|
-
if (Array.isArray(candidate)) {
|
|
74
|
-
return candidate.includes(value);
|
|
75
|
-
}
|
|
76
|
-
return value === candidate;
|
|
77
|
-
};
|
|
78
|
-
//渲染组
|
|
79
|
-
var renderGroup = function renderGroup() {
|
|
80
|
-
if (!data || !(data === null || data === void 0 ? void 0 : data.length)) return null;
|
|
81
|
-
return data.map(function (item, idx) {
|
|
82
|
-
var label = item.label,
|
|
83
|
-
selected = item.selected,
|
|
84
|
-
rest = __rest(item, ["label", "selected"]);
|
|
85
|
-
var hasSelected = selected === undefined ? hasValueSelected(rest.value, value) : selected;
|
|
86
|
-
return jsx(ToggleButton, Object.assign({}, rest, {
|
|
87
|
-
style: style,
|
|
88
|
-
selected: hasSelected,
|
|
89
|
-
autoToolTipOverflow: type !== 'text',
|
|
90
|
-
variant: type === 'text' ? 'text' : 'outlined',
|
|
91
|
-
onClick: exclusive ? handleExclusiveChange : handleChange
|
|
92
|
-
}, {
|
|
93
|
-
children: label
|
|
94
|
-
}), idx);
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
return jsx("div", Object.assign({
|
|
98
|
-
className: makeCls
|
|
99
|
-
}, {
|
|
100
|
-
children: renderGroup()
|
|
101
|
-
}));
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
//切换按钮
|
|
105
|
-
var ToggleButton = function ToggleButton(props) {
|
|
106
|
-
var _clsx;
|
|
107
|
-
var className = props.className,
|
|
108
|
-
style = props.style,
|
|
109
|
-
children = props.children,
|
|
110
|
-
_props$disabled = props.disabled,
|
|
111
|
-
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
112
|
-
_props$selected = props.selected,
|
|
113
|
-
selected = _props$selected === void 0 ? false : _props$selected,
|
|
114
|
-
value = props.value;
|
|
115
|
-
props.autoToolTipOverflow;
|
|
116
|
-
var _props$width = props.width,
|
|
117
|
-
width = _props$width === void 0 ? 120 : _props$width,
|
|
118
|
-
onClick = props.onClick,
|
|
119
|
-
restProps = __rest(props, ["className", "style", "children", "disabled", "selected", "value", "autoToolTipOverflow", "width", "onClick"]);
|
|
120
|
-
// const [hasTip, setHasTip] = useState<boolean>(false);
|
|
121
|
-
var id = useRef(UUID()).current;
|
|
122
|
-
var prefixCls = "".concat($prefixCls, "-toggle-button");
|
|
123
|
-
//className
|
|
124
|
-
var makeCls = clsx(prefixCls, className, (_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-selected"), selected), _defineProperty(_clsx, "".concat(prefixCls, "-disabled"), disabled), _clsx));
|
|
125
|
-
//点击事件
|
|
126
|
-
var handleClick = function handleClick(evt) {
|
|
127
|
-
if (onClick) onClick(evt, value);
|
|
128
|
-
};
|
|
129
|
-
// useLayoutEffect(() => {
|
|
130
|
-
// if (!autoToolTipOverflow) return;
|
|
131
|
-
// let btn: HTMLButtonElement | null = document.querySelector(`[data-id="${id}"]`);
|
|
132
|
-
// if (!btn) return;
|
|
133
|
-
// let span: any = document.createElement('span');
|
|
134
|
-
// span.textContent = children;
|
|
135
|
-
// document.body.appendChild(span);
|
|
136
|
-
// if (span.offsetWidth > (btn.offsetWidth - 16 * 2)) {
|
|
137
|
-
// setHasTip(true);
|
|
138
|
-
// }
|
|
139
|
-
// span?.remove();
|
|
140
|
-
// }, []);
|
|
141
|
-
//渲染
|
|
142
|
-
// const renderToggleButton = () => {
|
|
143
|
-
// let btn = (
|
|
144
|
-
// <Button
|
|
145
|
-
// data-id={id}
|
|
146
|
-
// variant={'outlined'}
|
|
147
|
-
// size={'medium'}
|
|
148
|
-
// {...restProps}
|
|
149
|
-
// style={{ width, ...style }}
|
|
150
|
-
// className={makeCls}
|
|
151
|
-
// disabled={disabled}
|
|
152
|
-
// value={value}
|
|
153
|
-
// onClick={handleClick}>
|
|
154
|
-
// <span className={'toggle-button-text'}>
|
|
155
|
-
// {children}
|
|
156
|
-
// </span>
|
|
157
|
-
// </Button>
|
|
158
|
-
// );
|
|
159
|
-
// if (hasTip) {
|
|
160
|
-
// return (
|
|
161
|
-
// <Tooltip title={children as string}>
|
|
162
|
-
// <span className={`${prefixCls}-wrap`}>
|
|
163
|
-
// {btn}
|
|
164
|
-
// </span>
|
|
165
|
-
// </Tooltip>
|
|
166
|
-
// );
|
|
167
|
-
// }
|
|
168
|
-
// return btn;
|
|
169
|
-
// };
|
|
170
|
-
return jsx(Button, Object.assign({
|
|
171
|
-
"data-id": id,
|
|
172
|
-
variant: 'outlined',
|
|
173
|
-
size: 'medium'
|
|
174
|
-
}, restProps, {
|
|
175
|
-
style: Object.assign({
|
|
176
|
-
width: width
|
|
177
|
-
}, style),
|
|
178
|
-
className: makeCls,
|
|
179
|
-
disabled: disabled,
|
|
180
|
-
value: value,
|
|
181
|
-
onClick: handleClick
|
|
182
|
-
}, {
|
|
183
|
-
children: jsx("span", Object.assign({
|
|
184
|
-
className: 'toggle-button-text'
|
|
185
|
-
}, {
|
|
186
|
-
children: jsx(AutoTips, {
|
|
187
|
-
children: children
|
|
188
|
-
})
|
|
189
|
-
}))
|
|
190
|
-
}));
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
export { ToggleButton, ToggleButtonGroup, ToggleButton as default };
|
package/Tooltip/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2022/5/25 下午6:02
|
|
4
|
-
* @description tooltip
|
|
5
|
-
*/
|
|
6
|
-
import { FC } from 'react';
|
|
7
|
-
import { TooltipProps } from './interface';
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export declare const Tooltip: FC<TooltipProps>;
|
|
10
|
-
export type { TooltipProps };
|
|
11
|
-
export default Tooltip;
|
package/Tooltip/index.js
DELETED
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
|
-
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import React__default from 'react';
|
|
5
|
-
import RcTooltip from 'rc-tooltip';
|
|
6
|
-
import { placements } from 'rc-tooltip/lib/placements';
|
|
7
|
-
import clsx from 'clsx';
|
|
8
|
-
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
9
|
-
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
11
|
-
|
|
12
|
-
//自动调整位置
|
|
13
|
-
var autoAdjustOverflowEnabled = {
|
|
14
|
-
adjustX: 1,
|
|
15
|
-
adjustY: 1
|
|
16
|
-
};
|
|
17
|
-
//非自动调整位置
|
|
18
|
-
var autoAdjustOverflowDisabled = {
|
|
19
|
-
adjustX: 0,
|
|
20
|
-
adjustY: 0
|
|
21
|
-
};
|
|
22
|
-
var targetOffset = [0, 0];
|
|
23
|
-
//获得调整位置选项
|
|
24
|
-
function getOverflowOptions(autoAdjustOverflow) {
|
|
25
|
-
if (typeof autoAdjustOverflow === 'boolean') {
|
|
26
|
-
return autoAdjustOverflow ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;
|
|
27
|
-
}
|
|
28
|
-
return Object.assign(Object.assign({}, autoAdjustOverflowDisabled), autoAdjustOverflow);
|
|
29
|
-
}
|
|
30
|
-
//tooltip placement
|
|
31
|
-
function getPlacements(config) {
|
|
32
|
-
var _config$arrowWidth = config.arrowWidth,
|
|
33
|
-
arrowWidth = _config$arrowWidth === void 0 ? 4 : _config$arrowWidth,
|
|
34
|
-
_config$horizontalArr = config.horizontalArrowShift,
|
|
35
|
-
horizontalArrowShift = _config$horizontalArr === void 0 ? 16 : _config$horizontalArr,
|
|
36
|
-
_config$verticalArrow = config.verticalArrowShift,
|
|
37
|
-
verticalArrowShift = _config$verticalArrow === void 0 ? 8 : _config$verticalArrow,
|
|
38
|
-
autoAdjustOverflow = config.autoAdjustOverflow,
|
|
39
|
-
arrowPointAtCenter = config.arrowPointAtCenter;
|
|
40
|
-
var placementMap = {
|
|
41
|
-
left: {
|
|
42
|
-
points: ['cr', 'cl'],
|
|
43
|
-
offset: [-8, 0]
|
|
44
|
-
},
|
|
45
|
-
right: {
|
|
46
|
-
points: ['cl', 'cr'],
|
|
47
|
-
offset: [8, 0]
|
|
48
|
-
},
|
|
49
|
-
top: {
|
|
50
|
-
points: ['bc', 'tc'],
|
|
51
|
-
offset: [0, -8]
|
|
52
|
-
},
|
|
53
|
-
bottom: {
|
|
54
|
-
points: ['tc', 'bc'],
|
|
55
|
-
offset: [0, 8]
|
|
56
|
-
},
|
|
57
|
-
topLeft: {
|
|
58
|
-
points: ['bl', 'tc'],
|
|
59
|
-
offset: [-(horizontalArrowShift + arrowWidth), -8]
|
|
60
|
-
},
|
|
61
|
-
leftTop: {
|
|
62
|
-
points: ['tr', 'cl'],
|
|
63
|
-
offset: [-8, -(verticalArrowShift + arrowWidth)]
|
|
64
|
-
},
|
|
65
|
-
topRight: {
|
|
66
|
-
points: ['br', 'tc'],
|
|
67
|
-
offset: [horizontalArrowShift + arrowWidth, -8]
|
|
68
|
-
},
|
|
69
|
-
rightTop: {
|
|
70
|
-
points: ['tl', 'cr'],
|
|
71
|
-
offset: [8, -(verticalArrowShift + arrowWidth)]
|
|
72
|
-
},
|
|
73
|
-
bottomRight: {
|
|
74
|
-
points: ['tr', 'bc'],
|
|
75
|
-
offset: [horizontalArrowShift + arrowWidth, 8]
|
|
76
|
-
},
|
|
77
|
-
rightBottom: {
|
|
78
|
-
points: ['bl', 'cr'],
|
|
79
|
-
offset: [8, verticalArrowShift + arrowWidth]
|
|
80
|
-
},
|
|
81
|
-
bottomLeft: {
|
|
82
|
-
points: ['tl', 'bc'],
|
|
83
|
-
offset: [-(horizontalArrowShift + arrowWidth), 8]
|
|
84
|
-
},
|
|
85
|
-
leftBottom: {
|
|
86
|
-
points: ['br', 'cl'],
|
|
87
|
-
offset: [-8, verticalArrowShift + arrowWidth]
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
Object.keys(placementMap).forEach(function (key) {
|
|
91
|
-
placementMap[key] = arrowPointAtCenter ? Object.assign(Object.assign({}, placementMap[key]), {
|
|
92
|
-
overflow: getOverflowOptions(autoAdjustOverflow),
|
|
93
|
-
targetOffset: targetOffset
|
|
94
|
-
}) : Object.assign(Object.assign({}, placements[key]), {
|
|
95
|
-
offset: getAlignOffset(key).offset,
|
|
96
|
-
overflow: getOverflowOptions(autoAdjustOverflow)
|
|
97
|
-
});
|
|
98
|
-
placementMap[key].ignoreShake = true;
|
|
99
|
-
});
|
|
100
|
-
return placementMap;
|
|
101
|
-
}
|
|
102
|
-
var splitObject = function splitObject(obj, keys) {
|
|
103
|
-
var picked = {};
|
|
104
|
-
var omitted = Object.assign({}, obj);
|
|
105
|
-
keys.forEach(function (key) {
|
|
106
|
-
if (obj && key in obj) {
|
|
107
|
-
picked[key] = obj[key];
|
|
108
|
-
delete omitted[key];
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
return {
|
|
112
|
-
picked: picked,
|
|
113
|
-
omitted: omitted
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
//兼容禁用title
|
|
117
|
-
function getDisabledCompatibleChildren(child) {
|
|
118
|
-
var element = /*#__PURE__*/React__default.isValidElement(child) ? child : jsx("span", {
|
|
119
|
-
children: child
|
|
120
|
-
});
|
|
121
|
-
if (element.type === 'button' && element.props.disabled) {
|
|
122
|
-
var _splitObject = splitObject(element.props.style, ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),
|
|
123
|
-
picked = _splitObject.picked,
|
|
124
|
-
omitted = _splitObject.omitted;
|
|
125
|
-
var spanStyle = Object.assign(Object.assign({
|
|
126
|
-
display: 'inline-block'
|
|
127
|
-
}, picked), {
|
|
128
|
-
cursor: 'not-allowed',
|
|
129
|
-
width: element.props.block ? '100%' : null
|
|
130
|
-
});
|
|
131
|
-
var buttonStyle = Object.assign(Object.assign({}, omitted), {
|
|
132
|
-
pointerEvents: 'none'
|
|
133
|
-
});
|
|
134
|
-
var _child = /*#__PURE__*/React__default.cloneElement(element, {
|
|
135
|
-
style: buttonStyle,
|
|
136
|
-
className: null
|
|
137
|
-
});
|
|
138
|
-
return jsx("span", Object.assign({
|
|
139
|
-
style: spanStyle,
|
|
140
|
-
className: clsx(element.props.className, "".concat($rcPrefixCls, "-tooltip-disabled-compatible-wrapper"))
|
|
141
|
-
}, {
|
|
142
|
-
children: _child
|
|
143
|
-
}));
|
|
144
|
-
}
|
|
145
|
-
return element;
|
|
146
|
-
}
|
|
147
|
-
//映射placement
|
|
148
|
-
function mapLegacyPlacement(place) {
|
|
149
|
-
var legacyPlacement = {
|
|
150
|
-
'bottom-end': 'bottomRight',
|
|
151
|
-
'bottom-start': 'bottomLeft',
|
|
152
|
-
'left-end': 'leftBottom',
|
|
153
|
-
'left-start': 'leftTop',
|
|
154
|
-
'right-end': 'rightBottom',
|
|
155
|
-
'right-start': 'rightTop',
|
|
156
|
-
'top-end': 'topRight',
|
|
157
|
-
'top-start': 'topLeft'
|
|
158
|
-
};
|
|
159
|
-
return legacyPlacement[place] || place;
|
|
160
|
-
}
|
|
161
|
-
//浮层偏移量
|
|
162
|
-
function getAlignOffset(place) {
|
|
163
|
-
var mPlace = mapLegacyPlacement(place);
|
|
164
|
-
var offsetMap = {
|
|
165
|
-
left: {
|
|
166
|
-
offset: [-8, 0]
|
|
167
|
-
},
|
|
168
|
-
right: {
|
|
169
|
-
offset: [8, 0]
|
|
170
|
-
},
|
|
171
|
-
top: {
|
|
172
|
-
offset: [0, -8]
|
|
173
|
-
},
|
|
174
|
-
bottom: {
|
|
175
|
-
offset: [0, 8]
|
|
176
|
-
},
|
|
177
|
-
topLeft: {
|
|
178
|
-
offset: [0, -8]
|
|
179
|
-
},
|
|
180
|
-
leftTop: {
|
|
181
|
-
offset: [-8, 0]
|
|
182
|
-
},
|
|
183
|
-
topRight: {
|
|
184
|
-
offset: [0, -8]
|
|
185
|
-
},
|
|
186
|
-
rightTop: {
|
|
187
|
-
offset: [8, 0]
|
|
188
|
-
},
|
|
189
|
-
bottomRight: {
|
|
190
|
-
offset: [0, 8]
|
|
191
|
-
},
|
|
192
|
-
rightBottom: {
|
|
193
|
-
offset: [8, 0]
|
|
194
|
-
},
|
|
195
|
-
bottomLeft: {
|
|
196
|
-
offset: [0, 8]
|
|
197
|
-
},
|
|
198
|
-
leftBottom: {
|
|
199
|
-
offset: [-8, 0]
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
return offsetMap[mPlace];
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/5/25 下午7:17\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-tooltip {\n color: rgb(255, 255, 255);\n font-size: 14px;\n line-height: 1.5715;\n position: absolute;\n z-index: 1500;\n display: block;\n width: max-content;\n visibility: visible;\n}\n.paraui-v3-tooltip .component-tooltip-content {\n position: relative;\n}\n.paraui-v3-tooltip.component-tooltip-hidden {\n display: none;\n}\n.paraui-v3-tooltip.paraui-v3-tooltip-hide-arrow .component-tooltip-arrow {\n display: none;\n}\n.paraui-v3-tooltip .component-tooltip-inner {\n min-width: 30px;\n min-height: 32px;\n padding: 5px 12px;\n color: rgb(255, 255, 255);\n text-align: left;\n text-decoration: none;\n word-wrap: break-word;\n background-color: rgba(46, 55, 67, 0.7);\n border-radius: 4px;\n line-height: 22px;\n}\n.paraui-v3-tooltip .component-tooltip-arrow {\n position: absolute;\n z-index: 2;\n display: block;\n width: 22px;\n height: 22px;\n overflow: hidden;\n background: transparent;\n pointer-events: none;\n}\n.paraui-v3-tooltip .component-tooltip-arrow-content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 11.3137085px;\n height: 11.3137085px;\n margin: auto;\n content: \"\";\n border-radius: 0 0 2px;\n pointer-events: none;\n background: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-tooltip .component-tooltip-arrow-content::before {\n position: absolute;\n top: -11.3137085px;\n left: -11.3137085px;\n width: 33.9411255px;\n height: 33.9411255px;\n background-repeat: no-repeat;\n background-position: -10px -10px;\n content: \"\";\n clip-path: path(\"M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z\");\n}\n.paraui-v3-tooltip.component-tooltip-placement-top .component-tooltip-arrow, .paraui-v3-tooltip.component-tooltip-placement-topLeft .component-tooltip-arrow, .paraui-v3-tooltip.component-tooltip-placement-topRight .component-tooltip-arrow {\n bottom: 0;\n transform: translateY(100%);\n}\n.paraui-v3-tooltip.component-tooltip-placement-top .component-tooltip-arrow-content, .paraui-v3-tooltip.component-tooltip-placement-topLeft .component-tooltip-arrow-content, .paraui-v3-tooltip.component-tooltip-placement-topRight .component-tooltip-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(-11px) rotate(45deg);\n}\n.paraui-v3-tooltip.component-tooltip-placement-top .component-tooltip-arrow {\n left: 50%;\n transform: translateY(100%) translateX(-50%);\n}\n.paraui-v3-tooltip.component-tooltip-placement-topLeft .component-tooltip-arrow {\n left: 13px;\n}\n.paraui-v3-tooltip.component-tooltip-placement-topRight .component-tooltip-arrow {\n right: 13px;\n}\n.paraui-v3-tooltip.component-tooltip-placement-right .component-tooltip-arrow, .paraui-v3-tooltip.component-tooltip-placement-rightTop .component-tooltip-arrow, .paraui-v3-tooltip.component-tooltip-placement-rightBottom .component-tooltip-arrow {\n left: 0;\n transform: translateX(-100%);\n}\n.paraui-v3-tooltip.component-tooltip-placement-right .component-tooltip-arrow-content, .paraui-v3-tooltip.component-tooltip-placement-rightTop .component-tooltip-arrow-content, .paraui-v3-tooltip.component-tooltip-placement-rightBottom .component-tooltip-arrow-content {\n box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(11px) rotate(135deg);\n}\n.paraui-v3-tooltip.component-tooltip-placement-right .component-tooltip-arrow {\n top: 50%;\n transform: translateX(-100%) translateY(-50%);\n}\n.paraui-v3-tooltip.component-tooltip-placement-rightTop .component-tooltip-arrow {\n top: 5px;\n}\n.paraui-v3-tooltip.component-tooltip-placement-rightBottom .component-tooltip-arrow {\n bottom: 5px;\n}\n.paraui-v3-tooltip.component-tooltip-placement-left .component-tooltip-arrow, .paraui-v3-tooltip.component-tooltip-placement-leftTop .component-tooltip-arrow, .paraui-v3-tooltip.component-tooltip-placement-leftBottom .component-tooltip-arrow {\n right: 0;\n transform: translateX(100%);\n}\n.paraui-v3-tooltip.component-tooltip-placement-left .component-tooltip-arrow-content, .paraui-v3-tooltip.component-tooltip-placement-leftTop .component-tooltip-arrow-content, .paraui-v3-tooltip.component-tooltip-placement-leftBottom .component-tooltip-arrow-content {\n box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(-11px) rotate(315deg);\n}\n.paraui-v3-tooltip.component-tooltip-placement-left .component-tooltip-arrow {\n top: 50%;\n transform: translateX(100%) translateY(-50%);\n}\n.paraui-v3-tooltip.component-tooltip-placement-leftTop .component-tooltip-arrow {\n top: 5px;\n}\n.paraui-v3-tooltip.component-tooltip-placement-leftBottom .component-tooltip-arrow {\n bottom: 5px;\n}\n.paraui-v3-tooltip.component-tooltip-placement-bottom .component-tooltip-arrow, .paraui-v3-tooltip.component-tooltip-placement-bottomLeft .component-tooltip-arrow, .paraui-v3-tooltip.component-tooltip-placement-bottomRight .component-tooltip-arrow {\n top: 0;\n transform: translateY(-100%);\n}\n.paraui-v3-tooltip.component-tooltip-placement-bottom .component-tooltip-arrow-content, .paraui-v3-tooltip.component-tooltip-placement-bottomLeft .component-tooltip-arrow-content, .paraui-v3-tooltip.component-tooltip-placement-bottomRight .component-tooltip-arrow-content {\n box-shadow: -3px -3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(11px) rotate(225deg);\n}\n.paraui-v3-tooltip.component-tooltip-placement-bottom .component-tooltip-arrow {\n left: 50%;\n transform: translateY(-100%) translateX(-50%);\n}\n.paraui-v3-tooltip.component-tooltip-placement-bottomLeft .component-tooltip-arrow {\n left: 13px;\n}\n.paraui-v3-tooltip.component-tooltip-placement-bottomRight .component-tooltip-arrow {\n right: 13px;\n}\n\n.component-tooltip-zoom-big-fast-enter,\n.component-tooltip-zoom-big-fast-appear {\n animation-duration: 0.1s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-tooltip-zoom-big-fast-leave {\n animation-duration: 0.1s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-tooltip-zoom-big-fast-enter.component-tooltip-zoom-big-fast-enter-active,\n.component-tooltip-zoom-big-fast-appear.component-tooltip-zoom-big-fast-appear-active {\n animation-name: componentTooltipZoomBigIn;\n animation-play-state: running;\n}\n\n.component-tooltip-zoom-big-fast-leave.component-tooltip-zoom-big-fast-leave-active {\n animation-name: componentTooltipZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.component-tooltip-zoom-big-fast-enter,\n.component-tooltip-zoom-big-fast-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n\n.component-tooltip-zoom-big-fast-enter-prepare,\n.component-tooltip-zoom-big-fast-appear-prepare {\n transform: none;\n}\n\n.component-tooltip-zoom-big-fast-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n\n@keyframes componentTooltipZoomBigIn {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes componentTooltipZoomBigOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n opacity: 0;\n }\n}";
|
|
206
|
-
styleInject(css_248z);
|
|
207
|
-
|
|
208
|
-
//tooltip
|
|
209
|
-
var Tooltip = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
210
|
-
var _a;
|
|
211
|
-
var _React$useState = React__default.useState(props.defaultVisible),
|
|
212
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
213
|
-
visible = _React$useState2[0],
|
|
214
|
-
setVisible = _React$useState2[1]; //是否显示
|
|
215
|
-
var wrapRef = React__default.useRef(); //锚点
|
|
216
|
-
var tRef = React__default.useRef(); //实例
|
|
217
|
-
var _React$useState3 = React__default.useState([0, 0]),
|
|
218
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
219
|
-
targetOffset = _React$useState4[0],
|
|
220
|
-
setTargetOffset = _React$useState4[1];
|
|
221
|
-
React__default.useEffect(function () {
|
|
222
|
-
var _a;
|
|
223
|
-
if ('visible' in props || 'open' in props) {
|
|
224
|
-
setVisible(!!((_a = props.visible) !== null && _a !== void 0 ? _a : props.open));
|
|
225
|
-
}
|
|
226
|
-
}, [(_a = props.visible) !== null && _a !== void 0 ? _a : props.open]);
|
|
227
|
-
//no title
|
|
228
|
-
var isUntitled = function isUntitled() {
|
|
229
|
-
var title = props.title;
|
|
230
|
-
return !title && title !== 0;
|
|
231
|
-
};
|
|
232
|
-
//浮层切换时回调
|
|
233
|
-
var onVisibleChange = function onVisibleChange(vis) {
|
|
234
|
-
var _a;
|
|
235
|
-
if (!('visible' in props || 'open' in props)) {
|
|
236
|
-
setVisible(isUntitled() ? false : vis);
|
|
237
|
-
}
|
|
238
|
-
if (!isUntitled()) {
|
|
239
|
-
(_a = props.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
//tooltip 弹出位置
|
|
243
|
-
var getTooltipPlacements = function getTooltipPlacements() {
|
|
244
|
-
var builtinPlacements = props.builtinPlacements,
|
|
245
|
-
arrowPointAtCenter = props.arrowPointAtCenter,
|
|
246
|
-
autoAdjustOverflow = props.autoAdjustOverflow;
|
|
247
|
-
return builtinPlacements || getPlacements({
|
|
248
|
-
arrowPointAtCenter: arrowPointAtCenter,
|
|
249
|
-
autoAdjustOverflow: autoAdjustOverflow
|
|
250
|
-
});
|
|
251
|
-
};
|
|
252
|
-
// 动态设置动画点
|
|
253
|
-
var onPopupAlign = function onPopupAlign(domNode, align) {
|
|
254
|
-
var placements = getTooltipPlacements();
|
|
255
|
-
// 当前返回的位置
|
|
256
|
-
var placement = Object.keys(placements).find(function (key) {
|
|
257
|
-
return placements[key].points[0] === align.points[0] && placements[key].points[1] === align.points[1];
|
|
258
|
-
});
|
|
259
|
-
if (!placement) {
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
// 根据当前坐标设置动画点
|
|
263
|
-
var rect = domNode.getBoundingClientRect();
|
|
264
|
-
var transformOrigin = {
|
|
265
|
-
top: '50%',
|
|
266
|
-
left: '50%'
|
|
267
|
-
};
|
|
268
|
-
if (placement.indexOf('top') >= 0 || placement.indexOf('Bottom') >= 0) {
|
|
269
|
-
transformOrigin.top = "".concat(rect.height - align.offset[1], "px");
|
|
270
|
-
} else if (placement.indexOf('Top') >= 0 || placement.indexOf('bottom') >= 0) {
|
|
271
|
-
transformOrigin.top = "".concat(-align.offset[1], "px");
|
|
272
|
-
}
|
|
273
|
-
if (placement.indexOf('left') >= 0 || placement.indexOf('Right') >= 0) {
|
|
274
|
-
transformOrigin.left = "".concat(rect.width - align.offset[0], "px");
|
|
275
|
-
} else if (placement.indexOf('right') >= 0 || placement.indexOf('Left') >= 0) {
|
|
276
|
-
transformOrigin.left = "".concat(-align.offset[0], "px");
|
|
277
|
-
}
|
|
278
|
-
domNode.style.transformOrigin = "".concat(transformOrigin.left, " ").concat(transformOrigin.top);
|
|
279
|
-
};
|
|
280
|
-
//跟随光标
|
|
281
|
-
var handleMouseMove = function handleMouseMove(e) {
|
|
282
|
-
var _a, _b, _c, _d;
|
|
283
|
-
if (wrapRef.current) {
|
|
284
|
-
var popupHeight = ((_d = (_c = (_b = (_a = tRef.current) === null || _a === void 0 ? void 0 : _a.popupRef) === null || _b === void 0 ? void 0 : _b.current) === null || _c === void 0 ? void 0 : _c.getElement()) === null || _d === void 0 ? void 0 : _d.offsetHeight) || 0;
|
|
285
|
-
var cursorSpace = popupHeight === 0 ? 60 : 30;
|
|
286
|
-
var _wrapRef$current$getB = wrapRef.current.getBoundingClientRect(),
|
|
287
|
-
x = _wrapRef$current$getB.x,
|
|
288
|
-
y = _wrapRef$current$getB.y,
|
|
289
|
-
width = _wrapRef$current$getB.width;
|
|
290
|
-
var newX = e.clientX - (x + width / 2);
|
|
291
|
-
var newY = e.clientY - y + popupHeight + cursorSpace;
|
|
292
|
-
setTimeout(function () {
|
|
293
|
-
setTargetOffset([-newX, -newY]);
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
var _props$prefixCls = props.prefixCls,
|
|
298
|
-
prefixCls = _props$prefixCls === void 0 ? "".concat($rcPrefixCls, "-tooltip") : _props$prefixCls,
|
|
299
|
-
getPopupContainer = props.getPopupContainer,
|
|
300
|
-
overlayClassName = props.overlayClassName,
|
|
301
|
-
overlayInnerStyle = props.overlayInnerStyle,
|
|
302
|
-
overlayStyle = props.overlayStyle,
|
|
303
|
-
children = props.children,
|
|
304
|
-
title = props.title,
|
|
305
|
-
placement = props.placement,
|
|
306
|
-
isPopover = props.isPopover,
|
|
307
|
-
followCursor = props.followCursor,
|
|
308
|
-
maxWidth = props.maxWidth,
|
|
309
|
-
restProps = __rest(props, ["prefixCls", "getPopupContainer", "overlayClassName", "overlayInnerStyle", "overlayStyle", "children", "title", "placement", "isPopover", "followCursor", "maxWidth"]);
|
|
310
|
-
var tempVisible = visible;
|
|
311
|
-
if (!('visible' in props || 'open' in props) && isUntitled()) {
|
|
312
|
-
//没有title必然不可见
|
|
313
|
-
tempVisible = false;
|
|
314
|
-
}
|
|
315
|
-
//overlayCls
|
|
316
|
-
var overlayCls = clsx(!isPopover && "".concat($prefixCls, "-tooltip"), overlayClassName, !props.arrow && "".concat($prefixCls, "-tooltip-hide-arrow"));
|
|
317
|
-
var mergeOverlayStyle = Object.assign({}, overlayStyle);
|
|
318
|
-
if (maxWidth) {
|
|
319
|
-
mergeOverlayStyle.maxWidth = maxWidth;
|
|
320
|
-
}
|
|
321
|
-
return jsx(RcTooltip, Object.assign({}, restProps, {
|
|
322
|
-
prefixCls: prefixCls,
|
|
323
|
-
placement: followCursor ? 'top' : mapLegacyPlacement(placement),
|
|
324
|
-
overlayClassName: overlayCls,
|
|
325
|
-
getTooltipContainer: getPopupContainer,
|
|
326
|
-
ref: ref || tRef,
|
|
327
|
-
builtinPlacements: getTooltipPlacements(),
|
|
328
|
-
overlay: title,
|
|
329
|
-
visible: tempVisible,
|
|
330
|
-
align: {
|
|
331
|
-
targetOffset: targetOffset
|
|
332
|
-
},
|
|
333
|
-
onVisibleChange: onVisibleChange,
|
|
334
|
-
onPopupAlign: onPopupAlign,
|
|
335
|
-
overlayStyle: mergeOverlayStyle,
|
|
336
|
-
overlayInnerStyle: overlayInnerStyle,
|
|
337
|
-
arrowContent: props.arrow ? jsx("span", {
|
|
338
|
-
className: "".concat($rcPrefixCls, "-tooltip-arrow-content")
|
|
339
|
-
}) : null,
|
|
340
|
-
motion: {
|
|
341
|
-
motionName: "".concat($rcPrefixCls, "-tooltip-zoom-big-fast"),
|
|
342
|
-
motionDeadline: 1000
|
|
343
|
-
}
|
|
344
|
-
}, {
|
|
345
|
-
children: followCursor ? jsx("div", Object.assign({
|
|
346
|
-
style: {
|
|
347
|
-
display: 'inline-block'
|
|
348
|
-
},
|
|
349
|
-
ref: wrapRef,
|
|
350
|
-
onMouseMove: handleMouseMove
|
|
351
|
-
}, {
|
|
352
|
-
children: getDisabledCompatibleChildren(children)
|
|
353
|
-
})) : getDisabledCompatibleChildren(children)
|
|
354
|
-
}));
|
|
355
|
-
});
|
|
356
|
-
Tooltip.displayName = 'Tooltip';
|
|
357
|
-
Tooltip.defaultProps = {
|
|
358
|
-
placement: 'top',
|
|
359
|
-
mouseEnterDelay: 0.1,
|
|
360
|
-
mouseLeaveDelay: 0.1,
|
|
361
|
-
arrowPointAtCenter: false,
|
|
362
|
-
autoAdjustOverflow: true,
|
|
363
|
-
arrow: true,
|
|
364
|
-
defaultVisible: false,
|
|
365
|
-
followCursor: false
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
export { Tooltip, Tooltip as default };
|
package/Tooltip/interface.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2022/5/25 下午7:16
|
|
4
|
-
* @description
|
|
5
|
-
*/
|
|
6
|
-
import React from "react";
|
|
7
|
-
import { TooltipProps as RcTooltipProps } from "rc-tooltip/lib/Tooltip";
|
|
8
|
-
export type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start';
|
|
9
|
-
export interface TooltipProps extends Partial<Omit<RcTooltipProps, 'children'>> {
|
|
10
|
-
/** 提示文字 */
|
|
11
|
-
title?: React.ReactNode;
|
|
12
|
-
/** style */
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
/** cls */
|
|
15
|
-
className?: string;
|
|
16
|
-
/** 位置 */
|
|
17
|
-
placement?: TooltipPlacement;
|
|
18
|
-
/** 箭头是否指向目标元素中心 */
|
|
19
|
-
arrowPointAtCenter?: boolean;
|
|
20
|
-
/** 被遮挡时自动调整位置 */
|
|
21
|
-
autoAdjustOverflow?: boolean;
|
|
22
|
-
/** 渲染容器 */
|
|
23
|
-
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
24
|
-
/** 子节点 */
|
|
25
|
-
children?: React.ReactNode;
|
|
26
|
-
/** 是否显示箭头 */
|
|
27
|
-
arrow?: boolean;
|
|
28
|
-
/** 控制浮层是否显示 */
|
|
29
|
-
open?: boolean;
|
|
30
|
-
/** 跟随光标移动 */
|
|
31
|
-
followCursor?: boolean;
|
|
32
|
-
/** 容器最大宽度 */
|
|
33
|
-
maxWidth?: number | string;
|
|
34
|
-
[name: string]: any;
|
|
35
|
-
}
|
package/Tooltip/utils.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BuildInPlacements } from 'rc-trigger';
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { TooltipPlacement } from './interface';
|
|
4
|
-
interface AdjustOverflow {
|
|
5
|
-
adjustX?: 0 | 1;
|
|
6
|
-
adjustY?: 0 | 1;
|
|
7
|
-
}
|
|
8
|
-
interface PlacementsConfig {
|
|
9
|
-
arrowWidth?: number;
|
|
10
|
-
horizontalArrowShift?: number;
|
|
11
|
-
verticalArrowShift?: number;
|
|
12
|
-
arrowPointAtCenter?: boolean;
|
|
13
|
-
autoAdjustOverflow?: boolean | AdjustOverflow;
|
|
14
|
-
}
|
|
15
|
-
export default function getPlacements(config: PlacementsConfig): BuildInPlacements;
|
|
16
|
-
export declare function getDisabledCompatibleChildren(child: React.ReactNode): JSX.Element;
|
|
17
|
-
export declare function mapLegacyPlacement(place: TooltipPlacement): string;
|
|
18
|
-
export {};
|
package/Transfer/box.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import Sortable from 'sortablejs';
|
|
3
|
-
interface IBox {
|
|
4
|
-
title: string;
|
|
5
|
-
data: ItemDataProps[];
|
|
6
|
-
multiple: boolean;
|
|
7
|
-
onSearch: (e: string, direction: 'left' | 'right') => void;
|
|
8
|
-
onchange: (e: any, bol: boolean, index: number, direction: 'left' | 'right', multiple: boolean) => void;
|
|
9
|
-
onMove: (direction: 'left' | 'right') => void;
|
|
10
|
-
queryAll: (e: any, direction: any) => void;
|
|
11
|
-
inverse: (direction: any) => void;
|
|
12
|
-
direction: 'left' | 'right';
|
|
13
|
-
fluctuationPosition?: number;
|
|
14
|
-
fluctuationOrther?: number;
|
|
15
|
-
onEndSort?: (oldIndex: any, newIndex: any) => void;
|
|
16
|
-
rightIcon?: (item: ItemDataProps) => ReactNode;
|
|
17
|
-
style: CSSProperties | undefined;
|
|
18
|
-
customKey: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ItemDataProps {
|
|
21
|
-
/** 唯一值,用来过滤 */
|
|
22
|
-
key?: string;
|
|
23
|
-
/** 显示名 */
|
|
24
|
-
name?: string;
|
|
25
|
-
/** 描述 */
|
|
26
|
-
description?: string;
|
|
27
|
-
/** 是否选中 */
|
|
28
|
-
checked?: boolean;
|
|
29
|
-
/** 是否禁用 */
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
/** 是否隐藏 */
|
|
32
|
-
hide?: boolean;
|
|
33
|
-
tagColor?: string;
|
|
34
|
-
[name: string]: any;
|
|
35
|
-
}
|
|
36
|
-
export declare const Box: (props: IBox) => JSX.Element;
|
|
37
|
-
export default Box;
|
|
38
|
-
export declare const Sortablejs: typeof Sortable;
|