@para-ui/core 3.0.1 → 3.0.3
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 +180 -68
- package/AutoBox/protal.d.ts +17 -0
- package/AutoTips/index.js +4 -3
- package/Breadcrumbs/index.js +10 -7
- package/Button/index.js +15 -14
- package/ButtonGroup/index.js +3 -2
- package/Carousel/index.js +7 -5
- package/Cascader/index.d.ts +3 -1
- package/Cascader/index.js +13 -5
- package/Checkbox/index.js +27 -8
- package/CheckboxGroup/index.d.ts +2 -5
- package/CheckboxGroup/index.js +13 -10
- package/Collapse/index.js +11 -10
- package/CollapseBox/index.js +7 -6
- package/ComboSelect/index.js +161 -67
- package/ComboSelect/interface.d.ts +10 -9
- package/Container/index.js +24 -23
- package/DatePicker/index.js +12 -17
- package/DatePicker/util.d.ts +0 -1
- package/Desktop/index.js +6 -5
- package/Drawer/index.js +10 -9
- package/Dropdown/index.js +59 -6
- package/Empty/index.js +7 -6
- package/Form/index.js +6 -5
- package/FormItem/compoments/formFile/index.d.ts +16 -16
- package/FormItem/index.d.ts +19 -19
- package/FormItem/index.js +3 -2
- package/FunctionModal/index.js +3 -2
- package/GlobalContext/constant.d.ts +8 -0
- package/Help/index.js +3 -2
- package/HelperText/index.d.ts +9 -5
- package/HelperText/index.js +9 -4
- package/InputLang/index.d.ts +2 -5
- package/InputLang/index.js +13 -7
- package/InputNumber/index.d.ts +2 -5
- package/InputNumber/index.js +15 -12
- package/Label/index.d.ts +2 -0
- package/Label/index.js +12 -8
- package/Loading/index.js +5 -4
- package/Menu/index.js +18 -17
- package/Message/index.js +5 -4
- package/Modal/index.js +28 -26
- package/MultiBox/index.d.ts +2 -5
- package/MultiBox/index.js +13 -6
- package/Notification/index.js +3 -2
- package/OperateBtn/index.js +15 -12
- package/PageHeader/index.js +18 -18
- package/Pagination/index.js +10 -4
- package/ParauiProvider/index.js +1 -1
- package/PopConfirm/index.js +3 -2
- package/Popover/index.js +7 -4
- package/Progress/index.d.ts +2 -0
- package/Progress/index.js +13 -9
- package/Querying/index.js +6 -5
- package/README.md +30 -0
- package/Radio/index.js +22 -8
- package/RadioGroup/index.d.ts +2 -5
- package/RadioGroup/index.js +10 -7
- package/Search/index.js +13 -8
- package/Select/index.d.ts +2 -5
- package/Select/index.js +23 -20
- package/SelectInput/index.js +3 -2
- package/Selector/index.js +189 -81
- package/Selector/interface.d.ts +17 -7
- package/Selector/lang/en_US.d.ts +1 -0
- package/Selector/lang/zh_CN.d.ts +1 -0
- package/SelectorPicker/index.d.ts +2 -5
- package/SelectorPicker/index.js +20 -17
- package/SingleBox/index.d.ts +2 -5
- package/SingleBox/index.js +11 -6
- package/Slider/index.d.ts +4 -4
- package/Slider/index.js +9 -4
- package/Split/index.js +8 -7
- package/Stepper/index.js +7 -3
- package/Switch/index.js +10 -12
- package/Table/index.js +528 -300
- package/Table/interface.d.ts +45 -1
- package/Table/tableElement/index.d.ts +2 -2
- package/Table/util.d.ts +13 -1
- package/Tabs/index.js +7 -6
- package/Tag/index.js +12 -14
- package/TextField/index.d.ts +2 -5
- package/TextField/index.js +20 -18
- package/TimePicker/index.js +1 -0
- package/Timeline/index.js +13 -12
- package/Title/index.d.ts +30 -0
- package/Title/index.js +49 -0
- package/ToggleButton/index.js +13 -13
- package/Tooltip/index.js +59 -12
- package/Tooltip/interface.d.ts +2 -0
- package/Transfer/index.d.ts +6 -2
- package/Transfer/index.js +74 -37
- package/Transfer/lang/en_US.d.ts +2 -0
- package/Transfer/lang/zh_CN.d.ts +2 -0
- package/Tree/index.js +3 -2
- package/Tree/utils/tools.d.ts +0 -1
- package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
- package/Upload/ImgCrop/constants.d.ts +1 -1
- package/Upload/ImgCrop/interface.d.ts +5 -0
- package/Upload/index.js +56 -45
- package/_verture/constant-bf34e6fa.js +11 -0
- package/_verture/{index-abfdd262.js → index-3136f653.js} +63 -31
- package/_verture/{index-5bb4b5d7.js → index-77832168.js} +30 -17
- package/_verture/{modalContext-59669f93.js → modalContext-f1a611ab.js} +0 -0
- package/index.d.ts +2 -0
- package/index.js +7 -5
- package/package.json +2 -1
package/ParauiProvider/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { i as i18nIntl } from '../_verture/intl-336570e4.js';
|
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
8
|
import '../_verture/typeof-498dd2b1.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-scrollbar-small *::-webkit-scrollbar, .paraui-scrollbar-small::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.paraui-scrollbar-small *::-webkit-scrollbar-track, .paraui-scrollbar-small::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-scrollbar-small *::-webkit-scrollbar-thumb, .paraui-scrollbar-small::-webkit-scrollbar-thumb {\n border-radius: 4px;\n}\n\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar, .paraui-scrollbar-small-deep ::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-track, .paraui-scrollbar-small-deep ::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-corner, .paraui-scrollbar-small-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:hover, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:active, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-small-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-scrollbar-small-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-scrollbar-medium *::-webkit-scrollbar, .paraui-scrollbar-medium::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.paraui-scrollbar-medium *::-webkit-scrollbar-track, .paraui-scrollbar-medium::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-scrollbar-medium *::-webkit-scrollbar-thumb, .paraui-scrollbar-medium::-webkit-scrollbar-thumb {\n border-radius: 6px;\n}\n\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar, .paraui-scrollbar-medium-deep ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-track, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-corner, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:hover, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:active, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-scrollbar-medium-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-scrollbar-large *::-webkit-scrollbar, .paraui-scrollbar-large::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n.paraui-scrollbar-large *::-webkit-scrollbar-track, .paraui-scrollbar-large::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-scrollbar-large *::-webkit-scrollbar-thumb, .paraui-scrollbar-large::-webkit-scrollbar-thumb {\n border-radius: 8px;\n}\n\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar, .paraui-scrollbar-large-deep ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-track, .paraui-scrollbar-large-deep ::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb {\n border-radius: 8px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-corner, .paraui-scrollbar-large-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:hover, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:active, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-scrollbar-large-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-scrollbar-large-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-form .paraui-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 Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.12);\n}\n\n::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb {\n background: rgba(46, 55, 67, 0.4);\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-corner {\n background: rgb(236, 238, 240);\n}\n\n::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(46, 55, 67, 0.4);\n}\n\n.paraui-v3-scrollbar-small *::-webkit-scrollbar, .paraui-v3-scrollbar-small::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.paraui-v3-scrollbar-small *::-webkit-scrollbar-track, .paraui-v3-scrollbar-small::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-v3-scrollbar-small *::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-small::-webkit-scrollbar-thumb {\n border-radius: 4px;\n}\n\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-track, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-corner, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb:active, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-v3-scrollbar-medium *::-webkit-scrollbar, .paraui-v3-scrollbar-medium::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.paraui-v3-scrollbar-medium *::-webkit-scrollbar-track, .paraui-v3-scrollbar-medium::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-v3-scrollbar-medium *::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-medium::-webkit-scrollbar-thumb {\n border-radius: 6px;\n}\n\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-track, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-corner, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:active, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-v3-scrollbar-large *::-webkit-scrollbar, .paraui-v3-scrollbar-large::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n.paraui-v3-scrollbar-large *::-webkit-scrollbar-track, .paraui-v3-scrollbar-large::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-v3-scrollbar-large *::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-large::-webkit-scrollbar-thumb {\n border-radius: 8px;\n}\n\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-track, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb {\n border-radius: 8px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-corner, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb:active, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-v3-form .paraui-v3-helper-text {\n min-height: 20px;\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\nhtml, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\nol, ul {\n list-style: none;\n}\n\na,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ninput,\nselect,\nbutton,\ntextarea {\n outline: none;\n}";
|
|
11
11
|
styleInject(css_248z);
|
|
12
12
|
|
|
13
13
|
var ParauiProvider = function ParauiProvider(props) {
|
package/PopConfirm/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import { Button } from '../Button/index.js';
|
|
|
10
10
|
import { Tooltip } from '../Tooltip/index.js';
|
|
11
11
|
import clsx from 'clsx';
|
|
12
12
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
|
|
13
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
13
14
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
14
15
|
import '../_verture/typeof-498dd2b1.js';
|
|
15
16
|
import '@para-ui/icons/LoadingF';
|
|
@@ -36,7 +37,7 @@ var localeJson = {
|
|
|
36
37
|
en: en
|
|
37
38
|
};
|
|
38
39
|
|
|
39
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-popconfirm {\n position: absolute;\n max-width: 600px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}\n.paraui-popconfirm
|
|
40
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-popconfirm {\n position: absolute;\n max-width: 600px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}\n.paraui-v3-popconfirm.paraui-v3-tooltip .component-tooltip-inner {\n min-width: auto;\n min-height: auto;\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper {\n min-width: 350px;\n padding: 24px;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 2px;\n color: rgb(255, 161, 80);\n line-height: 0;\n font-size: 16px;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-icon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-body {\n padding-left: 24px;\n line-height: 20px;\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-title {\n font-weight: 700;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-content {\n font-weight: 400;\n margin-top: 13px;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-btns {\n margin-top: 32px;\n text-align: right;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-btns > button + button {\n margin-left: 16px;\n}";
|
|
40
41
|
styleInject(css_248z);
|
|
41
42
|
|
|
42
43
|
var iconMapping = {
|
|
@@ -182,7 +183,7 @@ var PopConfirm = function PopConfirm(props) {
|
|
|
182
183
|
placement: placement,
|
|
183
184
|
title: renderOverlay(),
|
|
184
185
|
onVisibleChange: onVisibleChange,
|
|
185
|
-
overlayClassName: clsx(
|
|
186
|
+
overlayClassName: clsx("".concat($prefixCls, "-popconfirm"), overlayClassName, className)
|
|
186
187
|
}, {
|
|
187
188
|
children: children
|
|
188
189
|
}));
|
package/Popover/index.js
CHANGED
|
@@ -2,13 +2,14 @@ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { Tooltip } from '../Tooltip/index.js';
|
|
5
|
+
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
6
|
+
import clsx from 'clsx';
|
|
5
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
6
8
|
import '../_verture/slicedToArray-d7722f4b.js';
|
|
7
9
|
import 'rc-tooltip';
|
|
8
10
|
import 'rc-tooltip/lib/placements';
|
|
9
|
-
import 'clsx';
|
|
10
11
|
|
|
11
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/7 上午11:06\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-popover {\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1500;\n font-weight: 400;\n white-space: normal;\n text-align: left;\n cursor: auto;\n user-select: text;\n}\n.paraui-popover::after {\n position: absolute;\n background: rgba(255, 255, 255, 0.01);\n content: \"\";\n}\n.paraui-popover-hidden {\n display: none;\n}\n.paraui-popover-inner {\n background-color: rgb(255, 255, 255);\n background-clip: padding-box;\n border-radius: 4px;\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n}\n.paraui-popover-title {\n min-height: 32px;\n margin: 0;\n padding: 4px 16px;\n color: rgb(46, 55, 67);\n font-weight: 400;\n border-bottom: 1px solid #f0f0f0;\n}\n.paraui-popover-inner-content {\n color: rgb(46, 55, 67);\n}\n.paraui-popover-buttons {\n margin-bottom: 4px;\n text-align: right;\n}\n.paraui-popover-buttons button {\n margin-left: 8px;\n}\n.paraui-popover-arrow {\n position: absolute;\n display:
|
|
12
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/7 上午11:06\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-popover {\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1500;\n font-weight: 400;\n white-space: normal;\n text-align: left;\n cursor: auto;\n user-select: text;\n}\n.paraui-v3-popover::after {\n position: absolute;\n background: rgba(255, 255, 255, 0.01);\n content: \"\";\n}\n.paraui-v3-popover.component-popover-hidden {\n display: none;\n}\n.paraui-v3-popover .component-popover-inner {\n background-color: rgb(255, 255, 255);\n background-clip: padding-box;\n border-radius: 4px;\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-popover .component-popover-title {\n min-height: 32px;\n margin: 0;\n padding: 4px 16px;\n color: rgb(46, 55, 67);\n font-weight: 400;\n border-bottom: 1px solid #f0f0f0;\n}\n.paraui-v3-popover .component-popover-inner-content {\n color: rgb(46, 55, 67);\n}\n.paraui-v3-popover .component-popover-buttons {\n margin-bottom: 4px;\n text-align: right;\n}\n.paraui-v3-popover .component-popover-buttons button {\n margin-left: 8px;\n}\n.paraui-v3-popover .component-popover-arrow {\n position: absolute;\n display: none;\n width: 16px;\n height: 16px;\n overflow: hidden;\n background: transparent;\n pointer-events: none;\n}\n.paraui-v3-popover .component-popover-arrow-content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 11.3137085px;\n height: 11.3137085px;\n margin: auto;\n background-color: rgb(255, 255, 255);\n content: \"\";\n border-radius: 0 0 4px;\n pointer-events: none;\n}\n.paraui-v3-popover .component-popover-arrow-content::before {\n position: absolute;\n top: -11.3137085px;\n left: -11.3137085px;\n width: 33.9411255px;\n height: 33.9411255px;\n background: rgb(255, 255, 255) -10px -10px no-repeat;\n content: \"\";\n -webkit-clip-path: path(\"M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 L 23.091883092036785 9.849242404917499 L 9.849242404917499 23.091883092036785 Z\");\n}\n.paraui-v3-popover.component-popover-placement-top .component-popover-arrow, .paraui-v3-popover.component-popover-placement-topLeft .component-popover-arrow, .paraui-v3-popover.component-popover-placement-topRight .component-popover-arrow {\n bottom: -0.6862915px;\n}\n.paraui-v3-popover.component-popover-placement-top .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-topLeft .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-topRight .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(-1px) rotate(45deg);\n}\n.paraui-v3-popover.component-popover-placement-top .component-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-v3-popover.component-popover-placement-topLeft .component-popover-arrow {\n left: 16px;\n}\n.paraui-v3-popover.component-popover-placement-topRight .component-popover-arrow {\n right: 16px;\n}\n.paraui-v3-popover.component-popover-placement-right .component-popover-arrow, .paraui-v3-popover.component-popover-placement-rightTop .component-popover-arrow, .paraui-v3-popover.component-popover-placement-rightBottom .component-popover-arrow {\n left: -0.6862915px;\n}\n.paraui-v3-popover.component-popover-placement-right .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-rightTop .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-rightBottom .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(1px) rotate(135deg);\n}\n.paraui-v3-popover.component-popover-placement-right .component-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-v3-popover.component-popover-placement-rightTop .component-popover-arrow {\n top: 12px;\n}\n.paraui-v3-popover.component-popover-placement-rightBottom .component-popover-arrow {\n bottom: 12px;\n}\n.paraui-v3-popover.component-popover-placement-bottom .component-popover-arrow, .paraui-v3-popover.component-popover-placement-bottomLeft .component-popover-arrow, .paraui-v3-popover.component-popover-placement-bottomRight .component-popover-arrow {\n top: -0.6862915px;\n}\n.paraui-v3-popover.component-popover-placement-bottom .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-bottomLeft .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-bottomRight .component-popover-arrow-content {\n box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.06);\n transform: translateY(1px) rotate(-135deg);\n}\n.paraui-v3-popover.component-popover-placement-bottom .component-popover-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.paraui-v3-popover.component-popover-placement-bottomLeft .component-popover-arrow {\n left: 16px;\n}\n.paraui-v3-popover.component-popover-placement-bottomRight .component-popover-arrow {\n right: 16px;\n}\n.paraui-v3-popover.component-popover-placement-left .component-popover-arrow, .paraui-v3-popover.component-popover-placement-leftTop .component-popover-arrow, .paraui-v3-popover.component-popover-placement-leftBottom .component-popover-arrow {\n right: -0.6862915px;\n}\n.paraui-v3-popover.component-popover-placement-left .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-leftTop .component-popover-arrow-content, .paraui-v3-popover.component-popover-placement-leftBottom .component-popover-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(-1px) rotate(-45deg);\n}\n.paraui-v3-popover.component-popover-placement-left .component-popover-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.paraui-v3-popover.component-popover-placement-leftTop .component-popover-arrow {\n top: 12px;\n}\n.paraui-v3-popover.component-popover-placement-leftBottom .component-popover-arrow {\n bottom: 12px;\n}\n\n.component-popover-zoom-big-enter,\n.component-popover-zoom-big-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-popover-zoom-big-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.component-popover-zoom-big-enter.component-popover-zoom-big-enter-active,\n.component-popover-zoom-big-appear.component-popover-zoom-big-appear-active {\n animation-name: componentPopoverZoomBigIn;\n animation-play-state: running;\n}\n\n.component-popover-zoom-big-leave.component-popover-zoom-big-leave-active {\n animation-name: componentPopoverZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.component-popover-zoom-big-enter,\n.component-popover-zoom-big-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n\n.component-popover-zoom-big-enter-prepare,\n.component-popover-zoom-big-appear-prepare {\n transform: none;\n}\n\n.component-popover-zoom-big-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n\n@keyframes componentPopoverZoomBigIn {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes componentPopoverZoomBigOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n opacity: 0;\n }\n}";
|
|
12
13
|
styleInject(css_248z);
|
|
13
14
|
|
|
14
15
|
var Popover = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
@@ -45,12 +46,14 @@ var Popover = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
45
46
|
});
|
|
46
47
|
};
|
|
47
48
|
|
|
48
|
-
var prefixCls =
|
|
49
|
+
var prefixCls = "".concat($rcPrefixCls, "-popover");
|
|
49
50
|
return jsx(Tooltip, Object.assign({}, restProps, {
|
|
51
|
+
isPopover: true,
|
|
50
52
|
prefixCls: prefixCls,
|
|
53
|
+
overlayClassName: clsx("".concat($prefixCls, "-popover"), props.overlayClassName),
|
|
51
54
|
ref: ref,
|
|
52
55
|
title: getOverlay(prefixCls),
|
|
53
|
-
transitionName:
|
|
56
|
+
transitionName: "".concat($rcPrefixCls, "-popover-zoom-big"),
|
|
54
57
|
getPopupContainer: getPopupContainer
|
|
55
58
|
}));
|
|
56
59
|
});
|
package/Progress/index.d.ts
CHANGED
package/Progress/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import CompleteIcon from '@para-ui/icons/CheckCircleF';
|
|
|
5
5
|
import CloseCircleFilled from '@para-ui/icons/CloseCircleF';
|
|
6
6
|
import Check from '@para-ui/icons/Check';
|
|
7
7
|
import CloseIcon from '@para-ui/icons/Close';
|
|
8
|
+
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
8
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
9
10
|
|
|
10
11
|
var Steps = function Steps(props) {
|
|
@@ -168,7 +169,7 @@ var Line = function Line(props) {
|
|
|
168
169
|
}));
|
|
169
170
|
};
|
|
170
171
|
|
|
171
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-progress-line .progress-outer {\n display: flex;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.paraui-progress-line .progress-outer .progress-inner {\n width: 100%;\n
|
|
172
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer {\n display: flex;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-inner {\n width: 100%;\n /*.component-progress-line {\n height: 10px;\n width: 100%;\n }*/\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-inner .steps-outer {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-inner .steps-outer .steps-item {\n flex-shrink: 0;\n min-width: 2px;\n margin-right: 2px;\n background: #f3f3f3;\n transition: all 0.3s;\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-inner .steps-outer .steps-item-active {\n background-color: rgb(54, 102, 214);\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-inner .trail-bar {\n position: relative;\n display: inline-block;\n width: 100%;\n overflow: hidden;\n vertical-align: middle;\n background-color: rgba(171, 176, 185, 0.2);\n border-radius: 100px;\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-inner .trail-bar .active-bar {\n position: relative;\n background-color: rgb(54, 102, 214);\n border-radius: 100px;\n transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-text {\n min-width: 40px;\n font-size: 14px;\n font-weight: 500;\n text-align: left;\n color: rgb(54, 102, 214);\n margin-left: 12px;\n white-space: nowrap;\n vertical-align: middle;\n word-break: normal;\n display: flex;\n align-items: center;\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-text svg {\n width: 14px;\n height: 14px;\n position: relative;\n top: 2px;\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-text svg.success {\n color: rgb(83, 195, 27) !important;\n}\n.paraui-v3-progress.paraui-v3-progress-line .progress-outer .progress-text svg.error {\n color: rgb(235, 96, 84) !important;\n}\n.paraui-v3-progress.paraui-v3-progress-circle, .paraui-v3-progress.paraui-v3-progress-dashboard {\n display: inline-block;\n position: relative;\n margin: 0 5px;\n}\n.paraui-v3-progress.paraui-v3-progress-circle .progress-outer .progress-text, .paraui-v3-progress.paraui-v3-progress-dashboard .progress-outer .progress-text {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n margin: 0;\n padding: 0;\n color: rgb(54, 102, 214);\n font-size: 1em;\n line-height: 1;\n white-space: normal;\n text-align: center;\n transform: translate(-50%, -50%);\n}\n.paraui-v3-progress.paraui-v3-progress-circle .progress-outer .progress-text svg, .paraui-v3-progress.paraui-v3-progress-dashboard .progress-outer .progress-text svg {\n width: 2em;\n height: 2em;\n}\n.paraui-v3-progress.paraui-v3-progress-circle .progress-outer .progress-text svg.success, .paraui-v3-progress.paraui-v3-progress-dashboard .progress-outer .progress-text svg.success {\n color: rgb(83, 195, 27) !important;\n}\n.paraui-v3-progress.paraui-v3-progress-circle .progress-outer .progress-text svg.error, .paraui-v3-progress.paraui-v3-progress-dashboard .progress-outer .progress-text svg.error {\n color: rgb(235, 96, 84) !important;\n}\n.paraui-v3-progress.paraui-v3-progress-success-status .progress-text {\n color: rgb(83, 195, 27) !important;\n}\n.paraui-v3-progress.paraui-v3-progress-exception-status .progress-text {\n color: rgb(235, 96, 84) !important;\n}\n.paraui-v3-progress.paraui-v3-progress-active-status .active-bar:before {\n position: absolute;\n inset: 0;\n background: #fff;\n border-radius: 10px;\n opacity: 0;\n -webkit-animation: progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;\n animation: progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;\n content: \"\";\n}\n\n@keyframes progress-active {\n 0% {\n transform: translateX(-100%) scaleX(0);\n opacity: 0.1;\n }\n 20% {\n transform: translateX(-100%) scaleX(0);\n opacity: 0.5;\n }\n 100% {\n transform: translateX(0) scaleX(1);\n opacity: 0;\n }\n}";
|
|
172
173
|
styleInject(css_248z);
|
|
173
174
|
|
|
174
175
|
/** 进度条类型 **/
|
|
@@ -203,7 +204,8 @@ var strokeColorMap = {
|
|
|
203
204
|
var Progress = function Progress(props) {
|
|
204
205
|
var _props$type = props.type,
|
|
205
206
|
type = _props$type === void 0 ? "line" : _props$type,
|
|
206
|
-
className = props.className
|
|
207
|
+
className = props.className,
|
|
208
|
+
style = props.style;
|
|
207
209
|
props.children;
|
|
208
210
|
var status = props.status,
|
|
209
211
|
_props$width = props.width,
|
|
@@ -219,7 +221,7 @@ var Progress = function Progress(props) {
|
|
|
219
221
|
strokeColor = props.strokeColor,
|
|
220
222
|
_props$gapDegree = props.gapDegree,
|
|
221
223
|
gapDegree = _props$gapDegree === void 0 ? 75 : _props$gapDegree,
|
|
222
|
-
otherProps = __rest(props, ["type", "className", "children", "status", "width", "showInfo", "format", "success", "percent", "steps", "direction", "strokeColor", "gapDegree"]);
|
|
224
|
+
otherProps = __rest(props, ["type", "className", "style", "children", "status", "width", "showInfo", "format", "success", "percent", "steps", "direction", "strokeColor", "gapDegree"]);
|
|
223
225
|
/**
|
|
224
226
|
* 处理class
|
|
225
227
|
* @return {string}
|
|
@@ -227,13 +229,13 @@ var Progress = function Progress(props) {
|
|
|
227
229
|
|
|
228
230
|
|
|
229
231
|
var classString = function classString() {
|
|
230
|
-
var str = "
|
|
232
|
+
var str = "".concat($prefixCls, "-progress ").concat($prefixCls, "-progress-").concat(type || "default"); // 添加成功状态的class
|
|
231
233
|
|
|
232
|
-
if (isSuccessStatus) str += "
|
|
234
|
+
if (isSuccessStatus) str += " ".concat($prefixCls, "-progress-success-status"); // 添加错误状态下的class
|
|
233
235
|
|
|
234
|
-
if (status === "exception") str += "
|
|
236
|
+
if (status === "exception") str += " ".concat($prefixCls, "-progress-exception-status"); // 添加active状态下的class
|
|
235
237
|
|
|
236
|
-
if (status === "active") str += "
|
|
238
|
+
if (status === "active") str += " ".concat($prefixCls, "-progress-active-status");
|
|
237
239
|
if (className) str += " " + className;
|
|
238
240
|
return str;
|
|
239
241
|
};
|
|
@@ -321,7 +323,8 @@ var Progress = function Progress(props) {
|
|
|
321
323
|
strokeWidth: 6,
|
|
322
324
|
trailWidth: 6,
|
|
323
325
|
strokeColor: strokeColorVal(),
|
|
324
|
-
percent: renderPercent()
|
|
326
|
+
percent: renderPercent(),
|
|
327
|
+
prefixCls: "".concat($rcPrefixCls, "-progress")
|
|
325
328
|
}, otherProps));
|
|
326
329
|
/** 仪表盘 **/
|
|
327
330
|
|
|
@@ -336,7 +339,8 @@ var Progress = function Progress(props) {
|
|
|
336
339
|
}, otherProps));
|
|
337
340
|
|
|
338
341
|
return jsx("div", Object.assign({
|
|
339
|
-
className: classString()
|
|
342
|
+
className: classString(),
|
|
343
|
+
style: style
|
|
340
344
|
}, {
|
|
341
345
|
children: jsxs("div", Object.assign({
|
|
342
346
|
className: "progress-outer"
|
package/Querying/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
|
|
4
|
-
import {
|
|
4
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
5
5
|
import { u as useGlobalProps } from '../_verture/useGlobalProps-af9a2af6.js';
|
|
6
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import '@para-ui/core/GlobalContext';
|
|
8
9
|
|
|
@@ -704,7 +705,7 @@ var localeJson = {
|
|
|
704
705
|
en: en
|
|
705
706
|
};
|
|
706
707
|
|
|
707
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/4/2 上午10:55\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-querying {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n}\n.paraui-querying-image img {\n width: 100%;\n}\n.paraui-querying-description {\n line-height: 17px;\n font-size: 14px;\n font-weight: 400;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-querying
|
|
708
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/4/2 上午10:55\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-querying {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n}\n.paraui-v3-querying > .querying-image {\n line-height: 0;\n}\n.paraui-v3-querying > .querying-image img {\n width: 100%;\n}\n.paraui-v3-querying > .querying-description {\n line-height: 17px;\n font-size: 14px;\n font-weight: 400;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-querying.paraui-v3-querying-large > .querying-description {\n margin-top: 24px;\n}\n.paraui-v3-querying.paraui-v3-querying-small > .querying-description {\n margin-top: 12px;\n font-size: 12px;\n}";
|
|
708
709
|
styleInject(css_248z);
|
|
709
710
|
|
|
710
711
|
var imageMap = {
|
|
@@ -741,17 +742,17 @@ var Querying = function Querying(props) {
|
|
|
741
742
|
}
|
|
742
743
|
|
|
743
744
|
return jsx("div", Object.assign({
|
|
744
|
-
className: clsx(
|
|
745
|
+
className: clsx("".concat($prefixCls, "-querying"), className, "".concat($prefixCls, "-querying-").concat(size)),
|
|
745
746
|
style: style
|
|
746
747
|
}, {
|
|
747
748
|
children: customQuerying ? customQuerying : jsxs(Fragment, {
|
|
748
749
|
children: [jsx("div", Object.assign({
|
|
749
|
-
className: '
|
|
750
|
+
className: 'querying-image',
|
|
750
751
|
style: imageStyle
|
|
751
752
|
}, {
|
|
752
753
|
children: imageNode
|
|
753
754
|
})), des && jsx("div", Object.assign({
|
|
754
|
-
className: '
|
|
755
|
+
className: 'querying-description'
|
|
755
756
|
}, {
|
|
756
757
|
children: des
|
|
757
758
|
}))]
|
package/README.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
## 版本: 3.0.3
|
|
2
|
+
|
|
3
|
+
para-ui/core@3.0.3 发布
|
|
4
|
+
样式隔离问题已验证
|
|
5
|
+
【Table】修复表格第1页不显示问题
|
|
6
|
+
【Table】加载更多定位到底部
|
|
7
|
+
【Table】内容列新增自定义className
|
|
8
|
+
【Checkbox】修复选中样式错误
|
|
9
|
+
【Transfer】穿梭款补全状态,优化
|
|
10
|
+
【Tooltip】使用followCursor属性时,提示内容位于光标下方
|
|
11
|
+
|
|
12
|
+
## 版本: 3.0.2
|
|
13
|
+
|
|
14
|
+
para-ui/core@3.0.2 发布
|
|
15
|
+
样式隔离问题已验证
|
|
16
|
+
【Selector】修改选择器搜索可以点击下级
|
|
17
|
+
【Tooltip】增加followCursor属性
|
|
18
|
+
【Upload.ImgCrop】裁剪时开启无限制拖动,增加fixedCropSize属性
|
|
19
|
+
|
|
20
|
+
## 版本: 3.0.2-beta
|
|
21
|
+
|
|
22
|
+
para-ui/core@3.0.2-beta 发布
|
|
23
|
+
验证样式隔离问题
|
|
24
|
+
【AutoBox】修改下拉浮层
|
|
25
|
+
【Selector】选择器修改自定义id,数据渲染失败
|
|
26
|
+
【Table】表格新增记住列
|
|
27
|
+
【Table】修改表格表头样式
|
|
28
|
+
【Table】允许全局统一改变参数
|
|
29
|
+
【Table】加载表格的时候,获取本地储存的表格列信息,不过期,会重置过期时间。并且会删除掉已过期的其他表格记录本地表格列的信息
|
|
30
|
+
|
|
1
31
|
## 版本: 3.0.1
|
|
2
32
|
|
|
3
33
|
para-ui/core@3.0.1 发布
|
package/Radio/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import Label from '../Label/index.js';
|
|
5
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
5
6
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
6
7
|
import '../Help/index.js';
|
|
7
8
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
@@ -11,7 +12,7 @@ import 'rc-tooltip/lib/placements';
|
|
|
11
12
|
import 'clsx';
|
|
12
13
|
import '@para-ui/icons/Help';
|
|
13
14
|
|
|
14
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-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-radio:hover > .
|
|
15
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-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-v3-radio:hover > .radio-label {\n color: rgba(54, 102, 214, 0.8);\n cursor: pointer;\n}\n.paraui-v3-radio:hover > .radio-label svg {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-radio:hover > .radio-help > .radio-label {\n color: rgba(54, 102, 214, 0.8);\n cursor: pointer;\n}\n.paraui-v3-radio:hover > .radio-help > .radio-label svg {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-radio:hover > .radio-box > .radio-box-inner {\n border-color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-radio > .radio-box {\n position: relative;\n}\n.paraui-v3-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-v3-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 rgba(171, 176, 185, 0.4);\n border-radius: 50%;\n}\n.paraui-v3-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-v3-radio > .radio-label {\n color: rgb(46, 55, 67);\n padding: 0 8px;\n margin: 0;\n display: inline-flex;\n align-items: flex-start;\n}\n.paraui-v3-radio > .radio-label > .radio-help > svg {\n top: 0;\n}\n.paraui-v3-radio .radio-label {\n line-height: 16px;\n}\n.paraui-v3-radio > .radio-help {\n padding: 0 8px;\n position: relative;\n top: -1px;\n}\n.paraui-v3-radio > .radio-help > .radio-label {\n color: rgb(46, 55, 67);\n margin: 0;\n display: inline-flex;\n align-items: center;\n}\n.paraui-v3-radio.paraui-v3-radio-checked > .radio-box > .radio-box-inner {\n border-color: transparent;\n background-color: rgb(54, 102, 214);\n}\n.paraui-v3-radio.paraui-v3-radio-checked:hover > .radio-box > .radio-box-inner {\n border-color: transparent;\n background-color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-radio.paraui-v3-radio-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-radio.paraui-v3-radio-disabled:hover > .radio-box > .radio-box-inner {\n background-color: rgb(245, 246, 247);\n border-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-radio.paraui-v3-radio-disabled > .radio-label {\n color: rgba(46, 55, 67, 0.4);\n cursor: not-allowed;\n}\n.paraui-v3-radio.paraui-v3-radio-disabled > .radio-label svg {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-radio.paraui-v3-radio-disabled > .radio-box > input {\n cursor: not-allowed;\n}\n.paraui-v3-radio.paraui-v3-radio-disabled > .radio-box > .radio-box-inner {\n background-color: rgb(245, 246, 247);\n border-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-radio.paraui-v3-radio-disabled > .radio-box > .radio-box-inner:after {\n background-color: rgb(245, 246, 247);\n}\n.paraui-v3-radio.paraui-v3-radio-disabled.paraui-v3-radio-checked > .radio-box > .radio-box-inner:after {\n background-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-radio.paraui-v3-radio-disabled > .radio-help {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-radio.paraui-v3-radio-disabled > .radio-help > .radio-label {\n color: rgba(46, 55, 67, 0.4);\n cursor: not-allowed;\n}\n.paraui-v3-radio.paraui-v3-radio-small > .radio-box {\n top: 1px;\n}\n.paraui-v3-radio.paraui-v3-radio-small > .radio-box > .radio-box-inner {\n width: 14px;\n height: 14px;\n}\n.paraui-v3-radio.paraui-v3-radio-small > .radio-box > .radio-box-inner:after {\n width: 4px;\n height: 4px;\n}\n.paraui-v3-radio.paraui-v3-radio-medium > .radio-box > .radio-box-inner {\n width: 16px;\n height: 16px;\n}\n.paraui-v3-radio.paraui-v3-radio-medium > .radio-box > .radio-box-inner:after {\n width: 6px;\n height: 6px;\n}\n.paraui-v3-radio.paraui-v3-radio-large > .radio-box > .radio-box-inner {\n width: 16px;\n height: 16px;\n}\n.paraui-v3-radio.paraui-v3-radio-large > .radio-box > .radio-box-inner:after {\n width: 6px;\n height: 6px;\n}";
|
|
15
16
|
styleInject(css_248z);
|
|
16
17
|
|
|
17
18
|
var Radio = function Radio(props) {
|
|
@@ -51,16 +52,16 @@ var Radio = function Radio(props) {
|
|
|
51
52
|
|
|
52
53
|
|
|
53
54
|
var handClass = function handClass() {
|
|
54
|
-
var str = '
|
|
55
|
+
var str = $prefixCls + '-radio';
|
|
55
56
|
if (className) str += ' ' + className;
|
|
56
|
-
if (size) str +=
|
|
57
|
-
if (disabled) str +=
|
|
58
|
-
if (checkedCom) str +=
|
|
57
|
+
if (size) str += " ".concat($prefixCls, "-radio-").concat(size);
|
|
58
|
+
if (disabled) str += " ".concat($prefixCls, "-radio-disabled");
|
|
59
|
+
if (checkedCom) str += " ".concat($prefixCls, "-radio-checked");
|
|
59
60
|
return str;
|
|
60
61
|
};
|
|
61
62
|
|
|
62
63
|
var handLabelClass = function handLabelClass() {
|
|
63
|
-
var str = '
|
|
64
|
+
var str = 'radio-label';
|
|
64
65
|
|
|
65
66
|
if (labelTooltip && labelTooltip.className) {
|
|
66
67
|
str += ' ' + labelTooltip.className;
|
|
@@ -68,6 +69,18 @@ var Radio = function Radio(props) {
|
|
|
68
69
|
|
|
69
70
|
return str;
|
|
70
71
|
};
|
|
72
|
+
/** 处理帮组classNaem */
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
var handHelpClassName = function handHelpClassName() {
|
|
76
|
+
var str = ' radio-help';
|
|
77
|
+
|
|
78
|
+
if (labelTooltip && labelTooltip.helpClassName) {
|
|
79
|
+
str += ' ' + labelTooltip.helpClassName;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return str;
|
|
83
|
+
};
|
|
71
84
|
|
|
72
85
|
return jsxs("label", Object.assign({
|
|
73
86
|
className: handClass(),
|
|
@@ -75,17 +88,18 @@ var Radio = function Radio(props) {
|
|
|
75
88
|
style: style
|
|
76
89
|
}, {
|
|
77
90
|
children: [jsxs("span", Object.assign({
|
|
78
|
-
className: "
|
|
91
|
+
className: "radio-box"
|
|
79
92
|
}, {
|
|
80
93
|
children: [jsx("input", Object.assign({
|
|
81
94
|
type: "radio",
|
|
82
95
|
value: checkedCom
|
|
83
96
|
}, props.inputProps)), jsx("span", {
|
|
84
|
-
className: "
|
|
97
|
+
className: "radio-box-inner"
|
|
85
98
|
})]
|
|
86
99
|
})), label !== undefined && label !== '' && label !== null ? jsx(Label, Object.assign({
|
|
87
100
|
label: label
|
|
88
101
|
}, labelTooltip, {
|
|
102
|
+
helpClassName: handHelpClassName(),
|
|
89
103
|
className: handLabelClass()
|
|
90
104
|
})) : null]
|
|
91
105
|
}));
|
package/RadioGroup/index.d.ts
CHANGED
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
7
|
import { RadioProps } from '../Radio';
|
|
8
8
|
import { LabelTooltipProps } from "../Label";
|
|
9
|
+
import { HelperTextDetailProps } from "../HelperText";
|
|
9
10
|
import './index.scss';
|
|
10
11
|
export interface RadioListProps extends RadioProps {
|
|
11
12
|
[name: string]: any;
|
|
12
13
|
}
|
|
13
|
-
export interface RadioGroupProps {
|
|
14
|
+
export interface RadioGroupProps extends HelperTextDetailProps {
|
|
14
15
|
/** 样式class */
|
|
15
16
|
className?: string;
|
|
16
17
|
/** style */
|
|
@@ -27,10 +28,6 @@ export interface RadioGroupProps {
|
|
|
27
28
|
row?: boolean;
|
|
28
29
|
/** 是否禁用 */
|
|
29
30
|
disabled?: boolean;
|
|
30
|
-
/** 是否显示错误 */
|
|
31
|
-
error?: boolean;
|
|
32
|
-
/** 错误提示 */
|
|
33
|
-
helperText?: ReactNode;
|
|
34
31
|
/** 默认值 不受控 */
|
|
35
32
|
defaultValue?: any;
|
|
36
33
|
/** 默认值 */
|
package/RadioGroup/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
import { Radio } from '../Radio/index.js';
|
|
5
5
|
import Label from '../Label/index.js';
|
|
6
6
|
import HelperText from '../HelperText/index.js';
|
|
7
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
7
8
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
9
|
import '../Help/index.js';
|
|
9
10
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
@@ -13,7 +14,7 @@ import 'rc-tooltip/lib/placements';
|
|
|
13
14
|
import 'clsx';
|
|
14
15
|
import '@para-ui/icons/Help';
|
|
15
16
|
|
|
16
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-radio-group {\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 width: 100%;\n}\n.paraui-radio-group > .radio-group-
|
|
17
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-radio-group {\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 width: 100%;\n}\n.paraui-v3-radio-group > .radio-group-label {\n margin-bottom: 4px;\n}\n.paraui-v3-radio-group > .radio-group-content {\n line-height: 0;\n}\n.paraui-v3-radio-group > .radio-group-content > .paraui-v3-radio {\n margin-top: 8px;\n margin-bottom: 4px;\n}\n.paraui-v3-radio-group.paraui-v3-radio-group-column > .radio-group-content {\n display: flex;\n flex-direction: column;\n}";
|
|
17
18
|
styleInject(css_248z);
|
|
18
19
|
|
|
19
20
|
var RadioGroup = function RadioGroup(props) {
|
|
@@ -33,6 +34,7 @@ var RadioGroup = function RadioGroup(props) {
|
|
|
33
34
|
required = _props$required === void 0 ? false : _props$required,
|
|
34
35
|
_props$error = props.error,
|
|
35
36
|
error = _props$error === void 0 ? false : _props$error,
|
|
37
|
+
hideErrorDom = props.hideErrorDom,
|
|
36
38
|
_props$helperText = props.helperText,
|
|
37
39
|
helperText = _props$helperText === void 0 ? '' : _props$helperText,
|
|
38
40
|
_props$id = props.id,
|
|
@@ -92,12 +94,12 @@ var RadioGroup = function RadioGroup(props) {
|
|
|
92
94
|
|
|
93
95
|
|
|
94
96
|
var handClass = function handClass() {
|
|
95
|
-
var str = '
|
|
97
|
+
var str = $prefixCls + '-radio-group';
|
|
96
98
|
if (className) str += ' ' + className;
|
|
97
|
-
if (size) str +=
|
|
98
|
-
if (error) str +=
|
|
99
|
-
if (disabled) str +=
|
|
100
|
-
if (row) str +=
|
|
99
|
+
if (size) str += " ".concat($prefixCls, "-radio-group-size");
|
|
100
|
+
if (error) str += " ".concat($prefixCls, "-radio-group-error");
|
|
101
|
+
if (disabled) str += " ".concat($prefixCls, "-radio-group-disabled");
|
|
102
|
+
if (row) str += " ".concat($prefixCls, "-radio-group-row");else str += " ".concat($prefixCls, "-radio-group-column");
|
|
101
103
|
return str;
|
|
102
104
|
};
|
|
103
105
|
|
|
@@ -120,7 +122,8 @@ var RadioGroup = function RadioGroup(props) {
|
|
|
120
122
|
})), jsx(HelperText, {
|
|
121
123
|
className: "radio-group-error-text",
|
|
122
124
|
error: error,
|
|
123
|
-
helperText: helperText
|
|
125
|
+
helperText: helperText,
|
|
126
|
+
hideErrorDom: hideErrorDom
|
|
124
127
|
})]
|
|
125
128
|
}));
|
|
126
129
|
};
|
package/Search/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { useState, useEffect } from 'react';
|
|
|
4
4
|
import { TextField } from '../TextField/index.js';
|
|
5
5
|
import { Button } from '../Button/index.js';
|
|
6
6
|
import SearchIcon from '@para-ui/icons/Search';
|
|
7
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
7
8
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
9
|
import '../_verture/typeof-498dd2b1.js';
|
|
9
10
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
@@ -30,7 +31,7 @@ import '@para-ui/icons/Forbid';
|
|
|
30
31
|
import '@para-ui/icons/Down';
|
|
31
32
|
import '../_verture/useFormatMessage-ac9d6acf.js';
|
|
32
33
|
|
|
33
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-search {\n display: flex;\n width: 100%;\n}\n.paraui-search > .
|
|
34
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-search {\n display: flex;\n width: 100%;\n}\n.paraui-v3-search > .search-text-field {\n padding: 0;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: none;\n margin-right: 8px;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 16px;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .right-icon:hover > svg {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 8px;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-after {\n padding: 0;\n background-color: white;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n border: 0;\n}\n.paraui-v3-search.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: flex;\n}\n.paraui-v3-search.paraui-v3-search-value > .search-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: flex;\n}\n.paraui-v3-search .search-button > .paraui-v3-button-icon {\n margin-right: 0;\n}\n.paraui-v3-search .search-button > .paraui-v3-button-icon > svg {\n font-size: 16px;\n}\n.paraui-v3-search .search-button > .paraui-v3-button-label {\n margin-left: 4px;\n}\n.paraui-v3-search.paraui-v3-search-outside > .search-button {\n margin-left: 16px;\n}\n.paraui-v3-search.paraui-v3-search-inside .search-button {\n padding: 0 8px;\n}\n.paraui-v3-search.paraui-v3-search-inside .search-button svg {\n font-size: 20px;\n}\n.paraui-v3-search.paraui-v3-search-btntext .search-button svg {\n font-size: 16px;\n}\n.paraui-v3-search.paraui-v3-search-small > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n height: 26px;\n}\n.paraui-v3-search.paraui-v3-search-small.paraui-v3-search-inside.paraui-v3-search-no-btntext .search-button svg {\n font-size: 16px;\n}\n.paraui-v3-search.paraui-v3-search-small.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 16px;\n}\n.paraui-v3-search.paraui-v3-search-small.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 4px;\n}\n.paraui-v3-search.paraui-v3-search-medium > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n height: 30px;\n}\n.paraui-v3-search.paraui-v3-search-medium.paraui-v3-search-inside.search-no-btntext .search-button svg {\n font-size: 18px;\n}\n.paraui-v3-search.paraui-v3-search-medium.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 18px;\n}\n.paraui-v3-search.paraui-v3-search-medium.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 6px;\n}\n.paraui-v3-search.paraui-v3-search-large > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n height: 34px;\n}\n.paraui-v3-search.paraui-v3-search-large.paraui-v3-search-inside.search-no-btntext .search-button svg {\n font-size: 20px;\n}\n.paraui-v3-search.paraui-v3-search-large.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 20px;\n}\n.paraui-v3-search.paraui-v3-search-large.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 8px;\n}";
|
|
34
35
|
styleInject(css_248z);
|
|
35
36
|
|
|
36
37
|
var Search = function Search(props) {
|
|
@@ -150,6 +151,7 @@ var Search = function Search(props) {
|
|
|
150
151
|
var buttonDom = function buttonDom() {
|
|
151
152
|
if (showBtn && btnType === 'inside') {
|
|
152
153
|
return jsx(Button, Object.assign({
|
|
154
|
+
className: 'search-button',
|
|
153
155
|
size: size,
|
|
154
156
|
startIcon: searchBtnIcon(),
|
|
155
157
|
variant: 'outlined',
|
|
@@ -168,14 +170,14 @@ var Search = function Search(props) {
|
|
|
168
170
|
|
|
169
171
|
|
|
170
172
|
var handClass = function handClass() {
|
|
171
|
-
var str =
|
|
173
|
+
var str = "".concat($prefixCls, "-search");
|
|
172
174
|
if (className) str += ' ' + className;
|
|
173
|
-
if (size) str +=
|
|
174
|
-
if (btnType) str +=
|
|
175
|
-
if (showBtn) str +=
|
|
176
|
-
if (btnText) str +=
|
|
177
|
-
if (valueCom) str +=
|
|
178
|
-
if (rightIconExist) str +=
|
|
175
|
+
if (size) str += " ".concat($prefixCls, "-search-").concat(size);
|
|
176
|
+
if (btnType) str += " ".concat($prefixCls, "-search-").concat(btnType);
|
|
177
|
+
if (showBtn) str += " ".concat($prefixCls, "-search-showbtn");
|
|
178
|
+
if (btnText) str += " ".concat($prefixCls, "-search-btntext");else str += " ".concat($prefixCls, "-search-no-btntext");
|
|
179
|
+
if (valueCom) str += " ".concat($prefixCls, "-search-value");
|
|
180
|
+
if (rightIconExist) str += " ".concat($prefixCls, "-search-right-icon-exist");
|
|
179
181
|
return str;
|
|
180
182
|
};
|
|
181
183
|
|
|
@@ -192,10 +194,12 @@ var Search = function Search(props) {
|
|
|
192
194
|
style: style
|
|
193
195
|
}, {
|
|
194
196
|
children: [jsx(TextField, {
|
|
197
|
+
className: 'search-text-field',
|
|
195
198
|
size: size,
|
|
196
199
|
placeholder: placeholder,
|
|
197
200
|
value: handValue(),
|
|
198
201
|
rightIcon: clearIcon(),
|
|
202
|
+
hideErrorDom: true,
|
|
199
203
|
onClickIcon: clickRightIcon,
|
|
200
204
|
onChange: changeInput,
|
|
201
205
|
onBlur: onBlur,
|
|
@@ -207,6 +211,7 @@ var Search = function Search(props) {
|
|
|
207
211
|
allowClear: allowClear,
|
|
208
212
|
onClear: onClear
|
|
209
213
|
}), showBtn && btnType === 'outside' && jsx(Button, Object.assign({
|
|
214
|
+
className: 'search-button',
|
|
210
215
|
size: size,
|
|
211
216
|
startIcon: searchBtnIcon(),
|
|
212
217
|
variant: 'contained',
|