@para-ui/core 4.0.0-beta → 4.0.0-rc.1
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.d.ts +1 -1
- package/AutoBox/index.js +12 -12
- package/AutoTips/autoTipsMultiline/index.d.ts +1 -1
- package/AutoTips/index.d.ts +2 -2
- package/AutoTips/index.js +17 -17
- package/Badge/index.d.ts +23 -0
- package/Badge/index.js +54 -0
- package/Breadcrumbs/index.js +8 -8
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/Button/index.js +4 -4
- package/Carousel/index.d.ts +6 -6
- package/Carousel/index.js +5 -5
- package/Cascader/Cascader.d.ts +10 -10
- package/Cascader/OptionList/Column.d.ts +3 -3
- package/Cascader/OptionList/index.d.ts +2 -2
- package/Cascader/index.d.ts +1 -1
- package/Cascader/index.js +5 -3
- package/Cascader/lang/en_US.d.ts +5 -0
- package/Cascader/lang/index.d.ts +11 -0
- package/Cascader/lang/zh_CN.d.ts +5 -0
- package/Cascader/utils/treeUtil.d.ts +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/Checkbox/index.js +5 -5
- package/CheckboxGroup/index.d.ts +2 -2
- package/CheckboxGroup/index.js +3 -3
- package/Collapse/index.js +4 -4
- package/CollapseBox/index.js +12 -20
- package/CollapseLayout/index.js +20 -20
- package/ColorPicker/index.js +2 -2
- package/ComboSelect/index.js +53 -63
- package/ComboSelect/interface.d.ts +3 -3
- package/ComboSelect/utils.d.ts +5 -0
- package/Container/index.d.ts +3 -3
- package/Container/index.js +56 -56
- package/CopyText/index.d.ts +2 -2
- package/CopyText/index.js +2 -2
- package/DatePicker/generatePicker/index.d.ts +22 -22
- package/DatePicker/index.js +10 -8
- package/DatePicker/util.d.ts +1 -1
- package/Desktop/index.d.ts +1 -1
- package/Desktop/index.js +19 -14
- package/DragVerify/index.d.ts +1 -1
- package/DragVerify/index.js +15 -15
- package/Drawer/index.d.ts +2 -2
- package/Drawer/index.js +118 -17
- package/Drawer/interface.d.ts +10 -2
- package/Drawer/util.d.ts +6 -0
- package/Dropdown/index.d.ts +1 -1
- package/DynamicMultiBox/formItem.d.ts +1 -1
- package/DynamicMultiBox/index.d.ts +7 -2
- package/DynamicMultiBox/index.js +42 -39
- package/DynamicMultiBox/interface.d.ts +8 -8
- package/DynamicMultiBox/rowForm.d.ts +3 -1
- package/Empty/index.d.ts +1 -1
- package/Empty/index.js +2 -2
- package/Form/index.d.ts +12 -13
- package/Form/index.js +14 -12
- package/FormItem/compoments/defaultCompoments/index.d.ts +4 -4
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +1 -1
- package/FormItem/compoments/formFile/index.d.ts +2 -2
- package/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
- package/FormItem/compoments/formSelect/index.d.ts +7 -7
- package/FormItem/errorTips.d.ts +3 -3
- package/FormItem/index.d.ts +5 -5
- package/FormItem/index.js +7 -6
- package/FormItem/lang/en_US.d.ts +10 -0
- package/FormItem/lang/index.d.ts +21 -0
- package/FormItem/lang/zh_CN.d.ts +10 -0
- package/FormItem/validateFunction.d.ts +1 -1
- package/FunctionModal/dialog.d.ts +26 -26
- package/FunctionModal/index.d.ts +6 -6
- package/FunctionModal/index.js +9 -9
- package/FunctionModal/modalContext.d.ts +3 -3
- package/GlobalContext/componentsProps.d.ts +7 -7
- package/GlobalContext/index.d.ts +2 -2
- package/GlobalContext/index.js +1 -1
- package/GlobalContext/useFormatMessage.d.ts +1 -1
- package/Help/index.js +2 -2
- package/HelperText/index.js +1 -1
- package/InputLang/index.d.ts +2 -2
- package/InputLang/index.js +8 -8
- package/InputNumber/index.d.ts +2 -2
- package/InputNumber/index.js +4 -4
- package/Label/index.js +2 -2
- package/Loading/index.js +1 -1
- package/Menu/index.js +14 -14
- package/Menu/interface.d.ts +1 -1
- package/Message/index.js +12 -12
- package/Modal/Confirm/index.d.ts +3 -3
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +7 -7
- package/MultiBox/index.d.ts +2 -2
- package/MultiBox/index.js +11 -7
- package/Notification/index.js +2 -2
- package/OperateBtn/index.d.ts +2 -2
- package/OperateBtn/index.js +42 -37
- package/PageHeader/index.js +31 -31
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/Pagination/index.js +17 -17
- package/ParauiProvider/index.js +1 -1
- package/PasswordRules/index.js +8 -8
- package/PopConfirm/index.js +4 -4
- package/Progress/Line.d.ts +10 -10
- package/Progress/Steps.d.ts +2 -2
- package/Progress/index.d.ts +12 -12
- package/Progress/index.js +40 -40
- package/Progress/utils.d.ts +4 -4
- package/Querying/index.d.ts +1 -1
- package/Querying/index.js +2 -2
- package/README.md +3 -0
- package/Radio/index.d.ts +1 -1
- package/Radio/index.js +5 -5
- package/RadioGroup/index.d.ts +2 -2
- package/RadioGroup/index.js +3 -3
- package/Search/index.js +2 -2
- package/Select/index.d.ts +3 -3
- package/Select/index.js +43 -43
- package/SelectInput/index.js +2 -2
- package/Selector/index.js +19 -19
- package/Selector/interface.d.ts +6 -6
- package/SelectorPicker/index.d.ts +4 -4
- package/SelectorPicker/index.js +12 -12
- package/SingleBox/index.d.ts +2 -2
- package/SingleBox/index.js +3 -3
- package/Slider/interface.d.ts +1 -1
- package/Status/index.d.ts +6 -4
- package/Status/index.js +21 -9
- package/Stepper/index.d.ts +5 -5
- package/Stepper/index.js +24 -24
- package/Styles/scrollbar.scss +66 -66
- package/Styles/theme.scss +62 -61
- package/Switch/index.d.ts +7 -7
- package/Switch/index.js +24 -6
- package/Switch/lang/en_US.d.ts +4 -0
- package/Switch/lang/index.d.ts +9 -0
- package/Switch/lang/zh_CN.d.ts +4 -0
- package/Table/index.js +36 -36
- package/Table/interface.d.ts +4 -4
- package/Table/tableBodyElement/index.d.ts +1 -1
- package/Table/tableBodyInterface.d.ts +2 -2
- package/Table/tableContainer/index.d.ts +1 -1
- package/Table/tableElement/index.d.ts +1 -1
- package/Table/tableHeadElement/index.d.ts +1 -1
- package/Table/tableHeadInterface.d.ts +1 -1
- package/Table/tablePaginationInterface.d.ts +6 -6
- package/Table/tdElement/index.d.ts +1 -1
- package/Table/thElement/index.d.ts +2 -2
- package/Table/trElement/index.d.ts +1 -1
- package/Table/util.d.ts +1 -1
- package/Tabs/index.d.ts +1 -1
- package/Tabs/index.js +26 -18
- package/Tag/TagGroup.d.ts +5 -5
- package/Tag/index.d.ts +7 -7
- package/Tag/index.js +33 -1207
- package/TextEditor/index.d.ts +2 -2
- package/TextEditor/index.js +45 -27
- package/TextEditor/lang/en_US.d.ts +4 -0
- package/TextEditor/lang/index.d.ts +9 -0
- package/TextEditor/lang/zh_CN.d.ts +4 -0
- package/TextField/index.d.ts +1 -1
- package/TextField/index.js +13 -13
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +2 -1
- package/Timeline/TimelineItem.d.ts +1 -1
- package/Timeline/index.d.ts +5 -5
- package/Timeline/index.js +14 -14
- package/Title/index.d.ts +6 -4
- package/Title/index.js +9 -5
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButton/index.d.ts +5 -1
- package/ToggleButton/index.js +17 -10
- package/Tooltip/index.js +1 -1
- package/Transfer/box.d.ts +6 -6
- package/Transfer/index.js +27 -27
- package/Tree/OperateBar/index.d.ts +2 -2
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +4 -4
- package/Tree/interface.d.ts +8 -4
- package/Tree/utils/tools.d.ts +1 -1
- package/Upload/Dragger/index.d.ts +2 -2
- package/Upload/ErroTip/index.d.ts +1 -1
- package/Upload/index.d.ts +2 -2
- package/Upload/index.js +13 -13
- package/Upload/interface.d.ts +1 -1
- package/_verture/{index-5c77417d.js → index-0f315bca.js} +4 -4
- package/_verture/{index-e2881a53.js → index-19947788.js} +2 -2
- package/_verture/{index-d63bd287.js → index-232d890b.js} +1 -1
- package/_verture/{index-68db2bc3.js → index-92e406f4.js} +50 -26
- package/_verture/{index-7ec72724.js → index-bc461491.js} +45 -38
- package/_verture/{index-e6f85fd5.js → index-d251967e.js} +104 -47
- package/_verture/{modalContext-c12ca3e8.js → modalContext-9299acc9.js} +26 -26
- package/_verture/tinycolor-ece3542d.js +1180 -0
- package/_verture/{utils-f0e81540.js → utils-06d86594.js} +3 -6
- package/index.d.ts +2 -0
- package/index.js +14 -13
- package/locale/en-US.d.ts +19 -0
- package/locale/index.d.ts +38 -0
- package/locale/index.js +41 -3
- package/locale/zh-CN.d.ts +19 -0
- package/package.json +53 -8
- package/umd/AutoBox.js +2 -2
- package/umd/AutoTips.js +4 -4
- package/umd/Badge.js +1 -0
- package/umd/Breadcrumbs.js +2 -2
- package/umd/Button.js +2 -2
- package/umd/ButtonGroup.js +4 -4
- package/umd/Cascader.js +4 -4
- package/umd/Checkbox.js +5 -5
- package/umd/CheckboxGroup.js +5 -5
- package/umd/Collapse.js +1 -1
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +6 -6
- package/umd/CopyText.js +2 -2
- package/umd/DatePicker.js +2 -2
- package/umd/Desktop.js +2 -2
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +4 -4
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +2 -2
- package/umd/GlobalContext.js +1 -1
- package/umd/Help.js +2 -2
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +4 -4
- package/umd/InputNumber.js +2 -2
- package/umd/Label.js +2 -2
- package/umd/Loading.js +1 -1
- package/umd/Menu.js +2 -2
- package/umd/Message.js +1 -1
- package/umd/Modal.js +2 -2
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +2 -2
- package/umd/OperateBtn.js +2 -2
- package/umd/PageHeader.js +2 -2
- package/umd/Pagination.js +4 -4
- package/umd/ParauiProvider.js +1 -1
- package/umd/PasswordRules.js +3 -3
- package/umd/PopConfirm.js +2 -2
- package/umd/Popover.js +1 -1
- package/umd/Progress.js +1 -1
- package/umd/Radio.js +2 -2
- package/umd/RadioGroup.js +2 -2
- package/umd/Search.js +7 -7
- package/umd/Select.js +2 -2
- package/umd/SelectInput.js +2 -2
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +2 -2
- package/umd/Status.js +4 -4
- package/umd/Stepper.js +2 -2
- package/umd/Switch.js +5 -5
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +4 -4
- package/umd/Tag.js +2 -2
- package/umd/TextEditor.js +3 -3
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +2 -2
- package/umd/Title.js +2 -2
- package/umd/ToggleButton.js +4 -4
- package/umd/Tooltip.js +1 -1
- package/umd/Transfer.js +5 -5
- package/umd/Tree.js +7 -7
- package/umd/Upload.js +2 -2
- package/umd/locale.js +1 -1
- /package/_verture/{typeof-b240b062.js → typeof-c310ee4a.js} +0 -0
package/ParauiProvider/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { i as i18nIntl } from '../_verture/intl-5c1ec055.js';
|
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
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 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}";
|
|
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: 8px;\n height: 8px;\n background-color: rgb(234, 236, 241);\n}\n\n::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n\n::-webkit-scrollbar-thumb {\n background: rgb(161, 168, 179);\n border-radius: 4px;\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: 2px;\n}\n.paraui-v4-scrollbar-small *::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-small::-webkit-scrollbar-thumb {\n border-radius: 2px;\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: 2px;\n}\n.paraui-v4-scrollbar-small-deep::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-small-deep *::-webkit-scrollbar-thumb {\n border-radius: 2px;\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: 4px;\n height: 4px;\n}\n.paraui-v4-scrollbar-medium *::-webkit-scrollbar-track, .paraui-v4-scrollbar-medium::-webkit-scrollbar-track {\n border-radius: 2px;\n}\n.paraui-v4-scrollbar-medium *::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-medium::-webkit-scrollbar-thumb {\n border-radius: 2px;\n}\n\n.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar, .paraui-v4-scrollbar-medium-deep::-webkit-scrollbar {\n width: 4px;\n height: 4px;\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: 2px;\n}\n.paraui-v4-scrollbar-medium-deep *::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-medium-deep::-webkit-scrollbar-thumb {\n border-radius: 2px;\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: 4px;\n}\n.paraui-v4-scrollbar-large *::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-large::-webkit-scrollbar-thumb {\n border-radius: 4px;\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: 4px;\n}\n.paraui-v4-scrollbar-large-deep *::-webkit-scrollbar-thumb, .paraui-v4-scrollbar-large-deep::-webkit-scrollbar-thumb {\n border-radius: 4px;\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
|
@@ -7,7 +7,7 @@ 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 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}";
|
|
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 {\n font-size: 14px;\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) {
|
|
@@ -73,21 +73,21 @@ var PasswordRules = function PasswordRules(props) {
|
|
|
73
73
|
// 处理标志
|
|
74
74
|
var handFlag = function handFlag() {
|
|
75
75
|
if (type === 'order') {
|
|
76
|
-
return inx + 1
|
|
76
|
+
return "".concat(inx + 1, "\u3001");
|
|
77
77
|
}
|
|
78
78
|
if (result === true) return jsx(CompleteIcon, {}); // 成功
|
|
79
79
|
return jsx(CloseCircleF, {});
|
|
80
80
|
};
|
|
81
81
|
// 处理内容
|
|
82
82
|
var handLabel = function handLabel() {
|
|
83
|
-
if (typeof result !==
|
|
83
|
+
if (typeof result !== 'boolean' && result) return result;
|
|
84
84
|
return listItem.label;
|
|
85
85
|
};
|
|
86
86
|
// 处理样式
|
|
87
87
|
var handClassRulesItem = function handClassRulesItem() {
|
|
88
88
|
var str = 'rules-item-detail';
|
|
89
|
-
str +=
|
|
90
|
-
if (typeof result ===
|
|
89
|
+
str += " rules-item-detail-".concat(type);
|
|
90
|
+
if (typeof result === 'boolean' && result) {
|
|
91
91
|
str += ' rules-item-detail-success';
|
|
92
92
|
} else {
|
|
93
93
|
if (result !== undefined) str += ' rules-item-detail-error';
|
|
@@ -118,9 +118,9 @@ var PasswordRules = function PasswordRules(props) {
|
|
|
118
118
|
};
|
|
119
119
|
/** 处理className */
|
|
120
120
|
var handClass = function handClass() {
|
|
121
|
-
var str = $prefixCls
|
|
122
|
-
if (className) str +=
|
|
123
|
-
if (boxShadow) str +=
|
|
121
|
+
var str = "".concat($prefixCls, "-password-rules");
|
|
122
|
+
if (className) str += " ".concat(className);
|
|
123
|
+
if (boxShadow) str += " ".concat($prefixCls, "-password-rules-box-shadow");
|
|
124
124
|
return str;
|
|
125
125
|
};
|
|
126
126
|
return jsx("div", Object.assign({
|
package/PopConfirm/index.js
CHANGED
|
@@ -42,7 +42,7 @@ var localeJson = {
|
|
|
42
42
|
en: en
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-popconfirm.paraui-v4-tooltip {\n position: absolute;\n width: 440px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 0px 2px 8px 0px rgb(234, 236, 241);\n border-radius: 8px;\n}\n.paraui-v4-popconfirm.paraui-v4-tooltip .component-tooltip-inner {\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper {\n padding: 16px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 2px;\n color: rgb(255, 147, 38);\n line-height: 0;\n font-size:
|
|
45
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-popconfirm.paraui-v4-tooltip {\n position: absolute;\n width: 440px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 0px 2px 8px 0px rgb(234, 236, 241);\n border-radius: 8px;\n}\n.paraui-v4-popconfirm.paraui-v4-tooltip .component-tooltip-inner {\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper {\n padding: 16px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 2px;\n color: rgb(255, 147, 38);\n line-height: 0;\n font-size: 16px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-icon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-body {\n padding-left: 24px;\n line-height: 20px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-title {\n font-weight: 600;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-content {\n font-weight: 400;\n margin-top: 10px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-description {\n margin-top: 4px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-btns {\n margin-top: 12px;\n text-align: right;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-btns > button + button {\n margin-left: 12px;\n}\n.paraui-v4-popconfirm .paraui-v4-popconfirm-btn {\n min-width: 54px;\n}";
|
|
46
46
|
styleInject(css_248z);
|
|
47
47
|
|
|
48
48
|
//图标
|
|
@@ -202,15 +202,15 @@ var PopConfirm = function PopConfirm(props) {
|
|
|
202
202
|
className: 'popconfirm-message-body'
|
|
203
203
|
}, {
|
|
204
204
|
children: [title && jsx("div", Object.assign({
|
|
205
|
-
className:
|
|
205
|
+
className: "popconfirm-message-title"
|
|
206
206
|
}, {
|
|
207
207
|
children: title
|
|
208
208
|
})), content && jsx("div", Object.assign({
|
|
209
|
-
className:
|
|
209
|
+
className: "popconfirm-message-content"
|
|
210
210
|
}, {
|
|
211
211
|
children: content
|
|
212
212
|
})), description && jsx("div", Object.assign({
|
|
213
|
-
className:
|
|
213
|
+
className: "popconfirm-message-description"
|
|
214
214
|
}, {
|
|
215
215
|
children: description
|
|
216
216
|
}))]
|
package/Progress/Line.d.ts
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* @date 2022/3/10 18:25
|
|
4
4
|
* @description 线性进度条
|
|
5
5
|
*/
|
|
6
|
-
import * as React from
|
|
7
|
-
import { ProgressProps, StringGradients, DirectionType } from
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ProgressProps, StringGradients, DirectionType } from './index';
|
|
8
8
|
interface LineProps extends ProgressProps {
|
|
9
9
|
direction?: DirectionType;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* 转换 百分比 到 样式格式
|
|
13
|
+
* 转换 百分比 到 样式格式
|
|
14
14
|
* {
|
|
15
15
|
* "0%": "#afc163",
|
|
16
16
|
* "75%": "#009900",
|
|
@@ -18,12 +18,12 @@ interface LineProps extends ProgressProps {
|
|
|
18
18
|
* "25%": "#66FF00",
|
|
19
19
|
* "100%": "#ffffff"
|
|
20
20
|
* }
|
|
21
|
-
* @param gradients 渐变的参数
|
|
22
|
-
* @return {string} 样式值
|
|
23
|
-
*/
|
|
21
|
+
* @param gradients 渐变的参数
|
|
22
|
+
* @return {string} 样式值
|
|
23
|
+
*/
|
|
24
24
|
export declare const sortGradient: (gradients: StringGradients) => string;
|
|
25
25
|
/**
|
|
26
|
-
* 转换传进来 渐变的参数 为css样式
|
|
26
|
+
* 转换传进来 渐变的参数 为css样式
|
|
27
27
|
* {
|
|
28
28
|
* "0%": "#afc163",
|
|
29
29
|
* "25%": "#66FF00",
|
|
@@ -37,9 +37,9 @@ export declare const sortGradient: (gradients: StringGradients) => string;
|
|
|
37
37
|
* "to": "#66FF00",// ====> linear-gradient(to right, #afc163, #66FF00)
|
|
38
38
|
* }
|
|
39
39
|
*
|
|
40
|
-
* @param {string} strokeColor 颜色值
|
|
41
|
-
* @return 返回 backgroundImage 的样式值
|
|
42
|
-
*/
|
|
40
|
+
* @param {string} strokeColor 颜色值
|
|
41
|
+
* @return 返回 backgroundImage 的样式值
|
|
42
|
+
*/
|
|
43
43
|
export declare const handleGradient: (strokeColor: any, directionConfig: DirectionType) => {
|
|
44
44
|
backgroundImage: string;
|
|
45
45
|
};
|
package/Progress/Steps.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @date 2022/3/10 18:25
|
|
4
4
|
* @description 进度条的步骤条
|
|
5
5
|
*/
|
|
6
|
-
import * as React from
|
|
7
|
-
import { ProgressProps } from
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ProgressProps } from './index';
|
|
8
8
|
interface StepsProps extends ProgressProps {
|
|
9
9
|
/** 一共有多少步 **/
|
|
10
10
|
steps: number;
|
package/Progress/index.d.ts
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
* @date 2022/3/10 18:25
|
|
4
4
|
* @description 进度条
|
|
5
5
|
*/
|
|
6
|
-
import React, { FunctionComponent } from
|
|
7
|
-
import
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
8
|
/** 进度条类型 **/
|
|
9
9
|
declare enum ProgressTypes {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
'line' = 0,
|
|
11
|
+
'circle' = 1,
|
|
12
|
+
'dashboard' = 2
|
|
13
13
|
}
|
|
14
14
|
export type ProgressType = typeof ProgressTypes[number];
|
|
15
15
|
/** 进度条状态 **/
|
|
16
16
|
declare enum ProgressStatuses {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
'normal' = 0,
|
|
18
|
+
'exception' = 1,
|
|
19
|
+
'active' = 2,
|
|
20
|
+
'success' = 3
|
|
21
21
|
}
|
|
22
22
|
/** 渐变进度条入参格式 两种 **/
|
|
23
23
|
export type StringGradients = {
|
|
@@ -32,7 +32,7 @@ export type ProgressGradient = {
|
|
|
32
32
|
direction?: string;
|
|
33
33
|
} & (StringGradients | FromToGradients);
|
|
34
34
|
/** 进度条渐变方向 **/
|
|
35
|
-
export type DirectionType =
|
|
35
|
+
export type DirectionType = 'ltr' | 'rtl' | undefined;
|
|
36
36
|
/** 成功的进度条的配置 **/
|
|
37
37
|
export interface SuccessProps {
|
|
38
38
|
/** 进度条值 **/
|
|
@@ -58,7 +58,7 @@ export interface ProgressProps {
|
|
|
58
58
|
/** 进度条线的宽度,单位 px **/
|
|
59
59
|
strokeWidth?: number;
|
|
60
60
|
/** 进度条的样式 **/
|
|
61
|
-
strokeLinecap?:
|
|
61
|
+
strokeLinecap?: 'butt' | 'square' | 'round';
|
|
62
62
|
/** 进度条的色彩 **/
|
|
63
63
|
strokeColor?: string | ({
|
|
64
64
|
direction?: string;
|
|
@@ -72,7 +72,7 @@ export interface ProgressProps {
|
|
|
72
72
|
/** 仪表盘进度条缺口角度,可取值 0 ~ 295 **/
|
|
73
73
|
gapDegree?: number;
|
|
74
74
|
/** 仪表盘进度条缺口位置 **/
|
|
75
|
-
gapPosition?:
|
|
75
|
+
gapPosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
76
76
|
/** 进度条总共步数 **/
|
|
77
77
|
steps?: number;
|
|
78
78
|
/** 渐变颜色的方向 **/
|
package/Progress/index.js
CHANGED
|
@@ -18,11 +18,11 @@ var Steps = function Steps(props) {
|
|
|
18
18
|
trailColor = props.trailColor,
|
|
19
19
|
children = props.children;
|
|
20
20
|
/** 计算出应该高亮多少步 **/
|
|
21
|
-
var current = typeof percent ===
|
|
21
|
+
var current = typeof percent === 'number' ? Math.round(steps * (percent / 100)) : 1;
|
|
22
22
|
var styledSteps = [];
|
|
23
23
|
for (var i = 0; i < steps; i += 1) {
|
|
24
24
|
styledSteps.push(jsx("div", {
|
|
25
|
-
className: i <= current - 1 ?
|
|
25
|
+
className: i <= current - 1 ? 'steps-item steps-item-active' : 'steps-item',
|
|
26
26
|
style: {
|
|
27
27
|
backgroundColor: i <= current - 1 ? strokeColor : trailColor,
|
|
28
28
|
width: 14,
|
|
@@ -38,10 +38,10 @@ var Steps = function Steps(props) {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* 判断进度条传的百分比参数是否规范
|
|
42
|
-
* @param {number | undefined} progress 方法入参说明
|
|
43
|
-
* @return {numner} 百分比值
|
|
44
|
-
*/
|
|
41
|
+
* 判断进度条传的百分比参数是否规范
|
|
42
|
+
* @param {number | undefined} progress 方法入参说明
|
|
43
|
+
* @return {numner} 百分比值
|
|
44
|
+
*/
|
|
45
45
|
function validProgress(progress) {
|
|
46
46
|
if (!progress || progress < 0) {
|
|
47
47
|
return 0;
|
|
@@ -53,7 +53,7 @@ function validProgress(progress) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* 转换 百分比 到 样式格式
|
|
56
|
+
* 转换 百分比 到 样式格式
|
|
57
57
|
* {
|
|
58
58
|
* "0%": "#afc163",
|
|
59
59
|
* "75%": "#009900",
|
|
@@ -61,14 +61,14 @@ function validProgress(progress) {
|
|
|
61
61
|
* "25%": "#66FF00",
|
|
62
62
|
* "100%": "#ffffff"
|
|
63
63
|
* }
|
|
64
|
-
* @param gradients 渐变的参数
|
|
65
|
-
* @return {string} 样式值
|
|
66
|
-
*/
|
|
64
|
+
* @param gradients 渐变的参数
|
|
65
|
+
* @return {string} 样式值
|
|
66
|
+
*/
|
|
67
67
|
var sortGradient = function sortGradient(gradients) {
|
|
68
68
|
var tempArr = [];
|
|
69
69
|
Object.keys(gradients).forEach(function (key) {
|
|
70
70
|
// 拿到百分比的数字
|
|
71
|
-
var formattedKey = parseFloat(key.replace(/%/g,
|
|
71
|
+
var formattedKey = parseFloat(key.replace(/%/g, ''));
|
|
72
72
|
// 进行序列化
|
|
73
73
|
if (!isNaN(formattedKey)) {
|
|
74
74
|
tempArr.push({
|
|
@@ -85,10 +85,10 @@ var sortGradient = function sortGradient(gradients) {
|
|
|
85
85
|
var key = _ref.key,
|
|
86
86
|
value = _ref.value;
|
|
87
87
|
return "".concat(value, " ").concat(key, "%");
|
|
88
|
-
}).join(
|
|
88
|
+
}).join(', ');
|
|
89
89
|
};
|
|
90
90
|
/**
|
|
91
|
-
* 转换传进来 渐变的参数 为css样式
|
|
91
|
+
* 转换传进来 渐变的参数 为css样式
|
|
92
92
|
* {
|
|
93
93
|
* "0%": "#afc163",
|
|
94
94
|
* "25%": "#66FF00",
|
|
@@ -102,16 +102,16 @@ var sortGradient = function sortGradient(gradients) {
|
|
|
102
102
|
* "to": "#66FF00",// ====> linear-gradient(to right, #afc163, #66FF00)
|
|
103
103
|
* }
|
|
104
104
|
*
|
|
105
|
-
* @param {string} strokeColor 颜色值
|
|
106
|
-
* @return 返回 backgroundImage 的样式值
|
|
107
|
-
*/
|
|
105
|
+
* @param {string} strokeColor 颜色值
|
|
106
|
+
* @return 返回 backgroundImage 的样式值
|
|
107
|
+
*/
|
|
108
108
|
var handleGradient = function handleGradient(strokeColor, directionConfig) {
|
|
109
109
|
var _strokeColor$from = strokeColor.from,
|
|
110
|
-
from = _strokeColor$from === void 0 ?
|
|
110
|
+
from = _strokeColor$from === void 0 ? '#3D66F8' : _strokeColor$from,
|
|
111
111
|
_strokeColor$to = strokeColor.to,
|
|
112
|
-
to = _strokeColor$to === void 0 ?
|
|
112
|
+
to = _strokeColor$to === void 0 ? '#4F93F0' : _strokeColor$to,
|
|
113
113
|
_strokeColor$directio = strokeColor.direction,
|
|
114
|
-
direction = _strokeColor$directio === void 0 ? directionConfig ===
|
|
114
|
+
direction = _strokeColor$directio === void 0 ? directionConfig === 'rtl' ? 'to left' : 'to right' : _strokeColor$directio,
|
|
115
115
|
rest = __rest(strokeColor, ["from", "to", "direction"]);
|
|
116
116
|
// 剩余参数有值说明除了from to direction 还传了 另外的参数
|
|
117
117
|
if (Object.keys(rest).length !== 0) {
|
|
@@ -132,7 +132,7 @@ var Line = function Line(props) {
|
|
|
132
132
|
strokeLinecap = props.strokeLinecap,
|
|
133
133
|
trailColor = props.trailColor;
|
|
134
134
|
/** 进度条高亮部分的颜色样式 **/
|
|
135
|
-
var backgroundProps = strokeColor && typeof strokeColor !==
|
|
135
|
+
var backgroundProps = strokeColor && typeof strokeColor !== 'string' ? handleGradient(strokeColor, directionConfig) : {
|
|
136
136
|
background: strokeColor
|
|
137
137
|
};
|
|
138
138
|
/** 进度条轨道部分的颜色样式 **/
|
|
@@ -143,7 +143,7 @@ var Line = function Line(props) {
|
|
|
143
143
|
var percentStyle = Object.assign({
|
|
144
144
|
width: "".concat(validProgress(percent), "%"),
|
|
145
145
|
height: strokeWidth || 8,
|
|
146
|
-
borderRadius: strokeLinecap ===
|
|
146
|
+
borderRadius: strokeLinecap === 'square' ? 0 : ''
|
|
147
147
|
}, backgroundProps);
|
|
148
148
|
return jsx("div", Object.assign({
|
|
149
149
|
className: "trail-bar",
|
|
@@ -176,14 +176,14 @@ var ProgressStatuses;
|
|
|
176
176
|
})(ProgressStatuses || (ProgressStatuses = {}));
|
|
177
177
|
/** 每个类型对应的进度条默认颜色 **/
|
|
178
178
|
var strokeColorMap = {
|
|
179
|
-
success:
|
|
180
|
-
exception:
|
|
181
|
-
normal:
|
|
182
|
-
active:
|
|
179
|
+
success: 'rgba(19, 191, 76, 1)',
|
|
180
|
+
exception: 'rgba(244, 66, 66, 1)',
|
|
181
|
+
normal: 'rgba(46, 101, 230, 1)',
|
|
182
|
+
active: 'rgba(46, 101, 230, 1)'
|
|
183
183
|
};
|
|
184
184
|
var Progress = function Progress(props) {
|
|
185
185
|
var _props$type = props.type,
|
|
186
|
-
type = _props$type === void 0 ?
|
|
186
|
+
type = _props$type === void 0 ? 'line' : _props$type,
|
|
187
187
|
className = props.className,
|
|
188
188
|
style = props.style;
|
|
189
189
|
props.children;
|
|
@@ -207,14 +207,14 @@ var Progress = function Progress(props) {
|
|
|
207
207
|
* @return {string}
|
|
208
208
|
*/
|
|
209
209
|
var classString = function classString() {
|
|
210
|
-
var str = "".concat($prefixCls, "-progress ").concat($prefixCls, "-progress-").concat(type ||
|
|
210
|
+
var str = "".concat($prefixCls, "-progress ").concat($prefixCls, "-progress-").concat(type || 'default');
|
|
211
211
|
// 添加成功状态的class
|
|
212
212
|
if (isSuccessStatus) str += " ".concat($prefixCls, "-progress-success-status");
|
|
213
213
|
// 添加错误状态下的class
|
|
214
|
-
if (status ===
|
|
214
|
+
if (status === 'exception') str += " ".concat($prefixCls, "-progress-exception-status");
|
|
215
215
|
// 添加active状态下的class
|
|
216
|
-
if (status ===
|
|
217
|
-
if (className) str += " "
|
|
216
|
+
if (status === 'active') str += " ".concat($prefixCls, "-progress-active-status");
|
|
217
|
+
if (className) str += " ".concat(className);
|
|
218
218
|
return str;
|
|
219
219
|
};
|
|
220
220
|
/**
|
|
@@ -225,24 +225,24 @@ var Progress = function Progress(props) {
|
|
|
225
225
|
// 如果传了成功进度条的配置
|
|
226
226
|
if (strokeColor) return strokeColor;
|
|
227
227
|
if (success && success.percent < percent) {
|
|
228
|
-
return [success.strokeColor || strokeColorMap[
|
|
228
|
+
return [success.strokeColor || strokeColorMap['success'], strokeColorMap['normal']];
|
|
229
229
|
}
|
|
230
|
-
return isSuccessStatus ? strokeColorMap[
|
|
230
|
+
return isSuccessStatus ? strokeColorMap['success'] : strokeColorMap[status || 'normal'];
|
|
231
231
|
};
|
|
232
232
|
/**
|
|
233
233
|
* 处理进度条的值
|
|
234
234
|
* @return {string}
|
|
235
235
|
*/
|
|
236
236
|
var renderPercent = function renderPercent() {
|
|
237
|
-
if (success && success.percent < percent && typeof percent ===
|
|
237
|
+
if (success && success.percent < percent && typeof percent === 'number') {
|
|
238
238
|
return [success.percent, percent - success.percent];
|
|
239
239
|
}
|
|
240
240
|
return percent;
|
|
241
241
|
};
|
|
242
242
|
/** 标记是不是成功状态 **/
|
|
243
|
-
var isSuccessStatus = percent && percent === 100 && !status || status ===
|
|
243
|
+
var isSuccessStatus = percent && percent === 100 && !status || status === 'success';
|
|
244
244
|
/** style值 **/
|
|
245
|
-
var renderStyle = type ===
|
|
245
|
+
var renderStyle = type === 'circle' || type === 'dashboard' ? {
|
|
246
246
|
width: width,
|
|
247
247
|
height: width
|
|
248
248
|
} : {};
|
|
@@ -252,17 +252,17 @@ var Progress = function Progress(props) {
|
|
|
252
252
|
*/
|
|
253
253
|
var renderLabel = function renderLabel() {
|
|
254
254
|
if (format) return format(percent);
|
|
255
|
-
if (isSuccessStatus) return type ===
|
|
255
|
+
if (isSuccessStatus) return type === 'circle' ? jsx(Check, {
|
|
256
256
|
className: "success"
|
|
257
257
|
}) : jsx(CompleteIcon, {
|
|
258
258
|
className: "success"
|
|
259
259
|
});
|
|
260
|
-
if (status ===
|
|
260
|
+
if (status === 'exception') return type === 'circle' ? jsx(CloseIcon, {
|
|
261
261
|
className: "error"
|
|
262
262
|
}) : jsx(CloseCircleF, {
|
|
263
263
|
className: "error"
|
|
264
264
|
});
|
|
265
|
-
return validProgress(percent)
|
|
265
|
+
return "".concat(validProgress(percent), "%");
|
|
266
266
|
};
|
|
267
267
|
/** 默认进度条 **/
|
|
268
268
|
var renderLineProgress = steps ? jsx(Steps, Object.assign({
|
|
@@ -280,7 +280,7 @@ var Progress = function Progress(props) {
|
|
|
280
280
|
percent: renderPercent(),
|
|
281
281
|
direction: direction
|
|
282
282
|
}, otherProps, {
|
|
283
|
-
children:
|
|
283
|
+
children: ' '
|
|
284
284
|
}));
|
|
285
285
|
/** 圆形进度条 **/
|
|
286
286
|
var renderCircleProgress = jsx(Circle, Object.assign({
|
|
@@ -311,7 +311,7 @@ var Progress = function Progress(props) {
|
|
|
311
311
|
className: "progress-inner",
|
|
312
312
|
style: renderStyle
|
|
313
313
|
}, {
|
|
314
|
-
children: type ===
|
|
314
|
+
children: type === 'dashboard' ? renderDashboardProgress : type === 'circle' ? renderCircleProgress : renderLineProgress
|
|
315
315
|
})), showInfo && !steps && jsx("div", Object.assign({
|
|
316
316
|
className: "progress-text"
|
|
317
317
|
}, {
|
package/Progress/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 判断进度条传的百分比参数是否规范
|
|
3
|
-
* @param {number | undefined} progress 方法入参说明
|
|
4
|
-
* @return {numner} 百分比值
|
|
5
|
-
*/
|
|
2
|
+
* 判断进度条传的百分比参数是否规范
|
|
3
|
+
* @param {number | undefined} progress 方法入参说明
|
|
4
|
+
* @return {numner} 百分比值
|
|
5
|
+
*/
|
|
6
6
|
export declare function validProgress(progress: number | number[] | undefined): number | number[];
|
package/Querying/index.d.ts
CHANGED
package/Querying/index.js
CHANGED
|
@@ -709,8 +709,8 @@ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/4/2 上
|
|
|
709
709
|
styleInject(css_248z);
|
|
710
710
|
|
|
711
711
|
var imageMap = {
|
|
712
|
-
|
|
713
|
-
|
|
712
|
+
large: jsx(LargeSearch, {}),
|
|
713
|
+
small: jsx(SmallSearch, {})
|
|
714
714
|
};
|
|
715
715
|
//Querying 查询中
|
|
716
716
|
var Querying = function Querying(props) {
|
package/README.md
CHANGED
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
【通知提示框-Notification】支持移除closeIcon
|
|
27
27
|
|
|
28
28
|
【linhd】
|
|
29
|
+
【动态多值框-DynamicMultiBox】没有拖拽,valueList不生成chosen,selected字段
|
|
30
|
+
【动态多值框-DynamicMultiBox】增加labelProps参数,用来修改标题
|
|
31
|
+
【动态多值框-DynamicMultiBox】增加rowKey,用来自定义每行的唯一id
|
|
29
32
|
【输入框-TextField】修复输入框存在焦点,点击输入框,触发onBlur事件
|
|
30
33
|
【下拉框-Select】去除searchModel为inside,自动得到焦点,防止页面上下抖动
|
|
31
34
|
【下拉框-Select】修复下拉框闪烁渲染
|
package/Radio/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
7
|
import { LabelTooltipProps } from '../Label';
|
|
8
|
-
import { TooltipProps } from
|
|
8
|
+
import { TooltipProps } from '../Tooltip';
|
|
9
9
|
import './index.scss';
|
|
10
10
|
export interface RadioProps {
|
|
11
11
|
/** 样式class */
|
package/Radio/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import 'rc-tooltip';
|
|
|
14
14
|
import 'rc-tooltip/lib/placements';
|
|
15
15
|
import '@para-ui/icons/Forbid';
|
|
16
16
|
|
|
17
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-radio {\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 font-weight: 400;\n cursor: pointer;\n display: inline-flex;\n align-items: flex-start;\n line-height: 16px;\n}\n.paraui-v4-radio:hover {\n /*& > .radio-label {\n color: $
|
|
17
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-radio {\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 font-weight: 400;\n cursor: pointer;\n display: inline-flex;\n align-items: flex-start;\n line-height: 16px;\n}\n.paraui-v4-radio:hover {\n /*& > .radio-label {\n color: $NP1;\n cursor: pointer;\n\n svg {\n color: $NP1;\n }\n }*/\n /*& > .radio-help {\n & > .radio-label {\n color: $NP1;\n cursor: pointer;\n\n svg {\n color: $NP1;\n }\n }\n }*/\n}\n.paraui-v4-radio:hover > .radio-box > .radio-box-inner {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-radio > .radio-box {\n position: relative;\n}\n.paraui-v4-radio > .radio-box > input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n}\n.paraui-v4-radio > .radio-box > .radio-box-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n background-color: white;\n border: 1px solid rgb(212, 218, 227);\n border-radius: 50%;\n}\n.paraui-v4-radio > .radio-box > .radio-box-inner:after {\n position: absolute;\n display: table;\n content: \" \";\n transform: scale(1) translate(-50%, -50%);\n background-color: white;\n border-radius: 50%;\n left: 50%;\n top: 50%;\n}\n.paraui-v4-radio > .radio-label {\n color: rgb(29, 33, 38);\n padding: 0 8px;\n margin: 0;\n display: inline-flex;\n align-items: flex-start;\n overflow: hidden;\n cursor: pointer;\n}\n.paraui-v4-radio > .radio-label > .radio-help > svg {\n top: 0;\n}\n.paraui-v4-radio .radio-label {\n line-height: 16px;\n}\n.paraui-v4-radio > .radio-help {\n padding: 0 8px;\n position: relative;\n top: -1px;\n overflow: hidden;\n}\n.paraui-v4-radio > .radio-help > .radio-label {\n width: 100%;\n color: rgb(29, 33, 38);\n margin: 0;\n display: inline-flex;\n align-items: center;\n overflow: hidden;\n cursor: pointer;\n}\n.paraui-v4-radio.paraui-v4-radio-checked > .radio-box > .radio-box-inner {\n border-color: transparent;\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-radio.paraui-v4-radio-checked:hover > .radio-box > .radio-box-inner {\n border-color: transparent;\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-radio.paraui-v4-radio-disabled {\n cursor: not-allowed;\n}\n.paraui-v4-radio.paraui-v4-radio-disabled:hover > .radio-box > .radio-box-inner {\n background-color: rgb(234, 236, 241);\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-radio.paraui-v4-radio-disabled > .radio-label {\n color: rgb(161, 168, 179);\n cursor: not-allowed;\n}\n.paraui-v4-radio.paraui-v4-radio-disabled > .radio-label svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-radio.paraui-v4-radio-disabled > .radio-box > input {\n cursor: not-allowed;\n}\n.paraui-v4-radio.paraui-v4-radio-disabled > .radio-box > .radio-box-inner {\n background-color: rgb(234, 236, 241);\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-radio.paraui-v4-radio-disabled > .radio-box > .radio-box-inner:after {\n background-color: rgb(234, 236, 241);\n}\n.paraui-v4-radio.paraui-v4-radio-disabled.paraui-v4-radio-checked > .radio-box > .radio-box-inner {\n background-color: rgb(212, 218, 227);\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-radio.paraui-v4-radio-disabled.paraui-v4-radio-checked > .radio-box > .radio-box-inner:hover > .radio-box > .radio-box-inner {\n background-color: rgb(212, 218, 227);\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-radio.paraui-v4-radio-disabled.paraui-v4-radio-checked > .radio-box > .radio-box-inner:after {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-radio.paraui-v4-radio-disabled > .radio-help {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-radio.paraui-v4-radio-disabled > .radio-help > .radio-label {\n color: rgb(161, 168, 179);\n cursor: not-allowed;\n}\n.paraui-v4-radio.paraui-v4-radio-small > .radio-box {\n top: 1px;\n}\n.paraui-v4-radio.paraui-v4-radio-small > .radio-box > .radio-box-inner {\n width: 14px;\n height: 14px;\n}\n.paraui-v4-radio.paraui-v4-radio-small > .radio-box > .radio-box-inner:after {\n width: 4px;\n height: 4px;\n}\n.paraui-v4-radio.paraui-v4-radio-medium > .radio-box {\n top: 1px;\n}\n.paraui-v4-radio.paraui-v4-radio-medium > .radio-box > .radio-box-inner {\n width: 14px;\n height: 14px;\n}\n.paraui-v4-radio.paraui-v4-radio-medium > .radio-box > .radio-box-inner:after {\n width: 4px;\n height: 4px;\n}\n.paraui-v4-radio.paraui-v4-radio-large > .radio-box {\n top: 1px;\n}\n.paraui-v4-radio.paraui-v4-radio-large > .radio-box > .radio-box-inner {\n width: 14px;\n height: 14px;\n}\n.paraui-v4-radio.paraui-v4-radio-large > .radio-box > .radio-box-inner:after {\n width: 4px;\n height: 4px;\n}";
|
|
18
18
|
styleInject(css_248z);
|
|
19
19
|
|
|
20
20
|
var Radio = function Radio(props) {
|
|
@@ -52,8 +52,8 @@ var Radio = function Radio(props) {
|
|
|
52
52
|
};
|
|
53
53
|
// 处理className
|
|
54
54
|
var handClass = function handClass() {
|
|
55
|
-
var str = $prefixCls
|
|
56
|
-
if (className) str +=
|
|
55
|
+
var str = "".concat($prefixCls, "-radio");
|
|
56
|
+
if (className) str += " ".concat(className);
|
|
57
57
|
if (size) str += " ".concat($prefixCls, "-radio-").concat(size);
|
|
58
58
|
if (disabled) str += " ".concat($prefixCls, "-radio-disabled");
|
|
59
59
|
if (checkedCom) str += " ".concat($prefixCls, "-radio-checked");
|
|
@@ -62,7 +62,7 @@ var Radio = function Radio(props) {
|
|
|
62
62
|
var handLabelClass = function handLabelClass() {
|
|
63
63
|
var str = 'radio-label';
|
|
64
64
|
if (labelTooltip && labelTooltip.className) {
|
|
65
|
-
str +=
|
|
65
|
+
str += " ".concat(labelTooltip.className);
|
|
66
66
|
}
|
|
67
67
|
return str;
|
|
68
68
|
};
|
|
@@ -70,7 +70,7 @@ var Radio = function Radio(props) {
|
|
|
70
70
|
var handHelpClassName = function handHelpClassName() {
|
|
71
71
|
var str = ' radio-help';
|
|
72
72
|
if (labelTooltip && labelTooltip.helpClassName) {
|
|
73
|
-
str +=
|
|
73
|
+
str += " ".concat(labelTooltip.helpClassName);
|
|
74
74
|
}
|
|
75
75
|
return str;
|
|
76
76
|
};
|
package/RadioGroup/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
7
|
import { RadioProps } from '../Radio';
|
|
8
|
-
import { LabelTooltipProps } from
|
|
9
|
-
import { HelperTextDetailProps } from
|
|
8
|
+
import { LabelTooltipProps } from '../Label';
|
|
9
|
+
import { HelperTextDetailProps } from '../HelperText';
|
|
10
10
|
import './index.scss';
|
|
11
11
|
export interface RadioListProps extends RadioProps {
|
|
12
12
|
[name: string]: any;
|