@para-ui/core 3.0.86 → 4.0.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoBox/index.js +18 -19
- package/AutoTips/index.js +5 -4
- package/Breadcrumbs/index.js +5 -4
- package/Button/SplitButton.d.ts +13 -0
- package/Button/index.d.ts +1 -1
- package/Button/index.js +54 -12
- package/ButtonGroup/index.js +6 -5
- package/Carousel/index.d.ts +5 -5
- package/Carousel/index.js +21 -9
- package/Cascader/Cascader.d.ts +99 -0
- package/Cascader/OptionList/CacheContent.d.ts +7 -0
- package/Cascader/OptionList/Column.d.ts +21 -0
- package/Cascader/OptionList/index.d.ts +4 -0
- package/Cascader/OptionList/useActive.d.ts +6 -0
- package/Cascader/context.d.ts +23 -0
- package/Cascader/hooks/useDisplayValues.d.ts +10 -0
- package/Cascader/hooks/useEntities.d.ts +10 -0
- package/Cascader/hooks/useMissingValues.d.ts +3 -0
- package/Cascader/index.d.ts +3 -58
- package/Cascader/index.js +28 -177
- package/Cascader/utils/commonUtil.d.ts +18 -0
- package/Cascader/utils/treeUtil.d.ts +55 -0
- package/Checkbox/index.d.ts +7 -0
- package/Checkbox/index.js +50 -29
- package/CheckboxGroup/index.d.ts +3 -1
- package/CheckboxGroup/index.js +48 -18
- package/Collapse/index.js +2 -2
- package/Collapse/motion.d.ts +0 -2
- package/CollapseBox/index.js +3 -3
- package/CollapseLayout/index.d.ts +5 -0
- package/CollapseLayout/index.js +144 -22
- package/ColorPicker/chromePicker/index.d.ts +9 -0
- package/ColorPicker/compactPicker/index.d.ts +9 -0
- package/ColorPicker/config.d.ts +5 -0
- package/ColorPicker/index.d.ts +4 -1
- package/ColorPicker/index.js +7 -3
- package/ColorPicker/sketchPicker/index.d.ts +11 -0
- package/ColorPicker/swatchesPicker/index.d.ts +9 -0
- package/ComboSelect/index.js +14 -12
- package/Container/index.js +2 -2
- package/CopyText/index.d.ts +33 -0
- package/CopyText/index.js +180 -0
- package/DatePicker/generatePicker/generateRangePicker.d.ts +9 -2
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +8 -8
- package/DatePicker/generatePicker/index.d.ts +32 -26
- package/DatePicker/generatePicker/interface.d.ts +12 -0
- package/DatePicker/index.d.ts +12 -8
- package/DatePicker/index.js +367 -454
- package/DatePicker/util.d.ts +40 -4
- package/Desktop/index.d.ts +16 -3
- package/Desktop/index.js +177 -68
- package/Desktop/lang/en_US.d.ts +6 -0
- package/Desktop/lang/index.d.ts +13 -0
- package/Desktop/lang/zh_CN.d.ts +6 -0
- package/DragVerify/index.js +9 -100
- package/Drawer/index.js +8 -8
- package/Drawer/interface.d.ts +2 -2
- package/Dropdown/index.js +2 -2
- package/DynamicMultiBox/index.js +57 -41
- package/DynamicMultiBox/interface.d.ts +4 -4
- package/Empty/index.js +2 -2
- package/Form/index.d.ts +20 -26
- package/Form/index.js +48 -69
- package/FormItem/index.js +15 -15
- package/FunctionModal/index.js +11 -9
- package/GlobalContext/constant.d.ts +1 -1
- package/GlobalContext/index.js +2 -2
- package/Help/index.js +4 -3
- package/HelperText/index.js +2 -2
- package/InputLang/index.d.ts +5 -0
- package/InputLang/index.js +35 -29
- package/InputNumber/index.d.ts +5 -0
- package/InputNumber/index.js +95 -80
- package/Label/index.js +4 -3
- package/Loading/index.js +2 -2
- package/Menu/index.js +114 -39
- package/Menu/interface.d.ts +8 -0
- package/Message/index.d.ts +4 -4
- package/Message/index.js +13 -11
- package/Modal/index.js +29 -15
- package/MultiBox/index.js +9 -8
- package/Notification/index.d.ts +9 -1
- package/Notification/index.js +29 -15
- package/OperateBtn/index.js +28 -11
- package/PageHeader/index.js +270 -74
- package/PageHeader/interface.d.ts +17 -0
- package/Pagination/index.d.ts +4 -3
- package/Pagination/index.js +117 -95
- package/Pagination/lang/en_US.d.ts +3 -2
- package/Pagination/lang/index.d.ts +6 -4
- package/Pagination/lang/zh_CN.d.ts +3 -2
- package/ParauiProvider/index.js +4 -4
- package/PasswordRules/index.js +5 -5
- package/PopConfirm/index.d.ts +15 -5
- package/PopConfirm/index.js +62 -16
- package/Popover/index.js +4 -3
- package/Progress/index.js +10 -9
- package/Querying/index.js +7 -7
- package/README.md +40 -1120
- package/Radio/index.d.ts +7 -0
- package/Radio/index.js +49 -27
- package/RadioGroup/index.d.ts +3 -1
- package/RadioGroup/index.js +48 -21
- package/Search/index.d.ts +3 -15
- package/Search/index.js +21 -83
- package/Select/index.d.ts +7 -2
- package/Select/index.js +114 -91
- package/Select/lang/en_US.d.ts +1 -1
- package/Select/lang/index.d.ts +2 -2
- package/Select/lang/zh_CN.d.ts +1 -1
- package/SelectInput/index.js +8 -7
- package/Selector/index.js +30 -22
- package/SelectorPicker/index.d.ts +5 -0
- package/SelectorPicker/index.js +47 -32
- package/SelectorPicker/lang/en_US.d.ts +1 -0
- package/SelectorPicker/lang/index.d.ts +2 -0
- package/SelectorPicker/lang/zh_CN.d.ts +1 -0
- package/SingleBox/index.js +8 -7
- package/Slider/index.js +5 -5
- package/Status/index.d.ts +6 -5
- package/Status/index.js +27 -4
- package/Stepper/index.d.ts +9 -10
- package/Stepper/index.js +69 -29
- package/Styles/index.scss +4 -0
- package/Styles/scrollbar.scss +24 -24
- package/Styles/theme.scss +104 -57
- package/Switch/index.d.ts +34 -14
- package/Switch/index.js +97 -30
- package/Table/index.js +33 -27
- package/Table/interface.d.ts +3 -1
- package/Table/tableHeadInterface.d.ts +1 -1
- package/Table/tablePaginationInterface.d.ts +5 -5
- package/Tabs/index.d.ts +11 -1
- package/Tabs/index.js +49 -16
- package/Tag/TagGroup.d.ts +11 -7
- package/Tag/index.d.ts +22 -7
- package/Tag/index.js +1382 -53
- package/TextEditor/index.js +4 -3
- package/TextField/index.d.ts +5 -0
- package/TextField/index.js +50 -32
- package/TimePicker/index.d.ts +5 -0
- package/TimePicker/index.js +39 -23
- package/Timeline/TimelineItem.d.ts +1 -1
- package/Timeline/index.d.ts +5 -5
- package/Timeline/index.js +21 -18
- package/Title/index.d.ts +15 -3
- package/Title/index.js +95 -29
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -0
- package/ToggleButton/index.d.ts +4 -0
- package/ToggleButton/index.js +14 -52
- package/Tooltip/index.js +28 -34
- package/Tooltip/interface.d.ts +4 -10
- package/Tooltip/utils.d.ts +1 -3
- package/Transfer/index.d.ts +3 -3
- package/Transfer/index.js +72 -68
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +10 -9
- package/Tree/utils/treeUtil.d.ts +0 -7
- package/Upload/index.js +16 -14
- package/_verture/{constant-66aa48a1.js → constant-0d9802f7.js} +1 -1
- package/_verture/{defineProperty-62acccfc.js → defineProperty-1d116156.js} +1 -1
- package/_verture/index-5c77417d.js +150 -0
- package/_verture/index-68db2bc3.js +10530 -0
- package/_verture/{index-9738004e.js → index-7ec72724.js} +44 -38
- package/_verture/index-d63bd287.js +327 -0
- package/_verture/{index-fa8a0124.js → index-e6f85fd5.js} +7 -8
- package/_verture/{index-77f9e0fb.js → index-e9007d6a.js} +6 -6
- package/_verture/{intl-4a9f1b44.js → intl-5c1ec055.js} +1 -1
- package/_verture/{modalContext-20780c9a.js → modalContext-c12ca3e8.js} +3 -3
- package/_verture/slicedToArray-a8206399.js +43 -0
- package/_verture/{toConsumableArray-81040c9e.js → toConsumableArray-8f4c9589.js} +1 -1
- package/_verture/typeof-adeedc13.js +11 -0
- package/_verture/typeof-b240b062.js +16 -0
- package/_verture/{utils-c9b9a157.js → utils-f0e81540.js} +8 -8
- package/index.d.ts +2 -2
- package/index.js +32 -27
- package/locale/en-US.d.ts +10 -6
- package/locale/index.d.ts +20 -12
- package/locale/index.js +33 -25
- package/locale/zh-CN.d.ts +10 -6
- package/package.json +25 -10
- package/umd/AutoBox.js +20 -21
- package/umd/AutoTips.js +31 -4
- package/umd/Breadcrumbs.js +7 -7
- package/umd/Button.js +7 -8
- package/umd/ButtonGroup.js +7 -8
- package/umd/Carousel.js +29 -1
- package/umd/Cascader.js +20 -21
- package/umd/Checkbox.js +7 -7
- package/umd/CheckboxGroup.js +7 -7
- package/umd/Collapse.js +19 -21
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +7 -7
- package/umd/Container.js +1 -1
- package/umd/CopyText.js +42 -0
- package/umd/DatePicker.js +7 -7
- package/umd/Desktop.js +7 -7
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +7 -8
- package/umd/Dropdown.js +3 -3
- package/umd/DynamicMultiBox.js +7 -7
- package/umd/Empty.js +1 -1
- package/umd/Form.js +6 -6
- package/umd/FormItem.js +6 -6
- package/umd/FunctionModal.js +7 -7
- package/umd/Help.js +7 -7
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +7 -7
- package/umd/InputNumber.js +7 -7
- package/umd/Label.js +7 -7
- package/umd/Loading.js +4 -5
- package/umd/Menu.js +4 -4
- package/umd/Message.js +3 -4
- package/umd/Modal.js +7 -7
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +5 -6
- package/umd/OperateBtn.js +7 -7
- package/umd/PageHeader.js +7 -7
- package/umd/Pagination.js +7 -7
- package/umd/ParauiProvider.js +1 -1
- package/umd/PasswordRules.js +3 -4
- package/umd/PopConfirm.js +7 -7
- package/umd/Popover.js +31 -4
- package/umd/Progress.js +4 -5
- package/umd/Querying.js +1 -1
- package/umd/Radio.js +7 -7
- package/umd/RadioGroup.js +7 -7
- package/umd/Search.js +7 -7
- package/umd/Select.js +7 -7
- package/umd/SelectInput.js +7 -7
- package/umd/Selector.js +7 -7
- package/umd/SelectorPicker.js +7 -7
- package/umd/SingleBox.js +7 -7
- package/umd/Slider.js +3 -3
- package/umd/Status.js +29 -1
- package/umd/Stepper.js +20 -20
- package/umd/Switch.js +7 -7
- package/umd/Table.js +7 -7
- package/umd/Tabs.js +7 -7
- package/umd/Tag.js +7 -8
- package/umd/TextEditor.js +19 -19
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +7 -7
- package/umd/Timeline.js +1 -1
- package/umd/Title.js +42 -1
- package/umd/ToggleButton.js +7 -8
- package/umd/Tooltip.js +31 -4
- package/umd/Transfer.js +8 -8
- package/umd/Tree.js +7 -7
- package/umd/Upload.js +8 -8
- package/umd/locale.js +1 -1
- 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/Split/index.d.ts +0 -7
- package/Split/index.js +0 -123
- package/_verture/index-a369ca3f.js +0 -4
- package/_verture/index-beef914f.js +0 -340
- package/_verture/slicedToArray-76060636.js +0 -43
- package/_verture/typeof-498dd2b1.js +0 -11
- package/umd/Split.js +0 -1
package/Pagination/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React__default, { useState, useRef, useEffect, useMemo } from 'react';
|
|
4
4
|
import GlobalContext from '@para-ui/core/GlobalContext';
|
|
5
|
-
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-
|
|
5
|
+
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-0d9802f7.js';
|
|
6
6
|
import { TextField } from '../TextField/index.js';
|
|
7
7
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
8
8
|
import Select from '../Select/index.js';
|
|
9
|
-
import
|
|
9
|
+
import { Button } from '../Button/index.js';
|
|
10
10
|
import NavigateBefore from '@para-ui/icons/Left';
|
|
11
11
|
import PaginationCom from 'rc-pagination';
|
|
12
12
|
import Right from '@para-ui/icons/Right';
|
|
13
|
+
import DoubleLeft from '@para-ui/icons/DoubleLeft';
|
|
13
14
|
import DoubleRight from '@para-ui/icons/DoubleRight';
|
|
14
15
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
15
16
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
16
|
-
import '../_verture/typeof-
|
|
17
|
+
import '../_verture/typeof-adeedc13.js';
|
|
17
18
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
18
19
|
import '../Label/index.js';
|
|
19
20
|
import '../Help/index.js';
|
|
@@ -21,22 +22,23 @@ import '../Tooltip/index.js';
|
|
|
21
22
|
import 'rc-tooltip';
|
|
22
23
|
import 'rc-tooltip/lib/placements';
|
|
23
24
|
import 'clsx';
|
|
25
|
+
import '@para-ui/icons/Forbid';
|
|
24
26
|
import '@para-ui/icons/Help';
|
|
25
27
|
import '@paraview/lib';
|
|
26
28
|
import '@para-ui/icons/PreviewClose';
|
|
27
29
|
import '@para-ui/icons/PreviewOpen';
|
|
28
|
-
import '@para-ui/icons/
|
|
30
|
+
import '@para-ui/icons/CloseCircleF';
|
|
29
31
|
import '../AutoTips/index.js';
|
|
30
32
|
import '../Loading/index.js';
|
|
31
33
|
import '@para-ui/icons/LoadingF';
|
|
32
34
|
import '../HelperText/index.js';
|
|
33
35
|
import '../_verture/useGlobalProps-1b846a65.js';
|
|
34
|
-
import '../_verture/index-
|
|
36
|
+
import '../_verture/index-e9007d6a.js';
|
|
35
37
|
import 'rc-dropdown';
|
|
36
38
|
import '../_verture/usePopupContainer-87febeb9.js';
|
|
37
39
|
import 'dayjs';
|
|
38
|
-
import '../_verture/defineProperty-
|
|
39
|
-
import '../_verture/toConsumableArray-
|
|
40
|
+
import '../_verture/defineProperty-1d116156.js';
|
|
41
|
+
import '../_verture/toConsumableArray-8f4c9589.js';
|
|
40
42
|
import '../Empty/index.js';
|
|
41
43
|
import '@para-ui/icons/Close';
|
|
42
44
|
import '@para-ui/icons/Down';
|
|
@@ -46,17 +48,19 @@ import '../Popover/index.js';
|
|
|
46
48
|
|
|
47
49
|
var en = {
|
|
48
50
|
total: 'Total {total}',
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
barPage: 'Bar/Page',
|
|
52
|
+
prevPage: 'Prev',
|
|
53
|
+
nextPage: 'Next',
|
|
54
|
+
jumpTo: 'Go to',
|
|
55
|
+
page: ' Page'
|
|
53
56
|
};
|
|
54
57
|
|
|
55
58
|
var zh = {
|
|
56
59
|
total: '共{total}条',
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
barPage: '条/页',
|
|
61
|
+
prevPage: '上一页',
|
|
62
|
+
nextPage: '下一页',
|
|
63
|
+
jumpTo: '前往',
|
|
60
64
|
page: '页'
|
|
61
65
|
};
|
|
62
66
|
|
|
@@ -65,7 +69,7 @@ var localeJson = {
|
|
|
65
69
|
en: en
|
|
66
70
|
};
|
|
67
71
|
|
|
68
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/10/26 13:57\n* @description 分页样式\n*/\n/**\n* @author
|
|
72
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/10/26 13:57\n* @description 分页样式\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-pagination {\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 font-size: 14px;\n color: rgb(29, 33, 38);\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n opacity: 1;\n}\n.paraui-v4-pagination.paraui-v4-pagination-over {\n overflow: hidden;\n height: 32px;\n opacity: 0;\n transition: all 0.3s;\n}\n.paraui-v4-pagination.paraui-v4-pagination-no-left-arrow > .pagination-content {\n padding-left: 0;\n}\n.paraui-v4-pagination.paraui-v4-pagination-no-right-arrow > .pagination-content {\n padding-right: 0;\n}\n.paraui-v4-pagination > .pagination-space {\n margin-right: 10px;\n}\n.paraui-v4-pagination > .pagination-space:last-child {\n margin-right: 0;\n}\n.paraui-v4-pagination > .pagination-content {\n border-radius: 4px;\n height: 32px;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-pagination > .pagination-content > .left-page, .paraui-v4-pagination > .pagination-content > .right-page {\n display: inline-block;\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div, .paraui-v4-pagination > .pagination-content > .right-page > div {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n width: 32px;\n height: 32px;\n border-radius: 4px;\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div.disabled-btn, .paraui-v4-pagination > .pagination-content > .right-page > div.disabled-btn {\n cursor: not-allowed;\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div.disabled-btn > svg, .paraui-v4-pagination > .pagination-content > .right-page > div.disabled-btn > svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div.disabled-btn:hover, .paraui-v4-pagination > .pagination-content > .right-page > div.disabled-btn:hover {\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div.disabled-btn:hover > svg, .paraui-v4-pagination > .pagination-content > .right-page > div.disabled-btn:hover > svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div:last-child, .paraui-v4-pagination > .pagination-content > .right-page > div:last-child {\n margin-right: 0;\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div:hover, .paraui-v4-pagination > .pagination-content > .right-page > div:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div:hover > svg, .paraui-v4-pagination > .pagination-content > .right-page > div:hover > svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div > svg, .paraui-v4-pagination > .pagination-content > .right-page > div > svg {\n font-size: 16px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination {\n height: 100%;\n display: inline-block;\n box-shadow: none;\n vertical-align: top;\n line-height: 30px;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li {\n min-width: 32px;\n height: 32px;\n line-height: 32px;\n display: inline-block;\n text-align: center;\n cursor: pointer;\n border-radius: 4px;\n margin-right: 6px;\n padding: 0 6px;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li:first-child, .paraui-v4-pagination > .pagination-content > .component-pagination > li:last-child, .paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-next {\n display: none;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-jump-next, .paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-jump-prev {\n padding: 0;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-prev-icon svg, .paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-next-icon svg {\n display: none;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-prev-icon span, .paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-next-icon span {\n display: inline-block;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-prev-icon:hover svg, .paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-next-icon:hover svg {\n display: inline-block;\n vertical-align: middle;\n color: rgb(87, 131, 235);\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-prev-icon:hover span, .paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-next-icon:hover span {\n display: none;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li:hover {\n background-color: rgb(247, 248, 250);\n color: rgb(87, 131, 235);\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-item-active {\n color: rgb(46, 101, 230);\n border: 1px solid;\n border-color: rgb(46, 101, 230);\n line-height: 30px;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-item-active:hover {\n background: rgb(255, 255, 255);\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-pagination > .pagination-btn-content button:first-child {\n margin-right: 10px;\n}\n.paraui-v4-pagination > .page-line-memo > span {\n display: inline-block;\n margin-right: 8px;\n vertical-align: middle;\n}\n.paraui-v4-pagination > .page-line-memo .page-line-select {\n width: 110px;\n vertical-align: middle;\n}\n.paraui-v4-pagination > .skip-page-memo {\n display: flex;\n align-items: center;\n}\n.paraui-v4-pagination > .skip-page-memo > span {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-pagination > .skip-page-memo > .skip-page-text-field {\n width: 50px;\n margin: 0 4px;\n}\n.paraui-v4-pagination > .skip-page-memo > .skip-page-text-field .right-icon {\n margin-right: 8px;\n}";
|
|
69
73
|
styleInject(css_248z);
|
|
70
74
|
|
|
71
75
|
var Pagination = function Pagination(props) {
|
|
@@ -73,14 +77,16 @@ var Pagination = function Pagination(props) {
|
|
|
73
77
|
style = props.style,
|
|
74
78
|
_props$type = props.type,
|
|
75
79
|
type = _props$type === void 0 ? 'simple' : _props$type,
|
|
80
|
+
_props$pagerType = props.pagerType,
|
|
81
|
+
pagerType = _props$pagerType === void 0 ? 'num' : _props$pagerType,
|
|
76
82
|
_props$autoType = props.autoType,
|
|
77
83
|
autoType = _props$autoType === void 0 ? true : _props$autoType,
|
|
78
84
|
_props$total = props.total,
|
|
79
85
|
total = _props$total === void 0 ? 0 : _props$total,
|
|
80
86
|
_props$rowsPerPage = props.rowsPerPage,
|
|
81
|
-
rowsPerPage = _props$rowsPerPage === void 0 ? [10, 20,
|
|
87
|
+
rowsPerPage = _props$rowsPerPage === void 0 ? [10, 20, 50, 100] : _props$rowsPerPage,
|
|
82
88
|
_props$flippingArrow = props.flippingArrow,
|
|
83
|
-
flippingArrow = _props$flippingArrow === void 0 ? ['
|
|
89
|
+
flippingArrow = _props$flippingArrow === void 0 ? ['prev', 'next'] : _props$flippingArrow,
|
|
84
90
|
_props$currentRowsPer = props.currentRowsPerPage,
|
|
85
91
|
currentRowsPerPage = _props$currentRowsPer === void 0 ? 10 : _props$currentRowsPer,
|
|
86
92
|
_props$page = props.page,
|
|
@@ -145,13 +151,15 @@ var Pagination = function Pagination(props) {
|
|
|
145
151
|
for (var i = 0, l = rowsPerPage.length; i < l; i++) {
|
|
146
152
|
var item = rowsPerPage[i];
|
|
147
153
|
var arrItem = {
|
|
148
|
-
label: item.toString()
|
|
154
|
+
label: item.toString() + intl({
|
|
155
|
+
id: 'barPage'
|
|
156
|
+
}),
|
|
149
157
|
value: item
|
|
150
158
|
};
|
|
151
159
|
arr.push(arrItem);
|
|
152
160
|
}
|
|
153
161
|
setRowsPerPageCom(arr);
|
|
154
|
-
}, [props.rowsPerPage]);
|
|
162
|
+
}, [props.rowsPerPage, locale]);
|
|
155
163
|
useEffect(function () {
|
|
156
164
|
var num = Number(totalPage);
|
|
157
165
|
if (pageCom > num && num !== pageCom) {
|
|
@@ -236,18 +244,18 @@ var Pagination = function Pagination(props) {
|
|
|
236
244
|
return function (value) {
|
|
237
245
|
var num = pageCom;
|
|
238
246
|
switch (type) {
|
|
239
|
-
case "first":
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
247
|
+
/*case "first":
|
|
248
|
+
if (pageCom === 1) return;
|
|
249
|
+
num = 1;
|
|
250
|
+
break;*/
|
|
243
251
|
case "prev":
|
|
244
252
|
if (pageCom === 1) return;
|
|
245
253
|
num--;
|
|
246
254
|
break;
|
|
247
|
-
case "last":
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
255
|
+
/*case "last":
|
|
256
|
+
if (pageCom === totalPage) return;
|
|
257
|
+
num = totalPage;
|
|
258
|
+
break;*/
|
|
251
259
|
case "next":
|
|
252
260
|
if (pageCom === totalPage) return;
|
|
253
261
|
num++;
|
|
@@ -295,19 +303,24 @@ var Pagination = function Pagination(props) {
|
|
|
295
303
|
var changeSkipValue = function changeSkipValue(event) {
|
|
296
304
|
setSkipValue(event.target.value);
|
|
297
305
|
};
|
|
306
|
+
var formatNumber = function formatNumber(num) {
|
|
307
|
+
var reg = /(?=(\B)(\d{3})+$)/g;
|
|
308
|
+
return num.toString().replace(reg, ",");
|
|
309
|
+
};
|
|
298
310
|
/* 总数量 */
|
|
299
311
|
var TotalMemo = useMemo(function () {
|
|
300
312
|
if (typeCom === 'simple' || notLayout('sizes')) {
|
|
301
313
|
return null;
|
|
302
314
|
}
|
|
303
315
|
// 共{total}条
|
|
316
|
+
var totalFormat = formatNumber(total);
|
|
304
317
|
return jsx("div", Object.assign({
|
|
305
318
|
className: "total-num pagination-space"
|
|
306
319
|
}, {
|
|
307
320
|
children: intl({
|
|
308
321
|
id: 'total'
|
|
309
322
|
}, {
|
|
310
|
-
total:
|
|
323
|
+
total: totalFormat
|
|
311
324
|
})
|
|
312
325
|
}));
|
|
313
326
|
}, [total, language, locale, typeCom]);
|
|
@@ -316,104 +329,110 @@ var Pagination = function Pagination(props) {
|
|
|
316
329
|
if (notLayout('pageRow')) {
|
|
317
330
|
return null;
|
|
318
331
|
}
|
|
319
|
-
return
|
|
332
|
+
return jsx("div", Object.assign({
|
|
320
333
|
className: "page-line-memo pagination-space"
|
|
321
334
|
}, {
|
|
322
|
-
children:
|
|
323
|
-
children: intl({
|
|
324
|
-
id: 'linePerPage'
|
|
325
|
-
})
|
|
326
|
-
}), jsx(Select, {
|
|
335
|
+
children: jsx(Select, {
|
|
327
336
|
className: 'page-line-select',
|
|
328
|
-
size: "
|
|
337
|
+
size: "large",
|
|
329
338
|
value: currentRowsPerPageCom,
|
|
330
339
|
list: rowsPerPageCom,
|
|
331
340
|
hideErrorDom: true,
|
|
332
341
|
onChange: clickRowsPerPage,
|
|
333
342
|
allowClear: false,
|
|
334
343
|
getPopupContainer: getPopupContainer
|
|
335
|
-
})
|
|
344
|
+
})
|
|
336
345
|
}));
|
|
337
346
|
}, [rowsPerPageCom, currentRowsPerPageCom, getPopupContainer, language, locale, typeCom]);
|
|
338
|
-
|
|
339
|
-
var
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
var html = jsxs(React__default.Fragment, {
|
|
344
|
-
children: [jsx("span", Object.assign({
|
|
345
|
-
className: "current-page-num"
|
|
346
|
-
}, {
|
|
347
|
-
children: pageCom
|
|
348
|
-
})), jsx("span", Object.assign({
|
|
349
|
-
className: "current-page-sign"
|
|
350
|
-
}, {
|
|
351
|
-
children: "/"
|
|
352
|
-
})), jsx("span", Object.assign({
|
|
353
|
-
className: "current-page-last"
|
|
354
|
-
}, {
|
|
355
|
-
children: totalPage
|
|
356
|
-
}))]
|
|
357
|
-
}, 'fragment');
|
|
358
|
-
return jsx("div", Object.assign({
|
|
359
|
-
className: "current-page pagination-space"
|
|
347
|
+
/** 分页上一页 */
|
|
348
|
+
var jumpPrevIcon = function jumpPrevIcon() {
|
|
349
|
+
return jsxs("div", Object.assign({
|
|
350
|
+
className: "jump-prev-icon"
|
|
360
351
|
}, {
|
|
361
|
-
children:
|
|
362
|
-
|
|
363
|
-
}, {
|
|
364
|
-
currentPage: html
|
|
365
|
-
})
|
|
352
|
+
children: [jsx("span", {
|
|
353
|
+
children: "..."
|
|
354
|
+
}), jsx(DoubleLeft, {})]
|
|
366
355
|
}));
|
|
367
|
-
}
|
|
356
|
+
};
|
|
357
|
+
/** 分页下一页 */
|
|
358
|
+
var jumpNextIcon = function jumpNextIcon() {
|
|
359
|
+
return jsxs("div", Object.assign({
|
|
360
|
+
className: "jump-next-icon"
|
|
361
|
+
}, {
|
|
362
|
+
children: [jsx("span", {
|
|
363
|
+
children: "..."
|
|
364
|
+
}), jsx(DoubleRight, {})]
|
|
365
|
+
}));
|
|
366
|
+
};
|
|
368
367
|
/* 页码 */
|
|
369
368
|
var PaginationMemo = useMemo(function () {
|
|
370
|
-
if (notLayout('pager')) {
|
|
369
|
+
if (typeCom === 'simple' || pagerType !== 'num' || notLayout('pager')) {
|
|
371
370
|
return null;
|
|
372
371
|
}
|
|
373
|
-
var bol = constData.current.type instanceof Array && constData.current.type.indexOf('pager') !== -1;
|
|
374
372
|
return jsxs("div", Object.assign({
|
|
375
373
|
className: "pagination-content pagination-space"
|
|
376
374
|
}, {
|
|
377
|
-
children: [
|
|
375
|
+
children: [flippingArrow.indexOf('prev') !== -1 && jsx("div", Object.assign({
|
|
378
376
|
className: "left-page"
|
|
379
377
|
}, {
|
|
380
|
-
children:
|
|
381
|
-
onClick: clickPage('first'),
|
|
382
|
-
className: pageCom === 1 ? 'disabled-btn' : ''
|
|
383
|
-
}, {
|
|
384
|
-
children: jsx(DoubleLeft, {})
|
|
385
|
-
})), flippingArrow.indexOf('prev') !== -1 && jsx("div", Object.assign({
|
|
378
|
+
children: jsx("div", Object.assign({
|
|
386
379
|
onClick: clickPage('prev'),
|
|
387
380
|
className: pageCom === 1 ? 'disabled-btn' : ''
|
|
388
381
|
}, {
|
|
389
382
|
children: jsx(NavigateBefore, {})
|
|
390
|
-
}))
|
|
391
|
-
})),
|
|
383
|
+
}))
|
|
384
|
+
})), jsx(PaginationCom, {
|
|
392
385
|
prefixCls: $rcPrefixCls + '-pagination',
|
|
393
386
|
current: pageCom,
|
|
394
387
|
pageSize: currentRowsPerPageCom,
|
|
395
388
|
total: total,
|
|
396
|
-
jumpPrevIcon:
|
|
397
|
-
jumpNextIcon:
|
|
389
|
+
jumpPrevIcon: jumpPrevIcon(),
|
|
390
|
+
jumpNextIcon: jumpNextIcon(),
|
|
398
391
|
onChange: clickPage('pagination'),
|
|
399
392
|
showTitle: false
|
|
400
|
-
}),
|
|
401
|
-
className:
|
|
393
|
+
}), flippingArrow.indexOf('next') !== -1 && jsx("div", Object.assign({
|
|
394
|
+
className: 'right-page'
|
|
402
395
|
}, {
|
|
403
|
-
children:
|
|
396
|
+
children: jsx("div", Object.assign({
|
|
404
397
|
onClick: clickPage('next'),
|
|
405
398
|
className: pageCom === totalPage ? 'disabled-btn' : ''
|
|
406
399
|
}, {
|
|
407
400
|
children: jsx(Right, {})
|
|
408
|
-
}))
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
401
|
+
}))
|
|
402
|
+
}))]
|
|
403
|
+
}));
|
|
404
|
+
}, [total, pageCom, totalPage, currentRowsPerPageCom, typeCom, props.flippingArrow, pagerType]);
|
|
405
|
+
/** 页码btn */
|
|
406
|
+
var PaginationBtnMemo = useMemo(function () {
|
|
407
|
+
if (notLayout('pager') || typeCom !== 'simple' && pagerType !== 'btn') {
|
|
408
|
+
return null;
|
|
409
|
+
}
|
|
410
|
+
return jsxs("div", Object.assign({
|
|
411
|
+
className: "pagination-btn-content pagination-space"
|
|
412
|
+
}, {
|
|
413
|
+
children: [jsx(Button, Object.assign({
|
|
414
|
+
variant: "outlined",
|
|
415
|
+
size: "large",
|
|
416
|
+
startIcon: jsx(NavigateBefore, {}),
|
|
417
|
+
onClick: clickPage('prev'),
|
|
418
|
+
disabled: pageCom === 1
|
|
419
|
+
}, {
|
|
420
|
+
children: intl({
|
|
421
|
+
id: 'prevPage'
|
|
422
|
+
})
|
|
423
|
+
})), jsx(Button, Object.assign({
|
|
424
|
+
variant: "outlined",
|
|
425
|
+
size: "large",
|
|
426
|
+
endIcon: jsx(Right, {}),
|
|
427
|
+
onClick: clickPage('next'),
|
|
428
|
+
disabled: pageCom === totalPage
|
|
429
|
+
}, {
|
|
430
|
+
children: intl({
|
|
431
|
+
id: 'nextPage'
|
|
432
|
+
})
|
|
414
433
|
}))]
|
|
415
434
|
}));
|
|
416
|
-
}, [
|
|
435
|
+
}, [pageCom, totalPage, pagerType, typeCom, locale]);
|
|
417
436
|
/* 跳转页数 */
|
|
418
437
|
var SkipPageMemo = useMemo(function () {
|
|
419
438
|
if (typeCom === 'simple' || notLayout('jumper')) {
|
|
@@ -428,24 +447,27 @@ var Pagination = function Pagination(props) {
|
|
|
428
447
|
})
|
|
429
448
|
}), jsx(TextField, {
|
|
430
449
|
className: 'skip-page-text-field',
|
|
431
|
-
size: "
|
|
450
|
+
size: "large",
|
|
432
451
|
type: "number",
|
|
433
452
|
value: skipValue || '',
|
|
434
453
|
onChange: changeSkipValue,
|
|
435
|
-
rightIcon: intl({
|
|
436
|
-
id: 'page'
|
|
437
|
-
}),
|
|
438
454
|
hideErrorDom: true,
|
|
439
455
|
onKeyDown: keyPress,
|
|
440
456
|
onKeyUp: keyUp
|
|
457
|
+
}), jsxs("span", {
|
|
458
|
+
children: ["/ ", totalPage, intl({
|
|
459
|
+
id: 'page'
|
|
460
|
+
})]
|
|
441
461
|
})]
|
|
442
462
|
}));
|
|
443
463
|
}, [skipValue, totalPage, language, locale, typeCom]);
|
|
444
464
|
// 处理class
|
|
445
465
|
var handClass = function handClass() {
|
|
446
466
|
var str = $prefixCls + '-pagination';
|
|
447
|
-
if (flippingArrow.indexOf('first') === -1 && flippingArrow.indexOf('prev') === -1)
|
|
448
|
-
|
|
467
|
+
/*if (flippingArrow.indexOf('first') === -1 && flippingArrow.indexOf('prev') === -1)
|
|
468
|
+
str += ' ' + $prefixCls + '-pagination-no-left-arrow';
|
|
469
|
+
if (flippingArrow.indexOf('next') === -1 && flippingArrow.indexOf('last') === -1)
|
|
470
|
+
str += ' ' + $prefixCls + '-pagination-no-right-arrow';*/
|
|
449
471
|
if (className) str += ' ' + className;
|
|
450
472
|
return str;
|
|
451
473
|
};
|
|
@@ -454,7 +476,7 @@ var Pagination = function Pagination(props) {
|
|
|
454
476
|
style: style,
|
|
455
477
|
ref: refDom
|
|
456
478
|
}, {
|
|
457
|
-
children: [TotalMemo,
|
|
479
|
+
children: [TotalMemo, PaginationMemo, PaginationBtnMemo, PageLineMemo, SkipPageMemo]
|
|
458
480
|
}));
|
|
459
481
|
};
|
|
460
482
|
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
zh: {
|
|
3
3
|
total: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
barPage: string;
|
|
5
|
+
prevPage: string;
|
|
6
|
+
nextPage: string;
|
|
6
7
|
jumpTo: string;
|
|
7
8
|
page: string;
|
|
8
9
|
};
|
|
9
10
|
en: {
|
|
10
11
|
total: string;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
barPage: string;
|
|
13
|
+
prevPage: string;
|
|
14
|
+
nextPage: string;
|
|
13
15
|
jumpTo: string;
|
|
14
16
|
page: string;
|
|
15
17
|
};
|
package/ParauiProvider/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-
|
|
1
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-1d116156.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import GlobalContext, { changeConfirmLocale } from '@para-ui/core/GlobalContext';
|
|
5
5
|
import { GetLanguage } from '@paraview/lib';
|
|
6
|
-
import { i as i18nIntl } from '../_verture/intl-
|
|
6
|
+
import { i as i18nIntl } from '../_verture/intl-5c1ec055.js';
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
-
import '../_verture/typeof-
|
|
8
|
+
import '../_verture/typeof-adeedc13.js';
|
|
9
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}";
|
|
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 linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgb(234, 236, 241);\n}\n\n::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb {\n background: rgb(161, 168, 179);\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-corner {\n background: rgb(234, 236, 241);\n}\n\n::-webkit-scrollbar-thumb:hover {\n background: rgb(212, 218, 227);\n}\n\n::-webkit-scrollbar-thumb:active {\n background: rgb(212, 218, 227);\n}\n\n::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgb(161, 168, 179);\n}\n\n.paraui-v4-scrollbar-small *::-webkit-scrollbar, .paraui-v4-scrollbar-small::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.paraui-v4-scrollbar-small *::-webkit-scrollbar-track, .paraui-v4-scrollbar-small::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-v4-scrollbar-small *::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-small::-webkit-scrollbar-thumb {\n border-radius: 4px;\n}\n\n.paraui-v4-scrollbar-small-deep * ::-webkit-scrollbar, .paraui-v4-scrollbar-small-deep ::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n background-color: rgb(92, 101, 115);\n}\n.paraui-v4-scrollbar-small-deep * ::-webkit-scrollbar-track, .paraui-v4-scrollbar-small-deep ::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-v4-scrollbar-small-deep * ::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-small-deep ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background: rgb(212, 218, 227);\n}\n.paraui-v4-scrollbar-small-deep * ::-webkit-scrollbar-corner, .paraui-v4-scrollbar-small-deep ::-webkit-scrollbar-corner {\n background: rgb(92, 101, 115);\n}\n.paraui-v4-scrollbar-small-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v4-scrollbar-small-deep ::-webkit-scrollbar-thumb:hover {\n background: rgb(161, 168, 179);\n}\n.paraui-v4-scrollbar-small-deep * ::-webkit-scrollbar-thumb:active, .paraui-v4-scrollbar-small-deep ::-webkit-scrollbar-thumb:active {\n background: rgb(161, 168, 179);\n}\n.paraui-v4-scrollbar-small-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v4-scrollbar-small-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgb(212, 218, 227);\n}\n\n.paraui-v4-scrollbar-medium *::-webkit-scrollbar, .paraui-v4-scrollbar-medium::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.paraui-v4-scrollbar-medium *::-webkit-scrollbar-track, .paraui-v4-scrollbar-medium::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-v4-scrollbar-medium *::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-medium::-webkit-scrollbar-thumb {\n border-radius: 6px;\n}\n\n.paraui-v4-scrollbar-medium-deep * ::-webkit-scrollbar, .paraui-v4-scrollbar-medium-deep ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgb(92, 101, 115);\n}\n.paraui-v4-scrollbar-medium-deep * ::-webkit-scrollbar-track, .paraui-v4-scrollbar-medium-deep ::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-v4-scrollbar-medium-deep * ::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-medium-deep ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: rgb(212, 218, 227);\n}\n.paraui-v4-scrollbar-medium-deep * ::-webkit-scrollbar-corner, .paraui-v4-scrollbar-medium-deep ::-webkit-scrollbar-corner {\n background: rgb(92, 101, 115);\n}\n.paraui-v4-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v4-scrollbar-medium-deep ::-webkit-scrollbar-thumb:hover {\n background: rgb(161, 168, 179);\n}\n.paraui-v4-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:active, .paraui-v4-scrollbar-medium-deep ::-webkit-scrollbar-thumb:active {\n background: rgb(161, 168, 179);\n}\n.paraui-v4-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v4-scrollbar-medium-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgb(212, 218, 227);\n}\n\n.paraui-v4-scrollbar-large *::-webkit-scrollbar, .paraui-v4-scrollbar-large::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n.paraui-v4-scrollbar-large *::-webkit-scrollbar-track, .paraui-v4-scrollbar-large::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-v4-scrollbar-large *::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-large::-webkit-scrollbar-thumb {\n border-radius: 8px;\n}\n\n.paraui-v4-scrollbar-large-deep * ::-webkit-scrollbar, .paraui-v4-scrollbar-large-deep ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: rgb(92, 101, 115);\n}\n.paraui-v4-scrollbar-large-deep * ::-webkit-scrollbar-track, .paraui-v4-scrollbar-large-deep ::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-v4-scrollbar-large-deep * ::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-large-deep ::-webkit-scrollbar-thumb {\n border-radius: 8px;\n background: rgb(212, 218, 227);\n}\n.paraui-v4-scrollbar-large-deep * ::-webkit-scrollbar-corner, .paraui-v4-scrollbar-large-deep ::-webkit-scrollbar-corner {\n background: rgb(92, 101, 115);\n}\n.paraui-v4-scrollbar-large-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v4-scrollbar-large-deep ::-webkit-scrollbar-thumb:hover {\n background: rgb(161, 168, 179);\n}\n.paraui-v4-scrollbar-large-deep * ::-webkit-scrollbar-thumb:active, .paraui-v4-scrollbar-large-deep ::-webkit-scrollbar-thumb:active {\n background: rgb(161, 168, 179);\n}\n.paraui-v4-scrollbar-large-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v4-scrollbar-large-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgb(212, 218, 227);\n}\n\n.paraui-v4-form .paraui-v4-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}\n\nsvg {\n overflow: hidden;\n}";
|
|
11
11
|
styleInject(css_248z);
|
|
12
12
|
|
|
13
13
|
var ParauiProvider = function ParauiProvider(props) {
|
package/PasswordRules/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
5
|
-
import
|
|
4
|
+
import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
5
|
+
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
6
6
|
import CompleteIcon from '@para-ui/icons/CheckCircleF';
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
8
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
9
9
|
|
|
10
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/11/1 20:28\n* @description 文字隐藏...\n*/\n/**\n* @author
|
|
10
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/11/1 20:28\n* @description 文字隐藏...\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-password-rules {\n padding: 14px 16px;\n line-height: 1.43;\n}\n.paraui-v4-password-rules > .password-rules-item:first-child > .password-rules-item-title {\n margin-top: 0px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-title {\n font-size: 14px;\n color: rgb(29, 33, 38);\n font-weight: 700;\n margin-bottom: 6px;\n margin-top: 10px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail {\n display: flex;\n margin-bottom: 6px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail:last-child {\n margin-bottom: 0;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail > .item-flag {\n min-width: 24px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail > .item-label {\n flex: 1;\n font-size: 14px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-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-v4-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: rgb(161, 168, 179);\n margin-top: 2px;\n}\n.paraui-v4-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-order > .item-flag {\n margin-top: -1px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-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(19, 191, 76);\n}\n.paraui-v4-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(244, 66, 66);\n}\n.paraui-v4-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(244, 66, 66);\n}\n.paraui-v4-password-rules.paraui-v4-password-rules-box-shadow {\n box-shadow: 0px 2px 8px 0px rgb(234, 236, 241);\n border-radius: 4px;\n}";
|
|
11
11
|
styleInject(css_248z);
|
|
12
12
|
|
|
13
13
|
var PasswordRules = function PasswordRules(props) {
|
|
@@ -76,7 +76,7 @@ var PasswordRules = function PasswordRules(props) {
|
|
|
76
76
|
return inx + 1 + '、';
|
|
77
77
|
}
|
|
78
78
|
if (result === true) return jsx(CompleteIcon, {}); // 成功
|
|
79
|
-
return jsx(
|
|
79
|
+
return jsx(CloseCircleF, {});
|
|
80
80
|
};
|
|
81
81
|
// 处理内容
|
|
82
82
|
var handLabel = function handLabel() {
|
package/PopConfirm/index.d.ts
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* @date 2021/8/9 下午3:45
|
|
4
4
|
* @description popConfirm
|
|
5
5
|
*/
|
|
6
|
-
import React, {
|
|
7
|
-
import { ButtonProps } from
|
|
8
|
-
import { TooltipProps } from
|
|
6
|
+
import React, { FC, ReactNode } from 'react';
|
|
7
|
+
import { ButtonProps } from '../Button';
|
|
8
|
+
import { TooltipProps } from '../Tooltip';
|
|
9
9
|
import './index.scss';
|
|
10
|
-
type ConfirmType =
|
|
10
|
+
type ConfirmType = 'success' | 'info' | 'error' | 'warning';
|
|
11
11
|
export interface PopConfirmProps {
|
|
12
12
|
/**触发方式*/
|
|
13
13
|
trigger?: 'click' | 'hover';
|
|
@@ -21,6 +21,8 @@ export interface PopConfirmProps {
|
|
|
21
21
|
title?: ReactNode;
|
|
22
22
|
/**内容*/
|
|
23
23
|
content?: ReactNode;
|
|
24
|
+
/** 辅助说明 */
|
|
25
|
+
description?: ReactNode;
|
|
24
26
|
/**自定义图标*/
|
|
25
27
|
icon?: ReactNode;
|
|
26
28
|
/**ok 文本*/
|
|
@@ -35,6 +37,12 @@ export interface PopConfirmProps {
|
|
|
35
37
|
okButtonProps?: ButtonProps;
|
|
36
38
|
/** 取消按钮属性*/
|
|
37
39
|
cancelButtonProps?: ButtonProps;
|
|
40
|
+
/** 确认按钮展示高危样式,不再接受okButtonProps控制样式 */
|
|
41
|
+
okButtonDanger?: boolean;
|
|
42
|
+
/** 确认按钮倒计时状态,倒计时进行时按钮为禁用,倒计时完成后解除禁用 */
|
|
43
|
+
countdown?: boolean;
|
|
44
|
+
/** 倒计时时长(单位是s),countdown启用后生效,默认5s */
|
|
45
|
+
countdownTime?: number;
|
|
38
46
|
/** 位置*/
|
|
39
47
|
placement?: TooltipProps['placement'];
|
|
40
48
|
/** cls*/
|
|
@@ -53,9 +61,11 @@ export interface PopConfirmProps {
|
|
|
53
61
|
actions?: ReactNode;
|
|
54
62
|
/** 关闭回调*/
|
|
55
63
|
onClose?: () => void;
|
|
64
|
+
/** 倒计时完成回调 */
|
|
65
|
+
onCountdownFinish?: () => void;
|
|
56
66
|
/** 浮层渲染容器,默认body */
|
|
57
67
|
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
58
68
|
[name: string]: any;
|
|
59
69
|
}
|
|
60
|
-
export declare const PopConfirm:
|
|
70
|
+
export declare const PopConfirm: FC<PopConfirmProps>;
|
|
61
71
|
export default PopConfirm;
|