@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
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
zh: {
|
|
3
|
-
total: string;
|
|
4
|
-
linePerPage: string;
|
|
5
|
-
currentPage: string;
|
|
6
|
-
jumpTo: string;
|
|
7
|
-
page: string;
|
|
8
|
-
};
|
|
9
|
-
en: {
|
|
10
|
-
total: string;
|
|
11
|
-
linePerPage: string;
|
|
12
|
-
currentPage: string;
|
|
13
|
-
jumpTo: string;
|
|
14
|
-
page: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { GlobalContextProps } from '@para-ui/core/GlobalContext';
|
|
3
|
-
import '../Styles/index.scss';
|
|
4
|
-
interface Props extends GlobalContextProps {
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare const ParauiProvider: (props: Props) => JSX.Element;
|
|
8
|
-
export default ParauiProvider;
|
package/ParauiProvider/index.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import React__default from 'react';
|
|
4
|
-
import GlobalContext, { changeConfirmLocale } from '@para-ui/core/GlobalContext';
|
|
5
|
-
import { GetLanguage } from '@paraview/lib';
|
|
6
|
-
import { i as i18nIntl } from '../_verture/intl-5cbb940c.js';
|
|
7
|
-
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
-
import '../_verture/typeof-498dd2b1.js';
|
|
9
|
-
|
|
10
|
-
var css_248z = "@charset \"UTF-8\";\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n/* Document\n ========================================================================== */\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\nhtml {\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n/**\n * Remove the margin in all browsers.\n */\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n/**\n * Remove the gray background on active links in IE 10.\n */\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n/**\n * Remove the border on images inside links in IE 10.\n */\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\nbutton::-moz-focus-inner,\n[type=button]::-moz-focus-inner,\n[type=reset]::-moz-focus-inner,\n[type=submit]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\nbutton:-moz-focusring,\n[type=button]:-moz-focusring,\n[type=reset]:-moz-focusring,\n[type=submit]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n[type=checkbox],\n[type=radio] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n[type=number]::-webkit-inner-spin-button,\n[type=number]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n[type=search] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n[type=search]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n/**\n * Add the correct display in IE 10+.\n */\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n[hidden] {\n display: none;\n}\n\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.12);\n}\n\n::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb {\n background: rgba(46, 55, 67, 0.4);\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-corner {\n background: rgb(236, 238, 240);\n}\n\n::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(46, 55, 67, 0.4);\n}\n\n.paraui-v3-scrollbar-small *::-webkit-scrollbar, .paraui-v3-scrollbar-small::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.paraui-v3-scrollbar-small *::-webkit-scrollbar-track, .paraui-v3-scrollbar-small::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-v3-scrollbar-small *::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-small::-webkit-scrollbar-thumb {\n border-radius: 4px;\n}\n\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-track, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-corner, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb:active, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-v3-scrollbar-medium *::-webkit-scrollbar, .paraui-v3-scrollbar-medium::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.paraui-v3-scrollbar-medium *::-webkit-scrollbar-track, .paraui-v3-scrollbar-medium::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-v3-scrollbar-medium *::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-medium::-webkit-scrollbar-thumb {\n border-radius: 6px;\n}\n\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-track, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-corner, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:active, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-v3-scrollbar-large *::-webkit-scrollbar, .paraui-v3-scrollbar-large::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n.paraui-v3-scrollbar-large *::-webkit-scrollbar-track, .paraui-v3-scrollbar-large::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-v3-scrollbar-large *::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-large::-webkit-scrollbar-thumb {\n border-radius: 8px;\n}\n\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-track, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb {\n border-radius: 8px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-corner, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb:active, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-v3-form .paraui-v3-helper-text {\n min-height: 20px;\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\nhtml, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\nol, ul {\n list-style: none;\n}\n\na,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ninput,\nselect,\nbutton,\ntextarea {\n outline: none;\n}";
|
|
11
|
-
styleInject(css_248z);
|
|
12
|
-
|
|
13
|
-
var ParauiProvider = function ParauiProvider(props) {
|
|
14
|
-
/**
|
|
15
|
-
* 国际化
|
|
16
|
-
* @param defI18nData 默认组件语言
|
|
17
|
-
* @param comName 组件名称
|
|
18
|
-
* @param id 键值
|
|
19
|
-
* */
|
|
20
|
-
var intlFormat = function intlFormat(comName, defI18nData) {
|
|
21
|
-
return function (ops, params) {
|
|
22
|
-
var lang = props.language || GetLanguage();
|
|
23
|
-
var locale = props.locale || {};
|
|
24
|
-
var i18nData = locale[lang] || {};
|
|
25
|
-
i18nData = _defineProperty({}, lang, i18nData[comName] || {});
|
|
26
|
-
return i18nIntl({
|
|
27
|
-
ops: ops,
|
|
28
|
-
i18nData: i18nData,
|
|
29
|
-
lang: lang,
|
|
30
|
-
params: params,
|
|
31
|
-
defI18nData: defI18nData
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
React__default.useEffect(function () {
|
|
36
|
-
// Confirm 国际化
|
|
37
|
-
var lang = props.language || GetLanguage();
|
|
38
|
-
var locale = props.locale || {};
|
|
39
|
-
var i18nData = locale[lang] || {};
|
|
40
|
-
changeConfirmLocale === null || changeConfirmLocale === void 0 ? void 0 : changeConfirmLocale(i18nData);
|
|
41
|
-
}, [props.language, props.locale]);
|
|
42
|
-
return jsx(GlobalContext.Provider, Object.assign({
|
|
43
|
-
value: Object.assign(Object.assign({}, props), {
|
|
44
|
-
language: props.language || GetLanguage(),
|
|
45
|
-
intlFormat: intlFormat
|
|
46
|
-
})
|
|
47
|
-
}, {
|
|
48
|
-
children: props.children
|
|
49
|
-
}));
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { ParauiProvider, ParauiProvider as default };
|
package/PasswordRules/index.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/11/29 10:33 AM
|
|
4
|
-
* @description 密码规则
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface PasswordRulesConfigItemProps {
|
|
9
|
-
/** 文案 */
|
|
10
|
-
label?: ReactNode;
|
|
11
|
-
/** 正则 正则表达式 */
|
|
12
|
-
reg?: any;
|
|
13
|
-
/** 自定义校验方法
|
|
14
|
-
* item: 当前项配置
|
|
15
|
-
* value: 校验值
|
|
16
|
-
* 返回值:
|
|
17
|
-
* boolean: 表示是否校验通过,true通过
|
|
18
|
-
* ReactNode: 校验失败,当前显示的文本
|
|
19
|
-
*/
|
|
20
|
-
validator?: (item: PasswordRulesConfigItemProps, value: string) => boolean | ReactNode;
|
|
21
|
-
[name: string]: any;
|
|
22
|
-
}
|
|
23
|
-
export interface PasswordRulesConfigProps {
|
|
24
|
-
/** 标题 */
|
|
25
|
-
title?: ReactNode;
|
|
26
|
-
/** 渲染类型 图标 / 序列,默认图标 */
|
|
27
|
-
type?: 'icon' | 'order';
|
|
28
|
-
/** 规则列表 */
|
|
29
|
-
list?: PasswordRulesConfigItemProps[];
|
|
30
|
-
[name: string]: any;
|
|
31
|
-
}
|
|
32
|
-
export interface PasswordRulesProps {
|
|
33
|
-
/** 样式class */
|
|
34
|
-
className?: string;
|
|
35
|
-
/** style */
|
|
36
|
-
style?: React.CSSProperties;
|
|
37
|
-
/** 是否带有边框阴影 */
|
|
38
|
-
boxShadow?: boolean;
|
|
39
|
-
/** 需要校验的值 */
|
|
40
|
-
value?: string;
|
|
41
|
-
/** 配置 */
|
|
42
|
-
config?: PasswordRulesConfigProps | PasswordRulesConfigProps[];
|
|
43
|
-
[name: string]: any;
|
|
44
|
-
}
|
|
45
|
-
declare const PasswordRules: FunctionComponent<PasswordRulesProps>;
|
|
46
|
-
export default PasswordRules;
|
package/PasswordRules/index.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
3
|
-
import CheckCircle from '@para-ui/icons/CheckCircle';
|
|
4
|
-
import CompleteIcon from '@para-ui/icons/CheckCircleF';
|
|
5
|
-
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
6
|
-
|
|
7
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/11/1 20:28\n* @description 文字隐藏...\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-password-rules {\n padding: 14px 16px;\n line-height: 1.43;\n}\n.paraui-v3-password-rules > .password-rules-item:first-child > .password-rules-item-title {\n margin-top: 0px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-title {\n font-size: 14px;\n color: rgb(46, 55, 67);\n font-weight: 700;\n margin-bottom: 6px;\n margin-top: 10px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail {\n display: flex;\n margin-bottom: 6px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail:last-child {\n margin-bottom: 0;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail > .item-flag {\n min-width: 24px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail > .item-label {\n flex: 1;\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-icon > .item-flag {\n margin-top: 0px;\n line-height: 1;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-icon > .item-flag svg {\n font-size: 16px;\n color: rgba(46, 55, 67, 0.7);\n margin-top: 2px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-order > .item-flag {\n margin-top: -1px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-success.rules-item-detail-icon > .item-flag svg {\n color: rgb(83, 195, 27);\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-error.rules-item-detail-order > .item-flag {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-error.rules-item-detail-order > .item-label {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-password-rules.paraui-v3-password-rules-box-shadow {\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}";
|
|
8
|
-
styleInject(css_248z);
|
|
9
|
-
|
|
10
|
-
var PasswordRules = function PasswordRules(props) {
|
|
11
|
-
var className = props.className,
|
|
12
|
-
style = props.style,
|
|
13
|
-
_props$boxShadow = props.boxShadow,
|
|
14
|
-
boxShadow = _props$boxShadow === void 0 ? false : _props$boxShadow,
|
|
15
|
-
value = props.value,
|
|
16
|
-
config = props.config;
|
|
17
|
-
var handConfig = function handConfig() {
|
|
18
|
-
if (!config) return [];
|
|
19
|
-
return config instanceof Array ? config : [config];
|
|
20
|
-
};
|
|
21
|
-
var configCom = handConfig();
|
|
22
|
-
/** 处理每一项 */
|
|
23
|
-
var handContentItem = function handContentItem(item) {
|
|
24
|
-
var list = item.list || [];
|
|
25
|
-
var type = item.type || 'icon';
|
|
26
|
-
var handRuleItem = function handRuleItem(listItem, inx) {
|
|
27
|
-
// 判断校验
|
|
28
|
-
var result;
|
|
29
|
-
if (value !== undefined) {
|
|
30
|
-
// 正则
|
|
31
|
-
if (listItem.reg) {
|
|
32
|
-
try {
|
|
33
|
-
result = listItem.reg.test(value);
|
|
34
|
-
} catch (e) {
|
|
35
|
-
console.log(e);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (listItem.validator) {
|
|
39
|
-
result = listItem.validator(listItem, value);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// 处理标志
|
|
43
|
-
var handFlag = function handFlag() {
|
|
44
|
-
if (type === 'order') {
|
|
45
|
-
return inx + 1 + '、';
|
|
46
|
-
}
|
|
47
|
-
if (result === true) return jsx(CompleteIcon, {}); // 成功
|
|
48
|
-
return jsx(CheckCircle, {});
|
|
49
|
-
};
|
|
50
|
-
// 处理内容
|
|
51
|
-
var handLabel = function handLabel() {
|
|
52
|
-
if (typeof result !== "boolean" && result) return result;
|
|
53
|
-
return listItem.label;
|
|
54
|
-
};
|
|
55
|
-
// 处理样式
|
|
56
|
-
var handClassRulesItem = function handClassRulesItem() {
|
|
57
|
-
var str = 'rules-item-detail';
|
|
58
|
-
str += ' rules-item-detail-' + type;
|
|
59
|
-
if (typeof result === "boolean" && result) {
|
|
60
|
-
str += ' rules-item-detail-success';
|
|
61
|
-
} else {
|
|
62
|
-
if (result !== undefined) str += ' rules-item-detail-error';
|
|
63
|
-
}
|
|
64
|
-
return str;
|
|
65
|
-
};
|
|
66
|
-
return jsxs("div", Object.assign({
|
|
67
|
-
className: handClassRulesItem()
|
|
68
|
-
}, {
|
|
69
|
-
children: [jsx("span", Object.assign({
|
|
70
|
-
className: "item-flag"
|
|
71
|
-
}, {
|
|
72
|
-
children: handFlag()
|
|
73
|
-
})), jsx("span", Object.assign({
|
|
74
|
-
className: "item-label"
|
|
75
|
-
}, {
|
|
76
|
-
children: handLabel()
|
|
77
|
-
}))]
|
|
78
|
-
}), inx);
|
|
79
|
-
};
|
|
80
|
-
return jsx("div", Object.assign({
|
|
81
|
-
className: "password-rules-item-content"
|
|
82
|
-
}, {
|
|
83
|
-
children: list.map(function (listItem, index) {
|
|
84
|
-
return handRuleItem(listItem, index);
|
|
85
|
-
})
|
|
86
|
-
}));
|
|
87
|
-
};
|
|
88
|
-
/** 处理className */
|
|
89
|
-
var handClass = function handClass() {
|
|
90
|
-
var str = $prefixCls + '-password-rules';
|
|
91
|
-
if (className) str += ' ' + className;
|
|
92
|
-
if (boxShadow) str += ' ' + $prefixCls + '-password-rules-box-shadow';
|
|
93
|
-
return str;
|
|
94
|
-
};
|
|
95
|
-
return jsx("div", Object.assign({
|
|
96
|
-
className: handClass(),
|
|
97
|
-
style: style
|
|
98
|
-
}, {
|
|
99
|
-
children: configCom.map(function (item, index) {
|
|
100
|
-
return jsxs("div", Object.assign({
|
|
101
|
-
className: 'password-rules-item'
|
|
102
|
-
}, {
|
|
103
|
-
children: [jsx("div", Object.assign({
|
|
104
|
-
className: "password-rules-item-title"
|
|
105
|
-
}, {
|
|
106
|
-
children: item.title
|
|
107
|
-
})), handContentItem(item)]
|
|
108
|
-
}), index);
|
|
109
|
-
})
|
|
110
|
-
}));
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export { PasswordRules as default };
|
package/PopConfirm/index.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/9 下午3:45
|
|
4
|
-
* @description popConfirm
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import { ButtonProps } from "../Button";
|
|
8
|
-
import { TooltipProps } from "../Tooltip";
|
|
9
|
-
import './index.scss';
|
|
10
|
-
type ConfirmType = "success" | "info" | "error" | "warning";
|
|
11
|
-
export interface PopConfirmProps {
|
|
12
|
-
/**触发方式*/
|
|
13
|
-
trigger?: 'click' | 'hover';
|
|
14
|
-
/** 是否显示弹框,controllable为true时可用 */
|
|
15
|
-
open?: boolean;
|
|
16
|
-
/** 是否可控组件 */
|
|
17
|
-
controllable?: boolean;
|
|
18
|
-
/**图标类型*/
|
|
19
|
-
type?: ConfirmType;
|
|
20
|
-
/**标题*/
|
|
21
|
-
title?: ReactNode;
|
|
22
|
-
/**内容*/
|
|
23
|
-
content?: ReactNode;
|
|
24
|
-
/**自定义图标*/
|
|
25
|
-
icon?: ReactNode;
|
|
26
|
-
/**ok 文本*/
|
|
27
|
-
okText?: string;
|
|
28
|
-
/**cancel 文本*/
|
|
29
|
-
cancelText?: string;
|
|
30
|
-
/** 确定回调*/
|
|
31
|
-
onOk?: Function;
|
|
32
|
-
/** 取消回调*/
|
|
33
|
-
onCancel?: Function;
|
|
34
|
-
/** 确定按钮属性*/
|
|
35
|
-
okButtonProps?: ButtonProps;
|
|
36
|
-
/** 取消按钮属性*/
|
|
37
|
-
cancelButtonProps?: ButtonProps;
|
|
38
|
-
/** 位置*/
|
|
39
|
-
placement?: TooltipProps['placement'];
|
|
40
|
-
/** cls*/
|
|
41
|
-
className?: string;
|
|
42
|
-
/** overlayClassName */
|
|
43
|
-
overlayClassName?: string;
|
|
44
|
-
/** 自定义样式*/
|
|
45
|
-
style?: React.CSSProperties;
|
|
46
|
-
/** 子节点*/
|
|
47
|
-
children?: ReactNode;
|
|
48
|
-
/**显示取消按钮*/
|
|
49
|
-
showCancel?: boolean;
|
|
50
|
-
/** 支持冒泡*/
|
|
51
|
-
bubble?: boolean;
|
|
52
|
-
/**底部按钮*/
|
|
53
|
-
actions?: ReactNode;
|
|
54
|
-
/** 关闭回调*/
|
|
55
|
-
onClose?: () => void;
|
|
56
|
-
/** 浮层渲染容器,默认body */
|
|
57
|
-
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
58
|
-
[name: string]: any;
|
|
59
|
-
}
|
|
60
|
-
export declare const PopConfirm: FunctionComponent<PopConfirmProps>;
|
|
61
|
-
export default PopConfirm;
|
package/PopConfirm/index.js
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
|
-
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
3
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
|
-
import React__default, { useState, useEffect } from 'react';
|
|
5
|
-
import CompleteIcon from '@para-ui/icons/CheckCircleF';
|
|
6
|
-
import InfoOutlined from '@para-ui/icons/WarningCircle';
|
|
7
|
-
import CloseCircleFilled from '@para-ui/icons/CloseCircleF';
|
|
8
|
-
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
9
|
-
import { Button } from '../Button/index.js';
|
|
10
|
-
import { Tooltip } from '../Tooltip/index.js';
|
|
11
|
-
import clsx from 'clsx';
|
|
12
|
-
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
13
|
-
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
14
|
-
import { u as usePopupContainer } from '../_verture/usePopupContainer-87febeb9.js';
|
|
15
|
-
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
16
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
17
|
-
import '../_verture/typeof-498dd2b1.js';
|
|
18
|
-
import '@para-ui/icons/LoadingF';
|
|
19
|
-
import '@para-ui/icons/Forbid';
|
|
20
|
-
import '@para-ui/icons/Down';
|
|
21
|
-
import '../_verture/index-77f9e0fb.js';
|
|
22
|
-
import 'rc-dropdown';
|
|
23
|
-
import 'dayjs';
|
|
24
|
-
import '@paraview/lib';
|
|
25
|
-
import 'rc-tooltip';
|
|
26
|
-
import 'rc-tooltip/lib/placements';
|
|
27
|
-
import '@para-ui/core/GlobalContext';
|
|
28
|
-
|
|
29
|
-
var en = {
|
|
30
|
-
cancel: 'Cancel',
|
|
31
|
-
ok: 'Ok'
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
var zh = {
|
|
35
|
-
cancel: '取消',
|
|
36
|
-
ok: '确定'
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var localeJson = {
|
|
40
|
-
zh: zh,
|
|
41
|
-
en: en
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-popconfirm.paraui-v3-tooltip {\n position: absolute;\n max-width: 600px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}\n.paraui-v3-popconfirm.paraui-v3-tooltip .component-tooltip-inner {\n min-width: auto;\n min-height: auto;\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper {\n min-width: 350px;\n padding: 24px;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 2px;\n color: rgb(255, 161, 80);\n line-height: 0;\n font-size: 16px;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-icon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-body {\n padding-left: 24px;\n line-height: 20px;\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-title {\n font-weight: 700;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-content {\n font-weight: 400;\n margin-top: 13px;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-btns {\n margin-top: 32px;\n text-align: right;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-btns > button + button {\n margin-left: 16px;\n}";
|
|
45
|
-
styleInject(css_248z);
|
|
46
|
-
|
|
47
|
-
//图标
|
|
48
|
-
var iconMapping = {
|
|
49
|
-
"success": jsx(CompleteIcon, {}),
|
|
50
|
-
"warning": jsx(WarningCircleF, {}),
|
|
51
|
-
"error": jsx(CloseCircleFilled, {}),
|
|
52
|
-
"info": jsx(InfoOutlined, {})
|
|
53
|
-
};
|
|
54
|
-
//popConfirm
|
|
55
|
-
var PopConfirm = function PopConfirm(props) {
|
|
56
|
-
var _props$trigger = props.trigger,
|
|
57
|
-
trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
|
|
58
|
-
_props$type = props.type,
|
|
59
|
-
type = _props$type === void 0 ? 'warning' : _props$type,
|
|
60
|
-
title = props.title,
|
|
61
|
-
content = props.content,
|
|
62
|
-
icon = props.icon,
|
|
63
|
-
okText = props.okText,
|
|
64
|
-
cancelText = props.cancelText,
|
|
65
|
-
onOk = props.onOk,
|
|
66
|
-
onCancel = props.onCancel,
|
|
67
|
-
okButtonProps = props.okButtonProps,
|
|
68
|
-
cancelButtonProps = props.cancelButtonProps,
|
|
69
|
-
_props$placement = props.placement,
|
|
70
|
-
placement = _props$placement === void 0 ? 'bottom' : _props$placement,
|
|
71
|
-
className = props.className,
|
|
72
|
-
overlayClassName = props.overlayClassName,
|
|
73
|
-
style = props.style,
|
|
74
|
-
children = props.children,
|
|
75
|
-
_props$open = props.open,
|
|
76
|
-
open = _props$open === void 0 ? false : _props$open,
|
|
77
|
-
_props$controllable = props.controllable,
|
|
78
|
-
controllable = _props$controllable === void 0 ? false : _props$controllable,
|
|
79
|
-
_props$showCancel = props.showCancel,
|
|
80
|
-
showCancel = _props$showCancel === void 0 ? true : _props$showCancel,
|
|
81
|
-
_props$bubble = props.bubble,
|
|
82
|
-
bubble = _props$bubble === void 0 ? true : _props$bubble,
|
|
83
|
-
actions = props.actions,
|
|
84
|
-
onClose = props.onClose,
|
|
85
|
-
customizeContainer = props.getPopupContainer,
|
|
86
|
-
restProps = __rest(props, ["trigger", "type", "title", "content", "icon", "okText", "cancelText", "onOk", "onCancel", "okButtonProps", "cancelButtonProps", "placement", "className", "overlayClassName", "style", "children", "open", "controllable", "showCancel", "bubble", "actions", "onClose", "getPopupContainer"]);
|
|
87
|
-
var intl = useFormatMessage('PopConfirm', localeJson);
|
|
88
|
-
var wrapRef = React__default.useRef();
|
|
89
|
-
var getPopupContainer = usePopupContainer(wrapRef, customizeContainer);
|
|
90
|
-
//打开
|
|
91
|
-
var _useState = useState(false),
|
|
92
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
93
|
-
inOpen = _useState2[0],
|
|
94
|
-
setInOpen = _useState2[1];
|
|
95
|
-
//取消
|
|
96
|
-
var handleCancel = function handleCancel() {
|
|
97
|
-
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
98
|
-
handleClose();
|
|
99
|
-
};
|
|
100
|
-
//确认
|
|
101
|
-
var handleOk = function handleOk() {
|
|
102
|
-
onOk === null || onOk === void 0 ? void 0 : onOk();
|
|
103
|
-
handleClose();
|
|
104
|
-
};
|
|
105
|
-
//关闭
|
|
106
|
-
var handleClose = function handleClose() {
|
|
107
|
-
if (!controllable) {
|
|
108
|
-
setInOpen(false);
|
|
109
|
-
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
//tooltip vis
|
|
113
|
-
var onVisibleChange = function onVisibleChange(vis) {
|
|
114
|
-
if (!controllable) {
|
|
115
|
-
setInOpen(vis);
|
|
116
|
-
if (!vis) onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
117
|
-
} else {
|
|
118
|
-
if (open) onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
useEffect(function () {
|
|
122
|
-
if (controllable) setInOpen(open);
|
|
123
|
-
}, [open]);
|
|
124
|
-
//渲染内容
|
|
125
|
-
var renderOverlay = function renderOverlay() {
|
|
126
|
-
var btns = jsxs(Fragment, {
|
|
127
|
-
children: [showCancel && jsx(Button, Object.assign({
|
|
128
|
-
onClick: handleCancel,
|
|
129
|
-
variant: 'outlined',
|
|
130
|
-
size: 'small'
|
|
131
|
-
}, cancelButtonProps, {
|
|
132
|
-
children: cancelText !== null && cancelText !== void 0 ? cancelText : intl({
|
|
133
|
-
id: 'cancel'
|
|
134
|
-
})
|
|
135
|
-
})), jsx(Button, Object.assign({
|
|
136
|
-
onClick: handleOk,
|
|
137
|
-
variant: 'contained',
|
|
138
|
-
size: 'small'
|
|
139
|
-
}, okButtonProps, {
|
|
140
|
-
children: okText !== null && okText !== void 0 ? okText : intl({
|
|
141
|
-
id: 'ok'
|
|
142
|
-
})
|
|
143
|
-
}))]
|
|
144
|
-
});
|
|
145
|
-
return jsxs("div", Object.assign({
|
|
146
|
-
className: clsx('popconfirm-wrapper'),
|
|
147
|
-
style: style,
|
|
148
|
-
onClick: function onClick(evt) {
|
|
149
|
-
if (!bubble) evt.stopPropagation();
|
|
150
|
-
}
|
|
151
|
-
}, {
|
|
152
|
-
children: [jsxs("div", Object.assign({
|
|
153
|
-
className: 'popconfirm-message'
|
|
154
|
-
}, {
|
|
155
|
-
children: [jsx("span", Object.assign({
|
|
156
|
-
className: 'popconfirm-message-icon'
|
|
157
|
-
}, {
|
|
158
|
-
children: icon || iconMapping[type]
|
|
159
|
-
})), jsxs("div", Object.assign({
|
|
160
|
-
className: 'popconfirm-message-body'
|
|
161
|
-
}, {
|
|
162
|
-
children: [title && jsx("div", Object.assign({
|
|
163
|
-
className: 'popconfirm-message-title'
|
|
164
|
-
}, {
|
|
165
|
-
children: title
|
|
166
|
-
})), jsx("div", Object.assign({
|
|
167
|
-
className: 'popconfirm-message-content'
|
|
168
|
-
}, {
|
|
169
|
-
children: content
|
|
170
|
-
}))]
|
|
171
|
-
}))]
|
|
172
|
-
})), jsx("div", Object.assign({
|
|
173
|
-
className: 'popconfirm-btns'
|
|
174
|
-
}, {
|
|
175
|
-
children: actions !== null && actions !== void 0 ? actions : btns
|
|
176
|
-
}))]
|
|
177
|
-
}));
|
|
178
|
-
};
|
|
179
|
-
return jsx(Tooltip, Object.assign({}, restProps, {
|
|
180
|
-
ref: wrapRef,
|
|
181
|
-
trigger: trigger,
|
|
182
|
-
open: inOpen,
|
|
183
|
-
arrow: false,
|
|
184
|
-
placement: placement,
|
|
185
|
-
title: renderOverlay(),
|
|
186
|
-
onVisibleChange: onVisibleChange,
|
|
187
|
-
overlayClassName: clsx("".concat($prefixCls, "-popconfirm"), overlayClassName, className),
|
|
188
|
-
getPopupContainer: getPopupContainer
|
|
189
|
-
}, {
|
|
190
|
-
children: children
|
|
191
|
-
}));
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
export { PopConfirm, PopConfirm as default };
|
package/Popover/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2022/6/7 上午10:54
|
|
4
|
-
* @description popover
|
|
5
|
-
*/
|
|
6
|
-
import React, { FC } from 'react';
|
|
7
|
-
import { TooltipProps } from '../Tooltip/interface';
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export interface PopoverProps extends TooltipProps {
|
|
10
|
-
/** 标题 */
|
|
11
|
-
title?: React.ReactNode;
|
|
12
|
-
/** 内容 */
|
|
13
|
-
content?: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export declare const Popover: FC<PopoverProps>;
|
|
16
|
-
export default Popover;
|
package/Popover/index.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
2
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import React__default from 'react';
|
|
4
|
-
import { Tooltip } from '../Tooltip/index.js';
|
|
5
|
-
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-66aa48a1.js';
|
|
6
|
-
import { u as usePopupContainer } from '../_verture/usePopupContainer-87febeb9.js';
|
|
7
|
-
import clsx from 'clsx';
|
|
8
|
-
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
9
|
-
import '../_verture/slicedToArray-76060636.js';
|
|
10
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
11
|
-
import 'rc-tooltip';
|
|
12
|
-
import 'rc-tooltip/lib/placements';
|
|
13
|
-
|
|
14
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/7 上午11:06\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-popover {\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1500;\n font-weight: 400;\n white-space: normal;\n text-align: left;\n cursor: auto;\n user-select: text;\n}\n.paraui-v3-popover::after {\n position: absolute;\n background: rgba(255, 255, 255, 0.01);\n content: \"\";\n}\n.paraui-v3-popover.component-popover-hidden {\n display: none;\n}\n.paraui-v3-popover .component-popover-inner {\n background-color: rgb(255, 255, 255);\n background-clip: padding-box;\n border-radius: 4px;\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-popover .component-popover-title {\n margin: 0;\n padding: 0 24px;\n color: rgb(46, 55, 67);\n font-weight: 700;\n border-bottom: 1px solid #f0f0f0;\n min-height: 44px;\n display: flex;\n align-items: center;\n}\n.paraui-v3-popover .component-popover-inner-content {\n color: rgb(46, 55, 67);\n}\n.paraui-v3-popover .component-popover-buttons {\n margin-bottom: 4px;\n text-align: right;\n}\n.paraui-v3-popover .component-popover-buttons button {\n margin-left: 8px;\n}\n.paraui-v3-popover .component-popover-arrow {\n position: absolute;\n display: none;\n width: 16px;\n height: 16px;\n overflow: hidden;\n background: transparent;\n pointer-events: none;\n}\n.paraui-v3-popover .component-popover-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 background-color: rgb(255, 255, 255);\n content: \"\";\n border-radius: 0 0 4px;\n pointer-events: none;\n}\n.paraui-v3-popover .component-popover-arrow-content::before {\n position: absolute;\n top: -11.3137085px;\n left: -11.3137085px;\n width: 33.9411255px;\n height: 33.9411255px;\n background: rgb(255, 255, 255) -10px -10px no-repeat;\n content: \"\";\n -webkit-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-popover.component-popover-placement-top .component-popover-arrow, .paraui-v3-popover.component-popover-placement-topLeft .component-popover-arrow, .paraui-v3-popover.component-popover-placement-topRight .component-popover-arrow {\n bottom: -0.6862915px;\n}\n.paraui-v3-popover.component-popover-placement-top .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-topLeft .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-topRight .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(-1px) rotate(45deg);\n}\n.paraui-v3-popover.component-popover-placement-top .component-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-v3-popover.component-popover-placement-topLeft .component-popover-arrow {\n left: 16px;\n}\n.paraui-v3-popover.component-popover-placement-topRight .component-popover-arrow {\n right: 16px;\n}\n.paraui-v3-popover.component-popover-placement-right .component-popover-arrow, .paraui-v3-popover.component-popover-placement-rightTop .component-popover-arrow, .paraui-v3-popover.component-popover-placement-rightBottom .component-popover-arrow {\n left: -0.6862915px;\n}\n.paraui-v3-popover.component-popover-placement-right .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-rightTop .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-rightBottom .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(1px) rotate(135deg);\n}\n.paraui-v3-popover.component-popover-placement-right .component-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-v3-popover.component-popover-placement-rightTop .component-popover-arrow {\n top: 12px;\n}\n.paraui-v3-popover.component-popover-placement-rightBottom .component-popover-arrow {\n bottom: 12px;\n}\n.paraui-v3-popover.component-popover-placement-bottom .component-popover-arrow, .paraui-v3-popover.component-popover-placement-bottomLeft .component-popover-arrow, .paraui-v3-popover.component-popover-placement-bottomRight .component-popover-arrow {\n top: -0.6862915px;\n}\n.paraui-v3-popover.component-popover-placement-bottom .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-bottomLeft .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-bottomRight .component-popover-arrow-content {\n box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.06);\n transform: translateY(1px) rotate(-135deg);\n}\n.paraui-v3-popover.component-popover-placement-bottom .component-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-v3-popover.component-popover-placement-bottomLeft .component-popover-arrow {\n left: 16px;\n}\n.paraui-v3-popover.component-popover-placement-bottomRight .component-popover-arrow {\n right: 16px;\n}\n.paraui-v3-popover.component-popover-placement-left .component-popover-arrow, .paraui-v3-popover.component-popover-placement-leftTop .component-popover-arrow, .paraui-v3-popover.component-popover-placement-leftBottom .component-popover-arrow {\n right: -0.6862915px;\n}\n.paraui-v3-popover.component-popover-placement-left .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-leftTop .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-leftBottom .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(-1px) rotate(-45deg);\n}\n.paraui-v3-popover.component-popover-placement-left .component-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-v3-popover.component-popover-placement-leftTop .component-popover-arrow {\n top: 12px;\n}\n.paraui-v3-popover.component-popover-placement-leftBottom .component-popover-arrow {\n bottom: 12px;\n}\n\n.component-popover-zoom-big-enter,\n.component-popover-zoom-big-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-popover-zoom-big-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-popover-zoom-big-enter.component-popover-zoom-big-enter-active,\n.component-popover-zoom-big-appear.component-popover-zoom-big-appear-active {\n animation-name: componentPopoverZoomBigIn;\n animation-play-state: running;\n}\n\n.component-popover-zoom-big-leave.component-popover-zoom-big-leave-active {\n animation-name: componentPopoverZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.component-popover-zoom-big-enter,\n.component-popover-zoom-big-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-popover-zoom-big-enter-prepare,\n.component-popover-zoom-big-appear-prepare {\n transform: none;\n}\n\n.component-popover-zoom-big-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n\n@keyframes componentPopoverZoomBigIn {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes componentPopoverZoomBigOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n opacity: 0;\n }\n}";
|
|
15
|
-
styleInject(css_248z);
|
|
16
|
-
|
|
17
|
-
//popover
|
|
18
|
-
var Popover = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
19
|
-
var title = props.title,
|
|
20
|
-
content = props.content,
|
|
21
|
-
restProps = __rest(props, ["title", "content"]);
|
|
22
|
-
var wrapRef = React__default.useRef();
|
|
23
|
-
var getPopupContainer = usePopupContainer(wrapRef, props.getPopupContainer);
|
|
24
|
-
//浮层
|
|
25
|
-
var getOverlay = function getOverlay(prefixCls) {
|
|
26
|
-
if (!title && !content) return null;
|
|
27
|
-
return jsxs(Fragment, {
|
|
28
|
-
children: [title && jsx("div", Object.assign({
|
|
29
|
-
className: "".concat(prefixCls, "-title")
|
|
30
|
-
}, {
|
|
31
|
-
children: title
|
|
32
|
-
})), jsx("div", Object.assign({
|
|
33
|
-
className: "".concat(prefixCls, "-inner-content")
|
|
34
|
-
}, {
|
|
35
|
-
children: content
|
|
36
|
-
}))]
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var prefixCls = "".concat($rcPrefixCls, "-popover");
|
|
40
|
-
return jsx(Tooltip, Object.assign({}, restProps, {
|
|
41
|
-
isPopover: true,
|
|
42
|
-
prefixCls: prefixCls,
|
|
43
|
-
overlayClassName: clsx("".concat($prefixCls, "-popover"), props.overlayClassName),
|
|
44
|
-
ref: wrapRef,
|
|
45
|
-
title: getOverlay(prefixCls),
|
|
46
|
-
transitionName: "".concat($rcPrefixCls, "-popover-zoom-big"),
|
|
47
|
-
getPopupContainer: getPopupContainer
|
|
48
|
-
}));
|
|
49
|
-
});
|
|
50
|
-
Popover.displayName = 'Popover';
|
|
51
|
-
Popover.defaultProps = {
|
|
52
|
-
placement: 'bottom',
|
|
53
|
-
trigger: 'click',
|
|
54
|
-
mouseEnterDelay: 0.1,
|
|
55
|
-
mouseLeaveDelay: 0.1,
|
|
56
|
-
arrow: false
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { Popover, Popover as default };
|