@para-ui/core 2.0.24 → 2.1.2
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/Accordion/index.js +1 -1
- package/AutoBox/index.js +16 -3
- package/AutoTips/index.d.ts +2 -2
- package/AutoTips/index.js +1 -1
- package/Breadcrumbs/index.js +16 -3
- package/Button/index.js +42 -3
- package/ButtonGroup/index.js +42 -3
- package/Cascader/index.js +29 -3
- package/Checkbox/index.js +1 -1
- package/CheckboxGroup/index.js +3 -3
- package/ColorPicker/index.js +1 -1
- package/ComboSelect/index.js +315 -3
- package/Container/index.js +1 -1
- package/DatePicker/index.js +107 -3
- package/Desktop/index.js +2 -2
- package/Drawer/index.js +2 -2
- package/Form/index.js +185 -3
- package/FormItem/index.js +185 -3
- package/FunctionModal/index.js +107 -3
- package/GlobalContext/index.js +1 -1
- package/Help/index.js +16 -3
- package/IconList/index.js +55 -3
- package/InputLang/index.js +81 -3
- package/InputNumber/index.js +94 -3
- package/Loading/index.js +15 -2
- package/Menu/index.js +42 -3
- package/Message/index.js +55 -3
- package/Modal/index.js +107 -3
- package/MultiBox/index.js +68 -3
- package/Notification/index.js +55 -3
- package/PageHeader/index.js +55 -3
- package/Pagination/index.js +146 -3
- package/ParauiProvider/index.js +1 -1
- package/PopConfirm/index.js +94 -3
- package/Popover/index.js +1 -1
- package/Popper/index.js +1 -1
- package/README.md +25 -0
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +1 -1
- package/Search/index.js +94 -3
- package/Select/index.js +68 -3
- package/SingleBox/index.js +68 -3
- package/Slider/index.js +1 -1
- package/Split/index.js +1 -1
- package/Stepper/index.js +133 -3
- package/Switch/index.js +16 -3
- package/Table/index.js +237 -3
- package/Tabs/index.js +16 -3
- package/Tag/index.js +29 -3
- package/TextField/index.js +42 -3
- package/TimePicker/index.js +107 -3
- package/Timeline/index.js +1 -1
- package/ToggleButton/index.js +42 -3
- package/Tooltip/index.js +1 -1
- package/Transfer/index.js +120 -3
- package/Tree/index.js +107 -3
- package/Upload/index.js +107 -3
- package/cdn/Accordion/index.js +2 -2
- package/cdn/AutoBox/index.js +16 -3
- package/cdn/AutoTips/index.js +3 -3
- package/cdn/Breadcrumbs/index.js +16 -3
- package/cdn/Button/index.js +42 -3
- package/cdn/ButtonGroup/index.js +43 -4
- package/cdn/Cascader/index.js +29 -3
- package/cdn/Checkbox/index.js +1 -1
- package/cdn/CheckboxGroup/index.js +1 -1
- package/cdn/ColorPicker/index.js +1 -1
- package/cdn/ComboSelect/index.js +319 -7
- package/cdn/Container/index.js +1 -1
- package/cdn/DatePicker/index.js +110 -6
- package/cdn/Desktop/index.js +3 -3
- package/cdn/Drawer/index.js +2 -2
- package/cdn/Form/index.js +186 -4
- package/cdn/FormItem/index.js +186 -4
- package/cdn/FunctionModal/index.js +107 -3
- package/cdn/GlobalContext/index.js +1 -1
- package/cdn/Help/index.js +16 -3
- package/cdn/IconList/index.js +55 -3
- package/cdn/InputLang/index.js +81 -3
- package/cdn/InputNumber/index.js +94 -3
- package/cdn/Loading/index.js +14 -1
- package/cdn/Menu/index.js +42 -3
- package/cdn/Message/index.js +53 -1
- package/cdn/Modal/index.js +107 -3
- package/cdn/MultiBox/index.js +68 -3
- package/cdn/Notification/index.js +55 -3
- package/cdn/PageHeader/index.js +56 -4
- package/cdn/Pagination/index.js +148 -5
- package/cdn/ParauiProvider/index.js +2 -2
- package/cdn/PopConfirm/index.js +94 -3
- package/cdn/Popover/index.js +3 -3
- package/cdn/Popper/index.js +2 -2
- package/cdn/Radio/index.js +1 -1
- package/cdn/RadioGroup/index.js +1 -1
- package/cdn/Search/index.js +95 -4
- package/cdn/Select/index.js +69 -4
- package/cdn/SingleBox/index.js +69 -4
- package/cdn/Slider/index.js +1 -1
- package/cdn/Split/index.js +1 -1
- package/cdn/Stepper/index.js +134 -4
- package/cdn/Switch/index.js +15 -2
- package/cdn/Table/index.js +238 -4
- package/cdn/Tabs/index.js +17 -4
- package/cdn/Tag/index.js +27 -1
- package/cdn/TextField/index.js +42 -3
- package/cdn/TimePicker/index.js +110 -6
- package/cdn/Timeline/index.js +1 -1
- package/cdn/ToggleButton/index.js +42 -3
- package/cdn/Tooltip/index.js +3 -3
- package/cdn/Transfer/index.js +121 -4
- package/cdn/Tree/index.js +109 -5
- package/cdn/Upload/index.js +108 -4
- package/index.d.ts +55 -0
- package/index.js +679 -3
- package/package.json +41 -34
- package/Styles/fonts/SourceHanSansCN-Light.css +0 -8
- package/Styles/fonts/SourceHanSansCN-Light.otf +0 -0
- package/Styles/fonts/SourceHanSansCN-Medium.css +0 -8
- package/Styles/fonts/SourceHanSansCN-Medium.otf +0 -0
- package/Styles/fonts/SourceHanSansCN-Regular.css +0 -8
- package/Styles/fonts/SourceHanSansCN-Regular.otf +0 -0
- package/Styles/index.d.ts +0 -1
- package/Styles/index.scss +0 -63
- package/Styles/index.ts +0 -1
- package/Styles/normalize.scss +0 -348
- package/Styles/theme.scss +0 -57
- package/cdn/Styles/fonts/SourceHanSansCN-Light.css +0 -8
- package/cdn/Styles/fonts/SourceHanSansCN-Light.otf +0 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Medium.css +0 -8
- package/cdn/Styles/fonts/SourceHanSansCN-Medium.otf +0 -0
- package/cdn/Styles/fonts/SourceHanSansCN-Regular.css +0 -8
- package/cdn/Styles/fonts/SourceHanSansCN-Regular.otf +0 -0
- package/cdn/Styles/index.scss +0 -63
- package/cdn/Styles/index.ts +0 -1
- package/cdn/Styles/normalize.scss +0 -348
- package/cdn/Styles/theme.scss +0 -57
package/Container/index.js
CHANGED
|
@@ -12,4 +12,4 @@ object-assign
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
r(7418);var n=r(
|
|
15
|
+
r(7418);var n=r(8156),a=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;a=i("react.element"),i("react.fragment")}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,d=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(d=t.ref),t)c.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:a,type:e,key:s,ref:d,props:i,_owner:o.current}}t.jsx=s,t.jsxs=s},5893:function(e,t,r){"use strict";e.exports=r(5251)},462:function(e,t,r){var n=r(3379),a=r(6461);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);var i={insert:("body","body"),singleton:!1};n(a,i);e.exports=a.locals||{}},3379:function(e,t,r){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),o=[];function c(e){for(var t=-1,r=0;r<o.length;r++)if(o[r].identifier===e){t=r;break}return t}function l(e,t){for(var r={},n=[],a=0;a<e.length;a++){var i=e[a],l=t.base?i[0]+t.base:i[0],s=r[l]||0,d="".concat(l," ").concat(s);r[l]=s+1;var u=c(d),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==u?(o[u].references++,o[u].updater(p)):o.push({identifier:d,updater:y(p,t),references:1}),n.push(d)}return n}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=r.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var o=i(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var d,u=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function p(e,t,r,n){var a=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=u(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function f(e,t,r){var n=r.css,a=r.media,i=r.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var h=null,v=0;function y(e,t){var r,n,a;if(t.singleton){var i=v++;r=h||(h=s(t)),n=p.bind(null,r,i,!1),a=p.bind(null,r,i,!0)}else r=s(t),n=f.bind(null,r,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var r=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var a=c(r[n]);o[a].references--}for(var i=l(e,t),s=0;s<r.length;s++){var d=c(r[s]);0===o[d].references&&(o[d].updater(),o.splice(d,1))}r=i}}}},8156:function(t){"use strict";t.exports=e}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={id:e,exports:{}};return t[e](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){"use strict";n.r(a),n.d(a,{Container:function(){return o}});var e=n(5893),t=n(8156),r=n.n(t),i=(n(462),function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i.apply(this,arguments)}),o=function(t){void 0===t&&(t={});var n,a,o,c,l,s=t.className,d=void 0===s?"":s,u=t.top,p=t.topStyle,f=void 0===p?{}:p,h=t.left,v=t.leftStyle,y=void 0===v?{}:v,b=t.right,g=t.rightStyle,m=void 0===g?{}:g,j=t.bottom,x=t.bottomStyle,w=void 0===x?{}:x,N=t.type,O=void 0===N?"tlr":N;return r().useMemo((function(){switch(O){case"tlr":return n=i({height:u?"50px":"0",width:"100%"},f),a=i({height:"100%",width:"auto"},y),c=i({height:j?"20px":"0",width:"100%"},w),o=i({height:"calc(100% - ".concat(c.height,")"),width:"auto"},m),l={width:"100%",height:"calc(100% - ".concat(n.height,")")},(0,e.jsxs)("div",i({className:"para-container tlf "+d},{children:[(0,e.jsx)("div",i({className:"para-container-top",style:n},{children:u}),void 0),(0,e.jsxs)("div",i({className:"para-body",style:l},{children:[(0,e.jsx)("div",i({className:"para-container-left",style:a},{children:h}),void 0),(0,e.jsxs)("div",i({className:"para-body-right",style:{width:"auto",height:"100%"}},{children:[(0,e.jsx)("div",i({className:"para-container-right",style:o},{children:b}),void 0),(0,e.jsx)("div",i({className:"para-container-bottom",style:c},{children:j}),void 0)]}),void 0)]}),void 0)]}),void 0);case"tlrb":return n=i({height:u?"50px":"0",width:"100%"},f),a=i({height:"100%",width:"auto"},y),o=i({height:"100%",width:"auto"},m),c=i({height:j?"20px":"0px",width:"100%"},w),l={width:"100%",height:"calc(100% - ".concat(n.height," - ").concat(c.height,")")},(0,e.jsxs)("div",i({className:"para-container tlrb "+d},{children:[(0,e.jsx)("div",i({className:"para-container-top",style:n},{children:u}),void 0),(0,e.jsxs)("div",i({className:"para-body",style:l},{children:[(0,e.jsx)("div",i({className:"para-container-left",style:a},{children:h}),void 0),(0,e.jsx)("div",i({className:"para-container-right",style:o},{children:b}),void 0)]}),void 0),(0,e.jsx)("div",i({className:"para-container-bottom",style:c},{children:j}),void 0)]}),void 0);case"ltrb":return a=i({height:"100%",width:"auto"},y),n=i({height:u?"50px":"0",width:"100%"},f),c=i({height:j?"30px":"0px",width:"100%"},w),o=i({height:"calc(100% - ".concat(n.height,"px - ").concat(c.height,")"),width:"100%"},m),l={width:"auto",height:"100%"},(0,e.jsxs)("div",i({className:"para-container ltrb "+d},{children:[(0,e.jsx)("div",i({className:"para-container-left",style:a},{children:h}),void 0),(0,e.jsxs)("div",i({className:"para-body",style:l},{children:[(0,e.jsx)("div",i({className:"para-container-top",style:n},{children:u}),void 0),(0,e.jsx)("div",i({className:"para-container-right",style:o},{children:b}),void 0),(0,e.jsx)("div",i({className:"para-container-bottom",style:c},{children:j}),void 0)]}),void 0)]}),void 0);case"trb":return n=i({height:u?"50px":"0",width:"100%"},f),c=i({height:j?"30px":"0px",width:"100%"},w),o=i({height:"calc(100% - ".concat(n.height,"px - ").concat(c.height,")"),width:"100%"},m),(0,e.jsxs)("div",i({className:"para-container trb "+d},{children:[(0,e.jsx)("div",i({className:"para-container-top",style:n},{children:u}),void 0),(0,e.jsx)("div",i({className:"para-container-right",style:o},{children:b}),void 0),(0,e.jsx)("div",i({className:"para-container-bottom",style:c},{children:j}),void 0)]}),void 0)}return(0,e.jsx)("div",{children:"Error Position"},void 0)}),[O,d])};a.default=o}(),a}()}));
|