@para-ui/core 1.1.29 → 1.1.33
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/AutoTips/index.js +1 -1
- package/Button/index.js +1 -1
- package/ButtonGroup/index.js +1 -1
- package/Checkbox/index.js +1 -1
- package/CheckboxGroup/index.js +1 -1
- package/ComboSelect/index.js +2 -2
- package/ComboSelect/interface.d.ts +3 -1
- package/Container/index.js +1 -1
- package/DatePicker/index.js +3 -3
- package/Desktop/index.js +1 -1
- package/Form/index.js +1 -1
- package/FormItem/index.js +1 -1
- package/FunctionModal/index.js +1 -1
- package/IconList/index.js +3 -3
- package/InputLang/index.js +1 -1
- package/InputNumber/index.js +1 -1
- package/Menu/index.js +1 -1
- package/Message/index.js +3 -3
- package/Modal/index.js +1 -1
- package/MultiBox/index.js +1 -1
- package/Pagination/index.js +1 -1
- package/ParauiProvider/index.js +1 -1
- package/PopConfirm/index.js +1 -1
- package/Popover/index.js +1 -1
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +1 -1
- package/Search/index.js +3 -3
- package/Select/index.js +1 -1
- package/SingleBox/index.js +1 -1
- package/Stepper/index.js +3 -3
- package/Switch/index.js +1 -1
- package/Table/index.js +1 -1
- package/Tabs/index.js +1 -1
- package/TextField/index.js +1 -1
- package/TimePicker/index.js +3 -3
- package/Timeline/index.js +1 -1
- package/Tree/index.js +1 -1
- package/Upload/index.d.ts +1 -1
- package/Upload/index.js +1 -1
- package/index.js +3 -3
- package/package.json +1 -1
package/AutoTips/index.js
CHANGED
|
@@ -13,4 +13,4 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.pr
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
r(4126);var n=r(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(e,t,r){var n,i={},f=null,l=null;for(n in void 0!==r&&(f=""+r),void 0!==t.key&&(f=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,n)&&!u.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:o,type:e,key:f,ref:l,props:i,_owner:a.current}}t.jsx=f},7712:function(e,t,r){e.exports=r(9524)},
|
|
16
|
+
r(4126);var n=r(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(e,t,r){var n,i={},f=null,l=null;for(n in void 0!==r&&(f=""+r),void 0!==t.key&&(f=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,n)&&!u.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:o,type:e,key:f,ref:l,props:i,_owner:a.current}}t.jsx=f},7712:function(e,t,r){e.exports=r(9524)},5415:function(e,t){var r={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};t.Z=function(){return r}},1731:function(e){e.exports=t},8604:function(e){e.exports=r},9297:function(t){t.exports=e}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,i),r.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.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(){i.r(a);var e=i(7712),t=i(9297),r=i(1731),n=i(8604),o=i(5415),c=function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)},u=((0,o.Z)(),(0,n.makeStyles)((function(e){return(0,n.createStyles)({"auto-tips":{maxWidth:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > .auto-tips-content":{display:"inline",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})})));a.default=function(n){var o=n.children,i=n.placement,a=void 0===i?"bottom-start":i,f=n.tips,l=void 0===f?"":f,s=n.className,p=void 0===s?"":s,d=(0,t.useRef)(),y=u(),F=(0,t.useState)(""),g=F[0],b=F[1];(0,t.useEffect)((function(){b(l)}),[l]);var v;return(0,e.jsx)("div",c({ref:function(e){e&&(d.current=e)},className:(v=y["auto-tips"],v+=" paraui-auto-tips",p&&(v+=" "+p),v),onMouseOver:function(){d.current.scrollWidth>d.current.offsetWidth?b(g||d.current.innerText):b("")}},{children:(0,e.jsx)(r.Tooltip,c({title:g,placement:a},{children:(0,e.jsx)("div",c({className:"auto-tips-content"},{children:o}),void 0)}),void 0)}),void 0)}}(),a}()}));
|
package/Button/index.js
CHANGED
|
@@ -13,4 +13,4 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
n(4126);var r=n(9297),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:a.current}}t.jsx=s},7712:function(e,t,n){e.exports=n(9524)},
|
|
16
|
+
n(4126);var r=n(9297),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:a.current}}t.jsx=s},7712:function(e,t,n){e.exports=n(9524)},5415:function(e,t){var n={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};t.Z=function(){return n}},1731:function(e){e.exports=t},8604:function(e){e.exports=n},1102:function(e){e.exports=r},9297:function(t){t.exports=e}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e](n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return function(){a.r(l);var e=a(7712),t=a(9297),n=a(1731),r=a(8604),o=a(4927),i=a(1102),c=a.n(i),s=a(5415),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)},d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},f=(0,s.Z)(),p=(0,r.makeStyles)((function(e){return(0,r.createStyles)({"@keyframes loadingCircle":{"100%":{transform:"rotate(1turn)"}},radius:{borderRadius:15},btnIcon:{"& .btn-icon":{display:"inline-flex",alignItems:"center"},"& .btn-icon svg":{color:"currentColor"}},outlinedBtn:{"& .btn-icon svg":{color:f.thmemColor.primary},"&:disabled":{"& .btn-icon svg":{color:"currentColor"}}},iconButtonToolTip:{display:"inline-block",cursor:"not-allowed","& .iconButton-disabled":{cursor:"not-allowed",pointerEvents:"none"}},loadingBtn:{position:"relative",pointerEvents:"none","&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,transition:"opacity .2s",pointerEvents:"none"},"& .loading-icon":{animation:"$loadingCircle 1s infinite linear"}}})})),b=(0,r.withStyles)((function(e){return{tooltip:{margin:"6px 0",backgroundColor:f.bgBorderColor.bg4}}}))(n.Tooltip),g=function(r){var i=p(),a=r.radius,l=r.className,s=r.disabled,f=void 0!==s&&s,b=r.children,g=r.startIcon,y=r.endIcon,v=r.loading,m=void 0!==v&&v,F=d(r,["radius","className","disabled","children","startIcon","endIcon","loading"]);"text"===F.variant&&(F.disableRipple=!0);var h=(0,t.useState)(!1),x=h[0],j=h[1];return(0,t.useEffect)((function(){j(!!m)}),[m]),(0,e.jsx)(n.Button,u({disabled:f,className:(0,o.Z)("paraui-button",l,i.btnIcon,a&&i.radius,"outlined"===F.variant&&i.outlinedBtn,x&&i.loadingBtn),startIcon:function(){if(!x)return(0,e.jsx)("span",u({className:"btn-icon"},{children:g}),void 0);if("object"==typeof m){var t=m.delay||0;setTimeout((function(){return j(!1)}),t)}return(0,e.jsx)("span",u({className:"btn-icon loading-icon"},{children:(0,e.jsx)(c(),{},void 0)}),void 0)}(),endIcon:(0,e.jsx)("span",u({className:"btn-icon"},{children:y}),void 0)},F,{children:b}),void 0)};g.IconButton=function(r){var i=p(),a=r.showToolTip,l=void 0===a||a,s=r.toolTipTitle,f=void 0===s?"":s,g=r.children,y=r.className,v=r.disabled,m=void 0!==v&&v,F=r.loading,h=void 0!==F&&F,x=r.TooltipProps,j=d(r,["showToolTip","toolTipTitle","children","className","disabled","loading","TooltipProps"]),O=(0,t.useState)(!1),S=O[0],E=O[1],w=(0,e.jsx)(n.IconButton,u({},j,{disabled:m,disableRipple:!0,className:(0,o.Z)("paraui-icon-button",y,l&&m&&"iconButton-disabled",S&&i.loadingBtn)},{children:function(){if(!S)return g;if("object"==typeof h){var t=h.delay||0;setTimeout((function(){return E(!1)}),t)}return(0,e.jsx)("span",u({className:"loading-icon"},{children:(0,e.jsx)(c(),{},void 0)}),void 0)}()}),void 0);return(0,t.useEffect)((function(){E(!!h)}),[h]),l?(0,e.jsx)(b,u({title:f},x,{children:(0,e.jsx)("span",u({className:(0,o.Z)(m&&i.iconButtonToolTip)},{children:w}),void 0)}),void 0):w},l.default=g}(),l}()}));
|
package/ButtonGroup/index.js
CHANGED
|
@@ -13,4 +13,4 @@ var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.pr
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
e(4126);var t=e(9297),n=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),r.Fragment=i("react.fragment")}var a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function d(o,r,e){var t,i={},d=null,s=null;for(t in void 0!==e&&(d=""+e),void 0!==r.key&&(d=""+r.key),void 0!==r.ref&&(s=r.ref),r)l.call(r,t)&&!c.hasOwnProperty(t)&&(i[t]=r[t]);if(o&&o.defaultProps)for(t in r=o.defaultProps)void 0===i[t]&&(i[t]=r[t]);return{$$typeof:n,type:o,key:d,ref:s,props:i,_owner:a.current}}r.jsx=d,r.jsxs=d},7712:function(o,r,e){o.exports=e(9524)},5794:function(o,r,e){var t=e(7712),n=e(9297),i=e(1731),a=e(8604),l=e(4927),c=e(1102),d=e.n(c),s=e(853),u=function(){return u=Object.assign||function(o){for(var r,e=1,t=arguments.length;e<t;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n]);return o},u.apply(this,arguments)},p=function(o,r){var e={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&r.indexOf(t)<0&&(e[t]=o[t]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(o);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(o,t[n])&&(e[t[n]]=o[t[n]])}return e},f=(0,s.Z)(),b=(0,a.makeStyles)((function(o){return(0,a.createStyles)({"@keyframes loadingCircle":{"100%":{transform:"rotate(1turn)"}},radius:{borderRadius:15},btnIcon:{"& .btn-icon":{display:"inline-flex",alignItems:"center"},"& .btn-icon svg":{color:"currentColor"}},outlinedBtn:{"& .btn-icon svg":{color:f.thmemColor.primary},"&:disabled":{"& .btn-icon svg":{color:"currentColor"}}},iconButtonToolTip:{display:"inline-block",cursor:"not-allowed","& .iconButton-disabled":{cursor:"not-allowed",pointerEvents:"none"}},loadingBtn:{position:"relative",pointerEvents:"none","&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,transition:"opacity .2s",pointerEvents:"none"},"& .loading-icon":{animation:"$loadingCircle 1s infinite linear"}}})})),g=(0,a.withStyles)((function(o){return{tooltip:{margin:"6px 0",backgroundColor:f.bgBorderColor.bg4}}}))(i.Tooltip),h=function(o){var r=b(),e=o.radius,a=o.className,c=o.disabled,s=void 0!==c&&c,f=o.children,g=o.startIcon,h=o.endIcon,v=o.loading,x=void 0!==v&&v,m=p(o,["radius","className","disabled","children","startIcon","endIcon","loading"]);"text"===m.variant&&(m.disableRipple=!0);var y=(0,n.useState)(!1),j=y[0],F=y[1];return(0,n.useEffect)((function(){F(!!x)}),[x]),(0,t.jsx)(i.Button,u({disabled:s,className:(0,l.Z)("paraui-button",a,r.btnIcon,e&&r.radius,"outlined"===m.variant&&r.outlinedBtn,j&&r.loadingBtn),startIcon:function(){if(!j)return(0,t.jsx)("span",u({className:"btn-icon"},{children:g}),void 0);if("object"==typeof x){var o=x.delay||0;setTimeout((function(){return F(!1)}),o)}return(0,t.jsx)("span",u({className:"btn-icon loading-icon"},{children:(0,t.jsx)(d(),{},void 0)}),void 0)}(),endIcon:(0,t.jsx)("span",u({className:"btn-icon"},{children:h}),void 0)},m,{children:f}),void 0)};h.IconButton=function(o){var r=b(),e=o.showToolTip,a=void 0===e||e,c=o.toolTipTitle,s=void 0===c?"":c,f=o.children,h=o.className,v=o.disabled,x=void 0!==v&&v,m=o.loading,y=void 0!==m&&m,j=o.TooltipProps,F=p(o,["showToolTip","toolTipTitle","children","className","disabled","loading","TooltipProps"]),w=(0,n.useState)(!1),S=w[0],C=w[1],O=(0,t.jsx)(i.IconButton,u({},F,{disabled:x,disableRipple:!0,className:(0,l.Z)("paraui-icon-button",h,a&&x&&"iconButton-disabled",S&&r.loadingBtn)},{children:function(){if(!S)return f;if("object"==typeof y){var o=y.delay||0;setTimeout((function(){return C(!1)}),o)}return(0,t.jsx)("span",u({className:"loading-icon"},{children:(0,t.jsx)(d(),{},void 0)}),void 0)}()}),void 0);return(0,n.useEffect)((function(){C(!!y)}),[y]),a?(0,t.jsx)(g,u({title:s},j,{children:(0,t.jsx)("span",u({className:(0,l.Z)(x&&r.iconButtonToolTip)},{children:O}),void 0)}),void 0):O},r.default=h},853:function(o,r){var e={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};r.Z=function(){return e}},1731:function(o){o.exports=r},8604:function(o){o.exports=e},8381:function(o){o.exports=i},2749:function(o){o.exports=t},1102:function(o){o.exports=n},9297:function(r){r.exports=o}},l={};function c(o){var r=l[o];if(void 0!==r)return r.exports;var e=l[o]={exports:{}};return a[o](e,e.exports,c),e.exports}c.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return c.d(r,{a:r}),r},c.d=function(o,r){for(var e in r)c.o(r,e)&&!c.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:r[e]})},c.o=function(o,r){return Object.prototype.hasOwnProperty.call(o,r)},c.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var d={};return function(){c.r(d),c.d(d,{ButtonGroup:function(){return j},default:function(){return w}});var o=c(7712),r=c(1731),e=c(8604),t=c(2749),n=c.n(t),i=c(5794),a=c(9297),l=c(8381),s=c.n(l),u=c(853),p=c(4927),f=function(){return f=Object.assign||function(o){for(var r,e=1,t=arguments.length;e<t;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n]);return o},f.apply(this,arguments)},b=(0,u.Z)(),g=(0,e.makeStyles)((function(o){return(0,e.createStyles)({root:{display:"inline-flex",borderRadius:"4px",boxShadow:b.boxShadow,"& button":{width:"auto",padding:"7px 10px",boxShadow:"none",border:0,"&:hover":{border:0},"&:disabled":{padding:"7px 10px",border:0,"&:hover":{padding:"7px 10px"}},"&.dropDownButton":{minWidth:0,position:"relative","&:before":{content:'""',position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"1px",height:"10px",backgroundColor:b.bgBorderColor.bg1},"& svg":{fontSize:12,color:"currentColor"}}}},split:{},splitButtonMenu:{minWidth:"140px","& li":{height:"30px",padding:"6px 20px",fontSize:b.fontSize,color:b.textColor.secondary,"&:hover":{backgroundColor:b.bgBorderColor.bg2,color:b.thmemColor.primary},"&.selected":{backgroundColor:b.bgBorderColor.bg2,color:b.thmemColor.primary,"&:hover":{backgroundColor:b.bgBorderColor.bg2}}}},popperTop:{marginTop:6},paperShadow:{boxShadow:b.boxShadow}})}));var h=function(){return h=Object.assign||function(o){for(var r,e=1,t=arguments.length;e<t;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n]);return o},h.apply(this,arguments)},v=function(o,r){var e={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&r.indexOf(t)<0&&(e[t]=o[t]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(o);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(o,t[n])&&(e[t[n]]=o[t[n]])}return e},x=(0,u.Z)(),m=(0,e.withStyles)((function(o){return{tooltip:{margin:"6px 0",backgroundColor:x.bgBorderColor.bg4,"& .disabledIcon":{fontSize:12,marginRight:3,color:x.textColor.white},"& .tooltipTitle":{display:"inline-flex",alignItems:"center"}}}}))(r.Tooltip),y=(0,e.makeStyles)((function(o){return(0,e.createStyles)({root:{display:"inline-flex",borderRadius:"4px",boxShadow:x.boxShadow},auto:{boxShadow:"none"},text:{"& > div":{cursor:"not-allowed","&:not(:last-child)":{"& > button":{"&:after":{content:'""',position:"absolute",right:0,width:"1px",height:"10px",backgroundColor:x.bgBorderColor.bg1}}},"& > button":{position:"relative",width:"auto",minWidth:0,padding:"0 10px",boxShadow:"none","&:hover":{color:x.thmemColor.primary},"&:disabled":{pointerEvents:"none","&:hover":{backgroundColor:"transparent",color:x.textColor.thirdary}}}}},icon:{"& > div":{cursor:"not-allowed","&:not(:last-child)":{position:"relative","&:after":{content:'""',position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",width:"1px",height:"10px",backgroundColor:x.bgBorderColor.bg1}},"& > button":{padding:"5px 10px",borderRadius:"4px",color:x.textColor.primary,"&:hover":{backgroundColor:"transparent",color:x.thmemColor.primary},"&:disabled":{pointerEvents:"none","&:hover":{backgroundColor:"transparent",color:x.textColor.thirdary}}}}},iconSplit:{boxShadow:"none","& > div":{cursor:"not-allowed","& > button":{margin:"0 5px",padding:"5px",borderRadius:"4px",boxShadow:x.boxShadow,color:x.textColor.primary,"&:hover":{backgroundColor:"transparent",color:x.thmemColor.primary},"&:disabled":{pointerEvents:"none","&:hover":{backgroundColor:"transparent",color:x.textColor.thirdary}}}}}})})),j=function(e){var t=y(),a=e.mode,l=void 0===a?"text":a,c=e.data,d=void 0===c?[]:c,s=e.className,u=e.showToolTip,f=void 0===u||u,b=e.onClick,g=e.disabled,x=void 0!==g&&g,j=function(o){return function(r){null==b||b(r,o)}},F=function(e){void 0===e&&(e={});var t=e.text,n=e.icon,a=v(e,["text","icon"]);switch(delete e.disabled,l){case"text":return(0,o.jsx)(i.default,h({},a,{onClick:j(e)},{children:t}),void 0);case"icon":case"iconSplit":return(0,o.jsx)(r.IconButton,h({},a,{onClick:j(e)},{children:n}),void 0);default:return null}};return(0,o.jsx)("div",h({className:(0,p.Z)(t.root,t[l],s,"paraui-button-group")},{children:d&&d.length?d.map((function(r,e){var t=r.text,i=r.disabled;void 0===i&&(i=x,r.disabled=x);var a=i?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n(),{className:"disabledIcon"},void 0),t]},void 0):t;return f?(0,o.jsx)(m,h({title:(0,o.jsx)("span",h({className:"tooltipTitle"},{children:a}),void 0)},{children:(0,o.jsx)("div",{children:F(r)},void 0)}),e):(0,o.jsx)("div",{children:F(r)},e)})):null}),void 0)},F=j;F.SplitButton=function(e){var t,n=e.data,l=void 0===n?[]:n,c=e.disabled,d=void 0!==c&&c,u=e.onClick,b=e.className,h=(0,a.useState)(!1),v=h[0],x=h[1],m=(0,a.useRef)(null),y=(0,a.useState)(0),j=y[0],F=y[1],w=g(),S=function(o){m.current&&m.current.contains(o.target)||x(!1)};return(0,o.jsxs)("div",f({className:(0,p.Z)(w.root,b,"paraui-button-group")},{children:[(0,o.jsxs)(r.ButtonGroup,f({ref:m,disabled:d},{children:[(0,o.jsx)(i.default,f({onClick:function(o){null==u||u(o,l[j]||{})}},{children:(null===(t=l[j])||void 0===t?void 0:t.text)||""}),void 0),(0,o.jsx)(i.default,f({onClick:function(){x((function(o){return!o}))},className:"dropDownButton"},{children:(0,o.jsx)(s(),{},void 0)}),void 0)]}),void 0),(0,o.jsx)(r.Popper,f({open:v,anchorEl:m.current,transition:!0,placement:"bottom-end",className:w.popperTop},{children:function(e){var t=e.TransitionProps;e.placement;return(0,o.jsx)(r.Grow,f({},t,{children:(0,o.jsx)(r.Paper,f({elevation:0,className:w.paperShadow},{children:(0,o.jsx)(r.ClickAwayListener,f({onClickAway:S},{children:(0,o.jsx)(r.MenuList,f({className:w.splitButtonMenu},{children:l.map((function(e,t){return(0,o.jsx)(r.MenuItem,f({disabled:e.disabled,selected:t===j,className:t===j?"selected":"",onClick:function(o){return function(o,r){F(r),x(!1)}(0,t)}},{children:e.text||""}),t)}))}),void 0)}),void 0)}),void 0)}),void 0)}}),void 0)]}),void 0)};var w=F}(),d}()}));
|
|
16
|
+
e(4126);var t=e(9297),n=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),r.Fragment=i("react.fragment")}var a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function d(o,r,e){var t,i={},d=null,s=null;for(t in void 0!==e&&(d=""+e),void 0!==r.key&&(d=""+r.key),void 0!==r.ref&&(s=r.ref),r)l.call(r,t)&&!c.hasOwnProperty(t)&&(i[t]=r[t]);if(o&&o.defaultProps)for(t in r=o.defaultProps)void 0===i[t]&&(i[t]=r[t]);return{$$typeof:n,type:o,key:d,ref:s,props:i,_owner:a.current}}r.jsx=d,r.jsxs=d},7712:function(o,r,e){o.exports=e(9524)},36:function(o,r,e){var t=e(7712),n=e(9297),i=e(1731),a=e(8604),l=e(4927),c=e(1102),d=e.n(c),s=e(5415),u=function(){return u=Object.assign||function(o){for(var r,e=1,t=arguments.length;e<t;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n]);return o},u.apply(this,arguments)},p=function(o,r){var e={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&r.indexOf(t)<0&&(e[t]=o[t]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(o);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(o,t[n])&&(e[t[n]]=o[t[n]])}return e},f=(0,s.Z)(),b=(0,a.makeStyles)((function(o){return(0,a.createStyles)({"@keyframes loadingCircle":{"100%":{transform:"rotate(1turn)"}},radius:{borderRadius:15},btnIcon:{"& .btn-icon":{display:"inline-flex",alignItems:"center"},"& .btn-icon svg":{color:"currentColor"}},outlinedBtn:{"& .btn-icon svg":{color:f.thmemColor.primary},"&:disabled":{"& .btn-icon svg":{color:"currentColor"}}},iconButtonToolTip:{display:"inline-block",cursor:"not-allowed","& .iconButton-disabled":{cursor:"not-allowed",pointerEvents:"none"}},loadingBtn:{position:"relative",pointerEvents:"none","&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,transition:"opacity .2s",pointerEvents:"none"},"& .loading-icon":{animation:"$loadingCircle 1s infinite linear"}}})})),g=(0,a.withStyles)((function(o){return{tooltip:{margin:"6px 0",backgroundColor:f.bgBorderColor.bg4}}}))(i.Tooltip),h=function(o){var r=b(),e=o.radius,a=o.className,c=o.disabled,s=void 0!==c&&c,f=o.children,g=o.startIcon,h=o.endIcon,v=o.loading,x=void 0!==v&&v,m=p(o,["radius","className","disabled","children","startIcon","endIcon","loading"]);"text"===m.variant&&(m.disableRipple=!0);var y=(0,n.useState)(!1),j=y[0],F=y[1];return(0,n.useEffect)((function(){F(!!x)}),[x]),(0,t.jsx)(i.Button,u({disabled:s,className:(0,l.Z)("paraui-button",a,r.btnIcon,e&&r.radius,"outlined"===m.variant&&r.outlinedBtn,j&&r.loadingBtn),startIcon:function(){if(!j)return(0,t.jsx)("span",u({className:"btn-icon"},{children:g}),void 0);if("object"==typeof x){var o=x.delay||0;setTimeout((function(){return F(!1)}),o)}return(0,t.jsx)("span",u({className:"btn-icon loading-icon"},{children:(0,t.jsx)(d(),{},void 0)}),void 0)}(),endIcon:(0,t.jsx)("span",u({className:"btn-icon"},{children:h}),void 0)},m,{children:f}),void 0)};h.IconButton=function(o){var r=b(),e=o.showToolTip,a=void 0===e||e,c=o.toolTipTitle,s=void 0===c?"":c,f=o.children,h=o.className,v=o.disabled,x=void 0!==v&&v,m=o.loading,y=void 0!==m&&m,j=o.TooltipProps,F=p(o,["showToolTip","toolTipTitle","children","className","disabled","loading","TooltipProps"]),w=(0,n.useState)(!1),S=w[0],C=w[1],O=(0,t.jsx)(i.IconButton,u({},F,{disabled:x,disableRipple:!0,className:(0,l.Z)("paraui-icon-button",h,a&&x&&"iconButton-disabled",S&&r.loadingBtn)},{children:function(){if(!S)return f;if("object"==typeof y){var o=y.delay||0;setTimeout((function(){return C(!1)}),o)}return(0,t.jsx)("span",u({className:"loading-icon"},{children:(0,t.jsx)(d(),{},void 0)}),void 0)}()}),void 0);return(0,n.useEffect)((function(){C(!!y)}),[y]),a?(0,t.jsx)(g,u({title:s},j,{children:(0,t.jsx)("span",u({className:(0,l.Z)(x&&r.iconButtonToolTip)},{children:O}),void 0)}),void 0):O},r.default=h},5415:function(o,r){var e={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};r.Z=function(){return e}},1731:function(o){o.exports=r},8604:function(o){o.exports=e},8381:function(o){o.exports=i},2749:function(o){o.exports=t},1102:function(o){o.exports=n},9297:function(r){r.exports=o}},l={};function c(o){var r=l[o];if(void 0!==r)return r.exports;var e=l[o]={exports:{}};return a[o](e,e.exports,c),e.exports}c.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return c.d(r,{a:r}),r},c.d=function(o,r){for(var e in r)c.o(r,e)&&!c.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:r[e]})},c.o=function(o,r){return Object.prototype.hasOwnProperty.call(o,r)},c.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var d={};return function(){c.r(d),c.d(d,{ButtonGroup:function(){return j},default:function(){return w}});var o=c(7712),r=c(1731),e=c(8604),t=c(2749),n=c.n(t),i=c(36),a=c(9297),l=c(8381),s=c.n(l),u=c(5415),p=c(4927),f=function(){return f=Object.assign||function(o){for(var r,e=1,t=arguments.length;e<t;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n]);return o},f.apply(this,arguments)},b=(0,u.Z)(),g=(0,e.makeStyles)((function(o){return(0,e.createStyles)({root:{display:"inline-flex",borderRadius:"4px",boxShadow:b.boxShadow,"& button":{width:"auto",padding:"7px 10px",boxShadow:"none",border:0,"&:hover":{border:0},"&:disabled":{padding:"7px 10px",border:0,"&:hover":{padding:"7px 10px"}},"&.dropDownButton":{minWidth:0,position:"relative","&:before":{content:'""',position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"1px",height:"10px",backgroundColor:b.bgBorderColor.bg1},"& svg":{fontSize:12,color:"currentColor"}}}},split:{},splitButtonMenu:{minWidth:"140px","& li":{height:"30px",padding:"6px 20px",fontSize:b.fontSize,color:b.textColor.secondary,"&:hover":{backgroundColor:b.bgBorderColor.bg2,color:b.thmemColor.primary},"&.selected":{backgroundColor:b.bgBorderColor.bg2,color:b.thmemColor.primary,"&:hover":{backgroundColor:b.bgBorderColor.bg2}}}},popperTop:{marginTop:6},paperShadow:{boxShadow:b.boxShadow}})}));var h=function(){return h=Object.assign||function(o){for(var r,e=1,t=arguments.length;e<t;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n]);return o},h.apply(this,arguments)},v=function(o,r){var e={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&r.indexOf(t)<0&&(e[t]=o[t]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(o);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(o,t[n])&&(e[t[n]]=o[t[n]])}return e},x=(0,u.Z)(),m=(0,e.withStyles)((function(o){return{tooltip:{margin:"6px 0",backgroundColor:x.bgBorderColor.bg4,"& .disabledIcon":{fontSize:12,marginRight:3,color:x.textColor.white},"& .tooltipTitle":{display:"inline-flex",alignItems:"center"}}}}))(r.Tooltip),y=(0,e.makeStyles)((function(o){return(0,e.createStyles)({root:{display:"inline-flex",borderRadius:"4px",boxShadow:x.boxShadow},auto:{boxShadow:"none"},text:{"& > div":{cursor:"not-allowed","&:not(:last-child)":{"& > button":{"&:after":{content:'""',position:"absolute",right:0,width:"1px",height:"10px",backgroundColor:x.bgBorderColor.bg1}}},"& > button":{position:"relative",width:"auto",minWidth:0,padding:"0 10px",boxShadow:"none","&:hover":{color:x.thmemColor.primary},"&:disabled":{pointerEvents:"none","&:hover":{backgroundColor:"transparent",color:x.textColor.thirdary}}}}},icon:{"& > div":{cursor:"not-allowed","&:not(:last-child)":{position:"relative","&:after":{content:'""',position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",width:"1px",height:"10px",backgroundColor:x.bgBorderColor.bg1}},"& > button":{padding:"5px 10px",borderRadius:"4px",color:x.textColor.primary,"&:hover":{backgroundColor:"transparent",color:x.thmemColor.primary},"&:disabled":{pointerEvents:"none","&:hover":{backgroundColor:"transparent",color:x.textColor.thirdary}}}}},iconSplit:{boxShadow:"none","& > div":{cursor:"not-allowed","& > button":{margin:"0 5px",padding:"5px",borderRadius:"4px",boxShadow:x.boxShadow,color:x.textColor.primary,"&:hover":{backgroundColor:"transparent",color:x.thmemColor.primary},"&:disabled":{pointerEvents:"none","&:hover":{backgroundColor:"transparent",color:x.textColor.thirdary}}}}}})})),j=function(e){var t=y(),a=e.mode,l=void 0===a?"text":a,c=e.data,d=void 0===c?[]:c,s=e.className,u=e.showToolTip,f=void 0===u||u,b=e.onClick,g=e.disabled,x=void 0!==g&&g,j=function(o){return function(r){null==b||b(r,o)}},F=function(e){void 0===e&&(e={});var t=e.text,n=e.icon,a=v(e,["text","icon"]);switch(delete e.disabled,l){case"text":return(0,o.jsx)(i.default,h({},a,{onClick:j(e)},{children:t}),void 0);case"icon":case"iconSplit":return(0,o.jsx)(r.IconButton,h({},a,{onClick:j(e)},{children:n}),void 0);default:return null}};return(0,o.jsx)("div",h({className:(0,p.Z)(t.root,t[l],s,"paraui-button-group")},{children:d&&d.length?d.map((function(r,e){var t=r.text,i=r.disabled;void 0===i&&(i=x,r.disabled=x);var a=i?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n(),{className:"disabledIcon"},void 0),t]},void 0):t;return f?(0,o.jsx)(m,h({title:(0,o.jsx)("span",h({className:"tooltipTitle"},{children:a}),void 0)},{children:(0,o.jsx)("div",{children:F(r)},void 0)}),e):(0,o.jsx)("div",{children:F(r)},e)})):null}),void 0)},F=j;F.SplitButton=function(e){var t,n=e.data,l=void 0===n?[]:n,c=e.disabled,d=void 0!==c&&c,u=e.onClick,b=e.className,h=(0,a.useState)(!1),v=h[0],x=h[1],m=(0,a.useRef)(null),y=(0,a.useState)(0),j=y[0],F=y[1],w=g(),S=function(o){m.current&&m.current.contains(o.target)||x(!1)};return(0,o.jsxs)("div",f({className:(0,p.Z)(w.root,b,"paraui-button-group")},{children:[(0,o.jsxs)(r.ButtonGroup,f({ref:m,disabled:d},{children:[(0,o.jsx)(i.default,f({onClick:function(o){null==u||u(o,l[j]||{})}},{children:(null===(t=l[j])||void 0===t?void 0:t.text)||""}),void 0),(0,o.jsx)(i.default,f({onClick:function(){x((function(o){return!o}))},className:"dropDownButton"},{children:(0,o.jsx)(s(),{},void 0)}),void 0)]}),void 0),(0,o.jsx)(r.Popper,f({open:v,anchorEl:m.current,transition:!0,placement:"bottom-end",className:w.popperTop},{children:function(e){var t=e.TransitionProps;e.placement;return(0,o.jsx)(r.Grow,f({},t,{children:(0,o.jsx)(r.Paper,f({elevation:0,className:w.paperShadow},{children:(0,o.jsx)(r.ClickAwayListener,f({onClickAway:S},{children:(0,o.jsx)(r.MenuList,f({className:w.splitButtonMenu},{children:l.map((function(e,t){return(0,o.jsx)(r.MenuItem,f({disabled:e.disabled,selected:t===j,className:t===j?"selected":"",onClick:function(o){return function(o,r){F(r),x(!1)}(0,t)}},{children:e.text||""}),t)}))}),void 0)}),void 0)}),void 0)}),void 0)}}),void 0)]}),void 0)};var w=F}(),d}()}));
|
package/Checkbox/index.js
CHANGED
|
@@ -13,4 +13,4 @@ var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.pr
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
t(4126);var o=t(9297),i=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;i=n("react.element"),n("react.fragment")}var a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var o,n={},s=null,d=null;for(o in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(d=r.ref),r)l.call(r,o)&&!c.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:i,type:e,key:s,ref:d,props:n,_owner:a.current}}r.jsx=s,r.jsxs=s},7712:function(e,r,t){e.exports=t(9524)},853:function(e,r){var t={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};r.Z=function(){return t}},1731:function(e){e.exports=r},8604:function(e){e.exports=t},9297:function(r){r.exports=e}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var t=i[e]={exports:{}};return o[e](t,t.exports,n),t.exports}n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},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(){n.r(a),n.d(a,{Checkbox:function(){return f},default:function(){return u}});var e=n(7712),r=n(9297),t=n(1731),o=n(8604),i=n(853),l=function(){return l=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},l.apply(this,arguments)},c={icon:{icon:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"#FFFFFF"},void 0),(0,e.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0),iconDisabled:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor",className:"fill-bg"},void 0),(0,e.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0)},checkedIcon:{icon:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{className:"fill-bg",d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)},indeterminateIcon:{icon:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M785.171692 564.224h-546.422154a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",className:"fill-bg",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M785.171692 564.224H238.749538a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)}},s=function(){return s=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},s.apply(this,arguments)},d=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(t[o[i]]=e[o[i]])}return t},h=(0,i.Z)(),p=(0,o.makeStyles)((function(){return(0,o.createStyles)({"check-box":{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.thmemColor.primary,"& > .line-rect":{color:h.thmemColor.primary}}}},"& > span:last-child":{color:h.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:h.textColor.thirdary,"& > .line-rect":{color:h.textColor.thirdary}}}},"& > span:last-child":{color:h.textColor.primary},"&.check-box-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.thmemColor.primary}}},"& > span:last-child":{color:h.thmemColor.primary}},"&.check-box-indeterminate":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.thmemColor.primary}}},"& > span:last-child":{color:h.thmemColor.primary}},"&.check-box-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.textColor.thirdary,"& > .line-rect":{color:h.textColor.thirdary}}}},"& > span:last-child":{color:h.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.textColor.thirdary+" !important","& > .fill-bg":{color:h.bgBorderColor.bg1},"& > .char-path":{color:h.bgBorderColor.bg4}}}},"& > span:last-child":{color:h.textColor.secondary+" !important"}},"&.check-box-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.check-box-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.check-box-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),f=function(o){var i=o.className,n=void 0===i?"":i,a=o.color,l=void 0===a?"primary":a,h=o.size,f=void 0===h?"small":h,u=o.label,m=void 0===u?"":u,v=o.labelPlacement,x=void 0===v?"end":v,b=(o.checkedIcon,o.indeterminateIcon,o.icon,o.disabled),g=void 0!==b&&b,y=o.checked,F=void 0!==y&&y,j=o.indeterminate,C=void 0!==j&&j,O=o.onChange,k=d(o,["className","color","size","label","labelPlacement","checkedIcon","indeterminateIcon","icon","disabled","checked","indeterminate","onChange"]),w=p(o),S=(0,r.useState)(!1),q=S[0],z=S[1];(0,r.useEffect)((function(){F!==q&&z(F)}),[F]);var A,E=function(e){return g?c[e].iconDisabled:c[e].icon},D=function(e,r){void 0===o.checked&&void 0===o.indeterminate&&z(e.target.checked),O&&O(e,r)};return(0,e.jsx)(t.FormControlLabel,{className:(A=w["check-box"]+" paraui-check-box",n&&(A+=" "+n),f&&(A+=" check-box-"+f),g&&(A+=" check-box-disabled"),C?A+=" check-box-indeterminate":q&&(A+=" check-box-checked"),A),control:(0,e.jsx)(t.Checkbox,s({size:"small",color:l,disabled:g,icon:E("icon"),checkedIcon:E("checkedIcon"),indeterminateIcon:E("indeterminateIcon"),onChange:D,checked:q,indeterminate:C},k),void 0),label:m,labelPlacement:x},void 0)},u=f}(),a}()}));
|
|
16
|
+
t(4126);var o=t(9297),i=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;i=n("react.element"),n("react.fragment")}var a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var o,n={},s=null,d=null;for(o in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(d=r.ref),r)l.call(r,o)&&!c.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:i,type:e,key:s,ref:d,props:n,_owner:a.current}}r.jsx=s,r.jsxs=s},7712:function(e,r,t){e.exports=t(9524)},5415:function(e,r){var t={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};r.Z=function(){return t}},1731:function(e){e.exports=r},8604:function(e){e.exports=t},9297:function(r){r.exports=e}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var t=i[e]={exports:{}};return o[e](t,t.exports,n),t.exports}n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},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(){n.r(a),n.d(a,{Checkbox:function(){return f},default:function(){return u}});var e=n(7712),r=n(9297),t=n(1731),o=n(8604),i=n(5415),l=function(){return l=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},l.apply(this,arguments)},c={icon:{icon:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"#FFFFFF"},void 0),(0,e.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0),iconDisabled:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor",className:"fill-bg"},void 0),(0,e.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0)},checkedIcon:{icon:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{className:"fill-bg",d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)},indeterminateIcon:{icon:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M785.171692 564.224h-546.422154a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,e.jsxs)("svg",l({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,e.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",className:"fill-bg",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,e.jsx)("path",{d:"M785.171692 564.224H238.749538a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)}},s=function(){return s=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},s.apply(this,arguments)},d=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(t[o[i]]=e[o[i]])}return t},h=(0,i.Z)(),p=(0,o.makeStyles)((function(){return(0,o.createStyles)({"check-box":{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.thmemColor.primary,"& > .line-rect":{color:h.thmemColor.primary}}}},"& > span:last-child":{color:h.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:h.textColor.thirdary,"& > .line-rect":{color:h.textColor.thirdary}}}},"& > span:last-child":{color:h.textColor.primary},"&.check-box-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.thmemColor.primary}}},"& > span:last-child":{color:h.thmemColor.primary}},"&.check-box-indeterminate":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.thmemColor.primary}}},"& > span:last-child":{color:h.thmemColor.primary}},"&.check-box-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.textColor.thirdary,"& > .line-rect":{color:h.textColor.thirdary}}}},"& > span:last-child":{color:h.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:h.textColor.thirdary+" !important","& > .fill-bg":{color:h.bgBorderColor.bg1},"& > .char-path":{color:h.bgBorderColor.bg4}}}},"& > span:last-child":{color:h.textColor.secondary+" !important"}},"&.check-box-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.check-box-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.check-box-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),f=function(o){var i=o.className,n=void 0===i?"":i,a=o.color,l=void 0===a?"primary":a,h=o.size,f=void 0===h?"small":h,u=o.label,m=void 0===u?"":u,v=o.labelPlacement,x=void 0===v?"end":v,b=(o.checkedIcon,o.indeterminateIcon,o.icon,o.disabled),g=void 0!==b&&b,y=o.checked,F=void 0!==y&&y,j=o.indeterminate,C=void 0!==j&&j,O=o.onChange,k=d(o,["className","color","size","label","labelPlacement","checkedIcon","indeterminateIcon","icon","disabled","checked","indeterminate","onChange"]),w=p(o),S=(0,r.useState)(!1),q=S[0],z=S[1];(0,r.useEffect)((function(){F!==q&&z(F)}),[F]);var A,E=function(e){return g?c[e].iconDisabled:c[e].icon},D=function(e,r){void 0===o.checked&&void 0===o.indeterminate&&z(e.target.checked),O&&O(e,r)};return(0,e.jsx)(t.FormControlLabel,{className:(A=w["check-box"]+" paraui-check-box",n&&(A+=" "+n),f&&(A+=" check-box-"+f),g&&(A+=" check-box-disabled"),C?A+=" check-box-indeterminate":q&&(A+=" check-box-checked"),A),control:(0,e.jsx)(t.Checkbox,s({size:"small",color:l,disabled:g,icon:E("icon"),checkedIcon:E("checkedIcon"),indeterminateIcon:E("indeterminateIcon"),onChange:D,checked:q,indeterminate:C},k),void 0),label:m,labelPlacement:x},void 0)},u=f}(),a}()}));
|
package/CheckboxGroup/index.js
CHANGED
|
@@ -13,4 +13,4 @@ var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.pr
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
o(4126);var t=o(9297),i=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;i=n("react.element"),n("react.fragment")}var a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,o){var t,n={},s=null,d=null;for(t in void 0!==o&&(s=""+o),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(d=r.ref),r)l.call(r,t)&&!c.hasOwnProperty(t)&&(n[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===n[t]&&(n[t]=r[t]);return{$$typeof:i,type:e,key:s,ref:d,props:n,_owner:a.current}}r.jsx=s,r.jsxs=s},7712:function(e,r,o){e.exports=o(9524)},193:function(e,r,o){o.d(r,{default:function(){return u}});var t=o(7712),i=o(9297),n=o(1731),a=o(8604),l=o(853),c=function(){return c=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var i in r=arguments[o])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},c.apply(this,arguments)},s={icon:{icon:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"#FFFFFF"},void 0),(0,t.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0),iconDisabled:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor",className:"fill-bg"},void 0),(0,t.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0)},checkedIcon:{icon:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{className:"fill-bg",d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)},indeterminateIcon:{icon:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M785.171692 564.224h-546.422154a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",className:"fill-bg",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M785.171692 564.224H238.749538a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)}},d=function(){return d=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var i in r=arguments[o])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},d.apply(this,arguments)},h=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)r.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(o[t[i]]=e[t[i]])}return o},p=(0,l.Z)(),f=(0,a.makeStyles)((function(){return(0,a.createStyles)({"check-box":{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary,"& > .line-rect":{color:p.thmemColor.primary}}}},"& > span:last-child":{color:p.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.primary},"&.check-box-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.check-box-indeterminate":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.check-box-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.textColor.thirdary+" !important","& > .fill-bg":{color:p.bgBorderColor.bg1},"& > .char-path":{color:p.bgBorderColor.bg4}}}},"& > span:last-child":{color:p.textColor.secondary+" !important"}},"&.check-box-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.check-box-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.check-box-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),u=function(e){var r=e.className,o=void 0===r?"":r,a=e.color,l=void 0===a?"primary":a,c=e.size,p=void 0===c?"small":c,u=e.label,v=void 0===u?"":u,m=e.labelPlacement,x=void 0===m?"end":m,b=(e.checkedIcon,e.indeterminateIcon,e.icon,e.disabled),g=void 0!==b&&b,y=e.checked,F=void 0!==y&&y,j=e.indeterminate,C=void 0!==j&&j,O=e.onChange,k=h(e,["className","color","size","label","labelPlacement","checkedIcon","indeterminateIcon","icon","disabled","checked","indeterminate","onChange"]),w=f(e),S=(0,i.useState)(!1),q=S[0],z=S[1];(0,i.useEffect)((function(){F!==q&&z(F)}),[F]);var A,E=function(e){return g?s[e].iconDisabled:s[e].icon},D=function(r,o){void 0===e.checked&&void 0===e.indeterminate&&z(r.target.checked),O&&O(r,o)};return(0,t.jsx)(n.FormControlLabel,{className:(A=w["check-box"]+" paraui-check-box",o&&(A+=" "+o),p&&(A+=" check-box-"+p),g&&(A+=" check-box-disabled"),C?A+=" check-box-indeterminate":q&&(A+=" check-box-checked"),A),control:(0,t.jsx)(n.Checkbox,d({size:"small",color:l,disabled:g,icon:E("icon"),checkedIcon:E("checkedIcon"),indeterminateIcon:E("indeterminateIcon"),onChange:D,checked:q,indeterminate:C},k),void 0),label:v,labelPlacement:x},void 0)}},853:function(e,r){var o={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};r.Z=function(){return o}},1731:function(e){e.exports=r},8604:function(e){e.exports=o},3475:function(e){e.exports=t},9297:function(r){r.exports=e}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return i[e](o,o.exports,a),o.exports}a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,{a:r}),r},a.d=function(e,r){for(var o in r)a.o(r,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return function(){a.r(l),a.d(l,{CheckboxGroup:function(){return p}});var e=a(9297),r=a(7712),o=a(1731),t=a(193),i=a(8604),n=a(853),c=a(3475),s=function(){return s=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var i in r=arguments[o])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},s.apply(this,arguments)},d=(0,n.Z)(),h=(0,i.makeStyles)((function(){return(0,i.createStyles)({"check-box-group":{"& > label":{fontSize:"12px",color:d.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:d.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:d.stateColor.error},"&.check-box-group-disabled":{},"&.check-box-group-small":{},"&.check-box-group-medium":{},"&.check-box-group-large":{}}})})),p=function(i){var n,a=i.label,l=void 0===a?"":a,d=i.size,p=void 0===d?"small":d,f=i.row,u=void 0===f||f,v=i.disabled,m=void 0!==v&&v,x=i.required,b=void 0!==x&&x,g=i.error,y=void 0!==g&&g,F=i.helperText,j=void 0===F?"":F,C=i.id,O=void 0===C?"name":C,k=i.value,w=void 0===k?[]:k,S=i.list,q=i.className,z=void 0===q?"":q,A=i.onChange,E=h(i),D=function(e){return function(r,o){var t=e[O],i=(0,c.DeepClone)(w);if(o)i.push(t);else{var n=i.indexOf(t);i.splice(n,1)}A&&A(i)}};return(0,r.jsxs)(o.FormControl,s({className:(n=E["check-box-group"]+" paraui-check-box-group",z&&(n+=" "+z),p&&(n+=" check-box-group-"+p),y&&(n+=" check-box-group-error"),m&&(n+=" check-box-group-disabled"),n)},{children:[(0,r.jsxs)(o.FormLabel,{children:[l,b&&(0,r.jsx)("span",s({className:"required-char"},{children:"(必填)"}),void 0)]},void 0),(0,r.jsx)(o.FormGroup,s({row:u},{children:S.map((function(r,o){return(0,e.createElement)(t.default,s({},r,{checked:-1!==w.indexOf(r[O]),size:p,disabled:Boolean(m||r.disabled),key:o,onChange:D(r)}))}))}),void 0),j&&(0,r.jsx)(o.FormHelperText,{children:j},void 0)]}),void 0)};l.default=p}(),l}()}));
|
|
16
|
+
o(4126);var t=o(9297),i=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;i=n("react.element"),n("react.fragment")}var a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,o){var t,n={},s=null,d=null;for(t in void 0!==o&&(s=""+o),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(d=r.ref),r)l.call(r,t)&&!c.hasOwnProperty(t)&&(n[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===n[t]&&(n[t]=r[t]);return{$$typeof:i,type:e,key:s,ref:d,props:n,_owner:a.current}}r.jsx=s,r.jsxs=s},7712:function(e,r,o){e.exports=o(9524)},4726:function(e,r,o){o.d(r,{default:function(){return u}});var t=o(7712),i=o(9297),n=o(1731),a=o(8604),l=o(5415),c=function(){return c=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var i in r=arguments[o])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},c.apply(this,arguments)},s={icon:{icon:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"#FFFFFF"},void 0),(0,t.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0),iconDisabled:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor",className:"fill-bg"},void 0),(0,t.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0)},checkedIcon:{icon:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{className:"fill-bg",d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)},indeterminateIcon:{icon:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M785.171692 564.224h-546.422154a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,t.jsxs)("svg",c({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,t.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",className:"fill-bg",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,t.jsx)("path",{d:"M785.171692 564.224H238.749538a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)}},d=function(){return d=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var i in r=arguments[o])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},d.apply(this,arguments)},h=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)r.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(o[t[i]]=e[t[i]])}return o},p=(0,l.Z)(),f=(0,a.makeStyles)((function(){return(0,a.createStyles)({"check-box":{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary,"& > .line-rect":{color:p.thmemColor.primary}}}},"& > span:last-child":{color:p.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.primary},"&.check-box-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.check-box-indeterminate":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.check-box-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.textColor.thirdary+" !important","& > .fill-bg":{color:p.bgBorderColor.bg1},"& > .char-path":{color:p.bgBorderColor.bg4}}}},"& > span:last-child":{color:p.textColor.secondary+" !important"}},"&.check-box-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.check-box-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.check-box-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),u=function(e){var r=e.className,o=void 0===r?"":r,a=e.color,l=void 0===a?"primary":a,c=e.size,p=void 0===c?"small":c,u=e.label,v=void 0===u?"":u,m=e.labelPlacement,x=void 0===m?"end":m,b=(e.checkedIcon,e.indeterminateIcon,e.icon,e.disabled),g=void 0!==b&&b,y=e.checked,F=void 0!==y&&y,j=e.indeterminate,C=void 0!==j&&j,O=e.onChange,k=h(e,["className","color","size","label","labelPlacement","checkedIcon","indeterminateIcon","icon","disabled","checked","indeterminate","onChange"]),w=f(e),S=(0,i.useState)(!1),q=S[0],z=S[1];(0,i.useEffect)((function(){F!==q&&z(F)}),[F]);var A,E=function(e){return g?s[e].iconDisabled:s[e].icon},D=function(r,o){void 0===e.checked&&void 0===e.indeterminate&&z(r.target.checked),O&&O(r,o)};return(0,t.jsx)(n.FormControlLabel,{className:(A=w["check-box"]+" paraui-check-box",o&&(A+=" "+o),p&&(A+=" check-box-"+p),g&&(A+=" check-box-disabled"),C?A+=" check-box-indeterminate":q&&(A+=" check-box-checked"),A),control:(0,t.jsx)(n.Checkbox,d({size:"small",color:l,disabled:g,icon:E("icon"),checkedIcon:E("checkedIcon"),indeterminateIcon:E("indeterminateIcon"),onChange:D,checked:q,indeterminate:C},k),void 0),label:v,labelPlacement:x},void 0)}},5415:function(e,r){var o={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};r.Z=function(){return o}},1731:function(e){e.exports=r},8604:function(e){e.exports=o},3475:function(e){e.exports=t},9297:function(r){r.exports=e}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return i[e](o,o.exports,a),o.exports}a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,{a:r}),r},a.d=function(e,r){for(var o in r)a.o(r,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return function(){a.r(l),a.d(l,{CheckboxGroup:function(){return p}});var e=a(9297),r=a(7712),o=a(1731),t=a(4726),i=a(8604),n=a(5415),c=a(3475),s=function(){return s=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var i in r=arguments[o])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},s.apply(this,arguments)},d=(0,n.Z)(),h=(0,i.makeStyles)((function(){return(0,i.createStyles)({"check-box-group":{"& > label":{fontSize:"12px",color:d.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:d.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:d.stateColor.error},"&.check-box-group-disabled":{},"&.check-box-group-small":{},"&.check-box-group-medium":{},"&.check-box-group-large":{}}})})),p=function(i){var n,a=i.label,l=void 0===a?"":a,d=i.size,p=void 0===d?"small":d,f=i.row,u=void 0===f||f,v=i.disabled,m=void 0!==v&&v,x=i.required,b=void 0!==x&&x,g=i.error,y=void 0!==g&&g,F=i.helperText,j=void 0===F?"":F,C=i.id,O=void 0===C?"name":C,k=i.value,w=void 0===k?[]:k,S=i.list,q=i.className,z=void 0===q?"":q,A=i.onChange,E=h(i),D=function(e){return function(r,o){var t=e[O],i=(0,c.DeepClone)(w);if(o)i.push(t);else{var n=i.indexOf(t);i.splice(n,1)}A&&A(i)}};return(0,r.jsxs)(o.FormControl,s({className:(n=E["check-box-group"]+" paraui-check-box-group",z&&(n+=" "+z),p&&(n+=" check-box-group-"+p),y&&(n+=" check-box-group-error"),m&&(n+=" check-box-group-disabled"),n)},{children:[(0,r.jsxs)(o.FormLabel,{children:[l,b&&(0,r.jsx)("span",s({className:"required-char"},{children:"(必填)"}),void 0)]},void 0),(0,r.jsx)(o.FormGroup,s({row:u},{children:S.map((function(r,o){return(0,e.createElement)(t.default,s({},r,{checked:-1!==w.indexOf(r[O]),size:p,disabled:Boolean(m||r.disabled),key:o,onChange:D(r)}))}))}),void 0),j&&(0,r.jsx)(o.FormHelperText,{children:j},void 0)]}),void 0)};l.default=p}(),l}()}));
|