@para-ui/core 4.0.6 → 4.0.7-alpha2
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 +1 -1
- package/AutoTips/index.js +1 -1
- package/Breadcrumbs/index.js +1 -1
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.js +2 -2
- package/ButtonGroup/index.js +1 -1
- package/Carousel/index.js +1 -1
- package/Cascader/OptionList/Column.d.ts +1 -1
- package/Cascader/index.js +4 -4
- package/Checkbox/index.js +1 -1
- package/CheckboxGroup/index.js +1 -1
- package/ColorPicker/chromePicker/index.d.ts +1 -2
- package/ColorPicker/compactPicker/index.d.ts +1 -2
- package/ColorPicker/sketchPicker/index.d.ts +1 -2
- package/ColorPicker/swatchesPicker/index.d.ts +1 -2
- package/ComboSelect/index.js +2 -2
- package/Container/index.d.ts +1 -1
- package/CopyText/index.js +1 -1
- package/CycleSelector/index.js +24 -8
- package/CycleSelector/lang/en_US.d.ts +1 -0
- package/CycleSelector/lang/index.d.ts +2 -0
- package/CycleSelector/lang/zh_CN.d.ts +1 -0
- package/DatePicker/PickerButton.d.ts +1 -2
- package/DatePicker/PickerTag.d.ts +1 -2
- package/DatePicker/index.js +2 -2
- package/Descriptions/index.d.ts +2 -0
- package/Descriptions/index.js +8 -3
- package/Desktop/index.js +1 -1
- package/DragVerify/index.js +1 -1
- package/Drawer/index.js +1 -1
- package/DynamicMultiBox/formItem.d.ts +1 -2
- package/DynamicMultiBox/index.js +6 -6
- package/DynamicMultiBox/rowForm.d.ts +1 -1
- package/Empty/images/index.d.ts +2 -3
- package/Form/index.js +3 -3
- package/FormItem/index.js +3 -3
- package/FunctionModal/index.js +3 -3
- package/FunctionModal/modalContext.d.ts +1 -2
- package/GlobalContext/confirmLocale.d.ts +2 -4
- package/GlobalContext/index.js +5 -4
- package/Help/index.js +1 -1
- package/InputLang/index.js +1 -1
- package/InputNumber/index.js +1 -1
- package/Label/index.js +1 -1
- package/Menu/index.js +74 -24
- package/Menu/interface.d.ts +9 -0
- package/Message/index.d.ts +1 -1
- package/Modal/index.js +1 -1
- package/MultiBox/index.js +1 -1
- package/Notification/index.js +3 -3
- package/OperateBtn/index.js +1 -1
- package/PageHeader/index.js +1 -1
- package/Pagination/index.js +2 -2
- package/ParauiProvider/index.d.ts +1 -1
- package/ParauiProvider/index.js +3 -2
- package/PopConfirm/index.js +1 -1
- package/Popover/index.js +1 -1
- package/Progress/index.js +1 -1
- package/Prompt/index.d.ts +1 -1
- package/Querying/images/index.d.ts +2 -3
- package/QuickReply/index.js +3 -3
- package/README.md +9 -0
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +1 -1
- package/Search/index.js +1 -1
- package/Select/index.js +19 -2
- package/SelectInput/index.js +1 -1
- package/Selector/index.js +4 -4
- package/SelectorPicker/index.js +1 -1
- package/SingleBox/index.js +1 -1
- package/Slider/index.js +1 -1
- package/Stepper/index.js +1 -1
- package/Switch/index.js +1 -1
- package/Table/index.js +5 -4
- package/Table/interface.d.ts +2 -0
- package/Table/lang/en_US.d.ts +1 -1
- package/Table/lang/index.d.ts +1 -1
- package/Tabs/index.js +2 -2
- package/Tag/index.js +1 -1
- package/TextEditor/index.js +1 -1
- package/TextField/index.js +1 -1
- package/TimePicker/index.js +2 -2
- package/Timeline/index.js +1 -1
- package/Title/index.js +1 -1
- package/ToggleButton/index.js +1 -1
- package/Tooltip/index.js +1 -1
- package/Tooltip/utils.d.ts +1 -1
- package/Transfer/box.d.ts +1 -1
- package/Transfer/index.d.ts +1 -1
- package/Transfer/index.js +2 -2
- package/Tree/index.js +3 -3
- package/Tree/utils/treeUtil.d.ts +2 -2
- package/Upload/index.js +1 -1
- package/Utils/index.d.ts +2 -0
- package/Utils/index.js +10 -3
- package/_verture/defineProperty-6f62bb2a.js +34 -0
- package/_verture/{index-767e63dd.js → index-b08d8bf5.js} +1 -1
- package/_verture/{index-9784b09c.js → index-b33b6e81.js} +228 -119
- package/_verture/{index-28a6bc3a.js → index-e5429414.js} +1 -1
- package/_verture/{modalContext-8982647f.js → modalContext-25549697.js} +1 -1
- package/_verture/{sortable.esm-49896035.js → sortable.esm-76fe46a4.js} +597 -1029
- package/_verture/tslib.es6-fe0d4b4e.js +43 -0
- package/index.js +9 -9
- package/locale/en-US.d.ts +2 -1
- package/locale/index.d.ts +3 -1
- package/locale/index.js +8 -6
- package/locale/zh-CN.d.ts +1 -0
- package/package.json +14 -14
- package/umd/AutoBox.js +18 -18
- package/umd/AutoTips.js +18 -18
- package/umd/Badge.js +1 -1
- package/umd/Breadcrumbs.js +18 -18
- package/umd/Button.js +18 -18
- package/umd/ButtonGroup.js +18 -18
- package/umd/Carousel.js +13 -13
- package/umd/Cascader.js +18 -18
- package/umd/Checkbox.js +18 -18
- package/umd/CheckboxGroup.js +18 -18
- package/umd/Collapse.js +17 -17
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +8 -8
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +18 -18
- package/umd/Container.js +1 -1
- package/umd/CopyText.js +18 -18
- package/umd/CycleSelector.js +18 -18
- package/umd/DatePicker.js +18 -18
- package/umd/Descriptions.js +18 -18
- package/umd/Desktop.js +18 -18
- package/umd/DragVerify.js +8 -8
- package/umd/Drawer.js +18 -18
- package/umd/Dropdown.js +8 -8
- package/umd/DynamicMultiBox.js +21 -21
- package/umd/Empty.js +1 -1
- package/umd/Form.js +18 -18
- package/umd/FormItem.js +18 -18
- package/umd/FunctionModal.js +18 -18
- package/umd/GlobalContext.js +1 -1
- package/umd/Help.js +18 -18
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +18 -18
- package/umd/InputNumber.js +18 -18
- package/umd/Label.js +18 -18
- package/umd/Loading.js +8 -8
- package/umd/Menu.js +30 -16
- package/umd/Message.js +8 -8
- package/umd/Modal.js +18 -18
- package/umd/MultiBox.js +18 -18
- package/umd/Notification.js +17 -17
- package/umd/OperateBtn.js +18 -18
- package/umd/PageHeader.js +18 -18
- package/umd/Pagination.js +18 -18
- package/umd/ParauiProvider.js +1 -1
- package/umd/PasswordRules.js +8 -8
- package/umd/PopConfirm.js +18 -18
- package/umd/Popover.js +18 -18
- package/umd/Progress.js +13 -13
- package/umd/Prompt.js +8 -8
- package/umd/Querying.js +1 -1
- package/umd/QuickReply.js +21 -21
- package/umd/Radio.js +18 -18
- package/umd/RadioGroup.js +18 -18
- package/umd/Search.js +18 -18
- package/umd/Select.js +18 -18
- package/umd/SelectInput.js +18 -18
- package/umd/Selector.js +18 -18
- package/umd/SelectorPicker.js +18 -18
- package/umd/SingleBox.js +18 -18
- package/umd/Slider.js +8 -8
- package/umd/Status.js +8 -8
- package/umd/Stepper.js +18 -18
- package/umd/Switch.js +18 -18
- package/umd/Table.js +18 -18
- package/umd/Tabs.js +18 -18
- package/umd/Tag.js +18 -18
- package/umd/TextEditor.js +31 -31
- package/umd/TextField.js +18 -18
- package/umd/TimePicker.js +18 -18
- package/umd/Timeline.js +1 -1
- package/umd/Title.js +18 -18
- package/umd/ToggleButton.js +18 -18
- package/umd/Tooltip.js +18 -18
- package/umd/Transfer.js +20 -20
- package/umd/Tree.js +18 -18
- package/umd/Upload.js +19 -19
- package/umd/Utils.js +1 -1
- package/umd/locale.js +1 -1
- package/_verture/defineProperty-1d116156.js +0 -34
- package/_verture/tslib.es6-55ed4bd2.js +0 -38
- /package/_verture/{index-d795d1f0.js → index-6cd67e49.js} +0 -0
package/umd/HelperText.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(e=>(()=>{var t={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(e=>(()=>{var t={83034:(e,t,n)=>{(t=n(76314)(!1)).push([e.id,".paraui-v4-helper-text{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:12px;font-weight:400;line-height:20px;color:#5c6573}.paraui-v4-helper-text.paraui-v4-helper-text-error{color:#f44242}",""]),e.exports=t},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(i=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}var i,c,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},31295:(e,t,n)=>{var r=n(85072),o=n(83034);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},85072:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function c(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],o=0;o<e.length;o++){var a=e[o],s=t.base?a[0]+t.base:a[0],u=n[s]||0,l="".concat(s," ").concat(u);n[s]=u+1;var f=c(l),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(d)):i.push({identifier:l,updater:m(d,t),references:1}),r.push(l)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function p(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,h=0;function m(e,t){var n,r,o;if(t.singleton){var a=h++;n=v||(v=u(t)),r=d.bind(null,n,a,!1),o=d.bind(null,n,a,!0)}else n=u(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);i[o].references--}for(var a=s(e,t),u=0;u<n.length;u++){var l=c(n[u]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}n=a}}}},14552:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var r="paraui-v4"},39155:t=>{"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var o={};return(()=>{"use strict";r.r(o),r.d(o,{default:()=>a});var e=r(39155),t=r.n(e),n=r(14552);r(31295);const a=function(e){var r=e.className,o=e.style,a=e.error,i=void 0!==a&&a,c=e.hideErrorDom,s=void 0!==c&&c,u=e.helperText;if(null===s)return null;if(!i&&s)return null;var l;return t().createElement("p",{className:(l="".concat(n.n,"-helper-text"),r&&(l+=" ".concat(r)),i&&(l+=" ".concat(n.n,"-helper-text-error")),l),style:o},u)}})(),o})()));
|