@para-ui/core 3.0.111-rc → 3.0.112
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 +9 -5
- package/AutoTips/index.js +11 -4
- package/Breadcrumbs/index.js +11 -7
- package/Button/index.js +12 -8
- package/ButtonGroup/index.js +12 -8
- package/Carousel/index.js +8 -4
- package/Cascader/index.js +11 -7
- package/Checkbox/index.js +8 -4
- package/CheckboxGroup/index.js +8 -4
- package/Collapse/index.js +5 -1
- package/CollapseBox/index.js +8 -4
- package/CollapseLayout/index.js +10 -6
- package/ColorPicker/index.js +2 -0
- package/ComboSelect/index.js +18 -14
- package/Container/index.js +5 -1
- package/DatePicker/index.js +14 -10
- package/Desktop/index.js +14 -10
- package/DragVerify/index.js +10 -6
- package/Drawer/index.js +12 -8
- package/Dropdown/index.js +4 -3
- package/DynamicMultiBox/index.js +19 -15
- package/Empty/index.js +7 -3
- package/Form/index.js +16 -15
- package/FormItem/index.js +16 -15
- package/FunctionModal/index.js +15 -14
- package/GlobalContext/index.js +3 -3
- package/Help/index.js +8 -4
- package/HelperText/index.js +5 -1
- package/InputLang/index.js +15 -11
- package/InputNumber/index.js +8 -4
- package/Label/index.js +8 -4
- package/Loading/index.js +5 -1
- package/Menu/index.js +9 -5
- package/Message/index.js +8 -4
- package/Modal/index.js +17 -10
- package/MultiBox/index.js +14 -10
- package/Notification/index.js +7 -3
- package/OperateBtn/index.js +13 -9
- package/PageHeader/index.js +13 -9
- package/Pagination/index.js +15 -11
- package/ParauiProvider/index.js +7 -3
- package/PasswordRules/index.js +7 -3
- package/PopConfirm/index.js +12 -8
- package/Popover/index.js +9 -5
- package/Progress/index.js +6 -2
- package/Querying/index.js +7 -3
- package/README.md +5 -0
- package/Radio/index.js +8 -4
- package/RadioGroup/index.js +8 -4
- package/Search/index.js +13 -9
- package/Select/index.js +15 -11
- package/SelectInput/index.js +12 -11
- package/Selector/index.js +24 -11
- package/SelectorPicker/index.js +16 -12
- package/SingleBox/index.js +14 -10
- package/Slider/index.js +10 -6
- package/Split/index.js +8 -4
- package/Status/index.js +5 -1
- package/Stepper/index.js +7 -3
- package/Styles/theme.scss +69 -1
- package/Switch/index.js +10 -6
- package/Table/index.js +37 -12
- package/Tabs/index.js +13 -9
- package/Tag/index.js +11 -7
- package/TextEditor/index.js +12 -5
- package/TextField/index.js +12 -8
- package/TimePicker/index.js +11 -10
- package/Timeline/index.js +8 -4
- package/Title/index.js +5 -1
- package/ToggleButton/index.js +13 -9
- package/Tooltip/index.js +8 -4
- package/Transfer/index.js +17 -13
- package/Tree/index.js +13 -12
- package/Upload/index.js +28 -12
- package/_verture/{defineProperty-a3595bb4.js → defineProperty-62acccfc.js} +1 -1
- package/_verture/{index-1e744dcd.js → index-3414a559.js} +11 -4
- package/_verture/{closestPolyfill-230b7b1c.js → index-48dc6207.js} +15 -8
- package/_verture/{index-4ee4e41a.js → index-77f9e0fb.js} +6 -2
- package/_verture/index-a369ca3f.js +4 -0
- package/_verture/{intl-e0637ffc.js → intl-4a9f1b44.js} +1 -1
- package/_verture/{modalContext-7312fb44.js → modalContext-305f73f4.js} +8 -4
- package/_verture/{slicedToArray-e838a33c.js → slicedToArray-76060636.js} +1 -1
- package/_verture/style-inject.es-300983ab.js +28 -0
- package/_verture/{toConsumableArray-037466a3.js → toConsumableArray-81040c9e.js} +1 -1
- package/_verture/{utils-1b82eac1.js → utils-1ffeadec.js} +1 -1
- package/index.d.ts +2 -0
- package/index.js +23 -20
- package/locale/en-US.d.ts +165 -0
- package/locale/index.d.ts +331 -0
- package/locale/index.js +336 -0
- package/locale/zh-CN.d.ts +165 -0
- package/package.json +1 -4
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +1 -1
- package/umd/ButtonGroup.js +1 -1
- package/umd/Checkbox.js +1 -1
- package/umd/CheckboxGroup.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ComboSelect.js +1 -1
- package/umd/DatePicker.js +1 -1
- package/umd/Desktop.js +1 -1
- package/umd/DragVerify.js +1 -1
- package/umd/Drawer.js +1 -1
- package/umd/DynamicMultiBox.js +1 -1
- package/umd/Empty.js +1 -1
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/umd/FunctionModal.js +1 -1
- package/umd/Help.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/InputNumber.js +1 -1
- package/umd/Label.js +1 -1
- package/umd/Menu.js +3 -3
- package/umd/Message.js +1 -1
- package/umd/Modal.js +1 -1
- package/umd/MultiBox.js +1 -1
- package/umd/Notification.js +1 -1
- package/umd/OperateBtn.js +1 -1
- package/umd/PageHeader.js +7 -7
- package/umd/Pagination.js +4 -4
- package/umd/PopConfirm.js +1 -1
- package/umd/Progress.js +1 -1
- package/umd/Radio.js +1 -1
- package/umd/RadioGroup.js +1 -1
- package/umd/Search.js +1 -1
- package/umd/Select.js +1 -1
- package/umd/SelectInput.js +1 -1
- package/umd/Selector.js +1 -1
- package/umd/SelectorPicker.js +1 -1
- package/umd/SingleBox.js +1 -1
- package/umd/Slider.js +1 -1
- package/umd/Stepper.js +4 -4
- package/umd/Switch.js +4 -4
- package/umd/Table.js +1 -1
- package/umd/Tabs.js +1 -1
- package/umd/Tag.js +1 -1
- package/umd/TextEditor.js +1 -1
- package/umd/TextField.js +1 -1
- package/umd/TimePicker.js +1 -1
- package/umd/Timeline.js +1 -1
- package/umd/Title.js +1 -1
- package/umd/ToggleButton.js +1 -1
- package/umd/Transfer.js +1 -1
- package/umd/Tree.js +1 -1
- package/umd/Upload.js +1 -1
- package/umd/locale.js +1 -0
- package/Styles/theme/theme-api.scss +0 -75
- package/Styles/theme/theme-default.scss +0 -74
- package/Styles/theme/theme-shrcb.scss +0 -80
- package/_verture/closestPolyfill-0ea0e7a5.js +0 -1354
- package/_verture/constant-d26faf32.js +0 -10
- package/_verture/defineProperty-d7016ad3.js +0 -34
- package/_verture/index-59046762.js +0 -232
- package/_verture/index-66004ebf.js +0 -757
- package/_verture/index-eefd3ff1.js +0 -18
- package/_verture/index-fe55d90e.js +0 -340
- package/_verture/intl-638e7f5e.js +0 -81
- package/_verture/modalContext-762c9eb8.js +0 -197
- package/_verture/slicedToArray-cf682b7d.js +0 -43
- package/_verture/sortable.esm-d3f0b100.js +0 -3791
- package/_verture/toConsumableArray-2f4549d3.js +0 -19
- package/_verture/tslib.es6-9e8a62ad.js +0 -38
- package/_verture/typeof-ef74f13b.js +0 -11
- package/_verture/unsupportedIterableToArray-bd7e0e01.js +0 -16
- package/_verture/useFormatMessage-e3507273.js +0 -20
- package/_verture/useGlobalProps-c2be96c7.js +0 -11
- package/_verture/usePopupContainer-dde75227.js +0 -68
- package/_verture/util-9d3101fc.js +0 -18
- package/_verture/utils-cc6f5f94.js +0 -92
- package/theme/theme-shrcb.css +0 -14622
- package/theme/theme.css +0 -15018
- /package/_verture/{constant-ce36e642.js → constant-66aa48a1.js} +0 -0
- /package/_verture/{index-a055cc71.js → index-65bbd1e4.js} +0 -0
- /package/_verture/{index-67a00291.js → index-beef914f.js} +0 -0
- /package/_verture/{sortable.esm-5dbbc690.js → sortable.esm-49896035.js} +0 -0
- /package/_verture/{tslib.es6-44149323.js → tslib.es6-55ed4bd2.js} +0 -0
- /package/_verture/{typeof-c4ef74bc.js → typeof-498dd2b1.js} +0 -0
- /package/_verture/{unsupportedIterableToArray-6655197b.js → unsupportedIterableToArray-cb478f24.js} +0 -0
- /package/_verture/{useFormatMessage-8394ec71.js → useFormatMessage-703f8b20.js} +0 -0
- /package/_verture/{useGlobalProps-929e5233.js → useGlobalProps-1b846a65.js} +0 -0
- /package/_verture/{usePopupContainer-6fa1cc58.js → usePopupContainer-87febeb9.js} +0 -0
- /package/_verture/{util-8a7a5c8d.js → util-7e1fb1e2.js} +0 -0
package/umd/CollapseLayout.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
!function(t,
|
|
1
|
+
!function(t,a){"object"==typeof exports&&"object"==typeof module?module.exports=a(require("react")):"function"==typeof define&&define.amd?define(["react"],a):"object"==typeof exports?exports.ParaUI=a(require("react")):t.ParaUI=a(t.react)}(self,(function(t){return function(){var a={59116:function(t,a,e){(a=e(23645)(!1)).push([t.id,'.paraui-v3-collapse-layout{height:100%;width:100%;position:relative;overflow:hidden;height:100%;width:100%;position:relative;overflow:hidden}.paraui-v3-collapse-layout>.collapse-layout-click>.collapse-layout-icon-transform-top{transform:rotate(90deg)}.paraui-v3-collapse-layout>.collapse-layout-click>.collapse-layout-icon-transform-bottom{transform:rotate(-90deg)}.paraui-v3-collapse-layout>.collapse-layout-click>.collapse-layout-icon-transform-right{transform:rotate(180deg)}.paraui-v3-collapse-layout>.collapse-layout-display{overflow:hidden}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-click span,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-click span,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-click span,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-click span{font-size:12px;font-weight:400;text-align:center;color:#3666d6}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right>.collapse-layout-click{position:absolute;top:50%;left:"";width:20px;height:72px;background:rgba(171,176,185,.12);text-align:center;cursor:pointer;margin-top:-36px;z-index:1;display:flex;justify-content:center;padding:2px;transition-property:right;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-delay:0ms;right:0px;border-radius:4px 0 0 4px;border-right:1px solid #3666d6}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right>.collapse-layout-display>.collapse-layout-display-shadow{transition-property:margin-right;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-delay:0ms}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left>.collapse-layout-click{position:absolute;top:50%;left:0;width:20px;height:72px;background:rgba(171,176,185,.12);text-align:center;cursor:pointer;margin-top:-36px;z-index:1;display:flex;justify-content:center;padding:2px;transition-property:left;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-delay:0ms;border-left:1px solid #3666d6;border-radius:0 4px 4px 0}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left>.collapse-layout-display>.collapse-layout-display-shadow{transition-property:margin-left;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-delay:0ms}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left>div,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right>div{display:inline-block;vertical-align:middle;height:100%;position:relative}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left>.collapse-layout-display>.collapse-layout-display-shadow,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right>.collapse-layout-display>.collapse-layout-display-shadow{height:100%}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left>.collapse-layout-display,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left>.collapse-layout-default,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right>.collapse-layout-display,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right>.collapse-layout-default{transition:width}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left>.collapse-layout-click,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right>.collapse-layout-click{flex-direction:column}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top>.collapse-layout-click{position:absolute;top:0;left:50%;width:72px;height:20px;background:rgba(171,176,185,.12);text-align:center;cursor:pointer;margin-top:0;z-index:1;display:flex;justify-content:center;padding:2px;transition-property:top;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-delay:0ms;margin-left:-36px;border-top:1px solid #3666d6;border-radius:0 0 4px 4px}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top>.collapse-layout-display>.collapse-layout-display-shadow{transition-property:margin-top}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom>.collapse-layout-click{position:absolute;top:"";left:50%;width:72px;height:20px;background:rgba(171,176,185,.12);text-align:center;cursor:pointer;margin-top:0;z-index:1;display:flex;justify-content:center;padding:2px;transition-property:bottom;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-delay:0ms;margin-left:-36px;bottom:0px;border-bottom:1px solid #3666d6;border-radius:4px 4px 0 0}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom>.collapse-layout-display>.collapse-layout-display-shadow{transition-property:margin-bottom;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-delay:0ms}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top>.collapse-layout-display,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top>.collapse-layout-default,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom>.collapse-layout-display,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom>.collapse-layout-default{transition-property:height;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-delay:0ms}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top>.collapse-layout-display>.collapse-layout-display-shadow,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom>.collapse-layout-display>.collapse-layout-display-shadow{width:100%}.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top>div,.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom>div{display:block;width:100%;position:relative}',""]),t.exports=a},23645:function(t){"use strict";t.exports=function(t){var a=[];return a.toString=function(){return this.map((function(a){var e=function(t,a){var e=t[1]||"",o=t[3];if(!o)return e;if(a&&"function"==typeof btoa){var r=(l=o,i=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(c," */")),n=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[e].concat(n).concat([r]).join("\n")}var l,i,c;return[e].join("\n")}(a,t);return a[2]?"@media ".concat(a[2]," {").concat(e,"}"):e})).join("")},a.i=function(t,e,o){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var n=0;n<this.length;n++){var l=this[n][0];null!=l&&(r[l]=!0)}for(var i=0;i<t.length;i++){var c=[].concat(t[i]);o&&r[c[0]]||(e&&(c[2]?c[2]="".concat(e," and ").concat(c[2]):c[2]=e),a.push(c))}},a}},27418:function(t){"use strict";
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/var
|
|
6
|
+
*/var a=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var a={},e=0;e<10;e++)a["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(a).map((function(t){return a[t]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,r){for(var n,l,i=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))e.call(n,s)&&(i[s]=n[s]);if(a){l=a(n);for(var u=0;u<l.length;u++)o.call(n,l[u])&&(i[l[u]]=n[l[u]])}}return i}},75251:function(t,a,e){"use strict";
|
|
7
7
|
/** @license React v17.0.2
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
9
9
|
*
|
|
@@ -11,7 +11,7 @@ object-assign
|
|
|
11
11
|
*
|
|
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
|
+
*/e(27418);var o=e(8156),r=60103;if(a.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;r=n("react.element"),a.Fragment=n("react.fragment")}var l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(t,a,e){var o,n={},s=null,u=null;for(o in void 0!==e&&(s=""+e),void 0!==a.key&&(s=""+a.key),void 0!==a.ref&&(u=a.ref),a)i.call(a,o)&&!c.hasOwnProperty(o)&&(n[o]=a[o]);if(t&&t.defaultProps)for(o in a=t.defaultProps)void 0===n[o]&&(n[o]=a[o]);return{$$typeof:r,type:t,key:s,ref:u,props:n,_owner:l.current}}a.jsx=s,a.jsxs=s},85893:function(t,a,e){"use strict";t.exports=e(75251)},14944:function(t,a,e){var o=e(93379),r=e(59116);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.id,r,""]]);var n={insert:"head",singleton:!1};o(r,n);t.exports=r.locals||{}},93379:function(t,a,e){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},n=function(){var t={};return function(a){if(void 0===t[a]){var e=document.querySelector(a);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[a]=e}return t[a]}}(),l=[];function i(t){for(var a=-1,e=0;e<l.length;e++)if(l[e].identifier===t){a=e;break}return a}function c(t,a){for(var e={},o=[],r=0;r<t.length;r++){var n=t[r],c=a.base?n[0]+a.base:n[0],s=e[c]||0,u="".concat(c," ").concat(s);e[c]=s+1;var p=i(u),d={css:n[1],media:n[2],sourceMap:n[3]};-1!==p?(l[p].references++,l[p].updater(d)):l.push({identifier:u,updater:m(d,a),references:1}),o.push(u)}return o}function s(t){var a=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var r=e.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(t){a.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(a);else{var l=n(t.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(a)}return a}var u,p=(u=[],function(t,a){return u[t]=a,u.filter(Boolean).join("\n")});function d(t,a,e,o){var r=e?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=p(a,r);else{var n=document.createTextNode(r),l=t.childNodes;l[a]&&t.removeChild(l[a]),l.length?t.insertBefore(n,l[a]):t.appendChild(n)}}function y(t,a,e){var o=e.css,r=e.media,n=e.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var f=null,v=0;function m(t,a){var e,o,r;if(a.singleton){var n=v++;e=f||(f=s(a)),o=d.bind(null,e,n,!1),r=d.bind(null,e,n,!0)}else e=s(a),o=y.bind(null,e,a),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)};return o(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;o(t=a)}else r()}}t.exports=function(t,a){(a=a||{}).singleton||"boolean"==typeof a.singleton||(a.singleton=r());var e=c(t=t||[],a);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<e.length;o++){var r=i(e[o]);l[r].references--}for(var n=c(t,a),s=0;s<e.length;s++){var u=i(e[s]);0===l[u].references&&(l[u].updater(),l.splice(u,1))}e=n}}}},8156:function(a){"use strict";a.exports=t}},e={};function o(t){var r=e[t];if(void 0!==r)return r.exports;var n=e[t]={id:t,exports:{}};return a[t](n,n.exports,o),n.exports}o.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(a,{a:a}),a},o.d=function(t,a){for(var e in a)o.o(a,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:a[e]})},o.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nc=void 0;var r={};return function(){"use strict";o.r(r),o.d(r,{default:function(){return f}});var t=o(8156),a=o.n(t),e=o(85893);!function(t,a){void 0===a&&(a={});var e=a.insertAt;if(t&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===e&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}('@charset "UTF-8";\n/**\n* @author Hanz\n* @date 2021/8/25 下午3:16\n* @description icons scss\n*/\n.paraui-icon {\n width: 1em;\n height: 1em;\n fill: currentColor;\n display: inline-block;\n user-select: none;\n flex-shrink: 0;\n}\n.paraui-icon-primary {\n color: #3666d6;\n}\n.paraui-icon-secondary {\n color: #3666d6;\n}\n.paraui-icon-thirdary {\n color: #3666d6;\n}\n.paraui-icon-small {\n font-size: 16px;\n}\n.paraui-icon-medium {\n font-size: 18px;\n}\n.paraui-icon-large {\n font-size: 20px;\n}');var n=function(t){var a,o,r=t.path,n=t.className,l=t.color,i=void 0===l?"primary":l,c=t.size,s=void 0===c?"small":c,u=t.dataName,p=void 0===u?"":u,d=t.style,y=
|
|
15
15
|
/*! *****************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
17
17
|
|
|
@@ -26,4 +26,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
26
26
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
27
|
PERFORMANCE OF THIS SOFTWARE.
|
|
28
28
|
***************************************************************************** */
|
|
29
|
-
function(t,
|
|
29
|
+
function(t,a){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&a.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)a.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(e[o[r]]=t[o[r]])}return e}(t,["path","className","color","size","dataName","style"]);return(0,e.jsx)("svg",Object.assign({className:(o="paraui-icon",o+=" svg-icon",n&&(o+=" "+n),"primary"!==i&&"secondary"!==i&&"thirdary"!==i||(o+=" paraui-icon-"+i),s&&(o+=" paraui-icon-"+s),o),viewBox:"0 0 1024 1024","data-name":p,style:(a=Object.assign({},d),i&&"primary"!==i&&"secondary"!==i&&"thirdary"!==i&&(a.color=i),a)},y,{children:r}))},l=function(t){return(0,e.jsx)(n,Object.assign({dataName:"DoubleLeft",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M547.242667 813.696a42.666667 42.666667 0 0 0-12.501334-30.165333l-271.530666-271.573334 271.530666-271.488a42.666667 42.666667 0 0 0-60.330666-60.330666l-301.696 301.653333a42.666667 42.666667 0 0 0 0 60.330667l301.696 301.738666a42.666667 42.666667 0 0 0 72.832-30.165333z"}),(0,e.jsx)("path",{d:"M863.744 813.696a42.666667 42.666667 0 0 0-12.501333-30.165333l-271.530667-271.573334 271.530667-271.488a42.666667 42.666667 0 0 0-60.330667-60.330666l-301.696 301.653333a42.666667 42.666667 0 0 0 0 60.330667l301.696 301.738666a42.666667 42.666667 0 0 0 72.832-30.165333z"})]})},t))},i=function(t){return(0,e.jsx)(n,Object.assign({dataName:"DoubleRight",path:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M476.757333 813.696a42.666667 42.666667 0 0 1 12.501334-30.165333l271.530666-271.573334-271.530666-271.488a42.666667 42.666667 0 0 1 60.330666-60.330666l301.696 301.653333a42.666667 42.666667 0 0 1 0 60.373333l-301.696 301.696a42.666667 42.666667 0 0 1-72.832-30.165333z"}),(0,e.jsx)("path",{d:"M160.256 813.696a42.666667 42.666667 0 0 1 12.501333-30.165333l271.530667-271.573334-271.530667-271.488a42.666667 42.666667 0 0 1 60.330667-60.330666l301.696 301.653333a42.666667 42.666667 0 0 1 0 60.373333l-301.696 301.696a42.666667 42.666667 0 0 1-72.832-30.165333z"})]})},t))},c="paraui-v3";function s(t){var a,e,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(a=0;a<t.length;a++)t[a]&&(e=s(t[a]))&&(o&&(o+=" "),o+=e);else for(a in t)t[a]&&(o&&(o+=" "),o+=a);return o}function u(){for(var t,a,e=0,o="";e<arguments.length;)(t=arguments[e++])&&(a=s(t))&&(o&&(o+=" "),o+=a);return o}o(14944);function p(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,o=new Array(a);e<a;e++)o[e]=t[e];return o}function d(t,a,e){return a in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}function y(t,a){return function(t){if(Array.isArray(t))return t}(t)||function(t,a){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var o,r,n=[],l=!0,i=!1;try{for(e=e.call(t);!(l=(o=e.next()).done)&&(n.push(o.value),!a||n.length!==a);l=!0);}catch(t){i=!0,r=t}finally{try{l||null==e.return||e.return()}finally{if(i)throw r}}return n}}(t,a)||function(t,a){if(!t)return;if("string"==typeof t)return p(t,a);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return p(t,a)}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f=function(e){var o,r,n,s=e.type,p=void 0===s?"left":s,f=e.showLabel,v=e.open,m=void 0!==v&&v,h=e.hideLabel,b=e.spacing,g=void 0===b?20:b,x=e.zoomLength,j=void 0===x?0:x,w=e.unit,O=void 0===w?"px":w,k=e.style,S=e.className,N=void 0===S?"":S,C=e.onClickBtn,E=(0,t.useRef)(null),z=(o=E.current)?function(t){if(!t)return 0;var a=t/36;return Math.round(10*(4+15*Math.pow(a,.25)+a/5))}(o.getBoundingClientRect().width):0,_=y((0,t.useState)(),2),M=_[0],P=_[1],T={layout:{left:["display","default"],right:["default","display"],top:["display","default"],bottom:["default","display"]}},A=function(t){return t.slice(0,1).toUpperCase()+t.slice(1)},I=function(){var t="width";return"top"!==p&&"bottom"!==p||(t="height"),t},R=function(){var t={},a="margin".concat(A(p));return t[I()]=j+O,t[a]=(M?0:j)+O,t.transitionDuration=z+"ms",t},L=function(){var t={},a=I(),e=M?j:0;return t[a]="calc(100% - ".concat(e+g).concat(O),t["margin".concat(A(p))]=g+O,t.transitionDuration=z+"ms",t},U=function(){P(!M),C&&C(!M)};return(0,t.useEffect)((function(){P(m)}),[m]),a().createElement("div",{className:u("".concat(c,"-collapse-layout"),"".concat(c,"-collapse-layout-").concat(M),"".concat(c,"-collapse-layout-").concat(p),"".concat(c,"-collapse-layout-").concat(p,"-").concat(M),N),style:k},(n=M?f:h,a().createElement("div",{className:"collapse-layout-click collapse-layout-click-label-".concat(!!n),style:(r={},d(r,p,"".concat(M?j:0).concat(O)),d(r,"transitionDuration",z+"ms"),r),onClick:U},n&&a().createElement("span",null,n),M?a().createElement(l,{className:"collapse-layout-icon-transform-".concat(p)}):a().createElement(i,{className:"collapse-layout-icon-transform-".concat(p)}))),T.layout[p].map((function(t,o){return"display"===t?a().createElement("div",{key:o,className:"collapse-layout-display",style:(r={},n=(M?j:0)+O,r[I()]=n,r.transitionDuration=z+"ms",r)},a().createElement("div",{className:"collapse-layout-display-shadow",style:R(),ref:E},e.displayContent)):a().createElement("div",{key:o,className:"collapse-layout-default",style:L()},e.defaultContent);var r,n})))}}(),r}()}));
|