@para-ui/core 2.0.0 → 2.0.4
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 +4 -3
- package/AutoTips/index.js +4 -3
- package/Breadcrumbs/index.js +4 -3
- package/Button/index.d.ts +4 -4
- package/Button/index.js +5 -3
- package/ButtonGroup/index.js +5 -3
- package/Cascader/index.js +4 -16
- package/Checkbox/index.js +4 -3
- package/CheckboxGroup/index.js +4 -3
- package/ColorPicker/index.js +1 -1
- package/ComboSelect/index.js +5 -8
- package/ComboSelect/interface.d.ts +14 -8
- package/ComboSelect/utils.d.ts +1 -0
- package/Container/index.js +4 -3
- package/DatePicker/index.js +3 -3
- package/Desktop/index.js +5 -3
- package/Drawer/index.js +4 -8
- package/Form/index.js +5 -3
- package/FormItem/index.js +5 -3
- package/FunctionModal/index.js +5 -3
- package/Help/index.js +2 -2
- package/IconList/index.js +4 -3
- package/InputLang/index.js +5 -3
- package/InputNumber/index.js +5 -3
- package/Menu/index.js +5 -3
- package/Message/index.js +4 -3
- package/Modal/index.js +5 -3
- package/MultiBox/index.js +5 -3
- package/PageHeader/index.js +5 -3
- package/PageHeader/interface.d.ts +2 -0
- package/Pagination/index.js +5 -8
- package/ParauiProvider/index.d.ts +1 -0
- package/ParauiProvider/index.js +2 -2
- package/PopConfirm/index.d.ts +2 -0
- package/PopConfirm/index.js +5 -3
- package/Popover/index.js +2 -2
- package/Radio/index.js +4 -3
- package/RadioGroup/index.js +4 -3
- package/Search/index.js +5 -3
- package/Select/index.js +5 -3
- package/SingleBox/index.js +5 -3
- package/Slider/index.js +4 -3
- package/Split/index.js +4 -3
- package/Stepper/index.js +4 -3
- package/Styles/index.scss +6 -0
- package/Styles/theme.scss +5 -0
- package/Switch/index.js +4 -3
- package/Table/index.js +5 -8
- package/Table/tableBodyInterface.d.ts +2 -0
- package/Tabs/index.js +4 -3
- package/TextField/index.js +5 -3
- package/TimePicker/index.js +3 -3
- package/Timeline/index.js +4 -3
- package/ToggleButton/index.js +5 -3
- package/Tooltip/index.js +4 -3
- package/Transfer/index.js +5 -3
- package/Tree/index.js +5 -3
- package/Tree/interface.d.ts +2 -0
- package/Tree/utils/tools.d.ts +2 -1
- package/Upload/index.js +5 -3
- package/index.js +3 -16
- package/package.json +3 -3
- package/style.css +100 -0
package/Switch/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
!function(e
|
|
1
|
+
!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@para-ui/icons/LoadingF"),require("rc-switch"),require("react")):"function"==typeof define&&define.amd?define(["@para-ui/icons/LoadingF","rc-switch","react"],e):"object"==typeof exports?exports.ParaUI=e(require("@para-ui/icons/LoadingF"),require("rc-switch"),require("react")):r.ParaUI=e(r["@para-ui/icons/LoadingF"],r["rc-switch"],r.react)}(self,(function(r,e,t){return function(){"use strict";var n,o={4927:function(r,e,t){function n(r){var e,t,o="";if("string"==typeof r||"number"==typeof r)o+=r;else if("object"==typeof r)if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(t=n(r[e]))&&(o&&(o+=" "),o+=t);else for(e in r)r[e]&&(o&&(o+=" "),o+=e);return o}function o(){for(var r,e,t=0,o="";t<arguments.length;)(r=arguments[t++])&&(e=n(r))&&(o&&(o+=" "),o+=e);return o}t.d(e,{Z:function(){return o}})},4126:function(r){
|
|
2
2
|
/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/
|
|
6
|
+
*/
|
|
7
|
+
var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}r.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(r){n[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(r){return!1}}()?Object.assign:function(r,i){for(var a,c,u=o(r),f=1;f<arguments.length;f++){for(var s in a=Object(arguments[f]))t.call(a,s)&&(u[s]=a[s]);if(e){c=e(a);for(var l=0;l<c.length;l++)n.call(a,c[l])&&(u[c[l]]=a[c[l]])}}return u}},9524:function(r,e,t){
|
|
7
8
|
/** @license React v17.0.2
|
|
8
9
|
* react-jsx-runtime.production.min.js
|
|
9
10
|
*
|
|
@@ -12,4 +13,4 @@ object-assign
|
|
|
12
13
|
* This source code is licensed under the MIT license found in the
|
|
13
14
|
* LICENSE file in the root directory of this source tree.
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
t(4126);var n=t(9297),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function f(r,e,t){var n,i={},f=null,s=null;for(n in void 0!==t&&(f=""+t),void 0!==e.key&&(f=""+e.key),void 0!==e.ref&&(s=e.ref),e)c.call(e,n)&&!u.hasOwnProperty(n)&&(i[n]=e[n]);if(r&&r.defaultProps)for(n in e=r.defaultProps)void 0===i[n]&&(i[n]=e[n]);return{$$typeof:o,type:r,key:f,ref:s,props:i,_owner:a.current}}e.jsx=f},7712:function(r,e,t){r.exports=t(9524)},5962:function(r,e,t){t.r(e),t.d(e,{Switch:function(){return l}});var n=t(7712),o=t(4555),i=t.n(o),a=t(4927),c=t(1102),u=t.n(c),f=function(){return f=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},f.apply(this,arguments)},s=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},l=function(r){r.compact,r.size;var e=r.loading,t=r.disabled,o=r.className,c=s(r,["compact","size","loading","disabled","className"]),l=(0,a.Z)("paraui-switch",{"paraui-switch-loading":e},o),p=(0,n.jsx)("div",f({className:"paraui-switch-handle"},{children:e&&(0,n.jsx)(u(),{className:"paraui-switch-loading-icon"},void 0)}),void 0);return(0,n.jsx)(i(),f({},c,{prefixCls:"paraui-switch",className:l,disabled:t||e,loadingIcon:p}),void 0)};e.default=l},1102:function(e){e.exports=r},4555:function(r){r.exports=e},9297:function(r){r.exports=t}},i={};function a(r){var e=i[r];if(void 0!==e)return e.exports;var t=i[r]={exports:{}};return o[r](t,t.exports,a),t.exports}a.m=o,n=[],a.O=function(r,e,t,o){if(!e){var i=1/0;for(f=0;f<n.length;f++){e=n[f][0],t=n[f][1],o=n[f][2];for(var c=!0,u=0;u<e.length;u++)(!1&o||i>=o)&&Object.keys(a.O).every((function(r){return a.O[r](e[u])}))?e.splice(u--,1):(c=!1,o<i&&(i=o));c&&(n.splice(f--,1),r=t())}return r}o=o||0;for(var f=n.length;f>0&&n[f-1][2]>o;f--)n[f]=n[f-1];n[f]=[e,t,o]},a.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return a.d(e,{a:e}),e},a.d=function(r,e){for(var t in e)a.o(e,t)&&!a.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},a.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},a.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},function(){var r={6195:0,9296:0};a.O.j=function(e){return 0===r[e]};var e=function(e,t){var n,o,i=t[0],c=t[1],u=t[2],f=0;for(n in c)a.o(c,n)&&(a.m[n]=c[n]);if(u)var s=u(a);for(e&&e(t);f<i.length;f++)o=i[f],a.o(r,o)&&r[o]&&r[o][0](),r[i[f]]=0;return a.O(s)},t=self.webpackChunkParaUI=self.webpackChunkParaUI||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))}();var c=a.O(void 0,[9296],(function(){return a(5962)}));return c=a.O(c)}()}));
|